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

 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 to,F$u,Jov,Jo,lu,s_P,gPu,zt,Tt,lvM,XyW,YMu,Gt,eov,Z3o,OM,Nfo,zoW,MWM,GtA,O3o,Pu_,Ao3,H3_,mA$,b3o,qn,dAq,lJ,VWu,XL,UAq,YO,eC,hot,K$C,Pf,AE,L$P,Fro,qv_,$O,JEt,sj$,yz,gO_,lwy,Xf$,Ce,tCq,Vz,pf_,ZeM,ieA,Y7,k1o,EOq,zdW,oOu,nOo,X3,rE$,sC,Nxu,wfP,xnC,vOP,Iwu,k7,$nt,mnq,bef,yEP,CJo,VCP,Unq,Krt,BxW,aw$,cEf,qCf,g7u,XsA,lQq,Hs,YCM,R93,bw,NJo,z9q,ih_,o7q,kvo,yT,dn$,dJ,VT,UC,n7$,S5,GvW,M5A,TJt,fh,DDy,Wvf,Ohf,Pwu,A9$,xDy,v7W,IQv,HhM,Bs,$Dv,y93,dDt,UDP,ue,h9P,Lvo,g$,jyt,qSM,BJ3,tOy,JQv,sKo,eZ3,XSq,RZq,N$M,wSW,
k9o,EnP,MOA,T$t,Wtf,xy_,vno,IqC,myo,yQv,hZf,Dq,B$u,fqM,aqP,IK,HS,$n,Kl,Ll,fl,s2M,XAo,Yso,ePA,RPo,rKf,Yl,NL3,QM,eS,Zo,rL,i6q,kgt,Elo,zPW,olM,MSo,TLM,Ggo,Dvo,O6u,kl,iF,PFq,xvW,AKf,Iot,vlf,H63,mvC,$vv,Os,PA,xl,AK,I2,yK_,HA,dvA,KZM,$l,BLy,LZt,foo,yM,aoW,j2y,cKo,C6,tA_,VM,sVy,gqy,Us,Xn_,l4C,YFW,pnu,QVq,ehA,BA,Zsf,Rho,L6,rW$,Nhv,f6,a2,jS,cA,wnP,k0C,isy,F$,zho,oqv,nqo,tW,JW,sF,gh,Yq,ps,MAo,Tho,Daf,W7W,Oso,PQf,xao,AWq,vq3,I4$,Hsq,maW,$af,bs3,eA,yWo,CQ_,wh,da3,kq,EF,VA$,hht,K7A,Bhq,f4P,a4C,jVv,tr_,uNt,JGu,
sXM,gW3,lW3,XdP,eB3,ns,Zr$,RBt,rGP,No_,wdv,irW,EWy,AGq,vWv,IWv,$qW,bro,AW,yG_,Vr$,hB$,Kgu,Bo3,LgM,fWo,aWf,jX_,cGo,qd_,ttM,Uqo,u6$,JOM,svP,gRt,lVM,Xju,YdM,pjy,Qvo,rOq,Zq$,iq3,NPP,wjo,z4M,oR3,nR3,kyW,TPW,ER$,D3v,aV,W1o,jA,FN,Oqu,x3t,AOo,Hqq,h4C,$3u,m3M,yOy,d3C,bqW,jvo,L1t,cOM,F8W,qKM,t6_,ubo,s5W,JNu,gIP,lA3,X_$,YKC,Q5f,ZIy,R$_,rNu,w_o,N2$,OIC,JG,Pnv,AN_,vIt,IAq,HI$,mMo,bIW,yNW,CnA,QS,er,dM3,B2C,ro,Nq,j5A,FhA,pcf,z4,ZEv,RTq,iE_,NNM,wc_,G4,kQM,EEy,oEo,nEM,Mv$,TN_,GQt,Dhu,Why,PKP,xht,vEq,AUP,FIv,Hd,ba,
t1W,u4t,JDW,sev,gwW,lkP,YIv,QeA,ptP,cd,q3,zEt,sd,DEu,WIo,gP,Poq,OtA,yD3,Coo,dEP,UEM,BB3,fkM,akf,jeu,cDM,qD$,u1f,Jft,pq,geq,YDy,p2C,QJM,eFW,RFo,X2f,sJq,ZMC,et,NOP,Eeo,iMu,rP,oe3,MJA,TOM,GmC,DbC,kR,WH$,Pz$,OMC,xbC,veA,ov,Czy,VJA,SD$,KH$,Gy,LHf,Od,xR,Pj,cf_,BOf,F0o,Iv,JgM,$R,b5,lSo,pUC,efo,ZW$,Rf_,ys,rgW,Vs,NZo,iW$,kGq,EFt,zfo,nF$,Kq,MMf,TZC,Lq,jt,W0v,OW3,PRt,xL3,ISP,HW3,$L_,bWy,hf_,K0f,VMu,L0o,fSv,j0u,Xb,pI,QG,tdC,u53,ZA,JJv,su_,gzo,ltt,Yeo,pWo,QuC,e_M,XWC,ZBC,w2,rJt,wWC,kI,NQo,iB$,R_o,kWv,zn,z_3,ozo,
MdC,TQo,Dd$,GWt,WOo,xdq,OBo,vzu,dd$,Vd3,Sev,BQM,KOy,h_u,LOW,at3,cJy,ju$,qHv,P_,uwo,JVM,sDo,goq,QD$,ZJA,eSC,RS_,rVM,I5,NYP,wof,kVq,zSP,Mc_,GVA,TYo,tU,DUo,EoA,IlC,mUM,$Uo,bJC,lK,yV3,dUf,SHA,BYA,KjA,jDP,cVf,FVW,qf$,uEM,X5q,Jxt,gvM,lxC,Yfo,p5M,elC,QYo,Rlo,Zjq,zQ,rxP,w5$,ij_,ov3,OV,Pc,nvP,Mzo,xE,WVf,Hc,mh,$E,AxW,bK,Hjo,VF,mpC,$pu,bjf,yxq,hU,CCo,dpC,Vz$,SfC,KVC,fxq,jYv,tD,cxo,FBW,qyC,tTM,uKo,Jn$,sbf,ghy,sI,YyA,pxA,QbM,ebf,ZGy,Rbu,rnM,Nat,wxy,iGC,kry,Eho,zbf,Zk,vht,In_,Re,rB,NE,HG3,m1W,$1_,bG_,ynf,C1y,d1P,
KBo,BaA,LBW,fnC,anA,EI,oe,nt,ME,Dk,OI,Pt,cnP,AD,qBo,vt,tpt,ue_,Ie,JYt,sEy,gMu,rYf,whW,oMq,GaW,Ts3,Nst,DsC,PLf,SBP,msy,fjq,b1t,L6o,ajo,Ct,cYA,Va,qkf,tgq,Jvy,scC,gbW,X9W,hD,p9u,Qct,eUW,Z9$,RUo,rvq,Nco,Yk$,kCu,EbP,zUq,Bt,Dcv,WWf,GCP,Pdy,xct,vbo,IPP,AvC,dc3,Uco,hUA,Bcv,sD,Fou,cvq,sIo,lR_,XTP,Ycv,pTq,QI$,eCW,rO,zCM,nmq,kqo,ipf,omo,RCW,TCf,mo_,Woq,OpA,P_o,KoW,Lo$,hCu,qOA,Sc3,Zp3,Fpq,DoP,Hpo,BCv,MiA,NC3,rTC,wTu,Emu,UoA,Af,rC$,wDA,iHo,klt,ECu,OHM,HHt,mZt,Vw,bHo,dZv,h7P,SOP,B0C,LpC,az_,cC$,jsy,FT3,tg,qoP,
txC,ufo,uR,pZM,Yo_,XZu,Ru3,Q4f,rit,Zwt,sT,NIC,Eiy,iw$,kJA,oiu,TIq,GJA,Owf,PB$,xR$,vif,XG,Hwt,bw_,mRf,yi3,URy,So$,BIC,fMv,ZS,R0,F4t,qLM,rZ,NL,tNC,wZ,iR,u9W,kF,JX$,ET,sLt,gfy,o0,le$,XOt,YLC,pOA,QLo,ZZf,eXy,rX_,iZu,wOy,kxq,EfM,RXf,zXq,MNA,nfu,Nm3,Tmf,Gx3,DS,DFu,OZC,W4W,PZq,xFu,vf3,AXu,IeM,PU,mFf,$FP,HZq,yXo,CZq,dFC,hXM,L4y,Fct,Jao,xF,lfP,Xio,Ag,YaW,m0,yn,raW,I0,Vn,Nd$,wiP,k3f,EB_,oBf,Ms_,TdC,G3_,DJM,Ppv,H43,vBP,O4_,mJt,$Jo,KW,IfW,b43,fW,yaC,Cpo,dJW,Vs_,Kcq,UJA,hto,af3,jCq,uhq,tLu,gVq,eKo,ZRu,r$u,wk3,
iRy,EVt,zKt,oVP,MLt,T1y,Gbo,ORW,vVP,IHo,PXM,mtu,bRM,$to,HRf,y$C,dtv,VLo,Uto,SNu,hKf,X5,Yz,ed,Ru,LRP,aHW,c$3,tuv,rQ,Nd,uoy,wQ,gDu,l6_,Xr_,kz,ZQ3,wr$,kwM,EDC,zNt,oDt,nDC,GwW,zW,Dzv,PbW,ou,xzf,I6y,HQM,mzt,vDv,Vut,hN3,Uzu,KXy,f6q,jRy,F_W,Jk_,uzu,XL$,Dt,Y5y,pLC,WW,Qau,Oe,eYA,ZnA,RYM,N3_,rkC,wLW,inM,kSC,Edo,DVA,On3,xVo,Piv,Mjy,ody,vdt,Hnf,Cit,dV$,S5P,aJM,ckC,vW,FEy,tho,ukq,sOo,YYf,e3f,rdf,NgM,wb$,ig3,ncC,kUo,Dg_,WEA,OgP,xgy,mO,AdW,IdP,Hgy,mgq,$g_,bgA,ydt,Clv,VhW,UgP,CB,SYM,h3C,Bgf,Vb,KEq,fdt,FY_,hJ,quC,
tZo,uHo,gZf,lCW,JMP,Yuq,ZVo,Rno,rMv,jd,N5_,EZC,zn3,tV,MZv,oZq,nZq,DKC,WYq,OVu,vZo,mKo,HVu,ICq,$KP,yM$,CmA,hnW,dKt,KYu,LYP,B5$,qw3,J3o,gx3,X6o,eQC,keu,$o,zQ$,Tzf,Dky,Ho,hV,vxu,$kt,mkq,y3f,CSC,Vqo,dk3,Ukf,Swq,KJ,nMM,IXv,biW,HiM,UH,Bzo,Lyo,fXP,aX_,j$u,c3q,Flu,qqy,Jx,tG3,uS3,J1y,stu,gH3,XE,l1P,pXf,eOf,Zu3,EHq,oHy,nHu,MG$,GYv,DXP,kv,Ouf,P4o,xX_,A1v,vHt,I1o,mXt,buC,C4M,dXo,BRA,hO3,LlP,jtA,c1_,G5,FLW,qX$,tRt,slP,l2C,gAA,YXo,QlM,P5,ZCM,RMt,eMf,rho,NXq,iCf,EA_,kTt,zMP,wQf,oA3,nAu,MR3,TXo,GT$,DCq,WLf,OCo,Pvo,
vAC,AhC,I2y,mCA,HCP,xv,$Co,Cvu,SXM,bCA,BX3,LLP,f2C,a2P,FSP,lDu,XGW,pGv,QgA,Sz,r83,k_o,oQP,hx,G_f,T7t,D4o,Lj,WS_,O8o,PWv,A8W,vQ_,IDq,H8f,$4A,b8t,LSv,ShW,KSv,aDW,fDM,jgq,c8$,qb_,uVf,swA,$H3,yBC,fsM,cBA,qno,tDo,uXt,JtC,sAv,lBf,X8P,QAW,esC,Z7W,Rsu,rtW,Nto,w8_,i7_,zsv,Tto,Yh,pG,Q8,eT,GkA,ra,Wev,$Tt,UTM,dTu,gT_,lOo,XeC,PYW,mT_,vpC,peW,QpW,eDt,ytq,RDC,N8y,i_t,zDy,oTC,Wx,xh,An,O_f,WnM,vTy,IOM,U$W,hDv,B8A,LnA,jpo,Fm$,cFy,uOP,sn_,erv,pBu,lEt,Qnq,XBM,ZNW,wBu,Bx,Guy,nG$,Wm$,ONW,x73,ApC,fG,vGW,m7_,bNW,ypt,d7u,
CjP,cx,BuC,sB,fE$,aEM,lL,jnf,cp3,Fao,qiu,tfA,uJf,JPo,sMP,g5q,lNu,XEt,YiC,pE_,QMW,eaW,Xe,Z2M,Ra$,rPq,N_q,wEo,i2q,kjo,E5W,zao,o5M,n5C,MfA,p1,Gjv,WaM,PPv,v5A,miv,$iu,b2o,CPM,Vfo,UiM,Siq,iL,fNP,B__,aNy,jMq,cPt,tHq,uut,JrM,g1v,xM,XYq,OB,pYy,Qoo,AY,e0_,Zy$,R0A,rry,IE,k2M,z0A,G2v,Tpt,W2M,Oyy,UB,P9W,xxC,v1$,HyW,mxC,byy,yrq,ILA,C9u,h0y,fLo,aL$,Sp,joo,crq,J0_,FFA,tkv,uWf,pJt,gu_,QHq,Zbq,r0P,ND$,wJu,ibW,kOA,Eu3,ouP,nuv,Mko,TDv,GOt,WF$,Pso,vuo,$Bo,Cs_,VkM,he_,jp,KFf,BDC,LFA,fYq,aYu,c0t,FJM,qEu,t4o,u8t,J4f,sfP,
g4C,lTC,Xgq,YEC,Qfv,pg_,Rvy,Nrq,qc,wgo,E4t,kh$,n43,M4$,TrM,DPv,P8M,v4u,A4u,OO3,mPP,HOf,dPu,$Pf,Xt,y4P,LJo,SEM,hvf,KJu,Brq,fT3,jfM,aTP,Yb,p9,sNy,FMM,Jev,uyA,qWW,tnf,XF3,pFo,em$,QN_,NSo,re$,iKW,zmf,okP,Ek3,nkf,TSM,Mnq,Duq,PGu,wc,xuA,Ae3,HKo,CGt,KMM,kb,LMM,cet,u_3,tUq,F3t,qA3,Mc,lmW,J_P,sFo,XHM,pHf,YAv,Zvq,R8_,NKu,wH_,ivv,kXy,Ero,orf,nr_,$b,TKM,GXW,PE3,xOo,Vj,A_f,ImA,UOo,B9,bvC,VU$,y_f,CEo,BK_,K3W,jFo,L3u,c_y,Fbt,f9,tEu,unW,Jqy,q0t,F0,sSM,ac,Y0W,N9_,wRo,i$$,kfM,EJo,zHo,T9M,nJo,MEM,oJW,Dry,P03,vJ_,IGM,
mrC,yqv,$ro,b$_,C0u,VEP,UrM,S0M,hH$,KbM,B9t,fG$,X0,jSy,qRf,FK_,uju,t7$,JLM,sWt,Ym,Xpq,kof,wpv,oL_,nLo,Oo_,Py_,xef,AL_,vL$,I5P,$eW,boq,yLv,deu,V7$,UeC,oI,BWC,KK3,hWt,SR3,f5u,cLA,a5f,q3y,tyP,uUA,Jmu,Y3_,skM,gSM,l$W,p3o,Qkt,egv,X3$,Gq,rmo,w3A,Nno,WT,k7f,ESC,zgP,iaf,oSq,nSf,Myu,TnA,G7W,WNW,Oa3,PDA,x__,I$M,vS3,ymA,Am3,Oc,CDf,Hau,ba$,U_u,S3v,hg$,KN3,BnP,LN_,f$f,a$A,jkq,cmt,FGu,two,uTo,JSf,g0q,XuC,puC,ejM,wuu,rSq,NAP,RjW,ZfM,if_,kR$,E0q,zjv,Vh,Mwq,TAv,GR_,DlW,WGo,Of3,IyM,xlo,PUo,ASu,hj3,Ul_,v0v,Vwo,cSP,
FUC,qZ3,tI3,uBo,J5t,s7f,g3W,YZv,Q7P,ZxC,r5u,Nk$,wqu,z6M,E33,o3t,MIu,pH,DWt,WUy,Oxt,P$_,ea,Zz,v3o,mWC,VIC,KU_,BkM,LUf,fKA,aKW,j7C,Fzf,tFu,qp_,u2y,s6P,gK3,l3P,XlM,YpM,plA,kC,Q6$,iLu,kHf,rRo,RJ_,wlo,NEf,MFu,TEP,GH3,D6u,Wzt,OL3,ARo,PHC,x6M,d6f,VF$,U6_,Kz_,BEt,SpC,hJ3,tYo,JIt,gyv,Xvo,pvA,eyC,NGM,wvq,i5q,zyv,EyP,kZC,oyq,nyM,TGq,GZu,DNv,Wxq,O53,PVM,AIo,vyo,Ico,H5u,mNf,$NC,CVy,dNq,UNq,hyo,S1o,KxW,Is,BGo,LxA,fc3,ac_,q7t,F9W,tlv,uc_,Juu,srP,XC$,pCt,Qrq,e2u,ZUf,R2M,ruA,NeP,wCo,iU3,kNC,z2o,EtC,ot3,ntP,Mlq,Tet,
GNq,D8P,W9y,OUq,Vg,x8C,Au$,IFM,HUo,m83,$8u,bUW,yuo,d8o,VlW,S7C,K9f,L9u,cuu,aFt,fFA,jrP,Fsq,qJP,tBf,sif,gUf,luv,XMo,pMu,QiP,ew3,RwA,ZF3,rsM,N4q,wM$,EU$,zwo,oUC,nUM,MBM,T4P,Ws$,OF_,ti,HFy,mQ$,bFC,dQy,Chv,VBC,UQA,uB,so,hwM,Kst,Xf,Yi,auW,B4W,Lsq,Fqo,q_P,tVo,udy,lZo,Y_f,p$W,QBf,eGu,Zkt,rHo,NFW,w$t,iky,kdW,Egt,zGy,ex,ogP,ngq,R4,MVq,TFf,Gdy,D0f,Wqu,OkW,wI,iB,Pt$,x0_,ki,AH$,vgM,IZt,Hk_,$0t,bko,CtC,hGM,S_y,U0y,Kqf,BF3,FwW,aZu,jBo,fZt,cHC,zJ,uaW,Jz_,s33,gXW,lb$,Y2$,Q3v,RIo,imf,Nbt,o4,rzM,nX_,TbA,nw,GF_,D5W,
Wwv,PAo,x5f,Az$,vXC,Hm$,m5C,$5f,yzt,CAt,V0W,U5y,Lwy,Bbq,ab$,j3f,uC$,JyA,shy,gNf,YGP,ek3,Oo,PZ,ZDo,Rky,ry_,Ni$,wKC,kL_,ENu,zkW,oNA,MPM,TiP,GL3,xi,DG$,WQv,xGC,Ayy,Ai,vZ,HDq,vN3,bD_,mGy,yyu,dG3,$i,VPW,UG_,KQP,LQP,bB,aIy,jho,cyy,FkC,q$P,toy,ul_,lgt,XwW,QP$,Y$_,pw_,ecC,NT3,ZzA,rAt,ww$,iz$,kBq,oYo,nY_,Moo,GBt,Df$,vYC,AA$,yAv,Vo$,BZ,Ufy,xMW,S$q,hct,BT3,agP,jP_,sU$,gaP,liy,Xa$,YgC,pao,eVW,ZSt,r6M,wa$,RV$,NH_,k$t,iSo,zVA,M_M,oa3,THv,G$C,DYf,W5v,OSM,PMC,A6C,xYt,mYM,y6y,$YC,CMu,dYo,V_P,tX,UYq,SgP,JX,K5W,hV_,
BHq,L5$,aio,jUW,Fdy,qQC,tby,ugo,J2M,lhf,YQC,e1_,Qd$,Zdf,R1y,w4f,D2y,z13,Odv,Pqq,A2f,v_v,$2o,bdC,y2t,Cqq,d2q,Vbq,U2A,SQo,KdP,h1u,fhy,ahP,jdu,c2W,FCA,qtt,t8q,J7A,l9A,Xzq,Ytf,pzq,QQo,exu,r7q,RxC,kPf,Ejy,zx$,ojM,njv,Tqy,M8M,Dm_,A7u,$mv,HTy,bTM,y7o,Ccq,V8$,MF,Sto,WO,KCv,LCM,f9o,q8_,uvo,g2C,XVv,Y8P,QZq,eLq,Z0M,rZq,wVy,i0t,E2W,n2M,o2C,zLy,IL,TyM,MQM,GEP,DSA,Wiy,O0o,Pgu,xSW,AZy,Irt,H0o,mSA,$S_,b0u,yZq,Cg3,dS3,VQy,S8A,hLy,Ff_,q4f,tKo,Jbu,s9_,gs$,Y4_,SN,rbA,NMW,w1$,iYy,kpA,hX,KZ,F6,BO,fZ,DjP,Wf$,xjC,vsC,Ab$,
jN,Ip_,HYu,mj3;_.Fq=function(F,q){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Fq);else{var t=Error().stack;t&&(this.stack=t)}F&&(this.message=String(F));q!==void 0&&(this.cause=q)};
to=function(){throw Error("E");};
F$u=function(F,q){q=String.fromCharCode.apply(null,q);return F==null?q:F+q};
Jov=function(F){var q=!1;q=q===void 0?!1:q;if(qMo){if(q&&(tWM?!F.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(F)))throw Error("F");F=(uq3||(uq3=new TextEncoder)).encode(F)}else{for(var t=0,u=new Uint8Array(3*F.length),J=0;J<F.length;J++){var g=F.charCodeAt(J);if(g<128)u[t++]=g;else{if(g<2048)u[t++]=g>>6|192;else{if(g>=55296&&g<=57343){if(g<=56319&&J<F.length){var Y=F.charCodeAt(++J);if(Y>=56320&&Y<=57343){g=(g-55296)*1024+Y-56320+65536;u[t++]=g>>18|
240;u[t++]=g>>12&63|128;u[t++]=g>>6&63|128;u[t++]=g&63|128;continue}else J--}if(q)throw Error("F");g=65533}u[t++]=g>>12|224;u[t++]=g>>6&63|128}u[t++]=g&63|128}}F=t===u.length?u:u.subarray(0,t)}return F};
Jo=function(F){_.uu.setTimeout(function(){throw F;},0)};
_.gf=function(F,q){return F.lastIndexOf(q,0)==0};
lu=function(F,q){var t=F.length-q.length;return t>=0&&F.indexOf(q,t)==t};
_.YP=function(F){return/^[\s\xa0]*$/.test(F)};
_.p3=function(F,q){return F.indexOf(q)!=-1};
_.QC=function(F,q){return _.p3(F.toLowerCase(),q.toLowerCase())};
_.R_=function(F,q){var t=0;F=eW(String(F)).split(".");q=eW(String(q)).split(".");for(var u=Math.max(F.length,q.length),J=0;t==0&&J<u;J++){var g=F[J]||"",Y=q[J]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];Y=/(\d*)(\D*)(.*)/.exec(Y)||["","","",""];if(g[0].length==0&&Y[0].length==0)break;t=s_P(g[1].length==0?0:parseInt(g[1],10),Y[1].length==0?0:parseInt(Y[1],10))||s_P(g[2].length==0,Y[2].length==0)||s_P(g[2],Y[2]);g=g[3];Y=Y[3]}while(t==0)}return t};
s_P=function(F,q){return F<q?-1:F>q?1:0};
_.NA=function(){var F=_.uu.navigator;return F&&(F=F.userAgent)?F:""};
gPu=function(F){if(!iu||!EM)return!1;for(var q=0;q<EM.brands.length;q++){var t=EM.brands[q].brand;if(t&&_.p3(t,F))return!0}return!1};
zt=function(F){return _.p3(_.NA(),F)};
Tt=function(){return iu?!!EM&&EM.brands.length>0:!1};
lvM=function(){return Tt()?!1:zt("Opera")};
XyW=function(){return Tt()?!1:zt("Trident")||zt("MSIE")};
YMu=function(){return Tt()?gPu("Microsoft Edge"):zt("Edg/")};
Gt=function(){return zt("Firefox")||zt("FxiOS")};
_.py3=function(){return zt("Safari")&&!(_.Wy()||(Tt()?0:zt("Coast"))||lvM()||(Tt()?0:zt("Edge"))||YMu()||(Tt()?gPu("Opera"):zt("OPR"))||Gt()||zt("Silk")||zt("Android"))};
_.Wy=function(){return Tt()?gPu("Chromium"):(zt("Chrome")||zt("CriOS"))&&!(Tt()?0:zt("Edge"))||zt("Silk")};
_.Q_v=function(){return zt("Android")&&!(_.Wy()||Gt()||lvM()||zt("Silk"))};
eov=function(F){var q={};F.forEach(function(t){q[t[0]]=t[1]});
return function(t){return q[t.find(function(u){return u in q})]||""}};
Z3o=function(F){var q=_.NA();if(F==="Internet Explorer"){if(XyW())if((F=/rv: *([\d\.]*)/.exec(q))&&F[1])q=F[1];else{F="";var t=/MSIE +([\d\.]+)/.exec(q);if(t&&t[1])if(q=/Trident\/(\d.\d)/.exec(q),t[1]=="7.0")if(q&&q[1])switch(q[1]){case "4.0":F="8.0";break;case "5.0":F="9.0";break;case "6.0":F="10.0";break;case "7.0":F="11.0"}else F="7.0";else F=t[1];q=F}else q="";return q}var u=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");t=[];for(var J;J=u.exec(q);)t.push([J[1],J[2],J[3]||void 0]);
q=eov(t);switch(F){case "Opera":if(lvM())return q(["Version","Opera"]);if(Tt()?gPu("Opera"):zt("OPR"))return q(["OPR"]);break;case "Microsoft Edge":if(Tt()?0:zt("Edge"))return q(["Edge"]);if(YMu())return q(["Edg"]);break;case "Chromium":if(_.Wy())return q(["Chrome","CriOS","HeadlessChrome"])}return F==="Firefox"&&Gt()||F==="Safari"&&_.py3()||F==="Android Browser"&&_.Q_v()||F==="Silk"&&zt("Silk")?(q=t[2])&&q[1]||"":""};
_.Ro$=function(F){if(Tt()&&F!=="Silk"){var q=EM.brands.find(function(t){return t.brand===F});
if(!q||!q.version)return NaN;q=q.version.split(".")}else{q=Z3o(F);if(q==="")return NaN;q=q.split(".")}return q.length===0?NaN:Number(q[0])};
OM=function(){return iu?!!EM&&!!EM.platform:!1};
_.rof=function(){return OM()?EM.platform==="Android":zt("Android")};
Nfo=function(){return zt("iPhone")&&!zt("iPod")&&!zt("iPad")};
_.Py=function(){return Nfo()||zt("iPad")||zt("iPod")};
_.wyq=function(){return OM()?EM.platform==="macOS":zt("Macintosh")};
_.i3y=function(){return OM()?EM.platform==="Windows":zt("Windows")};
_.ktW=function(){return OM()?EM.platform==="Chrome OS":zt("CrOS")};
_.xP=function(F){return F[F.length-1]};
_.vy=function(F,q,t){q=_.EP_(F,q,t);return q<0?null:typeof F==="string"?F.charAt(q):F[q]};
_.EP_=function(F,q,t){for(var u=F.length,J=typeof F==="string"?F.split(""):F,g=0;g<u;g++)if(g in J&&q.call(t,J[g],g,F))return g;return-1};
zoW=function(F){for(var q=_.I_,t=typeof F==="string"?F.split(""):F,u=F.length-1;u>=0;u--)if(u in t&&q.call(void 0,t[u],u,F))return u;return-1};
_.bu=function(F,q){return _.Hy(F,q)>=0};
_.oPC=function(F,q){_.bu(F,q)||F.push(q)};
_.yC=function(F,q){q=_.Hy(F,q);var t;(t=q>=0)&&_.nPW(F,q);return t};
_.nPW=function(F,q){Array.prototype.splice.call(F,q,1)};
_.C3=function(F){var q=F.length;if(q>0){for(var t=Array(q),u=0;u<q;u++)t[u]=F[u];return t}return[]};
_.UM=function(F,q){for(var t=1;t<arguments.length;t++){var u=arguments[t];if(_.VC(u)){var J=F.length||0,g=u.length||0;F.length=J+g;for(var Y=0;Y<g;Y++)F[J+Y]=u[Y]}else F.push(u)}};
_.Tf_=function(F,q,t,u){Array.prototype.splice.apply(F,MWM(arguments,1))};
MWM=function(F,q,t){return arguments.length<=2?Array.prototype.slice.call(F,q):Array.prototype.slice.call(F,q,t)};
GtA=function(F,q){q=q||F;for(var t=0,u=0,J={};u<F.length;){var g=F[u++],Y=_.ho(g)?"o"+_.K3(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(J,Y)||(J[Y]=!0,q[t++]=g)}q.length=t};
_.W$C=function(F,q,t){t=t||_.DAv;for(var u=0,J=F.length,g;u<J;){var Y=u+(J-u>>>1);var Q=t(q,F[Y]);Q>0?u=Y+1:(J=Y,g=!Q)}return g?u:-u-1};
_.By=function(F,q,t){if(!_.VC(F)||!_.VC(q)||F.length!=q.length)return!1;var u=F.length;t=t||O3o;for(var J=0;J<u;J++)if(!t(F[J],q[J]))return!1;return!0};
_.DAv=function(F,q){return F>q?1:F<q?-1:0};
O3o=function(F,q){return F===q};
Pu_=function(F,q,t){q=Array.prototype.splice.call(F,q,1);Array.prototype.splice.call(F,t,0,q[0])};
Ao3=function(F){return xAo[F]||""};
H3_=function(F){if(!vPC)return _.f3(F);F=Ivq.test(F)?F.replace(Ivq,Ao3):F;F=atob(F);for(var q=new Uint8Array(F.length),t=0;t<F.length;t++)q[t]=F.charCodeAt(t);return q};
mA$=function(F,q){F.__closure__error__context__984382||(F.__closure__error__context__984382={});F.__closure__error__context__984382.severity=q};
_.jW=function(F){F=Error(F);mA$(F,"warning");return F};
b3o=function(F,q){if(F!=null){var t;var u=(t=$A3)!=null?t:$A3={};t=u[F]||0;t>=q||(u[F]=t+1,F=Error(),mA$(F,"incident"),Jo(F))}};
qn=function(F,q,t){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(t===void 0?0:t)&&Symbol.for&&F?Symbol.for(F):F!=null?Symbol(F):Symbol():q};
dAq=function(F,q){JE||_.sv in F||yo3(F,CuM);F[_.sv]|=q};
lJ=function(F,q){JE||_.sv in F||yo3(F,CuM);F[_.sv]=q};
VWu=function(F){if(4&F)return 512&F?512:1024&F?1024:0};
XL=function(F){dAq(F,34);return F};
UAq=function(F){dAq(F,32);return F};
YO=function(){return typeof BigInt==="function"};
eC=function(F,q){return q===void 0?F.copyOnWrite!==Qz&&!!(2&(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sv]|0)):!!(2&q)&&F.copyOnWrite!==Qz};
_.G1=function(F,q){if(F!=null)if(typeof F==="string")F=F?new iJ(F,Mn):_.T1();else if(F.constructor!==iJ)if(SM$&&F!=null&&F instanceof Uint8Array)F=F.length?new iJ(new Uint8Array(F),Mn):_.T1();else{if(!q)throw Error();F=void 0}return F};
hot=function(F,q){if(typeof q!=="number"||q<0||q>=F.length)throw Error();};
K$C=function(F,q,t){var u=q&128?0:-1,J=F.length,g;if(g=!!J)g=F[J-1],g=g!=null&&typeof g==="object"&&g.constructor===Object;var Y=J+(g?-1:0);for(q=q&128?1:0;q<Y;q++)t(q-u,F[q]);if(g){F=F[J-1];for(var Q in F)!isNaN(Q)&&t(+Q,F[Q])}};
Pf=function(F){return F&128?Ov:void 0};
AE=function(F){F.isGuard_doNotManuallySetPrettyPlease=!0;return F};
L$P=function(){var F=BfP;return AE(function(q){for(var t in F)if(q===F[t]&&!/^[0-9]+$/.test(t))return!0;return!1})};
_.vf=function(F){var q=F;if(fvo(q)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(q))throw Error(String(q));}else if(avy(q)&&!Number.isSafeInteger(q))throw Error(String(q));return j_W?BigInt(F):F=coy(F)?F?"1":"0":fvo(F)?F.trim()||"0":String(F)};
Fro=function(F,q){if(F.length>q.length)return!1;if(F.length<q.length||F===q)return!0;for(var t=0;t<F.length;t++){var u=F[t],J=q[t];if(u>J)return!1;if(u<J)return!0}};
qv_=function(F){var q=F>>>0;Ij=q;mr=(F-q)/4294967296>>>0};
$O=function(F){if(F<0){qv_(-F);var q=_.X(tCq(Ij,mr));F=q.next().value;q=q.next().value;Ij=F>>>0;mr=q>>>0}else qv_(F)};
JEt=function(F){var q=uLP||(uLP=new DataView(new ArrayBuffer(8)));q.setFloat32(0,+F,!0);mr=0;Ij=q.getUint32(0,!0)};
sj$=function(F,q){var t=q*4294967296+(F>>>0);return Number.isSafeInteger(t)?t:_.bJ(F,q)};
yz=function(F,q){var t=q&2147483648;t&&(F=~F+1>>>0,q=~q>>>0,F==0&&(q=q+1>>>0));F=sj$(F,q);return typeof F==="number"?t?-F:F:t?"-"+F:F};
gO_=function(F){var q=Ij,t=mr,u=t>>31;t=(t<<1|q>>>31)^u;F(q<<1^u,t)};
lwy=function(F,q){var t=-(F&1);F=(F>>>1|q<<31)^t;return yz(F,q>>>1^t)};
_.bJ=function(F,q){q>>>=0;F>>>=0;if(q<=2097151)var t=""+(4294967296*q+F);else YO()?t=""+(BigInt(q)<<BigInt(32)|BigInt(F)):(t=(F>>>24|q<<8)&16777215,q=q>>16&65535,F=(F&16777215)+t*6777216+q*6710656,t+=q*8147497,q*=2,F>=1E7&&(t+=F/1E7>>>0,F%=1E7),t>=1E7&&(q+=t/1E7>>>0,t%=1E7),t=q+Xf$(t)+Xf$(F));return t};
Xf$=function(F){F=String(F);return"0000000".slice(F.length)+F};
_.Yv3=function(F,q){q&2147483648?YO()?F=""+(BigInt(q|0)<<BigInt(32)|BigInt(F>>>0)):(q=_.X(tCq(F,q)),F=q.next().value,q=q.next().value,F="-"+_.bJ(F,q)):F=_.bJ(F,q);return F};
Ce=function(F){if(F.length<16)$O(Number(F));else if(YO())F=BigInt(F),Ij=Number(F&BigInt(4294967295))>>>0,mr=Number(F>>BigInt(32)&BigInt(4294967295));else{var q=+(F[0]==="-");mr=Ij=0;for(var t=F.length,u=q,J=(t-q)%6+q;J<=t;u=J,J+=6)u=Number(F.slice(u,J)),mr*=1E6,Ij=Ij*1E6+u,Ij>=4294967296&&(mr+=Math.trunc(Ij/4294967296),mr>>>=0,Ij>>>=0);q&&(q=_.X(tCq(Ij,mr)),F=q.next().value,q=q.next().value,Ij=F,mr=q)}};
tCq=function(F,q){q=~q;F?F=~F+1:q+=1;return[F,q]};
Vz=function(F){return Array.prototype.slice.call(F)};
_.Uv=function(F,q){throw Error(q===void 0?"unexpected value "+F+"!":q);};
_.SC=function(F){if(F!=null&&typeof F!=="number")throw Error("L`"+typeof F+"`"+F);return F};
_.hE=function(F){if(F==null||typeof F==="number")return F;if(F==="NaN"||F==="Infinity"||F==="-Infinity")return Number(F)};
pf_=function(F){if(F!=null&&typeof F!=="boolean")throw Error("M`"+_.Ke(F)+"`"+F);return F};
_.Qjy=function(F){if(F==null||typeof F==="boolean")return F;if(typeof F==="number")return!!F};
_.jC=function(F){switch(typeof F){case "bigint":return!0;case "number":return aj(F);case "string":return ed$.test(F);default:return!1}};
_.cf=function(F){if(!aj(F))throw _.jW("enum");return F|0};
_.t9=function(F){return F==null?F:aj(F)?F|0:void 0};
ZeM=function(F){if(typeof F!=="number")throw _.jW("int32");if(!aj(F))throw _.jW("int32");return F|0};
_.uw=function(F){return F==null?F:ZeM(F)};
_.J9=function(F){if(F==null)return F;if(typeof F==="string"&&F)F=+F;else if(typeof F!=="number")return;return aj(F)?F|0:void 0};
_.Rdt=function(F){if(F==null)return F;if(typeof F==="string"&&F)F=+F;else if(typeof F!=="number")return;return aj(F)?F>>>0:void 0};
ieA=function(F){var q=0;q=q===void 0?0:q;if(!_.jC(F))throw _.jW("int64");var t=typeof F;switch(q){case 512:switch(t){case "string":return sC(F);case "bigint":return String(gJ(64,F));default:return rE$(F)}case 1024:switch(t){case "string":return Nxu(F);case "bigint":return _.vf(gJ(64,F));default:return wfP(F)}case 0:switch(t){case "string":return sC(F);case "bigint":return _.vf(gJ(64,F));default:return X3(F)}default:return _.Uv(q,"Unknown format requested type for int64")}};
Y7=function(F){return F==null?F:ieA(F)};
k1o=function(F){if(F[0]==="-")return!1;var q=F.length;return q<20?!0:q===20&&Number(F.substring(0,6))<184467};
EOq=function(F){var q=F.length;return F[0]==="-"?q<20?!0:q===20&&Number(F.substring(0,7))>-922337:q<19?!0:q===19&&Number(F.substring(0,6))<922337};
zdW=function(F){if(F<0){$O(F);var q=_.bJ(Ij,mr);F=Number(q);return ph(F)?F:q}q=String(F);if(k1o(q))return q;$O(F);return sj$(Ij,mr)};
oOu=function(F){if(EOq(F))return F;Ce(F);return _.Yv3(Ij,mr)};
nOo=function(F){if(k1o(F))return F;Ce(F);return _.bJ(Ij,mr)};
X3=function(F){F=QT(F);ph(F)||($O(F),F=yz(Ij,mr));return F};
_.MCt=function(F){F=QT(F);return F>=0&&ph(F)?F:zdW(F)};
rE$=function(F){F=QT(F);if(ph(F))F=String(F);else{var q=String(F);EOq(q)?F=q:($O(F),F=_.Yv3(Ij,mr))}return F};
_.Tx3=function(F){F=QT(F);if(F>=0&&ph(F))F=String(F);else{var q=String(F);k1o(q)?F=q:($O(F),F=_.bJ(Ij,mr))}return F};
sC=function(F){var q=QT(Number(F));if(ph(q))return String(q);q=F.indexOf(".");q!==-1&&(F=F.substring(0,q));return oOu(F)};
Nxu=function(F){var q=QT(Number(F));if(ph(q))return _.vf(q);q=F.indexOf(".");q!==-1&&(F=F.substring(0,q));return YO()?_.vf(gJ(64,BigInt(F))):_.vf(oOu(F))};
wfP=function(F){return ph(F)?_.vf(X3(F)):_.vf(rE$(F))};
_.G1$=function(F){return ph(F)?_.vf(_.MCt(F)):_.vf(_.Tx3(F))};
_.Dno=function(F){var q=QT(Number(F));if(ph(q)&&q>=0)return String(q);q=F.indexOf(".");q!==-1&&(F=F.substring(0,q));return nOo(F)};
_.Wrq=function(F){var q=QT(Number(F));if(ph(q)&&q>=0)return _.vf(q);q=F.indexOf(".");q!==-1&&(F=F.substring(0,q));return YO()?_.vf((0,_.Ry)(64,BigInt(F))):_.vf(nOo(F))};
_.PJo=function(F){if(F==null)return F;if(typeof F==="bigint")return OeA(F)?F=Number(F):(F=gJ(64,F),F=OeA(F)?Number(F):String(F)),F;if(_.jC(F))return typeof F==="number"?X3(F):sC(F)};
xnC=function(F,q){q=q===void 0?!1:q;var t=typeof F;if(F==null)return F;if(t==="bigint")return String(gJ(64,F));if(_.jC(F))return t==="string"?sC(F):q?rE$(F):X3(F)};
_.AEA=function(F){var q=typeof F;if(F==null)return F;if(q==="bigint")return _.vf(gJ(64,F));if(_.jC(F))return q==="string"?Nxu(F):wfP(F)};
vOP=function(F){if(F==null)return F;var q=typeof F;if(q==="bigint")return String(gJ(64,F));if(_.jC(F)){if(q==="string")return sC(F);if(q==="number")return X3(F)}};
Iwu=function(F){if(F==null)return F;var q=typeof F;if(q==="bigint")return String((0,_.Ry)(64,F));if(_.jC(F)){if(q==="string")return _.Dno(F);if(q==="number")return _.MCt(F)}};
_.rJ=function(F){if(typeof F!=="string")throw Error();return F};
k7=function(F){if(F!=null&&typeof F!=="string")throw Error();return F};
_.EC=function(F){return F==null||typeof F==="string"?F:void 0};
$nt=function(F,q,t,u){if(F!=null&&F[oy]===nh)return F;if(!Array.isArray(F))return t?u&2?q[HeW]||(q[HeW]=mnq(q)):new q:void 0;t=F[_.sv]|0;u=t|u&32|u&2;u!==t&&lJ(F,u);return new q(F)};
mnq=function(F){F=new F;XL(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return F};
bef=function(F,q,t){F=q?ZeM(F):_.J9(F);return F==null?t?0:void 0:F|0};
yEP=function(F){return F};
CJo=function(F){return F};
VCP=function(F,q,t,u,J,g){F=$nt(F,u,t,g);J&&(F=dn$(F));return F};
Unq=function(F){return[F,this.get(F)]};
Krt=function(){return Svy||(Svy=new Ws(XL([]),void 0,void 0,void 0,hdv))};
BxW=function(F){var q=OC(Ps);return q?F[q]:void 0};
aw$=function(F,q){var t=t===void 0?!1:t;if(OC(Lrv)&&OC(Ps)&&void 0===Lrv){var u=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=u[Ps];if(!J)return;if(J=J.reviveUnknownFields)try{J(u,q,fwC);return}catch(g){Jo(g)}}t&&(F=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(t=OC(Ps))&&t in F&&(F=F[t])&&delete F[q])};
cEf=function(F,q){var t=OC(Ps),u;JE&&t&&((u=F[t])==null?void 0:u[q])!=null&&b3o(jju,3)};
qCf=function(F,q){q<100||b3o(Fvu,1)};
g7u=function(F,q,t,u){var J=u!==void 0;u=!!u;var g=OC(Ps),Y;!J&&JE&&g&&(Y=F[g])&&t5A(Y,qCf);g=[];var Q=F.length;Y=4294967295;var e=!1,r=!!(q&64),N=r?q&128?0:-1:void 0;if(!(q&1)){var w=Q&&F[Q-1];w!=null&&typeof w==="object"&&w.constructor===Object?(Q--,Y=Q):w=void 0;if(r&&!(q&128)&&!J){e=!0;var k;Y=((k=u3u)!=null?k:yEP)(Y-N,N,F,w,void 0)+N}}q=void 0;for(k=0;k<Q;k++){var z=F[k];if(z!=null&&(z=t(z,u))!=null)if(r&&k>=Y){var T=k-N,P=void 0;((P=q)!=null?P:q={})[T]=z}else g[k]=z}if(w)for(var v in w)Q=w[v],
Q!=null&&(Q=t(Q,u))!=null&&(k=+v,z=void 0,r&&!Number.isNaN(k)&&(z=k+N)<Y?g[z]=Q:(k=void 0,((k=q)!=null?k:q={})[v]=Q));q&&(e?g.push(q):g[Y]=q);J&&OC(Ps)&&(F=BxW(F))&&F instanceof J9t&&(g[Ps]=syf(F));return g};
XsA=function(F){F[0]=lQq(F[0]);F[1]=lQq(F[1]);return F};
lQq=function(F){switch(typeof F){case "number":return Number.isFinite(F)?F:""+F;case "bigint":return OeA(F)?Number(F):""+F;case "boolean":return F?1:0;case "object":if(Array.isArray(F)){var q=F[_.sv]|0;return F.length===0&&q&1?void 0:g7u(F,q,lQq)}if(F!=null&&F[oy]===nh)return YCM(F);if(F instanceof iJ){q=F.JSC$8812_value_;if(q==null)F="";else if(typeof q==="string")F=q;else{if(vPC){for(var t="",u=0,J=q.length-10240;u<J;)t+=String.fromCharCode.apply(null,q.subarray(u,u+=10240));t+=String.fromCharCode.apply(null,
u?q.subarray(u):q);q=btoa(t)}else q=_.A9(q);F=F.JSC$8812_value_=q}return F}if(F instanceof Ws)return F=F.size!==0?Array.from(vs.prototype.entries.call(F),XsA):void 0,F;return}return F};
Hs=function(F,q){if(q){u3u=q==null||q===yEP||q[psf]!==QyW?yEP:q;try{return YCM(F)}finally{u3u=void 0}}return YCM(F)};
YCM=function(F){F=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return g7u(F,F[_.sv]|0,lQq)};
R93=function(F){switch(typeof F){case "boolean":return e93||(e93=[0,void 0,!0]);case "number":return F>0?void 0:F===0?Zh3||(Zh3=[0,void 0]):[-F,void 0];case "string":return[0,F];case "object":return F}};
bw=function(F,q,t){return F=_.mv(F,q[0],q[1],t?1:2)};
_.mv=function(F,q,t,u){u=u===void 0?0:u;if(F==null){var J=32;t?(F=[t],J|=128):F=[];q&&(J=J&-8380417|(q&1023)<<13)}else{if(!Array.isArray(F))throw Error("O");J=F[_.sv]|0;if(r9$&&1&J)throw Error("P");2048&J&&!(2&J)&&NJo();if(J&256)throw Error("Q");if(J&64)return u!==0||J&2048||lJ(F,J|2048),F;if(t&&(J|=128,t!==F[0]))throw Error("R");a:{t=F;J|=64;var g=t.length;if(g){var Y=g-1,Q=t[Y];if(Q!=null&&typeof Q==="object"&&Q.constructor===Object){q=J&128?0:-1;Y-=q;if(Y>=1024)throw Error("T");for(var e in Q)g=
+e,g<Y&&(t[g+q]=Q[e],delete Q[e]);J=J&-8380417|(Y&1023)<<13;break a}}if(q){e=Math.max(q,g-(J&128?0:-1));if(e>1024)throw Error("U");J=J&-8380417|(e&1023)<<13}}}J|=64;u===0&&(J|=2048);lJ(F,J);return F};
NJo=function(){if(r9$)throw Error("S");b3o(wso,5)};
z9q=function(F,q){if(typeof F!=="object")return F;if(Array.isArray(F)){var t=F[_.sv]|0;return F.length===0&&t&1?void 0:ih_(F,t,q)}if(F!=null&&F[oy]===nh)return kvo(F);if(F instanceof Ws){q=F.arrayState;if(q&2)return F;if(!F.size)return;t=XL(E7_(F));if(F.valueCtor)for(F=0;F<t.length;F++){var u=t[F],J=u[1];J==null||typeof J!=="object"?J=void 0:J!=null&&J[oy]===nh?J=kvo(J):Array.isArray(J)?J=ih_(J,J[_.sv]|0,!!(q&32)):J=void 0;u[1]=J}return t}if(F instanceof iJ)return F};
ih_=function(F,q,t){if(q&2)return F;!t||4096&q||16&q?F=yT(F,q,!1,t&&!(q&16)):(dAq(F,34),q&4&&Object.freeze(F));return F};
o7q=function(F,q,t){F=new F.constructor(q);t&&(F.copyOnWrite=Qz);F.noLegacyNull=Qz;return F};
kvo=function(F){var q=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=q[_.sv]|0;return eC(F,t)?F:n7$(F,q,t)?o7q(F,q):yT(q,t)};
yT=function(F,q,t,u){u!=null||(u=!!(34&q));F=g7u(F,q,z9q,u);u=32;t&&(u|=2);q=q&8380609|u;lJ(F,q);return F};
dn$=function(F){var q=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=q[_.sv]|0;return eC(F,t)?n7$(F,q,t)?o7q(F,q,!0):new F.constructor(yT(q,t,!1)):F};
dJ=function(F){if(F.copyOnWrite!==Qz)return!1;var q=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q=yT(q,q[_.sv]|0);dAq(q,2048);F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=q;F.copyOnWrite=void 0;F.noLegacyNull=void 0;return!0};
VT=function(F){if(!dJ(F)&&eC(F,F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sv]|0))throw Error();};
UC=function(F,q){q===void 0&&(q=F[_.sv]|0);q&32&&!(q&4096)&&lJ(F,q|4096)};
n7$=function(F,q,t){return t&2?!0:t&32&&!(t&4096)?(lJ(q,t|2),F.copyOnWrite=Qz,!0):!1};
S5=function(F,q,t,u,J){var g=t+(J?0:-1),Y=F.length-1;if(Y>=1+(J?0:-1)&&g>=Y){var Q=F[Y];if(Q!=null&&typeof Q==="object"&&Q.constructor===Object)return Q[t]=u,q}if(g<=Y)return F[g]=u,q;if(u!==void 0){var e;Y=((e=q)!=null?e:q=F[_.sv]|0)>>13&1023||536870912;t>=Y?u!=null&&(g={},F[Y+(J?0:-1)]=(g[t]=u,g)):F[g]=u}return q};
_.Lh=function(F,q,t,u,J){var g=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=g[_.sv]|0;u=eC(F,Y)?1:u;J=!!J||u===3;u===2&&dJ(F)&&(g=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=g[_.sv]|0);F=M5A(g,q);var Q=F===Kh?7:F[_.sv]|0,e=TJt(Q,Y);var r=4&e?!1:!0;if(r){4&e&&(F=Vz(F),Q=0,e=Bs(e,Y),Y=S5(g,Y,q,F));for(var N=0,w=0;N<F.length;N++){var k=t(F[N]);k!=null&&(F[w++]=k)}w<N&&(F.length=w);t=(e|4)&-513;e=t&=-1025;e&=-4097}e!==Q&&(lJ(F,e),2&e&&Object.freeze(F));return F=GvW(F,e,g,
Y,q,u,r,J)};
GvW=function(F,q,t,u,J,g,Y,Q){var e=q;g===1||(g!==4?0:2&q||!(16&q)&&32&u)?fh(q)||(q|=!F.length||Y&&!(4096&q)||32&u&&!(4096&q||16&q)?2:256,q!==e&&lJ(F,q),Object.freeze(F)):(g===2&&fh(q)&&(F=Vz(F),e=0,q=Bs(q,u),u=S5(t,u,J,F)),fh(q)||(Q||(q|=16),q!==e&&lJ(F,q)));2&q||!(4096&q||16&q)||UC(t,u);return F};
M5A=function(F,q,t){F=ay(F,q,t);return Array.isArray(F)?F:Kh};
TJt=function(F,q){2&q&&(F|=2);return F|1};
fh=function(F){return!!(2&F)&&!!(4&F)||!!(256&F)};
DDy=function(F){return _.G1(F,!0)};
Wvf=function(F){F=Vz(F);for(var q=0;q<F.length;q++){var t=F[q]=Vz(F[q]);Array.isArray(t[1])&&(t[1]=XL(t[1]))}return F};
Ohf=function(F,q){var t=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=t[_.sv]|0;a:{var J=u;u=eC(F,u);!u&&dJ(F)&&(t=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=t[_.sv]|0);var g=ay(t,q);F=!1;if(g==null){if(u){q=Krt();break a}g=[]}else if(g.constructor===Ws)if(g.arrayState&2&&!u)g=E7_(g);else{q=g;break a}else Array.isArray(g)?F=!!((g[_.sv]|0)&2):g=[];if(u){if(!g.length){q=Krt();break a}F||(F=!0,XL(g))}else F&&(F=!1,g=Wvf(g));!F&&J&32&&UAq(g);u=new Ws(g,void 0,bef,bef);J=S5(t,
J,q,u);F||UC(t,J);q=u}return q};
_.j5=function(F,q,t,u){VT(F);var J=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=J[_.sv]|0;if(t==null)return S5(J,g,q),F;var Y=t===Kh?7:t[_.sv]|0,Q=Y,e=fh(Y),r=e||Object.isFrozen(t);e||(Y=0);r||(t=Vz(t),Q=0,Y=Bs(Y,g),r=!1);Y|=5;var N;e=(N=VWu(Y))!=null?N:0;for(N=0;N<t.length;N++){var w=t[N],k=u(w,e);Object.is(w,k)||(r&&(t=Vz(t),Q=0,Y=Bs(Y,g),r=!1),t[N]=k)}Y!==Q&&(r&&(t=Vz(t),Y=Bs(Y,g)),lJ(t,Y));S5(J,g,q,t);return F};
_.cs=function(F,q,t,u,J){VT(F);var g=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;S5(g,g[_.sv]|0,q,(u==="0"?Number(t)===0:t===u)?void 0:t,J);return F};
_.FI=function(F,q,t){if(q&2)throw Error();var u=Pf(q),J=M5A(F,t,u),g=J===Kh?7:J[_.sv]|0,Y=TJt(g,q);if(2&Y||fh(Y)||16&Y)J=Vz(J),g=0,Y=Bs(Y,q),S5(F,q,t,J,u);Y&=-13;Y!==g&&lJ(J,Y);return J};
Pwu=function(F){if(JE){var q;return(q=F[qy])!=null?q:F[qy]=new Map}if(qy in F)return F[qy];q=new Map;Object.defineProperty(F,qy,{value:q});return q};
A9$=function(F,q,t,u,J){var g=Pwu(F),Y=xDy(g,F,q,t,J);Y!==u&&(Y&&(q=S5(F,q,Y,void 0,J)),g.set(t,u));return q};
xDy=function(F,q,t,u,J){var g=F.get(u);if(g!=null)return g;for(var Y=g=0;Y<u.length;Y++){var Q=u[Y];ay(q,Q,J)!=null&&(g!==0&&(t=S5(q,t,g,void 0,J)),g=Q)}F.set(u,g);return g};
v7W=function(F,q,t,u,J){var g=!1;u=ay(F,u,J,function(Y){var Q=$nt(Y,t,!1,q);g=Q!==Y&&Q!=null;return Q});
if(u!=null)return g&&!eC(u)&&UC(F,q),u};
IQv=function(F,q,t,u,J,g,Y,Q){var e=eC(F,t);g=e?1:g;Y=!!Y||g===3;e=Q&&!e;(g===2||e)&&dJ(F)&&(q=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=q[_.sv]|0);F=M5A(q,J);var r=F===Kh?7:F[_.sv]|0,N=TJt(r,t);if(Q=!(4&N)){var w=F,k=t,z=!!(2&N);z&&(k|=2);for(var T=!z,P=!0,v=0,H=0;v<w.length;v++){var d=$nt(w[v],u,!1,k);if(d instanceof u){if(!z){var a=eC(d);T&&(T=!a);P&&(P=a)}w[H++]=d}}H<v&&(w.length=H);N|=4;N=P?N&-4097:N|4096;N=T?N|8:N&-9}N!==r&&(lJ(F,N),2&N&&Object.freeze(F));if(e&&!(8&N||!F.length&&
(g===1||(g!==4?0:2&N||!(16&N)&&32&t)))){fh(N)&&(F=Vz(F),N=Bs(N,t),t=S5(q,t,J,F));u=F;e=N;for(r=0;r<u.length;r++)w=u[r],N=dn$(w),w!==N&&(u[r]=N);e|=8;N=e=u.length?e|4096:e&-4097;lJ(F,N)}return F=GvW(F,N,q,t,J,g,Q,Y)};
HhM=function(F){F==null&&(F=void 0);return F};
Bs=function(F,q){return F=(2&q?F|2:F&-3)&-273};
_.mDq=function(F,q,t,u,J){VT(F);q=_.Lh(F,q,J,2,!0);var g;J=(g=VWu(q===Kh?7:q[_.sv]|0))!=null?g:0;q.push(t(u,J));return F};
$Dv=function(F,q,t,u,J,g,Y){VT(F);var Q=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;F=IQv(F,Q,Q[_.sv]|0,t,q,2,!0);if(g&&Y)J!=null||(J=F.length-1),hot(F,J),F.splice(J,g),F.length||(F[_.sv]&=-4097);else{if(g){if(typeof J!=="number"||J<0||J>F.length)throw Error();}else u=u!=null?u:new t;J!=void 0?F.splice(J,g,u):F.push(u);J=t=F===Kh?7:F[_.sv]|0;(u=eC(u))?(t&=-9,F.length===1&&(t&=-4097)):t|=4096;t!==J&&lJ(F,t);u||UC(Q)}};
y93=function(F,q){if(typeof F==="string")return new tQ(H3_(F),q);if(Array.isArray(F))return new tQ(new Uint8Array(F),q);if(F.constructor===Uint8Array)return new tQ(F,!1);if(F.constructor===ArrayBuffer)return F=new Uint8Array(F),new tQ(F,!1);if(F.constructor===iJ)return q=bhv(F)||new Uint8Array(0),new tQ(q,!0,F);if(F instanceof Uint8Array)return F=F.constructor===Uint8Array?F:new Uint8Array(F.buffer,F.byteOffset,F.byteLength),new tQ(F,!1);throw Error();};
dDt=function(F){switch(typeof F){case "string":CwW(F)}};
UDP=function(F){switch(typeof F){case "string":V5q(F)}};
ue=function(){var F=function(){throw Error();};
Object.setPrototypeOf(F,F.prototype);return F};
h9P=function(F,q){var t=t===void 0?SCW:t;return new sS(F,q,t)};
Lvo=function(F,q,t,u,J){Kvu(F,t,BJ3(q,u),J)};
g$=function(F,q,t,u){var J=u[F];if(J)return J;J={};J.binaryFields=u;J.messageMetadata=R93(u[0]);var g=u[1],Y=1;g&&g.constructor===Object&&(J.extensions=g,g=u[++Y],typeof g==="function"&&(J.isMessageSet=!0,fQq!=null||(fQq=g),aQ$!=null||(aQ$=u[Y+1]),g=u[Y+=2]));for(var Q={};g&&jyt(g);){for(var e=0;e<g.length;e++)Q[g[e]]=g;g=u[++Y]}for(e=1;g!==void 0;){typeof g==="number"&&(e+=g,g=u[++Y]);var r=void 0;if(g instanceof sS)var N=g;else N=c9o,Y--;g=void 0;if((g=N)==null?0:g.$$isMsg){g=u[++Y];r=u;var w=Y;
typeof g==="function"&&(g=g(),r[w]=g);r=g}g=u[++Y];w=e+1;typeof g==="number"&&g<0&&(w-=g,g=u[++Y]);for(;e<w;e++){var k=Q[e];r?t(J,e,N,r,k):q(J,e,N,k)}}return u[F]=J};
jyt=function(F){return Array.isArray(F)&&!!F.length&&typeof F[0]==="number"&&F[0]>0};
qSM=function(F){return Array.isArray(F)?F[0]instanceof sS?F:[Ftq,F]:[F,void 0]};
BJ3=function(F,q){if(F instanceof _.le)return F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(F))return bw(F,q,!1)};
tOy=function(F,q,t,u){var J=t.$$binaryReaderFn;F[q]=u?function(g,Y,Q){return J(g,Y,Q,u)}:J};
JQv=function(F,q,t,u,J){var g=t.$$binaryReaderFn,Y,Q;F[q]=function(e,r,N){return g(e,r,N,Q||(Q=g$(uIq,tOy,JQv,u).messageMetadata),Y||(Y=sKo(u)),J)}};
sKo=function(F){var q=F[gny];if(q!=null)return q;var t=g$(uIq,tOy,JQv,F);q=t.isMessageSet?function(u,J){return fQq(u,J,t)}:function(u,J){for(;lq3(J)&&J.nextWireType_!=4;){var g=J.nextField_,Y=t[g];
if(Y==null){var Q=t.extensions;Q&&(Q=Q[g])&&(Q=XSq(Q),Q!=null&&(Y=t[g]=Q))}if(Y==null||!Y(J,u,g)){Q=J;Y=Q.fieldCursor_;YSt(Q);if(Q.discardUnknownFields)var e=void 0;else{var r=Q.decoder_.cursor_-Y;Q.decoder_.cursor_=Y;e=pS$(Q.decoder_,r)}r=Q=Y=void 0;var N=u;e&&((Y=(Q=(r=N[Ps])!=null?r:N[Ps]=new J9t)[g])!=null?Y:Q[g]=[]).push(e)}}if(u=BxW(u))u.reviveUnknownFields=t.binaryFields[QKu];return!0};
F[gny]=q;F[QKu]=eZ3.bind(F);return q};
eZ3=function(F,q,t,u){var J=this[uIq],g=this[gny],Y=bw(void 0,J.messageMetadata,!1),Q=BxW(F);if(Q){var e=!1,r=J.extensions;if(r){J=function(T,P,v){if(v.length!==0)if(r[P])for(T=_.X(v),P=T.next();!P.done;P=T.next()){P=Zlo(P.value);try{e=!0,g(Y,P)}finally{P.free()}}else u==null||u(F,P,v)};
if(q==null)t5A(Q,J);else if(Q!=null){var N=Q[q];N&&J(Q,q,N)}if(e){var w=F[_.sv]|0;if(w&2&&w&2048&&(t==null||!t.reviveIntoImmutable))throw Error();var k=Pf(w),z=function(T,P){if(ay(F,T,k)!=null)switch(t==null?void 0:t.resolutionBehavior){case 1:return;default:throw Error();}P!=null&&(w=S5(F,w,T,P,k));delete Q[T]};
q==null?K$C(Y,Y[_.sv]|0,function(T,P){z(T,P)}):z(q,ay(Y,q,k))}}}};
XSq=function(F){F=qSM(F);var q=F[0].$$binaryReaderFn;if(F=F[1]){var t=sKo(F),u=g$(uIq,tOy,JQv,F).messageMetadata;return function(J,g,Y){return q(J,g,Y,u,t)}}return q};
RZq=function(F,q,t){F[q]=t.$$binaryWriterFn};
N$M=function(F,q,t,u){var J,g,Y=t.$$binaryWriterFn;F[q]=function(Q,e,r){return Y(Q,e,r,g||(g=g$(rQW,RZq,N$M,u).messageMetadata),J||(J=wSW(u)))}};
wSW=function(F){var q=F[ilo];if(!q){var t=g$(rQW,RZq,N$M,F);q=function(u,J){return k9o(u,J,t)};
F[ilo]=q}return q};
k9o=function(F,q,t){K$C(F,F[_.sv]|0,function(u,J){if(J!=null){var g=EnP(t,u);g?g(q,J,u):u<500||b3o(zZC,3)}});
(F=BxW(F))&&t5A(F,function(u,J,g){XI(q,q.encoder_.end());for(u=0;u<g.length;u++)XI(q,bhv(g[u])||new Uint8Array(0))})};
EnP=function(F,q){var t=F[q];if(t)return t;if(t=F.extensions)if(t=t[q]){t=qSM(t);var u=t[0].$$binaryWriterFn;if(t=t[1]){var J=wSW(t),g=g$(rQW,RZq,N$M,t).messageMetadata;t=F.isMessageSet?aQ$(g,J):function(Y,Q,e){return u(Y,Q,e,g,J)}}else t=u;
return F[q]=t}};
_.onf=function(F,q,t){if(Array.isArray(q)){var u=q[_.sv]|0;if(u&4)return q;for(var J=0,g=0;J<q.length;J++){var Y=F(q[J]);Y!=null&&(q[g++]=Y)}g<J&&(q.length=g);t&&(lJ(q,(u|5)&-1537),u&2&&Object.freeze(q));return q}};
_.pl=function(F,q,t){return new sS(F,q,t)};
_.nnv=function(F,q,t){return new sS(F,q,t)};
_.Qy=function(F,q,t){S5(F,F[_.sv]|0,q,t,Pf(F[_.sv]|0))};
MOA=function(F,q,t){q=_.hE(q);q!=null&&(_.eO(F,t,1),F=F.encoder_,t=uLP||(uLP=new DataView(new ArrayBuffer(8))),t.setFloat64(0,+q,!0),Ij=t.getUint32(0,!0),mr=t.getUint32(4,!0),_.Zq(F,Ij),_.Zq(F,mr))};
T$t=function(F,q,t){q=_.hE(q);q!=null&&(_.eO(F,t,5),F=F.encoder_,JEt(q),_.Zq(F,Ij))};
_.r$=function(F,q,t){q=vOP(q);if(q!=null&&(dDt(q),q!=null))switch(_.eO(F,t,0),typeof q){case "number":F=F.encoder_;$O(q);RK(F,Ij,mr);break;case "bigint":t=BigInt.asUintN(64,q);t=new G9M(Number(t&BigInt(4294967295)),Number(t>>BigInt(32)));RK(F.encoder_,t.JSC$8855_lo,t.JSC$8855_hi);break;default:t=CwW(q),RK(F.encoder_,t.JSC$8855_lo,t.JSC$8855_hi)}};
Wtf=function(F,q,t){q=_.J9(q);q!=null&&q!=null&&(_.eO(F,t,0),_.Dyo(F.encoder_,q))};
_.Peo=function(F,q,t){Olo(F,t,Iwu(q))};
xy_=function(F,q,t){q=_.Qjy(q);q!=null&&(_.eO(F,t,0),F.encoder_.JSC$8857_buffer_.push(q?1:0))};
vno=function(F,q,t){q=_.EC(q);q!=null&&AQo(F,t,Jov(q))};
IqC=function(F,q,t,u,J){Kvu(F,t,BJ3(q,u),J)};
_.Hl_=function(F,q,t){q=q==null||typeof q=="string"||q instanceof iJ?q:void 0;q!=null&&AQo(F,t,y93(q,!0).buffer)};
myo=function(F,q,t){q=_.Rdt(q);q!=null&&q!=null&&(_.eO(F,t,0),Ny(F.encoder_,q))};
_.$y$=function(F,q,t){q=_.J9(q);q!=null&&(q=parseInt(q,10),_.eO(F,t,0),_.Dyo(F.encoder_,q))};
_.w$=function(F,q){return function(t,u){var J={treatNewDataAsImmutable:!0};u&&Object.assign(J,u);t=Zlo(t,void 0,void 0,J);try{var g=new F,Y=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;sKo(q)(Y,t);var Q=g}finally{t.free()}return Q}};
_.ES=function(F){return function(q){return bly(q,F)}};
yQv=function(F){return function(){return bly(this,F)}};
_.CeW=function(F){return AE(function(q){return q instanceof F&&!eC(q)})};
_.oK=function(F){return function(q){return dyA(F,q)}};
hZf=function(F,q){return VOf({child:F,origin:q||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Uyt,getPayloadCase:function(t){return t.getPayloadCase()},
createInitMessage:function(t){var u=new nl,J=new SSq;t=_.My(J,1,t);return _.T9(u,5,G9,t)}})};
Dq=function(F){return{valueOf:F}.valueOf()};
B$u=function(){var F=null;if(!Ktu)return F;try{var q=function(t){return t};
F=Ktu.createPolicy("goog#html",{createHTML:q,createScript:q,createScriptURL:q})}catch(t){}return F};
fqM=function(){LtM===void 0&&(LtM=B$u());return LtM};
_.OS=function(F){var q=fqM();F=q?q.createScriptURL(F):F;return new WS(F)};
_.PS=function(F){if(F instanceof WS)return F.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.xn=function(F){return Object.isFrozen(F)&&Object.isFrozen(F.raw)};
aqP=function(F){return F.toString().indexOf("`")===-1};
IK=function(F){return new _.vS(jKv,F)};
HS=function(F){return F instanceof _.vS};
_.mt=function(F){if(HS(F))return F.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
$n=function(F){return new cQq(function(q){return q.substr(0,F.length+1).toLowerCase()===F+":"})};
_.yy=function(F,q){q=q===void 0?FZv:q;if(HS(F))return F;for(var t=0;t<q.length;++t){var u=q[t];if(u instanceof cQq&&u.isValid(F))return IK(F)}};
_.d$=function(F,q){q=q===void 0?FZv:q;return _.yy(F,q)||Cl};
_.Vy=function(F){var q=window;if(typeof MediaSource!=="undefined"&&F instanceof MediaSource||typeof q.ManagedMediaSource!=="undefined"&&F instanceof q.ManagedMediaSource)return IK(URL.createObjectURL(F));q=F.type;q.toLowerCase()==="application/octet-stream"?q=!0:(q=q.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),q=(q==null?void 0:q.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(q[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(q[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(q[1])||/^font\/[\w-]+$/i.test(q[1])));if(!q)throw Error("Z");return IK(URL.createObjectURL(F))};
_.qsW=function(F){for(var q=_.US.apply(1,arguments),t=[F[0]],u=0;u<q.length;u++)t.push(String(q[u])),t.push(F[u+1]);return IK(t.join(""))};
_.uYu=function(F){if(!tSP){a:{var q=document.createElement("a");try{q.href=F}catch(t){F=void 0;break a}F=q.protocol;F=F===":"||F===""?"https:":F}return F}try{q=new URL(F)}catch(t){return"https:"}return q.protocol};
_.SO=function(F){F instanceof _.vS?F=_.mt(F):F=JKC.test(F)?F:void 0;return F};
Kl=function(F,q){q=_.SO(q);q!==void 0&&(F.href=q)};
Ll=function(F){var q=fqM();F=q?q.createHTML(F):F;return new BS(F)};
fl=function(F){if(F instanceof BS)return F.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.aK=function(F,q){F.src=_.PS(q).toString()};
s2M=function(F,q){F.setAttribute("sandbox","");for(var t=0;t<q.length;t++)F.sandbox.supports&&!F.sandbox.supports(q[t])||F.sandbox.add(q[t])};
_.loC=function(F,q,t){F.removeAttribute("srcdoc");switch(q){case 0:if(t instanceof WS)throw new glq("TrustedResourceUrl",0);s2M(F,[]);q=_.SO(t);q!==void 0&&(F.src=q);break;case 1:if(!(t instanceof WS))throw new glq(typeof t,1);s2M(F,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.aK(F,t);break;case 2:if(t instanceof WS)throw new glq("TrustedResourceUrl",2);s2M(F,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
q=_.SO(t);q!==void 0&&(F.src=q);break;default:_.Uv(q)}};
_.jO=function(F,q,t,u){q=_.SO(q);return q!==void 0?F.open(q,t,u):null};
_.cS=function(F){F=F===void 0?document:F;var q,t;F=(t=(q=F).querySelector)==null?void 0:t.call(q,"script[nonce]");return F==null?"":F.nonce||F.getAttribute("nonce")||""};
_.qv=function(F){var q=fqM();F=q?q.createScript(F):F;return new _.FY(F)};
XAo=function(F){if(F instanceof _.FY)return F.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
Yso=function(F){var q=_.cS(F.ownerDocument);q&&F.setAttribute("nonce",q)};
_.tK=function(F,q){F.textContent=XAo(q);Yso(F)};
_.uF=function(F,q){F.src=_.PS(q);Yso(F)};
_.JK=function(F,q){if(F.nodeType===1&&/^(script|style)$/i.test(F.tagName))throw Error("Z");F.innerHTML=fl(q)};
_.ss=function(F,q,t,u){if(F.length===0)throw Error("Z");F=F.map(function(g){if(g instanceof pA3)g=g.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return g});
var J=t.toLowerCase();if(F.every(function(g){return J.indexOf(g)!==0}))throw Error("aa`"+t);
q.setAttribute(t,u)};
_.lF=function(F,q,t){if(q instanceof WS)F.href=_.PS(q).toString(),F.rel=t;else{if(Q2o.indexOf(t)===-1)throw Error("ba`"+t);q=_.SO(q);q!==void 0&&(F.href=q,F.rel=t)}};
ePA=function(F){if(F instanceof XY)return F.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.Z6C=function(F,q){q=_.SO(q);q!==void 0&&(F.href=q)};
RPo=function(F){return _.OS(F)};
rKf=function(F,q){F&&(q=F.indexOf(q),0<=q&&F.splice(q,1))};
Yl=function(F){return typeof F==="function"};
NL3=function(F){return F instanceof p6||F&&"closed"in F&&Yl(F.remove)&&Yl(F.add)&&Yl(F.unsubscribe)};
QM=function(){};
eS=function(F){wAA(function(){throw F;})};
Zo=function(F){return F};
rL=function(){return i6q(_.US.apply(0,arguments))};
i6q=function(F){return F.length===0?Zo:F.length===1?F[0]:function(q){return F.reduce(function(t,u){return u(t)},q)}};
kgt=function(F){var q;return(q=F!=null?F:void 0)!=null?q:Promise};
Elo=function(F,q){return new Nv(function(t){var u=0;return q.schedule(function(){u===F.length?t.complete():(t.next(F[u++]),t.closed||this.schedule())})})};
zPW=function(F,q){if(!F)throw Error("ca");return new Nv(function(t){var u=new p6;u.add(q.schedule(function(){var J=F[Symbol.asyncIterator]();u.add(q.schedule(function(){var g=this;J.next().then(function(Y){Y.done?t.complete():(t.next(Y.value),g.schedule())})}))}));
return u})};
olM=function(F,q,t){q=q.schedule(function(){try{t.call(this)}catch(u){F.error(u)}},0);
F.add(q)};
MSo=function(F,q){return new Nv(function(t){var u;t.add(q.schedule(function(){u=F[nlv]();olM(t,q,function(){var J=u.next(),g=J.value;J.done?t.complete():(t.next(g),this.schedule())})}));
return function(){var J;return Yl((J=u)==null?void 0:J.return)&&u.return()}})};
TLM=function(F,q){return new Nv(function(t){var u=new p6;u.add(q.schedule(function(){var J=F[wL]();u.add(J.subscribe({next:function(g){u.add(q.schedule(function(){return t.next(g)}))},
error:function(g){u.add(q.schedule(function(){return t.error(g)}))},
complete:function(){u.add(q.schedule(function(){return t.complete()}))}}))}));
return u})};
Ggo=function(F,q){return new Nv(function(t){return q.schedule(function(){return F.then(function(u){t.add(q.schedule(function(){t.next(u);t.add(q.schedule(function(){return t.complete()}))}))},function(u){t.add(q.schedule(function(){return t.error(u)}))})})})};
Dvo=function(F){return new TypeError("da`"+(F!==null&&typeof F==="object"?"an invalid object":"'"+F+"'"))};
O6u=function(F,q){if(F!=null){if(Yl(F[wL]))return TLM(F,q);if(WZo(F))return Elo(F,q);if(Yl(F==null?void 0:F.then))return Ggo(F,q);if(Symbol.asyncIterator&&Yl(F==null?void 0:F[Symbol.asyncIterator]))return zPW(F,q);if(Yl(F==null?void 0:F[nlv]))return MSo(F,q)}throw Dvo(F);};
kl=function(F,q){return q?O6u(F,q):iF(F)};
iF=function(F){if(F instanceof Nv)return F;if(F!=null){if(Yl(F[wL]))return PFq(F);if(WZo(F))return xvW(F);if(Yl(F==null?void 0:F.then))return AKf(F);if(Symbol.asyncIterator&&Yl(F==null?void 0:F[Symbol.asyncIterator]))return vlf(F);if(Yl(F==null?void 0:F[nlv]))return Iot(F)}throw Dvo(F);};
PFq=function(F){return new Nv(function(q){var t=F[wL]();if(Yl(t.subscribe))return t.subscribe(q);throw new TypeError("ea");})};
xvW=function(F){return new Nv(function(q){for(var t=0;t<F.length&&!q.closed;t++)q.next(F[t]);q.complete()})};
AKf=function(F){return new Nv(function(q){F.then(function(t){q.closed||(q.next(t),q.complete())},function(t){return q.error(t)}).then(null,eS)})};
Iot=function(F){return new Nv(function(q){for(var t=F[nlv]();!q.closed;){var u=t.next(),J=u.value;u.done?q.complete():q.next(J)}return function(){return Yl(t==null?void 0:t.return)&&t.return()}})};
vlf=function(F){return new Nv(function(q){H63(F,q).catch(function(t){return q.error(t)})})};
H63=function(F,q){var t,u,J,g,Y,Q;return _.p(function(e){switch(e.nextAddress){case 1:_.zg(e,2,3),g=_.o2(F);case 5:return e.yield(g.next(),8);case 8:u=e.yieldResult;if(u.done){e.jumpTo(3);break}Y=u.value;q.next(Y);e.jumpTo(5);break;case 3:_.n6(e);_.Mv(e,9);if(!u||u.done||!(J=g.return)){e.jumpTo(9);break}return e.yield(J.call(g),9);case 9:_.n6(e,0,0,1);if(t)throw t.error;_.Tg(e,10,1);break;case 10:_.Tg(e,4);break;case 2:Q=_.Gg(e);t={error:Q};e.jumpTo(3);break;case 4:q.complete(),_.WA(e)}})};
mvC=function(F,q){return q?Elo(F,q):xvW(F)};
$vv=function(F){return Yl(F[F.length-1])?F.pop():void 0};
Os=function(F){var q=F[F.length-1];return q&&Yl(q.schedule)?F.pop():void 0};
PA=function(){var F=_.US.apply(0,arguments),q=Os(F);return q?Elo(F,q):mvC(F)};
xl=function(F){var q=Yl(F)?F:function(){return F};
return new Nv(function(t){return t.error(q())})};
AK=function(F){return function(q){if(Yl(q==null?void 0:q.lift))return q.lift(function(t){try{return F(t,this)}catch(u){this.error(u)}});
throw new TypeError("fa");}};
I2=function(){return AK(function(F,q){var t=null;F._refCount++;var u=new vA(q,void 0,void 0,void 0,function(){if(!F||F._refCount<=0||0<--F._refCount)t=null;else{var J=F._connection,g=t;t=null;!J||g&&J!==g||J.unsubscribe();q.unsubscribe()}});
F.subscribe(u);u.closed||(t=F.connect())})};
yK_=function(){var F=b6y;var q=q===void 0?0:q;return AK(function(t,u){u.add(F.schedule(function(){return t.subscribe(u)},q))})};
HA=function(F){return AK(function(q,t){var u=0;q.subscribe(new vA(t,function(J){t.next(F.call(void 0,J,u++))}))})};
dvA=function(F){return HA(function(q){return CFy(q)?F.apply(null,_.mZ(q)):F(q)})};
KZM=function(F){if(F.length===1){var q=F[0];if(VSq(q))return{args:q,keys:null};if(q&&typeof q==="object"&&UvP(q)===Ssy)return F=hPC(q),{args:F.map(function(t){return q[t]}),
keys:F}}return{args:F,keys:null}};
$l=function(){var F=_.US.apply(0,arguments),q=Os(F),t=$vv(F);F=KZM(F);var u=F.args,J=F.keys;if(u.length===0)return kl([],q);q=new Nv(BLy(u,q,J?function(g){for(var Y={},Q=0;Q<g.length;Q++)Y[J[Q]]=g[Q];return Y}:Zo));
return t?q.pipe(dvA(t)):q};
BLy=function(F,q,t){t=t===void 0?Zo:t;return function(u){LZt(q,function(){for(var J=F.length,g=Array(J),Y=J,Q=F.map(function(){return!1}),e=!0,r={i$jscomp$217:0};r.i$jscomp$217<J;r={i$jscomp$217:r.i$jscomp$217},r.i$jscomp$217++)LZt(q,function(N){return function(){kl(F[N.i$jscomp$217],q).subscribe(new bF(u,function(w){g[N.i$jscomp$217]=w;
e&&(Q[N.i$jscomp$217]=!0,e=!Q.every(Zo));e||u.next(t(g.slice()))},function(){return--Y===0}))}}(r),u)},u)}};
LZt=function(F,q,t){F?t.add(F.schedule(q)):q()};
foo=function(F,q,t,u){var J=[],g=0,Y=0,Q=!1,e=function(r){g++;iF(t(r,Y++)).subscribe(new vA(q,function(N){q.next(N)},void 0,function(){g--;
for(var N={};J.length&&g<u;N={bufferedValue:void 0})N.bufferedValue=J.shift(),e(N.bufferedValue);!Q||J.length||g||q.complete()}))};
F.subscribe(new vA(q,function(r){return g<u?e(r):J.push(r)},void 0,function(){Q=!0;
!Q||J.length||g||q.complete()}));
return function(){J=null}};
yM=function(F,q){var t=t===void 0?Infinity:t;if(Yl(q))return yM(function(u,J){return HA(function(g,Y){return q(u,g,J,Y)})(iF(F(u,J)))},t);
typeof q==="number"&&(t=q);return AK(function(u,J){return foo(u,J,F,t)})};
aoW=function(F){F=F===void 0?Infinity:F;return yM(Zo,F)};
j2y=function(){var F=_.US.apply(0,arguments);return aoW(1)(mvC(F,Os(F)))};
cKo=function(F){return new Nv(function(q){iF(F()).subscribe(q)})};
C6=function(F,q,t){if(Yl(t)){var u=t;t=void 0}if(u)return C6(F,q,t).pipe(dvA(u));u=_.X(Yl(F.addEventListener)&&Yl(F.removeEventListener)?F7A.map(function(Y){return function(Q){return F[Y](q,Q,t)}}):Yl(F.addListener)&&Yl(F.removeListener)?qFA.map(tA_(F,q)):Yl(F.on)&&Yl(F.off)?u$f.map(tA_(F,q)):[]);
var J=u.next().value,g=u.next().value;return!J&&WZo(F)?yM(function(Y){return C6(Y,q,t)})(mvC(F)):new Nv(function(Y){if(!J)throw new TypeError("ga");
var Q=function(){var e=_.US.apply(0,arguments);return Y.next(1<e.length?e:e[0])};
J(Q);return function(){return g(Q)}})};
tA_=function(F,q){return function(t){return function(u){return F[t](q,u)}}};
VM=function(){var F=_.US.apply(0,arguments),q=Os(F);var t=typeof F[F.length-1]==="number"?F.pop():Infinity;return F.length?F.length===1?iF(F[0]):aoW(t)(mvC(F,q)):dL};
sVy=function(F){return F.length===1&&JWA(F[0])?F[0]:F};
gqy=function(){var F=sVy(_.US.apply(0,arguments));return AK(function(q,t){var u=[q].concat(_.mZ(F)),J=function(){if(!t.closed)if(u.length>0){try{var g=iF(u.shift())}catch(Q){J();return}var Y=new vA(t,void 0,QM,QM);t.add(g.subscribe(Y));Y.add(J)}else t.complete()};
J()})};
Us=function(F){return AK(function(q,t){var u=0;q.subscribe(new vA(t,function(J){return F.call(void 0,J,u++)&&t.next(J)}))})};
Xn_=function(){var F=_.US.apply(0,arguments);F=sVy(F);return F.length===1?iF(F[0]):new Nv(l4C(F))};
l4C=function(F){return function(q){for(var t=[],u={i$jscomp$220:0};t&&!q.closed&&u.i$jscomp$220<F.length;u={i$jscomp$220:u.i$jscomp$220},u.i$jscomp$220++)t.push(iF(F[u.i$jscomp$220]).subscribe(new vA(q,function(J){return function(g){if(t){for(var Y=0;Y<t.length;Y++)Y!==J.i$jscomp$220&&t[Y].unsubscribe();t=null}q.next(g)}}(u))))}};
YFW=function(){var F=_.US.apply(0,arguments),q=$vv(F),t=sVy(F);return t.length?new Nv(function(u){var J=t.map(function(){return[]}),g=t.map(function(){return!1});
u.add(function(){J=g=null});
for(var Y={sourceIndex$jscomp$1:0};!u.closed&&Y.sourceIndex$jscomp$1<t.length;Y={sourceIndex$jscomp$1:Y.sourceIndex$jscomp$1},Y.sourceIndex$jscomp$1++)iF(t[Y.sourceIndex$jscomp$1]).subscribe(new vA(u,function(Q){return function(e){J[Q.sourceIndex$jscomp$1].push(e);J.every(function(r){return r.length})&&(e=J.map(function(r){return r.shift()}),u.next(q?q.apply(null,_.mZ(e)):e),J.some(function(r,N){return!r.length&&g[N]})&&u.complete())}}(Y),void 0,function(Q){return function(){g[Q.sourceIndex$jscomp$1]=
!0;
!J[Q.sourceIndex$jscomp$1].length&&u.complete()}}(Y)));
return function(){J=g=null}}):dL};
pnu=function(F){var q,t,u;return!!F&&typeof F.active==="boolean"&&typeof((q=F.clock)==null?void 0:q.now)==="function"&&((t=F.clock)==null?void 0:t.timeline)!==void 0&&!((u=F.lastMeasurement)==null||!u.timestamp)&&typeof F.equivalentTo==="function"&&typeof F.extrapolateToNow==="function"&&typeof F.extrapolateToTime==="function"&&typeof F.map==="function"&&typeof F.joinWith==="function"};
QVq=function(F){function q(t){return typeof t==="boolean"||typeof t==="string"||typeof t==="number"||t===void 0||t===null}
return q(F)?!0:Array.isArray(F)?F.every(q):typeof F==="object"?Object.keys(F).every(function(t){return typeof t==="string"})&&Object.values(F).every(function(t){return Array.isArray(t)?t.every(q):q(t)}):!1};
ehA=function(F){if(QVq(F))return F;if(pnu(F))return{lastMeasurement:{value:ehA(F.lastMeasurement.value),timestamp:hK(F.lastMeasurement.timestamp,new K6(0,F.lastMeasurement.timestamp.timeline))},active:F.active};try{return JSON.parse(JSON.stringify(F))}catch(q){}return String(F)};
BA=function(F,q){return function(t){return new Nv(function(u){return t.subscribe(function(J){F.timeExecution(q,function(){u.next(J)})()},function(J){F.timeExecution(q,function(){u.error(J)})()},function(){F.timeExecution(q,function(){u.complete()})()})})}};
Zsf=function(F,q){var t=!1;return new Nv(function(u){var J=F.setTimeout(function(){t=!0;u.next(!0);u.complete()},q);
return function(){t||F.clearTimeout(J)}})};
Rho=function(F){F=F.global;if(F.fetchLater)return F.fetchLater.bind(F)};
L6=function(F){return AK(function(q,t){var u=null,J=!1,g;u=q.subscribe(new vA(t,void 0,function(Y){g=iF(F(Y,L6(F)(q)));u?(u.unsubscribe(),u=null,g.subscribe(t)):J=!0}));
J&&(u.unsubscribe(),u=null,g.subscribe(t))})};
rW$=function(F,q,t){return function(u,J){var g=t,Y=q,Q=0;u.subscribe(new vA(J,function(e){var r=Q++;Y=g?F(Y,e,r):(g=!0,e);J.next(Y)},void 0,void 0))}};
Nhv=function(F){F=F===void 0?null:F;return AK(function(q,t){var u=!1;q.subscribe(new vA(t,function(J){u=!0;t.next(J)},void 0,function(){u||t.next(F);
t.complete()}))})};
f6=function(){return AK(function(F,q){F.subscribe(new vA(q,QM))})};
a2=function(F){return AK(function(q,t){q.subscribe(new vA(t,function(){return t.next(F)}))})};
jS=function(F){return F<=0?function(){return dL}:AK(function(q,t){var u=0;
q.subscribe(new vA(t,function(J){++u<=F&&(t.next(J),F<=u&&t.complete())}))})};
cA=function(F){var q=q===void 0?Zo:q;var t;F=(t=F)!=null?t:wnP;return AK(function(u,J){var g,Y=!0;u.subscribe(new vA(J,function(Q){var e=q(Q);if(Y||!F(g,e))Y=!1,g=e,J.next(Q)}))})};
wnP=function(F,q){return F===q};
k0C=function(F){F=F===void 0?isy:F;return AK(function(q,t){var u=!1;q.subscribe(new vA(t,function(J){u=!0;t.next(J)},void 0,function(){return u?t.complete():t.error(F())}))})};
isy=function(){return new Eqq};
F$=function(){var F=_.US.apply(0,arguments);return function(q){return j2y(q,PA.apply(null,_.mZ(F)))}};
zho=function(F){return AK(function(q,t){var u=0;q.subscribe(new vA(t,function(J){F.call(void 0,J,u++,q)||(t.next(!1),t.complete())},void 0,function(){t.next(!0);
t.complete()}))})};
oqv=function(){return AK(function(F,q){var t=[];F.subscribe(new vA(q,function(u){t.push(u);1<t.length&&t.shift()},void 0,function(){for(var u=_.X(t),J=u.next();!J.done;J=u.next())q.next(J.value);
q.complete()},function(){t=null}))})};
nqo=function(F,q){var t=arguments.length>=2;return function(u){return u.pipe(F?Us(function(J,g){return F(J,g,u)}):Zo,oqv(),t?Nhv(q):k0C(function(){return new Eqq}))}};
tW=function(F){var q=Yl(F)?F:function(){return F};
return Yl()?AK(function(t,u){var J=q();(void 0)(J).subscribe(u).add(t.subscribe(J))}):function(t){var u=new qa(t,q);
Yl(t==null?void 0:t.lift)&&(u.lift=t.lift);u.source=t;u.subjectFactory=q;return u}};
JW=function(F){var q=new uQ(F,void 0,void 0);return function(t){return tW(function(){return q})(t)}};
sF=function(F,q){return AK(rW$(F,q,arguments.length>=2))};
gh=function(){var F=_.US.apply(0,arguments),q=Os(F);return AK(function(t,u){(q?j2y(F,t,q):j2y(F,t)).subscribe(u)})};
Yq=function(F){return AK(function(q,t){var u=null,J=0,g=!1;q.subscribe(new vA(t,function(Y){var Q;(Q=u)==null||Q.unsubscribe();Q=J++;iF(F(Y,Q)).subscribe(u=new vA(t,function(e){return t.next(e)},void 0,function(){u=null;
g&&!u&&t.complete()}))},void 0,function(){(g=!0,!u)&&t.complete()}))})};
ps=function(F,q){q=q===void 0?!1:q;return AK(function(t,u){var J=0;t.subscribe(new vA(u,function(g){var Y=F(g,J++);(Y||q)&&u.next(g);!Y&&u.complete()}))})};
MAo=function(F,q,t){var u=Yl(F)||q||t?{next:F,error:q,complete:t}:F;return u?AK(function(J,g){J.subscribe(new vA(g,function(Y){var Q;(Q=u.next)==null||Q.call(u,Y);g.next(Y)},function(Y){var Q;
(Q=u.error)==null||Q.call(u,Y);g.error(Y)},function(){var Y;
(Y=u.complete)==null||Y.call(u);g.complete()}))}):Zo};
Tho=function(){var F=_.US.apply(0,arguments),q=$vv(F);return AK(function(t,u){for(var J=F.length,g=Array(J),Y=F.map(function(){return!1}),Q=!1,e={i$jscomp$230:0};e.i$jscomp$230<J;e={i$jscomp$230:e.i$jscomp$230},e.i$jscomp$230++)iF(F[e.i$jscomp$230]).subscribe(new vA(u,function(r){return function(N){g[r.i$jscomp$230]=N;
Q||Y[r.i$jscomp$230]||(Y[r.i$jscomp$230]=!0,(Q=Y.every(Zo))&&(Y=null))}}(e),void 0,QM));
t.subscribe(new vA(u,function(r){Q&&(r=[r].concat(_.mZ(g)),u.next(q?q.apply(null,_.mZ(r)):r))}))})};
Daf=function(F){try{return!!F&&F.location.href!=null&&G0C(F,"foo")}catch(q){return!1}};
W7W=function(F){var q=[],t=0,u;for(u in F)q[t++]=u;return q};
Oso=function(F,q){for(var t in F)if(F[t]==q)return!0;return!1};
PQf=function(F,q,t){for(var u in F)if(q.call(t,F[u],u,F))return u};
xao=function(F){if(!F||typeof F!=="object")return F;if(typeof F.clone==="function")return F.clone();if(typeof Map!=="undefined"&&F instanceof Map)return new Map(F);if(typeof Set!=="undefined"&&F instanceof Set)return new Set(F);if(F instanceof Date)return new Date(F.getTime());var q=Array.isArray(F)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(F)||F instanceof DataView?{}:new F.constructor(F.length),t;for(t in F)q[t]=xao(F[t]);return q};
AWq=function(F){var q=arguments.length;if(q==1&&Array.isArray(arguments[0]))return AWq.apply(null,arguments[0]);if(q%2)throw Error("ka");for(var t={},u=0;u<q;u+=2)t[arguments[u]]=arguments[u+1];return t};
vq3=function(F){var q=arguments.length;if(q==1&&Array.isArray(arguments[0]))return vq3.apply(null,arguments[0]);for(var t={},u=0;u<q;u++)t[arguments[u]]=!0;return t};
_.Qp=function(F){return new pA3(F[0].toLowerCase())};
I4$=function(F){for(var q=_.US.apply(1,arguments),t=F[0],u=0;u<F.length-1;u++)t+=String(q[u]),t+=F[u+1];q=document.implementation.createHTMLDocument("");u=q.createElement("style");q.head.appendChild(u);q=u.sheet;q.insertRule(t,0);if(q.cssRules.length===1&&(t=q.cssRules[0],t instanceof CSSStyleRule))return new XY(t.cssText.replace(/</g,"\\3C "))};
Hsq=function(F){try{return new URL(F,window.document.baseURI)}catch(q){return new URL("about:invalid")}};
maW=function(F,q){var t=q.createRange();t.selectNode(q.body);F=Ll(F);return t.createContextualFragment(fl(F))};
$af=function(F){F=F.nodeName;return typeof F==="string"?F:"FORM"};
bs3=function(F){F=F.nodeType;return F===1||typeof F!=="number"};
eA=function(F,q,t){F.setAttribute(q,t)};
yWo=function(F){return F.parts.map(function(q){var t=q.descriptor;return""+q.url+(t?" "+t:"")}).join(" , ")};
_.RV=function(F){var q=_.US.apply(1,arguments);if(q.length===0)return _.OS(F[0]);for(var t=F[0],u=0;u<q.length;u++)t+=encodeURIComponent(q[u])+F[u+1];return _.OS(t)};
_.Na=function(F,q){F=_.PS(F).toString();var t=F.split(/[?#]/),u=/[?]/.test(F)?"?"+t[1]:"";return CQ_(t[0],u,/[#]/.test(F)?"#"+(u?t[2]:t[1]):"",q)};
CQ_=function(F,q,t,u){function J(Y,Q){Y!=null&&(Array.isArray(Y)?Y.forEach(function(e){return J(e,Q)}):(q+=g+encodeURIComponent(Q)+"="+encodeURIComponent(Y),g="&"))}
var g=q.length?"&":"?";u.constructor===Object&&(u=Object.entries(u));Array.isArray(u)?u.forEach(function(Y){return J(Y[1],Y[0])}):u.forEach(J);
return _.OS(F+q+t)};
wh=function(F,q,t,u){this.top=F;this.right=q;this.bottom=t;this.left=u};
da3=function(F){F=F.global;if(F.PendingGetBeacon)return F.PendingGetBeacon};
kq=function(F){return function(q){return q.pipe(VA$(F,tW(new iQ)))}};
EF=function(F){return function(q){return q.pipe(VA$(F,JW(1)))}};
VA$=function(F,q){function t(u){return new Nv(function(J){return u.subscribe(function(g){z0(F,function(){return void J.next(g)},3)},function(g){z0(F,function(){return void J.error(g)},3)},function(){z0(F,function(){return void J.complete()},3)})})}
return rL(t,yK_(),q,I2(),t)};
hht=function(F){var q=Uaq(F);return q===null?new oV(null):q.pipe(HA(function(t){t=t.serialize();if(SFv)t=_.uu.btoa(t);else{for(var u=[],J=0,g=0;g<t.length;g++){var Y=t.charCodeAt(g);Y>255&&(u[J++]=Y&255,Y>>=8);u[J++]=Y}t=_.A9(u)}return t}),jS(1),EF(F.queue))};
K7A=function(F){var q=q===void 0?{}:q;if(typeof Event==="function")return new Event(F,q);if(typeof document!=="undefined"){var t=document.createEvent("CustomEvent");t.initCustomEvent(F,q.bubbles||!1,q.cancelable||!1,q.detail);return t}throw Error();};
Bhq=function(F){return typeof F==="string"?document.getElementById(F):F};
f4P=function(F){var q=!1;q=q===void 0?!1:q;if(F.tagName==="IMG"){if(F.complete&&(!F.naturalWidth||!F.naturalHeight))return!0;var t;if(q&&((t=F.style)==null?void 0:t.display)==="none")return!0}var u,J;return L7o.test((u=F.getAttribute("width"))!=null?u:"")&&L7o.test((J=F.getAttribute("height"))!=null?J:"")};
a4C=function(F,q){if(F.tagName==="IMG")return F.naturalWidth&&F.naturalHeight?!0:!1;try{if(F.readyState)var t=F.readyState;else{var u,J;t=(u=F.contentWindow)==null?void 0:(J=u.document)==null?void 0:J.readyState}return t==="complete"}catch(g){return q===void 0?!1:q}};
jVv=function(F){F||(F=function(q,t,u){q.addEventListener(t,u)});
return F};
tr_=function(F,q){var t=cWC();t=t===void 0?new Fgt:t;if(F=Bhq(F)){var u=jVv(u);for(var J=!1,g=function(v){J||(J=!0,q(v))},Y,Q=2,e=0;e<qPA.length;++e)if(qPA[e]===F.tagName){Q=3;
Y=[F];break}Y||(Y=F.querySelectorAll(qPA.join(",")));var r=0,N=0,w=!0,k=F=!1;e={};for(var z=0;z<Y.length;e={isImg:void 0},z++){var T=Y[z];if(!f4P(T))if(e.isImg=T.tagName==="IMG",a4C(T,t.crossDomainLoadedDefault))F=!0,e.isImg&&(w=!0);else{r++;var P=function(v){return function(H){r--;!r&&w&&g(Q);v.isImg&&(H=H&&H.type==="error",N--,H||(w=!0),!N&&k&&w&&g(Q))}}(e);
u(T,"load",P);e.isImg&&(N++,u(T,"error",P))}}N===0&&(w=!0);Y=null;Y=_.uu.document.readyState==="complete";if(r===0&&!F&&Y)Q=5;else if(r||!F){u(_.uu,"load",function(){!t.pendingImagesBlockLoad||!N&&w?g(4):k=!0});
return}g(Q)}};
uNt=function(F,q,t){if(F)for(var u=0;F!=null&&u<500&&!t(F);++u)F=q(F)};
JGu=function(F,q){uNt(F,function(t){try{return t===t.parent?null:t.parent}catch(u){}return null},q)};
sXM=function(F,q){if(F.tagName=="IFRAME")q(F);else{F=F.querySelectorAll("IFRAME");for(var t=0;t<F.length&&!q(F[t]);++t);}};
gW3=function(F){return(F=F.ownerDocument)&&(F.parentWindow||F.defaultView)||null};
lW3=function(F,q,t){try{var u=JSON.parse(t.data)}catch(Y){}if(typeof u==="object"&&u&&u.type==="creativeLoad"){var J=gW3(F);if(t.source&&J){var g;JGu(t.source,function(Y){try{if(Y.parent===J)return g=Y,!0}catch(Q){}});
g&&sXM(F,function(Y){if(Y.contentWindow===g)return q(u),!0})}}};
XdP=function(F){return typeof F==="string"?document.getElementById(F):F};
eB3=function(){var F={};return F[0]=_.RV(YPo,"current"),F[1]=_.RV(pdM),F[2]=_.RV(QX$),F};
ns=function(F,q){return F.left===q.left&&F.top===q.top&&F.width===q.width&&F.height===q.height};
Zr$=function(F,q){return{left:Math.max(F.left,q.left),top:Math.max(F.top,q.top),width:Math.max(0,Math.min(F.left+F.width,q.left+q.width)-Math.max(F.left,q.left)),height:Math.max(0,Math.min(F.top+F.height,q.top+q.height)-Math.max(F.top,q.top))}};
RBt=function(F,q){return{left:Math.round(F.left+q.x),top:Math.round(F.top+q.y),width:F.width,height:F.height}};
rGP=function(F,q,t){if(F&&q!==null&&q!=q.top){if(!q.top)return new _.Ma(-12245933,-12245933);q=q.top}try{return(t===void 0?0:t)?(new _.Ma(q.innerWidth,q.innerHeight)).round():_.G0(q).round()}catch(u){return new _.Ma(-12245933,-12245933)}};
No_=function(F,q,t){try{if(F){if(!q.top)return new wh(-12245933,-12245933,-12245933,-12245933);q=q.top}var u=rGP(F,q,t),J=u.height,g=u.width;if(g===-12245933)return new wh(g,g,g,g);var Y=D4(Wn(q.document)),Q=Y.x,e=Y.y;return new wh(e,Q+g,e+J,Q)}catch(r){return new wh(-12245933,-12245933,-12245933,-12245933)}};
wdv=function(F){var q;return(q=F.google_tag_data)!=null?q:F.google_tag_data={}};
irW=function(F){var q,t;return typeof((q=F.navigator)==null?void 0:(t=q.userAgentData)==null?void 0:t.getHighEntropyValues)==="function"};
EWy=function(F){if(!irW(F))return null;var q=wdv(F);if(q.uach_promise)return q.uach_promise;F=F.navigator.userAgentData.getHighEntropyValues(k4P).then(function(t){q.uach!=null||(q.uach=t);return t});
return q.uach_promise=F};
AGq=function(F){var q;return zB3(oWP(nWP(MrA(Too(G4$(Dq_(WgP(Oru(new Pau,F.architecture||""),F.bitness||""),F.mobile||!1),F.model||""),F.platform||""),F.platformVersion||""),F.uaFullVersion||""),((q=F.fullVersionList)==null?void 0:q.map(function(t){var u=new xqo;u=_.OF(u,1,t.brand);return _.OF(u,2,t.version)}))||[]),F.wow64||!1)};
vWv=function(F){var q,t;return(t=(q=EWy(F))==null?void 0:q.then(function(u){return AGq(u)}))!=null?t:null};
IWv=function(F,q){return new Nv(function(t){var u=!1,J=Array(q.length);J.fill(void 0);var g=new Set,Y=new Set,Q=function(w,k){F.running?(J[k]=w,g.add(k),u||(u=!0,z0(F,function(){u=!1;t.next(_.C3(J))},1))):t.error(new xq(k))},e=function(w,k){Y.add(k);
g.add(k);z0(F,function(){t.error(w)},1)},r=function(w){Y.add(w);
z0(F,function(){Y.size===q.length&&t.complete()},1)},N=q.map(function(w,k){return w.subscribe(function(z){return void Q(z,k)},function(z){return void e(z,k)},function(){return void r(k)})});
return function(){N.forEach(function(w){return void w.unsubscribe()})}})};
$qW=function(F,q,t){function u(){if(q.debugChannel){var v=q.debugChannel,H=v.next;var d={creativeId:q.debugNames.getName(t),requiredSignals:J,signals:Object.assign({},g),hasPrematurelyCompleted:Y,errorMessage:Q,erroredSignalKey:e};d={specMajor:2,specMinor:0,specPatch:0,timestamp:hK(q.timeProvider.now(),new K6(0,q.timeProvider.timeline)),instanceId:q.debugNames.getName(q.symbol),creativeState:d};H.call(v,d)}}
for(var J=Object.keys(F),g={},Y=!1,Q=null,e=null,r={},N=new Set,w=[],k=[],z=_.X(J),T=z.next(),P={};!T.done;P={key$jscomp$396:void 0},T=z.next())P.key$jscomp$396=T.value,T=F[P.key$jscomp$396],T instanceof oV?(r[P.key$jscomp$396]=T.value,N.add(P.key$jscomp$396),q.debugChannel&&(g[String(P.key$jscomp$396)]=ehA(T.value))):(T=T.pipe(cA(function(v,H){return pnu(v)||pnu(H)?!1:v===H}),HA(function(v){return function(H){q.debugChannel&&(g[String(v.key$jscomp$396)]=ehA(H),u());
var d={};return d[v.key$jscomp$396]=H,d}}(P)),L6(function(v){return function(H){if(H instanceof xq)throw new HrC(String(v.key$jscomp$396));
throw H;}}(P)),MAo(function(v){return function(){N.add(v.key$jscomp$396)}}(P),function(v){return function(H){e=String(v.key$jscomp$396);
Q=String(H);u()}}(P),function(v){return function(){N.has(v.key$jscomp$396)||(Y=!0,u())}}(P))),k.push(P.key$jscomp$396),w.push(T));
(F=Object.keys(g).length>0)&&u();z=IWv(q.queue,w).pipe(L6(function(v){if(v instanceof xq)throw new mqP(String(k[v.inputObservableIndex]));throw v;}),HA(function(v){return Object.freeze(Object.assign.apply(Object,[{},
r].concat(_.mZ(v))))}));
return(w=w.length>0)&&F?VM(PA(Object.freeze(r)),z):w?z:PA(Object.freeze(r))};
bro=function(F,q,t,u,J){return F.performanceMonitor.timeExecution.bind(F.performanceMonitor)(733,function(){var g={};try{return q.pipe(L6(function(Y){u(Object.assign({},g,{error:Y}));return dL}),yM(function(Y){try{var Q=t(F,Y)}catch(r){return u(Object.assign({},g,{error:r instanceof Error?r:String(r)})),dL}var e={};
return $qW(Q,F,Y.symbol).pipe(MAo(function(r){e=r}),JW(1),I2()).pipe(J,L6(function(r){u(Object.assign({},e,{error:r}));
return dL}),F$(void 0),HA(function(){return!0}))})).pipe(sF(function(Y){return Y+1},0),L6(function(Y){u(Object.assign({},g,{error:Y}));
return dL}))}catch(Y){return u(Object.assign({},g,{error:Y})),dL}})()};
AW=function(F){var q=new Map;if(typeof F!=="object"||F===null)return q;Object.values(F).forEach(function(t){t&&typeof t.extrapolateToNow==="function"&&(q.has(t.clock.timeline)||q.set(t.clock.timeline,t.clock.now()))});
return q};
yG_=function(F,q){return typeof F==="string"?encodeURIComponent(F):typeof F==="number"?String(F):Array.isArray(F)?F.map(function(t){return yG_(t,q)}).join(","):F instanceof K6?F.toString():F&&typeof F.extrapolateToNow==="function"?yG_(F.extrapolateUsingTimestampMap(q).value,q):F===!0?"1":F===!1?"0":F===void 0||F===null?null:F instanceof CaW?dq3(F):[F.top,
F.left,F.top+F.height,F.left+F.width].join()};
Vr$=function(F,q){F=Object.entries(F).map(function(t){var u=_.X(t);t=u.next().value;u=u.next().value;u=yG_(u,q);return u===null?"":t+"="+u}).filter(function(t){return t!==""});
return F.length?F.join("&"):""};
hB$=function(F,q){var t=Uqo,u=SPo;q=q===void 0?.01:q;return function(J){q>0&&Math.random()<=q&&(F.global.HTMLFencedFrameElement&&F.global.fence&&typeof F.global.fence.reportEvent==="function"&&F.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),J=Object.assign({},J,{errorMessage:J.error instanceof Error&&J.error.message?J.error.message:String(J.error),errorStack:J.error instanceof Error&&J.error.stack?String(J.error.stack):null,errorName:J.error instanceof
Error&&J.error.name?String(J.error.name):null,errorContext:String(F.performanceMonitor.timedFunctionContext),errorEscapedQueryId:J.escapedQueryId}),t(Object.assign({},J,{payloadMapper:function(){return function(g){try{return u(Object.assign({},g))}catch(Y){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),AW(J)).forEach(function(g){F.beaconFactory.makeBeacon(g).sendNow()}))}};
Kgu=function(){var F=_.US.apply(0,arguments);return function(q){var t=q.pipe(JW(1),I2());q=F.map(function(u){return t.pipe(u,F$(!0))});
return $l(q).pipe(jS(1),f6())}};
Bo3=function(){var F=_.US.apply(0,arguments);return function(q){var t=q.pipe(JW(1),I2());q=F.map(function(u){return t.pipe(u,F$(!0))});
return VM.apply(null,_.mZ(q)).pipe(jS(1),f6())}};
LgM=function(F,q){return function(t){var u=t.pipe(JW(1),I2());t=u.pipe(F,F$(!0));u=u.pipe(rL(q,JW(),I2()),F$(!0));t=$l([t,u]);return Xn_(t,u).pipe(jS(1),f6())}};
fWo=function(F,q,t){t(!0)};
aWf=function(F,q){return rL(Yq(function(t){var u=F(t),J=q(t),g={};return u&&J&&g?new Nv(function(Y){J(u,g,function(Q){Y.next(Object.assign({},t,{canEmit:Q}));Y.complete()});
return function(){}}):vn}),Us(function(t){return t.canEmit}))};
jX_=function(F){var q={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(t){return t.pipe(Yq(function(u){return new Nv(function(J){function g(){Q.disconnect();e.unsubscribe()}
var Y=F.MutationObserver;if(Y&&u.ref!==void 0){var Q=new Y(function(r){J.next(r)});
Q.observe(u.ref,q);var e=u.JSC$9353_released.subscribe(g);return g}})}))}};
cGo=function(F){if(F.measurementDeferralState===3)return null;if(F.timeOnScreenReason!==void 0){var q=F.creativeFound===!1?"n":null;if(q!==null)return q}return F.geometricMeasurementErrors instanceof IV?"msf":F.contextValidationErrors instanceof Hn?"c":F.contextVisibilityKnown===!1?"pv":F.geometricMeasurementErrors||F.contextValidationErrors?"x":null};
qd_=function(F,q){return F.replace(F1M,function(t,u){try{var J=_.m7.get(q,u);if(J==null||J.toString()==null)return t;J=J.toString();if(J==""||!_.YP(J==null?"":String(J)))return encodeURIComponent(J).replace(/%2C/g,",")}catch(g){}return t})};
ttM=function(F,q){var t=Object.assign({},F),u=F.userAgentClientHints;t=(delete t.userAgentClientHints,t);t=F.payloadMapper(t);var J=Vr$(t,q);return _.$q(F.urlPrefixes,function(g){var Y="";typeof u==="string"&&(Y="&"+Vr$({uach:u},q));var Q={};return qd_(g,(Q.VIEWABILITY=J,Q))+Y})};
Uqo=function(F,q){var t=F.payloadMapper(F),u=Vr$(t,q);return u?_.$q(F.urlPrefixes,function(J){J=J.indexOf("?")>=0?J:J+"?";J="?&".indexOf(J.slice(-1))>=0?J:J+"&";return J+u}):F.urlPrefixes};
u6$=function(){return rL(Us(function(F){return F!==void 0}),HA(function(F){return F}))};
JOM=function(F){return rL(HA(function(){return!0}),gh(!1),EF(F))};
svP=function(F){return F.length<=0?dL:$l(F.map(function(q){var t=0;return q.pipe(HA(function(u){return{index:t++,value:u}}))})).pipe(Us(function(q){return q.every(function(t){return t.index===q[0].index})}),HA(function(q){return q.map(function(t){return t.value})}))};
gRt=function(F,q){F.currentState&&(F.previousState=F.currentState);F.currentState=q;F.previousState&&F.previousState.value?(q=Math.max(0,hK(q.timestamp,F.previousState.timestamp)),F.totalTime+=q,F.consecutiveTime+=q):F.consecutiveTime=0;return F};
lVM=function(){return rL(sF(gRt,{totalTime:0,consecutiveTime:0}),HA(function(F){return F.totalTime}))};
Xju=function(){return rL(sF(gRt,{totalTime:0,consecutiveTime:0}),HA(function(F){return F.consecutiveTime}))};
YdM=function(F,q){return function(t){return svP(q.map(function(u){return t.pipe(F(u))}))}};
pjy=function(){var F;return rL(MAo(function(q){return void(F=q.timestamp)}),Xju(),HA(function(q){return{timestamp:F,
value:Math.round(q)}}))};
Qvo=function(F,q){return ns(F.topWindowViewportExternalGeometry,q.topWindowViewportExternalGeometry)&&ns(F.elementGeometry,q.elementGeometry)&&ns(F.exposedViewportLocalGeometry,q.exposedViewportLocalGeometry)&&ns(F.intersectionGeometry,q.intersectionGeometry)&&F.elementGeometrySourceName===q.elementGeometrySourceName&&F.measurementRequests===q.measurementRequests&&F.viewportGeometrySourceName===q.viewportGeometrySourceName&&F.viewportLocalAppOffset.x===q.viewportLocalAppOffset.x&&F.viewportLocalAppOffset.y===
q.viewportLocalAppOffset.y};
rOq=function(F,q){return function(t){return function(u){var J=u.pipe(tW(new iQ),I2());u=t.element.pipe(cA());J=J.pipe(HA(function(g){return g.value}));
return $l([u,J,q]).pipe(HA(function(g){var Y=_.X(g);g=Y.next().value;var Q=Y.next().value;Y=Y.next().value;if(g.ref===void 0)var e={top:0,left:0,width:0,height:0};else{e=g.ref.getBoundingClientRect();var r=g.ref,N=F.global,w=new _.bQ(0,0),k=yp(_.Cs(r));if(G0C(k,"parent")){do{if(k==N)var z=_.dh(r);else z=e4M(r),z=new _.bQ(z.left,z.top);w.x+=z.x;w.y+=z.y}while(k&&k!=N&&k!=k.parent&&(r=k.frameElement)&&(k=k.parent))}e={top:w.y,left:w.x,width:e.width,height:e.height}}e=RBt(e,Q.viewportLocalAppOffset);
N=Zr$(e,Q.exposedViewportLocalGeometry);w=F.timeProvider.now();k=Object;r=k.assign;if(Y!==2||F.inCrossDomainIframe||N.width<=0||N.height<=0)var T=!1;else try{var P=F.document.elementFromPoint(N.left+N.width/2,N.top+N.height/2);T=P?!Zq$(P,g):!1}catch(v){T=!1}return{timestamp:w,value:r.call(k,{},Q,{elementGeometrySourceName:"geo",intersectionGeometry:T?R4A.intersectionGeometry:N,elementGeometry:e})}}),kq(F.queue))}}};
Zq$=function(F,q,t){t=t===void 0?0:t;return F.ref===void 0||q.ref===void 0?!1:F.ref===q.ref||_.Vp(q.ref,function(u){return u===F.ref})?!0:q.ref.ownerDocument&&q.ref.ownerDocument.defaultView&&q.ref.ownerDocument.defaultView===q.ref.ownerDocument.defaultView.top?!1:t<10&&q.ref.ownerDocument&&q.ref.ownerDocument.defaultView&&q.ref.ownerDocument.defaultView.frameElement?Zq$(F,new UF(q.ref.ownerDocument.defaultView.frameElement),t+1):!0};
iq3=function(F){return function(q){return q.pipe(F.ResizeObserver?NPP(F):wjo(F),JW(1),I2())}};
NPP=function(F){return function(q){return q.pipe(Yq(function(t){var u=F.ResizeObserver;if(!u||t.ref===void 0)return PA(R4A.elementGeometry);var J=(new Nv(function(g){function Y(){t.ref!==void 0&&Q.unobserve(t.ref);Q.disconnect();e.unsubscribe()}
if(t.ref===void 0)return g.complete(),function(){};
var Q=new u(function(r){r.forEach(function(N){g.next(N)})});
Q.observe(t.ref);var e=t.JSC$9353_released.subscribe(Y);return Y})).pipe(BA(F.performanceMonitor,736),HA(function(g){return g.contentRect}));
return VM(PA(t.ref.getBoundingClientRect()),J)}),cA(ns))}};
wjo=function(F){return function(q){var t=q.pipe(jX_(F)),u=F.onResize;t=VM(q.pipe(HA(function(){return K7A("resize")})),t,u);
return $l(q,t).pipe(BA(F.performanceMonitor,737),HA(function(J){J=_.X(J).next().value;return J.ref===void 0?void 0:J.ref.getBoundingClientRect()}),u6$(),cA(ns))}};
z4M=function(F,q){var t=kyW(F,q).pipe(JW(1),I2());return function(u){return function(J){J=J.pipe(Yq(function(g){return g.element}),cA());
return $l([t,J]).pipe(Yq(function(g){var Y=_.X(g);g=Y.next().value;Y=Y.next().value;return ER$(F,g.intersectionObserver,iq3(F),g.observations,u,g.flushRecords,Y)}),kq(F.queue))}}};
oR3=function(F){return HA(function(q){return q.value.viewportGeometrySourceName!=="nio"?q:Object.assign({},q,{value:Object.assign({},q.value,{exposedViewportLocalGeometry:SA(F,!0),topWindowViewportExternalGeometry:SA(F,!0)})})})};
nR3=function(F,q){return PA(q).pipe(F,HA(function(){return q}))};
kyW=function(F,q){return F.timeProvider.timeline!==Mtv?xl(new IV(2)):F.MutationObserver?typeof IntersectionObserver==="undefined"?xl(new IV(0)):(new Nv(function(t){var u=new iQ,J=new hW(u.next.bind(u),{threshold:[].concat(_.mZ(q))});t.next({observations:u.pipe(BA(F.performanceMonitor,735)),intersectionObserver:J,flushRecords:function(g){g=J.takeRecords(g);g.length>0&&u.next(g)}})})).pipe(jS(1),JW(1),I2()):xl(new IV(1))};
TPW=function(F){return O6u(F.sort(function(q,t){return q.time-t.time}),b6y)};
ER$=function(F,q,t,u,J,g,Y){return new Nv(function(Q){function e(){T||(T=!0,Y.ref!==void 0&&q.unobserve(J,Y.ref),N.unsubscribe(),z.unsubscribe(),k.unsubscribe(),P.unsubscribe())}
if(Y.ref!==void 0){Gy3(q,J);q.observe(J,Y.ref);var r=new Bn({timestamp:F.timeProvider.now(),value:Object.assign({},R4A,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),N=u.pipe(yM(function(v){return TPW(v)}),Us(function(v){return v.target===Y.ref}),HA(function(v){return{timestamp:new K6(v.time,Mtv),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:v.rootBounds||Ls,topWindowViewportExternalGeometry:v.rootBounds||SA(F,!0),measurementRequests:w,elementGeometrySourceName:"nio",intersectionGeometry:v.intersectionRect,elementGeometry:v.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:v.isIntersecting,isV2Visible:v.isVisible}}}),tW(r),I2()).subscribe(Q),w=new iQ,k=w.subscribe(function(){g(J);
Q.next({timestamp:F.timeProvider.now(),value:r.value.value});Y.ref!==void 0&&(q.unobserve(J,Y.ref),q.observe(J,Y.ref))}),z=nR3(t,Y).subscribe(function(){w.next()}),T=!1,P=Y.JSC$9353_released.subscribe(function(){return e()});
return e}})};
D3v=function(F,q){var t=F.getOnBackgrounded().pipe(HA(function(){return"b"}));
return Xn_(q,t).pipe(jS(1),EF(F.queue))};
aV=function(F){return function(q){var t;return q.pipe(MAo(function(u){return void(t=u.timestamp)}),HA(function(u){return u.value}),F,HA(function(u){return{timestamp:t,
value:u}}))}};
W1o=function(F){return F.intersectionGeometry.width*F.intersectionGeometry.height/(F.elementGeometry.width*F.elementGeometry.height)};
jA=function(F,q,t){t=t===void 0?function(u,J){return u===J}:t;
return F.timestamp.equals(q.timestamp)&&t(F.value,q.value)};
FN=function(F,q){return q.pipe(HA(function(t){return new cn(F.timeProvider,{timestamp:F.timeProvider.now(),value:t})}))};
Oqu=function(F){return function(q){return q.pipe(Tho(F),HA(function(t){var u=_.X(t);t=u.next().value;u=u.next().value;var J=t.value;return{timestamp:t.timestamp,value:J>=1?!0:J<=0?!1:J>=u}}))}};
x3t=function(){return rL(Us(function(F,q){return q>0}),P5u,gh(-1),cA())};
AOo=function(F,q,t){return F?$l([q,t]).pipe(Us(function(u){var J=_.X(u);u=J.next().value;J=J.next().value;return u.timestamp.equals(J.timestamp)}),HA(function(u){var J=_.X(u);
u=J.next().value;J=J.next().value;return u.value>J.value?u:J})):q};
Hqq=function(F){return function(q){var t=q.pipe(vRM),u=q.pipe(IVM);return F instanceof Nv?F.pipe(Yq(function(J){return AOo(J,t,u)})):AOo(F.value,t,u)}};
h4C=function(F,q,t,u){var J=u.geometryIsOccluded,g=u.exposureThreshold,Y=u.wasLargeAdAtRender,Q=u.allowLargeAdThreshold,e=u.largeAdExposureThreshold,r=u.mayUseViewportShareExposure,N=u.hasMeasurementStarted;u=u.useIntersectionObserverV2;q=m3M(F,t,q);t=$3u(F,t);u=bqW(q,u);var w=yOy(F,J,r,q),k=w.pipe(HA(function(K){return K.value}),cA(),EF(F),sF(function(K,h){return Math.max(K,h)},0)),z=w.pipe(HA(function(K){return K.value}),x3t(),EF(F)),T=q.pipe(C5f,HA(function(K){return K.value}),jS(2),cA(),EF(F));
Y=d3C(F,q,Y,Q);var P=Y.pipe(gh(!1),cA(),HA(function(K){return K?e:g}));
Q=w.pipe(Oqu(P),cA(),EF(F));var v=$l([Q,q]).pipe(Us(function(K){var h=_.X(K);K=h.next().value;h=h.next().value;return K.timestamp.equals(h.timestamp)}),HA(function(K){var h=_.X(K);
K=h.next().value;h=h.next().value;return{visible:K.value,geometry:h.value.elementGeometry}}),sF(function(K,h){return!h.visible&&K.visible?K:h},{visible:!1,
geometry:Ls}),HA(function(K){return K.geometry}),gh(Ls),EF(F),cA(ns));
r=r instanceof Nv?r.pipe(cA(),a2()):vn;P=$l([r,P]).pipe(a2());var H=q.pipe(Us(function(K){return K.value.viewportGeometrySourceName!=="ns"&&K.value.elementGeometrySourceName!=="ns"}),sF(function(K){return K+1},0),gh(0),EF(F)),d=t.pipe(a2(!0),gh(!1),EF(F));
d=$l([N,d]).pipe(HA(function(K){var h=_.X(K);K=h.next().value;h=h.next().value;return K&&!h}),EF(F));
var a=q.pipe(VtA,cA()),S=a.pipe(HA(function(K){return K.value}),sF(function(K,h){return Math.max(K,h)},0),cA(),EF(F));
F=a.pipe(HA(function(K){return K.value}),x3t(),EF(F));
return{shouldResetExposureSignals:r,shouldResetViewabilitySignals:P,geometrySignals:{readyGeometryWithDefault:q,measurementStrategy:q.pipe(U33),creativePosition:v.pipe(cA(ns)),visible:Q.pipe(cA(jA)),timestampedExposure:w.pipe(cA(jA)),maximumExposure:k,minimumExposure:z,browserSize:q.pipe(Sdf,cA(_.By)),timestampedScreenShare:a,maxScreenShare:S,minScreenShare:F,geometricMeasurementErrors:t,measurementRequests:q.pipe(HA(function(K){return K.value.measurementRequests})),
isLargeAd:Y,geometryIsOccluded:J,hasMeasurementStarted:N,geometryMeasurable:d,validMeasurementCount:H,loadTimeExposure:T,v2VisibilityBitVector:u}}};
$3u=function(F,q){return q.pipe(Us(function(){return!1}),HA(function(t){return t}),L6(function(t){return qq(new oV(t),F)}))};
m3M=function(F,q,t){return q.pipe(gqy(vn),EF(F)).pipe(cA(function(u,J){return jA(u,J,Qvo)}),gh({timestamp:t.now(),
value:R4A}),EF(F))};
yOy=function(F,q,t,u){t=u.pipe(Hqq(t),aV(HA(function(J){return Math.round(J*100)/100})),EF(F));
return q instanceof oV?t:$l([t,q]).pipe(HA(function(J){var g=_.X(J);J=g.next().value;g=g.next().value;return{timestamp:g.timestamp.maximum(J.timestamp),value:g.value?0:J.value}}),cA(jA),EF(F))};
d3C=function(F,q,t,u){q=[q.pipe(HA(function(J){return J.value.elementGeometry.width*J.value.elementGeometry.height>=242500}))];
t instanceof Nv&&q.push(t.pipe(HA(function(J){return!!J})));
t=$l(q);return u?t.pipe(HA(function(J){return J.some(function(g){return g})}),gh(!1),cA(),EF(F)):qq(new oV(!1),F)};
bqW=function(F,q){F=$l([F,q]).pipe(HA(function(J){var g=_.X(J);J=g.next().value;if(g.next().value&&J.value.isIntersecting)return J.value.isV2Visible}),cA());
var t=F.pipe(HA(function(J){return J===void 0?!0:J}),sF(function(J,g){return J||!g},!1)),u=F.pipe(sF(function(J,g){return g===void 0?J:g?!1:J!=null?J:!0},void 0),HA(function(J){return!!J}));
return $l([q,YFW(F,t,u)]).pipe(HA(function(J){var g=_.X(J);J=g.next().value;var Y=_.X(g.next().value);g=Y.next().value;var Q=Y.next().value;Y=Y.next().value;var e=0;if(!J)return 0;if(g===void 0)return 16;g&&(e|=1);g||(e|=2);Q&&(e|=4);Y&&(e|=8);return e}))};
jvo=function(F,q,t,u,J){var g=K1W.timeThresholdMs;var Y=Y===void 0?new BP$(q,u):Y;return(new Nv(function(Q){var e=t.pipe(gh(void 0),Yq(function(){return L1t(J)})).pipe(HA(function(r){var N=r.value;
r=r.timestamp;var w=N.visible;N=N.consecutiveViewTime;var k=N>=g;k||!w?fVo(Y):(r=Math.max(0,hK(q.now(),r)),aVo(Y,Math.max(0,g-N-r)));return k}),sF(function(r,N){return N||r},!1),cA()).subscribe(Q);
return function(){Y.dispose();e.unsubscribe()}})).pipe(ps(function(Q){return!Q},!0),EF(F))};
L1t=function(F){return svP([F,F.pipe(pjy())]).pipe(HA(function(q){var t=_.X(q);q=t.next().value;t=t.next().value;return{timestamp:q.timestamp,value:{visible:q.value,consecutiveViewTime:t.value}}}),cA(function(q,t){return jA(q,t,function(u,J){return u.consecutiveViewTime===J.consecutiveViewTime&&u.visible===J.visible})}))};
cOM=function(){return rL(Xju(),sF(function(F,q){return Math.max(F,q)},0),HA(function(F){return Math.round(F)}))};
F8W=function(F){return rL(Oqu(PA(F)),cOM())};
qKM=function(F,q){return q instanceof Nv?q.pipe(Yq(function(t){return(t=t?15:null)?xl(new IV(t)):F})):(q=q.value?15:null)?xl(new IV(q)):F};
t6_=function(F){var q=new IV(13);if(F.length<1)return{chain:dL,capturedErrors:dL};var t=new iQ,u=F[0];return{chain:F.slice(1).reduce(function(J,g){return J.pipe(L6(function(Y){t.next(Y);return g}))},u).pipe(L6(function(J){t.next(J);
return xl(q)}),tW(new iQ),I2()),
capturedErrors:t}};
ubo=function(F,q){var t=F.pipe(tW(new iQ),I2());return Yq(function(u){return t.pipe(q(u))})};
s5W=function(F,q){if(F.inCrossDomainIframe)return xl(new IV(6));var t=new iQ;return VM(PA({}),q,t).pipe(HA(function(){return{timestamp:F.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:JNu(F),topWindowViewportExternalGeometry:SA(F,!0),measurementRequests:t,viewportLocalAppOffset:{x:0,y:0}}}}),kq(F.queue))};
JNu=function(F){var q=SA(F,!1);if(!F.inIframe||!Daf(F.global.parent)||F.global.parent===F.global)return q;var t=new tG(F.global.parent,F.debugChannel);t.beaconFactory=F.beaconFactory;t=JNu(t);F=F.global.frameElement.getBoundingClientRect();return Zr$(RBt(Zr$(t,F),{x:q.left-F.left,y:q.top-F.top}),q)};
gIP=function(F){if(F.prerendering)return 3;var q;return(q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[F.visibilityState||F.webkitVisibilityState||F.mozVisibilityState||""])!=null?q:0};
lA3=function(F){return F.document.JSC$9364_onVisibilityChange.pipe(HA(function(q){return q==="visible"}),cA(),EF(F.queue))};
X_$=function(F,q,t){var u;return q.pipe(cA(),Yq(function(J){return t.pipe(HA(function(){if(!u){u=!0;try{J.next()}finally{u=!1}}return!0}))}),gh(!1),EF(F.queue))};
YKC=function(F){return rL(aV(HA(function(q){return q>=1?!0:q<=0?!1:q>=F})),lVM(),HA(function(q){return Math.round(q)}))};
Q5f=function(F,q,t,u,J){var g=p_f;if(g.length>1)for(var Y=0;Y<g.length-1;Y++)if(g[Y]<g[Y+1])throw Error();Y=J.pipe(gh(void 0),Yq(function(){return t.pipe(pjy())}),cA(),EF(F));
J=J.pipe(gh(void 0),Yq(function(){return t.pipe(cOM())}),cA(),EF(F));
return{totalMeasurementTime:u.pipe(gh(void 0),Yq(function(){return q.pipe(HA(function(Q){return{timestamp:Q.timestamp,value:!0}}),lVM())}),cA(),EF(F)),
totalUnviewedTime:u.pipe(gh(void 0),Yq(function(){return q.pipe(HA(function(Q){return{timestamp:Q.timestamp,value:Q.value===0}}),lVM())}),cA(),EF(F)),
maxTimeOnScreen:u.pipe(gh(void 0),Yq(function(){return q.pipe(YdM(F8W,g))}),cA(_.By),EF(F)),
timeOnScreen:u.pipe(gh(void 0),Yq(function(){return q.pipe(YdM(YKC,g),HA(function(Q){return Q.map(function(e,r){return r>0?e-Q[r-1]:e})}))}),cA(_.By),EF(F)),
maxConsecutiveViewTime:J,consecutiveViewTime:Y.pipe(cA(jA),EF(F))}};
ZIy=function(F){var q=!0;q=q===void 0?!1:q;return rL(Yq(function(t){return e$u(F.document,t,q)}),EF(F.queue))};
R$_=function(F,q,t){var u=t.pipe(HA(function(J){return{value:J,timestamp:F.timeProvider.now()}}),cA(jA));
return q instanceof Nv?q.pipe(cA(),Yq(function(J){return J?qq(new oV({value:!1,timestamp:F.timeProvider.now()}),F.queue):u})):q.value===!1?u:new oV(!1)};
rNu=function(F,q,t,u,J,g,Y){var Q=K1W;q=q instanceof Nv?q.pipe(gh(!1),cA()):q;var e=!F.isMobile();t=R$_(F,t,u);F=Y.measurableCreative.pipe(JOM(F.queue));return Object.assign({},Q,{geometryIsOccluded:t,wasLargeAdAtRender:J,allowLargeAdThreshold:e,mayUseViewportShareExposure:q,hasMeasurementStarted:F,useIntersectionObserverV2:g})};
w_o=function(F,q,t,u,J,g){var Y=1;g=g===void 0?!0:g;Y=Y===void 0?.01:Y;var Q=Q===void 0?F.timeProvider.intervalObservable(100).pipe(EF(F.queue)):Q;return F.performanceMonitor.timeExecution(916,function(){return N2$(F,q.pipe(kq(F.queue)),t.pipe(kq(F.queue)),u,J,g,Y,Q)})()};
N2$=function(F,q,t,u,J,g,Y,Q){var e=lA3(F).pipe(HA(function(N){return!N})),r=new iI3(F,[new knf(F,p_f),
new EIM(F,Q)]);Q=Kgu(z$$,oIu);return bro(F,q,function(N,w){var k=qq(new oV(w.element),N.queue).pipe(ZIy(N),EF(N.queue)),z={loadedElement:k,shouldMeasure:k.pipe(a2(!0)),measurableCreative:k.pipe(HA(function(K){var h=h===void 0?Symbol():h;return Object.freeze({symbol:h,element:qq(new oV(K),N.queue)})})),
creativeSearchResult:qq(new oV("mue"),N.queue)},T=new oV(!1),P=new oV(!1),v=new oV(17),H=new oV(!1),d=new oV(!1),a=qq(ua,N.queue);T=r.buildGeometrySource(z,{inApp:T,useV2:!1,requestSource:qq(v,N.queue)}).geometrySource;z=rNu(N,H,P,e,d,a,z);P=h4C(N.queue,N.timeProvider,T,z);z=P.geometrySignals;H=P.shouldResetViewabilitySignals;P=Q5f(N.queue,z.timestampedExposure,z.visible,P.shouldResetExposureSignals,H);H=jvo(N.queue,N.timeProvider,H,z.measurementRequests,z.visible);d=t.pipe(Us(function(K){return K===
w.element.ref}),HA(function(){return"ur"}));
a=Zsf(N.timeProvider,J).pipe(a2("t"));d=D3v(N,VM(d,a));a=X_$(N,z.measurementRequests,d.pipe(Us(function(K){return K!==null})));
T=d.pipe(Us(function(K){return K!==null}),HA(function(){return gIP(N.global.document)===1}));
var S=nIW(N.document);return Object.assign({},{beaconFactory:new oV(N.beaconFactory),context:new oV(N),inferredPingId:new oV("lidar2"),timeOnScreenPingId:new oV("lidartos"),binaryContext:new oV(17),binaryVersion:new oV(u),requestSource:v,contextValidationErrors:new oV(N.validate()?null:new Hn),contextVisibilityKnown:new oV(S),payloadMapper:new oV(SPo),endOfSessionReason:d,timeOnScreenReason:d,requestMeasurementOnEndOfSession:a,hasImpressionFired:M6W,crossDomainIframeState:new oV(N.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:ua,inFetchLaterBeaconExperiment:ua,isTurtlex:ua,turtlexReportEventData:new oV(""),reportFencedFrameEvent:vn,isViewableAttributionEnabled:ua,inViewableAttributionExperiment:new oV(0),fetchBeaconFactory:vn,supportsPendingBeacon:ua,supportsFetchLater:ua,emit:new oV(fWo),beginToRenderEvent:new oV(Symbol()),activeViewUnmeasurableEvent:new oV(Symbol()),activeViewViewableEvent:new oV(Symbol()),creativeFound:M6W,immediateUrlPrefixes:new oV(w.immediateUrls),timeOnScreenUrlPrefixes:new oV(w.timeOnScreenUrls),
cpmavUrls:vn,viewableRelayUrls:vn,measurementDeferralState:new oV(2),urlSerializer:new oV(ttM),viewUrlSerializer:new oV(T2f),isCreativeLoaded:k.pipe(JOM(N.queue)),pageVisible:e.pipe(HA(function(K){return!K})),
eosPageVisible:T,timestampedExposureHistory:z.timestampedExposure.pipe(sF(function(K,h){K.push(h);return K},[]))},z,{viewable:FN(N,H),
maxTimeOnScreen:FN(N,P.maxTimeOnScreen),timeOnScreen:FN(N,P.timeOnScreen),maxConsecutiveViewTime:FN(N,P.maxConsecutiveViewTime),consecutiveViewTime:P.consecutiveViewTime.pipe(HA(function(K){return new cn(N.timeProvider,K)})),
totalMeasurementTime:FN(N,P.totalMeasurementTime),totalUnviewedTime:FN(N,P.totalUnviewedTime),userAgentClientHints:hht(N),clientOrderPingCounter:new oV(new CaW)})},hB$(F,Y),Bo3(g?LgM(Q,GnM):LgM(Q,DMf),W8f))};
OIC=function(F){var q=_.US.apply(1,arguments).filter(Boolean).join("&");if(!q)return F;var t=F.match(/[?&]adurl=/);return t?F.slice(0,t.index+1)+q+"&"+F.slice(t.index+1):F+(F.indexOf("?")<0?"?":"&")+q};
JG=function(F,q){return q?"&"+F+"="+encodeURIComponent(q):""};
Pnv=function(){try{var F,q;return!!((F=window)==null?0:(q=F.top)==null?0:q.location.href)&&!1}catch(t){return!0}};
_.sP=function(F){F&&typeof F.dispose=="function"&&F.dispose()};
_.go=function(F){for(var q=0,t=arguments.length;q<t;++q){var u=arguments[q];_.VC(u)?_.go.apply(null,u):_.sP(u)}};
AN_=function(){var F=xMW();F=F===void 0?"bevasrsg":F;return new Promise(function(q){var t=window===window.top?window:Pnv()?window:window.top,u=t[F],J;((J=u)==null?0:J.bevasrs)?q(new la(u.bevasrs)):(u||(u={},u=(u.nqfbel=[],u),t[F]=u),u.nqfbel.push(function(g){q(new la(g))}))})};
vIt=function(F){var q={c:F.m0,e:F.xC1,mc:F.t1F,me:F.dZF};F.jG&&(q.co={c:F.jG.pq6,a:F.jG.wgu,s:F.jG.ygi});return q};
IAq=function(F){var q,t,u={m0:F.c,xC1:F.e,t1F:(q=F.mc)!=null?q:!1,dZF:(t=F.me)!=null?t:!1};F.co&&(u.jG={pq6:F.co.c,wgu:F.co.a,ygi:F.co.s});return u};
HI$=function(F){return function(){var q;return _.p(function(t){if(t.nextAddress==1)return t.yield(F(),2);q=t.yieldResult;return t.return({f:function(){return q.wIF()},
c:function(u){return q.x5Q(u)},
m:function(u){return q.nJ(IAq(u))},
mws:function(u){return q.nqR(IAq(u))}})})}};
mMo=function(F,q){var t=xMW();t=t===void 0?"bevasrsg":t;q={s:function(g){var Y;return F.snapshot(Object.assign({},g.c&&{m0:g.c},g.s&&{eJp:g.s},{j6e:(Y=g.p)!=null?Y:!0}))},
e:function(g){var Y;return void((Y=F.hI1)==null?void 0:Y.call(F,g))},
c:function(g,Y){return F.lq6(g,Y)},
p:F.fD9,l:function(){return F.p3R()},
wpc:q?HI$(q):void 0};var u=window===window.top?window:Pnv()?window:window.top,J=u[t];if(J){J.bevasrs=q;if(J.nqfbel!==void 0)for(t=_.X(J.nqfbel),u=t.next();!u.done;u=t.next())u=u.value,u(q);J.nqfbel=void 0}else J={},J=(J.bevasrs=q,J.nqfbel=void 0,J),u[t]=J};
bIW=function(F){var q=q===void 0?51:q;var t=[];_.XN(F,$Mt,6,_.YW()).forEach(function(u){_.pr(u,2)<=q&&t.push(_.pr(u,1))});
return t};
yNW=function(F){var q=q===void 0?51:q;var t=[];_.XN(F,$Mt,6,_.YW()).forEach(function(u){_.pr(u,2)>q&&t.push(_.pr(u,1))});
return t};
CnA=function(F){F.then(function(){},function(){})};
QS=function(F){return{fieldType:1,fieldName:F}};
er=function(F){return{fieldType:2,fieldName:F}};
_.ZW=function(F){return{fieldType:3,fieldName:F}};
dM3=function(){function F(){J[0]=1732584193;J[1]=4023233417;J[2]=2562383102;J[3]=271733878;J[4]=3285377520;N=r=0}
function q(w){for(var k=Y,z=0;z<64;z+=4)k[z/4]=w[z]<<24|w[z+1]<<16|w[z+2]<<8|w[z+3];for(z=16;z<80;z++)w=k[z-3]^k[z-8]^k[z-14]^k[z-16],k[z]=(w<<1|w>>>31)&4294967295;w=J[0];var T=J[1],P=J[2],v=J[3],H=J[4];for(z=0;z<80;z++){if(z<40)if(z<20){var d=v^T&(P^v);var a=1518500249}else d=T^P^v,a=1859775393;else z<60?(d=T&P|v&(T|P),a=2400959708):(d=T^P^v,a=3395469782);d=((w<<5|w>>>27)&4294967295)+d+H+a+k[z]&4294967295;H=v;v=P;P=(T<<30|T>>>2)&4294967295;T=w;w=d}J[0]=J[0]+w&4294967295;J[1]=J[1]+T&4294967295;J[2]=
J[2]+P&4294967295;J[3]=J[3]+v&4294967295;J[4]=J[4]+H&4294967295}
function t(w,k){if(typeof w==="string"){w=unescape(encodeURIComponent(w));for(var z=[],T=0,P=w.length;T<P;++T)z.push(w.charCodeAt(T));w=z}k||(k=w.length);z=0;if(r==0)for(;z+64<k;)q(w.slice(z,z+64)),z+=64,N+=64;for(;z<k;)if(g[r++]=w[z++],N++,r==64)for(r=0,q(g);z+64<k;)q(w.slice(z,z+64)),z+=64,N+=64}
function u(){var w=[],k=N*8;r<56?t(Q,56-r):t(Q,64-(r-56));for(var z=63;z>=56;z--)g[z]=k&255,k>>>=8;q(g);for(z=k=0;z<5;z++)for(var T=24;T>=0;T-=8)w[k++]=J[z]>>T&255;return w}
for(var J=[],g=[],Y=[],Q=[128],e=1;e<64;++e)Q[e]=0;var r,N;F();return{reset:F,update:t,digest:u,digestString:function(){for(var w=u(),k="",z=0;z<w.length;z++)k+="0123456789ABCDEF".charAt(Math.floor(w[z]/16))+"0123456789ABCDEF".charAt(w[z]%16);return k}}};
B2C=function(F,q){q=q===void 0?V6f:q;if(!UMM){var t;F=(t=F.navigator)==null?void 0:t.userAgentData;if(!F||typeof F.getHighEntropyValues!=="function"||F.brands&&typeof F.brands.map!=="function")return Promise.reject(Error("ua"));SK_((F.brands||[]).map(function(J){var g=new h$$;g=_.OF(g,1,J.brand);return _.OF(g,2,J.version)}));
typeof F.mobile==="boolean"&&_.RX(K8M,2,F.mobile);UMM=F.getHighEntropyValues(q)}var u=new Set(q);return UMM.then(function(J){var g=K8M.clone();u.has("platform")&&_.OF(g,3,J.platform);u.has("platformVersion")&&_.OF(g,4,J.platformVersion);u.has("architecture")&&_.OF(g,5,J.architecture);u.has("model")&&_.OF(g,6,J.model);u.has("uaFullVersion")&&_.OF(g,7,J.uaFullVersion);return g.serialize()}).catch(function(){return K8M.serialize()})};
ro=function(F,q,t,u){this.initialValue_=F;this.maxValue_=q;this.currBaseValue_=this.currValue_=F;this.randomFactor_=t||0;this.backoffFactor_=u||2};
Nq=function(F){this.src=F;this.listeners={};this.typeCount_=0};
j5A=function(){for(var F;F=L8P.remove();){try{F.fn.call(F.scope)}catch(q){Jo(q)}fA3.put(F)}aAM=!1};
_.cNt=function(F){switch(F){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
FhA=function(F){switch(F){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.qVy=function(){};
pcf=function(F,q,t,u){F=tvo(uRf(JUo(new _.wo(1828,"0"),F),new smu)).disableWithCredentials();q.length&&gEM(F,l0q(new Xco,q));u!==void 0&&(F.destinationUrl=u);var J=new YV$(1828,"","",!1,"",F.build());_.kW(J,F);var g=new EP({flush:function(Y){try{J.flush(Y)}catch(Q){t(Q)}}});
g.addOnDisposeCallback(function(){setTimeout(function(){try{g.snapshotAndFlush()}finally{J.dispose()}})});
g.invocationLimit=1E5;g.flushInterval=3E4;g.JSC$9780_flushTimer.setInterval(3E4);return g};
z4=function(){var F,q,t;return(t=(F=globalThis.performance)==null?void 0:(q=F.now)==null?void 0:q.call(F))!=null?t:Date.now()};
ZEv=function(F,q){if(F.disable)return new Qmo;q=q?bIW(q):[];F={lu:F.lu,bJ9:F.pZi,gku:F.gGp,destinationUrl:F.destinationUrl,slE:F.slE,x29:F.x29};q=q===void 0?[]:q;return new eTq(F,q)};
RTq=function(F){if(!F)return null;F=_.oX(F,2);return F===null||F===void 0?null:Ll(F)};
_.rUu=function(F){if(!F)return null;F=_.oX(F,4);return F===null||F===void 0?null:_.OS(F)};
iE_=function(F,q){return q?NNM(q):F?wc_(F):Promise.resolve()};
NNM=function(F){return new Promise(function(q,t){var u=_.nr("SCRIPT"),J=_.rUu(F);_.uF(u,J);u.onload=function(){_.Mq(u);q()};
u.onerror=function(){_.Mq(u);t(Error("Fa"))};
(T4("HEAD")[0]||document.documentElement).appendChild(u)})};
wc_=function(F){return new Promise(function(q){var t=_.nr("SCRIPT");if(F){var u=_.oX(F,6);u=u===null||u===void 0?null:_.qv(u)}else u=null;_.tK(t,u);(T4("HEAD")[0]||document.documentElement).appendChild(t);_.Mq(t);q()})};
G4=function(F,q,t){var u,J=new Promise(function(g){u=setTimeout(g,q)});
return Promise.race([F.finally(function(){return void clearTimeout(u)}),
J.then(t)])};
kQM=function(F,q){try{return globalThis.sessionStorage.setItem(F,q),!0}catch(t){return!1}};
EEy=function(F,q,t,u){q=q===void 0?0:q;t=t===void 0?F.length:t;var J=0;for(u&&(J=EEy(u));q<t;q++)u=typeof F==="string"?F.charCodeAt(q):F[q],J=zTC(31,J)+u|0;return J};
oEo=function(F,q){return[EEy(F,0,F.length>>1,q),EEy(F,F.length>>1)]};
nEM=function(F){var q=_.X(oEo(F,DW));F=q.next().value;q=q.next().value;return F.toString(16)+q.toString(16)};
Mv$=function(F,q){var t=oEo(q);F=new Uint32Array(F.buffer);q=F[0];var u=_.X(t);t=u.next().value;u=u.next().value;for(var J=1;J<F.length;J+=2){for(var g=q,Y=J,Q=t,e=u,r=0;r<22;r++)Y=Y>>>8|Y<<24,Y+=g|0,Y^=Q+38293,g=g<<3|g>>>29,g^=Y,e=e>>>8|e<<24,e+=Q|0,e^=r+38293,Q=Q<<3|Q>>>29,Q^=e;g=[g,Y];F[J]^=g[0];J+1<F.length&&(F[J+1]^=g[1])}};
TN_=function(F,q,t,u,J){var g=(4-(DW.length+t.length)%4)%4,Y=new Uint8Array(4+g+DW.length+4+t.length),Q=new DataView(Y.buffer),e=0;Q.setUint32(e,Math.random()*4294967295);e=e+4+g;Y.set(DW,e);e+=DW.length;Q.setUint32(e,J);Y.set(t,e+4);Mv$(Y,u);return F.insert(q,function(r){return void globalThis.sessionStorage.removeItem(r)})?kQM(q,_.A9(Y))?"s":"t":"i"};
GQt=function(F,q){var t=globalThis.sessionStorage.getItem(F);if(!t)return["m"];try{var u=_.f3(t);Mv$(u,q)}catch(J){return globalThis.sessionStorage.removeItem(F),["c"]}for(q=4;q<7&&u[q]===0;)q++;for(t=0;t<DW.length;t++)if(u[q++]!==DW[t])return globalThis.sessionStorage.removeItem(F),["d"];t=(new DataView(u.buffer)).getUint32(q);return Math.floor(Date.now()/1E3)>=t?(globalThis.sessionStorage.removeItem(F),["e"]):["a",new Uint8Array(u.buffer,q+4)]};
Dhu=function(F){return globalThis.TextEncoder?(new TextEncoder).encode(F):_.Wd(F)};
Why=function(F){var q=F,t;return function(){if(q){var u=q;q=void 0;t=u.apply(this,arguments)}return t}};
PKP=function(F){return AE(function(q){if(q instanceof F)return!0;var t,u,J=q==null?void 0:(t=q.ownerDocument)==null?void 0:(u=t.defaultView)==null?void 0:u[F.name];return OEf(J)&&q instanceof J})};
_.xW=function(F,q,t){_.OP.call(this);this.JSC$9993_listener_=F;this.JSC$9993_interval_=q||0;this.handler_=t;this.callback_=(0,_.Pd)(this.JSC$9995_doAction_,this)};
_.AG=function(F){F=xht(F);return _.OS(F)};
xht=function(F){return F===null?"null":F===void 0?"undefined":F};
vEq=function(F){if(F&&F.focus)if(F!==document.activeElement)F.focus();else return AUP(function(){return _.p(function(q){document.activeElement&&document.activeElement.blur();return q.return(AUP(function(){F.focus()}))})})};
_.I0W=function(F){var q=q===void 0?5:q;setTimeout(function(){var t;return _.p(function(u){u.nextAddress==1&&(t=document.activeElement);if(u.nextAddress!=5)return(document.activeElement===t||document.activeElement===document.body)&&q>=0&&F?u.yield(vEq(F),5):u.jumpTo(0);if(document.activeElement===F)return u.return();F=F.parentElement;--q;return u.jumpTo(2)})},15)};
AUP=function(F){return new Promise(function(q){requestAnimationFrame(function(){q(F())})})};
FIv=function(F){if(_.vd)F(_.vd);else{var q;((q=HEC)!=null?q:HEC=[]).push(F)}};
Hd=function(){!_.vd&&_.IX&&_.qIM(_.IX());return _.vd};
_.qIM=function(F){_.vd=F;var q;(q=HEC)==null||q.forEach(FIv);HEC=void 0};
_.mg=function(F){_.vd&&_.vd.beforeLoadModuleCode(F)};
_.$W=function(){_.vd&&_.vd.JSC$11039_setLoaded()};
ba=function(F){return OeA(F)?Number(F):String(F)};
t1W=function(F){this.action=F;this.wfv=!1};
u4t=function(F,q){t1W.call(this,"set-drive-options");this.appId=F;this.appOrigin=q};
JDW=function(F){t1W.call(this,"visibility");this.visible=F};
sev=function(F,q,t){Cr.call(this,F,q,t)};
gwW=function(F){VS.call(this,F)};
lkP=function(F){F=F&&F.getWindow()||window;return F.gadgets&&F.gadgets.rpc};
YIv=function(F,q){var t=q&&q.getWindow()||window;if(lkP(q))F();else if(XtW)XtW.push(F);else var u=XtW=[F],J=t.setInterval(function(){if(lkP(q)){t.clearInterval(J);for(var g=0;g<u.length;g++)u[g]();XtW=null}},100)};
QeA=function(F,q){var t=new UP(F);_.kW(q,t);var u={passive:!1};q.listen(t,"mousewheel",function(J){return void ptP(F,J)},u).listen(F,"scroll",function(J){return void ptP(F,J)},u)};
ptP=function(F,q){var t;a:{for(t=q.target;t;){if(t.nodeType==1){var u=_.Sr(t,"overflowY");if(u=="auto"||u=="scroll")break a}t=t.parentNode}t=null}if(!t||!_.hG(F,t)||t.scrollHeight==t.clientHeight||q.deltaY>0&&Math.abs(t.scrollTop-(t.scrollHeight-t.clientHeight))<=1||q.deltaY<0&&t.scrollTop==0)q.preventDefault(),q.stopPropagation()};
cd=function(F,q,t,u,J,g,Y,Q,e){Q=Q===void 0?!1:Q;e=e===void 0?!1:e;Cr.call(this,void 0,void 0,void 0);Cr.call(this,g?g+" picker modal-dialog":"picker modal-dialog",!0,t);_.Kr(F,"protocol");this.iframeManager_=new eEA;this.targetId_=Bd();this.rpcToken_=Bd();F=_.Lr(F);_.fr(F,"hostId");t=_.fr(F,"parent");this.useGapi_=!e&&!0||(t==null?void 0:t.includes("onepick.corp.google.com"));Q&&_.aX(F,"fv2","true");this.setUrl(F.toString());this.preferredDialogWidth_=u;this.preferredDialogHeight_=J;u!==void 0||
J!==void 0?u=!0:(u=_.fr(_.Lr(F.toString()),"hostId"),Zty||(Zty=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),u=!Zty.has(u));this.autoSizeDialog_=u;this.JSC$10183_gadgetsDomHelper_=Y||this.JSC$10134_dom_;q&&(Y=this.JSC$10183_gadgetsDomHelper_,q=_.fr(_.Lr(this.JSC$10185_url_),"grugl")=="true"?REo:rDy,lkP(Y)||(Y=Y||Wn(document),u=Y.createElement("SCRIPT"),_.uF(u,q),u.type="text/javascript",Y.JSC$9319_document_.body.appendChild(u)));
F=F.toString();q=null;Y=F.indexOf("/picker?");Y>-1?q=F.substring(0,Y+8-1):lu(F,"/picker")&&(q=F);q&&this.setRelayUrl(q+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(F=this.buttons_,F.JSC$10168_element_=this.buttonEl_,F.render()):_.JK(this.buttonEl_,NBq),_.jr(this.buttonEl_,!!this.buttons_))};
_.Ewt=function(F){var q=q===void 0?wtt:q;var t=_.K3(F),u=function(g){g=_.X(g);g.next();g=F6(g);return q(t,g)},J=function(g){var Y=_.X(g);
g=Y.next().value;Y=F6(Y);return F.apply(g,Y)};
return function(){var g=_.US.apply(0,arguments),Y=this||_.uu,Q=itu.get(Y);Q||(Q={},itu.set(Y,Q));return kAf(Q,[this].concat(_.mZ(g)),J,u)}};
q3=function(F){var q={};F=F.replace(/\r/g,"").split("\n");for(var t=0;t<F.length;t++){var u=F[t],J=u.indexOf(":");J<0||(q[u.substring(0,J)]=u.substring(J+2,u.length))}return q};
zEt=function(F,q,t){t=t===void 0?function(){}:t;
return F?q():t()};
_.nwf=function(F){var q;return((q=owC.documentOverride)!=null?q:F).__wizdispatcher};
_.u5=function(F){var q=tO;tO=F;return q};
_.TBu=function(F){return F===M1t||(F==null?void 0:F.name)==="\u0275NotFound"};
_.JO=function(F,q){var t;if((t=F)==null?0:t.isDisposed)throw Error("jb`"+String(F.debugName));for(;F!==void 0;){t=F;if(t.retrieve)return t.retrieve(q,{optional:!0});F=F.parent}return M1t};
sd=function(F){return{"\u0275prov":{providedIn:"root",token:Symbol(F),factory:void 0,value:void 0}}};
_.GA$=function(F){var q=tO;if(!q){switch(F===void 0?3:F){case 0:F=Error("ib");break;case 1:F=Error("kb");break;case 2:F=Error("lb");break;default:F=Error("mb")}throw F;}return q};
DEu=function(F){var q=_.u5(F);F={};return F[Symbol.dispose]=function(){_.u5(q)},F};
WIo=function(F,q){F.disposables||(F.disposables=[]);F.disposables.push(q)};
gP=function(F){var q=tO;q&&!q.isDisposed&&(WIo(q,F),F.parent=q)};
Poq=function(F){if(F.disposables){for(var q=_.X(F.disposables),t=q.next();!t.done;t=q.next())t=t.value,typeof t==="function"?t():OtA(t);F.disposables.length=0}};
OtA=function(F){if(!F.isDisposed){F.isDisposed=!0;var q;(q=F[Symbol.dispose])==null||q.call(F);delete F.parent;Poq(F)}};
yD3=function(F){var q={retrieve:function(t){switch(t.\u0275prov.token){case xEM.\u0275prov.token:var u=F.asyncDeps;break;case _.AD_.\u0275prov.token:u=F.rootElement;break;case vwo.\u0275prov.token:u=F.modelRootElement;break;case IkP.\u0275prov.token:u=F.appContext;break;case HtW.\u0275prov.token:u=F.rendererData;break;case mEM.\u0275prov.token:u=F.injectingConstructor;break;case $E3.\u0275prov.token:u=F.dispatcher}if(u)t=u;else a:{for(u=q.parent;u;){var J=u;if(J.retrieve){t=J.retrieve(t);break a}u=
u.parent}u=t.\u0275prov.token;J=bt$[u];J!==void 0?t=J:(J=t.\u0275prov.providedIn,t.\u0275prov.factory?(t=t.\u0275prov.factory(),u&&J==="root"&&(bt$[u]=t)):t=M1t)}return t}};
gP(q);return q};
Coo=function(){var F=_.GA$(1),q=_.JO(F,IkP);_.TBu(q)&&(F=_.JO(F,$E3),_.TBu(F)||F.getOptionalAppContext())};
dEP=function(F){if(typeof document!=="undefined"&&document&&document.getElementById&&(F=document.getElementById(F))){var q=F.tagName.toUpperCase();if(q=="SCRIPT"||q=="LINK")return F}return null};
UEM=function(F,q){if((F=F===void 0?"":F)&&q)throw Error("sb");var t="";var u=_.uu._F_jsUrl;(F=q||dEP(F))&&(t=F.src?F.src:F.getAttribute("href"));if(u&&t){if(u!=t)throw Error("tb`"+u+"`"+t);t=u}else t=u||t;if(!V1W(t))throw Error("ub");return t};
BB3=function(){if(!SIy){SIy=!0;try{var F=UEM(_.uu._F_jsUrl?"":"base-js")}catch(u){return}var q=hE$(KIv(F)),t=Object.keys(q);t.length!==0&&FIv(function(u){for(var J=_.X(t),g=J.next();!g.done;g=J.next()){g=g.value;for(var Y=_.X(Object.keys(q[g])),Q=Y.next();!Q.done;Q=Y.next())u.addExtraEdge(g,Q.value)}})}};
fkM=function(){var F=Object.assign({},LI_);Object.getOwnPropertyNames(LI_).forEach(function(q){l5[q]!==void 0&&(F[q]=l5[q])});
return F};
akf=function(F,q){if(l5.enablePerformanceTiming){var t,u;(u=(t=performance).mark)==null||u.call(t,F+"Start__"+q)}};
jeu=function(F,q){if(l5.enablePerformanceTiming){var t,u;(u=(t=performance).measure)==null||u.call(t,F+"__"+q,F+"Start__"+q)}};
cDM=function(F,q,t){var u;return F&&q?F+"__"+q:(u=F!=null?F:q)!=null?u:t};
qD$=function(F,q){var t=Object.create(FHM);t.debugName=q;!tO||gP(t);q=_.u5(t);try{F(t)}finally{_.u5(q)}return function(){return void OtA(t)}};
u1f=function(F){return X6(F)&&tJ$ in F};
Jft=function(F,q){return Object.is(F,q)};
pq=function(F){var q=YR;YR=F;return q};
geq=function(F){if(Qs)throw Error("Z");if(YR!==null){var q=YR.producersTail;if(q===void 0||q.producer!==F){var t=void 0,u=YR.recomputing;if(u&&(t=q!==void 0?q.nextProducer:YR.producers,t!==void 0&&t.producer===F)){YR.producersTail=t;t.lastReadVersion=F.version;return}var J=F.consumersTail,g;if(!(g=J===void 0||J.consumer!==YR)){if(u){a:{g=YR;u=g.producersTail;if(u!==void 0){g=g.producers;do{if(g===J){u=!0;break a}if(g===u)break;g=g.nextProducer}while(g!==void 0)}u=!1}u=!u}g=u}g&&(u=et(YR),t={producer:F,
consumer:YR,nextProducer:t,prevConsumer:J,lastReadVersion:F.version,nextConsumer:void 0},YR.producersTail=t,q!==void 0?q.nextProducer=t:YR.producers=t,u&&sJq(F,t))}}};
YDy=function(F){if(!et(F)||F.dirty)if(F.dirty||F.lastCleanEpoch!==l_y)(F.producerMustRecompute(F)||X2f(F))&&F.producerRecomputeValue(F),F.dirty=!1,F.lastCleanEpoch=l_y};
p2C=function(F){if(F.consumers!==void 0){var q=Qs;Qs=!0;try{for(var t=F.consumers;t!==void 0;t=t.nextConsumer){var u=t.consumer;u.dirty||(F=void 0,u.dirty=!0,p2C(u),(F=u.consumerMarkedDirty)==null||F.call(u,u))}}finally{Qs=q}}};
QJM=function(){var F;return((F=YR)==null?void 0:F.consumerAllowSignalWrites)!==!1};
eFW=function(F){F&&(F.producersTail=void 0,F.recomputing=!0);return pq(F)};
RFo=function(F,q){pq(q);if(F){F.recomputing=!1;q=F.producersTail;var t=q!==void 0?q.nextProducer:F.producers;if(t!==void 0){if(et(F)){do t=ZMC(t);while(t!==void 0)}q!==void 0?q.nextProducer=void 0:F.producers=void 0}}};
X2f=function(F){for(F=F.producers;F!==void 0;F=F.nextProducer){var q=F.producer,t=F.lastReadVersion;if(t!==q.version)return!0;YDy(q);if(t!==q.version)return!0}return!1};
sJq=function(F,q){var t=F.consumersTail,u=et(F);t!==void 0?(q.nextConsumer=t.nextConsumer,t.nextConsumer=q):(q.nextConsumer=void 0,F.consumers=q);q.prevConsumer=t;F.consumersTail=q;if(!u)for(F=F.producers;F!==void 0;F=F.nextProducer)sJq(F.producer,F)};
ZMC=function(F){var q=F.producer,t=F.nextProducer,u=F.nextConsumer,J=F.prevConsumer;F.nextConsumer=void 0;F.prevConsumer=void 0;u!==void 0?u.prevConsumer=J:q.consumersTail=J;if(J!==void 0)J.nextConsumer=u;else if(q.consumers=u,!et(q))for(F=q.producers;F!==void 0;)F=ZMC(F);return t};
et=function(F){return F.consumerIsAlwaysLive||F.consumers!==void 0};
NOP=function(F){var q=Object.create(rfu);q.computation=F;F=function(){YDy(q);geq(q);if(q.value===ZV)throw q.error;return q.value};
F[Rv]=q;return F};
Eeo=function(F,q){var t=Object.create(w2P);t.value=F;q!==void 0&&(t.equal=q);F=function(){geq(t);return t.value};
F[Rv]=t;return[F,function(u){return iMu(t,u)},
function(u){QJM()||kmC(t);iMu(t,u(t.value))}]};
iMu=function(F,q){QJM()||kmC(F);if(!F.equal(F.value,q)){F.value=q;F.version++;l_y++;p2C(F);var t;(t=zFo)==null||t(F)}};
rP=function(F){var q=pq(null);try{return F()}finally{pq(q)}};
_.N3=function(F,q,t){t=t===void 0?"":t;F=Eeo(F,q==null?void 0:q.equals);var u=F[0],J=u[Rv];J.debugName=cDM(q==null?void 0:q.debugName,t,"[signal]");if(!l5.enablePerformanceTiming)return F;var g=F[1],Y=F[2];return[u,function(Q){oe3(function(){return void g(Q)},J)},
function(Q){oe3(function(){return void Y(Q)},J)}]};
oe3=function(F,q){akf("signalSet",q.debugName);try{F()}finally{jeu("signalSet",q.debugName)}};
MJA=function(F,q){var t=_.X(_.N3(F,void 0,"cPpJzc"));F=t.next().value;t=t.next().value;F[ne$]=t;F[wP]=q;return F};
TOM=function(F){return!!F&&typeof F==="object"&&Object.getPrototypeOf(F)===Object.prototype};
GmC=function(F){return typeof F==="function"&&ne$ in F&&typeof F[ne$]==="function"};
DbC=function(F,q){Object.defineProperty(F,wP,{get:function(){return q}})};
kR=function(F,q){if(i5(F)){var t=F.map(function(g){return kR(g,q)});
DbC(t,q);return t}if(TOM(F)){t={};F=_.X(Object.entries(F));for(var u=F.next();!u.done;u=F.next()){var J=_.X(u.value);u=J.next().value;J=J.next().value;t[u]=kR(J,q)}DbC(t,q);return t}return MJA(F,q)};
WH$=function(F){if(i5(F))return F.map(function(J){return WH$(J)});
if(TOM(F)){var q={};F=_.X(Object.entries(F));for(var t=F.next();!t.done;t=F.next()){var u=_.X(t.value);t=u.next().value;u=u.next().value;q[t]=WH$(u)}return q}return GmC(F)?F():F};
Pz$=function(){var F={height:0,width:0};if(!TOM(F))throw Error("Jb");var q=Symbol("Kb");return[kR(F,q),function(t,u){if(t[wP]===q)if(typeof u==="function"){var J=[].concat(_.mZ(WH$(t)));u=u(J)||J;OMC(t,[].concat(_.mZ(u)))}else OMC(t,u);else throw Error("Lb");}]};
OMC=function(F,q){if(GmC(F))F[ne$](q);else if(i5(F)&&i5(q))q=kR(q,F[wP]),F.length=0,F.push.apply(F,_.mZ(q));else if((TOM(F)||i5(F))&&(i5(q)||typeof q==="object"&&q!==null)){q=_.X(Object.entries(q));for(var t=q.next();!t.done;t=q.next()){var u=_.X(t.value);t=u.next().value;u=u.next().value;var J=F,g=J[t];Object.hasOwn(F,t)?OMC(g,u):J[t]=kR(u,F[wP])}}else throw Error("Mb");};
xbC=function(F){return Object.create(Object.assign({},Ed,F))};
veA=function(){var F;return(F=Af$)!=null?F:Af$=xbC({consumerAllowSignalWrites:!0})};
_.zy=function(F,q,t){t=t===void 0?"":t;F=NOP(F);var u=F[Rv];u.debugName=cDM(q==null?void 0:q.debugName,t,"[computed]");(q==null?void 0:q.equals)!=null&&(u.equal=q.equals);return F};
ov=function(F){var q=pq(I_M);try{F()}finally{pq(q)}};
Czy=function(F){if(!F.isDisposed)switch(F.effectType){case nq:HM3.schedule(F);break;case mbo:$by.schedule(F);break;case bMf:yf3.schedule(F);break;default:_.Uv(F.effectType)}};
VJA=function(F){db$.push(F);return function(){var q=db$.indexOf(F);q!==-1&&db$.splice(q,1)}};
SD$=function(){if(M3>0)l5.flushRenderEffectsDuringRender&&HM3.flush();else for(var F=_.X(Ub$),q=F.next();!q.done;q=F.next())q.value.flush()};
KH$=function(F){Ty=!0;try{for(var q=_.X(F),t=q.next();!t.done;t=q.next()){for(var u=t.value,J=[u],g=u;g.parent!==void 0;)g=g.parent,hFC(g)&&F.has(g)&&J.push(g);for(;J.length>0;){var Y=J.pop();F.delete(Y);Y.run()}}}finally{Ty=!1}};
Gy=function(F){M3--;if(F){F=_.X(Ub$);for(var q=F.next();!q.done;q=F.next())q.value.clear()}else M3>0||Ty&&!l5.flushRenderEffectsDuringRender||SD$()};
LHf=function(F,q,t){var u=BOf(F);DV={name:t?u+" ("+t+")":u,isReactive:F.componentType!==_.Wj,parent:DV};F=q();DV=DV.parent;return F};
Od=function(){var F=DV;return F?F.isReactive:!1};
xR=function(F,q,t){var u=DV;q&&(DV=q);try{return t==null?F():F.call(t)}catch(g){F=g;Pj(F,DV);if(F!==f_u){a_C=DV;q=[];for(t=tO;t;){var J=void 0;q.push((J=t.debugName)!=null?J:"[context]");J=void 0;t=(J=t.parent)!=null?J:null}jJy=q.reverse()}f_u=F;throw F;}finally{DV=u}};
Pj=function(F,q){try{var t=cf_(q);if(t&&!F.componentStack&&(F.componentStack=t,l5.enableComponentStacksInErrorMessages)){var u=F.message+"\n\nComponent stack: "+t;F.stack&&(F.stack=F.stack.replace(F.message,u));F.message=u}}catch(J){}};
cf_=function(F){if(X6(F)&&F.name!==void 0&&F.isReactive!==void 0&&F.parent!==void 0||F===null){for(var q=0,t="";q<20&&F;)t+=F.name+" > ",F=F.parent,q++;F=t.slice(0,-3)}else if(l5.enableContextBasedComponentStacks){a:{for(F=F===void 0?tO:F;F;){if(u1f(F))break a;q=void 0;F=(q=F.parent)!=null?q:null}F=null}F=F.getComponentStack().slice(0,20).join(" > ")}else F="";return F};
BOf=function(F){return F.debugName||F.name||"[component]"};
F0o=function(F,q,t){q=Object.create(q);F&&(q.effectFn=F);t&&(q.debugName=t);gP(q);q.componentStack=DV;return q};
_.AO=function(F,q){F=F0o(F,qT$,q);Czy(F)};
_.vj=function(F){var q=tO;if(q){var t=DV;WIo(q,function(){var u=pq(veA());try{xR(function(){return void F()},t)}catch(J){throw l5.enableContextBasedComponentStacks&&Pj(J),J;
}finally{pq(u)}})}};
Iv=function(F,q){var t={};(q===void 0||q)&&gP(t);q=_.u5(t);try{F(t)}finally{_.u5(q)}return function(){return void OtA(t)}};
_.Hj=function(F){return typeof F==="function"?F():(F==null?0:F[tMq])?F.get():F};
_.m1=function(F,q){F=F0o(F,uGt,q);Czy(F)};
JgM=function(F){if(tO)throw Error("nb");Iv(F,!1)};
$R=function(F,q){F=_.u5(F);try{return rP(q)}finally{_.u5(F)}};
b5=function(F,q){var t=cf_(a_C),u,J;var g=(J=(u=jJy)==null?void 0:u.slice())!=null?J:[];q={componentStack:t,contextTrace:g,errorSeverity:3,featureFlags:fkM(),tagName:q};return[F,q]};
lSo=function(F,q,t){if(Object.hasOwnProperty.call(s0f,F)&&(F=s0f[F],Object.hasOwnProperty.call(F,q)&&(F=F[q],F instanceof Array))){for(var u=null,J=!1,g=0,Y=F.length;g<Y;++g){var Q=F[g],e=Q.contingentAttribute;if(!e)return Q.contract;u===null&&(u={});e=Object.hasOwnProperty.call(u,e)?u[e]:u[e]=t(e);if(e===Q.requiredValue)return Q.contract;e==null&&(J=!0)}if(J)return null}q=gFv[q];return typeof q==="number"?q:null};
pUC=function(F,q,t){var u=null;(F=XU$[F])&&(u=F[q]);return typeof u!=="number"&&((F=XU$["*"])&&(u=F[q]),typeof u!=="number")?!1:!0===YTW[u][String(t).toLowerCase()]};
efo=function(F,q){q=lSo(F.toLowerCase(),q,function(){var u;(u=l5.handleError)==null||u.call.apply(u,[l5].concat(_.mZ(b5(Error("Rb"),F.toLowerCase()))))});
if(q===null)return null;var t;return(t=Q0$[q])!=null?t:null};
ZW$=function(F,q,t){if(t===null||t===void 0)return t;q=q.toLowerCase();F=efo(F,q);return F===null?t:F(q,t)};
Rf_=function(){};
ys=function(F,q){for(;F.length>q;)F.pop()};
rgW=function(F){F=Array(F);ys(F,0);return F};
Vs=function(F,q,t){if(t==null)F.removeAttribute(q);else{var u;(u=q.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":q.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?F.setAttributeNS(u,q,t):F.setAttribute(q,t)}};
NZo=function(F,q,t){F[q]=t};
iW$=function(F,q,t){F=F.style;if(typeof t==="string")F.cssText=t;else{F.cssText="";for(var u in t)if(wUo.call(t,u)){q=F;var J=u,g=t[u];J.indexOf("-")>=0?q.setProperty(J,g):q[J]=g}}};
kGq=function(F,q,t){var u=typeof t;u==="object"||u==="function"?F[q]=t:Vs(F,q,t)};
EFt=function(){var F=new Rf_;F[Ud.default]=kGq;F.style=iW$;return F};
zfo=function(F,q,t,u){(u[q]||u[Ud.default])(F,q,t)};
nF$=function(F,q,t){q=new oFy(q,t);return F.__incrementalDOMData=q};
Kq=function(F,q){if(F.__incrementalDOMData)return F.__incrementalDOMData;var t=F.nodeType===1?F.localName:F.nodeName,u=F.nodeType===1?F.getAttribute("key"):null;q=nF$(F,t,F.nodeType===1?u||q:null);if(F.nodeType===1&&(F=F.attributes,t=F.length)){u=q._attrsArr||(q._attrsArr=rgW(t*2));for(var J=0,g=0;J<t;J+=1,g+=2){var Y=F[J],Q=Y.value;u[g]=Y.name;u[g+1]=Q}}return q};
MMf=function(F,q,t,u,J){return q==t&&u==J};
TZC=function(F){for(var q=Bj,t=Lq();t!==F;){var u=t.nextSibling;q.removeChild(t);fq.deleted.push(t);t=u}};
Lq=function(){return av?av.nextSibling:Bj.firstChild};
jt=function(){av=Lq()};
W0v=function(F,q,t){jt();var u;a:{if(u=av){do{var J=u,g=F,Y=q,Q=Kq(J,Y);if(GGu(J,g,Q.nameOrCtor,Y,Q.key))break a}while(q&&(u=u.nextSibling))}u=null}u||(F==="#text"?(t=cj.createTextNode(""),nF$(t,"#text",null),F=t):(u=cj,J=Bj,typeof F==="function"?u=new F:u=(J=F==="svg"?"http://www.w3.org/2000/svg":F==="math"?"http://www.w3.org/1998/Math/MathML":J==null||Kq(J).nameOrCtor==="foreignObject"?null:J.namespaceURI)?u.createElementNS(J,F):u.createElement(F),nF$(u,F,q),F=u,t&&F.setAttribute("nonce",t)),fq.created.push(F),
u=F);t=u;if(t!==av){if(DLt.indexOf(t)>=0)for(F=Bj,q=t.nextSibling,u=av;u!==null&&u!==t;)J=u.nextSibling,F.insertBefore(u,q),u=J;else Bj.insertBefore(t,av);av=t}};
OW3=function(F,q,t){W0v(F,q,t);Bj=av;av=null;return Bj};
PRt=function(){TZC(null);av=Bj;Bj=Bj.parentNode};
xL3=function(){av=Bj.lastChild};
ISP=function(F,q){q=q===void 0?{}:q;var t=q.matches===void 0?MMf:q.matches;return function(u,J,g){var Y=fq,Q=cj,e=DLt,r=Fb,N=qM,w=av,k=Bj,z=GGu;cj=u.ownerDocument;fq=new Ag_(u);GGu=t;Fb=[];qM=[];av=null;var T=Bj=u.parentNode,P,v=vFo.call(u);if((P=v.nodeType===11||v.nodeType===9?v.activeElement:null)&&u.contains(P)){for(v=[];P!==T;)v.push(P),P=P.parentNode||(T?P.host:null);T=v}else T=[];DLt=T;try{return F(u,J,g)}finally{u=fq,tN&&u.deleted.length>0&&tN(u.deleted),cj=Q,fq=Y,GGu=z,Fb=r,qM=N,av=w,Bj=k,
DLt=e}}};
HW3=function(F,q,t,u){un.push(zfo);un.push(F);un.push(q);un.push(t);un.push(u)};
$L_=function(F,q,t){var u=qM;q=q._attrsArr||(q._attrsArr=rgW(u.length));for(var J=!q.length||!1,g=0;g<u.length;g+=2){var Y=u[g];if(J)q[g]=Y;else if(q[g]!==Y)break;var Q=u[g+1];if(J||q[g+1]!==Q)q[g+1]=Q,HW3(F,Y,Q,t)}if(g<u.length||g<q.length){for(g=J=g;g<q.length;g+=2)JN[q[g]]=q[g+1];for(g=J;g<u.length;g+=2)J=u[g],Y=u[g+1],JN[J]!==Y&&HW3(F,J,Y,t),q[g]=J,q[g+1]=Y,delete JN[J];ys(q,u.length);for(var e in JN)HW3(F,e,void 0,t),delete JN[e]}F=mLP;mLP=t=un.length;for(e=F;e<t;e+=5)(0,un[e])(un[e+1],un[e+
2],un[e+3],un[e+4]);mLP=F;ys(un,F);ys(u,0)};
bWy=function(F){W0v("#text",null);var q=av;var t=Kq(q);if(t.text!==F){t=t.text=F;for(var u=1;u<arguments.length;u+=1)t=(0,arguments[u])(t);q.data!==t&&(q.data=t)}};
hf_=function(F,q,t){if(t===!1&&ygM.has(q))Vs(F,q,null);else if(q!=="idomKey"&&q!=="skip"&&q!=="skipchildren"&&q!=="children"&&q!=="el")if(q.startsWith("on")){if(q[2]!==":")throw Error("Qb`"+q);if(t===void 0||t===null){var u;(u=l5.handleError)==null||u.call.apply(u,[l5].concat(_.mZ(b5(Error("Vb`"+q),F.tagName))));F[q]=void 0}else{var J=q.slice(3);u=Od();if(J==="jsaction"){t=Array.isArray(t)?t:[t];t=_.X(t);for(var g=t.next();!g.done;g=t.next()){g=g.value;if(typeof g!=="object"||g===null||typeof g.selfReg!==
"function")throw Error("Yb`"+q);g.selfReg(0,F,u?_.vj:function(){})}}else{if(typeof t!=="object"||t===null)throw Error("Wb`"+q+"`"+typeof t);
if(typeof t.getFn!=="function")throw Error("Xb`"+q+"`"+Object.keys(t));if(t.selfReg)t.selfReg(0,F,J,u?_.vj:function(){});
else if(u&&F["on"+J]===void 0){var Y=t.getFn(0);F.addEventListener(J,Y);_.vj(function(){return void F.removeEventListener(J,Y)})}else if(u||!CRo.includes(J))F["on"+J]=t.getFn(0)}}}else{if(q.startsWith("data-")&&typeof t==="string")try{t=dLo(t)}catch(Q){t="zSoyz"}typeof t!=="function"||F._disposeEffects!=null?((u=q.startsWith("prop:"))&&(q=q.slice(5)),l5.enableAttributeSanitization&&(u&&VMu(F.tagName)||(t=ZW$(F.tagName,q,t))),q==="style"?("function"==typeof _.sK&&t instanceof _.sK&&(t=t.toString()),
ULP(F,q,t)):u?F[q]=t:STf(F,q,t)):(F._signalProps||(F._signalProps=[]),F._signalValues||(F._signalValues=[]),F._signalProps.push(q))}};
K0f=function(F,q,t){t=(t===void 0?{}:t).isReactive;if(q==null?0:q.el){var u=q.el,J;(J=u.onRender)==null||J.call(u,F);F._disposeRef||(F._disposeRef=function(){var g;(g=u.onUnmount)==null||g.call(u);delete F._disposeRef},t&&_.vj(function(){var g;
(g=F._disposeRef)==null||g.call(F)}))}};
VMu=function(F){return F.length>0&&F.includes("-")&&!BZq.includes(F.toLowerCase())};
L0o=function(F){return X6(F)&&g2 in F};
fSv=function(F){return L0o(F)?F[g2].flattened:F};
j0u=function(F,q){var t=_.US.apply(2,arguments),u;q=(u=q)!=null?u:{};u={};return u.type=F,u.props=q,u.children=t,u[aSo]=!0,u};
_.ln=function(F){return F.children};
Xb=function(F){var q=cgq!==j0u;cgq=F?FO3:j0u;return q};
_.YI=function(F){return _.ho(F)?"nodeType"in F:!1};
pI=function(){return document.createTextNode("")};
QG=function(F){F=document.createTextNode(String(F));F._isSignalTextNode=!0;return F};
tdC=function(F){return F!=null&&F.contentKind===e6||F instanceof BS||qeA(F)};
u53=function(F){var q=document.createElement("div");if(qeA(F)&&RTq(F))_.JK(q,RTq(F));else if(F instanceof BS)_.JK(q,F);else if(F!=null&&F.contentKind===e6){if(F.contentKind!==e6)throw Error("Ub");F=Ll(F.toString());_.JK(q,F)}F=_.X(q.childNodes);for(var t=F.next();!t.done;t=F.next())t.value._isSafeOrSanitizedHtmlNode=!0;return q};
ZA=function(F){F=typeof F;return F==="string"||F==="number"||F==="boolean"};
JJv=function(F){return F instanceof WS||HS(F)||F instanceof XY||"function"==typeof _.sK&&F instanceof _.sK};
su_=function(F,q){var t=F.parentElement;if(!t)return q;t.replaceChild(q,F);return q};
gzo=function(F,q){var t=F[0].parentElement;if(t)if(F[0].previousSibling||F[F.length-1].nextSibling){t.insertBefore(q,F[0]);for(var u=F.length-1;u>=0;u--)t.removeChild(F[u])}else t.textContent="",t.appendChild(q);return q};
ltt=function(F,q){if(F[0].parentElement)for(var t=F[0].parentElement,u=q.length,J=F.length,g=u,Y=0,Q=0,e=F[J-1].nextSibling,r=null;Y<J||Q<g;)if(F[Y]===q[Q])Y++,Q++;else{for(;F[J-1]===q[g-1];)J--,g--;if(J===Y)for(var N=g<u?Q?q[Q-1].nextSibling:q[g-Q]:e;Q<g;){var w=q[Q++];t.insertBefore(w,N)}else if(g===Q)for(;Y<J;)N=F[Y],r&&r.has(N)||t.removeChild(N),Y++;else if(F[Y]===q[g-1]&&q[Q]===F[J-1])N=F[--J].nextSibling,t.insertBefore(q[Q++],F[Y++].nextSibling),t.insertBefore(q[--g],N),F[J]=q[g];else{if(!r)for(r=
new Map,N=Q;N<g;)r.set(q[N],N++);N=r.get(F[Y]);if(N==null)t.removeChild(F[Y]),Y++;else if(Q<N&&N<g){w=Y;for(var k=1,z=void 0;++w<J&&w<g&&(z=r.get(F[w]))!=null&&z===N+k;)k++;if(k>N-Q)for(w=F[Y];Q<N;)t.insertBefore(q[Q++],w);else t.replaceChild(q[Q++],F[Y++])}else Y++}}return q};
Yeo=function(F){if(Array.isArray(F)){if(F.length>1)throw Error("gc`"+F.length+"`"+F.map(XWC).join(", "));F=F[0]}if(F==null)return null;if(!(F instanceof _.FY)){var q,t;if((q=window)==null?0:(t=q.trustedTypes)==null?0:t.isScript(F))throw Error("fc");if(String(F).trim().length===0)return null;throw Error("hc`"+XWC(F));}return F};
pWo=function(F,q){q=Yeo(q);q!==null&&_.tK(F,q)};
QuC=function(F){if(Array.isArray(F)){if(F.length>1)throw Error("ic`"+F.length+"`"+F.map(XWC).join(", "));F=F[0]}if(F==null)return null;if(!(F instanceof XY)){if(String(F).trim().length===0)return null;throw Error("jc`"+XWC(F));}return F};
e_M=function(F,q){q=QuC(q);q!==null&&(F.textContent=ePA(q))};
XWC=function(F){return"("+typeof F+") "+(F!=null&&typeof F==="object"?F.constructor.name:typeof F)+" "+F};
ZBC=function(){};
w2=function(F,q){q=q===void 0?{}:q;var t=R_o();l5.legacyTriggerSoyRendererEvents&&Coo();_.m1(function(){R5.setUp();q.isControlFlowComponent&&M3++;var u=t[0],J=t[g2].flattened,g=Xb(!0);try{var Y=F(),Q=rJt(u,Y,t);Array.isArray(Q)||(t[g2].flattened=[Q]);var e=t[g2].flattened;if(J&&(!Array.isArray(J)||J.length!==0)){var r=Array.isArray(J)?J[0]:J,N=r[r2],w=r._disposeEffects;r._disposeEffects=void 0;r=Array.isArray(e)?e[0]:e;r[r2]=N;r[r2]&&(r[r2].numNodes=r===e?1:e.length);r._disposeEffects=w}t[0]=Q;q.isControlFlowComponent&&
Gy(!1)}catch(k){throw q.isControlFlowComponent&&Gy(!0),k;}finally{Xb(g),R5.tearDown()}},q.debugName);
return t};
rJt=function(F,q,t){for(;typeof q==="function";)q=q();if(q!=null&&q[aSo]){var u,J,g;(g=l5.handleError)==null||g.call.apply(g,[l5].concat(_.mZ(b5(Error("kc`"+((u=q.type)==null?void 0:u.TAG_NAME)),(J=q.type)==null?void 0:J.TAG_NAME))))}if(F==null)return q==null?pI():ZA(q)?QG(q):JJv(q)?QG(q.toString()):_.YI(q)?q:q.length===0?pI():NQo(q,t);if(_.YI(F)){if(q==null)return su_(F,pI());if(ZA(q))return wWC(F,q);if(JJv(q))return wWC(F,q.toString());if(_.YI(q))return su_(F,q);if(q.length===0)return su_(F,pI());
q=NQo(q,t);ltt([F],t[g2].flattened);return q}F=kI(F);if(q==null)return gzo(F,pI());if(ZA(q))return gzo(F,QG(q));if(JJv(q))return gzo(F,QG(q.toString()));if(_.YI(q))return ltt(F,[q])[0];if(q.length===0)return gzo(F,pI());q=NQo(q,t);ltt(F,t[g2].flattened);return q};
wWC=function(F,q){F.nodeType===Node.TEXT_NODE?F.textContent!==String(q)&&(F.textContent=String(q)):F=su_(F,QG(q));return F};
kI=function(F,q,t){return iB$(F,q!=null?q:[],t===void 0?!1:t)};
NQo=function(F,q){var t=kI(F,void 0,!0);if(t.length===0)return pI();q[g2].flattened=t;return F};
iB$=function(F,q,t,u,J){q=q===void 0?[]:q;t=t===void 0?!1:t;J=J===void 0?-1:J;if(F==null)return q;if(F instanceof EK){var g=F.render();return iB$(g,q,t,u,J)}if(_.YI(q)&&q.nodeType===Node.ELEMENT_NODE)switch(q.tagName){case "SCRIPT":pWo(q,F);return;case "STYLE":e_M(q,F);return}ZA(F)&&(F=QG(F),u&&t&&(u[J]=F));if(tdC(F)){t=u53(F);t=Array.from(t.childNodes);t=_.X(t);for(g=t.next();!g.done;g=t.next())kWv(q,g.value);return q}JJv(F)&&(F=QG(F.toString()),u&&t&&(u[J]=F));if(_.YI(F))return kWv(q,F);if(Array.isArray(F)){for(g=
0;g<F.length;g++)iB$(F[g],q,t,F,g);return q}if(typeof F==="function"){g=w2(function(){var Q=F();return Q!=null&&!ZA(Q)&&tdC(Q)?(Q=u53(Q),Array.from(Q.childNodes)):Q},{debugName:"qmF2ne",
debugFn:F})[0];if(Array.isArray(g)){t=_.X(g);for(g=t.next();!g.done;g=t.next())kWv(q,g.value);return q}u&&t&&(u[J]=g);return kWv(q,g)}if(F!=null&&F[aSo]){u=F;J=Xb(!0);var Y=cgq;try{g=Y.apply(null,[u.type,u.props].concat(_.mZ(u.children)))}finally{Xb(J)}return iB$(g,q,t)}(Y=l5.handleError)==null||Y.call.apply(Y,[l5].concat(_.mZ(b5(Error("lc")))));return q};
R_o=function(F){var q={};q=Object.assign([],(q[g2]={flattened:[]},q));if(!F)return q;q[0]=NQo(F,q);return q};
kWv=function(F,q){Array.isArray(F)?F.push(q):F.appendChild(q);return F};
zn=function(F){if(!l5.enableLazyTsx)return F;if(Array.isArray(F)){for(var q=0;q<F.length;q++)F[q]=zn(F[q]);return F}return F instanceof EK?(F=F.render(),zn(F)):F};
z_3=function(F,q){var t,u,J=BOf(F),g=function(z){u=z;z=Xb(!0);var T=pq(o5);akf("render",J);try{t=zn(F(q))}finally{jeu("render",J),pq(T),Xb(z)}};
g=l5.enableContextPerComponent?qD$(g,J):Iv(g,l5.alwaysTrackContexts||!!tO);u1f(u);if(!q.renderedFromIdom){var Y=_.u5(u);try{return Ezo(F,q,t),t}finally{_.u5(Y)}}!L0o(t)&&Array.isArray(t)&&(t=R_o(t));var Q=fSv(t);Y=Array.isArray(Q)?Q[0]:Q;var e=!1;if(Y){var r,N=(r=q==null?void 0:q.idomKey)!=null?r:F;r=Q!==Y;Y._disposeEffects=g;var w=Y[r2]||{},k=L0o(t)?t:w.sourceDynamicRange;Object.assign(w,{key:N,numNodes:r?Q.length:1,context:u,higherOrder:!!Y[r2],sourceDynamicRange:k});Y[r2]=w}else e=!0;(function(){var z=
_.u5(u);try{Ezo(F,q,Q)}finally{_.u5(z)}})();
e&&g();return t};
ozo=function(F){var q={},t;for(t in F)q={prev$jscomp$24:void 0,next$jscomp$33:void 0},q.prev$jscomp$24=nI[t],q.next$jscomp$33=F[t],nI[t]=function(u){return function(){var J=_.US.apply(0,arguments);u.prev$jscomp$24.apply(null,_.mZ(J));u.next$jscomp$33.apply(null,_.mZ(J))}}(q)};
MdC=function(){if(Od())throw Error("mc");return nzt};
TQo=function(F,q){if(!F.__unmounted&&q){F.__unmounted=!0;try{F.didUnmount()}catch(J){var t,u;(u=l5.handleError)==null||u.call.apply(u,[l5].concat(_.mZ(b5(J,(t=F.__type)==null?void 0:t.TAG_NAME))))}nI.didUnmount(F);F.el=null;q.__instance&&delete q.__instance}};
Dd$=function(F,q,t){F._signalProps!=null&&F._disposeEffects==null&&((t===void 0?0:t)?F._disposeEffects=Iv(function(){return void GWt(F,q)},l5.alwaysTrackContexts||!!tO):GWt(F,q))};
GWt=function(F,q){_.m1(function(){for(var t=F._signalProps,u=F._signalValues,J=0;J<t.length;J++){var g=t[J],Y=q[g]();u[J]!==Y&&(u[J]=Y,hf_(F,g,Y))}},"e3YVbb")};
WOo=function(F,q,t){var u,J=[];F._disposeEffects=Iv(function(){_.m1(function(){var g=t();if(g===null||g===void 0)g="";if(ZA(g)||g===null)u!=null||(u=document.createTextNode("")),u.parentNode!==F&&(u._isSignalTextNode=!0,F.insertBefore(u,q)),u.textContent=String(g);else if(tdC(g)){for(var Y=J.length>0?J[J.length-1].nextSibling:q,Q=_.X(J),e=Q.next();!e.done;e=Q.next())F.removeChild(e.value);g=u53(g);J=Array.from(g.childNodes);g=_.X(J);for(Q=g.next();!Q.done;Q=g.next())F.insertBefore(Q.value,Y)}else throw e=
(Q=(Y=DV)==null?void 0:Y.name)!=null?Q:"unknown",Error("bc`"+e+"`"+typeof g);},"VvDgC")},l5.alwaysTrackContexts||!!tO)};
xdq=function(F,q){var t=_.US.apply(2,arguments);q!=null||(q={});return!l5.enableLazyTsx||DV!=null&&!Od()?OBo(F,q,t):new P7M(F,q,t)};
OBo=function(F,q,t){if(F===_.ln)return t;if(typeof F==="function")return DV&&!Od()&&(q.renderedFromIdom=!0),LHf(F,function(){var g=AJo(F,q,t);if(g)return g;t.length>0&&(q.children=t.length===1?t[0]:t);if(F.componentType===_.Wj){var Y;qD$(function(){var Q=q;if(F.componentType!==_.Wj)Y=!1;else{Q||(Q={});var e=new MM(Q,F),r=pq(o5);try{var N=e.render(Q)}finally{pq(r)}N instanceof HTMLElement?(N.__instance=e,e.el=N,e.__type=F,F.TAG_NAME=N.tagName.toLowerCase(),nI.didPatch(e),Y=N):Y=N}},F.name);
if(Y)return Y}return z_3(F,q)},q.debugInstance);
var u=vzu(F,q),J;for(J in q)hf_(u,J,q[J]);Dd$(u,q);kI(t,u);K0f(u,q,{isReactive:!0});ItA(u,q);return u};
vzu=function(F,q){F=(HBM.has(F.toLowerCase())?0:mdM.has(F.startsWith("svg:")?F.replace("svg:",""):F))?document.createElementNS("http://www.w3.org/2000/svg",F.startsWith("svg:")?F.replace("svg:",""):F):$dP(F,q)||document.createElement(F);F[bBu]=!0;return F};
_.yJ$=function(F){if(F){var q;(q=F._disposeRef)==null||q.call(F);var t;(t=F._disposeEffects)==null||t.call(F);F.__instance&&F.__instance instanceof Tn&&(q=F.__instance,TQo(q,F),q instanceof MM&&q.disposeEffects());for(q=0;q<F.childNodes.length;q++)_.yJ$(F.childNodes[q])}};
dd$=function(F){C7o.push(F)===1&&requestAnimationFrame(function(){setTimeout(function(){var q=[].concat(_.mZ(C7o));C7o=[];q=_.X(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;try{for(var u=0;u<t.length;u++)_.yJ$(t[u])}catch(J){u=t=void 0,(u=(t=l5).handleError)==null||u.call.apply(u,[t].concat(_.mZ(b5(J))))}}})})};
_.Z=function(F,q){return cgq.apply(null,[F,q].concat(_.mZ(_.US.apply(2,arguments))))};
Vd3=function(F,q){q=q===void 0?new Map:q;F=_.X(F);for(var t=F.next();!t.done;t=F.next())if(t=t.value,!q.has(t)){for(var u=[],J=t.producers;J!==void 0;J=J.nextProducer)u.push(J.producer);q.set(t,u);Vd3(u,q)}return q};
_.R=function(F){var q=F.cond;if(q===void 0)return F.else&&F.else();var t=_.zy(function(){return!!q()},void 0,"JHVi8"),u=function(){var J=q();
if(!J){var g;(g=l5.handleError)==null||g.call.apply(g,[l5].concat(_.mZ(b5(Ud_.nonNullableCondIsNull()))))}return J};
return w2(function(){var J=t(),g;Iv(function(){var Y=pq(o5);try{g=zn(J?F.then(u):F.else&&F.else())}finally{pq(Y)}},!0);
return g},{debugName:F.debugInstance,
debugFn:F.then,isControlFlowComponent:!0})};
Sev=function(F){return _.R(F)};
_.Gn=function(F){return F.keyBy==="INDEX"?h_u(F):KOy(F)};
BQM=function(F){F=_.X(F);for(var q=F.next();!q.done;q=F.next()){var t=void 0;(t=q.value)==null||t()}};
KOy=function(F){var q=F.keyBy===void 0||F.keyBy==="REFERENCE",t=q?function(N){return N}:F.keyBy,u=[],J=[],g=[],Y=[],Q=[],e=[],r=!0;
_.vj(function(){BQM(Y)});
return w2(function(){var N=F.each(),w=N.length;if(w===0){if(u.length===0&&!r)return g;BQM(Y);u=N;J=[];for(N=0;N<u.length;N++)J.push(t(u[N]));g=[];Y=[];Q=[];e=[];F.fallback&&(Y[0]=LOW(function(){g[0]=zn(F.fallback())}));
r=!1;return g}for(var k=new fty,z=u.length-1;z>=0;z--)k.push(J[z],z);z=Array(w);for(var T=Array(w),P=Array(w),v=Array(w),H=Array(q?0:w),d={i$jscomp$450:0};d.i$jscomp$450<w;d={i$jscomp$450:d.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$564:void 0},d.i$jscomp$450++){d.item$jscomp$104=N[d.i$jscomp$450];d.key$jscomp$564=t(d.item$jscomp$104);var a=k.pop(d.key$jscomp$564);a!=null?(P[d.i$jscomp$450]=g[a],T[d.i$jscomp$450]=J[a],z[d.i$jscomp$450]=Y[a],v[d.i$jscomp$450]=Q[a],q||(H[d.i$jscomp$450]=e[a]),ov(function(S){return function(){v[S.i$jscomp$450](S.i$jscomp$450);
if(!q)H[S.i$jscomp$450](S.item$jscomp$104)}}(d)),delete Y[a]):z[d.i$jscomp$450]=LOW(function(S){return function(){var K=_.X(_.N3(S.i$jscomp$450,void 0,"Fqk1zd")),h=K.next().value;
K=K.next().value;v[S.i$jscomp$450]=K;T[S.i$jscomp$450]=S.key$jscomp$564;if(q)P[S.i$jscomp$450]=zn(F.children(S.item$jscomp$104,h));else{var c=_.X(_.N3(S.item$jscomp$104,void 0,"GBj5de"));K=c.next().value;c=c.next().value;H[S.i$jscomp$450]=c;P[S.i$jscomp$450]=zn(F.children(K,h))}}}(d))}BQM(Y);
u=N;J=T;g=P;Y=z;Q=v;e=H;r=!1;return P},{debugName:F.debugInstance,
debugFn:F.each,isControlFlowComponent:!0})};
h_u=function(F){var q=[],t=[],u=[],J=[],g=!1;_.vj(function(){for(var Y=_.X(J),Q=Y.next();!Q.done;Q=Y.next())Q=Q.value,Q()});
return w2(function(){var Y=F.each();g&&Y.length>0&&(J.pop()(),q.pop(),g=!1);for(var Q=Array(Y.length),e={i$jscomp$451:0};e.i$jscomp$451<Y.length;e={i$jscomp$451:e.i$jscomp$451},e.i$jscomp$451++)if(e.i$jscomp$451<q.length)q[e.i$jscomp$451]!==Y[e.i$jscomp$451]&&(ov(function(N){return function(){return void t[N.i$jscomp$451](Y[N.i$jscomp$451])}}(e)),q[e.i$jscomp$451]=Y[e.i$jscomp$451]),Q[e.i$jscomp$451]=u[e.i$jscomp$451];
else{var r=LOW(function(N){return function(){q[N.i$jscomp$451]=Y[N.i$jscomp$451];var w=_.X(_.N3(Y[N.i$jscomp$451],void 0,"JMMLmd")),k=w.next().value;w=w.next().value;t[N.i$jscomp$451]=w;Q[N.i$jscomp$451]=zn(F.children(k,N.i$jscomp$451))}}(e));
J[e.i$jscomp$451]=r}for(;q.length>Y.length;)q.pop(),J.pop()(),t.pop();Y.length===0&&!g&&F.fallback&&(e=LOW(function(){Q[0]=zn(F.fallback())}),J[0]=e,g=!0);
return u=Q},{debugName:F.debugInstance,
isControlFlowComponent:!0})};
LOW=function(F){var q=tO;return Iv(function(t){var u=pq(o5);try{t.parent=q,F(t)}finally{pq(u)}},!1)};
_.DA=function(F){return F};
_.W_=function(F){return{isDefault:!0,children:F.children}};
_.OK=function(F){var q=at3(F),t=_.zy(function(){return ju$(q)},void 0,"F1PF4");
return w2(function(){var u=t(),J;Iv(function(){var g=pq(o5);try{J=zn(u())}finally{pq(g)}});
return J},{debugName:F.debugInstance,
isControlFlowComponent:!0})};
at3=function(F){F=F.children;return Array.isArray(F)?F:[F]};
cJy=function(F){var q=F.props;F=F.getChildren()[0];return q.when?{when:q.when,children:F}:{isDefault:!0,children:F}};
ju$=function(F){var q=function(){return null};
F=_.X(F);for(var t=F.next();!t.done;t=F.next())if(t=t.value,t!=null&&t[aSo]&&(t=t.type===_.W_?{isDefault:!0,children:t.children[0]}:{when:t.props.when,children:t.children[0]}),t instanceof EK&&(t=cJy(t)),t.isDefault)q=t.children;else if(t.when())return t.children;return q};
qHv=function(F){var q=null,t,u={get value(){var g,Y;(Y=(g=J).validateGetValue)==null||Y.call(g);return J.__value},set value(g){var Y,Q;(Q=(Y=J).validateSetValue)==null||Q.call(Y,g);J.__value=g;J.__hasBeenSet=!0}},J=(u.__value=null,u.__hasBeenSet=!1,u.__hasErrored=!1,u.onRender=function(g){if(t&&g!==t){t._disposeRef=void 0;var Y;(Y=q)==null||Y()}t=g;q=F(g)||null},u.onUnmount=function(){var g;
(g=q)==null||g();q=J.value=null},u[_.FjC]=!0,u);
return J};
P_=function(F){return typeof F==="symbol"};
uwo=function(F){var q=MdC();if(q==null)throw _.tco.PRIMITIVE_INVALID_HOOK_CALL();var t=q.hookCounter++;q.hooks||(q.hooks=[]);var u=q.hooks;u[t]||(u[t]={key:F,host:q});if(F!==u[t].key){if(q.__type){var J;F=(J=q.__type)==null?void 0:J.name}else F=q instanceof MM?BOf(q.functionComponent):"<"+q.el.tagName.toLowerCase()+">";throw _.tco.OUT_OF_ORDER_HOOK_CALL(F);}return u[t]};
JVM=function(F,q){return!F||F.length!==(q==null?void 0:q.length)||F.some(function(t,u){return t!==q[u]})};
sDo=function(F,q){var t=uwo("onChange"),u=MdC();JVM(t.deps,q)&&(t.deps=q,t.pendingEffect=F,u.__syncEffects||(u.__syncEffects=[]),u.__syncEffects.push(t))};
_.xI=function(F,q,t){t!=null||(t={});t=t.appContext;var u=!!l5.legacyTriggerSoyRendererEvents;R5.setUp();try{var J=goq(F,q,t);u&&(q=t,q==null&&(q=_.nwf(document).getAppContext()),q.get(llf).JSC$29016_getEventTarget().dispatchEvent(new Xot(YHA,F,e6)));R5.log(F);return J}finally{R5.tearDown()}};
goq=function(F,q,t){var u=function(){var g=pq(o5);try{return Iv(function(){var Y=_.nwf(_.Cs(F)),Q;var e=yD3({rootElement:{value:F},appContext:t||(Y==null?void 0:(Q=Y.getOptionalAppContext)==null?void 0:Q.call(Y)),dispatcher:Y});Y=_.u5(e);e=Xb(!0);M3++;try{kI(q(),F),Gy(!1)}catch(r){throw Gy(!0),r;}finally{Xb(e),_.u5(Y)}},!1)}catch(Y){throw l5.enableContextBasedComponentStacks&&Pj(Y),Y;
}finally{pq(g)}},J=xR(function(){return u()});
F[poA]=!0;return function(){F.textContent="";J();F[poA]=!1}};
_.AN=function(F){if(hFC(YR)){var q;(q=l5.handleError)==null||q.call.apply(q,[l5].concat(_.mZ(b5(Error("ac")))))}var t=tO,u=DV;Promise.resolve().then(function(){if(t&&!t.isDisposed){var J=_.u5(t);try{xR(function(){return void F()},u)}catch(g){throw l5.enableContextBasedComponentStacks&&Pj(g),g;
}finally{_.u5(J)}}})};
QD$=function(F,q){sDo(function(){return rP(F)},q)};
_.v_=function(F){Od()?_.AN(function(){rP(F)}):sDo(function(){return rP(F)},[])};
ZJA=function(F){var q=[].concat(_.mZ(F));F.length=0;F=_.X(q);for(q=F.next();!q.done;q=F.next()){q=q.value;eSC(q);var t=q.pendingEffect;q.pendingEffect=null;if(t=t==null?void 0:t())q.pendingCleanup=t}};
eSC=function(F){var q=F.pendingCleanup;F.pendingCleanup=null;q==null||q()};
RS_=function(F,q){if(Od())return F();var t=uwo("useMemoInternal");JVM(t.deps,q)&&(t.deps=q,t.value=F());return t.value};
rVM=function(F,q){return RS_(F,q)};
I5=function(F){return RS_(F,[])};
NYP=function(F){return I5(function(){return{value:F}})};
_.H_=function(F,q){if(!F)return null;F=Object.keys(F);F=_.X(F);for(var t=F.next();!t.done;t=F.next()){t=t.value;var u=t.toLowerCase();if(u.indexOf(q,u.length-q.length)>-1)return t}return null};
_.$I=function(){var F=arguments,q=_.m8;F.length>1?q[F[0]]=F[1]:F.length===1&&Object.assign(q,F[0])};
_.bn=function(F,q){return F in _.m8?_.m8[F]:q};
_.yG=function(F,q){return!!_.bn(F,q)};
wof=function(F){var q=_.m8.EXPERIMENT_FLAGS;return q?q[F]:void 0};
kVq=function(F){iJ_.forEach(function(q){return q(F)})};
_.UK=function(F){return F&&window.yterr?function(){try{return F.apply(this,arguments)}catch(q){_.CI(q)}}:F};
_.CI=function(F){var q=_.S6("yt.logging.errors.log");q?q(F,"ERROR",void 0,void 0,void 0,void 0,void 0):(q=_.bn("ERRORS",[]),q.push([F,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.$I("ERRORS",q));kVq(F)};
_.hN=function(F,q,t,u,J){var g=_.S6("yt.logging.errors.log");g?g(F,"WARNING",q,t,u,void 0,J):(g=_.bn("ERRORS",[]),g.push([F,"WARNING",q,t,u,void 0,J]),_.$I("ERRORS",g))};
zSP=function(F,q){q=F.split(q);for(var t={},u=0,J=q.length;u<J;u++){var g=q[u].split("=");if(g.length===1&&g[0]||g.length===2)try{var Y=EoA(g[0]||""),Q=EoA(g[1]||"");if(Y in t){var e=t[Y];Array.isArray(e)?_.UM(e,Q):t[Y]=[e,Q]}else t[Y]=Q}catch(k){var r=k,N=g[0],w=String(zSP);r.args=[{key:N,value:g[1],query:F,method:oou===w?"unchanged":w}];nof.hasOwnProperty(N)||_.hN(r)}}return t};
Mc_=function(F){var q=[];_.m7.forEach(F,function(t,u){var J=_.KI(u);t=Array.isArray(t)?t:[t];_.B_(t,function(g){g==""?q.push(J):q.push(J+"="+_.KI(g))})});
return q.join("&")};
_.LI=function(F){F.charAt(0)==="?"&&(F=F.substring(1));return zSP(F,"&")};
_.fI=function(F){return F.indexOf("?")!==-1?(F=(F||"").split("#")[0],F=F.split("?",2),_.LI(F.length>1?F[1]:F[0])):{}};
_.a5=function(F,q){return TYo(F,q||{},!0)};
GVA=function(F,q){return TYo(F,q||{},!1)};
TYo=function(F,q,t){var u=F.split("#",2);F=u[0];u=u.length>1?"#"+u[1]:"";var J=F.split("?",2);F=J[0];J=_.LI(J[1]||"");for(var g in q)if(t||!_.m7.containsKey(J,g))J[g]=q[g];return _.j6(F,J)+u};
tU=function(F){if(!q)var q=window.location.href;var t=_.c_(F)[1]||null,u=_.FR(F);return t&&u?qh(F,q):u?_.FR(q)===u&&(Number(_.c_(q)[4]||null)||null)===(Number(_.c_(F)[4]||null)||null):!0};
_.Wjy=function(F){F=DUo(F);return F===null?!1:F[0]==="com"&&F[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
DUo=function(F){F=_.FR(F);return F!==null?F.split(".").reverse():null};
EoA=function(F){return F&&F.match(OJP)?F:uK(F)};
_.JU=function(F){return new PNW(F)};
_.sV=function(){xUC||(xUC=new AVt);return xUC};
IlC=function(){var F=voC;return function(){var q=_.sV();q.resolve(_.JU(F))||q.addProvider({provide:F,useClass:F});return q.resolve(F)}};
mUM=function(F){var q=_.gN,t,u;_.p(function(J){t=_.sV();return(u=t.resolve(_.JU(q)))?(F(u),J.return(Promise.resolve(u))):J.return(t.resolve(new HJy(q)).then(function(g){F(g);return g}))})};
_.E=function(F){F=lK(F);return typeof F==="string"&&F==="false"?!1:!!F};
_.YE=function(F,q){F=lK(F);return F===void 0&&q!==void 0?q:Number(F||0)};
$Uo=function(F){F=lK(F);return Array.isArray(F)?_.$q(F,function(q){return Number(q||0)}):[Number(F||0)]};
_.pE=function(F){F=lK(F);return F!==void 0?String(F):""};
_.ev=function(F){F=lK(F);return Array.isArray(F)?_.$q(F,function(q){return String(q||"")}):[String(F||"")]};
bJC=function(){return _.bn("EXPERIMENTS_TOKEN","")};
lK=function(F){return _.bn("EXPERIMENT_FLAGS",{})[F]};
yV3=function(){for(var F=[],q=_.bn("EXPERIMENTS_FORCED_FLAGS",{}),t=_.X(Object.keys(q)),u=t.next();!u.done;u=t.next())u=u.value,F.push({key:u,value:String(q[u])});t=_.bn("EXPERIMENT_FLAGS",{});u=_.X(Object.keys(t));for(var J=u.next();!J.done;J=u.next())J=J.value,J.startsWith("force_")&&q[J]===void 0&&F.push({key:J,value:String(t[J])});return F};
dUf=function(){if(!CNu)return null;var F=CNu();return"open"in F?F:null};
_.Vcv=function(F){switch(_.Z0(F)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Z0=function(F){return F&&"status"in F?F.status:-1};
_.Rm=function(F,q){typeof F==="function"&&(F=_.UK(F));return window.setTimeout(F,q)};
_.rN=function(F,q){typeof F==="function"&&(F=_.UK(F));return window.setInterval(F,q)};
_.Nh=function(F){window.clearTimeout(F)};
SHA=function(F){F=_.fI(F);for(var q=_.X(UUt),t=q.next();!t.done;t=q.next())if(F[t.value]!==void 0)return!0;return!1};
BYA=function(F,q,t,u,J,g,Y,Q,e){t=t===void 0?"GET":t;u=u===void 0?"":u;Q=Q===void 0?!1:Q;var r=dUf();if(!r)return null;var N=function(){(r&&"readyState"in r?r.readyState:0)===4&&q&&_.UK(q)(r)};
"onloadend"in r?r.addEventListener("loadend",N,!1):r.onreadystatechange=N;_.E("debug_forward_web_query_parameters")&&(F=hSv(F,window.location.search));r.open(t,F,!0);g&&(r.responseType=g);Y&&(r.withCredentials=!0);t=t==="POST"&&(window.FormData===void 0||!(u instanceof FormData));if(J=KjA(F,J))for(var w in J)r.setRequestHeader(w,J[w]),"content-type"===w.toLowerCase()&&(t=!1);t&&r.setRequestHeader("Content-Type","application/x-www-form-urlencoded");e&&"onprogress"in r&&(r.onprogress=function(){e(r.responseText)});
if(Q&&"setAttributionReporting"in XMLHttpRequest.prototype){F={eventSourceEligible:!0,triggerEligible:!1};try{r.setAttributionReporting(F)}catch(k){_.hN(k)}}r.send(u);return r};
KjA=function(F,q){q=q===void 0?{}:q;var t=tU(F),u=_.bn("INNERTUBE_CLIENT_NAME"),J=_.E("web_ajax_ignore_global_headers_if_set"),g;for(g in LjW){var Y=_.bn(LjW[g]),Q=g==="X-Goog-AuthUser"||g==="X-Goog-PageId";g!=="X-Goog-Visitor-Id"||Y||(Y=_.bn("VISITOR_DATA"));var e;if(!(e=!Y)){if(!(e=t||(_.FR(F)?!1:!0))){e=F;var r;if(r=_.E("add_auth_headers_to_remarketing_google_dot_com_ping")&&g==="Authorization"&&(u==="TVHTML5"||u==="TVHTML5_UNPLUGGED"||u==="TVHTML5_SIMPLY"))r=DUo(e),r=r===null?!1:r[1]==="google"?
!0:r[2]==="google"?r[0]==="au"&&r[1]==="com"?!0:r[0]==="uk"&&r[1]==="co"?!0:!1:!1;r&&(e=_.wN(e)||"",e=e.split("/"),e="/"+(e.length>1?e[1]:""),r=e==="/pagead");e=r?!0:!1}e=!e}e||J&&q[g]!==void 0||u==="TVHTML5_UNPLUGGED"&&Q||(q[g]=Y)}"X-Goog-EOM-Visitor-Id"in q&&"X-Goog-Visitor-Id"in q&&delete q["X-Goog-Visitor-Id"];if(t||!_.FR(F))q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(t||!_.FR(F)){try{var N=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(w){}N&&(q["X-YouTube-Time-Zone"]=
N)}document.location.hostname.endsWith("youtubeeducation.com")||!t&&_.FR(F)||(q["X-YouTube-Ad-Signals"]=Mc_(flC()));return q};
_.alu=function(F,q){var t=_.FR(F);_.E("debug_handle_relative_url_for_query_forward_killswitch")||!t&&tU(F)&&(t=document.location.hostname);var u=_.wN(F);u=(t=t&&(t.endsWith("youtube.com")||t.endsWith("youtube-nocookie.com")))&&u&&u.startsWith("/api/");if(!t||u)return F;var J=_.LI(q),g={};_.B_(UUt,function(Y){J[Y]&&(g[Y]=J[Y])});
return GVA(F,g)};
jDP=function(F,q){q.method="POST";q.postParams||(q.postParams={});return _.iK(F,q)};
cVf=function(F,q){var t=_.bn("XSRF_FIELD_NAME"),u;q.headers&&(u=q.headers["Content-Type"]);return!q.excludeXsrf&&(!_.FR(F)||q.withCredentials||_.FR(F)===document.location.hostname)&&q.method==="POST"&&(!u||u==="application/x-www-form-urlencoded")&&!(q.postParams&&q.postParams[t])};
_.iK=function(F,q){var t=q.format||"JSON";F=FVW(F,q);var u=qf$(F,q),J=!1,g=tz3(F,function(e){if(!J){J=!0;Q&&_.Nh(Q);var r=_.Vcv(e),N=null,w=400<=e.status&&e.status<500,k=500<=e.status&&e.status<600;if(r||w||k)N=uEM(F,t,e,q.convertToSafeHtml);r&&(r=Jxt(t,e,N));N=N||{};w=q.context||_.uu;r?q.onSuccess&&q.onSuccess.call(w,e,N):q.onError&&q.onError.call(w,e,N);q.onFinish&&q.onFinish.call(w,e,N)}},q.method,u,q.headers,q.responseType,q.withCredentials,!1,q.onProgress);
u=q.timeout||0;if(q.onTimeout&&u>0){var Y=q.onTimeout;var Q=_.Rm(function(){J||(J=!0,g.abort(),_.Nh(Q),Y.call(q.context||_.uu,g))},u)}return g};
FVW=function(F,q){q.includeDomain&&(F=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+F);var t=_.bn("XSRF_FIELD_NAME");if(q=q.urlParams)q[t]&&delete q[t],F=_.a5(F,q);return F};
qf$=function(F,q){var t=_.bn("XSRF_FIELD_NAME"),u=_.bn("XSRF_TOKEN"),J=q.postBody||"",g=q.postParams;cVf(F,q)&&(g||(g={}),g[t]=u);(_.E("ajax_parse_query_data_only_when_filled")&&g&&Object.keys(g).length>0||g)&&typeof J==="string"&&(J=_.LI(J),_.m7.extend(J,g),J=q.postBodyFormat&&q.postBodyFormat==="JSON"?JSON.stringify(J):_.kE(J));g=J||g&&!_.m7.isEmpty(g);!sYW&&g&&q.method!=="POST"&&(sYW=!0,_.CI(Error("Hc")));return J};
uEM=function(F,q,t,u){var J=null;switch(q){case "JSON":try{var g=t.responseText}catch(Y){throw u=Error("Ic"),u.params=F,_.hN(u),Y;}F=t.getResponseHeader("Content-Type")||"";g&&F.indexOf("json")>=0&&(g.substring(0,5)===")]}'\n"&&(g=g.substring(5)),J=JSON.parse(g));break;case "XML":if(F=(F=t.responseXML)?gvM(F):null)J={},_.B_(F.getElementsByTagName("*"),function(Y){J[Y.tagName]=lxC(Y)})}u&&X5q(J);
return J};
X5q=function(F){if(_.ho(F))for(var q in F)q==="html_content"||lu(q,"_html")?F[q]=Ll(F[q]):X5q(F[q])};
Jxt=function(F,q,t){if(q&&q.status===204)return!0;switch(F){case "JSON":return!!t;case "XML":return Number(t&&t.return_code)===0;case "RAW":return!0;default:return!!t}};
gvM=function(F){return F?(F=("responseXML"in F?F.responseXML:F).getElementsByTagName("root"))&&F.length>0?F[0]:null:null};
lxC=function(F){var q="";_.B_(F.childNodes,function(t){q+=t.nodeValue});
return q};
Yfo=function(F){if(F.name==="JavaException")return!0;F=F.stack;return F.includes("chrome://")||F.includes("-extension://")||F.includes("webkit-masked-url://")};
p5M=function(F){if(!F.stack)return!0;var q=!F.stack.includes("\n");return q&&F.stack.includes("ErrorType: ")||q&&F.stack.includes("Anonymous function (Unknown script")||F.stack.toLowerCase()==="not available"||F.fileName==="user-script"||F.fileName.startsWith("user-script:")?!0:!1};
_.EV=function(F){_.OP.call(this);this.JSC$10504_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!F};
elC=function(F,q){var t=F.length,u=0,J=function(){return F.charCodeAt(u++)};
do{var g=QYo(J);if(g===Infinity)break;var Y=g>>3;switch(g&7){case 0:g=QYo(J);if(Y===q)return g;break;case 1:if(Y===q)return;u+=8;break;case 2:g=QYo(J);if(Y===q)return F.substr(u,g);u+=g;break;case 5:if(Y===q)return;u+=4;break;default:return}}while(u<t)};
QYo=function(F){var q=F(),t=q&127;if(q<128)return t;q=F();t|=(q&127)<<7;if(q<128)return t;q=F();t|=(q&127)<<14;if(q<128)return t;q=F();return q<128?t|(q&127)<<21:Infinity};
Rlo=function(F,q,t,u){if(F)if(Array.isArray(F)){var J=u;for(u=0;u<F.length&&!(F[u]&&(J+=Zjq(u,F[u],q,t),J>500));u++);u=J}else if(typeof F==="object")for(J in F){if(F[J]){var g=J;var Y=F[J],Q=q,e=t;g=typeof Y!=="string"||g!=="clickTrackingParams"&&g!=="trackingParams"?0:(Y=elC(atob(Y.replace(/-/g,"+").replace(/_/g,"/")),2))?Zjq(g+".ve",Y,Q,e):0;u+=g;u+=Zjq(J,F[J],q,t);if(u>500)break}}else t[q]=zQ(F),u+=t[q].length;else t[q]=zQ(F),u+=t[q].length;return u};
Zjq=function(F,q,t,u){t+="."+F;F=zQ(q);u[t]=F;return t.length+F.length};
zQ=function(F){try{return(typeof F==="string"?F:String(JSON.stringify(F))).substr(0,500)}catch(q){return"unable to serialize "+typeof F+" ("+q.message+")"}};
rxP=function(F){switch(F){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.nE=function(F,q,t,u,J){_.om.set(F,q,{maxAge:t,path:"/",domain:u===void 0?"youtube.com":u,secure:J===void 0?!1:J})};
_.Nj3=function(F,q,t){_.om.remove(F,q===void 0?"/":q,t===void 0?"youtube.com":t)};
_.Mh=function(){if(_.E("embeds_web_enable_cookie_detection_fix")){if(!_.uu.navigator.cookieEnabled)return!1}else if(!_.om.isEnabled())return!1;if(!_.om.isEmpty())return!0;_.E("embeds_web_enable_cookie_detection_fix")?_.om.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.om.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.om.get("TESTCOOKIESENABLED")!=="1")return!1;_.om.remove("TESTCOOKIESENABLED");return!0};
w5$=function(){var F=_.uu.navigator;return F?F.connection:void 0};
ij_=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(F){}};
_.Ev_=function(){var F=w5$();if(F){var q=k5y[F.type||"unknown"]||"CONN_UNKNOWN";F=k5y[F.effectiveType||"unknown"]||"CONN_UNKNOWN";q==="CONN_CELLULAR_UNKNOWN"&&F!=="CONN_UNKNOWN"&&(q=F);if(q!=="CONN_UNKNOWN")return q;if(F!=="CONN_UNKNOWN")return F}};
ov3=function(){var F=w5$();if(F!=null&&F.effectiveType)return zlf.hasOwnProperty(F.effectiveType)?zlf[F.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.GQ=function(){try{return _.TQ(),!0}catch(F){return!1}};
_.TQ=function(F){if(_.bn("DATASYNC_ID")!==void 0)return _.bn("DATASYNC_ID");throw new _.D0("Datasync ID not set",F===void 0?"unknown":F);};
_.Wc=function(F){this.mechanism=F};
OV=function(F){this.mechanism=F};
Pc=function(F){this.storage_=F;this.cachedIsStorageAvailable_=null};
nvP=function(){var F=null;try{F=_.uu.localStorage||null}catch(q){}Pc.call(this,F)};
Mzo=function(){var F=null;try{F=_.uu.sessionStorage||null}catch(q){}Pc.call(this,F)};
xE=function(F,q){this.mechanism_=F;this.JSC$10606_prefix_=q+"::"};
_.Tj_=function(F){var q=new nvP;return q.isAvailable()?F?new xE(q,F):q:null};
_.G5q=function(F){var q=new Mzo;return q.isAvailable()?F?new xE(q,F):q:null};
WVf=function(){var F;return(F=Dpt())==null?void 0:F.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Im=function(F){Ojo||(_.AU?_.AU.logError(F):(_.vc.push({type:"ERROR",payload:F}),_.vc.length>10&&_.vc.shift()))};
Hc=function(F,q){Ojo||(_.AU?_.AU.logEvent(F,q):(_.vc.push({type:"EVENT",eventType:F,payload:q}),_.vc.length>10&&_.vc.shift()))};
mh=function(F){if(F.indexOf(":")>=0)throw Error("Pc");};
$E=function(F){return F.substr(0,F.indexOf(":"))||F};
AxW=function(){return(PCP||xpM)&&bK("applewebkit")&&!bK("version")&&(!bK("safari")||bK("gsa/"))};
bK=function(F){var q=_.NA();return q?q.toLowerCase().indexOf(F)>=0:!1};
Hjo=function(F,q,t,u){q=$E(q);var J=F instanceof Error?F:Error("Qc`"+F);if(J instanceof CE)return J;F={objectStoreNames:t,dbName:q,dbVersion:u};if(J.name==="QuotaExceededError")return new CE("QUOTA_EXCEEDED",F);if(_.dN&&J.name==="UnknownError")return new CE("QUOTA_MAYBE_EXCEEDED",F);if(J instanceof vvo)return new CE("MISSING_INDEX",Object.assign({},F,{objectStore:J.objectStore,index:J.index}));if(J.name==="InvalidStateError"&&IxP.some(function(g){return J.message.includes(g)}))return new CE("EXECUTE_TRANSACTION_ON_CLOSED_DB",
F);
if(J.name==="AbortError")return new CE("UNKNOWN_ABORT",F,J.message);J.args=[Object.assign({},F,{name:"IdbError",originalName:J.name})];J.level="WARNING";return J};
VF=function(F,q,t){var u=WVf();return new CE("IDB_NOT_SUPPORTED",{context:{caller:F,publicName:q,version:t,hasSucceededOnce:u==null?void 0:u.hasSucceededOnce}})};
mpC=function(F){if(!F)throw Error();throw F;};
$pu=function(F){return F};
bjf=function(F,q,t){var u=function(){try{F.removeEventListener("success",J),F.removeEventListener("error",g)}catch(Y){}},J=function(){q(F.result);
u()},g=function(){t(F.error);
u()};
F.addEventListener("success",J);F.addEventListener("error",g)};
yxq=function(F){return new Promise(function(q,t){bjf(F,q,t)})};
hU=function(F){return new UV(new Sv(function(q,t){bjf(F,q,t)}))};
CCo=function(F,q){return new UV(new Sv(function(t,u){var J=function(){var g=F?q(F):null;g?g.then(function(Y){F=Y;J()},u):t()};
J()}))};
dpC=function(F,q,t){return new Promise(function(u,J){var g=q!==void 0?self.indexedDB.open(F,q):self.indexedDB.open(F);var Y=t.blocked,Q=t.blocking,e=t.terminated,r=t.upgrade,N=t.closed,w,k=function(){w||(w=new KE(g.result,{closed:N}));return w};
g.addEventListener("upgradeneeded",function(z){try{if(z.newVersion===null)throw Error("Vc");if(g.transaction===null)throw Error("Wc");z.dataLoss&&z.dataLoss!=="none"&&Hc("IDB_DATA_CORRUPTED",{reason:z.dataLossMessage||"unknown reason",dbName:$E(F)});var T=k(),P=new Bc(g.transaction);r&&r(T,function(v){return z.oldVersion<v&&z.newVersion>=v},P);
P.done.catch(function(v){J(v)})}catch(v){J(v)}});
g.addEventListener("success",function(){var z=g.result;Q&&z.addEventListener("versionchange",function(){Q(k())});
z.addEventListener("close",function(){Hc("IDB_UNEXPECTEDLY_CLOSED",{dbName:$E(F),dbVersion:z.version});e&&e()});
u(k())});
g.addEventListener("error",function(){J(g.error)});
Y&&g.addEventListener("blocked",function(){Y()})})};
Vz$=function(F,q,t){t=t===void 0?{}:t;return dpC(F,q,t)};
_.fE=function(F,q){q=q===void 0?{}:q;var t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return _.zg(Y,2),t=self.indexedDB.deleteDatabase(F),u=q,(J=u.blocked)&&t.addEventListener("blocked",function(){J()}),Y.yield(yxq(t),4);
if(Y.nextAddress!=2)return _.LE(Y,0);g=_.Gg(Y);throw Hjo(g,F,"",-1);})};
SfC=function(F,q){var t;return _.p(function(u){if(u.nextAddress==1)return u.yield(_.am(Upy,q),2);t=u.yieldResult;return u.return(_.jv(t,["databases"],{enableRetries:!0,mode:"readwrite"},function(J){var g=J.objectStore("databases");return g.get(F.actualName).then(function(Y){if(Y?F.actualName!==Y.actualName||F.publicName!==Y.publicName||F.userIdentifier!==Y.userIdentifier:1)return g.put(F).then(function(){})})}))})};
_.cc=function(F,q){var t;return _.p(function(u){if(u.nextAddress==1)return F?u.yield(_.am(Upy,q),2):u.return();t=u.yieldResult;return u.return(t.delete("databases",F))})};
_.hlo=function(F,q){var t,u;return _.p(function(J){return J.nextAddress==1?(t=[],J.yield(_.am(Upy,q),2)):J.nextAddress!=3?(u=J.yieldResult,J.yield(_.jv(u,["databases"],{enableRetries:!0,mode:"readonly"},function(g){t.length=0;return F4(g.objectStore("databases"),{},function(Y){F(Y.getValue())&&t.push(Y.getValue());return Y.continue()})}),3)):J.return(t)})};
KVC=function(F,q){return _.hlo(function(t){return t.publicName===F&&t.userIdentifier!==void 0},q)};
fxq=function(){var F,q,t,u;return _.p(function(J){switch(J.nextAddress){case 1:F=WVf();if((q=F)==null?0:q.hasSucceededOnce)return J.return(!0);var g;if(g=BjW)g=/WebKit\/([0-9]+)/.exec(_.NA()),g=!!(g&&parseInt(g[1],10)>=600);g&&(g=/WebKit\/([0-9]+)/.exec(_.NA()),g=!(g&&parseInt(g[1],10)>=602));if(g||qE)return J.return(!1);try{if(t=self,!(t.indexedDB&&t.IDBIndex&&t.IDBKeyRange&&t.IDBObjectStore))return J.return(!1)}catch(Y){return J.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return J.return(!1);
_.zg(J,2);u={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return J.yield(SfC(u,LVq),4);case 4:return J.yield(_.cc("yt-idb-test-do-not-use",LVq),5);case 5:return J.return(!0);case 2:return _.Gg(J),J.return(!1)}})};
jYv=function(){if(axC!==void 0)return axC;Ojo=!0;return axC=fxq().then(function(F){Ojo=!1;var q;if((q=Dpt())!=null&&q.expiringStorage_){var t;q={hasSucceededOnce:((t=WVf())==null?void 0:t.hasSucceededOnce)||F};var u;(u=Dpt())==null||u.set("LAST_RESULT_ENTRY_KEY",q,2592E3,!0)}return F})};
tD=function(){return _.S6("ytglobal.idbToken_")||void 0};
_.JD=function(){var F=tD();return F?Promise.resolve(F):jYv().then(function(q){(q=q?LVq:void 0)&&_.uo("ytglobal.idbToken_",q);return q})};
cxo=function(F){if(!_.GQ())throw F=new CE("AUTH_INVALID",{dbName:F}),_.Im(F),F;var q=_.TQ();return{actualName:F+":"+q,publicName:F,userIdentifier:q}};
FBW=function(F,q,t,u){var J,g,Y,Q,e,r;return _.p(function(N){switch(N.nextAddress){case 1:return g=(J=Error().stack)!=null?J:"",N.yield(_.JD(),2);case 2:Y=N.yieldResult;if(!Y)throw Q=VF("openDbImpl",F,q),_.E("ytidb_async_stack_killswitch")||(Q.stack=Q.stack+"\n"+g.substring(g.indexOf("\n")+1)),_.Im(Q),Q;mh(F);e=t?{actualName:F,publicName:F,userIdentifier:void 0}:cxo(F);_.zg(N,3);return N.yield(SfC(e,Y),5);case 5:return N.yield(Vz$(e.actualName,q,u),6);case 6:return N.return(N.yieldResult);case 3:return r=
_.Gg(N),_.zg(N,7),N.yield(_.cc(e.actualName,Y),9);case 9:_.LE(N,8);break;case 7:_.Gg(N);case 8:throw r;}})};
qyC=function(F,q,t){t=t===void 0?{}:t;return FBW(F,q,!1,t)};
tTM=function(F,q,t){t=t===void 0?{}:t;return FBW(F,q,!0,t)};
uKo=function(F,q){q=q===void 0?{}:q;var t,u;return _.p(function(J){if(J.nextAddress==1)return J.yield(_.JD(),2);if(J.nextAddress!=3){t=J.yieldResult;if(!t)return J.return();mh(F);u=cxo(F);return J.yield(_.fE(u.actualName,q),3)}return J.yield(_.cc(u.actualName,t),0)})};
Jn$=function(F,q,t){F=F.map(function(u){return _.p(function(J){return J.nextAddress==1?J.yield(_.fE(u.actualName,q),2):J.yield(_.cc(u.actualName,t),0)})});
return Promise.all(F).then(function(){})};
sbf=function(F){var q=q===void 0?{}:q;var t,u;return _.p(function(J){if(J.nextAddress==1)return J.yield(_.JD(),2);if(J.nextAddress!=3){t=J.yieldResult;if(!t)return J.return();mh(F);return J.yield(KVC(F,t),3)}u=J.yieldResult;return J.yield(Jn$(u,q,t),0)})};
ghy=function(F,q){q=q===void 0?{}:q;var t;return _.p(function(u){if(u.nextAddress==1)return u.yield(_.JD(),2);if(u.nextAddress!=3){t=u.yieldResult;if(!t)return u.return();mh(F);return u.yield(_.fE(F,q),3)}return u.yield(_.cc(F,t),0)})};
sI=function(F,q){return ln3(F,q)};
YyA=function(F){return _.am(Xx3(),F)};
pxA=function(F,q,t,u){var J,g,Y;return _.p(function(Q){switch(Q.nextAddress){case 1:return J={config:F,hashData:q,timestamp:u!==void 0?u:(0,_.gB)()},Q.yield(YyA(t),2);case 2:return g=Q.yieldResult,Q.yield(g.clear("hotConfigStore"),3);case 3:return Q.yield(g.put("hotConfigStore",J),4);case 4:return Y=Q.yieldResult,Q.return(Y)}})};
QbM=function(F,q,t,u,J){var g,Y,Q;return _.p(function(e){switch(e.nextAddress){case 1:return g={config:F,hashData:q,configData:t,timestamp:J!==void 0?J:(0,_.gB)()},e.yield(YyA(u),2);case 2:return Y=e.yieldResult,e.yield(Y.clear("coldConfigStore"),3);case 3:return e.yield(Y.put("coldConfigStore",g),4);case 4:return Q=e.yieldResult,e.return(Q)}})};
ebf=function(F){var q,t;return _.p(function(u){return u.nextAddress==1?u.yield(YyA(F),2):u.nextAddress!=3?(q=u.yieldResult,t=void 0,u.yield(_.jv(q,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(J){return _.lo(J.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(g){t=g.getValue()})}),3)):u.return(t)})};
ZGy=function(F){var q,t;return _.p(function(u){return u.nextAddress==1?u.yield(YyA(F),2):u.nextAddress!=3?(q=u.yieldResult,t=void 0,u.yield(_.jv(q,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(J){return _.lo(J.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(g){t=g.getValue()})}),3)):u.return(t)})};
Rbu=function(){return _.p(function(F){return F.yield(sbf("ytGcfConfig"),0)})};
rnM=function(){return"INNERTUBE_API_KEY"in _.m8&&"INNERTUBE_API_VERSION"in _.m8};
_.X4=function(){return{innertubeApiKey:_.bn("INNERTUBE_API_KEY"),innertubeApiVersion:_.bn("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.bn("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.bn("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.bn("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.bn("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.bn("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.bn("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.bn("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.yG("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.yG("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.bn("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.oht=function(F){var q={client:{hl:F.innertubeContextHostLanguage,gl:F.innertubeContextGeoLocation,clientName:F.innertubeContextClientName,clientVersion:F.innertubeContextClientVersion,configInfo:F.innertubeContextClientConfigInfo}};navigator.userAgent&&(q.client.userAgent=String(navigator.userAgent));var t=_.uu.devicePixelRatio;t&&t!=1&&(q.client.screenDensityFloat=String(t));t=bJC();t!==""&&(q.client.experimentsToken=t);t=yV3();t.length>0&&(q.request={internalExperimentFlags:t});Nat(F,void 0,q);
wxy(void 0,q);iGC(void 0,q);kry(F,void 0,q);Eho(void 0,q);_.E("start_client_gcf")&&zbf(void 0,q);_.bn("DELEGATED_SESSION_ID")&&!_.E("pageid_as_header_web")&&(q.user={onBehalfOfUser:_.bn("DELEGATED_SESSION_ID")});!_.E("fill_delegate_context_in_gel_killswitch")&&(F=_.bn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(q.user=Object.assign({},q.user,{serializedDelegationContext:F}));F=_.bn("INNERTUBE_CONTEXT");var u;if(_.E("enable_persistent_device_token")&&(F==null?0:(u=F.client)==null?0:u.rolloutToken)){var J;
q.client.rolloutToken=F==null?void 0:(J=F.client)==null?void 0:J.rolloutToken}u=Object;J=u.assign;F=q.client;t={};for(var g=_.X(Object.entries(_.LI(_.bn("DEVICE","")))),Y=g.next();!Y.done;Y=g.next()){var Q=_.X(Y.value);Y=Q.next().value;Q=Q.next().value;Y==="cbrand"?t.deviceMake=Q:Y==="cmodel"?t.deviceModel=Q:Y==="cbr"?t.browserName=Q:Y==="cbrver"?t.browserVersion=Q:Y==="cos"?t.osName=Q:Y==="cosver"?t.osVersion=Q:Y==="cplatform"&&(t.platform=Q)}q.client=J.call(u,F,t);return q};
Nat=function(F,q,t){F=F.innertubeContextClientName;if(F==="WEB"||F==="MWEB"||F===1||F===2)if(q){t=_.Yw(q,nhW,96)||new nhW;var u=MTu();u=Object.keys(Tau).indexOf(u);u=u===-1?null:u;u!==null&&_.pt(t,3,u);_.My(q,96,t)}else t&&(t.client.mainAppWebInfo=(u=t.client.mainAppWebInfo)!=null?u:{},t.client.mainAppWebInfo.webDisplayMode=MTu())};
wxy=function(F,q){var t=_.S6("yt.embedded_player.embed_url");t&&(F?(q=_.Yw(F,Grv,7)||new Grv,_.OF(q,4,t),_.My(F,7,q)):q&&(q.thirdParty={embedUrl:t}))};
iGC=function(F,q){var t;if(_.E("web_log_memory_total_kbytes")&&((t=_.uu.navigator)==null?0:t.deviceMemory)){var u;t=(u=_.uu.navigator)==null?void 0:u.deviceMemory;F?_.Qa(F,95,Y7(t*1E6)):q&&(q.client.memoryTotalKbytes=""+t*1E6)}};
kry=function(F,q,t){if(F.appInstallData)if(q){var u;t=(u=_.Yw(q,e1,62))!=null?u:new e1;_.OF(t,6,F.appInstallData);_.My(q,62,t)}else t&&(t.client.configInfo=t.client.configInfo||{},t.client.configInfo.appInstallData=F.appInstallData)};
Eho=function(F,q){var t=_.Ev_();t&&(F?_.pt(F,61,D13[t]):q&&(q.client.connectionType=t));_.E("web_log_effective_connection_type")&&(t=ov3())&&(F?_.pt(F,94,WBC[t]):q&&(q.client.effectiveConnectionType=t))};
_.x1W=function(F,q,t){t=t===void 0?{}:t;var u={};_.bn("EOM_VISITOR_DATA")?u={"X-Goog-EOM-Visitor-Id":_.bn("EOM_VISITOR_DATA")}:u={"X-Goog-Visitor-Id":t.visitorData||_.bn("VISITOR_DATA","")};if(q&&q.includes("www.youtube-nocookie.com"))return u;q=t.authorization||_.bn("AUTHORIZATION");q||(F?q="Bearer "+_.S6("gapi.auth.getToken")().access_token:(OGu.instance||(OGu.instance=new OGu),F=P1u(),_.E("pageid_as_header_web")||delete F["X-Goog-PageId"],u=Object.assign({},u,F)));q&&(u.Authorization=q);return u};
zbf=function(F,q){var t=AnC();if(t){var u=t.coldConfigData,J=t.coldHashData;t=t.hotHashData;if(F){var g;q=(g=_.Yw(F,e1,62))!=null?g:new e1;u=_.OF(q,1,u);_.OF(u,3,J).setHotHashData(t);_.My(F,62,q)}else q&&(q.client.configInfo=q.client.configInfo||{},u&&(q.client.configInfo.coldConfigData=u),J&&(q.client.configInfo.coldHashData=J),t&&(q.client.configInfo.hotHashData=t))}};
Zk=function(F){for(var q=F.length;--q>=0;)F[q]=0};
vht=function(F,q,t,u,J){this.static_tree=F;this.extra_bits=q;this.extra_base=t;this.elems=u;this.max_length=J;this.has_stree=F&&F.length};
In_=function(F,q){this.dyn_tree=F;this.max_code=0;this.stat_desc=q};
Re=function(F,q){F.pending_buf[F.pending++]=q&255;F.pending_buf[F.pending++]=q>>>8&255};
rB=function(F,q,t){F.bi_valid>16-t?(F.bi_buf|=q<<F.bi_valid&65535,Re(F,F.bi_buf),F.bi_buf=q>>16-F.bi_valid,F.bi_valid+=t-16):(F.bi_buf|=q<<F.bi_valid&65535,F.bi_valid+=t)};
NE=function(F,q,t){rB(F,t[q*2],t[q*2+1])};
HG3=function(F,q){var t=0;do t|=F&1,F>>>=1,t<<=1;while(--q>0);return t>>>1};
m1W=function(F,q,t){var u=Array(16),J=0,g;for(g=1;g<=15;g++)u[g]=J=J+t[g-1]<<1;for(t=0;t<=q;t++)J=F[t*2+1],J!==0&&(F[t*2]=HG3(u[J]++,J))};
$1_=function(F){var q;for(q=0;q<286;q++)F.dyn_ltree[q*2]=0;for(q=0;q<30;q++)F.dyn_dtree[q*2]=0;for(q=0;q<19;q++)F.bl_tree[q*2]=0;F.dyn_ltree[512]=1;F.opt_len=F.static_len=0;F.last_lit=F.matches=0};
bG_=function(F){F.bi_valid>8?Re(F,F.bi_buf):F.bi_valid>0&&(F.pending_buf[F.pending++]=F.bi_buf);F.bi_buf=0;F.bi_valid=0};
ynf=function(F,q,t){bG_(F);Re(F,t);Re(F,~t);wB.arraySet(F.pending_buf,F.window,q,t,F.pending);F.pending+=t};
C1y=function(F,q,t,u){var J=q*2,g=t*2;return F[J]<F[g]||F[J]===F[g]&&u[q]<=u[t]};
d1P=function(F,q,t){for(var u=F.heap[t],J=t<<1;J<=F.heap_len;){J<F.heap_len&&C1y(q,F.heap[J+1],F.heap[J],F.depth)&&J++;if(C1y(q,u,F.heap[J],F.depth))break;F.heap[t]=F.heap[J];t=J;J<<=1}F.heap[t]=u};
KBo=function(F,q,t){var u=0;if(F.last_lit!==0){do{var J=F.pending_buf[F.d_buf+u*2]<<8|F.pending_buf[F.d_buf+u*2+1];var g=F.pending_buf[F.l_buf+u];u++;if(J===0)NE(F,g,q);else{var Y=io[g];NE(F,Y+256+1,q);var Q=VT_[Y];Q!==0&&(g-=U1A[Y],rB(F,g,Q));J--;Y=J<256?kw[J]:kw[256+(J>>>7)];NE(F,Y,t);Q=Syf[Y];Q!==0&&(J-=hbC[Y],rB(F,J,Q))}}while(u<F.last_lit)}NE(F,256,q)};
BaA=function(F,q){var t=q.dyn_tree,u=q.stat_desc.static_tree,J=q.stat_desc.has_stree,g=q.stat_desc.elems,Y,Q=-1;F.heap_len=0;F.heap_max=573;for(Y=0;Y<g;Y++)t[Y*2]!==0?(F.heap[++F.heap_len]=Q=Y,F.depth[Y]=0):t[Y*2+1]=0;for(;F.heap_len<2;){var e=F.heap[++F.heap_len]=Q<2?++Q:0;t[e*2]=1;F.depth[e]=0;F.opt_len--;J&&(F.static_len-=u[e*2+1])}q.max_code=Q;for(Y=F.heap_len>>1;Y>=1;Y--)d1P(F,t,Y);e=g;do Y=F.heap[1],F.heap[1]=F.heap[F.heap_len--],d1P(F,t,1),u=F.heap[1],F.heap[--F.heap_max]=Y,F.heap[--F.heap_max]=
u,t[e*2]=t[Y*2]+t[u*2],F.depth[e]=(F.depth[Y]>=F.depth[u]?F.depth[Y]:F.depth[u])+1,t[Y*2+1]=t[u*2+1]=e,F.heap[1]=e++,d1P(F,t,1);while(F.heap_len>=2);F.heap[--F.heap_max]=F.heap[1];Y=q.dyn_tree;e=q.max_code;u=q.stat_desc.static_tree;J=q.stat_desc.has_stree;g=q.stat_desc.extra_bits;var r=q.stat_desc.extra_base,N=q.stat_desc.max_length,w,k=0;for(w=0;w<=15;w++)F.bl_count[w]=0;Y[F.heap[F.heap_max]*2+1]=0;for(q=F.heap_max+1;q<573;q++){var z=F.heap[q];w=Y[Y[z*2+1]*2+1]+1;w>N&&(w=N,k++);Y[z*2+1]=w;if(!(z>
e)){F.bl_count[w]++;var T=0;z>=r&&(T=g[z-r]);var P=Y[z*2];F.opt_len+=P*(w+T);J&&(F.static_len+=P*(u[z*2+1]+T))}}if(k!==0){do{for(w=N-1;F.bl_count[w]===0;)w--;F.bl_count[w]--;F.bl_count[w+1]+=2;F.bl_count[N]--;k-=2}while(k>0);for(w=N;w!==0;w--)for(z=F.bl_count[w];z!==0;)u=F.heap[--q],u>e||(Y[u*2+1]!==w&&(F.opt_len+=(w-Y[u*2+1])*Y[u*2],Y[u*2+1]=w),z--)}m1W(t,Q,F.bl_count)};
LBW=function(F,q,t){var u,J=-1,g=q[1],Y=0,Q=7,e=4;g===0&&(Q=138,e=3);q[(t+1)*2+1]=65535;for(u=0;u<=t;u++){var r=g;g=q[(u+1)*2+1];++Y<Q&&r===g||(Y<e?F.bl_tree[r*2]+=Y:r!==0?(r!==J&&F.bl_tree[r*2]++,F.bl_tree[32]++):Y<=10?F.bl_tree[34]++:F.bl_tree[36]++,Y=0,J=r,g===0?(Q=138,e=3):r===g?(Q=6,e=3):(Q=7,e=4))}};
fnC=function(F,q,t){var u,J=-1,g=q[1],Y=0,Q=7,e=4;g===0&&(Q=138,e=3);for(u=0;u<=t;u++){var r=g;g=q[(u+1)*2+1];if(!(++Y<Q&&r===g)){if(Y<e){do NE(F,r,F.bl_tree);while(--Y!==0)}else r!==0?(r!==J&&(NE(F,r,F.bl_tree),Y--),NE(F,16,F.bl_tree),rB(F,Y-3,2)):Y<=10?(NE(F,17,F.bl_tree),rB(F,Y-3,3)):(NE(F,18,F.bl_tree),rB(F,Y-11,7));Y=0;J=r;g===0?(Q=138,e=3):r===g?(Q=6,e=3):(Q=7,e=4)}}};
anA=function(F){var q=4093624447,t;for(t=0;t<=31;t++,q>>>=1)if(q&1&&F.dyn_ltree[t*2]!==0)return 0;if(F.dyn_ltree[18]!==0||F.dyn_ltree[20]!==0||F.dyn_ltree[26]!==0)return 1;for(t=32;t<256;t++)if(F.dyn_ltree[t*2]!==0)return 1;return 0};
EI=function(F,q,t){F.pending_buf[F.d_buf+F.last_lit*2]=q>>>8&255;F.pending_buf[F.d_buf+F.last_lit*2+1]=q&255;F.pending_buf[F.l_buf+F.last_lit]=t&255;F.last_lit++;q===0?F.dyn_ltree[t*2]++:(F.matches++,q--,F.dyn_ltree[(io[t]+256+1)*2]++,F.dyn_dtree[(q<256?kw[q]:kw[256+(q>>>7)])*2]++);return F.last_lit===F.lit_bufsize-1};
oe=function(F,q){F.msg=zA[q];return q};
nt=function(F){for(var q=F.length;--q>=0;)F[q]=0};
ME=function(F){var q=F.state,t=q.pending;t>F.avail_out&&(t=F.avail_out);t!==0&&(wB.arraySet(F.output,q.pending_buf,q.pending_out,t,F.next_out),F.next_out+=t,q.pending_out+=t,F.total_out+=t,F.avail_out-=t,q.pending-=t,q.pending===0&&(q.pending_out=0))};
Dk=function(F,q){var t=F.block_start>=0?F.block_start:-1,u=F.strstart-F.block_start,J=0;if(F.level>0){F.strm.data_type===2&&(F.strm.data_type=anA(F));BaA(F,F.l_desc);BaA(F,F.d_desc);LBW(F,F.dyn_ltree,F.l_desc.max_code);LBW(F,F.dyn_dtree,F.d_desc.max_code);BaA(F,F.bl_desc);for(J=18;J>=3&&F.bl_tree[jbP[J]*2+1]===0;J--);F.opt_len+=3*(J+1)+5+5+4;var g=F.opt_len+3+7>>>3;var Y=F.static_len+3+7>>>3;Y<=g&&(g=Y)}else g=Y=u+5;if(u+4<=g&&t!==-1)rB(F,q?1:0,3),ynf(F,t,u);else if(F.strategy===4||Y===g)rB(F,2+(q?
1:0),3),KBo(F,TA,GA);else{rB(F,4+(q?1:0),3);t=F.l_desc.max_code+1;u=F.d_desc.max_code+1;J+=1;rB(F,t-257,5);rB(F,u-1,5);rB(F,J-4,4);for(g=0;g<J;g++)rB(F,F.bl_tree[jbP[g]*2+1],3);fnC(F,F.dyn_ltree,t-1);fnC(F,F.dyn_dtree,u-1);KBo(F,F.dyn_ltree,F.dyn_dtree)}$1_(F);q&&bG_(F);F.block_start=F.strstart;ME(F.strm)};
OI=function(F,q){F.pending_buf[F.pending++]=q};
Pt=function(F,q){F.pending_buf[F.pending++]=q>>>8&255;F.pending_buf[F.pending++]=q&255};
cnP=function(F,q){var t=F.max_chain_length,u=F.strstart,J=F.prev_length,g=F.nice_match,Y=F.strstart>F.w_size-262?F.strstart-(F.w_size-262):0,Q=F.window,e=F.w_mask,r=F.prev,N=F.strstart+258,w=Q[u+J-1],k=Q[u+J];F.prev_length>=F.good_match&&(t>>=2);g>F.lookahead&&(g=F.lookahead);do{var z=q;if(Q[z+J]===k&&Q[z+J-1]===w&&Q[z]===Q[u]&&Q[++z]===Q[u+1]){u+=2;for(z++;Q[++u]===Q[++z]&&Q[++u]===Q[++z]&&Q[++u]===Q[++z]&&Q[++u]===Q[++z]&&Q[++u]===Q[++z]&&Q[++u]===Q[++z]&&Q[++u]===Q[++z]&&Q[++u]===Q[++z]&&u<N;);
z=258-(N-u);u=N-258;if(z>J){F.match_start=q;J=z;if(z>=g)break;w=Q[u+J-1];k=Q[u+J]}}}while((q=r[q&e])>Y&&--t!==0);return J<=F.lookahead?J:F.lookahead};
AD=function(F){var q=F.w_size,t;do{var u=F.window_size-F.lookahead-F.strstart;if(F.strstart>=q+(q-262)){wB.arraySet(F.window,F.window,q,q,0);F.match_start-=q;F.strstart-=q;F.block_start-=q;var J=t=F.hash_size;do{var g=F.head[--J];F.head[J]=g>=q?g-q:0}while(--t);J=t=q;do g=F.prev[--J],F.prev[J]=g>=q?g-q:0;while(--t);u+=q}if(F.strm.avail_in===0)break;J=F.strm;t=F.window;g=F.strstart+F.lookahead;var Y=J.avail_in;Y>u&&(Y=u);Y===0?t=0:(J.avail_in-=Y,wB.arraySet(t,J.input,J.next_in,Y,g),J.state.wrap===
1?J.adler=F6q(J.adler,t,Y,g):J.state.wrap===2&&(J.adler=xw(J.adler,t,Y,g)),J.next_in+=Y,J.total_in+=Y,t=Y);F.lookahead+=t;if(F.lookahead+F.insert>=3)for(u=F.strstart-F.insert,F.ins_h=F.window[u],F.ins_h=(F.ins_h<<F.hash_shift^F.window[u+1])&F.hash_mask;F.insert&&!(F.ins_h=(F.ins_h<<F.hash_shift^F.window[u+3-1])&F.hash_mask,F.prev[u&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=u,u++,F.insert--,F.lookahead+F.insert<3););}while(F.lookahead<262&&F.strm.avail_in!==0)};
qBo=function(F,q){for(var t;;){if(F.lookahead<262){AD(F);if(F.lookahead<262&&q===0)return 1;if(F.lookahead===0)break}t=0;F.lookahead>=3&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+3-1])&F.hash_mask,t=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart);t!==0&&F.strstart-t<=F.w_size-262&&(F.match_length=cnP(F,t));if(F.match_length>=3)if(t=EI(F,F.strstart-F.match_start,F.match_length-3),F.lookahead-=F.match_length,F.match_length<=F.max_lazy_match&&F.lookahead>=3){F.match_length--;
do F.strstart++,F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+3-1])&F.hash_mask,F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart;while(--F.match_length!==0);F.strstart++}else F.strstart+=F.match_length,F.match_length=0,F.ins_h=F.window[F.strstart],F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+1])&F.hash_mask;else t=EI(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++;if(t&&(Dk(F,!1),F.strm.avail_out===0))return 1}F.insert=F.strstart<2?F.strstart:2;return q===4?(Dk(F,
!0),F.strm.avail_out===0?3:4):F.last_lit&&(Dk(F,!1),F.strm.avail_out===0)?1:2};
vt=function(F,q){for(var t,u;;){if(F.lookahead<262){AD(F);if(F.lookahead<262&&q===0)return 1;if(F.lookahead===0)break}t=0;F.lookahead>=3&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+3-1])&F.hash_mask,t=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart);F.prev_length=F.match_length;F.prev_match=F.match_start;F.match_length=2;t!==0&&F.prev_length<F.max_lazy_match&&F.strstart-t<=F.w_size-262&&(F.match_length=cnP(F,t),F.match_length<=5&&(F.strategy===1||F.match_length===3&&
F.strstart-F.match_start>4096)&&(F.match_length=2));if(F.prev_length>=3&&F.match_length<=F.prev_length){u=F.strstart+F.lookahead-3;t=EI(F,F.strstart-1-F.prev_match,F.prev_length-3);F.lookahead-=F.prev_length-1;F.prev_length-=2;do++F.strstart<=u&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+3-1])&F.hash_mask,F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart);while(--F.prev_length!==0);F.match_available=0;F.match_length=2;F.strstart++;if(t&&(Dk(F,!1),F.strm.avail_out===0))return 1}else if(F.match_available){if((t=
EI(F,0,F.window[F.strstart-1]))&&Dk(F,!1),F.strstart++,F.lookahead--,F.strm.avail_out===0)return 1}else F.match_available=1,F.strstart++,F.lookahead--}F.match_available&&(EI(F,0,F.window[F.strstart-1]),F.match_available=0);F.insert=F.strstart<2?F.strstart:2;return q===4?(Dk(F,!0),F.strm.avail_out===0?3:4):F.last_lit&&(Dk(F,!1),F.strm.avail_out===0)?1:2};
tpt=function(F,q){for(var t,u,J,g=F.window;;){if(F.lookahead<=258){AD(F);if(F.lookahead<=258&&q===0)return 1;if(F.lookahead===0)break}F.match_length=0;if(F.lookahead>=3&&F.strstart>0&&(u=F.strstart-1,t=g[u],t===g[++u]&&t===g[++u]&&t===g[++u])){for(J=F.strstart+258;t===g[++u]&&t===g[++u]&&t===g[++u]&&t===g[++u]&&t===g[++u]&&t===g[++u]&&t===g[++u]&&t===g[++u]&&u<J;);F.match_length=258-(J-u);F.match_length>F.lookahead&&(F.match_length=F.lookahead)}F.match_length>=3?(t=EI(F,1,F.match_length-3),F.lookahead-=
F.match_length,F.strstart+=F.match_length,F.match_length=0):(t=EI(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++);if(t&&(Dk(F,!1),F.strm.avail_out===0))return 1}F.insert=0;return q===4?(Dk(F,!0),F.strm.avail_out===0?3:4):F.last_lit&&(Dk(F,!1),F.strm.avail_out===0)?1:2};
ue_=function(F,q){for(var t;;){if(F.lookahead===0&&(AD(F),F.lookahead===0)){if(q===0)return 1;break}F.match_length=0;t=EI(F,0,F.window[F.strstart]);F.lookahead--;F.strstart++;if(t&&(Dk(F,!1),F.strm.avail_out===0))return 1}F.insert=0;return q===4?(Dk(F,!0),F.strm.avail_out===0?3:4):F.last_lit&&(Dk(F,!1),F.strm.avail_out===0)?1:2};
Ie=function(F,q,t,u,J){this.good_length=F;this.max_lazy=q;this.nice_length=t;this.max_chain=u;this.func=J};
JYt=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 wB.Buf16(1146);this.dyn_dtree=new wB.Buf16(122);this.bl_tree=new wB.Buf16(78);nt(this.dyn_ltree);nt(this.dyn_dtree);nt(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new wB.Buf16(16);this.heap=new wB.Buf16(573);nt(this.heap);this.heap_max=this.heap_len=0;this.depth=new wB.Buf16(573);nt(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};
sEy=function(F,q){if(!F||!F.state||q>5||q<0)return F?oe(F,-2):-2;var t=F.state;if(!F.output||!F.input&&F.avail_in!==0||t.status===666&&q!==4)return oe(F,F.avail_out===0?-5:-2);t.strm=F;var u=t.last_flush;t.last_flush=q;if(t.status===42)if(t.wrap===2)F.adler=0,OI(t,31),OI(t,139),OI(t,8),t.gzhead?(OI(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),OI(t,t.gzhead.time&255),OI(t,t.gzhead.time>>8&255),OI(t,t.gzhead.time>>16&255),OI(t,t.gzhead.time>>
24&255),OI(t,t.level===9?2:t.strategy>=2||t.level<2?4:0),OI(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(OI(t,t.gzhead.extra.length&255),OI(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(F.adler=xw(F.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=69):(OI(t,0),OI(t,0),OI(t,0),OI(t,0),OI(t,0),OI(t,t.level===9?2:t.strategy>=2||t.level<2?4:0),OI(t,3),t.status=113);else{var J=8+(t.w_bits-8<<4)<<8;J|=(t.strategy>=2||t.level<2?0:t.level<6?1:t.level===6?2:3)<<6;t.strstart!==0&&(J|=
32);t.status=113;Pt(t,J+(31-J%31));t.strstart!==0&&(Pt(t,F.adler>>>16),Pt(t,F.adler&65535));F.adler=1}if(t.status===69)if(t.gzhead.extra){for(J=t.pending;t.gzindex<(t.gzhead.extra.length&65535)&&(t.pending!==t.pending_buf_size||(t.gzhead.hcrc&&t.pending>J&&(F.adler=xw(F.adler,t.pending_buf,t.pending-J,J)),ME(F),J=t.pending,t.pending!==t.pending_buf_size));)OI(t,t.gzhead.extra[t.gzindex]&255),t.gzindex++;t.gzhead.hcrc&&t.pending>J&&(F.adler=xw(F.adler,t.pending_buf,t.pending-J,J));t.gzindex===t.gzhead.extra.length&&
(t.gzindex=0,t.status=73)}else t.status=73;if(t.status===73)if(t.gzhead.name){J=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>J&&(F.adler=xw(F.adler,t.pending_buf,t.pending-J,J)),ME(F),J=t.pending,t.pending===t.pending_buf_size)){var g=1;break}g=t.gzindex<t.gzhead.name.length?t.gzhead.name.charCodeAt(t.gzindex++)&255:0;OI(t,g)}while(g!==0);t.gzhead.hcrc&&t.pending>J&&(F.adler=xw(F.adler,t.pending_buf,t.pending-J,J));g===0&&(t.gzindex=0,t.status=91)}else t.status=91;if(t.status===
91)if(t.gzhead.comment){J=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>J&&(F.adler=xw(F.adler,t.pending_buf,t.pending-J,J)),ME(F),J=t.pending,t.pending===t.pending_buf_size)){g=1;break}g=t.gzindex<t.gzhead.comment.length?t.gzhead.comment.charCodeAt(t.gzindex++)&255:0;OI(t,g)}while(g!==0);t.gzhead.hcrc&&t.pending>J&&(F.adler=xw(F.adler,t.pending_buf,t.pending-J,J));g===0&&(t.status=103)}else t.status=103;t.status===103&&(t.gzhead.hcrc?(t.pending+2>t.pending_buf_size&&ME(F),
t.pending+2<=t.pending_buf_size&&(OI(t,F.adler&255),OI(t,F.adler>>8&255),F.adler=0,t.status=113)):t.status=113);if(t.pending!==0){if(ME(F),F.avail_out===0)return t.last_flush=-1,0}else if(F.avail_in===0&&(q<<1)-(q>4?9:0)<=(u<<1)-(u>4?9:0)&&q!==4)return oe(F,-5);if(t.status===666&&F.avail_in!==0)return oe(F,-5);if(F.avail_in!==0||t.lookahead!==0||q!==0&&t.status!==666){u=t.strategy===2?ue_(t,q):t.strategy===3?tpt(t,q):Ht[t.level].func(t,q);if(u===3||u===4)t.status=666;if(u===1||u===3)return F.avail_out===
0&&(t.last_flush=-1),0;if(u===2&&(q===1?(rB(t,2,3),NE(t,256,TA),t.bi_valid===16?(Re(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)):q!==5&&(rB(t,0,3),ynf(t,0,0),q===3&&(nt(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),ME(F),F.avail_out===0))return t.last_flush=-1,0}if(q!==4)return 0;if(t.wrap<=0)return 1;t.wrap===2?(OI(t,F.adler&255),OI(t,F.adler>>8&255),OI(t,F.adler>>16&255),OI(t,F.adler>>24&255),OI(t,
F.total_in&255),OI(t,F.total_in>>8&255),OI(t,F.total_in>>16&255),OI(t,F.total_in>>24&255)):(Pt(t,F.adler>>>16),Pt(t,F.adler&65535));ME(F);t.wrap>0&&(t.wrap=-t.wrap);return t.pending!==0?0:1};
gMu=function(F){if(!(this instanceof gMu))return new gMu(F);F=this.options=wB.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},F||{});F.raw&&F.windowBits>0?F.windowBits=-F.windowBits:F.gzip&&F.windowBits>0&&F.windowBits<16&&(F.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new ljq;this.strm.avail_out=0;var q=this.strm;var t=F.level,u=F.method,J=F.windowBits,g=F.memLevel,Y=F.strategy;if(q){var Q=1;t===-1&&(t=6);J<0?(Q=0,J=-J):J>15&&
(Q=2,J-=16);if(g<1||g>9||u!==8||J<8||J>15||t<0||t>9||Y<0||Y>4)q=oe(q,-2);else{J===8&&(J=9);var e=new JYt;q.state=e;e.strm=q;e.wrap=Q;e.gzhead=null;e.w_bits=J;e.w_size=1<<e.w_bits;e.w_mask=e.w_size-1;e.hash_bits=g+7;e.hash_size=1<<e.hash_bits;e.hash_mask=e.hash_size-1;e.hash_shift=~~((e.hash_bits+3-1)/3);e.window=new wB.Buf8(e.w_size*2);e.head=new wB.Buf16(e.hash_size);e.prev=new wB.Buf16(e.w_size);e.lit_bufsize=1<<g+6;e.pending_buf_size=e.lit_bufsize*4;e.pending_buf=new wB.Buf8(e.pending_buf_size);
e.d_buf=e.lit_bufsize;e.l_buf=3*e.lit_bufsize;e.level=t;e.strategy=Y;e.method=u;if(q&&q.state){q.total_in=q.total_out=0;q.data_type=2;t=q.state;t.pending=0;t.pending_out=0;t.wrap<0&&(t.wrap=-t.wrap);t.status=t.wrap?42:113;q.adler=t.wrap===2?0:1;t.last_flush=0;if(!Xh$){u=Array(16);for(g=Y=0;g<28;g++)for(U1A[g]=Y,J=0;J<1<<VT_[g];J++)io[Y++]=g;io[Y-1]=g;for(g=Y=0;g<16;g++)for(hbC[g]=Y,J=0;J<1<<Syf[g];J++)kw[Y++]=g;for(Y>>=7;g<30;g++)for(hbC[g]=Y<<7,J=0;J<1<<Syf[g]-7;J++)kw[256+Y++]=g;for(J=0;J<=15;J++)u[J]=
0;for(J=0;J<=143;)TA[J*2+1]=8,J++,u[8]++;for(;J<=255;)TA[J*2+1]=9,J++,u[9]++;for(;J<=279;)TA[J*2+1]=7,J++,u[7]++;for(;J<=287;)TA[J*2+1]=8,J++,u[8]++;m1W(TA,287,u);for(J=0;J<30;J++)GA[J*2+1]=5,GA[J*2]=HG3(J,5);YBA=new vht(TA,VT_,257,286,15);ph3=new vht(GA,Syf,0,30,15);QEM=new vht([],ei3,0,19,7);Xh$=!0}t.l_desc=new In_(t.dyn_ltree,YBA);t.d_desc=new In_(t.dyn_dtree,ph3);t.bl_desc=new In_(t.bl_tree,QEM);t.bi_buf=0;t.bi_valid=0;$1_(t);t=0}else t=oe(q,-2);t===0&&(q=q.state,q.window_size=2*q.w_size,nt(q.head),
q.max_lazy_match=Ht[q.level].max_lazy,q.good_match=Ht[q.level].good_length,q.nice_match=Ht[q.level].nice_length,q.max_chain_length=Ht[q.level].max_chain,q.strstart=0,q.block_start=0,q.lookahead=0,q.insert=0,q.match_length=q.prev_length=2,q.match_available=0,q.ins_h=0);q=t}}else q=-2;if(q!==0)throw Error(zA[q]);F.header&&(q=this.strm)&&q.state&&q.state.wrap===2&&(q.state.gzhead=F.header);if(F.dictionary){var r;typeof F.dictionary==="string"?r=Z1C(F.dictionary):RiW.call(F.dictionary)==="[object ArrayBuffer]"?
r=new Uint8Array(F.dictionary):r=F.dictionary;F=this.strm;g=r;Y=g.length;if(F&&F.state)if(r=F.state,q=r.wrap,q===2||q===1&&r.status!==42||r.lookahead)q=-2;else{q===1&&(F.adler=F6q(F.adler,g,Y,0));r.wrap=0;Y>=r.w_size&&(q===0&&(nt(r.head),r.strstart=0,r.block_start=0,r.insert=0),t=new wB.Buf8(r.w_size),wB.arraySet(t,g,Y-r.w_size,r.w_size,0),g=t,Y=r.w_size);t=F.avail_in;u=F.next_in;J=F.input;F.avail_in=Y;F.next_in=0;F.input=g;for(AD(r);r.lookahead>=3;){g=r.strstart;Y=r.lookahead-2;do r.ins_h=(r.ins_h<<
r.hash_shift^r.window[g+3-1])&r.hash_mask,r.prev[g&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=g,g++;while(--Y);r.strstart=g;r.lookahead=2;AD(r)}r.strstart+=r.lookahead;r.block_start=r.strstart;r.insert=r.lookahead;r.lookahead=0;r.match_length=r.prev_length=2;r.match_available=0;F.next_in=u;F.input=J;F.avail_in=t;r.wrap=q;q=0}else q=-2;if(q!==0)throw Error(zA[q]);this._dict_set=!0}};
rYf=function(F,q){q=q||{};q.gzip=!0;q=new gMu(q);q.push(F,!0);if(q.err)throw q.msg||zA[q.err];return q.result};
whW=function(F,q){var t=Nst();t&&t.publish.call(t,F.toString(),F,q)};
oMq=function(F,q,t){var u=Nst();if(!u)return 0;var J=u.subscribe(F.toString(),function(g,Y){var Q=_.S6("ytPubsub2Pubsub2SkipSubKey");Q&&Q==J||(Q=function(){if(i1o[J])try{if(Y&&F instanceof kao&&F!=g)try{var e=F.dataClass,r=Y;if(!r.args||!r.version)throw Error("Yc");try{if(!e.version_){var N=new e;e.version_=N.version}var w=e.version_}catch(k){}if(!w||r.version!=w)throw Error("Zc");try{Y=Reflect.construct(e,_.C3(r.args))}catch(k){throw k.message="yt.pubsub2.Data.deserialize(): "+k.message,k;}}catch(k){throw k.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+F.toString()+": "+k.message,k;}q.call(t||window,Y)}catch(k){_.CI(k)}},EMo[F.toString()]?_.S6("yt.scheduler.instance")?_.mI.addLowPriorityJob(Q):_.Rm(Q,0):Q())});
i1o[J]=!0;zi_[F.toString()]||(zi_[F.toString()]=[]);zi_[F.toString()].push(J);return J};
GaW=function(){var F=nMM,q=oMq(Mp_,function(t){F.apply(void 0,arguments);Ts3(q)});
return q};
Ts3=function(F){var q=Nst();q&&(typeof F==="number"&&(F=[F]),_.B_(F,function(t){q.unsubscribeByKey(t);delete i1o[t]}))};
Nst=function(){return _.S6("ytPubsub2Pubsub2Instance")};
DsC=function(F,q,t){t=t===void 0?{sampleRate:.1}:t;Math.random()<Math.min(.02,t.sampleRate/100)&&whW("meta_logging_csi_event",{timerName:F,timelineData:q})};
_.W63=function(F){return F?(F=F.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.qv(F):null:null};
_.$w=function(F){return F?(F=F.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.OS(F):null:null};
PLf=function(){O1o||(O1o=_.$w(_.bn("WORKER_SERIALIZATION_URL")));return O1o||void 0};
_.AYu=function(){var F=PLf();xsq||F===void 0||(xsq=new Worker(_.PS(F),void 0));return xsq};
_.vM$=function(){return typeof Worker==="function"&&PLf()?!0:!1};
_.$s_=function(){if(_.vM$()&&!Ijo){var F=function(t){t=t.data;if(t.op==="gzippedGelBatch"){var u=H1_.get(t.key);u&&(msy(t.gzippedBatch,u.latencyPayload,u.url,u.options,u.sendFn),H1_.delete(t.key))}},q=_.AYu();
q&&(q.addEventListener("message",F),q.onerror=function(){H1_.clear()},Ijo=!0)}};
SBP=function(F,q,t,u,J){J=J===void 0?!1:J;var g={startTime:(0,_.gB)(),ticks:{},infos:{}};if(bo)try{var Y=b1t(q);if(Y!=null&&(Y>yYv||Y<CLA))u(F,t);else{if(_.E("gzip_gel_with_worker")&&(_.E("initial_gzip_use_main_thread")&&!dsC||!_.E("initial_gzip_use_main_thread"))){Ijo||_.$s_();var Q=_.AYu();if(Q&&!J){H1_.set(Vp_,{latencyPayload:g,url:F,options:t,sendFn:u});Q.postMessage({op:"gelBatchToGzip",serializedBatch:q,key:Vp_});Vp_++;return}}var e=rYf(Us$(q));msy(e,g,F,t,u)}}catch(r){_.hN(r),u(F,t)}else u(F,
t)};
msy=function(F,q,t,u,J){dsC=!1;var g=(0,_.gB)();q.ticks.gelc=g;ya++;_.E("disable_compression_due_to_performance_degredation")&&g-q.startTime>=hif&&(K6q++,_.E("abandon_compression_after_N_slow_zips")?ya===_.YE("compression_disable_point")&&K6q>Bs3&&(bo=!1):bo=!1);L6o(q);u.headers||(u.headers={});u.headers["Content-Encoding"]="gzip";u.postBody=F;u.postParams=void 0;J(t,u)};
fjq=function(F){var q=q===void 0?!1:q;var t=t===void 0?!1:t;var u=(0,_.gB)(),J={startTime:u,ticks:{},infos:{}},g=q?_.S6("yt.logging.gzipForFetch",!1):!0;if(bo&&g){if(!F.body)return F;try{var Y=t?F.body:typeof F.body==="string"?F.body:JSON.stringify(F.body);g=Y;if(!t&&typeof Y==="string"){var Q=b1t(Y);if(Q!=null&&(Q>yYv||Q<CLA))return F;t=q?{level:1}:void 0;g=rYf(Us$(Y),t);var e=(0,_.gB)();J.ticks.gelc=e;if(q){ya++;if((_.E("disable_compression_due_to_performance_degredation")||_.E("disable_compression_due_to_performance_degradation_lr"))&&
e-u>=hif)if(K6q++,_.E("abandon_compression_after_N_slow_zips")||_.E("abandon_compression_after_N_slow_zips_lr")){q=K6q/ya;var r=Bs3/_.YE("compression_disable_point");ya>0&&ya%_.YE("compression_disable_point")===0&&q>=r&&(bo=!1)}else bo=!1;L6o(J)}}F.headers=Object.assign({},{"Content-Encoding":"gzip"},F.headers||{});F.body=g;return F}catch(N){return _.hN(N),F}}else return F};
b1t=function(F){try{return(new Blob(F.split(""))).size}catch(q){return _.hN(q),null}};
L6o=function(F){_.E("gel_compression_csi_killswitch")||!_.E("log_gel_compression_latency")&&!_.E("log_gel_compression_latency_lr")||DsC("gel_compression",F,{sampleRate:.1})};
ajo=function(){this.blockSize=-1};
Ct=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var F=1;F<this.blockSize;++F)this.pad_[F]=0;this.total_=this.inbuf_=0;this.reset()};
cYA=function(F){F=Object.assign({},F);delete F.Authorization;var q=_.jE3();if(q){var t=new Ct;t.update(_.bn("INNERTUBE_API_KEY"));t.update(q);F.hash=_.A9(t.digest(),3)}return F};
Va=function(){FWy||(FWy=new _.dB("yt.innertube"));return FWy};
qkf=function(F,q,t,u){if(u)return null;u=Va().get("nextId",!0)||1;var J=Va().get("requests",!0)||{};J[u]={method:F,request:q,authState:cYA(t),requestTime:Math.round((0,_.gB)())};Va().set("nextId",u+1,86400,!0);Va().set("requests",J,86400,!0);return u};
tgq=function(F){var q=Va().get("requests",!0)||{};delete q[F];Va().set("requests",q,86400,!0)};
Jvy=function(F){var q=Va().get("requests",!0);if(q){for(var t in q){var u=q[t];if(!(Math.round((0,_.gB)())-u.requestTime<6E4)){var J=u.authState,g=cYA(_.x1W(!1));_.m7.equals(J,g)&&(J=u.request,"requestTimeMs"in J&&(J.requestTimeMs=Math.round((0,_.gB)())),utP(F,u.method,J,{}));delete q[t]}}Va().set("requests",q,86400,!0)}};
scC=function(F){var q;return(F=F==null?void 0:(q=F.error)==null?void 0:q.code)&&F>=400&&F<=599?!1:!0};
gbW=function(F){var q;F=F==null?void 0:(q=F.error)==null?void 0:q.code;return!(F!==400&&F!==415)};
X9W=function(){if(lP_)return lP_();var F={};lP_=sI("LogsDatabaseV2",{objectStores:(F.LogsRequestsStore={addedAtVersion:2},F),shared:!1,upgrade:function(q,t,u){t(2)&&UI(q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});t(3);t(5)&&(u=u.objectStore("LogsRequestsStore"),u.JSC$10665_wrapped.indexNames.contains("newRequest")&&u.JSC$10665_wrapped.deleteIndex("newRequest"),S1(u,"newRequestV2",["status","interface","timestamp"]));t(7)&&q.JSC$10650_wrapped.objectStoreNames.contains("sapisid")&&q.JSC$10650_wrapped.deleteObjectStore("sapisid");
t(9)&&q.JSC$10650_wrapped.objectStoreNames.contains("SWHealthLog")&&q.JSC$10650_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return lP_()};
hD=function(F){return _.am(X9W(),F)};
p9u=function(F,q){var t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return t={startTime:(0,_.gB)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},Y.yield(hD(q),2);if(Y.nextAddress!=3)return u=Y.yieldResult,J=Object.assign({},F,{options:JSON.parse(JSON.stringify(F.options)),interface:_.bn("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),Y.yield(u.put("LogsRequestsStore",J),3);g=Y.yieldResult;t.ticks.tc=(0,_.gB)();Yk$(t);return Y.return(g)})};
Qct=function(F,q){var t,u,J,g,Y,Q,e,r,N;return _.p(function(w){if(w.nextAddress==1)return t={startTime:(0,_.gB)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},w.yield(hD(q),2);if(w.nextAddress!=3)return u=w.yieldResult,J=_.bn("INNERTUBE_CONTEXT_CLIENT_NAME",0),g=[F,J,0],Y=[F,J,(0,_.gB)()],Q=IDBKeyRange.bound(g,Y),e="prev",_.E("use_fifo_for_networkless")&&(e="next"),r=void 0,N=F==="NEW"?"readwrite":"readonly",_.E("use_readonly_for_get_most_recent_by_status_killswitch")&&(N="readwrite"),
w.yield(_.jv(u,["LogsRequestsStore"],{mode:N,enableRetries:!0},function(k){return _.lo(k.objectStore("LogsRequestsStore").index("newRequestV2"),{query:Q,direction:e},function(z){z.getValue()&&(r=z.getValue(),F==="NEW"&&(r.status="QUEUED",z.update(r)))})}),3);
t.ticks.tc=(0,_.gB)();Yk$(t);return w.return(r)})};
eUW=function(F,q){var t;return _.p(function(u){if(u.nextAddress==1)return u.yield(hD(q),2);t=u.yieldResult;return u.return(_.jv(t,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(J){var g=J.objectStore("LogsRequestsStore");return g.get(F).then(function(Y){if(Y)return Y.status="QUEUED",g.put(Y).then(function(){return Y})})}))})};
Z9$=function(F,q,t,u){t=t===void 0?!0:t;var J;return _.p(function(g){if(g.nextAddress==1)return g.yield(hD(q),2);J=g.yieldResult;return g.return(_.jv(J,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){var Q=Y.objectStore("LogsRequestsStore");return Q.get(F).then(function(e){return e?(e.status="NEW",t&&(e.sendCount+=1),u!==void 0&&(e.options.compress=u),Q.put(e).then(function(){return e})):UV.resolve(void 0)})}))})};
RUo=function(F,q){var t;return _.p(function(u){if(u.nextAddress==1)return u.yield(hD(q),2);t=u.yieldResult;return u.return(t.delete("LogsRequestsStore",F))})};
rvq=function(F){var q,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(hD(F),2);q=u.yieldResult;t=(0,_.gB)()-2592E6;return u.yield(_.jv(q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(J){return F4(J.objectStore("LogsRequestsStore"),{},function(g){if(g.getValue().timestamp<=t)return g.delete().then(function(){return g.continue()})})}),0)})};
Nco=function(){_.p(function(F){return F.yield(sbf("LogsDatabaseV2"),0)})};
Yk$=function(F){_.E("nwl_csi_killswitch")||DsC("networkless_performance",F,{sampleRate:1})};
_.i9u=function(F){return _.am(w9C(),F)};
kCu=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return u.yield(_.i9u(F),2);q=u.yieldResult;t=(0,_.gB)()-2592E6;return u.yield(_.jv(q,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(J){return F4(J.objectStore("SWHealthLog"),{},function(g){if(g.getValue().timestamp<=t)return g.delete().then(function(){return g.continue()})})}),0)})};
EbP=function(F){var q;return _.p(function(t){if(t.nextAddress==1)return t.yield(_.i9u(F),2);q=t.yieldResult;return t.yield(q.clear("SWHealthLog"),0)})};
_.Kt=function(F,q,t,u,J,g,Y){J=J===void 0?"":J;g=g===void 0?!1:g;Y=Y===void 0?!1:Y;if(F)if(t&&!bK("cobalt"))_.hN(new _.D0("Legacy referrer-scrubbed ping detected")),F&&zUq(F,void 0,{scrubReferrer:!0});else if(J)BYA(F,q,"POST",J,u);else if(_.bn("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||u||Y)BYA(F,q,"GET","",u,void 0,g,Y);else{b:{try{c:{var Q=new obu({url:F});if(Q.urlParamValues_.dsh==="1")var e=null;else{var r=Q.urlParamValues_.ae;if(r==="1"){var N=Q.urlParamValues_.adurl;if(N)try{e={version:3,directUrl:decodeURIComponent(N),
asyncUrl:OIC(Q.JSC$9469_url_,"act=1","ri=1",nbu(Q))};break c}catch(T){}}e=r==="2"?{version:4,directUrl:OIC(Q.JSC$9469_url_,"dct=1","suid="+Q.suid_,""),asyncUrl:OIC(Q.JSC$9469_url_,"act=1","ri=1","suid="+Q.suid_)}:null}}if(e){var w=_.wN(F);var k=!(!w||!w.endsWith("/aclk")||_.Kr(F,"ri")!=="1");break b}}catch(T){}k=!1}if(k){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(F,"")){var z=!0;break b}}catch(T){}z=!1}z?(q&&q(),t=!0):t=!1}else t=!1;t||zUq(F,q)}};
zUq=function(F,q,t){t=t===void 0?{}:t;var u=new Image,J=""+Mgo++;Tco[J]=u;u.onload=u.onerror=function(){q&&Tco[J]&&q();delete Tco[J]};
t.scrubReferrer&&(u.referrerPolicy="no-referrer");u.src=F};
Bt=function(F,q){GCP(F,q==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
Dcv=function(F){var q;return((q=document.featurePolicy)==null?0:q.allowedFeatures().includes("attribution-reporting"))?F+"&nis=6":F+"&nis=5"};
WWf=function(F){if(!F)return!1;try{var q;if(((q=_.LI(F))==null?void 0:q.asm)==="4")return!0}catch(t){_.CI(t)}return!1};
GCP=function(F,q){q?(F=Dcv(F),_.Kt(F,void 0,void 0,void 0,"",!0,!0)):_.Kt(F)};
Pdy=function(){O9C||(O9C=new _.dB("yt.offline"));return O9C};
xct=function(F){if(_.E("offline_error_handling")){var q=Pdy().get("errors",!0)||{};q[F.message]={name:F.name,stack:F.stack};F.level&&(q[F.message].level=F.level);Pdy().set("errors",q,2592E3,!0)}};
vbo=function(F,q,t,u){u=u===void 0?!1:u;q=_.E("web_fp_via_jspb")?Object.assign({},q):q;_.E("use_cfr_monitor")&&AvC(F,q);if(_.E("use_request_time_ms_header"))q.headers&&tU(F)&&(q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.gB)())));else{var J;if((J=q.postParams)==null?0:J.requestTimeMs)q.postParams.requestTimeMs=Math.round((0,_.gB)())}t&&Object.keys(q).length===0?_.Kt(F):q.compress?q.postBody?(typeof q.postBody!=="string"&&(q.postBody=JSON.stringify(q.postBody)),SBP(F,q.postBody,
q,_.iK,u)):SBP(F,JSON.stringify(q.postParams),q,jDP,u):_.iK(F,q)};
IPP=function(F,q){_.E("use_event_time_ms_header")&&tU(F)&&(q.headers||(q.headers={}),q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.gB)())));return q};
_.mcf=function(){H9_||(H9_=new _.Lt({logOfflineErrors:!0,enablePolling:!0}));return H9_};
AvC=function(F,q){var t=q.onError?q.onError:function(){};
q.onError=function(J,g){ft().requestComplete(F,!1);t(J,g)};
var u=q.onSuccess?q.onSuccess:function(){};
q.onSuccess=function(J,g){ft().requestComplete(F,!0);u(J,g)}};
_.$cu=function(){return _.FR(document.location.toString())!=="www.youtube-nocookie.com"};
_.CdC=function(){return _.S6("ytNetworklessLoggingInitializationOptions")?_.b9P.isNwlInitialized:_.yv$};
dc3=function(F,q){if(_.E("polymer_on_demand_shady_dom")){var t;var u=(t=F.__shady_native_firstElementChild)!=null?t:F.firstElementChild}else u=F.firstElementChild;for(;u;){if(F=q(u)?u:dc3(u,q))return F;u=u.nextElementSibling}return null};
Uco=function(){var F=document;if("visibilityState"in F)return F.visibilityState;var q=VgA+"VisibilityState";if(q in F)return F[q]};
_.Sk3=function(F,q){var t;ae(F,function(u){t=q[u];return!!t});
return t};
_.ct=function(F){var q=hUA(F);q?q.focus(void 0):_.j1(F)};
hUA=function(F){return(F=dc3(F,function(q){return _.F1(q)?KWW(q)&&!!q.offsetParent:!1}))?F:null};
_.j1=function(F,q){F.hasAttribute("tabindex")||F.setAttribute("tabindex","-1");F.focus(q)};
Bcv=function(F,q,t,u){u=u===void 0?{}:u;F.addEventListener&&(q!="mouseenter"||"onmouseenter"in document?q!="mouseleave"||"onmouseenter"in document?q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"):q="mouseout":q="mouseover");return _.m7.findKey(qb,function(J){var g=typeof J[4]==="boolean"&&J[4]==!!u,Y=_.ho(J[4])&&_.ho(u)&&_.m7.equals(J[4],u);return!!J.length&&J[0]==F&&J[1]==q&&J[2]==t&&(g||Y)})};
_.Jf=function(F,q,t,u){u=u===void 0?{}:u;if(!F||!F.addEventListener&&!F.attachEvent)return"";var J=Bcv(F,q,t,u);if(J)return J;J=++LWP.count+"";var g=!(q!="mouseenter"&&q!="mouseleave"||!F.addEventListener||"onmouseenter"in document);var Y=g?function(Q){Q=new uz(Q);if(!_.Vp(Q.relatedTarget,function(e){return e==F},!0))return Q.currentTarget=F,Q.type=q,t.call(F,Q)}:function(Q){Q=new uz(Q);
Q.currentTarget=F;return t.call(F,Q)};
Y=_.UK(Y);F.addEventListener?(q=="mouseenter"&&g?q="mouseover":q=="mouseleave"&&g?q="mouseout":q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"),fPo()||typeof u==="boolean"?F.addEventListener(q,Y,u):F.addEventListener(q,Y,!!u.capture)):F.attachEvent("on"+q,Y);qb[J]=[F,q,t,Y,u];return J};
_.jco=function(F,q,t){var u=u===void 0?{}:u;var J=_.Jf(F,q,function(){_.aPo(J);t.apply(F,arguments)},u)};
_.aPo=function(F){F&&(typeof F=="string"&&(F=[F]),_.B_(F,function(q){if(q in qb){var t=qb[q],u=t[0],J=t[1],g=t[3];t=t[4];u.removeEventListener?fPo()||typeof t==="boolean"?u.removeEventListener(J,g,t):u.removeEventListener(J,g,!!t.capture):u.detachEvent&&u.detachEvent("on"+J,g);delete qb[q]}}))};
sD=function(F){this.callback_=F;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(F=0;F<4;F++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Jf(window,"mousemove",(0,_.Pd)(this.onMouseMove_,this));this.timerId_=_.rN((0,_.Pd)(this.checkPosition_,this),25)};
Fou=function(){var F={};var q=F.preferMobileEvents===void 0?!1:F.preferMobileEvents;F=F.enableScrollEventListener===void 0?!0:F.enableScrollEventListener;if(_.S6("_lact",window)==null){var t=parseInt(_.bn("LACT"),10);t=isFinite(t)?Date.now()-Math.max(t,0):-1;_.uo("_lact",t,window);_.uo("_fact",t,window);t==-1&&_.gO();_.Jf(document,"keydown",_.gO);_.Jf(document,"keyup",_.gO);_.Jf(document,"mousedown",_.gO);_.Jf(document,"mouseup",_.gO);q?_.Jf(window,"touchmove",function(){cvq("touchmove",200)},{passive:!0}):
(_.Jf(window,"resize",function(){cvq("resize",200)}),F&&_.Jf(window,"scroll",function(){cvq("scroll",200)}));
new sD(function(){cvq("mouse",100)});
_.Jf(document,"touchstart",_.gO,{passive:!0});_.Jf(document,"touchend",_.gO,{passive:!0})}};
cvq=function(F,q){qcW[F]||(qcW[F]=!0,_.mI.addLowPriorityJob(function(){_.gO();qcW[F]=!1},q))};
_.gO=function(){_.S6("_lact",window)==null&&Fou();var F=Date.now();_.uo("_lact",F,window);_.S6("_fact",window)==-1&&_.uo("_fact",F,window);(F=_.S6("ytglobal.ytUtilActivityCallback_"))&&F()};
_.X1=function(){var F=_.S6("_lact",window);return F==null?-1:Math.max(Date.now()-F,0)};
_.eJ=function(F,q,t){var u=_.Ye();if(u&&q){var J=u.subscribe(F,function(){var g=arguments,Y=function(){pM[J]&&q.apply&&typeof q.apply=="function"&&q.apply(t||window,g)};
try{_.ti$[F]?Y():_.Rm(Y,0)}catch(Q){_.CI(Q)}},t);
pM[J]=!0;Qw[F]||(Qw[F]=[]);Qw[F].push(J);return J}return 0};
_.u03=function(F){var q=_.Ye();q&&(typeof F==="number"?F=[F]:typeof F==="string"&&(F=[parseInt(F,10)]),_.B_(F,function(t){q.unsubscribeByKey(t);delete pM[t]}))};
_.JTu=function(F,q){var t=_.Ye();t&&t.publish.apply(t,arguments)};
_.gmP=function(F){var q=_.Ye();if(q)if(q.clear(F),F)sIo(F);else for(var t in Qw)sIo(t)};
_.Ye=function(){return _.uu.ytPubsubPubsubInstance};
sIo=function(F){Qw[F]&&(F=Qw[F],_.B_(F,function(q){pM[q]&&delete pM[q]}),F.length=0)};
lR_=function(){var F,q;return"h5vcc"in Z_&&((F=Z_.h5vcc.traceEvent)==null?0:F.traceBegin)&&((q=Z_.h5vcc.traceEvent)==null?0:q.traceEnd)?1:"performance"in Z_&&Z_.performance.mark&&Z_.performance.measure?2:0};
XTP=function(F){var q=lR_();switch(q){case 1:Z_.h5vcc.traceEvent.traceBegin("YTLR",F);break;case 2:Z_.performance.mark(F+"-start");break;case 0:break;default:_.Uv(q,"unknown trace type")}};
Ycv=function(F){var q=lR_();switch(q){case 1:Z_.h5vcc.traceEvent.traceEnd("YTLR",F);break;case 2:q=F+"-start";var t=F+"-end";Z_.performance.mark(t);Z_.performance.measure(F,q,t);break;case 0:break;default:_.Uv(q,"unknown trace type")}};
pTq=function(F){var q,t;(t=(q=window).onerror)==null||t.call(q,F.message,"",0,0,F)};
QI$=function(F){if(_.E("web_lifecycle_error_handling_killswitch"))return F();try{return F()}catch(q){pTq(q)}};
eCW=function(F){return[F.auth===void 0?"undefined":F.auth,F.isJspb===void 0?"undefined":F.isJspb,F.cttAuthInfo===void 0?"undefined":F.cttAuthInfo,F.tier===void 0?"undefined":F.tier].join("/")};
_.n=function(F,q){if(F)return F[q.name]};
rO=function(){var F=_.S6("yt.logging.ims");F||(F=new RJ,_.uo("yt.logging.ims",F));return F};
zCM=function(F,q){if(F.endpoint==="log_event"){Zp3(F);var t=RCW(F),u=rTC(F.payload)||"",J=NC3(u),g=200;if(J){if(J.enabled===!1&&!_.E("web_payload_policy_disabled_killswitch"))return;g=wTu(J.tier);if(g===400){ipf(F,q);return}}Nb[t]=!0;t={cttAuthInfo:t,isJspb:!1,tier:g};rO().storePayload(t,F.payload);kqo(q,!1,t,Emu(u))}};
nmq=function(F,q,t){if(q.endpoint==="log_event"){Zp3(void 0,q);var u=RCW(q,!0),J=NC3(F),g=200;if(J){if(J.enabled===!1&&!_.E("web_payload_policy_disabled_killswitch"))return;g=wTu(J.tier);if(g===400){omo(F,q,t);return}}Nb[u]=!0;u={cttAuthInfo:u,isJspb:!0,tier:g};rO().storePayload(u,Hs(q.payload));kqo(t,!0,u,Emu(F))}};
kqo=function(F,q,t,u){q=q===void 0?!1:q;u=u===void 0?!1:u;F&&(wO=new F);F=_.YE("tvhtml5_logging_max_batch_ads_fork")||_.YE("tvhtml5_logging_max_batch")||_.YE("web_logging_max_batch")||100;var J=(0,_.gB)(),g=MiA(q,t.tier),Y=g.lastDebounceQueueFromLogTimeMs;u&&(g.useVideoStatsEndPoint=!0);u=0;t&&(u=rO().getSequenceCount(t));var Q=function(){TCf({writeThenSend:!0},q,t.tier)};
u>=1E3?Q():u>=F?Gqo||(Gqo=DoP(function(){Q();Gqo=void 0},0)):J-Y>=10&&(Woq(q,t.tier),g.lastDebounceQueueFromLogTimeMs=J)};
ipf=function(F,q){if(F.endpoint==="log_event"){_.E("more_accurate_gel_parser")&&rO().storePayload({isJspb:!1},F.payload);Zp3(F);var t=RCW(F),u=new Map;u.set(t,[F.payload]);var J=rTC(F.payload)||"";q&&(wO=new q);return new _.iz(function(g,Y){wO&&wO.isReady()?OpA(u,wO,g,Y,{bypassNetworkless:!0},!0,Emu(J)):g()})}};
omo=function(F,q,t){if(q.endpoint==="log_event"){Zp3(void 0,q);var u=RCW(q,!0),J=new Map;J.set(u,[Hs(q.payload)]);t&&(wO=new t);return new _.iz(function(g){wO&&wO.isReady()?P_o(J,wO,g,{bypassNetworkless:!0},!0,Emu(F)):g()})}};
RCW=function(F,q){var t="";if(F.dangerousLogToVisitorSession)t="visitorOnlyApprovedKey";else if(F.cttAuthInfo){if(q===void 0?0:q){q=F.cttAuthInfo.token;t=F.cttAuthInfo;var u=new xo$;t.videoId?u.setVideoId(t.videoId):t.playlistId&&ke(u,2,ATy,k7(t.playlistId));vmo[q]=u}else q=F.cttAuthInfo,t={},q.videoId?t.videoId=q.videoId:q.playlistId&&(t.playlistId=q.playlistId),IRv[F.cttAuthInfo.token]=t;t=F.cttAuthInfo.token}return t};
TCf=function(F,q,t){F=F===void 0?{}:F;q=q===void 0?!1:q;new _.iz(function(u,J){var g=MiA(q,t),Y=g.useVideoStatsEndPoint;g.useVideoStatsEndPoint=!1;Hpo(g.queueTimer);Hpo(g.queueMaxTimer);g.queueMaxTimer=0;wO&&wO.isReady()?t===void 0&&_.E("enable_web_tiered_gel")?mo_(u,J,F,q,300,Y):mo_(u,J,F,q,t,Y):(Woq(q,t),u())})};
mo_=function(F,q,t,u,J,g){var Y=wO;t=t===void 0?{}:t;u=u===void 0?!1:u;J=J===void 0?200:J;g=g===void 0?!1:g;var Q=new Map,e=new Map,r={isJspb:u,cttAuthInfo:void 0,tier:J},N={isJspb:u,cttAuthInfo:void 0};if(u){q=_.X(Object.keys(Nb));for(J=q.next();!J.done;J=q.next())J=J.value,e=_.E("enable_web_tiered_gel")?rO().smartExtractMatchingEntries({keys:[r,N],sizeLimit:1E3}):rO().extractMatchingEntries({isJspb:!0,cttAuthInfo:J}),e.length>0&&Q.set(J,e),(_.E("web_fp_via_jspb_and_json")&&t.writeThenSend||!_.E("web_fp_via_jspb_and_json"))&&
delete Nb[J];P_o(Q,Y,F,t,!1,g)}else{Q=_.X(Object.keys(Nb));for(r=Q.next();!r.done;r=Q.next())r=r.value,N=_.E("enable_web_tiered_gel")?rO().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:r,tier:J},{isJspb:!1,cttAuthInfo:r}],sizeLimit:1E3}):rO().extractMatchingEntries({isJspb:!1,cttAuthInfo:r}),N.length>0&&e.set(r,N),(_.E("web_fp_via_jspb_and_json")&&t.writeThenSend||!_.E("web_fp_via_jspb_and_json"))&&delete Nb[r];OpA(e,Y,F,q,t,!1,g)}};
Woq=function(F,q){F=F===void 0?!1:F;q=q===void 0?200:q;var t=function(){TCf({writeThenSend:!0},F,q)},u=MiA(F,q),J=u===$o3||u===bpo?5E3:yTP;
_.E("web_gel_timeout_cap")&&!u.queueMaxTimer&&(J=DoP(function(){t()},J),u.queueMaxTimer=J);
Hpo(u.queueTimer);J=_.bn("LOGGING_BATCH_TIMEOUT",_.YE("web_gel_debounce_ms",1E4));_.E("shorten_initial_gel_batch_timeout")&&C_v&&(J=dot);J=DoP(function(){_.YE("gel_min_batch_size")>0?rO().getSequenceCount({cttAuthInfo:void 0,isJspb:F,tier:q})>=Vit&&t():t()},J);
u.queueTimer=J};
OpA=function(F,q,t,u,J,g,Y){J=J===void 0?{}:J;var Q=Math.round((0,_.gB)()),e=F.size,r=UoA(Y);F=_.X(F);var N=F.next();for(Y={};!N.done;Y={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},N=F.next()){var w=_.X(N.value);N=w.next().value;w=w.next().value;Y.batchRequest=_.m7.unsafeClone({context:_.oht(q.config_||_.X4())});if(!_.VC(w)&&!_.E("throw_err_when_logevent_malformed_killswitch")){u();break}Y.batchRequest.events=w;
(w=IRv[N])&&Sc3(Y.batchRequest,N,w);delete IRv[N];Y.dangerousLogToVisitorSession=N==="visitorOnlyApprovedKey";hCu(Y.batchRequest,Q,Y.dangerousLogToVisitorSession);KoW(J);Y.onSuccess$jscomp$3=function(k){_.E("start_client_gcf")&&_.mI.addLowPriorityJob(function(){return _.p(function(z){return z.yield(BCv(k),0)})});
e--;e||t()};
Y.networkFailures=0;Y.onError$jscomp$5=function(k){return function(){k.networkFailures++;if(J.bypassNetworkless&&k.networkFailures===1)try{utP(q,r,k.batchRequest,Lo$({writeThenSend:!0},k.dangerousLogToVisitorSession,k.onSuccess$jscomp$3,k.onError$jscomp$5,g)),C_v=!1}catch(z){_.CI(z),u()}e--;e||t()}}(Y);
try{utP(q,r,Y.batchRequest,Lo$(J,Y.dangerousLogToVisitorSession,Y.onSuccess$jscomp$3,Y.onError$jscomp$5,g)),C_v=!1}catch(k){_.CI(k),u()}}};
P_o=function(F,q,t,u,J,g){u=u===void 0?{}:u;var Y=Math.round((0,_.gB)()),Q={value:F.size},e=new Map([].concat(_.mZ(F)));e=_.X(e);for(var r=e.next();!r.done;r=e.next()){var N=_.X(r.value).next().value,w=F.get(N);r=new fRP;var k=q.config_||_.X4(),z=new ED,T=new aR$;_.OF(T,1,k.innertubeContextHostLanguage);_.OF(T,2,k.innertubeContextGeoLocation);_.pt(T,16,k.innertubeContextClientNameFieldNumber);_.OF(T,17,k.innertubeContextClientVersion);if(k.innertubeContextClientConfigInfo){var P=k.innertubeContextClientConfigInfo,
v=new e1;P.coldConfigData&&_.OF(v,1,P.coldConfigData);P.appInstallData&&_.OF(v,6,P.appInstallData);P.coldHashData&&_.OF(v,3,P.coldHashData);P.hotHashData&&v.setHotHashData(P.hotHashData);_.My(T,62,v)}(P=_.uu.devicePixelRatio)&&P!=1&&_.Qa(T,65,_.SC(P));P=bJC();P!==""&&_.OF(T,54,P);P=yV3();if(P.length>0){v=new jIC;for(var H=0;H<P.length;H++){var d=new zm;d.setKey(P[H].key);ke(d,2,cTP,k7(P[H].value));oJ(v,15,zm,d)}_.My(z,5,v)}Nat(k,T);wxy(z);iGC(T);kry(k,T);Eho(T);_.E("start_client_gcf")&&zbf(T);_.bn("DELEGATED_SESSION_ID")&&
!_.E("pageid_as_header_web")&&(k=new nM,_.OF(k,3,_.bn("DELEGATED_SESSION_ID")));!_.E("fill_delegate_context_in_gel_killswitch")&&(P=_.bn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(v=_.Yw(z,nM,3)||new nM,k=z,P=_.OF(v,18,P),_.My(k,3,P));k=T;P=_.X(Object.entries(_.LI(_.bn("DEVICE",""))));for(v=P.next();!v.done;v=P.next())H=_.X(v.value),v=H.next().value,H=H.next().value,v==="cbrand"?_.OF(k,12,H):v==="cmodel"?_.OF(k,13,H):v==="cbr"?_.OF(k,87,H):v==="cbrver"?_.OF(k,88,H):v==="cos"?_.OF(k,18,
H):v==="cosver"?_.OF(k,19,H):v==="cplatform"&&_.pt(k,42,rxP(H));z.setClient(T);_.My(r,1,z);if(T=vmo[N])a:{if(_.oX(T,Mb(T,ATy,1)))z=1;else if(T.getPlaylistId())z=2;else break a;_.My(r,4,T);T=r.getContext()||new ED;k=_.Yw(T,nM,3)||new nM;P=new Tm;P.setToken(N);_.pt(P,1,z);oJ(k,12,Tm,P);_.My(T,3,k)}delete vmo[N];N=N==="visitorOnlyApprovedKey";Fpq()||_.Gm(r,2,Y);!N&&(z=_.bn("EVENT_ID"))&&(T=qOA(),k=new ta_,_.OF(k,1,z),_.Gm(k,2,T),_.My(r,5,k));KoW(u);if(_.E("jspb_serialize_with_worker")&&(z=_.AYu())&&
u.writeThenSend){_.upP.set(JCq,{client:q,resolve:t,networklessOptions:u,isIsolated:J,useVSSEndpoint:g,dangerousLogToVisitorSession:N,requestsOutstanding:Q});z.postMessage({op:"gelBatchToSerialize",batchRequest:Hs(r),clientEvents:w,key:JCq});JCq++;break}if(w){z=[];for(T=0;T<w.length;T++)try{z.push(new D_(w[T]))}catch(a){_.CI(new _.D0("Transport failed to deserialize "+String(w[T])))}w=z}else w=[];w=_.X(w);for(z=w.next();!z.done;z=w.next())oJ(r,3,D_,z.value);w={startTime:(0,_.gB)(),ticks:{},infos:{}};
r=r.serialize();w.ticks.geljspc=(0,_.gB)();_.E("log_jspb_serialize_latency")&&DsC("gel_jspb_serialize",w,{sampleRate:.1});_.ss_(r,q,t,u,J,g,N,Q)}};
_.ss_=function(F,q,t,u,J,g,Y,Q){u=u===void 0?{}:u;Q=Q===void 0?{value:0}:Q;g=UoA(g);u=Lo$(u,Y,function(e){_.E("start_client_gcf")&&_.mI.addLowPriorityJob(function(){return _.p(function(r){return r.yield(BCv(e),0)})});
Q.value--;Q.value||t()},function(){Q.value--;
Q.value||t()},J);
u.headers["Content-Type"]="application/json+protobuf";u.postBodyFormat="JSPB";u.postBody=F;utP(q,g,"",u);C_v=!1};
KoW=function(F){_.E("always_send_and_write")&&(F.writeThenSend=!1)};
Lo$=function(F,q,t,u,J){F={retry:!0,onSuccess:t,onError:u,networklessOptions:F,dangerousLogToVisitorSession:q,bypassMonitoring:!!J,headers:{},postBodyFormat:"",postBody:"",compress:_.E("compress_gel")||_.E("compress_gel_lr")};Fpq()&&(F.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.gB)())));return F};
hCu=function(F,q,t){Fpq()||(F.requestTimeMs=String(q));_.E("unsplit_gel_payloads_in_logs")&&(F.unsplitGelPayloadsInLogs=!0);!t&&(q=_.bn("EVENT_ID"))&&(t=qOA(),F.serializedClientEventId={serializedEventId:q,clientCounter:String(t)})};
qOA=function(){var F=_.bn("BATCH_CLIENT_COUNTER")||0;F||(F=Math.floor(Math.random()*65535/2));F++;F>65535&&(F=1);_.$I("BATCH_CLIENT_COUNTER",F);return F};
Sc3=function(F,q,t){if(t.videoId)var u="VIDEO";else if(t.playlistId)u="PLAYLIST";else return;F.credentialTransferTokenTargetId=t;F.context=F.context||{};F.context.user=F.context.user||{};F.context.user.credentialTransferTokens=[{token:q,scope:u}]};
Zp3=function(F,q){var t=_.pE("il_payload_scraping")==="enable_il_payload_scraping";if(!_.S6("yt.logging.transport.enableScrapingForTest"))if(t)gCo=[],_.uo("yt.logging.transport.enableScrapingForTest",!0),_.uo("yt.logging.transport.scrapedPayloadsForTesting",gCo),_.uo("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.uo("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.uo("yt.logging.transport.scrapeClientEvent",!0);else return;t=_.S6("yt.logging.transport.scrapedPayloadsForTesting");var u=_.S6("yt.logging.transport.payloadToScrape");q&&(q=_.S6("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(q.payload)())&&t.push(q);q=_.S6("yt.logging.transport.scrapeClientEvent");if(u&&u.length>=1)for(var J=0;J<u.length;J++)if(F&&F.payload[u[J]])if(q)t.push(F.payload);else{var g=void 0;t.push(((g=F)==null?void 0:g.payload)[u[J]])}_.uo("yt.logging.transport.scrapedPayloadsForTesting",
t)};
Fpq=function(){return _.E("use_request_time_ms_header")||_.E("lr_use_request_time_ms_header")};
DoP=function(F,q){return _.E("transport_use_scheduler")===!1?_.Rm(F,q):_.E("logging_avoid_blocking_during_navigation")||_.E("lr_logging_avoid_blocking_during_navigation")?_.W2(_.mI,function(){if(_.lzt().currentState==="none")F();else{var t={};_.lzt().install((t.none={callback:F},t))}},q):_.W2(_.mI,F,q)};
Hpo=function(F){_.E("transport_use_scheduler")?_.mI.cancelJob(F):_.Nh(F)};
BCv=function(F){var q,t,u,J,g,Y,Q,e,r,N;return _.p(function(w){return w.nextAddress==1?(u=(q=F)==null?void 0:(t=q.responseContext)==null?void 0:t.globalConfigGroup,J=_.n(u,XDA),Y=(g=u)==null?void 0:g.hotHashData,Q=_.n(u,YOu),r=(e=u)==null?void 0:e.coldHashData,(N=_.sV().resolve(_.JU(OD)))?Y?J?w.yield(pDC(N,Y,J),2):w.yield(pDC(N,Y),2):w.jumpTo(2):w.return()):r?Q?w.yield(Qs$(N,r,Q),0):w.yield(Qs$(N,r),0):w.jumpTo(0)})};
MiA=function(F,q){q=q===void 0?200:q;return F?q===300?$o3:e7t:q===300?bpo:ZHt};
NC3=function(F){if(_.E("enable_web_tiered_gel")){F=R7W[F||""];var q,t,u,J=_.sV().resolve(_.JU(OD))==null?void 0:(q=P2())==null?void 0:(t=q.loggingHotConfig)==null?void 0:(u=t.eventLoggingConfig)==null?void 0:u.payloadPolicies;if(J)for(q=0;q<J.length;q++)if(J[q].payloadNumber===F)return J[q]}};
rTC=function(F){F=Object.keys(F);F=_.X(F);for(var q=F.next();!q.done;q=F.next())if(q=q.value,R7W[q])return q};
wTu=function(F){switch(F){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
Emu=function(F){return F==="gelDebuggingEvent"};
UoA=function(F){return(F===void 0?0:F)&&_.E("vss_through_gel_video_stats")?"video_stats":"log_event"};
Af=function(F,q,t,u){u=u===void 0?{}:u;var J={},g=Math.round(u.timestamp||(0,_.gB)());J.eventTimeMs=g<Number.MAX_SAFE_INTEGER?g:0;J[F]=q;F=_.X1();J.context={lastActivityMs:String(u.timestamp||!isFinite(F)?-1:F)};u.sequenceGroup&&!_.E("web_gel_sequence_info_killswitch")&&(F=J.context,q=u.sequenceGroup,q={index:rC$(q),groupKey:q},F.sequence=q,u.endOfSequence&&delete xe[u.sequenceGroup]);_.E("web_tag_automated_log_events")&&(J.context.automatedLogEventSource=u.automatedLogEventSource);(u.sendIsolatedPayload?
ipf:zCM)({endpoint:"log_event",payload:J,cttAuthInfo:u.cttAuthInfo,dangerousLogToVisitorSession:u.dangerousLogToVisitorSession},t)};
rC$=function(F){xe[F]=F in xe?xe[F]+1:0;return xe[F]};
_.IJ=function(F,q,t){t=t===void 0?{}:t;var u=v2;_.yG("ytLoggingEventsDefaultDisabled",!1)&&v2===v2&&(u=null);Af(F,q,u,t)};
_.H2=function(){if(_.E("web_fp_via_jspb")){var F=!0;F=F===void 0?!1:F;var q=N0$;N0$=[];if(q){q=_.X(q);for(var t=q.next();!t.done;t=q.next())t=t.value,F?Af(t.payloadName,t.payload,v2,t.options):_.IJ(t.payloadName,t.payload,t.options)}TCf(void 0,!0);if(!_.E("web_fp_via_jspb_and_json"))return}TCf(void 0,!1)};
wDA=function(F,q){var t;if((t=q)==null?0:t.componentStack)return q;if(F=F.componentStack)q||(q={}),q.componentStack=F;return q};
iHo=function(){_.B_(_.bn("ERRORS")||[],function(F){_.mH.apply(null,F)});
_.$I("ERRORS",[])};
_.$e=function(F){_.mH(F)};
_.bz=function(F){_.mH(F,"WARNING")};
klt=function(F){F instanceof Error?_.mH(F):(F=_.ho(F)?JSON.stringify(F):String(F),F=new _.D0(F),F.name="RejectedPromiseError",_.bz(F))};
ECu=function(F,q,t,u,J,g){q=q===void 0?"Unknown file":q;t=t===void 0?0:t;var Y=!1,Q=wof("log_window_onerror_fraction");if(Q&&Math.random()<Q)Y=!0;else{Q=document.getElementsByTagName("script");for(var e=0,r=Q.length;e<r;e++)if(Q[e].src.indexOf("/debug-")>0){Y=!0;break}}Y&&(Y=!1,J?Y=!0:(typeof F==="string"?Q=F:ErrorEvent&&F instanceof ErrorEvent?(Y=!0,Q=F.message,q=F.filename,t=F.lineno,u=F.colno):(Q="Unknown error",q="Unknown file",t=0),J=new _.D0(Q),J.name="UnhandledWindowError",J.message=Q,J.fileName=
q,J.lineNumber=t,isNaN(u)?delete J.columnNumber:J.columnNumber=u),_.E("wiz_enable_component_stack_propagation_killswitch")||(g=wDA(J,g)),g&&_.yw(J,g),Y?_.mH(J):_.bz(J))};
_.mH=function(F,q,t,u,J,g,Y,Q){g=g===void 0?{}:g;g.name=t||_.bn("INNERTUBE_CONTEXT_CLIENT_NAME",1);g.version=u||_.bn("INNERTUBE_CONTEXT_CLIENT_VERSION");t=g;q=q===void 0?"ERROR":q;Y=Y===void 0?!1:Y;q=q===void 0?"ERROR":q;Y=Y===void 0?!1:Y;if(F&&(F.hasOwnProperty("level")&&F.level&&(q=F.level),_.E("console_log_js_exceptions")&&(u=[],u.push("Name: "+F.name),u.push("Message: "+F.message),F.hasOwnProperty("params")&&u.push("Error Params: "+JSON.stringify(F.params)),F.hasOwnProperty("args")&&u.push("Error args: "+
JSON.stringify(F.args)),u.push("File name: "+F.fileName),u.push("Stacktrace: "+F.stack),u=u.join("\n"),window.console.log(u,F)),!(z7W>=5))){u=[];J=_.X(oCP);for(g=J.next();!g.done;g=J.next()){g=g.value;try{g()&&u.push(g())}catch(v){}}u=[].concat(_.mZ(nCM),_.mZ(u));var e=MaM(F);J=e.message||"Unknown Error";g=e.name||"UnknownError";var r=e.stack||F.stacktrace||"Not available";if(r.startsWith(g+": "+J)){var N=r.split("\n");N.shift();r=N.join("\n")}N=e.lineNumber||"Not available";e=e.fileName||"Not available";
var w=0;if(F.hasOwnProperty("args")&&F.args&&F.args.length)for(var k=0;k<F.args.length&&!(w=Rlo(F.args[k],"params."+k,t,w),w>=500);k++);else if(F.hasOwnProperty("params")&&F.params){var z=F.params;if(typeof F.params==="object")for(k in z){if(z[k]){var T="params."+k,P=zQ(z[k]);t[T]=P;w+=T.length+P.length;if(w>500)break}}else t.params=zQ(z)}if(u.length)for(k=0;k<u.length&&!(w=Rlo(u[k],"params.context."+k,t,w),w>=500);k++);navigator.vendor&&!t.hasOwnProperty("vendor")&&(t["device.vendor"]=navigator.vendor);
k={message:J,name:g,lineNumber:N,fileName:e,stack:r,params:t,sampleWeight:1};t=Number(F.columnNumber);isNaN(t)||(k.lineNumber=k.lineNumber+":"+t);if(F.level==="IGNORED")F=0;else a:{F=T0W();t=_.X(F.messageWeights);for(u=t.next();!u.done;u=t.next())if(u=u.value,k.message&&k.message.match(u.messageRegExp)){F=u.weight;break a}F=_.X(F.callbackWeights);for(t=F.next();!t.done;t=F.next())if(t=t.value,t.callback(k)){F=t.weight;break a}F=1}k.sampleWeight=F;F=_.X(Gl3);for(t=F.next();!t.done;t=F.next())if(t=
t.value,t.patternsForType[k.name])for(J=_.X(t.patternsForType[k.name]),u=J.next();!u.done;u=J.next())if(g=u.value,u=k.message.match(g.regexp)){k.params["params.error.original"]=u[0];J=g.groups;g={};for(N=0;N<J.length;N++)g[J[N]]=u[N+1],k.params["params.error."+J[N]]=u[N+1];k.message=t.messageFn(g);break}k.params||(k.params={});F=T0W();k.params["params.errorServiceSignature"]="msg="+F.messageWeights.length+"&cb="+F.callbackWeights.length;k.params["params.serviceWorker"]="false";_.uu.document&&_.uu.document.querySelectorAll&&
(k.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new CM(DZ_,"sample")).constructor!==CM&&(k.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(k);if(k.sampleWeight!==0&&!Wpu.has(k.message)){if(Y&&_.E("web_enable_error_204"))OHM(q===void 0?"ERROR":q,k);else{q=q===void 0?"ERROR":q;q==="ERROR"?(P6$.publish("handleError",k),_.E("record_app_crashed_web")&&xZC===0&&k.sampleWeight===1&&(xZC++,Y={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.E("report_client_error_with_app_crash_ks")||(Y.systemHealth={crashData:{clientError:{logMessage:{message:k.message}}}}),_.IJ("appCrashed",Y)),ACW++):q==="WARNING"&&P6$.publish("handleWarning",k);if(_.E("kevlar_gel_error_routing")){Y=q;Q=Q===void 0?{}:Q;b:{F=_.X(vC$);for(t=F.next();!t.done;t=F.next())if(bK(t.value.toLowerCase())){F=!0;break b}F=!1}if(F)Q=void 0;else{t={stackTrace:k.stack};k.fileName&&(t.filename=k.fileName);F=k.lineNumber&&k.lineNumber.split?k.lineNumber.split(":"):[];F.length!==
0&&(F.length!==1||isNaN(Number(F[0]))?F.length!==2||isNaN(Number(F[0]))||isNaN(Number(F[1]))||(t.lineNumber=Number(F[0]),t.columnNumber=Number(F[1])):t.lineNumber=Number(F[0]));F={level:"ERROR_LEVEL_UNKNOWN",message:k.message,errorClassName:k.name,sampleWeight:k.sampleWeight};Y==="ERROR"?F.level="ERROR_LEVEL_ERROR":Y==="WARNING"&&(F.level="ERROR_LEVEL_WARNNING");t={isObfuscated:!0,browserStackInfo:t};Q.pageUrl=window.location.href;Q.kvPairs=[];_.bn("FEXP_EXPERIMENTS")&&(Q.experimentIds=_.bn("FEXP_EXPERIMENTS"));
u=_.bn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!wof("web_disable_gel_stp_ecatcher_killswitch")&&u)for(J=_.X(Object.keys(u)),g=J.next();!g.done;g=J.next())g=g.value,Q.kvPairs.push({key:g,value:String(u[g])});if(u=k.params)for(J=_.X(Object.keys(u)),g=J.next();!g.done;g=J.next())g=g.value,Q.kvPairs.push({key:"client."+g,value:String(u[g])});u=_.bn("SERVER_NAME");J=_.bn("SERVER_VERSION");u&&J&&(Q.kvPairs.push({key:"server.name",value:u}),Q.kvPairs.push({key:"server.version",value:J}));Q={errorMetadata:Q,
stackTrace:t,logMessage:F}}Q&&(_.IJ("clientError",Q),(Y==="ERROR"||_.E("errors_flush_gel_always_killswitch"))&&_.H2())}_.E("suppress_error_204_logging")||OHM(q,k)}try{Wpu.add(k.message)}catch(v){}z7W++}}};
OHM=function(F,q){var t=q.params||{};F={urlParams:{a:"logerror",t:"jserror",type:q.name,msg:q.message.substr(0,250),line:q.lineNumber,level:F,"client.name":t.name},postParams:{url:_.bn("PAGE_NAME",window.location.href),file:q.fileName},method:"POST"};t.version&&(F["client.version"]=t.version);if(F.postParams){q.stack&&(F.postParams.stack=q.stack);q=_.X(Object.keys(t));for(var u=q.next();!u.done;u=q.next())u=u.value,F.postParams["client."+u]=t[u];if(t=_.bn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(q=
_.X(Object.keys(t)),u=q.next();!u.done;u=q.next())u=u.value,F.postParams[u]=t[u];(t=_.bn("LAVA_VERSION"))&&(F.postParams["lava.version"]=t);t=_.bn("SERVER_NAME");q=_.bn("SERVER_VERSION");t&&q&&(F.postParams["server.name"]=t,F.postParams["server.version"]=q)}_.iK(_.bn("ECATCHER_REPORT_HOST","")+"/error_204",F)};
_.Izt=function(F,q){q=q===void 0?"ERROR":q;var t=t===void 0?{}:t;var u=_.S6("ytbin.polymer.shared.lib.tampering.info");u&&(u=u())&&(t["params.tamperingInfo"]=u.sort().join(","));_.mH(F,q,void 0,void 0,!0,t)};
_.yw=function(F){var q=_.US.apply(1,arguments);F.args||(F.args=[]);Array.isArray(F.args)&&F.args.push.apply(F.args,_.mZ(q))};
HHt=function(F){F.level="IGNORED"};
mZt=function(F,q){nCM.push(F);q();nCM.pop()};
Vw=function(F,q){for(var t in q)q.hasOwnProperty(t)&&(F=_.dO(F,t,q[t]));return F};
_.$Zo=function(F,q,t){t=t===void 0?!1:t;if(!F)return null;if(F.adInfoDialogEndpoint||F.backstageImageUploadEndpoint||F.confirmDialogEndpoint||F.clientActionEndpoint||F.createBackstagePostDialogEndpoint||F.createCommentReplyDialogEndpoint||F.flowEndpoint||F.guideBuilderEndpoint||F.liveChatDialogEndpoint||F.modalEndpoint||F.openPopupAction||F.shareEndpoint||F.shareEntityEndpoint||F.showLiveChatItemEndpoint||F.subscriptionManagerEndpoint||F.unlimitedCreateFamilyEndpoint||F.unlimitedFamilyFlowEndpoint||
F.updateCommentDialogEndpoint||F.updateCommentReplyDialogEndpoint||F.userFeedbackEndpoint||F.videoEditorEndpoint||F.ypcCancelSurveyEndpoint)return q=_.YE("polymer_report_client_url_requested_rate"),!t&&Math.random()<q&&_.bz(new _.D0("urlForEndpoint used on client endpoint",F)),null;var u=_.YE("polymer_report_missing_web_navigation_endpoint_rate");if(F.liveChatEndpoint||F.liveChatReplayEndpoint)u=0;if(!F.commandMetadata&&!F.clickTrackingParams&&Math.random()<u){var J={},g;for(g in F)J[g]="1";_.bz(new _.D0("Missing navigation data",
J))}J="";if(F.commandMetadata&&F.commandMetadata.webCommandMetadata&&F.commandMetadata.webCommandMetadata.url)J=F.commandMetadata.webCommandMetadata.url;else if(F.searchEndpoint)Math.random()<u&&_.bz(new _.D0("Should not manually handle search",F)),J="/results?search_query="+encodeURIComponent(F.searchEndpoint.query).replace(/%20/g,"+"),F.searchEndpoint.params&&(J+="&sp="+F.searchEndpoint.params);else if(F.watchEndpoint)Math.random()<u&&_.bz(new _.D0("Should not manually handle watch",F)),J="/watch?v="+
F.watchEndpoint.videoId,F.watchEndpoint.playlistId&&(J+="&list="+F.watchEndpoint.playlistId),F.watchEndpoint.index&&(J+="&index="+F.watchEndpoint.index),F.watchEndpoint.startTimeSeconds&&(J+="&t="+F.watchEndpoint.startTimeSeconds);else if(F.browseEndpoint)u=F.browseEndpoint.browseId,(g=F.browseEndpoint.canonicalBaseUrl)?J=g:u&&(J=u.substr(0,2),J=J==="FE"?u==="FEwhat_to_watch"?"/":u==="FEmy_videos"?"/my_videos":"/feed/"+u.substr(2):J==="VL"?"/playlist?list="+u.substr(2):"/channel/"+u),J&&F.browseEndpoint.query&&
(J=Vw(J+"/search",{query:F.browseEndpoint.query})),J&&F.browseEndpoint.params&&(J=Vw(J,{params:F.browseEndpoint.params}));else{if(F.urlEndpoint)return F.urlEndpoint.url;F.signInEndpoint?(J="https://accounts.google.com/ServiceLogin",u={},_.m7.extend(u,q||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),q=u):F.uploadEndpoint?J="//www.youtube.com/upload":F.liveChatEndpoint?(J=F.liveChatEndpoint,u=_.m7.clone(J),_.ho(J.continuation)&&(g=Object.keys(J.continuation)[0],
u.continuation=J.continuation[g].continuation),J=Vw("/youtubei/v1/live_chat/get_live_chat",u)):F.liveChatReplayEndpoint?(J=_.m7.clone(F.liveChatReplayEndpoint),J.currentPlayerState&&(_.m7.extend(J,J.currentPlayerState),delete J.currentPlayerState),J=Vw("/youtubei/v1/live_chat/get_live_chat_replay",J)):F.liveChatItemContextMenuEndpoint?J=Vw("/youtubei/v1/live_chat/get_item_context_menu",F.liveChatItemContextMenuEndpoint):F.liveChatPurchaseMessageEndpoint?J=Vw("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
F.liveChatPurchaseMessageEndpoint):F.openSuperStickerBuyFlowCommand?J=Vw("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",F.openSuperStickerBuyFlowCommand):F.videoEditEndpoint?J=Vw("/edit",{video_id:F.videoEditEndpoint.videoId}):F.liveDashboardEndpoint?J=F.liveDashboardEndpoint.videoId?Vw("/live_dashboard",{v:F.liveDashboardEndpoint.videoId}):"/live_dashboard":F.signalNavigationEndpoint&&F.signalNavigationEndpoint.signal&&F.signalNavigationEndpoint.signal==="WEBCAM"?J="/webcam":F.getPdgBuyFlowCommand&&
(J=Vw(F.getPdgBuyFlowCommand.buyflowApiPath,{params:F.getPdgBuyFlowCommand.params}))}return J||t?Vw(J,q||{}):(_.bz(new _.D0("Error: Can't construct url for endpoint","keys:"+Object.keys(F).sort().join(","),F)),null)};
bHo=function(F){if(F){if(F.browseEndpoint)return!!F.browseEndpoint.nofollow;if(F.watchEndpoint)return!!F.watchEndpoint.nofollow;if(F.urlEndpoint)return!!F.urlEndpoint.nofollow}return!1};
_.C6W=function(F,q){var t=q+F,u=yCq.get(t);if(u)return u;F=q+"-"+F.replace(/([A-Z])/g,"-$1").toLowerCase();yCq.set(t,F);return F};
dZv=function(F){var q=_.H_(F,"action")||_.H_(F,"command")||_.H_(F,"endpoint");if(!q)return null;q=_.C6W(q,"yt");_.n(F,_.UD)&&(q+="-"+_.n(F,_.UD).signal.toLowerCase().replace(/_/g,"-"));return q};
h7P=function(F){try{var q=Object.keys(F)}catch(J){return[]}for(var t=0;t<q.length;t++){var u=q[t];if(Vau.test(u)||UZ_.test(u))return SOP(F[u])}return[]};
SOP=function(F){return F.command?[F.command]:F.onExecutionAction?[F.onExecutionAction]:F.onResponseReceivedCommand?[F.onResponseReceivedCommand]:F.updateFlowCommand?[F.updateFlowCommand]:F.clientActions?F.clientActions:F.action?[F.action]:F.actions||F.commands||F.onResponseReceivedActions||F.onResponseReceivedCommands||F.onResponseReceivedEndpoints||[]};
B0C=function(F,q){q=q===void 0?!1:q;var t=_.sV().resolve(_.JU(hf));t||(t=new Kpo,_.sV().addProvider({provide:hf,useValue:t}));return t&&F&&!_.m7.isEmpty(F)?t.getUrl(F,q):""};
LpC=function(F,q,t){t=t===void 0?"":t;if(q){F.data=q;var u=B0C(q);u?(Kl(F,u),bHo(q)||!tU(u)?F.rel="nofollow":F.removeAttribute("rel"),_.n(q,_.KM)&&_.n(q,_.KM).target==="TARGET_NEW_WINDOW"?F.target="_blank":t?F.target=t:F.removeAttribute("target")):(F.removeAttribute("href"),F.removeAttribute("rel"),F.removeAttribute("target"))}};
_.c2=function(F,q){var t=tO;if(Od())fz_(F,function(){var g=_.US.apply(0,arguments);$R(t,function(){q.apply(null,_.mZ(g))})});
else{var u=_.B2.getInstance(),J=NYP(q);sDo(function(){J.value=q});
_.v_(function(){var g={},Y=_.aJ(u,(g[F]=function(){var Q=_.US.apply(0,arguments);$R(t,function(){J.value.apply(J,_.mZ(Q))})},g));
return function(){var Q={};_.jJ(u,(Q[F]="",Q),Y)}})}};
_.FG=function(F,q){return az_(F,!1,q)};
_.qL=function(F,q){return az_(F,!0,q)};
az_=function(F,q,t){return Od()?jsy(F,q,t):cC$(F,q,t)};
cC$=function(F,q,t){return I5(function(){return jsy(F,q,t)})};
jsy=function(F,q,t){var u=qHv(function(J){u.value=J;var g=function(){var Y=pq(null);try{return t==null?void 0:t(J)}finally{pq(Y)}}();
return function(){g==null||g()}});
u.__expectedTagName=F;u.__optional=q;u.isIdom=!Od();return u};
FT3=function(F){var q=tO,t=DV;return{getFn:function(){return function(u){q.isDisposed||xR(function(){return rP(function(){return F(u)})},t)!==!0&&u.stopPropagation()}}}};
tg=function(F){if(typeof F.children==="function")return F.children(),null;F=_.X(F.children);for(var q=F.next();!q.done;q=F.next())q=q.value,q();return null};
qoP=function(F){var q;return((q=F.prototype)==null?void 0:q.render)===void 0};
txC=function(F){return F.items.map(F.children)};
_.Jiy=function(F,q,t){t=t===void 0?!1:t;xR(function(){return ufo(F,q,t)})};
ufo=function(F,q,t){var u=null;M3++;t=(t===void 0?0:t)?s43:gi3;try{u=t(F,function(){uR(q)}),Gy(!1)}catch(J){throw Gy(!0),J;
}return u===null?F:u};
uR=function(F){if(F!==void 0&&F!==null)if(F instanceof EK)for(var q=Bj;Lq()!=null&&bBu in Lq()&&q.contains(Lq());)jt();else if(Array.isArray(F))for(q=_.X(F),F=q.next();!F.done;F=q.next())uR(F.value);else if(F instanceof WS||F instanceof XY||"function"==typeof _.sK&&F instanceof _.sK)bWy(F.toString());else if(_.YI(F)){if(Lq()!==F){var t,u;q=(u=(t=DV)==null?void 0:t.name)!=null?u:"unknown";throw Error("ec`"+F.tagName+"`"+q);}jt()}else if(F!=null&&F.contentKind===e6||F instanceof BS||qeA(F))for(q=u53(F),
q=Array.from(q.childNodes),q=_.X(q),F=q.next();!F.done;F=q.next())Bj.appendChild(F.value),jt();else if(HS(F)&&(F=F.toString()),t=typeof F,t==="boolean"||t==="number"||t==="string")bWy(F);else if(typeof F==="function"){q=Bj;var J=Lq();J&&(J._isSignalTextNode||J._isSafeOrSanitizedHtmlNode)||WOo(q,J,F);jt()}else if(F.type===txC)uR(F.type(Object.assign({},F.props,{children:F.children[0]})));else{nI.beforeVisit(F);if(typeof F.type==="string"){a:{F.__open||OW3(F.type,F.props.idomKey);J=Bj;for(q in F.props)if(F.props[q]!==
lMW){var g=F.props[q];t=qM;t.push(q);t.push(g)}q=l5.attributes;q=q===void 0?Jg:q;g=Bj;t=Kq(g);$L_(g,t,q);Dd$(J,F.props,!0);if((F.props.skip||F.props.skipchildren)&&Bj.hasChildNodes())xL3();else{if(F.type==="style"&&QuC(F.children)===null){xL3();q=void 0;break a}uR(F.children)}PRt();F.__open&&(F.__open=!1);K0f(J,F.props);q=J}return q}if(F.type===_.ln)uR(F.children);else if(!XZu(F)){q=F;try{Yo_(q)}catch(Y){F=Y,(g=l5.handleError)==null||g.call.apply(g,[l5].concat(_.mZ(b5(F,(J=q.type)==null?void 0:J.TAG_NAME))))}q.__open&&
(PRt(),q.__open=!1)}}};
pZM=function(F,q){var t;qoP(F)?t=new MM(q,F):t=new F(q);t.__type=F;t.__updateContext={nextState:t.state,isForced:!1};return t};
Yo_=function(F){var q=F.type,t=q.TAG_NAME;if(q===tg)F.props.children=F.children,q(F.props);else{F.children.length>0&&(F.props.children=F.children);var u;(u=F.props).idomKey||(u.idomKey=q);if(t){var J=OW3(t,F.props.idomKey);F.__open=!0;var g=J.__instance}g||(g=pZM(q,F.props),g.props=null,J&&(J.__instance=g,g.el=J));var Y;t=((Y=g.__updateContext)!=null?Y:{nextState:g.state,isForced:!1}).nextState;g.__updateContext=void 0;q.getDerivedStateFromProps&&(t=q.getDerivedStateFromProps(F.props,t));g.props=
F.props;g.state=t;Y=function(){var Q=g;nI.beforeRender(Q);var e=Q.render(Q.props);nI.afterRender(Q,e);e?(Q.props.idomKey&&(e.props.idomKey=Q.props.idomKey),Q=e):Q=void 0;if(e=Q)if(e.__open=F.__open,Q=uR(e),F.__open=e.__open,!q.TAG_NAME)if(Q)q.TAG_NAME=Q.tagName.toLowerCase(),Q.__instance=g,g.el=Q;else{var r;if((r=g.hooks)==null?0:r.length){var N;(N=l5.handleError)==null||N.call.apply(N,[l5].concat(_.mZ(b5(Error("ld")))))}}g.didPatch();nI.didPatch(g)};
(t=g.functionComponent)?LHf(t,Y,g.props.debugInstance):Y()}};
XZu=function(F){var q=F.type;if(!qoP(q)||q===tg||q.componentType===_.Wj)return!1;F.props.children=F.children.length>1?F.children:F.children[0];var t,u=(t=F.props.idomKey)!=null?t:F.type,J;if(Lq()&&((J=Lq()[r2])==null?void 0:J.key)===u){var g=Lq(),Y=g[r2];if(!Y)throw Error("dc`"+g.tagName);var Q;(Q=Y.updateSignalsFromIdomProps)==null||Q.call(Y,F.props);Q4f(Y);return!0}if(euP.has(q.name))throw Q=q.name,q=(Y=(g=DV)==null?void 0:g.name)!=null?Y:"unknown",Error("cc`"+Q+"`"+q);AJo(F.type,F.props,F.children);
F.props.renderedFromIdom=!0;(Q=LHf(F.type,function(){return z_3(F.type,F.props)},F.props.debugInstance))&&Zwt(Q);
return!0};
Ru3=function(F){for(var q=0;q<kI(F).length;q++)jt()};
Q4f=function(F){var q=rit();if(q)Ru3(q);else for(var t=0;t<F.numNodes;t++)(q=rit())?Ru3(q):jt()};
rit=function(){var F;return(F=Lq()[r2])==null?void 0:F.sourceDynamicRange};
Zwt=function(F){F=fSv(F);F=Array.isArray(F)?F:[F];F=_.X(F);for(var q=F.next();!q.done;q=F.next())Bj.insertBefore(q.value,Lq()),jt()};
sT=function(F,q){var t=tO,u=function(J){$R(t,function(){q(J)})};
window.addEventListener(F,u,void 0);_.vj(function(){window.removeEventListener(F,u,void 0)})};
_.lR=function(F){var q=tO;return function(t){var u,J=(u=F.observer)!=null?u:_.sV().resolve(gZ);u=NIC(t);var g=[];F.showOption&&g.push(J.observe(t,function(){$R(q,function(){F.visibilityCallback(!0,t)})},F.showOption));
F.hideOption&&g.push(J.observe(t,function(){$R(q,function(){F.visibilityCallback(!1,t)})},F.hideOption));
F.prescanOption&&F.prescanCallback&&g.push(J.observe(t,function(){$R(q,function(){F.prescanCallback()})},F.prescanOption));
var Y;u.visibilityMonitorKeys=((Y=u.visibilityMonitorKeys)!=null?Y:[]).concat(g)}};
NIC=function(F){var q;return(q=F.polymerController)!=null?q:F};
Eiy=function(F,q){var t=wZ_;return _.Z(_.ln,null,zEt(l5.enableLazyTsx,function(){return _.Z(iw$,{id:t,value:F,children:q})},function(){var u=kJA(t,F);
gP(u);u=_.u5(u);try{return q()}finally{_.u5(u)}}))};
iw$=function(F){var q=F.children;F=kJA(F.id,F.value);gP(F);F=_.u5(F);try{return _.Z(_.ln,null,zn(q()))}finally{_.u5(F)}};
kJA=function(F,q){return Object.assign(Object.create(zuu),{id:F,contextValue:q})};
oiu=function(F){var q,t=tO;_.m1(function(){var u=_.u5(t),J=Xb(!q);try{if(q)_.Jiy(q,F.children(),!0);else if(q=zn(F.children()),!(q instanceof Element))throw Error("md");}finally{Xb(J),_.u5(u)}});
return q};
_.ni3=function(F,q){var t;q=Iv(function(){var u=Xb(!0);M3++;try{t=kI(F()),Gy(!1)}catch(J){throw Gy(!0),J;}finally{Xb(u)}},q===void 0?!1:q);
return[t,q]};
TIq=function(F){var q=new Mx$;q.abort(F);return q.signal};
GJA=function(){if(this.aborted){var F;throw(F=this.reason)!=null?F:new DOMException("signal is aborted without reason","AbortError");}};
Owf=function(F){var q=new Mx$;F=_.X(F);for(var t=F.next();!t.done;t=F.next())if(t=t.value,t.aborted){q.abort(t.reason);break}else DRy.set(q.signal,q),WTq.add(t,q.signal);return q.signal};
PB$=function(){for(var F=_.X(WTq.get(this)),q=F.next();!q.done;q=F.next())DRy.get(q.value).abort(this.reason)};
xR$=function(F){var q=new Mx$;setTimeout(function(){q.abort(new DOMException("signal timed out","TimeoutError"))},F);
return q.signal};
vif=function(F){F=F.buf.charCodeAt(F.pos++);return Aif[F]};
XG=function(F){var q=0,t=0;do{var u=vif(F);q|=(u&31)<<t;t+=5}while(u&32);return q<0?q+4294967296:q};
Hwt=function(){var F=!0;F=F===void 0?!1:F;var q=q===void 0?!1:q;var t=t===void 0?{}:t;var u=t.cssRowKey||"",J=t.combinedSignature||"";!u&&window&&window._F_cssRowKey&&(u=window._F_cssRowKey,!J&&window._F_combinedSignature&&(J=window._F_combinedSignature));if(u&&typeof window._F_installCss!=="function")throw Error("vd");var g=t.loaderClass||_.YF,Y=dEP("base-js");F=new g(RPo(UEM("",Y)),u,J,F,q);q=t.useCors||Y&&Y.hasAttribute("crossorigin");Y=t.corsMode||Y&&Y.getAttribute("crossorigin");q&&(F.useCors_=
q);Y&&(F.corsMode_=Y);t.urlMaxLength&&(F.urlMaxLength=t.urlMaxLength);t.fetchPriority&&(F.fetchPriority=t.fetchPriority);var Q=Hd();Q.JSC$10046_loader_=F;Q.setBatchModeEnabled(!0);_.IMP=function(e){return Promise.resolve(Q.load(e))}};
bw_=function(F,q,t){mRf(F,q);F[q][$Ro].unshift(t)};
mRf=function(F,q){if(!F[q]||!F[q][$Ro]){var t=F[q],u=t?[t]:[];F[q]=function(){for(var J=_.X(u),g=J.next();!g.done;g=J.next())g.value.apply(this,arguments)};
F[q][$Ro]=u}};
yi3=function(F){if(!F)return[];var q=[];F=_.X(F);for(var t=F.next();!t.done;t=F.next())t=t.value,Array.isArray(t)?q.push.apply(q,_.mZ(yi3(t))):q.push(t);return q};
_.Qn=function(F,q){if(F&&CB$.test(F)||F==="//")return F;if(dRC===void 0){dRC=!1;try{var t=new URL("b","http://a");t.pathname="c%20d";dRC=t.href==="http://a/c%20d"}catch(u){}}q||(q=document.baseURI||window.location.href);if(dRC)try{return(new URL(F,q)).href}catch(u){return F}pW||(pW=document.implementation.createHTMLDocument("temp"),pW.base=pW.createElement("base"),pW.head.appendChild(pW.base),pW.anchor=pW.createElement("a"),pW.body.appendChild(pW.anchor));pW.base.href=q;pW.anchor.href=F;return pW.anchor.href||
F};
URy=function(F,q){return F.replace(Vxt,function(t,u,J,g){return u+"'"+_.Qn(J.replace(/["']/g,""),q)+"'"+g})};
So$=function(F){return F.substring(0,F.lastIndexOf("/")+1)};
BIC=function(){huM=!1;for(var F=eM.length,q=0;q<F;q++){var t=eM[q];if(t)try{t()}catch(u){setTimeout(function(){throw u;})}}eM.splice(0,F);
KTA+=F};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(F){console.log("["+F.is+"]: registered")};
fMv=function(F){LTt.push(F)};
ZS=function(F){return aMW[F]||(aMW[F]=F.indexOf("-")<0?F:F.replace(j4y,function(q){return q[1].toUpperCase()}))};
R0=function(F){return aMW[F]||(aMW[F]=F.replace(ciW,"-$1").toLowerCase())};
F4t=function(F,q){var t=q.parentInfo&&F4t(F,q.parentInfo);if(t)for(F=t.firstChild,t=0;F;F=F.nextSibling){if(q.parentIndex===t++)return F}else return F};
qLM=function(F,q){F=F._methodHost||F;return function(t){if(F[q])F[q](t,t.detail);else console.warn("listener method `"+q+"` not defined")}};
rZ=function(F){return F.indexOf(".")>=0};
NL=function(F){var q=F.indexOf(".");return q===-1?F:F.slice(0,q)};
tNC=function(F,q){return F.indexOf(q+".")===0};
wZ=function(F,q){return q.indexOf(F+".")===0};
iR=function(F,q,t){return q+t.slice(F.length)};
u9W=function(F,q){return F===q||tNC(F,q)||wZ(F,q)};
kF=function(F){if(Array.isArray(F)){for(var q=[],t=0;t<F.length;t++)for(var u=F[t].toString().split("."),J=0;J<u.length;J++)q.push(u[J]);return q.join(".")}return F};
JX$=function(F){return Array.isArray(F)?kF(F).split("."):F.toString().split(".")};
ET=function(F,q,t){q=JX$(q);for(var u=0;u<q.length;u++){if(!F)return;F=F[q[u]]}t&&(t.path=q.join("."));return F};
sLt=function(F,q,t){var u=JX$(q),J=u[u.length-1];if(u.length>1){for(q=0;q<u.length-1;q++)if(F=F[u[q]],!F)return;F[J]=t}else F[q]=t;return u.join(".")};
gfy=function(F,q,t){var u=F[q];if(!u)u=F[q]={};else if(!F.hasOwnProperty(q)&&(u=F[q]=Object.create(F[q]),t))for(var J in u)for(F=u[J],q=u[J]=Array(F.length),t=0;t<F.length;t++)q[t]=F[t];return u};
o0=function(F,q,t,u,J,g){if(q){var Y=!1,Q=zG++,e;for(e in t){var r=J?NL(e):e;if(r=q[r])for(var N=0,w=r.length,k=void 0;N<w&&(k=r[N]);N++)k.info&&k.info.lastRun===Q||J&&!le$(e,k.trigger)||(k.info&&(k.info.lastRun=Q),k.fn(F,e,t,u,k.info,J,g),Y=!0)}return Y}return!1};
le$=function(F,q){if(q){var t=q.name;return t==F||!(!q.structured||!tNC(t,F))||!(!q.wildcard||!wZ(t,F))}return!0};
XOt=function(F,q,t,u,J){q=typeof J.method==="string"?F[J.method]:J.method;t=J.property;q?q.call(F,F.__data[t],u[t]):J.dynamicFn||console.warn("observer method `"+J.method+"` not defined")};
YLC=function(F,q,t,u){t={value:t,queueProperty:!0};u&&(t.path=u);(0,_.nW)(F).dispatchEvent(new CustomEvent(q,{detail:t}))};
pOA=function(F,q,t,u,J,g){g=(u=(g?NL(q):q)!=q?q:null)?ET(F,u):F.__data[q];u&&g===void 0&&(g=t[q]);YLC(F,J.eventName,g,u)};
QLo=function(F,q,t,u,J){t=F.__data[q];ML&&(t=ML(t,J.attrName,"attribute",F));F._propertyToAttribute(q,J.attrName,t)};
ZZf=function(F){var q=F.constructor.__orderedComputedDeps;if(!q){q=new Map;for(var t=F.__computeEffects,u=eXy(F),J=u.counts,g=u.ready,Y=u.total;u=g.shift();)q.set(u,q.size),(u=t[u])&&u.forEach(function(Q){Q=Q.info.methodInfo;--Y;--J[Q]===0&&g.push(Q)});
Y!==0&&console.warn("Computed graph for "+F.localName+" incomplete; circular?");F.constructor.__orderedComputedDeps=q}return q};
eXy=function(F){var q=F.__computeInfo,t={};F=F.__computeEffects;var u=[],J=0,g;for(g in q){var Y=q[g];J+=t[g]=Y.args.filter(function(e){return!e.literal}).length+(Y.dynamicFn?1:0)}for(var Q in F)q[Q]||u.push(Q);
return{counts:t,ready:u,total:J}};
rX_=function(F,q,t,u,J){q=RXf(F,q,t,u,J);if(q===TG)return!1;J=J.methodInfo;if(F.__dataHasAccessor&&F.__dataHasAccessor[J])return F._setPendingProperty(J,q,!0);F[J]=q;return!1};
iZu=function(F,q,t,u,J,g,Y){t.bindings=t.bindings||[];u={kind:u,target:J,parts:g,literal:Y,isCompound:g.length!==1};t.bindings.push(u);u.target&&u.kind!="attribute"&&u.kind!="text"&&!u.isCompound&&u.parts[0].mode==="{"&&(t=u.parts[0],g=t.negate,u.listenerEvent=t.event||R0(J)+"-changed",u.listenerNegate=g);J=q.nodeInfoList.length;for(t=0;t<u.parts.length;t++){var Q=u.parts[t];Q.compoundIndex=t;g=F;Y=q;var e=u,r=Q,N=J;if(!r.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+
e.target+' because "-" is not a valid attribute starting character');else for(Q=r.dependencies,e={index:N,binding:e,part:r,evaluator:g},r=0;r<Q.length;r++)N=Q[r],typeof N=="string"&&(N=Nm3(N),N.wildcard=!0),g._addTemplatePropertyEffect(Y,N.rootProperty,{fn:wOy,info:e,trigger:N})}};
wOy=function(F,q,t,u,J,g,Y){Y=Y[J.index];var Q=J.binding,e=J.part;g&&e.source&&q.length>e.source.length&&Q.kind=="property"&&!Q.isCompound&&Y.__isPropertyEffectsClient&&Y.__dataHasAccessor&&Y.__dataHasAccessor[Q.target]?(t=t[q],q=iR(e.source,Q.target,q),Y._setPendingPropertyOrPath(q,t,!1,!0)&&F._enqueueClient(Y)):(q=J.evaluator._evaluateBinding(F,e,q,t,u,g),q!==TG&&(Q.isCompound&&(t=Y.__dataCompoundStorage[Q.target],t[e.compoundIndex]=q,q=t.join("")),Q.kind==="attribute"||Q.target!=="textContent"&&
(Q.target!=="value"||Y.localName!=="input"&&Y.localName!=="textarea")||(q=q==void 0?"":q),e=q,ML&&(e=ML(e,Q.target,Q.kind,Y)),Q.kind=="attribute"?F._valueToNodeAttribute(Y,e,Q.target):(Q=Q.target,Y.__isPropertyEffectsClient&&Y.__dataHasAccessor&&Y.__dataHasAccessor[Q]?Y.__readOnly&&Y.__readOnly[Q]||Y._setPendingProperty(Q,e)&&F._enqueueClient(Y):F._setUnmanagedPropertyToNode(Y,Q,e))))};
kxq=function(F,q,t){if(t.listenerEvent){var u=t.parts[0];F.addEventListener(t.listenerEvent,function(J){var g=t.target,Y=u.source,Q=u.negate,e=J.detail,r=e&&e.path;r?(Y=iR(g,Y,r),J=e&&e.value):J=J.currentTarget[g];q.__readOnly&&q.__readOnly[Y]||!q._setPendingPropertyOrPath(Y,Q?!J:J,!0,!!r)||e&&e.queueProperty||q._invalidateProperties()})}};
EfM=function(F,q,t,u,J,g){g=q.static||g&&(typeof g!=="object"||g[q.methodName]);J={methodName:q.methodName,args:q.args,methodInfo:J,dynamicFn:g};for(var Y=0,Q=void 0;Y<q.args.length&&(Q=q.args[Y]);Y++)Q.literal||F._addPropertyEffect(Q.rootProperty,t,{fn:u,info:J,trigger:Q});g&&F._addPropertyEffect(q.methodName,t,{fn:u,info:J});return J};
RXf=function(F,q,t,u,J){u=F._methodHost||F;var g=u[J.methodName];if(g)return F=F._marshalArgs(J.args,q,t),F===TG?TG:g.apply(u,F);J.dynamicFn||console.warn("method `"+J.methodName+"` not defined")};
zXq=function(F){for(var q="",t=0;t<F.length;t++)q+=F[t].literal||"";return q};
MNA=function(F){if(F=F.match(/([^\s]+?)\(([\s\S]*)\)/)){var q={methodName:F[1],static:!0,args:of$};return F[2].trim()?nfu(F[2].replace(/\\,/g,"&comma;").split(","),q):q}return null};
nfu=function(F,q){q.args=F.map(function(t){t=Nm3(t);t.literal||(q.static=!1);return t},this);
return q};
Nm3=function(F){F=F.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var q={name:F,value:"",literal:!1},t=F[0];t==="-"&&(t=F[1]);t>="0"&&t<="9"&&(t="#");switch(t){case "'":case '"':q.value=F.slice(1,-1);q.literal=!0;break;case "#":q.value=Number(F),q.literal=!0}q.literal||(q.rootProperty=NL(F),q.structured=rZ(F),q.structured&&(q.wildcard=F.slice(-2)==".*",q.wildcard&&(q.name=F.slice(0,-2))));return q};
Tmf=function(F,q,t){F=ET(F,t);F===void 0&&(F=q[t]);return F};
Gx3=function(F,q,t,u){u={indexSplices:u};GG&&!F._overrideLegacyUndefined&&(q.splices=u);F.notifyPath(t+".splices",u);F.notifyPath(t+".length",q.length);GG&&!F._overrideLegacyUndefined&&(u.indexSplices=[])};
DS=function(F,q,t,u,J,g){Gx3(F,q,t,[{index:u,addedCount:J,removed:g,object:q,type:"splice"}])};
DFu=function(F){F=URy((F.body?F.body:F).textContent,F.baseURI);var q=document.createElement("style");q.textContent=F;return q};
OZC=function(F){F=F.trim().split(/\s+/);for(var q=[],t=0;t<F.length;t++)q.push.apply(q,_.mZ(W4W(F[t])));return q};
W4W=function(F){var q=WU.import(F);if(!q)return console.warn("Could not find style data in module named",F),[];if(q._styles===void 0){F=[];F.push.apply(F,_.mZ(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q)));var t=q.querySelector("template");t&&F.push.apply(F,_.mZ(PZq(t,q.assetpath)));q._styles=F}return q._styles};
PZq=function(F,q){if(!F._styles){for(var t=[],u=F.content.querySelectorAll("style"),J=0;J<u.length;J++){var g=u[J],Y=g.getAttribute("include");Y&&t.push.apply(t,_.mZ(OZC(Y).filter(function(Q,e,r){return r.indexOf(Q)===e})));
q&&(g.textContent=URy(g.textContent,q));t.push(g)}F._styles=t}return F._styles};
xFu=function(F){return(F=WU.import(F))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(F):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(F){var q=[];F=F.querySelectorAll("link[rel=import][type~=css]");for(var t=0;t<F.length;t++){var u=F[t];if(u.import){var J=u.import;if((u=u.hasAttribute("shady-unscoped"))&&!J._unscopedStyle){var g=DFu(J);g.setAttribute("shady-unscoped","");J._unscopedStyle=g}else J._style||(J._style=DFu(J));q.push(u?J._unscopedStyle:J._style)}}return q};
vf3=function(F){F=F.trim().split(/\s+/);for(var q="",t=0;t<F.length;t++)q+=AXu(F[t]);return q};
AXu=function(F){var q=WU.import(F);if(q&&q._cssText===void 0){var t=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q),u=q.querySelector("template");u&&(t+=IeM(u,q.assetpath));q._cssText=t||null}q||console.warn("Could not find style data in module named",F);return q&&q._cssText||""};
IeM=function(F,q){var t="";F=PZq(F,q);for(q=0;q<F.length;q++){var u=F[q];u.parentNode&&u.parentNode.removeChild(u);t+=u.textContent}return t};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(F){var q="";F=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(F);for(var t=0;t<F.length;t++)q+=F[t].textContent;return q};
PU=function(F,q){return{index:F,removed:[],addedCount:q}};
mFf=function(F,q,t,u){var J=0,g=0,Y=0,Q=0,e=Math.min(q-J,u-g);if(J==0&&g==0)a:{for(Y=0;Y<e;Y++)if(F[Y]!==t[Y])break a;Y=e}if(q==F.length&&u==t.length){Q=F.length;for(var r=t.length,N=0;N<e-Y&&HZq(F[--Q],t[--r]);)N++;Q=N}J+=Y;g+=Y;q-=Q;u-=Q;if(q-J==0&&u-g==0)return[];if(J==q){for(q=PU(J,0);g<u;)q.removed.push(t[g++]);return[q]}if(g==u)return[PU(J,q-J)];e=J;Y=g;u=u-Y+1;Q=q-e+1;q=Array(u);for(r=0;r<u;r++)q[r]=Array(Q),q[r][0]=r;for(r=0;r<Q;r++)q[0][r]=r;for(r=1;r<u;r++)for(N=1;N<Q;N++)if(F[e+N-1]===
t[Y+r-1])q[r][N]=q[r-1][N-1];else{var w=q[r-1][N]+1,k=q[r][N-1]+1;q[r][N]=w<k?w:k}e=q.length-1;Y=q[0].length-1;u=q[e][Y];for(F=[];e>0||Y>0;)e==0?(F.push(2),Y--):Y==0?(F.push(3),e--):(Q=q[e-1][Y-1],r=q[e-1][Y],N=q[e][Y-1],w=r<N?r<Q?r:Q:N<Q?N:Q,w==Q?(Q==u?F.push(0):(F.push(1),u=Q),e--,Y--):w==r?(F.push(3),e--,u=r):(F.push(2),Y--,u=N));F.reverse();q=void 0;e=[];for(Y=0;Y<F.length;Y++)switch(F[Y]){case 0:q&&(e.push(q),q=void 0);J++;g++;break;case 1:q||(q=PU(J,0));q.addedCount++;J++;q.removed.push(t[g]);
g++;break;case 2:q||(q=PU(J,0));q.addedCount++;J++;break;case 3:q||(q=PU(J,0)),q.removed.push(t[g]),g++}q&&e.push(q);return e};
$FP=function(F,q){return mFf(F,F.length,q,q.length)};
HZq=function(F,q){return F===q};
yXo=function(F){if(F instanceof bZM)return F.value;throw Error("Dd`"+F);};
CZq=function(F,q){for(var t in q)t===null?F.style.removeProperty(t):F.style.setProperty(t,q[t])};
dFC=function(F,q){return(F=window.getComputedStyle(F).getPropertyValue(q))?F.trim():""};
hXM=function(F){requestAnimationFrame(function(){VNy?VNy(F):(UFq||(UFq=new Promise(function(q){SLC=q}),document.readyState==="complete"?SLC():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&SLC()})),UFq.then(function(){F&&F()}))})};
L4y=function(F){K4o=F&&F.shimcssproperties?!1:BmC||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
Fct=function(F){if(!(fet.indexOf(F)>-1)&&F!=="touchend"&&aeq&&jLC&&cX_)return{passive:!0}};
Jao=function(F){for(var q=qaW?["click"]:fet,t=0,u;t<q.length;t++)u=q[t],F?(tso.length=0,document.addEventListener(u,urC,!0)):document.removeEventListener(u,urC,!0)};
xF=function(F){var q=F.type;return fet.indexOf(q)>-1?q==="mousemove"?(q=F.buttons===void 0?1:F.buttons,F instanceof window.MouseEvent&&!sCq&&(q=gBf[F.which]||0),!!(q&1)):(F.button===void 0?0:F.button)===0:!1};
lfP=function(F){if(F.type==="click"){if(F.detail===0)return!0;var q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F);if(!q.nodeType||q.nodeType!==Node.ELEMENT_NODE)return!0;q=q.getBoundingClientRect();var t=F.pageX;F=F.pageY;return!(t>=q.left&&t<=q.right&&F>=q.top&&F<=q.bottom)}return!1};
Xio=function(F,q,t){F.movefn=q;F.upfn=t;document.addEventListener("mousemove",q);document.addEventListener("mouseup",t)};
Ag=function(F){document.removeEventListener("mousemove",F.movefn);document.removeEventListener("mouseup",F.upfn);F.movefn=null;F.upfn=null};
YaW=function(F,q){for(var t=document.elementFromPoint(F,q),u=t;u&&u.shadowRoot&&!window.ShadyDOM;){var J=u;u=u.shadowRoot.elementFromPoint(F,q);if(J===u)break;u&&(t=u)}return t};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F){var q=piy(F);return q.length>0?q[0]:F.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F){var q=F.type,t=F.currentTarget.__polymerGestures;if(t&&(t=t[q])){if(!F.__polymerGesturesHandled&&(F.__polymerGesturesHandled={},q.slice(0,5)==="touch")){var u=F.changedTouches[0];q==="touchstart"&&F.touches.length===1&&(QCA=u.identifier);if(QCA!==u.identifier)return;aeq||(q==="touchstart"||q==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F)}u=
F.__polymerGesturesHandled;if(!u.skip){for(var J=0,g;J<vU.length;J++)g=vU[J],t[g.name]&&!u[g.name]&&g.flow&&g.flow.start.indexOf(F.type)>-1&&g.reset&&g.reset();for(J=0;J<vU.length;J++)g=vU[J],t[g.name]&&!u[g.name]&&(u[g.name]=!0,g[q](F))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F){var q=F.changedTouches[0],t=F.type;if(t==="touchstart")etP=q.clientX,Z4u=q.clientY,Rtq=!1;else if(t==="touchmove"&&!Rtq){Rtq=!0;t="auto";for(var u=piy(F),J=0,g;J<u.length;J++)if(g=u[J],g.__polymerGesturesTouchAction){t=g.__polymerGesturesTouchAction;break}u=!1;J=Math.abs(etP-q.clientX);q=Math.abs(Z4u-q.clientY);F.cancelable&&(t==="none"?u=!0:t==="pan-x"?u=q>J:t==="pan-y"&&(u=J>q));u?F.preventDefault():
I0("track")}};
m0=function(F,q,t){return HU[q]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F,q,t),!0):!1};
yn=function(F,q,t){return HU[q]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F,q,t),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F,q,t){var u=HU[q],J=u.deps,g=u.name,Y=F.__polymerGestures;Y||(F.__polymerGestures=Y={});for(var Q=0,e,r;Q<J.length;Q++)e=J[Q],qaW&&fet.indexOf(e)>-1&&e!=="click"||((r=Y[e])||(Y[e]=r={_count:0}),r._count===0&&F.addEventListener(e,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Fct(e)),r[g]=(r[g]||0)+1,r._count=(r._count||0)+1);F.addEventListener(q,t);u.touchAction&&_.CW(F,u.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F,q,t){var u=HU[q],J=u.deps;u=u.name;var g=F.__polymerGestures;if(g)for(var Y=0,Q,e;Y<J.length;Y++)Q=J[Y],(e=g[Q])&&e[u]&&(e[u]=(e[u]||1)-1,e._count=(e._count||1)-1,e._count===0&&F.removeEventListener(Q,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Fct(Q)));F.removeEventListener(q,t)};
raW=function(F){vU.push(F);for(var q=0;q<F.emits.length;q++)HU[F.emits[q]]=F};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F){for(var q=0,t;q<vU.length;q++){t=vU[q];for(var u=0,J;u<t.emits.length;u++)if(J=t.emits[u],J===F)return t}return null};
_.CW=function(F,q){aeq&&F instanceof HTMLElement&&dZ.run(function(){F.style.touchAction=q});
F.__polymerGesturesTouchAction=q};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F,q,t){q=new Event(q,{bubbles:!0,cancelable:!0,composed:!0});q.detail=t;(0,_.nW)(F).dispatchEvent(q);q.defaultPrevented&&(F=t.preventer||t.sourceEvent)&&F.preventDefault&&F.preventDefault()};
I0=function(F){F=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F);F.info&&(F.info.prevent=!0)};
Vn=function(F,q,t,u){q&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,F,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:u,prevent:function(J){return I0(J)}})};
Nd$=function(F,q,t){if(F.prevent)return!1;if(F.started)return!0;t=Math.abs(F.y-t);return Math.abs(F.x-q)>=5||t>=5};
wiP=function(F,q,t){if(q){var u=F.moves[F.moves.length-2],J=F.moves[F.moves.length-1],g=J.x-F.x,Y=J.y-F.y,Q=0;if(u){var e=J.x-u.x;Q=J.y-u.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,"track",{state:F.state,x:t.clientX,y:t.clientY,dx:g,dy:Y,ddx:e,ddy:Q,sourceEvent:t,hover:function(){return YaW(t.clientX,t.clientY)}})}};
k3f=function(F,q,t){var u=Math.abs(q.clientX-F.x),J=Math.abs(q.clientY-F.y),g=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t||q);!g||i4W[g.localName]&&g.hasAttribute("disabled")||!(isNaN(u)||isNaN(J)||u<=25&&J<=25||lfP(q))||F.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,"tap",{x:q.clientX,y:q.clientY,sourceEvent:q,preventer:t})};
EB_=function(F,q,t,u,J){var g;J&&(g=typeof t==="object"&&t!==null)&&(u=F.__dataTemp[q]);u=u!==t&&(u===u||t===t);g&&u&&(F.__dataTemp[q]=t);return u};
oBf=function(){if(UT&&!SM){if(!ztu){ztu=!0;var F=document.createElement("style");F.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(F)}return!0}return!1};
Ms_=function(){return nB_};
TdC=function(F,q){nB_=F;Object.setPrototypeOf(F,q.prototype);new q;nB_=null};
G3_=function(F,q){for(var t=0;t<q.length;t++){var u=q[t];if(!!F!=!!u.__hideTemplateChildren__)if(u.nodeType===Node.TEXT_NODE)F?(u.__polymerTextContent__=u.textContent,u.textContent=""):u.textContent=u.__polymerTextContent__;else if(u.localName==="slot")if(F)u.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.nW)((0,_.nW)(u).parentNode).replaceChild(u.__polymerReplaced__,u);else{var J=u.__polymerReplaced__;J&&(0,_.nW)((0,_.nW)(J).parentNode).replaceChild(u,J)}else u.style&&(F?(u.__polymerDisplay__=
u.style.display,u.style.display="none"):u.style.display=u.__polymerDisplay__);u.__hideTemplateChildren__=F;u._showHideChildren&&u._showHideChildren(F)}};
DJM=function(F){return(F=F.__dataHost)&&F._methodHost||F};
Ppv=function(F,q,t){var u=t.mutableData?Wcf:hg;KW.mixin&&(u=KW.mixin(u));var J=function(){return u.apply(this,arguments)||this};
_.M(J,u);J.prototype.__templatizeOptions=t;J.prototype._bindTemplate(F);O4_(J,F,q,t);return J};
H43=function(F,q,t,u){var J=t.forwardHostProp;if(J&&q.hasHostProps){var g=F.localName=="template",Y=q.templatizeTemplateClass;if(!Y){if(g){var Q=t.mutableData?xJt:AaP;Y=function(){return Q.apply(this,arguments)||this};
_.M(Y,Q);Y=q.templatizeTemplateClass=Y}else{var e=F.constructor;Y=function(){return e.apply(this,arguments)||this};
_.M(Y,e);Y=q.templatizeTemplateClass=Y}var r=q.hostProps,N;for(N in r)Y.prototype._addPropertyEffect("_host_"+N,Y.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:vBP(J)}),Y.prototype._createNotifyingProperty("_host_"+N);BU&&u&&IfW(q,t,u)}F.__dataProto&&Object.assign(F.__data,F.__dataProto);if(g)TdC(F,Y),F.__dataTemp={},F.__dataPending=null,F.__dataOld=null,F._enableProperties();else{Object.setPrototypeOf(F,Y.prototype);q=q.hostProps;for(var w in q)w="_host_"+w,w in F&&(q=F[w],delete F[w],F.__data[w]=
q)}}};
vBP=function(F){return function(q,t,u){F.call(q.__templatizeOwner,t.substring(6),u[t])}};
O4_=function(F,q,t,u){var J=t.hostProps||{},g;for(g in u.instanceProps){delete J[g];var Y=u.notifyInstanceProp;Y&&F.prototype._addPropertyEffect(g,F.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:mJt(Y)})}if(u.forwardHostProp&&q.__dataHost)for(var Q in J)t.hasHostProps||(t.hasHostProps=!0),F.prototype._addPropertyEffect(Q,F.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:$Jo()})};
mJt=function(F){return function(q,t,u){F.call(q.__templatizeOwner,q,t,u[t])}};
$Jo=function(){return function(F,q,t){F.__dataHost._setPendingPropertyOrPath("_host_"+q,t[q],!0,!0)}};
KW=function(F,q,t){if(LW&&!DJM(F))throw Error("Jd");t=t||{};if(F.__templatizeOwner)throw Error("Kd");F.__templatizeOwner=q;var u=(q?q.constructor:hg)._parseTemplate(F),J=u.templatizeInstanceClass;J||(J=Ppv(F,u,t),u.templatizeInstanceClass=J);var g=DJM(F);H43(F,u,t,g);t=function(){return J.apply(this,arguments)||this};
_.M(t,J);t.prototype._methodHost=g;t.prototype.__dataHost=F;t.prototype.__templatizeOwner=q;t.prototype.__hostProps=u.hostProps;return t};
IfW=function(F,q,t){t=t.constructor._properties;F=F.propertyEffects;q=q.instanceProps;for(var u in F)if(!(t[u]||q&&q[u]))for(var J=F[u],g=0;g<J.length;g++){var Y=J[g].info.part;if(!Y.signature||!Y.signature.static){console.warn("Property '"+u+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
b43=function(F,q){for(var t;q;)if(t=q.__dataHost?q:q.__templatizeInstance)if(t.__dataHost!=F)q=t.__dataHost;else return t;else q=(0,_.nW)(q).parentNode;return null};
fW=function(F){return F.localName==="slot"};
yaC=function(){for(var F=a0.prototype,q="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),t={},u=0;u<q.length;t={method$jscomp$33:void 0},u++)t.method$jscomp$33=q[u],F[t.method$jscomp$33]=function(J){return function(){return this.node[J.method$jscomp$33].apply(this.node,arguments)}}(t)};
Cpo=function(F,q){for(var t={},u=0;u<q.length;t={name$jscomp$448:void 0},u++)t.name$jscomp$448=q[u],Object.defineProperty(F,t.name$jscomp$448,{get:function(J){return function(){return this.node[J.name$jscomp$448]}}(t),
configurable:!0})};
dJW=function(){for(var F=a0.prototype,q=["textContent","innerHTML","className"],t={},u=0;u<q.length;t={name$jscomp$449:void 0},u++)t.name$jscomp$449=q[u],Object.defineProperty(F,t.name$jscomp$449,{get:function(J){return function(){return this.node[J.name$jscomp$449]}}(t),
set:function(J){return function(g){this.node[J.name$jscomp$449]=g}}(t),
configurable:!0})};
Vs_=function(){jM=document.documentElement.getAttribute("dir");jM=document.documentElement.getAttribute("dir");for(var F=0;F<cU.length;F++){var q=cU[F];q.__autoDirOptOut||q.setAttribute("dir",jM)}};
Kcq=function(){F5=!0;requestAnimationFrame(function(){F5=!1;UJA(Sao);setTimeout(function(){for(var F=0,q=qd.length;F<q;F++)hto(qd.shift())})})};
UJA=function(F){for(;F.length;)hto(F.shift())};
hto=function(F){var q=F[0],t=F[1];F=F[2];try{t.apply(q,F)}catch(u){setTimeout(function(){throw u;})}};
_.Bd3=function(F,q,t){F5||Kcq();Sao.push([F,q,t])};
_.tJ=function(F,q,t){F5||Kcq();qd.push([F,q,t])};
af3=function(F,q){q=q===void 0?!1:q;if(!Lc3||!ffW||!Lc3.handlesDynamicScoping)return null;var t=ffW.ScopingShim;if(!t)return null;var u=t.scopeForNode(F),J=(0,_.nW)(F).getRootNode(),g=function(Y){if((0,_.nW)(Y).getRootNode()===J){var Q=Array.from(Lc3.nativeMethods.querySelectorAll.call(Y,"*"));Q.push(Y);for(Y=0;Y<Q.length;Y++){var e=Q[Y];if((0,_.nW)(e).getRootNode()===J){var r=t.currentScopeForNode(e);r!==u&&(r!==""&&t.unscopeNode(e,r),t.scopeNode(e,u))}}}};
g(F);return q?(q=new MutationObserver(function(Y){for(var Q=0;Q<Y.length;Q++)for(var e=Y[Q],r=0;r<e.addedNodes.length;r++){var N=e.addedNodes[r];N.nodeType===Node.ELEMENT_NODE&&g(N)}}),q.observe(F,{childList:!0,
subtree:!0}),q):null};
jCq=function(){document.body.removeAttribute("unresolved")};
uhq=function(F){var q=F=F.replace(ca3,"").replace(FRA,""),t=new qNy;t.start=0;t.end=q.length;for(var u=t,J=0,g=q.length;J<g;J++)if(q[J]==="{"){u.rules||(u.rules=[]);var Y=u,Q=Y.rules[Y.rules.length-1]||null;u=new qNy;u.start=J+1;u.parent=Y;u.previous=Q;Y.rules.push(u)}else q[J]==="}"&&(u.end=J+1,u=u.parent||t);return tLu(t,F)};
tLu=function(F,q){var t=q.substring(F.start,F.end-1);F.parsedCssText=F.cssText=t.trim();F.parent&&(t=q.substring(F.previous?F.previous.end:F.parent.start,F.start-1),t=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(t),t=t.replace(J$W," "),t=t.substring(t.lastIndexOf(";")+1),t=F.parsedSelector=F.selector=t.trim(),F.atRule=t.indexOf("@")===0,F.atRule?t.indexOf("@media")===0?F.type=4:t.match(s8f)&&(F.type=7,F.keyframesName=F.selector.split(J$W).pop()):t.indexOf("--")===
0?F.type=1E3:F.type=1);if(t=F.rules)for(var u=0,J=t.length,g=void 0;u<J&&(g=t[u]);u++)tLu(g,q);return F};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(F){return F.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var q=arguments[1],t=6-q.length;t--;)q="0"+q;return"\\"+q})};
gVq=function(F,q,t){t=t===void 0?"":t;var u="";if(F.cssText||F.rules){var J=F.rules;if(J&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(J))for(var g=0,Y=J.length,Q=void 0;g<Y&&(Q=J[g]);g++)u=gVq(Q,q,u);else q?q=F.cssText:(q=F.cssText,q=q.replace(lHq,"").replace(Xkt,""),q=q.replace(YNy,"").replace(pkq,"")),(u=q.trim())&&(u="  "+u+"\n")}u&&(F.selector&&(t+=F.selector+" {\n"),t+=u,F.selector&&(t+="}\n\n"));return t};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(F){F=F[0];return!!F&&!!F.selector&&F.selector.indexOf("--")===0};
eKo=function(F){if(F=Q8u[F])F._applyShimCurrentVersion=F._applyShimCurrentVersion||0,F._applyShimValidatingVersion=F._applyShimValidatingVersion||0,F._applyShimNextVersion=(F._applyShimNextVersion||0)+1};
ZRu=function(F){return F._applyShimCurrentVersion===F._applyShimNextVersion};
r$u=function(F){F._applyShimValidatingVersion=F._applyShimNextVersion;F._validating||(F._validating=!0,RKM.then(function(){F._applyShimCurrentVersion=F._applyShimNextVersion;F._validating=!1}))};
wk3=function(F){if(!F)return"";typeof F==="string"&&(F=uhq(F));return gVq(F,N1t)};
iRy=function(F){!F.__cssRules&&F.textContent&&(F.__cssRules=uhq(F.textContent));return F.__cssRules||null};
EVt=function(F,q,t,u){if(F){var J=!1,g=F.type;if(u&&g===4){var Y=F.selector.match(kb3);Y&&(window.matchMedia(Y[1]).matches||(J=!0))}g===1?q(F):t&&g===7?t(F):g===1E3&&(J=!0);if((F=F.rules)&&!J)for(J=0,g=F.length,Y=void 0;J<g&&(Y=F[J]);J++)EVt(Y,q,t,u)}};
zKt=function(F,q){var t=F.indexOf("var(");if(t===-1)return q(F,"","","");a:{var u=0;var J=t+3;for(var g=F.length;J<g;J++)if(F[J]==="(")u++;else if(F[J]===")"&&--u===0)break a;J=-1}u=F.substring(t+4,J);t=F.substring(0,t);F=zKt(F.substring(J+1),q);g=u.indexOf(",");if(g===-1)return q(t,u.trim(),"",F);J=u.substring(0,g).trim();u=u.substring(g+1).trim();return q(t,J,u,F)};
oVP=function(F){if(u7!==void 0)return u7;if(F.__cssBuild===void 0){var q=F.getAttribute("css-build");if(q)F.__cssBuild=q;else{a:{q=F.localName==="template"?F.content.firstChild:F.firstChild;if(q instanceof Comment&&(q=q.textContent.trim().split(":"),q[0]==="css-build")){q=q[1];break a}q=""}if(q!==""){var t=F.localName==="template"?F.content.firstChild:F.firstChild;t.parentNode.removeChild(t)}F.__cssBuild=q}}return F.__cssBuild||""};
MLt=function(F,q,t,u){for(var J=q._noAccessors,g=Object.getOwnPropertyNames(q),Y=0;Y<g.length;Y++){var Q=g[Y];if(!(Q in u))if(J)F[Q]=q[Q];else{var e=Object.getOwnPropertyDescriptor(q,Q);e&&(e.configurable=!0,Object.defineProperty(F,Q,e))}}for(var r in nVf)q[r]&&(t[r]=t[r]||[],t[r].push(q[r]))};
T1y=function(F,q,t){q=q||[];for(var u=F.length-1;u>=0;u--){var J=F[u];J?Array.isArray(J)?T1y(J,q):q.indexOf(J)<0&&(!t||t.indexOf(J)<0)&&q.unshift(J):console.warn("behavior is null, check for missing or 404 import")}return q};
Gbo=function(F,q){for(var t in q){var u=F[t],J=q[t];F[t]=!("value"in J)&&u&&"value"in u?Object.assign({value:u.value},J):J}};
ORW=function(F,q,t){var u={},J=function(){return q.apply(this,arguments)||this};
_.M(J,q);J._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(Y)for(var e=0,r;e<Y.length;e++)r=Y[e],r.properties&&this.createProperties(r.properties),r.observers&&this.createObservers(r.observers,r.properties);F.properties&&this.createProperties(F.properties);F.observers&&this.createObservers(F.observers,F.properties);this._prepareTemplate()}else q._finalizeClass.call(this)};
J.prototype.created=function(){q.prototype.created.call(this);var e=u.created;if(e)for(var r=0;r<e.length;r++)e[r].call(this)};
J.prototype._registered=function(){var e=J.prototype;if(!e.hasOwnProperty("__hasRegisterFinished")){e.__hasRegisterFinished=!0;q.prototype._registered.call(this);UT&&Q(e);e=Object.getPrototypeOf(this);var r=u.beforeRegister;if(r)for(var N=0;N<r.length;N++)r[N].call(e);if(r=u.registered)for(N=0;N<r.length;N++)r[N].call(e)}};
J.prototype._applyListeners=function(){q.prototype._applyListeners.call(this);var e=u.listeners;if(e)for(var r=0;r<e.length;r++){var N=e[r];if(N)for(var w in N)this._addMethodEventListenerToNode(this,w,N[w])}};
J.prototype._ensureAttributes=function(){var e=u.hostAttributes;if(e)for(var r=e.length-1;r>=0;r--){var N=e[r],w;for(w in N)this._ensureAttribute(w,N[w])}q.prototype._ensureAttributes.call(this)};
J.prototype.ready=function(){q.prototype.ready.call(this);var e=u.ready;if(e)for(var r=0;r<e.length;r++)e[r].call(this)};
J.prototype.attached=function(){q.prototype.attached.call(this);var e=u.attached;if(e)for(var r=0;r<e.length;r++)e[r].call(this)};
J.prototype.detached=function(){q.prototype.detached.call(this);var e=u.detached;if(e)for(var r=0;r<e.length;r++)e[r].call(this)};
J.prototype.attributeChanged=function(e,r,N){q.prototype.attributeChanged.call(this);var w=u.attributeChanged;if(w)for(var k=0;k<w.length;k++)w[k].call(this,e,r,N)};
_.JJ.Object.defineProperties(J,{properties:{configurable:!0,enumerable:!0,get:function(){var e={};if(Y)for(var r=0;r<Y.length;r++)Gbo(e,Y[r].properties);Gbo(e,F.properties);return e}},
observers:{configurable:!0,enumerable:!0,get:function(){var e=[];if(Y)for(var r=0,N;r<Y.length;r++)N=Y[r],N.observers&&(e=e.concat(N.observers));F.observers&&(e=e.concat(F.observers));return e}}});
if(t){Array.isArray(t)||(t=[t]);var g=q.prototype.behaviors;var Y=T1y(t,null,g);J.prototype.behaviors=g?g.concat(t):Y}var Q=function(e){if(Y)for(var r=Y,N=0;N<r.length;N++)MLt(e,r[N],u,Dt_);MLt(e,F,u,WRu)};
UT||Q(J.prototype);J.generatedFrom=F;return J};
vVP=function(F){var q=typeof F!=="string"?F:{is:F,notifyObserversOnUndefined:!0};q.fastInit===void 0&&(q.fastInit=!0);return function(t){if(!q.disableInheritanceCheck&&Object.getPrototypeOf(t.prototype).constructor!==_.se)throw Error("Od");var u=t.prototype;u.is=q.is;bw_(u,"created",function(){this.hostElement=this;this.polymerController=this});
PXM(u,t,q.fastInit);q.notifyObserversOnUndefined&&(u._overrideLegacyUndefined=!0);if(xto)for(var J=_.X(Object.getOwnPropertyNames(u)),g=J.next();!g.done;g=J.next()){g=g.value;var Y=Object.getOwnPropertyDescriptor(u,g);Y.enumerable===!1&&(Y.enumerable=!0,Object.defineProperty(u,g,Y))}if("template"in t)var Q=function(){return t.template};
else q.template!==void 0&&(Q=q.template);if(Q!==void 0){var e;Object.defineProperty(u,"_template",{get:function(){e===void 0&&(e=Q());return e},
set:function(r){e=r},
configurable:!0,enumerable:!0})}Polymer(u);t[A$A]=u}};
IHo=function(F){F=F===void 0?{}:F;F.fastInit===void 0&&(F.fastInit=!0);return function(q){if(!F.disableInheritanceCheck&&Object.getPrototypeOf(q.prototype).constructor!==gQ)throw Error("Pd");PXM(q.prototype,q,F.fastInit)}};
PXM=function(F,q,t){t=t===void 0?!1:t;HRf(q);t?bw_(F,"created",function(){this.disableEnforceFastDefaultValuesCheck||mtu(q,this)}):bw_(F,"ready",function(){for(var u={},J=_.X(yi3(this.behaviors)),g=J.next();!g.done;g=J.next())g=g.value,g.properties&&Object.assign(u,$to(this,g.properties));
Object.assign(u,$to(this,this.properties));mtu(q,this);J=_.X(Object.keys(u));for(g=J.next();!g.done;g=J.next())g=g.value,this[g]=u[g]})};
mtu=function(F,q){if(xto){F=new F;for(var t=_.X(Object.getOwnPropertyNames(F)),u=t.next();!u.done;u=t.next())u=u.value,q[u]=F[u];for(t=q;t&&t!==Object.prototype;t=Object.getPrototypeOf(t)){u=_.X(Object.getOwnPropertyNames(t));for(var J=u.next();!J.done;J=u.next())J=J.value,F.hasOwnProperty(J)||Object.defineProperty(F,J,bRM(q,J))}}else F.apply(q)};
bRM=function(F,q){return{get:function(){var t=F[q];return t instanceof Function?t.bind(F):t},
set:function(t){F[q]=t}}};
$to=function(F,q){if(!q)return{};for(var t={},u=_.X(Object.keys(q)),J=u.next();!J.done;J=u.next())if(J=J.value,!q[J].readOnly){var g=F[J];g!==void 0&&(t[J]=g)}return t};
HRf=function(F){var q=new F;F=F.prototype.properties||{};for(var t=_.X(Object.keys(F)),u=t.next();!u.done;u=t.next())if(u=u.value,q.hasOwnProperty(u)){var J=F[u];typeof J==="function"&&(F[u]=J={type:J});q[u]!=null&&J.type===Object&&(J.type=y$C(q[u].constructor))}};
y$C=function(F){for(var q=_.X(CXq),t=q.next();!t.done;t=q.next())if(t=t.value,F===t)return t;return Object};
dtv=function(F){return function(q,t){q.behaviors=q.behaviors||[];q.behaviors.push(F||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",q,t).prototype:void 0));Object.defineProperty(q,t,{get:function(){return this},
enumerable:!0,configurable:!0})}};
VLo=function(F){F=F===void 0?{}:F;return function(q,t){q.properties=q.properties||{};F.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?F.type=y$C(Reflect.getMetadata("design:type",q,t)):F.type=String);var u=F,J=q.properties[t];q.properties[t]=J?Object.assign({},J,u):u}};
Uto=function(F){return function(q,t){q.listeners=q.listeners||{};q.listeners[F]=t}};
SNu=function(){var F=_.US.apply(0,arguments);if(F.length===0)throw Error("Qd");return function(q,t){q.observers=q.observers||[];q.observers.push(t+"("+F.join(",")+")")}};
hKf=function(){var F=_.US.apply(0,arguments);return function(q,t,u){var J=Object.getOwnPropertyDescriptor(q,t).get,g="__compute__"+t;Object.defineProperty(q,g,{value:J,enumerable:!0});q.properties=q.properties||{};J=q.properties[t];J||(J={},q.properties[t]=J);J.computed=g+"("+F.join(",")+")";u.get=void 0}};
_.l7=function(F,q,t){_.OP.call(this);this.JSC$11298_id_=null;this.usingListeners_=!1;this.JSC$11298_listener_=F;this.handler_=t;this.JSC$11298_win_=q||window;this.callback_=(0,_.Pd)(this.JSC$11300_doAction_,this)};
X5=function(F){this.range_=F};
Yz=function(F){this.range_=F};
ed=function(F,q,t){_.OP.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=F;this.scrollTimer_=new _.pB(50);this.JSC$11377_eventHandler_=new _.Qb(this);this.scrollDelta_=new _.bQ;this.containerIsActuallyContent_=F.tagName==="BODY"||F.tagName==="HTML";this.containerBounds_=KR_(F);this.containerIsActuallyContent_&&(F=_.G0(),this.containerBounds_.height=F.height,this.containerBounds_.width=F.width);this.margin_=q||0;if(q){if(q=this.containerBounds_.clone(),F=this.margin_){var u=
Math.min(F,q.height*.25);q.top+=u;q.height-=2*u;F=Math.min(F,q.width*.25);q.left+=F;q.width-=2*F}}else q=this.containerBounds_;this.scrollBounds_=q;t||this.JSC$11377_eventHandler_.listen(_.Cs(this.containerNode_),"mousemove",this.JSC$11379_onMouseMove);this.JSC$11377_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11379_onTick_)};
_.Zt=function(F){this.mechanism=F};
Ru=function(F,q){this.JSC$11475_key_=F;this.JSC$11475_value_=q};
LRP=function(F){if(F>=55296&&F<=57343||F>1114111)return"\ufffd";F in B1P&&(F=B1P[F]);var q="";F>65535&&(F-=65536,q+=String.fromCharCode(F>>>10&1023|55296),F=56320|F&1023);return q+=String.fromCharCode(F)};
aHW=function(F,q){return F<q?1:-1};
c$3=function(){return function(F){return F.charAt(1)==="#"?F.charAt(2)==="X"||F.charAt(2)==="x"?LRP(parseInt(F.substr(3),16)):LRP(parseInt(F.substr(2),10)):j8P[F.slice(1,-1)]}};
tuv=function(F){return F.slice(1,F.length-1).trim().replace(FXP,function(q){return qrM[q]||" "})};
rQ=function(F){return F===32||F===9};
Nd=function(F,q){return q<F.length?F.charCodeAt(q):-1};
uoy=function(F){for(;F;){if(F._lastLineBlank)return!0;var q=F.type;if(q==="list"||q==="item")F=F._lastChild;else break}return!1};
wQ=function(F){if(Jct.test(F)){var q=1,t=0,u=0;for(F[t]=="|"&&t++;t<F.length;){switch(F[t]){case "|":u=1;break;case " ":break;case "\t":break;default:u&&(u=0,q++)}t++}return sRW.test(F)?-q:q}return 0};
gDu=function(F){return F=="table"||F=="row"||F=="cell"};
l6_=function(){return new i7("document",[[1,1],[0,0]])};
Xr_=function(){};
kz=function(){var F={safe:!1};F=F||{};F.softbreak=F.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=F};
ZQ3=function(F,q){var t="";if(F)if(F=F.toLowerCase(),F===" "||Yrf.test(F))t="space";else if(prW.test(F))t="esc";else if(F.length==1){if(!q||QRo.test(F))t=F}else t=eN3.test(F)?F.replace("arrow",""):F=="multiply"?"*":F;return t};
wr$=function(F,q){var t=F.hasModifiers;if(q.key)t=ZQ3(q.key,t);else if(q.detail&&q.detail.key)t=ZQ3(q.detail.key,t);else{t=q.keyIdentifier;var u="";t&&(t in RNt?u=RNt[t]:rcP.test(t)?(t=parseInt(t.replace("U+","0x"),16),u=String.fromCharCode(t).toLowerCase()):u=t.toLowerCase());(t=u)||(t=q.keyCode,u="",Number(t)&&(t>=65&&t<=90?u=String.fromCharCode(32+t):t>=112&&t<=123?u="f"+(t-112+1):t>=48&&t<=57?u=String(t-48):t>=96&&t<=105?u=String(t-96):u=NUW[t]),t=u);t=t||""}return t===F.key&&(!F.hasModifiers||
!!q.shiftKey===!!F.shiftKey&&!!q.ctrlKey===!!F.ctrlKey&&!!q.altKey===!!F.altKey&&!!q.metaKey===!!F.metaKey)};
kwM=function(F){return F.length===1?{combo:F,key:F,event:"keydown"}:F.split("+").reduce(function(q,t){var u=t.split(":");t=u[0];u=u[1];t in iQP?(q[iQP[t]]=!0,q.hasModifiers=!0):(q.key=t,q.event=u||"keydown");return q},{combo:F.split(":").shift()})};
EDC=function(F){return F.trim().split(" ").map(function(q){return kwM(q)})};
zNt=function(F,q){if(F&&F.fn){var t=F.fn;F.fn=function(){try{t.apply(this,arguments)}catch(u){if(u instanceof Ee)console.warn("Argument '"+u.arg+"'"+(q?" for method '"+q+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw u;}}}return F};
oDt=function(){var F=_.US.apply(0,arguments);return F.length===0?function(q){return q}:F.length===1?F[0]:F.reduce(function(q,t){return function(){return q(t.apply(null,_.mZ(_.US.apply(0,arguments))))}})};
nDC=function(){var F=_.US.apply(0,arguments);return function(q){return function(t,u){t=q(t,u);var J=function(){throw Error("Ae");},g={getState:t.getState,
dispatch:function(Y){return J.apply(null,[Y].concat(_.mZ(_.US.apply(1,arguments))))}};
u=F.map(function(Y){return Y(g)});
J=oDt.apply(null,_.mZ(u))(t.dispatch);return Object.assign({},t,{dispatch:J})}}};
GwW=function(F){Object.keys(F).forEach(function(q){var t=F[q];if(typeof t(void 0,{type:Mu_})==="undefined")throw Error("Be`"+q);if(typeof t(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+TUW()})==="undefined")throw Error("Ce`"+q+"`"+Mu_);})};
zW=function(F){for(var q=Object.keys(F),t={},u=0;u<q.length;u++){var J=q[u];typeof F[J]==="function"&&(t[J]=F[J])}var g=Object.keys(t);try{GwW(t)}catch(Q){var Y=Q}return function(Q,e){Q=Q===void 0?{}:Q;if(Y)throw Y;for(var r=!1,N={},w=0;w<g.length;w++){var k=g[w],z=Q[k],T=(0,t[k])(z,e);if(typeof T==="undefined")throw Q=e&&e.type,Error("De`"+(Q?'"'+String(Q)+'"':"(unknown type)")+"`"+k);N[k]=T;r=r||T!==z}return(r=r||g.length!==Object.keys(Q).length)?N:Q}};
Dzv=function(F,q,t){function u(){if(N)throw Error("Ee");return Q}
function J(z){if(typeof z!=="function")throw Error("Fe`"+typeof z);if(N)throw Error("Ge");var T=!0;r===e&&(r=e.slice());r.push(z);return function(){if(T){if(N)throw Error("He");T=!1;r===e&&(r=e.slice());var P=r.indexOf(z);r.splice(P,1);e=null}}}
function g(z){if(typeof z!=="object"||z===null)var T=!1;else{for(T=z;Object.getPrototypeOf(T)!==null;)T=Object.getPrototypeOf(T);T=Object.getPrototypeOf(z)===T}if(!T)throw Error("Ie`"+typeof z);if(typeof z.type==="undefined")throw Error("Je");if(N)throw Error("Ke");try{N=!0,Q=Y(Q,z)}finally{N=!1}T=e=r;for(var P=0;P<T.length;P++)(0,T[P])();return z}
if(typeof q==="function"&&typeof t==="function"||typeof t==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof q==="function"&&typeof t==="undefined"&&(t=q,q=void 0);if(typeof t!=="undefined"){if(typeof t!=="function")throw Error("Me`"+typeof t);return t(Dzv)(F,q)}if(typeof F!=="function")throw Error("Ne`"+typeof F);var Y=F,Q=q,e=[],r=e,N=!1;g({type:Mu_});var w={},k=(w.dispatch=g,w.subscribe=J,w.getState=u,w.replaceReducer=function(z){if(typeof z!=="function")throw Error("Oe`"+
typeof z);Y=z;g({type:WXq});return k},w[OQ_]=function(){var z={};
return z.subscribe=function(T){function P(){T.next&&T.next(u())}
if(typeof T!=="object"||T===null)throw new TypeError("Pe`"+typeof T);P();return{unsubscribe:J(P)}},z[OQ_]=function(){return this},z},w);
return k};
PbW=function(F){function q(){J&&(J=!1,F());g&&u()}
function t(){requestAnimationFrame(q)}
function u(){var Q=Date.now();if(J){if(Q-Y<2)return;g=!0}else J=!0,g=!1,setTimeout(t,20);Y=Q}
var J=!1,g=!1,Y=0;return u};
ou=function(F){return typeof F==="number"?F:parseFloat(F)||0};
xzf=function(F){return _.US.apply(1,arguments).reduce(function(q,t){return q+ou(F["border-"+t+"-width"])},0)};
_.G=function(F,q){q=fl(Ll(q));F.innerHTML=q};
I6y=function(F){var q=Acy;q||(q=vDv(),q=Acy=_.m7.transpose(q));q=q[F];return typeof q==="string"?q:_.nB(F)};
HQM=function(F){F=String(F).toLowerCase();var q=vDv()[F];return typeof q==="string"?q:_.Md(F)};
mzt=function(F){F=F.toLowerCase();F=vDv()[F];return typeof F==="string"?F:null};
vDv=function(){if(!$zP){for(var F=Object.assign({},bQA),q=_.X(ycP),t=q.next();!t.done;t=q.next())t=t.value,F[t.toLowerCase()]=t;$zP=F}return $zP};
Vut=function(F,q){var t=window.customElements;return t&&t.get(F)||Cb3[F]===!0?2:q.name==="HTMLUnknownElement"?1:q.name==="HTMLElement"&&dzo.test(F)?3:0};
hN3=function(F,q){switch(q){case "innerHTML":return Uzu(F)===1?2:null;case "textContent":return F=Uzu(F),F===1||F===6?1:null;default:var t,u;return(u=(t=Sr$[F.localName])==null?void 0:t[q])!=null?u:null}};
Uzu=function(F){var q=F.localName,t=Vut(q,F.constructor);switch(t){case 0:case 1:return KXy(q,F);case 3:case 2:return 1;default:_.Uv(t,"got an unknown element classification")}};
KXy=function(F,q){var t=Object.hasOwnProperty.call(BUf,F)?BUf[F]:null;return t!==null?t:Object.hasOwnProperty.call(LXf,F)&&q instanceof SVGElement?LXf[F]:null};
f6q=function(F,q){return q};
jRy=function(F){return(F=F.split(a6M,2))?{url:F[0],metadata:F[1]}:null};
F_W=function(F){var q=String(F.url).replace(ccy,encodeURIComponent);if(F=F.metadata){ccy.lastIndex=0;if(ccy.test(F))return null;q+=" "+F}return q};
Jk_=function(F){function q(r){var N=r.localName;if(!r.getAttribute("is")&&Vut(N,r.constructor)===2){var w;return(w=e)!=null?w:e=document.createElement("polyresinuncustomized")}(r=Q[N])||(r=Q[N]=document.createElement(N));return r}
var t=F.reportHandler||void 0,u=F.safeTypesBridge||q5v,J=/^$/;if(F=F.allowedIdentifierPrefixes){F=_.X(F);for(var g=F.next();!g.done;g=F.next())J=new RegExp(J.source+"|^"+_.tjW(g.value))}t&&t(!1,"initResin",null);var Y=uzu(J,u,t),Q={},e=null;return function(r,N,w){var k=r.nodeType;if(k!==Node.ELEMENT_NODE){if(k===Node.TEXT_NODE){N=r.parentElement;w=!N;if(N&&N.nodeType===Node.ELEMENT_NODE){k=N.localName;var z=Vut(k,N.constructor);switch(z){case 0:case 1:N=KXy(k,N);w=N===1||N===6;break;case 3:case 2:w=
!0;break;default:_.Uv(z,"got an unknown element classification")}}if(w)return function(H){return""+u(H,"STRING",H)}}return function(H){if(!H&&H!==document.all)return H;
t&&t(!0,"Failed to sanitize "+(r.parentElement&&r.parentElement.nodeName)+" #text node to value "+H,r.parentElement);return TW}}var T=r.localName;
k=q(r);var P=null;switch(w){case "attribute":if(HQM(N)in k)break;return function(H){return H};
case "property":if(N in k){P=hN3(k,N);break}if((z=mzt(N))&&z in k)break;return function(H){return H};
default:_.Uv(w,"got an unknown resin type, expected either 'property' or 'attribute'")}var v=w==="attribute"?N.toLowerCase():I6y(N);P||(P=lSo(T,v,function(H){var d=r.getAttribute(H);return!d||/[\[\{]/.test(H)?null:d}));
return function(H){var d=GW,a=null;if(!H&&H!==document.all)return H;if(P!=null){var S=Y[P],K=S.safeType;a=S.safeReplacement;K&&(d=u(H,K,GW));d===GW&&(S.filterString?(d=String(u(H,"STRING",H)),d=S.filterString(T,v,d)):S.filterRaw&&(d=S.filterRaw(T,v,H,r)),d===a&&(d=GW))}d===GW&&(d=a||TW,t&&t(!0,"Failed to sanitize attribute of <"+T+">: <"+T+" "+v+'="'+H+'">',r));return d}}};
uzu=function(F,q,t){return[,{filterRaw:function(u,J,g){return g},
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:sao,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:sao,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:TW,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:gd3,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(u,J,g){g=
String(g).toLowerCase();return pUC(u,J,g)?g:TW},
safeReplacement:TW,safeType:void 0},,{filterRaw:void 0,filterString:function(u,J,g){return F.test(g)?g:TW},
safeReplacement:TW,safeType:"CONSTANT"},{filterRaw:function(u,J,g,Y){if(typeof g==="string")var Q=(Q=g.match(lJP))?Q.map(jRy).filter(Boolean):[];else if(Array.isArray(g))Q=g;else return sao;var e=Q;Q=[];var r=[],N={};if(Array.isArray(e))for(var w=0,k=e.length;w<k;++w){var z=e[w],T=z&&z.url;if(T){var P=q(T,"URL",N);if(P){var v=P!==N;(v?Q:r).push({url:v?P:T,metadata:z.metadata})}}}else r.push(e);e=r.length?JSON.stringify(r):null;r=GW;if(Q.length){if(!Array.isArray(Q))throw Error();r=Q.map(F_W).filter(Boolean).join(" , ")||
GW}e&&t&&t(!0,"Failed to sanitize attribute value of <"+u+">: <"+u+" "+J+'="'+g+'">: '+e,Y);return r===GW?sao:r},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
XL$=function(F){var q=Jk_(F);return function(t,u,J,g){return g||g===document.all?q(t,u,J)(g):g}};
Dt=function(F,q){function t(){function J(Q,e,r){for(e=Reflect.getMetadata("parameters",Q)||[];e.length<=r;)e.push(null);e[r]=e[r]||[];e[r].push(Y);Reflect.defineMetadata(e,Q);return Q}
var g=_.US.apply(0,arguments);if(this instanceof t)return u.apply(this,g),this;var Y=new (Function.prototype.bind.apply(t,[null].concat(_.mZ(g))));J.annotation=Y;return J}
var u=Y5y(q);t.prototype.toString=function(){return"@"+F};
return t.annotationCls=t};
Y5y=function(F){return function(){var q=_.US.apply(0,arguments),t=this;F.forEach(function(u,J){J=q[J];if(Array.isArray(u))t[u[0]]=J&&J!==void 0?J:u[1];else for(var g in u)t[g]=J&&J[g]!==void 0?J[g]:u[g]})}};
pLC=function(F){return F!==void 0&&F!==null};
WW=function(F){if(typeof F==="string")return F;if(F===void 0||F===null)return""+F;if(F.overriddenName)return F.overriddenName;if(F.name)return F.name;F=F.toString();var q=F.indexOf("\n");return q===-1?F:F.substring(0,q)};
Qau=function(F){F.__forward_ref__=Qau;F.toString=function(){return WW(this())};
return F};
Oe=function(F){return typeof F==="function"&&F.hasOwnProperty("__forward_ref__")&&F.__forward_ref__===Qau?F():F};
eYA=function(F){return F?F.map(function(q){return new (Function.prototype.bind.apply(q.type.annotationCls,[null].concat(_.mZ(q.args?q.args:[]))))}):[]};
ZnA=function(F){for(var q=[],t=0;t<F.length;++t){if(q.indexOf(F[t])>-1){q.push(F[t]);break}q.push(F[t])}return q};
RYM=function(F){return F.length>1?" ("+ZnA(F.slice().reverse()).map(function(q){return WW(q.token)}).join(" -> ")+")":""};
N3_=function(F,q,t,u){if(u){var J=Error("We``"+(u instanceof Error?u.message:u));J.ngOriginalError=u}else J=Error();J.addKey=rkC;J.keys=[q];J.injectors=[F];J.constructResolvingMessage=t;J.message=J.constructResolvingMessage();J.ngOriginalError=u;return J};
rkC=function(F,q){this.injectors.push(F);this.keys.push(q);this.message=this.constructResolvingMessage()};
wLW=function(F,q){return N3_(F,q,function(){return"No provider for "+WW(this.keys[0].token)+"!"+RYM(this.keys)})};
inM=function(F,q){return N3_(F,q,function(){return"Cannot instantiate cyclic dependency!"+RYM(this.keys)})};
kSC=function(F,q,t){return N3_(F,t,function(){var u=WW(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+u+"!"+RYM(this.keys)+"."},q)};
Edo=function(F,q){for(var t=[],u=0,J=q.length;u<J;u++){var g=q[u];g&&g.length!=0?t.push(g.map(WW).join(" ")):t.push("?")}return Error("$e`"+WW(F)+"`"+t.join(", ")+"`"+WW(F))};
DVA=function(F){var q=void 0,t=void 0;if(F&&F.useClass!==void 0){q=F.useClass;var u=Oe(F.useClass);var J=zYo.factory(u);u=ody(u)}else F&&F.useExisting!==void 0?(J=function(g){return g},u=[ndo(PW.get(Oe(F.useExisting)))]):F&&F.useFactory!==void 0?(J=F.useFactory,u=Mjy(F.useFactory,F.deps)):(t=F.useValue,J=function(){return F.useValue},u=T3q);
return new GSM(J,u,q,t)};
On3=function(F){return new W__(PW.get(Oe(F.provide)),[DVA(F)],F.multi)};
xVo=function(F){F=Piv(F,[]).map(On3);for(var q=new Map,t=0;t<F.length;t++){var u=F[t],J=q.get(u.key.id);if(J){if(u.multiProvider!==J.multiProvider)throw Error("bf`"+J+"`"+u);if(u.multiProvider)for(var g=0;g<u.resolvedFactories.length;g++)J.resolvedFactories.push(u.resolvedFactories[g]);else q.set(u.key.id,u)}else J=void 0,u.multiProvider?J=new W__(u.key,u.resolvedFactories.slice(),u.multiProvider):J=u,q.set(u.key.id,J)}return Array.from(q.values())};
Piv=function(F,q){F.forEach(function(t){if(t instanceof Ako)q.push({provide:t,useClass:t});else if(t&&typeof t=="object"&&t.provide!==void 0)q.push(t);else if(t instanceof Array)Piv(t,q);else throw Error("Ze`"+t);});
return q};
Mjy=function(F,q){if(q){var t=q.map(function(u){return[u]});
return q.map(function(u){return vdt(F,u,t)})}return ody(F)};
ody=function(F){var q=zYo.parameters(F);if(!q)return[];if(q.some(function(t){return t==null}))throw Edo(F,q);
return q.map(function(t){return vdt(F,t,q)})};
vdt=function(F,q,t){var u=null,J=!1;if(!Array.isArray(q))return q instanceof IJW?Hnf(q.token,J,null):Hnf(q,J,null);for(var g=null,Y=0;Y<q.length;++Y){var Q=q[Y];if(Q instanceof Ako)u=Q;else if(Q instanceof IJW)u=Q.token;else if(Q instanceof mV$)J=!0;else if(Q instanceof $Vo||Q instanceof bnP)g=Q}u=Oe(u);if(u!=null)return Hnf(u,J,g);throw Edo(F,t);};
Hnf=function(F,q,t){return new ykf(PW.get(Oe(F)),q,t)};
Cit=function(F,q){for(var t=Array(F.providers.length),u=0;u<F.providers.length;++u){var J=u;if(u<0||u>=F.providers.length)throw Error("af`"+u);t[J]=q(F.providers[u])}return t};
dV$=function(F){return typeof F==="function"&&zYo.parameters(F).every(function(q){return!!q})};
S5P=function(F){var q=Vj3;UV_.get(F)||UV_.set(F,new q);return UV_.get(F)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(F)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(F)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F,q){var t,u;if(F.contains(q))return!0;F=_.xz(F).querySelectorAll("content,slot");for(t=0;t<F.length;++t){var J=_.xz(F[t]).getDistributedNodes();for(u=0;u<J.length;++u)if(J[u].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(J[u],q))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){F.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(F)&&F.preventDefault();F.targetTouches&&(F=F.targetTouches[0],hYy=F.pageX,K_P=F.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var F=0,q=AJ.length;F<q;F++)document.addEventListener(AJ[F],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var F=0,q=AJ.length;F<q;F++)document.removeEventListener(AJ[F],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){var q=_.xz(F).rootTarget;F.type!=="touchmove"&&B3u!==q&&(B3u=q,L_A=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.xz(F).path));if(!L_A.length)return!0;if(F.type==="touchstart")return!1;F=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(F);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(L_A,F.deltaX,F.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){for(var q=[],t=F.indexOf(fJW),u=0;u<=t;u++)if(F[u].nodeType===Node.ELEMENT_NODE){var J=F[u],g=J.style;g.overflow!=="scroll"&&g.overflow!=="auto"&&(g=window.getComputedStyle(J));g.overflow!=="scroll"&&g.overflow!=="auto"||q.push(J)}return q};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F,q,t){if(q||t)for(var u=Math.abs(t)>=Math.abs(q),J=0;J<F.length;J++){var g=F[J];if(u?t<0?g.scrollTop>0:g.scrollTop<g.scrollHeight-g.clientHeight:q<0?g.scrollLeft>0:g.scrollLeft<g.scrollWidth-g.clientWidth)return g}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){var q={deltaX:F.deltaX,deltaY:F.deltaY};"deltaX"in F||("wheelDeltaX"in F&&"wheelDeltaY"in F?(q.deltaX=-F.wheelDeltaX,q.deltaY=-F.wheelDeltaY):"wheelDelta"in F?(q.deltaX=0,q.deltaY=-F.wheelDelta):"axis"in F?(q.deltaX=F.axis===1?F.detail:0,q.deltaY=F.axis===2?F.detail:0):F.targetTouches&&(F=F.targetTouches[0],q.deltaX=hYy-F.pageX,q.deltaY=K_P-F.pageY));return q};
aJM=function(F){this.element=F;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
ckC=function(F){this.element=F;this.color=window.getComputedStyle(F).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.xz(this.waveContainer).appendChild(this.wave);jav(this)};
vW=function(F,q){for(var t in F)if(t.toLowerCase()===q.toLowerCase())return F[t]};
FEy=function(F,q){for(var t in F)if(t.toLowerCase()===q.toLowerCase()){delete F[t];break}};
tho=function(F){F=_.m7.clone(F);for(var q=0;q<qY$.length;++q){var t=qY$[q],u=vW(F,t);u&&(F["X-Goog-Upload-Header-"+t]=u,FEy(F,t))}return F};
ukq=function(F){F=_.m7.clone(F);FEy(F,"X-Goog-Upload-Status")};
sOo=function(F){return Jdt.some(function(q){return q.test(F)})};
YYf=function(F,q){var t;var u=(t=F.formContent)==null?void 0:t.locale;t=u==null?void 0:u.split("-")[0];u=u&&gc3.includes(u)?u:t&&gc3.includes(t)?t:void 0;u=(u!=null?u:"en").replaceAll("-","_").toLowerCase();var J;F=((J=F.initializationData)==null?0:J.useNightlyRelease)?"nightly":"live";var g;return(q==null?0:(g=q.getEnableAlohaBinarySplit)==null?0:g.call(q))?_.RV(ldt,F):_.RV(Xbq,F,u)};
e3f=function(F,q,t,u){if(pbo&&QOu===q)return pbo;QOu=q;var J=YYf(F,u);return pbo=q.feedbackV2GlobalObject?Promise.resolve(q.feedbackV2GlobalObject):new Promise(function(g,Y){var Q=_.nr("SCRIPT");_.uF(Q,J);Q.onload=function(){q.feedbackV2GlobalObject?g(q.feedbackV2GlobalObject):Y(Error("ef"))};
Q.onerror=function(){Y(Error("ff`"+J.toString()))};
t.body.appendChild(Q)})};
rdf=function(F,q,t,u){if(Zgo&&R3t===q)return Zgo;R3t=q;var J=YYf(F,u);return Zgo=q.feedbackV2GlobalObject?Promise.resolve(q.feedbackV2GlobalObject):new Promise(function(g,Y){var Q=_.nr("SCRIPT");_.uF(Q,J);Q.onload=function(){q.feedbackV2GlobalObject?g(q.feedbackV2GlobalObject):Y(Error("ef"))};
Q.onerror=function(){Y(Error("ff`"+J.toString()))};
t.body.appendChild(Q)})};
NgM=function(F,q,t,u,J){J=J===void 0?!0:J;var g,Y,Q,e,r;return _.p(function(N){switch(N.nextAddress){case 1:return g=Date.now(),N.yield(e3f(F,t,u,q),2);case 2:Y=N.yieldResult;if(!(J||((e=F.initializationData)==null?0:e.useNightlyRelease)||((r=F.initializationData)==null?0:r.isLocalServer))){Q=Y.initializeFeedbackClient(F,g,q);N.jumpTo(3);break}return N.yield(Y.initializeFeedbackClientAsync(F,g,q),4);case 4:Q=N.yieldResult;case 3:return Q.initiateAloha(),N.return(Q)}})};
wb$=function(F,q,t,u){var J,g,Y;return _.p(function(Q){if(Q.nextAddress==1)return J=Date.now(),Q.yield(rdf(F,t,u.document,q),2);if(Q.nextAddress!=3)return g=Q.yieldResult,Q.yield(g.initializeFeedbackClientAsync(F,J,q,u),3);Y=Q.yieldResult;Y.initiateAloha();return Q.return(Y)})};
ig3=function(F,q,t){var u=!0;u=u===void 0?!0:u;var J,g,Y,Q,e,r,N,w,k,z;return _.p(function(T){J=t||_.uu;if((g=q)==null?0:(Q=(Y=g).getEnableAlohaBinarySplit)==null?0:Q.call(Y)){e=J;if(e.isFormOpened)throw r=Error("gf"),r.name="DuplicateFormError",r;e.isFormOpened=!0;F.callbacks=F.callbacks||{};N=F.callbacks.onClose||function(){};
F.callbacks.onClose=function(P){e.isFormOpened=!1;N(P)};
try{return T.return(wb$(F,q,e,J))}catch(P){throw e.isFormOpened=!1,P;}}else{w=J;if(w.isFormOpened)throw k=Error("gf"),k.name="DuplicateFormError",k;w.isFormOpened=!0;F.callbacks=F.callbacks||{};z=F.callbacks.onClose||function(){};
F.callbacks.onClose=function(P){w.isFormOpened=!1;z(P)};
try{return T.return(NgM(F,q,w,J.document,u))}catch(P){throw w.isFormOpened=!1,P;}}_.WA(T)})};
ncC=function(F,q){return _.p(function(t){return t.return(new Promise(function(u){var J=kUo(q!=null?q:"")+"/aloha_form_properties?productId="+F;Eco(J,function(g){g=g.target;var Y=null;try{var Q=JSON,e=Q.stringify;if(g.JSC$9789_xhr_){var r=g.JSC$9789_xhr_.responseText;r.indexOf(")]}'\n")==0&&(r=r.substring(5));var N=(0,_.Iu)(r)}else N=void 0;Y=dyA(z33,e.call(Q,N))}catch(w){e=new z33,N=ocW(),N=_.HW(N,13,!1),N=_.HW(N,14,!0),N=_.HW(N,15,!0),N=_.HW(N,20,!1),Y=_.My(e,1,N)}u(Y)},"GET","",{},2E3,!0)}))})};
kUo=function(F){return sOo(F)?F:"https://www.google.com/tools/feedback"};
Dg_=function(F){F=F.match(new RegExp(Mh_,"gi"))||[];F=_.X(F);for(var q=F.next();!q.done;q=F.next()){q=q.value;a:{var t=_.X(Tgo);for(var u=t.next();!u.done;u=t.next())if(u.value.test(q)){t=!1;break a}t=!0}if(!t)a:{t=_.X(GUv);for(u=t.next();!u.done;u=t.next())if(u.value.test(q)){t=!0;break a}t=!1}if(t)return!0}return!1};
WEA=function(F,q){var t={},u=Object.keys(F);u=_.X(u);for(var J=u.next();!J.done;J=u.next())J=J.value,t[J]=q(J,F[J]);return t};
OgP=function(F){switch(F){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
xgy=function(F){if(window.crypto&&window.crypto.getRandomValues)try{var q=Array(F),t=new Uint8Array(F);window.crypto.getRandomValues(t);for(var u=0;u<q.length;u++)q[u]=t[u];return q}catch(g){}q=Array(F);for(t=0;t<F;t++){u=Date.now();for(var J=0;J<u%23;J++)q[t]=Math.random();q[t]=Math.floor(Math.random()*256)}if(Plt)for(t=1,u=0;u<Plt.length;u++)q[t%F]^=q[(t-1)%F]/4^Plt.charCodeAt(u),t++;return q};
mO=function(F){F=xgy(F);for(var q=[],t=0;t<F.length;t++)q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(F[t]&63));return q.join("")};
AdW=function(){var F=_.uu.ytLoggingDocDocumentNonce_;F||(F=mO(16),_.uo("ytLoggingDocDocumentNonce_",F));return F};
IdP=function(F){F&&_.IJ("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:vc$,clientScreenNonce:F})};
Hgy=function(F){return _.bn("client-screen-nonce-store",{})[F===void 0?0:F]};
mgq=function(F,q){q=q===void 0?0:q;var t=_.bn("client-screen-nonce-store");t||(t={},_.$I("client-screen-nonce-store",t));t[q]=F};
$g_=function(F){F=F===void 0?0:F;return F===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+F};
bgA=function(F){return _.bn($g_(F===void 0?0:F))};
_.b7=function(F){return(F=bgA(F===void 0?0:F))?new $z({veType:F,youtubeData:void 0,jspbYoutubeData:void 0}):null};
ydt=function(){var F=_.bn("csn-to-ctt-auth-info");F||(F={},_.$I("csn-to-ctt-auth-info",F));return F};
Clv=function(){return Object.values(_.bn("client-screen-nonce-store",{})).filter(function(F){return F!==void 0})};
_.yb=function(F){F=Hgy(F===void 0?0:F);if(!F&&!_.yG("USE_CSN_FALLBACK",!0))return null;F||(F="UNDEFINED_CSN");return F?F:null};
VhW=function(F){for(var q=_.X(Object.values(dgM)),t=q.next();!t.done;t=q.next())if(_.yb(t.value)===F)return!0;return!1};
UgP=function(F,q,t){var u=ydt();(t=_.yb(t))&&delete u[t];q&&(u[F]=q)};
CB=function(F){return ydt()[F]};
_.dQ=function(F,q,t,u){t=t===void 0?0:t;if(F!==Hgy(t)||q!==_.bn($g_(t)))if(UgP(F,u,t),mgq(F,t),_.$I($g_(t),q),q=function(){setTimeout(function(){IdP(F)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(q)}catch(J){q()}else q()};
SYM=function(F,q){q=q===void 0?"":q;var t=[],u;for(u in F)if(F.hasOwnProperty(u)){var J=q!==""?q+"."+u:u;typeof F[u]==="object"?t.push.apply(t,_.mZ(SYM(F[u],J))):t.push([J,F[u]])}t.sort();return t};
_.Ue=function(F){var q=_.US.apply(1,arguments);if(!Vb(F)||q.some(function(u){return!Vb(u)}))throw Error("hf");
q=_.X(q);for(var t=q.next();!t.done;t=q.next())h3C(F,t.value)};
h3C=function(F,q){for(var t in q)if(Vb(q[t])){if(t in F&&!Vb(F[t]))throw Error("jf");t in F||(F[t]={});h3C(F[t],q[t])}else if(KEq(q[t])){if(t in F&&!KEq(F[t]))throw Error("kf");t in F||(F[t]=[]);Bgf(F[t],q[t])}else F[t]=q[t];return F};
Bgf=function(F,q){q=_.X(q);for(var t=q.next();!t.done;t=q.next())t=t.value,Vb(t)?F.push(h3C({},t)):KEq(t)?F.push(Bgf([],t)):F.push(t);return F};
Vb=function(F){return typeof F==="object"&&!Array.isArray(F)};
KEq=function(F){return typeof F==="object"&&Array.isArray(F)};
fdt=function(F){for(var q=_.X(Object.entries(LEf)),t=q.next();!t.done;t=q.next())if(t=_.X(t.value),t.next(),t=t.next().value,t==="SLI_STATUS_"+F)return t;return"SLI_STATUS_UNKNOWN"};
_.Sd=function(F,q,t,u){return adv(F,q,function(){return new _.jOo(F,q,t,u)})};
_.cdu=function(){return _.Sd("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
FY_=function(){return _.Sd("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
hJ=function(){return _.Sd("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
quC=function(){return _.Sd("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
tZo=function(){return _.Sd("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
uHo=function(){return _.Sd("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
gZf=function(F){F&&(F.dataset?F.dataset[JMP()]="true":_.ss([_.Qp(sz$)],F,"data-loaded","true".toString()))};
lCW=function(F){return F?F.dataset?F.dataset[JMP()]:F.getAttribute("data-loaded"):null};
JMP=function(){return XNo.loaded||(XNo.loaded="loaded".replace(/\-([a-z])/g,function(F,q){return q.toUpperCase()}))};
_.KB=function(F,q,t){Yuq(F,q,t===void 0?null:t)};
_.Qzv=function(F,q){F&&q&&(F=""+_.K3(q),(F=pN3[F])&&_.u03(F))};
Yuq=function(F,q,t){t=t===void 0?null:t;var u=_.eno(typeof F==="string"?F:F.toString()),J=document.getElementById(u),g=J&&lCW(J),Y=J&&!g;g?q&&q():(q&&(g=_.eJ(u,q),q=""+_.K3(q),pN3[q]=g),Y||(J=ZVo(F,u,function(){lCW(J)||(gZf(J),_.JTu(u),_.Rm(function(){_.gmP(u)},0))},t)))};
ZVo=function(F,q,t,u){u=u===void 0?null:u;var J=_.nr("SCRIPT");J.id=q;J.onload=function(){t&&setTimeout(t,0)};
J.onreadystatechange=function(){switch(J.readyState){case "loaded":case "complete":J.onload()}};
u&&J.setAttribute("nonce",u);_.uF(J,typeof F==="string"?_.AG(F):F);F=document.getElementsByTagName("head")[0]||document.body;F.insertBefore(J,F.firstChild);return J};
_.eno=function(F){var q=document.createElement("a");Kl(q,F);return"js-"+BW(q.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Rno=function(F){var q=_.bn("INNERTUBE_HOST_OVERRIDE");q&&(F=String(q)+String(_.LB(F)));return F};
rMv=function(F){var q={};_.E("json_condensed_response")&&(q.prettyPrint="false");return F=GVA(F,q)};
_.fB=function(F){return tU(F)?"same-origin":"include"};
_.au=function(F){return tU(F)?"same-origin":"cors"};
jd=function(F,q,t){t=t===void 0?{}:t;F={method:q===void 0?"POST":q,mode:_.au(F),credentials:_.fB(F)};q={};for(var u=_.X(Object.keys(t)),J=u.next();!J.done;J=u.next())J=J.value,t[J]&&(q[J]=t[J]);Object.keys(q).length>0&&(F.headers=q);return F};
_.cW=function(F,q){q=q===void 0?{}:q;return"service:"+F+"/"+Object.keys(q).sort().map(function(t){return t+":"+q[t]}).join("/")};
N5_=function(F){var q,t,u,J;F=(q=_.n(F,_.Fw))==null?void 0:(t=q.watchEndpointSupportedOnesieConfig)==null?void 0:(u=t.html5PlaybackOnesieConfig)==null?void 0:(J=u.commonConfig)==null?void 0:J.url;if(!F)return[];q=new _.qU(F);return q.JSC$10024_domain_?["https://"+q.JSC$10024_domain_+"/generate_204"]:[]};
_.ksA=function(){return wNP()||AxW()||iVP&&bK("version/")?!0:_.bn("EOM_VISITOR_DATA")?!1:!0};
EZC=function(F){var q=F.docid||F.video_id||F.videoId||F.id;if(q)return q;q=F.raw_player_response;q||(F=F.player_response)&&(q=JSON.parse(F));return q&&q.videoDetails&&q.videoDetails.videoId||null};
zn3=function(F){return F.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
tV=function(F){return!isNaN(Number(F))&&!_.YP(F)};
_.JV=function(F,q,t,u){u=u===void 0?!0:u;var J=_.bn("VALID_SESSION_TEMPDATA_DOMAINS",[]),g=_.FR(window.location.href);g&&J.push(g);g=_.FR(F);if(_.bu(J,g)||!g&&_.gf(F,"/"))if(J=document.createElement("a"),Kl(J,F),F=J.href)if(F=_.LB(F),F=_.uN(F))u&&!q.csn&&(q.itct||q.ved)&&(q=Object.assign({csn:_.yb()},q)),t?(t=parseInt(t,10),isFinite(t)&&t>0&&oZq(F,q,t)):oZq(F,q)};
MZv=function(F){var q=_.bn("VALID_SESSION_TEMPDATA_DOMAINS",[]),t=_.FR(window.location.href);t&&q.push(t);t=_.FR(F);if(!(_.bu(q,t)||!t&&_.gf(F,"/")))return null;F=_.LB(F);(F=_.uN(F))?(F=nZq(F),F=(F=_.om.get(F,void 0)||null)?_.LI(F):{}):F=null;return F};
oZq=function(F,q,t){F=nZq(F);q=q?_.kE(q):"";t=t||5;_.ksA()&&_.nE(F,q,t)};
nZq=function(F){for(var q=_.X(T5C),t=q.next();!t.done;t=q.next())F=_.sH(F,t.value);return"ST-"+BW(F).toString(36)};
_.GsW=function(F){if(F.requestFullscreen)F=F.requestFullscreen(void 0);else if(F.webkitRequestFullscreen)F=F.webkitRequestFullscreen();else if(F.mozRequestFullScreen)F=F.mozRequestFullScreen();else if(F.msRequestFullscreen)F=F.msRequestFullscreen();else if(F.webkitEnterFullscreen)F=F.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return F instanceof Promise?F:Promise.resolve()};
_.lN=function(F){var q;_.Sk3(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.gY()==F&&(q=document):q=F;if(q&&(F=_.Sk3(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],q))){F.call(q)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.gY=function(){var F=F===void 0?!1:F;var q=_.Sk3(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(F)for(;q&&q.shadowRoot;)q=q.shadowRoot.fullscreenElement;return q?q:null};
_.Xw=function(F,q){q=q===void 0?!0:q;F.addEventListener("wheel",DKC);F.overscrollConfig={cooldown:q}};
_.Yo=function(F){F.overscrollConfig=void 0;F.removeEventListener("wheel",DKC)};
DKC=function(F){var q=F.deltaY,t=F.target,u=null;if(window.Polymer&&window.Polymer.Element){if(t=F.path||F.composedPath&&F.composedPath()){t=_.X(t);for(var J=t.next();!J.done&&(J=J.value,!WYq(J,q));J=t.next())if(J.overscrollConfig){u=J;break}}}else for(;t&&!WYq(t,q);){if(t.overscrollConfig){u=t;break}t=t.parentElement}u&&(q=u.overscrollConfig,q.cooldown?(u=F.deltaY,t=q.lastDeltaY||0,q.lastDeltaY=u,J=q.lastStopped||0,t&&J&&t>0==u>0?Math.abs(t)>=Math.abs(u)?(u=J+1200,t=!1):(u=J+600,t=!0):(u=Date.now()+
600,t=!0),u>Date.now()&&(F.preventDefault(),t&&(q.lastStopped=Date.now()))):F.preventDefault())};
WYq=function(F,q){return q<0&&F.scrollTop>0||q>0&&F.scrollTop<F.scrollHeight-F.clientHeight-1?(F=getComputedStyle(F).overflowY,F=="auto"||F=="scroll"):!1};
_.Q0=function(F,q,t,u){u||(u={bubbles:!0,cancelable:!1,composed:!0});t!==null&&t!==void 0&&(u.detail=t);var J=new CustomEvent(q,u);_.E("untrack_fire_custom_event_killswitch")?F.dispatchEvent(J):rP(function(){return void F.dispatchEvent(J)});
return J};
OVu=function(F){var q=window,t=function(u){q.removeEventListener("yt-navigate-start",t);return F.call(q,u)};
q.addEventListener("yt-navigate-start",t,void 0)};
_.ec=function(F,q,t,u){q=new PmW(q,!(u===void 0||!u),t);_.Q0(F,"yt-action",q);return q.returnValue};
_.Zl=function(F,q,t){return _.ec(F,q,t,!0)};
_.rY=function(F,q,t,u){q&&q.length&&q.forEach(function(J){var g=dZv(J);g&&(_.E("handle_service_request_actions")&&J.commandMetadata&&J.commandMetadata.webCommandMetadata&&J.commandMetadata.webCommandMetadata.sendPost?_.RD(t?t:F,[J]):_.Zl(F,g,[J,t,u]))})};
_.RD=function(F,q){var t=[F];q&&t.push.apply(t,q);q=_.ec(F,"yt-service-request",t);return q.length>0&&(q=q[0],_.Q0(F,"yt-service-request-sent",q),q&&q.ajaxPromise)?(q.ajaxPromise.then(function(u){_.Q0(F,"yt-service-request-completed",u)},function(u){_.Q0(F,"yt-service-request-error",{error:u,
params:t})},F),q.ajaxPromise):_.NU()};
_.iN=function(F,q){if(_.E("handle_service_request_actions"))_.rY(q,F,q);else{F=_.X(F);for(var t=F.next();!t.done;t=F.next()){t=t.value;var u=void 0;((u=_.n(t,_.wY))==null?0:u.commands)?_.iN(_.n(t,_.wY).commands,q):(u=void 0,((u=_.n(t,_.ko))==null?0:u.actions)?_.iN(_.n(t,_.ko).actions,q):(u=void 0,((u=_.n(t.commandMetadata,_.EH))==null?0:u.sendPost)?_.RD(q,[t]):_.rY(q,[t],q)))}}};
_.AMu=function(F,q,t){q=q===void 0?{}:q;typeof q==="function"&&(q={callback:q});t||q._c&&q._c.jsl&&q._c.jsl.h||_.m7.extend(q,{_c:{jsl:{h:_.bn("GAPI_HINT_PARAMS")}}});(q.gapiHintOverride||_.bn("GAPI_HINT_OVERRIDE"))&&(t=_.fI(document.location.href).gapi_jsh)&&_.m7.extend(q,{_c:{jsl:{h:t}}});xKv(F,q)};
_.oD=function(F,q,t){q=q===void 0?{}:q;F=(F=F in zV?zV[F]:t)||"";t={};for(var u in q){t={key$jscomp$838:t.key$jscomp$838};t.key$jscomp$838=u;var J=function(g){return function(){return String(q[g.key$jscomp$838])}}(t);
F=F.replace(new RegExp("\\$\\{"+t.key$jscomp$838+"\\}","gi"),J);F=F.replace(new RegExp("\\$"+t.key$jscomp$838,"gi"),J)}return F};
_.nJ=function(F,q){return vZo(F in zV?zV[F]:{},q)};
vZo=function(F,q){var t=_.bn("I18N_PLURAL_RULES");t||(t=function(u){return u==1?"one":"other"});
return(F=F["case"+q]||F[t(q)])?F.replace("#",q.toString()):q+""};
mKo=function(F){var q=ICq(F),t=document.getElementById(q),u=t&&lCW(t);u||t&&!u||(t=HVu(F,q,function(){if(!lCW(t)){gZf(t);_.JTu(q);var J=_.MU(_.gmP,q);_.Rm(J,0)}}))};
HVu=function(F,q,t){var u=document.createElement("link");u.id=q;u.onload=function(){t&&setTimeout(t,0)};
F=_.AG(F);_.lF(u,F,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(u);return u};
ICq=function(F){var q=_.nr("A");Kl(q,IK(F));return"css-"+BW(q.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.bVA=function(F){var q=$KP();F!==q&&(q=_.TV(),!_.E("web_autonav_allow_off_by_default")&&F||_.GV(0,141,!0),_.GV(0,140,!F),q.save())};
$KP=function(){var F=_.TV();return _.E("web_autonav_allow_off_by_default")&&!F.getFlag(141)&&_.bn("AUTONAV_OFF_BY_DEFAULT")?!1:!F.getFlag(140)};
yM$=function(F,q){var t,u;F=((t=F.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(u=t.videoAuthorizationToken)==null?void 0:u.credentialTransferTokens)||[];for(t=0;t<F.length;++t)if(F[t].scope===q)return F[t].token||void 0};
CmA=function(F){for(var q=0,t=0;t<F.length;t++)q=q*31+F.charCodeAt(t),t<F.length-1&&(q%=0x800000000000);return q%1E5};
_.Dl=function(F){return _.S6("ytcsi."+(F||"")+"data_")||dKt(F)};
_.VZo=function(F){F=_.Dl(F);F.metadata||(F.metadata={});return F.metadata};
_.UKu=function(F){F=_.Dl(F);F.tick||(F.tick={});return F.tick};
_.Wo=function(F){F=_.Dl(F);if(F.gel){var q=F.gel;q.gelInfos||(q.gelInfos={});q.gelTicks||(q.gelTicks={})}else F.gel={gelTicks:{},gelInfos:{}};return F.gel};
_.Suu=function(F){F=_.Wo(F);F.gelInfos||(F.gelInfos={});return F.gelInfos};
hnW=function(F){var q=_.Dl(F).nonce;q||(q=mO(16),_.Dl(F).nonce=q);return q};
dKt=function(F){var q={tick:{},info:{}};_.uo("ytcsi."+(F||"")+"data_",q);return q};
KYu=function(){var F=_.S6("ytcsi.debug");F||(F=[],_.uo("ytcsi.debug",F),_.uo("ytcsi.reference",{}));return F};
_.OH=function(F){F=F||"";var q=B5$();if(q[F])return q[F];var t=KYu(),u={timerName:F,info:{},tick:{},span:{},jspbInfo:[]};t.push(u);return q[F]=u};
LYP=function(F){F=F||"";var q=B5$();q[F]&&delete q[F];var t=KYu(),u={timerName:F,info:{},tick:{},span:{},jspbInfo:[]};t.push(u);q[F]=u};
B5$=function(){var F=_.S6("ytcsi.reference");if(F)return F;KYu();return _.S6("ytcsi.reference")};
_.aCC=function(F){return fCM[F]||"LATENCY_ACTION_UNKNOWN"};
qw3=function(F,q,t){t=t===void 0?{}:t;var u=!1;_.yG("ytLoggingEventsDefaultDisabled",!1)&&(u=!0);u=u?null:v2;t=t===void 0?{}:t;var J=Math.round(t.timestamp||(0,_.gB)());_.Gm(q,1,J<Number.MAX_SAFE_INTEGER?J:0);J=new jzy;if(t.lact)_.Gm(J,1,isFinite(t.lact)?t.lact:-1);else if(t.timestamp)_.Gm(J,1,-1);else{var g=_.X1();_.Gm(J,1,isFinite(g)?g:-1)}if(t.sequenceGroup&&!_.E("web_gel_sequence_info_killswitch")){g=t.sequenceGroup;var Y=rC$(g),Q=new cMv;_.Gm(Q,2,Y);_.OF(Q,1,g);_.My(J,3,Q);t.endOfSequence&&delete Fyq[t.sequenceGroup]}_.My(q,
33,J);(t.sendIsolatedPayload?omo:nmq)(F,{endpoint:"log_event",payload:q,cttAuthInfo:t.cttAuthInfo,dangerousLogToVisitorSession:t.dangerousLogToVisitorSession},u)};
_.xo=function(){return(_.E("csi_use_time_origin")||_.E("csi_use_time_origin_tvhtml5"))&&_.Po.timeOrigin?Math.floor(_.Po.timeOrigin):_.Po.timing.navigationStart};
_.tq3=function(F,q){_.AV("_start",F,q)};
_.vo=function(F,q){if(!_.E("web_csi_action_sampling_enabled")||!_.Dl(q).actionDisabled){var t=_.OH(q||"");_.Ue(t.info,F);F.loadType&&(t=F.loadType,_.VZo(q).loadType=t);_.Ue(_.Suu(q),F);t=hnW(q);q=_.Dl(q).cttAuthInfo;uPf().info(F,t,q)}};
J3o=function(){var F,q,t,u;return((u=_.sV().resolve(_.JU(OD))==null?void 0:(F=P2())==null?void 0:(q=F.loggingHotConfig)==null?void 0:(t=q.csiConfig)==null?void 0:t.debugTicks)!=null?u:[]).map(function(J){return Object.values(J)[0]})};
_.AV=function(F,q,t){if(!_.E("web_csi_action_sampling_enabled")||!_.Dl(t).actionDisabled){var u=hnW(t),J;if(J=_.E("web_csi_debug_sample_enabled")&&u){(_.sV().resolve(_.JU(OD))==null?0:P2())&&!s$P&&(s$P=!0,_.AV("gcfl",(0,_.gB)(),t));var g,Y,Q;J=(_.sV().resolve(_.JU(OD))==null?void 0:(g=P2())==null?void 0:(Y=g.loggingHotConfig)==null?void 0:(Q=Y.csiConfig)==null?void 0:Q.debugSampleWeight)||0;if(g=J!==0)b:{g=J3o();if(g.length>0)for(Y=0;Y<g.length;Y++)if(F===g[Y]){g=!0;break b}g=!1}g?(J=CmA(u)%J!==0,
_.Dl(t).debugTicksExcludedLogged||(g={},g.debugTicksExcluded=J,_.vo(g,t)),_.Dl(t).debugTicksExcludedLogged=!0):J=!1}if(!J){F[0]!=="_"&&gx3(F,t,q);J=_.OH(t||"");J.tick[F]=q||(0,_.gB)();if(J.callback&&J.callback[F])for(J=_.X(J.callback[F]),g=J.next();!g.done;g=J.next())g=g.value,g();J=_.Wo(t);J.gelTicks&&(J.gelTicks[F]=!0);g=_.UKu(t);J=q||(0,_.gB)();_.E("log_repeated_ytcsi_ticks")?F in g||(g[F]=J):g[F]=J;g=_.Dl(t).cttAuthInfo;F==="_start"?uPf().baseline(u,q,g):uPf().tick(F,u,q,g);_.lXf(t);return J}}};
gx3=function(F,q,t){if(_.Po.mark)if(F.startsWith("mark_")||(F="mark_"+F),q&&(F+=" ("+q+")"),t===void 0||_.E("web_csi_disable_alt_time_performance_mark"))_.Po.mark(F);else{t=_.E("csi_use_performance_navigation_timing")?t-_.Po.timeOrigin:t-(_.Po.timeOrigin||_.Po.timing.navigationStart);try{_.Po.mark(F,{startTime:t})}catch(u){}}};
X6o=function(){var F,q=(F=_.Po.getEntriesByType)==null?void 0:F.call(_.Po,"mark");q&&q.forEach(function(t){if(t.name.startsWith("mark_")){var u;(u=_.Po.clearMarks)==null||u.call(_.Po,t.name)}})};
_.YwA=function(){switch(Uco()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.p6o=function(F){var q={},t=function(g,Y,Q){Y=Y.match("_rid")?Y.split("_rid")[0]:Y;typeof Q==="number"&&(Q=JSON.stringify(Q));g.requestIds?g.requestIds.push({endpoint:Y,id:Q}):g.requestIds=[{endpoint:Y,id:Q}]};
F=_.X(Object.entries(F));for(var u=F.next();!u.done;u=F.next()){var J=_.X(u.value);u=J.next().value;J=J.next().value;switch(u){case "GetBrowse_rid":t(q,u,J);break;case "GetGuide_rid":t(q,u,J);break;case "GetHome_rid":t(q,u,J);break;case "GetPlayer_rid":t(q,u,J);break;case "GetSearch_rid":t(q,u,J);break;case "GetSettings_rid":t(q,u,J);break;case "GetTrending_rid":t(q,u,J);break;case "GetWatchNext_rid":t(q,u,J);break;case "yt_red":q.isRedSubscriber=!!J;break;case "yt_ad":q.isMonetized=!!J}}return q};
eQC=function(F,q,t,u,J,g){if(!_.E("web_csi_action_sampling_enabled")||!_.Dl(g).actionDisabled){var Y=_.Wo(g);if(Y.gelSpans)Y.gelSpans[F]=!0;else{var Q={};Y.gelSpans=(Q[F]=!0,Q)}Q$P++;F={spanName:F,spanLengthUsec:String(Math.round(q*1E3)),spanNonce:Q$P};u&&(F.spanInfo=u);J&&(F.parentSpanNonce=J);t&&(F.spanStartTimeUsec=String(Math.round(t*1E3)));_.OH(g||"").span[String(F.spanName)]=F;t=_.Wo(g);t.gelSpans||(t.gelSpans={});_.Ue(t.gelSpans,F);t=hnW(g);g=_.Dl(g).cttAuthInfo;uPf().span(F,t,g);return F.spanNonce}};
_.Ziu=function(F){var q=_.ID("aft",F);if(q)return q;q=_.bn((F||"")+"TIMING_AFT_KEYS",["ol"]);for(var t=q.length,u=0;u<t;u++){var J=_.ID(q[u],F);if(J)return J}return NaN};
_.RQW=function(F,q){_.uo("ytglobal.timing"+(q||"")+"ready_",F)};
_.ID=function(F,q){if(F=_.UKu(q)[F])return typeof F==="number"?F:F[F.length-1]};
_.lXf=function(F){var q=_.ID("_start",F),t=_.Ziu(F),u=!r3y;q&&t&&u&&(whW(Nzf,new w63(Math.round(t-q),F)),r3y=!0)};
keu=function(F){dKt(F);iiu();X6o();F||(_.bn("TIMING_ACTION")&&_.$I("PREVIOUS_ACTION",_.bn("TIMING_ACTION")),_.$I("TIMING_ACTION",""))};
_.Exo=function(F){F=F===void 0?{}:F;_.UK(function(){Ho();LYP();keu();_.RQW(!1);F.cttAuthInfo&&(_.Dl().cttAuthInfo=F.cttAuthInfo);_.$I("TIMING_AFT_KEYS",[]);F.isHot?_.mj({loadType:"hot"}):_.mj({loadType:"warm"});_.$I("TIMING_ACTION","");delete _.bn("TIMING_INFO",{}).yt_lt;_.UK(_.tq3)(F.startTime,void 0)})()};
_.bN=function(F,q,t,u){q=q===void 0?{}:q;_.UK(function(){var J=t?t:F;$o(J);var g=q.sampleRate;if(!_.E("web_csi_action_sampling_enabled")||g===void 0||g<=1)g=!1;else{var Y=hnW(J);g=CmA(Y)%g!==0}g&&(_.Dl(J).actionDisabled=!0);_.OH(J||"").info.actionType=F;q.cttAuthInfo&&(_.Dl(J).cttAuthInfo=q.cttAuthInfo);_.$I(J+"TIMING_ACTION",F);_.UK(_.tq3)(q.startTime,J);g={actionType:u||_.aCC(F)};q.logPreviousAction&&(g.previousAction=_.aCC(_.bn("TIMING_ACTION")));(Y=_.yb())&&Y!=="UNDEFINED_CSN"&&(g.clientScreenNonce=
Y);_.mj(g,J);_.RQW(!0,J)})()};
$o=function(F){_.UK(function(){Ho(F);LYP(F);keu(F)})()};
zQ$=function(){_.UK(function(){var F=[],q;for(q in _.S6("ytcsi.".slice(0,-1)))q.endsWith("data_")&&F.push(q.slice(0,-5));F=_.X(F);for(q=F.next();!q.done;q=F.next())$o(q.value);Ho()})()};
_.nxA=function(F){return _.UK(function(){return _.oxq("_start",F)})()};
_.mj=function(F,q,t){_.UK(_.vo)(F,q,t===void 0?!1:t)};
_.y0=function(F,q,t){return _.UK(_.AV)(F,q,t)};
_.oxq=function(F,q){return _.UK(function(){var t=_.UKu(q);return F in t})()};
Tzf=function(F){if(!_.E("universal_csi_network_ticks"))return"";F=_.wN(F)||"";for(var q=Object.keys(Mqo),t=0;t<q.length;t++){var u=q[t];if(F.includes(u))return u}return""};
Dky=function(F){if(!_.E("universal_csi_network_ticks"))return function(){};
var q=Mqo[F];return q?(_.CJ(q),function(){var t=_.E("universal_csi_network_ticks")?(t=GeP[F])?_.CJ(t):!1:!1;return t}):function(){}};
_.CJ=function(F,q,t){return _.UK(function(){if(_.oxq(F,t))return!1;_.y0(F,q,t);return!0})()};
_.dY=function(F,q,t){_.UK(function(){if(!_.nxA(t)||_.oxq(F,t))return!1;_.y0(F,q,t);return!0})()};
_.V0=function(F){return _.UK(_.ID)(F,void 0)};
Ho=function(F){_.nxA(F)&&_.y0("aa",void 0,F)};
_.A3C=function(F,q,t,u,J,g,Y,Q,e){var r=WyC();Q=new $z({veType:q,youtubeData:g,jspbYoutubeData:Q});g=UH({},r);J&&(g.cttAuthInfo=J);J={csn:r,pageVe:Q.getAsJson()};_.E("expectation_logging")&&e&&e.screenCreatedLoggingExpectations&&(J.screenCreatedLoggingExpectations=e.screenCreatedLoggingExpectations);t&&t.visualElement?(J.implicitGesture={parentCsn:t.clientScreenNonce,gesturedVe:t.visualElement.getAsJson()},Y&&(J.implicitGesture.gestureType=Y)):t&&_.bz(new _.D0("newScreen() parent element does not have a VE - rootVe",
q));u&&(J.cloneCsn=u);F?Af("screenCreated",J,F,g):_.IJ("screenCreated",J,g);whW(Mp_,new Oiu(r));Sc.clear();PSP.clear();xk3.clear();return r};
hV=function(F,q,t,u,J,g){g=g===void 0?{}:g;vxu(F,q,t,[u],J===void 0?!1:J,g)};
vxu=function(F,q,t,u,J,g){J=J===void 0?!1:J;g=g===void 0?{}:g;Object.assign(g,UH({cttAuthInfo:CB(q)||void 0},q));for(var Y=_.X(u),Q=Y.next();!Q.done;Q=Y.next()){Q=Q.value;var e=Q.getAsJson();(_.m7.isEmpty(e)||!e.trackingParams&&!e.veType)&&_.bz(Error("uf"));if(_.E("no_client_ve_attach_unless_shown")){var r=IXv(Q,q);if(e.veType&&!PSP.has(r)&&!xk3.has(r)&&!J){if(!_.E("il_attach_cache_limit")||Sc.size<1E3){Sc.set(r,[F,q,t,Q]);return}_.E("il_attach_cache_limit")&&Sc.size>1E3&&_.bz(new _.D0("IL Attach cache exceeded limit"))}Q=
IXv(t,q);Sc.has(Q)?HiM(t,q):xk3.set(Q,!0)}}u=u.filter(function(N){N.csn!==q?(N.csn=q,N=!0):N=!1;return N});
t={csn:q,parentVe:t.getAsJson(),childVes:_.$q(u,function(N){return N.getAsJson()})};
q==="UNDEFINED_CSN"?KJ("visualElementAttached",g,t):F?Af("visualElementAttached",t,F,g):_.IJ("visualElementAttached",t,g)};
$kt=function(F,q,t,u,J){mkq(F,q,t,J)};
mkq=function(F,q,t,u){biW(t,q);var J=UH({cttAuthInfo:CB(q)||void 0},q);t={csn:q,ve:t.getAsJson(),eventType:1};u&&(t.clientData=u);q==="UNDEFINED_CSN"?KJ("visualElementShown",J,t):F?Af("visualElementShown",t,F,J):_.IJ("visualElementShown",t,J)};
y3f=function(F,q,t,u){biW(t,q);var J=UH({cttAuthInfo:CB(q)||void 0},q);t={csn:q,ve:t.getAsJson(),eventType:4};u&&(t.clientData=u);q==="UNDEFINED_CSN"?KJ("visualElementShown",J,t):F?Af("visualElementShown",t,F,J):_.IJ("visualElementShown",t,J)};
CSC=function(F,q,t,u,J){var g=(u=u===void 0?!1:u)?16:8;u=UH({cttAuthInfo:CB(q)||void 0,endOfSequence:u},q);t={csn:q,ve:t.getAsJson(),eventType:g};J&&(t.clientData=J);q==="UNDEFINED_CSN"?KJ("visualElementHidden",u,t):F?Af("visualElementHidden",t,F,u):_.IJ("visualElementHidden",t,u)};
Vqo=function(F,q,t,u,J){dk3(F,q,t,void 0,u,J)};
dk3=function(F,q,t,u,J){biW(t,q);u=u||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var g=UH({cttAuthInfo:CB(q)||void 0},q);t={csn:q,ve:t.getAsJson(),gestureType:u};J&&(t.clientData=J);q==="UNDEFINED_CSN"?KJ("visualElementGestured",g,t):F?Af("visualElementGestured",t,F,g):_.IJ("visualElementGestured",t,g)};
Ukf=function(F,q,t,u){var J=UH({cttAuthInfo:CB(q)||void 0},q);t={csn:q,ve:t.getAsJson(),clientData:u};q==="UNDEFINED_CSN"?KJ("visualElementStateChanged",J,t):F?Af("visualElementStateChanged",t,F,J):_.IJ("visualElementStateChanged",t,J)};
Swq=function(){var F=xgy(16);for(var q=[],t=0;t<F.length;t++)q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(F[t]&63));return q.join("")};
KJ=function(F,q,t){hQu.push({payloadName:F,payload:t,jspbPayload:void 0,options:q});Kyf||(Kyf=GaW())};
nMM=function(F){if(hQu){for(var q=_.X(hQu),t=q.next();!t.done;t=q.next())t=t.value,t.payload&&(t.payload.csn=F.csn,_.IJ(t.payloadName,t.payload,t.options));hQu.length=0}Kyf=0};
IXv=function(F,q){return""+F.getAsJson().veType+F.getAsJson().veCounter+q};
biW=function(F,q){if(_.E("no_client_ve_attach_unless_shown")){var t=IXv(F,q);PSP.set(t,!0);HiM(F,q)}};
HiM=function(F,q){F=IXv(F,q);Sc.has(F)&&(q=Sc.get(F)||[],hV(q[0],q[1],q[2],q[3],!0),Sc.delete(F))};
UH=function(F,q){_.E("log_sequence_info_on_gel_web")&&(F.sequenceGroup=q);return F};
_.Bo=function(F,q,t){_.UK(hV)(void 0,F,q,t)};
_.LJ=function(F,q,t){_.UK(vxu)(void 0,F,q,t)};
_.fJ=function(F,q){_.UK($kt)(void 0,F,q,void 0,void 0,void 0)};
_.aD=function(F,q,t){_.UK(function(){_.B_(q,function(u){y3f(void 0,F,u,t)})})()};
_.jc=function(F,q,t,u){_.UK(function(){_.B_(q,function(J){CSC(void 0,F,J,t,u)})})()};
_.co=function(F,q,t){_.UK(Vqo)(void 0,F,q,t,void 0)};
_.FE=function(F,q,t,u){_.UK(dk3)(void 0,F,q,t,u,void 0)};
_.qp=function(F,q,t){_.UK(Ukf)(void 0,F,q,t,void 0)};
Bzo=function(F,q){tx.set(F,q)};
Lyo=function(F){return uC.initialized?uC.enabledSpans?uC.enabledSpans[F]:!0:!1};
fXP=function(F,q){if(F){q=q===void 0?1:q;if(F){F.endTime=(0,_.gB)();q&&(F.status=q);q=_.X(uC.processors);for(var t=q.next();!t.done;t=q.next()){var u=void 0,J=void 0;(J=(u=t.value).onSpanEnd)==null||J.call(u,F)}}F!==uC.stack[uC.stack.length-1]&&_.bz(Error("xf`"+F.name));uC.stack.pop()}};
aX_=function(F,q,t){if(Lyo(F)){var u=uC.nextSpanId++,J=uC.stack[uC.stack.length-1];F={id:u,parentId:J==null?void 0:J.id,name:F,attributes:q,traceId:J?J.traceId:u,sessionId:uC.sessionId,startTime:(0,_.gB)(),status:0};J&&(J.children||(J.children=[]),J.children.push(F));J=_.X(uC.processors);for(q=J.next();!q.done;q=J.next()){var g=u=void 0;(g=(u=q.value).onSpanStart)==null||g.call(u,F)}}else F=void 0;F?uC.stack.push(F):F=void 0;if(!F)return t();try{var Y=t(F);fXP(F);return Y}catch(Q){throw fXP(F,2),
Q;}};
j$u=function(){};
c3q=function(F,q){var t=Object.keys(F);F=new _.D0("[Command Handler] "+q,{filteredCommandNames:t,originalCommand:F});_.mH(F)};
Flu=function(F,q){c3q(F,q+" was called but not set")};
qqy=function(F){return function(){return new F}};
Jx=function(F){return function(){return _.sV().resolve(F)}};
tG3=function(F,q){var t=_.n(F,_.UD);if(t&&(t=q[t.signal]))return t();F=_.X(Object.keys(F));for(t=F.next();!t.done;t=F.next())if(t=t.value,q[t]&&(t=q[t]))return t()};
_.sf=function(F,q,t,u){return{browseEndpoint:{browseId:F},commandMetadata:{webCommandMetadata:{url:q,rootVe:t,webPageType:u===void 0?"WEB_PAGE_TYPE_BROWSE":u}}}};
uS3=function(F,q,t){var u=q=q===void 0?0:q;t=t===void 0?0:t;var J=t-u;return _.gj(F,"PPSV",void 0,void 0,(J>600?0:J<60||t<=0||u/t>.9)?0:q)};
_.gj=function(F,q,t,u,J){var g="/watch?v="+F;F={videoId:F};q&&(F.playlistId=q,g+="&list="+q);u&&(g+="&pp="+u);J&&(F.startTimeSeconds=J,g+="&t="+J+"s");q={watchEndpoint:F,commandMetadata:{webCommandMetadata:{url:g,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};t&&(q.clickTrackingParams=t);u&&(_.n(q,_.Fw).playerParams=u);return q};
J1y=function(F){return{browseEndpoint:{browseId:"VL"+F},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+F,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
stu=function(F){if(F){var q;if(F){var t=(q=_.n(F.commandMetadata,_.EH))==null?void 0:q.url;q=!(!t||t==="/service_ajax")}else q=!1;if(q)return F;var u;if(F=(u=_.n(F,_.wY))==null?void 0:u.commands)for(u=_.X(F),F=u.next();!F.done;F=u.next())if(F=stu(F.value))return F}};
_.lC=function(F){return{runs:[{text:F}]}};
gH3=function(F,q){return F&&q?{runs:[{text:F,navigationEndpoint:q}]}:void 0};
XE=function(F){return F?_.lC(F):void 0};
_.Yv=function(F){return F?{simpleText:F}:void 0};
_.pj=function(F){var q=F.type;F=F.payload;q={type:q};F!==void 0&&(q.payload=F);return q};
l1P=function(F,q,t){for(var u=Object.assign({},F),J=_.X(Object.keys(q)),g=J.next();!g.done;g=J.next()){g=g.value;var Y=F[g],Q=q[g];if(Q===void 0)delete u[g];else if(Y===void 0)u[g]=Q;else if(Array.isArray(Q)&&Array.isArray(Y))u[g]=t?[].concat(_.mZ(Y),_.mZ(Q)):Q;else if(!Array.isArray(Q)&&_.ho(Q)&&!Array.isArray(Y)&&_.ho(Y))u[g]=l1P(Y,Q,t);else if(typeof Q===typeof Y)u[g]=Q;else return q=new _.D0("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:g,originalValue:Y,updateValue:Q}),
_.mH(q),F}return u};
pXf=function(F){if(!F.length)return"";try{if(XXq)return XXq.decode(F);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(F)}catch(Y){}for(var q=0,t=[],u=F.length;q<u;){for(var J=0;J<1024&&q<u;){var g=F[q++];if(g<128)YqC[J++]=g;else{if(g<224)g=(g&31)<<6|F[q++]&63;else if(g<240)g=(g&15)<<12|(F[q++]&63)<<6|F[q++]&63;else{if(J+1===1024){--q;break}g=(g&7)<<18|(F[q++]&63)<<12|(F[q++]&63)<<6|F[q++]&63;g-=65536;YqC[J++]=55296|g>>10;g=56320|g&1023}YqC[J++]=g}}g=String.fromCharCode.apply(String,
YqC);J<1024&&(g=g.substring(0,J));t.push(g)}return t.join("")};
eOf=function(F,q){var t;if((t=Qtt)==null?0:t.encodeInto)return q=Qtt.encodeInto(F,q),q.read<F.length?F.length*4:q.written;for(var u=t=0;u<F.length;u++){var J=F.charCodeAt(u);J<128?q[t++]=J:(J<2048?q[t++]=J>>6|192:((J&64512)===55296&&u+1<F.length&&(F.charCodeAt(u+1)&64512)===56320?(J=65536+((J&1023)<<10)+(F.charCodeAt(++u)&1023),q[t++]=J>>18|240,q[t++]=J>>12&63|128):q[t++]=J>>12|224,q[t++]=J>>6&63|128),q[t++]=J&63|128)}return t};
Zu3=function(F,q,t){if(q&&t&&t.buffer===q.exports.memory.buffer){var u=q.realloc(t.byteOffset,F);if(u)return new Uint8Array(q.exports.memory.buffer,u,F)}F=q?new Uint8Array(q.exports.memory.buffer,q.malloc(F),F):new Uint8Array(F);t&&F.set(t);return F};
_.ez=function(F){F=new ROv(new r1f([_.f3(decodeURIComponent(F))]));if(NRv(F,2)){var q=QX(F);var t=F.pos;var u=F.arrayView;t=t===void 0?0:t;var J=q===void 0?-1:q;t=t===void 0?0:t;J=J===void 0?-1:J;if(u.totalLength&&J){J<0&&(J=u.totalLength-t);u.focus(t);if(!(t-u.arrayPos+J<=u.arrays[u.arrayIdx].length)){var g=u.arrayIdx,Y=u.arrayPos;u.focus(t+J-1);Y=new Uint8Array(u.arrayPos+u.arrays[u.arrayIdx].length-Y);for(var Q=0,e=g;e<=u.arrayIdx;e++)Y.set(u.arrays[e],Q),Q+=u.arrays[e].length;u.arrays.splice(g,
u.arrayIdx-g+1,Y);u.arrayIdx=0;u.arrayPos=0;u.focus(t)}g=u.arrays[u.arrayIdx];u=new DataView(g.buffer,g.byteOffset+t-u.arrayPos,J)}else u=new DataView(new ArrayBuffer(0));u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength);F.pos+=q;q=u}else q=void 0;q=q?pXf(q):void 0;F=NRv(F,4)?QX(F):void 0;u=wXo[F];if(typeof u==="undefined")throw F=new _.D0("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:F}),_.mH(F),F;return{entityTypeFieldNumber:F,entityType:u,entityId:q}};
_.wj=function(F,q,t){t=t===void 0?0:t;var u=new iut;if(Qtt)F=Qtt.encode(F);else{var J=new Uint8Array(Math.ceil(F.length*1.2)),g=eOf(F,J);J.length<g&&(J=new Uint8Array(g),g=eOf(F,J));J.length>g&&(J=J.subarray(0,g));F=J}F!==void 0&&(Zx(u,18),J=F.length,Zx(u,J),Np(u,J),u.buf.set(F,u.pos),u.pos+=J);F=kYC[q];if(typeof F==="undefined")throw t=new _.D0("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:q}),_.mH(t),t;F!==void 0&&(Zx(u,32),Zx(u,F));Zx(u,40);Zx(u,1);q=new Uint8Array(u.buf.buffer,
u.buf.byteOffset,u.pos);return encodeURIComponent(_.A9(q,t))};
EHq=function(F){F=F.key||F.id;if(!F)throw Error("zf");return F};
oHy=function(F,q){F=F===void 0?{}:F;return zOM(F,q)};
nHu=function(F,q,t,u){if(u===void 0)return u=Object.assign({},F[q]||{}),t=(delete u[t],u),u={},Object.assign({},F,(u[q]=t,u));var J={},g={};return Object.assign({},F,(g[q]=Object.assign({},F[q],(J[t]=u,J)),g))};
MG$=function(F,q,t,u,J){var g=F[q];if(g==null||!g[t])return F;u=l1P(g[t],u,J==="REPEATED_FIELDS_MERGE_OPTION_APPEND");J={};g={};return Object.assign({},F,(g[q]=Object.assign({},F[q],(J[t]=u,J)),g))};
_.iC=function(F,q,t){return F[q]?F[q][t]||null:null};
GYv=function(){if(TR3)return TR3();var F={};TR3=sI("PersistentEntityStoreDb",{objectStores:(F.EntityStore={addedAtVersion:1},F.EntityAssociationStore={addedAtVersion:2},F),shared:!1,upgrade:function(q,t){t(1)&&S1(UI(q,"EntityStore",{keyPath:"key"}),"entityType","entityType");t(2)&&(q=UI(q,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),S1(q,"byParentEntityKey","parentEntityKey"),S1(q,"byChildEntityKey","childEntityKey"))},
version:3});return TR3()};
DXP=function(F){return _.am(GYv(),F)};
kv=function(F){return window.Int32Array?new Int32Array(F):Array(F)};
Ouf=function(F){return _.am(Wl3(),F)};
P4o=function(F){return new Ef("WRONG_DATA_TYPE",{encoderVersion:F})};
xX_=function(F){return F instanceof Error?new Ef("UNKNOWN_ENCODE_ERROR",{originalMessage:F.message}):new Ef("UNKNOWN_ENCODE_ERROR")};
A1v=function(F){return F instanceof Error?new Ef("UNKNOWN_DECODE_ERROR",{originalMessage:F.message}):new Ef("UNKNOWN_DECODE_ERROR")};
vHt=function(F,q){F=F instanceof Ef?F:q(F);_.mH(F);throw F;};
I1o=function(F){F=(new TextEncoder).encode(F).subarray(0,16);var q=new Uint8Array(16);q.set(F);return q};
mXt=function(F){var q=Hut[F];if(q)return q;_.bz(new _.D0("Entity model not found.",{entityType:F}))};
_.z5=function(){$Xv||($Xv=buC());return $Xv};
buC=function(){var F,q,t;return _.p(function(u){if(u.nextAddress==1)return _.zg(u,2),u.yield(_.JD(),4);if(u.nextAddress!=2){F=u.yieldResult;if(!F||!_.GQ()||typeof _.uu.BroadcastChannel==="undefined")return u.return();q=new y1q;return u.return(new oY(F,q))}t=_.Gg(u);t instanceof Error&&_.mH(t);return u.return()})};
_.nj=function(F,q){var t;return _.p(function(u){if(u.nextAddress==1){t=F.mutations;if(!t||t.length<=0)return u.return();q&&q.dispatch(_.pj({type:"ENTITY_LOADED",payload:t}));return u.yield(C4M(t),2)}t.length=0;_.WA(u)})};
C4M=function(F){var q;return _.p(function(t){return t.nextAddress==1?t.yield(_.z5(),2):(q=t.yieldResult)?t.yield(_.Mp(q,"readwrite",function(u){for(var J={},g=_.X(F),Y=g.next(),Q={};!Y.done;Q={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},Y=g.next())Q.mutation$jscomp$4=Y.value,Q.mutation$jscomp$4.entityKey&&dXo(Q.mutation$jscomp$4)&&(Q.mutationEntityType$jscomp$3=(0,_.m7.getAnyKey)(Q.mutation$jscomp$4.payload),Y=void 0,Q.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(Y=function(e){return function(){return _.VGq(u,
e.mutation$jscomp$4.payload[e.mutationEntityType$jscomp$3],e.mutationEntityType$jscomp$3)}}(Q)),Q.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(Y=function(e){return function(){return UXy(u,e.mutation$jscomp$4.entityKey)}}(Q)),Q.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(Y=function(e){return function(){return Sqo(u,e.mutation$jscomp$4.entityKey,e.mutation$jscomp$4.payload[e.mutationEntityType$jscomp$3],e.mutationEntityType$jscomp$3)}}(Q)),Y&&(J[Q.mutation$jscomp$4.entityKey]=
J[Q.mutation$jscomp$4.entityKey]?J[Q.mutation$jscomp$4.entityKey].then(Y):Y()));
return UV.all(Object.values(J))}),0):t.return()})};
dXo=function(F){var q;F=(q=F.options)==null?void 0:q.persistenceOption;return F==="ENTITY_PERSISTENCE_OPTION_PERSIST"||F==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
BRA=function(F,q){var t,u;_.p(function(J){if(J.nextAddress==1)return J.yield(_.z5(),2);if(J.nextAddress!=3)return(t=J.yieldResult)?J.yield(_.Mp(t,"readonly",function(g){var Y={},Q=Object.keys(q).map(function(e){var r=q[e]?[].concat(_.mZ(q[e])):[];return hO3(g,e,r,Y)});
return UV.all(Q).then(function(){return Y})}),3):J.return();
u=J.yieldResult;Object.keys(u).length>0&&F.dispatch(Klo(u));_.WA(J)})};
hO3=function(F,q,t,u){return T5(F,q,t).then(function(J){u[q]=LlP(t,J)})};
LlP=function(F,q){if(q.length!==F.length)throw Error("Cf");return q.reduce(function(t,u,J){t[F[J]]=u;return t},{})};
jtA=function(F){var q=F.filter(function(J){var g;return(J==null?void 0:(g=J.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_COMPLETE"}).length,t=F.filter(function(J){var g;
return(J==null?void 0:(g=J.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_FAILED"}).length,u=F.filter(function(J){var g;
return(J==null?void 0:(g=J.transferEntity)==null?void 0:g.transferState)&&f1$.includes(J.transferEntity.transferState)});
if(!(q||u!=null&&u.length))return 0;q=_.a1W(u)+q;F=F.length-t;return F===0?0:Math.round(q*100/F)/100};
_.a1W=function(F){var q=[];q=q.concat.apply(q,_.mZ(F.filter(function(g){return g.streamEntity}).map(function(g){var Y=Object.assign({},g.streamEntity),Q,e=(Q=g.transferEntity)==null?void 0:Q.transferState;
Y.streamsProgress=Y.streamsProgress||[];Y.streamsProgress=Y.streamsProgress.map(function(r){var N=Object.assign({},r);N.numBytesDownloaded=e==="TRANSFER_STATE_COMPLETE"?r.numTotalBytes:r.numBytesDownloaded;return N});
return Y}).map(function(g){return g.streamsProgress})));
var t=F=0;q=_.X(q);for(var u=q.next();!u.done;u=q.next()){var J=u.value;u=Number(J.numBytesDownloaded);J=Number(J.numTotalBytes);t+=isNaN(u)?0:u;F+=isNaN(J)?0:J}return F===0?0:Math.round(t*100/F)/100};
c1_=function(F){if(!F||!F.expirationTimestamp||!F.action)return!1;var q=(0,_.gB)()/1E3;return Number(F.expirationTimestamp)>=q};
G5=function(F){return F&&F.expirationTimestamp&&F.action?c1_(F)&&F.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Dx=function(F){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(F||"TRANSFER_STATE_UNKNOWN")};
FLW=function(F){var q=new iut;if(F!==void 0){var t=Math.ceil(Math.log2(F.length*4+2)/7);t=t===void 0?2:t;Zx(q,10);q.submessagePosStack.push(q.pos);q.submessagePosStack.push(t);q.pos+=t;Np(q,F.length*1.2);t=eOf(F,q.buf.subarray(q.pos));q.pos+t>q.buf.length&&(Np(q,t),t=eOf(F,q.buf.subarray(q.pos)));q.pos+=t;F=q.submessagePosStack.pop();t=q.submessagePosStack.pop();for(var u=q.pos-t-F;F--;){var J=F?128:0;q.view.setUint8(t++,u&127|J);u>>=7}}q=new Uint8Array(q.buf.buffer,q.buf.byteOffset,q.pos);return(new TextDecoder("utf-8")).decode(q)};
_.W5=function(F){var q=0;F=_.X(F);for(var t=F.next(),u={};!t.done;u={transferState$jscomp$3:void 0},t=F.next()){var J=t.value,g=void 0;t=(g=J.streamEntity)!=null?g:{};g=void 0;u.transferState$jscomp$3=(g=J.transferEntity)==null?void 0:g.transferState;g=J=void 0;((J=t)==null?0:(g=J.streamsProgress)==null?0:g.length)&&t.streamsProgress.forEach(function(Y){return function(Q){Q=Number(Y.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?Q.numTotalBytes:Q.numBytesDownloaded);isFinite(Q)&&(q+=Q)}}(u))}return q};
qX$=function(F){return F.some(function(q){var t;if(!(q==null?0:(t=q.transferEntity)==null?0:t.transferState)){var u;return!(q==null?0:(u=q.policyEntity)==null?0:u.action)||q.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return f1$.includes(q.transferEntity.transferState)})};
tRt=function(F,q){if(!q)return!1;if(_.E("of_pb_en_po_ks"))return!0;var t;F=(t=_.iC(F,"offlineVideoPolicy",_.wj(q,"offlineVideoPolicy")))!=null?t:void 0;return!!F&&G5(F)};
_.Jhf=function(F){var q=["TRANSFER_STATE_COMPLETE"];q=q===void 0?uZt:q;return F.filter(function(t){var u,J;return q.includes((J=(u=t.transferEntity)==null?void 0:u.transferState)!=null?J:"TRANSFER_STATE_UNKNOWN")})};
slP=function(F,q){if(q){var t,u=(t=_.iC(F,"playbackData",_.wj(q,"playbackData")))!=null?t:null,J;t=(J=_.iC(F,"transfer",_.wj(q,"transfer")))!=null?J:null;var g;J=(g=_.iC(F,"offlineVideoStreams",_.wj(q,"offlineVideoStreams")))!=null?g:null;var Y;F=(Y=_.iC(F,"offlineVideoPolicy",_.wj(q,"offlineVideoPolicy")))!=null?Y:null;if(u||t||J||F)return{playbackDataEntity:u,transferEntity:t,streamEntity:J,policyEntity:F}}};
_.Of=function(F){var q=F.playbackData;if(!q)return[];var t=[];q=_.X(Object.keys(q));for(var u=q.next();!u.done;u=q.next()){var J=u.value;if(!gAA(F,_.ez(J).entityId)&&(u=slP(F,_.ez(J).entityId))){var g=void 0,Y=void 0;J=(Y=Number((g=_.iC(F,"playbackData",J))==null?void 0:g.streamDownloadTimestampSeconds))!=null?Y:(0,_.gB)();t.push({entity:u,streamDownloadTimestamp:J})}}return t.sort(function(Q,e){var r=Q.streamDownloadTimestamp,N=e.streamDownloadTimestamp;return N===r?Q.entity.streamEntity&&!e.entity.streamEntity?
1:-1:N-r}).map(function(Q){return Q.entity})};
l2C=function(F){return _.Jhf(_.Of(F))};
_.XQu=function(F){return _.Of(F).filter(function(q){var t;if(((t=q.policyEntity)==null?0:t.action)&&q.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var u;if((u=q.transferEntity)==null?0:u.transferState){var J;return f1$.includes((J=q.transferEntity)==null?void 0:J.transferState)}return!0})};
gAA=function(F,q){var t;return((t=_.iC(F,"downloadStatusEntity",_.wj(q,"downloadStatusEntity")))==null?void 0:t.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
YXo=function(F){var q;if(F==null?0:(q=F.playbackDataEntity)==null?0:q.key)return _.ez(F.playbackDataEntity.key).entityId;var t;if(F==null?0:(t=F.transferEntity)==null?0:t.key)return _.ez(F.transferEntity.key).entityId;var u;if(F==null?0:(u=F.streamEntity)==null?0:u.key)return _.ez(F.streamEntity.key).entityId;var J;if(F==null?0:(J=F.policyEntity)==null?0:J.key)return _.ez(F.policyEntity.key).entityId};
QlM=function(F){var q=new Set,t;F=(t=F.mainDownloadsListEntity)==null?void 0:t[pQC];var u;if(!(F==null?0:(u=F.downloads)==null?0:u.length))return q;var J;F==null||(J=F.downloads)==null||J.forEach(function(g){(g==null?0:g.videoItem)&&q.add(g.videoItem)});
return q};
P5=function(F,q){if(q){var t=_.iC(F,"mainVideoEntity",_.wj(q,"mainVideoEntity")),u=_.iC(F,"downloadStatusEntity",_.wj(q,"downloadStatusEntity")),J=_.iC(F,"ytMainChannelEntity",_.wj(q,"ytMainChannelEntity")),g={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};F=slP(F,q);u=(u==null?void 0:u.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.E("woffle_render_failed_download_state_ks")&&(u==null?void 0:u.downloadState)==="DOWNLOAD_STATE_FAILED";!F&&u&&(F=g);if(F&&t&&
J)return Object.assign({},{videoEntity:t,channelEntity:J},F)}};
ZCM=function(F,q){return eMf(F,q)==="TRANSFER_STATE_COMPLETE"&&tRt(F,q)};
RMt=function(F,q){if(!q)return!1;var t;F=(t=_.iC(F,"playbackData",_.wj(q,"playbackData")))!=null?t:void 0;return!!F&&!!F.playerResponseJson};
eMf=function(F,q){if(!q)return"TRANSFER_STATE_UNKNOWN";var t=_.iC(F,"transfer",_.wj(q,"transfer"));if(t){var u;return(u=t.transferState)!=null?u:"TRANSFER_STATE_UNKNOWN"}t=_.iC(F,"offlineOrchestrationActionWrapperEntity",_.wj(q,"offlineOrchestrationActionWrapperEntity"));F=_.iC(F,"mainVideoEntity",_.wj(q,"mainVideoEntity"));return t||F?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
rho=function(F,q){if(!q)return"TRANSFER_STATE_UNKNOWN";if(F=_.iC(F,"transfer",_.wj(q,"transfer"))){var t;return(t=F.transferState)!=null?t:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
NXq=function(F,q){return q&&(F=_.iC(F,"videoPlaybackPositionEntity",_.wj(q,"videoPlaybackPositionEntity")),F==null?0:F.lastPlaybackPositionSeconds)?Number(F.lastPlaybackPositionSeconds):0};
iCf=function(F,q){return wQf(F).some(function(t){var u;return(t==null?void 0:(u=t.mainPlaylistEntity)==null?void 0:u.playlistId)===q})};
EA_=function(F,q,t){var u=kTt(F,q);if(!u.length)return[];q=[];u=_.X(u);for(var J=u.next();!J.done;J=u.next()){J=J.value;var g=P5(F,J);t&&eMf(F,J)!=="TRANSFER_STATE_COMPLETE"||g&&q.push(g)}return q};
kTt=function(F,q){if(!q)return[];var t=_.wj(q,"mainPlaylistEntity"),u;q=(u=F.mainPlaylistEntity)==null?void 0:u[t];u=[];if(q==null||!q.videos)return u;q=_.X(q.videos);for(t=q.next();!t.done;t=q.next()){t=t.value;var J=void 0,g=void 0,Y=void 0,Q=(J=F)==null?void 0:(g=J.mainPlaylistVideoEntity)==null?void 0:(Y=g[t])==null?void 0:Y.video;Q&&(t=_.ez(Q).entityId)&&u.push(t)}return u};
zMP=function(F,q){if(q){var t=_.iC(F,"mainPlaylistEntity",_.wj(q,"mainPlaylistEntity")),u=_.iC(F,"mainPlaylistDownloadStateEntity",_.wj(q,"mainPlaylistDownloadStateEntity"));F=_.iC(F,"ytMainChannelEntity",_.wj(q,"ytMainChannelEntity"));if(u&&t)return Object.assign({},{mainPlaylistEntity:t,mainPlaylistDownloadStateEntity:u},!!F&&{channelEntity:F})}};
wQf=function(F){return oA3(F).sort(function(q,t){return t.addedTimestampMillis-q.addedTimestampMillis}).map(function(q){return q.downloadedPlaylistEntities})};
oA3=function(F){var q=F.mainPlaylistDownloadStateEntity,t=[];if(!q)return t;for(var u=_.X(Object.keys(q)),J=u.next();!J.done;J=u.next()){var g=J.value;J=zMP(F,_.ez(g).entityId);var Y=void 0;g=Number((Y=q[g])==null?void 0:Y.addedTimestampMillis);Y=isNaN(g)?(0,_.gB)():g;J!==void 0&&t.push({downloadedPlaylistEntities:J,addedTimestampMillis:Y})}return t};
nAu=function(F){var q,t=(q=F.mainPlaylistVideoEntity)!=null?q:{};return new Set(wQf(F).reduce(function(u,J){u=u===void 0?[]:u;var g,Y;J==null||(g=J.mainPlaylistEntity)==null||(Y=g.videos)==null||Y.forEach(function(Q){var e;(Q=(e=t[Q])==null?void 0:e.video)&&u.push(Q)});
return u},[]))};
MR3=function(F){return"downloadedMusicPlaylistEntities"in F};
TXo=function(F){return"mainPlaylistEntity"in F&&"mainPlaylistDownloadStateEntity"in F};
GT$=function(F){return"videoEntity"in F&&"channelEntity"in F};
DCq=function(F){var q=F.musicPlaylistDownloadMetadataEntity,t=[];if(!q)return t;for(var u=_.X(Object.keys(q)),J=u.next();!J.done;J=u.next()){J=J.value;a:{var g=F,Y=_.ez(J).entityId;if(Y){var Q=_.iC(g,"musicPlaylist",_.wj(Y,"musicPlaylist"));g=_.iC(g,"musicPlaylistDownloadMetadataEntity",_.wj(Y,"musicPlaylistDownloadMetadataEntity"));if(Q&&g){Q={musicPlaylistEntity:Q,musicPlaylistDownloadStateEntity:g};break a}}Q=void 0}g=void 0;J=Number((g=q[J])==null?void 0:g.addedTimestampMillis);J=isNaN(J)?(0,_.gB)():
J;Q!==void 0&&t.push({downloadedMusicPlaylistEntities:Q,addedTimestampMillis:J})}return t};
WLf=function(F){var q=new Set;F=_.X(F);for(var t=F.next();!t.done;t=F.next())if(t=t.value,"musicPlaylistEntity"in t&&"musicPlaylistDownloadStateEntity"in t){t=_.X(t.musicPlaylistEntity.tracks);for(var u=t.next();!u.done;u=t.next())q.add(u.value)}return q};
OCo=function(F,q){if(q){var t=_.iC(F,"musicTrack",_.wj(q,"musicTrack")),u=_.iC(F,"musicArtist",_.wj(q,"musicArtist"))||{};if((F=slP(F,q))&&t&&u)return Object.assign({},{musicTrackEntity:t,musicArtistEntity:u},F)}};
Pvo=function(F){var q=F.musicTrackDownloadMetadataEntity,t=[];if(!q)return[];q=_.X(Object.keys(q));for(var u=q.next();!u.done;u=q.next()){var J=u.value;u=OCo(F,_.ez(J).entityId);var g=void 0;J=Number((g=_.iC(F,"musicTrackDownloadMetadataEntity",J))==null?void 0:g.addedTimestampMillis);g=isNaN(J)?(0,_.gB)():J;u!==void 0&&t.push({downloadedMusicEntities:u,addedTimestampMillis:g})}return t};
vAC=function(F,q){if(!q)return[];if(Object.values(xCu).includes(q))return AhC(F,q);q=_.wj(q,"musicPlaylist");var t;F=(t=F.musicPlaylist)==null?void 0:t[q];t=[];if(F==null||!F.tracks)return t;F=_.X(F.tracks);for(q=F.next();!q.done;q=F.next())(q=_.ez(q.value).entityId)&&t.push(q);return t};
AhC=function(F,q){var t=new Set,u=DCq(F).map(function(g){return g.downloadedMusicPlaylistEntities});
u=WLf(u);u=_.X(u);for(var J=u.next();!J.done;J=u.next())(J=_.ez(J.value).entityId)&&t.add(J);return I2y(F).downloadedMusicEntities.filter(function(g){var Y;if((Y=g.musicTrackEntity)!=null&&Y.videoId){g=g.musicTrackEntity;if(Y=q==="PPOM"?!0:!t.has(g.videoId))b:switch(g=g.musicVideoType,q){case "PPSE":Y=g==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:Y=g!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}g=Y}else g=!1;return g}).map(function(g){var Y;
return(Y=g.musicTrackEntity)==null?void 0:Y.videoId})};
I2y=function(F){var q=Pvo(F).sort(function(t,u){return u.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return"downloadedMusicEntities"in t?t.downloadedMusicEntities:MR3(t)?t.downloadedMusicPlaylistEntities:{}});
F=DCq(F).sort(function(t,u){return u.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return"downloadedMusicEntities"in t?t.downloadedMusicEntities:MR3(t)?t.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:q,downloadedMusicPlaylistEntities:F}};
mCA=function(F,q){q=_.bn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?vAC(F,q):kTt(F,q);if(!q.length)return"TRANSFER_STATE_UNKNOWN";q=q.map(function(t){return rho(F,t)});
return HCP(q)};
HCP=function(F){var q=new Set(F);if(q.has("TRANSFER_STATE_FAILED")&&q.size===1)return"TRANSFER_STATE_FAILED";q.delete("TRANSFER_STATE_FAILED");if(q.has("TRANSFER_STATE_UNKNOWN")&&q.size===1)return"TRANSFER_STATE_PRE_TRANSFER";q.delete("TRANSFER_STATE_UNKNOWN");if(q.has("TRANSFER_STATE_PRE_TRANSFER")&&q.size===1||q.size===0)return"TRANSFER_STATE_PRE_TRANSFER";F=q.has("TRANSFER_STATE_TRANSFERRING");q=q.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return F||q?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
xv=function(F){var q=F.mainVideoDownloadStateEntity,t=[];if(!q)return[];q=_.X(Object.keys(q));for(var u=q.next();!u.done;u=q.next()){var J=u.value;if(!gAA(F,_.ez(J).entityId)){u=P5(F,_.ez(J).entityId);var g=void 0,Y=void 0;J=(Y=Number((g=_.iC(F,"mainVideoDownloadStateEntity",J))==null?void 0:g.addedTimestampMillis))!=null?Y:(0,_.gB)();u!==void 0&&t.push({downloadedVideoEntities:u,addedTimestampMillis:J})}}return t};
$Co=function(F){return xv(F).sort(function(q,t){return t.addedTimestampMillis-q.addedTimestampMillis}).map(function(q){return q.downloadedVideoEntities})};
_.yho=function(F){var q=nAu(F),t=_.Ax(F),u=QlM(F),J=xv(F).filter(function(Y){var Q,e;if((Y==null?void 0:(Q=Y.downloadedVideoEntities)==null?void 0:(e=Q.transferEntity)==null?void 0:e.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var r,N;Y=Y==null?void 0:(r=Y.downloadedVideoEntities)==null?void 0:(N=r.videoEntity)==null?void 0:N.key;return _.E("kevlar_use_library_entity")?Y&&(u.has(Y)||t[Y]):Y&&!q.has(Y)}),g=oA3(F).filter(function(Y){return mCA(F,Y.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.mZ(J),_.mZ(g)).sort(function(Y,Q){return Q.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return bCA(Y)})};
Cvu=function(F,q){if(q&&tRt(F,q)){var t,u,J=(u=(t=_.iC(F,"playbackData",_.wj(q,"playbackData")))!=null?t:void 0)==null?void 0:u.playerResponseJson;if(J){try{var g=JSON.parse(J);var Y=_.iC(F,"transfer",_.wj(q,"transfer")),Q=NXq(F,q);Q&&(g=Object.assign({},g,{playerConfig:Object.assign({},g.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+Q*1E3}}})}));g.cotn=Y==null?void 0:Y.cotn}catch(e){}return g}}};
_.VRC=function(F){var q,t,u;F=(u=(t=((q=F.downloadsPageViewConfigurationEntity)!=null?q:{})[_.v5])==null?void 0:t.smartDownloadsOptInBannerVisibility)!=null?u:{};var J;return(J=_.n(F,dC_))!=null?J:{}};
_.Ax=function(F){var q,t,u;F=(u=(t=((q=F.mainDownloadsListEntity)!=null?q:{})[_.UC3])==null?void 0:t.downloads)!=null?u:[];q={};t=_.X(F);for(u=t.next();!u.done;u=t.next())F=void 0,q[(F=u.value.videoItem)!=null?F:""]=!0;return q};
SXM=function(F){var q=_.Ax(F);if(Object.keys(q).length===0)return!1;var t=F.mainVideoEntity;if(!t)return!0;t=_.X(Object.keys(t));for(var u=t.next();!u.done;u=t.next()){u=u.value;var J=_.ez(u).entityId;if(q[u]&&!gAA(F,J))return!1}return!0};
_.IY=function(F){var q=_.Ax(F);return xv(F).sort(function(t,u){return t.addedTimestampMillis-u.addedTimestampMillis}).map(function(t){return t.downloadedVideoEntities}).filter(function(t){var u;
return(t=t==null?void 0:(u=t.videoEntity)==null?void 0:u.key)&&!!q[t]})};
_.KLy=function(F){var q,t,u;F=(u=(t=((q=F.downloadsPageViewConfigurationEntity)!=null?q:{})[_.v5])==null?void 0:t.downloadsUpsellBannerVisibility)!=null?u:{};var J;return(J=_.n(F,hMA))!=null?J:{}};
bCA=function(F){return"downloadedVideoEntities"in F?F.downloadedVideoEntities:"downloadedPlaylistEntities"in F?F.downloadedPlaylistEntities:{}};
BX3=function(F){var q=_.Ax(F),t=nAu(F),u=xv(F).filter(function(J){var g,Y;return(J=J==null?void 0:(g=J.downloadedVideoEntities)==null?void 0:(Y=g.videoEntity)==null?void 0:Y.key)&&!q[J]&&!t.has(J)});
F=oA3(F);return[].concat(_.mZ(u),_.mZ(F)).sort(function(J,g){return g.addedTimestampMillis-J.addedTimestampMillis}).map(function(J){return bCA(J)})};
_.H5=function(F){if(!_.E("kevlar_use_library_entity"))return BX3(F);var q=xv(F).filter(function(u){var J,g;if(J=u=u==null?void 0:(J=u.downloadedVideoEntities)==null?void 0:(g=J.videoEntity)==null?void 0:g.key){var Y,Q,e;J=((Q=(Y=F.mainDownloadsListEntity)==null?void 0:Y[pQC])==null?0:(e=Q.downloads)==null?0:e.length)?QlM(F).has(u):!1}return J}),t=oA3(F);
return[].concat(_.mZ(q),_.mZ(t)).sort(function(u,J){return J.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return bCA(u)})};
LLP=function(F){var q=_.Ax(F),t=nAu(F);return $Co(F).filter(function(u){var J;return(u=u==null?void 0:(J=u.videoEntity)==null?void 0:J.key)&&!q[u]&&!t.has(u)})};
f2C=function(F){if(!_.E("kevlar_use_library_entity"))return LLP(F);var q=_.Ax(F),t=QlM(F);return $Co(F).filter(function(u){var J;return(u=u==null?void 0:(J=u.videoEntity)==null?void 0:J.key)&&!q[u]&&t.has(u)})};
a2P=function(F,q){q=_.wj(q,"settingEntity");var t,u,J;return!!((J=(u=((t=F.settingEntity)!=null?t:{})[q])==null?void 0:u.settingOptionValue)!=null?J:{}).boolValue};
_.mV=function(F){var q=_.IY(F);if(qX$(q))return 0;var t=[];q=_.X(q);for(var u=q.next();!u.done;u=q.next()){u=u.value;var J=void 0,g=void 0;if((J=u)==null?0:(g=J.videoEntity)==null?0:g.key)J=_.ez(u.videoEntity.key).entityId,u=F,J=_.wj(J,"mainVideoDownloadStateEntity"),u=_.iC(u,"mainVideoDownloadStateEntity",J),(u=Number(u==null?void 0:u.addedTimestampMillis))&&t.push(u)}return Math.max.apply(Math,_.mZ(t))};
_.$v=function(F){return F.ui.richGridMiniMode};
_.bC=function(F){return F.ui.richGridItemsPerRow};
_.jl3=function(F){return F.ui.richGridSlimItemsPerRow};
_.cho=function(F){return F.ui.guideIsExpanded};
_.yX=function(F){return F.ui.miniplayerIsActive};
FSP=function(F){return F.ui.singleOptionSurveyIsActive};
_.Cj=function(F){var q;return((q=F.ui)==null?void 0:q.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.qh$=function(F){return _.Cj(F)==="WEB_PAGE_TYPE_WATCH"};
_.t$t=function(F){return _.Cj(F)==="WEB_PAGE_TYPE_SHORTS"};
_.uDu=function(F){return F.ui.inlinePreviewIsActive};
_.J8C=function(F){return F.ui.inlinePreviewIsEnabled};
_.sgM=function(F){return F.ui.miniplayerPlaybackState};
_.dj=function(F){return F.ui.isOnline};
_.gQM=function(F){return F.ui.frostedGlassMode};
_.VX=function(F,q){return eMf(F.entities,q)};
_.Uf=function(F,q){return mCA(F.entities,q)};
lDu=function(F,q){var t;if(q){var u;F=(u=_.iC(F.entities,"offlineVideoPolicy",_.wj(q,"offlineVideoPolicy")))==null?void 0:u.action}else F=void 0;return(t=F)!=null?t:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
XGW=function(F,q){var t;q?(F=_.iC(F.entities,"offlineVideoPolicy",_.wj(q,"offlineVideoPolicy")),F=Number(F==null?void 0:F.expirationTimestamp)):F=void 0;return(t=F)!=null?t:0};
_.YhA=function(F){return _.Of(F.entities).length};
pGv=function(F,q){return P5(F.entities,q)};
QgA=function(F,q){return zMP(F.entities,q)};
Sz=function(F,q){return(F=P5(F.entities,q))?_.a1W([F]):0};
_.ezM=function(F,q){var t=_.bn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(t){var u=F.entities;var J=vAC(u,q);if(J.length){var g=[];J=_.X(J);for(var Y=J.next();!Y.done;Y=J.next())(Y=OCo(u,Y.value))&&g.push(Y);u=g}else u=[]}else u=EA_(F.entities,q);var Q;if(t){var e=F.entities;q?(q=_.wj(q,"musicPlaylist"),e=(Q=e.musicPlaylist)==null?void 0:Q[q],Q=e!=null&&e.tracks?e.tracks.length:0):Q=0}else Q=F.entities,q?(q=_.wj(q,"mainPlaylistEntity"),Q=(e=Q.mainPlaylistEntity)==null?void 0:e[q],Q=Q!=null&&Q.videos?
Q.videos.length:0):Q=0;return u.length!==Q?0:u?jtA(u):0};
_.Z8v=function(F){return F.download.isLeaderTab};
_.RzM=function(F,q,t){if(!q&&t){var u=F.entities;if(t){var J=FLW(t),g,Y;q=(Y=(g=_.iC(u,"offlineabilityEntity",_.wj(J,"offlineabilityEntity")))==null?void 0:g.addToOfflineButtonState)!=null?Y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else q="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else g=F.entities,q?(Y=FLW(q),q=(J=(u=_.iC(g,"offlineabilityEntity",_.wj(Y,"offlineabilityEntity")))==null?void 0:u.addToOfflineButtonState)!=null?J:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):q="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return q};
r83=function(F,q){F=F.entities;if(q){q=FLW(q);var t,u;q=(u=(t=_.iC(F,"offlineabilityEntity",_.wj(q,"offlineabilityEntity")))==null?void 0:t.addToOfflineButtonState)!=null?u:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else q="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return q};
_.N7$=function(F){var q=F.entities;F=_.dj(F);var t=a2P(q,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.E("kevlar_modern_downloads_page")&&t)var u=!1;else{var J,g;q=(g=(J=((u=q.downloadsPageViewConfigurationEntity)!=null?u:{})[_.v5])==null?void 0:J.smartDownloadsOptInBannerVisibility)!=null?g:{};u=F?!!q.visibleWithConnection:!!q.visibleWithoutConnection}return u};
_.wGv=function(F){return a2P(F.entities,"SMART_DOWNLOADS_ENABLED")};
_.i8W=function(F){return SXM(F.entities)};
k_o=function(F){return _.IY(F.entities).every(function(q){var t;return(q==null?void 0:(t=q.transferEntity)==null?void 0:t.transferState)&&!f1$.includes(q.transferEntity.transferState)})};
_.EQo=function(F){var q,t,u,J=(u=(t=((q=F.entities.downloadsPageViewConfigurationEntity)!=null?q:{})[_.v5])==null?void 0:t.downloadsUpsellBannerVisibility)!=null?u:{};return _.dj(F)?!!J.visibleWithConnection:!!J.visibleWithoutConnection};
_.zzo=function(F,q){return gAA(F.entities,q)};
oQP=function(F,q){if(q){var t,u;F=(u=(t=_.iC(F.entities,"downloadStatusEntity",_.wj(q,"downloadStatusEntity")))==null?void 0:t.downloadState)!=null?u:"DOWNLOAD_STATE_UNKNOWN"}else F="DOWNLOAD_STATE_UNKNOWN";return F};
hx=function(F,q){return NXq(F.entities,q)};
G_f=function(F){F=_.nQM(F);var q=F.hours===void 0?0:F.hours,t=F.minutes===void 0?0:F.minutes,u=F.seconds===void 0?0:F.seconds,J=q>0;F=[];J&&(q=_.M$y(q),F.push(q));q=J;q=q===void 0?!1:q;t=(["af","be","lt"].includes(_.Kj)||q)&&t<10?T7t().format(t):(new Intl.NumberFormat("en-u-nu-latn")).format(t);F.push(t);t=T7t().format(u);F.push(t);t=":";"da fi id si sr sr-Latn".split(" ").includes(_.Kj)&&(t=".");return F.join(t)};
_.nQM=function(F){var q=F.hours||0,t=F.minutes||0,u=F.seconds||0;q=u+t*60+q*3600+(F.days||0)*86400+(F.weeks||0)*604800+(F.months||0)*2629800+(F.years||0)*31557600;if(q<=0)return{hours:0,minutes:0,seconds:0};F=q;q=Math.floor(F/3600);F%=3600;t=Math.floor(F/60);u=Math.floor(F%60);return{hours:q,minutes:t,seconds:u}};
_.M$y=function(F){F=(new Intl.NumberFormat("en-u-nu-latn")).format(F);var q=["fr"],t="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(_.Kj)?F.replace(",","\u00a0"):q.includes(_.Kj)?F.replace(",","\u202f"):t.includes(_.Kj)?F.replace(",","."):F};
T7t=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
D4o=function(F){try{return(new _.B5(5)).format(F)}catch(q){}};
Lj=function(F){return{thumbnailOverlayDownloadingRenderer:{state:F}}};
WS_=function(F){if(F=D4o(F))return{thumbnailOverlaySidePanelRenderer:{text:_.lC(F),icon:{iconType:"PLAYLISTS"}}}};
O8o=function(){var F=_.oD("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.lC(F),icon:{iconType:"PLAY_ALL"}}}};
PWv=function(F){F=_.fj(F,2);return _.Kj!=="ru"&&_.Kj!=="es_419"&&_.Kj!=="es-419"&&_.Kj!=="es"&&_.Kj!=="es_US"&&_.Kj!=="es-US"&&_.Kj!=="fr"&&_.Kj!=="pl"&&_.Kj!=="it"&&_.Kj!=="nl"&&_.Kj!=="uk"&&_.Kj!=="fr_CA"&&_.Kj!=="fr-CA"||F===""?F:F[0].toLocaleUpperCase()+F.substring(1)};
A8W=function(F){return function(q){var t=F(),u=_.fj(q,t.dateFormat);q=_.fj(q,t.timeFormat);var J=x4C.DATETIMEFORMATS[t.joinerStyle];J=J.replace(/'(?!')/g,"");J=J.replace("{0}",q);J=J.replace("{1}",u);return t.capitalize(J)}};
vQ_=function(F){return F?typeof F.seconds==="string"&&(F.nanos===void 0||typeof F.nanos==="number"):!1};
IDq=function(F){return new Date(Number(F.seconds)*1E3+(F.nanos||0)*1E-6)};
_.fj=function(F,q){if(typeof F.getTime==="function")F={date:F};else if(vQ_(F))F={date:IDq(F)};else if(typeof vQ_(F.timestamp)&&typeof F.i18nInternalSecondsEastOfUtc==="number")F={date:IDq(F.timestamp),timeZone:aY(-F.i18nInternalSecondsEastOfUtc/60)};else throw Error("Df`"+JSON.stringify(F));var t=F;F=t.date;t=t.timeZone;q=H8f(q).format(F,t);_.Kj==="zh-TW"&&(F=t?Number(H8f("H").format(F,t)):F.getHours(),q=F<5?q.replace("\u4e0a\u5348","\u51cc\u6668"):F<8?q.replace("\u4e0a\u5348","\u65e9\u4e0a"):F<12?
q.replace("\u4e0a\u5348","\u4e0a\u5348"):F<13?q.replace("\u4e0b\u5348","\u4e2d\u5348"):F<19?q.replace("\u4e0b\u5348","\u4e0b\u5348"):q.replace("\u4e0b\u5348","\u665a\u4e0a"));return q};
H8f=function(F){if(m4y.has(F))return m4y.get(F);var q=$4A(F);q=b8t(q);y8M!==!0&&(y8M=!0);CWo=!0;CWo=!1;q=new jz(q,x4C);m4y.set(F,q);return q};
$4A=function(F){return(new jz(F,x4C)).patternParts_.map(function(q){return q.type===0?"'"+q.text+"'":q.text}).join("")};
b8t=function(F){return _.Kj==="en"||_.Kj==="es_US"||_.Kj==="es-US"?F:F.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(q,t,u){return"H".repeat(t.length)+u})};
LSv=function(F,q){d4q||(_.c5=_.V$C,d4q=new U4u);var t=d4q;a:if(F=ShW(F),q=ShW(q||new Date),F>q)t=F.getTime()-q.getTime()>6048E5?_.fj(F,1):hzC(F);else{for(var u=0;KSv(F,12*(u+1))<q;)++u;if(u>0)t=t.format(-u,0);else{for(u=0;KSv(F,u+1)<q;)++u;if(u>0)t=t.format(-u,2);else{F=q.getTime()-F.getTime();q=_.X(B7t);for(u=q.next();!u.done;u=q.next()){u=u.value;var J=u.unit,g=Math.floor(F/u.unitDuration);if(g>=(u.threshold===void 0?1:u.threshold)){t=t.format(-g,J);break a}}t=t.format(-0,7)}}}return t};
ShW=function(F){if(typeof F.getTime==="function")return F;if(vQ_(F))return IDq(F);throw Error("Ef`"+JSON.stringify(F));};
KSv=function(F,q){for(var t=0,u;;++t)if(u=new Date(F.getFullYear(),F.getMonth()+q,F.getDate()-t,F.getHours(),F.getMinutes(),F.getSeconds()),u.getMonth()===(F.getMonth()+q)%12)return u};
_.FK=function(F){return{runs:[{text:F}]}};
_.q1=function(F){if(F&&F.simpleText)return F.simpleText;var q="";if(F&&F.runs)for(var t=0;t<F.runs.length;t++)F.runs[t].text&&(q+=F.runs[t].text);return q};
aDW=function(F,q,t,u){return F.videoEntity&&!F.policyEntity&&t!=="DOWNLOAD_STATE_FAILED"?[Lj("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:G5(F.policyEntity)&&q!=="TRANSFER_STATE_FAILED"&&q!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?q==="TRANSFER_STATE_PAUSED_BY_USER"?[Lj("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Dx(q)?[Lj("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:F.videoEntity.lengthSeconds?fDM(F.videoEntity.lengthSeconds,u):[]:
[Lj("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
fDM=function(F,q){var t=[{thumbnailOverlayTimeStatusRenderer:{text:_.lC(G_f({seconds:F})),style:"DEFAULT"}}];q&&(F=q<=0||F<=0?0:q>=F?100:Math.ceil(q*100/F),F>0&&t.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:F}}));return t};
jgq=function(F,q,t,u,J){if(q==="TRANSFER_STATE_UNKNOWN"||!F)return{};if(_.Dx(q)||q==="TRANSFER_STATE_PRE_TRANSFER")var g=[Lj("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var Y,Q;if(q==="TRANSFER_STATE_COMPLETE"&&((Y=F.mainPlaylistEntity)==null?0:(Q=Y.videos)==null?0:Q.length)){if(_.E("web_modern_collections_v2")){var e;var r=(g=F.mainPlaylistEntity)==null?void 0:(e=g.videos)==null?void 0:e.length;g=(g=D4o(r))?{thumbnailOverlayBottomPanelRenderer:{text:_.lC(g),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var N;g=WS_((r=F.mainPlaylistEntity)==null?void 0:(N=r.videos)==null?void 0:N.length)}var w;g=[O8o(),Object.assign({},(w=g)!=null?w:{})]}else g=[]}w=g;a:if(q==="TRANSFER_STATE_PRE_TRANSFER")t=XE(_.oD("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(q==="TRANSFER_STATE_TRANSFER_IN_QUEUE")t=XE(_.oD("WAITING_TO_DOWNLOAD"));else if(_.Dx(q))t=Math.floor(t*100).toString(),t=XE(_.oD("DOWNLOADING_PERCENT",{percent:t},"Downloading... "+t+"%"));else{if(u&&(_.E("playlist_is_offline_selector_killswitch")&&
(J=_.sV().resolve(_.Lt).isNetworkAvailable()),J)){t=gH3(_.oD("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),J1y(u));break a}t=void 0}q=q==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.oD("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},w.length?{thumbnailOverlays:w}:{},t?{viewPlaylistText:t}:{viewPlaylistText:_.FK("")},q.length?{badges:q}:{})};
c8$=function(F,q,t,u,J,g){if(q==="TRANSFER_STATE_UNKNOWN"||!F)return{};if(u==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var Y=aDW(F,q,u);if(F.videoEntity&&!F.policyEntity&&u!=="DOWNLOAD_STATE_FAILED"){var Q=_.oD("WAITING_TO_DOWNLOAD");if(Q)return{shortViewCountText:_.FK(Q),publishedTimeText:void 0,thumbnailOverlays:Y}}if(!G5(F.policyEntity)){g=F.policyEntity&&!c1_(F.policyEntity)?_.oD("DOWNLOAD_EXPIRED",{},"Download expired"):
_.oD("TRANSFER_FAILED",{},"Download failed");var e;if((e=F.policyEntity)==null?0:e.shortMessageForDisabledAction)g=F.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:XE(g),publishedTimeText:void 0,thumbnailOverlays:Y}}if(q==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.FK(_.oD("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:Y};if(q==="TRANSFER_STATE_FAILED"||q==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.FK(_.oD("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:Y};if(q==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(e=_.oD("WAITING_TO_DOWNLOAD"),u==="DOWNLOAD_STATE_PAUSED"&&(e=_.oD("DOWNLOAD_PAUSED",{},"Download paused")),e))return{shortViewCountText:_.FK(e),publishedTimeText:void 0,thumbnailOverlays:Y};if(_.Dx(q))return F=Math.floor(t*100).toString(),{shortViewCountText:_.FK(_.oD("DOWNLOADING_PERCENT",{percent:F},"Downloading... "+F+"%")),publishedTimeText:void 0,thumbnailOverlays:Y};q=void 0;F.videoEntity.publishedTimestampMillis&&
(q=new Date,J&&(q=new Date(J)),q=XE(LSv(new Date(Number(F.videoEntity.publishedTimestampMillis)),q)));J=[];_.E("kevlar_woffle_badge_killswitch")||(J=[{metadataBadgeRenderer:{label:_.oD("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var r;F=XE((r=F.videoEntity.localizedStrings)==null?void 0:r.viewCount);return Object.assign({},g?{shortViewCountText:void 0}:{shortViewCountText:F},g?{}:{publishedTimeText:q},{badges:J,thumbnailOverlays:Y})};
qb_=function(F,q){F=F===void 0?Fuo:F;switch(q.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:q.payload.playlistId,inviteLinkURL:q.payload.inviteLinkUrl};default:return F}};
uVf=function(F,q){F=F===void 0?t9q:F;switch(q.type){case "SET_CURRENT_FORM_ID":return q=q.payload.formId,F.currentFormId===q?F:{currentFormId:q,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var t=q.payload;q=t.groupId;t=t.command;if(F.currentFormId){var u=Object.assign({},F.commandsMap);u[q]=t;F=Object.assign({},F,{commandsMap:u})}return F;case "RESET_COMMAND_MAP":return Object.assign({},F,{commandsMap:{}});default:return F}};
swA=function(F,q){F=F===void 0?JB3:F;switch(q.type){case "UPDATE_CANVAS_MODE":return Object.assign({},F,{currentMode:q.payload.currentMode});default:return F}};
$H3=function(F,q){F=F===void 0?mHv:F;switch(q.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},F,{guideIsExpanded:q.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},F,{scrollAtTop:q.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},F,{guideIsVisibleButNotPersistent:q.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},F,{miniplayerIsActive:q.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},F,{singleOptionSurveyIsActive:q.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},F,{slimlineSurveyRatingSelectedIndex:q.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},F,{richGridMiniMode:q.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},F,{richGridItemsPerRow:q.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},F,{richGridSlimItemsPerRow:q.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},F,{richGridContainerWidth:q.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},F,{richGridStyle:q.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},F,{currentPageType:q.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},F,{inlinePreviewIsActive:q.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},F,{inlinePreviewIsEnabled:q.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},F,{darkModeIsEnabled:q.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
F,{miniplayerPlaybackState:q.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},F,{tabGesturesIsActive:q.payload});case "SET_ONLINE_STATUS":return Object.assign({},F,{isOnline:q.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},F,{chipBarIsSticky:q.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},F,{frostedGlassMode:q.payload});default:return F}};
yBC=function(F,q){F=F===void 0?bA_:F;switch(q.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},F,{transcription:q.payload});case "SET_OVERLAY_STATE":return Object.assign({},F,{overlay:q.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return F}};
fsM=function(){return zW(Object.assign({},{continuation:CTM,download:dHC,canvas:swA,reportChannelAbuse:V9o,share:UHo,talkToRecs:Sbv,ui:$H3,voiceSearch:yBC,watch:hp$,ypc:KuC,shorts:Bv3,radioButtonGroup:uVf,collabInviteLink:qb_},Luv))};
cBA=function(){return _.E("web_player_entities_middleware")?new tn(fsM(),[asy,jwC]):new tn(fsM(),[asy])};
_.u1=function(){Feu||(Feu=cBA());return Feu};
qno=function(F,q,t){if(F.length)return{titleText:_.lC(q!=null?q:_.oD("DOWNLOADS",void 0,"Downloads")),contents:F.map(function(u){var J=u.videoEntity;u={videoId:J.videoId,title:XE(J.title),shortBylineText:XE(u.channelEntity.title),thumbnail:J.thumbnail};var g=J.videoId?hx(_.u1().getState(),J.videoId):0;J.videoId&&t?u.navigationEndpoint=_.gj(J.videoId,t,void 0,void 0,g):J.videoId&&(u.navigationEndpoint=uS3(J.videoId,g,J.lengthSeconds));J.lengthSeconds&&(u.thumbnailOverlays=fDM(J.lengthSeconds,g));return{playlistPanelVideoRenderer:u}}),
totalVideos:F.length}};
tDo=function(F){return(F=(0,_.m7.getValueByKeys)(F,"playlistId"))?{playlistId:F}:null};
uXt=function(){return{}};
JtC=function(F,q){return new _.iz(function(t,u){F.then(function(J){if(J){if(J=q(J))return t(J);u()}},u)})};
sAv=function(F){var q,t,u,J=(q=F.contents)==null?void 0:(t=q.twoColumnWatchNextResults)==null?void 0:(u=t.autoplay)==null?void 0:u.autoplay,g,Y,Q;q=(g=F.contents)==null?void 0:(Y=g.twoColumnWatchNextResults)==null?void 0:(Q=Y.playlist)==null?void 0:Q.playlist;return J&&q&&q.playlistId?{rawResponse:F,autoplayRenderer:J,playlistPanelRenderer:q,playlistId:q.playlistId}:null};
lBf=function(F){var q=q===void 0?"UNKNOWN_INTERFACE":q;if(F.length===1)return F[0];var t=gpM[q];if(t){t=new RegExp(t);for(var u=_.X(F),J=u.next();!J.done;J=u.next())if(J=J.value,t.exec(J))return J}var g=[];Object.entries(gpM).forEach(function(Y){var Q=_.X(Y);Y=Q.next().value;Q=Q.next().value;q!==Y&&g.push(Q)});
t=new RegExp(g.join("|"));F.sort(function(Y,Q){return Y.length-Q.length});
u=_.X(F);for(J=u.next();!J.done;J=u.next())if(J=J.value,!t.exec(J))return J;return F[0]};
_.Jn=function(F){return"/youtubei/v1/"+lBf(F)};
_.sy=function(F){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:F}}}}};
_.l1=function(F){return _.sy(_.FK(F))};
X8P=function(F,q){var t={mode:"NORMAL"};F&&(t.autoplayVideo=F.navigationEndpoint,t.nextButtonVideo=F.navigationEndpoint);q&&(t.previousButtonVideo=q.navigationEndpoint);return t};
QAW=function(F,q,t){if(!t||!t.sets)return{sets:[X8P(F,q)]};var u=t.sets.find(function(Y){return Y.mode==="NORMAL"}),J=(0,_.m7.unsafeClone)(t);
if(!u)return J.sets.push(X8P(F,q)),J;if(!F)return t;u=_.m7.getValueByKeys.apply(null,[u].concat(_.mZ(Yno)));var g=_.m7.getValueByKeys.apply(null,[F].concat(_.mZ(p8M)));if(u===g)return t;J.sets=J.sets.filter(function(Y){return Y.mode!=="NORMAL"});
J.sets.push(X8P(F,q));return J};
esC=function(F){return!!F.playlistPanelVideoRenderer&&!F.playlistPanelVideoRenderer.unplayableText};
Z7W=function(F){return!!F.playlistPanelVideoRenderer&&!!F.playlistPanelVideoRenderer.title};
Rsu=function(F,q){if(q.contents&&!(F>=q.contents.length)&&(F=q.contents.slice(F).find(esC)))return F.playlistPanelVideoRenderer};
rtW=function(F,q){if(q.contents)return(q=q.contents.find(function(t){return!!t.playlistPanelVideoRenderer&&t.playlistPanelVideoRenderer.videoId===F}))?q.playlistPanelVideoRenderer:void 0};
Nto=function(F,q){return q.contents?q.contents.findIndex(function(t){return!!t.playlistPanelVideoRenderer&&t.playlistPanelVideoRenderer.videoId===F}):-1};
w8_=function(F,q){return q.contents?q.contents.findIndex(function(t){return!!t.playlistPanelVideoRenderer&&t.playlistPanelVideoRenderer.playlistSetVideoId===F}):-1};
i7_=function(F,q){F.contents&&q!==-1&&F.contents.splice(q,1).length===1&&F.totalVideos!==void 0&&(--F.totalVideos,delete F.videoCountText)};
_.kkM=function(F){var q=[];if(!F||!F.contents)return q;F=_.X(F.contents);for(var t=F.next();!t.done;t=F.next())t=t.value,t.playlistPanelVideoRenderer&&t.playlistPanelVideoRenderer.videoId&&q.push(t.playlistPanelVideoRenderer.videoId);return q};
_.Epo=function(F){if(F&&F.contents)return(F=F.contents.find(function(q){return!!q.playlistPanelVideoRenderer&&!!q.playlistPanelVideoRenderer.selected})||F.contents[F.currentIndex])?F.playlistPanelVideoRenderer:void 0};
zsv=function(F,q,t,u,J,g,Y){J=J===void 0?!1:J;g=g===void 0?!1:g;Y=Y===void 0?!1:Y;if(F.contents&&F.contents.length!==0){u&&(F.contents=F.contents.filter(u));u=F.contents.length;for(var Q=0;Q<u;Q++){var e=F.contents[Q].playlistPanelVideoRenderer;e&&(Q===q?(g&&delete e.menu,e.indexText=_.FK("\u25b6")):J||F.isInfinite||e.indexText===void 0?delete e.indexText:e.indexText=_.FK((Q+1+t).toString()))}F.currentIndex=q+t;Y&&(delete F.videoCountText,F.totalVideos=u)}};
_.XK=function(F){F=opW(F);if(F){var q=F.length;var t=-72%q;t<0&&(t=q+t);F=F.slice(q-t)+F.slice(0,q-t)}else F="";t="";for(q=0;q<F.length&&F[q]!==npP;q++)t+=F[q];return t};
_.MDC=function(F,q){var t=document.body;q=q===void 0?function(Q){return Q}:q;
var u,J=null;F=_.X(F);for(u=F.next();!u.done;u=F.next()){var g=u.value;u="div";g[2]&&(u=q(g[2]));u=document.createElement(u);J||(J=u);var Y=g[0];g=g[1];Y&&(u.id=q(Y));if(g)for(g=_.X(g),Y=g.next();!Y.done;Y=g.next())u.classList.add(q(Y.value));t.appendChild(u);t=u}return[J,t]};
Tto=function(F,q){for(var t="",u=0;u<q;u++)t+=F.charAt(Math.floor(Math.random()*F.length));return t};
Yh=function(F){return Tto("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",F)};
pG=function(F){return Tto("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",F)};
Q8=function(F){return Tto("0123456789",F)};
eT=function(){var F=performance.now(),q=new Date;var t="2."+q.getFullYear()+String(q.getMonth()+1).padStart(2,"0")+String(q.getDate()).padStart(2,"0");for(var u,J=Math.floor(Math.random()*11)+15,g=[],Y=0;Y<J;Y++)g.push(Math.floor(Math.random()*26476865)+24547720);u=g.join(",");var Q=Yh(10),e=Yh(100),r=Yh(102),N=Yh(106),w=Yh(108),k=Yh(11),z=Yh(1140),T=Yh(123),P=Yh(14),v=Yh(16),H=Yh(1900),d=Yh(23),a=Yh(26),S=Yh(34),K=Yh(397),h=Yh(44),c=Yh(5),rf=Yh(72),Zv=Yh(74),kP=Yh(75),n3=Yh(88),o_=Yh(91),df="rr3---sn-hgn7rnls rr5---sn-q4flrnl7 rr5---sn-5hne6nsd rr2---sn-ntq7yned rr5---sn-aigl6n6s rr1---sn-q4flrn7k rr4---sn-5hnednss rr3---sn-q4flrne6 rr4---sn-ntq7yned rr3---sn-q4flrnl6 rr1---sn-5hne6nzk rr1---sn-q4fl6n6d rr2---sn-q4flrnez rr1---sn-q4flrnes rr5---sn-q4fl6nd7 rr4---sn-q4fl6nss rr1---sn-q4fl6nsl rr4---sn-q4fl6ndl rr2---sn-t0a7ln7d rr1---sn-q4fl6n6r".split(" ");
var m$=df[Math.floor(Math.random()*df.length)];var gx=(new Date("2010-01-01")).getTime();var Hf=(new Date(gx+Math.random()*((new Date).getTime()-gx))).toISOString().split("T")[0];for(var Zw,cy=[],wx=0;wx<4;wx++)cy.push(Math.floor(Math.random()*100));Zw=cy.join(".");var Rj=Number(Q8(5)),xO=Number(Q8(6)),DQ=Number(Q8(7)),fe=Number(Q8(9)),sM=Q8(1),FL=Q8(10),Ev=Q8(16),e5=Q8(19),z1=Q8(2),qD=Q8(20),gL=Q8(21),F3=Q8(3),pe=Q8(4),Bf=Q8(5),wJ=Q8(6),Dw=Q8(7),Wf=Q8(8),zv=Q8(9);var R2=Tto("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var ND=[pG(5),pG(5),pG(5)].join("%2C"),Pn=[Q8(3),Q8(5),Q8(5)].join("%2C"),OT=pG(0),dx=pG(1),$7=pG(10),h9=pG(108),JQ=pG(11),tf=pG(12),lQ=pG(13),yF=pG(14),Wt=pG(15),Es=pG(16),WD=pG(17),Dv=pG(18),$P=pG(19),SW=pG(2),kO=pG(20),ZQ=pG(22),AQ=pG(23),MD=pG(24),ne=pG(266),oj=pG(3),Iy=pG(30),ie=pG(34),Nn=pG(35),T0=pG(36),Cq=pG(4),be=pG(40),dP=pG(43),SJ=pG(47),oE=pG(5),X$=pG(6),OO=pG(7),Ne=pG(75),L3=pG(8),iw=pG(80),Tv=pG(9),lw="https://www."+pG(12)+".com",Z4={},Ks={},yS={},jg={},PD={},MG={},TL={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:u}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:t},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+pG(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:t},{key:"client.name",value:"WEB"},{key:"client.fexp",value:u}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:gL+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+pG(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:be,ypcGetOfflineUpsellEndpoint:{params:iw}},trackingParams:Nn+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&cnr="+z1+"&ratebypass=yes&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&c=WEB&txp="+Dw+"&n="+v+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:xO,width:640,height:360,lastModified:Ev,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Dw,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Pn+"&mn="+
ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&cnr="+z1+"&ratebypass=yes&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&c=WEB&txp="+Dw+"&n="+v+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+h9+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:xO,width:1280,
height:720,lastModified:Ev,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Dw,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+Pn+"&mn="+ND+"&ms="+
ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+zv+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:DQ,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:zv,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:DQ,approxDurationMs:Dw},{itag:248,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+Pn+"&mn="+ND+"&ms="+ND+"&mv="+
dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fwebm&ns="+MD+"&gir="+oj+"&clen="+zv+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:DQ,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:zv,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:DQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:399,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+zv+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:DQ,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:zv,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:DQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:136,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+zv+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:DQ,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:zv,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xO,approxDurationMs:Dw},{itag:247,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+Pn+"&mn="+
ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fwebm&ns="+MD+"&gir="+oj+"&clen="+zv+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:DQ,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:zv,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:398,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+zv+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:DQ,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:zv,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:135,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:xO,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xO,approxDurationMs:Dw},{itag:244,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+Pn+"&mn="+
ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fwebm&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h9+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:xO,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:397,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:xO,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:134,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:xO,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xO,highReplication:!0,approxDurationMs:Dw},{itag:243,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fwebm&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:xO,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:396,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:xO,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:133,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:xO,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xO,approxDurationMs:Dw},{itag:242,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+Pn+"&mn="+
ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fwebm&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:xO,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:395,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:xO,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:160,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:xO,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rj,approxDurationMs:Dw},{itag:278,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+Pn+"&mn="+
ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fwebm&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:xO,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:394,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&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="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=video%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Rj,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Dw},{itag:140,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=audio%2Fmp4&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:xO,
initRange:{start:"0",end:"631"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:xO,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Dw,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+
z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=audio%2Fwebm&ns="+MD+"&gir="+oj+"&clen="+Dw+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/webm; codecs="opus"',bitrate:Rj,initRange:{start:"0",end:"265"},indexRange:{start:F3,
end:pe},lastModified:Ev,contentLength:Dw,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Rj,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Dw,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=audio%2Fwebm&ns="+
MD+"&gir="+oj+"&clen="+Dw+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/webm; codecs="opus"',bitrate:Rj,initRange:{start:"0",end:"265"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Dw,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Rj,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Dw,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+m$+".googlevideo.com/videoplayback?expire="+FL+"&ei="+d+"&ip="+Zw+"&id=o-AF"+dP+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Pn+"&mn="+ND+"&ms="+ND+"&mv="+dx+"&mvi="+sM+"&pl="+z1+"&initcwndbps="+Dw+"&siu="+sM+"&spc="+h+"&vprv="+sM+"&svpuc="+sM+"&mime=audio%2Fwebm&ns="+MD+"&gir="+oj+"&clen="+Wf+"&dur="+Wf+"&lmt="+Ev+"&mt="+FL+"&fvip=3&keepalive="+oj+"&c=WEB&txp="+
Dw+"&n="+Es+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/webm; codecs="opus"',bitrate:xO,initRange:{start:"0",end:"265"},indexRange:{start:F3,end:pe},lastModified:Ev,contentLength:Wf,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:xO,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Dw,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="+zv+"&docid="+k+"&ei="+d+"&feature="+Q+"&fexp="+OT+"&ns="+SW+"&plid="+v+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+dx+"&el="+$7+"&len="+pe+"&of="+ZQ+
"&uga="+z1+"&vm="+ne},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+zv+"&docid="+k+"&ei="+d+"&feature="+Q+"&fexp="+OT+"&ns="+SW+"&plid="+v+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+dx+"&el="+$7+"&len="+pe+"&of="+ZQ+"&uga="+z1+"&vm="+ne},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+zv+"&docid="+k+"&ei="+d+"&feature="+Q+"&fexp="+OT+"&ns="+SW+"&plid="+v+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
dx+"&el="+$7+"&len="+pe+"&of="+ZQ+"&uga="+z1+"&vm="+ne},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+d+"&m="+n3+"&oid="+ZQ+"&plid="+v+"&pltype="+OO+"&ptchn="+ZQ+"&ptk="+P+"&video_id="+k},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+zv+"&docid="+k+"&ei="+d+"&event="+yF+"&feature="+Q+"&fexp="+OT+"&ns="+SW+"&plid="+v+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+dx},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+k+"&ei="+d+"&feature="+
Q+"&len="+pe+"&ns="+SW+"&plid="+v+"&ver="+sM,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+k+"&caps="+oj+"&opi="+zv+"&xoaf="+sM+"&hl="+SW+"&ip="+Zw+"&ipbits="+sM+"&expire="+FL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Zw+"&key="+oj+"&lang="+c,name:{simpleText:OO},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+k+"&caps="+oj+"&opi="+zv+"&xoaf="+sM+"&hl="+SW+"&ip="+Zw+"&ipbits="+sM+"&expire="+FL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Zw+"&key="+oj+"&kind="+oj+"&lang="+SW,name:{simpleText:Tv},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:JQ,title:Es,lengthSeconds:"1155",keywords:[JQ,Dv,L3,Cq],
channelId:MD,isOwnerViewing:!1,shortDescription:X$,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+T0+"G&rs="+ie,width:168,height:94},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+T0+"G&rs="+ie,width:196,height:110},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+T0+"G&rs="+S,width:246,height:138},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+T0+"G&rs="+S,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
k+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Dw,author:lQ,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Dw,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+ZQ+"/featured_channel.jpg?v="+L3,width:40,height:40}]},trackingParams:Nn+"=",navigationEndpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{url:"/channel/"+MD,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:MD}},channelName:lQ,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:lQ}]},subscribed:!1,enabled:!0,type:"FREE",channelId:MD,showPreferences:!1,subscribedButtonText:{runs:[{text:yF}]},unsubscribedButtonText:{runs:[{text:OO}]},trackingParams:Nn+"=",unsubscribeButtonText:{runs:[{text:$P}]},serviceEndpoints:[{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[MD],params:L3}},{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:be,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Nn+"=",dialogMessages:[{runs:[{text:Dv},{text:Es},{text:Tv}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:$P}]},serviceEndpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[MD],params:L3}},accessibility:{label:oE},trackingParams:Nn+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:$7}]},accessibility:{label:$P},trackingParams:Nn+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:yF}},unsubscribeAccessibility:{accessibilityData:{label:JQ}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Wf},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[MD],params:L3}},unsubscribeCommand:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[MD],params:L3}},addToWatchLaterCommand:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:JQ,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:JQ}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+k+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+T0+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
k+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+JQ,width:1280,height:720},title:{simpleText:Cq},description:{simpleText:yF},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Tv,externalChannelId:MD,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:Dw,category:"Travel & Events",publishDate:Hf,ownerChannelName:lQ,uploadDate:Hf}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Es},trackingParams:Nn+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:be,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Nn+"="}}],headerText:{simpleText:Dv},icon:{infoCardIconRenderer:{trackingParams:Nn+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Nn+"="}},trackingParams:Nn+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Nn+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+JQ+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:R2,interpreterSafeUrl:(Z4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Iy+".js",Z4),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Tv},{text:Wt,bold:!0}]},endpoint:{clickTrackingParams:be,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:Nn+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:$P}]},actionButton:{buttonRenderer:{text:{runs:[{text:X$}]},navigationEndpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+k,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
k,target:"TARGET_NEW_WINDOW"}},trackingParams:Nn+"="}},trackingParams:Nn+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+rf+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+rf+"=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:Dw,endMs:Dw,title:{accessibility:{accessibilityData:{label:Cq}},simpleText:Es},metadata:{simpleText:Es},callToAction:{simpleText:OO},dismiss:{simpleText:oE},endpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{url:"/channel/"+MD,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:MD}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:L3}]},subscribed:!1,enabled:!0,type:"FREE",channelId:MD,showPreferences:!1,
subscribedButtonText:{runs:[{text:$7}]},unsubscribedButtonText:{runs:[{text:lQ}]},trackingParams:Nn+"=",unsubscribeButtonText:{runs:[{text:WD}]},serviceEndpoints:[{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[MD],params:L3}},{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:be,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Nn+
"=",dialogMessages:[{runs:[{text:Es},{text:$P},{text:Wt}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:$7}]},serviceEndpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[MD],params:L3}},accessibility:{label:Wt},trackingParams:Nn+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Tv}]},
accessibility:{label:yF},trackingParams:Nn+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:yF}},unsubscribeAccessibility:{accessibilityData:{label:kO}}}},trackingParams:Nn+"=",isSubscribe:!0,id:qD}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+T0+"G&rs="+S,width:168,height:94},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+T0+"G&rs="+ie,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+T0+"G&rs="+S,width:246,height:138},{url:"https://i.ytimg.com/vi/"+k+"/hqdefault.jpg?sqp=-oaymwE"+T0+"G&rs="+S,width:336,height:188},{url:"https://i.ytimg.com/vi/"+k+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Dw,endMs:Dw,title:{accessibility:{accessibilityData:{label:yF}},simpleText:Dv},metadata:{simpleText:oE},endpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
JQ,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:JQ,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+m$+".googlevideo.com/videoplayback?source=youtube&oeis="+sM+"&c=WEB&oad="+pe+"&ovd="+pe+"&oaad="+Bf+"&oavd="+Bf+"&ocs="+F3+"&oewis="+sM+"&oputc="+sM+"&ofpcc="+sM+"&siu="+sM+"&msp="+sM+"&odepv="+sM+
"&id=o-AF"+dP+"&ip="+Zw+"&initcwndbps="+Dw+"&mt="+FL+"&oweuc="+OT}}}}},trackingParams:Nn+"=",id:qD,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:X$}},simpleText:Cq},style:"DEFAULT"}}]}}],startMs:Dw,trackingParams:Nn+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:sM,offsetEndMilliseconds:Bf},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zv+";dc_trk_cid="+zv+";dc_dbm_token="+w+";ord="+FL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sM+";dc_rui="+sM+";dc_exteid="+qD+";dc_av="+F3+";dc_sk="+sM+";dc_ctype="+z1+";dc_ref=http://www.youtube.com/video/"+JQ+";dc_pubid="+sM+";dc_btype=23?gclid="+o_+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+sM+"&ns="+sM+"&event="+sM+"&device="+sM+"&content_v="+k+"&el="+$7+"&ei="+d+"&devicever="+t+"&bti="+Dw+"&format="+wJ+"&break_type="+sM+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+sM+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Zw+"&slot_pos="+sM+"&slot_len="+sM+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Pn+"&ad_len="+Bf+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
JQ+"&aqi="+d+"&ad_rmp="+sM+"&sli="+sM}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+
";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+wJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+Dw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&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"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&ctype="+F3+"&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"+
z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_engaged_view&ctype="+F3+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+wJ+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
zv+";dc_trk_cid="+zv+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sM+";ord="+zv+";dc_rui="+sM+";dc_exteid="+e5+";dc_av="+sM+";dc_sk="+sM+";dc_ctype="+z1+";dc_pubid="+sM+";dc_btype=3?gclid="+o_+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+AQ+"&ad_cpn=[AD_CPN]&id="+X$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+X$+"&dc_pubid="+sM+"&dc_exteid="+qD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+AQ+"&ad_cpn=[AD_CPN]&id="+X$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+sM},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+X$+"&avm="+sM+"&dc_pubid="+sM+"&dc_exteid="+
qD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&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="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
r+"&sig="+AQ+"&ad_cpn=[AD_CPN]&id="+X$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+sM},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+X$+"&dc_pubid="+sM+"&dc_exteid="+qD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+wJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+wJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:be,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+
F3+"&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/"+k+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Nn+"="},trackingParams:Nn+
"=",templatedCountdown:{templatedAdText:{text:$P,isTemplated:!0,trackingParams:Nn+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:$7,isTemplated:!1,trackingParams:Nn+"="},trackingParams:Nn+"="}},trackingParams:Nn+"=",skipOffsetMilliseconds:5E3}},trackingParams:Nn+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:kO},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nn+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:$P,isTemplated:!1,trackingParams:Nn+"="},trackingParams:Nn+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Dv,isTemplated:!0,trackingParams:Nn+"="}},trackingParams:Nn+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:be,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ks.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+H+"&hl="+SW+"&origin=www.youtube.com&ata_theme="+Cq,Ks),trackingParams:Nn+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Nn+"="}},hoverText:{runs:[{text:L3}]},trackingParams:Nn+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SJ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Nn+"="},headline:{text:OO,isTemplated:!1,trackingParams:Nn+"="},description:{text:JQ,
trackingParams:Nn+"="},actionButton:{buttonRenderer:{text:{simpleText:Es},navigationEndpoint:{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zv+";dc_trk_cid="+zv+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sM+";ord="+zv+";dc_rui="+sM+";dc_exteid="+qD+";dc_av="+sM+";dc_sk="+sM+";dc_ctype="+z1+";dc_pubid="+sM+";dc_btype=3?gclid="+o_+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nn+"="}},startMs:sM,trackingParams:Nn+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:lQ},elementId:tf}},elementId:tf,trackingParams:Nn+"=",legacyInfoCardVastExtension:Wt,sodarExtensionData:{siub:lQ,bgub:Cq,scs:X$,bgp:L3},externalVideoId:JQ,adLayoutLoggingData:{serializedAdServingDataEntry:oE},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SJ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Nn+"="},
headline:{text:JQ,isTemplated:!1,trackingParams:Nn+"="},description:{text:$7,isTemplated:!1,trackingParams:Nn+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:OO},navigationEndpoint:{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zv+";dc_trk_cid="+zv+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sM+";ord="+zv+";dc_rui="+sM+";dc_exteid="+
qD+";dc_av="+sM+";dc_sk="+sM+";dc_ctype="+z1+";dc_pubid="+sM+";dc_btype=3?gclid="+o_+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+
sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nn+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Nn+"="}},navigationEndpoint:{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zv+";dc_trk_cid="+
zv+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sM+";ord="+zv+";dc_rui="+sM+";dc_exteid="+qD+";dc_av="+sM+";dc_sk="+sM+";dc_ctype="+z1+";dc_pubid="+sM+";dc_btype=3?gclid="+o_+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+
T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nn+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Nn+"="},abandonCommands:{commands:[{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&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="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+
sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:be,commandExecutorCommand:{commands:[{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:oE,isTemplated:!1,trackingParams:Nn+
"="},trackingParams:Nn+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Cq},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+Dw+";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="+zv+";dc_trk_cid="+zv+";ord="+FL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sM+";dc_rui="+sM+";dc_exteid="+qD+";dc_av="+F3+";dc_sk="+sM+";dc_ctype="+z1+";dc_ref=http://www.youtube.com/video/"+JQ+";dc_pubid="+sM+";dc_btype=23?gclid="+o_+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+sM+"&ns="+sM+"&event="+sM+"&device="+sM+"&content_v="+k+"&el="+$7+"&ei="+d+"&devicever="+t+"&bti="+Dw+"&format="+wJ+"&break_type="+sM+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+sM+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Zw+"&slot_pos="+sM+"&slot_len="+sM+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Pn+"&ad_len="+Bf+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+JQ+"&aqi="+d+"&ad_rmp="+sM+"&sli="+sM}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+wJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+
a+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+Dw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&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"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&ctype="+F3+"&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"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_engaged_view&ctype="+F3+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+wJ+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+AQ+"&ad_cpn=[AD_CPN]&id="+
X$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+X$+"&dc_pubid="+sM+"&dc_exteid="+qD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+
"&sig="+AQ+"&ad_cpn=[AD_CPN]&id="+X$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+sM},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+X$+"&avm="+sM+"&dc_pubid="+sM+"&dc_exteid="+qD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&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="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+AQ+"&ad_cpn=[AD_CPN]&id="+X$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+sM},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+X$+"&dc_pubid="+sM+"&dc_exteid="+qD+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+wJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+wJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+
F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&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/"+k+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Nn+"="},trackingParams:Nn+"=",templatedCountdown:{templatedAdText:{text:Tv,isTemplated:!0,trackingParams:Nn+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:JQ,isTemplated:!1,trackingParams:Nn+"="},trackingParams:Nn+"="}},
trackingParams:Nn+"=",skipOffsetMilliseconds:5E3}},trackingParams:Nn+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Tv},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nn+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:kO,isTemplated:!1,trackingParams:Nn+"="},trackingParams:Nn+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Tv,
isTemplated:!0,trackingParams:Nn+"="}},trackingParams:Nn+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:be,openPopupAction:{popup:{aboutThisAdRenderer:{url:(yS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+H+"&hl="+SW+"&origin=www.youtube.com&ata_theme="+Cq,yS),trackingParams:Nn+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Nn+"="}},hoverText:{runs:[{text:$P}]},trackingParams:Nn+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Zv+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Nn+"="},headline:{text:Tv,isTemplated:!1,trackingParams:Nn+"="},description:{text:oE,trackingParams:Nn+"="},actionButton:{buttonRenderer:{text:{simpleText:oE},navigationEndpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nn+"="}},startMs:sM,trackingParams:Nn+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Es},elementId:$P}},elementId:oE,trackingParams:Nn+"=",legacyInfoCardVastExtension:kO,sodarExtensionData:{siub:X$,bgub:Dv,scs:X$,bgp:Es},externalVideoId:JQ,adLayoutLoggingData:{serializedAdServingDataEntry:JQ},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Zv+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Nn+"="},headline:{text:JQ,
isTemplated:!1,trackingParams:Nn+"="},description:{text:Cq,isTemplated:!1,trackingParams:Nn+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:OO},navigationEndpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nn+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Nn+"="}},navigationEndpoint:{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+
sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nn+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Nn+"="},abandonCommands:{commands:[{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&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="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+z1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:be,commandExecutorCommand:{commands:[{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:$7,isTemplated:!1,trackingParams:Nn+"="},trackingParams:Nn+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:X$},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sM+";dc_exteid="+qD+";met="+sM+";ecn"+sM+"="+sM+";etm1="+sM+";eid1="+
Dw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Cq}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:JQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Bf,offsetEndMilliseconds:wJ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+z1+"&token=ALHj"+K+"&index="+sM+"&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="+t+"&m_pos_ms="+Bf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:wJ,offsetEndMilliseconds:wJ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+F3+"&token=ALHj"+K+"&index="+sM+"&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="+
t+"&m_pos_ms="+wJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Es}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wJ,offsetEndMilliseconds:wJ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+F3+"&token=ALHj"+K+"&index="+sM+"&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="+
t+"&m_pos_ms="+wJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:yF}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wJ,offsetEndMilliseconds:wJ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+F3+"&token=ALHj"+K+"&index="+sM+"&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="+
t+"&m_pos_ms="+wJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Es}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wJ,offsetEndMilliseconds:z1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+F3+"&token=ALHj"+K+"&index="+sM+"&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="+
t+"&m_pos_ms="+wJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:X$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:z1,offsetEndMilliseconds:z1},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+d+"&m_pos="+z1+"&token=ALHj"+K+"&index="+sM+"&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="+
t+"&m_pos_ms="+z1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Wt}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:JQ,isTemplated:!1,trackingParams:Nn+"="},description:{text:L3,isTemplated:!1,trackingParams:Nn+"="},actionButton:{buttonRenderer:{text:{simpleText:lQ},navigationEndpoint:{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
zv+";dc_trk_cid="+zv+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sM+";ord="+zv+";dc_rui="+sM+";dc_exteid="+qD+";dc_av="+sM+";dc_sk="+sM+";dc_ctype="+z1+";dc_pubid="+sM+";dc_btype=3?gclid="+o_+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nn+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SJ+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Nn+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kP+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Nn+"="},navigationEndpoint:{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zv+";dc_trk_cid="+zv+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sM+";ord="+zv+
";dc_rui="+sM+";dc_exteid="+qD+";dc_av="+sM+";dc_sk="+sM+";dc_ctype="+z1+";dc_pubid="+sM+";dc_btype=3?gclid="+o_+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nn+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:be,openPopupAction:{popup:{aboutThisAdRenderer:{url:(jg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+H+"&hl="+SW+"&origin=www.youtube.com&ata_theme="+Cq,jg),trackingParams:Nn+"="}},popupType:"DIALOG"}},trackingParams:Nn+"="}},hoverText:{runs:[{text:X$}]},trackingParams:Nn+"="}},adVideoId:JQ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:OO},associatedCompositePlayerBytesLayoutId:Es}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:lQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:yF,isTemplated:!1,trackingParams:Nn+"="},description:{text:Tv,isTemplated:!1,trackingParams:Nn+"="},actionButton:{buttonRenderer:{text:{simpleText:oE},navigationEndpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+
T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nn+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Zv+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Nn+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ne+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Nn+"="},navigationEndpoint:{clickTrackingParams:be,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+
sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nn+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:be,openPopupAction:{popup:{aboutThisAdRenderer:{url:(PD.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+H+"&hl="+SW+"&origin=www.youtube.com&ata_theme="+Cq,PD),trackingParams:Nn+"="}},popupType:"DIALOG"}},trackingParams:Nn+"="}},
hoverText:{runs:[{text:L3}]},trackingParams:Nn+"="}},adVideoId:JQ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+JQ+"&cid="+a+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Es},associatedCompositePlayerBytesLayoutId:Es}},adSlotLoggingData:{serializedSlotAdServingDataEntry:kO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:oE,
isTemplated:!1,trackingParams:Nn+"="},description:{text:lQ,isTemplated:!1,trackingParams:Nn+"="},actionButton:{buttonRenderer:{text:{simpleText:WD},navigationEndpoint:{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zv+";dc_trk_cid="+zv+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sM+";ord="+zv+";dc_rui="+sM+";dc_exteid="+qD+";dc_av="+sM+";dc_sk="+sM+";dc_ctype="+
z1+";dc_pubid="+sM+";dc_btype=3?gclid="+o_+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+
S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nn+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SJ+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Nn+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kP+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Nn+
"="},navigationEndpoint:{clickTrackingParams:be,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zv+";dc_trk_cid="+zv+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sM+";ord="+zv+";dc_rui="+sM+";dc_exteid="+qD+";dc_av="+sM+";dc_sk="+sM+";dc_ctype="+z1+";dc_pubid="+sM+";dc_btype=3?gclid="+o_+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+z+"____________"+T+"AxAA&ase=2&num="+sM+"&cid="+a+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+lw+"&label=video_click_to_advertiser_site&ctype="+F3+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nn+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:be,openPopupAction:{popup:{aboutThisAdRenderer:{url:(MG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+H+"&hl="+SW+"&origin=www.youtube.com&ata_theme="+Cq,MG),trackingParams:Nn+"="}},popupType:"DIALOG"}},trackingParams:Nn+
"="}},hoverText:{runs:[{text:tf}]},trackingParams:Nn+"="}},adVideoId:JQ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+z+"____________"+T+"AxAA&sigh="+k+"&cid="+a+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Dv},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Es}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Es}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Iy,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Iy,command:{innertubeCommand:{clickTrackingParams:be,ypcGetOfflineUpsellEndpoint:{params:iw}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Nn+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:FL,nanos:fe}}}},fHt=JSON.stringify(TL),GL=performance.now()-F;return{objectRepresentation:TL,jsonRepresentation:fHt,generationTime:GL}};
GkA=function(F,q){if(F===q)return!0;if(!F||!q||typeof F!==typeof q)return!1;if(F instanceof Array&&q instanceof Array){if(F.length!==q.length)return!1;for(var t=0;t<F.length;t++)if(!GkA(F[t],q[t]))return!1;return!0}if(typeof F==="object"&&typeof q==="object"&&F&&q){for(t in F)if(!(t in q&&GkA(F[t],q[t])))return!1;for(var u in q)if(!(u in F))return!1;return!0}return!1};
_.Rb=function(){if(!Zn){Zn=new EP(new DTP);var F=_.YE("client_streamz_web_flush_count",-1);F!==-1&&(Zn.invocationLimit=F)}return Zn};
ra=function(F,q,t,u){if(F===q)return!0;if(Array.isArray(F)&&Array.isArray(q)){if(F.length!==q.length)return!1;for(var J=0;J<F.length;J++)if(!ra(F[J],q[J],t,u))return!1;return!0}if(F instanceof Set||q instanceof Set){if(F instanceof Set&&q instanceof Set){if(F.size!==q.size)return!1;u=_.X(F.values());for(J=u.next();!J.done;J=u.next())if(!q.has(J.value))return!1;return!0}return!1}if(F instanceof Function){if(u)return!0;F.name===""&&_.mH(Error("If"),"ERROR");return!1}if(F instanceof Date&&q instanceof
Date)return F.getTime()===q.getTime();if(F instanceof Object&&q instanceof Object){if(Wev(F)&&Wev(q))try{return F.equals(q)}catch(Y){_.mH(Error("Jf`"+Y),"ERROR")}J=Object.getOwnPropertyNames(F).filter(function(Y){return t?F[Y]!==void 0:!0});
var g=Object.getOwnPropertyNames(q).filter(function(Y){return t?q[Y]!==void 0:!0});
if(J.length!==g.length)return!1;J=_.X(J);for(g=J.next();!g.done;g=J.next())if(g=g.value,!ra(F[g],q[g],t,u))return!1;return!0}return!1};
Wev=function(F){F=Object.getPrototypeOf(F).equals;return F instanceof Function&&F.length===1};
_.xTf=function(){return _.p(function(F){if(F.nextAddress==1)return O7v!==2?F.jumpTo(2):F.yield(PYW(),3);F.nextAddress!=2&&(O7v=F.yieldResult);return F.return(O7v)})};
_.IBA=function(){return _.p(function(F){if(F.nextAddress==1)return _.E("ab_pl_man")?Ato!==2?F.jumpTo(2):F.yield(vpC(),3):F.return(1);F.nextAddress!=2&&(Ato=F.yieldResult);return F.return(Ato)})};
$Tt=function(){return _.p(function(F){if(F.nextAddress==1)return _.E("ab_fk_sk_cl")?H7C!==2?F.jumpTo(2):F.yield(mT_(),3):F.return(1);F.nextAddress!=2&&(H7C=F.yieldResult);return F.return(H7C)})};
_.CYo=function(){return _.p(function(F){if(F.nextAddress==1)return _.E("ab_det_apb_b")?b7A!==2?F.jumpTo(2):F.yield(ytq(),3):F.return(1);F.nextAddress!=2&&(b7A=F.yieldResult);return F.return(b7A)})};
UTM=function(){var F;return _.p(function(q){if(q.nextAddress==1)return q.yield(Promise.all([_.xTf(),_.CYo(),_.IBA(),$Tt()]),2);if(q.nextAddress!=3)return dTu()?q.return(!0):q.yield(_.VDo(),3);F=q.yieldResult;return q.return(F===0)})};
dTu=function(){var F=!1,q=function(t,u){SnC.increment(u,t);t===0&&(F=!0)};
q(_.hsM(),"j.s_");q(O7v,"f.i_");q(b7A,"a.b_");q(Ato,"p.m_");q(H7C,"i.f_");Ke_===2&&(Ke_=_.BtA(LeW));q(Ke_,"e.h_");_.E("ks_det_gpbl")||q(_.fBW(),"p.i_");_.E("ks_get_o_pp")||q(_.aB$(),"g.o_");_.E("ab_deg_unex_thr")||q(_.jA$(),"a.o_");q(cty,"s.t_");_.E("ab_det_sc_inj_enf")&&q(_.Fny(),"s.i_");q(q9v,"d.p_");q(_.tey(_.N1),"o.p_");q(_.u73()===0?0:_.JFy(),"o.a_");return _.E("debug_sk_em_precheck")?!0:F};
gT_=function(){var F=[].concat(_.mZ(spW));try{var q=eT();F.push({jsonRepresentation:q.jsonRepresentation,objectRepresentation:q.objectRepresentation})}catch(t){F=[].concat(_.mZ(spW))}return F};
lOo=function(){var F=["adPlacements","adSlots"];try{return F.filter(function(){return!0}).length!==F.length?0:1}catch(q){return 0}};
_.aB$=function(){if(lOo()===0)return 0;var F=eT(),q=F.objectRepresentation,t=(0,_.m7.unsafeClone)(q),u=[];if(q&&typeof q==="object")for(var J in q)u.push(J);else return 4;F=F.objectRepresentation.adPlacements;if(!(F&&F.length>0))return 4;try{if(!GkA(u,Object.getOwnPropertyNames(q)))return 0}catch(g){return 0}return GkA(t,q)?1:0};
_.tey=function(F){if(!F||!F.length||typeof F==="string")return 0;for(var q=Object.getOwnPropertyNames(Object.prototype),t=0;t<F.length;t++)for(var u=_.XK(F[t]),J=_.X(q),g=J.next();!g.done;g=J.next())if(u===g.value)return 0;return 1};
XeC=function(F){var q=_.XK(F[1]);if(F[0]===null)return q;F=F[0];for(var t={},u=0;u<F.length;u++){var J=_.XK(F[u]);if(u===0)t[J]=q;else{var g={};g[J]=t;t=g}}return t};
_.u73=function(){for(var F=_.wa,q=0;q<F.length;q++){var t=XeC(F[q]),u=[];u.push(t);if(u.length===0)return 0}return 1};
_.JFy=function(){for(var F=_.wa,q={},t=0;t<F.length;q={jGH:void 0},t++){var u=[XeC(F[t])];q.jGH=[];u.forEach(function(J){return function(g){J.jGH[J.jGH.length]=g}}(q));
if(q.jGH.length===0)return 0}return 1};
_.hsM=function(){for(var F=_.X(gT_()),q=F.next();!q.done;q=F.next()){var t=q.value;q=t.jsonRepresentation;t=t.objectRepresentation;try{var u=JSON.parse(q);if(!ra(u,t,!1,!1))return 0}catch(J){return 0}}return 1};
_.Fny=function(){try{var F=_.ev("ab_det_sc_inj_val");F.length===1&&F[0]===""&&(F=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var q=document.querySelectorAll("script"),t=_.X(q),u=t.next();!u.done;u=t.next())for(var J=u.value,g=_.X(F),Y=g.next();!Y.done;Y=g.next()){var Q=Y.value;q=void 0;if((q=J.textContent)==null?0:q.includes(Q))return 0}}catch(e){return 4}return 1};
_.VDo=function(){var F,q,t,u,J,g,Y;return _.p(function(Q){switch(Q.nextAddress){case 1:_.zg(Q,2),F=_.X(spW),q=F.next();case 4:if(q.done)return Q.return(1);u=t=q.value;J=u.jsonRepresentation;g=u.objectRepresentation;return Q.yield((new Response(J,{status:200})).json(),7);case 7:Y=Q.yieldResult;if(!ra(Y,g,!1,!1))return Q.return(0);q=F.next();Q.jumpTo(4);break;case 2:return _.Gg(Q),Q.return(4)}})};
_.jA$=function(){try{btoa("abc")}catch(F){return 0}return 1};
PYW=function(){var F,q,t,u,J,g,Y,Q,e,r,N;return _.p(function(w){switch(w.nextAddress){case 1:_.zg(w,2),F=_.X(gT_()),q=F.next();case 4:if(q.done)return w.return(1);u=t=q.value;J=u.jsonRepresentation;g=u.objectRepresentation;Y=btoa(J);Q="data:application/json;base64,"+Y;e=new Request(Q);Object.defineProperty(e,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(e,"method",{get:function(){return"POST"}});
Object.defineProperty(e,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(e,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(e,"body",{get:function(){return new ReadableStream}});
return w.yield(fetch(e),7);case 7:return r=w.yieldResult,w.yield(r.json(),8);case 8:N=w.yieldResult;if(!ra(N,g,!1,!1))return w.return(0);q=F.next();w.jumpTo(4);break;case 2:return _.Gg(w),w.return(4)}})};
_.BtA=function(F){if(!F||!F.length||typeof F==="string")return 0;for(var q=function(J){return _.XK(J)},t=2,u=0;u<F.length&&(t=_.Y9$(_.MDC(F[u],q)),t!==0);u++);
return t};
_.Y9$=function(F){var q=_.X(F);F=q.next().value;q=q.next().value;try{var t=document.createElement("div");document.body.appendChild(t);var u=getComputedStyle(t).display;document.body.removeChild(t);if(u==="none")return 4;var J=getComputedStyle(q).display==="none"?0:1;document.body.removeChild(F);return J}catch(g){return 4}};
mT_=function(){var F,q,t;return _.p(function(u){F=new _.i1;q=document.createElement("button");q.classList.add("ytp-ad-skip-button");q.style.opacity="0";q.style.height="0px";q.style.width="0px";q.style.padding="0px";q.style.border="none";t=function(){q.parentElement&&q.parentElement.removeChild(q)};
q.onclick=function(){F.resolve(0);t()};
document.body.appendChild(q);setTimeout(function(){t();F.resolve(1)},50);
return u.return(F.promise)})};
vpC=function(){var F,q,t,u,J,g,Y;return _.p(function(Q){F=new _.i1;q=document.createElement("ytd-player");try{document.body.prepend(q)}catch(e){return Q.return(4)}t=function(){q.parentElement&&q.parentElement.removeChild(q)};
q.getElementsByTagName("div").length>0?u=q.getElementsByTagName("div")[0]:(u=document.createElement("div"),q.appendChild(u));J=document.createElement("div");u.appendChild(J);g=document.createElement("video");Y=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});g.src=_.mt(_.Vy(Y));g.ontimeupdate=function(){t();F.resolve(0)};
J.appendChild(g);g.classList.add("html5-main-video");setTimeout(function(){J.classList.add("ad-interrupting")},200);
setTimeout(function(){t();F.resolve(1)},5E3);
return Q.return(F.promise)})};
peW=function(F,q){var t,u;return _.p(function(J){switch(J.nextAddress){case 1:t=[],u=0;case 2:if(!(u<3)){J.jumpTo(4);break}return J.yield(fetch(F,{cache:"no-store",method:q}).then(function(g){t.push(g.status)}).catch(function(){t.push(-1)}),3);
case 3:u++;J.jumpTo(2);break;case 4:return J.return(t)}})};
QpW=function(F){return F.domainLookupStart===0&&F.domainLookupEnd===0&&F.connectStart===0&&F.connectEnd===0};
eDt=function(F,q,t){t=t===void 0?"GET":t;var u,J,g,Y,Q,e,r,N,w,k;return _.p(function(z){if(z.nextAddress==1)return z.yield(Promise.all([peW(F,t),peW(q,t)]),2);u=z.yieldResult;J=_.X(u);g=J.next().value;Y=J.next().value;Q=g;e=Y;if(Math.min.apply(Math,_.mZ(e))!==Math.max.apply(Math,_.mZ(e))||Math.min.apply(Math,_.mZ(Q))!==Math.max.apply(Math,_.mZ(Q)))return z.return(2);if(Math.min.apply(Math,_.mZ(e))===Math.min.apply(Math,_.mZ(Q)))return z.return(1);N=(r=performance.getEntriesByName(F))==null?void 0:
r[0];k=(w=performance.getEntriesByName(q))==null?void 0:w[0];return N&&k?QpW(k)?z.return(1):QpW(N)?z.return(0):z.return(1):z.return(2)})};
ytq=function(){var F;return _.p(function(q){var t=[];var u;var J,g,Y;(J=u=(J=eT().objectRepresentation.streamingData)==null?void 0:(g=J.formats)==null?void 0:(Y=g[0])==null?void 0:Y.url)&&J&&!u.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(J=J.replace("initcwndbps","ctier=L&initcwndbps"),J=J.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),u={testUrl:J,baseUrl:u,method:"GET"}):u=void 0;u&&t.push(u);_.E("ab_net_tp_e")&&t.push({testUrl:_.uu.location.origin+"/ad_companion",baseUrl:_.uu.location.origin+
"/generate_204",method:"OPTIONS"});if(_.E("ad_net_pb_ab")){var Q;b:{u=/api\/stats\/ads/;var e,r,N,w;J=(Q=eT().objectRepresentation.adPlacements)==null?void 0:(e=Q[0])==null?void 0:(r=e.adPlacementRenderer)==null?void 0:(N=r.renderer)==null?void 0:(w=N.linearAdSequenceRenderer)==null?void 0:w.linearAds;if(J!=null&&J.length&&(Q=_.n(J[0],Z__))&&(Q=Q.pings,Q!=null&&Q.impressionPings))for(e=[].concat(_.mZ(Q.impressionPings)),Q.progressPings&&(e=[].concat(_.mZ(e),_.mZ(Q.progressPings))),Q=_.X(e),e=Q.next();!e.done;e=
Q.next())if(e=e.value,e.baseUrl&&u.test(e.baseUrl)){Q=e.baseUrl.replace("https://www.youtube.com","");break b}Q=void 0}Q&&t.push({testUrl:_.uu.location.origin+Q,baseUrl:_.uu.location.origin+"/feed/download",method:"GET"})}if(_.E("ad_net_pb_pbp")){var k;b:{Q=/api\/stats\/qoe/;if(e=eT().objectRepresentation.playbackTracking){r=[];r.push(e==null?void 0:(k=e.videostatsPlaybackUrl)==null?void 0:k.baseUrl);var z;r.push(e==null?void 0:(z=e.videostatsDelayplayUrl)==null?void 0:z.baseUrl);var T;r.push(e==
null?void 0:(T=e.videostatsWatchtimeUrl)==null?void 0:T.baseUrl);var P;r.push(e==null?void 0:(P=e.ptrackingUrl)==null?void 0:P.baseUrl);var v;r.push(e==null?void 0:(v=e.qoeUrl)==null?void 0:v.baseUrl);var H;r.push(e==null?void 0:(H=e.atrUrl)==null?void 0:H.baseUrl);k=_.X(r);for(z=k.next();!z.done;z=k.next())if((z=z.value)&&Q.test(z)){k=z.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}k=void 0}k&&t.push({testUrl:_.uu.location.origin+k,baseUrl:_.uu.location.origin+
"/feed/download",method:"GET"})}t=t.length!==0?t[Math.floor(Math.random()*t.length)]:void 0;return(F=t)?q.return(eDt(F.testUrl,F.baseUrl,F.method)):q.return(4)})};
_.fBW=function(){if(_.uu.uQt===void 0||_.uu.uQt===null||typeof _.uu.uQt!=="function")return 2;try{return _.uu.uQt()===!0?0:1}catch(F){return 0}};
RDC=function(F){switch(F){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Uv(F,"unknown result type")}};
_.rF3=function(F,q){var t=Number(_.bn("CATSTAT",0));if(q.t9p===void 0)return t;q=q.t9p;F=RDC(F);return t&~(3<<q)|F<<q};
N8y=function(F){var q,t;if((F=(q=F.auxiliaryUi)==null?void 0:(t=q.messageRenderers)==null?void 0:t.bkaEnforcementMessageViewModel)&&F.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return F};
i_t=function(){for(var F=_.X(Object.values(_.weW)),q=F.next();!q.done;q=F.next())q=q.value,q.isAsync&&q.t9p&&_.$I("CATSTAT",_.rF3(2,q))};
_.nG=function(F,q){F=_.kh("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",F);(q===void 0?0:q)?_.kKu(F,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Ey(_.zr(),F,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
zDy=function(){if(!ETC){if(Polymer.Base){var F=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{F.apply(this,arguments)}catch(w){_.CI(w)}};
var q=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{q.apply(this,arguments)}catch(w){_.CI(w)}};
var t=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{t.apply(this,arguments)}catch(w){_.CI(w)}};
var u=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{u.apply(this,arguments)}catch(w){_.CI(w)}};
var J=Polymer.Base._listen,g=new WeakMap;Polymer.Base._listen=function(w,k,z){var T=function(){try{z.apply(this,arguments)}catch(P){_.CI(P)}};
g.set(z,T);J.call(this,w,k,T)};
var Y=Polymer.Base._unlisten;Polymer.Base._unlisten=function(w,k,z){Y.call(this,w,k,g.get(z))}}if(Polymer.Async){var Q=Polymer.Async,e=Q._atEndOfMicrotask;
Q._atEndOfMicrotask=function(){try{e.apply(Q,arguments)}catch(w){_.CI(w)}}}if(Polymer.RenderStatus){var r=Polymer.RenderStatus,N=r.afterNextRender;
r.afterNextRender=function(w,k,z){N.call(r,w,function(){try{k.apply(this,arguments)}catch(T){_.CI(T)}},z)}}ETC=!0}};
_.M1=function(F){var q=F?_.wN(F):"";if(q){if(q.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(q.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(q.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(q.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(q.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.E("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(q.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";q=q.toLowerCase();if(q==="/")return"home";if(q==="/channel_memberships")return"channel-memberships-shopfront";if(q.indexOf("/feed/trending")===0)return"trending";if(q.indexOf("/feed/explore")===0)return"explore";if(q.indexOf("/live")===0)return"live";if(q.indexOf("/results")===0)return"search";if(q.indexOf("/sports")===0)return"sports";if(q.indexOf("/fashion")===0||q.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(q))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(q))return _.E("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(q.indexOf("/channel/")===0||q.indexOf("/user/")===0||q.indexOf("/gaming")===0||q.indexOf("/post/")===0)return"channel";if(oTC(F))return"show";if(q==="/playlist"||q.indexOf("/playlist/")===0||q==="/view_play_list"||q.indexOf("/view_play_list/")===0||q.indexOf("/show/")===0)return"playlist";if(q==="/feed/history"||q.indexOf("/feed/history/")===0)return"history";if(q===
"/new")return"labs";if(q==="/feed/subscriptions")return"subscriptions";if(q.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(q==="/history_controls")return"standalone";if(q.indexOf("/account")===0||q==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(q.indexOf("/paid_memberships")===0||q.indexOf("/refund")===0||q.indexOf("/purchases")===0||q.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(q.indexOf("/product")===0)return"yts-products";if(q.indexOf("/premium")===
0||q.indexOf("/musicpremium")===0)return q.indexOf("/premium/offers")===0||q.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(q==="/cart/checkout"||q==="/cart")return"ypc-checkout";if(q.indexOf("/feed/downloads")===0||q.indexOf("/redeem")===0||q.indexOf("/reporthistory")===0)return"browse";if(q.indexOf("/hashtag")===0)return"hashtag-landing-page";if(q.indexOf("/handle")===0)return"handle";if(q.indexOf("/source")===0)return"audio-pivot";if(q.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(q.indexOf("/playables")===0)return"playables";if(q.indexOf("/create/live/join")===0)return"open-in-app";if(q.indexOf("/shorts")===0)return"shorts";if(q.indexOf("/feed/channels")===0)return"subscriptions-channels";(q=F?_.wN(F):"")&&q.indexOf("/watch")===0&&_.E("web_watch_enable_learning_journey")?(F=_.fI(F),F=!!F.list&&F.list.indexOf("LJPP")===0):F=!1;if(F)return"learning_journey_watch"}};
_.Tr=function(F){var q,t;(F=(t=_.n(F==null?void 0:F.commandMetadata,_.EH))==null?void 0:t.url)&&(q=_.M1(F));return q};
oTC=function(F){var q=F?_.wN(F):"";if(!q)return!1;q=q.toLowerCase();return q.indexOf("/show/")===0||q.indexOf("/playlist")===0&&(F=_.fI(F),F.list&&F.list.indexOf("EL")===0)?!0:!1};
Wx=function(F){var q="unknown",t;var u=((t=_.n(F==null?void 0:F.commandMetadata,_.EH))==null?void 0:t.webPageType)||"";u?(t=u.toLowerCase(),t.startsWith("web_page_type_")&&(t=t.slice(14))):t=u;t&&nTM[t.toUpperCase()]?q=nTM[t.toUpperCase()]:_.n(F,_.Gr)||_.n(F,MeW)?q="browse":_.n(F,_.Dn)?q="search":_.n(F,_.Fw)&&(q="watch");q==="watch"&&_.Tr(F||null)==="learning_journey_watch"&&(q="learning_journey_watch");q==="unknown"&&_.bz(Error("Lf`"+JSON.stringify({clickTrackingParams:F==null?void 0:F.clickTrackingParams,
commandMetadata:F==null?void 0:F.commandMetadata,allEndpointKeys:Object.keys(F||[])})));return q};
_.Oy=function(F){if(!_.T8q||F)_.T8q=_.G0();return _.T8q};
_.GK3=function(F){return!!_.n(F,_.Fw)||!!_.n(F,_.Px)&&_.E("kevlar_enable_shorts_prefetch")};
_.D$f=function(F,q){F=_.n(F,_.Fw)||_.n(F,_.Px);return"v"+F.videoId+(F.playlistId?"-pl"+F.playlistId:"")+(q?"-an1":"")+(F.params?"-pr"+F.params:"")};
xh=function(F){return function(){return new F}};
An=function(F){var q=_.sV();return function(){return q.resolve(F)}};
O_f=function(F){var q=_.YE("web_pbj_log_warning_rate",0);q=q>0&&Math.random()<q;if(!_.n(F,_.Px))return q&&_.bz(Error("Of")),!1;var t;return _.E("shorts_controller_retrieve_seedless_sequence_v2")&&((t=_.n(F,_.Px))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:WnM(F)?!0:(q&&_.bz(Error("Pf")),!1)};
WnM=function(F){var q=(_.n(F,_.Fw)||_.n(F,_.Px)).videoId;if(!q||!Pro.test(q))return!1;var t;return(F=(t=_.n(F.commandMetadata,_.EH))==null?void 0:t.url)&&(F.includes(q)||F.startsWith("/clip"))?!0:!1};
_.AFy=function(){var F=_.TV();return F.getFlag(192)?F.getFlag(190):!(_.E("web_watch_cinematics_disabled_by_default")||_.E("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&x$y())};
_.vx=function(F,q,t){var u={};u.currentUrl=q;u.vis=F.vis!==void 0?F.vis:0;u.splay=!1;q=_.TV();u.autoCaptionsDefaultOn=q.getFlag(66);q.getFlag(141)?q.getFlag(140)?u.autonavState="STATE_OFF":u.autonavState="STATE_ON":u.autonavState="STATE_NONE";u.html5Preference="HTML5_PREF_WANTS";isNaN(_.bn("STS"))||(u.signatureTimestamp=_.bn("STS"));F.autonav&&(u.autoplay=!0,u.autonav=!0);F.mutedAutoplay&&(u.autoplay=!0,u.mutedAutoplay=!0);F.inlinePlayback&&(u.autoplay=!0,u.autonav=!1,u.isInlineUnmutedPlayback=!!F.inlineUnmuted);
u.referer=t;u.lactMilliseconds=F.lact!==void 0?F.lact.toString():"-1";_.E("enable_unknown_lact_fix_on_html5")&&u.lactMilliseconds==="-1"&&_.bz(new _.D0("Unknown LACT is set in playbackContext.",{"lact in tempData":F.lact||"undefined",autonav:F.autonav||"undefined"}));F={};q.getFlag(194)&&(F.hasShownAmbientMode=!0);q.getFlag(192)&&(F.hasToggledOffAmbientMode=!0);_.AFy()&&(F.watchAmbientModeEnabled=!0);u.watchAmbientModeContext=F;return u};
vTy=function(F){var q={},t=F.pbis||0;t&&(q.playbackBeginsInSeconds=t);F.prefetch_reason&&F.prefetch_reason==="hc_pbis"&&(q.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return q};
_.Hx=function(F){F=F===void 0?!1:F;var q=_.TV(),t="USER_INTERFACE_THEME_LIGHT";q.getFlag(165)?t="USER_INTERFACE_THEME_DARK":q.getFlag(174)?t="USER_INTERFACE_THEME_LIGHT":_.Ib()&&(t="USER_INTERFACE_THEME_DARK");return F?t:IOM()||t};
_.H_W=function(){return!_.E("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Ib=function(){return _.H_W()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.mB=function(){var F=_.TV();return _.H_W()&&!F.getFlag(165)&&!F.getFlag(174)};
IOM=function(){var F=F===void 0?window.location.href:F;if(_.E("kevlar_disable_theme_param"))return null;var q=_.wN(F);if(_.m$$(q))return"USER_INTERFACE_THEME_DARK";try{var t=_.fI(F).theme;return $$P.get(t)||null}catch(u){}return null};
_.m$$=function(F){return _.E("enable_dark_theme_only_on_shorts")?!(F==null||!F.startsWith("/shorts/")):!1};
_.Crt=function(F,q,t,u,J){q=q===void 0?!1:q;t=t===void 0?!1:t;var g=_.bn("INNERTUBE_CONTEXT");if(!g)return _.mH(Error("Sf")),{};g=(0,_.m7.unsafeClone)(g);_.E("web_no_tracking_params_in_shell_killswitch")||delete g.clickTracking;g.client||(g.client={});var Y=g.client;Y.clientName==="MWEB"&&Y.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Y.clientFormFactor=_.bn("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Y.screenWidthPoints=window.innerWidth;Y.screenHeightPoints=window.innerHeight;Y.screenPixelDensity=
Math.round(window.devicePixelRatio||1);Y.screenDensityFloat=window.devicePixelRatio||1;Y.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());Y.userInterfaceTheme=_.Hx();if(!q){var Q=_.Ev_();Q&&(Y.connectionType=Q);_.E("web_log_effective_connection_type")&&(Q=ov3())&&(g.client.effectiveConnectionType=Q)}var e;if(_.E("web_log_memory_total_kbytes")&&((e=_.uu.navigator)==null?0:e.deviceMemory)){var r;e=(r=_.uu.navigator)==null?void 0:r.deviceMemory;g.client.memoryTotalKbytes=""+e*1E6}q&&u&&!_.E("web_it_context_set_original_url_ks")&&
(Y.originalUrl=b__(_.uu.location.href,u).toString());_.E("web_gcf_hashes_innertube")&&(Q=AnC())&&(r=Q.coldConfigData,e=Q.coldHashData,Q=Q.hotHashData,g.client.configInfo=g.client.configInfo||{},r&&(g.client.configInfo.coldConfigData=r),e&&(g.client.configInfo.coldHashData=e),Q&&(g.client.configInfo.hotHashData=Q));r=_.fI(_.uu.location.href);!_.E("web_populate_internal_geo_killswitch")&&r.internalcountrycode&&(Y.internalGeo=r.internalcountrycode);!_.E("web_populate_client_screen_killswitch")&&J&&(Y.clientScreen=
J);Y.clientName==="MWEB"||Y.clientName==="WEB"?(Y.mainAppWebInfo||(Y.mainAppWebInfo={}),Y.mainAppWebInfo.graftUrl=u||_.uu.location.href,_.E("kevlar_woffle")&&_.$h.instance&&(u=_.$h.instance,Y.mainAppWebInfo.pwaInstallabilityStatus=!u.appInstalledEventFired&&u.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),Y.mainAppWebInfo.webDisplayMode=MTu(),Y.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Y.clientName==="TVHTML5"&&
(!_.E("web_lr_app_quality_killswitch")&&(u=_.bn("LIVING_ROOM_APP_QUALITY"))&&(Y.tvAppInfo=Object.assign(Y.tvAppInfo||{},{appQuality:u})),u=_.bn("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Y.tvAppInfo=Object.assign(Y.tvAppInfo||{},{certificationScope:u}));!_.E("web_populate_time_zone_itc_killswitch")&&(u=ij_())&&(Y.timeZone=u);(u=bJC())?Y.experimentsToken=u:delete Y.experimentsToken;Y=yV3();u=_.yFy();u=(0,_.m7.getValues)(u.tokenJars);g.request=Object.assign({},g.request,{internalExperimentFlags:Y,consistencyTokenJars:u});
!_.E("web_prequest_context_killswitch")&&(Y=_.bn("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(g.request.externalPrequestContext=Y);u=_.TV();Y=u.getFlag(58);u=u.get("gsml","");g.user=Object.assign({},g.user);Y&&(g.user.enableSafetyMode=Y);u&&(g.user.lockedSafetyMode=!0);_.E("warm_op_csn_cleanup")?t&&(q=_.yb())&&(g.clientScreenNonce=q):!q&&(q=_.yb())&&(g.clientScreenNonce=q);F&&(g.clickTracking={clickTrackingParams:F});if(F=_.S6("yt.mdx.remote.remoteClient_"))g.remoteClient=F;_.b1.getInstance().setLocationOnInnerTubeContext(g);
try{var N=flC(),w=N.bid;delete N.bid;g.adSignalsInfo={params:[],bid:w};for(var k=_.X(Object.entries(N)),z=k.next();!z.done;z=k.next()){var T=_.X(z.value),P=T.next().value,v=T.next().value;N=P;w=v;F=void 0;(F=g.adSignalsInfo.params)==null||F.push({key:N,value:""+w})}var H,d;if(((H=g.client)==null?void 0:H.clientName)==="TVHTML5"||((d=g.client)==null?void 0:d.clientName)==="TVHTML5_UNPLUGGED"){var a=_.bn("INNERTUBE_CONTEXT");a.adSignalsInfo&&(g.adSignalsInfo.advertisingId=a.adSignalsInfo.advertisingId,
g.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",g.adSignalsInfo.limitAdTracking=a.adSignalsInfo.limitAdTracking)}}catch(S){_.mH(S)}return g};
_.d$$=function(F){var q=new y8(_.bn("ONE_PICK_URL",""));q.urlParamMap_.set("hostId",F);(F=_.bn("GAPI_LOCALE"))&&q.urlParamMap_.set("hl",F);(F=_.bn("SESSION_INDEX"))&&q.urlParamMap_.set("authuser",F);(F=_.bn("DELEGATED_SESSION_ID"))&&q.urlParamMap_.set("groupId",F);return q};
U$W=function(){var F=_.sV(),q=F.resolve(_.CG);F=F.resolve(_.da);return new VeM(q,F)};
hDv=function(F){if(window.IntersectionObserver)return new S9t(F,400);throw new TypeError("Zf");};
B8A=function(){var F=Hammer.TouchAction,q=F.prototype.preventDefaults;F.prototype.preventDefaults=function(t){var u=this.actions.indexOf("pan-down")>-1;if(!u)return q.call(this,t);if(!Kn3){var J=t.srcEvent;t=t.direction;var g;if((g=this.manager)==null?0:g.session.prevented)J.preventDefault();else if(u&&t&Hammer.DIRECTION_DOWN)return this.preventSrc(J)}}};
LnA=function(F){if(!F||F.size===0)return Hammer.DIRECTION_ALL;if(F.size===2){if(F.has("up")&&F.has("down"))return Hammer.DIRECTION_VERTICAL;if(F.has("right")&&F.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(F.size===1){if(F.has("up"))return Hammer.DIRECTION_UP;if(F.has("down"))return Hammer.DIRECTION_DOWN;if(F.has("right"))return Hammer.DIRECTION_RIGHT;if(F.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.aOv=function(){return fOP?Promise.resolve(fOP):new Promise(function(F,q){var t=self.indexedDB.open("swpushnotificationsdb");t.onerror=q;t.onsuccess=function(){var u=t.result;if(u.objectStoreNames.contains("swpushnotificationsstore"))fOP=u,F(fOP);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.aOv()};
t.onupgradeneeded=jpo})};
jpo=function(F){F=F.target.result;F.objectStoreNames.contains("swpushnotificationsstore")&&F.deleteObjectStore("swpushnotificationsstore");F.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
Fm$=function(F){var q=cFy(),t;return _.p(function(u){switch(u.nextAddress){case 1:return _.zg(u,2),u.yield(F.match(q,{cacheName:"yt-appshell-assets"}),4);case 4:t=u.yieldResult;_.LE(u,3);break;case 2:_.Gg(u);case 3:return u.return(t)}})};
cFy=function(){var F=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?qlq.registration.scope:t2q;F.endsWith("/")&&(F=F.slice(0,-1));return F+"/app_shell_home"};
uOP=function(F){F.map(function(q){return q.source}).join("|")};
_.JpW=function(F){return _.p(function(q){return q.return(Fm$(F))})};
sn_=function(){var F=window.caches,q;return _.p(function(t){if(t.nextAddress==1)return t.yield(_.JpW(F),2);q=t.yieldResult;return t.return(!!q)})};
erv=function(){_.p(function(F){if(F.nextAddress==1){if(gGf)return F.jumpTo(0);gGf=!0;if(_.E("enable_system_health_primes_monitoring"))return _.rN(lEt,3E4),XBM(),F.return();if(!(Math.random()<_.YE("web_system_health_fraction")))return F.jumpTo(0);YlM={heightPixels:screen.height,widthPixels:screen.width};V8&&!isNaN(V8.jsHeapSizeLimit)&&(YlM.memoryTotalKbytes=String(Math.round(V8.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(YlM.devicePixelRatio=window.devicePixelRatio);return F.yield(pBu(),4)}_.rN(lEt,
3E4);return F.yield(Qnq(),0)})};
pBu=function(){return _.p(function(F){if(F.nextAddress==1)return Uy.intersectionObserverPresent="IntersectionObserver"in window,Uy.serviceWorkerPresent="serviceWorker"in navigator,Uy.webSharePresent="share"in navigator,Uy.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Uy.cacheStoragePresent="caches"in window,Uy.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Uy.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Uy.webkitTemporaryStoragePresent="webkitTemporaryStorage"in ST&&ST.webkitTemporaryStorage&&"queryUsageAndQuota"in ST.webkitTemporaryStorage,Uy.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",F.yield(jYv(),2);Uy.indexedDbPresent=F.yieldResult;Uy.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Uy.broadcastChannelPresent="BroadcastChannel"in window;Uy.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Uy.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Uy.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.WA(F)})};
lEt=function(){var F=9E4+Math.random()*2E3;_.X1()>F||(_.E("enable_system_health_primes_monitoring")?XBM():Qnq())};
Qnq=function(){var F;return _.p(function(q){if(q.nextAddress==1)return q.yield(ZNW(),2);F=q.yieldResult;_.IJ("systemHealthCaptured",F);_.WA(q)})};
XBM=function(){var F={metric:{}},q=Rro();q.networkEvents.length&&(F.metric.networkEvents=rp3(q));_.IJ("systemHealthCaptured",F)};
ZNW=function(){var F,q,t,u,J,g,Y,Q,e,r;return _.p(function(N){switch(N.nextAddress){case 1:F={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};q=window.screen;_.E("enable_is_extended_monitoring")&&q&&"isExtended"in q&&(F.isExtended=!!q.isExtended);t={metric:{staticContext:YlM,dynamicContext:F,webMetric:Nu_,webApiSupport:Uy}};
if(u=_.yb())t.csn=u;V8&&(t.metric.webMetric.currentHeapKbytes=Math.round(V8.usedJSHeapSize/1E3));window.matchMedia&&(t.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,t.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,t.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in ST&&typeof ST.getBattery==="function")){N.jumpTo(2);break}return N.yield(ST.getBattery(),3);case 3:if(J=
N.yieldResult)t.metric.dynamicContext.chargingStatus=J.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(t.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Uy.storageEstimatePresent)return N.yield(navigator.storage.estimate(),8);if(!Uy.webkitTemporaryStoragePresent){N.jumpTo(5);break}return N.yield(wBu(),7);case 7:g=N.yieldResult;N.jumpTo(5);break;case 8:g=N.yieldResult;case 5:return t.metric.dynamicContext.deviceStorageQuotaMbytes=((Y=g)==null?0:Y.quota)?String(Math.round(g.quota/
1048576/10)*10):"-1",t.metric.dynamicContext.deviceStorageUsageMbytes=((Q=g)==null?0:Q.usage)?String(Math.round(g.usage/1048576/10)*10):"-1",e=t.metric.dynamicContext,N.yield(sn_(),9);case 9:return e.hasAppShell=N.yieldResult,r=Rro(),r.networkEvents.length&&(t.metric.networkEvents=rp3(r)),N.return(t)}})};
wBu=function(){return new Promise(function(F){var q;Uy.webkitTemporaryStoragePresent&&(q=ST.webkitTemporaryStorage)!=null&&q.queryUsageAndQuota?ST.webkitTemporaryStorage.queryUsageAndQuota(function(t,u){F({usage:t,quota:u})}):F(void 0)})};
_.hn=function(F){F&=16777215;F=[(F&16711680)>>16,(F&65280)>>8,F&255];return iNu(F[0],F[1],F[2])};
_.KG=function(F){F=[(F&16711680)>>>16,(F&65280)>>>8,F&255,(F&4278190080)>>>24];var q=_.kuu(F,function(t){return t==(t&255)});
F[3]=(F[3]/255).toFixed(3);if(!q)throw Error("$f`"+F.join(","));return"rgba("+F.join(",")+")"};
_.EG_=function(F){return[(F&16711680)>>>16,(F&65280)>>>8,F&255]};
_.zrq=function(F){F=F.map(function(q){q/=255;return q<=.03928?q/12.92:Math.pow((q+.05)/1.05,2.4)});
return F[0]*.2126+F[1]*.7152+F[2]*.0722};
Bx=function(F,q){F=_.EG_(F);return"rgba("+F[0]+", "+F[1]+", "+F[2]+", "+q+")"};
_.oGM=function(){try{return!!self.localStorage}catch(F){return!1}};
Guy=function(){if(nG$())_.bz(Error("ag"));else{var F=document.createElement("iframe");F.style.display="none";var q=q===void 0?window.location.href:q;var t=_.$w(_.bn("PERSIST_IDENTITY_IFRAME_URL"));q=t?t:(new URL(q)).host.indexOf("studio")===0?_.RV(M2$,"persist_identity"):_.RV(Tuv,"persist_identity");_.loC(F,1,q);F.id="persist_identity";var u;(u=document.body)==null||u.appendChild(F)}};
nG$=function(){var F=D7A;F||(F=document.querySelector("#persist_identity"));return F};
Wm$=function(){var F=!1;try{F=!!window.sessionStorage.getItem("session_logininfo")}catch(q){F=!0}return(_.bn("INNERTUBE_CLIENT_NAME")==="WEB"||_.bn("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&F};
ONW=function(F,q){if(!Wm$())return!1;q||(q=_.bn("LOGIN_INFO"));return q?(F.session_logininfo=q,!0):!1};
x73=function(F,q){F=F===void 0?!1:F;if((q===void 0||!q)&&PjW!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.yG("LOG_STICKINESS",!1)){q=_.yb();var t=_.b7(),u={identityStickinessData:{initialState:PjW}};q&&t&&_.qp(q,t,u)}if(q=nG$())if(t=q.src?(new URL(q.src)).origin:"*",F){var J;(J=q.contentWindow)==null||J.postMessage({action:"clear"},t)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(F=window.sessionStorage.getItem("session_logininfo"))){var g;(g=q.contentWindow)==null||g.postMessage({loginInfo:F},t)}};
_.LG=function(F){F=F===void 0?!0:F;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.$I("LOGIN_INFO",""),F&&window.sessionStorage.setItem("from_switch_account","1"),x73(!0,F)}catch(q){}};
ApC=function(F){F&&(F.startsWith("https://accounts.google.com/AddSession")?_.LG():F.startsWith("https://accounts.google.com/ServiceLogin")?_.LG():F.startsWith("https://myaccount.google.com")&&_.Lr(F).getPath().endsWith("/youtubeoptions")&&_.LG())};
fG=function(F,q){ApC(F);if(_.yG("LOGGED_IN",!0)&&Wm$()){var t=MZv(F);t==null&&(t={});ONW(t,q)&&_.JV(F,t)}};
vGW=function(){function F(q){for(q=q.target;q&&q.nodeName!=="A";)if(q=q.parentNode,!(q&&q instanceof HTMLElement))return;if(q&&!q.hasAttribute("download")&&q.getAttribute("rel")!=="external"&&q.href)return q.href}
document.addEventListener("mousedown",function(q){q.button!==0&&(q=F(q))&&fG(q)});
document.addEventListener("click",function(q){(q=F(q))&&fG(q)})};
m7_=function(){var F=new IEo;try{if(_.yG("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(Q){F.increment(5,!1);return}if(_.bn("LOGIN_INFO")){var q=HNy?HNy:window.location;_.bn("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Guy();var t=MZv(q.href);t==null&&(t={});var u=t.session_logininfo,J=Number(window.sessionStorage.getItem("stickiness_reload")),g=u===_.bn("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
J>=2||g)J>=2?F.increment(2,g):g?F.increment(7,g):window.sessionStorage.getItem("session_logininfo")||(F.increment(3,g),PjW="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.bn("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.bn("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))F.increment(4,g),window.sessionStorage.removeItem("stickiness_reload");
else if(J<2){window.sessionStorage.setItem("stickiness_reload",String(J+1));var Y=q.href;Y=_.sH(Y,"sttick");fG(Y,window.sessionStorage.getItem("session_logininfo"));Y=_.a5(Y,{sttick:J});F.increment(J,g);_.Z6C(q,Y)}}else F.increment(6,!1)}else _.LG(!1)}catch(Q){}};
_.ab=function(F,q,t,u,J){q=q===void 0?{}:q;t=t===void 0?"":t;u=u===void 0?window:u;F=_.j6(F,q);fG(F);t=_.d$(F+t,J);_.Z6C(u.location,t)};
_.$7A=function(F,q,t,u,J){J=J===void 0?!1:J;t&&_.JV(F,t);t=_.d$(F);var g=_.mt(t);F!=g&&_.hN(Error("bg`"+F));F=g;q=q||BW(F).toString(36);try{if(J)return J=F,J=Dcv(J),fG(J),_.jO(window,J,q,"attributionsrc")}catch(Y){_.CI(Y)}fG(F);return _.jO(window,t,q,u)};
bNW=function(F){if(F.urlEndpoint){if(F=_.fI(F.urlEndpoint.url),F.adurl)return uK(F.adurl)}else if(F.watchEndpoint)return"//www.youtube.com/watch?v="+F.watchEndpoint.videoId;return null};
ypt=function(F){if(!F||!F.reportingPings)return null;var q={};F.reportingPings.forEach(function(t){t.pingType in q?q[t.pingType].push(t.url):q[t.pingType]=[t.url]});
return{adpings:Mc_(q)}};
_.jT=function(){return{isShellLoad:_.yG("IS_SHELL_LOAD",!1)}};
d7u=function(){navigator.serviceWorker.getRegistrations().then(function(F){F.forEach(CjP)})};
CjP=function(F){F&&_.V2u(U7$,F.scope)};
_.V2u=function(F,q){q={scope:q||_.pE("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.PS(F),q)};
cx=function(F,q,t,u){if(q&&q.serializedYpcCujLoggingParams){if(t){var J={};J.transactionErrorType=t;u&&(J.errorMessage=u);q.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:J}}}t={};t.ypcCujContext=q;F=_.kh("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",F,t);_.Ey(_.zr(),F,"FLOW_TYPE_YPC_ACQUISITION")}};
_.Slo=function(F,q,t,u){var J={};J.serializedTransactionFlowLoggingParams=q;t&&(J.errorType=t);u&&(J.errorMessage=u);_.IJ(F,J);_.H2()};
_.hrP=function(F){F&&_.Slo("transactionFlowStarted",F)};
_.Kmv=function(F){F&&_.Slo("transactionFlowCancelled",F)};
_.Fe=function(F,q,t){q&&_.Slo("transactionFlowFailed",q,F,t)};
BuC=function(F){var q=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");q&&(q.inert=F)};
_.qs=function(){this.megabloxUrl_=null};
_.tY=function(F){try{var q=Lmo==null?void 0:Lmo.composedPath(F)}catch(t){q=F.composedPath?F.composedPath():[]}return q&&q.length>0?q:F.composedPath?F.composedPath():[]};
_.uL=function(F){return _.tY(F)[0]};
_.JY=function(F){if(!(F instanceof Element))return null;F=F.classList?Array.from(F.classList):void 0;if(!F)return null;var q=F.indexOf("style-scope");return q>-1&&q+1<F.length?F[q+1]:null};
sB=function(F){if(!(F instanceof HTMLElement))return null;var q=F&&(F.$$||F.polymerController)?F.tagName.toLowerCase():null;return q?q:_.JY(F)};
fE$=function(F,q){return F.replace(/[^a-z]*[^\s]+/g,function(t){return t+".style-scope."+q})};
aEM=function(F,q){return q?F.split(",").map(function(t){return fE$(t.trim(),q)}).join(", "):F};
_.gs=function(F){var q,t,u,J;return(J=(u=(t=(q=F.root)!=null?q:F.shadowRoot)!=null?t:F.__shady_native_shadowRoot)!=null?u:F.__shady_shadowRoot)!=null?J:F};
lL=function(F){return F instanceof ShadowRoot?ShadowRoot:F instanceof DocumentFragment?DocumentFragment:F instanceof Document?Document:HTMLElement};
jnf=function(F){var q,t,u;return(u=(t=(q=F.parentElement)!=null?q:F.__shady_native_parentElement)!=null?t:F.__shady_parentElement)!=null?u:null};
cp3=function(F){var q,t,u;return(u=(t=(q=F.parentNode)!=null?q:F.__shady_native_parentNode)!=null?t:F.__shady_parentNode)!=null?u:null};
Fao=function(F){var q,t,u;return(u=(t=(q=F.__shady_parentNode)!=null?q:F.__shady_native_parentNode)!=null?t:F.parentNode)!=null?u:null};
qiu=function(F){var q,t;return(t=(q=cp3(F))!=null?q:F.host)!=null?t:null};
tfA=function(F){var q,t,u;return(u=(t=(q=F.nextSibling)!=null?q:F.__shady_native_nextSibling)!=null?t:F.__shady_nextSibling)!=null?u:null};
uJf=function(F){var q,t,u;return(u=(t=(q=F.previousSibling)!=null?q:F.__shady_native_previousSibling)!=null?t:F.__shady_previousSibling)!=null?u:null};
JPo=function(F){var q,t,u;return(u=(t=(q=F.nextElementSibling)!=null?q:F.__shady_native_nextElementSibling)!=null?t:F.__shady_nextElementSibling)!=null?u:null};
sMP=function(F){var q,t,u;return(u=(t=(q=F.previousElementSibling)!=null?q:F.__shady_native_previousElementSibling)!=null?t:F.__shady_previousElementSibling)!=null?u:null};
g5q=function(F){var q,t,u;return new Set([].concat(_.mZ((q=F.children)!=null?q:[]),_.mZ((t=F.__shady_native_children)!=null?t:[]),_.mZ((u=F.__shady_children)!=null?u:[])))};
lNu=function(F){var q,t,u;return new Set([].concat(_.mZ((q=F.childNodes)!=null?q:[]),_.mZ((t=F.__shady_native_childNodes)!=null?t:[]),_.mZ((u=F.__shady_childNodes)!=null?u:[])))};
XEt=function(F){if(!F)return null;var q=_.JY(F);if(!q){var t;return(t=Node.prototype.getRootNode)==null?void 0:t.call(F)}q=q.toUpperCase();for(F=jnf(F);F&&F.tagName!==q;)F=jnf(F);return F?_.gs(F):null};
YiC=function(F){for(;F&&!(F instanceof HTMLElement);)F=qiu(F);return F};
pE_=function(F){var q=YiC(F);return F===q?_.JY(F):q?sB(q):null};
QMW=function(F){return(F=YiC(F))?sB(F):null};
eaW=function(F){if(F instanceof Comment)return!1;if(F instanceof Text){var q,t;if(((t=(q=F.textContent)==null?void 0:q.trim())!=null?t:"")==="")return!1}return!0};
Xe=function(F,q,t){var u=q(F);for(t=t===void 0?QMW(F):t;u&&(pE_(u)!==t||!eaW(u));)F=u,u=q(F);return u};
Z2M=function(F,q,t){if(!q)return null;F=QMW(F);return pE_(q)===F&&eaW(q)?q:Xe(q,t,F)};
Ra$=function(F){return Xe(F,Fao,_.JY(F))};
rPq=function(F){return Xe(F,JPo)};
N_q=function(F){return Xe(F,tfA)};
wEo=function(F){return Xe(F,sMP)};
i2q=function(F){return Xe(F,uJf)};
kjo=function(F){return Z2M(F,F.firstChild||F.__shady_native_firstChild||F.__shady_firstChild||null,tfA)};
E5W=function(F){var q,t,u;var J=(u=(t=(q=F.firstElementChild)!=null?q:F.__shady_native_firstElementChild)!=null?t:F.__shady_firstElementChild)!=null?u:null;return Z2M(F,J,JPo)};
zao=function(F){var q,t,u;var J=(u=(t=(q=F.lastChild)!=null?q:F.__shady_native_lastChild)!=null?t:F.__shady_lastChild)!=null?u:null;return Z2M(F,J,uJf)};
o5M=function(F){var q,t,u;var J=(u=(t=(q=F.lastElementChild)!=null?q:F.__shady_native_lastElementChild)!=null?t:F.__shady_lastElementChild)!=null?u:null;return Z2M(F,J,sMP)};
n5C=function(F){var q=QMW(F);return Array.from(lNu(F)).filter(function(t){return pE_(t)===q})};
MfA=function(F){var q=sB(F);return Array.from(g5q(F)).filter(function(t){return _.JY(t)===q})};
_.YM=function(F,q,t){if(F instanceof HTMLElement&&_.JY(F)===t){var u=Array.from(F.classList).indexOf("style-scope");if(u===-1)F.classList.add("style-scope"),F.classList.add(q);else if(!(u+1>=F.classList.length)){u=F.classList[u+1];var J,g;F==null||(J=F.classList)==null||(g=J.replace)==null||g.call(J,u,q)}}if(F instanceof HTMLElement||F instanceof DocumentFragment)for(J=_.X(g5q(F)),g=J.next();!g.done;g=J.next())_.YM(g.value,q,t);return F};
p1=function(F,q){if(F instanceof HTMLElement&&_.JY(F)===q){var t=Array.from(F.classList).indexOf("style-scope");t===-1||t+1>=F.classList.length||F.classList.remove("style-scope",F.classList[t+1])}if(F instanceof HTMLElement||F instanceof DocumentFragment){t=_.X(F.children);for(var u=t.next();!u.done;u=t.next())p1(u.value,q)}return F};
_.T__=function(F,q){return lL(F).prototype.appendChild.call(F,q)};
Gjv=function(F,q){if(F===q)return!0;F=lNu(F);return Array.from(F).some(function(t){return Gjv(t,q)})};
_.ep=function(F,q){if(F instanceof Qu)return F;(q==null?0:q.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(F,"ownerDocument")&&Object.defineProperty(F,"ownerDocument",{get:function(){return window.document}});
return new Qu(F)};
WaM=function(){var F=Qu.prototype,q=[].concat(_.mZ(Diu?[]:["getRootNode"]),["setAttribute","removeAttribute"]);q=_.X(q);for(var t=q.next(),u={};!t.done;u={method$jscomp$51:void 0},t=q.next())u.method$jscomp$51=t.value,F[u.method$jscomp$51]=function(J){return function(){return this.host[J.method$jscomp$51].apply(this.host,arguments)}}(u)};
PPv=function(){var F=Qu.prototype,q=[].concat(_.mZ(Diu?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.mZ(O23?[]:["querySelector","querySelectorAll"]));q=_.X(q);for(var t=q.next(),u={};!t.done;u={method$jscomp$52:void 0},t=q.next())u.method$jscomp$52=t.value,F[u.method$jscomp$52]=function(J){return function(){return this.root[J.method$jscomp$52].apply(this.root,arguments)}}(u)};
v5A=function(){var F=Qu.prototype,q=[].concat(_.mZ(xio?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.mZ(APP?[]:["parentNode"]));q=_.X(q);for(var t=q.next(),u={};!t.done;u={prop$jscomp$63:void 0},t=q.next())u.prop$jscomp$63=t.value,Object.defineProperty(F,u.prop$jscomp$63,{get:function(J){return function(){return this.host[J.prop$jscomp$63]}}(u),
configurable:!0})};
miv=function(){var F=Qu.prototype,q=["activeElement"].concat(_.mZ(xio?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.mZ(IN$?[]:["children"]),_.mZ(H2f?[]:["lastChild"]));q=_.X(q);for(var t=q.next(),u={};!t.done;u={prop$jscomp$64:void 0},t=q.next())u.prop$jscomp$64=t.value,Object.defineProperty(F,u.prop$jscomp$64,{get:function(J){return function(){return this.root[J.prop$jscomp$64]}}(u),
configurable:!0})};
$iu=function(){for(var F=Qu.prototype,q=_.X(["innerHTML","textContent"]),t=q.next(),u={};!t.done;u={prop$jscomp$65:void 0},t=q.next())u.prop$jscomp$65=t.value,Object.defineProperty(F,u.prop$jscomp$65,{get:function(J){return function(){return this.root[J.prop$jscomp$65]}}(u),
set:function(J){return function(g){this.root[J.prop$jscomp$65]=g}}(u),
configurable:!0})};
b2o=function(F){var q=Qu.prototype;F=_.X(Object.entries(F));for(var t=F.next(),u={};!t.done;u={fn$jscomp$401:void 0},t=F.next()){var J=_.X(t.value);t=J.next().value;J=J.next().value;u.fn$jscomp$401=J;q[t]=function(g){return function(){return g.fn$jscomp$401.apply(null,[this.host.node||this.host].concat(_.mZ(arguments)))}}(u)}};
CPM=function(){for(var F=Qu.prototype,q=_.X(Object.entries(yPC)),t=q.next(),u={};!t.done;u={fn$jscomp$402:void 0},t=q.next()){var J=_.X(t.value);t=J.next().value;J=J.next().value;u.fn$jscomp$402=J;Object.defineProperty(F,t,{get:function(g){return function(){return g.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.mZ(arguments)))}}(u),
configurable:!0})}};
_.Zj=function(F){return F instanceof diW||F instanceof Document?F:new diW(F)};
Vfo=function(){for(var F=diW.prototype,q=_.X("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),t=q.next(),u={};!t.done;u={method$jscomp$53:void 0},t=q.next())u.method$jscomp$53=t.value,F[u.method$jscomp$53]=function(J){return function(){return HTMLElement.prototype[J.method$jscomp$53].call.apply(HTMLElement.prototype[J.method$jscomp$53],[this.node].concat(_.mZ(arguments)))}}(u)};
UiM=function(){for(var F=diW.prototype,q=_.X("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),t=q.next(),u={};!t.done;u={prop$jscomp$66:void 0},t=q.next())u.prop$jscomp$66=t.value,Object.defineProperty(F,u.prop$jscomp$66,{get:function(J){return function(){var g;return(g=this.node["__shady_native_"+J.prop$jscomp$66])!=null?g:this.node[J.prop$jscomp$66]}}(u),
configurable:!0})};
_.RE=function(F,q,t){t===void 0&&(t=!F.classList.contains(q));t?F.classList.add(q):F.classList.remove(q)};
_.rs=function(F,q,t){t===void 0&&(t=!F.hasAttribute(q));if(q==="class")throw Error("fg");t?_.Zj(F).setAttribute(q,""):_.Zj(F).removeAttribute(q)};
Siq=function(F){return(F.localName!=="slot"?[]:(0,_.Ns)(F).assignedNodes({flatten:!0})).filter(function(q){return q.nodeType===Node.ELEMENT_NODE})};
_.haM=function(F){return(F=_.ep(F).querySelector("slot"))&&F.localName==="slot"?Siq(F):[]};
_.ws=function(F,q){window.ShadyCSS&&window.ShadyCSS.styleSubtree(F,q)};
iL=function(F,q){var t=q.bind(F);return function(u){t(u,u.detail)}};
_.kM=function(F,q){var t=KaP.get(F);t||(t=new WeakMap,KaP.set(F,t));if(t.has(q))return t.get(q);if(_.E("web_fi_listen_disable_bound_fn_helper")){var u=q.bind(F);F=function(J){u(J,J==null?void 0:J.detail)}}else F=iL(F,q);
t.set(q,F);return F};
fNP=function(F,q){B__(F);F.created[Lau].push(q)};
B__=function(F){if(!F.created||!F.created[Lau]){var q=F.created,t=q?[q]:[];F.created=function(){for(var u=_.X(t),J=u.next();!J.done;J=u.next())J.value.apply(this)};
F.created[Lau]=t}};
aNy=function(F){return function(){var q=_.US.apply(0,arguments);return function(t,u,J){F.apply(null,_.mZ(q))(t,u,J)}}};
jMq=function(){return function(){var F=_.US.apply(0,arguments);return function(q,t,u){dtv.apply(null,_.mZ(F))(q,t,u)}}};
_.D=function(F){return jMq()(F)};
_.W=function(){return aNy(hKf).apply(null,_.mZ(_.US.apply(0,arguments)))};
_.EB=function(F){return _.E("pbcm_fi_listen_decorators")?cPt(F):aNy(Uto)(F)};
cPt=function(F){return function(q,t){fNP(q,function(){var u=this[t],J=_.E("web_fi_listen_disable_bound_fn_helper")?function(g){u(g,g.detail)}.bind(this):iL(this,u);
F2y.has(F)?m0(this.hostElement,F,J):this.hostElement.addEventListener(F,J)})}};
_.za=function(){return aNy(SNu).apply(null,_.mZ(_.US.apply(0,arguments)))};
_.O=function(F){F=F===void 0?{}:F;return aNy(VLo)(F)};
_.n1=function(F){if(F.hostElement&&F!==F.hostElement){var q=_.xz(F.hostElement);q=F.renderIdom?q:q.shadowRoot}q||(F=F.root,q=F instanceof Node?_.xz(F):null);return q};
_.Ms=function(F){return qmC?tHq(F):function(q,t){Object.defineProperty(q,t,{get:function(){var u;return(u=_.n1(this))==null?void 0:u.querySelector(F)},
enumerable:!0,configurable:!0})}};
tHq=function(F){return function(q,t){Object.defineProperty(q,t,{get:function(){var u,J=(u=_.ep(this.hostElement))==null?void 0:u.querySelector(F);if(J)return J;var g;return(g=_.n1(this))==null?void 0:g.querySelector(F)},
enumerable:!0,configurable:!0})}};
_.Ta=function(F){return qmC?uut(F):function(q,t){Object.defineProperty(q,t,{get:function(){var u;return(u=_.n1(this))==null?void 0:u.querySelectorAll(F)},
enumerable:!0,configurable:!0})}};
uut=function(F){return function(q,t){Object.defineProperty(q,t,{get:function(){var u,J=(u=_.ep(this.hostElement))==null?void 0:u.querySelectorAll(F);if(J==null?0:J.length)return J;var g;return(g=_.n1(this))==null?void 0:g.querySelectorAll(F)},
enumerable:!0,configurable:!0})}};
JrM=function(F){return function(q){if(![_.se,_.x].includes(Object.getPrototypeOf(q.prototype).constructor))throw Error("gg");vVP(Object.assign({},typeof F!=="string"?F:{is:F,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(q)}};
_.Dj=function(){var F=F===void 0?{}:F;return function(q){if(![gQ,_.Ga].includes(Object.getPrototypeOf(q.prototype).constructor))throw Error("hg");IHo(Object.assign({},F,{disableInheritanceCheck:!0}))(q)}};
g1v=function(F,q){sot[F]!=null||(sot[F]=new Set);sot[F].add(q)};
_.Wh=function(){var F=_.za.apply(null,_.mZ(_.US.apply(0,arguments)));return function(q,t){g1v(q.is,t);F(q,t)}};
xM=function(F,q,t){if(OB(F)&&!lLq.has(q)){q=q.replace(/^JSC\$[\d]+_/,"");q=q.replace(/\.\d+(\.|$)/g,function(g,Y){return".#"+Y});
Ph[F]!=null||(Ph[F]={});var u,J;(u=Ph[F])[J=q]!=null||(u[J]=new Set);Ph[F][q].has(t)||(Ph[F][q].add(t),_.IJ("polymerPropertyAccessEvent",{componentName:F,propertyName:q,accessType:t}))}};
XYq=function(){return _.E("polymer_property_access_logging_debug")||_.E("polymer_enable_property_access_logging")};
OB=function(F){if(_.E("polymer_property_access_logging_debug"))return!0;if(!_.E("polymer_enable_property_access_logging"))return!1;Ym_||(Ym_=Date.now());return(BW(F)+Ym_)%100<_.YE("polymer_property_access_logging_percent")};
pYy=function(F,q){return OB(q)&&F.hostElement.loggingStatus?new Proxy(F,{get:function(t,u,J){if(t.hostElement.loggingStatus.bypassProxyController)return t[u];t.hostElement.loggingStatus.isExternalGet=!0;var g=t[u];t.hostElement.loggingStatus.isExternalGet=!1;if(g instanceof Function)return function(){var Y=_.US.apply(0,arguments);try{return t.hostElement.loggingStatus.currentExternalCall=u,xM(q,u,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),g.apply(this===J?t:this,Y)}finally{t.hostElement.loggingStatus.currentExternalCall=
void 0}};
xM(q,u,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return g},
set:function(t,u,J){if(t.hostElement.loggingStatus.bypassProxyController)return t[u]=J,!0;t.hostElement.loggingStatus.isRendererStamper?xM(q,u,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):t.hostElement.loggingStatus.isDeclarativeExternal||xM(q,u,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{t.hostElement.loggingStatus.currentExternalSet=u,t[u]=J}finally{t.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):F};
Qoo=function(F,q){F&&F.loggingStatus&&!F.loggingStatus.isDeclarativeExternal&&!F.loggingStatus.isExternalGet&&F.loggingStatus.currentExternalSet!==q&&xM(F.tagName.toLowerCase(),q,"PROPERTY_ACCESS_GET_INTERNAL")};
AY=function(F,q,t){F&&(t||F.loggingStatus&&!F.loggingStatus.isInitializing&&!F.loggingStatus.isDefiningPropertyAccessor&&F.loggingStatus.currentExternalSet!==q)&&xM(F.tagName.toLowerCase(),q,"PROPERTY_ACCESS_SET_INTERNAL")};
e0_=function(){return{_definePropertyAccessor:function(F,q){var t=this,u=t.hostElement.loggingStatus;u&&(u.isDefiningPropertyAccessor=!0);var J=t[F];J!==void 0&&(t.__data?t._setPendingProperty(F,J):(t.__dataProto!=null||(t.__dataProto={}),t.__dataProto[F]=J));u&&(u.isDefiningPropertyAccessor=!1);Object.defineProperty(this,F,{get:function(){Qoo(t.hostElement,F);return this.__data[F]},
set:function(g){q||this._setPendingProperty(F,g,!0)&&this._invalidateProperties()}})},
created:function(){var F=this._setPendingProperty.bind(this);this._setPendingProperty=function(q,t,u){AY(this.hostElement,q);return F.apply(this,[q,t,u])}}}};
Zy$=function(F){XYq()&&_.D(vh.prototype)(F.prototype,"__templateBindingLoggingBehavior")};
R0A=function(F,q){if(q.resolvedFactories.length!==F.resolvedFactories.length)return!0;q=_.X(q.resolvedFactories.entries());for(var t=q.next();!t.done;t=q.next()){var u=_.X(t.value);t=u.next().value;u=u.next().value;if(u.providerClass){if(u.providerClass!==F.resolvedFactories[t].providerClass)return!0}else if(u.providerValue){if(u.providerValue!==F.resolvedFactories[t].providerValue)return!0}else if(u.factory!==F.resolvedFactories[t].factory)return!0}return!1};
rry=function(F,q){F=_.X(F);for(var t=F.next();!t.done;t=F.next())if(t=t.value,t.constructor===Array)rry(t,q);else{var u=q;u.has(t)||(t.inject&&u.add(t),t.behaviors&&rry(t.behaviors,u))}};
IE=function(F,q){var t=F[q];F[q]=function(){var u=_.US.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(t)return t.apply(this,u)}};
k2M=function(){_.Hh.Class=function(t,u){t=NpC(t,u);IE(t.prototype,"created");return t};
IE(m6.prototype,"_initializeProperties");IE(_.yu.prototype,"_initializeProperties");if(wYy)IE(iyA,"created");else{var F=function(){IE(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))F();else{var q=customElements.define;customElements.define=function(t,u,J){q.call(customElements,t,u,J);t==="tp-yt-iron-list"&&(F(),customElements.define=q)}}}};
z0A=function(F,q){F.prototype.behaviors=F.prototype.behaviors||[];F.prototype.behaviors.unshift(E1C.InjectBehavior);F.prototype.provide=q};
_.Vu=function(F){return function(q){if(!F.disableElementRegistration){F.noInjection||z0A(q,F.providers);var t=q.prototype;t.__templateHelpers||dtv(C1.prototype)(t,"__templateHelpers");t=F.is;o1C||(o1C=Date.now());(BW(t)+o1C)%100<_.YE("polymer_log_prop_change_observer_percent")&&dtv(ds.prototype)(q.prototype,"__propertyObserverObserver");q.prototype.behaviors=q.prototype.behaviors||[];q.prototype.behaviors.unshift(_.n1y.YtHostElementBehavior);Zy$(q);JrM({is:F.is,notifyObserversOnUndefined:F.notifyObserversOnUndefined!==
!1,fastInit:F.fastInit,template:F.template,disableEnforceFastDefaultValuesCheck:!0})(q)}}};
_.m=function(F){return _.Vu({is:F.is,template:F.template,disableElementRegistration:F.disableElementRegistration,cssBuildOptOut:F.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
G2v=function(F,q){if(MHy){F=new F;for(var t=_.X(Object.getOwnPropertyNames(F)),u=t.next();!u.done;u=t.next())u=u.value,q[u]=F[u];for(t=q;t&&t!==Object.prototype;t=Object.getPrototypeOf(t)){u=_.X(Object.getOwnPropertyNames(t));for(var J=u.next();!J.done;J=u.next())J=J.value,F.hasOwnProperty(J)||Object.defineProperty(F,J,Tpt(q,J))}}else F.apply(q)};
Tpt=function(F,q){return{get:function(){var t=F[q];return t instanceof Function?t.bind(F):t},
set:function(t){F[q]=t}}};
W2M=function(F,q){for(var t=F._noAccessors,u=_.X(Object.getOwnPropertyNames(F)),J=u.next();!J.done;J=u.next())if(J=J.value,!Dx$.has(J))if(t)q[J]=F[J];else{var g=Object.getOwnPropertyDescriptor(F,J);g&&(g.configurable=!0,Object.defineProperty(q,J,g))}};
Oyy=function(F,q,t){return function(u){if(t){var J=t();u.model=J}if(F[q])F[q](u,u.detail)}};
UB=function(F){var q=[];if(typeof F==="string")F.length>0&&q.push.apply(q,_.mZ(F.split(".")));else{F=_.X(F);for(var t=F.next();!t.done;t=F.next())t=t.value,typeof t==="string"?q.push.apply(q,_.mZ(t.split("."))):q.push(t)}return q};
P9W=function(F,q){if(q[q.length-1]!=="*"&&q[q.length-1]!=="splices"){for(var t=0;t<q.length;t++){if(!F)return;F=F[q[t]]}return F}};
xxC=function(F,q){if(F.length>q.length)return!1;for(var t=0;t<F.length;t++)if(F[t]!==q[t])return!1;return!0};
v1$=function(F,q,t){if(q.type==="compute"){var u=q.getter.bind(t);var J=q.args}else u=function(){return t[q.method.methodName].apply(t,_.mZ(_.US.apply(0,arguments)))},J=q.method.args;
Art(F,q.propertyKey,u,J,q.value)};
HyW=function(F,q){if(q.readOnly){var t=Object.getOwnPropertyDescriptor(F.model,q.propertyKey);Object.defineProperty(F.model,q.propertyKey,{get:t.get,set:function(){}});
F.model[ILA(q.propertyKey)]=t.set}};
mxC=function(F,q,t){if(t){var u=q.propertyKey,J=q.selector;q=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.mZ(q.selectorArgs.map(function(g){return{type:"path",path:g}})));
Art(F,u,function(g){var Y=_.US.apply(1,arguments);return J.apply(null,[t.getState()].concat(_.mZ(Y)))},q)}};
byy=function(F,q,t){var u=_.nB(q.propertyKey)+"-changed";$xq(F,function(J){var g={value:J.value,queueProperty:!0};J.path.split(".").length>1&&(g.path=J.path);t.dispatchEvent(new CustomEvent(u,{detail:g}))},[{type:"wildcard",
path:q.propertyKey}])};
yrq=function(F,q,t){$xq(F,function(){t[q.method.methodName].apply(t,_.mZ(_.US.apply(0,arguments)))},q.method.args)};
ILA=function(F){return"_set"+(F.charAt(0).toUpperCase()+F.slice(1))};
C9u=function(){var F,q=Iv(function(t){F=t},!1);
return[F,q]};
h0y=function(F){F=F.trim().replace(dxA,",").replace(VHu,"$1");var q=F[0];q==="-"&&(q=F[1]);if(q>="0"&&q<="9")return{type:"literal",value:Number(F)};if(q==="'"||q==='"')return{type:"literal",value:F.slice(1,-1)};if(q=F.match(UxC)){q=q[1];var t=Smo[q];if(t)return{type:t,path:F.slice(0,-(q.length+1))}}return{type:"path",path:F}};
fLo=function(F){var q=F.match(K2W);if(q)return F={methodName:q[1],args:Bp3},q[2].trim()&&(q=q[2].replace(L2o,"&comma;").split(","),F.args=q.map(h0y)),F};
aL$=function(F,q,t,u){u=u===void 0?!1:u;q=_.nB(q);var J=ML;J&&(t=J(t,q,"attribute",F));Sp(F,t,q,u)};
Sp=function(F,q,t,u){q=joo(q,u===void 0?!1:u);q===void 0?F.removeAttribute(t):F.setAttribute(t,q)};
joo=function(F,q){switch(typeof F){case "object":case "function":if(F instanceof Date)return F.toString();if(F){if((q===void 0?0:q)&&!_.E("polymer_reflect_objects_as_boolean_killswitch"))return F?"":void 0;q=window.trustedTypes?window.trustedTypes.isHTML(F)||window.trustedTypes.isScript(F)||window.trustedTypes.isScriptURL(F):void 0;if(q)return F;try{return JSON.stringify(F)}catch(t){_.bz(Error("Dg`"+F))}}break;case "boolean":return F?"":void 0;default:return F!==null&&F!==void 0?F.toString():void 0}};
crq=function(F){if(F===void 0)throw Error("Eg");return F};
J0_=function(F,q,t,u){var J=FFA(u);if(J.length){u=t;var g="property";q6u.test(t)?g="attribute":t[t.length-1]==="$"&&(t=t.slice(0,-1),g="attribute");var Y=tkv(J);Y&&g==="attribute"&&(t==="class"&&F.hasAttribute("class")&&(Y+=" "+F.getAttribute(t)),Sp(F,Y,t));g==="attribute"&&u==="disable-upgrade$"&&F.setAttribute("disable-upgrade","");F.localName==="input"&&u==="value"&&F.setAttribute("value","");F.removeAttribute(u);g==="property"&&(t=_.Md(t));q=crq(q);uWf(q,g,t,J);return!0}return t.slice(0,3)===
"on-"?(F.removeAttribute(t),(g=q).events!=null||(g.events=[]),q.events.push({name:t.slice(3),value:u}),!0):t==="id"?(q.id=u,!0):!1};
FFA=function(F){for(var q=[],t=0,u;(u=sHq.exec(F))!==null;){u.index>t&&q.push({type:"literal",value:F.slice(t,u.index)});var J=u[1][0];t=!!u[2];u=u[3].trim();if(J==="{")throw Error("Fg");(J=fLo(u))?q.push({type:"method",negate:t,signature:J}):q.push({type:"path",negate:t,path:u});t=sHq.lastIndex}t&&t<F.length&&(F=F.substring(t))&&q.push({type:"literal",value:F});return q};
tkv=function(F){for(var q="",t=0;t<F.length;t++){var u=F[t];u.type==="literal"&&(q+=u.value)}return q};
uWf=function(F,q,t,u){F.bindings!=null||(F.bindings=[]);F.bindings.push({kind:q,target:t,parts:u})};
pJt=function(F,q,t){var u=!1;if(F.localName==="template"){u=t;var J=q.stripWhitespace;J=gu_(F,J===void 0?!1:J);var g=F.content.ownerDocument.createDocumentFragment();J.content=g;g.appendChild(F.content);u&&(u.templateInfo=J);u=!0}else F.localName==="slot"&&(q.hasInsertionPoint=!0);if(F.firstChild&&(J=t,F.localName!=="script"&&F.localName!=="style")){g=0;for(var Y=F.firstChild;Y;){var Q=Y;if(Q.localName==="template"){var e=Q.getAttribute("is");if((Y=e==="dom-if")||e==="dom-repeat"){Q.removeAttribute("is");
e=Q.ownerDocument.createElement("ps-"+e);Q.parentNode.replaceChild(e,Q);e.appendChild(Q);var r=Array.from(Q.attributes);r=_.X(r);for(var N=r.next();!N.done;N=r.next())N=N.value,Y?lYq.has(N.name)&&Sp(e,N.value,N.name):XJo.has(N.name)?Sp(e,N.value,N.name):Y6P.has(N.name),Q.removeAttribute(N.name);Y=e}else Y=Q}if(Y.nodeType===Node.TEXT_NODE){Q=void 0;e=F;for(r=Y;((Q=r.nextSibling)==null?void 0:Q.nodeType)===Node.TEXT_NODE;)N=void 0,(N=r).textContent!=null||(N.textContent=""),r.nextSibling.textContent&&
(r.textContent+=r.nextSibling.textContent),e.removeChild(r.nextSibling);if(q.stripWhitespace&&Y.textContent&&!Y.textContent.trim()){F.removeChild(Y);Y=Y.nextSibling;continue}}pJt(Y,q,{parentIndex:g,parentInfo:J});Y.parentNode&&g++;Y=Y.nextSibling}}var w;if((w=F.hasAttributes)==null?0:w.call(F)){w=t=crq(t);J=!1;g=Array.from(F.attributes);g=_.X(g);for(Q=g.next();!Q.done;Q=g.next())Q=Q.value,J=J0_(F,w,Q.name,Q.value)||J;u=J||u}F.nodeType===Node.TEXT_NODE&&(w=FFA(F.textContent),w.length&&(F.textContent=
tkv(w)||" ",t=crq(t),uWf(t,"text","textContent",w),u=!0));t&&u&&(t.infoIndex=q.nodeInfoList.push(t)-1)};
gu_=function(F,q){q={nodeInfoList:[],stripWhitespace:(q===void 0?!1:q)||F.hasAttribute("strip-whitespace")};pJt(F.content,q);return q};
QHq=function(F){Object.assign(F,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
Zbq=function(F,q,t){q.signalCache!=null||(q.signalCache={});var u=q.signalCache[t];if(!u){var J=t.split(".");u=!ee_(F,J[0]);if(J.length>1&&u){var g=F.getPathMutationSignal(J);u=function(){var Y=$R(F.owner,function(){return F.getWithPath([J[0]])}),Q,e=(Q=g())==null?void 0:Q.value;
return{rootWasDefined:Y!==void 0,value:e}}}else u=function(){var Y=F.getWithPath(J);
return{rootWasDefined:Y!==void 0,value:Y}};
q.signalCache[t]=u}return u()};
r0P=function(F,q,t,u,J){q=q.parts.map(function(Y,Q){if(Y.type==="literal"){t.partWasDefined!=null||(t.partWasDefined=[]);var e;(e=t.partWasDefined)[Q]||(e[Q]=Y.value!==void 0);return Y.value}var r;if(Y.type==="method"){var N,w=(N=(r=t.partWasDefined)==null?void 0:r[Q])!=null?N:!1;w||(w=Y.signature.args.every(function(T){return T.type==="literal"}));
var k=!1,z=!0;r=Y.signature.args.map(function(T){if(T.type==="literal")return T.value;if(T.type!=="path")throw Error("Gg`"+T.type);var P=Zbq(F,t,T.path);T=P.value;P=P.rootWasDefined;k||(k=P);z&&(z=P);return T});
w||(w=J===1?z:k);t.partWasDefined!=null||(t.partWasDefined={});t.partWasDefined[Q]=w;if(!w)return;r=(Q=Zbq(F,t,Y.signature.methodName).value)&&typeof Q==="function"?Q.apply(u,r):void 0}else N=Zbq(F,t,Y.path),r=N.value,t.partWasDefined!=null||(t.partWasDefined={}),(w=t.partWasDefined)[Q]||(w[Q]=r!==void 0||N.rootWasDefined);Y.negate&&(r=!r);return r});
if(q.length===1){var g;return((g=t.partWasDefined)==null?0:g[0])?q[0]:Req}return q.join("")};
ND$=function(F){return typeof F==="object"&&!!F&&"notifyPath"in F&&"canNotifyPath"in F};
wJu=function(F){return typeof F==="object"&&!!F&&"notifyPath"in F};
ibW=function(F){return"polymerController"in F};
kOA=function(F,q){q=""+UB(q)[0];if(ND$(F))return F.canNotifyPath(q);if(ibW(F)&&ND$(F.polymerController))return F.polymerController.canNotifyPath(q);if(wJu(F)){var t;return!((t=F.properties)==null||!t[q])}if(ibW(F)&&wJu(F.polymerController)){var u;return!((u=F.polymerController.properties)==null||!u[q])}return!1};
Eu3=function(F,q,t){ND$(F)||wJu(F)?F.notifyPath(q,t):ibW(F)&&(ND$(F.polymerController)||wJu(F.polymerController))&&F.polymerController.notifyPath(q,t)};
ouP=function(F,q,t){if(t!==Req){F.kind==="attribute"||F.target!=="textContent"&&(F.target!=="value"||q.localName!=="input"&&q.localName!=="textarea")||(t=t===void 0?"":t);var u,J=(u=zeu.Polymer)==null?void 0:u.sanitizeDOMValue;J&&(t=J(t,F.target,F.kind,q));if(F.kind==="attribute"){F=F.target;if(F==="class"||F==="name"||F==="slot")q=(0,_.Ns)(q);Sp(q,t,F)}else if(F=F.target,t!==q[F]||typeof t==="object")q.loggingStatus&&(q.loggingStatus.isDeclarativeExternal=!0,xM(q.localName,F,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
q[F]=t,q.loggingStatus&&(q.loggingStatus.isDeclarativeExternal=!1)}};
nuv=function(F,q,t,u){var J=q.parts[0];if(q.parts.length!==1||J.type!=="path"||!kOA(t,q.target))return!1;var g=_.X(J.path.split(".")),Y=g.next().value,Q=F6(g);if(ee_(F,Y))return!1;u.signalCache!=null||(u.signalCache={});g=u.signalCache[J.path];var e;g=(e=g)==null?void 0:e().value;if((g==null?void 0:g.path)!==void 0){u=UB(g.path);var r=UB(J.path);u=[q.target].concat(_.mZ(u.slice(r.length-1)));Eu3(t,u,J.negate?!g.value:g.value);return!0}var N=hY(F,Y);var w=N.getChangeRecordSignal(Q),k=!1;g=function(){if(!k){var T=
$R(F.owner,function(){return N.getWithPath([])});
k||(k=T!==void 0)}return{value:w(),rootWasDefined:k}};
u.signalCache[J.path]=g;u.partWasDefined!=null||(u.partWasDefined={});g=g();(r=u.partWasDefined)[0]||(r[0]=g.rootWasDefined);var z=$R(F.owner,function(){return N.getWithPath(Q)});
u.partWasDefined[0]&&$R(F.owner,function(){return void ouP(q,t,J.negate?!z:z)});
return!0};
Mko=function(F,q,t,u,J,g){if(!nuv(F,q,t,u)){var Y=r0P(F,q,u,J,g);$R(F.owner,function(){return void ouP(q,t,Y)})}};
TDv=function(F,q,t,u,J,g){t=_.X(t);for(var Y=t.next(),Q={};!Y.done;Q={infoIndex:void 0},Y=t.next()){Y=Y.value;var e=Y.bindings;Q.infoIndex=Y.infoIndex;Y=Y.parentInfo;if(e){e=_.X(e);for(var r=e.next(),N={};!r.done;N={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},r=e.next()){N.b$jscomp$253=r.value;if(Q.infoIndex===void 0)throw Error("Hg");N.bindingCtx$jscomp$4={};F.effect(function(w,k){return function(){J&&!J()||Mko(F,w.b$jscomp$253,q[k.infoIndex],w.bindingCtx$jscomp$4,u,g)}}(N,Q))}}Y&&TDv(F,q,[Y],
u,J,g)}};
GOt=function(F,q){F=(q.parentInfo?GOt(F,q.parentInfo):F).firstChild;for(var t=0;F;F=F.nextSibling)if(q.parentIndex===t++)return F;throw Error("Ig");};
WF$=function(F,q,t,u){F=document.importNode(F.content,!0);F.__noInsertionPoint=!(u==null?0:u.hasInsertionPoint);for(var J=Array(q.length),g={},Y=0;Y<q.length;Y++){var Q=q[Y],e=GOt(F,Q);J[Y]=e;Q.id&&(g[Q.id]=e);if(Q.templateInfo){var r=e.parentElement;r&&(r.templateInfo=Q.templateInfo,r.parentSignalProxy=t,r.eventListenerHost=u.eventListenerHost,r.stampingEnabled=u.enabledSignal)}r=void 0;if((r=Q.events)==null?0:r.length)for(r=0;r<Q.events.length;r++){var N=Q.events[r];DBA(u.eventListenerHost,e,N.name,
N.value,u.getModel)}}TDv(t,J,q,u.thisCtx,u.enabledSignal,u.methodInvocationRequirement);return{root:F,nodes:J,nodesById:g}};
Pso=function(F,q){F=F();var t;(t=Obv.ShadyCSS)==null||t.prepareTemplate(F,q);q=gu_(F);return{template:F,nodeInfoList:q.nodeInfoList,hasInsertionPoint:q.hasInsertionPoint}};
vuo=function(){xBq=!1;for(var F=K1.length,q=0;q<F;q++){var t=K1[q];if(t)try{t()}catch(u){Promise.resolve().then(function(){throw u;})}}K1.splice(0,F);
A0C+=F};
$Bo=function(F){xBq||(xBq=!0,IYo.textContent=(Hb$++).toString());K1.push(F);return mBt++};
_.f1=function(F,q,t){Bh++;F=q?new bby(Bh,F,q,t):new y0q(Bh,F);L1.set(Bh,F);return Bh};
Cs_=function(F){(F=L1.get(F))&&F.cancel()};
VkM=function(F,q){F=dBq.get(F);return F?(q=F.get(q))?q:null:null};
_.aE=function(F,q,t,u){var J=VkM(F,q);if(!J){J=new UBt;var g=dBq.get(F);g||(g=new Map,dBq.set(F,g));g.set(q,J)}F=t.bind(F);J.run(F,u,void 0)};
_.S6W=function(F,q){var t;(t=VkM(F,q))==null||t.cancel()};
he_=function(F){var q;(q=VkM(F,"doRender"))==null||q.flush()};
jp=function(F){var q;return(q=F.hostElement)!=null?q:F};
KFf=function(F){var q=F.indexOf(".");return q===-1?F:F.slice(0,q)};
BDC=function(F,q,t,u,J,g){g=(J=(u=g?KFf(q):q)?q:null)?F.get(J):F.__data[q];J&&g===void 0&&(g=t[q]);_.Q0(F.hostElement,zn3(u)+"-changed",{value:g,queueProperty:!0,path:J!=null?J:void 0},{bubbles:!1,composed:!1})};
LFA=function(F,q){F.__isReflecting=!0;aL$(F.hostElement,q,F.__data[q]);F.__isReflecting=!1};
fYq=function(F){if(F._onIronRequestResizeNotifications){var q=F._onIronRequestResizeNotifications.bind(F);F._onIronRequestResizeNotifications=function(t){_.uL(t)!==F.hostElement&&q(t)}}F._ariaActiveAttributeChanged&&(F._ariaActiveAttributeChanged=F._ariaActiveAttributeChanged.bind(F.hostElement));
F._activeChanged&&(F._activeChanged=function(t){F.toggles?Sp(F.hostElement,t?"true":"false",F.ariaActiveAttribute):F.hostElement.removeAttribute(F.ariaActiveAttribute);F._changedButtonState()});
F._asyncClick&&(F._asyncClick=function(){_.f1(function(){F.hostElement.click()},1)});
!F.keyEventTarget||F.keyEventTarget instanceof EventTarget||(F.keyEventTarget=jp(F.keyEventTarget));F._disabledChanged&&(F._disabledChanged=F._disabledChanged.bind(F.hostElement));F._observeItems&&(F._observeItems=function(t){var u=jp(t);return _.xz(u).observeNodes(function(J){F._updateItems();F._updateSelected();_.Q0(u,"iron-items-changed",J,{bubbles:!1,cancelable:!1})})});
F._updateItems&&F._updateItems===_.ch._updateItems&&(F._updateItems=function(){var t=_.xz(F.hostElement).queryDistributedElements(F.selectable||"*");t=Array.prototype.filter.call(t,F._bindFilterItem);F._setItems(t)});
F._computeKeyboardClass&&(F._computeKeyboardClass=function(t){_.RE(F.hostElement,"keyboard-focus",t)});
F.ensureRipple&&(F.ensureRipple=function(t){if(F.hasRipple&&!F.hasRipple()){if(!F._createRipple)return;F._ripple=F._createRipple();F._ripple.noink=F.noink;var u=F._rippleContainer||F.hostElement;u&&_.ep(u).appendChild(F._ripple)}var J;if(t&&((J=F._ripple)==null?0:J.uiDownAction)){u=_.ep(F._rippleContainer||F.hostElement);var g;J=(g=t.composedPath())==null?void 0:g[0];u.contains(J)&&F._ripple.uiDownAction(t)}});
F._updateMultiselectable&&(F._updateMultiselectable=function(t){t?F.hostElement.setAttribute("aria-multiselectable","true"):F.hostElement.removeAttribute("aria-multiselectable")})};
aYu=function(F,q,t){t=_.X(t);for(var u=t.next();!u.done;u=t.next())G2v(u.value.constructor,F);G2v(q.constructor,F)};
c0t=function(F,q){F=_.X(F);for(var t=F.next();!t.done;t=F.next())if(t=t.value,t.type==="signal"){var u=t.propertyKey;if(q.hasOwnProperty(u)&&q[u]!=null&&t.attributeType===Object){a:{u=q[u].constructor;for(var J=_.X(jHo),g=J.next();!g.done;g=J.next())if(g=g.value,u===g){u=g;break a}u=Object}t.attributeType=u}}};
FJM=function(){};
qEu=function(F){var q;return(q=F.hostElement)!=null?q:F};
t4o=function(){throw Error("Mg");};
u8t=function(F,q){F.constructor.prototype.useSignals=!0;var t=new F.constructor;aYu(t,F,q.behaviors);c0t(q.reactiveSchemas,t);t={};for(var u=_.X(q.reactiveSchemas),J=u.next();!J.done;J=u.next())J=J.value,J.type==="signal"&&(t[J.propertyKey]=J.attributeType);var g={copyPropertiesToProto:t4o,didRegister:!1,typesForSignals:t},Y=["disable-upgrade"].concat(_.mZ(q.observedAttributes)),Q=function(e){Ft.call(this,F,q,g,e)};
_.M(Q,Ft);_.JJ.Object.defineProperties(Q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Y}}});
g.copyPropertiesToProto=function(){for(var e=0;e<q.behaviors.length;e++)W2M(q.behaviors[e],Q.prototype);W2M(F,Q.prototype)};
q.legacyOptimizations||g.copyPropertiesToProto();Q.prototype.is=F.is;return Q};
J4f=function(F,q){if(Object.getPrototypeOf(q.prototype).constructor!==_.x)throw Error("Ng");q.prototype.is=F.is;return u8t(q.prototype,F)};
sfP=function(F){return F.type==="compute"||F.type==="computeWithMethod"};
g4C=function(F){for(var q=F.reactiveSchemas.filter(sfP),t=new Map,u=new Map,J=new Map,g=_.X(q),Y=g.next();!Y.done;Y=g.next())Y=Y.value,t.set(Y.propertyKey,Y),u.set(Y.propertyKey,[]),J.set(Y.propertyKey,0);g=0;q=_.X(q);for(Y=q.next();!Y.done;Y=q.next()){Y=Y.value;for(var Q=_.X(Y.type==="computeWithMethod"?Y.method.args:Y.args),e=Q.next();!e.done;e=Q.next())e=e.value,e.type!=="literal"&&(e=e.path.split(".")[0],u.has(e)&&(u.get(e).push(Y.propertyKey),J.set(Y.propertyKey,J.get(Y.propertyKey)+1),g++))}Y=
[].concat(_.mZ(u.keys())).filter(function(r){return J.get(r)===0});
for(q=[];Y.length;)for(Q=Y.shift(),q.push(t.get(Q)),Q=_.X(u.get(Q)),e=Q.next();!e.done;e=Q.next())e=e.value,J.set(e,J.get(e)-1),g--,J.get(e)===0&&Y.push(e);t=F.reactiveSchemas.filter(function(r){return!sfP(r)});
F.reactiveSchemas=[].concat(_.mZ(t),_.mZ(q))};
lTC=function(F,q){if(q.properties)for(var t=_.X(Object.entries(q.properties)),u=t.next();!u.done;u=t.next()){var J=_.X(u.value);u=J.next().value;J=J.next().value;F.properties[u]=typeof J==="function"?{type:J}:J}q.observers&&F.observers.push.apply(F.observers,_.mZ(q.observers));q.disabledPolySiReactions&&F.disabledPolySiReactions.push.apply(F.disabledPolySiReactions,_.mZ(q.disabledPolySiReactions))};
Xgq=function(F,q){for(var t=q.length-1;t>=0;t--){var u=q[t];Array.isArray(u)?Xgq(F,u):F.indexOf(u)<0&&F.unshift(u)}};
YEC=function(F,q){F.reactiveSchemas=F.reactiveSchemas.filter(function(t){return t.type==="observe"&&q.includes(t.method.methodName)||sfP(t)&&q.includes(t.propertyKey)?!1:!0})};
Qfv=function(F,q){var t=q.prototype,u,J,g={is:F.is,reactiveSchemas:[],observedAttributes:[],behaviors:[E1C.InjectBehavior,C1.prototype],disableElementRegistration:F.disableElementRegistration,provide:(u=F.providers)!=null?u:[],reactivityMode:F.reactivityMode,signalProperties:(J=t.signalProperties)!=null?J:[]};"template"in q?g.templateGetter=function(){return q.template}:F.getTemplate&&(g.templateGetter=F.getTemplate);
t.behaviors&&Xgq(g.behaviors,t.behaviors);pg_(g,q);return g};
pg_=function(F,q){for(var t=q.prototype,u={properties:{},observers:[],disabledPolySiReactions:[]},J=_.X(F.behaviors),g=J.next();!g.done;g=J.next())lTC(u,g.value);lTC(u,t);if(F.signalProperties)for(t=_.X(F.signalProperties),J=t.next();!J.done;J=t.next())delete u.properties[J.value];t=_.X(Object.entries(u.properties));for(J=t.next();!J.done;J=t.next()){g=_.X(J.value);J=g.next().value;g=g.next().value;var Y=void 0;if((Y=F.signalProperties)==null||!Y.includes(J)){Y=void 0;var Q=F,e=g.type;if(!e)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{e=Reflect.getMetadata("design:type",q,J);for(var r=_.X(ev3),N=r.next();!N.done;N=r.next())if(N=N.value,e===N){e=N;break a}e=Object}else e=String;g.computed||g.selector||(Q.reactiveSchemas.push({type:"signal",propertyKey:J,value:g.value,attributeType:e,readOnly:g.readOnly}),Q.observedAttributes.push(_.nB(J)));g.reflectToAttribute&&Q.reactiveSchemas.push({type:"reflect",propertyKey:J});if(g.computed){e=fLo(g.computed);if(!e)throw Error("Og");Q.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:J,method:e,value:g.value})}g.observer&&Q.reactiveSchemas.push({type:"observe",method:{methodName:g.observer,args:[{type:"path",path:J}]}});g.notify&&Q.reactiveSchemas.push({type:"notify",propertyKey:J});g.selector&&Q.reactiveSchemas.push({type:"redux",propertyKey:J,selector:g.selector,selectorArgs:(Y=g.selectorArgs)!=null?Y:[]})}}ZOv&&g4C(F);q=_.X(u.observers);for(J=q.next();!J.done;J=q.next())t=F,J=J.value,(g=fLo(J))?t.reactiveSchemas.push({type:"observe",method:g}):console.log('Warning: unable to parse observe declaration: "'+
J+'"');YEC(F,u.disabledPolySiReactions)};
Rvy=function(F,q){for(var t=0;t<q.length;t++){var u=q[t],J=void 0;(J=u).showHideApi!=null||(J.showHideApi={});J=void 0;!!F!==!((J=u.showHideApi)==null||!J.hideTemplateChildren)&&(u.nodeType===Node.TEXT_NODE?F?(u.showHideApi.polymerTextContent=u.textContent,u.textContent=""):(J=void 0,u.textContent=(J=u.showHideApi.polymerTextContent)!=null?J:null):u instanceof Element&&u.localName==="slot"?F?(u.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Ns)((0,_.Ns)(u).parentNode).replaceChild(u.showHideApi.polymerReplaced,
u)):(J=u.showHideApi.polymerReplaced)&&(0,_.Ns)((0,_.Ns)(J).parentNode).replaceChild(u,J):u instanceof HTMLElement&&u.style&&(F?(u.showHideApi.polymerDisplay=u.style.display,u.style.display="none"):u.style.display=u.showHideApi.polymerDisplay));u.showHideApi.hideTemplateChildren=F;u.showHideChildren&&u.showHideChildren(F)}};
Nrq=function(){if(!r4P){var F=document.createElement("style");F.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(F);r4P=!0}};
qc=function(){return _.E("disable_hidden_dom_if_using_stamper")};
wgo=function(F,q){var t=_.tv().getState();return q?F.apply(null,[t].concat(_.mZ(q))):F(t)};
E4t=function(){if(iOv)return iOv;var F=_.X(_.N3(0,void 0,"MB1Hb")),q=F.next().value;F.next();var t=F.next().value;_.tv().subscribe(function(){kh$(t)});
return iOv=q};
kh$=function(F){zvP||(zvP=!0,Promise.resolve().then(function(){F(function(q){return q+1});
zvP=!1}))};
_.tv=function(){return o4$.getAppStore()};
n43=function(F,q){return o4$.getSelectFn()(F,q)};
_.ud=function(F){o4$.getDispatchFn()(F)};
M4$=function(F,q){var t={},u;for(u in F)t[u]=q(F[u],u);return t};
_.Jv=function(F,q){return function(){var t;return(t=_.Hj(F))!=null?t:q}};
_.sk=function(F,q){var t=Object.assign({},F),u;for(u in q)q.hasOwnProperty(u)&&(t[u]=_.Jv(F[u],q[u]));return t};
TrM=function(F,q,t){F instanceof Element&&(t.debugName||(t.debugName="<"+F.tagName.toLowerCase()+(F.tagName.includes("-")?">":"."+F.className+">")),_.E("ytwiz_enable_debug_component_props")&&(F.debugProps||(F.debugProps=M4$(q,function(u){return function(){return u()}}))))};
DPv=function(F){var q;return GhA.value.traceAllComponents||((q=uC.stack[uC.stack.length-1])==null?void 0:q.name)!=="ytComponent"?aX_("ytComponent",{},F):F()};
_.ld=function(F,q){var t=function(u){return DPv(function(J){var g=WJ$={};var Y;if(((Y=t)==null?0:Y.idomCompat)&&u.renderedFromIdom){var Q;Y=typeof t.idomCompat==="object"?(Q=t)==null?void 0:Q.idomCompat.callbacks:{};Y=_.X(OO3(u,Y,t.debugName));Q=Y.next().value;Y.next();Y=Y.next().value;var e=P8M(F,Q);g.privateValue=e;WJ$=void 0;TrM(e,Q,t);g={debugName:t.debugName};J&&g&&Object.assign(J.attributes,g);J=fSv(e);J=Array.isArray(J)?J[0]:J;J[r2]||(J[r2]={});J[r2].updateSignalsFromIdomProps=Y;xPP(Q,e);return e}Y=
M4$(u,A4u);Q=P8M(F,Y);g.privateValue=Q;WJ$=void 0;TrM(Q,Y,t);g={debugName:t.debugName};J&&g&&Object.assign(J.attributes,g);xPP(Y,Q);return Q})};
t.debugName=q===void 0?"":q;return t};
P8M=function(F,q){F=F(q);return zn(F)};
v4u=function(F,q){F[q]||(F=new _.D0("IDOM interop setter undefined. Key:",q),_.mH(F))};
A4u=function(F,q){return q==="children"||q==="ref"||typeof F==="function"||F===void 0?F:function(){return _.Hj(F)}};
OO3=function(F,q,t){var u={},J={},g={},Y={},Q;for(Q in F){Y={key$jscomp$946:Y.key$jscomp$946};Y.key$jscomp$946=Q;var e=F[Y.key$jscomp$946];if(Y.key$jscomp$946==="children"||Y.key$jscomp$946==="ref")u[Y.key$jscomp$946]=e;else if(typeof e==="function")Y.key$jscomp$946 in q||e.length>0?(g[Y.key$jscomp$946]=e,u[Y.key$jscomp$946]=function(N){return function(){return g[N.key$jscomp$946].apply(g,_.mZ(_.US.apply(0,arguments)))}}(Y)):u[Y.key$jscomp$946]=e;
else if(!(F[Y.key$jscomp$946]===void 0&&Y.key$jscomp$946 in q)){var r=_.X(_.N3(F[Y.key$jscomp$946],{debugName:Y.key$jscomp$946+":cwis:"+t},"rvrjQe"));e=r.next().value;r=r.next().value;u[Y.key$jscomp$946]=e;J[Y.key$jscomp$946]=r}}return[u,J,function(N){var w={},k;for(k in N)w={key$jscomp$947:w.key$jscomp$947,val$jscomp$123:void 0},w.key$jscomp$947=k,w.val$jscomp$123=N[w.key$jscomp$947],w.key$jscomp$947!=="children"&&w.key$jscomp$947!=="ref"&&(typeof w.val$jscomp$123==="function"?w.key$jscomp$947 in
q?g[w.key$jscomp$947]=w.val$jscomp$123:w.val$jscomp$123.length>0&&(g[w.key$jscomp$947]=w.val$jscomp$123,_.bz(new _.D0("Callback detected that was not set in the idomCompat callbacks map. Key:",w.key$jscomp$947))):w.key$jscomp$947 in q&&w.val$jscomp$123===void 0||(v4u(J,w.key$jscomp$947),ov(function(z){return function(){J[z.key$jscomp$947](z.val$jscomp$123)}}(w))))}]};
mPP=function(F,q,t){var u=ORW(F.prototype,IT3,F.prototype.behaviors);u.prototype.is=q;u.prototype.localName=q;t&&HOf(u,t);return function(J){J&&(u.prototype.hostElement=J);var g=new u;g.root=g;g.hostElement=J;return g}};
HOf=function(F,q){var t;Object.defineProperty(F.prototype,"_template",{get:function(){t===void 0&&(t=q());return t},
set:function(u){t=u},
configurable:!0,enumerable:!0})};
dPu=function(F,q,t,u){function J(){if(!z){for(var T=new Set,P=_.X(N),v=P.next();!v.done;v=P.next()){v=v.value;for(var H=_.X(Object.getOwnPropertyNames(v)),d=H.next();!d.done;d=H.next()){d=d.value;var a=void 0,S=(a=Object.getOwnPropertyDescriptor(v,d))==null?void 0:a.value;S&&S instanceof Function&&!Xt(d)&&(!Q[d]||_.E("polymer_forward_method_killswitch"))&&T.add(d)}}P=_.X(Object.entries(Object.getOwnPropertyDescriptors(F.prototype)));for(v=P.next();!v.done;v=P.next())H=_.X(v.value),v=H.next().value,
H=H.next().value,H.value instanceof Function&&!Xt(v)&&T.add(v);z=T}return z}
$Pf(F,q,u==null?void 0:u.providers);PXM(F.prototype,F,!0);var g=mPP(F,q,t),Y,Q=(Y=F.prototype.properties)!=null?Y:{},e,r,N=(r=(e=F.prototype.behaviors)==null?void 0:e.flat(Infinity))!=null?r:[];t=_.X(N);for(Y=t.next();!Y.done;Y=t.next())Q=Object.assign({},Y.value.properties,Q);var w=[].concat(_.mZ(bO_),_.mZ(Object.keys(Q).map(function(T){return _.nB(T)}))),k=!1,z;
return{ctor:function(T,P){var v=g(T),H,d;T=[].concat(_.mZ((H=u==null?void 0:u.allowedProps)!=null?H:[]),_.mZ((d=u==null?void 0:u.allowedPropsFromBehaviors)!=null?d:[]));v.allowedProps=T.length>0?T:void 0;H={};d=_.X(w);for(T=d.next();!T.done;T=d.next())T=T.value,H[T]=_.Md(T);v.__dataAttributes=H;var a=v.ready.bind(v);v.ready=function(){P.beforeReady();a();if(OB(q)&&!k){var S=v.__templateInfo;if(S==null?0:S.hostProps){S=_.X(Object.keys(S.hostProps));for(var K=S.next();!K.done;K=S.next())xM(q,K.value,
"PROPERTY_ACCESS_GET_INTERNAL")}k=!0}};
v._overrideLegacyUndefined=!0;return v},
props:Q,observedAttributes:w,getInitialMethods:J,getPropsToForwardBeforeRegister:function(){for(var T=[],P=new Set,v=_.X(Object.keys(Q)),H=v.next();!H.done;H=v.next())H=H.value,T.push([H,Q[H].readOnly]),P.add(H);v=J();H=_.X(Object.keys(Object.getOwnPropertyDescriptors(F.prototype)));for(var d=H.next();!d.done;d=H.next())d=d.value,!y4P(d)||v.has(d)||P.has(d)||(T.push([d,!1]),P.add(d));P=_.X(C8t);for(v=P.next();!v.done;v=P.next())T.push([v.value,!0]);return T},
getPropsToForwardBeforeReady:function(T){for(var P=[],v=_.X(Object.entries(T)),H=v.next();!H.done;H=v.next()){var d=_.X(H.value);H=d.next().value;d=d.next().value;if(y4P(H)&&!(d instanceof Function)&&(P.push([H,!1]),OB(q))){var a=d=void 0;(a=(d=T)._createPropertyAccessor)==null||a.call(d,H)}}return P},
shouldForwardProp:y4P,shouldLog:OB}};
$Pf=function(F,q,t){z0A(F,t);F.prototype.behaviors.unshift(V4A);if(XYq()){if(OB(q)){var u;(u=F.prototype).behaviors!=null||(u.behaviors=[]);F.prototype.behaviors.unshift(e0_())}Zy$(F)}_.D(C1.prototype)(F.prototype,"__templateHelpers")};
Xt=function(F){return UPy.has(F)||F.startsWith("__compute__")};
y4P=function(F){return!Xt(F)&&!F.startsWith("_")&&!F.endsWith("_")};
LJo=function(F,q){function t(){var k=e();k=_.X(k);for(var z=k.next();!z.done;z=k.next()){var T=_.X(z.value);z=T.next().value;T=T.next().value;SEM(w.prototype,z,T)}u=!0}
var u=!1,J=F.ctor,g=F.getInitialMethods,Y=F.observedAttributes,Q=F.getPropsToForwardBeforeReady,e=F.getPropsToForwardBeforeRegister,r=F.shouldForwardProp,N=F.shouldLog,w=function(){var k=HTMLElement.call(this)||this;k.didForwardDynamicProps=!1;k.loggingStatus={};u||t();k.inst=J(k,{beforeReady:function(){k.didForwardDynamicProps||(k.forwardDynamicProps(),k.didForwardDynamicProps=!0)}});
k.controllerProxy=pYy(k.inst,q);k.forwardMethods();return k};
_.M(w,HTMLElement);w.prototype.forwardMethods=function(){for(var k=this,z=_.X(this.inst.getExtraMethodsToForward()),T=z.next(),P={};!T.done;P={method$jscomp$63:void 0},T=z.next()){var v=_.X(T.value);T=v.next().value;v=v.next().value;P.method$jscomp$63=v;this[T]=function(H){return function(){return H.method$jscomp$63.call.apply(H.method$jscomp$63,[k.inst].concat(_.mZ(_.US.apply(0,arguments))))}}(P)}z=_.X(g());
for(P=z.next();!P.done;P=z.next())P=P.value,r(P)&&hvf(this,P),N(q)&&!Xt(P)&&KJu(this.inst,P)};
w.prototype.forwardDynamicProps=function(){var k=Q(this.inst);k=_.X(k);for(var z=k.next();!z.done;z=k.next()){var T=_.X(z.value);z=T.next().value;T=T.next().value;SEM(this,z,T);N(q)&&!Xt(z)&&Brq(this.inst,z)}};
w.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
w.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
w.prototype.attributeChangedCallback=function(k,z,T){this.inst.attributeChangedCallbackWrapper(k,z,T)};
_.JJ.Object.defineProperties(w.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return q}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.JJ.Object.defineProperties(w,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Y}}});
customElements.define(q,w)};
SEM=function(F,q,t){F.hasOwnProperty(q)||Object.defineProperty(F,q,{get:function(){var u,J=((u=F.is)!=null?u:F.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||xM(J,q,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,u=this.polymerController[q],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,u},
set:function(u){if(!t){var J,g=((J=F.is)!=null?J:F.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||xM(g,q,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=q,this.loggingStatus.bypassProxyController=!0,this.polymerController[q]!==u&&(J={},this.polymerController.setProperties((J[q]=u,J)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
hvf=function(F,q,t){var u=F.polymerController;F[q]=function(){var J=_.US.apply(0,arguments);F.loggingStatus.currentExternalCall=q;F.loggingStatus.bypassProxyController=!0;var g,Y=((g=F.is)!=null?g:F.tagName).toLowerCase();xM(Y,q,"PROPERTY_ACCESS_CALL_EXTERNAL");var Q;g=(Q=t!=null?t:u[q])==null?void 0:Q.call.apply(Q,[u].concat(_.mZ(J)));F.loggingStatus.currentExternalCall=void 0;F.loggingStatus.bypassProxyController=!1;return g}};
KJu=function(F,q){var t=F.hostElement,u=F[q];F[q]=function(){var J=_.US.apply(0,arguments);if(t.loggingStatus.currentExternalCall!==q){var g,Y=((g=t.is)!=null?g:t.tagName).toLowerCase();xM(Y,q,"PROPERTY_ACCESS_CALL_INTERNAL")}return u==null?void 0:u.apply(F,J)}};
Brq=function(F,q){var t=Object.getOwnPropertyDescriptor(F,q);t&&!t.get&&Object.defineProperty(F,q,{get:function(){Qoo(F.hostElement,q);return t.value},
set:function(u){AY(F.hostElement,q);t.value=u}})};
fT3=function(F){return _.E("poly_si_dom_repeat_detached_fix_killswitch")||F.tagName!=="PS-DOM-REPEAT"?F.tagName==="DOM-REPEAT":!0};
jfM=function(F,q){var t=aTP(F);F instanceof Element&&t.unshift(F);F=_.X(t.filter(fT3));for(var u=F.next();!u.done;u=F.next()){var J=void 0;u=_.X((J=u.value.__instances)!=null?J:[]);for(J=u.next();!J.done;J=u.next())if(J=J.value,J.root){J=Array.from(J.root.children);J=_.X(J);for(var g=J.next();!g.done;g=J.next())t.push.apply(t,_.mZ(jfM(g.value,q)))}}return t.filter(function(Y){return Y.usePatchedLifecycles&&Y.lifecycleIsConnected===q})};
aTP=function(F){var q=null;F instanceof Element?q=Element.prototype.querySelectorAll:F instanceof DocumentFragment&&(q=DocumentFragment.prototype.querySelectorAll);return q?Array.from(q.call(F,"*")):[]};
Yb=function(F){rP(function(){for(var q=_.X(jfM(F,!1)),t=q.next();!t.done;t=q.next()){t=t.value;t.lifecycleIsConnected=!0;try{var u=void 0,J=void 0,g=void 0,Y=void 0;(u=(Y=t.polymerController)!=null?Y:t)==null||(g=(J=u).connectedCallback)==null||g.call(J)}catch(Q){_.mH(Q)}}})};
p9=function(F){rP(function(){for(var q=_.X(jfM(F,!0)),t=q.next();!t.done;t=q.next()){t=t.value;t.lifecycleIsConnected=!1;try{var u=void 0,J=void 0,g=void 0,Y=void 0;(u=(Y=t.polymerController)!=null?Y:t)==null||(g=(J=u).disconnectedCallback)==null||g.call(J)}catch(Q){_.mH(Q)}}})};
sNy=function(){if(!c4W){c4W=!0;var F=[Node];Qj&&F.push(Qj.Wrapper);var q=Node.prototype.insertBefore,t=Node.prototype.removeChild;F=_.X(F);for(var u=F.next(),J={};!u.done;J={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},u=F.next())u=u.value,J.nativeInsertBefore=u.prototype.insertBefore,u.prototype.insertBefore=function(Y){return function(Q,e){if(Q instanceof DocumentFragment){var r=Array.from(Q.children);Q=Y.nativeInsertBefore.call(this,Q,e);
if(this.isConnected&&Y.nativeInsertBefore===q)for(e=_.X(r),r=e.next();!r.done;r=e.next())Yb(r.value);return Q}r=Q instanceof Element&&Q.isConnected;e=Y.nativeInsertBefore.call(this,Q,e);r&&p9(Q);this.isConnected&&Yb(Q);return e}}(J),J.nativeAppendChild=u.prototype.appendChild,u.prototype.appendChild=function(Y){return function(Q){if(Q instanceof DocumentFragment){var e=Array.from(Q.children);
Q=Y.nativeAppendChild.call(this,Q);if(this.isConnected){e=_.X(e);for(var r=e.next();!r.done;r=e.next())Yb(r.value)}return Q}e=Q instanceof Element&&Q.isConnected;r=Y.nativeAppendChild.call(this,Q);e&&p9(Q);this.isConnected&&Yb(Q);return r}}(J),J.nativeRemoveChild=u.prototype.removeChild,u.prototype.removeChild=function(Y){return function(Q){var e=Q instanceof Element&&Q.isConnected,r=Y.nativeRemoveChild.call(this,Q);
e&&t===Y.nativeRemoveChild&&p9(Q);return r}}(J),J.nativeReplaceChild=u.prototype.replaceChild,u.prototype.replaceChild=function(Y){return function(Q,e){if(Q instanceof DocumentFragment){var r=Array.from(Q.children);
Q=Y.nativeReplaceChild.call(this,Q,e);if(this.isConnected)for(p9(e),e=_.X(r),r=e.next();!r.done;r=e.next())Yb(r.value);return Q}r=Q instanceof Element&&Q.isConnected;var N=this.isConnected,w=Y.nativeReplaceChild.call(this,Q,e);N&&p9(e);r&&p9(Q);N&&Yb(Q);return w}}(J);
F=[Element];Qj&&F.push(Qj.Wrapper);F=_.X(F);u=F.next();for(J={};!u.done;J={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},u=F.next())u=u.value,u.prototype.before=FMM(u.prototype.before),u.prototype.after=FMM(u.prototype.after),J.nativeReplaceWith=u.prototype.replaceWith,u.prototype.replaceWith=function(Y){return function(){var Q=_.US.apply(0,arguments),e=_.X(qWW(Q)),r=e.next().value,
N=e.next().value;e=this.isConnected;Y.nativeReplaceWith.apply(this,Q);Q=_.X(N);for(N=Q.next();!N.done;N=Q.next())p9(N.value);if(e)for(p9(this),r=_.X(r),e=r.next();!e.done;e=r.next())e=e.value,e instanceof Element&&Yb(e)}}(J),J.nativeRemove=u.prototype.remove,u.prototype.remove=function(Y){return function(){var Q=this.isConnected;
Y.nativeRemove.call(this);Q&&p9(this)}}(J),J.nativeInsertAdjacentElement=u.prototype.insertAdjacentElement,u.prototype.insertAdjacentElement=function(Y){return function(Q,e){var r=e.isConnected;
Q=Y.nativeInsertAdjacentElement.call(this,Q,e);r&&p9(e);Q.isConnected&&Yb(Q);return Q}}(J),J.nativeSetAttribute=u.prototype.setAttribute,u.prototype.setAttribute=function(Y){return function(Q,e){var r=tnf(this);
if(!r.usePatchedLifecycles)return Y.nativeSetAttribute.call(this,Q,e);var N=this.getAttribute(Q);Y.nativeSetAttribute.call(this,Q,e);e=this.getAttribute(Q);uyA(r,Q,N,e)}}(J),J.nativeRemoveAttribute=u.prototype.removeAttribute,u.prototype.removeAttribute=function(Y){return function(Q){var e=tnf(this);
if(!e.usePatchedLifecycles)return Y.nativeRemoveAttribute.call(this,Q);var r=this.getAttribute(Q);Y.nativeRemoveAttribute.call(this,Q);r!==null&&uyA(e,Q,r,null)}}(J),J.nativeToggleAttribute=u.prototype.toggleAttribute,u.prototype.toggleAttribute=function(Y){return function(Q,e){var r=tnf(this);
if(!this.usePatchedLifecycles)return Y.nativeToggleAttribute.call(this,Q,e);var N=this.getAttribute(Q),w=N!==null;e=Y.nativeToggleAttribute.call(this,Q,e);e!==w&&uyA(r,Q,N,e?"":null);return e}}(J);
F=[Document,DocumentFragment,Element,ShadowRoot];Qj&&F.push(Qj.Wrapper);F=_.X(F);for(J=F.next();!J.done;J=F.next())J=J.value,J.prototype.prepend=FMM(J.prototype.prepend),J.prototype.append=FMM(J.prototype.append);(Qj==null?void 0:Qj.noPatch)===!0&&Jev();document.readyState==="complete"?Yb(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Yb(document.body)});
var g=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");g&&g.get&&g.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:g.enumerable,configurable:!0,get:g.get,set:function(Y){Y||p9(this);g.set.call(this,Y);return Y}})}};
FMM=function(F){return function(){var q=_.US.apply(0,arguments),t=_.X(qWW(q)),u=t.next().value;t=t.next().value;F.apply(this,q);q=_.X(t);for(t=q.next();!t.done;t=q.next())p9(t.value);if(this.isConnected)for(u=_.X(u),q=u.next();!q.done;q=u.next())q=q.value,q instanceof Element&&Yb(q)}};
Jev=function(){for(var F=_.X(gko),q=F.next();!q.done;q=F.next()){q=q.value.prototype;for(var t=_.X(l83),u=t.next();!u.done;u=t.next()){u=u.value;var J=Object.getOwnPropertyDescriptor(q,u);J&&Object.defineProperty(q,"__shady_native_"+u,J)}}};
uyA=function(F,q,t,u){var J,g;if((J=F.polymerController)==null?0:(g=J.observedAttributes)==null?0:g.includes(q))if(F=F.polymerController,F.attributeChangedCallbackWrapper)F.attributeChangedCallbackWrapper.call(F,q,t,u);else{var Y;(Y=F.attributeChangedCallback)==null||Y.call(F,q,t,u)}};
qWW=function(F){var q=[],t=[];F=_.X(F);for(var u=F.next();!u.done;u=F.next())u=u.value,u instanceof Element&&u.isConnected&&t.push(u),u instanceof DocumentFragment?q.push.apply(q,_.mZ(Array.from(u.children))):q.push(u);return[q,t]};
tnf=function(F){return!(F instanceof Element)&&F.node instanceof Element?F.node:F};
XF3=function(F,q){var t=q?["children"].concat(_.mZ(q)):["children"];q=[];t=_.X(t);for(var u=t.next();!u.done;u=t.next()){var J=u.value;if(F.hasOwnProperty(J)){u=F[J];u=typeof u==="function"?u():u;u=Array.isArray(u)?u:[u];u=zn(u).flat();if(J!=="children"){J=zn3(J);for(var g=_.X(u),Y=g.next();!Y.done;Y=g.next())Y=Y.value,Y instanceof Element&&Y.setAttribute("slot",J)}q.push(u)}}q.length===0?F=[]:(F=zn(_.Z("div",null,q)),F=Array.from(F.childNodes));return F};
pFo=function(F,q,t){var u={};_.m1(function(){var J={},g;for(g in q)if(q.hasOwnProperty(g)){var Y=void 0,Q=void 0;if(!(((Y=t.slotProps)==null?0:Y.includes(g))||g==="children"||((Q=t.callbackProps)==null?0:Q.includes(g))||g==="ref")&&(Y=_.Hj(q[g]),u[g]!==Y)){u[g]=Y;Q=void 0;var e=(Q=F.hostElement)!=null?Q:F;YW_.has(g)&&(e[g]=Y);J[g]=Y}}ov(function(){if(F.setProperties)F.setProperties(J);else for(var r=_.X(Object.entries(J)),N=r.next();!N.done;N=r.next()){var w=_.X(N.value);N=w.next().value;w=w.next().value;
F[N]=w}})})};
em$=function(F,q,t,u){var J=XF3(t,u.slotProps),g=(0,_.Ns)(F);J=_.X(J);for(var Y=J.next();!Y.done;Y=J.next())g.appendChild(Y.value);pFo(q,t,u);u=_.X(u.callbackProps||[]);J=u.next();for(g={};!J.done;g={kebabEventName:void 0,eventListener:void 0},J=u.next())Y=J=J.value,String(J).substring(0,2)==="on"&&t[Y]?(g.kebabEventName=zn3(String(J).substring(2)),g.eventListener=t[Y],F.addEventListener(g.kebabEventName,g.eventListener),_.vj(function(N){return function(){F.removeEventListener(N.kebabEventName,N.eventListener)}}(g))):
q[Y]=t[Y];
if(t.ref){t=_.X(QN_(t.ref));var Q=t.next().value,e=t.next().value,r=q.attached.bind(q);q.attached=function(){Q(F);r()};
_.vj(function(){e()})}};
QN_=function(F){if(typeof F==="function"){var q;return[function(t){q=F(t)},
function(){var t;(t=q)==null||t()}]}if(!F.onRender||!F.onUnmount)throw Error("Sg");
return[F.onRender,F.onUnmount]};
NSo=function(F,q,t,u,J){u=u===void 0?{}:u;var g=ZKy,Y=!1;g?(Y=!0,ZKy=void 0):(RmC=q,g=document.createElement(q),RmC=void 0);var Q=g;Q.usePatchedLifecycles=!0;Q.lifecycleIsConnected=!1;g.loggingStatus={};var e=re$(F,q,g,u,J);_.vj(function(){Q.lifecycleIsConnected&&(Q.lifecycleIsConnected=!1,e.disconnectedCallback())});
Y||(g.__noInsertionPoint=!0,em$(g,e,t,u));return g};
re$=function(F,q,t,u,J){J=J===void 0?dPu:J;wFy[q]!=null||(wFy[q]=J(F,q,u==null?void 0:u.getTemplate,u));var g=wFy[q],Y=g.ctor;J=g.getInitialMethods;var Q=g.getPropsToForwardBeforeReady;F=g.getPropsToForwardBeforeRegister;u=g.shouldForwardProp;var e=g.observedAttributes,r=g.shouldLog,N=Y(t,{beforeReady:function(){var w=N;w._takeAttributes?w._takeAttributes():w.setPropertiesFromInitialAttributeValues&&w.setPropertiesFromInitialAttributeValues();w=_.X(Q(t.polymerController));for(var k=w.next();!k.done;k=
w.next()){var z=_.X(k.value);k=z.next().value;z=z.next().value;SEM(t,k,z);r(q)&&!Xt(k)&&Brq(t.polymerController,k)}t.polymerController=pYy(N,q)}});
t.polymerController=N;t.polymerController.observedAttributes=e;g=_.X(N.getExtraMethodsToForward());for(Y=g.next();!Y.done;Y=g.next())e=_.X(Y.value),Y=e.next().value,e=e.next().value,hvf(t,Y,e);J=_.X(J());for(g=J.next();!g.done;g=J.next())g=g.value,u(g)&&hvf(t,g),r(q)&&!Xt(g)&&KJu(N,g);F=_.X(F());for(u=F.next();!u.done;u=F.next())J=_.X(u.value),u=J.next().value,J=J.next().value,SEM(t,u,J);return N};
iKW=function(F){var q=eg;eg=F;return q};
zmf=function(F){if(_.ZP.has(F))_.k6M=F;else if(Rc.has(F)&&eg&&Ek3(eg)===F){var q;(q=eg)._numRenders!=null||(q._numRenders=0);eg._numRenders++;if(eg._numRenders>1)throw Error("Tg");return eg}};
okP=function(F){_.ZP.has(Ek3(F))?_.k6M=Ek3(F):Rc.has(Ek3(F))&&eg!==F&&(F._isInert=!0)};
Ek3=function(F){var q;return(q=F==null?void 0:F.tagName.toLowerCase())!=null?q:""};
nkf=function(F,q){if(F.componentType===_.Wj)throw Error("Ug");Rc.add(q);var t=function(){var u=HTMLElement.call(this)||this;u.is=q;if(RmC===q)return u.isInert=!0,u;u.createElement();return u};
_.M(t,HTMLElement);t.prototype.createElement=function(){if(!this.isInert){ZKy=this;var u=_.X(_.ni3(function(){return _.Z(F,null)})).next().value;
ZKy=void 0;QHq(this);return u}};
customElements.define(q,t)};
TSM=function(F,q,t,u,J){F.prototype.is=q;(u==null?0:u.useSink)?Mnq(F,q,t,u,J):(t=dPu(F,q,t,u),LJo(t,q));return F};
Mnq=function(F,q,t,u,J){sNy();var g=_.ld(function(Y){return NSo(F,q,Y,Object.assign({},u,{getTemplate:t}),J)},"a");
g.debugName=q+" (CoW wrapped)";nkf(g,q);return g};
Duq=function(F){return!G6P.has(F)};
PGu=function(F,q,t,u){function J(){if(!w){for(var k=new Set(WMy),z=_.X(g.behaviors),T=z.next();!T.done;T=z.next()){T=T.value;for(var P=_.X(Object.getOwnPropertyNames(T)),v=P.next();!v.done;v=P.next()){v=v.value;var H=void 0,d=(H=Object.getOwnPropertyDescriptor(T,v))==null?void 0:H.value;d&&d instanceof Function&&(!r[v]||_.E("polymer_forward_method_killswitch"))&&k.add(v)}}z=_.X(Object.entries(Object.getOwnPropertyDescriptors(F.prototype)));for(T=z.next();!T.done;T=z.next())P=_.X(T.value),T=P.next().value,
P=P.next().value,P.value instanceof Function&&k.add(T);w=k}return w}
var g=Qfv({is:q,disableElementRegistration:!1,getTemplate:t,providers:u==null?void 0:u.providers,reactivityMode:u==null?void 0:u.reactivityMode},F);if((u==null?0:u.allowedProps)||(u==null?0:u.allowedPropsFromBehaviors)){var Y,Q;g.allowedProps=[].concat(_.mZ((Y=u.allowedProps)!=null?Y:[]),_.mZ((Q=u.allowedPropsFromBehaviors)!=null?Q:[]))}var e=J4f(g,F);q=e.observedAttributes;var r={};t=_.X(g.reactiveSchemas);for(u=t.next();!u.done;u=t.next())if(u=u.value,u.type==="signal")r[u.propertyKey]={readOnly:u.readOnly},
u.readOnly&&(r[ILA(u.propertyKey)]={readOnly:!0});else if(u.type==="compute"||u.type==="computeWithMethod"||u.type==="redux")r[u.propertyKey]={readOnly:!0};var N=g.reactiveSchemas.length,w;return{ctor:function(k,z){k=new e(k);k.beforeReady=z.beforeReady;return k},
props:r,observedAttributes:q,getInitialMethods:J,getPropsToForwardBeforeRegister:function(){for(var k=[],z=new Set,T=_.X(OK3),P=T.next();!P.done;P=T.next())P=P.value,k.push([P,P!=="observers"&&P!=="properties"]),z.add(P);T=_.X(Object.keys(r));for(P=T.next();!P.done;P=T.next())P=P.value,k.push([P,r[P].readOnly]),z.add(P);T=J();P=_.X(Object.keys(Object.getOwnPropertyDescriptors(F.prototype)));for(var v=P.next();!v.done;v=P.next())v=v.value,!Duq(v)||T.has(v)||z.has(v)||(k.push([v,!1]),z.add(v));k.push(["allowedProps",
!0]);return k},
getPropsToForwardBeforeReady:function(k){var z=[];k=_.X(Object.keys(k));for(var T=k.next();!T.done;T=k.next()){T=T.value;var P=J();Duq(T)&&!P.has(T)&&z.push([T,!1])}k=_.X(g.reactiveSchemas.slice(N));for(T=k.next();!T.done;T=k.next())T=T.value,T.type!=="compute"&&T.type!=="computeWithMethod"&&T.type!=="redux"&&T.type!=="signal"||z.push([T.propertyKey,T.type==="signal"?T.readOnly:!0]);return z},
shouldForwardProp:Duq,shouldLog:OB}};
_.b=function(F,q,t,u){var J,g,Y=(g=(J=u)==null?void 0:J.mode)!=null?g:0;u!=null||(u={});var Q;(Q=u).reactivityMode!=null||(Q.reactivityMode=0);Y===1&&_.ev("creator_poly_si_disable_list").includes(q)&&(Y=2);return Y===1?TSM(F,q,t,Object.assign({},u,{useSink:!0}),PGu):TSM(F,q,t,Object.assign({},u,{useSink:Y===2}))};
_.rc=function(){return function(F,q,t,u){var J,g,Y=(g=(J=u)==null?void 0:J.mode)!=null?g:2;u!=null||(u={});var Q;(Q=u).reactivityMode!=null||(Q.reactivityMode=0);if(Y===0)throw Error("Vg`"+Y);return Mnq(F,q,t,u,Y===1?PGu:void 0)}};
_.Nc=function(F){return _.E("creator_poly_si_killswitch")?!1:_.E("force_all_poly_si_batches")&&(F==="poly_si_all_on_test_check"||F==="creator_poly_si_batch_050"?0:F)||document.documentElement.hasAttribute("use-signals")?!0:!F||_.E(F+"_holdback_enabled")&&_.E("kevlar_polysi_holdback")?!1:_.E(F)};
wc=function(F){return F?F.icon?F.icon.iconType.toLowerCase():F.customThumbnail?"member":"":""};
xuA=function(F){if(!F)return"";F=_.X(F);for(var q=F.next();!q.done;q=F.next())if((q=q.value)&&q.liveChatAuthorBadgeRenderer&&(q=wc(q.liveChatAuthorBadgeRenderer))&&q!=="verified")return q;return""};
Ae3=function(F,q){if(!F)return null;var t;return((t=F.find(function(u){return u&&u.liveChatAuthorBadgeRenderer?wc(u.liveChatAuthorBadgeRenderer)===q:!1}))==null?void 0:t.liveChatAuthorBadgeRenderer)||null};
_.bKy=function(F){var q=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;F=vkM(F);q=vkM(q);var t=I8C(F.hex);q=I8C(q.hex);var u=q[0]/255;var J=q[1]/255,g=q[2]/255,Y=Math.max(u,J,g),Q=Math.min(u,J,g),e=0,r=0,N=.5*(Y+Q);Y!=Q&&(Y==u?e=60*(J-g)/(Y-Q):Y==J?e=60*(g-u)/(Y-Q)+120:Y==g&&(e=60*(u-J)/(Y-Q)+240),r=0<N&&N<=.5?(Y-Q)/(2*N):(Y-Q)/(2-2*N));u=[Math.round(e+360)%360,r,N];t=HKo(t,q);for(F=mu_(F.hex);t<4.5;){F=u[2]>=.5?F.darker((4.5-t)/2):F.brighter((4.5-t)/2);t=F.toString();
J=$uq(t);if(!J.length)throw Error("Sd`"+t);t=J;t=HKo(t,q)}return F.hex()};
HKo=function(F,q){F=_.zrq(F);q=_.zrq(q);return(Math.max(F,q)+.05)/(Math.min(F,q)+.05)};
_.id=function(F){return"#"+("000000"+(F&16777215).toString(16)).slice(-6)};
_.yeo=function(F){for(var q=0,t=0;t<F.length;t++)q=F.charCodeAt(t)+((q<<5)-q);F="#";for(t=0;t<3;t++)F+=("00"+(q>>t*8&255).toString(16)).slice(-2);return F};
CGt=function(F){F=(F||"").split(":");F.length===1&&F.unshift("yt-icons");F[1]=F[1].toLowerCase();return F};
KMM=function(F,q){var t=(q=q===void 0?!1:q)?duu:VnA,u=q?Uuq:SWq;F.getIconNames().forEach(function(J){J=q?J:J.substring(J.indexOf(":")+1);F.name==="yt-icons"?hm$.add(J):J.includes("-filled")?t.add(J):u.add(J)})};
kb=function(F,q,t,u){t=t===void 0?!1:t;u=u===void 0?!1:u;var J,g,Y;return _.p(function(Q){if(Q.nextAddress==1)return Q.yield(BSv,2);if(u)return Q.return(hm$.has(F));J=t?duu:VnA;g=t?Uuq:SWq;return q?(Y=F.includes("-filled")?F:F.concat("-filled"),Q.return(J.has(Y))):Q.return(g.has(F))})};
_.a8P=function(F){if(LMM(F))return F;var q=F=F.toLowerCase();(F=f8_.get(F))&&(q=F);return q};
_.Ek=function(F){if(LMM(F))return F.toString();var q=jNC.get(F);if(q)return q;q=F.toLowerCase();var t="yt-icons",u=q.replace(/_/g,"-");switch(F){case "MY_CHANNEL":q="account_circle";break;case "ADD_TO_LIBRARY":q="add";break;case "ALERT_WARN_RED":q="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":q="person_music";break;case "BLOCK_USER":q="block";break;case "CAPTIONS":q="closed_caption";break;case "CLOSED_CAPTION":t="av";q="closed-caption";break;case "COLLECTION":t="maps";q="layers";break;case "CONTACT":t=
"icons";q="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":t="ytcp-icons";q=u.split("creator-studio-")[1];break;case "DISMISSAL":q="close";break;case "DO_NOT_DISTURB":q="block";break;case "DOGFOOD":t="icons";q="pets";break;case "DRAFT":q="paper_corner_folded";break;
case "EMPTY_LIKE":q="like_outline";break;case "EXIT_APP":q="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":q=u;break;case "GAMES":t="ytg";q="my-games";break;case "GO_TO_PAGE":q="arrow-forward";break;case "GROUP":t="social";break;case "HIDE":q="not_interested";break;case "INPUT_COMPONENT":t="icons";q="settings-input-component";break;case "KIDS_BLOCK":q="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":t="ytg";q="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":t=
"ytg";q="membership-post-purchase";break;case "MULTIVIEW":q="screen_multi_view";break;case "MY_LOCATION":t="maps";q=u;break;case "NOTIFICATIONS_INBOX":q="NOTIFICATIONS";break;case "NEXT":q="chevron_right";break;case "OFFLINE":q="power-settings-new";break;case "PAUSE":t="miniplayer";break;case "PAYMENT":t="icons";break;case "PHONE_DOWNLOAD":q="phone_download";break;case "PREMIUM_STANDALONE":t="yt-logos";q="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":t="yt-logos";q="premium_standalone_cairo";
break;case "QUESTION_ANSWER":q="question_answer";break;case "REDEEM":t="icons";q="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":q="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":q="library_add";break;case "SCHOOL":t="yt-sys-icons";q="creator_academy";break;case "SETTINGS_LIGHT":q="settings_applications";break;case "SETTINGS_MATERIAL":q="settings";break;case "SEARCH_HISTORY":q="watch_history";break;case "SHOPPING_BAG":q="bag";break;case "SOCIAL":case "PEOPLE":t=
"yt-icons";q="people";break;case "STAFF_PICK":t="ytg";q="spotlight";break;case "START_DVR":q="add";break;case "STOP_DVR":t="av";q="stop";break;case "TAB_LIKED":q="like";break;case "TAB_INBOX":q="mail";break;case "TERMS_OF_SERVICE":t="icons";q="description";break;case "TRENDING":q="fire";break;case "UNBLOCK_USER":q="remove";break;case "UNPLUGGED_DARK_THEME":t="image";q="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":q="live";break;case "UNPLUGGED_SPORTS":t="ytu";q="visibility-off";break;
case "VIDEOS":t="av";q="play-circle-filled";break;case "YOUTUBE":t="yt-logos";q="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":t="yt-logos-ext";q="yt-logo-red-updated";break;case "YOUTUBE_LOGO":t="yt-logos-ext";q="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":t="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":t="shorts";q=u;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":t="yt-sys-icons";q="youtube_improve_tv";break;case "OUTLINE_BAG":t=
"yt-sys-icons";q="bag";break;case "QUEUE_PLAY_LAST":t="yt-sys-icons";q="list_queue_last";break;case "SLASH_CIRCLE_LEFT":q="slash_circle_left";break;case "SPEED_1_POINT_2X":q="1_point_2x";break;case "SPEED_1_POINT_5X":q="1_point_5x";break;case "SPEED_1_POINT_8X":q="1_point_8x";break;case "SPEED_POINT_2X":q="point_2x";break;case "SPEED_POINT_5X":q="point_5x";break;case "SPEED_POINT_8X":q="point_8x";break;case "SPEED_1X":q="1x";break;case "SPEED_2X":q="2x";break;case "TAB_BOOKMARK":q="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":t="yt-sys-icons";q="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":t="yt-sys-icons";q="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":t="yt-sys-icons",q="tic_tac_toe"}q=t+":"+q;jNC.set(F,q);return q};
LMM=function(F){var q;_.E("kevlar_use_wil_icons")?q=!!_.sV().resolve(_.zC).resolveIcon({iconName:F.toString()}):q=!1;return q};
_.n9=function(F,q,t,u){t=t===void 0?{}:t;u=u===void 0?!1:u;t===null&&(t={});var J=_.ev("kevlar_command_handler_command_banlist");J=_.X(J);for(var g=J.next();!g.done;g=J.next())if(g=F?F.hasOwnProperty(g.value):void 0,g)return!1;J=_.n(F.commandMetadata,_.EH);return u&&J!=null&&J.url?!1:!q.disableCommandHandlerOverride&&_.oc.instance?(u=_.oc.instance,t.form||(t.form={element:q}),t.form.element||(t.form.element=q),!t.clickedVisualElement&&q.visualElement&&(t.clickedVisualElement=q.visualElement),u.resolveCommand(F,
t),!0):!1};
cet=function(F,q){F=Mc(F);for(var t=_.X(F.visibilityMonitorKeys||[]),u=t.next();!u.done;u=t.next())q.unobserveByKey(u.value);F.visibilityMonitorKeys=void 0};
u_3=function(F,q){if(_.yb()){if(_.E("kevlar_vimio_use_shared_monitor"))F3t(F,q.data);else if(!F3t(F,q.data))return;var t=q.data,u=qA3(t);if(_.E("enable_client_ve_spec_logging"))cet(F,q.observer);else{var J=Mc(F);J.trackedParams&&J.trackedParams!==u&&cet(F,q.observer)}J=Mc(F);!t||J.data&&J.data===t||(J.data=t);tUq(F,q);J.trackedParams=u}};
tUq=function(F,q){var t=q.observer;if(!t&&_.E("web_skip_missing_vimio_observer")){var u,J;_.bz(new _.D0("VisibilityObserver is not defined.",F.tagName,F.trackedParams,(u=q.data)==null?void 0:u.trackingParams,(J=q.data)==null?void 0:J.loggingDirectives))}else{var g=q.layer,Y=q.visibilityCallback||function(){},Q=q.prescanCallback,e=Mc(F);
u=[];q.showOption&&u.push(t.observe(F,function(){q.skipLogging&&q.skipLogging()||_.TC().reportShown(e,void 0,g);Y(!0)},q.showOption));
q.hideOption&&u.push(t.observe(F,function(){_.TC().reportHidden(e,void 0,g);Y(!1)},q.hideOption));
q.prescanOption&&Q&&u.push(t.observe(F,function(){Q()},q.prescanOption));
e.visibilityMonitorKeys=u}};
F3t=function(F,q){F=Mc(F);if(F.visualElement&&!q)return!0;if(!q)return!1;var t=!1;if(_.E("enable_client_ve_spec_logging")){var u,J;t=!!((u=q.loggingDirectives)==null?0:(J=u.clientVeSpec)==null?0:J.uiType)}u=qA3(q);if(!u&&!t)return!1;_.E("mweb_component_visibility_logging")&&(F.veContainer||(F.veContainer={}),F.veContainer.trackingParams=u);if(F.trackedParams&&F.trackedParams===u)return!1;var g;if(_.E("enable_client_ve_spec_logging")&&((g=F.visualElement)==null?0:g.isClientVe())){var Y;g=(Y=F.visualElement)==
null?void 0:Y.getAsJspb();var Q,e,r,N;if(_.pr(g,2)===((Q=q.loggingDirectives)==null?void 0:(e=Q.clientVeSpec)==null?void 0:e.uiType)&&_.pr(g,3,-1)===((r=q.loggingDirectives)==null?void 0:(N=r.clientVeSpec)==null?void 0:N.elementIndex))return!1}if(_.E("enable_client_ve_spec_logging")){var w,k;!F.visualElement&&((w=q.loggingDirectives)==null?0:(k=w.clientVeSpec)==null?0:k.uiType)&&(Q=q.loggingDirectives.clientVeSpec,q=Q.uiType,Y=Q.elementIndex,Q=Q.clientYoutubeData,F.visualElement=_.GC(_.DP(),{veType:q,
elementIndex:Y,clientYouTubeData:Q}))}return!0};
qA3=function(F){if(F==null?0:F.rendererContext){var q=_.n(F.rendererContext,_.W9);if(q==null?0:q.loggingDirectives)return q.loggingDirectives.trackingParams}return(F==null?0:F.loggingDirectives)?F.loggingDirectives.trackingParams:F==null?void 0:F.trackingParams};
Mc=function(F){var q;return(q=F.polymerController)!=null?q:F};
lmW=function(F){_.TC();if(_.UK(Ok().JSC$12551_elementShouldLogGesture).bind(Ok())(F,4)){J_P(F);var q=sFo(F);gr_.set(F,q)}};
J_P=function(F){gr_.has(F)&&(gr_.get(F).cancel("untrack hover element"),gr_.delete(F))};
sFo=function(F){var q,t=[],u=!1,J=new _.iz(function(g,Y){P9(F,"mouseenter",_.UK(function(){var Q,e,r;return _.p(function(N){if(N.nextAddress==1)return q=(0,_.gB)(),Q=XHM(F),t.push(Q),e=YAv(F,function(){u=!0;Y(Error("Wg"))}),N.yield(Q,2);
if(N.nextAddress!=3)return e&&xb(e),r=pHf(F),t.push(r),N.yield(r,3);g();_.WA(N)})}))});
J.then(function(){var g=(0,_.gB)()-q;g=Math.round(g);if(!(500>g||6E5<=g)){var Y=F.getScreenLayer?F.getScreenLayer():void 0;Y=_.yb(Y)||"";var Q=QFM(_.TC(),F);_.FE(Y,F.visualElement?F.visualElement:_.Av(Q),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:g}})}lmW(F)},function(){v9&&(v9(),v9=null);
u&&(J_P(F),lmW(F))});
return J};
XHM=function(F){var q;return(new _.iz(function(t,u){v9=function(){u(Error("Xg"))};
q=_.mI.debounce(_.UK(function(){xb(J);t()}),1,100);
var J=_.Ic(F,"mousemove",q)})).thenCatch(function(){var t=_.mI.cancelDebouncedJobMap.get(q);
t&&_.mI.cancelJob(t)})};
pHf=function(F){var q;return(new _.iz(function(t,u){v9=function(){u(Error("Yg"))};
q=P9(F,"mouseleave",_.UK(function(){t()}))})).thenCatch(function(){xb(q)})};
YAv=function(F,q){return P9(F,"mouseleave",_.UK(q))};
Zvq=function(F){e8M&&_.H9.cancel(e8M);e8M=_.H9.run(function(){_.Q0(F,"yt-visibility-refresh");e8M=0})};
R8_=function(F){F=Number(F);return"rgba("+[F>>16&255,F>>8&255,F&255,(F>>24&255)/255].join()+")"};
NKu=function(F){if(!F)return!1;if(_.n(F,_.r_C))return!0;var q;if(F=(q=_.n(F,_.wY))==null?void 0:q.commands)for(q=_.X(F),F=q.next();!F.done;F=q.next())if(_.n(F.value,_.r_C))return!0;return!1};
wH_=function(F){var q=!0;q=q===void 0?!0:q;if(!F.useSignals&&!F.experimentalPropertiesChanged||_.E("experimental_templating_behavior_nopatch_killswitch")){var t=F._propertiesChanged;F._propertiesChanged=function(u,J,g){q?F.debounceRender():F.doRender();t&&t.call(F,u,J,g)}}};
ivv=function(F,q){if(F.useSignals||F.experimentalPropertiesChanged)if(_.E("experimental_templating_behavior_nopatch_killswitch"))F.experimentalPropertiesChanged=function(){};
else return;var t=new Set,u=[F].concat(_.mZ(F.behaviors));u=_.X(u);for(var J=u.next();!J.done;J=u.next()){J=J.value;for(var g in J.properties)t.has(g)||(F._addPropertyEffect(g,"function",q),t.add(g))}};
kXy=function(){var F=Polymer.Element,q=F._prepareTemplate;F._prepareTemplate=function(){q.call(this);var t=this.prototype;if(t.experimentalTemplatingInUse&&t.experimentalTemplatingInUse()&&t.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.mH(Error("Zg"));else{t=this.template.content.childNodes;for(var u=t.length-1;u>=0;u--){var J=t[u];J.nodeName!=="STYLE"&&J.nodeName!=="LINK"&&J.nodeName!=="SCRIPT"&&J.nodeName!=="#comment"&&J.remove()}}}};
Ero=function(F){var q=!0;q=q===void 0?!0:q;kXy();var t=F.ready;F.ready=function(){this._template=null;t.call(this)};
ivv(F,q?F.debounceRender:F.doRender)};
orf=function(F,q,t){if(t===null||t===void 0)return t;var u=lSo(F.tagName.toLowerCase(),q,function(){throw Error("Rb");});
if(u===null)return t;u=z8P[u];var J;if((J=u.isUnwrappable)==null?0:J.call(u,t)){if(u.unwrap)return u.unwrap(t);throw Error("bh");}return u.filterString?u.filterString(F.tagName,q,String(t)):t};
nr_=function(F,q,t){var u=q[q.length-1]!=="$",J=orf(F,q,t);if(u)if(typeof J==="function"&&q.startsWith("reactiveon")&&q===q.toLowerCase()){var g=tO;NZo(F,q.slice(8),function(Y){$R(g,function(){J(Y)})})}else F[q]=J;
else t=J==null?null:String(J),Vs(F,q.slice(0,-1),t)};
$b=function(F){MUA.length===0&&requestAnimationFrame(function(){setTimeout(function(){var q=MUA.slice();MUA.length=0;q=_.X(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;try{t()}catch(u){_.mW(u)}}})});
MUA.push(F)};
TKM=function(F){if(F){var q=F.component;if(q){var t;q==null||(t=q.events)==null||t.publish("DISCONNECTED");var u;q==null||(u=q.onDisconnected)==null||u.call(q)}var J,g;(J=F.__spec)==null||(g=J.didUnmount)==null||g.call(J);for(q=0;q<F.childNodes.length;q++)TKM(F.childNodes[q])}};
GXW=function(F,q,t){var u=q&&q.key,J=Fb;J[0]=F;J[1]=u;J[2]=void 0;for(var g in q)q.hasOwnProperty(g)&&(F=q[g],u=qM,u.push(g),u.push(F));q=Fb;a:{if(g=Fb[2])for(F=0;F<g.length;F+=2)if(g[F]==="nonce"){g=g[F+1];break a}g=""}g=OW3(q[0],q[1],g);F=Kq(g);u=q[2];if(!F.staticsApplied&&(F.staticsApplied=!0,u&&u.length))if((J=F._attrsArr)&&J.length){for(J=0;J<u.length;J+=2)bd[u[J]]=J+1;J=F._attrsArr||(F._attrsArr=rgW(0));for(var Y=0,Q=0;Q<J.length;Q+=2){var e=J[Q],r=J[Q+1],N=bd[e];N?u[N]===r&&delete bd[e]:(J[Y]=
e,J[Y+1]=r,Y+=2)}ys(J,Y);for(var w in bd)zfo(g,w,u[bd[w]],Jg),delete bd[w]}else for(w=0;w<u.length;w+=2)zfo(g,u[w],u[w+1],Jg);$L_(g,F,Jg);ys(q,0);t&&t(Bj);PRt()};
_.yj=function(F,q,t){t===void 0?delete F[q.name]:F[q.name]=t};
_.C9=function(F){var q={androidIncludeFontPadding:!1},t=0,u=[],J=[],g=[];if(F.simpleText)return q.content=F.simpleText,q;if(F.runs===void 0)return q.content="",q;F=_.X(F.runs);for(var Y=F.next();!Y.done;Y=F.next()){Y=Y.value;var Q=Y.text,e=void 0,r=(e=Q)==null?void 0:e.length;if(Q&&r){u.push(Q);if(Y.bold||Y.italics||Y.strikethrough||Y.underline||Y.textColor!=null&&Y.textColor!==0||Y.deemphasize){Q=J;e=Q.push;var N={startIndex:t,length:r};Y.bold&&(N.weightLabel="FONT_WEIGHT_MEDIUM");Y.italics&&(N.italic=
!0);Y.strikethrough&&(N.strikethrough="LINE_STYLE_SINGLE");Y.underline&&(N.underline="LINE_STYLE_SINGLE");Y.textColor!=null&&Y.textColor!==0?document.documentElement.hasAttribute("dark")?N.fontColor=Y.darkModeTextColor||Y.textColor:N.fontColor=Y.textColor:Y.deemphasize&&(document.documentElement.hasAttribute("dark")?N.fontColor=parseInt("ff"+DOA("#aaa").substring(1),16):N.fontColor=parseInt("ff"+DOA("#606060").substring(1),16));e.call(Q,N)}Y.navigationEndpoint&&(Q=g,e=Q.push,N={startIndex:t,length:r,
onTap:{innertubeCommand:Y.navigationEndpoint}},Y.loggingDirectives&&_.yj(N,W3y,Y.loggingDirectives),e.call(Q,N));t+=r}}q.content=u.join("");q.styleRuns=J.length?J:void 0;q.commandRuns=g.length?g:void 0;return q};
PE3=function(F){if(F==null||!F.runs)return!0;F=_.X(F.runs);for(var q=F.next();!q.done;q=F.next())if(q=q.value,q.bracket||q.errorUnderline||q.deemphasize||_.n(q,dc)||_.n(q,OvC))return!1;return!0};
xOo=function(F,q){return function(t){var u=q.unit;if(u!==t)throw Error("eh`"+F+"`"+u+"`"+t);return q}};
Vj=function(F){if(!((F==null?0:F.value)&&(F==null?0:F.unit)))return"";switch(F.unit){case "DIMENSION_UNIT_FRACTION":var q="%";break;default:q="px"}F=F.value;q==="%"&&(F*=100);return""+F+q};
A_f=function(F){try{return F()}catch(q){_.bz(q)}};
_.Sg=function(F){var q=_.n(F,_.Uk);if(q)return q;if((q=_.n(F,vr$))&&q.commands)return ImA(q.commands);if((q=_.n(F,Hvv))&&q.commands)return ImA(q.commands);if((F=_.n(F,mO3))&&F.identifier&&F.command&&($Oy||($Oy=[]),!$Oy.includes(F.identifier)))return $Oy.push(F.identifier),_.n(F.command,_.Uk)};
ImA=function(F){if(F.length!==0){var q=[];F=_.X(F);for(var t=F.next();!t.done;t=F.next())(t=_.Sg(t.value))&&q.push(t);return{commandExecutorCommand:{commands:q}}}};
_.K9=function(F){var q=F.defaultTarget,t=F.elementConfig,u=F.elementsCommand,J=F.skipOnClick,g=F.forceNewState,Y=F.additionalCommandArgs,Q=F.innertubeCommand||_.Sg(u);if(Q){F={};var e=bvC(Q);u=e.navigatingCommand;e=e.href;u&&e?(F.href$=e,y_f(F,u,e,q),_.E("web_atagconfig_pointerdown")&&CEo(F,u),g&&(F["force-new-state$"]=!0)):(F.role$="button",F.href$="javascript:void(0);");_.n(Q,dOC)&&(F["aria-haspopup$"]=!0);J||(F.onclick=function(r){var N={};if(VU$(r)){var w=(Y==null?void 0:Y.clickedVisualElement)||
(Y==null?void 0:Y.getClickedVisualElement)&&Y.getClickedVisualElement();w&&(N={clickedVisualElement:w});N=Object.assign({},{form:{element:r.target,event:r,createScreenConfig:N}},Y);r.preventDefault();_.hv(Q,N)}});
return Object.assign({},t,F)}};
UOo=function(F){if(F.length){if(F.length===1)return F[0];var q={};_.yj(q,_.wY,{commands:F});return q}};
B9=function(F){return F&&F.href$!=="javascript:void(0);"};
bvC=function(F){var q,t=((q=_.n(F,_.wY))==null?void 0:q.commands)||[F];F=_.X(t);for(q=F.next();!q.done;q=F.next()){q=q.value;var u=void 0,J=void 0;t=(J=_.n((u=q)==null?void 0:u.commandMetadata,_.EH))==null?void 0:J.url;_.E("web_remove_web_navigation_endpoint_data")||(u=void 0,t=t||((u=_.n(q,SAv))==null?void 0:u.url));if(t&&t!=="/service_ajax"){if(u=_.yy(t,h8o))return F=_.mt(u),{navigatingCommand:q,href:F};_.bz(new _.D0("AttributedString URL could not be sanitized",t))}}return{}};
VU$=function(F){return F.button!==void 0?F.button===0&&!(F.shiftKey||F.altKey||F.metaKey||F.ctrlKey):!(F.shiftKey||F.altKey||F.metaKey||F.ctrlKey)};
y_f=function(F,q,t,u){t=!tU(t);var J,g,Y;if((J=_.n(q,_.Gr))!=null&&J.nofollow||(g=_.n(q,_.Fw))!=null&&g.nofollow||(Y=_.n(q,_.KM))!=null&&Y.nofollow||t)F.rel$="nofollow";var Q;q=((Q=_.n(q,_.KM))==null?void 0:Q.target)==="TARGET_NEW_WINDOW"?"_blank":u===void 0?"":u;F.target$=q};
CEo=function(F,q){q.clickTrackingParams&&(F.params={itct:q.clickTrackingParams});F.onpointerdown=function(t){K3W(t)};
F._data=q};
BK_=function(F){(F.loggingUrls||[]).forEach(function(q){Bt(q.baseUrl,q.attributionSrcMode)})};
K3W=function(F){var q=F.currentTarget;F=A_f(function(){return q.href});
var t=q.params;F&&_.JV(F,t||{},8,!0)};
_.L9=function(F,q){(F=_.Sg(F))&&_.hv(F,q)};
_.hv=function(F,q){mUM(function(t){q?t.resolveCommand(F,q):t.resolveCommand(F)})};
jFo=function(F,q){var t=["yt-core-attributed-string__link"];q!=null&&q.noLinkColor||((q==null?0:q.isOverlay)?t.push("yt-core-attributed-string__link--overlay-call-to-action-color"):t.push("yt-core-attributed-string__link--call-to-action-color"),(q==null?0:q.linkInheritColor)&&t.push("yt-core-attributed-string--link-inherit-color"));t={className:t.join(" "),tabindex$:"0"};var u=F.onTap||F.onLongPress;if(!u)return t;var J=L3u(F);J&&(t["aria-label$"]=J);q=_.K9({elementsCommand:u,elementConfig:t,skipOnClick:!(q==
null||!q.skipOnClick),forceNewState:!0});F.onLongPress&&(u=new fmu(function(){var g=_.Sg(F.onLongPress);g&&_.sV().resolve(_.gN).resolveCommand(g)}),q&&amf(u,q));
return q||t};
L3u=function(F){var q,t;return(q=F.onTapOptions)==null?void 0:(t=q.accessibilityInfo)==null?void 0:t.accessibilityLabel};
c_y=function(F){var q=F;F<=16777215&&(q+=parseInt("ff000000",16));return _.KG(q)};
Fbt=function(F){var q=F.isDarkTheme;var t=F.extension;F=F.runColor;var u=void 0;if(t=t==null?void 0:t.colorMap){q=q?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";t=_.X(t);for(var J=t.next();!J.done;J=t.next())if(J=J.value,q===J.key){u=J.value;break}}u==null&&F&&(u=F);if(u)return c_y(u)};
f9=function(F){var q=F.config;var t=F.image;var u=F.imageConfig;var J=F.imageWrapperConfig;var g=F.run;var Y=F.tag;var Q=F.textLength;var e=F.startIndex===void 0?0:F.startIndex;F=F.length;e===void 0&&(e=0);g={run:g,startIndex:e,endIndex:F!==void 0?e+F:Q,tag:Y};t&&(g.image=t);u&&(g.imageConfig=u);J&&(g.imageWrapperConfig=J);q&&(g.config=q);return g};
tEu=function(F,q){var t=[];t.push("yt-core-attributed-string");(q==null?0:q.className)&&t.push(q==null?void 0:q.className);(q==null?0:q.ellipsisTruncate)?t.push("yt-core-attributed-string--ellipsis-truncate"):(q==null?0:q.noWrap)?t.push("yt-core-attributed-string--white-space-no-wrap"):(q==null?0:q.noPreWrap)||t.push("yt-core-attributed-string--white-space-pre-wrap");(q==null?0:q.linkInheritColor)&&t.push("yt-core-attributed-string--link-inherit-color");F.alignment&&t.push(q0t(F.alignment));F.lineBreakMode&&
t.push("yt-core-attributed-string--word-wrapping");return t.join(" ")};
unW=function(F,q){if(F.weight)return F.weight;switch(F.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return q?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
Jqy=function(F){switch(F){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
q0t=function(F){switch(F){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
F0=function(F,q,t){var u=q;F.content&&t&&(t=F.content.indexOf("\n"),t!==-1&&(u=Math.min(q,t)));if(!F.content||F.content.length<=u)q=F;else if(F.attachmentRuns||F.commandRuns||F.decorationRuns||F.styleRuns||F.paragraphStyleRuns){q=ac(F.content,u);t=u;var J=F.attachmentRuns;if(J){var g=[];J=_.X(J);for(var Y=J.next();!Y.done;Y=J.next())Y=Object.assign({},Y.value),Y.startIndex===void 0||Y.startIndex>=t||(Y.length||(Y.length=0),Y.length+Y.startIndex>t&&(Y.length=t-Y.startIndex),g.push(Y));t=g}else t=void 0;
g=sSM(u,F.commandRuns);J=u;var Q=F.decorationRuns;if(Q){Y=[];Q=_.X(Q);for(var e=Q.next();!e.done;e=Q.next()){e=e.value;var r=_.n(e.textDecorator,c9);if(r&&r.startIndex!==void 0&&!(r.startIndex>=J)){e=Object.assign({},e,{textDecorator:{highlightTextDecorator:Object.assign({},r)}});r=_.n(e.textDecorator,c9);if(!r.length||r.length+r.startIndex>J)r.length=J-r.startIndex;Y.push(e)}}J=Y}else J=void 0;Y=sSM(u,F.styleRuns);if(Q=F.paragraphStyleRuns)for(F=[],Q=_.X(Q),e=Q.next();!e.done;e=Q.next()){var N=e.value;
e=Object.assign({},N);if(!(e.startIndex===void 0||e.startIndex>=u)){if(!e.length||e.length+e.startIndex>u)e.length=u-e.startIndex;r=[];var w=void 0,k=void 0;if((w=N)==null?0:(k=w.listGroup)==null?0:k.listItems)for(N=_.X(N.listGroup.listItems),w=N.next();!w.done;w=N.next())if(w=Object.assign({},w.value),!(w.startIndex===void 0||w.startIndex>=u)){if(!w.length||w.length+w.startIndex>u)w.length=u-w.startIndex;r.push(w)}r.length>0&&(e.listGroup||(e.listGroup={}),e.listGroup=Object.assign({},e.listGroup,
{listItems:r}));F.push(e)}}else F=void 0;q={content:q,attachmentRuns:t,commandRuns:g,decorationRuns:J,styleRuns:Y,paragraphStyleRuns:F}}else q=Object.assign({},F,{content:ac(F.content,u)});return q};
sSM=function(F,q){if(q){var t=[];q=_.X(q);for(var u=q.next();!u.done;u=q.next())if(u=Object.assign({},u.value),!(u.startIndex===void 0||u.startIndex>=F)){if(!u.length||u.length+u.startIndex>F)u.length=F-u.startIndex;t.push(u)}return t}};
ac=function(F,q){var t=q,u;if(u=t>0)u=F.charCodeAt(t-1),u=u>=55296&&u<=56319;u&&(t=F.charCodeAt(t),u=t>=56320&&t<=57343);u&&--q;return F.substring(0,q)};
Y0W=function(F,q,t){t=t===void 0?gJv:t;if(F){var u=_.sV().resolve(gZ);u||_.E("mweb_no_observer_killswitch")?u_3(F,{data:q,observer:u,visibilityCallback:t,hideOption:lGM,showOption:XR$,layer:F.layer}):_.bz(new _.D0("Warning: monitorVisibility called with null observer",F.tagName,q==null?void 0:q.loggingDirectives,q==null?void 0:q.trackingParams))}else _.bz(new _.D0("Warning: monitorVisibility called with null element",q==null?void 0:q.loggingDirectives,q==null?void 0:q.trackingParams,q==null?void 0:
q.rendererContext))};
N9_=function(F,q){var t=[],u=F.content.length,J,g=(J=_.sV().resolve(_.JU(_.qo)))==null?void 0:J();if(F.paragraphStyleRuns){J=_.X(F.paragraphStyleRuns);for(var Y=J.next();!Y.done;Y=J.next()){var Q=t.push,e=Q.apply;var r=void 0;Y=Y.value;if((r=Y.listGroup)!=null&&r.listItems){r=[];b:switch(Y.listGroup.listType){case "LIST_TYPE_BULLET":var N="ul";break b;default:N="span"}r.push(f9({run:Y,textLength:u,tag:N,config:{className:"yt-core-attributed-string__list-group"},startIndex:Y.startIndex,length:Y.length}));
N=_.X(Y.listGroup.listItems);for(var w=N.next();!w.done;w=N.next()){w=w.value;b:switch(Y.listGroup.listType){case "LIST_TYPE_BULLET":var k="li";break b;default:k="span"}r.push(f9({run:Y,textLength:u,tag:k,startIndex:w.startIndex,length:w.length}))}Y=r}else Y=[];e.call(Q,t,_.mZ(Y))}}if(F.styleRuns&&(q==null||!q.noStyleRuns))for(J=_.X(F.styleRuns),Q=J.next();!Q.done;Q=J.next()){Y=Q=Q.value;r=g;e=q;r=Fbt({extension:_.n(Y.styleRunExtensions,pR3),isDarkTheme:r===void 0?!1:r,runColor:Y.fontColor});w=Y;
N=[];r&&N.push("yt-core-attributed-string--link-inherit-color");w.italic&&N.push("yt-core-attributed-string--italicized");w.underline&&w.strikethrough?N.push("yt-core-attributed-string--underline-strikethrough",Jqy(w.underline)):w.underline?N.push("yt-core-attributed-string--underlined",Jqy(w.underline)):w.strikethrough&&N.push("yt-core-attributed-string--strikethrough",Jqy(w.strikethrough));if(w.baselineOffset){a:switch(w.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":w="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":w="yt-core-attributed-string--baseline-offset-superscript";break a;default:w="yt-core-attributed-string--baseline-offset-unknown"}N.push(w)}N=N.join(" ");w={};if(Y.weight||Y.weightLabel)w.fontWeight=unW(Y,e==null?void 0:e.isHeadline).toString();r&&(w.color=r);t.push(f9({run:Q,textLength:u,tag:"span",config:{className:N,style:w},startIndex:Q.startIndex,length:Q.length}))}if(F.decorationRuns)for(J=_.X(F.decorationRuns),Q=J.next();!Q.done;Q=J.next())Q=Q.value,
e={},Q.textDecorator&&(N=Q.textDecorator,Y=g===void 0?!1:g,w=[],r=_.n(N,c9),N=_.n(N,QSu),r?(N=w,w=N.concat,k=[],(Y=Fbt({extension:_.n(r.highlightTextDecoratorExtensions,eHq),isDarkTheme:Y,runColor:r.backgroundColor}))&&k.push("background-color: "+Y+";"),r.backgroundCornerRadius!==void 0&&k.push("border-radius: "+r.backgroundCornerRadius+"px;"),r.leftPadding!==void 0&&k.push("padding-left: "+r.leftPadding+"px;"),r.rightPadding!==void 0&&k.push("padding-right: "+r.rightPadding+"px;"),r.topPadding!==
void 0&&k.push("padding-top: "+r.topPadding+"px;"),r.bottomPadding!==void 0&&k.push("padding-bottom: "+r.bottomPadding+"px;"),w=w.call(N,k)):N&&(r=w,w=r.concat,Y=Y?"#2ba640":"#107516",Y=N.color?c_y(N.color):Y,Y=["padding: 2px;","border-top: solid "+Y+" 2px;","border-bottom: solid "+Y+" 2px;","background: linear-gradient(135deg, "+Y+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Y+" 3px, rgba(0, 0, 0, 0) 3px);"],w=w.call(r,Y)),Y=w.join(" "),e.style$=Y,Y=Q.textDecorator,r=[],N=_.n(Y,
QSu),_.n(Y,c9)?r.push("yt-core-attributed-string--highlight-text-decorator"):N&&r.push("yt-core-attributed-string--bracket-text-decorator"),Y=r.join(" "),e.className=Y,e.dir="auto"),Y=_.n(Q.textDecorator,c9),r=_.n(Q.textDecorator,QSu),N=_.n(Q.textDecorator,c9),w=_.n(Q.textDecorator,QSu),t.push(f9({run:Q,textLength:u,tag:"span",config:e,startIndex:(Y==null?void 0:Y.startIndex)||(r==null?void 0:r.startIndex)||0,length:(N==null?void 0:N.length)||(w==null?void 0:w.length)||0}));if(F.commandRuns&&(q==
null||!q.noEndpoints))for(g=_.X(F.commandRuns),J=g.next();!J.done;J=g.next())J=J.value,Q=jFo(J,q),t.push(f9({run:J,textLength:u,tag:"a",config:Q,startIndex:J.startIndex,length:J.length}));if(F.attachmentRuns)for(F=_.X(F.attachmentRuns),g=F.next();!g.done;g=F.next()){g=g.value;e=Q=void 0;J={className:"yt-core-attributed-string--inline-block-mod"};if((e=g.element)==null?0:e.properties){e=(Q=g.element)==null?void 0:Q.properties;Q=[];e=_.n(e,Z$o);if(e==null?0:e.margin)e=e.margin,e.left&&Q.push("margin-left: "+
Vj(e.left)+";"),e.right&&Q.push("margin-right: "+Vj(e.right)+";"),e.top&&Q.push("margin-top: "+Vj(e.top)+";"),e.bottom&&Q.push("margin-bottom: "+Vj(e.bottom)+";");Q=Q.length!==0?Q.join(" "):void 0;J.style$=Q}Y=void 0;Q={alt:"",preserveHeight:!0,preserveWidth:!0};e=["yt-core-attributed-string__image-element"];if(g.alignment){a:switch(g.alignment){case "ALIGNMENT_BASELINE":r="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":r="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:r="yt-core-attributed-string__image-element--image-alignment-bottom"}e.push(r)}if((Y=g.element)==null?0:Y.properties)Y=[],r=_.n(g.element.properties,Z$o),(r==null?0:r.height)&&Y.push("height: "+Vj(r.height)+";"),(r==null?0:r.width)&&Y.push("width: "+Vj(r.width)+";"),Y=Y.length!==0?Y.join(" "):void 0,Q.style$=Y,r=void 0,Y=((r=_.n(g.element.properties,RHo))==null?void 0:r.label)||"",Q.alt=Y;Q.className=e.join(" ");e=void 0;N=r=void 0;Y=((N=g.element)==null?0:N.type)?(r=_.n(g.element.type,
rqy))==null?void 0:r.image:void 0;t.push(f9({run:g,textLength:u,tag:"img",image:Y,imageConfig:Q,imageWrapperConfig:J,startIndex:g.startIndex,length:(e=g.length)!=null?e:0}))}if(q==null?0:q.headerRuns)for(q=_.X(q.headerRuns),F=q.next();!F.done;F=q.next())if(F=F.value,F.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(F.headerMapping)){a:{switch(F.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":g=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":g="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":g="yt-core-attributed-string--heading-3";break a}g=void 0}t.push(f9({run:F,textLength:u,tag:"span",config:g?{className:g}:void 0,startIndex:F.startIndex,length:F.length}))}return t};
_.tT=function(F){return(F==null?void 0:F.content)!==void 0};
wRo=function(F){return _.tT(F)?F:_.C9(F)};
i$$=function(F){return F.image!==void 0&&F.imageConfig!==void 0};
kfM=function(F,q){if(q==null?0:q.userInput)for(F=_.X(F),q=F.next();!q.done;q=F.next())if(q=q.value,q.tag!=="a"&&q.tag!=="li"){var t=void 0;(t=q).config||(t.config={});q.config.dir=q.tag==="ul"?_.sV().resolve(_.u_):"auto"}};
EJo=function(F){return function(q){var t=F.run;(t.onTap!==void 0||t.onLongPress!==void 0)&&_.n(t,W3y)&&Y0W(q,{loggingDirectives:_.n(t,W3y)})}};
zHo=function(F){return function(q){for(var t in F)(Jg[t]||Jg[Ud["default"]])(q,t,F[t])}};
T9M=function(F,q){oJW(q);var t={data:null,start:0,end:F.length,parts:[]};q=_.X(q);for(var u=q.next();!u.done;u=q.next())u=u.value,nJo(t,u.startIndex,u.endIndex,u);MEM(F,t);return t};
nJo=function(F,q,t,u){for(var J=_.X(F.parts),g=J.next();!g.done;g=J.next()){g=g.value;if(typeof g==="string")throw Error("gh");if(g.start<=q&&t<=g.end){nJo(g,q,t,u);return}}F.parts.push({data:u,parts:[],start:q,end:t})};
MEM=function(F,q){for(var t=q.parts.length;t>=0;t--){var u=q.parts[t],J=q.parts[t-1],g=t===q.parts.length?q.end:u.start;J=t===0?q.start:J.end;g!==J&&q.parts.splice(t,0,F.slice(J,g));u&&MEM(F,u)}};
oJW=function(F){F.sort(function(q,t){if(q.startIndex<t.startIndex)return-1;if(t.startIndex<q.startIndex)return 1;q=q.endIndex-q.startIndex;t=t.endIndex-t.startIndex;return q>t?-1:t>q?1:0})};
_.GfW=function(F){var q=F.thumbnails;if(q){F={sources:[]};q=_.X(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u={};u.url=t.url;u.width=t.width;u.height=t.height;F.sources.push(u)}return F}};
Dry=function(F,q,t,u){if(!q)return F.length>=1?F[F.length-1]:null;if(u)for(var J=_.X(F),g=J.next();!g.done;g=J.next()){g=g.value;var Y=void 0,Q=(Y=g.url)==null?void 0:Y.indexOf(u);if(Q!==void 0&&Q>=0)return g}u=_.X(F);for(J=u.next();!J.done;J=u.next())if(J=J.value,J.width&&J.height&&(t&&J.width>=q||!t&&J.height>=q))return J;for(q=F.length-1;q>=0;q--)if(t&&F[q].width||!t&&F[q].height)return F[q];return F[0]};
_.Wbo=function(F){var q;return(F=(q=F.sources)==null?void 0:q[0])?F.width/F.height:0};
_.O$A=function(F){if(F.sources){F=_.X(F.sources);for(var q=F.next();!q.done;q=F.next()){q=q.value;var t=void 0;if((t=q.clientResource)==null?0:t.imageName)return q}}};
P03=function(F){var q;if((q=F.clientResource)!=null&&q.imageColor)return _.KG(F.clientResource.imageColor)};
_.Aqv=function(F,q,t,u,J,g,Y){if(!q||q.length===0||q[0].clientResource)return null;if(t&&q[0].url)return q[0].url;u===void 0&&(u=!0);if(u){var Q;F=xr3*(J||(F==null?void 0:(Q=F.getBoundingClientRect())==null?void 0:Q.width)||0)}else{var e;F=xr3*(g||(F==null?void 0:(e=F.getBoundingClientRect())==null?void 0:e.height)||0)}q=Dry(q,F,u,Y);return(q==null?0:q.url)?q.url:(q==null?0:q.imageData)?q.imageData:null};
vJ_=function(F,q,t){t=t?[t]:[];F.opacity&&t.push("opacity: "+F.opacity+";");q&&F.placeholderColor?(F=_.KG(F.placeholderColor),t.push("background-color: "+F+";")):t.push("background-color: transparent;");return t.join(" ")};
IGM=function(F,q,t,u,J){var g=["ytCoreImageHost"];q&&g.push(q);t||g.push("ytCoreImageFillParentHeight");u||g.push("ytCoreImageFillParentWidth");switch(F.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":g.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":g.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":g.push("ytCoreImageContentModeCenter");break;default:g.push("ytCoreImageContentModeScaleToFill")}F.flipForRtlLayout&&g.push("ytCoreImageFlipRtl");
switch(J){case "TOP_START":var Y;g.push(((Y=document.body)==null?void 0:Y.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return g.join(" ")};
mrC=function(F){var q;if(F==null?0:(q=F.clientResource)==null?0:q.imageName){var t;F=(t=F.clientResource)==null?void 0:t.imageName;a:{switch(F){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":t="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":t="yt-logos-ext:yt-logo-updated";break a}t=void 0}return t||H$q.get(F)||F}};
yqv=function(F){return _.E("mweb_wiz_skip_render")?$ro(F):b$_(F)};
$ro=function(F){return function(q){var t=OW3("wink-root");xL3();PRt();_.Jiy(t,_.Z(F,q))}};
b$_=function(F){var q=q===void 0?!1:q;return function(t){if(!q||!_.E("mweb_skip_keto_to_c3_if_no_data")||t.data!==void 0){var u=Xb(!1);try{var J=t.children;_.E("mweb_render_outside_patch_killswitch")||Bj?J?uR(_.Z(F,t,J)):uR(_.Z(F,t)):_.bz(new _.D0("ketoToC3 called outside of a patch",{tagName:F.TAG_NAME}))}finally{Xb(u)}}}};
C0u=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
VEP=function(F,q){F.onViewportEntered=q;dro.observe(F)};
UrM=function(){var F={rootMargin:"10%",threshold:.01};_.E("mweb_enable_set_io_root_to_null_safari")?F.root=null:_.E("mweb_enable_set_io_root_to_body_safari")&&(F.root=document.body);return new IntersectionObserver(function(q,t){q.filter(function(u){return u.intersectionRect.height>0}).forEach(function(u){u=u.target;
if(!_.E("mweb_enable_only_update_image_when_connected")||u.isConnected!==!1){var J;(J=u.onViewportEntered)==null||J.call(u);t.unobserve(u)}})},F)};
S0M=function(F,q,t,u,J){function g(){if(u){var Q=u.loadedClass,e=u.notifyOnUnloaded;Q&&_.JT(F,Q);e&&F.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function Y(){var Q=t(q,F);Q&&F.getAttribute("src")!==Q&&(_.E("mweb_enable_only_update_image_when_connected")&&F.isConnected===!1||Q===F.src||(F.src=Q),g())}
J=J===void 0?!0:J;F.removeAttribute("src");g();q&&(J?VEP(F,Y):Y())};
hH$=function(F,q,t){if(!q)return!1;q=t(q,F);t=F.getAttribute("src");return q&&q===t&&F.complete};
KbM=function(F,q){for(var t in q)t==="className"?F.className=q[t]:(Jg[t]||Jg[Ud.default])(F,t,q[t])};
B9t=function(F,q,t,u){yqv(_.sc)({contentMode:q.contentMode,loadedClass:q.loadedClass,isPreloaded:q.isPreloaded,notifyOnLoaded:q.notifyOnLoaded,notifyOnUnloaded:q.notifyOnUnloaded,preferredThumbnail:q.preferredThumbnail,preserveHeight:q.preserveHeight,preserveWidth:q.preserveWidth,objectPosition:q.objectPosition,targetWidth:q.targetWidth,targetHeight:q.targetHeight,shouldShowPlaceholder:q.shouldShowPlaceholder,useWidth:q.useWidth,isToggled:q.isToggled,alt:q.alt,className:q.className,onerror:q.onerror,
onload:q.onload,style$:q.style$,color:q.color,width:q.width,height:q.height,"aria-hidden$":q["aria-hidden$"],draggable:q.draggable,"data-disabled$":q["data-disabled$"],data:F,callback:t,renderLazy:u===void 0?!0:u,hideOn404:!1})};
fG$=function(F,q,t){t=t===void 0?!1:t;var u=F.sources!==void 0?F:_.GfW(F);if(u){var J=q.onload;q.onload=function(e){var r=e.target;t&&r.naturalWidth===120||_.gC(r,"ytCoreImageLoaded");q.notifyOnLoaded&&r.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));J==null||J(e)};
q.targetWidth&&q.preserveWidth&&(q.width=q.targetWidth);q.targetHeight&&q.preserveHeight&&(q.height=q.targetHeight);var g=_.O$A(u),Y=g&&mrC(g);if(Y)return(F=P03(g))&&(q.color=F),{type:"icon",iconName:Y,config:Object.assign({},q,q.alt?{}:{"aria-hidden$":"true"},{"aria-label$":q.alt,role:"img"})};if(F.sources===void 0){q.alt=F.accessibility&&F.accessibility.accessibilityData&&F.accessibility.accessibilityData.label||q.alt;q.style$=vJ_(F,q.shouldShowPlaceholder,q.style$);var Q;q.isPreloaded=!((Q=_.n(F,
LbM))==null||!Q.isPreloaded)}q.contentMode&&!u.contentMode&&(u.contentMode=q.contentMode);q.className=IGM(u,q.className,q.preserveHeight,q.preserveWidth,q.objectPosition);q.loadedClass="ytCoreImageLoaded";return{type:"image",image:u,config:q}}};
_.l_=function(){var F=_.US.apply(0,arguments);return _.qL(aGv,function(q){var t=F.map(function(u){return u==null?void 0:u(q)});
return function(){return void t.forEach(function(u){return void(u==null?void 0:u())})}})};
X0=function(F,q){var t=q==null?void 0:q.initial;return _.zy(function(){_.Hj(!0);return t=F(t)},{equals:q==null?void 0:q.isEqual},"rSlKsc")};
jSy=function(F,q){if(F===q)return!0;if(F===void 0||q===void 0)return!1;var t,u,J,g,Y,Q,e,r;return F.content===q.content&&((t=F.styleRuns)==null?void 0:t.length)===((u=q.styleRuns)==null?void 0:u.length)&&((J=F.commandRuns)==null?void 0:J.length)===((g=q.commandRuns)==null?void 0:g.length)&&((Y=F.attachmentRuns)==null?void 0:Y.length)===((Q=q.attachmentRuns)==null?void 0:Q.length)&&((e=F.decorationRuns)==null?void 0:e.length)===((r=q.decorationRuns)==null?void 0:r.length)};
qRf=function(F,q){if(F){var t=wRo(F);if(t!=null&&t.content)if(_.E("attr_string_reactive"))yqv(cqu)({text:F,config:q});else{var u=!(q==null||!q.ariaLabel)||!(t.commandRuns&&t.commandRuns.length!==0||t.paragraphStyleRuns&&t.paragraphStyleRuns.length!==0);F=u?q==null?void 0:q.ariaLabel:null;u=u?"text":null;GXW("span",{className:tEu(t,q),dir$:(q==null?0:q.userInput)?"auto":void 0,"aria-label$":F,role$:u},function(){if(t.styleRuns||t.commandRuns||t.attachmentRuns||t.decorationRuns||t.paragraphStyleRuns){var J=
N9_(t,q);kfM(J,q);J=T9M(t.content,J);J=_.X(J.parts);for(var g=J.next();!g.done;g=J.next())FK_(g.value)}else bWy(t.content)})}}};
FK_=function(F){typeof F==="string"?bWy(F):i$$(F.data)?GXW("span",F.data.imageWrapperConfig,function(){B9t(F.data.image,F.data.imageConfig)}):GXW(F.data.tag,F.data.config,function(q){EJo(F.data)(q);
q=_.X(F.parts);for(var t=q.next();!t.done;t=q.next())FK_(t.value)})};
uju=function(F){return F.parts.map(t7$)};
t7$=function(F){if(typeof F==="string")return F;F=i$$(F.data)?_.Z("span",{el:_.l_(zHo(F.data.imageWrapperConfig))},_.Z(_.sc,Object.assign({},{data:F.data.image},F.data.imageConfig))):_.Z(F.data.tag,{el:_.l_(EJo(F.data),zHo(F.data.config))},F.parts.map(t7$));return zn(F)};
JLM=function(F,q){return F===q?!0:F===void 0||q===void 0?!1:F.noStyleRuns===q.noStyleRuns&&F.noLinkColor===q.noLinkColor&&F.noEndpoints===q.noEndpoints&&F.headerRuns===q.headerRuns&&F.isOverlay===q.isOverlay&&F.linkInheritColor===q.linkInheritColor&&F.userInput===q.userInput&&F.isHeadline===q.isHeadline};
sWt=function(F){return function(){var q,t,u,J,g,Y,Q,e,r,N,w,k,z,T;return{ariaLabel:(q=F.ariaLabel)==null?void 0:q.call(F),className:(t=F.className)==null?void 0:t.call(F),ellipsisTruncate:(u=F.ellipsisTruncate)==null?void 0:u.call(F),isOverlay:(J=F.isOverlay)==null?void 0:J.call(F),linkInheritColor:(g=F.linkInheritColor)==null?void 0:g.call(F),noEndpoints:(Y=F.noEndpoints)==null?void 0:Y.call(F),noStyleRuns:(Q=F.noStyleRuns)==null?void 0:Q.call(F),noLinkColor:(e=F.noLinkColor)==null?void 0:e.call(F),
noPreWrap:(r=F.noPreWrap)==null?void 0:r.call(F),noWrap:(N=F.noWrap)==null?void 0:N.call(F),skipOnClick:(w=F.skipOnClick)==null?void 0:w.call(F),userInput:(k=F.userInput)==null?void 0:k.call(F),headerRuns:(z=F.headerRuns)==null?void 0:z.call(F),isHeadline:(T=F.isHeadline)==null?void 0:T.call(F)}}};
_.gLy=function(F){return F.value===""||F.value==="true"?!0:F.value==="false"?!1:isNaN(Number(F.value))?F.value:Number(F.value)};
Ym=function(F,q){F=new l5W(F,q);_.mH(F);throw F;};
Xpq=function(F,q,t){var u=iKW(F);F._numRenders=0;try{var J=_.ni3(function(){return _.Z(q,Object.assign({},t))})}catch(Y){var g=function(Q){Q.args||(Q.args=[]);
Q.args.push("Error in web component wrapper");Q.args.push(F.tagName.toLowerCase());return Q};
_.$e(Y instanceof Error?g(Y):new l5W("Wiz rendering error",F.tagName.toLowerCase()));throw Y;}finally{iKW(u)}return J};
_.ei=function(F,q,t){function u(N){var w={};N=_.X(N);for(var k=N.next();!k.done;k=N.next()){k=k.value;var z=void 0,T=void 0,P=void 0,v=_.Md((P=(T=(z=k).getAttribute)==null?void 0:T.call(z,"slot"))!=null?P:"children");if(z=w[v])z.push(k);else if(v in g||v==="children")w[v]=[k]}N=_.X(Object.keys(w));v=N.next();for(k={};!v.done;k={content$jscomp$57:void 0},v=N.next())v=v.value,v!=="children"&&(k.content$jscomp$57=w[v],w[v]=function(H){return function(){return H.content$jscomp$57}}(k));
return w}
t=t===void 0?{}:t;F.componentType!==_.Wj||Ym("Components must be marked reactive to be used from web component wrapper.",q);_.ZP.has(q)&&Ym("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",q);var J,g=(J=t.props)!=null?J:{};Rc.add(q);var Y=_.YRM();J=function(){var N=Y.apply(this,arguments)||this;N.rawProps={};N.queuingRender=!1;N.dispose=function(){};
N.isWebComponentWrapper=!0;N.isReparenting=!1;N.hasRendered=!1;return N};
_.M(J,Y);J.prototype.render=function(){this.hasRendered=!0;for(var N=_.X([].concat(_.mZ(this.attributes))),w=N.next();!w.done;w=N.next())w=w.value,w.name!=="slot"&&w.name!=="hidden"&&this.removeAttribute(w.name);N=Object.assign({},this.componentProps,this.slotProps);w=_.X(Xpq(this,F,N));N=w.next().value;w=w.next().value;!(N[0]instanceof Element)||N.length>1?Ym("Wrapped Wiz components must return a single root element.",q):(N=N[0].tagName.toLowerCase(),N!==q&&Ym("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(N+" !== '"+q),q),this.dispose=w)};
J.prototype.setUpProps=function(){for(var N=this.rawProps,w=this.attributes,k=_.X(Object.keys(g)),z=k.next();!z.done;z=k.next()){z=z.value;var T=void 0;((T=this)==null?0:T[z])&&this[z]!==pp$&&N[z]===void 0&&(N[z]=this[z],(T=Object.getOwnPropertyDescriptor(this.constructor.prototype,z))&&Object.defineProperty(this,z,T))}k=_.X(w);for(z=k.next();!z.done;z=k.next()){T=z.value;z=_.Md(T.name);var P=z==="class"&&!w.getNamedItem("class-name");if(z in g||P)T=_.gLy(T),z!=="class"||N.className?N[z]=T:N.className=
T}w={};for(var v in g)g[v]!==_.pp&&g[v]!==QWo&&(N[v]instanceof Function&&Ym("Function props must be configured as STATIC, not SIGNAL.",q),z=_.X(_.N3(N[v],void 0,"Ri8MSe")),k=z.next().value,z=z.next().value,w[v]=z,N[v]=k);N=_.X([N,w]);this.componentProps=N.next().value;this.setters=N.next().value;this.slotProps=u(this.childNodes)};
J.prototype.connectedCallback=function(){_.Qh===q&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in g&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
J.prototype.disconnectedCallback=function(){if(!this._isInert){var N;a:{if(_.eWM)for(N=this;N;){if(_.Zoq.has(N)){N=!0;break a}N=N.parentElement}N=!1}if(N)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){N=_.X([].concat(_.mZ(this.attributes)));for(var w=N.next();!w.done;w=N.next()){w=w.value;var k=void 0;w.name==="slot"||w.name==="hidden"&&((k=t.unsafeExternallySettableAttributes)==null?0:k.has("hidden"))||this.removeAttribute(w.name)}}this.innerText="";QHq(this)}}};
J.prototype._setPendingPropertyOrPath=function(){};
J.prototype.notifyPath=function(){};
_.JJ.Object.defineProperties(J.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var Q=_.X(Object.keys(g)),e=Q.next(),r={};!e.done;r={prop$jscomp$105:void 0},e=Q.next())r.prop$jscomp$105=e.value,e=void 0,((e=t.legacyPolymer)==null?0:e.forwardHostProps)&&YW_.has(r.prop$jscomp$105)||Object.defineProperty(J.prototype,r.prop$jscomp$105,{set:function(N){return function(w){var k=this;this._isInert||(this.setters?ov(function(){var z,T;return void((T=(z=k.setters)[N.prop$jscomp$105])==null?void 0:T.call(z,w))}):(this.rawProps[N.prop$jscomp$105]=w,this.queuingRender&&N.prop$jscomp$105===
"data"&&w!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(r),
get:RWf.has(r.prop$jscomp$105)?void 0:function(){return pp$}});
customElements.define(q,J)};
_.rLM=function(F,q){return(F=_.ZR(F,q))?_.mt(_.d$(F)):null};
_.RI=function(F){if(F=_.ZR(F,Number.MAX_VALUE,void 0,"width"))return _.d$(F)};
_.ZR=function(F,q,t,u){u=u===void 0?"width":u;if(!F||!F.length)return null;if(_.E("kevlar_tuner_should_always_use_device_pixel_ratio")){var J=window.devicePixelRatio;_.E("kevlar_tuner_should_clamp_device_pixel_ratio")?J=Math.min(J,_.YE("kevlar_tuner_clamp_device_pixel_ratio")):_.E("kevlar_tuner_should_use_thumbnail_factor")&&(J=_.YE("kevlar_tuner_thumbnail_factor"));NWq=J}else NWq||(NWq=window.devicePixelRatio);J=NWq;_.E("kevlar_tuner_should_always_use_device_pixel_ratio")?q*=J:J>1&&(q*=J);if(_.E("kevlar_tuner_min_thumbnail_quality"))return F[0].url||
null;J=F.length;if(_.E("kevlar_tuner_max_thumbnail_quality"))return F[J-1].url||null;if(t)for(var g=0;g<J;g++)if(F[g].url.indexOf(t)>=0)return F[g].url||null;for(t=0;t<J;t++)if(F[t][u]>=q)return F[t].url||null;for(q=J-1;q>0;q--)if(F[q][u])return F[q].url||null;return F[0].url||null};
kof=function(){rC.size?setTimeout(function(){No(wpv)},0):ioo=0};
wpv=function(){var F=(0,_.gB)(),q=null,t=!1;rC.forEach(function(J){J.loaded=!0;J.loadTime=F;J.pendingPaint=!1;var g=ELq.get(J);g&&g.resolve(F);q=J;t||!J.ftlEligible&&J.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(t=!0)});
var u;((u=q)==null?0:u.markDirty)&&q.markDirty();rC.clear();ioo=0;t&&zWv(F)};
oL_=function(F){rC.add(F);F.pendingPaint=!0;ioo||(ioo=_.wC(_.mI,kof))};
nLo=function(F){F.loaded=!1;F.loadTime=Infinity;var q=ELq.get(F);q&&(q.reject(Error("mh")),ELq.delete(F));F.pendingPaint&&(rC.delete(F),F.pendingPaint=!1)};
_.M73=function(F){var q=F.indexOf(":");return q===-1?{originalName:F}:{originalName:F.substring(0,q),datasyncId:F.substring(q+1)}};
_.Goo=function(){return _.p(function(F){if(TWP!==void 0)return F.return(TWP);TWP=new Promise(function(q){var t;return _.p(function(u){switch(u.nextAddress){case 1:return _.zg(u,2),u.yield(_.i_.open("test-only"),4);case 4:return u.yield(_.i_.delete("test-only"),5);case 5:_.LE(u,3);break;case 2:if(t=_.Gg(u),t instanceof Error&&t.name==="SecurityError")return q(!1),u.return();case 3:q("caches"in window),_.WA(u)}})});
return F.return(TWP)})};
Oo_=function(){return _.p(function(F){if(F.nextAddress==1)return F.yield(_.Goo(),2);if(!F.yieldResult)return F.return(void 0);Det||(Det=new WKM);return F.return(Det)})};
Py_=function(F){var q,t,u,J;return _.p(function(g){switch(g.nextAddress){case 1:return g.yield(Oo_(),2);case 2:q=g.yieldResult;if(!q)throw Error("oh");return g.yield(q.open("yt-player-local-img"),3);case 3:return t=g.yieldResult,g.yield(t.match(F),4);case 4:u=g.yieldResult;if(!u)throw Error("ph");return g.yield(u.blob(),5);case 5:return J=g.yieldResult,g.return(J)}})};
xef=function(F,q){for(var t in F)if(F.hasOwnProperty(t)&&q[t])return t;return null};
AL_=function(F){return"stamp"+F.replace("-","_")+"_"};
vL$=function(F){var q=F.match(/\[\[([\w\.]+)\]\]/);if(q&&q.length>1)return q[1];_.mH(Error("rh`"+F));return null};
I5P=function(F){return F===void 0?_.yG("REUSE_COMPONENTS",!1):F||!1};
$eW=function(F,q,t){t&&(q.is?(Ho$.has(q)&&(F=Ho$.get(q),t=F.listener,delete q[F.property],t.type==="element"&&q.removeEventListener(t.eventName,t.handler),Ho$.delete(q)),meW(q)):q.__proto__==HTMLElement.prototype&&(q=new _.D0("Rendererstamper removed a non custom element","Stamper: "+F+" element: "+(q&&q.nodeName)),_.bz(q)))};
boq=function(F,q,t,u){var J=q.node?q.node:q;_.ep(t).parentNode===J&&(q.removeChild(t),$eW(F,t,u));if(F=km.get(t))km.delete(t),_.mI.cancelJob(F);t.hidden=!1};
yLv=function(F,q,t,u){if(q&&q.children&&(t=q.children[t]))if(_.yG("DEFERRED_DETACH"))for(;t&&!km.has(t);){var J=F,g=q,Y=t,Q=u;Y.hidden=!0;J=_.W2(_.mI,boq.bind(null,J,g,Y,Q),0);km.set(Y,J);t=t.nextElementSibling}else for(;(Y=q.lastElementChild)&&(q.removeChild(Y),$eW(F,Y,u),Y!=t););};
_.Ec=function(){for(var F=_.US.apply(0,arguments),q=!0,t=_.X(F),u=t.next();!u.done;u=t.next())if(typeof u.value!=="string"){q=!1;break}return q?F.join(" ").trim()||void 0:function(){for(var J="",g=_.X(F),Y=g.next();!Y.done;Y=g.next())if(Y=Y.value,typeof Y==="function"&&(Y=Y()),Y)if(typeof Y==="string")J+=" "+Y;else for(var Q in Y)if(Y.hasOwnProperty(Q)){var e=Y[Q];typeof e==="function"&&(e=e());e&&(J+=" "+Q)}J=J.trim()||void 0;return _.Hj(J)}};
deu=function(F){var q;return(q=Cyy[F])!=null?q:"EVENT_SPAN_TYPE_UNKNOWN"};
V7$=function(F){var q=F.nodeName;if(F.id)return q+="#"+F.id;if(F.classList)for(var t=_.X(F.classList),u=t.next();!u.done;u=t.next())q+="."+u.value;F.parentElement&&(q=V7$(F.parentElement)+" > "+q);return q};
UeC=function(F){return function(q){var t=deu(q.type);return t==="EVENT_SPAN_TYPE_UNKNOWN"?F(q):aX_("event",{type:t,nodepath:q.target instanceof Element?V7$(q.target):void 0},function(){return F(q)})}};
_.zq=function(F){F&&Lyo("event")&&(F=UeC(F));return FT3(function(q){var t,u=(t=F)==null?void 0:t(q);return typeof u==="boolean"?u:!0})};
oI=function(F){return function(){return F()?F():void 0}};
BWC=function(F){var q=_.FG("animated-rolling-character"),t=NYP(),u=tV(F.character)||tV(F.previousCharacter);sDo(function(){if(F.marginMultiplier){var J;(J=t.value)==null||J.cancel();u?(J=F.previousCharacter?Number(F.previousCharacter)+10:F.rollUp?0:30,F.shouldAnimate||(J-=SR3(F,J))):(J=F.rollUp?0:2,F.shouldAnimate||(J-=F.rollUp?-1:1));q.value.style.marginTop="-"+J*F.marginMultiplier+"px";F.shouldAnimate?t.value=hWt(q.value,F,J,u):q.value.style.display=F.character?"":"none"}});
return _.Z("animated-rolling-character",{el:q,class:"animatedRollingCharacterHost"},zEt(u,function(){for(var J=[],g=1;g<30;g++)J.push(_.Z("div",null,g%10));return _.Z(_.ln,null,_.Z("div",null,"\u00a0"),J,_.Z("div",null,"\u00a0"))},function(){return KK3(F.character)}))};
KK3=function(F){return _.Z(_.ln,null,_.Z("div",null,"\u00a0"),_.Z(_.ln,null,zEt(!F||_.YP(F),function(){return _.Z("div",null,"\u00a0")},function(){return _.Z("div",null,F)})),_.Z("div",null,"\u00a0"))};
hWt=function(F,q,t,u){t=new Animation(new KeyframeEffect(F,[{transform:"translateY(0px)"},{transform:"translateY("+(u?SR3(q,t):q.rollUp?-1:1)*q.marginMultiplier+"px)"}],LKW),document.timeline);q.character?(F.style.display="",t.onfinish=null):t.onfinish=function(){F.style.display="none"};
t.play();return t};
SR3=function(F,q){var t=Number(F.character)+10;if(F.previousCharacter)if(F.character){var u=Number(F.character),J=Number(F.previousCharacter);F=F.rollUp?J<u?t:t+10:J<u?t-10:t}else F=F.rollUp?30:0;else F=F.character==="0"?t:F.rollUp?t-10:t+10;return q-F};
f5u=function(F){return function(q){var t={},u;for(u in q){var J=void 0,g=void 0;((J=void 0)==null?0:(g=J.callbacks)==null?0:g[u])||(t[u]=q[u])}return _.Z(oiu,null,function(){for(var Y in t)q[Y]=_.Hj(t[Y]);q.disableReactiveLogging=!0;return _.Z(F,Object.assign({},q))})}};
cLA=function(F,q,t,u,J,g,Y){t=new Animation(new KeyframeEffect(F,[{transform:"translateY(0px)"},{transform:"translateY("+(g?a5f(q,t,u,J):u?-1:1)*Y+"px)"}],jW$),document.timeline);q?(F.style.display="",t.onfinish=null):t.onfinish=function(){F.style.display="none"};
t.play();return t};
a5f=function(F,q,t,u){var J=Number(F)+10;q?F?(F=Number(F),q=Number(q),t=t?q<F?J:J+10:q<F?J-10:J):t=t?30:0:t=F==="0"?J:t?J-10:J+10;return u-t};
q3y=function(F){var q=NYP(),t=NYP();QD$(function(){q.value=F.numberText;t.value=F.numberValue},[F.numberText]);
var u=F.fontSizeMultiplier?F.heightPx*F.fontSizeMultiplier:F.heightPx,J=rVM(function(){if(F.numberText){var Y=F.numberText;var Q=F.forceRollUp||!t.value||!F.numberValue||t.value<F.numberValue;var e=!!F.shouldAnimate,r=q.value,N=[],w=0,k=0,z=(r?r.replace(/\D/g,"").length:0)-(Y?Y.replace(/\D/g,"").length:0);r=r?r.split(/(\d)/).filter(Boolean):[];for(Y=Y.split(/(\d)/).filter(Boolean);z<0;){var T=Y[k];N.push({character:T,rollUp:Q,marginMultiplier:u,shouldAnimate:e});k++;tV(T)&&z++}for(;w<z;)T=r[w],N.push({previousCharacter:T,
rollUp:Q,marginMultiplier:u,shouldAnimate:e}),w++,tV(T)||z++;for(;k<Y.length;)z=Y[k],T=r[w],tV(z)===tV(T)?(k++,w++):tV(z)?(w++,z=void 0):tV(T)&&(k++,T=void 0),N.push({character:z,previousCharacter:T,rollUp:Q,marginMultiplier:u,shouldAnimate:e});Q=N}else Q=[];return Q},[F.numberText]),g=F.numberText?["height: "+u+"px;",
"line-height: "+F.heightPx+"px;"].join(" "):"";return _.Z("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:g,dir:"ltr","aria-hidden":"true"},J.map(function(Y){return _.Z(FNu,Object.assign({},Y))}))};
tyP=function(F){return new KeyframeEffect(F,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
uUA=function(F){return new KeyframeEffect(F,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.np=function(F){var q=X0(function(t){t=t?rP(t[0]):void 0;return _.N3(F(t),void 0,"AwTxXe")},{isEqual:function(t,u){return rP(t[0])===rP(u[0])}});
return[function(){return q()[0]()},
function(t){return void q()[1](t)}]};
_.Mo=function(F){return function(){var q="",t;for(t in F){for(var u=F[t];typeof u==="function";)u=u();u!==void 0&&u!==null&&(q+="; "+t+": "+u)}return q.length>0?_.Hj(q.slice(2)):_.Hj()}};
Jmu=function(F){switch(F){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
Y3_=function(F,q,t,u,J,g,Y){var Q=skM(F),e=Q.disabled,r=Q.iconPosition,N=Q.style,w=Q.focused,k=function(){return!!P()&&r()==="icon-only"},z=function(){return!!P()&&r()==="icon-only-40"},T=function(){return!!P()&&r()==="icon-with-label"},P=function(){return!!q||!(u==null||!u())};
return{type:function(){return N()==="call-to-action-inverse"?"text":N()==="overlay-dark"&&F().type!=="filled"&&F().type!=="tonal"?"tonal":F().type},
shouldFocus:function(){return(w()||(g==null?void 0:g()))&&!e()},
hasIconLeading:function(){return!!P()&&r()==="leading"},
hasIconTrailing:function(){return!!P()&&r()==="trailing"},
hasIconLeadingTrailing:function(){return!!P()&&!!(t||J!=null&&J())&&r()==="leading-trailing"},
hasIconOnly:k,hasIconOnly40:z,hasIconWithLabel:T,iconButton:function(){return k()||z()||T()},
visiblyDisabled:function(){return(e()?"disabled":F().state)==="disabled"||e()},
overrideSmallSizeIcon:function(){return!F().ignoreIconSizeOverride&&gSM(F(),P())},
iconToRender:q?q:function(){return _.Z(_.Tq,{icon:u,size:function(){return l$W(F(),!0,F().ignoreIconSizeOverride)},
active:function(){return F().toggled},
iconFilter:function(){return X3$(F())},
animateIcon:Y})},
secondaryIconToRender:t?t:function(){return _.Z(_.Tq,{icon:J,size:function(){return l$W(F(),!0,F().ignoreIconSizeOverride)},
active:function(){return F().toggled},
iconFilter:function(){return X3$(F())}})}}};
skM=function(F){return{size:function(){return F().size},
style:function(){return F().style},
focused:function(){return F().focused},
disabled:function(){return F().disabled},
onTap:function(q){var t,u;return(u=(t=F()).onTap)==null?void 0:u.call(t,q)},
alignByText:function(){return F().alignByText},
aTagConfig:function(){return F().aTagConfig},
customColors:function(){return F().customColors},
segmentedPosition:function(){return F().segmentedPosition},
toggled:function(){return F().toggled},
toggleable:function(){return F().toggleable},
accessibilityLabel:function(){return F().accessibilityLabel},
onToggle:function(q){var t,u;return(u=(t=F()).onToggle)==null?void 0:u.call(t,q)},
iconPosition:function(){return F().iconPosition},
oneOffCustomTextWrap:function(){return F().oneOffCustomTextWrap},
disableTextEllipsis:function(){return F().disableTextEllipsis},
disableBackdropFilter:function(){return F().disableBackdropFilter},
tooltipText:function(){return F().tooltipText},
ariaHidden:function(){return F().ariaHidden},
tabIndex:function(){return F().tabIndex},
buttonText:function(){return F().buttonText},
formattedButtonText:function(){return F().formattedButtonText},
animatedTextProps:function(){return F().animatedTextProps}}};
gSM=function(F,q){q=(F.iconPosition==="icon-only"||F.iconPosition==="icon-only-40"||F.iconPosition==="icon-with-label")&&q;return!F.segmentedPosition&&q&&F.size==="S"};
l$W=function(F,q,t){switch(F.size){case "XS":return 16;case "S":return!t&&gSM(F,q)?24:16;default:return 24}};
p3o=function(F){switch(F){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
Qkt=function(F){switch(F){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
egv=function(F){switch(F){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
X3$=function(F){if(F.style==="overlay-dark"&&F.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
Gq=function(F){return F&&F.endsWith("px")?Number(F.slice(0,-2)):0};
rmo=function(F){var q=q===void 0?{}:q;F=_.X(_.np(F));var t=F.next().value;return[function(u){var J=_.zy(function(){var Q,e,r,N;return{text:(Q=t())!=null?Q:"",location:(e=q.location)!=null?e:"bottom",offset:(r=q.offset)!=null?r:16,delay:(N=q.delay)!=null?N:1}},void 0,"MgTrkc");
_.AO(function(){var Q=J();rP(function(){_.mI.addJob(function(){DR.notify(u,Q)},4)})},"WlsgZc");
var g=function(){Zaf(u,J())},Y=function(){RgW()};
u.addEventListener("mouseenter",g);u.addEventListener("focus",g);u.addEventListener("mouseleave",Y);u.addEventListener("blur",Y);u.addEventListener("tap",Y);_.vj(function(){u.removeEventListener("mouseenter",g);u.removeEventListener("mouseleave",Y);u.removeEventListener("focus",g);u.removeEventListener("blur",Y);u.removeEventListener("tap",Y);RgW()})},
F.next().value]};
w3A=function(F,q){if(!tO){var t;JgM(function(){return t=Eiy(F,q)});
return t}F.parent=Nno();return Eiy(F,q)};
Nno=function(){var F=_.JO(tO||void 0,wZ_);return _.TBu(F)?void 0:F};
WT=function(F,q){_.hv(F,Object.assign({},q,{forceClickLogging:!0}))};
k7f=function(F,q){var t=_.Sg(F==null?void 0:F.onTap),u={};t&&(u.getClickedVisualElement=function(){var J;return iaf(F,t,q==null?void 0:(J=q.value)==null?void 0:J.visualElement)});
u=_.K9({elementsCommand:F.onTap,forceNewState:!0,additionalCommandArgs:u});return B9(u)?u:void 0};
ESC=function(F,q,t,u){WT(F,Object.assign({},{form:{element:q,event:t}},u))};
zgP=function(F,q,t,u,J){var g=void 0;return function(Y){var Q=_.Sg(t?F==null?void 0:F.onDisabledTap:F==null?void 0:F.onTap);if(Q){var e;g=(e=g)!=null?e:q==null?void 0:q.value;if(Q)if(_.E("web_button_vm_click_client_ve_killswitch"))ESC(Q,g,Y);else{var r;e=iaf(F,Q,(r=g)==null?void 0:r.visualElement);if(J){ESC(Q,J,Y,{clickedVisualElement:e,form:{element:J}});return}ESC(Q,g,Y,{clickedVisualElement:e})}}u&&u(Y)}};
iaf=function(F,q,t){q=q==null?void 0:q.clickTrackingParams;var u,J;F=F==null?void 0:(u=F.loggingDirectives)==null?void 0:(J=u.clientVeSpec)==null?void 0:J.uiType;if(t&&F&&!q)return t};
oSq=function(F){switch(F){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
nSf=function(F){switch(F){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
Myu=function(F){switch(F){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
TnA=function(F){switch(F){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
G7W=function(F,q){return _.iC(F.entities,"engagementToolbarStateEntityPayload",q)};
WNW=function(F){(F=_.Av(F))&&_.D_M(F)};
_.D_M=function(F){var q=_.yb();q&&_.fJ(q,F)};
Oa3=function(F,q,t){_.ec(F,"yt-open-popup-action",[q,t||F])};
PDA=function(F,q){var t=_.H_(F,"endpoint"),u=_.H_(F,"action");return(t=u?u:t)&&q&&(t=q.navigationEndpointPopupMap[t])&&(F=_.S6(t,F),(t=_.H_(F,"renderer"))&&q.supportedPopups.hasOwnProperty(t))?{openPopupAction:{popupType:q.popupTypeMap[t],popup:F}}:null};
x__=function(F,q,t,u){if(u){var J;t=t==null?void 0:(J=t.data)==null?void 0:J.contents;(J=t instanceof Array&&t.length?t[0]:t)&&(t=_.H_(J,"renderer"))&&u.supportedPopups.hasOwnProperty(t)&&(q.stopPropagation(),Oa3(F,{openPopupAction:{popupType:u.popupTypeMap[t],popup:J}}))}};
I$M=function(F,q,t,u){u=u===void 0?!1:u;var J=Am3(q);if(J){J.href&&fG(J.href);var g=q.button;g=g!==void 0?g===0&&!Oc(q):!Oc(q);J.data&&g&&vS3(F,J,q,t,u)}};
vS3=function(F,q,t,u,J){J=J===void 0?!1:J;var g=_.YE("pbj_navigate_limit",-1)===0;Hau(q);_.sV().resolve(_.JU(hf));var Y=q.data;if(Object.keys(Y).length!==0)if(!_.E("unplugged_web_disable_actions_for_cec_endpoint")&&_.n(Y,_.wY))_.E("endpoint_behavior_command_executor_fix_killswitch")||(t.preventDefault(),t.stopPropagation()),_.rY(F,[Y],F);else if(u=PDA(Y,u))Y.loggingUrls&&Y.loggingUrls.forEach(function(e){e.baseUrl&&_.Kt(e.baseUrl)}),t.preventDefault(),t.stopPropagation(),Oa3(F,u,q);
else{var Q=m_o(0,q.data,t);if(F=q.getForm)F=F(),Q.tempData=Q.tempData||{},Q.tempData=Object.assign({},Q.tempData,F);F=_.tY(t);if(u=F.find(function(e){return!!e.visualElement}))Q.createScreenConfig=Q.createScreenConfig||{},Q.createScreenConfig.clickedVisualElement=u.visualElement;
if(!g)if(t.preventDefault(),t.stopPropagation(),_.n(Y,_.$_o)&&!J&&_.oc.instance)_.oc.instance.resolveCommand(Y,Q);else if(_.E("kevlar_command_handler_formatted_string")&&!J&&_.oc.instance&&ba$(Y))J=F.find(function(e){return!!e.is})||t.target,t={form:Object.assign({},Q,{event:t,
element:J,originatingNode:q})},_.oc.instance.resolveCommand(Y,t);else{Y=_.tY(t);t=[];for(J=0;J<Y.length;J++)(g=Y[J].is)&&t.push(g);mZt({parents:t.join(","),text:q.innerText},function(){_.Q0(q,"yt-navigate",Q)})}}};
ymA=function(F){if(F=Am3(F))Hau(F),ApC(F.href)};
Am3=function(F){F=_.tY(F);for(var q,t=0;t<F.length;t++)if(q=F[t],q.tagName==="A"&&q.classList.contains("yt-simple-endpoint")){if(!q.data)break;return q}return null};
Oc=function(F){return F.shiftKey||F.altKey||F.metaKey||F.ctrlKey};
CDf=function(F,q){var t={itct:q.clickTrackingParams};_.E("kevlar_client_side_screens")&&(!_.n(q,_.Px)||_.E("kevlar_exclude_endpoint_killswitch"))&&(t.endpoint=JSON.stringify(q));_.E("enable_unknown_lact_fix_on_html5")&&_.sV().resolve(_.JU(_.PT))&&(t.lact=_.X1());ONW(t);_.JV(F,t)};
Hau=function(F){F.href&&Object.keys(F.data).length!==0&&CDf(F.href,F.data)};
ba$=function(F){for(var q=_.X(d_o),t=q.next();!t.done;t=q.next())if(F[t.value])return!1;return!0};
_.VyW=function(F,q){return _.iC(F.entities,"markersEngagementPanelSyncEntity",q)};
U_u=function(F,q){return _.iC(F.entities,"fantasyWinProbabilityEntity",q)};
S3v=function(F,q){return _.iC(F.entities,"fantasyTeamEntity",q)};
hg$=function(F,q){return _.iC(F.entities,"fantasyPlayerEntity",q)};
KN3=function(F,q){return _.iC(F.entities,"booleanEntity",q)};
BnP=function(F,q){return _.iC(F.entities,"qrCodeEntity",q)};
LN_=function(F){return _.iC(F.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
f$f=function(){if(xm)return xm;if(window.lottie)return xm=Promise.resolve(window.lottie);var F=_.$w(_.bn("LOTTIE_URL"));return F?xm=new Promise(function(q,t){var u=document.createElement("script");u.addEventListener("load",function(){q(lottie)});
u.addEventListener("error",function(J){var g="Lottie library failed to load.";J?J.message&&(g+=" Original description: "+J.message,_.yw(J,g)):J=Error(g);_.bz(J);t(J)});
u.setAttribute("async","");_.uF(u,F);document.head.appendChild(u)}):Promise.reject(Error("sh"))};
a$A=function(){return xm?xm:f$f()};
jkq=function(F){if(F)switch(F){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.E("kevlar_use_wil_icons"))return F=(F=LN_(_.u1().getState()))&&F.animationLightUrl&&F.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:F.animationLightUrl,pathDarkTheme:F.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,F?F:AT.get("LIKE");break;case "LIKE_DELHI_PLAYER":return AT.get("LIKE_DELHI_PLAYER")}};
cmt=function(F){var q=jkq(F);if(q)return q;switch(F){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return AT.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return AT.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return AT.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return AT.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return AT.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return AT.get("NOTIFICATION_BELL")}};
FGu=function(F,q){if(!F.closest)return!1;q=!!jkq(q);return _.bn("ID_TOKEN")&&q?!!F.closest("segmented-like-dislike-button-view-model")||!!F.closest("yt-player-quick-action-buttons"):!1};
two=function(F,q){if(!F||qzq)q=!1;else{var t;if(!(t=FGu(F,q)))if(F.closest)if(t=!_.bn("ID_TOKEN"),F=F.closest("ytd-subscription-notification-toggle-button-renderer-next"),t||!F)t=!1;else{var u;t=((u=F.data)==null?void 0:u.targetId)==="notification-bell"&&q!=="EXPAND_MORE"}else t=!1;q=t}return q};
uTo=function(F){var q,t;return _.p(function(u){switch(u.nextAddress){case 1:return _.zg(u,2),u.yield(fetch(F),4);case 4:return q=u.yieldResult,u.yield(q.json(),5);case 5:return u.return(u.yieldResult);case 2:t=_.Gg(u),_.bz(t),_.WA(u)}})};
JSf=function(F,q){var t,u,J;return _.p(function(g){if(g.nextAddress==1)return(t=q?F.pathDarkTheme:F.path)?g.yield(Promise.all([uTo(t),f$f()]),2):g.return();u=g.yieldResult;J=u[0];vT.set(t,J);_.WA(g)})};
g0q=function(F,q,t,u){function J(Y,Q){if(q.value===Q&&F!=null&&F.value){for(;F.value.firstChild;)F.value.removeChild(F.value.firstChild);F.value.classList.add("ytSpecIconShapeHost");Y(F.value,u)}}
t=_.sTt(_.sV().resolve(_.zC),t);if(typeof t==="function")q.value=null,J(t,null);else{var g=new _.iz(t.then,t);q.value=g;g.then(function(Y){J(Y,g)})}};
XuC=function(F,q){var t=document.createElement("div"),u=_.xI(t,function(){return _.Z(_.R,{cond:F,then:function(J){return _.Z(lyP,{data:J,options:q})}})},"D");
return[t,u]};
_.II=function(F,q){if(q){var t={};YzA.forEach(function(u){u=puC(q,u,"--yt-lightsource-");Object.assign(t,u)});
QTq.forEach(function(u){u=puC(q,u,"--yt-basic-");Object.assign(t,u)});
_.ws(F,t)}};
puC=function(F,q,t){var u={};u[t+_.nB(q)]=F&&F[q]?_.KG(F[q]):"";return u};
_.mo=function(F,q,t){HT[F]||(HT[F]={});HT[F][q]=t};
_.$m=function(F){HT[F]||(HT[F]={});return HT[F]};
ejM=function(F){if(!F)return{};var q=F.foregroundTitleColor,t=F.backgroundColor;F=F.borderColor;var u="text";F?u="outline":t&&(u="filled");return{type:u,customColors:{color:q?_.KG(q):void 0,backgroundColor:t?_.KG(t):void 0,borderColor:F?_.KG(F):void 0}}};
wuu=function(F){var q=F.renderer;var t=F.element;var u=F.commandController;var J=F.onTapCallback;var g=F.skipCommandHandling;var Y=F.overrides;var Q=F.forceIcon;var e=F.forceModernIconButton;var r=F.forceDisabled;var N=F.isSubscribe===void 0?!1:F.isSubscribe;var w=F.isPressed===void 0?!1:F.isPressed;var k=F.useButtonSize===void 0?!1:F.useButtonSize;F=ZfM(q);N&&(F.style="mono",F.type="filled");Q=!q.icon||!Q&&q.text?q.icon?q.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:e?"icon-only":"icon-only-40";Q==="icon-only-40"&&(F.type="text");var z;e=Object;N=e.assign;k=RjW(q,k);w=!!q.isSelected||!_.E("web_propagate_is_pressed_killswitch")&&!!w;var T=q.isSelected!==void 0;r=r===void 0?q.isDisabled:r;var P=q.text?_.C9(q.text):void 0;var v,H,d,a=((v=q.accessibilityData)==null?void 0:(H=v.accessibilityData)==null?void 0:H.label)||((d=q.accessibility)==null?void 0:d.label);v=a?a:_.q1(q.text);t=rSq(q,t,u,J,g);u=NAP(q);u!=null&&u.length?(u=_.K9({innertubeCommand:UOo(u),
forceNewState:!0}),u=B9(u)?u:void 0):u=void 0;return N.call(e,{},F,k,{iconPosition:Q},Y,{focused:!1,toggled:w,toggleable:T,disabled:r,formattedButtonText:P,accessibilityLabel:v,onTap:t,aTagConfig:u},ejM((z=q.colorData)==null?void 0:z.basicColorPaletteData),{oneOffCustomTextWrap:q.oneOffCustomTextWrap})};
rSq=function(F,q,t,u,J){return function(g){var Y=NAP(F);u(Y,g);if(!J){Y=_.X(Y);for(var Q=Y.next();!Q.done;Q=Y.next())WT(Q.value,{form:{element:q,event:g},commandController:t})}}};
NAP=function(F){var q=[];F.command&&q.push(F.command);F.serviceEndpoint&&q.push(F.serviceEndpoint);F.navigationEndpoint&&q.push(F.navigationEndpoint);return q};
RjW=function(F,q){if(q)switch(F.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(F.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
ZfM=function(F){switch(F.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
if_=function(F,q){return typeof F!=="object"||F===null?!1:Object.keys(q).every(function(t){return t in F})};
kR$=function(F){return Object.fromEntries(Object.keys(F).map(function(q){return[q,q]}))};
E0q=function(F,q,t){return WEA(t,function(u,J){return function(g){var Y=_.US.apply(1,arguments);return if_(g,F)?J.apply(null,[g[q]].concat(_.mZ(Y))):J.apply(null,[g].concat(_.mZ(Y)))}})};
zjv=function(F){return function(q,t){return E0q(F,q,t)}};
_.b_=function(F){return F!=null&&F.watch?F.watch.isTheaterMode:!1};
_.yh=function(F){return F!=null&&F.watch?F.watch.isWatchFullscreen:!1};
_.Cp=function(F){F=_.o0o(F);return _.E("web_watch_enable_single_column_grid_view")?F:!1};
_.o0o=function(F){return F.watch.isWatchNarrowWidth};
_.n0u=function(F){return F.watch.openEngagementPanels};
_.dC=function(F){return _.zy(function(){E4t()();return n43(F)},{debugName:"d8B62c"},"wfRQAb")};
Vh=function(F,q){return _.iC(F.entities,"likeStatusEntity",q)};
Mwq=function(F,q){return _.iC(F.entities,"likeCountEntity",q)};
_.Uc=function(F,q){return _.iC(F.entities,"stringEntity",q)};
TAv=function(F,q){if(!F)return!1;var t,u=(t=_.n(F,_.ko))==null?void 0:t.signal;if(u&&q.signalEndpointMap)return!!q.signalEndpointMap[u];var J;if((t=(J=_.n(F,_.Si))==null?void 0:J.request)&&q.continuationEndpointMap)return!!q.continuationEndpointMap[t];for(var g in F)if(q.commandEndpointMap[g])return!0;return!1};
GR_=function(F,q){if(q.streamingEndpointMap)for(var t in F)if(q.streamingEndpointMap[t]&&(F=q.streamingEndpointMap[t]))return F()};
DlW=function(F,q){var t,u=(t=_.n(F,_.ko))==null?void 0:t.signal;if(u&&q.signalEndpointMap&&(t=q.signalEndpointMap[u]))return t();var J;if((t=(J=_.n(F,_.Si))==null?void 0:J.request)&&q.continuationEndpointMap&&(J=q.continuationEndpointMap[t]))return J();for(var g in F)if(q.commandEndpointMap[g]&&(F=q.commandEndpointMap[g]))return F()};
WGo=function(F){var q={"Content-Type":"application/json"};_.bn("EOM_VISITOR_DATA")?q["X-Goog-EOM-Visitor-Id"]=_.bn("EOM_VISITOR_DATA"):_.bn("VISITOR_DATA")&&(q["X-Goog-Visitor-Id"]=_.bn("VISITOR_DATA"));q["X-Youtube-Bootstrap-Logged-In"]=_.bn("LOGGED_IN",!1);_.bn("DEBUG_SETTINGS_METADATA")&&(q["X-Debug-Settings-Metadata"]=_.bn("DEBUG_SETTINGS_METADATA"));if(F!=="cors"){var t=_.bn("INNERTUBE_CONTEXT_CLIENT_NAME");t&&(q["X-Youtube-Client-Name"]=t);(t=_.bn("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(q["X-Youtube-Client-Version"]=
t);(t=_.bn("CHROME_CONNECTED_HEADER"))&&(q["X-Youtube-Chrome-Connected"]=t);(t=_.bn("DOMAIN_ADMIN_STATE"))&&(q["X-Youtube-Domain-Admin-State"]=t)}_.yG("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(F=_.bn("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(q["X-YouTube-Lava-Device-Context"]=F):F!=="cors"&&_.yG("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(F=_.bn("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(q["X-YouTube-Lava-Device-Context"]=F);return q};
Of3=function(F,q){q.watchNextResponse||q.reelItemWatchResponse?q.watchNextResponse?F.content=q.watchNextResponse:F.content=q.reelItemWatchResponse:q.playerResponse?F.player=q.playerResponse:q.reelWatchSequenceResponse&&(F.reelSequence=q.reelWatchSequenceResponse)};
_.hT=function(F){if(!F)return null;for(var q=[],t=0;t<F.textSegments.length;t++){var u=F.textSegments[t];u.text?q.push(u):u.emojiId&&q.push({emoji_id:u.emojiId})}return{text_segments:q}};
IyM=function(F,q,t,u,J,g,Y){g=g===void 0?[]:g;var Q=new _.Kp;Q.endpoint=t;if(!t)return _.$e(new _.D0("handle undefined endpoint",q.tagName)),Q;var e=h7P(t);e.length&&(_.rY(F,e,q,u),Q.actions=e);t.loggingUrls&&t.loggingUrls.forEach(function(N){N.baseUrl&&Bt(N.baseUrl,N.attributionSrcMode)});
e=!_.E("web_skip_impression_click_killswitch")&&u&&u.impression;if(t.clickTrackingParams&&!PUo(t)&&!xlo(q)&&!e&&(e=_.DP(),!_.BT(e,q))){var r=q.getScreenLayer&&q.getScreenLayer();r?e.clickCommand(t,null,r):e.clickCommand(t,null)}e=!1;for(r=0;r<g.length;r++)if((0,g[r])(q,t,u)){e=!0;break}!e&&ASu(t)&&(Q.ajaxPromise=v0v(F,q,t,u,J,Y));return Q};
xlo=function(F){var q;return(F=(q=F.data)==null?void 0:q.navigationEndpoint)&&!!F.clickTrackingParams};
PUo=function(F){var q=_.n(F,_.ko);if(q&&(q=q.signal)&&Hfu.indexOf(q)>=0)return!0;for(var t in F)if(mlA.indexOf(t)>=0)return!0;return!1};
ASu=function(F){var q;if(((q=_.n(F,_.ko))==null?void 0:q.signal)==="CLIENT_SIGNAL")return!1;for(var t in F)if($lC.indexOf(t)>=0)return!1;F=Object.keys(F);return F.length===1&&F[0]==="loggingUrls"?!1:!0};
hj3=function(F,q,t,u,J,g,Y){var Q=_.Lp.instance;if(Q&&_.fp(Q,u))var e=_.aI(Q,u,J).then(function(N){return(N==null?0:N.data)?N:{data:N}});
else e=F.requestDataForServiceEndpoint(u,J),_.n(u,bfu)||_.n(u,ySq)||_.n(u,_.CUP)||_.n(u,dly)||_.bz(new _.D0("No RequestBuilder for endpoint",u));var r=_.ji();r.promise.thenCatch(function(){var N=_.H_(u,"action")||_.H_(u,"command")||_.H_(u,"endpoint");N&&(N=u[N],N.hasOwnProperty("onFailureAction")?_.rY(q,[N.onFailureAction],t):N.hasOwnProperty("onFailureCommand")&&_.rY(q,N.onFailureCommand,t));e.cancel("Resolver promise rejected")});
e.then(function(N){if(N){var w=N.error;if(w){if(g&&g.onServerError)g.onServerError(u,N);r.reject(new _.D0("Response error",u,w))}else if(N=N.data)if(w=N.error){if(g&&g.onServerError)g.onServerError(u,N);r.reject(new _.D0("Returned error",u,w))}else{Vwo(q,t,N,u);Ul_(N);if(w=SOP(N))for(var k=_.X(w),z=k.next();!z.done;z=k.next()){z=z.value;var T=_.sV().resolve(_.JU(Szo))||cT;if(!_.Lp.instance||!T.some(function(v){return!!_.n(u,v)})||_.E("kevlar_response_processor_allowlist_killswitch")){var P=T=void 0;
((P=_.n((T=z)==null?void 0:T.commandMetadata,_.EH))==null?0:P.sendPost)?_.RD(q,[z]):_.rY(q,[z],t)}}(k=_.n(N==null?void 0:N.frameworkUpdates,Fp))&&Y&&Y(k);if(g&&g.onSuccess)g.onSuccess(u,N);r.resolve(new _.qZ(N,w))}}else r.reject(new _.D0("Invalid service endpoint provided",u))},function(N){r.reject(N)});
return r.promise};
Ul_=function(F){var q;(F=(q=_.n(F==null?void 0:F.onResponseReceivedCommand,_.KG3))==null?void 0:q.continuationItems)&&(F==null?void 0:F.length)===1&&_.n(F[0],BAW)&&_.y0("so_r",void 0,"search_overview_answer")};
v0v=function(F,q,t,u,J,g){var Y;return(Y=q.getNetworkManager&&q.getNetworkManager()?q.getNetworkManager():_.sV().resolve(_.JU(_.CG)))?hj3(Y,F,q,t,u,J,g):_.mW("No network manager.")};
Vwo=function(F,q,t,u){if(t=t.trackingParams||t.loggingDirectives&&t.loggingDirectives.trackingParams){var J;(_.n(u,LGv)||_.n(u,fyW)||_.n(u,ayy))&&u.clickTrackingParams?J=_.Av(u.clickTrackingParams):_.E("web_graft_to_parent_command")&&u.clickTrackingParams&&(J=_.Av(u.clickTrackingParams));var g;u=(g=q.getScreenLayer)==null?void 0:g.call(q);q=_.DP().graftServerVe(t,J,u);_.Zl(F,"yt-store-grafted-ve-action",[q])}};
_.jT$=function(F){var q=new Image;return new _.iz(function(t,u){q.addEventListener("load",function(){t()});
q.addEventListener("error",function(){u()});
q.src=F})};
cSP=function(F){return!!F};
FUC=function(F){return!!F};
qZ3=function(F,q,t){var u=F.rowIndex;u!==void 0&&_.Zl(F.hostElement,"yt-section-reactive-dismissal",[u,q,t])};
_.tC=function(F,q,t){F=_.X(F);for(var u=F.next();!u.done;u=F.next()){u=u.value;if(u===q)break;for(var J=_.X(t),g=J.next();!g.done;g=J.next())if(g=g.value,u.tagName===g||!_.E("web_event_button_role_check_killswitch")&&u.role==="button"&&g==="BUTTON")return!0}return!1};
_.u6=function(F,q,t){F=_.X(F);for(var u=F.next();!u.done;u=F.next()){u=u.value;if(u===q)break;for(var J=_.X(t),g=J.next();!g.done;g=J.next())if(u.id===g.value)return!0}return!1};
tI3=function(F){switch(F){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
uBo=function(F,q){if(!F&&!q)return"medium";F=Math.max(F||0,q||0);return F>=256?"large":F>=96?"medium":"small"};
J5t=function(F){switch(F){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.g0=function(){var F=_.sV().resolve(_.JU(_.JC));return F?(F=F.getCurrentPage())?_.sO(F):null:null};
_.l6=function(){var F=_.g0();if(!F){var q=_.sV().resolve(_.JU(_.JC)),t=q?typeof q:"no page manager";q=q?q.getCurrentPage():null;t=new _.D0("Player is missing when requested.",t,q?q.tagName:"no page");_.mH(t)}return F};
_.sO=function(F){return F&&F.getPlayer?F.getPlayer():null};
s7f=function(F,q){F={args:{raw_player_response:F}};q&&(F.args=Object.assign({},F.args,q));return F};
g3W=function(F){if(F.args){if(F.args.raw_player_response)return F.args.raw_player_response;if(F.args.player_response)return JSON.parse(F.args.player_response)}};
_.lKf=function(F,q){var t={url:"/watch?v="+F.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};F.playlistId&&(t.url+="&list="+F.playlistId);F.playerParams&&(t.url+="&pp="+F.playerParams);F={watchEndpoint:F,commandMetadata:{webCommandMetadata:t}};q&&(F.clickTrackingParams=q);return F};
YZv=function(){return XqP||!!_.S6("yt.player.Application")};
Q7P=function(){return pq3||!!document.querySelector("link#player-css")};
ZxC=function(){function F(){XqP=!0;e6A.resolve()}
var q,t;return _.p(function(u){e6A||(e6A=new _.i1,YZv()?F():(q=document.createElement("script"),q.addEventListener("load",F),t=_.AG(_.bn("PLAYER_JS_URL")),_.uF(q,t),document.head.appendChild(q)));return u.return(e6A.promise)})};
r5u=function(){function F(){pq3=!0;R6u.resolve()}
if(!R6u)if(R6u=new _.i1,Q7P())F();else{var q=document.createElement("link");q.id="player-css";q.addEventListener("load",F);var t=_.AG(_.bn("PLAYER_CSS_URL"));_.lF(q,t,"stylesheet");document.head.appendChild(q)}return R6u.promise};
Nk$=function(){return YZv()&&Q7P()?Promise.resolve([]):Promise.all([ZxC(),r5u()])};
wqu=function(F,q,t){var u={args:{}};F&&(u.args.raw_player_response=F);q&&(u.args.raw_watch_next_response=q);t&&(u.args=Object.assign({},u.args,t));return u};
z6M=function(F,q,t){var u=!1;u=u===void 0?!0:u;F=typeof F==="string"?_.Xp(document,F):F;var J=ixf+"_"+_.K3(F),g=kcq[J];if(g&&u)return E33(q,t)?g.api.loadVideoByPlayerVars(q.args||null):g.loadNewVideoConfig(q),g.api;g=new YC(F,J,q,t,void 0);kcq[J]=g;g.addOnDisposeCallback(function(){delete kcq[g.getId()]});
return g.api};
E33=function(F,q){return q&&q.serializedExperimentFlags?q.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):F&&F.args&&F.args.fflags?F.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
o3t=function(){var F=new _.i1;F.resolved=!1;var q=F.resolve;F.resolve=function(t){F.resolved=!0;q(t)};
return F};
MIu=function(F){var q={};n3P().install((q.document_disposed={callback:F},q))};
pH=function(F,q){if(!F&&Math.random()<=_.YE("kevlar_unified_player_logging_threshold")){F=Error("uh`"+(q?q:"Unspecified error"));if(_.E("kevlar_unified_player_throw_errors"))throw F;_.bz(F)}};
_.TkM=function(){var F=_.S6("ytDebugData.callbacks");F||(F={},_.uo("ytDebugData.callbacks",F));return F};
DWt=function(F,q){var t=_.TkM();if(_.E("web_dd_iu")||Gc_.includes(F))t[F]=q};
WUy=function(){return _.p(function(F){return F.return({isLeader:_.Z8v(_.u1().getState()),c:_.bn("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.bn("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Oxt=function(){var F;_.p(function(q){if(q.nextAddress==1)return DWt("APP_STATE",WUy),q.yield(_.sV().resolve(_.Qg),2);F=q.yieldResult;DWt("PI",function(){return _.p(function(t){return t.return(F.getVideoStats())})});
_.WA(q)})};
P$_=function(F){var q=_.uN(_.LB(_.uu.location.href));F=_.uN(_.LB(F));return _.E("kevlar_clear_non_displayable_url_params")?q==ea(F):ea(q)==ea(F)};
ea=function(F){var q=_.xWA(F);F=F.slice(0);var t=["frags"];_.E("kevlar_hide_pp_url_param")&&t.push("pp");_.E("kevlar_hide_time_continue_url_param")&&t.push("time_continue");t=_.X(t);for(var u=t.next();!u.done;u=t.next())u=u.value,F=_.sH(_.uN(F),u);return _.uN(F)+(q?"#"+q:"")};
Zz=function(F,q){q=Number(q)*1E3;var t=Math.round((0,_.gB)()),u=t.toString();F={innertubeResponse:F,serverDateTimestampMs:u,lastModifiedTimestampMs:u,expireTimestampMs:(t+q).toString()};if(q=_.bn("INNERTUBE_CONTEXT_CLIENT_NAME"))F.clientName=q;return F};
v3o=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++A5u};
_.IKP=function(){var F=_.b7(),q=_.yb();q&&F&&_.jc(q,[F],!0)};
mWC=function(F){return F&&Hxf.some(function(q){return F.includes(q)})};
VIC=function(F){var q=_.n(F,_.KM);if(!q)return!1;var t=q.url,u=q.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!t)return _.mH(Error("zh")),!1;if(q.target==="TARGET_NEW_WINDOW"){var J={};_.E("resolve_url_parent_tracking_params")&&(!_.FR(t)||qh(window.location.href,t))&&(J={endpoint:F,itct:F.clickTrackingParams});ONW(J);F=null;try{if(u)return F=_.$7A(t,"_blank",J,void 0,u),$Wv(_.sV().resolve(bx$),F,t),!0}catch(k){_.mH(k)}_.JV(t,J);q={target:"_blank",noopener:_.E("set_window_noopener_ks")&&
!q.allowOpener};F=window;u=HS(t)?t:_.d$(typeof t.href!="undefined"?t.href:String(t));J=self.crossOriginIsolated!==void 0;var g="strict-origin-when-cross-origin";window.Request&&(g=(new Request("/")).referrerPolicy);var Y=q.noreferrer;if(J&&Y&&g==="unsafe-url")throw Error("qe");g=Y&&!J;Y=q.target||t.target;var Q=[],e=[],r=!1;for(w in q){var N=q[w];switch(w){case "width":case "height":case "top":case "left":Q.push(w+"="+N);break;case "target":break;case "noopener":case "noreferrer":N?e.push(w):(r=!0,
e.push(w+"=false"));break;case "attributionsrc":Q.push(w+(N?"="+N:""));break;default:Q.push(w+"="+(N?1:0))}}var w=Y!==void 0&&!["_blank","_self","_top","_parent",""].includes(Y);w=Gt()&&w;y53&&J&&Q.length===0&&e.length>0&&!w&&!r?(e.length===2&&(e=["noreferrer"]),_.jO(F,u,Y,e[0]),F=C$M()):(w=Q.join(","),_.Py()&&F.navigator&&F.navigator.standalone&&Y&&Y!="_self"?(w=_.nr("A"),Kl(w,u),w.target=Y,g&&(w.rel="noreferrer"),((q=q.attributionsrc)||q==="")&&w.setAttribute("attributionsrc",q),q=document.createEvent("MouseEvent"),
q.initMouseEvent("click",!0,!0,F,1),w.dispatchEvent(q),F=C$M()):g?(F=_.jO(F,"",Y,w),q=_.mt(u),F&&(F.opener=null,q===""&&(q="javascript:''"),q='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Rs(q)+'">',q=Ll(q),(u=F.document)&&u.write&&(u.write(fl(q)),u.close()))):((F=_.jO(F,u,Y,w))&&q.noopener&&(F.opener=null),F&&q.noreferrer&&(F.opener=null)));$Wv(_.sV().resolve(bx$),F,t);return!0}q=_.wN(t);q=mWC(q)||t==="https://studio.youtube.com/";u=!(!_.FR(t)||qh(window.location.href,
t));w=t.indexOf("disable_polymer=1")>=0;if(u||w||q)fG(t),Ho(),_.ab(t,void 0,void 0,window.top,dWo);else return _.bz(new _.D0("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",F)),!1;return!0};
_.h6u=function(F,q){q=q===void 0?0:q;if(!(_.n(F,UWq)||_.n(F,SZM)||_.n(F,_.KM)&&_.n(F,_.KM).url))return!1;var t,u=(t=_.n(F,_.KM))==null?void 0:t.url;t=u?{externalLinkData:{url:u}}:null;return _.DP().clickCommand(F,t,q)};
KU_=function(F,q){return _.iC(F.entities,"subscriptionStateEntity",q)};
BkM=function(F,q){return _.iC(F.entities,"subscriptionNotificationStateEntity",q)};
LUf=function(F,q){return _.iC(F.entities,"upcomingEventReminderStateEntity",q)};
fKA=function(F,q){return _.iC(F.entities,"engagementToolbarSurfaceEntityPayload",q)};
aKW=function(F,q){return _.iC(F.entities,"triStateButtonStateEntityPayload",q)};
j7C=function(F,q){return _.iC(F.entities,"commerceCartCheckoutButtonEntity",q)};
_.c5y=function(F,q){return _.iC(F.entities,"playlistLoopStateEntity",q)};
Fzf=function(F,q){return _.iC(F.entities,"commandEntity",q)};
tFu=function(F,q,t,u,J){J=J===void 0?{}:J;return function(g){var Y,Q;var e=((Y=F.loggingDirectives)==null?0:(Q=Y.clientVeSpec)==null?0:Q.uiType)?_.r0(F.loggingDirectives.clientVeSpec.uiType):void 0;J.clickedVisualElement||(J.clickedVisualElement=e);e=qp_(F,q);t(e,g);e=_.X(e);for(Y=e.next();!Y.done;Y=e.next()){Y=Y.value;Q=u;var r=g,N=J;N.form?N.form.event=r:N.form={element:Q,event:r};WT(Y,N)}}};
qp_=function(F,q){var t=[];q?(F.toggledCommand&&t.push(F.toggledCommand),F.toggledServiceEndpoint&&t.push(F.toggledServiceEndpoint)):(F.defaultCommand&&t.push(F.defaultCommand),F.defaultServiceEndpoint&&t.push(F.defaultServiceEndpoint),F.defaultNavigationEndpoint&&t.push(F.defaultNavigationEndpoint));return t};
u2y=function(F,q){var t=F.toggledStyle||F.style,u;switch((u=q?t:F.style)==null?void 0:u.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"}}};
_.NZ=function(){return _.p(function(F){return F.nextAddress==1?F.yield(_.sV().resolve(_.Qg),2):F.return(_.sV().resolve(JRv)())})};
_.w0=function(){return _.sV().resolve(JRv)()};
_.i6=function(){return I5(function(){return{lottieEl:void 0}})};
s6P=function(F,q){return F.startsWith(q.uniqueId)};
gK3=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return u.yield(_.NZ(),2);q=u.yieldResult;if((t=q)==null||!t.addEventListener)return kC(),u.return();q.addEventListener("onCueRangeEnter",F);_.WA(u)})};
l3P=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return u.yield(_.NZ(),2);q=u.yieldResult;if((t=q)==null||!t.removeEventListener)return kC(),u.return();q.removeEventListener("onCueRangeEnter",F);_.WA(u)})};
XlM=function(F){var q,t,u,J,g;_.p(function(Y){if(Y.nextAddress==1)return Y.yield(_.NZ(),2);q=Y.yieldResult;if((t=q)==null||!t.addCueRange)return kC(),Y.return();u=_.X(F.timings);for(J=u.next();!J.done;J=u.next())g=J.value,q.addCueRange(F.uniqueId+"-"+g,g/1E3,(g+100)/1E3);_.WA(Y)})};
YpM=function(F){var q,t,u,J,g;_.p(function(Y){if(Y.nextAddress==1)return Y.yield(_.NZ(),2);q=Y.yieldResult;if((t=q)==null||!t.removeCueRange)return kC(),Y.return();u=_.X(F.timings);for(J=u.next();!J.done;J=u.next())g=J.value,q.removeCueRange(F.uniqueId+"-"+g);_.WA(Y)})};
plA=function(){var F,q,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(_.NZ(),2);F=u.yieldResult;if((q=F)==null||!q.getPlayerState)return kC(),u.return();t=F.getPlayerState();return u.return(t===2)})};
kC=function(){_.bz(new _.D0("Smartimation player does not exist or is corrupted"))};
Q6$=function(){try{var F;return(F=window.CSS)!=null&&F.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(q){return _.bz(new _.D0("Smartimation CSS.supports threw an error")),!1}};
iLu=function(F,q,t,u,J){var g=F.playlistId?eJq:ZLf;q=q();t=t();J=!!F.videoId&&J()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Dx(q))return RJ_({data:F,actionType:g,disabled:J},t);if(F.videoId&&u())return rRo({data:F,actionType:g,disabled:J});switch(q){case "TRANSFER_STATE_UNKNOWN":return rRo({data:F,actionType:g,disabled:J});case "TRANSFER_STATE_FAILED":return F.videoId?NEf({data:F,actionType:g,disabled:J}):wlo({data:F,actionType:g,disabled:J});case "TRANSFER_STATE_COMPLETE":return wlo({data:F,
actionType:g,disabled:J});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return RJ_({data:F,actionType:g,disabled:J},t);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return F.videoId?NEf({data:F,actionType:g,disabled:J}):rRo({data:F,actionType:g,disabled:J});default:return rRo({data:F,actionType:g,disabled:J})}};
kHf=function(F,q){var t=F.onTapCommand,u=_.Sg(t);if(F.videoId&&_.n(u,_.EO))return _.n(u,_.EO).action=q,t;F.playlistId&&_.n(u,_.zl)&&(_.n(u,_.zl).action=q);return t};
rRo=function(F){var q=F.data;var t=F.actionType;F=F.disabled;return{text:EK_,iconType:"OFFLINE_DOWNLOAD",onTap:kHf(q,t.ACTION_ADD),disabled:F}};
RJ_=function(F,q){var t=F.data;var u=F.actionType;F=F.disabled;var J="OFFLINE_DOWNLOAD";q>=0&&q<=.1?J="OFFLINE_DOWNLOADING_ZERO":q>.1&&q<=.3?J="OFFLINE_DOWNLOADING_TWENTY":q>.3&&q<=.5?J="OFFLINE_DOWNLOADING_FORTY":q>.5&&q<=.7?J="OFFLINE_DOWNLOADING_SIXTY":q>.7&&q<1?J="OFFLINE_DOWNLOADING_EIGHTY":q===1&&(J="OFFLINE_PIN");return{text:zJt,iconType:J,onTap:kHf(t,u.ACTION_REMOVE_WITH_PROMPT),disabled:F}};
wlo=function(F){var q=F.data;var t=F.actionType;F=F.disabled;return{text:oKA,iconType:"OFFLINE_PIN",onTap:kHf(q,t.ACTION_REMOVE_WITH_PROMPT),disabled:F}};
NEf=function(F){var q=F.data;var t=F.actionType;F=F.disabled;return{text:nKA,iconType:"OFFLINE_DOWNLOAD",onTap:kHf(q,t.ACTION_RETRY),disabled:F}};
_.nH=function(F,q){var t=E4t();return _.zy(function(){t();return n43(F,[_.Hj(q)||""])},{debugName:"LUZslf"},"qYSKAc")};
MFu=function(F){var q=_.nH(_.VX,function(){return F().videoId}),t=_.nH(_.Uf,function(){return F().playlistId});
return function(){return F().videoId?q:F().playlistId?t:_.X(_.N3("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
TEP=function(F){var q=_.nH(Sz,function(){return F().videoId}),t=_.nH(_.ezM,function(){return F().playlistId});
return function(){return F().videoId?q:F().playlistId?t:_.X(_.N3(0,void 0,"K4tgOc")).next().value}};
GH3=function(F){var q=_.nH(_.zzo,function(){return F().videoId});
return function(){return F().videoId?q:_.X(_.N3(!1,void 0,"Oaxwcf")).next().value}};
D6u=function(F){var q=_.nH(r83,function(){return F().videoId});
return function(){return F().videoId?q:_.X(_.N3("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
Wzt=function(){return{}};
_.vKt=function(F,q,t){return{submitForm:function(){var u;return _.p(function(J){if(J.nextAddress==1){u=OL3(F());if(!u)return J.return();if(u.onSubmit)return u.onSubmit(),J.return();if(!u.submitConfig||!u.formData)return J.jumpTo(0);u.disableDuringSubmission&&PHC(F(),!0);x6M(q);return J.yield(ARo(u.submitConfig,u.formData()),3)}x6M(t);u.disableDuringSubmission&&PHC(F(),!1);return J.return()})},
isValid:function(){var u=OL3(F());if(u){var J;return!((J=u.isValid)==null||!J.call(u))}return!0},
isSubmitting:function(){var u,J;return!!((u=OL3(F()))==null?0:(J=u.isSubmitting)==null?0:J.call(u))}}};
_.m6M=function(){if(!I3f){var F=_.X(_.N3(new Map,void 0,"yE61ae"));I3f=F.next().value;HLM=F.next().value}return I3f};
_.$6q=function(F){HLM(new Map(F))};
OL3=function(F){if(F)return _.m6M()().get(F)};
ARo=function(F,q){var t;return _.p(function(u){return q?(t=_.sV().resolve(_.JU(bL$)))&&F.submitId?u.yield(t.submitForm(F.submitId,q,yRv,F.params,F.clickTrackingParams),0):u.return():u.return()})};
PHC=function(F,q){if(F){var t=_.m6M();t().set(F,Object.assign({},t().get(F),{isSubmitting:function(){return q}}));
_.$6q(t())}};
x6M=function(F){if(F){var q=_.sV().resolve(_.gN);q&&(F=_.Sg(F()))&&q.resolveCommand(F)}};
d6f=function(F,q){q=q===void 0?{shouldPersist:!0}:q;return{useUpdatableData:function(t,u){var J=[],g=_.X(_.np(function(){var r=t();if(u!=null&&u.length&&J){var N=J.length>0;for(var w=!1,k=0;k<u.length;k++){var z=u[k]();N&&z!==J[k]&&(w=!0);J[k]=z}N=w}else N=!1;if(N)_.MZ.remove(e());else if(N=_.MZ.get(e()))return N;return r})),Y=g.next().value,Q=g.next().value,e=_.zy(function(){return F(t())},void 0,"mX326");
_.AO(function(){if(e()!=null){CHq.set(e(),[Y,Q]);var r=e();_.vj(function(){CHq.delete(r)})}},"MgKPjb");
return[Y,function(r){Q(r);q.shouldPersist&&_.MZ.set(e(),r)}]},
getData:function(t){var u;return(u=CHq.get(F(t)))==null?void 0:u[0]()},
updateData:function(t,u){t=F(t);var J=CHq.get(t);if(!J)return!1;var g=_.X(J);J=g.next().value;g=g.next().value;u=u(J());g(u);q.shouldPersist&&_.MZ.set(t,u);return!0}}};
VF$=function(F){var q=_.X(_.N3(!0,void 0,"bKtO6d")),t=q.next().value;q.next();return function(){var u=zn(F.children());return _.Z(_.R,{cond:t,then:function(){return u},
else:F.fallback})}()};
_.Tl=function(F){var q=U6_(F),t=q.data,u=q.mapping,J=q.wrapper;q=q.pendingFallback;var g=function(){return SpC(_.Hj(t))},Y=function(){var Q=g(),e=[];
Q=_.X(Q);for(var r=Q.next();!r.done;r=Q.next()){var N=void 0;r=r.value;var w=void 0;for(N in r)if(!(!r).hasOwnProperty(N)){w=N;break}(N=w)&&e.push(N)}return e};
return F.data?_.Z(VF$,{fallback:q},function(){return _.Z(_.Gn,{each:Y},function(Q,e){var r=J?function(w){return J(function(){return u[Q](w,e)},N,e)}:function(w){return u[Q](w,e)};
r.debugName||(r.debugName=String(Q));if(!u[String(Q)])return document.createComment("");r.componentType!==_.Wj&&hJ3(String(Q));var N=Kz_(g,Q,e);return _.Z(r,{data:N})})}):_.Z(_.ln,null)};
U6_=function(F){var q=F.targetId||BEt(F.children);if(!F.data||!q||_.E("mweb_new_replaceables_killswitch"))return Object.assign({},F,{mapping:F.children,wrapper:void 0});var t="stamper-"+LzA++,u=function(){var Q;return(Q=typeof F.targetId==="function"?F.targetId(t):F.targetId)!=null?Q:t};
q=_.X(f3M(function(){var Q=SpC(F.data());Q.targetId=u;return Q})).next().value;
var J=Object.assign({},(_.sV().resolve(_.JU(a3M))||{}).replaceableMapping,F.children);if(F.replacementWrapper){var g=J.notificationTextRenderer,Y=J.notificationMultiActionRenderer;g&&(J.notificationTextRenderer=function(Q,e){return F.replacementWrapper(g({data:Q.data},e))});
Y&&(J.notificationMultiActionRenderer=function(Q,e){return F.replacementWrapper(Y({data:Q.data},e))})}return Object.assign({},F,{data:q,
mapping:J,wrapper:function(Q,e,r){return w3A({targetId:u,stamperIndex:r},Q)}})};
Kz_=function(F,q,t){var u;return _.zy(function(){var J=F()[t()];if(J)u=J[q];else return _.bz(new _.D0("Stamper failed to find "+String(q)+" at index "+t()+" of data array of length "+(F().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),u;return J[q]},void 0,"wgRPHd")};
BEt=function(F){F=_.X(Object.keys(F));for(var q=F.next();!q.done;q=F.next())if(q=q.value,j6u.includes(q)||cRt.includes(q)||Fxv.includes(q))return!0;return!1};
SpC=function(F){return F?Array.isArray(F)?F:[F]:[]};
hJ3=function(F){if(_.E("web_enable_renderer_logger")){var q;(q=_.sV().resolve(_.JU(q1W)))!=null&&q.loggingEnabled&&!q.ids.has(F)&&q.ids.add(F)}};
tYo=function(){var F,q;return(q=(F=_.sV().resolve(_.JU(_.qo)))==null?void 0:F())!=null?q:!1};
JIt=function(F,q){F=F===void 0?uMy:F;switch(q.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},F,{isOpen:q.payload});default:return F}};
gyv=function(F,q){F=F===void 0?sGo:F;switch(q.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},F,{isAllowed:q.payload});default:return F}};
Xvo=function(F,q){F=F===void 0?lcf:F;switch(q.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},F,{errorMessage:q.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},F,{title:q.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},F,{privacy:q.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},F,{isDisabled:q.payload});default:return F}};
pvA=function(F,q){F=F===void 0?Y1W:F;switch(q.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},F,{isOpen:q.payload});default:return F}};
eyC=function(F,q){F=F===void 0?QGy:F;switch(q.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},F,{isFullscreen:q.payload});case "SET_NAVIGATION_BUTTON":var t=q.payload.targetId,u=Object.assign({},F.navigationButtons);u[t]=q.payload.button;return Object.assign({},F,{navigationButtons:u});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},F,{topPanelId:q.payload});case "SET_SECONDARY_HEADER":return t=q.payload.panelId,u=Object.assign({},F.secondaryHeader),u[t]=q.payload.secondaryHeader,
Object.assign({},F,{secondaryHeader:u});default:return F}};
NGM=function(){return zW(Object.assign({},{voiceSearch:yBC,engagementPanel:eyC,bottomSheet:JIt,cinematicSetting:gyv,shorts:Bv3,drawerLayout:pvA,createPlaylist:Xvo,locationCollection:Z5_,reportChannel:Ryo,reportForm:rIv},Luv))};
wvq=function(F,q){_.mI.addLowPriorityJob(function(){var t,u,J;return _.p(function(g){switch(g.nextAddress){case 1:return _.zg(g,2),g.yield(f$f(),4);case 4:return g.yield(fetch(F),5);case 5:return t=g.yieldResult,g.yield(t.json(),6);case 6:u=g.yieldResult;vT.set(F,u);requestAnimationFrame(function(){q(u)});
_.LE(g,0);break;case 2:J=_.Gg(g),_.bz(J),_.WA(g)}})})};
i5q=function(F){var q={animationConfig:{},listeners:{}},t=function(){F(!0)};
q.listeners.data_failed=t;q.listeners.error=t;q.listeners.data_ready=function(){F(!1)};
return q};
zyv=function(F){var q=F.model;var t=F.subscribed;var u=F.isOverlay;var J=F.element;var g=F.commandController;var Y=F.notificationState;if(t){var Q,e;var r=(q==null?void 0:(Q=q.buttonStyle)==null?void 0:Q.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:q==null?void 0:(e=q.unsubscribeButtonContent)==null?void 0:e.buttonText}else{var N;r=q==null?void 0:(N=q.subscribeButtonContent)==null?void 0:N.buttonText}a:{var w;switch(q==null?void 0:(w=q.buttonStyle)==
null?void 0:w.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":Q="S";break a;default:Q="M"}}a:if(u)u="overlay";else switch(q.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":u="overlay";break a;default:u="mono"}a:if(t)var k="tonal";else switch((k=q.buttonStyle)==
null?void 0:k.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":k="tonal";break a;default:k="filled"}return{style:u,type:k,state:q.disableSubscribeButton?"disabled":"active",size:Q,focused:F.focused,toggled:t,accessibilityLabel:kZC(q,t,Y),buttonText:r,iconPosition:q.disableNotificationBell?"none":"leading-trailing",onTap:EyP(q,t,J,g),disableTextEllipsis:!!F.disableTextEllipsis}};
EyP=function(F,q,t,u){return function(J){if(q){var g;var Y=F.disableNotificationBell?_.Sg(F==null?void 0:(g=F.unsubscribeButtonContent)==null?void 0:g.onTapCommand):_.Sg(F==null?void 0:F.onShowSubscriptionOptions)}else{var Q;Y=_.Sg(F==null?void 0:(Q=F.subscribeButtonContent)==null?void 0:Q.onTapCommand)}Y&&WT(Y,{form:{element:t==null?void 0:t.value},commandController:u});J.stopPropagation()}};
kZC=function(F,q,t){if(q){if(F==null?0:F.disableNotificationBell){var u;return F==null?void 0:(u=F.unsubscribeButtonContent)==null?void 0:u.accessibilityText}switch(t){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var J;return F==null?void 0:(J=F.bellAccessibilityData)==null?void 0:J.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var g;return F==null?void 0:(g=F.bellAccessibilityData)==null?void 0:g.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var Y;return F==null?void 0:(Y=
F.bellAccessibilityData)==null?void 0:Y.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var Q;return F==null?void 0:(Q=F.bellAccessibilityData)==null?void 0:Q.disabledLabel;default:var e;return F==null?void 0:(e=F.unsubscribeButtonContent)==null?void 0:e.accessibilityText}}else{var r;return F==null?void 0:(r=F.subscribeButtonContent)==null?void 0:r.accessibilityText}};
oyq=function(F){if(F){switch(F){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":F="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":F="NOTIFICATIONS_OFF";break;default:F="NOTIFICATIONS_NONE"}return F}};
nyM=function(F,q,t){t.subscribed!==q&&((t=t.key)&&_.ud(_.Gl("subscriptionStateEntity",t,{key:t,subscribed:q})),F.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:q})),q||_.ec(F,"yt-unsubscribe-action"))};
TGq=function(F){F=_.n(_.Sg(F),_.Dz);var q,t,u,J;return(J=_.n(F==null?void 0:(q=F.panelLoadingStrategy)==null?void 0:(t=q.inlineContent)==null?void 0:(u=t.sheetViewModel)==null?void 0:u.content,MYo))==null?void 0:J.listItems};
GZu=function(F,q){if(F.onShowSubscriptionOptions&&q&&(F=TGq(F.onShowSubscriptionOptions),F!=null&&F.length)){var t=oyq(q);F.forEach(function(u){u=_.n(u,_.xC);var J,g,Y,Q,e=u==null?void 0:(J=u.leadingImage)==null?void 0:(g=J.sources)==null?void 0:(Y=g[0])==null?void 0:(Q=Y.clientResource)==null?void 0:Q.imageName;u&&e&&(u.isSelected=e===t)})}};
DNv=function(F,q,t,u){q&&t?F.style.width=t+"px":!q&&u&&(F.style.width=u+"px")};
Wxq=function(F,q,t){var u;(u=F.lottieEl)==null||u.goToAndPlay(0);var J;(J=q.lottieEl)==null||J.goToAndPlay(0);_.AC(_.mI,function(){var g;(g=t.lottieEl)==null||g.goToAndPlay(0)},300)};
O53=function(F){return!(F==null||!F.iconName||(F==null?0:F.title))};
PVM=function(F,q,t,u){t&&_.mI.cancelJob(t);t=_.mI.addLowPriorityJob(function(){u(void 0)},5E3);
u(t);q&&F!==(q.likeStatus==="LIKE")&&q.key&&_.ud(_.Gl("likeStatusEntity",q.key,{key:q.key,likeStatus:F?"LIKE":"INDIFFERENT",hadUserInteraction:F}))};
_.xN3=function(F,q){return _.iC(F.entities,"accountLinkStatusEntity",q)};
AIo=function(F,q){return _.iC(F.entities,"hatsSurveyEntity",q)};
vyo=function(F,q){return _.iC(F.entities,"hatsSurveyStateEntity",q)};
Ico=function(F,q){return _.iC(F.entities,"quantityIncrementerEntity",q)};
H5u=function(F){switch(F){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
mNf=function(F){switch(F){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
$NC=function(F){switch(F){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--promoted-inverted";case 5:return"badge-shape-wiz--timely";case 6:return"badge-shape-wiz--premium";case 7:return"badge-shape-wiz--sale";case 8:return"badge-shape-wiz--membership";case 9:return"badge-shape-wiz--commerce";case 11:return"badge-shape-wiz--live";case 12:return"badge-shape-wiz--status-new";case 13:return"badge-shape-wiz--status-complete";
case 14:return"badge-shape-wiz--status-warning";case 15:return"badge-shape-wiz--status-error";case 16:return"badge-shape-wiz--status-default";case 17:return"badge-shape-wiz--thumbnail-default";case 18:return"badge-shape-wiz--thumbnail-live";case 19:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.yIf=function(F){var q=_.YE("web_generic_client_event_wait_period ",0);q||(q=3E5);var t=b53.get(F);!_.E("enable_web_client_experiment_event_timeout_killswitch")&&t&&(0,_.gB)()-t<q||(b53.set(F,(0,_.gB)()),_.IJ("genericClientExperimentEvent",{eventType:F}))};
CVy=function(F){switch(F){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
dNq=function(F){if(!F)return"";var q,t=(q=_.sV().resolve(_.JU(_.qo)))==null?void 0:q(),u;if(!t&&((u=F.vibrantColorPalette)==null?0:u.iconInactiveColor))return Bx(F.vibrantColorPalette.iconInactiveColor,"1");var J;return t&&((J=F.darkColorPalette)==null?0:J.iconInactiveColor)?Bx(F.darkColorPalette.iconInactiveColor,"1"):F.color?Bx(F.color,"1"):F.sampledThumbnailColor?(F=F.sampledThumbnailColor,"rgba("+F.red+","+F.green+","+F.blue+");"):""};
_.vD=function(F,q){if(!F.includes("DATE_PLACEHOLDER"))return F;var t=new Date(0);t.setUTCSeconds(q);return F.replace("DATE_PLACEHOLDER",VYu(t))};
UNq=function(F,q,t){return function(u){var J=F.command;J&&(WT(J,{form:{element:t}}),q([J],u))}};
hyo=function(F,q,t,u,J){return function(g){var Y=S1o(F,q);Y&&WT(Y,{form:{element:t},commandController:u});J&&g.stopPropagation()}};
S1o=function(F,q){if(F.signInEndpoint&&!_.E("web_subscribe_sign_in_endpoint_killswitch"))return F.signInEndpoint;if(q){if(F.serviceEndpoints)return F.serviceEndpoints[1];if(F.onUnsubscribeEndpoints)return F.onUnsubscribeEndpoints[0]}else{if(F.serviceEndpoints)return F.serviceEndpoints[0];if(F.onSubscribeEndpoints)return F.onSubscribeEndpoints[0]}};
KxW=function(F,q){var t,u,J,g;q=q&&((t=F.unsubscribeAccessibility)==null?void 0:(u=t.accessibilityData)==null?void 0:u.label)||((J=F.subscribeAccessibility)==null?void 0:(g=J.accessibilityData)==null?void 0:g.label);return F.longSubscriberCountText?[q,_.q1(F.longSubscriberCountText)].filter(function(Y){return Y}).join(" "):q};
Is=function(F,q){return q||(F==null?0:F.isChannelDelegate)?"disabled":"active"};
BGo=function(F,q){var t;switch((t=F.style)==null?void 0:t.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Is(F)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Is(F)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Is(F,!0)};case "OVERLAY":return q?{style:"overlay",type:"tonal",state:Is(F)}:{style:"overlay",type:"filled",state:Is(F)};default:return q?{style:"mono",type:"tonal",state:Is(F)}:{style:"mono",type:"filled",state:Is(F)}}};
_.HD=function(){for(var F=[],q=_.X(_.US.apply(0,arguments)),t=q.next();!t.done;t=q.next())if(t=t.value)if(typeof t==="string")F.push(t);else{t=_.X(Object.entries(t));for(var u=t.next();!u.done;u=t.next()){var J=_.X(u.value);u=J.next().value;(J=J.next().value)&&F.push(u)}}return F.join(" ")};
LxA=function(F){switch(F){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
fc3=function(F){switch(F){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
ac_=function(F,q){var t=F.map(function(u){return u.toString()});
return _.zq(function(u){if(t.includes(u.key)){q&&u.preventDefault();var J;(J=u.currentTarget)==null||J.click()}})};
_.jGy=function(){return ac_(["Enter"])};
_.cIC=function(){return ac_(["Enter"," "],!0)};
_.mp=function(F){if(F.composedPath)return F.composedPath();if(!F.__composedPath){for(var q=[],t=F.target;t;)q.push(t),t=t.parentNode;q.push(window);F.__composedPath=q}return F.__composedPath};
_.$C=function(F,q,t){F=_.X(F);for(var u=F.next();!u.done;u=F.next()){u=u.value;if(u===q)break;for(var J=_.X(t),g=J.next();!g.done;g=J.next())if(g=g.value,u.tagName===g||u.role==="button"&&g==="BUTTON")return!0}return!1};
q7t=function(F,q){var t,u=(t=q.observer)!=null?t:_.sV().resolve(gZ);if(F){t=F9W(F);var J=[];q.showOption&&J.push(u.observe(F,function(){q.visibilityCallback(!0,F)},q.showOption));
q.hideOption&&J.push(u.observe(F,function(){q.visibilityCallback(!1,F)},q.hideOption));
q.prescanOption&&q.prescanCallback&&J.push(u.observe(F,function(){q.prescanCallback()},q.prescanOption));
var g;t.visibilityMonitorKeys=((g=t.visibilityMonitorKeys)!=null?g:[]).concat(J)}};
F9W=function(F){var q;return(q=F.polymerController)!=null?q:F};
_.yg=function(F){return!!_.b6(F)};
_.CH=function(F,q,t,u,J){return function(g){var Y=Nno();_.AO(function(){if(g){tlv(g,F(),J);var Q=uc_(g,F(),q,t,u,Y);_.vj(Q)}},"nr377e")}};
tlv=function(F,q,t){var u=Juu(q),J=srP(q);q=u&&gtC;var g=J&&lFC;(u||J)&&q7t(F,{visibilityCallback:function(Y){var Q=_.sV().resolve(_.gN);Y&&u?Q.resolveCommand(u,{form:{element:t?F:void 0},disableClickTracking:!0}):!Y&&J&&Q.resolveCommand(J,{form:{element:t?F:void 0},disableClickTracking:!0})},
showOption:q,hideOption:g})};
uc_=function(F,q,t,u,J,g){var Y=new Map;if(q=_.b6(q)){var Q;F=(u==null?void 0:(Q=u.onTap)==null?void 0:Q.value)||F;t=XC$(q,F,t==null?void 0:t.onTap,J,g);F.addEventListener("click",t);Y.set("click",t)}return function(){for(var e=_.X(Y),r=e.next();!r.done;r=e.next()){var N=_.X(r.value);r=N.next().value;N=N.next().value;F.removeEventListener(r,N)}}};
_.b6=function(F){var q;return(F=(q=_.n(F,Y7A))==null?void 0:q.onTap)&&_.Sg(F)};
Juu=function(F){var q;return(F=(q=_.n(F,Y7A))==null?void 0:q.onVisible)&&_.Sg(F)};
srP=function(F){var q;return(F=(q=_.n(F,Y7A))==null?void 0:q.onHidden)&&_.Sg(F)};
XC$=function(F,q,t,u,J){var g=function(Q){_.sV().resolve(_.gN).resolveCommand(F,Q)},Y=function(Q){u&&_.$C(_.mp(Q),q,u)||g(Q.target?{form:{element:Q.target,
sourceData:F,mutationContext:J}}:void 0)};
t&&(Y=function(Q){t(Q,g)});
return Y};
pCt=function(F){switch(F){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
Qrq=function(F){var q=F.numAvatarsInCluster;switch(F.clusterSize){case "small":return q===2?22:18;case "40":return q===2?24:22;default:return q===2?24:20}};
e2u=function(F,q){return function(t){var u=Object.keys(q);_.AO(function(){if(F!=null&&F()){for(var J=_.X(u),g=J.next();!g.done;g=J.next())g=g.value,t.addEventListener(g,q[g]);_.vj(function(){for(var Y=_.X(u),Q=Y.next();!Q.done;Q=Y.next())Q=Q.value,t.removeEventListener(Q,q[Q])})}},"bXZGfe")}};
ZUf=function(F){switch(Qrq(F)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
R2M=function(F){switch(F){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
ruA=function(F){switch(Qrq(F)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
NeP=function(F){switch(F){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
wCo=function(F){switch(F){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
iU3=function(F){return F==="medium"||F==="48"||F==="large"||F==="extra-large"||F==="extra-extra-large"||F==="giant"};
kNC=function(F){return!!((F==null?0:F.includes(3))||(F==null?0:F.includes(5)))};
z2o=function(F){var q=F.data;return{size:EtC(q.avatarImageSize),type:q.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:F.onTap,decorations:F.decorations||[],badgeText:F.badgeText,accessibilityText:F.accessibilityText,avatarButtonCustomClassName:F.avatarButtonCustomClassName,clusterLayoutConfig:F.clusterLayoutConfig}};
EtC=function(F){switch(F){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
ot3=function(F){switch(F){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
ntP=function(F){switch(F){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
Mlq=function(F){var q=F.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",t,u=F.avatars&&F.avatars.length>0?(t=_.n(F.avatars[0],_.d0))==null?void 0:t.avatarImageSize:"AVATAR_SIZE_UNKNOWN";t=ot3(u)||0;if(q){var J,g=(J=F.avatarClusterSize)!=null?J:"AVATAR_SIZE_M";q=ot3(g);var Y,Q,e=Math.min((Q=(Y=F.avatars)==null?void 0:Y.length)!=null?Q:0,4),r;return{avatars:((r=F.avatars)==null?void 0:r.slice(0,4))||[],avatarSizeInPx:t,avatarStackStyle:{width:q+"px",height:q+"px",position:"relative"},avatarStyle:function(w){var k=
Qrq({clusterSize:EtC(g),numAvatarsInCluster:e,avatarIndex:w});var z=ot3(g);e===3&&w===2?(z=(z-k)/2,z=(_.bn("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*z):z=void 0;return{position:"absolute",top:e===2&&w===1||e===3&&w===2||e===4&&w>=2?"0":void 0,bottom:e===2&&w===0||e>2&&w<2?"0":void 0,left:e===2&&w===1||e>2&&(w===1||w===3)?"0":void 0,right:e<=3&&w===0||e===4&&(w===0||w===2)?"0":void 0,transform:z?"translateX("+z+"px)":void 0,width:k+"px",height:k+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(w){return{clusterSize:EtC(F.avatarClusterSize),numAvatarsInCluster:e,avatarIndex:w}},
avatarButtonCustomClassName:void 0}}var N;return{avatars:((N=F.avatars)==null?void 0:N.slice())||[],avatarSizeInPx:t,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:ntP(u),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
Tet=function(F,q,t){return function(){WT(F,{form:{element:q},commandController:t})}};
GNq=function(F){switch(F){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
D8P=function(F){switch(F){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
W9y=function(F){if("accessibilityText"in F)return F.accessibilityText||"";if("title"in F){var q,t,u;return((q=F.title)==null?void 0:(t=q.accessibility)==null?void 0:(u=t.accessibilityData)==null?void 0:u.label)||""}if("accessibility"in F){var J,g;return((J=F.accessibility)==null?void 0:(g=J.accessibilityData)==null?void 0:g.label)||""}return""};
OUq=function(F){return"inlinePlayerData"in F};
Vg=function(F){return new PI_(F)};
x8C=function(F){return function(q){F&&(F.thumbnailElRef=q.thumbnailElRef,F.thumbnail=q.thumbnail,F.thumbnailOverlays=q.thumbnailOverlays,F.thumbnailSize=q.thumbnailSize)}};
Au$=function(F){switch(F){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
IFM=function(F){var q=_.X(_.N3(!1,void 0,"RIOonf")),t=q.next().value,u=q.next().value;_.v_(function(){var J=F==null?void 0:F();if(J){var g=_.sV().resolve(_.JU(vt_));if(g){var Y={triggeringElement:J,onDwellTriggeredFn:function(){u(!0)},
onDwellEndFn:function(){u(!1)}};
g.registerElement(Y);_.vj(function(){_.UO(g,Y)})}}});
return t};
HUo=function(F,q,t){t?t(q):_.L9(q,F.target?{form:{element:F.target}}:void 0)};
_.Sa=function(F,q,t){return function(u){_.AO(function(){var J=new Map,g,Y=(g=F())==null?void 0:g.onTap;Y&&(g=function(Q){a:{var e=Q.composedPath();e=_.X(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;if(r===u)break;if(r.className.indexOf("HostIsClickableAdComponent")>=0||r.tagName==="A".toString()||r.tagName==="BUTTON".toString()){e=!0;break a}}e=!1}e||HUo(Q,Y,q)},(t==null?0:t())||_.E("enable_web_home_top_landscape_image_layout_level_click")?(u.addEventListener("tap",g),J.set("tap",g)):(u.addEventListener("click",
g),J.set("click",g)));
_.vj(function(){for(var Q=_.X(J),e=Q.next();!e.done;e=Q.next()){var r=_.X(e.value);e=r.next().value;r=r.next().value;u.removeEventListener(e,r)}})},"NMyqj")}};
m83=function(F,q){var t,u=(t=F.interaction)==null?void 0:t.onTap;if(F=_.K9({elementsCommand:u,forceNewState:!0,skipOnClick:!0}))return F.onclick=function(J){VU$(J)&&(J.preventDefault(),u&&HUo(J,u,q))},B9(F)?F:void 0};
$8u=function(F){switch(F){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
bUW=function(F){switch(F){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
yuo=function(F){switch(F){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.CIy=function(F){return _.E("rich_grid_enable_dynamic_offset")&&F?Math.max(Math.round((F-_.YE("rich_grid_dynamic_offset_anchor_width",1300))/100*_.YE("rich_grid_dynamic_offset_offset_per_100",10)),_.YE("rich_grid_dynamic_offset_lower_bound",-60)):0};
d8o=function(F,q){switch(q){case 4:return 16;case 1:return F<528?16:F<1024?32:48;case 2:return(F>=528?16:8)/2;case 3:return(F<528?16:F<1024?32:48)+(F>=528?16:8)/2;default:return 0}};
VlW=function(F){var q=F.originalContainerWidth;var t=F.sizing;var u=F.standardUnit;if(F.isCompactList&&q<528)return 1;switch(t){case "STANDARD":return u;case "COMPACT":return u+1;case "EXTRA_COMPACT":return _.E("web_responsive_extra_compact_2x")?u*2:_.E("web_responsive_current")?u===1?2:u%2===0?u/2*3:u+2:u<4?u*2:Math.ceil(u*3/2);case "MINI":return u>1?u*2:3;default:return u}};
S7C=function(F){var q=F.containerWidth;var t=F.peek;var u=F.gutter;var J=F.numItems;F=F.ignoreMaxWidthLimit;q=t?Math.max((q-t-u*J)/J,0):Math.max((q-u*(J-1))/J,0);return F?q:Math.min(q,U8y)};
_.hC=function(F){var q=F.containerWidth;var t=F.hasPeek;var u=F.sizing;var J=F.marginSettings;var g=F.isCompactList;var Y=F.enableFullBleedForSingleCol;var Q=F.standardUnitMinWidth;u=u||"STANDARD";t=!!t;F=q>=528?16:8;var e=t?q>=528?48:24:0;J=d8o(q,J);var r=Math.max(q-J*2,0);Q=_.E("kevlar_disable_min_width_override")?void 0:Q;Q=Math.min(Math.max(Math.floor((r-e+F)/((Q!=null?Q:h2$)+_.CIy(q)+F)),1),6);var N=(Y=!!Y&&Q===1)||Q===1&&u!=="STANDARD";t=t||N?r:Math.min(r,(U8y+F)*Q-F);u=VlW({originalContainerWidth:q,
sizing:u,standardUnit:Q,isCompactList:g});return{itemWidth:S7C({containerWidth:t,peek:e,gutter:F,numItems:u,ignoreMaxWidthLimit:N}),gutter:F,maxContainerWidth:t,numItems:u,margin:Y?0:J,contentMargin:d8o(q,1),typographyBump:S7C({containerWidth:t,peek:e,gutter:F,numItems:Q,ignoreMaxWidthLimit:N})>400&&!(g&&q<528),standardUnit:Q}};
K9f=function(F){switch(F){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.Be$=function(F){if(F){var q;if((q=F.responsiveContainerConfiguration)==null?0:q.responsiveSize)return K9f(F.responsiveContainerConfiguration.responsiveSize);if(F.layoutSizing)switch(F.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
L9u=function(F){if(F.fullbleed)return 1;switch(F.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
cuu=function(F,q,t,u,J,g,Y,Q){a:if(F===4&&u==="LOCKUP_CONTENT_TYPE_SOURCE")var e=1;else switch(F){case 3:e=1;break a;default:e=0}a:switch(F){case 4:g=!!(g&&g<100);break a;default:g=!1}a:switch(F){case 3:case 4:var r=u==="LOCKUP_CONTENT_TYPE_CHANNEL"||u==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:r=!1}a:switch(F){case 5:var N=!0;break a;case 4:N=!1;break a;default:N=!1}return{isOverlay:N,isCard:fFA(u,Y),sizing:q!=null?q:"STANDARD",typographyBump:t!=null?t:!1,isTiny:g,isCentered:r,isCollection:aFt(u),
arrangement:e,addMarginForFullbleed:F===1&&u!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:F===1&&u==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:jrP(u,J,Q),disableRounding:F===5||fFA(u,Y)||F===1&&u==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:aFt(u)?2:0,useLegacyTypography:!(Q==null||!Q.useLegacyTypography),useRichGridLegacyTypography:!(Q==null||!Q.useRichGridLegacyTypography)&&!_.E("web_enable_typography_bump"),compactMetadata:e===0&&u==="LOCKUP_CONTENT_TYPE_VIDEO"}};
aFt=function(F){switch(F){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
fFA=function(F,q){if(q&&F==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(F){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
jrP=function(F,q,t){if(q&&(t==null||!t.alwaysRespectPodcastShowAspectRatio||F!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(F){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
Fsq=function(F){switch(F){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
qJP=function(F){switch(F){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
tBf=function(F){switch(F){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
_.KH=function(F){if(F){var q;return((q=_.sV().resolve(_.JU(_.qo)))==null?0:q())?F.darkThemeImage:F.image}};
sif=function(F,q,t,u,J,g){if(J&&g&&q==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:J,height:g};if(!t)return{};J=t.size;t=t.allowFullWidth;if(q==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&t)return{fullWidth:!0};if(J===void 0)return{};switch(F){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:J,height:J};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:J,height:1/us$*J};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:J*
JsC,height:J};default:return(u==null?0:u.height)&&(u==null?0:u.width)?u.width/u.height>1?{maxWidth:J*JsC}:{maxWidth:J}:{maxWidth:J}}};
gUf=function(F){var q;return F&&((q=_.KH(F.themedImage))!=null?q:F.image)};
luv=function(F){var q;return F==null?void 0:(q=F.sources)==null?void 0:q[0]};
XMo=function(F){switch(F){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
_.YJt=function(F){if(F)return"content-id-"+F};
pMu=function(F){switch(F.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
QiP=function(F){var q=_.BD.currentPageSubTypeSelector(_.tv().getState())||"";return F?F+q:""};
ew3=function(F){switch(F){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
RwA=function(F){var q=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],t=_.X(_.N3(void 0,void 0,"JrqNsb")),u=t.next().value,J=t.next().value,g=_.X(_.N3(void 0,void 0,"rWytse"));t=g.next().value;var Y=g.next().value;g=_.X(_.N3(void 0,void 0,"DHRqxe"));var Q=g.next().value,e=g.next().value;return{touchFeedbackEvents:{pointerUpEvent:u,pointerDownEvent:t,pointerLeaveEvent:Q},touchFeedbackOnPointerUp:_.zq(function(r){ZF3(_.mp(r),q)||(J(r),Y(void 0),e(void 0))}),
touchFeedbackOnPointerDown:_.zq(function(r){F==null||F(r);ZF3(_.mp(r),q)||(Y(r),J(void 0),e(void 0))}),
touchFeedbackOnPointerLeave:_.zq(function(r){ZF3(_.mp(r),q)||(e(r),Y(void 0),J(void 0))})}};
ZF3=function(F,q){q=q===void 0?[]:q;q=[].concat(_.mZ(q),["BUTTON".toString()]);F=_.X(F);for(var t=F.next();!t.done;t=F.next()){t=t.value;for(var u=_.X(q),J=u.next();!J.done;J=u.next())if(t.tagName===J.value)return!0}return!1};
rsM=function(F){switch(F){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
N4q=function(F){return F.scrollHeight-F.offsetHeight>1};
wM$=function(F,q){var t;return F0(F,((t=F.content)==null?void 0:t.length)||0,!q)};
EU$=function(F,q,t,u,J,g){if(!q||iFW){var Y;return F0(F,((Y=F.content)==null?void 0:Y.length)||0,!0)}q=u.value;if(!t.value||!q||!F.content)return F;t=0;u=F.content.length;Y=0;k8A||(k8A=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var Q=k8A;for(J=J*g*Q;t<=u;)g=Math.floor(t+(u-t)/2),Q=F0(F,g)||F,q.firstChild&&(q.firstChild.textContent=Q.content),q.scrollHeight>J?u=g-1:(Y=g,t=g+1);return F0(F,Y)};
zwo=function(F,q){var t,u;return(((t=F.content)==null?void 0:t.length)||0)>(((u=q.content)==null?void 0:u.length)||0)};
oUC=function(F,q,t,u,J,g){var Y=_.FG("truncated-text-content"),Q=_.FG("truncated-text-content"),e=_.FG("button"),r=_.FG("button"),N=_.FG("button"),w=_.sV().resolve(_.u_),k=_.X(_.np(function(){return wM$(F(),J())})),z=k.next().value,T=k.next().value;
k=_.X(_.np(function(){return zwo(F(),z())}));
var P=k.next().value,v=k.next().value,H=null;_.AO(function(){function d(){if(Y.value&&e.value&&N.value){var K=g()?F():EU$(F(),J(),Y,Q,q(),t());T(K);requestAnimationFrame(function(){if(Y.value&&e.value&&N.value){var h=N4q(Y.value)||zwo(F(),K);v(h);if(!u()){var c=N4q(Y.value),rf=t(),Zv=Y.value,kP=e.value,n3=N.value,o_=w==="rtl";if(Zv&&kP){var df=kP.offsetLeft;o_&&(df=Zv.offsetWidth-kP.offsetWidth-kP.offsetLeft);if(h){h=kP.offsetWidth;kP=Zv.offsetWidth;var m$=c?kP-h-70:df-70;rf="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
rf+"rem,\n      #000 "+rf+"rem,\n      #000 100%), linear-gradient(\n      to "+((o_?"left":"right")+",\n      #000 0px,\n      #000 "+m$+"px,\n      transparent "+(c?kP-h:m$+70)+"px)");Zv.style.setProperty("-webkit-mask-image",rf);Zv.style.setProperty("mask-image",rf)}else Zv.style.setProperty("-webkit-mask-image",""),Zv.style.setProperty("mask-image","");c?o_?(n3.style.setProperty("left","0"),n3.style.setProperty("right","unset")):(n3.style.setProperty("left",""),n3.style.setProperty("right","0")):
o_?(n3.style.setProperty("left","unset"),n3.style.setProperty("right",df+"px")):(n3.style.setProperty("left",df+"px"),n3.style.setProperty("right","unset"))}}}})}}
var a,S;(a=H)==null||(S=a.stop)==null||S.call(a);a=new _.LH(d,17);d();H=a},"KjwIxd");
_.v_(function(){T(wM$(F(),J()));v(zwo(F(),z()));var d=function(){k8A=void 0;var S,K;(S=H)==null||(K=S.fire)==null||K.call(S)};
if(window.ResizeObserver){var a=new ResizeObserver(d);a.observe(Y.value);_.vj(function(){var S,K;(S=H)==null||(K=S.stop)==null||K.call(S);a.disconnect()})}else window.addEventListener("resize",d),_.vj(function(){var S,K;
(S=H)==null||(K=S.stop)==null||K.call(S);window.removeEventListener("resize",d)})});
return{isTruncated:P,displayText:z,contentRef:Y,hiddenRef:Q,placeholderTruncationTextRef:e,hiddenTruncationTextRef:r,truncationTextRef:N}};
nUM=function(F){return{content:F!=null?F:""}};
MBM=function(F){return _.Sg(F.onTap)||_.b6(F.rendererContext)};
T4P=function(F){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:F.overflowMenuA11yLabel,onTap:function(q){q.preventDefault();q.stopPropagation();if(F.overflowMenuOnTap){var t=_.K9({elementsCommand:F.overflowMenuOnTap,forceNewState:!0});if(t==null?0:t.onclick)t.onclick(q)}}}};
_.fH=function(F,q,t,u,J){u=u===void 0?{}:u;if(!J||Math.random()<5E-4){q=q||null;t=t||null;F=F instanceof Error?F:new _.D0(F);if(F.args)for(var g=_.X(F.args),Y=g.next();!Y.done;Y=g.next())Y=Y.value,Y instanceof Object&&(u=Object.assign({},Y,u));u.category="H5 Ads Control Flow";q&&(u.slot=q?"slot:  "+q.slotType:"");t&&(u.layout=t?"layout:  "+t.layoutType:"",u.layoutId=t.layoutId);J&&(u.known_error_aggressively_sampled=!0);F.args=[u];_.bz(F)}};
_.G8q=function(F,q){_.ec(F,"yt-open-popup-action",[_.sy(q),F])};
_.as=function(F,q){_.G8q(F,_.FK(q))};
Ws$=function(F){if(!F)return"";if(DQo[F])return DQo[F];cD||(cD=_.nr("A"));cD.href!==F&&Kl(cD,F);var q=cD.pathname;DQo[F]=q.startsWith("/")?q:"/"+q;return DQo[F]};
OF_=function(){var F=Ws$(window.location.href);if(F==="/")return"home";if(F.startsWith("/results"))return"search";if(F.startsWith("/watch"))return"watch";if(F.startsWith("/shorts"))return"shorts";if(F.startsWith("/hashtag"))return"hashtag";if(F.startsWith("/create_channel"))return"create_channel";if(F.startsWith("/@")||F.startsWith("/user/")||F.startsWith("/channel/"))return"channel";if(F.startsWith("/experiments"))return"experiments";if(F.startsWith("/sponsor_channel"))return"sponsorship";if(F.startsWith("/select_site"))return"settings";
if(F.startsWith("/locate"))return"locate";if(F.startsWith("/redeem"))return"redeem";if(F.startsWith("/musicpremium")||F.startsWith("/premium")||F.startsWith("/red"))return"premium";if(F.startsWith("/paid_memberships"))return"paid_memberships";if(F.startsWith("/oops"))return"oops";if(F.startsWith("/clip"))return"clip";var q;return(Ff==null?void 0:(q=Ff.response)==null?void 0:q.page)==="404"?"404":F.startsWith("/feed/history")?"history":F.startsWith("/feed/library")?"library":F.startsWith("/feed/subscriptions")?
"subscriptions":F.startsWith("/feed/trending")?"trending":F.startsWith("/feed/news_destination")?"news":F.startsWith("/playlist")?"playlist":F.startsWith("/minor_moment")?"minor_moment":F.startsWith("/playable/")||F.match("^/playables/(?!saved).")?"mini_app":F.startsWith("/playables")?"playables":F.startsWith("/create/live/join")?"open_in_app":F.startsWith("/feed/explore")?"explore":"browse"};
_.vUv=function(){var F=Ff==null?void 0:Ff.response,q=F==null?void 0:F.endpoint;if(!q)return(F==null?void 0:F.page)==="watch"?"watch":OF_();var t;F=(t=_.n(q==null?void 0:q.commandMetadata,_.EH))==null?void 0:t.webPageType;t=!1;if(F&&!PhC.includes(F))switch(F){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var u;return((u=_.n(q==null?void 0:q.commandMetadata,_.EH))==null?0:u.url)&&Ws$(_.n(q.commandMetadata,_.EH).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var J;return(q=(J=_.n(q,_.Gr))==null?void 0:J.browseId)?xQM[q]||"browse":"browse";default:t=!0}if(_.n(q,_.qR)||_.n(q,AsW))return"sponsorship";J=Ws$(window.location.href);if(J.startsWith("/experiments"))return"experiments";if(J.startsWith("/create_channel"))return"create_channel";
if(_.n(q,_.KM)&&J.startsWith("/shorts"))return"shorts";if(_.n(q,_.KM)&&J.startsWith("/watch"))return"watch";t&&(q=new _.D0("Unsupported mWeb page type",{pathname:J,webPageType:F}),_.mH(q));return"browse"};
ti=function(F,q,t,u){return F&&q?F!==t||q!==u?(_.fH(Error("Ih"),void 0,void 0,{"stored-slot":F,"stored-layout":q,"latest-slot":t,"latest-layout":u}),!1):!0:!1};
HFy=function(F,q,t){return F({targetId:q},function(u){return t.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},u,{contents:[t.continuationItems?_.n(t.continuationItems[0],Iu_):{}]}):t.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},u,{header:t.continuationItems?t.continuationItems[0]:void 0}):Object.assign({},u,{contents:t.continuationItems?t.continuationItems:[]})})};
mQ$=function(F,q,t,u){if(q=q.trackingParams){var J,g=(J=t.getScreenLayer)==null?void 0:J.call(t);t=_.yb(g);J=_.b7(g);if(t&&J){var Y=_.Av(q);_.E("combine_ve_grafts")?F.graftServerVe(q,J,g):_.Bo(t,J,Y);u==null||u(Y)}}};
bFC=function(F){var q;return((q=$Qu.get(F))==null?void 0:q.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
dQy=function(F,q){var t={type:q.slotType,controlFlowManagerLayer:ysu.get(q.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};q.slotEntryTrigger&&(t.entryTriggerType=q.slotEntryTrigger.triggerType);q.slotPhysicalPosition!==1&&(t.slotPhysicalPosition=q.slotPhysicalPosition);if(F){t.debugData={slotId:q.slotId};if(F=q.slotEntryTrigger)t.debugData.slotEntryTriggerData=Chv(F);F=q.slotFulfillmentTriggers;t.debugData.fulfillmentTriggerData=[];F=_.X(F);for(var u=F.next();!u.done;u=F.next())t.debugData.fulfillmentTriggerData.push(Chv(u.value));
q=q.slotExpirationTriggers;t.debugData.expirationTriggerData=[];q=_.X(q);for(F=q.next();!F.done;F=q.next())t.debugData.expirationTriggerData.push(Chv(F.value))}return t};
Chv=function(F,q){var t={type:F.triggerType};q!=null&&(t.category=q);F.triggeringSlotId!=null&&(t.triggerSourceData||(t.triggerSourceData={}),t.triggerSourceData.associatedSlotId=F.triggeringSlotId);F.triggeringLayoutId!=null&&(t.triggerSourceData||(t.triggerSourceData={}),t.triggerSourceData.associatedLayoutId=F.triggeringLayoutId);return t};
VBC=function(F,q,t,u){q={opportunityType:q};F&&(u||t)&&(u=_.$q(u||[],function(J){return dQy(F,J)}),q.debugData=Object.assign({},t&&t.length>0?{associatedSlotId:t}:{},u.length>0?{slots:u}:{}));
return q};
UQA=function(F){return uB(F.opportunityAdapterMap).concat(uB(F.triggerAdapterMap)).concat(uB(F.fulfillmentAdapterFactoryMap)).concat(uB(F.slotAdapterFactoryMap)).concat(uB(F.layoutRenderingAdapterFactoryMap))};
uB=function(F){var q=[];F=_.X(F.values());for(var t=F.next();!t.done;t=F.next())t=t.value,t.isAdsControlFlowEventListener&&q.push(t);return q};
so=function(F){var q=F.slotId,t=F.slotType,u=F.slotPhysicalPosition;return q===void 0?new Ji("Cannot construct a slot due to the missing id.",{adSlotMetadata:F}):t===void 0?new Ji("Cannot construct a slot due to the missing type.",{adSlotMetadata:F}):u===void 0?new Ji("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:F}):{slotId:q,slotType:t,slotPhysicalPosition:u,managerLayer:"external",adSlotLoggingData:F.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new SJy}};
hwM=function(F){var q=F.layoutId,t=F.layoutType;return q===void 0?new gI("Cannot construct a layout due to the missing id.",{adLayoutMetadata:F}):t===void 0?new gI("Cannot construct a layout due to the missing type.",{adLayoutMetadata:F}):{layoutId:q,layoutType:t,managerLayer:"external",adLayoutLoggingData:F.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new SJy,interactionLoggingAdsClientData:{}}};
Kst=function(F){if(F.querySelector("img")){var q=F.querySelector("img");q.addEventListener("error",function(){Py_(q.src).then(function(t){(t=_.Vy(t).toString())?q.src=t:q.removeAttribute("src")}).catch(function(){q.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Xf=function(F,q){if(q&&(B4W(q.viewableCommand)||B4W(q.endOfSessionCommand))){var t=Lsq(q==null?void 0:q.viewableCommand);q=Lsq(q==null?void 0:q.endOfSessionCommand);if(!lB){var u=_.YE("custom_active_view_tos_timeout_ms");lB=u>0&&u!==36E5?new fuP(auW(),u):new fuP(auW())}jiW(lB,F);csf(lB,F,t,q)}};
Yi=function(F){lB&&jiW(lB,F)};
auW=function(){var F=_.bn("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(F==null?void 0:F.length)===2?F[1]:null};
B4W=function(F){F=_.Sg(F);return!(F==null||!F.loggingUrls)&&F.loggingUrls.length>0};
Lsq=function(F){if(!F)return[];var q=[],t,u;((u=(t=_.Sg(F))==null?void 0:t.loggingUrls)!=null?u:[]).forEach(function(J){J.baseUrl&&q.push(J.baseUrl)});
return q};
Fqo=function(F){if(_.E("stop_av_measurement_on_detach"))return function(){Yi(F)}};
q_P=function(F){return function(){_.E("stop_av_measurement_on_detach")&&Yi(F)}};
tVo=function(F){if(_.E("stop_av_measurement_on_detach"))return function(){Yi(F)}};
udy=function(F){return F.shorts.isDesktopSmallWidth};
_.JHf=function(F){return F.shorts.isShortsActive};
_.sBu=function(F){return F.shorts.isWatchWhileMode};
_.pw=function(F){return F.shorts.isFullscreen};
_.Q7=function(F){return F.shorts.isShortsPipActive};
lZo=function(F){var q,t;if(F=(q=_.n(F.reelsAdCardButtoned,ggv))==null?void 0:(t=q.animatedRenderingConfig)==null?void 0:t.easeOutSeconds)return F+"s"};
Y_f=function(F,q,t){return _.p(function(u){return u.return(new Promise(function(J){var g=new Image;g.onload=function(){J(new X$P(F,q,t,g.naturalWidth,g.naturalHeight))};
g.src=t.toString()}))})};
p$W=function(F,q){return Math.round(F/1E-5)===Math.round(q/1E-5)};
QBf=function(F,q){return Math.round(F/1E-5)===Math.round(q/1E-5)};
eGu=function(F,q){return F.year===q.year&&F.month===q.month&&F.day===q.day};
Zkt=function(F,q){return F.year!==q.year?F.year<q.year:F.month!==q.month?F.month<q.month:F.day<q.day};
rHo=function(F){return F.day===RGW(F.year,F.month)?F.month===11?{year:F.year+1,month:0,day:1}:{year:F.year,month:F.month+1,day:1}:{year:F.year,month:F.month,day:F.day+1}};
NFW=function(){var F=new Date,q={year:F.getFullYear(),month:F.getMonth(),day:F.getDate()};return{start:q,end:{year:F.getFullYear()+2,month:F.getMonth(),day:F.getDate()},selectedDate:rHo(q)}};
w$t=function(F){return(new jz(2)).format(new Date(F.year,F.month,F.day))};
iky=function(F){return{year:F.getFullYear(),month:F.getMonth(),day:F.getDate()}};
kdW=function(F,q){F=(F+(Number(q.utcOffsetSec)+(new Date(F*1E3)).getTimezoneOffset()*60))*1E3;q=iky(new Date(F));return{date:q,secondsSinceMidnight:Math.floor((F-(new Date(q.year,q.month,q.day)).getTime())/1E3)}};
Egt=function(F,q){q=q.months.findIndex(function(t){return t.year===F.year&&t.month===F.month});
return q>=0?q:void 0};
zGy=function(F){if(!F)return!1;try{if(F.host&&F.host.tagName==="YT-FORMATTED-STRING"&&F.host.id==="contenteditable-textarea"||F.nodeType===Node.ELEMENT_NODE&&F.tagName==="YTD-COMMENTBOX")return!0}catch(q){return!1}return zGy(F.parentNode)};
ex=function(F){return F?!(F.tagName!=="A"||!F.href||!F.classList.contains("yt-simple-endpoint")):!1};
ogP=function(F){return F?F.tagName==="IMG"&&F.classList.contains("emoji"):!1};
ngq=function(F,q,t){if(!F)return null;var u=ex(F);if(u&&t)return q=F.pathname.substring(F.pathname.indexOf("/channel/")+9),document.createTextNode("@"+q);if(u&&!t)return document.createTextNode("");if(ogP(F))return t=F.alt,F=F.dataset.emojiId,!F&&q&&(q=_.ZM(q,t))&&q.isCustomEmoji&&(F=q.emojiId),F?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+F+">"):document.createTextNode(t);u=F.cloneNode(!1);for(var J=0;J<F.childNodes.length;++J){var g=ngq(F.childNodes[J],q,t);g&&u.appendChild(g)}return u};
R4=function(F){return F?ex(F)?F:R4(F.lastChild):null};
MVq=function(F){return F?ex(F)?F:MVq(F.firstChild):null};
TFf=function(F){if(!F)return null;for(var q=F.previousSibling;q;)if(q.nodeType===Node.ELEMENT_NODE&&q.nodeName==="BR")q=q.previousSibling;else if(q.nodeType===Node.TEXT_NODE&&/\s+/.test(q.textContent))q=q.previousSibling;else break;(q=R4(q))?F=q:F=(F=F.parentNode)?R4(F.previousElementSibling):null;return F};
Gdy=function(F){if(!F)return null;for(var q=F.nextSibling;q;)if(q.nodeType===Node.ELEMENT_NODE&&q.nodeName==="BR")q=q.nextSibling;else if(q.nodeType===Node.TEXT_NODE&&/\s+/.test(q.textContent))q=q.nextSibling;else break;return(q=MVq(q))?q:Gdy(F.parentNode)};
D0f=function(F){var q=_.rI(),t=q.JSC$11331_getStartNode();if(!zGy(t.parentNode))return null;q=q.JSC$11331_getStartOffset();if(t.nodeType===Node.TEXT_NODE){var u=_.Vp(t,ex);if(u){if(F&&q===0||!F&&q===t.length)return u}else{if(F&&q===t.length)return!t||t.nodeName==="BR"||t.nextElementSibling&&_.NR(t.nextElementSibling,"display")==="block"?null:MVq(t.nextElementSibling);if(!F&&q===0)return t?R4(t.previousElementSibling):null}}if(t.nodeType===Node.ELEMENT_NODE)if(F){if(0<=q&&q<t.childNodes.length)return MVq(t.childNodes[q])}else if(0<
q&&q<=t.childNodes.length)return R4(t.childNodes[q-1]);return null};
Wqu=function(F,q,t){if(!F)return null;if(F.nodeType===Node.TEXT_NODE)if(t){var u=TFf(F);if(u&&!/^\s+\S/.test(F.wholeText.substr(0,q)))return u}else if((u=Gdy(F))&&!/\S\s+/.test(F.wholeText.substr(q,F.wholeText.length)))return u;return F.nodeType===Node.ELEMENT_NODE?t?TFf(F.childNodes[q]):Gdy(F.childNodes[q]):Wqu(F.parentNode,q,t)};
OkW=function(F){if(F.hasChildNodes())switch(F.tagName){case "DIV":case "A":case "SPAN":var q="";for(F=F.firstChild;F;F=F.nextSibling)q+=OkW(F);return q;default:return""}else switch(F.nodeType){case 3:return F.textContent;default:return""}};
wI=function(F,q){return F.year===q.year&&F.month===q.month&&F.day===q.day};
iB=function(F,q){return F.year!==q.year?F.year<q.year:F.month!==q.month?F.month<q.month:F.day<q.day};
Pt$=function(F){return{year:F.getFullYear(),month:F.getMonth(),day:F.getDate()}};
x0_=function(F){var q=PWv;q=q===void 0?PWv:q;q(new Date(F.year,F.month,F.day))};
ki=function(F){return Pt$(new Date(Number(F.seconds)*1E3))};
AH$=function(F){return F.year!==void 0&&F.month!==void 0&&F.day!==void 0};
vgM=function(F){return F.start!==void 0&&F.end!==void 0};
IZt=function(F){return vgM(F)?F.start:F};
Hk_=function(F){return vgM(F)?F.end:void 0};
$0t=function(F,q){for(var t=[],u=new Date(F.start.year,F.start.month);u.getFullYear()<F.end.year||u.getFullYear()===F.end.year&&u.getMonth()<=F.end.month;){var J=t,g=J.push,Y=u.getFullYear(),Q=u.getMonth(),e=F,r=q,N=void 0,w=[],k=Object.freeze({extraCssClass:"invisible"}),z=new Date(Y,Q),T=Pt$(z);z=z.getDay();for(var P=Pt$(new Date);T.month===Q;){z!==m0o&&N||(N=Array.from({length:7}).fill(k),w.push(N));var v={date:{year:Y,month:Q,day:T.day},extraCssClass:"",debugClass:""};v.extraCssClass=r(v.date,
T,P,e).trim();N[(z-m0o+7)%7]=v;T=T.day===RGW(T.year,T.month)?T.month===11?{year:T.year+1,month:0,day:1}:{year:T.year,month:T.month+1,day:1}:{year:T.year,month:T.month,day:T.day+1};z=(z+1)%7}g.call(J,{weeks:w,monthLabel:Eo.SHORTMONTHS[Q]+" "+Y,year:Y,month:Q,monthLabelExtraCssClass:w[0][2]===k?"shift-down-label":""});u.setMonth(u.getMonth()+1)}return t};
bko=function(F,q){q=q.months.findIndex(function(t){return t.year===F.year&&t.month===F.month});
return q>=0?q:void 0};
CtC=function(F,q){a:{var t=t===void 0?[2,3]:t;t=_.X(t);for(var u=t.next();!u.done;u=t.next()){var J=new Date;if((new yHf(u.value)).parse(q,J,{validate:!0})){J.setHours(0,0,0,0);q=J;break a}}q=null}if(!q)return{isValid:!1,value:void 0};q=Pt$(q);t=F.end;return iB(q,F.start)||iB(t,q)?{isValid:!1,value:void 0}:{isValid:!0,value:q}};
hGM=function(F){var q=d0t;q=q===void 0?VVq:q;var t=F.columnsToShow||[],u=U0y(F.columnDimensions,F.columnsToShow,F.leftFloatingColumns,q);return t.map(function(J,g){var Y=F.columns[J];if(Y===void 0)throw Error("Oh");var Q=u?u[g]:"";var e=F.getCustomTooltip?F.getCustomTooltip(J,Y.headerTooltipParagraphs):Y.headerTooltipParagraphs;var r=S_y(F,J);return{type:J,index:g,style:Q,classes:r,headerName:Y.headerName||"",headerIcon:Y.headerIcon,headerTooltipParagraphs:e||[],headerTooltipHelpContext:Y.headerTooltipHelpContext,
sortOrders:Y.sortOrders||[],selectionState:Y.isSelectionCheckbox?F.selectionState:void 0}})};
S_y=function(F,q){var t=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],u=F.columns[q];if(u===void 0)return"";var J=t.includes("DEFAULTS")&&u.cssClass?[u.cssClass]:[];if(t.includes("SORTING")){u.sortOrders&&u.sortOrders.length&&J.push("sortable");if(F.sorting&&F.sorting.columnType===q)a:switch(F.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var g="column-sorted";break a;default:g=""}else g="";g&&J.push(g)}t.includes("FLOATING")&&(q=F.columnsToShow.indexOf(q),F.leftFloatingColumns&&q<F.leftFloatingColumns&&
J.push("floating-column"),F.leftFloatingColumns&&q===F.leftFloatingColumns-1&&J.push("last-floating-column"));t.includes("RIGHT_ALIGN")&&u.rightAlignHeader&&J.push("right-align");return J.filter(function(Y){return Y}).join(" ")};
U0y=function(F,q,t,u){t=t===void 0?0:t;u=u===void 0?VVq:u;if(F){var J=[],g=0;Kqf(F,q,u).forEach(function(Y,Q){var e="min-width:"+Y.minWidth+"px;padding-left:"+Y.paddingLeft+"px;padding-right:"+Y.paddingRight+"px;flex:"+Y.flexGrow+" 0 "+Y.minWidth+"px;";Y.maxWidth!==Infinity&&(e=[e,"max-width:"+Y.maxWidth+"px;"].join(""));g>0&&Q<t&&(e=[e,"left:"+g+"px;"].join(""));J.push(e);g+=Y.minWidth+Y.paddingLeft+Y.paddingRight});
return J}};
Kqf=function(F,q,t){t=t===void 0?VVq:t;return q.map(function(u,J){u=F&&F[u]||{};var g=J===0?t.paddingLeftFirstColumn:t.padding;u.paddingLeft!==void 0&&(g=u.paddingLeft);J=J===q.length-1?t.paddingRightLastColumn:t.padding;u.paddingRight!==void 0&&(J=u.paddingRight);return{paddingLeft:g,paddingRight:J,minWidth:u.minWidth!==void 0?u.minWidth:t.minWidth,maxWidth:u.maxWidth!==void 0?u.maxWidth:t.maxWidth,flexGrow:u.flexGrow!==void 0?u.flexGrow:t.flexGrow}})};
BF3=function(F){var q=F.reduce(function(u,J){var g=J.columnId,Y={};J.headerText&&(Y.headerName=_.q1(J.headerText));J.rightAlignHeader&&(Y.rightAlignHeader=J.rightAlignHeader);var Q;if((Q=J.headerIcon)==null?0:Q.iconType)Y.headerIcon=_.Ek(J.headerIcon.iconType);u[g]=Y;return u},{}),t=F.filter(function(u){return!u.hideColumn}).map(function(u){return u.columnId});
F=F.filter(function(u){return!!u.dimensions}).reduce(function(u,J){u[J.columnId]=J.dimensions;
return u},{});
return{columns:q,columnsToShow:t,columnDimensions:F}};
_.Lq_=function(F){return F?F.simpleText?F.simpleText:F.runs?F.runs.map(function(q){return q.text}).join(""):"":""};
FwW=function(F){var q=F.data;var t=F.onTap;var u=F.isSelected;var J=F.onFocusIn;if(!q)return{};F=fZt(q);u===void 0&&(u=q==null?void 0:q.isSelected);var g;return{text:aZu(q,F),startIcon:(g=q.icon)==null?void 0:g.iconType,state:u?0:2,type:0,onTap:jBo(q,t),accessibilityLabel:cHC(q,F),onFocusIn:function(){return J==null?void 0:J()}}};
aZu=function(F,q){if(!q)return F.text?_.Lq_(F.text):void 0};
jBo=function(F,q){return function(t){q==null||q(t,F)}};
fZt=function(F){F=F.style&&F.style.styleType;return!iFW&&F==="STYLE_EXPLORE_LAUNCHER_CHIP"};
cHC=function(F,q){if(q){var t,u,J;return(J=(t=F.accessibilityData)==null?void 0:(u=t.accessibilityData)==null?void 0:u.label)!=null?J:aZu(F,!1)}};
zJ=function(F){return{signalAction:{signal:F}}};
uaW=function(){return _.bn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?q2_:_.t0$};
Jz_=function(F,q){F=F===void 0?"SOFT_RELOAD_PAGE":F;q=q===void 0?49504:q;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.lC(_.oD("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:q}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:F}}]}}}};
s33=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.lC(_.oD("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:uaW()}};
gXW=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.lC(_.oD("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:uaW()}};
lb$=function(F,q){var t=_.lC(_.oD("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),u=_.lC(_.oD("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),J={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.lC(_.oD("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};J.serviceEndpoint=F?F:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[zJ("SOFT_RELOAD_PAGE")]}};return{title:t,bodyText:u,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:J},
style:{value:q!=null?q:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
Y2$=function(F){F=F===void 0?{}:F;return{title:_.lC(F.localizedZeroStateTitleText===void 0?"":F.localizedZeroStateTitleText),bodyText:_.lC(F.localizedZeroStateMessage===void 0?"":F.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lC(F.localizedZeroStateButtonText===void 0?"":F.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[XIy]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Q3v=function(F){F=F===void 0?{}:F;return{title:_.lC(F.localizedOptInBannerTitleText===void 0?"":F.localizedOptInBannerTitleText),titleLength:19,subtitle:_.lC(F.localizedOptInMessage===void 0?"":F.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lC(_.oD("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:_.lC(_.oD("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:[pIP]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
RIo=function(F,q){var t=q=q===void 0?{}:q;q=t.offlineTitleText===void 0?"":t.offlineTitleText;var u=t.offlineDescriptionText===void 0?"":t.offlineDescriptionText,J=t.formattedSupplementalText,g=t.actionButtonText===void 0?"":t.actionButtonText,Y=t.titleText===void 0?"":t.titleText;t=t.descriptionText===void 0?"":t.descriptionText;var Q={title:g,accessibilityText:g,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};F||(Y=q,t=u,Q={title:g,accessibilityText:g,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.lC(Y),titleLength:Y.length,overrideTitleMaxFontSize:30,subtitle:_.lC(t),supplementalText:J,primaryButton:{buttonViewModel:Q},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[eI3]},darkTileImage:{thumbnails:[Zmq]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.wIv=function(F,q,t,u,J,g,Y,Q,e,r,N){J=J===void 0?!1:J;g=g===void 0?!1:g;Y=Y===void 0?0:Y;Q=Q===void 0?-Infinity:Q;e=e===void 0?!1:e;r=r===void 0?!1:r;N=N===void 0?!1:N;var w=[],k=_.lC(_.oD("SMART_DOWNLOADS",void 0,"Smart downloads")),z=_.lC(rzM(Y,Q,F.length));Q=Y=void 0;r?Y={statementBannerRenderer:RIo(N,u)}:J?F.length>0?Q=Nbt(F,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.E("kevlar_manual_downloads_above"),k,z):e?Q={alertBannerViewModel:{heading:{content:t.localizedOptInBannerTitleText===
void 0?"":t.localizedOptInBannerTitleText},body:{content:t.localizedPromptMessage===void 0?"":t.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.oD("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.oD("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:_.UC3}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:g&&(Q={backgroundPromoRenderer:{bodyText:_.lC(_.oD("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"}}}):
g&&(Q={alertBannerViewModel:{heading:{content:t.localizedOptInBannerTitleText===void 0?"":t.localizedOptInBannerTitleText},body:{content:t.localizedOptInMessage===void 0?"":t.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.oD("TURN_ON",void 0,"Turn on"),accessibilityText:_.oD("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}}}}}});t=_.lC(_.oD("YOUR_DOWNLOADS",void 0,"Your downloads"));u=void 0;q.length>0?(u=void 0,_.E("kevlar_display_downloads_numbers")&&(u=_.lC(_.nJ("VIDEO_COUNT",q.length))),u=Nbt(q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,t,u)):J||F.length||
r||(u={backgroundPromoRenderer:{bodyText:_.lC(_.oD("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?w.push({richSectionRenderer:{content:Y}}):Q&&!_.E("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:Q,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
u&&w.push({richSectionRenderer:{content:u,loggingDirectives:{clientVeSpec:{uiType:51721}}}});Q&&_.E("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:Q,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(q.length>0||J&&F.length>0&&!r)&&w.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.lC(_.oD("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:w}};
_.kFM=function(F){return imf(F,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.EXq=function(F){return imf(F,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
imf=function(F,q){var t=[];F=Nbt(F,q,!0);t.push({richSectionRenderer:{content:F}});return{contents:t}};
Nbt=function(F,q,t,u,J){t=t===void 0?!1:t;var g="RESPONSIVE_SIZE_STANDARD";_.E("kevlar_modern_downloads_compact")?g="RESPONSIVE_SIZE_COMPACT":_.E("kevlar_modern_downloads_extra_compact")&&(g="RESPONSIVE_SIZE_EXTRA_COMPACT");F={isExpanded:t,contents:o4(F),entitySelectorType:q,responsiveContainerConfiguration:{responsiveSize:g}};u&&(F.title=u);J&&(F.subtitle=J);t||(_.E("kevlar_smart_downloads_show_more_button")?(F.showMoreButton={buttonRenderer:{accessibility:{label:_.oD("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.lC(_.oD("SHOW_MORE",void 0,"Show more"))}},F.showLessButton={buttonRenderer:{accessibility:{label:_.oD("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.lC(_.oD("SHOW_LESS",void 0,"Show less"))}}):(F.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.oD("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,
"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},F.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.oD("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:11760}}}},F.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.oD("VIEW_ALL",void 0,"View all"),accessibilityText:_.oD("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:_.sf("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:F}};
o4=function(F){var q=[];F=_.X(F);for(var t=F.next();!t.done;t=F.next())if(t=t.value,GT$(t)){var u=q,J=u.push;var g=void 0;if(t==null?0:(g=t.videoEntity)==null?0:g.videoId){g=hx(_.u1().getState(),t.videoEntity.videoId);var Y=_.u1().getState();var Q=_.wj(t.videoEntity.videoId,"mainVideoEntity");Y=!!_.Ax(Y.entities)[Q];Y={videoId:t.videoEntity.videoId,title:XE(t.videoEntity.title),shortBylineText:XE(t.channelEntity.title),thumbnail:t.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:Y&&_.E("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:uS3(t.videoEntity.videoId,g,t.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.oD("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};t.videoEntity.lengthSeconds&&(Y.thumbnailOverlays=fDM(t.videoEntity.lengthSeconds,g));Y.isWatched=g>0;_.E("kevlar_modern_downloads_page")&&(Y.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:t.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.oD("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},Y.badges=void 0);t=Y}else t={};J.call(u,{richItemRenderer:{content:{videoRenderer:t},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(TXo(t)){u=q;J=u.push;var e=Q=g=void 0,r=void 0,N=void 0,w=void 0,k=void 0,z=void 0,T=void 0,P=void 0,v=void 0,H=void 0;Y=t.mainPlaylistEntity.playlistId;var d=t==null?void 0:(H=t.mainPlaylistEntity)==null?void 0:(v=H.thumbnailStyleData)==null?void 0:(P=v[0])==null?void 0:(T=P.value)==null?void 0:(z=T.collageThumbnail)==
null?void 0:z.coverThumbnail;if(Y&&d){z=J1y(Y);!_.E("enable_offline_playlist_page")&&(t==null?0:(k=t.mainPlaylistEntity)==null?0:k.videos)&&(k=t==null?void 0:(w=t.mainPlaylistEntity)==null?void 0:(N=w.videos)==null?void 0:N[0],N=_.ez(k).entityId,N=JSON.parse(N).videoId,N!==void 0&&(w=hx(_.u1().getState(),N),z=_.gj(N,Y,void 0,void 0,w)));N=[];if(t==null?0:(r=t.mainPlaylistEntity)==null?0:(e=r.videos)==null?0:e.length)N=[O8o(),Object.assign({},(Q=WS_(t==null?void 0:t.mainPlaylistEntity.videos.length))!=
null?Q:{})];t={playlistId:Y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:d}},navigationEndpoint:z,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:N,title:XE(t.mainPlaylistEntity.title),shortBylineText:XE(t==null?void 0:(g=t.channelEntity)==null?void 0:g.title),badges:[{metadataBadgeRenderer:{label:_.oD("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.E("kevlar_modern_downloads_page")&&(t.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:zIA,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.oD("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},t.badges=void 0)}else t=void 0;J.call(u,{richItemRenderer:{content:{playlistRenderer:t},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return q};
rzM=function(F,q,t){F=F?oXq(F):"";q!==void 0&&isFinite(q)?q===0?q=_.oD("UPDATING",void 0,"Updating..."):(q=LSv(new Date(q),new Date),q=_.oD("UPDATED_TIME",{relative_time:q},"Updated "+q)):q="";var u="";F&&q&&(u=" \u2022 ");if(t&&_.E("kevlar_display_downloads_numbers")){t=_.nJ("VIDEO_COUNT",t);if(F||q)u=" \u2022 ";return t+u+F+u+q}return F+u+q};
nX_=function(F){return wQf(F.entities).length};
_.M0v=function(F,q){var t=K9f(F.responsiveSize),u;F=!((u=F.responsiveMap)==null||!u.some(function(J){return J.containerSize==="CONTAINER_SIZE_NARROW"&&J.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:q,sizing:t,enableFullBleedForSingleCol:!1,isCompactList:t==="COMPACT"&&F}};
TbA=function(F,q){return _.iC(F.entities,"votingEntity",q)};
nw=function(F){if(F){var q;return((q=_.sV().resolve(_.JU(_.qo)))==null?0:q())?F.darkTheme:F.lightTheme}};
GF_=function(F,q){if(F.simpleText)return Object.assign({},F,{simpleText:ac(F.simpleText,q)});if(!F.runs)return F;for(var t=Object.assign({},F,{runs:[]}),u=0,J=_.X(F.runs),g=J.next();!g.done;g=J.next())if(g=g.value,g.text)if(u+g.text.length<=q)t.runs.push(g),u+=g.text.length;else return t.runs.push(Object.assign({},g,{text:ac(g.text,q-u)})),t;return F};
D5W=function(F,q){return _.iC(F.entities,"chipBarStateEntity",q)};
Wwv=function(F,q){return _.iC(F.entities,"chipEntity",q)};
PAo=function(F,q,t,u){return function(){var J=OmP.has(F.displayType)&&F.selected,g=J&&F.deselectCommand?F.deselectCommand:F.tapCommand;!g||J&&u||_.L9(g,{form:{element:q==null?void 0:q.value}});t==null||t()}};
x5f=function(F){switch(F){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
Az$=function(F,q){return{triggeringElement:F,onDwellTriggeredFn:function(){var t={triggeringElement:F,loadVideoPreviewEventData:q},u=document.querySelector(".video-preview");u&&u.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:t}))},
onDwellEndFn:function(){var t=document.querySelector(".video-preview");t&&t.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
vXC=function(F,q){var t=_.sV().resolve(_.JU(vt_)),u=function(){var J=q();return t&&J?Az$(F.value,J):null};
_.AO(function(){var J=u();t&&J&&Promise.resolve().then(function(){t.registerElement(J)});
_.vj(function(){t&&J&&Promise.resolve().then(function(){_.UO(t,J)})})},"csPUge")};
Hm$=function(F){var q=F.dataset.resizeObserverId;if(q)return q;q=""+Ib3++;return F.dataset.resizeObserverId=q};
m5C=function(F,q){var t=Hm$(F);MR.has(t)||MR.set(t,new Set);MR.get(t).add(q);TJ.has(t)&&q(Object.assign({},{target:F},TJ.get(t)))};
$5f=function(F){F=_.X(F);for(var q=F.next();!q.done;q=F.next()){q=q.value;var t=Hm$(q.target),u=Object.assign({},{target:q.target},TJ.get(t));if(u!=null&&u.contentRect?u.contentRect.width!==q.contentRect.width||u.contentRect.height!==q.contentRect.height:1)for(TJ.set(t,{borderBoxSize:q.borderBoxSize,contentBoxSize:q.contentBoxSize,contentRect:q.contentRect,devicePixelContentBoxSize:q.devicePixelContentBoxSize}),t=_.X(MR.get(t)||[]),u=t.next();!u.done;u=t.next())u=u.value,u(q)}};
yzt=function(){return GJ?GJ:GJ=new bmq($5f)};
CAt=function(F,q){var t=Hm$(F);MR.has(t)&&(MR.get(t).delete(q),MR.get(t).size===0&&(MR.delete(t),TJ.delete(t),GJ.unobserve(F),delete F.dataset.resizeObserverId));MR.size===0&&GJ&&(GJ.disconnect(),GJ=void 0)};
V0W=function(F,q){var t=_.sV().resolve(gZ);return d5M.map(function(u){return t.observe(F,q,u)})};
U5y=function(F){var q=_.sV().resolve(gZ);F.forEach(function(t){q.unobserveByKey(t)})};
_.KwM=function(F,q){var t=Object.assign({},S2t,q);q=_.X(Pz$());var u=q.next().value,J=q.next().value,g=function(Y){var Q=Y.contentRect.height;if((Y=Y.contentRect.width)||Q||t.canHaveZeroSize)u.width()===Y&&u.height()===Q||J(u,{height:Q,width:Y})};
_.v_(function(){var Y=F instanceof HTMLElement?F:F.value,Q=hIu(g,t.throttleMs),e=[];t.useVisibilityObserver&&(e=V0W(Y,function(r,N){requestAnimationFrame(function(){N==="visible"?(m5C(Y,Q),yzt().observe(Y)):CAt(Y,Q)})}));
e.length||(m5C(Y,Q),yzt().observe(Y));_.vj(function(){e.length&&(U5y(e),e.length=0);CAt(Y,Q)})});
return u};
Lwy=function(F,q,t,u,J){F=q?F.switchOffCommand:F.switchOnCommand;if(u&&J)Bbq(F,t,J);else{var g,Y;(g=_.K9({elementsCommand:F}))==null||(Y=g.onclick)==null||Y.call(g,t)}};
Bbq=function(F,q,t){F=_.K9({elementsCommand:F,additionalCommandArgs:{commandController:{onSuccess:function(){t(!1)},
onServerError:function(){t(!1)}}}});
if(F==null?0:F.onclick)F.onclick(q),t(!0)};
ab$=function(F){if(F)return _.n(F,fbM)};
j3f=function(F,q){if(!((q==null?0:q.entitySelectorType)&&(q==null?0:q.entityKey)))return{};switch(q.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return F=_.Uc(F,q.entityKey),F=F==null?void 0:F.value,q=!1,F==="CAPTIONS_UNAVAILABLE"&&(q=!0,F=""),Object.assign({},!!F&&{selectionText:{content:F}},!!F&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:q});case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":return _.E("web_shorts_audio_track_picker")?
(F=_.Uc(F,q.entityKey),F=F==null?void 0:F.value,q=!1,F==="ALTERNATE_AUDIO_TRACK_UNAVAILABLE"&&(q=!0,F=""),Object.assign({},!q&&!!F&&{selectionText:{content:F}},!q&&!!F&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}},{isDisabled:q})):{};default:return{}}};
uC$=function(F,q,t){if(q)return[czu];switch(F){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[DM];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return t?[DM]:[FQt,DM];case "TRANSFER_STATE_PAUSED_BY_USER":return[qGW,DM];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[tPW,DM];default:return[czu]}};
JyA=function(F,q,t,u){return uC$(F,q,u).map(function(J){var g=J.text,Y=J.iconType,Q=J.videoAction;J=J.playlistAction;g=g?{content:g}:void 0;Y=Y&&{sources:[{clientResource:{imageName:Y}}]};var e=(0,_.m7.unsafeClone)(t);if(e){var r=_.n(e,_.EO),N=_.n(e,_.zl);r&&Q?r.action=Q:N&&J&&(N.action=J)}return{title:g,leadingImage:Y,rendererContext:e&&{commandContext:{onTap:{innertubeCommand:e}}}}})};
shy=function(F){F=_.b6(F.rendererContext);var q;return(q=_.n(F,_.zl))==null?void 0:q.playlistId};
gNf=function(F){var q;return(q=F.listItems)==null?void 0:q.some(function(t){var u;return _.yg((u=_.n(t,_.xC))==null?void 0:u.rendererContext)})};
YGP=function(F){var q;return(q=F.listItems)==null?void 0:q.some(function(t){var u,J,g=(J=(u=_.n(t,lIt))==null?void 0:u.defaultListItem)!=null?J:t;t=_.n(g,_.xC);return!!_.n(t==null?void 0:t.leadingAccessory,XKP)})};
ek3=function(F){var q=F.element;var t=F.veType;var u=F.storedVisualElement===void 0?null:F.storedVisualElement;var J=F.elementIndex===void 0?0:F.elementIndex;F=F.clientYouTubeData;var g=_.yb();g!==pKf&&(QhM.clear(),pKf=g);if(q.visualElement&&QhM.has(q.visualElement))return null;if(u&&QhM.has(u))return q.visualElement=u,null;t=_.GC(_.DP(),{veType:t,elementIndex:J,clientYouTubeData:F});if(!t)return null;q.visualElement=t;QhM.add(t);return t};
_.WZ=function(F,q,t,u){t=t===void 0?null:t;u=u===void 0?gJv:u;var J=J===void 0?null:J;$b(function(){if(q){t instanceof Function&&(t=t());var g=ek3({element:q,veType:F,storedVisualElement:t,clientYouTubeData:void 0});g&&(Y0W(q,J),u(g))}})};
Oo=function(F,q){if(F){switch(q){case 0:F=F.primaryTitleColor;break;case 1:F=F.secondaryTitleColor;break;case 2:F=F.surgeColor;break;case 3:F=F.section2Color;break;case 4:F=F.section3Color;break;default:return}if(F)return _.hn(F)}};
PZ=function(F,q){if(F){switch(q){case 0:F=F.primaryTitleColor;break;case 1:F=F.secondaryTitleColor;break;case 2:F=F.surgeColor;break;case 3:F=F.section2Color;break;case 4:F=F.section3Color;break;default:return}if(F)return _.hn(F)}};
ZDo=function(F){return F?_.KG(F):""};
Rky=function(F){return(F==null?void 0:F.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
ry_=function(F,q){return _.iC(F.entities,"videoOverviewAsyncDataEntity",q)};
Ni$=function(F,q){var t;return"linear-gradient(to bottom, "+((t=q==null?void 0:q.map(function(u){var J=F?u.darkThemeColor:u.lightThemeColor;return J?_.KG(J)+" "+((u==null?void 0:u.startLocation)||0)*100+"%":"transparent"}))==null?void 0:t.join(", "))+")"};
wKC=function(F,q,t,u,J){if(!((u==null?0:u.height)&&(u==null?0:u.width)))return{size:0};var g=u.width;u=u.height;if(J)return q==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||q==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&g>u?{size:312/JsC}:q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(t!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||F!==1&&F!==2||q!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&q!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&q!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(q==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||q==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||u===g)switch(F){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||u>g)switch(F){case 1:case 3:return{size:240*us$};default:return{size:360*us$}}switch(F){case 1:case 2:return{size:1/JsC*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.iD$=function(F){if(!("matchMedia"in window))return _.hN(Error("Ph")),function(){return!1};
var q=window.matchMedia(F);F=_.X(_.N3(q.matches,void 0,"jLJc8e"));var t=F.next().value,u=F.next().value,J=function(g){u(g.matches)};
q.addEventListener?(q.addEventListener("change",J),_.vj(function(){q.removeEventListener("change",J)})):q.addListener&&(q.addListener(J),_.vj(function(){q.removeListener(J)}));
return t};
kL_=function(F){return F==="IMAGE_BANNER_STYLE_INSET"||F==="IMAGE_BANNER_STYLE_UNKNOWN"};
ENu=function(){if(!("matchMedia"in window))return _.hN(Error("Ph")),function(){return 0};
var F=I5(function(){return window.matchMedia("(max-width: 527.9px)")}),q=I5(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),t=I5(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),u=I5(function(){return window.matchMedia("(min-width: 1024px)")}),J=_.X(_.N3(F.matches,void 0,"og9kEc")),g=J.next().value,Y=J.next().value;
J=_.X(_.N3(q.matches,void 0,"ybDWCb"));var Q=J.next().value,e=J.next().value;J=_.X(_.N3(t.matches,void 0,"o0Gfh"));var r=J.next().value,N=J.next().value;J=_.X(_.N3(u.matches,void 0,"yqUUgd"));var w=J.next().value,k=J.next().value,z=I5(function(){return function(H){Y(H.matches)}}),T=I5(function(){return function(H){e(H.matches)}}),P=I5(function(){return function(H){N(H.matches)}}),v=I5(function(){return function(H){k(H.matches)}});
_.v_(function(){F.addEventListener?(F.addEventListener("change",z),q.addEventListener("change",T),t.addEventListener("change",P),u.addEventListener("change",v)):F.addListener&&(F.addListener(z),q.addListener(T),t.addListener(P),u.addListener(v));_.vj(function(){F.removeEventListener?(F.removeEventListener("change",z),q.removeEventListener("change",T),t.removeEventListener("change",P),u.removeEventListener("change",v)):F.removeListener&&(F.removeListener(z),q.removeListener(T),t.removeListener(P),
u.removeListener(v))})});
return function(){return g()?1:Q()?2:r()?3:w()?4:0}};
zkW=function(F){var q=0;F=_.X([F.title,F.metadata,F.actions,F.description,F.attribution]);for(var t=F.next();!t.done;t=F.next())t.value&&q++;return q};
oNA=function(F){return F===1||F===2?1:0};
MPM=function(F){F=(new nNP).parse(F);return(new kz).render(F).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(q){var t=q.split(":").map(Number),u=0,J=0;if(t.length===3)t=_.X(t),u=t.next().value,J=t.next().value,t=t.next().value;else if(t.length===2)t=_.X(t),J=t.next().value,t=t.next().value;else if(t.length===1)t=_.X(t).next().value;else throw Error("Qh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(u*3600+J*60+t)+'" role="button">'+q+"</span>"})};
TiP=function(F){F=_.X(F.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var q=F.next(),t={};!q.done;t={clickHandler$jscomp$5:void 0},q=F.next()){q=q.value;t.clickHandler$jscomp$5=function(J){J=Number(J.target.getAttribute("data-time"));if(isNaN(J))throw Error("Rh");var g;(g=_.w0())==null||g.seekTo(J,!0)};
var u=function(J){return function(g){g.key!=="Enter"&&g.key!=="Space"||(0,J.clickHandler$jscomp$5)(g)}}(t);
q.setAttribute("tabindex","0");q.removeEventListener("click",t.clickHandler$jscomp$5);q.removeEventListener("keydown",u);q.addEventListener("click",t.clickHandler$jscomp$5);q.addEventListener("keydown",u)}};
GL3=function(){return _.Z("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.Z(xi,{percentWidth:100}),_.Z(xi,{animationDelay:200}),_.Z(xi,{animationDelay:400}),_.Z(xi,{animationDelay:600}),_.Z(xi,{animationDelay:800,percentWidth:60}),_.Z("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.Z(xi,{percentWidth:100}),_.Z(xi,{animationDelay:200}),_.Z(xi,{animationDelay:400}),_.Z(xi,{animationDelay:600,percentWidth:50}))};
xi=function(F){return _.Z("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(F.percentWidth===void 0?100:F.percentWidth)+"%"},_.Z("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(F.animationDelay===void 0?0:F.animationDelay)+"ms"}))};
DG$=function(){var F=_.X(_.N3(function(){return""},void 0,"dXJHWc")),q=F.next().value;
return[function(){return q()()},
F.next().value]};
WQv=function(F,q){F=F?oXq(F):"";q!==void 0&&isFinite(q)?q===0?q=_.oD("UPDATING",void 0,"Updating..."):(q=LSv(new Date(q),new Date),q=_.oD("UPDATED_TIME",{relative_time:q},"Updated "+q)):q="";var t="";F&&q&&(t=" \u2022 ");return _.lC(F+t+q)};
xGC=function(F,q,t,u,J,g){q=q===void 0?0:q;var Y=ODu[q],Q=Y.title,e=Y.iconType,r=Y.topButtonRenderer,N=Y.sectionClientVE;Y=Y.videoClientVE;var w;if(q!==1||F.length){t=[];F=_.X(F);for(u=F.next();!u.done;u=F.next()){var k=u.value;if(GT$(k))t.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:k.videoEntity.videoId,title:XE(k.videoEntity.title),shortBylineText:XE(k.channelEntity.title),thumbnail:k.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:k.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.oD("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Y}}}}}});else if(TXo(k)){u=t;var z=u.push;var T=void 0,P=void 0,v=void 0,H=void 0,d=void 0,a=void 0,S=void 0,K=void 0,h=k.mainPlaylistEntity.playlistId,c=k==null?void 0:(K=k.mainPlaylistEntity)==null?void 0:(S=K.thumbnailStyleData)==null?void 0:(a=S[0])==null?void 0:(d=a.value)==null?void 0:(H=d.collageThumbnail)==null?void 0:H.coverThumbnail;H=J1y(h);if(!_.E("enable_offline_playlist_page")&&
(k==null?0:(v=k.mainPlaylistEntity)==null?0:v.videos)){b:{v=k==null?void 0:(P=k.mainPlaylistEntity)==null?void 0:P.videos;P=_.u1().getState().entities;if(v!=null&&v.length&&P)for(v=_.X(v),d=v.next();!d.done;d=v.next())if(d=_.ez(d.value).entityId,(d=JSON.parse(d).videoId)&&rho(P,d)==="TRANSFER_STATE_COMPLETE"){P=d;break b}P=""}P!==void 0&&(H=hx(_.u1().getState(),P),H=_.gj(P,h,void 0,void 0,H))}P=gH3(_.oD("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),J1y(h));k=h&&c&&P?{playlistId:h,navigationEndpoint:H,
viewPlaylistText:P,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:c}},title:XE(k.mainPlaylistEntity.title),shortBylineText:XE(k==null?void 0:(T=k.channelEntity)==null?void 0:T.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Px$,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:h,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.oD("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Y}}}:
void 0;z.call(u,{gridPlaylistRenderer:k})}}Y={gridRenderer:{items:t}};q===1&&(w=WQv(J,g))}else if(u){var rf=_.lC((z=t==null?void 0:t.localizedPromptMessage)!=null?z:"");Y={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lC(_.oD("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.UC3}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lC(_.oD("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};w=WQv(J,g)}else rf=_.lC(_.oD("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
Y={};return{contents:[{shelfRenderer:{title:Q,titleAnnotation:w,icon:{iconType:e},subtitle:rf,content:Y,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:r}]}}}}],loggingDirectives:{clientVeSpec:{uiType:N}}}};
Ayy=function(F,q,t,u,J,g,Y,Q,e,r,N){t=t===void 0?{}:t;u=u===void 0?{}:u;J=J===void 0?!1:J;g=g===void 0?!1:g;Y=Y===void 0?!1:Y;Q=Q===void 0?!1:Q;e=e===void 0?!1:e;r=r===void 0?0:r;N=N===void 0?-Infinity:N;if(!(q.length||F.length||J||Q))return g?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:Y2$(t)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.lC(_.oD("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 w=[];F.length&&w.push(xGC(F,0));Q?w.push({contents:[{statementBannerRenderer:RIo(e,u)}]}):J?w.push(xGC(q,1,t,Y,r,N)):g&&w.push({contents:[{statementBannerRenderer:Q3v(t)}]});(J&&q.length||F.length)&&w.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.lC(_.oD("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 w.map(function(k){return{itemSectionRenderer:k}})};
Ai=function(F,q){if(typeof F!=="object")return null;F=_.X(Object.entries(F));for(var t=F.next();!t.done;t=F.next()){var u=_.X(t.value);t=u.next().value;u=u.next().value;if(t===q)return t;if(u=Ai(u,q))return t+"."+u}return null};
vZ=function(F){var q=F.content;return(F=F.styleRuns)&&q?{runs:F.map(function(t){var u={text:q.slice(t.startIndex,t.startIndex+t.length)};t.fontColor&&(u.textColor=t.fontColor);return u})}:{simpleText:q}};
HDq=function(F,q,t,u){var J=vN3;u&&(F.quantity=u);if(!F.quantity||!F.maxQuantity)return{};u=F.minusButton;var g=F.plusButton,Y,Q,e,r;return{value:F.quantity,maxValue:F.maxQuantity,onChangeCallback:function(N){J(F,N)},
minusLabel:(Y=_.n(u,IIt))==null?void 0:Y.label,minimumReachedLabel:(Q=_.n(u,IIt))==null?void 0:Q.limitReachedLabel,plusLabel:(e=_.n(g,IIt))==null?void 0:e.label,maximumReachedLabel:(r=_.n(g,IIt))==null?void 0:r.limitReachedLabel,disabled:q,onRemoveCommand:t}};
vN3=function(F,q){var t=F.quantityIncrementerEntityKey;if(t){var u={};u.quantity=q;_.ud(_.I4("quantityIncrementerEntity",t,u));F.onChangeCommand&&_.L9(F.onChangeCommand)}};
bD_=function(F,q){(F=mGy(F))&&((_.E("enable_mini_app_command_handler_mweb_fix")?0:q)?$Gv.push({command:F,sourceData:{},commandContext:void 0}):_.sV().resolve(_.gN).resolveCommand(F))};
mGy=function(F){return _.n(F,_.Uk)};
yyu=function(){var F=window.performance.timeOrigin+window.performance.now(),q=(new _.HZ).setSeconds(F/1E9);return _.cs(q,2,_.uw(F%1E9),0)};
dG3=function(F,q){var t;F=(t=_.n(_.n(F,_.Uk),Cxo))==null?void 0:t.methodName;var u,J;(t=window.youtubewebview||((u=window.webkit)==null?void 0:(J=u.messageHandlers)==null?void 0:J.youtubewebview))&&F&&(u=new mT,F=_.OF(u,1,F),F=_.A9(F.JSC$12376_serializeBinary()),q=_.A9(q),t.postMessage(F+","+q))};
$i=function(F,q){var t=_.n(_.n(F,_.Uk),Cxo);t&&(q&&(t.serializedAdditionalMetadata=_.A9(q)),bD_(F,!0))};
VPW=function(F){switch(F){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
UG_=function(){return!!_.bn("ID_TOKEN")};
KQP=function(F){return F instanceof Error&&F.cause instanceof SGv&&F.cause.rpcErrorCode!==void 0?!hkP.includes(F.cause.rpcErrorCode):!0};
LQP=function(){return _.j6(Bif,{authuser:""+(_.bn("SESSION_INDEX")||0)})};
bB=function(F,q,t,u){t=t===void 0?"MINI_APP_SDK_API_UNSPECIFIED":t;u=u===void 0?"":u;var J=new _.D0;t={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:u,sdkApi:t};F instanceof Error&&(J.message=F.message,J.name=F.name,F.cause instanceof SGv&&F.cause.rpcErrorCode!==void 0&&(t.rpcErrorCode=F.cause.rpcErrorCode));var g;(g=q.onError)==null||g.call(q,{loggingError:J,metadata:t})};
aIy=function(F,q,t,u){switch(F){case "MINI_APP_SOURCE_GAMESNACKS":return new y7(q,t,u);default:return new fI3(q,t,u)}};
jho=function(F){switch(F){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
cyy=function(F){switch(F){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
FkC=function(F){switch(F){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
q$P=function(){return Math.floor(Math.random()*4)+1};
toy=function(F,q,t,u){F=_.X(Object.entries(F));for(var J=F.next(),g={};!J.done;g={message$jscomp$994:void 0},J=F.next()){var Y=_.X(J.value);J=Y.next().value;Y=Y.next().value;g.message$jscomp$994=Y;q.push(setTimeout(function(Q){return function(){u(!1);t(Q.message$jscomp$994.text)}}(g),g.message$jscomp$994.delayMs));
Number(J)>0&&q.push(setTimeout(function(){u(!0)},g.message$jscomp$994.delayMs-400))}};
ul_=function(F,q){var t=t===void 0?gJv:t;_.E("mweb_fix_monitor_visibility_after_render")?F&&$b(function(){Y0W(F,q,t)}):$b(function(){Y0W(F,q,t)})};
lgt=function(F){JAM||(JAM=sPP(new _.B5(1,void 0,void 0,gYy),0));var q=JAM.format(Math.floor(F));q=_.Kj==="be"||_.Kj==="bg"||_.Kj==="es"||_.Kj==="et"||_.Kj==="hu"||_.Kj==="ka"||_.Kj==="lv"||_.Kj==="pl"||_.Kj==="pt-PT"||_.Kj==="sq"?q.replace(new RegExp("^(\\d)"+gYy.GROUP_SEP.replace(".","\\.")+"(\\d+("+gYy.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):q;return F>=1E3&&F<=9999&&q[1]==="."&&(_.Kj==="sl"||_.Kj==="it")?q.replace(".",""):q};
XwW=function(F,q){GXW("ytd-button-renderer",{data:F,className:q?q.className:"",overrides:q==null?void 0:q.buttonOverrides},xL3)};
QP$=function(F,q,t,u){if(F)return u=u||F.likeStatus,q?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:u==="LIKE",isDisabled:!F.likesAllowed,defaultIcon:{iconType:t},defaultText:u==="LIKE"?F.likeCountWithUnlikeText:F.likeCountText,toggledText:u==="LIKE"?F.likeCountText:F.likeCountWithLikeText,defaultNavigationEndpoint:Y$_(F,"LIKE"),defaultServiceEndpoint:pw_(F,"LIKE"),toggledServiceEndpoint:pw_(F,"INDIFFERENT"),defaultTooltip:_.q1(F.likeCountTooltipText),toggledTooltip:_.q1(F.likeCountTooltipText),
targetId:F.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:u==="DISLIKE",isDisabled:!F.likesAllowed,defaultIcon:{iconType:t},defaultText:u==="DISLIKE"?F.dislikeCountWithUndislikeText:F.dislikeCountText,toggledText:u==="DISLIKE"?F.dislikeCountText:F.dislikeCountWithDislikeText,defaultNavigationEndpoint:Y$_(F,"DISLIKE"),defaultServiceEndpoint:pw_(F,"DISLIKE"),toggledServiceEndpoint:pw_(F,"INDIFFERENT"),defaultTooltip:_.q1(F.dislikeCountTooltipText),
toggledTooltip:_.q1(F.dislikeCountTooltipText)}};
Y$_=function(F,q){if(q==="LIKE")return F.likeCommand;if(q==="DISLIKE")return F.dislikeNavigationEndpoint};
pw_=function(F,q){var t;return(t=F.serviceEndpoints)==null?void 0:t.find(function(u){var J;return((J=_.n(u,_.Cw))==null?void 0:J.status)===q})};
_.Rco=function(F,q,t){return window.spf&&!_.E("web_disable_spfjs_client")?ecC(F,q,t):ZzA(F,q)};
ecC=function(F,q,t){var u=null,J=(new _.iz(function(g,Y){var Q={};if(q){Q.method=q.method;var e=q.postParams||{};cVf(F,q)&&(e[_.bn("XSRF_FIELD_NAME")]=_.bn("XSRF_TOKEN"));Q.postData=_.kE(e);q.type&&(Q.type=q.type);e=q.headers}Q.headers=KjA(F,e);_.E("debug_forward_web_query_parameters")&&(F=_.alu(F,window.location.search));Q.experimental_headers=Q.headers;Q.onError=function(r){r.err&&r.xhr&&(r.err.params={url:r.xhr.responseURL,response:r.xhr.responseText.substr(0,64)});Y(r.err)};
Q.onPartDone=function(r){t&&t.call(null,r.part)};
Q.onDone=function(r){var N=rAt(r.response,"xsrf_token");qh(window.location.href,F)&&N&&_.$I("XSRF_TOKEN",N);if(N=rAt(r.response,"service_worker_killswitch"))_.$I("SERVICE_WORKER_KILLSWITCH",N),d7u();g(r.response)};
u=spf.request(F,Q)})).then(NT3);
J.thenCatch(function(g){var Y=g instanceof _.dI,Q=g&&g.hasOwnProperty("params")&&g.params.response?g.params.response:"";g instanceof Error&&(Q?Y?HHt(g):Q===')]}\'\n{"reload":"now"}'?HHt(g):(ww$(g,F,Q),iz$(g,Q)?_.bz(g):_.mH(g)):HHt(g));u&&u.abort()});
return J};
NT3=function(F){if(F.type==="multipart"){var q=F.timing;F=F.parts.reduce(function(t,u){Object.assign(t,u);return t},{});
F.timing=F.timing||{};Object.assign(F.timing,q);F.type="reduced"}return F};
ZzA=function(F,q){q=q===void 0?{}:q;var t=null,u=new _.iz(function(J,g){q.onFinish=function(Y){if(Y.readyState===XMLHttpRequest.DONE)if(Y.status===200){if(Y.responseType!=="json"){var Q=Y.response;Q.substring(0,5)===")]}'\n"&&(Q=Q.substring(5));try{var e=JSON.parse(Q)}catch(r){e=r}}else e=Y.response;e instanceof Error?g(e):(Q=rAt(e,"xsrf_token"),qh(window.location.href,F)&&Q&&_.$I("XSRF_TOKEN",Q),Y=Y.responseURL,window.performance&&window.performance.getEntriesByName?(Q=window.performance.getEntriesByName(Y).pop())?
Y={responseStart:(0,_.gB)()-(Q.responseEnd-Q.responseStart)}:(Math.random()<.01&&(Q=Error("ci"),Q.params=Y,_.bz(Q)),Y={responseStart:-1}):Y={responseStart:0},e.timing=e.timing||{},Object.assign(e.timing,Y),J(e))}else g(Error("bi`"+Y.status))};
(t=_.iK(F,q))||g(Error("bi`"+t.status))});
u.thenCatch(function(J){J instanceof Error&&(ww$(J,F),iz$(J)&&(J.level="WARNING"))});
_.E("cancel_pending_navs")&&u.thenCatch(function(){t.abort()});
return u};
rAt=function(F,q){var t=F[q],u=F.parts;F.type==="multipart"&&u&&(t=(F=u.find(function(J){return q in J}))&&F[q]);
return t};
ww$=function(F,q,t){var u=F.message||"";q={original:u,url:q};if(t)if(u=u.match(/position:?\s*(\d+)/)){u=u&&Number(u[1])?Number(u[1]):0;var J=Math.max(u-25,0);q.position=u;q.response=t.substring(J,u+25)}else q.response=t.substring(0,50);_.yw(F,q);try{F.message="JSON parse error"}catch(g){}};
iz$=function(F,q){F=F.message||"";F=!!(F.indexOf("<")>=0||F.indexOf("end of ")>=0||F.indexOf("Unterminated string")>=0||F.indexOf("Unexpected EOF"));if(!F&&q)for(var t=q.length,u=!1,J=0;J<t;J++)if(u&&q[J]==="\\")J++;else if(q[J]==='"')u=!u;else if(q[J]==="<"&&!u){F=!0;break}return F};
kBq=function(){return document.documentElement.hasAttribute("dark")};
_.EYv=function(F,q){if(F!=="GFEEDBACK"&&F!=="GUIDED_HELP")_.CI(Error("di`"+F));else{var t=_.sV().resolve(_.JU(_.JC));if(t&&(t=t.getCurrentPage())&&t.getServiceTrackingParams&&(t=t.getServiceTrackingParams()))for(var u=0,J;J=t[u++];)if(J.service===F){if(F=J.params)for(t=0;u=F[t++];)q[u.key]=u.value;break}}};
_.zco=function(F){var q=_.g0();q&&(q=q.getPlayer())&&(q.pauseVideo(),F.playback_id=q.getVideoData().cpn,F.eid=q.getVideoData().eventId,Object.assign(F,q.getFeedbackProductData()))};
oYo=function(){var F={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.bn("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(F.enableAnonymousFeedback=!0);_.bn("SESSION_INDEX")&&(F.authuser=String(_.bn("SESSION_INDEX")));_.E("enable_pageid_for_feedback")&&_.bn("DELEGATED_SESSION_ID")&&(F.pageId=String(_.bn("DELEGATED_SESSION_ID")));return F};
_.V7=function(F){_.E("enable_ypc_spinners")&&_.ec(F,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},F])};
_.Uo=function(F){_.E("enable_ypc_spinners")&&_.ec(F,"yt-close-popup-action",["yt-loading-renderer"])};
nY_=function(F){return new Promise(function(q,t){_.hv({verifyCommand:{recaptchaToken:F.recaptchaResponse}},{commandController:{onSuccess:function(u,J){J||t("ChallengeService did not return a response.");var g;q({challengeCompleted:(g=J.verified)!=null?g:!1})},
onServerError:function(u,J){t(J)}}})})};
Moo=function(F,q,t,u){q({recaptchaResponse:u}).then(function(J){J.challengeCompleted?_.Mh()?(t(3),_.sV().resolve(_.gN).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:F}})):t(2):t(4)},function(){t(4)})};
GBt=function(F,q,t){_.KB(_.RV(TTf,_.bn("HL")),function(){var u;(u=window.grecaptcha)==null||u.ready(function(){var J=window.grecaptcha;J?(t(J.render(F,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Moo.bind(null,F,nY_,q)})),q(1)):q(4)})})};
Df$=function(F,q){return function(){switch(q()){case 0:return F().captchaLoadingMessage;case 1:return F().challengeReason;case 3:return F().captchaSuccessfulMessage;case 2:return F().captchaCookieSetFailureMessage;case 4:return F().captchaFailedMessage;default:return F().challengeReason}}()};
_.Sx=function(){if(!Wk3){var F=document.querySelector("#player.skeleton");F&&(_.Mq(F),Wk3=!0)}};
_.P3v=function(){return Ozo=dTu()};
vYC=function(){return _.p(function(F){return xf$!==void 0?F.return():F.yield(AA$(),0)})};
AA$=function(){return _.p(function(F){if(F.nextAddress==1)return F.yield(UTM(),2);Ozo=F.yieldResult;xf$=_.mI.addLowPriorityJob(AA$,5E3);_.WA(F)})};
yAv=function(F){var q=q===void 0?Igv:q;var t,u,J=(t=F.responseContext)==null?void 0:(u=t.mainAppWebResponseContext)==null?void 0:u.trackingParam;if(!J){q.increment("MISSING");var g,Y,Q,e,r,N;_.bz(new _.D0("282054944_a",{kTt:!!((g=F.responseContext)==null?0:(Y=g.mainAppWebResponseContext)==null?0:Y.loggedOut),njD:((Q=F.responseContext)==null?void 0:Q.mainAppWebResponseContext)===void 0,hl7:F.responseContext===void 0,cp:(e=F.playabilityStatus)==null?void 0:e.contextParams,jje:(((r=F.streamingData)==
null?void 0:r.formats)||[]).length>0,ipC:(((N=F.streamingData)==null?void 0:N.adaptiveFormats)||[]).length>0,os:!!F.offlineState,cotn:F.cotn}));return 2}t="";try{t=Hzo(J)}catch(z){return q.increment("C_ERROR"),_.mH(z),2}try{var w=_.mf$(t);var k=$fo(w)}catch(z){return q.increment("P_ERROR"),_.mH(z),2}k=_.XN(k,bz3,1,_.YW());J=[];k=_.X(k);for(w=k.next();!w.done;w=k.next())u=w.value,w=u.getPath(),t=(0,_.m7.getValueByKeys)(F,w.split(".")),t=String(t===void 0||t===null?"":t),u=u.getValue()||"",g=/[+\-\/_]/g,
t.replace(g,"")!==u.replace(g,"")&&(q.increment("MISMATCH"),_.E("ab_mis_log_err")&&(t=new _.D0("282054944_p",{o3t:w,g:String(t),e:String(u)}),_.mH(t)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(w)||(w.match(/enforcementMessageViewModel/i)?J.push(3):J.push(2)));if(J.length>0)return Math.max.apply(Math,_.mZ(J));q.increment("SUCCESS");return 1};
Vo$=function(F){var q=new hi;if(F.interpreterJavascript){var t=_.W63(F.interpreterJavascript);t=XAo(t).toString();var u=new C3f;_.OF(u,6,t);_.My(q,1,u,Ov)}else F.interpreterUrl&&(t=_.$w(F.interpreterUrl),t=_.PS(t).toString(),u=new _.dfP,_.OF(u,4,t),_.My(q,2,u,Ov));F.interpreterHash&&_.Kw(q,3,F.interpreterHash,Ov);F.program&&_.Kw(q,4,F.program,Ov);F.globalName&&_.Kw(q,5,F.globalName,Ov);F.clientExperimentsStateBlob&&_.Kw(q,7,F.clientExperimentsStateBlob,Ov);return q};
BZ=function(F){var q={};F=_.X(F.split("&"));for(var t=F.next();!t.done;t=F.next())t=t.value.split("="),t.length===2&&(q[t[0]]=t[1]);return q};
Ufy=function(F){return Number(F.t)||7200};
xMW=function(){if(_.E("bg_st_hr"))return"havuokmhhs-0";var F,q=((F=performance)==null?void 0:F.timeOrigin)||0;return"havuokmhhs-"+Math.floor(q)};
S$q=function(){return new Promise(function(F){var q=window;q.ntpevasrs!==void 0?F(new Lw(q.ntpevasrs)):(q.ntpqfbel===void 0&&(q.ntpqfbel=[]),q.ntpqfbel.push(function(t){F(new Lw(t))}))})};
hct=function(F){var q=F.vnR.bind(F);_.uo("yt.aba.att",q);F=F.sr1.bind(F);_.uo("yt.aba.att2",F)};
BT3=function(F){switch(_.wN(F.input)){case _.Jn(Kko):var q={};return q.encryptedVideoId=F.innerTubeRequest.externalVideoId,q}return{}};
agP=function(F){switch(_.wN(F.input)){case _.Jn(Kko):if(_.E("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Jn(Lk_):if(_.E("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.Jn(fw):if(_.E("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&F.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Jn(fgy):var q,t;if(_.E("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((t=_.n((q=F.config)==null?void 0:q.command,LGv))==null?0:t.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.cAW=function(F){var q;if(F.playlistVideoRenderer&&((q=F.playlistVideoRenderer)==null?0:q.engagementBar))return jP_(F.playlistVideoRenderer.engagementBar);if(_.n(F,a4)){var t;if(F=(t=_.n(F,a4))==null?void 0:t.engagementBar)return jP_(F)}return""};
jP_=function(F){if(!F)return"";F=_.n(F,_.F5o);if(F==null||!F.actions)return"";F=_.X(F.actions);for(F=F.next();!F.done;F=F.next()){F=_.n(F.value,_.qgM);var q=void 0;if((q=F)==null||!q.itemId)break;return F.itemId}return""};
_.t_q=function(F){var q;if(F.playlistVideoRenderer&&((q=F.playlistVideoRenderer)==null?0:q.videoId))return F.playlistVideoRenderer.videoId;if(_.n(F,a4)){var t,u;if(F=(t=_.n(F,a4))==null?void 0:(u=t.playlistItemData)==null?void 0:u.videoId)return F}return""};
_.ux_=function(F){var q;if(F.playlistVideoRenderer&&((q=F.playlistVideoRenderer)==null?0:q.voteCount))return F.playlistVideoRenderer.voteCount;if(_.n(F,a4)){var t,u;if(F=(t=_.n(F,a4))==null?void 0:(u=t.playlistItemData)==null?void 0:u.voteCount)return F}return 0};
_.jx=function(F,q){return _.iC(F.entities,"flowStateEntity",q)};
sU$=function(F,q,t,u){var J=void 0;F=_.X(F[q.iconName]||[]);for(var g=F.next();!g.done;g=F.next()){g=g.value;var Y=q.iconSize;var Q=q.iconStyle;Y=!Y||Y===g[2];var e=J6f[g[0]];u&&u!==g[1]||!Y||Q&&Q!==e?Q=!1:J?(Q=J6f[g[0]],Q=!!q.iconStyle||Q==="youtube_outline",Y=J.version<=g[1],Q=(!!q.iconSize||g[2]===24)&&Q&&Y):Q=!0;Q&&(J={name:q.iconName,style:J6f[g[0]],size:g[2],version:g[1],allowMirroring:!!g[3],url:t(q.iconName,g)})}return J};
gaP=function(F,q,t,u){return F+(""+J6f[t[0]]+((u===void 0?0:u)?"_experimental":"")+"/"+q+"/v"+t[1]+"/")+(t[2]+"px.svg")};
liy=function(F){return _.bn("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":F};
Xa$=function(F,q){return gaP("https://fonts.gstatic.com/s/i/",F,q)};
YgC=function(F,q){return gaP("https://fonts.gstatic.com/s/i/",F,q,!0)};
pao=function(F,q){return gaP("https://www.gstatic.com/youtube/img/icons/web/",F,q)};
eVW=function(F){var q=F.enabled;var t=F.itemPlaybackModel;var u=F.thumbnailElRef;var J=F.containerElRef;var g=F.options;var Y;_.AO(function(){var Q=J==null?void 0:J.value;var e,r=(e=u())==null?void 0:e.value;e=t();var N=g();if(q&&e&&Q&&r&&(N==null?0:N.thumbnail)){var w={data:e,hostElement:Q},k,z,T=_.E("web_explore_hub_on_hover")||_.E("web_client_explore_hub_on_hover")?[].concat(_.mZ((k=N.thumbnailOverlays)!=null?k:[]),_.mZ((z=e.overlays)!=null?z:[])):N.thumbnailOverlays||[],P,v;Q={mediaRenderer:w,
lockupElement:Q,thumbnailElement:r,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Sg((P=e.inlinePlayerData)==null?void 0:P.onVisible),navigationEndpoint:_.Sg((v=e.inlinePlayerData)==null?void 0:v.onSelect),thumbnail:N.thumbnail,thumbnailOverlays:T,accessibilityText:N.accessibilityText||""},thumbnailSize:N.thumbnailSize,enableRounding:N.enableRounding}}}else Q=void 0;if(P=Q){var H;(H=Y)==null||cZ(H);Y=Vg(P);var d,a;((d=t())==null?0:(a=d.inlinePlayerData)==null?0:a.forceImpAutoplay)&&
QUy(Y)}},"B33dEc");
_.vj(function(){var Q;(Q=Y)==null||cZ(Q)})};
ZSt=function(F){F=atob(F);for(var q=[],t=0;t<F.length;t++)q.push(F.charCodeAt(t));return new Blob([new Uint8Array(q)],{type:"image/png"})};
r6M=function(F,q,t,u){u=u===void 0?"INSERTION_POSITION_UNSPECIFIED":u;return F({targetId:q},function(J){var g,Y=(g=J.contents)!=null?g:[];g=t!=null?t:[];var Q=RV$(Y);switch(u){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},J,{contents:[].concat(_.mZ(Y.slice(0,Q)),_.mZ(g),_.mZ(Y.slice(Q+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},J,{contents:[].concat(_.mZ(g),_.mZ(Y))});case "INSERTION_POSITION_LAST":return Object.assign({},J,{contents:[].concat(_.mZ(Y),_.mZ(g))});
default:return J}})};
wa$=function(F,q,t,u,J){J=J===void 0?"RELATIVE_INSERTION_POSITION_AFTER":J;return F({targetId:q},function(g){var Y,Q=(Y=g.contents)!=null?Y:[];Y=NH_(Q,t);if(Y<0)return g;Y=J==="RELATIVE_INSERTION_POSITION_BEFORE"?Y:Y+1;return Object.assign({},g,{contents:[].concat(_.mZ(Q.slice(0,Y)),_.mZ(u),_.mZ(Q.slice(Y)))})})};
RV$=function(F){var q=F.findIndex(function(t){return _.n(t,_.F9)});
return q>=0?q:F.length};
NH_=function(F,q){return F.findIndex(function(t){a:{t=_.X(Object.values(t));for(var u=t.next();!u.done;u=t.next())if((u=u.value)&&u.targetId){t=u.targetId;break a}t=""}return t===q})};
k$t=function(F,q,t){return F({targetId:q},function(u){var J,g=(J=u.contents)!=null?J:[];return Object.assign({},u,{contents:iSo(g,t)})})};
iSo=function(F,q){return F.filter(function(t){var u=q.includes;a:{t=_.X(Object.values(t));for(var J=t.next();!J.done;J=t.next())if((J=J.value)&&J.targetId){t=J.targetId;break a}t=""}return!u.call(q,t||"")})};
_.Ea3=function(F,q){return{engagementPanelSectionListRenderer:{panelIdentifier:F,identifier:q,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
zVA=function(F,q){F=F.getAvailableAudioTracks();if(F.length)return F==null?void 0:F.find(function(t){var u;return(t==null?void 0:(u=t.getLanguageInfo())==null?void 0:u.getId())===q})};
_.naC=function(F){var q,t=(q=F.getOption("captions","tracklist",{includeAsr:!0}))!=null?q:[];return t=oa3(t,F)};
M_M=function(F){return F.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
oa3=function(F,q){q=M_M(q);if(q==null||!q.length)return F;var t=q.filter(function(Y){return Y});
q=F.filter(function(Y){return Y.languageCode.startsWith("en")});
t=_.X(t);for(var u=t.next();!u.done;u=t.next())if(u=u.value,q.length){var J=q[0],g=Object.assign({},J);J.languageCode!==u.languageCode&&(g.displayName=J.languageName+" >> "+u.languageName,g.translationLanguage=u,F.push(g))}return F};
THv=function(F,q,t){F=_.naC(F);if(F.length)return t?F.find(function(u){if(typeof(u==null?void 0:u.translationLanguage)==="object"){var J;return((J=u.translationLanguage)==null?void 0:J.languageCode)===q}return!1}):F==null?void 0:F.find(function(u){return u.languageCode===q})};
G$C=function(F){return F.getOption("captions","tracklist",{includeAsr:!0})};
DYf=function(F){var q=F.getAvailableAudioTracks();if(q!=null&&q.length){var t=F.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.mZ(q.map(function(u){return{listItemViewModel:{title:{content:u.getLanguageInfo().getName()},isSelected:u.getLanguageInfo().getId()===(t==null?void 0:t.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:u.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
W5v=function(F){return F.getOption("captions","tracklist",{includeAsr:!0})};
OSM=function(F){var q=W5v(F);if(q==null?0:q.length)return q;F.loadModule("captions");return W5v(F)};
PMC=function(F){var q=F.getOption("captions","track");if(q)return q;F.loadModule("captions");return F.getOption("captions","track")};
A6C=function(F){var q=OSM(F);if(q!=null&&q.length){var t=PMC(F),u;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.oD("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(t==null?0:t.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.mZ(q.map(function(J){return{listItemViewModel:{title:{content:J.displayName},
isSelected:J.displayName===(t==null?void 0:t.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:J.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.oD("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!t.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!t.translationLanguage&&{selectionText:{content:(t==null?void 0:(u=t.translationLanguage)==null?void 0:u.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[xYt(F)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
xYt=function(F){var q=M_M(F);if(q==null||!q.length)throw Error("Ci");var t=PMC(F);F=q.filter(function(u){return!u.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.mZ(F.map(function(u){var J;return{listItemViewModel:{title:{content:u.languageName},isSelected:u.languageName===(t==null?void 0:(J=t.translationLanguage)==null?void 0:J.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:u.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
mYM=function(F){return new Promise(function(q,t){if(F===void 0)_.mH(Error("Gi"),"ERROR"),t(Error("Gi"));else{t=new _.vaP;var u=_.Iit();t=t.init();var J=_.HS_(_.bn("YPC_MB_URL"),!0);Promise.all([t,J]).then(function(){var g=payments.business.integration.ClientTokenFactory.createClientToken(F,u);q(g)})}})};
y6y=function(F,q,t,u,J,g,Y){var Q=_.ji();t=t.replace(/-/g,"+").replace(/_/g,"/");var e=_.TV().get("hl"),r=_.qF(_.qs),N=q==null?void 0:q.element;N&&_.V7(N);$YC(q,!0);_.bS$(r,t,Q.resolve,function(){N&&_.Uo(N)},function(w){N&&_.Uo(N);
Q.reject(w)},e,u?function(w){u&&_.aI(F,u,{backend_analytics:w})}:void 0,Q.resolve,J,g,Y);
return Q.promise};
$YC=function(F,q){!(F=F==null?void 0:F.element)||F.tagName!=="YT-BUTTON-RENDERER"&&F.tagName!=="YTD-BUTTON-RENDERER"||(F.disabled=q)};
CMu=function(){var F=_.oD("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.lC(F),actionButton:{buttonRenderer:gXW()}}},popupType:"TOAST"}};
dYo=function(){var F=_.oD("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.lC(F),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
V_P=function(F){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:F}]}}};
tX=function(F,q,t,u){var J;return _.p(function(g){if(g.nextAddress==1)return _.zg(g,2),g.yield(F,4);if(g.nextAddress!=2)return(J=_.Of(q.getState().entities).length>0)?g.return({title:_.lC(_.oD("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.lC(_.oD("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:s33()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
g.return(lb$(t,u));_.Gg(g);return g.return(lb$(t,u))})};
UYq=function(F,q){return q?q==="PPSV"||iCf(F,q):!1};
SgP=function(F){F.responseContext||(F.responseContext={});F.responseContext.maxAgeSeconds=0;return F};
JX=function(F){var q;return _.p(function(t){return t.nextAddress==1?t.yield(hV_(F,"service:topbar:fallback"),2):(q=t.yieldResult)&&_.uZ(q)?t.return(SgP(_.uZ(q))):t.return()})};
K5W=function(F){var q;return _.p(function(t){return t.nextAddress==1?t.yield(hV_(F,"service:downloads_settings:fallback"),2):(q=t.yieldResult)&&_.uZ(q)?t.return(q):t.return()})};
hV_=function(F,q){var t;return _.p(function(u){if(u.nextAddress==1)return F?u.yield(F.get(q),2):u.return();t=u.yieldResult;return!t||!_.uZ(t)||!isNaN(Number(t.data.expireTimestampMs))&&t.isExpired()?u.return():u.return(t)})};
BHq=function(F){var q=_.sV().resolve(sL).getState().entities;return F.playlistId?UYq(q,F.playlistId):!1};
L5$=function(F,q){var t;if(q==null?0:(t=q.requestTemplate)==null?0:t.panelId)F.panelId=q.requestTemplate.panelId;var u;if(q==null?0:(u=q.requestTemplate)==null?0:u.params)F.params=q.requestTemplate.params};
aio=function(){if(fiu)return fiu();var F=!_.E("idb_response_store_auth_killswitch"),q={};fiu=sI("yt-it-response-store",{objectStores:(q.ResponseStore={addedAtVersion:1},q),shared:!F,upgrade:function(t,u){u(1)&&(t=UI(t,"ResponseStore",{keyPath:["key","clientName"]}),S1(t,"byExpiration","expireTimestampMs"),S1(t,"byInterface","clientName"))},
version:1});return fiu()};
jUW=function(F){return _.am(aio(),F)};
Fdy=function(F,q){var t;return _.p(function(u){return u.nextAddress==1?u.yield(_.JD(),2):(t=u.yieldResult)?u.return(new c6y(F,q,t)):u.return()})};
qQC=function(F){var q=Object.keys(F)[0];if(q)return F.screenExit&&(q=q+";"+F.screenExit.screen),q};
tby=function(F){var q=new Map;F=_.X(F);for(var t=F.next();!t.done;t=F.next())t=t.value,t!=null&&(q.has(t.taskType)||q.set(t.taskType,[]),q.get(t.taskType).push(t));return q};
ugo=function(F){return!isNaN(F)&&F>0};
J2M=function(F){F=[].concat(_.mZ(F)).sort(function(t,u){return t-u});
var q=Math.floor(F.length/2);return F.length%2?F[q]:(F[q-1]+F[q])/2};
lhf=function(F,q){F=F===void 0?ECu:F;q=q===void 0?{}:q;_.uo("yt.logging.errors.log",_.mH);iHo();sdo(T0W(),q);window.onerror=F;g_q=klt;window.addEventListener("unhandledrejection",function(t){if(t.reason instanceof Error){var u=t.reason;_.yw(u,{source:"unhandledrejection"});u.name==="AbortError"&&(u.level="WARNING")}klt(t.reason);t.preventDefault()})};
_.X4y=function(F){var q,t,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S,K,h,c,rf,Zv,kP,n3,o_,df,m$,gx,Hf,Zw,cy,wx,Rj,xO,DQ,fe,sM;return _.p(function(FL){if(FL.nextAddress==1)return FL.yield(_.Mp(F,{mode:"readonly",enableRetries:!0},function(Ev){return T5(Ev,"playbackData").then(function(e5){var z1=e5.map(function(pe){return pe.transfer}).filter(function(pe){return!!pe}),qD=e5.map(function(pe){return pe.offlineVideoPolicy}).filter(function(pe){return!!pe}),gL=e5.filter(function(pe){return!!pe.key}).map(function(pe){return _.wj(_.ez(pe.key).entityId,
"downloadStatusEntity")});
z1=T5(Ev,"transfer",z1);qD=T5(Ev,"offlineVideoPolicy",qD);gL=T5(Ev,"downloadStatusEntity",gL);var F3=z1.then(function(pe){pe=pe.reduce(function(Bf,wJ){(wJ==null?0:wJ.offlineVideoStreams)&&Bf.push.apply(Bf,_.mZ(wJ.offlineVideoStreams));return Bf},[]).filter(function(Bf){return!!Bf});
return T5(Ev,"offlineVideoStreams",pe)});
return UV.all([z1,qD,F3,gL]).then(function(pe){var Bf=_.X(pe);pe=Bf.next().value;var wJ=Bf.next().value;var Dw=Bf.next().value;Bf=Bf.next().value;return[e5,pe,wJ,Dw,Bf]})})}),2);
if(FL.nextAddress!=3)return q=FL.yieldResult,FL.yield(_.Mp(F,{mode:"readonly",enableRetries:!0},function(Ev){return T5(Ev,"mainDownloadsListEntity").then(function(e5){var z1,qD;return(qD=(z1=e5[0])==null?void 0:z1.downloads)!=null?qD:[]})}),3);
t=FL.yieldResult;u=_.X(q);J=u.next().value;g=u.next().value;Y=u.next().value;Q=u.next().value;e=u.next().value;r=J;N=g;w=Y;k=Q;z=e;T={};P={};v={};H={};d={};a=[];S=_.X(N);for(K=S.next();!K.done;K=S.next())(h=K.value)&&(T[h.key]=h);c=_.X(w);for(rf=c.next();!rf.done;rf=c.next())(Zv=rf.value)&&(P[Zv.key]=Zv);kP=_.X(z);for(n3=kP.next();!n3.done;n3=kP.next())(o_=n3.value)&&(v[o_.key]=o_);df=_.X(k);for(m$=df.next();!m$.done;m$=df.next())(gx=m$.value)&&(H[gx.key]=gx);Hf=_.X(t);for(Zw=Hf.next();!Zw.done;Zw=
Hf.next())cy=Zw.value,wx=void 0,d[(wx=cy.videoItem)!=null?wx:""]=!0,cy.videoItem&&(xO=Rj=void 0,DQ=(xO=(Rj=_.ez(cy.videoItem))==null?void 0:Rj.entityId)!=null?xO:"",a.push({externalVideoId:DQ}));fe=r.filter(function(Ev){if(!Ev||!Ev.key||!Ev.offlineVideoPolicy)return!1;Ev=_.ez(Ev.key).entityId;Ev=_.wj(Ev,"downloadStatusEntity");var e5;return!(Ev&&((e5=v[Ev])==null?void 0:e5.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
sM=fe.map(function(Ev){var e5=T[Ev.transfer],z1=[];if(e5==null?0:e5.offlineVideoStreams)for(var qD=_.X(e5.offlineVideoStreams),gL=qD.next();!gL.done;gL=qD.next())(gL=H[gL.value])&&z1.push(gL);qD=P[Ev.offlineVideoPolicy];gL=d;var F3=Ev==null?void 0:Ev.playerResponseTimestamp,pe=_.ez(qD.key).entityId;Ev=_.wj(pe,"mainVideoEntity");if(qD.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Bf="OFFLINE_VIDEO_STATE_DISABLED";qD.expirationTimestamp&&Number(qD.expirationTimestamp)<Date.now()/1E3&&(Bf="OFFLINE_VIDEO_STATE_EXPIRED")}else if(qD.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Bf="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(e5==null?void 0:e5.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Bf="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Bf="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Bf="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Bf="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Bf="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Bf="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Bf="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Bf==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(e5==null?void 0:e5.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Bf="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Bf="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Bf=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}pe={id:pe,videoState:Bf};if(e5==null?0:e5.cotn)pe.cotn=e5.cotn;if(e5==null?0:e5.maximumDownloadQuality)pe.selectedVideoQuality=e5==null?void 0:e5.maximumDownloadQuality;if(e5==null?0:e5.lastProgressTimeMs)pe.lastProgressTimeMs=e5.lastProgressTimeMs;F3&&(pe.playerResponseSavedTimeMs=String(Number(F3)*1E3));e5=String;F3=0;z1=_.X(z1);for(Bf=z1.next();!Bf.done;Bf=z1.next())if(Bf=Bf.value,Bf.streamsProgress){Bf=_.X(Bf.streamsProgress);for(var wJ=Bf.next();!wJ.done;wJ=
Bf.next()){var Dw=void 0;F3+=Number((Dw=wJ.value.numBytesDownloaded)!=null?Dw:0)}}pe.downloadedBytes=e5(F3);pe.selectedOfflineMode=gL[Ev]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";qD.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(pe.offlinePlaybackDisabledReason=qD.offlinePlaybackDisabledReason);return pe});
return FL.return({offlineVideos:sM,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:a}}})})};
YQC=function(){var F;return _.p(function(q){return q.nextAddress==1?q.yield(_.z5(),2):(F=q.yieldResult)?q.return(_.X4y(F)):q.return({state:"PES Unavailable"})})};
e1_=function(){var F,q,t,u;return _.p(function(J){if(J.nextAddress==1)return J.yield(_.z5(),2);if(J.nextAddress!=3)return(F=J.yieldResult)?J.yield(p4o(F),3):J.return({state:"PES Unavailable"});q=J.yieldResult;t={};u=q.reduce(function(g,Y){g[Y.key]=Y;return g},t);
return J.return(Qd$(u))})};
Qd$=function(F){for(var q={},t=[],u=_.X(Object.keys(F)),J=u.next();!J.done;J=u.next()){var g=J.value;J=F[g];var Y=void 0;if(((Y=J)==null?void 0:Y.entityType)==="mainVideoEntity"){delete F[g];var Q=J.data;J={};if(Q){var e=void 0;Y=(e=Q.videoId)!=null?e:"vid-"+g;g=F;J.video=Q;delete J.video.formattedDescription;delete J.video.thumbnail;Q.owner&&(e=g[Q.owner],e==null?0:e.data)&&(delete g[e.key],J.video.owner=e.data,delete J.video.owner.avatar);if(Q=Q.downloadState)if(e=g[Q],e==null?0:e.data)if(delete g[Q],
Q=e.data.playbackData)if(e=g[Q],e!=null&&e.data){delete g[Q];Q=e.data;delete Q.playerResponseJson;J.playbackData=Q;if(Q.transfer&&(e=g[Q.transfer],e==null?0:e.data)){delete g[e.key];var r=e.data;J.transfer=r;e=[];r=_.X(r.offlineVideoStreams||[]);for(var N=r.next();!N.done;N=r.next())if(N=g[N.value])delete g[N.key],e.push(N.data);e&&(J.streams=e)}(Q=Q.offlineVideoPolicy)&&(Q=g[Q])&&Q.data&&(delete g[Q.key],J.offlineVideoPolicy=Q.data)}q[Y]=J}}else J&&J.entityType==="offlineOrchestrationActionWrapperEntity"&&
J.data&&(delete F[J.key],Y=J.data,g=void 0,t.push({id:Y.rootActionId,type:((g=Y.actionProto)==null?void 0:g.actionType)||"",entity:J}))}q.wrapperEntities=t;Object.keys(F).length>0&&(q.unknownKeys=F);return q};
Zdf=function(){var F,q,t,u,J,g,Y,Q,e;return _.p(function(r){if(r.nextAddress==1)return F=!!(new _.dB("")).expiringStorage_,u=!!((q=_.uu.crypto)==null?0:(t=q.subtle)==null?0:t.importKey),J=!!_.uu.BroadcastChannel,g=!!_.uu.navigator.locks,r.yield(jYv(),2);Y=r.yieldResult;Q=F&&u&&J&&g&&Y;e={isSupported:Q};if(Q)return r.return(e);e.missingBrowserFeatures=[];Y||e.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");F||e.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
u||e.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");J||e.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");g||e.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return r.return(e)})};
R1y=function(){var F;return!((F=gm?gm:null)==null||!F.window)};
_.NwC=function(F){if(_.Wy()&&_.Ro$("Chromium")>=120){var q=_.r2u().mediaSession;try{q.setActionHandler("enterpictureinpicture",function(){F()})}catch(t){}}};
w4f=function(F){for(var q=[],t=_.X(document.styleSheets),u=t.next(),J={};!u.done;J={node$jscomp$728:void 0},u=t.next())J.node$jscomp$728=u.value.ownerNode,J.node$jscomp$728&&(J.node$jscomp$728 instanceof HTMLStyleElement||J.node$jscomp$728 instanceof HTMLLinkElement)&&q.push(new Promise(function(g){return function(Y){var Q=g.node$jscomp$728.cloneNode(!0);Q.onload=function(){Y()};
Q.onerror=function(){_.bz(Error("ij"));Y()};
F.document.head.appendChild(Q)}}(J)));
return Promise.all(q)};
D2y=function(F){var q=[_.Qp(id3),_.Qp(kI3),_.Qp(E_W)];z13(window.document.documentElement,F.document.documentElement,[_.Qp(o_q),_.Qp(n_C),_.Qp(MbW),_.Qp(TwA),_.Qp(GI_)]);z13(window.document.body,F.document.body,q)};
z13=function(F,q,t){F=_.X(F.attributes);for(var u=F.next();!u.done;u=F.next())if(u=u.value)try{_.ss(t,q,u.name,u.value)}catch(J){}};
Odv=function(F,q){F=new _.lZ(F.document.documentElement);F.start(Wdo,q);return F};
Pqq=function(F){var q=F.document.documentElement;q.addEventListener("click",function(t){I$M(q,t)});
q.addEventListener("touchstart",function(t){ymA(t)});
q.addEventListener("mousedown",function(t){ymA(t)})};
A2f=function(F,q,t,u){u=u===void 0?!1:u;q=new x2M(q||F,t||F);return{x:F.x+((u===void 0?0:u)?q.lengthX*-1:q.lengthX)*.2,y:F.y+((u===void 0?0:u)?q.lengthY*-1:q.lengthY)*.2}};
v_v=function(F){if(!F)return!1;var q=F.status==="OK"||F.status==="LIVE_STREAM_OFFLINE",t,u,J,g=(J=(t=F.errorScreen)==null?void 0:t.playerLegacyDesktopYpcTrailerRenderer)!=null?J:(u=F.errorScreen)==null?void 0:u.ypcTrailerRenderer;return!!q||!!g};
_.Ih$=function(F,q){if(!F)return!1;var t,u=(t=F.errorScreen)==null?void 0:t.playerLegacyDesktopYpcOfferRenderer,J;q=!!(q==null?0:(J=q.playerOverlayRenderer)==null?0:J.gatedActionsOverlayRenderer);return!!v_v(F)||!!u||!!q};
$2o=function(F){return Hdu(F,0,"gclid",F.search(m2A))>=0||Hdu(F,0,"gad_source",F.search(m2A))>=0};
bdC=function(F){var q=[],t=0;return{clear:function(){t=q.length=0},
push:function(u){q[t]=u;t=(t+1)%F},
iterate:function(){return function J(){var g,Y,Q,e;return _.X9(J,function(r){switch(r.nextAddress){case 1:_.Mv(r,2),g=q.length,Y=0;case 4:if(!(Y<g)){r.jumpTo(2);break}Q=t+Y;e=_.Yf;return r.yield(q[Q%g],7);case 7:e(r.yieldResult);Y++;r.jumpTo(4);break;case 2:_.n6(r),_.Tg(r,0)}})}()}}};
y2t=function(F){F.eventsToIgnore||(F.eventsToIgnore=[]);var q=F.eventsToIgnore.map(deu),t=new Set(q),u=bdC(F.bufferSize);return{flush:function(){var J=Array.from(u.iterate());u.clear();J=J.map(function(g){return{name:g.name,timestamp:g.startTime,attributes:g.attributes}});
return JSON.stringify(J)},
onSpanStart:function(J){J.name==="event"&&t.has(J.attributes.type)||u.push(J)}}};
Cqq=function(F){F=y2t(F);var q=F.flush;uC.processors.push({onSpanStart:F.onSpanStart});P6$.subscribe("handleError",function(t){try{t.params.breadcrumbs=q()}catch(u){_.mH(u,"WARNING")}})};
d2q=function(){$o("web_tracing_action");_.bN("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
Vbq=function(F,q,t){var u=F.endTime;if(u==null)throw Error("kj");var J=F.name,g={};u-=F.startTime;var Y=F.startTime;g={webTracing:(g[J]=F.attributes,g)};t=_.UK(eQC)(J,u,Y,g,t,q);if(F.children)for(F=_.X(F.children),J=F.next();!J.done;J=F.next())Vbq(J.value,q,t)};
U2A=function(F){var q=j$u.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(t){t.data&&typeof t.data==="object"&&(t=t.data,t.from==="extension"&&t.app==="yt.telemetry"&&(q("Received message from extension",t),F.onMessage(t)))});
return function(t,u){t={app:"yt.telemetry",from:"app",key:t,payload:u};q("Sending message to extension",t);window.postMessage(t,"*")}};
SQo=function(){var F=F===void 0?3E3:F;var q=U2A({onMessage:function(){}}),t=[];
return{onSpanEnd:function(u){u.parentId==null&&t.push(u)===1&&setTimeout(function(){var J=[].concat(_.mZ(t));t.length=0;q("spansReported",{spans:J})},F)}}};
KdP=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var F=window.performance.getEntriesByType("navigation");if(F.length>0){var q=F[0];aX_("pageLoad",{navigationType:h1u(q.type),unloadEventStart:Math.round(q.unloadEventStart),unloadEventEnd:Math.round(q.unloadEventEnd),domInteractive:Math.round(q.domInteractive),domContentLoadedEventStart:Math.round(q.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(q.domContentLoadedEventEnd),
domComplete:Math.round(q.domComplete),loadEventStart:Math.round(q.loadEventStart),loadEventEnd:Math.round(q.loadEventEnd),redirectCount:q.redirectCount},function(){})}}catch(t){}})};
h1u=function(F){switch(F){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
fhy=function(){for(var F=GhA.value,q={},t=_.X(F.enabledSpansArray),u=t.next();!u.done;u=t.next())q[u.value]=!0;if(F.exportToCsi||F.exportBreadcrumbs)t=AdW(),uC.initialized=!0,uC.sessionId=t||"",uC.enabledSpans=q,Lyo("pageLoad")&&KdP();F.exportBreadcrumbs&&Cqq({eventsToIgnore:Bw_,bufferSize:F.bufferSize});F.exportToCsi&&uC.processors.push(Ldu);F.exportToDevTools&&(F=SQo(),uC.processors.push(F))};
ahP=function(F){return new Promise(function(q){window.setTimeout(q,F)})};
jdu=function(F){var q={bicf:function(g){F.ee1=g},
blc:function(){return F.getLatestChallengeResponse()},
bcr:function(g){F.yCt.push(g)}},t=window;
t.ntpevasrs=q;if(t.ntpqfbel!==void 0)for(var u=_.X(t.ntpqfbel),J=u.next();!J.done;J=u.next())J=J.value,J(q);t.ntpqfbel=void 0};
c2W=function(F){return _.p(function(q){if(q.nextAddress==1)return _.zg(q,2),q.yield(F.wIF(),4);if(q.nextAddress!=2)return _.LE(q,0);_.Gg(q);_.WA(q)})};
FCA=function(F){var q,t;(q=F.ytcsi)==null||(t=q.tick)==null||t.call(q,"pot_ist")};
qtt=function(F){if(F instanceof Error){var q=_.S6("yt.logging.errors.log");q&&q(F,"WARNING")}};
t8q=function(F){try{var q=JSON.parse(F);if(q.bgChallenge)return q}catch(t){}};
J7A=function(){var F=window,q={networkStatusManagerPromise:_.sV().resolve(new HJy(_.Lt)),initialChallengeSli:_.E("wpo_att_sli")?new _.jOo("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};F=F===void 0?window:F;var t=F.ytAtR,u;q==null||(u=q.initialChallengeSli)==null||_.pZ(u);if(t){if(t=t8q(t)){var J;q==null||(J=q.initialChallengeSli)==null||_.QI(J,"SUCCESS");uQq(t,q)}F.ytAtR=void 0}else F.ytAtRC=function(g){if(g=t8q(g)){var Y;q==null||(Y=q.initialChallengeSli)==null||
_.QI(Y,"SUCCESS");uQq(g,q);F.ytAtRC=void 0}}};
l9A=function(){if(sQo)return sQo;try{var F=_.nr("IFRAME");_.aK(F,_.RV(gjv));F.sandbox.add("allow-same-origin");F.style.display="none";document.body.appendChild(F);return sQo=F}catch(q){F=new _.D0("Failed to create sandbox iframe"),_.mH(F)}};
Xzq=function(F){var q,t;return(t=F==null?void 0:(q=F.contentWindow)==null?void 0:q.fetch)!=null?t:window.fetch};
Ytf=function(F){var q,t;return(t=F==null?void 0:(q=F.contentWindow)==null?void 0:q.Request)!=null?t:window.Request};
pzq=function(F){var q,t;return(t=F==null?void 0:(q=F.contentWindow)==null?void 0:q.TextDecoder)!=null?t:window.TextDecoder};
QQo=function(){return function(F,q){_.bn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[F]=q}};
exu=function(){return function(F,q){var t={};t[F]=q;F=_.UK(_.p6o)(t);Object.keys(F).length>0&&_.mj(F)}};
r7q=function(){if(Uco()==="hidden")var F="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Uco()==="visible"&&(F="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",ZTW=null);F&&RxC(F)};
RxC=function(F){if(F==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||F==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(Nq_===F)return;Nq_=F}var q=9E4+Math.random()*2E3;if(F!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.X1()>q)&&Uco()==="visible"){q=-1;ZTW&&(q=Math.round((0,_.gB)()-ZTW));var t=String;var u=_.S6("_fact",window);u=u==null||u==-1?-1:Math.max(Date.now()-u,0);_.IJ("foregroundHeartbeat",{firstActivityMs:t(u),clientDocumentNonce:vc$,index:String(wzf),lastEventDeltaMs:String(q),trigger:F});
_.uo("_fact",-1,window);wzf++;ZTW=(0,_.gB)()}};
_.iTu=function(){try{return!!self.sessionStorage}catch(F){return!1}};
kPf=function(){var F=navigator;return new Promise(function(q,t){var u;(u=F.webkitTemporaryStorage)!=null&&u.queryUsageAndQuota?F.webkitTemporaryStorage.queryUsageAndQuota(function(J,g){q({usage:J,quota:g})},function(J){t(J)}):t(Error("tj"))})};
Ejy=function(F,q){var t={errorSeverity:q.errorSeverity.toString(),wizFeatureFlags:Object.entries(q.featureFlags).join("\n")};wDA(q,t);q=q.errorSeverity;q===3?_.mH(F,"ERROR",void 0,void 0,void 0,t):q===2&&_.mH(F,"WARNING",void 0,void 0,void 0,t);_.E("cow_if_errors_in_popup")&&q===3&&F.message.indexOf("<If>")!==-1&&window.alert(F.message)};
zx$=function(F,q){var t=tx.get(F)||{layerNode:q};t.layerNode=q;Bzo(F,t);F.getScreenLayer=function(){return eN(t.layerNode)}};
ojM=function(F){var q;F=F.parentNode;for(var t;F&&((q=tx.get(F))==null||!q.isRenderer)&&!((t=F.polymerController)!=null?t:F).isRenderer_;)F=F.parentNode||F.host;if(q=F)return tx.get(q)};
njv=function(F){if(F){tx.delete(F);var q=_.sV().resolve(gZ);cet(F,q)}};
Tqy=function(F,q,t){if(t===void 0?0:t){if(t=F.getAttribute("client-ve-type"),q.data&&!q.disableReactiveLogging||t)_.m1(function(){M8M(F,_.Hj(q.data))}),_.vj(function(){return void njv(F)})}else typeof q.data!=="function"&&M8M(F,q.data)};
M8M=function(F,q){GPo++;Dm_(F,q)&&_.mI.addJob(function(){_.Ze(_.mI,function(){if(Dm_(F,q)&&F.ownerDocument.documentElement===document.documentElement&&F){var t;if(F.getAttribute("layer")){var u=t=Number(F.getAttribute("layer")),J=tx.get(F);J?J.layerNode.layer=u:zx$(F,new WCv(u));(u=ojM(F))&&(J=tx.get(F))!=null&&(J.layerNode.parent=u.layerNode)}else if(t=tx.get(F))t=eN(t.layerNode);else{t=eN;u=new WCv;if(J=ojM(F))u.parent=J.layerNode;zx$(F,u);t=t(u)}t!=null||(t=0);u=F.getAttribute("client-ve-type");
J=Number(u);var g=!1;u=!1;var Y=tx.get(F),Q;if((Q=Y)&&!(Q=Y[OTt]!==q)&&(Q=J)){var e;Q=((e=tx.get(F))==null?void 0:e.clientVeType)===void 0}Q&&(Y[OTt]=q,g=u=Y.isRenderer=!0);tx.has(F)&&(tx.get(F).clientVeType=J);F.visualElement&&(u=!0);if(_.E("wiz_next_ld_fix_client_ve_spec")){var r;e=((r=_.n(q==null?void 0:q.rendererContext,_.W9))==null?void 0:r.loggingDirectives)||(q==null?void 0:q.loggingDirectives)}else e=q==null?void 0:q.loggingDirectives;e&&e.clientVeSpec&&(r=Pcf(_.TC(),F),r=_.xmP(_.DP(),e,r||
void 0,t))&&(F.visualElement=r);!F.visualElement&&J&&g&&(F.veType=J,r=void 0,_.E("wiz_next_client_ve_parent_fix")&&(r=Pcf(_.TC(),F)),r=_.GC(_.DP(),F,r,t),F.visualElement=r);u&&(r=_.sV().resolve(gZ),u_3(F,{data:q,observer:r,layer:t,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
Dm_=function(F,q){return(q==null?0:q.trackingParams)||(q==null?0:q.loggingDirectives)||_.n(q==null?void 0:q.rendererContext,_.W9)||F.getAttribute("client-ve-type")?!0:!1};
A7u=function(F,q,t){F.componentType!==_.Wj&&t instanceof HTMLElement&&q&&!_.E("cow_logging_in_component_wrapper")&&Tqy(t,q,!0)};
$mv=function(){if(!vjM){vjM=!0;var F=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.E("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:Ejy,enableComponentStacksInErrorMessages:!1});Object.assign(l5,F);AJo=I9P;HTy();$dP=zmf;ItA=okP;_.E("ytwiz_enable_debug_component_props")&&(F=document.body.firstElementChild,window.ng||F.__ngContext__||(F.__ngContext__={},F.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=mmW))}};
HTy=function(){_.E("cow_logging_in_component_wrapper")?(xPP=function(F,q){q instanceof HTMLElement&&Tqy(q,F,!0)},Ezo=function(){}):(xPP=function(){},Ezo=A7u)};
bTM=function(F,q,t){q=q===void 0?{}:q;var u,J=(u=_.n(F.commandMetadata,_.EH))==null?void 0:u.url;u=q.form||{};!t||u.element||u.skipDefaultElement||(q.form=q.form||{},q.form.element=t);if(J&&J!=="/service_ajax")return{type:0,command:F,form:q.form};if(_.E("kevlar_service_command_check")){if(_.fp(_.sV().resolve(_.da),F))return Object.assign({},{type:1,command:F},q)}else{var g;if((g=_.n(F.commandMetadata,_.EH))==null?0:g.apiUrl)return Object.assign({},{type:1,command:F},q)}return{type:2,command:F,form:q.form}};
y7o=function(F){if(F.form){var q=F.form,t=Object.assign({},q);q=q.element;t=(delete t.element,t);if(q)return[_.RD(q,[F.command,t,F.commandController])]}return[]};
Ccq=function(F){if(F.form){var q=F.form,t=Object.assign({},q);q=q.element;t=(delete t.element,t);q&&_.rY(q,[F.command],q,t)}};
V8$=function(F,q,t){var u=new dmq(F,q),J=new RL(F,q,t);F={"/youtubei/v1/browse":new rm(F,q,t),"/youtubei/v1/player":u,"/youtubei/v1/navigation/resolve_url":new NF,"/youtubei/v1/next":J,"/youtubei/v1/guide":new wm(t),"/youtubei/v1/search":new iZ(F,q,t),"/youtubei/v1/reel/reel_item_watch":new kf(F,q,t),"/youtubei/v1/get_watch":new EL(u,J)};F["/youtubei/v1/account/account_menu"]=new zx;F["/youtubei/v1/notification/get_notification_menu"]=new oL;return F};
MF=function(){var F=_.sV().resolve(nZ);return Promise.resolve(Umu(F,_.uu.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
Sto=function(F){return F&&(F=_.Tx(_.xWA(F)))?(new URLSearchParams(F)).get("service"):null};
WO=function(F,q){_.wC(_.Gx(),function(){_.y0("adl")});
_.sV().resolve(hxM)(q);F=F.root;F.loadData&&F.loadData(q);(q==null?0:q.response)?_.QI(quC(),"SUCCESS"):_.bz(new _.D0("Lifecycle: No response in data",_.yG("IS_SHELL_LOAD"),q?q.page:"NO_PAGE",q?q.endpoint:"NO_ENDPOINT"));F.polymerController.$["page-manager"].lazyPrepareCriticalPages((q==null?void 0:q.page)||"",q.endpoint);var t,u;((u=_.n(q==null?void 0:(t=q.endpoint)==null?void 0:t.commandMetadata,_.EH))==null?0:u.webPageType)&&_.u1().dispatch(_.De(_.n(q.endpoint.commandMetadata,_.EH).webPageType))};
KCv=function(){var F,q;return _.p(function(t){switch(t.nextAddress){case 1:F=window;if(!F.getDataPromise){t.jumpTo(2);break}_.zg(t,3);return t.yield(F.getDataPromise(),5);case 5:return t.return(t.yieldResult);case 3:return _.Gg(t),t.yield(MF(),6);case 6:return t.return(t.yieldResult);case 2:if(F.getInitialData)return q=F.getInitialData(),F.getInitialData=void 0,t.return(q);throw Error("vj`"+_.uu.location.href);}})};
LCM=function(){_.$I("CSI_SERVICE_NAME","youtube");_.mj({loadType:"cold"});_.E("kevlar_log_lcp")&&Bqf(function(F){_.y0("lcp",F.value)})};
f9o=function(){var F=_.Kr(document.location.href,"enable");F&&F.indexOf("scraper")>-1&&_.$I("ADD_SCRAPER_ATTRIBUTES",!0)};
q8_=function(F){var q=F.root;F=[a9f,jQt,_.OL];_.E("web_feedback_endpoint_autolog_allowlist_killswitch")&&F.push(_.PO,c7f);FiC(function(t,u){return bTM(t,u,q)},function(t){if(!t.command)return[];
var u;((u=t.form)==null?0:u.element)?t.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},t.form,{endpoint:t.command})})):q.handleNavigate(t);return[]},F);
_.sV().addProvider({provide:_.gN,useValue:_.oc.instance})};
uvo=function(){var F={},q={},t;for(t in tQo){var u=_.X(_.N3(tQo[t],void 0,"IAtZ7"));F[t]=u.next().value;q[t]=u.next().value}return[F,function(J){for(var g in J){var Y=void 0;(Y=q[g])==null||Y(J[g])}}]};
_.xf=function(F,q,t){q=q===void 0?!1:q;var u=_.m7.getValueByKeys(F,"contents","twoColumnWatchNextResults","results","results","contents"),J=_.m7.getValueByKeys(F,"contents","twoColumnWatchNextResults","playlist","playlist")||null;q&&(J=null);var g=q=null;if(J)q=_.m7.getValueByKeys(J,"titleText"),g=_.m7.unsafeClone(_.m7.getValueByKeys(J,"longBylineText")),u="",g&&(u=_.q1(g)),g=_.FK(u);else if(u){u=_.X(u);for(var Y=u.next();!Y.done;Y=u.next())Y=Y.value,Y.videoPrimaryInfoRenderer&&(q=_.m7.getValueByKeys.apply(_.m7,
[Y].concat(_.mZ(JZf)))),Y.videoSecondaryInfoRenderer&&(g=_.m7.getValueByKeys.apply(_.m7,[Y].concat(_.mZ(sZu))))}else _.hN(Error("Aj"));var Q;F.currentVideoEndpoint?Q=F.currentVideoEndpoint:_.hN(Error("Bj"));var e;t&&(e=_.m7.getValueByKeys(t,"playabilityStatus","miniplayer","miniplayerRenderer"));F={miniplayerTitle:q,miniplayerSubtitle:g,watchEndpoint:Q,playlistData:J};e&&(F.miniplayerRenderer=e);return F};
g2C=function(F){if(F)return _.C9(F)};
_.lrP=function(){return{isFullscreen:function(){throw Error("Cj");},
toggleFullscreen:function(){throw Error("Dj");},
exitFullscreen:function(){throw Error("Ej");},
isAutonavEnabled:function(){throw Error("Fj");},
setAutonavEnabled:function(){throw Error("Gj");},
isAutoplaySetExplicitly:function(){throw Error("Hj");}}};
XVv=function(F){return F.videoDuration?F.numTaps>1&&F.tapDirection!==0?_.AX(F.draggedTime/F.videoDuration,0,1):_.AX((F.playedTime||0)/F.videoDuration,0,1):0};
Y8P=function(F){return F.videoDuration?F.isDragging||F.numTaps>1&&F.tapDirection!==0?_.AX(F.draggedTime/F.videoDuration,0,1):_.AX((F.playedTime||0)/F.videoDuration,0,1):0};
QZq=function(F){var q,t,u;return _.n(F==null?void 0:(q=F.markersMap)==null?void 0:(t=q.find(function(J){return J.key==="HEATSEEKER"}))==null?void 0:(u=t.value)==null?void 0:u.heatmap,pVo)};
eLq=function(F){var q,t;return(t=(q=QZq(F))==null?void 0:q.heatMarkersDecorations)!=null?t:[]};
Z0M=function(F){if(_.E("mweb_supported_chapters_killswitch"))return!0;var q;return!!(F==null?0:(q=F.markersMap)==null?0:q.find(function(t){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(t.key)}))};
_.RL3=function(F){var q=Object,t=q.assign,u;F={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(u=F==null?void 0:F.getPlayerState())!=null?u:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return t.call(q,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},F,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
rZq=function(F){return function(q){var t=F(),u,J=(u=t.playerApi)==null?void 0:u.getPlayerState();q&&q!==t.playerState&&(q===1||q===2)&&t.setState({playerState:J})}};
wVy=function(F){return function(q){var t=F(),u=t.playerApi;u&&(q==null?void 0:q.type)==="newdata"&&(Nyv&&(clearTimeout(Nyv),Nyv=void 0),_.E("web_shorts_use_progress_state_for_gapless")?(q=u==null?void 0:u.getProgressState(q==null?void 0:q.playertype),q=q.seekableEnd-q.seekableStart):q=u==null?void 0:u.getDuration(q==null?void 0:q.playertype),t.setState({playedTime:0,videoDuration:q}))}};
i0t=function(F){return function(q){var t=F(),u=t.playerApi;if(u){var J=u.getPresentingPlayerType();_.E("web_shorts_use_progress_state_for_gapless")?(u=u.getProgressState(J),u=u.seekableEnd-u.seekableStart):u=u.getDuration(J);t.setState({playedTime:q,videoDuration:u})}}};
E2W=function(F){_.WZ(112394,F,function(){return kEo},function(q){kEo=q})};
n2M=function(F,q){if(!F)return[];var t,u,J;F=((t=F.markersMap)==null?void 0:(u=t.find(function(g){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(g.key)}))==null?void 0:(J=u.value)==null?void 0:J.chapters)||[];
!zLy(F)||(q==null?0:q.ignoreStub)||(F=[o2C()].concat(_.mZ(F)));return F};
o2C=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
zLy=function(F){if(F.length===0)return!1;var q;return((q=_.n(F[0],vO))==null?void 0:q.timeRangeStartMillis)!==0};
IL=function(F){return F?F.timeRangeStartMillis||0:0};
TyM=function(F,q){if(F.isDragging&&q)return F=MQM(F,q),F===-1?o2C():n2M(q)[F]};
MQM=function(F,q){return F.isDragging&&q?n2M(q,{ignoreStub:!0}).findIndex(function(t,u,J){t=GEP(F);return DSA(t,J,u).scrubberHovering}):-1};
GEP=function(F){return Object.assign({},F,{videoDuration:F.videoDuration*1E3,playedTime:F.playedTime*1E3,draggedTime:F.draggedTime*1E3})};
DSA=function(F,q,t){var u=IL(_.n(q[t],vO));q=IL(_.n(q[t+1],vO))||F.videoDuration;t=F.isDragging;var J;if(J=F.isDragging)J=F.draggedTime,J=J!==null&&J>=u&&J<q;var g=F.playedTime;return g!==null&&g>=u&&g<q?{videoPosition:"active",isScrubbing:t,scrubberHovering:J}:F.playedTime<u?{videoPosition:"pending",isScrubbing:t,scrubberHovering:J}:{videoPosition:"seen",isScrubbing:t,scrubberHovering:J}};
Wiy=function(F,q){return F.videoPosition==="seen"||(q===void 0?0:q)>0};
O0o=function(F,q,t){q=F/q.storyboardInterval;var u=n2M(t);if(!u.length)return-q*72;t=0;u=_.X(u);for(var J=u.next();!J.done;J=u.next())if(IL(_.n(J.value,vO))/1E3<F)t++;else break;return-(q*72)-t*56};
Pgu=function(F){return F?F.width/F.columns:0};
xSW=function(F){return F.isHovering?F.hoveredTime:F.draggedTime};
AZy=function(F,q){F=F.draggedTime*1E3;return F>=q.visibleTimeRangeStartMillis&&F<=q.visibleTimeRangeEndMillis};
_.v2_=function(F){if(F===void 0||Number.isNaN(F))return"--:--";var q=Math.abs(Math.floor(F)),t=Math.floor(q/86400),u=Math.floor(q%86400/3600),J=Math.floor(q%3600/60);q=Math.floor(q%60);var g="";t>0&&(g+=t+":",u<10&&(g+="0"));if(t>0||u>0)g+=u+":",J<10&&(g+="0");g+=J+":";q<10&&(g+="0");g+=q;return F>=0?g:"-"+g};
Irt=function(F,q){return function(){var t=xSW(F());var u=q();var J=F().playerApi;if(J&&J.getNumberOfStoryboardLevels()!==0){var g=J.getStoryboardFrameIndex(t,1);g!==-1?u=J.getStoryboardFrame(g,1):(t=J.getStoryboardFrameIndex(t,0),J=J.getStoryboardFrame(t,0),u&&J&&(J.height*=3,J.width*=3),u=J)}else u=null;if(!u)return null;q()&&(u.width=90*u.columns,u.height=160*u.rows);return u}};
_.HO=function(F){if(!F||F.getVideoData)return F};
H0o=function(){var F;return{playerApi:(F=_.w0())!=null?F:void 0}};
mSA=function(F){var q;_.p(function(t){if(t.nextAddress==1)return t.yield(_.NZ(),2);if(q=t.yieldResult)q.unMute(!0),q.setVolume(F,!0);_.WA(t)})};
$S_=function(F,q){F&&(F.value=""+q,F.style.setProperty("--gradient-percent",q+"%"))};
b0u=function(F){var q;return(q=F==null?void 0:F.value)!=null?q:0};
yZq=function(){var F;_.p(function(q){if(q.nextAddress==1)return q.yield(_.NZ(),2);F=q.yieldResult;if(!F)return q.return();F.isMuted()?F.unMute(!0):F.mute(!0);_.WA(q)})};
Cg3=function(F){var q=_.sV().resolve(_.m4).getPlayerElement();q&&F&&(F===1?q.pause():q.play())};
dS3=function(F){_.Zl(F,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
VQy=function(F){_.Zl(F,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
S8A=function(F){return _.xI(F.document.body,function(){return _.Z(USq,null)},"Af")};
hLy=function(){var F=window.performance.getEntriesByType("navigation");return F?F.map(function(q){return q.type}).includes("reload"):!1};
Ff_=function(){$f($f($f($f($f($f($f(_.sV().resolve(_.dm),_.KiC),_.Byo),_.LiW),_.fr_),_.aru),_.jZC),_.cZ$)};
q4f=function(F,q){q=q===void 0?!1:q;var t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return q||!_.E("kevlar_shorts_seedless_retry_initial_load")||(t=window,u=!(!t.getDataPromise&&!t.getInitialData),u)?Y.yield(KCv(),2):(setTimeout(q4f.bind(window,F,!0),1E3),Y.return());if(Y.nextAddress!=3)return J=Y.yieldResult,Y.yield(tKo(J),3);g=Y.yieldResult;WO(F,g);_.WA(Y)})};
tKo=function(F){var q;if((q=F.response)==null||!q.replacementEndpoint)return _.NU(F);q=_.sV().resolve(nZ);F=F.response;_.n(F.replacementEndpoint,_.Px)&&F.sequenceContinuation&&(_.n(F.replacementEndpoint,_.Px).sequenceParams=F.sequenceContinuation);return VI(q,F.replacementEndpoint,{},_.uu.location.href,"shorts",function(){},function(){return!1})};
Jbu=function(F){var q=_.sV().resolve(uA3);F.playerResponse&&q.handleResponse(F.playerResponse);F.response&&q.handleResponse(F.response)};
s9_=function(F){var q=_.u1(),t,u=_.n((t=F.response)==null?void 0:t.frameworkUpdates,Fp),J;t=_.n((J=F.playerResponse)==null?void 0:J.frameworkUpdates,Fp);var g;F=_.n((g=F.reelWatchSequenceResponse)==null?void 0:g.frameworkUpdates,Fp);u&&_.nj(u,q);t&&_.nj(t,q);F&&_.nj(F,q)};
gs$=function(F){var q;_.E("enable_redirect_linking_for_desktop_web_client")&&((q=window.location.hash)==null?0:q.includes("redirect_state"))&&F.url&&(F.url=F.url.toString()+window.location.hash)};
Y4_=function(F){var q=_.sV(),t=q.resolve(nZ);q=q.resolve(_.lpP);F.endpoint&&(t=X1A(t,F.endpoint),t.content&&F.response&&_.UL(q,F.response,t.content),t.player&&F.playerResponse&&_.UL(q,F.playerResponse,t.player),t.reelSequence&&F.reelWatchSequenceResponse&&_.UL(q,F.reelWatchSequenceResponse,t.reelSequence))};
SN=function(F,q){_.E("web_service_params_response_processor")&&Jbu(q);s9_(q);var t;(q==null?0:q.url)&&((t=window.location.hash)==null?0:t.includes("redirect_state"))&&(gs$(q),(t=Sto(q.url))&&_.ec(F.root,"yt-initialize-third-party",[t,q]));Y4_(q);t=_.sV();var u=t.resolve(p1A);q.playerResponse&&t.resolve(Q9t).handleResponse(q.playerResponse);if(q.playerResponse){t=void 0;if(_.E("ab_v_vid_sig")&&q.endpoint){var J,g=(J=_.n(q.endpoint,_.Fw))!=null?J:_.n(q.endpoint,_.Px);g&&(t=g.videoId)}eRy(u,q.playerResponse,
t)}q.playerResponse&&N8y(q.playerResponse)&&_.E("web_enable_ab_rsp_cl")?vYC().then(function(){ZY_(u,q.playerResponse);WO(F,q)}):WO(F,q)};
rbA=function(F){if(F=F.root.data){var q=_.sV().resolve(RRf);F.endpoint&&(F.response&&q.handleResponse(F.response,void 0,document.querySelector("ytd-app")),F.playerResponse&&q.handleResponse(F.playerResponse),F.reelWatchSequenceResponse&&q.handleResponse(F.reelWatchSequenceResponse))}};
NMW=function(F){var q,t,u,J,g,Y;return _.p(function(Q){switch(Q.nextAddress){case 1:q=window;if(!q.getDataPromise){Q.jumpTo(2);break}_.zg(Q,3);return Q.yield(q.getDataPromise(),5);case 5:t=Q.yieldResult;SN(F,t);_.LE(Q,4);break;case 3:return _.Gg(Q),Q.yield(MF(),6);case 6:u=Q.yieldResult,WO(F,u);case 4:return Q.return();case 2:if(!_.E("sw_nav_preload_pbj")){Q.jumpTo(7);break}q.fetchInitialData=function(){var e;return _.p(function(r){if(r.nextAddress==1)return r.yield(MF(),2);e=r.yieldResult;WO(F,e);
_.WA(r)})};
if(q.getInitialData){q.loadInitialData=function(e){SN(F,e)};
J=q.getInitialData();q.getInitialData=void 0;SN(F,J);Q.jumpTo(8);break}q.fetchInitialData=void 0;return Q.yield(MF(),9);case 9:g=Q.yieldResult,WO(F,g);case 8:return Q.return();case 7:q.getInitialData?(Y=q.getInitialData(),q.getInitialData=void 0,SN(F,Y)):q.loadInitialData=function(e){SN(F,e)},_.WA(Q)}})};
w1$=function(F){var q=0;return function(){return q<F.length?{done:!1,value:F[q++]}:{done:!0}}};
iYy=typeof Object.defineProperties=="function"?Object.defineProperty:function(F,q,t){if(F==Array.prototype||F==Object.prototype)return F;F[q]=t.value;return F};
kpA=function(F){F=["object"==typeof globalThis&&globalThis,F,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var q=0;q<F.length;++q){var t=F[q];if(t&&t.Math==Math)return t}throw Error("a");};
_.JJ=kpA(this);hX=function(F,q){if(q)a:{var t=_.JJ;F=F.split(".");for(var u=0;u<F.length-1;u++){var J=F[u];if(!(J in t))break a;t=t[J]}F=F[F.length-1];u=t[F];q=q(u);q!=u&&q!=null&&iYy(t,F,{configurable:!0,writable:!0,value:q})}};
hX("Symbol",function(F){if(F)return F;var q=function(g,Y){this.$jscomp$symbol$id_=g;iYy(this,"description",{configurable:!0,writable:!0,value:Y})};
q.prototype.toString=function(){return this.$jscomp$symbol$id_};
var t="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",u=0,J=function(g){if(this instanceof J)throw new TypeError("b");return new q(t+(g||"")+"_"+u++,g)};
return J});
hX("Symbol.iterator",function(F){if(F)return F;F=Symbol("c");for(var q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<q.length;t++){var u=_.JJ[q[t]];typeof u==="function"&&typeof u.prototype[F]!="function"&&iYy(u.prototype,F,{configurable:!0,writable:!0,value:function(){return Esy(w1$(this))}})}return F});
hX("Symbol.asyncIterator",function(F){return F?F:Symbol("d")});
var Esy=function(F){F={next:F};F[Symbol.iterator]=function(){return this};
return F},zRP=typeof Object.create=="function"?Object.create:function(F){var q=function(){};
q.prototype=F;return new q},oso=function(){function F(){function t(){}
new t;Reflect.construct(t,[],function(){});
return new t instanceof t}
if(typeof Reflect!="undefined"&&Reflect.construct){if(F())return Reflect.construct;var q=Reflect.construct;return function(t,u,J){t=q(t,u);J&&Reflect.setPrototypeOf(t,J.prototype);return t}}return function(t,u,J){J===void 0&&(J=t);
J=zRP(J.prototype||Object.prototype);return Function.prototype.apply.call(t,J,u)||J}}(),nst;
if(typeof Object.setPrototypeOf=="function")nst=Object.setPrototypeOf;else{var MKC;a:{var TM_={a:!0},Gpt={};try{Gpt.__proto__=TM_;MKC=Gpt.a;break a}catch(F){}MKC=!1}nst=MKC?function(F,q){F.__proto__=q;if(F.__proto__!==q)throw new TypeError("e`"+F);return F}:null}KZ=nst;
_.M=function(F,q){F.prototype=zRP(q.prototype);F.prototype.constructor=F;if(KZ)KZ(F,q);else for(var t in q)if(t!="prototype")if(Object.defineProperties){var u=Object.getOwnPropertyDescriptor(q,t);u&&Object.defineProperty(F,t,u)}else F[t]=q[t];F.superClass_=q.prototype};
_.X=function(F){var q=typeof Symbol!="undefined"&&Symbol.iterator&&F[Symbol.iterator];if(q)return q.call(F);if(typeof F.length=="number")return{next:w1$(F)};throw Error("f`"+String(F));};
F6=function(F){for(var q,t=[];!(q=F.next()).done;)t.push(q.value);return t};
_.mZ=function(F){return F instanceof Array?F:F6(_.X(F))};
_.LZ=function(F){return BO(F,F)};
BO=function(F,q){F.raw=q;Object.freeze&&(Object.freeze(F),Object.freeze(q));return F};
fZ=function(F,q){return Object.prototype.hasOwnProperty.call(F,q)};
DjP=function(F){if(F==null)throw new TypeError("g");return Object(F)};
Wf$=typeof Object.assign=="function"?Object.assign:function(F,q){F=DjP(F);for(var t=1;t<arguments.length;t++){var u=arguments[t];if(u)for(var J in u)fZ(u,J)&&(F[J]=u[J])}return F};
hX("Object.assign",function(F){return F||Wf$});
var aL=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},OYC=function(F){if(F.isRunning_)throw new TypeError("i");
F.isRunning_=!0};
aL.prototype.JSC$8715_next_=function(F){this.yieldResult=F};
var Pk_=function(F,q){F.abruptCompletion_={exception:q,isException:!0};F.nextAddress=F.catchAddress_||F.finallyAddress_};
aL.prototype.return=function(F){this.abruptCompletion_={return:F};this.nextAddress=this.finallyAddress_};
aL.prototype.yield=function(F,q){this.nextAddress=q;return{value:F}};
aL.prototype.jumpTo=function(F){this.nextAddress=F};
_.WA=function(F){F.nextAddress=0};
_.zg=function(F,q,t){F.catchAddress_=q;t!=void 0&&(F.finallyAddress_=t)};
_.Mv=function(F,q){F.catchAddress_=0;F.finallyAddress_=q||0};
_.LE=function(F,q,t){F.nextAddress=q;F.catchAddress_=t||0};
_.Gg=function(F,q){F.catchAddress_=q||0;q=F.abruptCompletion_.exception;F.abruptCompletion_=null;return q};
_.n6=function(F,q,t,u){u?F.finallyContexts_[u]=F.abruptCompletion_:F.finallyContexts_=[F.abruptCompletion_];F.catchAddress_=q||0;F.finallyAddress_=t||0};
_.Tg=function(F,q,t){t=F.finallyContexts_.splice(t||0)[0];(t=F.abruptCompletion_=F.abruptCompletion_||t)?t.isException?F.nextAddress=F.catchAddress_||F.finallyAddress_:t.jumpTo!=void 0&&F.finallyAddress_<t.jumpTo?(F.nextAddress=t.jumpTo,F.abruptCompletion_=null):F.nextAddress=F.finallyAddress_:F.nextAddress=q};
xjC=function(F){this.JSC$8720_context_=new aL;this.program_=F};
vsC=function(F,q){OYC(F.JSC$8720_context_);var t=F.JSC$8720_context_.yieldAllIterator_;if(t)return Ab$(F,"return"in t?t["return"]:function(u){return{value:u,done:!0}},q,F.JSC$8720_context_.return);
F.JSC$8720_context_.return(q);return jN(F)};
Ab$=function(F,q,t,u){try{var J=q.call(F.JSC$8720_context_.yieldAllIterator_,t);if(!(J instanceof Object))throw new TypeError("h`"+J);if(!J.done)return F.JSC$8720_context_.isRunning_=!1,J;var g=J.value}catch(Y){return F.JSC$8720_context_.yieldAllIterator_=null,Pk_(F.JSC$8720_context_,Y),jN(F)}F.JSC$8720_context_.yieldAllIterator_=null;u.call(F.JSC$8720_context_,g);return jN(F)};
jN=function(F){for(;F.JSC$8720_context_.nextAddress;)try{var q=F.program_(F.JSC$8720_context_);if(q)return F.JSC$8720_context_.isRunning_=!1,{value:q.value,done:!1}}catch(t){F.JSC$8720_context_.yieldResult=void 0,Pk_(F.JSC$8720_context_,t)}F.JSC$8720_context_.isRunning_=!1;if(F.JSC$8720_context_.abruptCompletion_){q=F.JSC$8720_context_.abruptCompletion_;F.JSC$8720_context_.abruptCompletion_=null;if(q.isException)throw q.exception;return{value:q.return,done:!0}}return{value:void 0,done:!0}};
Ip_=function(F){this.next=function(q){OYC(F.JSC$8720_context_);F.JSC$8720_context_.yieldAllIterator_?q=Ab$(F,F.JSC$8720_context_.yieldAllIterator_.next,q,F.JSC$8720_context_.JSC$8715_next_):(F.JSC$8720_context_.JSC$8715_next_(q),q=jN(F));return q};
this.throw=function(q){OYC(F.JSC$8720_context_);F.JSC$8720_context_.yieldAllIterator_?q=Ab$(F,F.JSC$8720_context_.yieldAllIterator_["throw"],q,F.JSC$8720_context_.JSC$8715_next_):(Pk_(F.JSC$8720_context_,q),q=jN(F));return q};
this.return=function(q){return vsC(F,q)};
this[Symbol.iterator]=function(){return this}};
_.X9=function(F,q){q=new Ip_(new xjC(q));KZ&&F.prototype&&KZ(q,F.prototype);return q};
HYu=function(F){function q(u){return F.next(u)}
function t(u){return F.throw(u)}
return new Promise(function(u,J){function g(Y){Y.done?u(Y.value):Promise.resolve(Y.value).then(q,t).then(g,J)}
g(F.next())})};
_.p=function(F){return HYu(new Ip_(new xjC(F)))};
_.o2=function(F){var q=F[Symbol.asyncIterator];return q!==void 0?q.call(F):new mj3(_.X(F))};
mj3=function(F){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return F};
this.next=function(q){return Promise.resolve(F.next(q))};
this["throw"]=function(q){return new Promise(function(t,u){var J=F["throw"];J!==void 0?t(J.call(F,q)):(t=F["return"],t!==void 0&&t.call(F),u(new TypeError("j")))})};
F["return"]!==void 0&&(this["return"]=function(q){return Promise.resolve(F["return"](q))})};
_.US=function(){for(var F=Number(this),q=[],t=F;t<arguments.length;t++)q[t-F]=arguments[t];return q};
_.Yf=function(F){return F};
hX("globalThis",function(F){return F||_.JJ});
hX("Reflect",function(F){return F?F:{}});
hX("Reflect.construct",function(){return oso});
hX("Reflect.setPrototypeOf",function(F){return F?F:KZ?function(q,t){try{return KZ(q,t),!0}catch(u){return!1}}:null});
hX("Promise",function(F){function q(){this.batch_=null}
function t(Y){return Y instanceof J?Y:new J(function(Q){Q(Y)})}
if(F&&(typeof _.JJ.PromiseRejectionEvent!=="undefined"||!_.JJ.Promise||_.JJ.Promise.toString().indexOf("[native code]")===-1))return F;q.prototype.asyncExecute=function(Y){if(this.batch_==null){this.batch_=[];var Q=this;this.asyncExecuteFunction(function(){Q.executeBatch_()})}this.batch_.push(Y)};
var u=_.JJ.setTimeout;q.prototype.asyncExecuteFunction=function(Y){u(Y,0)};
q.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var Y=this.batch_;this.batch_=[];for(var Q=0;Q<Y.length;++Q){var e=Y[Q];Y[Q]=null;try{e()}catch(r){this.asyncThrow_(r)}}}this.batch_=null};
q.prototype.asyncThrow_=function(Y){this.asyncExecuteFunction(function(){throw Y;})};
var J=function(Y){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var Q=this.createResolveAndReject_();try{Y(Q.resolve,Q.reject)}catch(e){Q.reject(e)}};
J.prototype.createResolveAndReject_=function(){function Y(r){return function(N){e||(e=!0,r.call(Q,N))}}
var Q=this,e=!1;return{resolve:Y(this.resolveTo_),reject:Y(this.JSC$8748_reject_)}};
J.prototype.resolveTo_=function(Y){if(Y===this)this.JSC$8748_reject_(new TypeError("n"));else if(Y instanceof J)this.settleSameAsPromise_(Y);else{a:switch(typeof Y){case "object":var Q=Y!=null;break a;case "function":Q=!0;break a;default:Q=!1}Q?this.resolveToNonPromiseObj_(Y):this.fulfill_(Y)}};
J.prototype.resolveToNonPromiseObj_=function(Y){var Q=void 0;try{Q=Y.then}catch(e){this.JSC$8748_reject_(e);return}typeof Q=="function"?this.settleSameAsThenable_(Q,Y):this.fulfill_(Y)};
J.prototype.JSC$8748_reject_=function(Y){this.settle_(2,Y)};
J.prototype.fulfill_=function(Y){this.settle_(1,Y)};
J.prototype.settle_=function(Y,Q){if(this.state_!=0)throw Error("o`"+Y+"`"+Q+"`"+this.state_);this.state_=Y;this.result_=Q;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
J.prototype.scheduleUnhandledRejectionCheck_=function(){var Y=this;u(function(){if(Y.notifyUnhandledRejection_()){var Q=_.JJ.console;typeof Q!=="undefined"&&Q.error(Y.result_)}},1)};
J.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var Y=_.JJ.CustomEvent,Q=_.JJ.Event,e=_.JJ.dispatchEvent;if(typeof e==="undefined")return!0;typeof Y==="function"?Y=new Y("unhandledrejection",{cancelable:!0}):typeof Q==="function"?Y=new Q("unhandledrejection",{cancelable:!0}):(Y=_.JJ.document.createEvent("CustomEvent"),Y.initCustomEvent("unhandledrejection",!1,!0,Y));Y.promise=this;Y.reason=this.result_;return e(Y)};
J.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var Y=0;Y<this.onSettledCallbacks_.length;++Y)g.asyncExecute(this.onSettledCallbacks_[Y]);this.onSettledCallbacks_=null}};
var g=new q;J.prototype.settleSameAsPromise_=function(Y){var Q=this.createResolveAndReject_();Y.callWhenSettled_(Q.resolve,Q.reject)};
J.prototype.settleSameAsThenable_=function(Y,Q){var e=this.createResolveAndReject_();try{Y.call(Q,e.resolve,e.reject)}catch(r){e.reject(r)}};
J.prototype.then=function(Y,Q){function e(k,z){return typeof k=="function"?function(T){try{r(k(T))}catch(P){N(P)}}:z}
var r,N,w=new J(function(k,z){r=k;N=z});
this.callWhenSettled_(e(Y,r),e(Q,N));return w};
J.prototype.catch=function(Y){return this.then(void 0,Y)};
J.prototype.callWhenSettled_=function(Y,Q){function e(){switch(r.state_){case 1:Y(r.result_);break;case 2:Q(r.result_);break;default:throw Error("p`"+r.state_);}}
var r=this;this.onSettledCallbacks_==null?g.asyncExecute(e):this.onSettledCallbacks_.push(e);this.isRejectionHandled_=!0};
J.resolve=t;J.reject=function(Y){return new J(function(Q,e){e(Y)})};
J.race=function(Y){return new J(function(Q,e){for(var r=_.X(Y),N=r.next();!N.done;N=r.next())t(N.value).callWhenSettled_(Q,e)})};
J.all=function(Y){var Q=_.X(Y),e=Q.next();return e.done?t([]):new J(function(r,N){function w(T){return function(P){k[T]=P;z--;z==0&&r(k)}}
var k=[],z=0;do k.push(void 0),z++,t(e.value).callWhenSettled_(w(k.length-1),N),e=Q.next();while(!e.done)})};
return J});
var cO=function(F,q,t){if(F==null)throw new TypeError("q`"+t);if(q instanceof RegExp)throw new TypeError("r`"+t);return F+""};
hX("String.prototype.startsWith",function(F){return F?F:function(q,t){var u=cO(this,q,"startsWith"),J=u.length,g=q.length;t=Math.max(0,Math.min(t|0,u.length));for(var Y=0;Y<g&&t<J;)if(u[t++]!=q[Y++])return!1;return Y>=g}});
hX("Object.setPrototypeOf",function(F){return F||KZ});
hX("Symbol.dispose",function(F){return F?F:Symbol("s")});
hX("SuppressedError",function(F){function q(t,u,J){if(!(this instanceof q))return new q(t,u,J);J=Error(J);"stack"in J&&(this.stack=J.stack);this.message=J.message;this.error=t;this.suppressed=u}
if(F)return F;_.M(q,Error);q.prototype.name="SuppressedError";return q});
var $jy=function(F,q,t){F instanceof String&&(F=String(F));for(var u=F.length,J=0;J<u;J++){var g=F[J];if(q.call(t,g,J,F))return{i:J,v:g}}return{i:-1,v:void 0}};
hX("Array.prototype.find",function(F){return F?F:function(q,t){return $jy(this,q,t).v}});
hX("WeakMap",function(F){function q(){}
function t(e){var r=typeof e;return r==="object"&&e!==null||r==="function"}
function u(e){if(!fZ(e,g)){var r=new q;iYy(e,g,{value:r})}}
function J(e){var r=Object[e];r&&(Object[e]=function(N){if(N instanceof q)return N;Object.isExtensible(N)&&u(N);return r(N)})}
if(function(){if(!F||!Object.seal)return!1;try{var e=Object.seal({}),r=Object.seal({}),N=new F([[e,2],[r,3]]);if(N.get(e)!=2||N.get(r)!=3)return!1;N.delete(e);N.set(r,4);return!N.has(e)&&N.get(r)==4}catch(w){return!1}}())return F;
var g="$jscomp_hidden_"+Math.random();J("freeze");J("preventExtensions");J("seal");var Y=0,Q=function(e){this.JSC$8755_id_=(Y+=Math.random()+1).toString();if(e){e=_.X(e);for(var r;!(r=e.next()).done;)r=r.value,this.set(r[0],r[1])}};
Q.prototype.set=function(e,r){if(!t(e))throw Error("t");u(e);if(!fZ(e,g))throw Error("u`"+e);e[g][this.JSC$8755_id_]=r;return this};
Q.prototype.get=function(e){return t(e)&&fZ(e,g)?e[g][this.JSC$8755_id_]:void 0};
Q.prototype.has=function(e){return t(e)&&fZ(e,g)&&fZ(e[g],this.JSC$8755_id_)};
Q.prototype.delete=function(e){return t(e)&&fZ(e,g)&&fZ(e[g],this.JSC$8755_id_)?delete e[g][this.JSC$8755_id_]:!1};
return Q});
hX("Map",function(F){if(function(){if(!F||typeof F!="function"||!F.prototype.entries||typeof Object.seal!="function")return!1;try{var Q=Object.seal({x:4}),e=new F(_.X([[Q,"s"]]));if(e.get(Q)!="s"||e.size!=1||e.get({x:4})||e.set({x:4},"t")!=e||e.size!=2)return!1;var r=e.entries(),N=r.next();if(N.done||N.value[0]!=Q||N.value[1]!="s")return!1;N=r.next();return N.done||N.value[0].x!=4||N.value[1]!="t"||!r.next().done?!1:!0}catch(w){return!1}}())return F;
var q=new WeakMap,t=function(Q){this[0]={};this[1]=g();this.size=0;if(Q){Q=_.X(Q);for(var e;!(e=Q.next()).done;)e=e.value,this.set(e[0],e[1])}};
t.prototype.set=function(Q,e){Q=Q===0?0:Q;var r=u(this,Q);r.list||(r.list=this[0][r.id]=[]);r.entry?r.entry.value=e:(r.entry={next:this[1],previous:this[1].previous,head:this[1],key:Q,value:e},r.list.push(r.entry),this[1].previous.next=r.entry,this[1].previous=r.entry,this.size++);return this};
t.prototype.delete=function(Q){Q=u(this,Q);return Q.entry&&Q.list?(Q.list.splice(Q.index,1),Q.list.length||delete this[0][Q.id],Q.entry.previous.next=Q.entry.next,Q.entry.next.previous=Q.entry.previous,Q.entry.head=null,this.size--,!0):!1};
t.prototype.clear=function(){this[0]={};this[1]=this[1].previous=g();this.size=0};
t.prototype.has=function(Q){return!!u(this,Q).entry};
t.prototype.get=function(Q){return(Q=u(this,Q).entry)&&Q.value};
t.prototype.entries=function(){return J(this,function(Q){return[Q.key,Q.value]})};
t.prototype.keys=function(){return J(this,function(Q){return Q.key})};
t.prototype.values=function(){return J(this,function(Q){return Q.value})};
t.prototype.forEach=function(Q,e){for(var r=this.entries(),N;!(N=r.next()).done;)N=N.value,Q.call(e,N[1],N[0],this)};
t.prototype[Symbol.iterator]=t.prototype.entries;var u=function(Q,e){var r=e&&typeof e;r=="object"||r=="function"?q.has(e)?r=q.get(e):(r=""+ ++Y,q.set(e,r)):r="p_"+e;var N=Q[0][r];if(N&&fZ(Q[0],r))for(Q=0;Q<N.length;Q++){var w=N[Q];if(e!==e&&w.key!==w.key||e===w.key)return{id:r,list:N,index:Q,entry:w}}return{id:r,list:N,index:-1,entry:void 0}},J=function(Q,e){var r=Q[1];
return Esy(function(){if(r){for(;r.head!=Q[1];)r=r.previous;for(;r.next!=r.head;)return r=r.next,{done:!1,value:e(r)};r=null}return{done:!0,value:void 0}})},g=function(){var Q={};
return Q.previous=Q.next=Q.head=Q},Y=0;
return t});
hX("Set",function(F){if(function(){if(!F||typeof F!="function"||!F.prototype.entries||typeof Object.seal!="function")return!1;try{var t=Object.seal({x:4}),u=new F(_.X([t]));if(!u.has(t)||u.size!=1||u.add(t)!=u||u.size!=1||u.add({x:4})!=u||u.size!=2)return!1;var J=u.entries(),g=J.next();if(g.done||g.value[0]!=t||g.value[1]!=t)return!1;g=J.next();return g.done||g.value[0]==t||g.value[0].x!=4||g.value[1]!=g.value[0]?!1:J.next().done}catch(Y){return!1}}())return F;
var q=function(t){this.JSC$8769_map_=new Map;if(t){t=_.X(t);for(var u;!(u=t.next()).done;)this.add(u.value)}this.size=this.JSC$8769_map_.size};
q.prototype.add=function(t){t=t===0?0:t;this.JSC$8769_map_.set(t,t);this.size=this.JSC$8769_map_.size;return this};
q.prototype.delete=function(t){t=this.JSC$8769_map_.delete(t);this.size=this.JSC$8769_map_.size;return t};
q.prototype.clear=function(){this.JSC$8769_map_.clear();this.size=0};
q.prototype.has=function(t){return this.JSC$8769_map_.has(t)};
q.prototype.entries=function(){return this.JSC$8769_map_.entries()};
q.prototype.values=function(){return this.JSC$8769_map_.values()};
q.prototype.keys=q.prototype.values;q.prototype[Symbol.iterator]=q.prototype.values;q.prototype.forEach=function(t,u){var J=this;this.JSC$8769_map_.forEach(function(g){return t.call(u,g,g,J)})};
return q});
hX("Math.log2",function(F){return F?F:function(q){return Math.log(q)/Math.LN2}});
hX("Object.values",function(F){return F?F:function(q){var t=[],u;for(u in q)fZ(q,u)&&t.push(q[u]);return t}});
hX("Object.is",function(F){return F?F:function(q,t){return q===t?q!==0||1/q===1/t:q!==q&&t!==t}});
hX("Array.prototype.includes",function(F){return F?F:function(q,t){var u=this;u instanceof String&&(u=String(u));var J=u.length;t=t||0;for(t<0&&(t=Math.max(t+J,0));t<J;t++){var g=u[t];if(g===q||Object.is(g,q))return!0}return!1}});
hX("String.prototype.includes",function(F){return F?F:function(q,t){return cO(this,q,"includes").indexOf(q,t||0)!==-1}});
hX("Array.from",function(F){return F?F:function(q,t,u){t=t!=null?t:function(Q){return Q};
var J=[],g=typeof Symbol!="undefined"&&Symbol.iterator&&q[Symbol.iterator];if(typeof g=="function"){q=g.call(q);for(var Y=0;!(g=q.next()).done;)J.push(t.call(u,g.value,Y++))}else for(g=q.length,Y=0;Y<g;Y++)J.push(t.call(u,q[Y],Y));return J}});
hX("Object.entries",function(F){return F?F:function(q){var t=[],u;for(u in q)fZ(q,u)&&t.push([u,q[u]]);return t}});
hX("Number.isFinite",function(F){return F?F:function(q){return typeof q!=="number"?!1:!isNaN(q)&&q!==Infinity&&q!==-Infinity}});
hX("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
hX("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
hX("Number.isInteger",function(F){return F?F:function(q){return Number.isFinite(q)?q===Math.floor(q):!1}});
hX("Number.isSafeInteger",function(F){return F?F:function(q){return Number.isInteger(q)&&Math.abs(q)<=Number.MAX_SAFE_INTEGER}});
hX("String.prototype.endsWith",function(F){return F?F:function(q,t){var u=cO(this,q,"endsWith");t===void 0&&(t=u.length);t=Math.max(0,Math.min(t|0,u.length));for(var J=q.length;J>0&&t>0;)if(u[--t]!=q[--J])return!1;return J<=0}});
var bYf=function(F,q){F instanceof String&&(F+="");var t=0,u=!1,J={next:function(){if(!u&&t<F.length){var g=t++;return{value:q(g,F[g]),done:!1}}u=!0;return{done:!0,value:void 0}}};
J[Symbol.iterator]=function(){return J};
return J};
hX("Array.prototype.entries",function(F){return F?F:function(){return bYf(this,function(q,t){return[q,t]})}});
hX("Math.trunc",function(F){return F?F:function(q){q=Number(q);if(isNaN(q)||q===Infinity||q===-Infinity||q===0)return q;var t=Math.floor(Math.abs(q));return q<0?-t:t}});
hX("Number.isNaN",function(F){return F?F:function(q){return typeof q==="number"&&isNaN(q)}});
hX("Array.prototype.keys",function(F){return F?F:function(){return bYf(this,function(q){return q})}});
hX("Array.prototype.values",function(F){return F?F:function(){return bYf(this,function(q,t){return t})}});
hX("Array.prototype.fill",function(F){return F?F:function(q,t,u){var J=this.length||0;t<0&&(t=Math.max(0,J+t));if(u==null||u>J)u=J;u=Number(u);u<0&&(u=Math.max(0,J+u));for(t=Number(t||0);t<u;t++)this[t]=q;return this}});
var Fr=function(F){return F?F:Array.prototype.fill};
hX("Int8Array.prototype.fill",Fr);hX("Uint8Array.prototype.fill",Fr);hX("Uint8ClampedArray.prototype.fill",Fr);hX("Int16Array.prototype.fill",Fr);hX("Uint16Array.prototype.fill",Fr);hX("Int32Array.prototype.fill",Fr);hX("Uint32Array.prototype.fill",Fr);hX("Float32Array.prototype.fill",Fr);hX("Float64Array.prototype.fill",Fr);
hX("Object.fromEntries",function(F){return F?F:function(q){var t={};if(!(Symbol.iterator in q))throw new TypeError("v`"+q);q=q[Symbol.iterator].call(q);for(var u=q.next();!u.done;u=q.next()){u=u.value;if(Object(u)!==u)throw new TypeError("w");t[u[0]]=u[1]}return t}});
hX("String.prototype.replaceAll",function(F){return F?F:function(q,t){if(q instanceof RegExp&&!q.global)throw new TypeError("x");return q instanceof RegExp?this.replace(q,t):this.replace(new RegExp(String(q).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),t)}});
hX("Object.getOwnPropertySymbols",function(F){return F?F:function(){return[]}});
hX("String.prototype.repeat",function(F){return F?F:function(q){var t=cO(this,null,"repeat");if(q<0||q>1342177279)throw new RangeError("y");q|=0;for(var u="";q;)if(q&1&&(u+=t),q>>>=1)t+=t;return u}});
hX("Array.prototype.findIndex",function(F){return F?F:function(q,t){return $jy(this,q,t).i}});
hX("Array.prototype.flatMap",function(F){return F?F:function(q,t){var u=[];Array.prototype.forEach.call(this,function(J,g){J=q.call(t,J,g,this);Array.isArray(J)?u.push.apply(u,J):u.push(J)});
return u}});
hX("String.prototype.codePointAt",function(F){return F?F:function(q){var t=cO(this,null,"codePointAt"),u=t.length;q=Number(q)||0;if(q>=0&&q<u){q|=0;var J=t.charCodeAt(q);if(J<55296||J>56319||q+1===u)return J;q=t.charCodeAt(q+1);return q<56320||q>57343?J:(J-55296)*1024+q+9216}}});
hX("String.fromCodePoint",function(F){return F?F:function(q){for(var t="",u=0;u<arguments.length;u++){var J=Number(arguments[u]);if(J<0||J>1114111||J!==Math.floor(J))throw new RangeError("z`"+J);J<=65535?t+=String.fromCharCode(J):(J-=65536,t+=String.fromCharCode(J>>>10&1023|55296),t+=String.fromCharCode(J&1023|56320))}return t}});
hX("String.prototype.trimLeft",function(F){function q(){return this.replace(/^[\s\xa0]+/,"")}
return F||q});
hX("String.prototype.trimStart",function(F){return F||String.prototype.trimLeft});
hX("String.prototype.padStart",function(F){return F?F:function(q,t){var u=cO(this,null,"padStart");q-=u.length;t=t!==void 0?String(t):" ";return(q>0&&t?t.repeat(Math.ceil(q/t.length)).substring(0,q):"")+u}});
hX("Promise.prototype.finally",function(F){return F?F:function(q){return this.then(function(t){return Promise.resolve(q()).then(function(){return t})},function(t){return Promise.resolve(q()).then(function(){throw t;
})})}});
hX("Math.imul",function(F){return F?F:function(q,t){q=Number(q);t=Number(t);var u=q&65535,J=t&65535;return u*J+((q>>>16&65535)*J+u*(t>>>16&65535)<<16>>>0)|0}});
hX("Object.hasOwn",function(F){return F?F:function(q,t){return Object.prototype.hasOwnProperty.call(q,t)}});
hX("Math.sign",function(F){return F?F:function(q){q=Number(q);return q===0||isNaN(q)?q:q>0?1:-1}});
hX("Array.prototype.flat",function(F){return F?F:function(q){q=q===void 0?1:q;var t=[];Array.prototype.forEach.call(this,function(u){Array.isArray(u)&&q>0?(u=Array.prototype.flat.call(u,q-1),t.push.apply(t,u)):t.push(u)});
return t}});
hX("String.raw",function(F){return F?F:function(q,t){q=DjP(q);for(var u=q.raw,J=u.length,g="",Y=0;Y<J;++Y)g+=u[Y],Y+1<J&&Y+1<arguments.length&&(g+=String(arguments[Y+1]));return g}});
hX("Reflect.ownKeys",function(F){return F?F:function(q){var t=[],u=Object.getOwnPropertyNames(q);q=Object.getOwnPropertySymbols(q);for(var J=0;J<u.length;J++)(u[J].substring(0,14)=="jscomp_symbol_"?q:t).push(u[J]);return t.concat(q)}});
hX("Object.getOwnPropertyDescriptors",function(F){return F?F:function(q){for(var t={},u=Reflect.ownKeys(q),J=0;J<u.length;J++)t[u[J]]=Object.getOwnPropertyDescriptor(q,u[J]);return t}});
hX("WeakSet",function(F){if(function(){if(!F||!Object.seal)return!1;try{var t=Object.seal({}),u=Object.seal({}),J=new F([t]);if(!J.has(t)||J.has(u))return!1;J.delete(t);J.add(u);return!J.has(t)&&J.has(u)}catch(g){return!1}}())return F;
var q=function(t){this.JSC$8782_map_=new WeakMap;if(t){t=_.X(t);for(var u;!(u=t.next()).done;)this.add(u.value)}};
q.prototype.add=function(t){this.JSC$8782_map_.set(t,!0);return this};
q.prototype.has=function(t){return this.JSC$8782_map_.has(t)};
q.prototype.delete=function(t){return this.JSC$8782_map_.delete(t)};
return q});
hX("Promise.allSettled",function(F){function q(u){return{status:"fulfilled",value:u}}
function t(u){return{status:"rejected",reason:u}}
return F?F:function(u){var J=this;u=Array.from(u,function(g){return J.resolve(g).then(q,t)});
return J.all(u)}});
hX("Number.parseInt",function(F){return F||parseInt});
_._DumpException=window._DumpException||function(F){throw F;};
window._DumpException=_._DumpException;var ybM=window.ytcsi;ybM&&typeof ybM.tick==="function"&&ybM.tick("rses_dpj");var Cku,qJ,ta,up,djf,VKf,UjM,S4_,OC,hRC;Cku=Cku||{};_.uu=this||self;_.uo=function(F,q,t){F=F.split(".");t=t||_.uu;for(var u;F.length&&(u=F.shift());)F.length||q===void 0?t[u]&&t[u]!==Object.prototype[u]?t=t[u]:t=t[u]={}:t[u]=q};
qJ=function(F,q){var t=_.S6("WIZ_global_data.oxN3nb");F=t&&t[F];return F!=null?F:q};
ta=_.uu._F_toggles_default_kevlar_base||[];up=function(){};
up.get=function(){return null};
_.IMP=null;_.S6=function(F,q){F=F.split(".");q=q||_.uu;for(var t=0;t<F.length;t++)if(q=q[F[t]],q==null)return null;return q};
_.Ja=function(F){F.instance_=void 0;F.getInstance=function(){return F.instance_?F.instance_:F.instance_=new F}};
_.Ke=function(F){var q=typeof F;return q!="object"?q:F?Array.isArray(F)?"array":q:"null"};
_.VC=function(F){var q=_.Ke(F);return q=="array"||q=="object"&&typeof F.length=="number"};
_.ho=function(F){var q=typeof F;return q=="object"&&F!=null||q=="function"};
_.K3=function(F){return Object.prototype.hasOwnProperty.call(F,djf)&&F[djf]||(F[djf]=++VKf)};
djf="closure_uid_"+(Math.random()*1E9>>>0);VKf=0;UjM=function(F,q,t){return F.call.apply(F.bind,arguments)};
S4_=function(F,q,t){if(!F)throw Error();if(arguments.length>2){var u=Array.prototype.slice.call(arguments,2);return function(){var J=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(J,u);return F.apply(q,J)}}return function(){return F.apply(q,arguments)}};
_.Pd=function(F,q,t){_.Pd=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?UjM:S4_;return _.Pd.apply(null,arguments)};
_.MU=function(F,q){var t=Array.prototype.slice.call(arguments,1);return function(){var u=t.slice();u.push.apply(u,arguments);return F.apply(this,u)}};
_.sa=function(){return Date.now()};
OC=function(F){return F};
_.gd=function(F,q){function t(){}
t.prototype=q.prototype;F.superClass_=q.prototype;F.prototype=new t;F.prototype.constructor=F;F.base=function(u,J,g){for(var Y=Array(arguments.length-2),Q=2;Q<arguments.length;Q++)Y[Q-2]=arguments[Q];return q.prototype[J].apply(u,Y)}};
hRC=function(F){return F};var Kfo,BMy;_.C=function(F,q,t,u){var J=arguments.length,g=J<3?q:u===null?u=Object.getOwnPropertyDescriptor(q,t):u,Y;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")g=Reflect.decorate(F,q,t,u);else for(var Q=F.length-1;Q>=0;Q--)if(Y=F[Q])g=(J<3?Y(g):J>3?Y(q,t,g):Y(q,t))||g;J>3&&g&&Object.defineProperty(q,t,g)};
_.V=function(F,q){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(F,q)};
Kfo=function(F,q){if(q!==null&&q!==void 0){if(typeof q!=="object"&&typeof q!=="function")throw new TypeError("A");if(t===void 0){if(!Symbol.dispose)throw new TypeError("C");var t=q[Symbol.dispose]}if(typeof t!=="function")throw new TypeError("D");F.stack.push({value:q,dispose:t,async:!1})}return q};
BMy=function(F){function q(g){F.error=F.hasError?new SuppressedError(g,F.error,"An error was suppressed during disposal."):g;F.hasError=!0}
function t(){for(;u=F.stack.pop();)try{if(!u.async&&J===1)return J=0,F.stack.push(u),Promise.resolve().then(t);if(u.dispose){var g=u.dispose.call(u.value);if(u.async)return J|=2,Promise.resolve(g).then(t,function(Y){q(Y);return t()})}else J|=1}catch(Y){q(Y)}if(J===1)return F.hasError?Promise.reject(F.error):Promise.resolve();
if(F.hasError)throw F.error;}
var u,J=0;t()};_.gd(_.Fq,Error);_.Fq.prototype.name="CustomError";var Lfu;var fpo=void 0,apu,j9_=typeof TextDecoder!=="undefined",uq3,tWM=typeof String.prototype.isWellFormed==="function",qMo=typeof TextEncoder!=="undefined";var cby;_.Wd=function(F){for(var q=[],t=0,u=0;u<F.length;u++){var J=F.charCodeAt(u);J<128?q[t++]=J:(J<2048?q[t++]=J>>6|192:((J&64512)==55296&&u+1<F.length&&(F.charCodeAt(u+1)&64512)==56320?(J=65536+((J&1023)<<10)+(F.charCodeAt(++u)&1023),q[t++]=J>>18|240,q[t++]=J>>12&63|128):q[t++]=J>>12|224,q[t++]=J>>6&63|128),q[t++]=J&63|128)}return q};
cby=function(F){for(var q=[],t=0,u=0;t<F.length;){var J=F[t++];if(J<128)q[u++]=String.fromCharCode(J);else if(J>191&&J<224){var g=F[t++];q[u++]=String.fromCharCode((J&31)<<6|g&63)}else if(J>239&&J<365){g=F[t++];var Y=F[t++],Q=F[t++];J=((J&7)<<18|(g&63)<<12|(Y&63)<<6|Q&63)-65536;q[u++]=String.fromCharCode(55296+(J>>10));q[u++]=String.fromCharCode(56320+(J&1023))}else g=F[t++],Y=F[t++],q[u++]=String.fromCharCode((J&15)<<12|(g&63)<<6|Y&63)}return q.join("")};var eW=String.prototype.trim?function(F){return F.trim()}:function(F){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(F)[1]},FDt=/&/g,qjq=/</g,tXW=/>/g,um3=/"/g,JwA=/'/g,s1f=/\x00/g,g8W=/[\x00&<>"']/;var lp=!!(ta[0]>>15&1),l7f=!!(ta[0]&1024),Xm3=!!(ta[0]>>16&1),Yjy=!!(ta[0]&8),pmq=!!(ta[0]&2),Q1M=!!(ta[0]&4),eqv=!!(ta[0]&16),ZXq=!!(ta[0]&128);var RqP=qJ(1,!0),iu=lp?Xm3:qJ(610401301,!1),rw_=lp?Yjy:qJ(772657768,!1),NVv=lp?pmq:qJ(513659523,!1),wmf=lp?l7f||!Q1M:qJ(568333945,!0),y53=lp?eqv:qJ(1331761403,!1),r9$=lp?l7f||!ZXq:qJ(748402147,RqP);var EM,iX$=_.uu.navigator;EM=iX$?iX$.userAgentData||null:null;var ae;_.Hy=function(F,q){return Array.prototype.indexOf.call(F,q,void 0)};
_.B_=function(F,q,t){Array.prototype.forEach.call(F,q,t)};
_.Xr=function(F,q,t){return Array.prototype.filter.call(F,q,t)};
_.$q=function(F,q,t){return Array.prototype.map.call(F,q,t)};
ae=function(F,q,t){return Array.prototype.some.call(F,q,t)};
_.kuu=function(F,q,t){return Array.prototype.every.call(F,q,t)};var YB=function(F){YB[" "](F);return F};
YB[" "]=function(){};
var G0C=function(F,q){try{return YB(F[q]),!0}catch(t){}return!1},kAf=function(F,q,t,u){u=u?u(q):q;
return Object.prototype.hasOwnProperty.call(F,u)?F[u]:F[u]=t(q)};var kiM,qE,E8t,zqM,n8P,MX$,iVP,TVq,Gio,D9M,iFW,OXP,PO3,I7P,HXP,m9u;_.r2u=function(){return _.uu.navigator||null};
kiM=lvM();_.p4=XyW();qE=zt("Edge");E8t=qE||_.p4;_.QZ=zt("Gecko")&&!(_.QC(_.NA(),"WebKit")&&!zt("Edge"))&&!(zt("Trident")||zt("MSIE"))&&!zt("Edge");_.es=_.QC(_.NA(),"WebKit")&&!zt("Edge");zqM=_.es&&zt("Mobile");_.o8u=_.wyq();n8P=_.i3y();MX$=(OM()?EM.platform==="Linux":zt("Linux"))||_.ktW();iVP=_.rof();TVq=Nfo();Gio=zt("iPad");D9M=zt("iPod");_.WD_=_.Py();iFW=_.QC(_.NA(),"KaiOS");OXP=function(){var F=_.uu.document;return F?F.documentMode:void 0};
a:{var x9C="",AwW=function(){var F=_.NA();if(_.QZ)return/rv:([^\);]+)(\)|;)/.exec(F);if(qE)return/Edge\/([\d\.]+)/.exec(F);if(_.p4)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(F);if(_.es)return/WebKit\/(\S+)/.exec(F);if(kiM)return/(?:Version)[ \/]?(\S+)/.exec(F)}();
AwW&&(x9C=AwW?AwW[1]:"");if(_.p4){var v8y=OXP();if(v8y!=null&&v8y>parseFloat(x9C)){PO3=String(v8y);break a}}PO3=x9C}I7P=PO3;HXP={};_.Zf=function(F){return kAf(HXP,F,function(){return _.R_(I7P,F)>=0})};
if(_.uu.document&&_.p4){var $9C=OXP();m9u=$9C?$9C:parseInt(I7P,10)||void 0}else m9u=void 0;_.bX3=m9u;var PCP,xpM,yw$;_.RC=Gt();PCP=Nfo()||zt("iPod");xpM=zt("iPad");yw$=_.Q_v();_.rd=_.Wy();_.dN=_.py3()&&!_.Py();var COC,NJ,SFv,opW,VXP,d93;COC={};NJ=null;SFv=_.QZ||_.es||typeof _.uu.btoa=="function";_.A9=function(F,q){q===void 0&&(q=0);d93();q=COC[q];for(var t=Array(Math.floor(F.length/3)),u=q[64]||"",J=0,g=0;J<F.length-2;J+=3){var Y=F[J],Q=F[J+1],e=F[J+2],r=q[Y>>2];Y=q[(Y&3)<<4|Q>>4];Q=q[(Q&15)<<2|e>>6];e=q[e&63];t[g++]=r+Y+Q+e}r=0;e=u;switch(F.length-J){case 2:r=F[J+1],e=q[(r&15)<<2]||u;case 1:F=F[J],t[g]=q[F>>2]+q[(F&3)<<4|r>>4]+e+u}return t.join("")};
opW=function(F){var q="";VXP(F,function(t){q+=String.fromCharCode(t)});
return q};
_.mf$=function(F){var q=[];VXP(F,function(t){q.push(t)});
return q};
_.f3=function(F){var q=F.length,t=q*3/4;t%3?t=Math.floor(t):_.p3("=.",F[q-1])&&(t=_.p3("=.",F[q-2])?t-2:t-1);var u=new Uint8Array(t),J=0;VXP(F,function(g){u[J++]=g});
return J!==t?u.subarray(0,J):u};
VXP=function(F,q){function t(e){for(;u<F.length;){var r=F.charAt(u++),N=NJ[r];if(N!=null)return N;if(!_.YP(r))throw Error("H`"+r);}return e}
d93();for(var u=0;;){var J=t(-1),g=t(0),Y=t(64),Q=t(64);if(Q===64&&J===-1)break;q(J<<2|g>>4);Y!=64&&(q(g<<4&240|Y>>2),Q!=64&&q(Y<<6&192|Q))}};
d93=function(){if(!NJ){NJ={};for(var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),q=["+/=","+/","-_=","-_.","-_"],t=0;t<5;t++){var u=F.concat(q[t].split(""));COC[t]=u;for(var J=0;J<u.length;J++){var g=u[J];NJ[g]===void 0&&(NJ[g]=J)}}}};var SM$=typeof Uint8Array!=="undefined",vPC=!_.p4&&typeof btoa==="function",Ivq=/[-_.]/g,xAo={"-":"+",_:"/",".":"="},Mn={};var iJ,SjW;iJ=function(F,q){if(q!==Mn)throw Error("J");this.JSC$8812_value_=F;if(F!=null&&F.length===0)throw Error("I");};
_.T1=function(){return U9$||(U9$=new iJ(null,Mn))};
SjW=function(F){return new Uint8Array(bhv(F)||0)};
iJ.prototype.isEmpty=function(){return this.JSC$8812_value_==null};
iJ.prototype.sizeBytes=function(){var F=bhv(this);return F?F.length:0};
var bhv=function(F){if(Mn!==Mn)throw Error("J");var q=F.JSC$8812_value_;q==null||SM$&&q!=null&&q instanceof Uint8Array||(typeof q==="string"?q=H3_(q):(_.Ke(q),q=null));return q==null?q:F.JSC$8812_value_=q},U9$;var $A3=void 0;var JE=typeof Symbol==="function"&&typeof Symbol()==="symbol",hqq=qn("jas",void 0,!0),HeW=qn(void 0,"0di"),qy=qn(void 0,"1oa"),Ps=qn(void 0,Symbol()),jju=qn(void 0,"0ub"),Fvu=qn(void 0,"0ubs"),zZC=qn(void 0,"0ubsb"),wso=qn(void 0,"0actk"),oy=qn("m_m","messagePrototypeMarker",!0),psf=qn(void 0,"vps"),Lrv=qn();var CuM,yo3,Kh,KDv;CuM={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};yo3=Object.defineProperties;_.sv=JE?hqq:"internalArrayState";KDv=[];lJ(KDv,7);Kh=Object.freeze(KDv);var nh={},Qz={},BVW=function(F,q,t){this.iterable=F;this.mapper=q;this.thisArg=t};
BVW.prototype.next=function(){var F=this.iterable.next();F.done||(F.value=this.mapper.call(this.thisArg,F.value));return F};
BVW.prototype[Symbol.iterator]=function(){return this};
var LDy=Object.freeze({}),Ov={};_.f7u=AE(function(F){return F!==null&&F!==void 0});var avy=AE(function(F){return typeof F==="number"}),fvo=AE(function(F){return typeof F==="string"}),coy=AE(function(F){return typeof F==="boolean"}),a73=AE(function(F){return F!=null&&typeof F==="object"&&typeof F.then==="function"}),OEf=AE(function(F){return typeof F==="function"}),X6=AE(function(F){return!!F&&(typeof F==="object"||typeof F==="function")});var j_W=typeof _.uu.BigInt==="function"&&typeof _.uu.BigInt(0)==="bigint";var OeA=AE(function(F){return j_W?F>=j1o&&F<=cwy:F[0]==="-"?Fro(F,FPy):Fro(F,qxq)}),FPy=Number.MIN_SAFE_INTEGER.toString(),j1o=j_W?BigInt(Number.MIN_SAFE_INTEGER):void 0,qxq=Number.MAX_SAFE_INTEGER.toString(),cwy=j_W?BigInt(Number.MAX_SAFE_INTEGER):void 0;var t3_=typeof Uint8Array.prototype.slice==="function",Ij=0,mr=0,uLP;var gJ,ph,aj,QT,ed$;gJ=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Ry=typeof BigInt==="function"?BigInt.asUintN:void 0;ph=Number.isSafeInteger;aj=Number.isFinite;QT=Math.trunc;ed$=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var QyW={};var hdv={},uiC=function(){try{var F=function(){return oso(Map,[],this.constructor)};
_.M(F,Map);YB(new F);return!1}catch(q){return!0}}(),wd=function(){this.JSC$8831_map_=new Map};
_.l=wd.prototype;_.l.get=function(F){return this.JSC$8831_map_.get(F)};
_.l.set=function(F,q){this.JSC$8831_map_.set(F,q);this.size=this.JSC$8831_map_.size;return this};
_.l.delete=function(F){F=this.JSC$8831_map_.delete(F);this.size=this.JSC$8831_map_.size;return F};
_.l.clear=function(){this.JSC$8831_map_.clear();this.size=this.JSC$8831_map_.size};
_.l.has=function(F){return this.JSC$8831_map_.has(F)};
_.l.entries=function(){return this.JSC$8831_map_.entries()};
_.l.keys=function(){return this.JSC$8831_map_.keys()};
_.l.values=function(){return this.JSC$8831_map_.values()};
_.l.forEach=function(F,q){return this.JSC$8831_map_.forEach(F,q)};
wd.prototype[Symbol.iterator]=function(){return this.entries()};
var vs=function(){if(uiC)return Object.setPrototypeOf(wd.prototype,Map.prototype),Object.defineProperties(wd.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),wd;var F=function(){return oso(Map,[],this.constructor)};
_.M(F,Map);return F}(),Ws=function(F,q,t,u){t=t===void 0?CJo:t;
u=u===void 0?CJo:u;var J=vs.call(this)||this;J.arrayState=F[_.sv]|0;J.valueCtor=q;J.keyToApi=t;J.valueToApi=J.valueCtor?VCP:u;for(var g=0;g<F.length;g++){var Y=F[g],Q=t(Y[0],!1,!0),e=Y[1];q?e===void 0&&(e=null):e=u(Y[1],!1,!0,void 0,void 0,J.arrayState);vs.prototype.set.call(J,Q,e)}return J};
_.M(Ws,vs);var JjP=function(F){if(F.arrayState&2)throw Error("N");},E7_=function(F){return Array.from(vs.prototype.entries.call(F))};
_.l=Ws.prototype;_.l.clear=function(){JjP(this);vs.prototype.clear.call(this)};
_.l.delete=function(F){JjP(this);return vs.prototype.delete.call(this,this.keyToApi(F,!0,!1))};
_.l.entries=function(){if(this.valueCtor){var F=vs.prototype.keys.call(this);F=new BVW(F,Unq,this)}else F=vs.prototype.entries.call(this);return F};
_.l.values=function(){if(this.valueCtor){var F=vs.prototype.keys.call(this);F=new BVW(F,Ws.prototype.get,this)}else F=vs.prototype.values.call(this);return F};
_.l.forEach=function(F,q){this.valueCtor?vs.prototype.forEach.call(this,function(t,u,J){F.call(q,J.get(u),u,J)}):vs.prototype.forEach.call(this,F,q)};
_.l.set=function(F,q){JjP(this);F=this.keyToApi(F,!0,!1);return F==null?this:q==null?(vs.prototype.delete.call(this,F),this):vs.prototype.set.call(this,F,this.valueToApi(q,!0,!0,this.valueCtor,!1,this.arrayState))};
_.l.has=function(F){return vs.prototype.has.call(this,this.keyToApi(F,!1,!1))};
_.l.get=function(F){F=this.keyToApi(F,!1,!1);var q=vs.prototype.get.call(this,F);if(q!==void 0){var t=this.valueCtor;return t?(t=this.valueToApi(q,!1,!0,t,this.callToMutableOnAccess,this.arrayState),t!==q&&vs.prototype.set.call(this,F,t),t):q}};
Ws.prototype[Symbol.iterator]=function(){return this.entries()};
Ws.prototype.toJSON=void 0;var Svy;var J9t=function(){},t5A=function(F,q){for(var t in F)!isNaN(t)&&q(F,+t,F[t])},syf=function(F){var q=new J9t;
t5A(F,function(t,u,J){q[u]=Vz(J)});
q.reviveUnknownFields=F.reviveUnknownFields;return q},fwC={reviveIntoImmutable:!0};var u3u;var e93,Zh3;var sxf,ay,ke,Mb,g$$,T3,oJ,la$,X03,Oa,Yxf,Pi,vi,IC;sxf=_.vf(0);_.ip={};_.kB=function(F,q,t,u,J){q=ay(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q,t,J);if(q!==null||u&&F.noLegacyNull!==Qz)return q};
ay=function(F,q,t,u){if(q===-1)return null;var J=q+(t?0:-1),g=F.length-1;if(!(g<1+(t?0:-1))){if(J>=g){var Y=F[g];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object){t=Y[q];var Q=!0}else if(J===g)t=Y;else return}else t=F[J];if(u&&t!=null){u=u(t);if(u==null)return u;if(!Object.is(u,t))return Q?Y[q]=u:F[J]=u,u}return t}};
_.Qa=function(F,q,t,u){VT(F);var J=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;S5(J,J[_.sv]|0,q,t,u);return F};
_.Ea=function(F,q,t){F=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return v7W(F,F[_.sv]|0,q,t)!==void 0};
_.z3=function(F,q,t,u){var J=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return v7W(J,J[_.sv]|0,q,Mb(F,u,t))!==void 0};
_.YW=function(F){return F===LDy?2:4};
_.oC=function(F,q){F=_.kB(F,q,void 0,void 0,DDy);return F==null?_.T1():F};
ke=function(F,q,t,u){VT(F);var J=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=J[_.sv]|0;if(u==null){var Y=Pwu(J);if(xDy(Y,J,g,t)===q)Y.set(t,0);else return F}else g=A9$(J,g,t,q);S5(J,g,q,u);return F};
_.n4=function(F,q,t,u){var J=F[_.sv]|0,g=Pf(J);J=A9$(F,J,t,q,g);S5(F,J,q,u,g)};
Mb=function(F,q,t){return _.MJ(F,q)===t?t:-1};
_.MJ=function(F,q){F=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return xDy(Pwu(F),F,void 0,q,void 0)};
g$$=function(F,q,t){var u=F[_.sv]|0,J=Pf(u),g=ay(F,t,J);if(g!=null&&g[oy]===nh){if(!eC(g))return dJ(g),g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var Y=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(g)&&(Y=g);if(Y){var Q=Y[_.sv]|0;Q&2&&(Y=yT(Y,Q))}Y=bw(Y,q,!0);Y!==g&&S5(F,u,t,Y,J);return Y};
_.Yw=function(F,q,t,u){var J=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=J[_.sv]|0;q=v7W(J,g,q,t,u);if(q==null)return q;g=J[_.sv]|0;if(!eC(F,g)){var Y=dn$(q);Y!==q&&(dJ(F)&&(J=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=J[_.sv]|0),q=Y,g=S5(J,g,t,q,u),UC(J,g))}return q};
_.XN=function(F,q,t,u){var J=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return IQv(F,J,J[_.sv]|0,q,t,u,!1,!0)};
_.My=function(F,q,t,u){t=HhM(t);_.Qa(F,q,t,u);t&&!eC(t)&&UC(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return F};
_.T9=function(F,q,t,u){u=HhM(u);ke(F,q,t,u);u&&!eC(u)&&UC(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return F};
T3=function(F,q,t){VT(F);var u=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=u[_.sv]|0;if(t==null)return S5(u,J,q),F;for(var g=t===Kh?7:t[_.sv]|0,Y=g,Q=fh(g),e=Q||Object.isFrozen(t),r=!0,N=!0,w=0;w<t.length;w++){var k=t[w];Q||(k=eC(k),r&&(r=!k),N&&(N=k))}Q||(g=r?13:5,g=N?g&-4097:g|4096);e&&g===Y||(t=Vz(t),Y=0,g=Bs(g,J));g!==Y&&lJ(t,g);J=S5(u,J,q,t);2&g||!(4096&g||16&g)||UC(u,J);return F};
oJ=function(F,q,t,u){$Dv(F,q,t,u);return F};
la$=function(F,q,t){$Dv(F,q,G3,void 0,t,1,!0);return F};
_.Df=function(F,q,t){F=_.kB(F,q,void 0,t);q=typeof F;F=F==null?F:q==="bigint"?_.vf((0,_.Ry)(64,F)):_.jC(F)?q==="string"?_.Wrq(F):_.G1$(F):void 0;return F};
_.Wi=function(F,q){var t=t===void 0?!1:t;var u;return(u=_.Qjy(_.kB(F,q)))!=null?u:t};
_.pr=function(F,q,t){t=t===void 0?0:t;var u;return(u=_.J9(_.kB(F,q)))!=null?u:t};
X03=function(F,q){var t=t===void 0?0:t;F=_.Rdt(_.kB(F,q));return F!=null?F:t};
Oa=function(F,q,t){t=t===void 0?sxf:t;var u;return(u=_.AEA(_.kB(F,q)))!=null?u:t};
Yxf=function(F){var q=q===void 0?sxf:q;var t;return(t=_.Df(F,23))!=null?t:q};
Pi=function(F,q){var t=t===void 0?0:t;var u;return(u=_.kB(F,q,void 0,void 0,_.hE))!=null?u:t};
_.xB=function(F,q,t,u){t=t===void 0?"":t;var J;return(J=_.EC(_.kB(F,q,u)))!=null?J:t};
_.Aa=function(F,q){var t=t===void 0?0:t;var u;return(u=_.t9(_.kB(F,q)))!=null?u:t};
vi=function(F,q){var t=t===void 0?"0":t;F=xnC(_.kB(F,q),!0);return F!=null?F:t};
IC=function(F,q,t){return _.xB(F,Mb(F,t,q))};
_.Hi=function(F,q,t,u){return _.Yw(F,q,Mb(F,u,t),void 0)};
_.oX=function(F,q){return _.EC(_.kB(F,q,void 0,_.ip))};
_.RX=function(F,q,t){return _.Qa(F,q,pf_(t))};
_.HW=function(F,q,t){return _.cs(F,q,pf_(t),!1)};
_.mc=function(F,q,t){return _.Qa(F,q,_.uw(t))};
_.Gm=function(F,q,t){return _.Qa(F,q,Y7(t))};
_.OF=function(F,q,t){return _.Qa(F,q,k7(t))};
_.Kw=function(F,q,t,u){return _.cs(F,q,k7(t),"",u)};
_.pt=function(F,q,t){return _.Qa(F,q,t==null?t:_.cf(t))};
_.$B=function(F,q,t){return _.cs(F,q,t==null?t:_.cf(t),0)};var tQ=function(F,q,t){this.buffer=F;if(t&&!q)throw Error();this.JSC$8843_isImmutable=q};var p0t=function(F,q,t,u){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8846_start_=0;this.init(F,q,t,u)},bp,eAy,ZPC,RA$,rjC,N6M,pS$,Qxo;
_.l=p0t.prototype;_.l.init=function(F,q,t,u){var J=u===void 0?{}:u;u=J.aliasBytesFields===void 0?!1:J.aliasBytesFields;J=J.treatNewDataAsImmutable===void 0?!1:J.treatNewDataAsImmutable;this.aliasBytesFields=u;this.treatNewDataAsImmutable=J;F&&(F=y93(F,this.treatNewDataAsImmutable),this.bytes_=F.buffer,this.bytesAreImmutable_=F.JSC$8843_isImmutable,this.JSC$8846_start_=q||0,this.end_=t!==void 0?this.JSC$8846_start_+t:this.bytes_.length,this.cursor_=this.JSC$8846_start_)};
_.l.free=function(){this.clear();Qxo.length<100&&Qxo.push(this)};
_.l.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8846_start_=0;this.aliasBytesFields=!1};
_.l.reset=function(){this.cursor_=this.JSC$8846_start_};
_.l.atEnd=function(){return this.cursor_==this.end_};
_.yZ=function(F,q){var t=0,u=0,J=0,g=F.bytes_,Y=F.cursor_;do{var Q=g[Y++];t|=(Q&127)<<J;J+=7}while(J<32&&Q&128);if(J>32)for(u|=(Q&127)>>4,J=3;J<32&&Q&128;J+=7)Q=g[Y++],u|=(Q&127)<<J;bp(F,Y);if(!(Q&128))return q(t>>>0,u>>>0);throw Error();};
bp=function(F,q){F.cursor_=q;if(q>F.end_)throw Error();};
_.C4=function(F){var q=F.bytes_,t=F.cursor_,u=q[t++],J=u&127;if(u&128&&(u=q[t++],J|=(u&127)<<7,u&128&&(u=q[t++],J|=(u&127)<<14,u&128&&(u=q[t++],J|=(u&127)<<21,u&128&&(u=q[t++],J|=u<<28,u&128&&q[t++]&128&&q[t++]&128&&q[t++]&128&&q[t++]&128&&q[t++]&128)))))throw Error();bp(F,t);return J};
_.dd=function(F){var q=F.bytes_,t=F.cursor_,u=q[t],J=q[t+1],g=q[t+2];q=q[t+3];bp(F,F.cursor_+4);return(u<<0|J<<8|g<<16|q<<24)>>>0};
eAy=function(F){var q=_.dd(F);F=_.dd(F);return sj$(q,F)};
ZPC=function(F){var q=_.dd(F);F=(q>>31)*2+1;var t=q>>>23&255;q&=8388607;return t==255?q?NaN:F*Infinity:t==0?F*1.401298464324817E-45*q:F*Math.pow(2,t-150)*(q+8388608)};
RA$=function(F){var q=_.dd(F),t=_.dd(F);F=(t>>31)*2+1;var u=t>>>20&2047;q=4294967296*(t&1048575)+q;return u==2047?q?NaN:F*Infinity:u==0?F*4.9E-324*q:F*Math.pow(2,u-1075)*(q+4503599627370496)};
rjC=function(F){for(var q=0,t=F.cursor_,u=t+10,J=F.bytes_;t<u;){var g=J[t++];q|=g;if((g&128)===0)return bp(F,t),!!(q&127)}throw Error();};
N6M=function(F,q){if(q<0)throw Error();var t=F.cursor_;q=t+q;if(q>F.end_)throw Error();F.cursor_=q;return t};
pS$=function(F,q){if(q==0)return _.T1();var t=N6M(F,q);F.aliasBytesFields&&F.bytesAreImmutable_?t=F.bytes_.subarray(t,t+q):(F=F.bytes_,q=t+q,t=t===q?new Uint8Array(0):t3_?F.slice(t,q):new Uint8Array(F.subarray(t,q)));return t.length==0?_.T1():new iJ(t,Mn)};
Qxo=[];var iP$=function(F,q,t,u){if(Qxo.length){var J=Qxo.pop();J.init(F,q,t,u);F=J}else F=new p0t(F,q,t,u);this.decoder_=F;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;w0t(this,u)},w0t=function(F,q){q=q===void 0?{}:q;
F.discardUnknownFields=q.discardUnknownFields===void 0?!1:q.discardUnknownFields},Zlo=function(F,q,t,u){if(kzo.length){var J=kzo.pop();
w0t(J,u);J.decoder_.init(F,q,t,u);return J}return new iP$(F,q,t,u)},lq3,YSt,VZ,E$o,kzo;
iP$.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;kzo.length<100&&kzo.push(this)};
iP$.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
lq3=function(F){if(F.decoder_.atEnd())return!1;F.fieldCursor_=F.decoder_.cursor_;var q=_.C4(F.decoder_)>>>0,t=q>>>3;q&=7;if(!(q>=0&&q<=5))throw Error();if(t<1)throw Error();F.nextField_=t;F.nextWireType_=q;return!0};
YSt=function(F){switch(F.nextWireType_){case 0:F.nextWireType_!=0?YSt(F):rjC(F.decoder_);break;case 1:F=F.decoder_;bp(F,F.cursor_+8);break;case 2:if(F.nextWireType_!=2)YSt(F);else{var q=_.C4(F.decoder_)>>>0;F=F.decoder_;bp(F,F.cursor_+q)}break;case 5:F=F.decoder_;bp(F,F.cursor_+4);break;case 3:q=F.nextField_;do{if(!lq3(F))throw Error();if(F.nextWireType_==4){if(F.nextField_!=q)throw Error();break}YSt(F)}while(1);break;default:throw Error();}};
VZ=function(F,q,t){var u=F.decoder_.end_,J=_.C4(F.decoder_)>>>0;J=F.decoder_.cursor_+J;var g=J-u;g<=0&&(F.decoder_.end_=J,t(q,F,void 0,void 0,void 0),g=J-F.decoder_.cursor_);if(g)throw Error();F.decoder_.cursor_=J;F.decoder_.end_=u;return q};
E$o=function(F){var q=_.C4(F.decoder_)>>>0;F=F.decoder_;var t=N6M(F,q);F=F.bytes_;if(j9_){var u=F,J;(J=apu)||(J=apu=new TextDecoder("utf-8",{fatal:!0}));q=t+q;u=t===0&&q===u.length?u:u.subarray(t,q);try{var g=J.decode(u)}catch(r){if(fpo===void 0){try{J.decode(new Uint8Array([128]))}catch(N){}try{J.decode(new Uint8Array([97])),fpo=!0}catch(N){fpo=!1}}!fpo&&(apu=void 0);throw r;}}else{g=t;q=g+q;t=[];for(var Y=null,Q,e;g<q;)Q=F[g++],Q<128?t.push(Q):Q<224?g>=q?to():(e=F[g++],Q<194||(e&192)!==128?(g--,
to()):t.push((Q&31)<<6|e&63)):Q<240?g>=q-1?to():(e=F[g++],(e&192)!==128||Q===224&&e<160||Q===237&&e>=160||((J=F[g++])&192)!==128?(g--,to()):t.push((Q&15)<<12|(e&63)<<6|J&63)):Q<=244?g>=q-2?to():(e=F[g++],(e&192)!==128||(Q<<28)+(e-144)>>30!==0||((J=F[g++])&192)!==128||((u=F[g++])&192)!==128?(g--,to()):(Q=(Q&7)<<18|(e&63)<<12|(J&63)<<6|u&63,Q-=65536,t.push((Q>>10&1023)+55296,(Q&1023)+56320))):to(),t.length>=8192&&(Y=F$u(Y,t),t.length=0);g=F$u(Y,t)}return g};
_.zAP=function(F){var q=_.C4(F.decoder_)>>>0;return pS$(F.decoder_,q)};
_.o$W=function(F,q,t){var u=_.C4(F.decoder_)>>>0;for(u=F.decoder_.cursor_+u;F.decoder_.cursor_<u;)t.push(q(F.decoder_))};
kzo=[];var n$o=function(F,q){this.JSC$8853_lo=F>>>0;this.JSC$8853_hi=q>>>0},M3u=function(F){F=BigInt.asUintN(64,F);
return new n$o(Number(F&BigInt(4294967295)),Number(F>>BigInt(32)))},V5q=function(F){if(!F)return T6v||(T6v=new n$o(0,0));
if(!/^\d+$/.test(F))return null;Ce(F);return new n$o(Ij,mr)},T6v,G9M=function(F,q){this.JSC$8855_lo=F>>>0;
this.JSC$8855_hi=q>>>0},CwW=function(F){if(!F)return Gzq||(Gzq=new G9M(0,0));
if(!/^-?\d+$/.test(F))return null;Ce(F);return new G9M(Ij,mr)},Gzq;var Ua=function(){this.JSC$8857_buffer_=[]},RK,Ny,DIv;
Ua.prototype.length=function(){return this.JSC$8857_buffer_.length};
Ua.prototype.end=function(){var F=this.JSC$8857_buffer_;this.JSC$8857_buffer_=[];return F};
RK=function(F,q,t){for(;t>0||q>127;)F.JSC$8857_buffer_.push(q&127|128),q=(q>>>7|t<<25)>>>0,t>>>=7;F.JSC$8857_buffer_.push(q)};
Ny=function(F,q){for(;q>127;)F.JSC$8857_buffer_.push(q&127|128),q>>>=7;F.JSC$8857_buffer_.push(q)};
_.Dyo=function(F,q){if(q>=0)Ny(F,q);else{for(var t=0;t<9;t++)F.JSC$8857_buffer_.push(q&127|128),q>>=7;F.JSC$8857_buffer_.push(1)}};
DIv=function(F,q){Ce(q);gO_(function(t,u){RK(F,t>>>0,u>>>0)})};
Ua.prototype.writeUint8=function(F){this.JSC$8857_buffer_.push(F>>>0&255)};
_.Zq=function(F,q){F.JSC$8857_buffer_.push(q>>>0&255);F.JSC$8857_buffer_.push(q>>>8&255);F.JSC$8857_buffer_.push(q>>>16&255);F.JSC$8857_buffer_.push(q>>>24&255)};
Ua.prototype.writeInt8=function(F){this.JSC$8857_buffer_.push(F>>>0&255)};var WP_,XI,Olo,AQo,Kvu;WP_=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Ua};
XI=function(F,q){q.length!==0&&(F.blocks_.push(q),F.totalLength_+=q.length)};
_.OPP=function(F,q){_.eO(F,q,2);q=F.encoder_.end();XI(F,q);q.push(F.totalLength_);return q};
_.P23=function(F,q){var t=q.pop();for(t=F.totalLength_+F.encoder_.length()-t;t>127;)q.push(t&127|128),t>>>=7,F.totalLength_++;q.push(t);F.totalLength_++};
_.eO=function(F,q,t){Ny(F.encoder_,q*8+t)};
Olo=function(F,q,t){if(t!=null)switch(UDP(t),_.eO(F,q,1),typeof t){case "number":F=F.encoder_;qv_(t);_.Zq(F,Ij);_.Zq(F,mr);break;case "bigint":t=M3u(t);F=F.encoder_;q=t.JSC$8853_hi;_.Zq(F,t.JSC$8853_lo);_.Zq(F,q);break;default:t=V5q(t),F=F.encoder_,q=t.JSC$8853_hi,_.Zq(F,t.JSC$8853_lo),_.Zq(F,q)}};
AQo=function(F,q,t){_.eO(F,q,2);Ny(F.encoder_,t.length);XI(F,F.encoder_.end());XI(F,t)};
Kvu=function(F,q,t,u){t!=null&&(q=_.OPP(F,q),u(t,F),_.P23(F,q))};var SCW,xIy,Ajo,v$q,IaP,mIt,$Io,yjC,C2v;SCW=ue();xIy=ue();Ajo=ue();v$q=ue();IaP=ue();_.HPt=ue();_.Ss=ue();mIt=ue();$Io=ue();_.bP$=ue();yjC=ue();C2v=ue();_.dIu=ue();_.V3C=ue();_.le=function(F,q,t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F,q,t)};
_.le.prototype.toJSON=function(){return Hs(this)};
_.le.prototype.serialize=function(F){return JSON.stringify(Hs(this,F))};
var dyA=function(F,q){if(q==null||q=="")return new F;q=JSON.parse(q);if(!Array.isArray(q))throw Error("V");return new F(UAq(q))};
_.le.prototype.getExtension=function(F){cEf(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F.fieldIndex);aw$(this,F.fieldIndex);return F.ctor?F.isRepeated?F.getExtensionFn(this,F.ctor,F.fieldIndex,_.YW(),F.JSC$8868_hasMessageId):F.getExtensionFn(this,F.ctor,F.fieldIndex,F.JSC$8868_hasMessageId):F.isRepeated?F.getExtensionFn(this,F.fieldIndex,_.YW(),F.JSC$8868_hasMessageId):F.getExtensionFn(this,F.fieldIndex,F.defaultValue,F.JSC$8868_hasMessageId)};
_.le.prototype.clone=function(){var F=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=F[_.sv]|0;return n7$(this,F,q)?o7q(this,F,!0):new this.constructor(yT(F,q,!1))};
_.le.prototype[oy]=nh;_.le.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var sS=function(F,q,t){this.$$binaryReaderFn=F;this.$$binaryWriterFn=q;F=OC(SCW);this.$$isMsg=!!F&&t===F||!1},c9o=h9P(function(F,q,t,u,J){if(F.nextWireType_!==2)return!1;
VZ(F,g$$(q,u,t),J);return!0},Lvo),Ftq=h9P(function(F,q,t,u,J){if(F.nextWireType_!==2)return!1;
VZ(F,g$$(q,u,t),J);return!0},Lvo),rQW=Symbol(),uIq=Symbol(),gny=Symbol(),ilo=Symbol(),QKu=Symbol(),fQq,aQ$;var bly,UIy,ha,SxA,hAA,KPM,B6q,Bi,LPy,L4,fao,aau,jx$,cju,FAM,qUu,tmo,Jl_,sqW,g6W,lUf;bly=function(F,q){var t=new WP_;k9o(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t,g$(rQW,RZq,N$M,q));XI(t,t.encoder_.end());F=new Uint8Array(t.totalLength_);q=t.blocks_;for(var u=q.length,J=0,g=0;g<u;g++){var Y=q[g];F.set(Y,J);J+=Y.length}t.blocks_=[F];return F};
UIy=h9P(function(F,q,t,u,J){if(F.nextWireType_!==2)return!1;F=VZ(F,bw([void 0,void 0],u,!0),J);u=q[_.sv]|0;J=Pf(u);if(u&2)throw Error();var g=ay(q,t,J);g instanceof Ws?(g.arrayState&2)!=0?(g=E7_(g),g.push(F),S5(q,u,t,g,J)):(q=g,t=q.keyToApi(F[0],!1,!0),F=F[1],F=q.valueCtor?F===void 0?null:F:q.valueToApi(F,!1,!0,void 0,!1,q.arrayState),vs.prototype.set.call(q,t,F)):Array.isArray(g)?((g[_.sv]|0)&2&&(g=Wvf(g),S5(q,u,t,g,J)),g.push(F)):S5(q,u,t,[F],J);return!0},function(F,q,t,u,J){if(q instanceof Ws)q.forEach(function(Q,
e){Kvu(F,t,bw([e,
Q],u,!1),J)});
else if(Array.isArray(q))for(var g=0;g<q.length;g++){var Y=q[g];Array.isArray(Y)&&Kvu(F,t,bw(Y,u,!1),J)}});
ha=_.pl(function(F,q,t){if(F.nextWireType_!==1)return!1;_.Qy(q,t,RA$(F.decoder_));return!0},MOA,C2v);
SxA=_.pl(function(F,q,t,u){if(F.nextWireType_!==1)return!1;_.n4(q,t,u,RA$(F.decoder_));return!0},MOA,C2v);
hAA=_.pl(function(F,q,t){if(F.nextWireType_!==5)return!1;_.Qy(q,t,ZPC(F.decoder_));return!0},T$t,yjC);
KPM=_.nnv(function(F,q,t){if(F.nextWireType_!==5&&F.nextWireType_!==2)return!1;q=_.FI(q,q[_.sv]|0,t);F.nextWireType_==2?_.o$W(F,ZPC,q):q.push(ZPC(F.decoder_));return!0},function(F,q,t){q=_.onf(_.hE,q,!0);
if(q!=null&&q.length)for(_.eO(F,t,2),Ny(F.encoder_,q.length*4),t=0;t<q.length;t++){var u=F.encoder_;JEt(q[t]);_.Zq(u,Ij)}},yjC);
B6q=_.pl(function(F,q,t,u){if(F.nextWireType_!==5)return!1;_.n4(q,t,u,ZPC(F.decoder_));return!0},T$t,yjC);
_.K4=_.pl(function(F,q,t){if(F.nextWireType_!==0)return!1;_.Qy(q,t,_.yZ(F.decoder_,yz));return!0},_.r$,_.Ss);
Bi=_.pl(function(F,q,t){if(F.nextWireType_!==0)return!1;F=_.yZ(F.decoder_,yz);_.Qy(q,t,F===0?void 0:F);return!0},_.r$,_.Ss);
LPy=_.pl(function(F,q,t,u){if(F.nextWireType_!==0)return!1;_.n4(q,t,u,_.yZ(F.decoder_,yz));return!0},_.r$,_.Ss);
L4=_.pl(function(F,q,t){if(F.nextWireType_!==0)return!1;_.Qy(q,t,_.yZ(F.decoder_,sj$));return!0},function(F,q,t){q=Iwu(q);
if(q!=null&&(UDP(q),q!=null))switch(_.eO(F,t,0),typeof q){case "number":F=F.encoder_;$O(q);RK(F,Ij,mr);break;case "bigint":t=M3u(q);RK(F.encoder_,t.JSC$8853_lo,t.JSC$8853_hi);break;default:t=V5q(q),RK(F.encoder_,t.JSC$8853_lo,t.JSC$8853_hi)}},mIt);
_.f4=_.pl(function(F,q,t){if(F.nextWireType_!==0)return!1;_.Qy(q,t,_.C4(F.decoder_));return!0},Wtf,v$q);
fao=_.pl(function(F,q,t){if(F.nextWireType_!==0)return!1;F=_.C4(F.decoder_);_.Qy(q,t,F===0?void 0:F);return!0},Wtf,v$q);
aau=_.pl(function(F,q,t,u){if(F.nextWireType_!==0)return!1;_.n4(q,t,u,_.C4(F.decoder_));return!0},Wtf,v$q);
jx$=_.pl(function(F,q,t){if(F.nextWireType_!==1)return!1;_.Qy(q,t,eAy(F.decoder_));return!0},_.Peo,_.bP$);
cju=_.nnv(function(F,q,t){if(F.nextWireType_!==1&&F.nextWireType_!==2)return!1;q=_.FI(q,q[_.sv]|0,t);F.nextWireType_==2?_.o$W(F,eAy,q):q.push(eAy(F.decoder_));return!0},function(F,q,t){q=_.onf(Iwu,q,!1);
if(q!=null)for(var u=0;u<q.length;u++)Olo(F,t,q[u])},_.bP$);
_.aC=_.pl(function(F,q,t){if(F.nextWireType_!==0)return!1;_.Qy(q,t,rjC(F.decoder_));return!0},xy_,xIy);
_.js=_.pl(function(F,q,t){if(F.nextWireType_!==0)return!1;F=rjC(F.decoder_);_.Qy(q,t,F===!1?void 0:F);return!0},xy_,xIy);
FAM=_.pl(function(F,q,t,u){if(F.nextWireType_!==0)return!1;_.n4(q,t,u,rjC(F.decoder_));return!0},xy_,xIy);
_.ci=_.pl(function(F,q,t){if(F.nextWireType_!==2)return!1;_.Qy(q,t,E$o(F));return!0},vno,Ajo);
_.Fh=_.pl(function(F,q,t){if(F.nextWireType_!==2)return!1;F=E$o(F);_.Qy(q,t,F===""?void 0:F);return!0},vno,Ajo);
_.qt=_.pl(function(F,q,t,u){if(F.nextWireType_!==2)return!1;_.n4(q,t,u,E$o(F));return!0},vno,Ajo);
qUu=_.nnv(function(F,q,t){if(F.nextWireType_!==2)return!1;F=E$o(F);_.FI(q,q[_.sv]|0,t).push(F);return!0},function(F,q,t){q=_.onf(_.EC,q,!0);
if(q!=null)for(var u=0;u<q.length;u++){var J=F,g=t,Y=q[u];Y!=null&&AQo(J,g,Jov(Y))}},Ajo);
tmo=void 0;tmo=tmo===void 0?SCW:tmo;_.t$=new sS(function(F,q,t,u,J){if(F.nextWireType_!==2)return!1;u=bw(void 0,u,!0);_.FI(q,q[_.sv]|0,t).push(u);VZ(F,u,J);return!0},function(F,q,t,u,J){if(Array.isArray(q))for(var g=0;g<q.length;g++)IqC(F,q[g],t,u,J)},tmo);
_.uX=h9P(function(F,q,t,u,J,g){if(F.nextWireType_!==2)return!1;var Y=q[_.sv]|0;A9$(q,Y,g,t,Pf(Y));q=g$$(q,u,t);VZ(F,q,J);return!0},IqC);
_.uFP=_.pl(function(F,q,t){if(F.nextWireType_!==2)return!1;_.Qy(q,t,_.zAP(F));return!0},_.Hl_,_.dIu);
Jl_=_.pl(function(F,q,t,u){if(F.nextWireType_!==2)return!1;_.n4(q,t,u,_.zAP(F));return!0},_.Hl_,_.dIu);
sqW=_.pl(function(F,q,t){if(F.nextWireType_!==0)return!1;_.Qy(q,t,_.C4(F.decoder_)>>>0);return!0},myo,IaP);
g6W=_.pl(function(F,q,t,u){if(F.nextWireType_!==0)return!1;_.n4(q,t,u,_.C4(F.decoder_)>>>0);return!0},myo,IaP);
_.J$=_.pl(function(F,q,t){if(F.nextWireType_!==0)return!1;_.Qy(q,t,_.C4(F.decoder_));return!0},_.$y$,_.V3C);
_.sN=_.pl(function(F,q,t){if(F.nextWireType_!==0)return!1;F=_.C4(F.decoder_);_.Qy(q,t,F===0?void 0:F);return!0},_.$y$,_.V3C);
lUf=_.pl(function(F,q,t){if(F.nextWireType_!==0)return!1;_.Qy(q,t,_.yZ(F.decoder_,lwy));return!0},function(F,q,t){q=vOP(q);
if(q!=null&&(dDt(q),q!=null))switch(_.eO(F,t,0),typeof q){case "number":F=F.encoder_;t=q;q=t<0;t=Math.abs(t)*2;qv_(t);t=Ij;var u=mr;q&&(t==0?u==0?u=t=4294967295:(u--,t=4294967295):t--);Ij=t;mr=u;RK(F,Ij,mr);break;case "bigint":F=F.encoder_;q=q<<BigInt(1)^q>>BigInt(63);Ij=Number(BigInt.asUintN(32,q));mr=Number(BigInt.asUintN(32,q>>BigInt(32)));RK(F,Ij,mr);break;default:DIv(F.encoder_,q)}},$Io);var p7P=function(){var F=X7$,q=YUC;this.fieldIndex=175237375;this.ctor=q;this.isRepeated=0;this.getExtensionFn=_.Yw;this.defaultValue=void 0;this.JSC$8868_hasMessageId=F.messageId!=null?Ov:void 0};
p7P.prototype.register=function(){YB(this)};var Qqo=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Qqo,_.le);var e5_=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(e5_,_.le);var SSq=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(SSq,_.le);var Zcf=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Zcf,_.le);var R5C=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(R5C,_.le);var rlP=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(rlP,_.le);var Nlq=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Nlq,_.le);Nlq.prototype.getData=function(){return _.oC(this,2)};var w7f=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(w7f,_.le);var icf=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(icf,_.le);icf.prototype.getStyle=function(){return _.Yw(this,Qqo,1)};var nl=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(nl,_.le);nl.prototype.getPayloadCase=function(){return _.MJ(this,G9)};
nl.prototype.getStyle=function(){return _.Hi(this,icf,6,G9)};
var kMo=function(){var F=new nl,q=new R5C;return _.T9(F,7,G9,q)},E6o=function(){var F=new nl,q=new rlP;
return _.T9(F,8,G9,q)},G9=[1,
2,3,4,5,6,7,8];var z5P=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(z5P,_.le);var o6M=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(o6M,_.le);var n6q=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(n6q,_.le);var Mm_=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Mm_,_.le);var Tlo=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Tlo,_.le);var GM3=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(GM3,_.le);var DwW=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(DwW,_.le);var WAt=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(WAt,_.le);WAt.prototype.getData=function(){return _.oC(this,2)};var Oct=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Oct,_.le);var Uyt=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Uyt,_.le);Uyt.prototype.getPayloadCase=function(){return _.MJ(this,g1)};
var g1=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var lX=function(F,q){F=Error.call(this,F);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.code=q===void 0?2:q};
_.M(lX,Error);var PfP=Promise;var xwP=function(F){this.channelPromise=F};
xwP.prototype.send=function(F,q,t){this.channelPromise.then(function(u){u.send(F,q,t)})};var Aly=function(F,q){this.data=F;this.channel=q};
Aly.prototype.reply=function(F,q,t){this.channel.send(F,q,t)};var v6$=function(F){this.JSC$8934_port_=F};
v6$.prototype.send=function(F,q,t){t=t===void 0?[]:t;var u=new MessageChannel;IUM(u.port1,q);this.JSC$8934_port_.postMessage(F,[u.port2].concat(t))};
var Hc3=function(F,q){IUM(F,q);return new v6$(F)},IUM=function(F,q){q&&(F.onmessage=function(t){q(new Aly(t.data,Hc3(t.ports[0])))})};var mwf=function(F){this.verifier_=F};
mwf.prototype.verify=function(F){return this.verifier_(F)};
var $wC=function(F){var q=Object.create(null);(typeof F==="string"?[F]:F).forEach(function(t){if(t==="null")throw Error("X");q[t]=!0});
return function(t){return q[t]===!0}};_.bc$=function(){if(!_.uu.addEventListener||!Object.defineProperty)return!1;var F=!1,q=Object.defineProperty({},"passive",{get:function(){F=!0}});
try{var t=function(){};
_.uu.addEventListener("test",t,q);_.uu.removeEventListener("test",t,q)}catch(u){}return F}();var ylo;_.Xh=function(F){var q=F.destination;var t=F.iframe;var u=F.origin;var J=F.channelName===void 0?"ZNWN1d":F.channelName;var g=F.onMessage===void 0?void 0:F.onMessage;F=F.onEstablished===void 0?void 0:F.onEstablished;return ylo({destination:q,getSource:function(){return t.contentWindow},
originVerifier:u instanceof mwf?u:typeof u==="function"?new mwf(u):new mwf($wC(u)),channelName:J,onMessage:g,onEstablished:F})};
ylo=function(F){var q=F.destination;var t=F.getSource;var u=F.originVerifier;var J=F.token===void 0?void 0:F.token;var g=F.channelName;var Y=F.onMessage===void 0?void 0:F.onMessage;var Q=F.onEstablished===void 0?void 0:F.onEstablished;return new xwP(new PfP(function(e,r){var N=function(w){w.source&&w.source===t()&&u.verify(w.origin)&&(w.data.n||w.data)===g&&(q.removeEventListener("message",N,!1),J&&w.data.t!==J?r(Error("Y`"+g+"`"+J+"`"+w.data.t)):(e(Hc3(w.ports[0],Y)),Q&&Q(w)))};
q.addEventListener("message",N,!1)}))};var Cfv=function(F){try{F()}catch(q){Jo(q)}};var Vm3=function(F){var q=this;var t=F.getMessageType;var u=F.onUnregisteredMessage===void 0?function(){}:F.onUnregisteredMessage;
var J=F.onBeforeRegisteredMessage===void 0?function(){}:F.onBeforeRegisteredMessage;
F=F.onAfterRegisteredMessage===void 0?function(){}:F.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=t;this.onUnregisteredMessage_=u;this.onBeforeRegisteredMessage_=J;this.onAfterRegisteredMessage_=F;this.onMessage=function(g){return dw3(q,g)}};
Vm3.prototype.register=function(F,q){this.registry_.set(F,q);return this};
var dw3=function(F,q){var t=F.getMessageType_(q.data),u=F.registry_.get(t);u?(Cfv(function(){return F.onBeforeRegisteredMessage_(q,t)}),Cfv(function(){return u(q)}),Cfv(function(){return F.onAfterRegisteredMessage_(q,t)})):Cfv(function(){return F.onUnregisteredMessage_(q,t)})};var Uwt=function(F){this.JSC$8951_channel_=F},h5C,KAA;
Uwt.prototype.send=function(F,q,t){this.JSC$8951_channel_.send(Hs(F),q,t)};
_.SU_=function(F,q){return function(t){var u=new F(t.data);return q(new Aly(u,t.channel))}};
h5C=function(F){return function(q){return F(new Aly(q.data,new Uwt(q.channel)))}};
KAA=function(F,q){return h5C(_.SU_(F,q))};var Blv=function(F,q,t,u){this.registry=F;this.delegate=q;this.receiveMessageConstructor=t;this.createInitMessage=u;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},VOf=function(F){var q=new Vm3({getMessageType:F.getPayloadCase});
return new Blv(q,new Uwt(_.Xh({iframe:F.child,destination:window,origin:F.origin,channelName:F.channelName,onMessage:KAA(F.receiveMessageConstructor,q.onMessage)})),F.receiveMessageConstructor,F.createInitMessage)},LAy=function(F,q){F.createInitMessage=q};
Blv.prototype.send=function(F){if(!this.initialised)throw new lX("Attempted to send a message before initialisation.");this.delegate.send(F)};
var fUt=function(F,q){return _.p(function(t){if(!F.initialised)throw new lX("Attempted to send a message before initialisation.");return t.return(new Promise(function(u){F.delegate.send(q,KAA(F.receiveMessageConstructor,u))}))})};
Blv.prototype.init=function(){var F=this;return _.p(function(q){if(F.initialised)throw new lX("Attempted to initialise twice. The SDK can only be initialised once.");if(F.createInitMessage!==void 0){var t=F.delegate,u=t.send,J=F.createInitMessage;var g=new e5_;var Y=[].concat(_.mZ(F.features));g=_.j5(g,1,Y,_.cf);u.call(t,J.call(F,g))}F.initialised=!0;_.WA(q)})};
var YV=function(F,q){if(F.initialised)throw new lX('Attempted to set up API "'+q+'" after initialisation. All APIs must be set up before initialising the SDK.');F.features.add(q);return F.registry};
_.JJ.Object.defineProperties(Blv.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var aUo=function(F){this.channel=F;this.registered=!1};
aUo.prototype.update=function(F){if(this.channel.isInitialised){if(!this.registered)throw new lX("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var q=new nl;var t=new Zcf;t=_.RX(t,1,F);q=_.T9(q,2,G9,t);this.channel.send(q)}else this.register();this.JSC$8965_audioEnabled=F};
aUo.prototype.register=function(){YV(this.channel,1);this.registered=!0};
aUo.prototype.isAudioEnabled=function(){return this.JSC$8965_audioEnabled};var jqy=function(F){this.channel=F};
_.l=jqy.prototype;_.l.onFirstFrameReady=function(F){YV(this.channel,2).register(11,function(q){q=_.Hi(q.data,z5P,11,g1);if(!q)throw new lX("Unexpectedly nonexistent GameFirstFrameReadyEvent");F(_.xB(q,1))})};
_.l.onReady=function(F){YV(this.channel,2).register(4,function(q){q=_.Hi(q.data,n6q,4,g1);if(!q)throw new lX("Unexpectedly nonexistent GameReadyEvent");F(_.xB(q,1))})};
_.l.onLevelComplete=function(F){YV(this.channel,2).register(5,function(q){q=_.Hi(q.data,Mm_,5,g1);if(!q)throw new lX("Unexpectedly nonexistent LevelCompleteEvent");F(_.xB(q,1),_.pr(q,2))})};
_.l.onGameOver=function(F){YV(this.channel,2).register(6,function(q){q=_.Hi(q.data,o6M,6,g1);if(!q)throw new lX("Unexpectedly nonexistent GameOverEvent");F(_.xB(q,1))})};
_.l.pause=function(){var F=this;if(!this.channel.isInitialised)return YV(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new lX("Using unregistered Game Feature: pause.");var q=kMo();return new Promise(function(t){return _.p(function(u){if(u.nextAddress==1)return u.yield(fUt(F.channel,q),2);t();_.WA(u)})})};
_.l.resume=function(){var F=this;if(!this.channel.isInitialised)return YV(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new lX("Using unregistered Game Feature: resume.");var q=E6o();return new Promise(function(t){return _.p(function(u){if(u.nextAddress==1)return u.yield(fUt(F.channel,q),2);t();_.WA(u)})})};var clC=function(F){this.channel=F};
clC.prototype.onReady=function(F){YV(this.channel,5).register(8,function(q){if(!_.Hi(q.data,Tlo,8,g1))throw new lX("Unexpectedly nonexistent PageReadyEvent");F()})};var F$J=function(F){this.channel=F};
F$J.prototype.onChange=function(F){YV(this.channel,3).register(7,function(q){q=_.Hi(q.data,GM3,7,g1);if(!q)throw new lX("Unexpectedly nonexistent ScoreEvent");F(_.xB(q,1),_.pr(q,2))})};var qMd={load:function(){throw new lX("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new lX("Storage used, but storage.onSave() listener not set!");}},tWv=function(F){this.channel=F;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},uqe=function(F){YV(F.channel,4).register(2,qMd.load).register(3,qMd.save);
F.initialSetupDone=!0};
tWv.prototype.onLoad=function(F){this.initialSetupDone||uqe(this);this.loadRegistered||(this.loadRegistered=!0,YV(this.channel,4).register(2,function(q){var t,u,J;return _.p(function(g){if(g.nextAddress==1){t=_.Hi(q.data,DwW,2,g1);if(!t)throw new lX("Unexpectedly nonexistent StorageLoad");u=_.xB(t,1);return g.yield(F(u),2)}J=g.yieldResult;var Y=q.reply,Q=new nl;var e=new Nlq;e=_.OF(e,1,u);e=_.Qa(e,2,_.G1(J,!1));Q=_.T9(Q,3,G9,e);Y.call(q,Q);_.WA(g)})}))};
tWv.prototype.onSave=function(F){this.initialSetupDone||uqe(this);this.saveRegistered||(this.saveRegistered=!0,YV(this.channel,4).register(3,function(q){var t,u,J;return _.p(function(g){if(g.nextAddress==1){t=_.Hi(q.data,WAt,3,g1);if(!t)throw new lX("Unexpectedly nonexistent StorageSave");u=_.xB(t,1);J=SjW(t.getData());return g.yield(F(u,J),2)}var Y=q.reply,Q=new nl;var e=new w7f;e=_.OF(e,1,u);Q=_.T9(Q,4,G9,e);Y.call(q,Q);_.WA(g)})}))};var Jow=function(F){this.channel=F};
Jow.prototype.update=function(F){if(!this.channel.features.has(6))throw new lX("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var q=new nl,t=new icf;F=_.My(t,1,F);q=_.T9(q,6,G9,F);this.channel.send(q)};
Jow.prototype.register=function(){YV(this.channel,6)};var s_O=function(F){this.channel=F;this.userActivityLoggingIntervalMs=0};
s_O.prototype.onUserActivity=function(F,q){this.userActivityLoggingIntervalMs=q;YV(this.channel,7).register(9,function(t){if(!_.Hi(t.data,Oct,9,g1))throw new lX("Unexpectedly nonexistent ClickEvent");F()})};var gPJ=function(F){var q=this;this.channel=F;this.init=this.channel.init.bind(this.channel);this.page=new clC(this.channel);this.game=new jqy(this.channel);this.audio=new aUo(this.channel);this.score=new F$J(this.channel);this.storage=new tWv(this.channel);this.style=new Jow(this.channel);this.userActivity=new s_O(this.channel);LAy(this.channel,function(t){var u=new SSq;t=_.My(u,1,t);t=_.mc(t,3,q.userActivity.userActivityLoggingIntervalMs);u=q.audio.isAudioEnabled();u!==void 0&&_.RX(t,2,u);u=new nl;
return _.T9(u,5,G9,t)})};var lvv=function(){this.timedFunctionContext=0};
lvv.prototype.timeExecution=function(F,q){var t=this;return function(){var u=_.US.apply(0,arguments);t.timedFunctionContext=F;return q.apply(null,_.mZ(u))}};var XyC=function(){var F={};this.priorityTasks=(F[3]=[],F[2]=[],F[1]=[],F);this.isFlushing=!1},z0=function(F,q,t){var u=YMJ(F,t);
F.priorityTasks[t].push(q);u&&F.priorityTasks[t].length===1&&F.flush()},YMJ=function(F,q){return Object.keys(F.priorityTasks).map(function(t){return Number(t)}).filter(function(t){return!isNaN(t)&&t>q}).every(function(t){return F.priorityTasks[t].length===0})};
XyC.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(F){return F.length>0});)pye(this,3),pye(this,2),pye(this,1)}catch(F){throw Object.values(this.priorityTasks).forEach(function(q){return void q.splice(0,q.length)}),F;
}finally{this.isFlushing=!1}}};
var pye=function(F,q){for(;YMJ(F,q)&&F.priorityTasks[q].length>0;)F.priorityTasks[q][0](),F.priorityTasks[q].shift()};
_.JJ.Object.defineProperties(XyC.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(F){return F.length>0})}}});var jKv={};var Q_w=globalThis.trustedTypes,Ktu=Q_w,LtM;var WS=function(F){this.privateDoNotAccessOrElseWrappedResourceUrl=F};
WS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var eow,Z3E,Ror,rox,NfE,wyL,i3f,ktC;eow=_.LZ([""]);Z3E=BO(["\x00"],["\\0"]);Ror=BO(["\n"],["\\n"]);rox=BO(["\x00"],["\\u0000"]);NfE=_.LZ([""]);wyL=BO(["\x00"],["\\0"]);i3f=BO(["\n"],["\\n"]);ktC=BO(["\x00"],["\\u0000"]);_.EPj=aqP(function(F){return F(eow)})||aqP(function(F){return F(Z3E)})||aqP(function(F){return F(Ror)})||aqP(function(F){return F(rox)});
_.zoC=_.xn(NfE)&&_.xn(wyL)&&_.xn(i3f)&&_.xn(ktC);var Cl;_.vS=function(F,q){this.privateDoNotAccessOrElseWrappedUrl=q};
_.vS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.oPz=IK("about:blank");Cl=IK("about:invalid#zClosurez");var cQq=function(F){this.isValid=F},nPC=new cQq(function(F){return/^[^:]*([/?#]|$)/.test(F)}),MWv=$n("data"),Tfj=$n("http"),Gtn=$n("https"),DAw=$n("ftp"),W$z=$n("mailto"),O3d=$n("intent"),Puj=$n("vnd.youtube"),FZv=[MWv,
Tfj,Gtn,W$z,DAw,nPC],tSP=Dq(function(){return typeof URL==="function"}),xAE=["data:",
"http:","https:","mailto:","ftp:"],JKC=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var BS=function(F){this.privateDoNotAccessOrElseWrappedHtml=F};
BS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var NBq=Dq(function(){return new BS(Q_w?Q_w.emptyHTML:"")});var Aoe={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"},glq=function(F,q){var t=Error.call(this,F+" cannot be used with intent "+Aoe[q]);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.type=F;this.intent=q;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.M(glq,Error);_.FY=function(F){this.privateDoNotAccessOrElseWrappedScript=F};
_.FY.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var pA3=function(F){this.privateDoNotAccessOrElseWrappedAttributePrefix=F};
pA3.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var Q2o="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var XY=function(F){this.privateDoNotAccessOrElseWrappedStyleSheet=F};
XY.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var MaM=function(F){var q=_.S6("window.location.href");F==null&&(F='Unknown Error of type "null/undefined"');if(typeof F==="string")return{message:F,name:"Unknown error",lineNumber:"Not available",fileName:q,stack:"Not available"};var t=!1;try{var u=F.lineNumber||F.line||"Not available"}catch(Y){u="Not available",t=!0}try{var J=F.fileName||F.filename||F.sourceURL||_.uu.$googDebugFname||q}catch(Y){J="Not available",t=!0}q=vPz(F);if(!(!t&&F.lineNumber&&F.fileName&&F.stack&&F.message&&F.name)){t=F.message;
if(t==null){if(F.constructor&&F.constructor instanceof Function){if(F.constructor.name)t=F.constructor.name;else if(t=F.constructor,pR[t])t=pR[t];else{t=String(t);if(!pR[t]){var g=/function\s+([^\(]+)/m.exec(t);pR[t]=g?g[1]:"[Anonymous]"}t=pR[t]}t='Unknown Error of type "'+t+'"'}else t="Unknown Error of unknown type";typeof F.toString==="function"&&Object.prototype.toString!==F.toString&&(t+=": "+F.toString())}return{message:t,name:F.name||"UnknownError",lineNumber:u,fileName:J,stack:q||"Not available"}}return{message:F.message,
name:F.name,lineNumber:F.lineNumber,fileName:F.fileName,stack:q}},vPz=function(F,q){q||(q={});
q[IvL(F)]=!0;var t=F.stack||"",u=F.cause;u&&!q[IvL(u)]&&(t+="\nCaused by: ",u.stack&&u.stack.indexOf(u.toString())==0||(t+=typeof u==="string"?u:u.message+"\n"),t+=vPz(u,q));F=F.errors;if(Array.isArray(F)){u=1;var J;for(J=0;J<F.length&&!(u>4);J++)q[IvL(F[J])]||(t+="\nInner error "+u++ +": ",F[J].stack&&F[J].stack.indexOf(F[J].toString())==0||(t+=typeof F[J]==="string"?F[J]:F[J].message+"\n"),t+=vPz(F[J],q));J<F.length&&(t+="\n... "+(F.length-J)+" more inner errors")}return t},IvL=function(F){var q=
"";
typeof F.toString==="function"&&(q=""+F);return q+F.stack},pR={};var H3j,uK,Rs,$Ae,b3d,mAr,Bd,BW,Cuv;H3j=function(F,q){for(var t=F.split("%s"),u="",J=Array.prototype.slice.call(arguments,1);J.length&&t.length>1;)u+=t.shift()+J.shift();return u+t.join("%s")};
_.KI=function(F){return encodeURIComponent(String(F))};
uK=function(F){return decodeURIComponent(F.replace(/\+/g," "))};
Rs=function(F){g8W.test(F)&&(F.indexOf("&")!=-1&&(F=F.replace(FDt,"&amp;")),F.indexOf("<")!=-1&&(F=F.replace(qjq,"&lt;")),F.indexOf(">")!=-1&&(F=F.replace(tXW,"&gt;")),F.indexOf('"')!=-1&&(F=F.replace(um3,"&quot;")),F.indexOf("'")!=-1&&(F=F.replace(JwA,"&#39;")),F.indexOf("\x00")!=-1&&(F=F.replace(s1f,"&#0;")));return F};
$Ae=function(F){var q={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var t=_.uu.document.createElement("div");return F.replace(mAr,function(u,J){var g=q[u];if(g)return g;J.charAt(0)=="#"&&(J=Number("0"+J.slice(1)),isNaN(J)||(g=String.fromCharCode(J)));g||(_.JK(t,Ll(u+" ")),g=t.firstChild.nodeValue.slice(0,-1));return q[u]=g})};
b3d=function(F){return F.replace(/&([^;]+);/g,function(q,t){switch(t){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return t.charAt(0)!="#"||(t=Number("0"+t.slice(1)),isNaN(t))?q:String.fromCharCode(t)}})};
mAr=/&([^;\s<&]+);?/g;_.tjW=function(F){return String(F).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.yoe=String.prototype.repeat?function(F,q){return F.repeat(q)}:function(F,q){return Array(q+1).join(F)};
_.Q2=function(F,q){if(!Number.isFinite(F))return String(F);F=String(F);var t=F.indexOf(".");t===-1&&(t=F.length);var u=F[0]==="-"?"-":"";u&&(F=F.substring(1));return u+(0,_.yoe)("0",Math.max(0,q-t))+F};
Bd=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.sa()).toString(36)};
BW=function(F){for(var q=0,t=0;t<F.length;++t)q=31*q+F.charCodeAt(t)>>>0;return q};
_.Md=function(F){return String(F).replace(/\-([a-z])/g,function(q,t){return t.toUpperCase()})};
_.nB=function(F){return String(F).replace(/([A-Z])/g,"-$1").toLowerCase()};
Cuv=function(F){return F.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(q,t,u){return t+u.toUpperCase()})};var dAL=function(){this.names=new Map};
dAL.prototype.getName=function(F){var q=this.names.get(F);if(q)return q;var t;q=(t=F.description)!=null?t:Bd();this.names.set(F,q);return q};var VWJ=function(F){var q=Error.call(this,F?F.length+" errors occurred during unsubscription:\n"+F.map(function(t,u){return u+1+") "+t.toString()}).join("\n  "):"");
this.message=q.message;"stack"in q&&(this.stack=q.stack);this.errors=F;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.M(VWJ,Error);var p6=function(F){this.initialTeardown=F;this.closed=!1;this._teardowns=this._parentage=null};
_.l=p6.prototype;
_.l.unsubscribe=function(){if(!this.closed){this.closed=!0;var F=this._parentage;if(Array.isArray(F))for(var q=_.X(F),t=q.next();!t.done;t=q.next())t.value.remove(this);else F==null||F.remove(this);q=this.initialTeardown;if(Yl(q))try{q()}catch(g){var u=g instanceof VWJ?g.errors:[g]}var J=this._teardowns;if(J)for(this._teardowns=null,q=_.X(J),t=q.next();!t.done;t=q.next()){t=t.value;try{Yl(t)?t():t.unsubscribe()}catch(g){t=void 0,u=(t=u)!=null?t:[],g instanceof VWJ?u=[].concat(_.mZ(u),_.mZ(g.errors)):
u.push(g)}}if(u)throw new VWJ(u);}};
_.l.add=function(F){if(F&&F!==this)if(this.closed)Yl(F)?F():F.unsubscribe();else{if(F instanceof p6){if(F.closed||F._hasParent(this))return;F._addParent(this)}var q;(this._teardowns=(q=this._teardowns)!=null?q:[]).push(F)}};
_.l._hasParent=function(F){var q=this._parentage;return q===F||Array.isArray(q)&&q.includes(F)};
_.l._addParent=function(F){var q=this._parentage;this._parentage=Array.isArray(q)?(q.push(F),q):q?[q,F]:F};
_.l._removeParent=function(F){var q=this._parentage;q===F?this._parentage=null:Array.isArray(q)&&rKf(q,F)};
_.l.remove=function(F){var q=this._teardowns;q&&rKf(q,F);F instanceof p6&&F._removeParent(this)};
var UAL=new p6;UAL.closed=!0;p6.JSC$9061_EMPTY=UAL;var wAA=function(){setTimeout.apply(null,_.mZ(_.US.apply(0,arguments)))};var eL=function(F){p6.call(this);this.JSC$9066_isStopped=!1;this.destination=F instanceof eL?F:new ZH(!F||Yl(F)?{next:F!=null?F:void 0}:F);NL3(F)&&F.add(this)};
_.M(eL,p6);eL.JSC$9061_EMPTY=p6.JSC$9061_EMPTY;eL.create=function(F,q,t){return new R8(F,q,t)};
_.l=eL.prototype;_.l.next=function(F){this.JSC$9066_isStopped||this._next(F)};
_.l.error=function(F){this.JSC$9066_isStopped||(this.JSC$9066_isStopped=!0,this._error(F))};
_.l.complete=function(){this.JSC$9066_isStopped||(this.JSC$9066_isStopped=!0,this._complete())};
_.l.unsubscribe=function(){this.closed||(this.JSC$9066_isStopped=!0,p6.prototype.unsubscribe.call(this))};
_.l._next=function(F){this.destination.next(F)};
_.l._error=function(F){this.destination.error(F);this.unsubscribe()};
_.l._complete=function(){this.destination.complete();this.unsubscribe()};
var ZH=function(F){this.partialObserver=F};
ZH.prototype.next=function(F){var q=this.partialObserver;if(q.next)try{q.next(F)}catch(t){eS(t)}};
ZH.prototype.error=function(F){var q=this.partialObserver;if(q.error)try{q.error(F)}catch(t){eS(t)}else eS(F)};
ZH.prototype.complete=function(){var F=this.partialObserver;if(F.complete)try{F.complete()}catch(q){eS(q)}};
var R8=function(F,q,t){eL.call(this);var u;Yl(F)||!F?u={next:F!=null?F:void 0,error:q!=null?q:void 0,complete:t!=null?t:void 0}:u=F;this.destination=new ZH(u)};
_.M(R8,eL);R8.JSC$9061_EMPTY=eL.JSC$9061_EMPTY;R8.create=eL.create;var wL=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Nv=function(F){F&&(this._subscribe=F)};
_.l=Nv.prototype;_.l.lift=function(F){var q=new Nv;q.source=this;q.operator=F;return q};
_.l.subscribe=function(F,q,t){F=F&&F instanceof eL||F&&Yl(F.next)&&Yl(F.error)&&Yl(F.complete)&&NL3(F)?F:new R8(F,q,t);q=this.operator;t=this.source;F.add(q?q.call(F,t):t?this._subscribe(F):this._trySubscribe(F));return F};
_.l._trySubscribe=function(F){try{return this._subscribe(F)}catch(q){F.error(q)}};
_.l.forEach=function(F,q){var t=this;q=kgt(q);return new q(function(u,J){var g=t.subscribe(function(Y){try{F(Y)}catch(Q){J(Q),g==null||g.unsubscribe()}},J,u)})};
_.l._subscribe=function(F){var q;return(q=this.source)==null?void 0:q.subscribe(F)};
Nv.prototype[wL]=function(){return this};
Nv.prototype.pipe=function(){var F=_.US.apply(0,arguments);return F.length?i6q(F)(this):this};
Nv.create=function(F){return new Nv(F)};var SMr=function(){var F=Error.call(this,"object unsubscribed");this.message=F.message;"stack"in F&&(this.stack=F.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.M(SMr,Error);var iQ=function(){this.observers=[];this.hasError=this.JSC$9082_isStopped=this.closed=!1;this.thrownError=null};
_.M(iQ,Nv);_.l=iQ.prototype;_.l.lift=function(F){var q=new r1(this,this);q.operator=F;return q};
_.l._throwIfClosed=function(){if(this.closed)throw new SMr;};
_.l.next=function(F){this._throwIfClosed();if(!this.JSC$9082_isStopped){var q=this.observers.slice();q=_.X(q);for(var t=q.next();!t.done;t=q.next())t.value.next(F)}};
_.l.error=function(F){this._throwIfClosed();if(!this.JSC$9082_isStopped){this.hasError=this.JSC$9082_isStopped=!0;this.thrownError=F;for(var q=this.observers;q.length;)q.shift().error(F)}};
_.l.complete=function(){this._throwIfClosed();if(!this.JSC$9082_isStopped){this.JSC$9082_isStopped=!0;for(var F=this.observers;F.length;)F.shift().complete()}};
_.l.unsubscribe=function(){this.JSC$9082_isStopped=this.closed=!0;this.observers=null};
_.l._trySubscribe=function(F){this._throwIfClosed();return Nv.prototype._trySubscribe.call(this,F)};
_.l._subscribe=function(F){this._throwIfClosed();this._checkFinalizedStatuses(F);return this._innerSubscribe(F)};
_.l._innerSubscribe=function(F){var q=this,t=this.JSC$9082_isStopped,u=this.observers;return this.hasError||t?p6.JSC$9061_EMPTY:(u.push(F),new p6(function(){return rKf(q.observers,F)}))};
_.l._checkFinalizedStatuses=function(F){var q=this.thrownError,t=this.JSC$9082_isStopped;this.hasError?F.error(q):t&&F.complete()};
iQ.create=function(F,q){return new r1(F,q)};
var r1=function(F,q){iQ.call(this);this.destination=F;this.source=q};
_.M(r1,iQ);r1.create=iQ.create;r1.prototype.next=function(F){var q,t;(q=this.destination)==null||(t=q.next)==null||t.call(q,F)};
r1.prototype.error=function(F){var q,t;(q=this.destination)==null||(t=q.error)==null||t.call(q,F)};
r1.prototype.complete=function(){var F,q;(F=this.destination)==null||(q=F.complete)==null||q.call(F)};
r1.prototype._subscribe=function(F){var q,t;return(t=(q=this.source)==null?void 0:q.subscribe(F))!=null?t:p6.JSC$9061_EMPTY};var Bn=function(F){iQ.call(this);this._value=F};
_.M(Bn,iQ);Bn.create=iQ.create;Bn.prototype._subscribe=function(F){var q=iQ.prototype._subscribe.call(this,F);!q.closed&&F.next(this._value);return q};
Bn.prototype.getValue=function(){var F=this.thrownError,q=this._value;if(this.hasError)throw F;this._throwIfClosed();return q};
Bn.prototype.next=function(F){iQ.prototype.next.call(this,this._value=F)};
_.JJ.Object.defineProperties(Bn.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var dL=new Nv(function(F){return F.complete()});var nlv=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var WZo=function(F){return F&&typeof F.length==="number"&&typeof F!=="function"};var ho1={now:function(){return(ho1.delegate||Date).now()},
delegate:void 0};var uQ=function(F,q,t){F=F===void 0?Infinity:F;q=q===void 0?Infinity:q;t=t===void 0?ho1:t;iQ.call(this);this.bufferSize=F;this.windowTime=q;this.timestampProvider=t;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=q===Infinity;this.bufferSize=Math.max(1,F);this.windowTime=Math.max(1,q)};
_.M(uQ,iQ);uQ.create=iQ.create;uQ.prototype.next=function(F){var q=this.buffer,t=this.infiniteTimeWindow,u=this.timestampProvider,J=this.windowTime;this.JSC$9082_isStopped||(q.push(F),!t&&q.push(u.now()+J));K$z(this);iQ.prototype.next.call(this,F)};
uQ.prototype._subscribe=function(F){this._throwIfClosed();K$z(this);for(var q=this._innerSubscribe(F),t=this.infiniteTimeWindow,u=this.buffer.slice(),J=0;J<u.length&&!F.closed;J+=t?1:2)F.next(u[J]);this._checkFinalizedStatuses(F);return q};
var K$z=function(F){var q=F.bufferSize,t=F.timestampProvider,u=F.buffer;F=F.infiniteTimeWindow;var J=(F?1:2)*q;q<Infinity&&J<u.length&&u.splice(0,u.length-J);if(!F){q=t.now();t=0;for(F=1;F<u.length&&u[F]<=q;F+=2)t=F;t&&u.splice(0,t+1)}};var L$O=function(F,q){q=q===void 0?BfO:q;this.schedulerActionCtor=F;this.now=q};
L$O.prototype.schedule=function(F,q,t){q=q===void 0?0:q;return(new this.schedulerActionCtor(this,F)).schedule(t,q)};
var BfO=ho1.now;var Eqq=function(){var F=Error.call(this,"no elements in sequence");this.message=F.message;"stack"in F&&(this.stack=F.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.M(Eqq,Error);var vA=function(F,q,t,u,J){eL.call(this,F);this.onUnsubscribe=J;q&&(this._next=function(g){try{q(g)}catch(Y){this.destination.error(Y)}});
t&&(this._error=function(g){try{t(g)}catch(Y){this.destination.error(Y)}this.unsubscribe()});
u&&(this._complete=function(){try{u()}catch(g){this.destination.error(g)}this.unsubscribe()})};
_.M(vA,eL);vA.JSC$9061_EMPTY=eL.JSC$9061_EMPTY;vA.create=eL.create;vA.prototype.unsubscribe=function(){var F;this.closed||(F=this.onUnsubscribe)!=null&&F.call(this);eL.prototype.unsubscribe.call(this)};var qa=function(F,q){this.source=F;this.subjectFactory=q;this._subject=null;this._refCount=0;this._connection=null};
_.M(qa,Nv);qa.create=Nv.create;qa.prototype._subscribe=function(F){return fvE(this).subscribe(F)};
var fvE=function(F){var q=F._subject;if(!q||q.JSC$9082_isStopped)F._subject=F.subjectFactory();return F._subject};
qa.prototype._teardown=function(){this._refCount=0;var F=this._connection;this._subject=this._connection=null;F==null||F.unsubscribe()};
qa.prototype.connect=function(){var F=this,q=this._connection;if(!q){q=this._connection=new p6;var t=fvE(this);q.add(this.source.subscribe(new vA(t,void 0,function(u){F._teardown();t.error(u)},function(){F._teardown();
t.complete()},function(){return F._teardown()})));
q.closed&&(this._connection=null,q=p6.JSC$9061_EMPTY)}return q};var CFy=Array.isArray;var VSq=Array.isArray,avf=Object,UvP=avf.getPrototypeOf,Ssy=avf.prototype,hPC=avf.keys;var bF=function(F,q,t){eL.call(this,F);this._next=q;this.shouldComplete=t};
_.M(bF,eL);bF.JSC$9061_EMPTY=eL.JSC$9061_EMPTY;bF.create=eL.create;bF.prototype._complete=function(){this.shouldComplete()?eL.prototype._complete.call(this):this.unsubscribe()};var qFA=["addListener","removeListener"],F7A=["addEventListener","removeEventListener"],u$f=["on","off"];var Nt=function(){p6.call(this)};
_.M(Nt,p6);Nt.JSC$9061_EMPTY=p6.JSC$9061_EMPTY;Nt.prototype.schedule=function(){return this};var j_C=function(F,q){return setInterval.apply(null,[F,q].concat(_.mZ(_.US.apply(2,arguments))))};var w1=function(F,q){p6.call(this);this.scheduler=F;this.work=q;this.pending=!1};
_.M(w1,Nt);w1.JSC$9061_EMPTY=Nt.JSC$9061_EMPTY;w1.prototype.schedule=function(F,q){q=q===void 0?0:q;if(this.closed)return this;this.state=F;F=this.id;var t=this.scheduler;F!=null&&(this.id=cof(this,F,q));this.pending=!0;this.delay=q;this.id=this.id||this.requestAsyncId(t,this.id,q);return this};
w1.prototype.requestAsyncId=function(F,q,t){t=t===void 0?0:t;return j_C(F.flush.bind(F,this),t)};
var cof=function(F,q,t){t=t===void 0?0:t;if(t!=null&&F.delay===t&&F.pending===!1)return q;clearInterval(q)};
w1.prototype.execute=function(F,q){if(this.closed)return Error("ha");this.pending=!1;if(F=this._execute(F,q))return F;this.pending===!1&&this.id!=null&&(this.id=cof(this,this.id,null))};
w1.prototype._execute=function(F){var q=!1;try{this.work(F)}catch(u){q=!0;var t=!!u&&u||Error(u)}if(q)return this.unsubscribe(),t};
w1.prototype.unsubscribe=function(){if(!this.closed){var F=this.id,q=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;rKf(q,this);F!=null&&(this.id=cof(this,F,null));this.delay=null;Nt.prototype.unsubscribe.call(this)}};var Frd=function(F,q){q=q===void 0?BfO:q;L$O.call(this,F,q);this.actions=[];this.active=!1;this.scheduled=void 0};
_.M(Frd,L$O);Frd.prototype.flush=function(F){var q=this.actions;if(this.active)q.push(F);else{var t;this.active=!0;do if(t=F.execute(F.state,F.delay))break;while(F=q.shift());this.active=!1;if(t){for(;F=q.shift();)F.unsubscribe();throw t;}}};var vn=new Nv(QM);var JWA=Array.isArray;var iX=function(F,q){w1.call(this,F,q);this.scheduler=F;this.work=q};
_.M(iX,w1);iX.JSC$9061_EMPTY=w1.JSC$9061_EMPTY;iX.prototype.schedule=function(F,q){q=q===void 0?0:q;if(q>0)return w1.prototype.schedule.call(this,F,q);this.delay=q;this.state=F;this.scheduler.flush(this);return this};
iX.prototype.execute=function(F,q){return q>0||this.closed?w1.prototype.execute.call(this,F,q):this._execute(F,q)};
iX.prototype.requestAsyncId=function(F,q,t){t=t===void 0?0:t;return t!=null&&t>0||t==null&&this.delay>0?w1.prototype.requestAsyncId.call(this,F,q,t):F.flush(this)};var qvj=function(){Frd.apply(this,arguments)};
_.M(qvj,Frd);var b6y=new qvj(iX);var tCL=function(){this.performanceMonitor=new lvv;this.queue=new XyC;this.internalSymbol=Symbol();this.debugNames=new dAL};
tCL.prototype.getOnBackgrounded=function(){return vn};
_.JJ.Object.defineProperties(tCL.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var kV=function(F,q){q=Error.call(this,q?F+": "+q:String(F));this.message=q.message;"stack"in q&&(this.stack=q.stack);this.code=F;this.__proto__=kV.prototype;this.name=String(F)};
_.M(kV,Error);var IV=function(F){kV.call(this,1E3,'sfr:"'+F+'"');this.measurementStrategyFailureReason=F;this.__proto__=IV.prototype};
_.M(IV,kV);var Hn=function(){kV.call(this,1003);this.__proto__=Hn.prototype};
_.M(Hn,kV);var EN=function(){kV.call(this,1009);this.__proto__=EN.prototype};
_.M(EN,kV);var uLO=function(){kV.call(this,1011);this.__proto__=uLO.prototype};
_.M(uLO,kV);var JE1=function(){kV.call(this,1007);this.__proto__=Hn.prototype};
_.M(JE1,kV);var xq=function(F){kV.call(this,1004,String(F));this.inputObservableIndex=F;this.__proto__=xq.prototype};
_.M(xq,kV);var HrC=function(F){kV.call(this,1010,F);this.__proto__=mqP.prototype};
_.M(HrC,kV);var mqP=function(F){kV.call(this,1005,F);this.__proto__=mqP.prototype};
_.M(mqP,kV);var sjr=function(F){var q=_.US.apply(1,arguments),t=this;this.orderedFactories=[];this.orderedFactories.push(F);q.forEach(function(u){t.orderedFactories.push(u)})};
sjr.prototype.isSupported=function(F){return this.orderedFactories.some(function(q){return q.isSupported(F)})};
sjr.prototype.makeBeacon=function(F,q){for(var t=0;t<this.orderedFactories.length;t++)if(this.orderedFactories[t].isSupported(q))return this.orderedFactories[t].makeBeacon(F,q);throw new EN;};var Mtv=Symbol("ia"),gOj=Symbol("ja"),K6=function(F,q){this.value=F;this.timeline=q},hK=function(F,q){if(q.timeline!==F.timeline)throw new JE1;
return F.value-q.value};
_.l=K6.prototype;_.l.equals=function(F){return hK(this,F)===0};
_.l.maximum=function(F){if(F.timeline!==this.timeline)throw new JE1;return this.value>=F.value?this:F};
_.l.round=function(){return new K6(Math.round(this.value),this.timeline)};
_.l.add=function(F){return new K6(this.value+F,this.timeline)};
_.l.toString=function(){return String(this.value)};var zb=function(F,q){this.context=F;this.JSC$9188_pinger=q};
zb.prototype.isSupported=function(F){return this.JSC$9188_pinger.isSupported(F)};
zb.prototype.makeBeacon=function(F,q){if(!this.isSupported(q))throw new EN;return new o8(this.context,this.JSC$9188_pinger,q!=null?q:void 0,F)};
var o8=function(F,q,t,u){var J=this;this.JSC$9194_pinger=q;this.properties=t;this.url=u;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var g;this.method=(g=t==null?void 0:t.beaconMethod)!=null?g:"GET";this.backgroundedSubscription=F.getOnBackgrounded().subscribe(function(){J.sendNow()})};
o8.prototype.deactivate=function(){this.internalIsPending=!1};
o8.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9194_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var F,q;this.JSC$9194_pinger.pingWithHeadersAndBody((F=this.properties)!=null?F:{},this.customHeaders,(q=this.body)!=null?q:"",this.url)}else this.JSC$9194_pinger.ping(this.url);this.internalIsPending=!1}catch(t){}else this.internalIsPending=!1};
o8.prototype.setHeader=function(F,q){this.customHeaders.set(F,q)};
_.JJ.Object.defineProperties(o8.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Xfr=function(){for(var F=_.X(_.US.apply(0,arguments)),q=F.next();!q.done;q=F.next())if(q=q.value,q.available()){this.timeProvider=q;return}this.timeProvider=new lwf};
_.l=Xfr.prototype;_.l.available=function(){return this.timeProvider.available()};
_.l.now=function(){return this.timeProvider.now()};
_.l.setTimeout=function(F,q){return this.timeProvider.setTimeout(F,q)};
_.l.clearTimeout=function(F){this.timeProvider.clearTimeout(F)};
_.l.interval=function(F,q){var t=this.intervalObservable(F).subscribe(q);return function(){return void t.unsubscribe()}};
_.l.intervalObservable=function(F){return this.timeProvider.intervalObservable(F)};
_.JJ.Object.defineProperties(Xfr.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var lwf=function(){this.timeline=Symbol()};
_.l=lwf.prototype;_.l.available=function(){return!1};
_.l.now=function(){return new K6(0,this.timeline)};
_.l.setTimeout=function(){return 0};
_.l.clearTimeout=function(){};
_.l.interval=function(){return function(){}};
_.l.intervalObservable=function(){return vn};var nR=function(F,q){this.intrinsicFunctionNamespace=F;this.performanceMonitor=q};
_.l=nR.prototype;_.l.setTimeout=function(F,q){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,F),q)};
_.l.clearTimeout=function(F){this.intrinsicFunctionNamespace.clearTimeout(F)};
_.l.interval=function(F,q){var t=this.intervalObservable(F).subscribe(q);return function(){return void t.unsubscribe()}};
_.l.intervalObservable=function(F){var q=this;return new Nv(function(t){var u=0,J=q.intrinsicFunctionNamespace.setInterval(function(){t.next(u++)},F);
return function(){q.intrinsicFunctionNamespace.clearInterval(J)}})};
_.l.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Yve=function(F,q){nR.call(this,F,q);this.timeline=gOj};
_.M(Yve,nR);Yve.prototype.now=function(){return new K6(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Yve.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&nR.prototype.available.call(this)};var pfj=function(F,q){nR.call(this,F,q);this.timeline=Mtv};
_.M(pfj,nR);pfj.prototype.now=function(){return new K6(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
pfj.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&nR.prototype.available.call(this)};var edr=function(F){this.context=F;if(Qjf===void 0)a:{var q,t,u=(q=F.global)==null?void 0:(t=q.document)==null?void 0:t.createElement("meta");if(u)try{u.httpEquiv="origin-trial";u.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";F.global.document.head.append(u);Qjf=u;break a}catch(J){}Qjf=void 0}},
Qjf;
edr.prototype.isSupported=function(F){return Rho(this.context)!==void 0&&!(F==null||!F.endOfSession)&&!Mt(this.context)&&!(F==null?0:F.attributionEnabled)&&!(F==null?0:F.customHeaders)&&!(F==null?0:F.customBody)};
edr.prototype.makeBeacon=function(F,q){if(!this.isSupported(q))throw new EN;return new Tb(this.context,F,q)};
var Tb=function(F,q,t){this.context=F;this.properties=t;this.JSC$9221_urlWithoutToken=q;var u;this.beaconMethod=(u=t==null?void 0:t.beaconMethod)!=null?u:"GET";F=Rho(this.context);if(F===void 0)throw Error();this.fetchLater=F;Zev(this,Rd1(this))},Zev=function(F,q){F.beaconResult&&F.beaconResult.activated||(F.beaconAbort=new AbortController,F.beaconResult=F.fetchLater(q,{method:F.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:F.beaconAbort.signal,activateAfter:96E4}))},Rd1=function(F){F=F.JSC$9221_urlWithoutToken;
return(F.slice(-1)[0]==="&"?F:F+"&")+"flapi=1"};
Tb.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Tb.prototype.sendNow=function(){};
Tb.prototype.setHeader=function(){};
_.JJ.Object.defineProperties(Tb.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9221_urlWithoutToken},
set:function(F){this.JSC$9221_urlWithoutToken=F;F=Rd1(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);Zev(this,F)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var rEr=function(F){this.context=F};
rEr.prototype.isSupported=function(){return!Mt(this.context)&&!!this.context.global.fetch};
rEr.prototype.ping=function(){var F=this;return VM.apply(null,_.mZ(_.US.apply(0,arguments).map(function(q){return kl(F.context.global.fetch(q,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(HA(function(t){return t.status===200}))}))).pipe(zho(function(q){return q}),nqo())};
rEr.prototype.pingWithHeadersAndBody=function(F,q,t){for(var u=_.US.apply(3,arguments),J=this,g=new Headers,Y=_.X(q.entries()),Q=Y.next();!Q.done;Q=Y.next()){var e=_.X(Q.value);Q=e.next().value;e=e.next().value;g.set(Q,e)}var r,N=(r=F.keepAlive)!=null?r:!1;VM.apply(null,_.mZ(u.map(function(w){return kl(J.context.global.fetch(w,Object.assign({},{method:String(F.beaconMethod),cache:"no-cache"},N?{keepalive:!0}:{},{mode:"no-cors",headers:g,body:t}))).pipe(HA(function(k){return k.status===200}))}))).pipe(zho(function(w){return w}),
nqo())};var NxJ,hIu;_.DH=function(){};
_.I_=function(F){return F};
NxJ=function(F){var q=q||0;return function(){return F.apply(this,Array.prototype.slice.call(arguments,0,q))}};
_.Wk=function(F){var q=!1,t;return function(){q||(t=F(),q=!0);return t}};
_.ON=function(F,q){var t=0;return function(u){_.uu.clearTimeout(t);var J=arguments;t=_.uu.setTimeout(function(){F.apply(void 0,J)},q)}};
hIu=function(F,q){var t=0,u=!1,J=[],g=function(){t=0;u&&(u=!1,Y())},Y=function(){t=_.uu.setTimeout(g,q);
var Q=J;J=[];F.apply(void 0,Q)};
return function(Q){J=arguments;t?u=!0:Y()}};var ien=function(){return iu&&EM?EM.mobile:!wfO()&&(zt("iPod")||zt("iPhone")||zt("Android")||zt("IEMobile"))},wfO=function(){return iu&&EM?!EM.mobile&&(zt("iPad")||zt("Android")||zt("Silk")):zt("iPad")||zt("Android")&&!zt("Mobile")||zt("Silk")};var k1E;_.m7={};k1E="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.m7.add=function(F,q,t){if(F!==null&&q in F)throw Error("la`"+q);F[q]=t};
_.m7.clear=function(F){for(var q in F)delete F[q]};
_.m7.clone=function(F){var q={},t;for(t in F)q[t]=F[t];return q};
_.m7.contains=function(F,q){return Oso(F,q)};
_.m7.containsKey=function(F,q){return F!==null&&q in F};
_.m7.containsValue=Oso;_.m7.create=AWq;_.m7.createImmutableView=function(F){var q=F;Object.isFrozen&&!Object.isFrozen(F)&&(q=Object.create(F),Object.freeze(q));return q};
_.m7.createSet=vq3;_.m7.equals=function(F,q){for(var t in F)if(!(t in q)||F[t]!==q[t])return!1;for(var u in q)if(!(u in F))return!1;return!0};
_.m7.every=function(F,q,t){for(var u in F)if(!q.call(t,F[u],u,F))return!1;return!0};
_.m7.extend=function(F,q){for(var t,u,J=1;J<arguments.length;J++){u=arguments[J];for(t in u)F[t]=u[t];for(var g=0;g<k1E.length;g++)t=k1E[g],Object.prototype.hasOwnProperty.call(u,t)&&(F[t]=u[t])}};
_.m7.filter=function(F,q,t){var u={},J;for(J in F)q.call(t,F[J],J,F)&&(u[J]=F[J]);return u};
_.m7.findKey=PQf;_.m7.findValue=function(F,q,t){return(q=PQf(F,q,t))&&F[q]};
_.m7.forEach=function(F,q,t){for(var u in F)q.call(t,F[u],u,F)};
_.m7.get=function(F,q,t){return F!==null&&q in F?F[q]:t};
_.m7.getAllPropertyNames=function(F,q,t){if(!F)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return W7W(F);for(var u={};F&&(F!==Object.prototype||q)&&(F!==Function.prototype||t);){for(var J=Object.getOwnPropertyNames(F),g=0;g<J.length;g++)u[J[g]]=!0;F=Object.getPrototypeOf(F)}return W7W(u)};
_.m7.getAnyKey=function(F){for(var q in F)return q};
_.m7.getAnyValue=function(F){for(var q in F)return F[q]};
_.m7.getCount=function(F){var q=0,t;for(t in F)q++;return q};
_.m7.getKeys=W7W;_.m7.getSuperClass=function(F){return(F=Object.getPrototypeOf(F.prototype))&&F.constructor};
_.m7.getValueByKeys=function(F,q){var t=_.VC(q),u=t?q:arguments;for(t=t?0:1;t<u.length;t++){if(F==null)return;F=F[u[t]]}return F};
_.m7.getValues=function(F){var q=[],t=0,u;for(u in F)q[t++]=F[u];return q};
_.m7.isEmpty=function(F){for(var q in F)return!1;return!0};
_.m7.isImmutableView=function(F){return!!Object.isFrozen&&Object.isFrozen(F)};
_.m7.map=function(F,q,t){var u={},J;for(J in F)u[J]=q.call(t,F[J],J,F);return u};
_.m7.remove=function(F,q){var t;(t=q in F)&&delete F[q];return t};
_.m7.set=function(F,q,t){F[q]=t};
_.m7.setIfUndefined=function(F,q,t){return q in F?F[q]:F[q]=t};
_.m7.setWithReturnValueIfNotSet=function(F,q,t){if(q in F)return F[q];t=t();return F[q]=t};
_.m7.some=function(F,q,t){for(var u in F)if(q.call(t,F[u],u,F))return!0;return!1};
_.m7.transpose=function(F){var q={},t;for(t in F)q[F[t]]=t;return q};
_.m7.unsafeClone=xao;var Pk=function(F,q,t,u,J){this.allowedElements=F;this.elementPolicies=q;this.allowedGlobalAttributes=t;this.globalAttributePolicies=u;this.globallyAllowedAttributePrefixes=J},EOL=function(F,q,t){t=F.elementPolicies.get(t);
return(t==null?0:t.has(q))?t.get(q):F.allowedGlobalAttributes.has(q)?{policyAction:1}:(t=F.globalAttributePolicies.get(q))?t:F.globallyAllowedAttributePrefixes&&[].concat(_.mZ(F.globallyAllowedAttributePrefixes)).some(function(u){return q.indexOf(u)===0})?{policyAction:1}:{policyAction:0}};var zdC="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(" "),
oOJ=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],nOd="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
MC1=[["dir",{policyAction:3,conditions:Dq(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Dq(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Dq(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Dq(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],Txe=new Pk(new Set(zdC),new Map(oOJ),new Set(nOd),new Map(MC1)),G1r=new Pk(new Set(zdC.concat(["BUTTON",
"INPUT"])),new Map(oOJ),new Set(Dq(function(){return nOd.concat(["class","id","name"])})),new Map(Dq(function(){return MC1.concat([["style",
{policyAction:1}]])})));var Dnd,WrL,PJd;Dnd=function(F,q,t,u,J){this.JSC$9282_sanitizerTable=F;this.styleElementSanitizer=q;this.styleAttributeSanitizer=t;this.JSC$9282_resourceUrlPolicy=u;this.JSC$9282_navigationUrlPolicy=J;this.changes=[]};
_.Oen=function(F,q){var t=document.implementation.createHTMLDocument("");F=WrL(F,q,t);t=t.body;t.appendChild(F);t=(new XMLSerializer).serializeToString(t);t=t.slice(t.indexOf(">")+1,t.lastIndexOf("</"));return Ll(t)};
WrL=function(F,q,t){q=maW(q,t);q=document.createTreeWalker(q,5,function(Q){if(Q.nodeType===3)Q=1;else if(bs3(Q))if(Q=$af(Q),Q===null)Q=2;else{var e=F.JSC$9282_sanitizerTable;Q=Q!=="FORM"&&(e.allowedElements.has(Q)||e.elementPolicies.has(Q))?1:2}else Q=2;return Q});
for(var u=q.nextNode(),J=t.createDocumentFragment(),g=J;u!==null;){var Y=void 0;if(u.nodeType===3)F.styleElementSanitizer&&g.nodeName==="STYLE"?(u=F.styleElementSanitizer(u.data),Y=F.createTextNode(u)):Y=F.createTextNode(u.data);else if(bs3(u))Y=PJd(F,u,t);else throw Error("Z");g.appendChild(Y);if(u=q.firstChild())g=Y;else for(;!(u=q.nextSibling())&&(u=q.parentNode());)g=g.parentNode}return J};
Dnd.prototype.createTextNode=function(F){return document.createTextNode(F)};
PJd=function(F,q,t){var u,J=$af(q);t=t.createElement(J);q=q.attributes;for(var g=_.X(q),Y=g.next();!Y.done;Y=g.next()){var Q=Y.value;Y=Q.name;Q=Q.value;var e=EOL(F.JSC$9282_sanitizerTable,Y,J);a:{if(u=e.conditions){u=_.X(u);for(var r=u.next();!r.done;r=u.next()){var N=_.X(r.value);r=N.next().value;N=N.next().value;var w=void 0;if((r=(w=q.getNamedItem(r))==null?void 0:w.value)&&!N.has(r)){u=!1;break a}}}u=!0}if(u)switch(e.policyAction){case 1:eA(t,Y,Q);break;case 2:throw Error();case 3:eA(t,Y,Q.toLowerCase());
break;case 4:F.styleAttributeSanitizer?(Q=F.styleAttributeSanitizer(Q),eA(t,Y,Q)):eA(t,Y,Q);break;case 5:F.JSC$9282_resourceUrlPolicy?(e={type:2,attributeName:Y,elementName:J},Q=Hsq(Q),(Q=F.JSC$9282_resourceUrlPolicy(Q,e))&&eA(t,Y,Q.toString())):eA(t,Y,Q);break;case 6:if(F.JSC$9282_resourceUrlPolicy){e={type:2,attributeName:Y,elementName:J};u=[];Q=_.X(Q.split(","));for(r=Q.next();!r.done;r=Q.next())N=_.X(r.value.trim().split(/\s+/,2)),r=N.next().value,N=N.next().value,u.push({url:r,descriptor:N});
Q={parts:[]};u=_.X(u);for(r=u.next();!r.done;r=u.next())r=r.value,N=Hsq(r.url),(N=F.JSC$9282_resourceUrlPolicy(N,e))&&Q.parts.push({url:N.toString(),descriptor:r.descriptor});eA(t,Y,yWo(Q))}else eA(t,Y,Q);break;case 7:e=Q;if(F.JSC$9282_navigationUrlPolicy){e={type:2,attributeName:Y,elementName:J};Q=Hsq(Q);Q=F.JSC$9282_navigationUrlPolicy(Q,e);if(Q===null)break;e=Q.toString()}Q=e;e=_.uYu(Q);e=e!==void 0&&xAE.indexOf(e.toLowerCase())!==-1?Q:"about:invalid#zClosurez";eA(t,Y,e)}}return t};
_.xnz=Dq(function(){return new Dnd(Txe)});
_.AEn=Dq(function(){return new Dnd(G1r)});var vOO=function(){this.calledBuild=!1;this.JSC$9294_sanitizerTable=Txe},IwJ=function(){vOO.apply(this,arguments)};
_.M(IwJ,vOO);IwJ.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new Dnd(this.JSC$9294_sanitizerTable,void 0,void 0,this.JSC$9294_resourceUrlPolicy,this.JSC$9294_navigationUrlPolicy)};var HeC=/[^#]*/;var $n1=function(F){var q=mnL;if(q)for(var t in q)Object.prototype.hasOwnProperty.call(q,t)&&F(q[t],t,q)},bex=function(){var F=[];
$n1(function(q){F.push(q)});
return F},mnL={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"},yEO=_.Wk(function(){return bex()}),dnr=function(){var F=CJE("IFRAME"),
q={};
_.B_(yEO(),function(t){F.sandbox&&F.sandbox.supports&&F.sandbox.supports(t)&&(q[t]=!0)});
return q},CJE=function(F,q){q=q===void 0?document:q;
return q.createElement(String(F).toLowerCase())};var xV;_.AX=function(F,q,t){return Math.min(Math.max(F,q),t)};
xV=function(F,q,t){return F+t*(q-F)};_.bQ=function(F,q){this.x=F!==void 0?F:0;this.y=q!==void 0?q:0};
_.l=_.bQ.prototype;_.l.clone=function(){return new _.bQ(this.x,this.y)};
_.l.equals=function(F){return F instanceof _.bQ&&(this==F?!0:this&&F?this.x==F.x&&this.y==F.y:!1)};
_.l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.l.translate=function(F,q){F instanceof _.bQ?(this.x+=F.x,this.y+=F.y):(this.x+=Number(F),typeof q==="number"&&(this.y+=q));return this};
_.l.scale=function(F,q){this.x*=F;this.y*=typeof q==="number"?q:F;return this};_.Ma=function(F,q){this.width=F;this.height=q};
_.l=_.Ma.prototype;_.l.clone=function(){return new _.Ma(this.width,this.height)};
_.l.area=function(){return this.width*this.height};
_.l.aspectRatio=function(){return this.width/this.height};
_.l.isEmpty=function(){return!this.area()};
_.l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.l.scale=function(F,q){this.width*=F;this.height*=typeof q==="number"?q:F;return this};var CM=function(F,q){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=F===DZ_&&q||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=VCO};
CM.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var UnL=function(F){return F instanceof CM&&F.constructor===CM&&F.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===VCO?F.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},VCO={},DZ_={};
new CM(DZ_,"");var Wn,T4,vk,Svf,BxC,Kr1,yp,fwz,jjJ,awr,$V,cEx,g7J,syx,J91,lQL,Xsn,YCv,psx,KWW,QyC,Zhe,R9e,e9e,A$;Wn=function(F){return F?new A$(_.Cs(F)):Lfu||(Lfu=new A$)};
_.Xp=function(F,q){return typeof q==="string"?F.getElementById(q):q};
T4=function(F,q){return(q||document).getElementsByTagName(String(F))};
_.hdw=function(F){return Svf("yt-formatted-string","paper-input-input",F)};
vk=function(F,q,t,u){F=u||F;return(q=q&&q!="*"?String(q).toUpperCase():"")||t?F.querySelectorAll(q+(t?"."+t:"")):F.getElementsByTagName("*")};
Svf=function(F,q,t){var u=document,J=F&&F!="*"?String(F).toUpperCase():"";return J||q?(t||u).querySelector(J+(q?"."+q:"")):vk(u,F,q,t)[0]||null};
BxC=function(F,q){_.m7.forEach(q,function(t,u){u=="style"?F.style.cssText=t:u=="class"?F.className=t:u=="for"?F.htmlFor=t:Kr1.hasOwnProperty(u)?F.setAttribute(Kr1[u],t):_.gf(u,"aria-")||_.gf(u,"data-")?F.setAttribute(u,t):F[u]=t})};
Kr1={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"};_.G0=function(F){F=(F||window).document;F=F.compatMode=="CSS1Compat"?F.documentElement:F.body;return new _.Ma(F.clientWidth,F.clientHeight)};
_.Lrw=function(F){var q=_.I8(F);F=F.defaultView;return new _.bQ(F.pageXOffset||q.scrollLeft,F.pageYOffset||q.scrollTop)};
_.I8=function(F){return F.scrollingElement?F.scrollingElement:_.es||F.compatMode!="CSS1Compat"?F.body||F.documentElement:F.documentElement};
yp=function(F){return F?F.defaultView:window};
_.Hk=function(F,q,t){return fwz(document,arguments)};
fwz=function(F,q){var t=q[1],u=awr(F,String(q[0]));t&&(typeof t==="string"?u.className=t:Array.isArray(t)?u.className=t.join(" "):BxC(u,t));q.length>2&&jjJ(F,u,q,2);return u};
jjJ=function(F,q,t,u){function J(Q){Q&&q.appendChild(typeof Q==="string"?F.createTextNode(Q):Q)}
for(;u<t.length;u++){var g=t[u];if(!_.VC(g)||_.ho(g)&&g.nodeType>0)J(g);else{a:{if(g&&typeof g.length=="number"){if(_.ho(g)){var Y=typeof g.item=="function"||typeof g.item=="string";break a}if(typeof g==="function"){Y=typeof g.item=="function";break a}}Y=!1}_.B_(Y?_.C3(g):g,J)}}};
_.nr=function(F){return awr(document,F)};
awr=function(F,q){q=String(q);F.contentType==="application/xhtml+xml"&&(q=q.toLowerCase());return F.createElement(q)};
_.mR=function(){return document.createTextNode("\n")};
$V=function(F){if(F.nodeType!=1)return!1;switch(F.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
cEx=function(F,q){jjJ(_.Cs(F),F,arguments,1)};
_.bX=function(F){for(var q;q=F.firstChild;)F.removeChild(q)};
_.y2=function(F,q){q.parentNode&&q.parentNode.insertBefore(F,q)};
_.CR=function(F,q){q.parentNode&&q.parentNode.insertBefore(F,q.nextSibling)};
_.Mq=function(F){return F&&F.parentNode?F.parentNode.removeChild(F):null};
_.FvJ=function(F,q){var t=q.parentNode;t&&t.replaceChild(F,q)};
_.qCx=function(F){var q,t=F.parentNode;if(t&&t.nodeType!=11)if(F.removeNode)F.removeNode(!1);else{for(;q=F.firstChild;)t.insertBefore(q,F);_.Mq(F)}};
_.d1=function(F){return F.children!=void 0?F.children:Array.prototype.filter.call(F.childNodes,function(q){return q.nodeType==1})};
_.u3J=function(F){return F.nextElementSibling!==void 0?F.nextElementSibling:_.t5n(F.nextSibling,!0)};
_.t5n=function(F,q){for(;F&&F.nodeType!=1;)F=q?F.nextSibling:F.previousSibling;return F};
_.F1=function(F){return _.ho(F)&&F.nodeType==1};
_.hG=function(F,q){if(!F||!q)return!1;if(F.contains&&q.nodeType==1)return F==q||F.contains(q);if(typeof F.compareDocumentPosition!="undefined")return F==q||!!(F.compareDocumentPosition(q)&16);for(;q&&F!=q;)q=q.parentNode;return q==F};
g7J=function(F,q){if(F==q)return 0;if(F.compareDocumentPosition)return F.compareDocumentPosition(q)&2?1:-1;if("sourceIndex"in F||F.parentNode&&"sourceIndex"in F.parentNode){var t=F.nodeType==1,u=q.nodeType==1;if(t&&u)return F.sourceIndex-q.sourceIndex;var J=F.parentNode,g=q.parentNode;return J==g?J91(F,q):!t&&_.hG(J,q)?-1*syx(F,q):!u&&_.hG(g,F)?syx(q,F):(t?F.sourceIndex:J.sourceIndex)-(u?q.sourceIndex:g.sourceIndex)}u=_.Cs(F);t=u.createRange();t.selectNode(F);t.collapse(!0);F=u.createRange();F.selectNode(q);
F.collapse(!0);return t.compareBoundaryPoints(_.uu.Range.START_TO_END,F)};
syx=function(F,q){var t=F.parentNode;if(t==q)return-1;for(;q.parentNode!=t;)q=q.parentNode;return J91(q,F)};
J91=function(F,q){for(;q=q.previousSibling;)if(q==F)return-1;return 1};
lQL=function(F){var q,t=arguments.length;if(!t)return null;if(t==1)return arguments[0];var u=[],J=Infinity;for(q=0;q<t;q++){for(var g=[],Y=arguments[q];Y;)g.unshift(Y),Y=Y.parentNode;u.push(g);J=Math.min(J,g.length)}g=null;for(q=0;q<J;q++){Y=u[0][q];for(var Q=1;Q<t;Q++)if(Y!=u[Q][q])return g;g=Y}return g};
_.Cs=function(F){return F.nodeType==9?F:F.ownerDocument||F.document};
Xsn=function(F){return F.contentDocument||F.contentWindow.document};
_.V2=function(F,q){if("textContent"in F)F.textContent=q;else if(F.nodeType==3)F.data=String(q);else if(F.firstChild&&F.firstChild.nodeType==3){for(;F.lastChild!=F.firstChild;)F.removeChild(F.lastChild);F.firstChild.data=String(q)}else _.bX(F),F.appendChild(_.Cs(F).createTextNode(String(q)))};
YCv={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};psx={IMG:" ",BR:"\n"};KWW=function(F){var q;F.tagName=="A"&&F.hasAttribute("href")||F.tagName=="INPUT"||F.tagName=="TEXTAREA"||F.tagName=="SELECT"||F.tagName=="BUTTON"?q=!F.disabled&&(!F.hasAttribute("tabindex")||QyC(F)):q=F.hasAttribute("tabindex")&&QyC(F);return q};
QyC=function(F){F=F.tabIndex;return typeof F==="number"&&F>=0&&F<32768};
Zhe=function(F){var q=[];e9e(F,q,!0);F=q.join("");F=F.replace(/ \xAD /g," ").replace(/\xAD/g,"");F=F.replace(/\u200B/g,"");F=F.replace(/ +/g," ");F!=" "&&(F=F.replace(/^\s*/,""));return F};
R9e=function(F){var q=[];e9e(F,q,!1);return q.join("")};
e9e=function(F,q,t){if(!(F.nodeName in YCv))if(F.nodeType==3)t?q.push(String(F.nodeValue).replace(/(\r\n|\r|\n)/g,"")):q.push(F.nodeValue);else if(F.nodeName in psx)q.push(psx[F.nodeName]);else for(F=F.firstChild;F;)e9e(F,q,t),F=F.nextSibling};
_.r9r=function(F,q,t){if(!q&&!t)return null;var u=q?String(q).toUpperCase():null;return _.Vp(F,function(J){return(!u||J.nodeName==u)&&(!t||typeof J.className==="string"&&_.bu(J.className.split(/\s+/),t))},!0)};
_.Vp=function(F,q,t){F&&!t&&(F=F.parentNode);for(t=0;F;){if(q(F))return F;F=F.parentNode;t++}return null};
A$=function(F){this.JSC$9319_document_=F||_.uu.document||document};
_.l=A$.prototype;_.l.getElement=function(F){return _.Xp(this.JSC$9319_document_,F)};
_.l.$=A$.prototype.getElement;_.l.getElementsByTagName=function(F,q){return(q||this.JSC$9319_document_).getElementsByTagName(String(F))};
_.l.getElementsByTagNameAndClass=function(F,q,t){return vk(this.JSC$9319_document_,F,q,t)};
_.l.$$=A$.prototype.getElementsByTagNameAndClass;_.l.setProperties=BxC;_.l.JSC$9321_createDom=function(F,q,t){return fwz(this.JSC$9319_document_,arguments)};
_.l.createElement=function(F){return awr(this.JSC$9319_document_,F)};
_.l.createTextNode=function(F){return this.JSC$9319_document_.createTextNode(String(F))};
_.l.getWindow=function(){return this.JSC$9319_document_.defaultView};
var D4=function(F){return _.Lrw(F.JSC$9319_document_)};
_.l=A$.prototype;_.l.appendChild=function(F,q){F.appendChild(q)};
_.l.append=cEx;_.l.canHaveChildren=$V;_.l.removeNode=_.Mq;_.l.getChildren=_.d1;_.l.contains=_.hG;_.l=wh.prototype;_.l.getWidth=function(){return this.right-this.left};
_.l.getHeight=function(){return this.bottom-this.top};
_.l.clone=function(){return new wh(this.top,this.right,this.bottom,this.left)};
_.l.contains=function(F){return this&&F?F instanceof wh?F.left>=this.left&&F.right<=this.right&&F.top>=this.top&&F.bottom<=this.bottom:F.x>=this.left&&F.x<=this.right&&F.y>=this.top&&F.y<=this.bottom:!1};
_.l.expand=function(F,q,t,u){_.ho(F)?(this.top-=F.top,this.right+=F.right,this.bottom+=F.bottom,this.left-=F.left):(this.top-=F,this.right+=Number(q),this.bottom+=Number(t),this.left-=Number(u));return this};
_.l.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};
_.l.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};
_.l.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};
_.l.translate=function(F,q){F instanceof _.bQ?(this.left+=F.x,this.right+=F.x,this.top+=F.y,this.bottom+=F.y):(this.left+=F,this.right+=F,typeof q==="number"&&(this.top+=q,this.bottom+=q));return this};
_.l.scale=function(F,q){q=typeof q==="number"?q:F;this.left*=F;this.right*=F;this.top*=q;this.bottom*=q;return this};var UN=function(F,q,t,u){this.left=F;this.top=q;this.width=t;this.height=u};
_.l=UN.prototype;_.l.clone=function(){return new UN(this.left,this.top,this.width,this.height)};
_.l.boundingRect=function(F){var q=Math.max(this.left+this.width,F.left+F.width),t=Math.max(this.top+this.height,F.top+F.height);this.left=Math.min(this.left,F.left);this.top=Math.min(this.top,F.top);this.width=q-this.left;this.height=t-this.top};
_.l.contains=function(F){return F instanceof _.bQ?F.x>=this.left&&F.x<=this.left+this.width&&F.y>=this.top&&F.y<=this.top+this.height:this.left<=F.left&&this.left+this.width>=F.left+F.width&&this.top<=F.top&&this.top+this.height>=F.top+F.height};
_.l.distance=function(F){var q=F.x<this.left?this.left-F.x:Math.max(F.x-(this.left+this.width),0);F=F.y<this.top?this.top-F.y:Math.max(F.y-(this.top+this.height),0);return Math.sqrt(q*q+F*F)};
_.l.getSize=function(){return new _.Ma(this.width,this.height)};
_.l.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};
_.l.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};
_.l.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};
_.l.translate=function(F,q){F instanceof _.bQ?(this.left+=F.x,this.top+=F.y):(this.left+=F,typeof q==="number"&&(this.top+=q));return this};
_.l.scale=function(F,q){q=typeof q==="number"?q:F;this.left*=F;this.width*=F;this.top*=q;this.height*=q;return this};var wsE,KR,e4M,h$,z9L,E7j,o7L,KR_,n7r,TJ1;_.SL=function(F,q,t){if(typeof q==="string")(q=_.NJE(F,q))&&(F.style[q]=t);else for(var u in q){t=F;var J=q[u],g=_.NJE(t,u);g&&(t.style[g]=J)}};
wsE={};_.NJE=function(F,q){var t=wsE[q];if(!t){var u=_.Md(q);t=u;F.style[u]===void 0&&(u=(_.es?"Webkit":_.QZ?"Moz":null)+Cuv(u),F.style[u]!==void 0&&(t=u));wsE[q]=t}return t};
_.NR=function(F,q){var t=_.Cs(F);return t.defaultView&&t.defaultView.getComputedStyle&&(F=t.defaultView.getComputedStyle(F,null))?F[q]||F.getPropertyValue(q)||"":""};
_.Sr=function(F,q){return _.NR(F,q)||(F.currentStyle?F.currentStyle[q]:null)||F.style&&F.style[q]};
_.ihj=function(F){return _.Sr(F,"position")};
KR=function(F,q,t){if(q instanceof _.bQ){var u=q.x;q=q.y}else u=q,q=t;F.style.left=h$(u,!1);F.style.top=h$(q,!1)};
e4M=function(F){try{return F.getBoundingClientRect()}catch(q){return{left:0,top:0,right:0,bottom:0}}};
_.dh=function(F){var q=_.Cs(F),t=new _.bQ(0,0);if(F==(q?_.Cs(q):document).documentElement)return t;F=e4M(F);q=D4(Wn(q));t.x=F.left+q.x;t.y=F.top+q.y;return t};
_.kvd=function(F,q,t){if(q instanceof _.Ma)t=q.height,q=q.width;else if(t==void 0)throw Error("oa");F.style.width=h$(q,!0);F.style.height=h$(t,!0)};
h$=function(F,q){typeof F=="number"&&(F=(q?Math.round(F):F)+"px");return F};
z9L=function(F){return E7j(F)};
E7j=function(F){var q=o7L;if(_.Sr(F,"display")!="none")return q(F);var t=F.style,u=t.display,J=t.visibility,g=t.position;t.visibility="hidden";t.position="absolute";t.display="inline";F=q(F);t.display=u;t.position=g;t.visibility=J;return F};
o7L=function(F){var q=F.offsetWidth,t=F.offsetHeight,u=_.es&&!q&&!t;return(q===void 0||u)&&F.getBoundingClientRect?(F=e4M(F),new _.Ma(F.right-F.left,F.bottom-F.top)):new _.Ma(q,t)};
KR_=function(F){var q=_.dh(F);F=E7j(F);return new UN(q.x,q.y,F.width,F.height)};
n7r=function(F,q){F=F.style;"opacity"in F?F.opacity=q:"MozOpacity"in F?F.MozOpacity=q:"filter"in F&&(F.filter=q===""?"":"alpha(opacity="+Number(q)*100+")")};
_.jr=function(F,q){F.style.display=q?"":"none"};
_.M5n=function(F){return"rtl"==_.Sr(F,"direction")};
TJ1=function(F){var q=_.NR(F,"marginLeft"),t=_.NR(F,"marginRight"),u=_.NR(F,"marginTop");F=_.NR(F,"marginBottom");return new wh(parseFloat(u),parseFloat(t),parseFloat(F),parseFloat(q))};
_.GvC=function(F){var q=_.NR(F,"borderLeftWidth"),t=_.NR(F,"borderRightWidth"),u=_.NR(F,"borderTopWidth");F=_.NR(F,"borderBottomWidth");return new wh(parseFloat(u),parseFloat(t),parseFloat(F),parseFloat(q))};var Bk=function(F){this.context=F};
Bk.prototype.isSupported=function(F){return(F==null?0:F.attributionEnabled)||(F==null?void 0:F.beaconMethod)==="POST"||(F==null?0:F.customHeaders)||(F==null?0:F.customBody)||(F==null?0:F.keepAlive)?!1:!Mt(this.context)};
Bk.prototype.ping=function(){var F=this;return PA(_.US.apply(0,arguments).map(function(q){try{var t=F.context.global,u=!1;u=u===void 0?!1:u;t.google_image_requests||(t.google_image_requests=[]);var J=CJE("IMG",t.document);u&&(J.attributionSrc="");J.src=q;t.google_image_requests.push(J);return!0}catch(g){return!1}}).every(function(q){return q}))};
Bk.prototype.pingWithHeadersAndBody=function(F,q,t){this.ping.apply(this,_.mZ(_.US.apply(3,arguments)))};var DDf=function(F){this.context=F};
DDf.prototype.isSupported=function(F){return Wvx&&!Mt(this.context)&&da3(this.context)!==void 0&&!(F==null?0:F.attributionEnabled)&&(F==null?void 0:F.beaconMethod)!=="POST"&&!(F==null?0:F.customHeaders)&&!(F==null?0:F.customBody)};
DDf.prototype.makeBeacon=function(F,q){if(!this.isSupported(q))throw new EN;return new LR(this.context,F)};
var Wvx=!1,LR=function(F,q){this.context=F;this.JSC$9340_urlWithoutToken=q;F=da3(this.context);if(F===void 0)throw Error();this.wrappedBeacon=new F(Ohx(this),{})},Ohx=function(F){F=F.JSC$9340_urlWithoutToken;
return(F.slice(-1)[0]==="&"?F:F+"&")+"pbapi=1"};
LR.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
LR.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
LR.prototype.setHeader=function(){};
_.JJ.Object.defineProperties(LR.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9340_urlWithoutToken},
set:function(F){this.JSC$9340_urlWithoutToken=F;this.wrappedBeacon.setURL(Ohx(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(F){if(F!=="GET")throw new EN;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var PwJ=function(F){this.context=F};
PwJ.prototype.isSupported=function(F){if((F==null?0:F.attributionEnabled)||(F==null?void 0:F.beaconMethod)==="GET"||(F==null?0:F.customHeaders)||(F==null?0:F.customBody)||(F==null?0:F.keepAlive))return!1;var q;return!Mt(this.context)&&((q=this.context.global.navigator)==null?void 0:q.sendBeacon)!==void 0};
PwJ.prototype.ping=function(){var F=this;return PA(_.US.apply(0,arguments).map(function(q){var t;return(t=F.context.global.navigator)==null?void 0:t.sendBeacon(q)}).every(function(q){return q}))};
PwJ.prototype.pingWithHeadersAndBody=function(F,q,t){this.ping.apply(this,_.mZ(_.US.apply(3,arguments)))};var oV=function(F){this.value=F},qq=function(F,q){return PA(F.value).pipe(EF(q))},ua=new oV(!1),M6W=new oV(!0);var UF=function(F){this.value=F;this.releasedSubject=new iQ};
UF.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.JJ.Object.defineProperties(UF.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9353_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var qPA=["FRAME","IMG","IFRAME"],L7o=/^[01](px)?$/,Fgt=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},cWC=function(){var F=new Fgt;
F.crossDomainLoadedDefault=!0;F.pendingImagesBlockLoad=!0;return F};var xDf=function(F,q){var t=XdP(F);if(t)if(t.onCreativeLoad)t.onCreativeLoad(q);else{var u=q?[q]:[],J=function(g){for(var Y=0;Y<u.length;++Y)try{u[Y](1,g)}catch(Q){}u={push:function(Q){Q(1,g)}}};
t.onCreativeLoad=function(g){u.push(g)};
t.setAttribute("data-creative-load-listener","");t.addEventListener("creativeLoad",function(g){J(g.detail)});
_.uu.addEventListener("message",function(g){lW3(t,J,g)})}};var fR=function(F,q){var t=this;this.global=F;this.parentContext=q;this.JSC$9364_onVisibilityChange=this.document?VM(PA(!0),C6(this.document,"visibilitychange")).pipe(BA(this.parentContext.performanceMonitor,748),HA(function(){return t.getVisibilityState()}),cA()):PA("visible");
this.document?C6(this.document,"DOMContentLoaded").pipe(BA(this.parentContext.performanceMonitor,739),jS(1)):PA(K7A("DOMContentLoaded"))},nIW=function(F){return F.document!==null&&F.document.visibilityState!==void 0};
fR.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
fR.prototype.querySelector=function(F){return this.document?this.document.querySelector(F):null};
fR.prototype.querySelectorAll=function(F){return this.document?_.C3(this.document.querySelectorAll(F)):[]};
fR.prototype.elementFromPoint=function(F,q){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;F=this.document.elementFromPoint(F,q);return F===null?null:new UF(F)};
var e$u=function(F,q,t){t=t===void 0?!1:t;if(q.ref===void 0||!F.document)return PA(q).pipe(BA(F.parentContext.performanceMonitor,749));var u=new uQ(1),J=function(){u.next(q)};
t||xDf(q.ref,J);tr_(q.ref,J);return u.pipe(BA(F.parentContext.performanceMonitor,749),jS(1))};
_.JJ.Object.defineProperties(fR.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return G0C(this.global,"document")?this.global.document||null:null}}});var YPo=_.LZ(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),pdM=_.LZ(["./reach_worklet.js"]),QX$=_.LZ(["./reach_worklet.js"]),A9r=_.LZ(["./reach_worklet.html"]),v7C=_.LZ(["./reach_worklet.js"]),IQw=_.LZ(["./reach_worklet.js"]);_.RV(A9r);_.RV(v7C);_.RV(IQw);var Ls={left:0,top:0,width:0,height:0};var Hhv,mDL,$Dw,bhw,qh,CwC,dD1,V5L,Hdu,m2A,h9O,KvJ;Hhv=function(F,q,t,u,J,g,Y){var Q="";F&&(Q+=F+":");t&&(Q+="//",q&&(Q+=q+"@"),Q+=t,u&&(Q+=":"+u));J&&(Q+=J);g&&(Q+="?"+g);Y&&(Q+="#"+Y);return Q};
mDL=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.c_=function(F){return F.match(mDL)};
_.Tx=function(F,q){return F?q?decodeURI(F):decodeURIComponent(F):F};
$Dw=function(F){F=_.c_(F)[1]||null;!F&&_.uu.self&&_.uu.self.location&&(F=_.uu.self.location.protocol.slice(0,-1));return F?F.toLowerCase():""};
_.FR=function(F){return _.Tx(_.c_(F)[3]||null,!0)};
_.wN=function(F){return _.Tx(_.c_(F)[5]||null,!0)};
_.xWA=function(F){var q=F.indexOf("#");return q<0?null:F.slice(q+1)};
bhw=function(F){F=_.c_(F);return Hhv(F[1],F[2],F[3],F[4])};
_.y9e=function(F){F=_.c_(F);return Hhv(F[1],null,F[3],F[4])};
_.LB=function(F){F=_.c_(F);return Hhv(null,null,null,null,F[5],F[6],F[7])};
_.uN=function(F){var q=F.indexOf("#");return q<0?F:F.slice(0,q)};
qh=function(F,q){F=_.c_(F);q=_.c_(q);return F[3]==q[3]&&F[1]==q[1]&&F[4]==q[4]};
CwC=function(F,q){if(F){F=F.split("&");for(var t=0;t<F.length;t++){var u=F[t].indexOf("="),J=null;if(u>=0){var g=F[t].substring(0,u);J=F[t].substring(u+1)}else g=F[t];q(g,J?uK(J):"")}}};
dD1=function(F){var q=F.indexOf("#");q<0&&(q=F.length);var t=F.indexOf("?");if(t<0||t>q){t=q;var u=""}else u=F.substring(t+1,q);return[F.slice(0,t),u,F.slice(q)]};
V5L=function(F,q){return q?F?F+"&"+q:q:F};
_.UDO=function(F,q){if(!q)return F;F=dD1(F);F[1]=V5L(F[1],q);return F[0]+(F[1]?"?"+F[1]:"")+F[2]};
_.SCC=function(F,q,t){if(Array.isArray(q))for(var u=0;u<q.length;u++)_.SCC(F,String(q[u]),t);else q!=null&&t.push(F+(q===""?"":"="+_.KI(q)))};
_.kE=function(F){var q=[],t;for(t in F)_.SCC(t,F[t],q);return q.join("&")};
_.j6=function(F,q){q=_.kE(q);return _.UDO(F,q)};
_.a8=function(F,q,t){t=t!=null?"="+_.KI(t):"";return _.UDO(F,q+t)};
Hdu=function(F,q,t,u){for(var J=t.length;(q=F.indexOf(t,q))>=0&&q<u;){var g=F.charCodeAt(q-1);if(g==38||g==63)if(g=F.charCodeAt(q+J),!g||g==61||g==38||g==35)return q;q+=J+1}return-1};
m2A=/#|$/;_.Kr=function(F,q){var t=F.search(m2A),u=Hdu(F,0,q,t);if(u<0)return null;var J=F.indexOf("&",u);if(J<0||J>t)J=t;u+=q.length+1;return uK(F.slice(u,J!==-1?J:0))};
h9O=/[?&]($|#)/;_.sH=function(F,q){for(var t=F.search(m2A),u=0,J,g=[];(J=Hdu(F,u,q,t))>=0;)g.push(F.substring(u,J)),u=Math.min(F.indexOf("&",J)+1||t,t);g.push(F.slice(u));return g.join("").replace(h9O,"$1")};
_.dO=function(F,q,t){return _.a8(_.sH(F,q),q,t)};
KvJ=function(F){var q=dD1(window.location.href),t=q[1],u=[];t&&t.split("&").forEach(function(J){var g=J.indexOf("=");g=g>=0?J.slice(0,g):J;F.hasOwnProperty(g)||u.push(J)});
q[1]=V5L(u.join("&"),_.kE(F));return q[0]+(q[1]?"?"+q[1]:"")+q[2]};var xqo=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(xqo,_.le);xqo.prototype.getVersion=function(){return _.xB(this,2)};var Pau=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Pau,_.le);var MrA=function(F,q){return _.OF(F,2,q)},Oru=function(F,q){return _.OF(F,3,q)};
Pau.prototype.getModel=function(){return _.xB(this,4)};
var G4$=function(F,q){return _.OF(F,4,q)},nWP=function(F,q){return _.OF(F,5,q)},WgP=function(F,q){return _.OF(F,9,q)},oWP=function(F,q){return T3(F,10,q)},zB3=function(F,q){return _.RX(F,11,q)},Too=function(F,q){return _.OF(F,1,q)},Dq_=function(F,q){return _.RX(F,7,q)};var k4P="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var tG=function(F,q,t,u){F=F===void 0?window:F;q=q===void 0?null:q;t=t===void 0?new lvv:t;u=u===void 0?eB3():u;tCL.call(this);var J=this;this.global=F;this.debugChannel=q;this.performanceMonitor=t;this.onPageHide=cKo(function(){return C6(J.global,"pagehide")}).pipe(BA(this.performanceMonitor,941));
this.onLoad=cKo(function(){return C6(J.global,"load")}).pipe(BA(this.performanceMonitor,738),jS(1));
this.onResize=cKo(function(){return C6(J.global,"resize")}).pipe(BA(this.performanceMonitor,741));
this.onMessage=cKo(function(){return C6(J.global,"message")}).pipe(BA(this.performanceMonitor,740));
this.document=new fR(this.global,this);this.timeProvider=new Xfr(new pfj(this.intrinsicFunctionNamespace,this.performanceMonitor),new Yve(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new sjr(new edr(this),new DDf(this),new zb(this,new rEr(this)),new zb(this,new PwJ(this)),new zb(this,new Bk(this)))};
_.M(tG,tCL);var Mt=function(F){var q=F.global;return!!F.global.HTMLFencedFrameElement&&!!q.fence&&typeof q.fence.reportEvent==="function"};
_.l=tG.prototype;_.l.reportFencedFrameEvent=function(F){Mt(this)&&this.global.fence.reportEvent(F)};
_.l.getOnBackgrounded=function(){return this.onPageHide.pipe(BA(this.performanceMonitor,942),EF(this.queue),HA(function(){}))};
_.l.postMessage=function(F,q,t){t=t===void 0?[]:t;this.global.postMessage(F,q,t)};
_.l.getWidth=function(){return Daf(this.global)?this.global.width:0};
_.l.getHeight=function(){return Daf(this.global)?this.global.height:0};
_.l.isMobile=function(){return wfO()||ien()};
var SA=function(F,q){try{var t=No_(q,F.global,F.isMobile());return{left:t.left,top:t.top,width:t.getWidth(),height:t.getHeight()}}catch(u){return Ls}};
tG.prototype.validate=function(){var F=this.beaconFactory.isSupported()||Mt(this);return this.global&&this.timeProvider.available()&&F};
var Uaq=function(F){return(F=vWv(F.global))?kl(F):null};
_.JJ.Object.defineProperties(tG.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(F){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Daf(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}}});_.BJe=!_.p4&&!_.py3();var T2f=function(F){return F};var DMf=function(F){return F.pipe(Us(function(q){var t=q.endOfSessionReason;var u;return((u=q.viewable)==null?void 0:u.extrapolateToNow().value)||t!=void 0}),jS(1),f6())};var CaW=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},dq3=function(F){var q=F.sequenceNumber.toString(10).padStart(2,"0");
q=""+F.startTime+q;F.sequenceNumber<99&&F.sequenceNumber++;return q};var oIu=rL(ps(function(F){return F.endOfSessionReason===void 0}),HA(function(F){return Object.assign({},F,{timestamps:AW(F)})}),Us(function(F){var q=F.viewable;
F=F.timestamps;var t;return(t=q==null?void 0:q.extrapolateUsingTimestampMap(F).value)!=null?t:!1}),HA(function(F){var q=F.beaconFactory;
var t=F.timestampedExposureHistory;var u=F.timeOnScreen;var J=F.binaryContext;F=F.timestamps;if(q===void 0||t===void 0||u===void 0||J===void 0)return!1;if(u.extrapolateUsingTimestampMap(F).value.every(function(g){return g>=0}))return!0;
t=t.map(function(g){return g.timestamp+":"+g.value}).join(",");
u=Vr$({bin:J,tos:u},F);q.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+u+("&eh="+t)).sendNow();return!0}),ps(function(F){return!F}),f6());var SPo=function(F){return{id:F.pingId,mcvt:F.maxConsecutiveViewTime,p:F.creativePosition,asp:F.adSpeedPosition,tm:F.totalMeasurementTime,tu:F.totalUnviewedTime,mtos:F.maxTimeOnScreen,tos:F.timeOnScreen,v:F.binaryVersion,bin:F.binaryContext,avms:F.measurementStrategy,bs:F.browserSize,mc:F.maximumExposure,"if":F.crossDomainIframeState,vu:F.delayedImpressionJsState,app:F.inApp,mse:F.mraidError,mtop:F.mraidSituation,itpl:F.injectedTemplateId,adk:F.adKey,exk:F.awbidKey,rs:F.requestSource,la:F.isLargeAd,
cr:F.isContentRecommendationAd,uach:F.userAgentClientHints,vs:F.viewState,r:F.reasonCode,pay:F.hasCpmavUrl,co:F.clientPingOrderCounter,rst:F.adRenderStartTime,rpt:F.adRenderPeriodTime,isd:F.initialScrollDepth,lsd:F.loadedScrollDepth,context:F.errorContext,msg:F.errorMessage,stack:F.errorStack,name:F.errorName,ec:F.hasElementChanged,sfr:F.strategyFailureReasons,met:F.creativeSearchResult,wmsd:F.webMeasurementStartDiagnostic,pv:F.pageVisible,epv:F.eosPageVisible,pbe:F.inStatefulBeaconExperiment,fle:F.inFetchLaterBeaconExperiment,
vae:F.inViewableAttributionExperiment,spb:F.supportsPendingBeacon,sfl:F.supportsFetchLater,ffslot:F.isFencedFrameSlotTurtlex,reach:F.sharedStorageReachMode,io2:F.v2VisibilityBitVector,rxdbg:F.rxDebugger,omida:F.omidAppId,omidp:F.omidPartner,omidpv:F.omidPartnerVersion,omidor:F.omidOcclusionReasons,omidv:F.omidVersion,omids:F.omidSessionType,omidam:F.omidAccessMode,omidct:F.omidCreativeType,omidia:F.omidInApp,omiddc:F.omidDeviceCategory,omidlat:F.omidLastActivity,omiddit:F.omidDeviceIdleTime,qid:F.errorEscapedQueryId}};var GnM=function(F){var q=[];return F.pipe(HA(function(t){var u=t.beaconFactory,J=t.fetchBeaconFactory,g=t.timeOnScreen,Y=t.timeOnScreenUrlPrefixes,Q=t.payloadMapper,e=t.timeOnScreenPingId,r=t.timeOnScreenReason,N=t.urlSerializer,w=t.viewable,k=t.hasImpressionFired,z=t.inStatefulBeaconExperiment,T=t.supportsPendingBeacon,P=t.supportsFetchLater,v=t.turtlexReportEventData;if(!t.geometryMeasurable||!k||t.maxTimeOnScreen===void 0||g===void 0||Y===void 0||Q===void 0||e===void 0||N===void 0||u===void 0)return!1;
if(t.isTurtlex){if(r===void 0)return!1;Y=t.reportFencedFrameEvent;if(!Y)return!1;Y({eventType:"active-view-time-on-screen",eventData:v!=null?v:"",destination:["buyer"]});return!0}if(!(z||P||r))return!1;v=AW(t);var H;w=(H=w==null?void 0:w.extrapolateUsingTimestampMap(v).value)!=null?H:!1;H=N(Object.assign({},t,{pingId:e,viewState:w?4:3,reasonCode:r!=null?r:"u",payloadMapper:Q,urlPrefixes:Y}),v);if(z){for(;q.length>Y.length;)t=void 0,(t=q.shift())==null||t.deactivate();H.forEach(function(a,S){S>=q.length?
q.push(u.makeBeacon(a)):q[S].url=a});
return T&&J&&r!==void 0?(H.forEach(function(a){J.makeBeacon(a).sendNow()}),!0):r!==void 0}if(T&&J&&r!==void 0)return H.forEach(function(a){J.makeBeacon(a).sendNow()}),!0;
if(P&&J){for(;q.length>Y.length;)T=void 0,(T=q.shift())==null||T.deactivate();var d=N(Object.assign({},t,{pingId:e,viewState:w?4:3,reasonCode:r!=null?r:"u",payloadMapper:Q,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),v)[0];H.forEach(function(a,S){S>=q.length?q.push(u.makeBeacon(d,{endOfSession:!0})):q[S].url=d});
return r!==void 0?(H.forEach(function(a){J.makeBeacon(a).sendNow()}),!0):r!==void 0}return r!==void 0?(H.forEach(function(a){u.makeBeacon(a).sendNow()}),!0):!1}),ps(function(t){return!t}),f6())};var W8f=rL(Us(function(F){return F.immediateUrlPrefixes!==void 0&&F.payloadMapper!==void 0&&F.urlSerializer!==void 0&&F.inferredPingId!==void 0&&F.beaconFactory!==void 0}),Us(function(F){return cGo(F)!==null}),aWf(function(F){return F.activeViewUnmeasurableEvent},function(F){return F.emit}),HA(function(F){if(F.isTurtlex){var q=F.reportFencedFrameEvent;
if(q){var t;q({eventType:"active-view-unmeasurable",eventData:(t=F.turtlexReportEventData)!=null?t:"",destination:["buyer"]})}}else{t=void 0;var u=cGo(F);if(u==="x"){var J,g=(J=F.geometricMeasurementErrors)!=null?J:F.contextValidationErrors;g&&(q=g.stack,t=g.message)}F.urlSerializer(Object.assign({},F,{urlPrefixes:F.immediateUrlPrefixes,payloadMapper:F.payloadMapper,pingId:F.inferredPingId,viewState:2,reasonCode:u,errorMessage:t,errorStack:q}),AW(F)).forEach(function(Y){F.beaconFactory.makeBeacon(Y).sendNow()})}}),
jS(1),f6());var F1M=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var z$$=rL(Us(function(F){return F.payloadMapper!==void 0&&F.immediateUrlPrefixes!==void 0&&F.urlSerializer!==void 0&&F.inferredPingId!==void 0&&F.beaconFactory!==void 0}),HA(function(F){return Object.assign({},F,{timestamps:AW(F)})}),Us(function(F){var q=F.viewable;
var t=F.hasImpressionFired;F=F.timestamps;var u;return!!t&&((u=q==null?void 0:q.extrapolateUsingTimestampMap(F).value)!=null?u:!1)}),aWf(function(F){return F.activeViewViewableEvent},function(F){return F.emit}),HA(function(F){var q=F.beaconFactory,t=F.turtlexReportEventData;
if(F.isTurtlex){var u=F.reportFencedFrameEvent;if(!u)return!1;u({eventType:"active-view-viewable",eventData:t!=null?t:"",destination:["buyer"]});return!0}t=F.urlSerializer(Object.assign({},F,{urlPrefixes:F.immediateUrlPrefixes,payloadMapper:F.payloadMapper,pingId:F.inferredPingId,viewState:4,reasonCode:"v"}),F.timestamps);(u=F.cpmavUrls)&&u.length>0&&F.viewUrlSerializer&&F.viewUrlSerializer(u,F).forEach(function(J){q.makeBeacon(J).sendNow()});
(u=F.viewableRelayUrls)&&u.length>0&&F.viewUrlSerializer&&F.viewUrlSerializer(u,F).forEach(function(J){q.makeBeacon(J).sendNow()});
t.forEach(function(J){q.makeBeacon(J,{attributionEnabled:F.isViewableAttributionEnabled}).sendNow()});
return!0}),ps(function(F){return!F}),f6());var Sdf=HA(function(F){return[F.value.topWindowViewportExternalGeometry.width,F.value.topWindowViewportExternalGeometry.height]});var hW=function(F,q){this.callback=F;this.options=q;this.intersectionObserverV2=this.intersectionObserverV1=null},Gy3=function(F,q){q?F.intersectionObserverV2||(q=Object.assign({},F.options,{delay:100,
trackVisibility:!0}),F.intersectionObserverV2=new IntersectionObserver(F.callback,q)):F.intersectionObserverV1||(F.intersectionObserverV1=new IntersectionObserver(F.callback,F.options))},Lvd=function(F,q){F=q?F.intersectionObserverV2:F.intersectionObserverV1;
if(!F)throw new uLO;return F};
hW.prototype.observe=function(F,q){Lvd(this,F).observe(q)};
hW.prototype.unobserve=function(F,q){Lvd(this,F).unobserve(q)};
hW.prototype.disconnect=function(F){Lvd(this,F).disconnect()};
hW.prototype.takeRecords=function(F){return Lvd(this,F).takeRecords()};var R4A={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Ls,topWindowViewportExternalGeometry:Ls,measurementRequests:new iQ,elementGeometrySourceName:"ns",elementGeometry:Ls,intersectionGeometry:Ls,viewportLocalAppOffset:{x:0,y:0}};var vRM=aV(rL(HA(function(F){var q;return(q=F.exposureOverride)!=null?q:W1o(F)}),HA(function(F){return isFinite(F)?F:0}))),C5f=aV(rL(HA(function(F){var q;
return(q=F.exposureOverride)!=null?q:W1o(F)}),HA(function(F){return isFinite(F)?F:-1})));var jL=function(F,q){this.a=F;this.b=q;if(F.clock.timeline!==q.clock.timeline)throw Error();};
jL.prototype.equivalentTo=function(F){return F instanceof jL?this.a.equivalentTo(F.a)&&this.b.equivalentTo(F.b):!1};
jL.prototype.extrapolateToTime=function(F){var q=this.a.extrapolateToTime(F).value,t=this.b.extrapolateToTime(F).value;return{timestamp:F,value:[q,t]}};
_.JJ.Object.defineProperties(jL.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var F=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),q=this.a.lastMeasurement.timestamp.equals(F)?this.a.lastMeasurement.value:this.a.extrapolateToTime(F).value,t=this.b.lastMeasurement.timestamp.equals(F)?this.b.lastMeasurement.value:this.b.extrapolateToTime(F).value;return{timestamp:F,value:[q,t]}}}});var ck=function(F,q){this.input=F;this.mapFunction=q;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
ck.prototype.equivalentTo=function(F){return F instanceof ck?this.input.equivalentTo(F.input)&&this.mapFunction===F.mapFunction:!1};
ck.prototype.extrapolateToTime=function(F){F=this.input.extrapolateToTime(F);return{timestamp:F.timestamp,value:this.mapFunction(F.value)}};
_.JJ.Object.defineProperties(ck.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Fo=function(){};
Fo.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Fo.prototype.extrapolateUsingTimestampMap=function(F){var q=this.clock.timeline,t,u=(t=F.get(q))!=null?t:this.clock.now();F.set(q,u);return this.extrapolateToTime(u)};
Fo.prototype.map=function(F){return new fQL(this,F)};
Fo.prototype.joinWith=function(F){return new aQr(this,F)};
var aQr=function(){jL.apply(this,arguments);this.map=Fo.prototype.map;this.joinWith=Fo.prototype.joinWith;this.extrapolateToNow=Fo.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Fo.prototype.extrapolateUsingTimestampMap};
_.M(aQr,jL);var fQL=function(){ck.apply(this,arguments);this.map=Fo.prototype.map;this.joinWith=Fo.prototype.joinWith;this.extrapolateToNow=Fo.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Fo.prototype.extrapolateUsingTimestampMap};
_.M(fQL,ck);var cn=function(F,q){this.lastMeasurement=q;this.extrapolateToNow=Fo.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Fo.prototype.extrapolateUsingTimestampMap;this.map=Fo.prototype.map;this.joinWith=Fo.prototype.joinWith;this.clock=F};
cn.prototype.equivalentTo=function(F){return F.active};
cn.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.JJ.Object.defineProperties(cn.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var U33=HA(function(F){if(F.value.viewportGeometrySourceName==="omid"){if(F.value.elementGeometrySourceName==="nio")return"omio";if(F.value.elementGeometrySourceName==="geo")return"omgeo"}return F.value.elementGeometrySourceName==="geo"||F.value.elementGeometrySourceName==="nio"?F.value.viewportGeometrySourceName:F.value.elementGeometrySourceName});var P5u=rL(Us(function(F){return!isNaN(F)}),sF(function(F,q){return isNaN(F)?q:Math.min(F,q)},NaN),cA());var IVM=aV(rL(HA(function(F){return F.intersectionGeometry.width*F.intersectionGeometry.height/(F.exposedViewportLocalGeometry.width*F.exposedViewportLocalGeometry.height)}),HA(function(F){return isFinite(F)?Math.min(1,F):0})));var VtA=rL(aV(HA(function(F){F=F.exposureOverride?F.elementGeometry.width*F.elementGeometry.height*F.exposureOverride/(F.topWindowViewportExternalGeometry.width*F.topWindowViewportExternalGeometry.height):F.intersectionGeometry.width*F.intersectionGeometry.height/(F.topWindowViewportExternalGeometry.width*F.topWindowViewportExternalGeometry.height);return isFinite(F)?F:0})));var BP$=function(F,q){var t=this;this.timeProvider=F;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=q.pipe(cA()).subscribe(function(u){fVo(t);t.measurementRequestObserver=u})},aVo=function(F,q){fVo(F);
F.lastMeasurementRequest=F.timeProvider.setTimeout(function(){var t;return void((t=F.measurementRequestObserver)==null?void 0:t.next())},q)},fVo=function(F){F.lastMeasurementRequest!==null&&F.timeProvider.clearTimeout(F.lastMeasurementRequest);
F.lastMeasurementRequest=null};
BP$.prototype.dispose=function(){fVo(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var jy1=function(){};var iI3=function(F,q){this.context=F;this.strategies=q};
_.M(iI3,jy1);iI3.prototype.buildGeometrySource=function(F,q){var t=this.strategies.map(function(g){return g.buildGeometrySource(F,q)}),u=t6_(t.map(function(g){return g.geometrySource})),J=u.capturedErrors.pipe(c9d());
return{geometrySource:u.chain.pipe(EF(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:J,strategyErrors:u.capturedErrors}].concat(_.mZ(t.map(function(g){return g.additionalOutputs}))))}};
var c9d=function(){return sF(function(F,q){q instanceof IV?F.push(q.measurementStrategyFailureReason):F.push(-1);return F},[])};var EIM=function(F,q){this.context=F;this.poller=q};
_.M(EIM,jy1);EIM.prototype.buildGeometrySource=function(F,q){var t=ubo(s5W(this.context,this.poller),rOq(this.context,q.requestSource));return{geometrySource:qKM(F.measurableCreative.pipe(t),q.inApp),additionalOutputs:{}}};var knf=function(F,q,t){t=t===void 0?z4M(F,q):t;this.context=F;this.intersectionObserverStrategy=t};
_.M(knf,jy1);knf.prototype.buildGeometrySource=function(F,q){var t=this.intersectionObserverStrategy(q.useV2);return{geometrySource:qKM(F.measurableCreative.pipe(t,oR3(this.context)),q.inApp),additionalOutputs:{}}};var FtL=function(F,q,t){var u=u===void 0?Symbol():u;this.element=F;this.immediateUrls=q;this.timeOnScreenUrls=t;this.symbol=u};var K1W=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),p_f=Object.freeze([1,.75,K1W.exposureThreshold,K1W.largeAdExposureThreshold,0]);var fuP=function(F,q){q=q===void 0?36E5:q;var t=t===void 0?!0:t;this.creatives=new iQ;this.elementsToUnregister=new iQ;this.elementMap=new Map;var u=new tG(window,null);u.beaconFactory=new zb(u,new Bk(u));w_o(u,this.creatives,this.elementsToUnregister,F,q,t).subscribe()},csf=function(F,q,t,u){if(!F.elementMap.has(q)){var J=new UF(q);
F.elementMap.set(q,J);F.creatives.next(new FtL(J,t,u))}},jiW=function(F,q){F.elementsToUnregister.next(q);
var t=F.elementMap.get(q);t!==void 0&&(t.release(),F.elementMap.delete(q))};var obu=function(F){var q=F.url;F=F.uaDataValues;this.JSC$9469_url_=q;this.uaDataValues_=F;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var t=/[?&]([^&=]+)=([^&]*)/g;F=t.exec(q);)this.urlParamValues_[F[1]]=F[2]},nbu=function(F){F=F.uaDataValues_;
if(!F)return"";var q=JG("uap",F.platform)+JG("uapv",F.platformVersion)+JG("uafv",F.uaFullVersion)+JG("uaa",F.architecture)+JG("uam",F.model)+JG("uab",F.bitness);F.fullVersionList&&(q+="&uafvl="+encodeURIComponent(F.fullVersionList.map(function(t){return encodeURIComponent(t.brand)+";"+encodeURIComponent(t.version)}).join("|")));
F.wow64!=null&&(q+="&uaw="+Number(F.wow64));return q.slice(1)};var qSv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(qSv,_.le);qSv.prototype.getId=function(){return _.xB(this,1)};var qz=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(qz,_.le);qz.prototype.getSeconds=function(){return Oa(this,1)};
qz.prototype.setSeconds=function(F){return _.cs(this,1,Y7(F),"0")};_.HZ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(_.HZ,_.le);_.HZ.prototype.getSeconds=function(){return Oa(this,1)};
_.HZ.prototype.setSeconds=function(F){return _.cs(this,1,Y7(F),"0")};
_.tOf=function(F){var q=Number(vi(F,1));F=_.pr(F,2);return new Date(q*1E3+F/1E6)};var tc=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(tc,_.le);tc.prototype.getUrl=function(){return _.xB(this,1)};
tc.prototype.setUrl=function(F){return _.Kw(this,1,F)};
tc.prototype.getHeight=function(){return _.pr(this,2)};
tc.prototype.getWidth=function(){return _.pr(this,3)};var ub=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ub,_.le);ub.prototype.getAspectRatio=function(){return Pi(this,1)};
ub.prototype.getDuration=function(){return _.Yw(this,qz,2)};var uIL=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(uIL,_.le);var JQw=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(JQw,_.le);var sKE=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(sKE,_.le);var gnf=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(gnf,_.le);var lqe=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(lqe,_.le);var XSL=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(XSL,_.le);var YS1=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(YS1,_.le);var pSr=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(pSr,_.le);var QKJ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(QKJ,_.le);var Jc=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Jc,_.le);var sr=[2,4,5,6,7];var eZe=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(eZe,_.le);var G3=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(G3,_.le);_.l=G3.prototype;_.l.getId=function(){return _.Yw(this,qSv,1)};
_.l.getName=function(){return _.xB(this,2)};
_.l.setDescription=function(F){return _.Kw(this,3,F)};
_.l.getUrl=function(){return _.xB(this,8)};
_.l.setUrl=function(F){return _.Kw(this,8,F)};
var gU=function(F){return _.XN(F,tc,10,_.YW())};
G3.prototype.getOwner=function(F){var q=_.Lh(this,40,_.EC,3,!0);hot(q,F);return q[F]};
G3.prototype.getVersion=function(){return Oa(this,45)};
var lb=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(lb,_.le);_.Xo=[0,Bi,fao];_.YD=[0,Bi,fao];var ZlE=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ZlE,_.le);var pQ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(pQ,_.le);pQ.prototype.getStatus=function(){return _.Aa(this,1)};
pQ.prototype.removeItem=function(F){return la$(this,2,F)};var RZL=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(RZL,_.le);RZL.prototype.getName=function(){return _.xB(this,8)};var QO=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(QO,_.le);QO.prototype.getCommand=function(){return _.Aa(this,1)};
QO.prototype.getSource=function(){return _.Yw(this,RZL,2)};
QO.prototype.setVisible=function(F){return _.HW(this,5,F)};
QO.prototype.removeItem=function(F){return la$(this,7,F)};var rQC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(rQC,_.le);rQC.prototype.getCommand=function(){return _.Aa(this,1)};
rQC.prototype.removeItem=function(F){return la$(this,4,F)};
var N$v=_.oK(rQC);var eu=function(F,q,t){t=t===void 0?Error():t;var u=Error.call(this);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.code=F;q+=":";t instanceof Error?(this.message=q+t.message,this.stack=t.stack||""):(this.message=q+String(t),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.M(eu,Error);_.OP=function(){this.JSC$9527_disposed_=this.JSC$9527_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.OP.prototype.JSC$9527_disposed_=!1;_.OP.prototype.isDisposed=function(){return this.JSC$9527_disposed_};
_.OP.prototype.dispose=function(){this.JSC$9527_disposed_||(this.JSC$9527_disposed_=!0,this.disposeInternal())};
_.OP.prototype[Symbol.dispose]=function(){this.dispose()};
_.kW=function(F,q){F.addOnDisposeCallback(_.MU(_.sP,q))};
_.OP.prototype.addOnDisposeCallback=function(F,q){this.JSC$9527_disposed_?q!==void 0?F.call(q):F():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),q&&(F=F.bind(q)),this.onDisposeCallbacks_.push(F))};
_.OP.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Z6=function(F){_.OP.call(this);this.wpc=F};
_.M(Z6,_.OP);Z6.prototype.wIF=function(){return this.wpc.f()};
Z6.prototype.x5Q=function(F){return this.wpc.c(F)};
Z6.prototype.nJ=function(F){return this.wpc.m(vIt(F))};
Z6.prototype.nqR=function(F){return this.wpc.mws(vIt(F))};
var la=function(F){_.OP.call(this);var q=this;this.vm=F;this.dLY="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.hav=void 0;this.fD9=this.vm.p;this.c07=this.hI1.bind(this);this.addOnDisposeCallback(function(){return void wSC(q)})};
_.M(la,_.OP);var ilE=function(F){var q;return _.p(function(t){if(t.nextAddress==1){if(!F.vm.wpc)throw new eu(30,"NWA");return F.nT9?t.return(F.nT9):t.yield(F.vm.wpc(),2)}q=t.yieldResult;F.nT9=new Z6(q);return t.return(F.nT9)})};
la.prototype.snapshot=function(F){return this.vm.s(Object.assign({},F.m0&&{c:F.m0},F.eJp&&{s:F.eJp},F.yHQ!==void 0&&{p:F.yHQ}))};
la.prototype.hI1=function(F){this.vm.e(F)};
la.prototype.lq6=function(F,q){return this.vm.c(F,q,!1)};
var wSC=function(F){F.hav!==void 0&&(F.dLY.forEach(function(q){var t;(t=F.hav)==null||t.removeEventListener(q,F.c07)}),F.hav=void 0)};
la.prototype.p3R=function(){return this.vm.l()};var RR=function(){_.OP.apply(this,arguments);this.vmY=1};
_.M(RR,_.OP);RR.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.vmY++;return this};
RR.prototype.dispose=function(){--this.vmY||_.OP.prototype.dispose.call(this)};var k9E=function(F){this.hip=F;F.addNewEventMetric("/client_streamz/bg/frs",_.ZW("mk"))};
k9E.prototype.record=function(F,q){this.hip.record("/client_streamz/bg/frs",F,q)};
var EnO=function(F){this.eiC=F;F.addNewEventMetric("/client_streamz/bg/wrl",_.ZW("mn"),er("ac"),er("sc"),_.ZW("rk"),_.ZW("mk"))};
EnO.prototype.record=function(F,q,t,u,J,g){this.eiC.record("/client_streamz/bg/wrl",F,q,t,u,J,g)};
var zZz=function(F){this.mcp=F;F.addNewCounter("/client_streamz/bg/ec",_.ZW("en"),_.ZW("mk"))};
zZz.prototype.increment=function(F,q){this.mcp.JSC$9780_incrementCounter("/client_streamz/bg/ec",F,q)};
var onx=function(F){this.gHC=F;F.addNewEventMetric("/client_streamz/bg/el",_.ZW("en"),_.ZW("mk"))};
onx.prototype.record=function(F,q,t){this.gHC.record("/client_streamz/bg/el",F,q,t)};
var nnw=function(F){this.oHd=F;F.addNewCounter("/client_streamz/bg/cec",er("ec"),_.ZW("mk"))};
nnw.prototype.increment=function(F,q){this.oHd.JSC$9780_incrementCounter("/client_streamz/bg/cec",F,q)};
var MOn=function(F){this.wyE=F;F.addNewCounter("/client_streamz/bg/po/csc",er("cs"),_.ZW("mk"))};
MOn.prototype.increment=function(F,q){this.wyE.JSC$9780_incrementCounter("/client_streamz/bg/po/csc",F,q)};
var T$1=function(F){this.byd=F;F.addNewCounter("/client_streamz/bg/po/ctav",_.ZW("av"),_.ZW("mk"))};
T$1.prototype.increment=function(F,q){this.byd.JSC$9780_incrementCounter("/client_streamz/bg/po/ctav",F,q)};
var G9v=function(F){this.rM5=F;F.addNewCounter("/client_streamz/bg/po/cwsc",_.ZW("su"),_.ZW("mk"))};
G9v.prototype.increment=function(F,q){this.rM5.JSC$9780_incrementCounter("/client_streamz/bg/po/cwsc",F,q)};var Xco=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Xco,_.le);var l0q=function(F,q){return _.j5(F,3,q,ZeM)};var DyE=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(DyE,_.le);var Wtx=[1,2,3];var Old=[0,Wtx,_.qt,aau,FAM];var Ped=[0,_.t$,[0,ha,_.K4]];var xyj=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(xyj,_.le);var AQE=[1,2,3];var vnd=[0,AQE,LPy,SxA,_.uX,Ped];var Iqz=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Iqz,_.le);var Hlj=[0,_.t$,Old,vnd];var myd=[0,_.ci];var $yr=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M($yr,_.le);var blf=[0,_.ci,-1,_.aC];var yQw=[0,_.ci,-1,_.f4,_.aC];var CeC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(CeC,_.le);var dyn=[1,2,3];var VOx=[0,dyn,_.uX,blf,_.uX,yQw,_.uX,myd];var Uy1=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Uy1,_.le);Uy1.prototype.JSC$9600_serializeBinary=yQv([0,_.ci,VOx,qUu,_.t$,Hlj,jx$,cju]);var SSL=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(SSL,_.le);var B$J=function(F){var q=new Uy1;q=_.OF(q,1,F.JSC$9716_metricName);var t=hZx(F);q=_.j5(q,3,t,_.rJ);t=[];for(var u=[],J=_.X(F.cellMap.keys()),g=J.next();!g.done;g=J.next())u.push(g.value.split(","));for(J=0;J<u.length;J++){g=u[J];for(var Y=F.cellType,Q=F.getCells(g)||[],e=[],r=0;r<Q.length;r++){var N=Q[r],w=N&&N.cellValue;N=new xyj;switch(Y){case 3:w=Number(w);Number.isFinite(w)&&ke(N,1,AQE,Y7(w));break;case 2:ke(N,2,AQE,_.SC(Number(w)))}e.push(N)}Y=e;for(Q=0;Q<Y.length;Q++){e=Y[Q];r=new Iqz;e=_.My(r,
2,e);r=[];N=KtJ(F);for(w=0;w<N.length;w++){var k=N[w],z=g[w],T=new DyE;switch(k){case 3:ke(T,1,Wtx,k7(String(z)));break;case 2:k=Number(z);Number.isFinite(k)&&ke(T,2,Wtx,_.uw(k));break;case 1:ke(T,3,Wtx,pf_(z==="true"))}r.push(T)}T3(e,1,r);t.push(e)}}T3(q,4,t);return q};var Ltv=function(F){if(!F)return"";if(/^about:(?:blank|srcdoc)$/.test(F))return window.origin||"";F.indexOf("blob:")===0&&(F=F.substring(5));F=F.split("#")[0].split("?")[0];F=F.toLowerCase();F.indexOf("//")==0&&(F=window.location.protocol+F);/^[\w\-]*:\/\//.test(F)||(F=window.location.href);var q=F.substring(F.indexOf("://")+3),t=q.indexOf("/");t!=-1&&(q=q.substring(0,t));t=F.substring(0,F.indexOf("://"));if(!t)throw Error("qa`"+F);if(t!=="http"&&t!=="https"&&t!=="chrome-extension"&&t!=="moz-extension"&&
t!=="file"&&t!=="android-app"&&t!=="chrome-search"&&t!=="chrome-untrusted"&&t!=="chrome"&&t!=="app"&&t!=="devtools")throw Error("ra`"+t);F="";var u=q.indexOf(":");if(u!=-1){var J=q.substring(u+1);q=q.substring(0,u);if(t==="http"&&J!=="80"||t==="https"&&J!=="443")F=":"+J}return t+"://"+q+F};var aqO=function(F,q,t){var u=String(_.uu.location.href);return u&&F&&q?[q,fqv(Ltv(u),F,t||null)].join(" "):null},fqv=function(F,q,t){var u=[],J=[];
if((Array.isArray(t)?2:1)==1)return J=[q,F],_.B_(u,function(Q){J.push(Q)}),jKw(J.join(" "));
var g=[],Y=[];_.B_(t,function(Q){Y.push(Q.key);g.push(Q.value)});
t=Math.floor((new Date).getTime()/1E3);J=g.length==0?[t,q,F]:[g.join(":"),t,q,F];_.B_(u,function(Q){J.push(Q)});
F=jKw(J.join(" "));F=[t,F];Y.length==0||F.push(Y.join(""));return F.join("_")},jKw=function(F){var q=dM3();
q.update(F);return q.digestString().toLowerCase()};var rU=function(F){this.JSC$9611_document_=F||{cookie:""}},cQL;
_.l=rU.prototype;_.l.isEnabled=function(){if(!_.uu.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};
_.l.set=function(F,q,t){var u=!1;if(typeof t==="object"){var J=t.sameSite;u=t.secure||!1;var g=t.domain||void 0;var Y=t.path||void 0;var Q=t.maxAge}if(/[;=\s]/.test(F))throw Error("sa`"+F);if(/[;\r\n]/.test(q))throw Error("ta`"+q);Q===void 0&&(Q=-1);t=g?";domain="+g:"";Y=Y?";path="+Y:"";u=u?";secure":"";Q=Q<0?"":Q==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+Q*1E3)).toUTCString();this.JSC$9611_document_.cookie=F+"="+q+t+Y+Q+u+(J!=null?";samesite="+J:"")};
_.l.get=function(F,q){for(var t=F+"=",u=(this.JSC$9611_document_.cookie||"").split(";"),J=0,g;J<u.length;J++){g=eW(u[J]);if(g.lastIndexOf(t,0)==0)return g.slice(t.length);if(g==F)return""}return q};
_.l.remove=function(F,q,t){var u=this.containsKey(F);this.set(F,"",{maxAge:0,path:q,domain:t});return u};
_.l.getKeys=function(){return cQL(this).keys};
_.l.getValues=function(){return cQL(this).values};
_.l.isEmpty=function(){return!this.JSC$9611_document_.cookie};
_.l.getCount=function(){return this.JSC$9611_document_.cookie?(this.JSC$9611_document_.cookie||"").split(";").length:0};
_.l.containsKey=function(F){return this.get(F)!==void 0};
_.l.containsValue=function(F){for(var q=cQL(this).values,t=0;t<q.length;t++)if(q[t]==F)return!0;return!1};
_.l.clear=function(){for(var F=cQL(this).keys,q=F.length-1;q>=0;q--)this.remove(F[q])};
cQL=function(F){F=(F.JSC$9611_document_.cookie||"").split(";");for(var q=[],t=[],u,J,g=0;g<F.length;g++)J=eW(F[g]),u=J.indexOf("="),u==-1?(q.push(""),t.push(J)):(q.push(J.substring(0,u)),t.push(J.substring(u+1)));return{keys:q,values:t}};
_.om=new rU(typeof document=="undefined"?null:document);var wNP,FZw;wNP=function(){var F=_.uu.__SAPISID||_.uu.__APISID||_.uu.__3PSAPISID||_.uu.__1PSAPISID||_.uu.__OVERRIDE_SID;if(F)return!0;typeof document!=="undefined"&&(F=new rU(document),F=F.get("SAPISID")||F.get("APISID")||F.get("__Secure-3PAPISID")||F.get("__Secure-1PAPISID"));return!!F};
FZw=function(F,q,t,u){(F=_.uu[F])||typeof document==="undefined"||(F=(new rU(document)).get(q));return F?aqO(F,t,u):null};
_.jE3=function(F){var q=Ltv(_.uu==null?void 0:_.uu.location.href),t=[];if(wNP()){q=q.indexOf("https:")==0||q.indexOf("chrome-extension:")==0||q.indexOf("chrome-untrusted://new-tab-page")==0||q.indexOf("moz-extension:")==0;var u=q?_.uu.__SAPISID:_.uu.__APISID;u||typeof document==="undefined"||(u=new rU(document),u=u.get(q?"SAPISID":"APISID")||u.get("__Secure-3PAPISID"));(u=u?aqO(u,q?"SAPISIDHASH":"APISIDHASH",F):null)&&t.push(u);q&&((q=FZw("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",F))&&t.push(q),
(F=FZw("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",F))&&t.push(F))}return t.length==0?null:t.join(" ")};var qsC=function(){this.minSize=1024};
qsC.prototype.compress=function(F){var q,t,u,J;return _.p(function(g){switch(g.nextAddress){case 1:return q=new CompressionStream("gzip"),t=(new Response(q.readable)).arrayBuffer(),u=q.writable.getWriter(),g.yield(u.write((new TextEncoder).encode(F)),2);case 2:return g.yield(u.close(),3);case 3:return J=Uint8Array,g.yield(t,4);case 4:return g.return(new J(g.yieldResult))}})};
qsC.prototype.isSupported=function(F){return F<this.minSize?!1:typeof CompressionStream!=="undefined"};var tSO=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(tSO,_.le);var Nz=function(F,q){this.intervalMs=F;this.callback=q;this.enabled=!1;this.nowFn=function(){return _.sa()};
this.lastTimeMs=this.nowFn()};
Nz.prototype.setInterval=function(F){this.intervalMs=F;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Nz.prototype.start=function(){var F=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){F.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Nz.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Nz.prototype.tick=function(){var F=this;if(this.enabled){var q=Math.max(this.nowFn()-this.lastTimeMs,0);q<this.intervalMs*.8?this.timer=setTimeout(function(){F.tick()},this.intervalMs-q):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var uYJ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(uYJ,_.le);var JKz=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(JKz,_.le);var s2v=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(s2v,_.le);s2v.prototype.getTransmissionType=function(){return _.Aa(this,1)};var h$$=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(h$$,_.le);h$$.prototype.getVersion=function(){return _.xB(this,2)};var wU=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(wU,_.le);var SK_=function(F){T3(K8M,1,F)};
wU.prototype.getModel=function(){return _.xB(this,6)};
var glL=_.oK(wU);var loz=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(loz,_.le);var V6f=["platform","platformVersion","architecture","model","uaFullVersion"],K8M=new wU,UMM=null;var ib=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ib,_.le);var XAd=function(F){return _.pt(F,1,1)};var Ysd=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F,4)};
_.M(Ysd,_.le);_.kD=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F,36)};
_.M(_.kD,_.le);_.kD.prototype.getExperimentIds=function(){return _.Yw(this,tSO,16)};var pAe=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F,19)};
_.M(pAe,_.le);pAe.prototype.setLogSource=function(F){return _.pt(this,2,F)};
pAe.prototype.setScheduler=function(F){return _.pt(this,10,F)};var ePn=function(F,q){this.isServiceWorkerScope=q=q===void 0?!1:q;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new pAe;Number.isInteger(F)&&this.logRequest.setLogSource(F);q||(this.locale=document.documentElement.getAttribute("lang"));Q2E(this,new ib)};
ePn.prototype.setLogSource=function(F){this.logRequest.setLogSource(F);return this};
var Q2E=function(F,q){_.My(F.logRequest,1,q);_.Aa(q,1)||XAd(q);F.isServiceWorkerScope||(q=Er(F),_.xB(q,5)||_.OF(q,5,F.locale));F.uach&&(q=Er(F),_.Yw(q,wU,9)||_.My(q,9,F.uach))},Z6z=function(F,q){F.transmissionType=q},RPE=function(F){var q=q===void 0?V6f:q;
var t=F.isServiceWorkerScope?void 0:yp();t?B2C(t,q).then(function(u){F.uach=glL(u!=null?u:"[]");u=Er(F);_.My(u,9,F.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Er=function(F){var q=_.Yw(F.logRequest,ib,1);
q||(q=new ib,Q2E(F,q));F=q;q=_.Yw(F,loz,11);q||(q=new loz,_.My(F,11,q));return q};
ePn.prototype.build=function(F,q,t,u,J,g){q=q===void 0?0:q;t=t===void 0?0:t;u=u===void 0?null:u;J=J===void 0?0:J;g=g===void 0?0:g;if(!this.isServiceWorkerScope){var Y=Er(this);var Q=new s2v;Q=_.pt(Q,1,this.transmissionType);Q=_.RX(Q,2,this.isFinal);t=_.mc(Q,3,t>0?t:void 0);t=_.mc(t,4,J>0?J:void 0);t=_.mc(t,5,g>0?g:void 0);J=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g=J[_.sv]|0;t=eC(t,g)?t:n7$(t,J,g)?o7q(t,J):new t.constructor(yT(J,g,!0));_.My(Y,10,t)}Y=this.logRequest.clone();t=Date.now().toString();
Y=_.Qa(Y,4,Y7(t));F=F.slice();F=T3(Y,3,F);u&&(Y=new uYJ,u=_.mc(Y,13,u),Y=new JKz,u=_.My(Y,2,u),Y=new Ysd,u=_.My(Y,1,u),u=_.pt(u,2,9),_.My(F,18,u));q&&_.Gm(F,14,q);return F};ro.prototype.currBackoffCount_=0;ro.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
ro.prototype.getValue=function(){return this.currValue_};
var rKx=function(F){F.currBaseValue_=Math.min(F.maxValue_,F.currBaseValue_*F.backoffFactor_);F.currValue_=Math.min(F.maxValue_,F.currBaseValue_+(F.randomFactor_?Math.round(F.randomFactor_*(Math.random()-.5)*2*F.currBaseValue_):0));F.currBackoffCount_++};var X7$=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F,8)};
_.M(X7$,_.le);var NLe=_.oK(X7$);var YUC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(YUC,_.le);var zw;zw=new p7P;var oR=function(F){_.OP.call(this);var q=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9689_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$9689_sendBeaconApiEnabled=!1;this.logSource=F.logSource;this.getAuthHeaderValue=
F.getAuthHeaderValue||function(){};
this.logRequestBuilder=new ePn(F.logSource,F.isServiceWorkerScope);this.network=F.network||null;this.productID=F.productID||null;this.bufferSize=1E3;this.clearcutUrl=F.urlOverride||null;this.sessionIndex=F.sessionIndex||null;this.disableAutomaticFlush=F.disableAutomaticFlush||!1;this.withCredentials=!F.disableWithCredentials;this.isServiceWorkerScope=F.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!yp()&&!!yp().navigator&&yp().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(wAn())).searchParams&&!!(new URL(wAn())).searchParams.set;var t=XAd(new ib);Q2E(this.logRequestBuilder,t);this.flushBackoff=new ro(1E4,3E5,.1);F=i6L(this,F.backgroundJobDeferrer);this.JSC$9689_flushTimer=new Nz(this.flushBackoff.getValue(),F);this.backupTimer=new Nz(6E5,F);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){kg1(q);
var u;(u=q.metalogService)==null||u.flush()}}),document.addEventListener("pagehide",function(){kg1(q);
var u;(u=q.metalogService)==null||u.flush()}))};
_.M(oR,_.OP);var i6L=function(F,q){return F.isBrowserSupported?q?function(){q().then(function(){F.flush()})}:function(){F.flush()}:function(){}};
oR.prototype.disposeInternal=function(){kg1(this);this.JSC$9689_flushTimer.stop();this.backupTimer.stop();_.OP.prototype.disposeInternal.call(this)};
var ElE=function(F){F.clearcutUrl||(F.clearcutUrl=wAn());try{return(new URL(F.clearcutUrl)).toString()}catch(q){return(new URL(F.clearcutUrl,yp().location.origin)).toString()}};
oR.prototype.dispatch=function(F){if(F instanceof _.kD)this.log(F);else try{var q=new _.kD,t=F.serialize();var u=_.OF(q,8,t);this.log(u)}catch(J){nQ(this,4,1)}};
var nQ=function(F,q,t){F.metalogService&&F.metalogService.increment(q,t)};
oR.prototype.log=function(F){nQ(this,2,1);if(this.isBrowserSupported){F=F.clone();var q=this.sequencePosition++;F=_.Gm(F,21,q);this.componentId&&_.OF(F,26,this.componentId);q=F;if(xnC(_.kB(q,1))==null){var t=Date.now();t=Number.isFinite(t)?t.toString():"0";_.Qa(q,1,Y7(t))}_.PJo(_.kB(q,15))!=null||_.Gm(q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(t=this.experimentIds.clone(),_.My(q,16,t));nQ(this,1,1);q=this.pendingEvents.length-this.bufferSize+1;q>0&&(this.pendingEvents.splice(0,q),
this.numLogsDroppedSinceLastFlush+=q,nQ(this,3,q));this.pendingEvents.push(F);this.disableAutomaticFlush||this.JSC$9689_flushTimer.enabled||this.JSC$9689_flushTimer.start()}};
oR.prototype.flush=function(F,q){var t=this;if(this.pendingEvents.length===0)F&&F();else if(this.JSC$9689_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,zPC(this);else{var u=Date.now();if(this.noFlushUntilMs>u&&this.startWaitingMs<u)q&&q("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?Z6z(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var J=this.pendingEvents.length,
g=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),Y=this.getAuthHeaderValue();if(Y&&this.lastFailedAuth===Y)q&&q("stale-auth-token");else{this.pendingEvents=[];this.JSC$9689_flushTimer.enabled&&this.JSC$9689_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;u=g.serialize();var Q;this.JSC$9689_compressor&&this.JSC$9689_compressor.isSupported(u.length)&&
(Q=this.JSC$9689_compressor.compress(u));var e=olv(this,u,Y),r=function(k){t.flushBackoff.reset();t.JSC$9689_flushTimer.setInterval(t.flushBackoff.getValue());if(k){var z=null;try{var T=JSON.stringify(JSON.parse(k.replace(")]}'\n","")));z=NLe(T)}catch(P){}z&&(k=Number(Oa(z,1,_.vf("-1"))),k>0&&(t.startWaitingMs=Date.now(),t.noFlushUntilMs=t.startWaitingMs+k),cEf(z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,zw.fieldIndex),aw$(z,zw.fieldIndex),z=zw.ctor?zw.getExtensionFn(z,zw.ctor,zw.fieldIndex,
zw.JSC$8868_hasMessageId):zw.getExtensionFn(z,zw.fieldIndex,null,zw.JSC$8868_hasMessageId),z=z===null?void 0:z)&&(z=_.pr(z,1,-1),z!==-1&&(t.flushBackoff=new ro(z<1?1:z,3E5,.1),t.JSC$9689_flushTimer.setInterval(t.flushBackoff.getValue())))}F&&F();t.numRetriesSinceLastSuccessfulFlush=0},N=function(k,z){var T=_.XN(g,_.kD,3,_.YW());
var P=Number(Oa(g,14));rKx(t.flushBackoff);t.JSC$9689_flushTimer.setInterval(t.flushBackoff.getValue());k===401&&Y&&(t.lastFailedAuth=Y);P&&(t.numLogsDroppedSinceLastFlush+=P);z===void 0&&(z=t.isRetryable(k));z&&(t.pendingEvents=T.concat(t.pendingEvents),t.disableAutomaticFlush||t.JSC$9689_flushTimer.enabled||t.JSC$9689_flushTimer.start());nQ(t,7,1);q&&q("net-send-failed",k);++t.numRetriesSinceLastSuccessfulFlush},w=function(){t.network&&t.network.send(e,r,N)};
Q?Q.then(function(k){nQ(t,5,J);e.requestHeaders["Content-Encoding"]="gzip";e.requestHeaders["Content-Type"]="application/binary";e.body=k;e.bodyType=2;w()},function(){nQ(t,6,J);
w()}):w()}}}};
var olv=function(F,q,t){t=t===void 0?null:t;var u=u===void 0?F.withCredentials:u;var J={},g=new URL(ElE(F));t&&(J.Authorization=t);F.sessionIndex&&(J["X-Goog-AuthUser"]=F.sessionIndex,g.searchParams.set("authuser",F.sessionIndex));F.pageId&&(Object.defineProperty(J,"X-Goog-PageId",{value:F.pageId}),g.searchParams.set("pageId",F.pageId));return{url:g.toString(),body:q,bodyType:1,requestHeaders:J,requestType:"POST",withCredentials:u,timeoutMillis:F.timeoutMillis}},kg1=function(F){F.logRequestBuilder.isFinal=
!0;
F.flush();F.logRequestBuilder.isFinal=!1},zPC=function(F){nlw(F,function(q,t){q=new URL(q);
q.searchParams.set("format","json");var u=!1;try{u=yp().navigator.sendBeacon(q.toString(),t.serialize())}catch(J){}u||(F.isSendBeaconSupported=!1);return u})},nlw=function(F,q){if(F.pendingEvents.length!==0){var t=new URL(ElE(F));
t.searchParams.delete("format");var u=F.getAuthHeaderValue();u&&t.searchParams.set("auth",u);t.searchParams.set("authuser",F.sessionIndex||"0");for(u=0;u<10&&F.pendingEvents.length;++u){var J=F.pendingEvents.slice(0,32),g=F.logRequestBuilder.build(J,F.numLogsDroppedSinceLastFlush,F.numRetriesSinceLastSuccessfulFlush,F.productID,F.persistedLogRecoveredCount,F.persistedLogExpiredCount);if(!q(t.toString(),g)){++F.numRetriesSinceLastSuccessfulFlush;break}F.numLogsDroppedSinceLastFlush=0;F.numRetriesSinceLastSuccessfulFlush=
0;F.persistedLogRecoveredCount=0;F.persistedLogExpiredCount=0;F.pendingEvents=F.pendingEvents.slice(J.length)}F.JSC$9689_flushTimer.enabled&&F.JSC$9689_flushTimer.stop()}};
oR.prototype.isRetryable=function(F){return 500<=F&&F<600||F===401||F===0};
var wAn=function(){return"https://play.google.com/log?format=json&hasfast=true"};var MSd=function(){this.abortSupported=typeof AbortController!=="undefined"};
MSd.prototype.send=function(F,q,t){var u=this,J,g,Y,Q,e,r,N,w,k,z;return _.p(function(T){switch(T.nextAddress){case 1:return g=(J=u.abortSupported?new AbortController:void 0)?setTimeout(function(){J.abort()},F.timeoutMillis):void 0,_.zg(T,2,3),Y=Object.assign({},{method:F.requestType,
headers:Object.assign({},F.requestHeaders)},F.body&&{body:F.body},F.withCredentials&&{credentials:"include"},{signal:F.timeoutMillis&&J?J.signal:null}),T.yield(fetch(F.url,Y),5);case 5:Q=T.yieldResult;if(Q.status!==200){(e=t)==null||e(Q.status);T.jumpTo(3);break}if((r=q)==null){T.jumpTo(7);break}return T.yield(Q.text(),8);case 8:r(T.yieldResult);case 7:case 3:_.n6(T);clearTimeout(g);_.Tg(T,0);break;case 2:N=_.Gg(T);switch((w=N)==null?void 0:w.name){case "AbortError":(k=t)==null||k(408);break;default:(z=
t)==null||z(400)}T.jumpTo(3)}})};
MSd.prototype.getTransmissionType=function(){return 4};_.wo=function(F,q){q=q===void 0?"0":q;_.OP.call(this);this.logSource=F;this.sessionIndex=q;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9707_clearExperimentIds=this.productID=null;this.JSC$9707_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.M(_.wo,_.OP);var JUo=function(F,q){F.buildLabel=q;return F},uRf=function(F,q){F.network=q;
return F},gEM=function(F,q){F.JSC$9707_clearExperimentIds=q},tvo=function(F){F.JSC$9707_sendBeaconApiEnabled=!0;
return F};
_.wo.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.wo.prototype.build=function(){this.network||(this.network=new MSd);var F=new oR({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.jE3,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.kW(this,F);if(this.buildLabel){var q=this.buildLabel,t=
Er(F.logRequestBuilder);_.OF(t,7,q)}F.JSC$9689_compressor=new qsC;this.componentId&&(F.componentId=this.componentId);this.productID&&(F.productID=this.productID);this.pageId&&(F.pageId=this.pageId);this.JSC$9707_clearExperimentIds&&((t=this.JSC$9707_clearExperimentIds)?(F.experimentIds||(F.experimentIds=new tSO),q=F.experimentIds,t=t.serialize(),_.OF(q,4,t)):F.experimentIds&&_.Qa(F.experimentIds,4));this.JSC$9707_sendBeaconApiEnabled&&(F.JSC$9689_sendBeaconApiEnabled=F.isSendBeaconSupported);RPE(F.logRequestBuilder);
this.bufferSize&&(F.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(F);return F};var YV$=function(F,q,t,u,J,g,Y){F=F===void 0?-1:F;q=q===void 0?"":q;t=t===void 0?"":t;u=u===void 0?!1:u;J=J===void 0?"":J;_.OP.call(this);this.logSource=F;this.componentId=q;g?q=g:(F=new _.wo(F,"0"),F.componentId=q,_.kW(this,F),t!==""&&(F.destinationUrl=t),u&&(F.serviceWorkerScopeEnabled=!0),J&&JUo(F,J),Y&&uRf(F,Y),q=F.build());this.JSC$9711_transport=q};
_.M(YV$,_.OP);YV$.prototype.flush=function(F){F=F||[];if(F.length){for(var q=new SSL,t=[],u=0;u<F.length;u++){var J=F[u],g=B$J(J);t.push(g);J.clear()}T3(q,1,t);this.JSC$9711_transport.dispatch(q);this.JSC$9711_transport.flush()}};var TLv=function(F){this.cellValue=F};var Mz=function(F,q,t){this.JSC$9716_metricName=F;this.cellType=q;this.fields=t||[];this.cellMap=new Map},KtJ=function(F){return F.fields.map(function(q){return q.fieldType})},hZx=function(F){return F.fields.map(function(q){return q.fieldName})};
_.l=Mz.prototype;_.l.addCell=function(F){var q=_.US.apply(1,arguments),t=this.getCells(q);t?t.push(new TLv(F)):this.JSC$9716_setCell(F,q)};
_.l.JSC$9716_setCell=function(F){var q=this.JSC$9716_getKey(_.US.apply(1,arguments));this.cellMap.set(q,[new TLv(F)])};
_.l.getCells=function(){var F=this.JSC$9716_getKey(_.US.apply(0,arguments));return this.cellMap.has(F)?this.cellMap.get(F):void 0};
_.l.getCell=function(){var F=this.getCells(_.US.apply(0,arguments));return F&&F.length?F[0]:void 0};
_.l.clear=function(){this.cellMap.clear()};
_.l.JSC$9716_getKey=function(){var F=_.US.apply(0,arguments);return F?F.join(","):"key"};var Ggd=function(F,q){Mz.call(this,F,3,q)};
_.M(Ggd,Mz);Ggd.prototype.JSC$9719_incrementCounterBy=function(F){var q=_.US.apply(1,arguments),t=0,u=this.getCell(q);u&&(t=u.cellValue);this.JSC$9716_setCell(t+F,q)};var DvE=function(F,q){Mz.call(this,F,2,q)};
_.M(DvE,Mz);DvE.prototype.record=function(F){this.addCell(F,_.US.apply(1,arguments))};_.Tw=function(F){this.id=F};
_.Tw.prototype.toString=function(){return this.id};_.Gw=function(F,q){this.type=F instanceof _.Tw?String(F):F;this.currentTarget=this.target=q;this.defaultPrevented=this.propagationStopped_=!1};
_.Gw.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Gw.prototype.preventDefault=function(){this.defaultPrevented=!0};_.D6=function(F,q){_.Gw.call(this,F?F.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;F&&this.init(F,q)};
_.gd(_.D6,_.Gw);
_.D6.prototype.init=function(F,q){var t=this.type=F.type,u=F.changedTouches&&F.changedTouches.length?F.changedTouches[0]:null;this.target=F.target||F.srcElement;this.currentTarget=q;q=F.relatedTarget;q||(t=="mouseover"?q=F.fromElement:t=="mouseout"&&(q=F.toElement));this.relatedTarget=q;u?(this.clientX=u.clientX!==void 0?u.clientX:u.pageX,this.clientY=u.clientY!==void 0?u.clientY:u.pageY,this.screenX=u.screenX||0,this.screenY=u.screenY||0):(this.offsetX=_.es||F.offsetX!==void 0?F.offsetX:F.layerX,
this.offsetY=_.es||F.offsetY!==void 0?F.offsetY:F.layerY,this.clientX=F.clientX!==void 0?F.clientX:F.pageX,this.clientY=F.clientY!==void 0?F.clientY:F.pageY,this.screenX=F.screenX||0,this.screenY=F.screenY||0);this.button=F.button;this.keyCode=F.keyCode||0;this.key=F.key||"";this.charCode=F.charCode||(t=="keypress"?F.keyCode:0);this.ctrlKey=F.ctrlKey;this.altKey=F.altKey;this.shiftKey=F.shiftKey;this.metaKey=F.metaKey;this.pointerId=F.pointerId||0;this.pointerType=F.pointerType;this.state=F.state;
this.timeStamp=F.timeStamp;this.event_=F;F.defaultPrevented&&_.D6.superClass_.preventDefault.call(this)};
_.D6.prototype.stopPropagation=function(){_.D6.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.D6.prototype.preventDefault=function(){_.D6.superClass_.preventDefault.call(this);var F=this.event_;F.preventDefault?F.preventDefault():F.returnValue=!1};var WZd="closure_listenable_"+(Math.random()*1E6|0),Wr=function(F){return!(!F||!F[WZd])};var O6J=0;var PFL=function(F,q,t,u,J){this.listener=F;this.proxy=null;this.src=q;this.type=t;this.capture=!!u;this.handler=J;this.key=++O6J;this.removed=this.callOnce=!1},xvC=function(F){F.removed=!0;
F.listener=null;F.proxy=null;F.src=null;F.handler=null};Nq.prototype.add=function(F,q,t,u,J){var g=F.toString();F=this.listeners[g];F||(F=this.listeners[g]=[],this.typeCount_++);var Y=AKx(F,q,u,J);Y>-1?(q=F[Y],t||(q.callOnce=!1)):(q=new PFL(q,this.src,g,!!u,J),q.callOnce=t,F.push(q));return q};
Nq.prototype.remove=function(F,q,t,u){F=F.toString();if(!(F in this.listeners))return!1;var J=this.listeners[F];q=AKx(J,q,t,u);return q>-1?(xvC(J[q]),_.nPW(J,q),J.length==0&&(delete this.listeners[F],this.typeCount_--),!0):!1};
var vlx=function(F,q){var t=q.type;if(!(t in F.listeners))return!1;var u=_.yC(F.listeners[t],q);u&&(xvC(q),F.listeners[t].length==0&&(delete F.listeners[t],F.typeCount_--));return u};
Nq.prototype.removeAll=function(F){F=F&&F.toString();var q=0,t;for(t in this.listeners)if(!F||t==F){for(var u=this.listeners[t],J=0;J<u.length;J++)++q,xvC(u[J]);delete this.listeners[t];this.typeCount_--}return q};
Nq.prototype.getListener=function(F,q,t,u){F=this.listeners[F.toString()];var J=-1;F&&(J=AKx(F,q,t,u));return J>-1?F[J]:null};
Nq.prototype.hasListener=function(F,q){var t=F!==void 0,u=t?F.toString():"",J=q!==void 0;return _.m7.some(this.listeners,function(g){for(var Y=0;Y<g.length;++Y)if(!(t&&g[Y].type!=u||J&&g[Y].capture!=q))return!0;return!1})};
var AKx=function(F,q,t,u){for(var J=0;J<F.length;++J){var g=F[J];if(!g.removed&&g.listener==q&&g.capture==!!t&&g.handler==u)return J}return-1};var Io1,H6e,mvz,b6f,yKj,P9,xb,VSL,CFf,dvn,Or,UvO,$vw;Io1="closure_lm_"+(Math.random()*1E6|0);H6e={};mvz=0;_.Ic=function(F,q,t,u,J){if(u&&u.once)return P9(F,q,t,u,J);if(Array.isArray(q)){for(var g=0;g<q.length;g++)_.Ic(F,q[g],t,u,J);return null}t=$vw(t);return Wr(F)?F.listen(q,t,_.ho(u)?!!u.capture:!!u,J):b6f(F,q,t,!1,u,J)};
b6f=function(F,q,t,u,J,g){if(!q)throw Error("va");var Y=_.ho(J)?!!J.capture:!!J,Q=Or(F);Q||(F[Io1]=Q=new Nq(F));t=Q.add(q,t,u,Y,g);if(t.proxy)return t;u=yKj();t.proxy=u;u.src=F;u.listener=t;if(F.addEventListener)_.bc$||(J=Y),J===void 0&&(J=!1),F.addEventListener(q.toString(),u,J);else if(F.attachEvent)F.attachEvent(CFf(q.toString()),u);else if(F.addListener&&F.removeListener)F.addListener(u);else throw Error("wa");mvz++;return t};
yKj=function(){var F=dvn,q=function(t){return F.call(q.src,q.listener,t)};
return q};
P9=function(F,q,t,u,J){if(Array.isArray(q)){for(var g=0;g<q.length;g++)P9(F,q[g],t,u,J);return null}t=$vw(t);return Wr(F)?F.listenOnce(q,t,_.ho(u)?!!u.capture:!!u,J):b6f(F,q,t,!0,u,J)};
_.Pr=function(F,q,t,u,J){if(Array.isArray(q))for(var g=0;g<q.length;g++)_.Pr(F,q[g],t,u,J);else u=_.ho(u)?!!u.capture:!!u,t=$vw(t),Wr(F)?F.unlisten(q,t,u,J):F&&(F=Or(F))&&(q=F.getListener(q,t,u,J))&&xb(q)};
xb=function(F){if(typeof F==="number"||!F||F.removed)return!1;var q=F.src;if(Wr(q))return vlx(q.eventTargetListeners_,F);var t=F.type,u=F.proxy;q.removeEventListener?q.removeEventListener(t,u,F.capture):q.detachEvent?q.detachEvent(CFf(t),u):q.addListener&&q.removeListener&&q.removeListener(u);mvz--;(t=Or(q))?(vlx(t,F),t.typeCount_==0&&(t.src=null,q[Io1]=null)):xvC(F);return!0};
VSL=function(F,q,t,u,J){t=$vw(t);u=!!u;return Wr(F)?F.getListener(q,t,u,J):F?(F=Or(F))?F.getListener(q,t,u,J):null:null};
CFf=function(F){return F in H6e?H6e[F]:H6e[F]="on"+F};
dvn=function(F,q){if(F.removed)F=!0;else{q=new _.D6(q,this);var t=F.listener,u=F.handler||F.src;F.callOnce&&xb(F);F=t.call(u,q)}return F};
Or=function(F){F=F[Io1];return F instanceof Nq?F:null};
UvO="__closure_events_fn_"+(Math.random()*1E9>>>0);$vw=function(F){if(typeof F==="function")return F;F[UvO]||(F[UvO]=function(q){return F.handleEvent(q)});
return F[UvO]};_.xD=function(){_.OP.call(this);this.eventTargetListeners_=new Nq(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.gd(_.xD,_.OP);_.xD.prototype[WZd]=!0;_.l=_.xD.prototype;_.l.setParentEventTarget=function(F){this.parentEventTarget_=F};
_.l.addEventListener=function(F,q,t,u){_.Ic(this,F,q,t,u)};
_.l.removeEventListener=function(F,q,t,u){_.Pr(this,F,q,t,u)};
_.l.dispatchEvent=function(F){var q,t=this.parentEventTarget_;if(t)for(q=[];t;t=t.parentEventTarget_)q.push(t);t=this.actualEventTarget_;var u=F.type||F;if(typeof F==="string")F=new _.Gw(F,t);else if(F instanceof _.Gw)F.target=F.target||t;else{var J=F;F=new _.Gw(u,t);_.m7.extend(F,J)}J=!0;var g;if(q)for(g=q.length-1;!F.propagationStopped_&&g>=0;g--){var Y=F.currentTarget=q[g];J=Ssf(Y,u,!0,F)&&J}F.propagationStopped_||(Y=F.currentTarget=t,J=Ssf(Y,u,!0,F)&&J,F.propagationStopped_||(J=Ssf(Y,u,!1,F)&&
J));if(q)for(g=0;!F.propagationStopped_&&g<q.length;g++)Y=F.currentTarget=q[g],J=Ssf(Y,u,!1,F)&&J;return J};
_.l.disposeInternal=function(){_.xD.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.l.listen=function(F,q,t,u){return this.eventTargetListeners_.add(String(F),q,!1,t,u)};
_.l.listenOnce=function(F,q,t,u){return this.eventTargetListeners_.add(String(F),q,!0,t,u)};
_.l.unlisten=function(F,q,t,u){return this.eventTargetListeners_.remove(String(F),q,t,u)};
_.l.removeAllListeners=function(F){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(F):0};
var Ssf=function(F,q,t,u){q=F.eventTargetListeners_.listeners[String(q)];if(!q)return!0;q=q.concat();for(var J=!0,g=0;g<q.length;++g){var Y=q[g];if(Y&&!Y.removed&&Y.capture==t){var Q=Y.listener,e=Y.handler||Y.src;Y.callOnce&&vlx(F.eventTargetListeners_,Y);J=Q.call(e,u)!==!1&&J}}return J&&!u.defaultPrevented};
_.xD.prototype.getListener=function(F,q,t,u){return this.eventTargetListeners_.getListener(String(F),q,t,u)};
_.xD.prototype.hasListener=function(F,q){return this.eventTargetListeners_.hasListener(F!==void 0?String(F):void 0,q)};var Ac=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(F){return F&&AsyncContext.Snapshot.wrap(F)}:function(F){return F};var hPz=function(F,q){this.create_=F;this.reset_=q;this.occupants_=0;this.JSC$9751_head_=null};
hPz.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var F=this.JSC$9751_head_;this.JSC$9751_head_=F.next;F.next=null}else F=this.create_();return F};
hPz.prototype.put=function(F){this.reset_(F);this.occupants_<100&&(this.occupants_++,F.next=this.JSC$9751_head_,this.JSC$9751_head_=F)};var KZv=function(){this.workTail_=this.workHead_=null};
KZv.prototype.add=function(F,q){var t=fA3.get();t.set(F,q);this.workTail_?this.workTail_.next=t:this.workHead_=t;this.workTail_=t};
KZv.prototype.remove=function(){var F=null;this.workHead_&&(F=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),F.next=null);return F};
var fA3=new hPz(function(){return new BLf},function(F){return F.reset()}),BLf=function(){this.next=this.scope=this.fn=null};
BLf.prototype.set=function(F,q){this.fn=F;this.scope=q;this.next=null};
BLf.prototype.reset=function(){this.next=this.scope=this.fn=null};var LZ1,aAM,L8P,foE;aAM=!1;L8P=new KZv;_.vr=function(F,q){LZ1||foE();aAM||(LZ1(),aAM=!0);L8P.add(F,q)};
foE=function(){var F=Promise.resolve(void 0);LZ1=function(){F.then(j5A)}};var aoC=function(F){F.prototype.$goog_Thenable=!0},j2f=function(F){if(!F)return!1;
try{return!!F.$goog_Thenable}catch(q){return!1}};var cKd,F7n,qFn,u$x,JWn,sVf,YFC,ehn,Nhw,Rhd,g_q;_.iz=function(F,q){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(F!=_.DH)try{var t=this;F.call(q,function(u){t.resolve_(2,u)},function(u){t.resolve_(3,u)})}catch(u){this.resolve_(3,u)}};
cKd=function(){this.next=this.context=this.JSC$9762_onRejected=this.JSC$9762_onFulfilled=this.child=null;this.always=!1};
cKd.prototype.reset=function(){this.context=this.JSC$9762_onRejected=this.JSC$9762_onFulfilled=this.child=null;this.always=!1};
F7n=new hPz(function(){return new cKd},function(F){F.reset()});
qFn=function(F,q,t){var u=F7n.get();u.JSC$9762_onFulfilled=F;u.JSC$9762_onRejected=q;u.context=t;return u};
_.NU=function(F){if(F instanceof _.iz)return F;var q=new _.iz(_.DH);q.resolve_(2,F);return q};
_.mW=function(F){return new _.iz(function(q,t){t(F)})};
u$x=function(F,q,t){tAj(F,q,t,null)||_.vr(_.MU(q,F))};
_.IR=function(F){return new _.iz(function(q,t){var u=F.length,J=[];if(u)for(var g=function(r,N){u--;J[r]=N;u==0&&q(J)},Y=function(r){t(r)},Q,e=0;e<F.length;e++)Q=F[e],u$x(Q,_.MU(g,e),Y);
else q(J)})};
JWn=function(F){return new _.iz(function(q){var t=F.length,u=[];if(t)for(var J=function(Q,e,r){t--;u[Q]=e?{fulfilled:!0,value:r}:{fulfilled:!1,reason:r};t==0&&q(u)},g,Y=0;Y<F.length;Y++)g=F[Y],u$x(g,_.MU(J,Y,!0),_.MU(J,Y,!1));
else q(u)})};
sVf=function(F){return new _.iz(function(q,t){var u=F.length,J=[];if(u)for(var g=function(r){q(r)},Y=function(r,N){u--;
J[r]=N;u==0&&t(J)},Q,e=0;e<F.length;e++)Q=F[e],u$x(Q,g,_.MU(Y,e));
else q(void 0)})};
_.ji=function(){var F,q,t=new _.iz(function(u,J){F=u;q=J});
return new gqf(t,F,q)};
_.iz.prototype.then=function(F,q,t){return l4z(this,Ac(typeof F==="function"?F:null),Ac(typeof q==="function"?q:null),t)};
aoC(_.iz);YFC=function(F,q,t,u){Xnj(F,qFn(q||_.DH,t||null,u))};
_.Hr=function(F,q){q=Ac(q);q=qFn(q,q);q.always=!0;Xnj(F,q);return F};
_.iz.prototype.finally=function(F){var q=this;F=Ac(F);return new _.iz(function(t,u){YFC(q,function(J){F();t(J)},function(J){F();
u(J)})})};
_.iz.prototype.thenCatch=function(F,q){return l4z(this,null,Ac(F),q)};
_.iz.prototype.catch=_.iz.prototype.thenCatch;_.iz.prototype.cancel=function(F){if(this.state_==0){var q=new _.dI(F);_.vr(function(){pnJ(this,q)},this)}};
var pnJ=function(F,q){if(F.state_==0)if(F.parent_){var t=F.parent_;if(t.callbackEntries_){for(var u=0,J=null,g=null,Y=t.callbackEntries_;Y&&(Y.always||(u++,Y.child==F&&(J=Y),!(J&&u>1)));Y=Y.next)J||(g=Y);J&&(t.state_==0&&u==1?pnJ(t,q):(g?(u=g,u.next==t.callbackEntriesTail_&&(t.callbackEntriesTail_=u),u.next=u.next.next):QVL(t),ehn(t,J,3,q)))}F.parent_=null}else F.resolve_(3,q)},Xnj=function(F,q){F.callbackEntries_||F.state_!=2&&F.state_!=3||Zsx(F);
F.callbackEntriesTail_?F.callbackEntriesTail_.next=q:F.callbackEntries_=q;F.callbackEntriesTail_=q},l4z=function(F,q,t,u){var J=qFn(null,null,null);
J.child=new _.iz(function(g,Y){J.JSC$9762_onFulfilled=q?function(Q){try{var e=q.call(u,Q);g(e)}catch(r){Y(r)}}:g;
J.JSC$9762_onRejected=t?function(Q){try{var e=t.call(u,Q);e===void 0&&Q instanceof _.dI?Y(Q):g(e)}catch(r){Y(r)}}:Y});
J.child.parent_=F;Xnj(F,J);return J.child};
_.iz.prototype.unblockAndFulfill_=function(F){this.state_=0;this.resolve_(2,F)};
_.iz.prototype.unblockAndReject_=function(F){this.state_=0;this.resolve_(3,F)};
_.iz.prototype.resolve_=function(F,q){this.state_==0&&(this===q&&(F=3,q=new TypeError("xa")),this.state_=1,tAj(q,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=q,this.state_=F,this.parent_=null,Zsx(this),F!=3||q instanceof _.dI||Rhd(this,q)))};
var tAj=function(F,q,t,u){if(F instanceof _.iz)return YFC(F,q,t,u),!0;if(j2f(F))return F.then(q,t,u),!0;if(_.ho(F))try{var J=F.then;if(typeof J==="function")return rWr(F,J,q,t,u),!0}catch(g){return t.call(u,g),!0}return!1},rWr=function(F,q,t,u,J){var g=!1,Y=function(e){g||(g=!0,t.call(J,e))},Q=function(e){g||(g=!0,u.call(J,e))};
try{q.call(F,Y,Q)}catch(e){Q(e)}},Zsx=function(F){F.executing_||(F.executing_=!0,_.vr(F.executeCallbacks_,F))},QVL=function(F){var q=null;
F.callbackEntries_&&(q=F.callbackEntries_,F.callbackEntries_=q.next,q.next=null);F.callbackEntries_||(F.callbackEntriesTail_=null);return q};
_.iz.prototype.executeCallbacks_=function(){for(var F;F=QVL(this);)ehn(this,F,this.state_,this.result_);this.executing_=!1};
ehn=function(F,q,t,u){if(t==3&&q.JSC$9762_onRejected&&!q.always)for(;F&&F.hadUnhandledRejection_;F=F.parent_)F.hadUnhandledRejection_=!1;if(q.child)q.child.parent_=null,Nhw(q,t,u);else try{q.always?q.JSC$9762_onFulfilled.call(q.context):Nhw(q,t,u)}catch(J){g_q.call(null,J)}F7n.put(q)};
Nhw=function(F,q,t){q==2?F.JSC$9762_onFulfilled.call(F.context,t):F.JSC$9762_onRejected&&F.JSC$9762_onRejected.call(F.context,t)};
Rhd=function(F,q){F.hadUnhandledRejection_=!0;_.vr(function(){F.hadUnhandledRejection_&&g_q.call(null,q)})};
g_q=Jo;_.dI=function(F){_.Fq.call(this,F)};
_.gd(_.dI,_.Fq);_.dI.prototype.name="cancel";var gqf=function(F,q,t){this.promise=F;this.resolve=q;this.reject=t};var mX;_.pB=function(F,q){_.xD.call(this);this.JSC$9774_interval_=F||1;this.timerObject_=q||_.uu;this.boundTick_=(0,_.Pd)(this.tick_,this);this.last_=_.sa()};
_.gd(_.pB,_.xD);_.l=_.pB.prototype;_.l.enabled=!1;_.l.JSC$9776_timer_=null;_.l.setInterval=function(F){this.JSC$9774_interval_=F;this.JSC$9776_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9776_timer_&&this.stop()};
_.l.tick_=function(){if(this.enabled){var F=_.sa()-this.last_;F>0&&F<this.JSC$9774_interval_*.8?this.JSC$9776_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9774_interval_-F):(this.JSC$9776_timer_&&(this.timerObject_.clearTimeout(this.JSC$9776_timer_),this.JSC$9776_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.l.start=function(){this.enabled=!0;this.JSC$9776_timer_||(this.JSC$9776_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9774_interval_),this.last_=_.sa())};
_.l.stop=function(){this.enabled=!1;this.JSC$9776_timer_&&(this.timerObject_.clearTimeout(this.JSC$9776_timer_),this.JSC$9776_timer_=null)};
_.l.disposeInternal=function(){_.pB.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
mX=function(F,q,t){if(typeof F==="function")t&&(F=(0,_.Pd)(F,t));else if(F&&typeof F.handleEvent=="function")F=(0,_.Pd)(F.handleEvent,F);else throw Error("ya");return Number(q)>2147483647?-1:_.uu.setTimeout(F,q||0)};
_.wnO=function(F){var q=null;return(new _.iz(function(t,u){q=mX(function(){t(void 0)},F);
q==-1&&u(Error("za"))})).thenCatch(function(t){_.uu.clearTimeout(q);
throw t;})};var EP=function(F){_.OP.call(this);this.streamzLogger=F;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9780_flushTimer=new _.pB(this.flushInterval);this.JSC$9780_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.kW(this,this.JSC$9780_flushTimer)};
_.M(EP,_.OP);EP.prototype.sendIsolatedPayload=function(F){this.shouldSendIsolatedPayload=F;this.invocationLimit=1};
var isf=function(F){F.JSC$9780_flushTimer.enabled||F.JSC$9780_flushTimer.start();F.invocationCount++;F.invocationCount>=F.invocationLimit&&F.snapshotAndFlush()};
EP.prototype.snapshotAndFlush=function(){var F=this.metricMap.values();F=[].concat(_.mZ(F)).filter(function(q){return q.cellMap.size});
F.length&&this.streamzLogger.flush(F,this.shouldSendIsolatedPayload);k0z(F);this.invocationCount=0;this.JSC$9780_flushTimer.enabled&&this.JSC$9780_flushTimer.stop()};
EP.prototype.addNewCounter=function(F){var q=_.US.apply(1,arguments);this.metricMap.has(F)||this.metricMap.set(F,new Ggd(F,q))};
EP.prototype.addNewEventMetric=function(F){var q=_.US.apply(1,arguments);this.metricMap.has(F)||this.metricMap.set(F,new DvE(F,q))};
var EqL=function(F,q){return F.disabledMetrics.has(q)?void 0:F.metricMap.get(q)};
EP.prototype.JSC$9780_incrementCounter=function(F){this.JSC$9780_incrementCounterBy(F,1,_.US.apply(1,arguments))};
EP.prototype.JSC$9780_incrementCounterBy=function(F,q){var t=_.US.apply(2,arguments),u=EqL(this,F);u&&u instanceof Ggd&&(u.JSC$9719_incrementCounterBy(q,t),isf(this))};
EP.prototype.record=function(F,q){var t=_.US.apply(2,arguments),u=EqL(this,F);u&&u instanceof DvE&&(u.record(q,t),isf(this))};
var k0z=function(F){for(var q=0;q<F.length;q++)F[q].clear()};_.$D=function(F,q,t){t=t===void 0?{}:t;q=Error.call(this,q);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.code=F;this.metadata=t;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.M(_.$D,Error);_.$D.prototype.toString=function(){var F="RpcError("+(FhA(this.code)||String(this.code))+")";this.message&&(F+=": "+this.message);return F};_.zhE=_.uu.JSON.parse;_.bb=_.uu.JSON.stringify;_.Iu=_.uu.JSON.parse;_.oqw=function(F){switch(F){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var nqd=function(F){switch(F){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var MAd,ThE=function(){};
_.gd(ThE,_.qVy);ThE.prototype.createInstance=function(){return new XMLHttpRequest};
MAd=new ThE;_.yO=function(F){_.xD.call(this);this.headers=new Map;this.JSC$9789_xmlHttpFactory_=F||null;this.JSC$9789_active_=!1;this.JSC$9789_xhr_=null;this.JSC$9789_lastUri_="";this.JSC$9789_lastErrorCode_=0;this.JSC$9789_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9789_timeoutId_=null;this.responseType_="";this.JSC$9789_withCredentials_=!1};
_.gd(_.yO,_.xD);var G0z=/^https?$/i,Dax=["POST","PUT"],W7C=[],Eco=function(F,q,t,u,J,g,Y){var Q=new _.yO;W7C.push(Q);q&&Q.listen("complete",q);Q.listenOnce("ready",Q.cleanupSend_);g&&(Q.timeoutInterval_=Math.max(0,g));Y&&(Q.JSC$9789_withCredentials_=Y);Q.send(F,t,u,J)};
_.yO.prototype.cleanupSend_=function(){this.dispose();_.yC(W7C,this)};
_.yO.prototype.send=function(F,q,t,u){if(this.JSC$9789_xhr_)throw Error("Aa`"+this.JSC$9789_lastUri_+"`"+F);q=q?q.toUpperCase():"GET";this.JSC$9789_lastUri_=F;this.JSC$9789_lastError_="";this.JSC$9789_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9789_active_=!0;this.JSC$9789_xhr_=this.createXhr();this.JSC$9789_xhr_.onreadystatechange=Ac((0,_.Pd)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9789_xhr_.open(q,String(F),!0),this.inOpen_=!1}catch(Y){OsE(this,Y);return}F=t||"";t=new Map(this.headers);
if(u)if(Object.getPrototypeOf(u)===Object.prototype)for(var J in u)t.set(J,u[J]);else if(typeof u.keys==="function"&&typeof u.get==="function"){J=_.X(u.keys());for(var g=J.next();!g.done;g=J.next())g=g.value,t.set(g,u.get(g))}else throw Error("Ba`"+String(u));u=Array.from(t.keys()).find(function(Y){return"content-type"==Y.toLowerCase()});
J=_.uu.FormData&&F instanceof _.uu.FormData;!_.bu(Dax,q)||u||J||t.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");q=_.X(t);for(u=q.next();!u.done;u=q.next())t=_.X(u.value),u=t.next().value,t=t.next().value,this.JSC$9789_xhr_.setRequestHeader(u,t);this.responseType_&&(this.JSC$9789_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9789_xhr_&&this.JSC$9789_xhr_.withCredentials!==this.JSC$9789_withCredentials_&&(this.JSC$9789_xhr_.withCredentials=this.JSC$9789_withCredentials_);
try{this.JSC$9789_timeoutId_&&(clearTimeout(this.JSC$9789_timeoutId_),this.JSC$9789_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9789_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9789_xhr_.send(F),this.inSend_=!1}catch(Y){OsE(this,Y)}};
_.yO.prototype.createXhr=function(){return this.JSC$9789_xmlHttpFactory_?this.JSC$9789_xmlHttpFactory_.createInstance():MAd.createInstance()};
_.yO.prototype.timeout_=function(){typeof Cku!="undefined"&&this.JSC$9789_xhr_&&(this.JSC$9789_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9789_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var OsE=function(F,q){F.JSC$9789_active_=!1;F.JSC$9789_xhr_&&(F.inAbort_=!0,F.JSC$9789_xhr_.abort(),F.inAbort_=!1);F.JSC$9789_lastError_=q;F.JSC$9789_lastErrorCode_=5;PQx(F);xaE(F)},PQx=function(F){F.errorDispatched_||(F.errorDispatched_=!0,F.dispatchEvent("complete"),F.dispatchEvent("error"))};
_.yO.prototype.abort=function(F){this.JSC$9789_xhr_&&this.JSC$9789_active_&&(this.JSC$9789_active_=!1,this.inAbort_=!0,this.JSC$9789_xhr_.abort(),this.inAbort_=!1,this.JSC$9789_lastErrorCode_=F||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),xaE(this))};
_.yO.prototype.disposeInternal=function(){this.JSC$9789_xhr_&&(this.JSC$9789_active_&&(this.JSC$9789_active_=!1,this.inAbort_=!0,this.JSC$9789_xhr_.abort(),this.inAbort_=!1),xaE(this,!0));_.yO.superClass_.disposeInternal.call(this)};
_.yO.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)AWL(this);else this.onReadyStateChangeEntryPoint_()};
_.yO.prototype.onReadyStateChangeEntryPoint_=function(){AWL(this)};
var AWL=function(F){if(F.JSC$9789_active_&&typeof Cku!="undefined")if(F.inSend_&&_.CQ(F)==4)setTimeout(F.onReadyStateChange_.bind(F),0);else if(F.dispatchEvent("readystatechange"),F.isComplete()){F.JSC$9789_active_=!1;try{if(F.isSuccess())F.dispatchEvent("complete"),F.dispatchEvent("success");else{F.JSC$9789_lastErrorCode_=6;try{var q=_.CQ(F)>2?F.JSC$9789_xhr_.statusText:""}catch(t){q=""}F.JSC$9789_lastError_=q+" ["+F.getStatus()+"]";PQx(F)}}finally{xaE(F)}}},xaE=function(F,q){if(F.JSC$9789_xhr_){F.JSC$9789_timeoutId_&&
(clearTimeout(F.JSC$9789_timeoutId_),F.JSC$9789_timeoutId_=null);
var t=F.JSC$9789_xhr_;F.JSC$9789_xhr_=null;q||F.dispatchEvent("ready");try{t.onreadystatechange=null}catch(u){}}};
_.yO.prototype.isActive=function(){return!!this.JSC$9789_xhr_};
_.yO.prototype.isComplete=function(){return _.CQ(this)==4};
_.yO.prototype.isSuccess=function(){var F=this.getStatus(),q;if(!(q=nqd(F))){if(F=F===0)F=$Dw(String(this.JSC$9789_lastUri_)),F=!G0z.test(F);q=F}return q};
_.CQ=function(F){return F.JSC$9789_xhr_?F.JSC$9789_xhr_.readyState:0};
_.l=_.yO.prototype;_.l.getStatus=function(){try{return _.CQ(this)>2?this.JSC$9789_xhr_.status:-1}catch(F){return-1}};
_.l.getResponseText=function(){try{return this.JSC$9789_xhr_?this.JSC$9789_xhr_.responseText:""}catch(F){return""}};
_.l.getResponse=function(){try{if(!this.JSC$9789_xhr_)return null;if("response"in this.JSC$9789_xhr_)return this.JSC$9789_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9789_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9789_xhr_)return this.JSC$9789_xhr_.mozResponseArrayBuffer}return null}catch(F){return null}};
_.l.getAllResponseHeaders=function(){return this.JSC$9789_xhr_&&_.CQ(this)>=2?this.JSC$9789_xhr_.getAllResponseHeaders()||"":""};
_.l.getLastError=function(){return typeof this.JSC$9789_lastError_==="string"?this.JSC$9789_lastError_:String(this.JSC$9789_lastError_)};var smu=function(){};
smu.prototype.send=function(F,q,t){q=q===void 0?function(){}:q;
t=t===void 0?function(){}:t;
Eco(F.url,function(u){u=u.target;u.isSuccess()?q(u.getResponseText()):t(u.getStatus())},F.requestType,F.body,F.requestHeaders,F.timeoutMillis,F.withCredentials)};
smu.prototype.getTransmissionType=function(){return 1};var vqe=function(F,q){this.dcC=F;this.event=q;this.startTime=z4()},Qmo;
vqe.prototype.done=function(){this.dcC.de(this.event,z4()-this.startTime)};
var dU=function(){RR.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.M(dU,RR);_.VO=function(F,q,t){var u=z4();q=q();F.de(t,z4()-u);return q};
Qmo=function(){dU.apply(this,arguments)};
_.M(Qmo,dU);_.l=Qmo.prototype;_.l.fjp=function(){};
_.l.iq=function(){};
_.l.de=function(){};
_.l.logError=function(){};
_.l.nq=function(){};
_.l.b46=function(){};
_.l.odH=function(){};
_.l.wUR=function(){};
var I4r=function(F){dU.call(this);var q=this;this.ju=F;this.TEST_ONLY={xII:function(){return q.ju},
getExperimentIds:function(){return q.ju.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void q.ju.dispose()})};
_.M(I4r,dU);_.l=I4r.prototype;_.l.update=function(F){this.ju.dispose();this.ju=F};
_.l.iq=function(F){this.ju.iq(F)};
_.l.de=function(F,q){this.ju.de(F,q)};
_.l.logError=function(F){this.ju.logError(F)};
_.l.nq=function(){this.ju.nq()};
_.l.b46=function(F){this.ju.b46(F)};
_.l.odH=function(F){this.ju.odH(F)};
_.l.wUR=function(F){this.ju.wUR(F)};
_.l.fjp=function(F){this.ju.fjp(F)};
var HsL=function(F,q){_.OP.call(this);var t=this;this.callback=F;this.oGi=q;this.loD=-q;this.addOnDisposeCallback(function(){return void clearTimeout(t.timer)})};
_.M(HsL,_.OP);var maC=function(F){if(F.timer===void 0){var q=Math.max(0,F.loD+F.oGi-z4());F.timer=setTimeout(function(){try{F.callback()}finally{F.loD=z4(),F.timer=void 0}},q)}},$ax=function(F,q){dU.call(this);
this.metrics=F;this.lu=q};
_.M($ax,dU);_.l=$ax.prototype;_.l.fjp=function(F){this.metrics.amC.record(F,this.lu)};
_.l.iq=function(F){this.metrics.eventCount.increment(F,this.lu)};
_.l.de=function(F,q){this.metrics.mJ7.record(q,F,this.lu)};
_.l.logError=function(F){this.metrics.errorCount.increment(F,this.lu)};
_.l.b46=function(F){this.metrics.kdy.increment(F,this.lu)};
_.l.odH=function(F){this.metrics.fR1.increment(F,this.lu)};
_.l.wUR=function(F){this.metrics.cJI.increment(F,this.lu)};
var eTq=function(F,q){q=q===void 0?[]:q;var t={lu:F.lu||"_",bJ9:F.bJ9||[],gku:F.gku|0,destinationUrl:F.destinationUrl,slE:F.slE||function(){},
x29:F.x29||function(g,Y){return pcf(g,Y,t.slE,t.destinationUrl)}},u=t.x29("51",t.bJ9.concat(q));
$ax.call(this,{amC:new k9E(u),errorCount:new nnw(u),eventCount:new zZz(u),mJ7:new onx(u),rcx:new EnO(u),kdy:new MOn(u),fR1:new T$1(u),cJI:new G9v(u)},t.lu);var J=this;this.TEST_ONLY={getExperimentIds:function(){return J.options.bJ9.concat(J.oji).sort(function(g,Y){return g-Y})}};
this.options=t;this.service=u;this.cWg=!F.x29;this.flushDebouncer=new HsL(function(){return void J.service.snapshotAndFlush()},t.gku);
this.addOnDisposeCallback(function(){J.flushDebouncer.dispose();J.cWg&&J.service.dispose()});
(this.oji=q.slice()).sort(_.DAv)};
_.M(eTq,$ax);eTq.prototype.nq=function(){maC(this.flushDebouncer)};var C3f=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(C3f,_.le);_.dfP=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(_.dfP,_.le);var hi=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F,0,hi.messageId)};
_.M(hi,_.le);var bse=_.CeW(hi);hi.messageId="bfkj";var $Mt=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M($Mt,_.le);var yWd=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(yWd,_.le);var CQj=_.oK(yWd);_.i1=function(){var F=this;this.promise=new Promise(function(q,t){F.resolve=q;F.reject=t})};_.Ur=function(F){_.OP.call(this);var q=this;this.iCQ=Math.floor(Math.random()*200);this.cV2=new yWd;if("challenge"in F&&bse(F.challenge)){var t=_.xB(F.challenge,4,void 0,Ov);var u=_.xB(F.challenge,5,void 0,Ov);_.xB(F.challenge,7,void 0,Ov)&&(this.cV2=CQj(_.xB(F.challenge,7,void 0,Ov)))}else t=F.program,u=F.globalName;this.addOnDisposeCallback(function(){var T,P,v;return _.p(function(H){if(H.nextAddress==1)return H.yield(q.mj6,2);T=H.yieldResult;P=T.vDD;(v=P)==null||v();_.WA(H)})});
this.fR=ZEv(F.kF9||{},this.cV2);_.kW(this,this.fR);var J=new _.i1;this.mj6=J.promise;this.fR.iq("t");var g=this.fR.share(),Y=new vqe(g,"t"),Q=function(T,P,v,H){if(!q.fR.isDisposed()){var d="k";P?d="h":v&&(d="u");d!=="k"?H!==0&&(q.fR.iq(d),q.fR.de(d,T)):q.iCQ<=0?(q.fR.iq(d),q.fR.de(d,T),q.iCQ=Math.floor(Math.random()*200)):q.iCQ--}},e=function(T,P,v,H){Promise.resolve().then(function(){Y.done();
g.nq();g.dispose();J.resolve({bzC:T,vDD:P,yBs:v,myw:H})})};
if(!_.uu[u])throw this.fR.logError(25),Error("Ca");if(!_.uu[u].a)throw this.fR.logError(26),Error("Da");try{var r=_.uu[u].a;u=[];for(var N=[],w=bIW(this.cV2),k=0;k<w.length;k++)u.push(w[k]),N.push(1);var z=yNW(this.cV2);for(w=0;w<z.length;w++)u.push(z[w]),N.push(2);this.zX1=_.X(r(t,e,!0,F.bKd,Q,[u,N],_.xB(this.cV2,5))).next().value;this.fD9=J.promise.then(function(){})}catch(T){throw this.fR.logError(28),T;
}};
_.M(_.Ur,_.OP);_.Ur.prototype.snapshot=function(F){if(this.isDisposed())throw Error("Ea");this.fR.iq("n");var q=this.fR.share();return this.mj6.then(function(t){var u=t.bzC;return new Promise(function(J){var g=new vqe(q,"n");u(function(Y){g.done();q.fjp(Y.length);q.nq();q.dispose();J(Y)},[F.m0,
F.eJp,F.kR7,F.yHQ])})})};
_.Ur.prototype.hI1=function(F){this.mj6.then(function(q){var t;(t=q.yBs)==null||t(F)})};
_.Ur.prototype.lq6=function(F,q){return this.mj6.then(function(t){var u;return(u=t.myw)==null?void 0:u(F,q,!1)})};
_.Ur.prototype.p3R=function(){return this.fR.share()};var dae=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(dae,_.le);var qeA=_.CeW(dae);var VAr=function(){this.promises={};this.rgF=null},UaL=function(){VAr.instance||(VAr.instance=new VAr);
return VAr.instance},hh1=function(F,q){return SFw(F,_.Yw(q,C3f,1,Ov),_.Yw(q,_.dfP,2,Ov),_.xB(q,3,void 0,Ov))},SFw=function(F,q,t,u){if(!q&&!t)return Promise.resolve();
if(!u)return iE_(q,t);var J;(J=F.promises)[u]||(J[u]=new Promise(function(g,Y){iE_(q,t).then(function(){F.rgF=u;g()},function(Q){delete F.promises[u];
Y(Q)})}));
return F.promises[u]};var K7n=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(K7n,_.le);var BhL=function(F,q){return _.Kw(F,1,q)},L7E=function(F,q){return _.Kw(F,2,q)};var Su=function(F){_.OP.call(this);var q=this;this.options=F;this.vl2=new _.i1;this.fD9=this.vl2.promise;this.jn2=new _.i1;this.b0T=1;this.mw2=new _.i1;this.yy1=[];this.eP4=F.eP4||function(){};
this.ek6=new I4r(ZEv(F.kF9||{}));f4O(this,F.mT,F.rN4,F.uU2,F.wQC,Object.assign({},a4z,F.vY9||{}));this.addOnDisposeCallback(function(){return void jVw(q)})};
_.M(Su,_.OP);Su.prototype.snapshot=function(F){var q=this;return _.p(function(t){switch(t.nextAddress){case 1:if(q.isDisposed())throw Error("Ea");if(q.bl||q.bUF){t.jumpTo(2);break}return t.yield(q.jn2.promise,2);case 2:if(!q.bl){t.jumpTo(4);break}return t.yield(q.bl.snapshot(F),5);case 5:return t.return(t.yieldResult);case 4:throw q.bUF;}})};
var cWz=function(F){var q;return _.p(function(t){if(F.isDisposed())throw Error("Ea");(q=F.dz)!=null&&(q.endTimeMs=0,q.resolver(1));return t.yield(F.mw2.promise,0)})},jVw=function(F){F.bUF=Error("Ga");
F.jn2.resolve();CnA(F.vl2.promise);F.vl2.reject(Error("Ga"));F.ek6.dispose();Promise.all(F.yy1).then(function(){var t;return _.p(function(u){(t=F.bl)==null||t.dispose();F.bl=void 0;_.WA(u)})});
F.yy1=[];var q;(q=F.dz)!=null&&(q.endTimeMs=0,q.resolver(1));CnA(F.mw2.promise);F.mw2.reject(Error("Ga"))};
Su.prototype.hI1=function(F){var q,t;(q=this.bl)==null||(t=q.hI1)==null||t.call(q,F)};
Su.prototype.lq6=function(F,q){var t,u,J;return(J=(t=this.bl)==null?void 0:(u=t.lq6)==null?void 0:u.call(t,F,q))!=null?J:Promise.resolve()};
var Fg1=function(F,q){var t=F.eP4;F.eP4=function(){t();q()}},qPn=function(F,q){F.isDisposed()||(F.bl=q,F.ek6.update(q.p3R()),F.jn2.resolve(),F.vl2.resolve(void 0),F.eP4())};
Su.prototype.handleError=function(F){if(!this.isDisposed()){this.bUF=F;this.jn2.resolve();var q,t;(t=(q=this.options).jB7)==null||t.call(q,F)}};
var trj=function(F,q){q&&(Promise.all(F.yy1).then(function(){return void q.dispose()}),F.yy1=[])},hc=function(F,q){F.b0T=q;
var t,u;(u=(t=F.options).rqI)==null||u.call(t,q)},uN1=function(F){F.isDisposed()||(F.mw2.resolve(),F.mw2=new _.i1)},f4O=function(F,q,t,u,J,g){u=u===void 0?UaL():u;
J=J===void 0?Promise.resolve(void 0):J;var Y,Q,e,r,N,w,k,z,T,P,v,H;_.p(function(d){switch(d.nextAddress){case 1:return d.yield(0,3);case 3:Q=null;if(!Y){d.jumpTo(6);break}hc(F,7);_.zg(d,7);return d.yield(G4(Y.snapshot({}),g.x7C,function(){return Promise.resolve("E:CTO")}),9);
case 9:Q=d.yieldResult;_.LE(d,6);break;case 7:_.Gg(d),Q="E:UCE";case 6:e=void 0,r=Y?g.lGi:g.crE,N=new ro(r,g.kBE,g.nz7,g.xuP),w=1;case 10:if(!(w<=g.maxAttempts)){d.jumpTo(12);break}if(w===1){d.jumpTo(13);break}hc(F,0);F.dz=new JGJ(N.getValue(),g.eQg,g.t1g);return d.yield(F.dz.promise,14);case 14:k=d.yieldResult,F.dz=void 0,k===1?(w=1,N.reset()):rKx(N);case 13:_.zg(d,15);z=void 0;if(t){z=t;d.jumpTo(17);break}hc(F,5);T=u.rgF;return d.yield(G4(sXv(q,T,Q),g.nJY,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:z=d.yieldResult;case 17:return hc(F,3),d.yield(G4(hh1(u,z),g.hqE,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return hc(F,8),d.yield(J,20);case 20:return P=new _.Ur({challenge:z,kF9:F.options.kF9,bKd:F.options.bKd}),d.yield(G4(P.fD9,g.drz,function(){return Promise.reject(Error("Ja"))}),21);
case 21:e=P;d.jumpTo(12);break;case 15:v=_.Gg(d),F.handleError(v),uN1(F);case 11:w++;d.jumpTo(10);break;case 12:if(F.isDisposed()){d.jumpTo(5);break}e&&(t=void 0,trj(F,Y),Y=e,qPn(F,e),uN1(F));hc(F,2);F.dz=new JGJ(g.s2i,g.eQg,g.t1g);return d.yield(F.dz.promise,22);case 22:F.dz=void 0;if(F.isDisposed()){d.jumpTo(5);break}d.jumpTo(3);break;case 5:(H=Y)==null||H.dispose(),_.WA(d)}})};
Su.prototype.p3R=function(){return this.ek6.share()};
var a4z={s2i:432E5,eQg:3E5,t1g:10,x7C:1E4,nJY:3E4,hqE:3E4,drz:6E4,crE:1E3,lGi:6E4,kBE:6E5,nz7:.25,xuP:2,maxAttempts:10},JGJ=function(F,q,t){var u=this;this.endTimeMs=Date.now()+F;this.promise=new Promise(function(g){u.resolver=g});
var J=function(){var g=u.endTimeMs-Date.now();g<=t?u.resolver(0):setTimeout(J,Math.min(g,q))};
J()};var gWe,zTC=(gWe=Math.imul)!=null?gWe:function(F,q){return F*q|0},DW=[196,
200,224,18],KQ=function(F,q,t){t=t===void 0?[]:t;this.maxItems=F;this.sz=q===void 0?0:q;this.oa=t},lWe=function(F){var q=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!q)return new KQ(F);var t=q.split(",");if(t.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new KQ(F);q=t.slice(1);q.length===1&&q[0]===""&&(q=[]);t=Number(t[0]);return isNaN(t)||t<0||t>q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new KQ(F)):new KQ(F,t,q)};
KQ.prototype.serialize=function(){return String(this.sz)+","+this.oa.join()};
KQ.prototype.insert=function(F,q){var t=void 0;if(this.oa[this.sz]!==F){var u=this.oa.indexOf(F);u!==-1?(this.oa.splice(u,1),u<this.sz&&this.sz--,this.oa.splice(this.sz,0,F)):(t=this.oa[this.sz],this.oa[this.sz]=F)}this.sz=(this.sz+1)%this.maxItems;F=kQM("iU5q-!O9@$",this.serialize());t&&F&&q(t);return F};
var XdO=function(F,q){this.iL1=q;try{var t=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(u){t=!1}t&&(this.index=lWe(F))},YPd=function(F,q,t,u,J){var g=F.index?_.VO(F.iL1,function(){return TN_(F.index,nEM(q),t,u,J)},"W"):"u";
F.iL1.wUR(g)},pdv=function(F,q,t){var u=_.X(F.index?_.VO(F.iL1,function(){return GQt(nEM(q),t)},"R"):["u"]),J=u.next().value;
u=u.next().value;F.iL1.odH(J);return u};var QXr={toString:function(F){var q=[],t=0;F-=-2147483648;q[t++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(F%52);for(F=Math.floor(F/52);F>0;)q[t++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(F%62),F=Math.floor(F/62);return q.join("")}};var RB1=function(F){F=eBe(F);for(var q=2654435769,t=2654435769,u=314159265,J=F.length,g=J,Y=0,Q=function(){q-=t;q-=u;q^=u>>>13;t-=u;t-=q;t^=q<<8;u-=q;u-=t;u^=t>>>13;q-=t;q-=u;q^=u>>>12;t-=u;t-=q;t^=q<<16;u-=q;u-=t;u^=t>>>5;q-=t;q-=u;q^=u>>>3;t-=u;t-=q;t^=q<<10;u-=q;u-=t;u^=t>>>15};g>=12;g-=12,Y+=12)q+=Zrr(F,Y),t+=Zrr(F,Y+4),u+=Zrr(F,Y+8),Q();
u+=J;switch(g){case 11:u+=F[Y+10]<<24;case 10:u+=F[Y+9]<<16;case 9:u+=F[Y+8]<<8;case 8:t+=F[Y+7]<<24;case 7:t+=F[Y+6]<<16;case 6:t+=F[Y+5]<<8;case 5:t+=F[Y+4];case 4:q+=F[Y+3]<<24;case 3:q+=F[Y+2]<<16;case 2:q+=F[Y+1]<<8;case 1:q+=F[Y]}Q();return QXr.toString(u)},eBe=function(F){for(var q=[],t=0;t<F.length;t++)q.push(F.charCodeAt(t));
return q},Zrr=function(F,q){return F[q]+(F[q+1]<<8)+(F[q+2]<<16)+(F[q+3]<<24)};var Br=function(F){_.OP.call(this);this.iL=F;this.fNq=new _.i1};
_.M(Br,_.OP);var rGO=function(F,q){var t=setTimeout(function(){F.fNq.resolve()},q);
F.addOnDisposeCallback(function(){return void clearTimeout(t)})};
Br.prototype.nqR=function(F,q){var t=this.nJ(F);q==null||q(t);return _.VO(this.iL,function(){return _.A9(t,2)},this.iEB)};
var Noj=function(F,q,t,u){return _.VO(F.iL,function(){return t?F.nqR(q,u):F.nJ(q,u)},F.aFF)},wdw=function(F,q,t,u){Br.call(this,F);
this.rSE=q;this.zCi=t;this.aFF="m";this.iEB="x";this.fZ7=0;rGO(this,u)};
_.M(wdw,Br);wdw.prototype.nJ=function(F,q){var t=this;this.iL.iq(this.aFF);++this.fZ7>=this.zCi&&this.fNq.resolve();var u=F();F=_.VO(this.iL,function(){return t.rSE(u)},"C");
if(F===void 0)throw new eu(17,"YNJ:Undefined");if(!(F instanceof Uint8Array))throw new eu(18,"ODM:Invalid");q==null||q(F);return F};
var irC=function(F,q,t){Br.call(this,F);this.lp1=q;this.aFF="f";this.iEB="z";rGO(this,t)};
_.M(irC,Br);irC.prototype.nJ=function(){return this.lp1};
var k4O=function(F,q,t){Br.call(this,F);this.nCi=q;this.aFF="w";this.iEB="z";rGO(this,t)};
_.M(k4O,Br);k4O.prototype.nJ=function(){var F=this;return _.VO(this.iL,function(){return _.f3(F.nCi)},"d")};
k4O.prototype.nqR=function(){return this.nCi};
var EWf=function(F,q){Br.call(this,F);this.error=q;this.aFF="e";this.iEB="y"};
_.M(EWf,Br);var zBe=function(F,q){var t=(q(F.error.message)+":"+q(F.error.stack)).substring(0,2048);q=t.length+1;t=Dhu(t);var u=new Uint8Array(4+t.length);u.set([42,q&127|128,q>>7,F.error.code]);u.set(t,4);return u};
EWf.prototype.nJ=function(){if(this.tPF)return this.tPF;this.tPF=zBe(this,function(F){return"_"+RB1(F)});
return zBe(this,function(F){return F})};
var oWO=function(F,q,t){Br.call(this,F);this.uod=q;this.clientState=t;this.aFF="S";this.iEB="q"};
_.M(oWO,Br);oWO.prototype.nJ=function(){var F=Math.floor(Date.now()/1E3),q=[Math.random()*255,Math.random()*255],t=q.concat([this.uod&255,this.clientState],[F>>24&255,F>>16&255,F>>8&255,F&255]);F=new Uint8Array(2+t.length);F[0]=34;F[1]=t.length;F.set(t,2);t=F.subarray(2);for(var u=q=q.length;u<t.length;++u)t[u]^=t[u%q];this.iL.b46(this.clientState);return F};var nWO={hNC:3E4,h9x:2E4},LQ=function(F){_.OP.call(this);var q=this;this.pd9=new _.i1;this.re1=0;this.gD=void 0;this.state=2;this.vm=F.vm;this.mT=F.mT;this.vY9=Object.assign({},nWO,F.vY9||{});this.ka=F.vm.p3R();var t;this.onError=(t=F.onError)!=null?t:function(){};
this.zEf=F.zEf||!1;if(Mrn(F)){var u=this.vm;this.kX2=function(){return cWz(u).catch(function(Y){Y=q.reportError(new eu(q.qw?20:32,"TRG:Disposed",Y));q.gD=Y;var Q;(Q=q.qw)==null||Q.dispose();q.qw=void 0;q.pd9.reject(Y)})};
Fg1(u,function(){return void ToE(q)});
u.b0T===2&&ToE(this)}else this.kX2=F.e0h,ToE(this);var J=this.ka.share();J.iq("o");var g=new vqe(J,"o");this.pd9.promise.then(function(){g.done();J.nq();J.dispose()},function(){return void J.dispose()});
this.addOnDisposeCallback(function(){q.qw?(q.qw.dispose(),q.qw=void 0):q.gD?q.ka.nq():(q.gD=q.reportError(new eu(32,"TNP:Disposed")),q.ka.nq(),q.pd9.reject(q.gD))});
_.kW(this,this.ka)};
_.M(LQ,_.OP);LQ.prototype.wIF=function(){return this.pd9.promise};
var G4r=function(F,q){if(!(q instanceof eu))if(q instanceof _.$D){var t=Error(q.toString());t.stack=q.stack;q=new eu(11,"EBH:Error",t)}else q=new eu(12,"BSO:Unknown",q);return F.reportError(q)},ToE=function(F){var q,t,u,J,g,Y,Q,e,r,N,w,k,z,T,P;
return _.p(function(v){switch(v.nextAddress){case 1:q=void 0;F.re1++;t=new _.i1;F.vm instanceof Su&&F.vm.yy1.push(t.promise);if(!F.zEf){v.jumpTo(2);break}u=new _.i1;setTimeout(function(){return void u.resolve()});
return v.yield(u.promise,2);case 2:return J=F.ka.share(),_.zg(v,4,5),F.state=5,g={},Y=[],v.yield(G4(F.vm.snapshot({m0:g,kR7:Y}),F.vY9.h9x,function(){return Promise.reject(new eu(15,"MDA:Timeout"))}),7);
case 7:Q=v.yieldResult;if(F.isDisposed())throw new eu(F.qw?20:32,"MDA:Disposed");e=Y[0];F.state=6;return v.yield(G4(Dqj(F.mT,Q),F.vY9.hNC,function(){return Promise.reject(new eu(10,"BWB:Timeout"))}),8);
case 8:r=v.yieldResult;if(F.isDisposed())throw new eu(F.qw?20:32,"BWB:Disposed");F.state=7;q=_.VO(J,function(){var d=WgO(F,r,t,e);d.fNq.promise.then(function(){return void F.kX2()});
return d},"i");
case 5:_.n6(v);J.dispose();_.Tg(v,6);break;case 4:N=_.Gg(v);(w=q)==null||w.dispose();if(!F.gD){k=G4r(F,N);t.resolve();var H;if(H=F.vm instanceof Su&&F.re1<2)a:if(N instanceof eu)H=N.code!==32&&N.code!==20&&N.code!==10;else{if(N instanceof _.$D)switch(N.code){case 2:case 13:case 14:case 4:break;default:H=!1;break a}H=!0}if(H)return z=(1+Math.random()*.25)*(F.qw?6E4:1E3),T=setTimeout(function(){return void F.kX2()},z),F.addOnDisposeCallback(function(){return void clearTimeout(T)}),v.return();
F.gD=k}J.logError(F.qw?13:14);F.pd9.reject(F.gD);return v.return();case 6:F.state=8,F.re1=0,(P=F.qw)==null||P.dispose(),F.qw=q,F.pd9.resolve(),_.WA(v)}})},WgO=function(F,q,t,u){var J=X03(q,2)*1E3;
if(J<=0)throw new eu(31,"TTM:Invalid");if(_.xB(q,4))return new k4O(F.ka,_.xB(q,4),J);if(!X03(q,3))return new irC(F.ka,SjW(_.oC(q,1)),J);if(!u)throw new eu(4,"PMD:Undefined");u=u(SjW(_.oC(q,1)));if(!(u instanceof Function))throw new eu(16,"APF:Failed");F.azO=Math.floor((Date.now()+J)/1E3);F=new wdw(F.ka,u,X03(q,3),J);F.addOnDisposeCallback(function(){return void t.resolve()});
return F};
LQ.prototype.nJ=function(F){return OrJ(this,Object.assign({},F),!1)};
LQ.prototype.nqR=function(F){return OrJ(this,Object.assign({},F),!0)};
LQ.prototype.x5Q=function(F){if(F>150)return!1;try{return this.cache=new XdO(F,this.ka),!0}catch(q){return this.reportError(new eu(22,"GBJ:init",q)),!1}};
LQ.prototype.reportError=function(F){this.ka.logError(F.code);this.onError(F);return F};
var PaJ=function(F,q){q=q instanceof eu?q:new eu(5,"TVD:error",q);return F.reportError(q)},OrJ=function(F,q,t){try{if(F.isDisposed())throw new eu(21,"BNT:disposed");
if(!F.qw&&F.gD)throw F.gD;var u,J;return(J=(u=xqE(F,q,t))!=null?u:AGL(F,q,t))!=null?J:vWw(F,q,t)}catch(g){if(!q.dZF)throw PaJ(F,g);return IWw(F,t,g)}},xqE=function(F,q,t){var u;
return(u=F.qw)==null?void 0:Noj(u,function(){return Hrz(F,q)},t,function(J){var g;
if(F.qw instanceof wdw&&((g=q.jG)==null?0:g.ygi))try{var Y;(Y=F.cache)==null||YPd(Y,Hrz(F,q),J,q.jG.pq6,F.azO-120)}catch(Q){F.reportError(new eu(24,"ELX:write",Q))}})},AGL=function(F,q,t){var u;
if((u=q.jG)!=null&&u.wgu)try{var J,g=(J=F.cache)==null?void 0:pdv(J,Hrz(F,q),q.jG.pq6);return g?t?_.VO(F.ka,function(){return _.A9(g,2)},"a"):g:void 0}catch(Y){F.reportError(new eu(23,"RXO:read",Y))}},vWw=function(F,q,t){var u={stack:[],
error:void 0,hasError:!1};try{if(!q.t1F)throw new eu(29,"SDF:notready");return Noj(Kfo(u,new oWO(F.ka,0,F.state)),function(){return Hrz(F,q)},t)}catch(J){u.error=J,u.hasError=!0}finally{BMy(u)}},IWw=function(F,q,t){var u={stack:[],
error:void 0,hasError:!1};try{var J=PaJ(F,t);return Noj(Kfo(u,new EWf(F.ka,J)),function(){return[]},q)}catch(g){u.error=g,u.hasError=!0}finally{BMy(u)}},Hrz=function(F,q){return q.xC1?q.xC1:q.m0?_.VO(F.ka,function(){return q.xC1=Dhu(q.m0)},"c"):[]},Mrn=function(F){return AE(function(q){if(!X6(q))return!1;
for(var t=_.X(Object.entries(F)),u=t.next();!u.done;u=t.next()){var J=_.X(u.value);u=J.next().value;J=J.next().value;if(!(u in q)){if(J.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!J(q[u]))return!1}return!0})}({vm:function(F){return AE(function(q){return q instanceof F})}(Su)},"");var mqO=function(){var F=_.Rb();this.JSC$9907_streamzService=F;F.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",QS("cookie_enabled"),QS("cookie_3p_enabled"),_.ZW("browser"))};
mqO.prototype.increment=function(F,q,t){this.JSC$9907_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",F,q,t)};
var IEo=function(){var F=_.Rb();this.JSC$9931_streamzService=F;F.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",er("tick"),QS("from_st_cookie"))};
IEo.prototype.increment=function(F,q){this.JSC$9931_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",F,q)};
var $qC=function(){var F=_.Rb();this.JSC$9937_streamzService=F;F.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.ZW("status"))};
$qC.prototype.increment=function(F){this.JSC$9937_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",F)};
var brd=function(){var F=_.Rb();this.JSC$9940_streamzService=F;F.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.ZW("stage"),QS("is_using_ytd_player"),QS("has_expandable_tiles"))};
brd.prototype.increment=function(F,q,t){this.JSC$9940_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",F,q,t)};
var yGj=function(){var F=_.Rb();this.JSC$9943_streamzService=F;F.addNewCounter("/client_streamz/youtube/web/response_signature",_.ZW("check_status"))};
yGj.prototype.increment=function(F){this.JSC$9943_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/web/response_signature",F)};
var CaC=function(){var F=_.Rb();this.JSC$9946_streamzService=F;F.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.ZW("sig"),er("de"))};
CaC.prototype.increment=function(F,q){this.JSC$9946_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/web/e_sig_log",F,q)};
var dqe=function(){var F=_.Rb();this.JSC$9949_streamzService=F;F.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.ZW("sig"),er("de"))};
dqe.prototype.increment=function(F,q){this.JSC$9949_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/web/e_sig_en",F,q)};
_.Vrr=function(){var F=_.Rb();this.JSC$9952_streamzService=F;F.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.ZW("action"))};
_.Vrr.prototype.increment=function(F){this.JSC$9952_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/web/enforcement_intent",F)};var fQ=window;var UqE=(new Date).getTime();_.m7.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.m7.createSet("action","cite","data","formaction","href","manifest","poster","src");var SPd=function(F){this.servicePromise_=F;F.then((0,_.Pd)(function(){},this),function(){},this)},hBr=function(F,q,t){F.servicePromise_.then(function(u){var J=u[q];
if(!J)throw Error("Ka`"+q);return J.apply(u,t)})},Lgv=function(F,q,t){for(var u=Array(arguments.length-2),J=2;J<arguments.length;J++)u[J-2]=arguments[J];
J=KgJ(F,q).then(function(g){return g.apply(null,u)},function(g){g=Error("La`"+q+"`"+F,{cause:g});
delete Boe[q];return _.mW(g)});
return new SPd(J)},Boe={},KgJ=function(F,q){var t=Boe[q];
if(t)return t;t=(t=_.S6(q))?_.NU(t):(new _.iz(function(u,J){var g=(new A$(document)).createElement("SCRIPT");g.async=!0;_.uF(g,_.OS(UnL(F)));g.onload=g.onreadystatechange=function(){g.readyState&&g.readyState!="loaded"&&g.readyState!="complete"||u()};
g.onerror=function(Y){J(Error("Ma`"+q+"`"+F,{cause:Y}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(g)})).then(function(){var u=_.S6(q);
if(!u)throw Error("Na`"+q+"`"+F);return u});
return Boe[q]=t};var fWd={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},jXj=function(){var F=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=Why(function(){return _.p(function(q){if(q.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?q.return(Promise.resolve()):q.yield(aWx(F),2);F.rsaForList.length>
0&&document.addEventListener("click",F.requestAccessForHelpPanel);_.WA(q)})});
this.requestAccessForHelpPanel=function(){if(!(F.rsaForPromises.length>0)){for(var q=_.X(F.rsaForList),t=q.next();!t.done;t=q.next()){t=t.value;try{F.rsaForPromises.push(document.requestStorageAccessFor(t))}catch(u){}}Promise.all(F.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){F.reset()})}}};
jXj.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var aWx=function(F){var q,t,u,J;return _.p(function(g){switch(g.nextAddress){case 1:q=_.X(Object.values(fWd)),t=q.next();case 2:if(t.done){g.jumpTo(0);break}u=t.value;_.zg(g,5);return g.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:u}),7);case 7:J=g.yieldResult;J.state!=="granted"&&F.rsaForList.push(u);_.LE(g,3);break;case 5:_.Gg(g);g.jumpTo(0);break;case 3:t=q.next(),g.jumpTo(2)}})};(new jXj).initialize();var cGd=function(F){this.JSC$9966_loader_=F};
cGd.prototype.startHelp=function(F){hBr(this.JSC$9966_loader_,"startHelp",arguments)};
cGd.prototype.JSC$9968_loadChatSupport=function(F){hBr(this.JSC$9966_loader_,"loadChatSupport",arguments)};
var qdj=function(F,q){q=q||{};F=Lgv(F1v,"help.service.Lazy.create",F,{apiKey:q.apiKey||q.apiKey,asxUiUri:q.asxUiUri||q.asxUiUri,environment:q.environment||q.environment,flow:q.flow||q.flow,frdProductData:q.frdProductData||q.frdProductData,frdProductDataSerializedJspb:q.frdProductDataSerializedJspb||q.frdProductDataSerializedJspb,helpCenterPath:q.helpCenterPath||q.helpCenterPath,locale:q.locale||q.locale||"en-US".replace(/-/g,"_"),nonce:q.nonce||q.nonce,productData:q.productData||q.productData,receiverUri:q.receiverUri||
q.receiverUri,renderApiUri:q.renderApiUri||q.renderApiUri,theme:q.theme||q.theme,window:q.window||q.window});return new cGd(F)},F1v=new CM(DZ_,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var ttv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ttv,_.le);var u6r=_.oK(ttv);var JOv=[0,_.Fh,Bi,fao];_.svO=new function(F,q,t,u){this.configType=F;this.flagName=t;this.defaultValue=u;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 lVv=function(){this.retriever=_.sV().resolve(gR1)};PKP(Node);PKP(Element);var XjJ=PKP(HTMLElement);PKP(SVGElement);var Ydv,pjf,cr,QvE;Ydv=function(F){return typeof F.className=="string"?F.className:F.getAttribute&&F.getAttribute("class")||""};
pjf=function(F){return F.classList?F.classList:Ydv(F).match(/\S+/g)||[]};
_.aR=function(F,q){typeof F.className=="string"?F.className=q:F.setAttribute&&F.setAttribute("class",q)};
_.ju=function(F,q){return F.classList?F.classList.contains(q):_.bu(pjf(F),q)};
_.gC=function(F,q){if(F.classList)F.classList.add(q);else if(!_.ju(F,q)){var t=Ydv(F);_.aR(F,t+(t.length>0?" "+q:q))}};
cr=function(F,q){if(F.classList)Array.prototype.forEach.call(q,function(J){_.gC(F,J)});
else{var t={};Array.prototype.forEach.call(pjf(F),function(J){t[J]=!0});
Array.prototype.forEach.call(q,function(J){t[J]=!0});
q="";for(var u in t)q+=q.length>0?" "+u:u;_.aR(F,q)}};
_.JT=function(F,q){F.classList?F.classList.remove(q):_.ju(F,q)&&_.aR(F,Array.prototype.filter.call(pjf(F),function(t){return t!=q}).join(" "))};
QvE=function(F,q){F.classList?Array.prototype.forEach.call(q,function(t){_.JT(F,t)}):_.aR(F,Array.prototype.filter.call(pjf(F),function(t){return!_.bu(q,t)}).join(" "))};var e4v=function(F){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=F.document},rOL=function(F,q){Zqr(F);
var t=document.createElement("div"),u;(u=q.parentNode)==null||u.insertBefore(t,q);t.tabIndex=0;t.id="fc-focus-trap-pre-div";t=document.createElement("div");var J;(J=q.parentNode)==null||J.insertBefore(t,q.nextSibling);t.tabIndex=0;t.id="fc-focus-trap-post-div";var g=R4n(F,q),Y=R4n(F,q,!0);g&&Y&&(F.focusChangeHandler=function(){var Q=F.document.activeElement;if(Q)if(_.hG(q,Q))F.previouslyFocusedElement=Q;else if(Q===F.document.activeElement)switch(F.previouslyFocusedElement){case g:Y.focus();F.previouslyFocusedElement=
Y;break;default:g.focus(),F.previouslyFocusedElement=g}},F.document.addEventListener("focus",F.focusChangeHandler,!0),F.document.addEventListener("focusin",F.focusChangeHandler))},Zqr=function(F){F.focusChangeHandler&&(document.removeEventListener("focus",F.focusChangeHandler,!0),document.removeEventListener("focusin",F.focusChangeHandler),F.focusChangeHandler=null);
var q;(q=document.getElementById("fc-focus-trap-pre-div"))==null||q.remove();var t;(t=document.getElementById("fc-focus-trap-post-div"))==null||t.remove()},NPO=function(F,q,t,u,J){t=t===void 0?!0:t;
var g;J=(g=J===void 0?null:J)!=null?g:R4n(F,q,u===void 0?!1:u);J!==null&&(J.focus(),t&&rOL(F,q))};
e4v.prototype.disableButton=function(F,q){q=q===void 0?null:q;F.disabled=!0;q&&_.gC(F,q)};
var R4n=function(F,q,t){t=t===void 0?!1:t;if(KWW(q)&&!t)return q;var u=t?[].slice.call(q.children,0).reverse():q.children;u=_.X(u);for(var J=u.next();!J.done;J=u.next())if(J=J.value,XjJ(J)&&(J=R4n(F,J,t)))return J;return KWW(q)&&t?q:null};var wjd=function(F){this.originalBodyOverflow="";this.JSC$9992_domHelper=Wn(F)};
wjd.prototype.enableScrolling=function(){this.JSC$9992_domHelper.JSC$9319_document_.body.style.overflow=this.originalBodyOverflow};_.gd(_.xW,_.OP);_.l=_.xW.prototype;_.l.JSC$9995_id_=0;_.l.disposeInternal=function(){_.xW.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9993_listener_;delete this.handler_};
_.l.start=function(F){this.stop();this.JSC$9995_id_=mX(this.callback_,F!==void 0?F:this.JSC$9993_interval_)};
_.l.stop=function(){this.isActive()&&_.uu.clearTimeout(this.JSC$9995_id_);this.JSC$9995_id_=0};
_.l.fire=function(){this.stop();this.JSC$9995_doAction_()};
_.l.isActive=function(){return this.JSC$9995_id_!=0};
_.l.JSC$9995_doAction_=function(){this.JSC$9995_id_=0;this.JSC$9993_listener_&&this.JSC$9993_listener_.call(this.handler_)};_.Qb=function(F){_.OP.call(this);this.handler_=F;this.JSC$9996_keys_={}};
_.gd(_.Qb,_.OP);var iqe=[];_.Qb.prototype.listen=function(F,q,t,u){Array.isArray(q)||(q&&(iqe[0]=q.toString()),q=iqe);for(var J=0;J<q.length;J++){var g=_.Ic(F,q[J],t||this.handleEvent,u||!1,this.handler_||this);if(!g)break;this.JSC$9996_keys_[g.key]=g}return this};
_.Qb.prototype.listenOnce=function(F,q,t,u){return kyC(this,F,q,t,u)};
var kyC=function(F,q,t,u,J,g){if(Array.isArray(t))for(var Y=0;Y<t.length;Y++)kyC(F,q,t[Y],u,J,g);else{q=P9(q,t,u||F.handleEvent,J,g||F.handler_||F);if(!q)return F;F.JSC$9996_keys_[q.key]=q}return F};
_.Qb.prototype.unlisten=function(F,q,t,u,J){if(Array.isArray(q))for(var g=0;g<q.length;g++)this.unlisten(F,q[g],t,u,J);else if(F=VSL(F,q,t||this.handleEvent,_.ho(u)?!!u.capture:!!u,J||this.handler_||this))xb(F),delete this.JSC$9996_keys_[F.key];return this};
_.Qb.prototype.removeAll=function(){_.m7.forEach(this.JSC$9996_keys_,function(F,q){this.JSC$9996_keys_.hasOwnProperty(q)&&xb(F)},this);
this.JSC$9996_keys_={}};
_.Qb.prototype.disposeInternal=function(){_.Qb.superClass_.disposeInternal.call(this);this.removeAll()};
_.Qb.prototype.handleEvent=function(){throw Error("Oa");};var Fz=function(){_.OP.call(this);this.services_={}};
_.gd(Fz,_.OP);Fz.prototype.connect=function(F){F&&F()};
Fz.prototype.isConnected=function(){return!0};
Fz.prototype.registerService=function(F,q,t){this.services_[F]={callback:q,objectPayload:!!t}};
Fz.prototype.getService=function(F,q){var t=this.services_[F];return t?t:this.defaultService_?{callback:_.MU(this.defaultService_,F),objectPayload:_.ho(q)}:null};
var ERr=function(F,q){if(q&&typeof F==="string")try{return JSON.parse(F)}catch(t){return null}else if(!q&&typeof F!=="string")return(0,_.bb)(F);return F};
Fz.prototype.disposeInternal=function(){Fz.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 qV=function(F,q){this.sequence_=[];this.onCancelFunction_=F;this.defaultScope_=q||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};
qV.prototype.cancel=function(F){if(this.fired_)this.result_ instanceof qV&&this.result_.cancel();else{if(this.parent_){var q=this.parent_;delete this.parent_;F?q.cancel(F):(q.branches_--,q.branches_<=0&&q.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new tk(this))}};
qV.prototype.continue_=function(F,q){this.blocked_=!1;z4v(this,F,q)};
var z4v=function(F,q,t){F.fired_=!0;F.result_=t;F.hadError_=!q;oRe(F)},Mtw=function(F){if(F.fired_){if(!F.silentlyCanceled_)throw new nRe(F);
F.silentlyCanceled_=!1}};
qV.prototype.callback=function(F){Mtw(this);z4v(this,!0,F)};
qV.prototype.errback=function(F){Mtw(this);z4v(this,!1,F)};
var TPC=function(F,q,t){ui(F,q,null,t)};
qV.prototype.finally=function(F){var q=this;return Gye(new Promise(function(t,u){ui(q,function(J){F();t(J)},function(J){F();
u(J)})}))};
var ui=function(F,q,t,u){var J=F.fired_;J||(q===t?q=t=Ac(q):(q=Ac(q),t=Ac(t)));F.sequence_.push([q,t,u]);J&&oRe(F)};
qV.prototype.then=function(F,q,t){var u,J,g=new _.iz(function(Y,Q){J=Y;u=Q});
ui(this,J,function(Y){Y instanceof tk?g.cancel():u(Y);return D3w},this);
return g.then(F,q,t)};
aoC(qV);var W1E=function(F,q){q instanceof qV?TPC(F,(0,_.Pd)(q.branch,q)):TPC(F,function(){return q})};
qV.prototype.branch=function(F){var q=new qV;ui(this,q.callback,q.errback,q);F&&(q.parent_=this,this.branches_++);return q};
qV.prototype.isError=function(F){return F instanceof Error};
var OqJ=function(F){return ae(F.sequence_,function(q){return typeof q[1]==="function"})},D3w={},oRe=function(F){if(F.unhandledErrorId_&&F.fired_&&OqJ(F)){var q=F.unhandledErrorId_,t=P5J[q];
t&&(_.uu.clearTimeout(t.JSC$10013_id_),delete P5J[q]);F.unhandledErrorId_=0}F.parent_&&(F.parent_.branches_--,delete F.parent_);q=F.result_;for(var u=t=!1;F.sequence_.length&&!F.blocked_;){var J=F.sequence_.shift(),g=J[0],Y=J[1];J=J[2];if(g=F.hadError_?Y:g)try{var Q=g.call(J||F.defaultScope_,q);Q===D3w&&(Q=void 0);Q!==void 0&&(F.hadError_=F.hadError_&&(Q==q||F.isError(Q)),F.result_=q=Q);if(j2f(q)||typeof _.uu.Promise==="function"&&q instanceof _.uu.Promise)u=!0,F.blocked_=!0}catch(e){q=e,F.hadError_=
!0,OqJ(F)||(t=!0)}}F.result_=q;u&&(Q=(0,_.Pd)(F.continue_,F,!0),u=(0,_.Pd)(F.continue_,F,!1),q instanceof qV?(ui(q,Q,u),q.blocking_=!0):q.then(Q,u));t&&(q=new x31(q),P5J[q.JSC$10013_id_]=q,F.unhandledErrorId_=q.JSC$10013_id_)},Gye=function(F){var q=new qV;
F.then(function(t){q.callback(t)},function(t){q.errback(t)});
return q},nRe=function(){_.Fq.call(this)};
_.gd(nRe,_.Fq);nRe.prototype.message="Deferred has already fired";nRe.prototype.name="AlreadyCalledError";var tk=function(){_.Fq.call(this)};
_.gd(tk,_.Fq);tk.prototype.message="Deferred was canceled";tk.prototype.name="CanceledError";var x31=function(F){this.JSC$10013_id_=_.uu.setTimeout((0,_.Pd)(this.throwError,this),0);this.JSC$10013_error_=F};
x31.prototype.throwError=function(){delete P5J[this.JSC$10013_id_];throw this.JSC$10013_error_;};
var P5J={};var AOd={1:"NativeMessagingTransport"},vRv=["pu","lru","pru","lpu","ppu"],HqL=function(){for(var F=10,q=IVv,t=q.length,u="";F-- >0;)u+=q.charAt(Math.floor(Math.random()*t));return u},IVv="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Jk=function(F){_.OP.call(this);this.JSC$10016_domHelper_=F||Wn()};
_.gd(Jk,_.OP);Jk.prototype.transportType=0;Jk.prototype.getWindow=function(){return this.JSC$10016_domHelper_.getWindow()};
Jk.prototype.getName=function(){return AOd[String(this.transportType)]||""};var s5=function(F,q,t,u,J){Jk.call(this,t);this.JSC$10019_channel_=F;this.protocolVersion_=J||2;this.peerHostname_=q||"*";this.JSC$10019_eventHandler_=new _.Qb(this);this.maybeAttemptToConnectTimer_=new _.pB(100,this.getWindow());this.oneSidedHandshake_=!!u;this.setupAckReceived_=new qV;this.setupAckSent_=new qV;this.JSC$10019_connected_=new qV;this.endpointId_=HqL();this.peerEndpointId_=null;this.oneSidedHandshake_?m3v(this.JSC$10019_channel_)==1?W1E(this.JSC$10019_connected_,this.setupAckReceived_):
W1E(this.JSC$10019_connected_,this.setupAckSent_):(W1E(this.JSC$10019_connected_,this.setupAckReceived_),this.protocolVersion_==2&&W1E(this.JSC$10019_connected_,this.setupAckSent_));TPC(this.JSC$10019_connected_,this.notifyConnected_,this);this.JSC$10019_connected_.callback(!0);this.JSC$10019_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.gd(s5,Jk);s5.prototype.peerProtocolVersion_=null;s5.prototype.initialized_=!1;s5.prototype.transportType=1;var $3J={};s5.prototype.sendTimerId_=0;
var C5x=function(F){var q=F.event_.data;if(typeof q!=="string")return!1;var t=q.indexOf("|"),u=q.indexOf(":");if(t==-1||u==-1)return!1;var J=q.substring(0,t);t=q.substring(t+1,u);q=q.substring(u+1);if(u=g3[J])return u.xpcDeliver(t,q,F.event_.origin),!0;u=bqC(q)[0];for(var g in g3){var Y=g3[g];if(m3v(Y)==1&&!Y.isConnected()&&t=="tp"&&(u=="SETUP"||u=="SETUP_NTPV2")&&yOf(Y,F.event_.origin))return delete g3[Y.name],Y.name=J,g3[J]=Y,Y.xpcDeliver(t,q),!0}return!1},d3z=function(F){F.protocolVersion_!=2||
F.peerProtocolVersion_!=null&&F.peerProtocolVersion_!=2||F.send("tp","SETUP_NTPV2,"+F.endpointId_);
F.peerProtocolVersion_!=null&&F.peerProtocolVersion_!=1||F.send("tp","SETUP")},Vtn=function(F,q){if(F.protocolVersion_!=2||F.peerProtocolVersion_!=null&&F.peerProtocolVersion_!=2||q!=2){if(F.peerProtocolVersion_!=null&&F.peerProtocolVersion_!=1||q!=1)return;
F.send("tp","SETUP_ACK")}else F.send("tp","SETUP_ACK_NTPV2");F.setupAckSent_.fired_||F.setupAckSent_.callback(!0)},U3e=function(F,q){q>F.peerProtocolVersion_&&(F.peerProtocolVersion_=q);
F.peerProtocolVersion_==1&&(F.setupAckSent_.fired_||F.oneSidedHandshake_||F.setupAckSent_.callback(!0),F.peerEndpointId_=null)};
_.l=s5.prototype;_.l.connect=function(){var F=this.getWindow(),q=_.K3(F),t=$3J[q];typeof t!=="number"&&(t=0);t==0&&_.Ic(F.postMessage?F:F.document,"message",C5x,!1,s5);$3J[q]=t+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.l.maybeAttemptToConnect_=function(){var F=m3v(this.JSC$10019_channel_)==0;this.oneSidedHandshake_&&F||this.JSC$10019_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),d3z(this))};
_.l.send=function(F,q){var t=this.JSC$10019_channel_.peerWindowObject_;t&&(this.send=function(u,J){var g=this,Y=this.JSC$10019_channel_.name;this.sendTimerId_=mX(function(){g.sendTimerId_=0;try{var Q=t.postMessage?t:t.document;Q.postMessage&&Q.postMessage(Y+"|"+u+":"+J,g.peerHostname_)}catch(e){}},0)},this.send(F,q))};
_.l.notifyConnected_=function(){var F=this.JSC$10019_channel_,q=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;F.isConnected()||F.connectionDelay_&&F.connectionDelay_.isActive()||(F.state_=2,_.sP(F.connectionDelay_),q!==void 0?(F.connectionDelay_=new _.xW(F.connectCb_,q),F.connectionDelay_.start()):(F.connectionDelay_=null,F.connectCb_()))};
_.l.disposeInternal=function(){if(this.initialized_){var F=this.getWindow(),q=_.K3(F),t=$3J[q];$3J[q]=t-1;t==1&&_.Pr(F.postMessage?F:F.document,"message",C5x,!1,s5)}this.sendTimerId_&&(_.uu.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.sP(this.JSC$10019_eventHandler_);delete this.JSC$10019_eventHandler_;_.sP(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10019_connected_.cancel();delete this.JSC$10019_connected_;delete this.send;s5.superClass_.disposeInternal.call(this)};
var bqC=function(F){F=F.split(",");F[1]=F[1]||null;return F};var h4z;_.li=function(F){if(F.getValues&&typeof F.getValues=="function")return F.getValues();if(typeof Map!=="undefined"&&F instanceof Map||typeof Set!=="undefined"&&F instanceof Set)return Array.from(F.values());if(typeof F==="string")return F.split("");if(_.VC(F)){for(var q=[],t=F.length,u=0;u<t;u++)q.push(F[u]);return q}return _.m7.getValues(F)};
_.Sdx=function(F){if(F.getKeys&&typeof F.getKeys=="function")return F.getKeys();if(!F.getValues||typeof F.getValues!="function"){if(typeof Map!=="undefined"&&F instanceof Map)return Array.from(F.keys());if(!(typeof Set!=="undefined"&&F instanceof Set)){if(_.VC(F)||typeof F==="string"){var q=[];F=F.length;for(var t=0;t<F;t++)q.push(t);return q}return _.m7.getKeys(F)}}};
h4z=function(F,q,t){if(F.forEach&&typeof F.forEach=="function")F.forEach(q,t);else if(_.VC(F)||typeof F==="string")Array.prototype.forEach.call(F,q,t);else for(var u=_.Sdx(F),J=_.li(F),g=J.length,Y=0;Y<g;Y++)q.call(t,J[Y],u&&u[Y],F)};var b__,Ra,NV,cOv,K1C,L11,BPr,jvd,fVd;
_.qU=function(F,q){this.JSC$10024_domain_=this.userInfo_=this.scheme_="";this.JSC$10024_port_=null;this.fragment_=this.JSC$10024_path_="";this.JSC$10024_ignoreCase_=!1;var t;F instanceof _.qU?(this.JSC$10024_ignoreCase_=q!==void 0?q:F.JSC$10024_ignoreCase_,_.Xz(this,F.scheme_),this.userInfo_=F.userInfo_,_.Yd(this,F.JSC$10024_domain_),_.pn(this,F.JSC$10024_port_),_.QV(this,F.getPath()),_.ej(this,F.JSC$10024_queryData_.clone()),_.ZJ(this,F.fragment_)):F&&(t=_.c_(String(F)))?(this.JSC$10024_ignoreCase_=
!!q,_.Xz(this,t[1]||"",!0),this.userInfo_=Ra(t[2]||""),_.Yd(this,t[3]||"",!0),_.pn(this,t[4]),_.QV(this,t[5]||"",!0),_.ej(this,t[6]||"",!0),_.ZJ(this,t[7]||"",!0)):(this.JSC$10024_ignoreCase_=!!q,this.JSC$10024_queryData_=new _.r3(null,this.JSC$10024_ignoreCase_))};
_.qU.prototype.toString=function(){var F=[],q=this.scheme_;q&&F.push(NV(q,K1C,!0),":");var t=this.JSC$10024_domain_;if(t||q=="file")F.push("//"),(q=this.userInfo_)&&F.push(NV(q,K1C,!0),"@"),F.push(_.KI(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t=this.JSC$10024_port_,t!=null&&F.push(":",String(t));if(t=this.getPath())this.JSC$10024_domain_&&t.charAt(0)!="/"&&F.push("/"),F.push(NV(t,t.charAt(0)=="/"?BPr:L11,!0));(t=this.JSC$10024_queryData_.toString())&&F.push("?",t);(t=this.fragment_)&&F.push("#",
NV(t,fVd));return F.join("")};
_.qU.prototype.resolve=function(F){var q=this.clone(),t=!!F.scheme_;t?_.Xz(q,F.scheme_):t=!!F.userInfo_;t?q.userInfo_=F.userInfo_:t=!!F.JSC$10024_domain_;t?_.Yd(q,F.JSC$10024_domain_):t=F.JSC$10024_port_!=null;var u=F.getPath();if(t)_.pn(q,F.JSC$10024_port_);else if(t=!!F.JSC$10024_path_){if(u.charAt(0)!="/")if(this.JSC$10024_domain_&&!this.JSC$10024_path_)u="/"+u;else{var J=q.getPath().lastIndexOf("/");J!=-1&&(u=q.getPath().slice(0,J+1)+u)}J=u;if(J==".."||J==".")u="";else if(_.p3(J,"./")||_.p3(J,
"/.")){u=_.gf(J,"/");J=J.split("/");for(var g=[],Y=0;Y<J.length;){var Q=J[Y++];Q=="."?u&&Y==J.length&&g.push(""):Q==".."?((g.length>1||g.length==1&&g[0]!="")&&g.pop(),u&&Y==J.length&&g.push("")):(g.push(Q),u=!0)}u=g.join("/")}else u=J}t?_.QV(q,u):t=F.JSC$10024_queryData_.toString()!=="";t?_.ej(q,F.JSC$10024_queryData_.clone()):t=!!F.fragment_;t&&_.ZJ(q,F.fragment_);return q};
_.qU.prototype.clone=function(){return new _.qU(this)};
_.Xz=function(F,q,t){F.scheme_=t?Ra(q,!0):q;F.scheme_&&(F.scheme_=F.scheme_.replace(/:$/,""));return F};
_.Yd=function(F,q,t){F.JSC$10024_domain_=t?Ra(q,!0):q;return F};
_.pn=function(F,q){if(q){q=Number(q);if(isNaN(q)||q<0)throw Error("Pa`"+q);F.JSC$10024_port_=q}else F.JSC$10024_port_=null;return F};
_.qU.prototype.getPath=function(){return this.JSC$10024_path_};
_.QV=function(F,q,t){F.JSC$10024_path_=t?Ra(q,!0):q;return F};
_.ej=function(F,q,t){q instanceof _.r3?(F.JSC$10024_queryData_=q,aVd(F.JSC$10024_queryData_,F.JSC$10024_ignoreCase_)):(t||(q=NV(q,jvd)),F.JSC$10024_queryData_=new _.r3(q,F.JSC$10024_ignoreCase_));return F};
_.aX=function(F,q,t){F.JSC$10024_queryData_.set(q,t);return F};
_.fr=function(F,q){return F.JSC$10024_queryData_.get(q)};
_.ZJ=function(F,q,t){F.fragment_=t?Ra(q):q;return F};
_.w3=function(F){_.aX(F,"zx",Bd());return F};
_.Lr=function(F,q){return F instanceof _.qU?F.clone():new _.qU(F,q)};
b__=function(F,q){F instanceof _.qU||(F=_.Lr(F));q instanceof _.qU||(q=_.Lr(q));return F.resolve(q)};
Ra=function(F,q){return F?q?decodeURI(F.replace(/%25/g,"%2525")):decodeURIComponent(F):""};
NV=function(F,q,t){return typeof F==="string"?(F=encodeURI(F).replace(q,cOv),t&&(F=F.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),F):null};
cOv=function(F){F=F.charCodeAt(0);return"%"+(F>>4&15).toString(16)+(F&15).toString(16)};
K1C=/[#\/\?@]/g;L11=/[#\?:]/g;BPr=/[#\?]/g;jvd=/[#\?@]/g;fVd=/#/g;_.r3=function(F,q){this.count_=this.keyMap_=null;this.encodedQuery_=F||null;this.JSC$10025_ignoreCase_=!!q};
_.ii=function(F){F.keyMap_||(F.keyMap_=new Map,F.count_=0,F.encodedQuery_&&CwC(F.encodedQuery_,function(q,t){F.add(uK(q),t)}))};
_.l=_.r3.prototype;_.l.getCount=function(){_.ii(this);return this.count_};
_.l.add=function(F,q){_.ii(this);this.encodedQuery_=null;F=kd(this,F);var t=this.keyMap_.get(F);t||this.keyMap_.set(F,t=[]);t.push(q);this.count_+=1;return this};
_.l.remove=function(F){_.ii(this);F=kd(this,F);return this.keyMap_.has(F)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(F).length,this.keyMap_.delete(F)):!1};
_.l.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.l.isEmpty=function(){_.ii(this);return this.count_==0};
_.l.containsKey=function(F){_.ii(this);F=kd(this,F);return this.keyMap_.has(F)};
_.l.containsValue=function(F){var q=this.getValues();return _.bu(q,F)};
_.l.forEach=function(F,q){_.ii(this);this.keyMap_.forEach(function(t,u){t.forEach(function(J){F.call(q,J,u,this)},this)},this)};
_.l.getKeys=function(){_.ii(this);for(var F=Array.from(this.keyMap_.values()),q=Array.from(this.keyMap_.keys()),t=[],u=0;u<q.length;u++)for(var J=F[u],g=0;g<J.length;g++)t.push(q[u]);return t};
_.l.getValues=function(F){_.ii(this);var q=[];if(typeof F==="string")this.containsKey(F)&&(q=q.concat(this.keyMap_.get(kd(this,F))));else{F=Array.from(this.keyMap_.values());for(var t=0;t<F.length;t++)q=q.concat(F[t])}return q};
_.l.set=function(F,q){_.ii(this);this.encodedQuery_=null;F=kd(this,F);this.containsKey(F)&&(this.count_-=this.keyMap_.get(F).length);this.keyMap_.set(F,[q]);this.count_+=1;return this};
_.l.get=function(F,q){if(!F)return q;F=this.getValues(F);return F.length>0?String(F[0]):q};
_.F8C=function(F,q,t){F.remove(q);t.length>0&&(F.encodedQuery_=null,F.keyMap_.set(kd(F,q),_.C3(t)),F.count_+=t.length)};
_.r3.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var F=[],q=Array.from(this.keyMap_.keys()),t=0;t<q.length;t++){var u=q[t],J=_.KI(u);u=this.getValues(u);for(var g=0;g<u.length;g++){var Y=J;u[g]!==""&&(Y+="="+_.KI(u[g]));F.push(Y)}}return this.encodedQuery_=F.join("&")};
_.r3.prototype.clone=function(){var F=new _.r3;F.encodedQuery_=this.encodedQuery_;this.keyMap_&&(F.keyMap_=new Map(this.keyMap_),F.count_=this.count_);return F};
var kd=function(F,q){q=String(q);F.JSC$10025_ignoreCase_&&(q=q.toLowerCase());return q},aVd=function(F,q){q&&!F.JSC$10025_ignoreCase_&&(_.ii(F),F.encodedQuery_=null,F.keyMap_.forEach(function(t,u){var J=u.toLowerCase();
u!=J&&(this.remove(u),_.F8C(this,J,t))},F));
F.JSC$10025_ignoreCase_=q};
_.r3.prototype.extend=function(F){for(var q=0;q<arguments.length;q++)h4z(arguments[q],function(t,u){this.add(u,t)},this)};var E5=function(F,q){Fz.call(this);for(var t=0,u;u=vRv[t];t++)if(u in F&&!/^https?:\/\//.test(F[u]))throw Error("Ra`"+F[u]+"`"+u);this.cfg_=F;this.name=this.cfg_.cn||HqL();this.JSC$10020_domHelper_=q||Wn();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Qb(this);F.lpu=F.lpu||bhw(this.JSC$10020_domHelper_.getWindow().location.href)+"/robots.txt";F.ppu=F.ppu||bhw(F.pu||"")+"/robots.txt";g3[this.name]=this;VSL(window,"unload",qKv)||P9(window,"unload",qKv)};
_.gd(E5,Fz);var t6j=RegExp("^%*tp$"),ubE=RegExp("^%+tp$");_.l=E5.prototype;_.l.connectionDelay_=null;_.l.peerWindowDeferred_=null;_.l.transport_=null;_.l.state_=1;_.l.isConnected=function(){return this.state_==2};
_.l.peerWindowObject_=null;_.l.iframeElement_=null;_.l.connect=function(F){this.connectCb_=F||_.DH;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?TPC(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.l.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10020_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var F=this.iframeElement_.contentWindow;F||(F=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=F}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10020_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new s5(this,this.cfg_.ph,this.JSC$10020_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.l.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.sP(this.transport_);this.connectCb_=this.transport_=null;_.sP(this.connectionDelay_);this.connectionDelay_=null};
_.l.send=function(F,q){if(this.isConnected()){try{var t=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(J){t=!1}if(t){_.ho(q)&&(q=(0,_.bb)(q));t=this.transport_;var u=t.send;t6j.test(F)&&(F="%"+F);F=F.replace(/[%:|]/g,encodeURIComponent);u.call(t,F,q)}else this.close()}};
_.l.xpcDeliver=function(F,q,t){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Pd)(this.xpcDeliver,this,F,q,t));else if(yOf(this,t)&&!this.isDisposed()&&this.state_!=3)if(F&&F!="tp")this.isConnected()&&(F=F.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),F=ubE.test(F)?F.substring(1):F,F=this.getService(F,q))&&(q=ERr(q,F.objectPayload),q!=null&&F.callback(q));else switch(F=this.transport_,t=bqC(q),q=t[1],t[0]){case "SETUP_ACK":U3e(F,1);F.setupAckReceived_.fired_||F.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":F.protocolVersion_==2&&(U3e(F,2),F.setupAckReceived_.fired_||F.setupAckReceived_.callback(!0));break;case "SETUP":U3e(F,1);Vtn(F,1);break;case "SETUP_NTPV2":F.protocolVersion_==2&&(t=F.peerProtocolVersion_,U3e(F,2),Vtn(F,2),t!=1&&F.peerEndpointId_==null||F.peerEndpointId_==q||d3z(F),F.peerEndpointId_=q)}};
var m3v=function(F){var q=F.cfg_.role;return typeof q==="number"?q:window.parent==F.peerWindowObject_?1:0},yOf=function(F,q){var t=F.cfg_.ph;
return _.YP(q==null?"":String(q))||_.YP(t==null?"":String(t))||q==F.cfg_.ph};
E5.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete g3[this.name];_.sP(this.peerLoadHandler_);delete this.peerLoadHandler_;E5.superClass_.disposeInternal.call(this)};
var qKv=function(){for(var F in g3)_.sP(g3[F])},g3={};var s5C=function(F,q){this.JSC$10034_win=F;this.allowAdsHttpEndpoint=q;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10034_domHelper=Wn(F);this.scrollManager=new wjd(F);this.accessibilityManager=new e4v(F);JNJ(this)},JNJ=function(F){var q=function(){F.allowAdsPopup&&F.allowAdsPopup.style.setProperty("display","none","important");
F.wallElement.style.setProperty("display","","important");Zqr(F.accessibilityManager);NPO(F.accessibilityManager,F.wallElement.querySelector(".fc-dialog-container"),!1,!1,F.wallElement.querySelector(".fc-button-whitelist"));F.scrollManager.enableScrolling()};
F.allowAdsPopup=F.JSC$10034_domHelper.JSC$9321_createDom("DIV",{"class":"fc-whitelist-root"});F.allowAdsPopup.style.setProperty("display","none","important");F.JSC$10034_domHelper.appendChild(F.JSC$10034_domHelper.JSC$9319_document_.body,F.allowAdsPopup);var t=F.JSC$10034_domHelper.JSC$9321_createDom("DIV",{"class":"fc-dialog-overlay"});F.JSC$10034_domHelper.appendChild(F.allowAdsPopup,t);var u=F.JSC$10034_domHelper.JSC$9321_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:q});F.JSC$10034_domHelper.appendChild(F.allowAdsPopup,
u);t=F.JSC$10034_domHelper.JSC$9321_createDom("IFRAME");t.className="fc-whitelist-dialog";t.frameBorder="0";t.id="fc-whitelist-iframe";t.tabIndex="0";_.aK(t,F.allowAdsHttpEndpoint);F.JSC$10034_domHelper.appendChild(u,t);u={};u.pu=_.PS(F.allowAdsHttpEndpoint).toString();u.tp=1;u.cn="fc-whitelist-channel";u.ifrid=t.id;u.osh=!0;F.allowAdsCrossPageChannel=new E5(u);F.allowAdsCrossPageChannel.registerService("close",q);F.allowAdsCrossPageChannel.registerService("refresh",function(){F.JSC$10034_win.location.reload()});
F.allowAdsCrossPageChannel.registerService("resize",function(J){if(J){var g=F.allowAdsPopup.querySelector(".fc-whitelist-dialog");J.width&&g.style.setProperty("width",J.width,"important");J.height&&g.style.setProperty("height",J.height,"important")}},!0);
F.allowAdsCrossPageChannel.connect()};
s5C.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10034_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var zS=window,oa=document,gIO=zS.location,lAe=function(){},X_r=/\[native code\]/,nn=function(F,q,t){return F[q]=F[q]||t},YKz=function(F){F=F.sort();
for(var q=[],t=void 0,u=0;u<F.length;u++){var J=F[u];J!=t&&q.push(J);t=J}return q},MV=function(){var F;
if((F=Object.create)&&X_r.test(F))F=F(null);else{F={};for(var q in F)F[q]=void 0}return F},TS=nn(zS,"gapi",{});var DJ={};DJ=nn(zS,"___jsl",MV());nn(DJ,"I",0);nn(DJ,"hel",10);var p_x=function(){var F=gIO.href;if(DJ.dpo)var q=DJ.h;else{q=DJ.h;var t=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),u=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(F=F&&(t.exec(F)||u.exec(F)))try{q=decodeURIComponent(F[2])}catch(J){}}return q},Q5x=function(F){var q=nn(DJ,"PQ",[]);
DJ.PQ=[];var t=q.length;if(t===0)F();else for(var u=0,J=function(){++u===t&&F()},g=0;g<t;g++)q[g](J)},e$J=function(F){return nn(nn(DJ,"H",MV()),F,MV())};var WL=function(F){this.JSC$10036_obj_=F};
WL.prototype.value=function(){return this.JSC$10036_obj_};
WL.prototype.getWidth=function(){return this.JSC$10036_obj_.width};
WL.prototype.getHeight=function(){return this.JSC$10036_obj_.height};
WL.prototype.getStyle=function(){return this.JSC$10036_obj_.style};var ZIf=function(F){this.JSC$10039_obj_=F||{}};
_.l=ZIf.prototype;_.l.value=function(){return this.JSC$10039_obj_};
_.l.setUrl=function(F){this.JSC$10039_obj_.url=F;return this};
_.l.getUrl=function(){return this.JSC$10039_obj_.url};
_.l.getStyle=function(){return this.JSC$10039_obj_.style};
_.l.getId=function(){return this.JSC$10039_obj_.id};
_.l.getContext=function(){return this.JSC$10039_obj_.context};
var R$j=function(F){F.JSC$10039_obj_.attributes=F.JSC$10039_obj_.attributes||{};return new WL(F.JSC$10039_obj_.attributes)};var rNJ=function(){ZIf.apply(this,arguments)};
_.M(rNJ,ZIf);var N2r=nn(DJ,"perf",MV());nn(N2r,"g",MV());var w_d=nn(N2r,"i",MV());nn(N2r,"r",[]);MV();MV();var knx=function(F,q,t){q&&q.length>0&&(q=iIe(q),t&&t.length>0&&(q+="___"+iIe(t)),q.length>28&&(q=q.substr(0,28)+(q.length-28)),t=q,q=nn(w_d,"_p",MV()),nn(q,t,MV())[F]=(new Date).getTime(),q=N2r.r,typeof q==="function"?q(F,"_p",t):q.push([F,"_p",t]))},iIe=function(F){return F.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var EIv=MV(),z$r=[],O5=function(F){throw Error("Ua`"+F);};
z$r.push(["jsl",function(F){for(var q in F)if(Object.prototype.hasOwnProperty.call(F,q)){var t=F[q];typeof t=="object"?DJ[q]=nn(DJ,q,[]).concat(t):nn(DJ,q,t)}if(q=F.u)F=nn(DJ,"us",[]),F.push(q),(q=/^https:(.*)$/.exec(q))&&F.push("http:"+q[1])}]);
var oIJ=/^(\/[a-zA-Z0-9_\-]+)+$/,nIC=[/\/amp\//,/\/amp$/,/^\/amp$/],M6C=/^[a-zA-Z0-9\-_\.,!]+$/,T2x=/^gapi\.loaded_[0-9]+$/,Gnv=/^[a-zA-Z0-9,._-]+$/,Pnw=function(F,q,t,u,J){var g=F.split(";"),Y=g.shift(),Q=EIv[Y],e=null;Q?e=Q(g,q,t,u):O5("no hint processor for: "+Y);e||O5("failed to generate load url");q=e;t=q.match(DMx);(u=q.match(W8x))&&u.length===1&&OIz.test(q)&&t&&t.length===1||O5("failed sanity: "+F);try{F="?";if(J&&J.length>0){GtA(J);var r=J.join(",");e=e+"?le="+r;F="&"}if(DJ.rol){var N=DJ.ol;
N&&N.length&&(e=""+e+F+"ol="+N.length)}}catch(w){}return e},vI1=function(F,q,t,u){F=xMC(F);
T2x.test(t)||O5("invalid_callback");q=ANj(q);u=u&&u.length?ANj(u):null;var J=function(g){return encodeURIComponent(g).replace(/%2C/g,",")};
return[encodeURIComponent(F.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",J(F.version),"/m=",J(q),u?"/exm="+J(u):"","/rt=j/sv=1/d=1/ed=1",F.activeMods?"/am="+J(F.activeMods):"",F.resourceSig?"/rs="+J(F.resourceSig):"",F.zcms?"/t="+J(F.zcms):"","/cb=",J(t)].join("")},xMC=function(F){F.charAt(0)!=="/"&&O5("relative path");
for(var q=F.substring(1).split("/"),t=[];q.length;){F=q.shift();if(!F.length||F.indexOf(".")==0)O5("empty/relative directory");else if(F.indexOf("=")>0){q.unshift(F);break}t.push(F)}F={};for(var u=0,J=q.length;u<J;++u){var g=q[u].split("="),Y=decodeURIComponent(g[0]),Q=decodeURIComponent(g[1]);g.length==2&&Y&&Q&&(F[Y]=F[Y]||Q)}q="/"+t.join("/");oIJ.test(q)||O5("invalid_prefix");t=0;for(u=nIC.length;t<u;++t)nIC[t].test(q)&&O5("invalid_prefix");t=IAL(F,"k",!0);u=IAL(F,"am");J=IAL(F,"rs");F=IAL(F,"t");
return{pathPrefix:q,version:t,activeMods:u,resourceSig:J,zcms:F}},ANj=function(F){for(var q=[],t=0,u=F.length;t<u;++t){var J=F[t].replace(/\./g,"_").replace(/-/g,"_");
Gnv.test(J)&&q.push(J)}return q.join(",")},IAL=function(F,q,t){F=F[q];
!F&&t&&O5("missing: "+q);if(F){if(M6C.test(F))return F;O5("invalid: "+q)}return null},OIz=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,W8x=/\/cb=/g,DMx=/\/\//g;
EIv.m=function(F,q,t,u){(F=F[0])||O5("missing_hint");return"https://apis.google.com"+vI1(F,q,t,u)};
var HIr=decodeURI("%73cript"),mME=/^[-+_0-9\/A-Za-z]+={0,2}$/,$M1=function(F,q){for(var t=[],u=0;u<F.length;++u){var J=F[u],g;if(g=J){a:{for(g=0;g<q.length;g++)if(q[g]===J)break a;g=-1}g=g<0}g&&t.push(J)}return t},bIC=function(){var F=DJ.nonce;
return F!==void 0?F&&F===String(F)&&F.match(mME)?F:DJ.nonce=null:oa.querySelector?(F=oa.querySelector("script[nonce]"))?(F=F.nonce||F.getAttribute("nonce")||"",F&&F===String(F)&&F.match(mME)?DJ.nonce=F:DJ.nonce=null):null:null},dMe=function(F){if(oa.readyState!="loading")yNC(F);
else{var q=bIC(),t="";q!==null&&(t=' nonce="'+q+'"');F="<"+HIr+' src="'+encodeURI(F)+'"'+t+"></"+HIr+">";oa.write(Cnn?Cnn.createHTML(F):F)}},yNC=function(F){var q=oa.createElement(HIr);
q.setAttribute("src",Cnn?Cnn.createScriptURL(F):F);F=bIC();F!==null&&q.setAttribute("nonce",F);q.async="true";(F=oa.getElementsByTagName(HIr)[0])?F.parentNode.insertBefore(q,F):(oa.head||oa.body||oa.documentElement).appendChild(q)},UMv=function(F,q,t){V6x(function(){var u=q===p_x()?nn(TS,"_",MV()):MV();
u=nn(e$J(q),"_",u);F(u)},t)},xKv=function(F,q){var t=q||{};
typeof q=="function"&&(t={},t.callback=q);var u=(q=t)&&q._c;if(u)for(var J=0;J<z$r.length;J++){var g=z$r[J][0],Y=z$r[J][1];Y&&Object.prototype.hasOwnProperty.call(u,g)&&Y(u[g],F,q)}q=[];F?q=F.split(":"):t.features&&(q=t.features);if(!(F=t.h)&&(F=p_x(),!F))throw Error("Va");SKj(q||[],t,F)},SKj=function(F,q,t){F=YKz(F)||[];
var u=q.callback,J=q.config,g=q.timeout,Y=q.ontimeout,Q=q.onerror,e=void 0;typeof Q=="function"&&(e=Q);var r=null,N=!1;if(g&&!Y||!g&&Y)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";Q=nn(e$J(t),"r",[]).sort();var w=nn(e$J(t),"L",[]).sort(),k=DJ.le||[],z=[].concat(Q),T=function(a,S){if(N)return 0;zS.clearTimeout(r);w.push.apply(w,P);var K=((TS||{}).config||{}).update;K?K(J):J&&nn(DJ,"cu",[]).push(J);if(S){knx("me0",a,z);try{UMv(S,t,e)}finally{knx("me1",a,z)}}return 1};
g>0&&(r=zS.setTimeout(function(){N=!0;Y()},g));
var P=$M1(F,w);if(P.length){P=$M1(F,Q);var v=nn(DJ,"CP",[]),H=v.length;v[H]=function(a){if(!a)return 0;knx("ml1",P,z);var S=function(h){v[H]=null;T(P,a)&&Q5x(function(){u&&u();h()})},K=function(){var h=v[H+1];
h&&h()};
H>0&&v[H-1]?v[H]=function(){S(K)}:S(K)};
if(P.length){var d="loaded_"+DJ.I++;TS[d]=function(a){v[H](a);TS[d]=null};
F=Pnw(t,P,"gapi."+d,Q,k);Q.push.apply(Q,P);knx("ml0",P,z);q.sync||zS.___gapisync?dMe(F):yNC(F)}else v[H](lAe)}else T(P)&&u&&u()},h$r;
var K8v=null,B2z=_.uu.trustedTypes;if(B2z&&B2z.createPolicy){try{K8v=B2z.createPolicy("goog#gapi",{createHTML:hRC,createScript:hRC,createScriptURL:hRC})}catch(F){_.uu.console&&_.uu.console.error(F.message)}h$r=K8v}else h$r=K8v;var Cnn=h$r,V6x=function(F,q){if(DJ.hee&&DJ.hel>0)try{return F()}catch(t){q&&q(t),DJ.hel--,xKv("debug_error",function(){try{window.___jsl.hefn(t)}catch(u){throw t;}})}else try{return F()}catch(t){throw q&&q(t),t;
}},L8O=TS.load;
L8O&&nn(DJ,"ol",[]).push(L8O);TS.load=function(F,q){return V6x(function(){return xKv(F,q)})};var HEC;var aAv=function(F,q){var t=t||[];this.serviceId_=F;this.moduleId_=q||null;this.dependencies_=[];fAe(this,t)};
aAv.prototype.toString=function(){return this.serviceId_};
aAv.prototype.getModuleId=function(){return this.moduleId_};
var fAe=function(F,q){var t=!1;t=t===void 0?!1:t;F.dependencies_=F.dependencies_.concat(q);if(t){if(!F.moduleId_)throw Error("Wa`"+F.serviceId_);q.map(function(u){return u.getModuleId()}).forEach(function(u){FIv(function(J){J.addExtraEdge(F.moduleId_,u)})})}};var llf=new aAv("MpJwZc","MpJwZc");var YHA=new _.Tw("a"),Xot=function(F,q,t){_.Gw.call(this,F,q);this.node=q;this.kind=t};
_.M(Xot,_.Gw);var j5n=function(){this.JSC$10052_keys_={};this.urlPrefix_="";this.JSC$10052_queryData_={}};
j5n.prototype.toString=function(){var F=this.urlPrefix_+cN1(this),q=_.kE(this.JSC$10052_queryData_),t="";q!=""&&(t="?"+q);return F+t};
var Fhn=function(F){F=PL(F,"md");return!!F&&F!=="0"},cN1=function(F){var q=[],t=(0,_.Pd)(function(u){this.JSC$10052_keys_[u]!==void 0&&q.push(u+"="+this.JSC$10052_keys_[u])},F);
Fhn(F)?(t("md"),t("k"),t("ck"),t("am"),t("rs"),t("gssmodulesetproto"),t("slk"),t("dti")):(t("sdch"),t("k"),t("ck"),t("am"),t("rt"),"d"in F.JSC$10052_keys_||xd(F,"d","0"),t("d"),t("exm"),t("excm"),(F.JSC$10052_keys_.excm||F.JSC$10052_keys_.exm)&&q.push("ed=1"),t("im"),t("dg"),t("sm"),PL(F,"br")!="1"&&PL(F,"br")!="0"||t("br"),t("br-d"),PL(F,"rb")=="1"&&t("rb"),PL(F,"zs")!=="0"&&t("zs"),qVf(F)!==""&&t("wt"),t("gssmodulesetproto"),t("ujg"),t("sp"),t("rs"),t("cb"),t("ee"),t("slk"),t("dti"),t("m"));return q.join("/")},
PL=function(F,q){return F.JSC$10052_keys_[q]?F.JSC$10052_keys_[q]:null},xd=function(F,q,t){t?F.JSC$10052_keys_[q]=t:delete F.JSC$10052_keys_[q]},tvE=function(F,q){F.urlPrefix_=q},uRx=function(F,q){q&&q.length>0?(q.sort(),xd(F,"exm",q.join(","))):xd(F,"exm",null)},JUd=function(F,q){q&&q.length>0?(q.sort(),xd(F,"excm",q.join(","))):xd(F,"excm",null)},smJ=function(F){return(F=PL(F,"m"))?F.split(","):[]},qVf=function(F){switch(PL(F,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},gEv=function(F,q){var t=Object.keys(q).filter(function(u){return!!Object.keys(q[u]).length}).map(function(u){var J=Object.keys(q[u]);
J.length>1&&J.sort();return u+":"+J.join(",")});
t.sort();xd(F,"ee",t.join(";"))},hE$=function(F){var q=PL(F,"ee");
if(!q)return{};F={};q=_.X(q.split(";"));for(var t=q.next();!t.done;t=q.next()){var u=_.X(t.value.split(":"));t=u.next().value;u=u.next().value;F[t]={};u=_.X(u.split(","));for(var J=u.next();!J.done;J=u.next())F[t][J.value]=!0}return F},l0L=function(F){delete F.JSC$10052_keys_.m;
delete F.JSC$10052_keys_.exm;delete F.JSC$10052_keys_.ed};
j5n.prototype.clone=function(){var F=new j5n;F.JSC$10052_keys_=Object.assign({},this.JSC$10052_keys_);F.urlPrefix_=this.urlPrefix_;F.JSC$10052_queryData_=Object.assign({},this.JSC$10052_queryData_);return F};
var KIv=function(F,q){q=q===void 0?!0:q;var t=Xcd(F),u=new j5n,J=_.c_(t)[5];_.m7.forEach(YVr,function(Y){var Q=J.match("/"+Y+"=([^/]+)");Q&&xd(u,Y,Q[1])});
var g="";g=F.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";tvE(u,F.substr(0,F.indexOf(g)+g.length));if(!q)return u;(F=_.c_(t)[6]||null)&&CwC(F,function(Y,Q){u.JSC$10052_queryData_[Y]=Q});
return u},V1W=function(F){F=_.wN(Xcd(F));
return F===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(F)?/\/k=/.test(F):!1},Xcd=function(F){return F.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?F.substr(65):F},YVr={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"},pcx=RegExp("^loaded_(g|h)?[_\\d]+$");_.Ak=function(F){this.JSC$10064_id_=F;this.opts={}};
_.Ak.prototype.JSC$10066_setLabel=function(F){this.label_=F||void 0;return this};
_.Ak.prototype.addUploadMetadata=function(F,q){var t=this.opts.data||{};t[F]=q;this.opts.data=t;return this};
var Qmd=function(F){var q=_.m7.filter(F.opts,function(t){return t!==null});
q=_.m7.isEmpty(q)?null:q;F=[F.JSC$10064_id_,F.label_,q];q=zoW(F);return F=F.slice(0,q+1)};
_.Ak.prototype.toString=function(){var F=Qmd(this);return"("+_.$q(F,function(q){return JSON.stringify(q)}).join(",")+")"};
_.Ak.prototype.getId=function(){return this.JSC$10064_id_};
_.Ak.prototype.getOptions=function(){return _.m7.clone(this.opts)};var vL=function(){_.Ak.call(this,"image-search")};
_.M(vL,_.Ak);vL.prototype.setSize=function(F){this.opts.imgsz=F;return this};
vL.prototype.JSC$10066_setLabel=function(F){_.Ak.prototype.JSC$10066_setLabel.call(this,F);return this};
vL.prototype.addUploadMetadata=function(F,q){_.Ak.prototype.addUploadMetadata.call(this,F,q);return this};var Ia=function(){_.Ak.call(this,"maps")};
_.M(Ia,_.Ak);Ia.prototype.setZoom=function(F){this.opts.zoom=F;return this};
Ia.prototype.JSC$10066_setLabel=function(F){_.Ak.prototype.JSC$10066_setLabel.call(this,F);return this};
Ia.prototype.addUploadMetadata=function(F,q){_.Ak.prototype.addUploadMetadata.call(this,F,q);return this};_.HL=function(){_.Ak.call(this,"photos")};
_.M(_.HL,_.Ak);_.HL.prototype.JSC$10066_setLabel=function(F){_.Ak.prototype.JSC$10066_setLabel.call(this,F);return this};
_.HL.prototype.addUploadMetadata=function(F,q){_.Ak.prototype.addUploadMetadata.call(this,F,q);return this};var m_=function(){_.Ak.call(this,"url")};
_.M(m_,_.Ak);var eTL=function(){var F=new m_;F.opts.type="video";F.opts.site="youtube.com";return F};
m_.prototype.JSC$10066_setLabel=function(F){_.Ak.prototype.JSC$10066_setLabel.call(this,F);return this};
m_.prototype.addUploadMetadata=function(F,q){_.Ak.prototype.addUploadMetadata.call(this,F,q);return this};var $d=function(){_.Ak.call(this,"video-search")};
_.M($d,_.Ak);var ZEw=function(){var F=new $d;F.opts.site="youtube.com";return F};
$d.prototype.JSC$10066_setLabel=function(F){_.Ak.prototype.JSC$10066_setLabel.call(this,F);return this};
$d.prototype.addUploadMetadata=function(F,q){_.Ak.prototype.addUploadMetadata.call(this,F,q);return this};var RTL=function(){_.Ak.call(this,"web")};
_.M(RTL,_.Ak);RTL.prototype.JSC$10066_setLabel=function(F){_.Ak.prototype.JSC$10066_setLabel.call(this,F);return this};
RTL.prototype.addUploadMetadata=function(F,q){_.Ak.prototype.addUploadMetadata.call(this,F,q);return this};var bi=function(){this.items_=[];this.opts={}},rUJ=function(F){switch(F){case "image-search":return new vL;
case "maps":return new Ia;case "photos":return new _.HL;case "url":return new m_;case "video-search":return new $d;case "web":return new RTL}return new _.Ak(F)};
bi.prototype.addView=function(F){this.items_.push(typeof F==="string"?rUJ(F):F);return this};
var NNv=function(F){return"("+_.$q(F.items_,function(q){return q.toString()}).join(",")+")"};
bi.prototype.toString=function(){return NNv(this)};
bi.prototype.getViews=function(F,q){q=q===void 0?[]:q;for(var t=this.items_,u=0;u<t.length;u++){var J=t[u];J instanceof bi?J.getViews(F,q):J.getId()==F&&q.push(J)}return q};
bi.prototype.getOptions=function(){return _.m7.clone(this.opts)};var VS=function(F){this.basePickerUrl_=F||"https://docs.google.com/picker";this.nav_=new bi};
VS.prototype.nav_=null;VS.prototype.addView=function(F){this.nav_.addView(F);return this};
VS.prototype.getBaseUrl=function(){return this.basePickerUrl_};
VS.prototype.getViews=function(F){return this.nav_.getViews(F)};
_.wcj=function(F,q){F.callback_=q;return F};var iEj=new Map;iEj.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");iEj.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");iEj.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var kQv=new Set;kQv.add("application/vnd.google-apps.kix");kQv.add("application/vnd.google-apps.ritz");kQv.add("application/vnd.google-apps.punch");var xh1=function(F,q,t){var u=t&&_.xB(t,1);t=EEf(t);var J=F[0].getId();switch(_.Aa(J,2)){case 13:return zTz(F,q,u,t);case 3:return oEE(F,q,u,t);case 10:return nEv(F,q,u,t);case 27:return nEv(F,q,u,t);case 12:return Mvr(F,q);case 2:return TNj(F,q,u,t);case 5:return GQ1(F,q,u,t);case 9:return DhJ(F,q,u,t);case 6:return Whf(F,q,u,t);case 25:return OEx(F,q,u,t);case 1:return _.Ea(F[0],uIL,26)?PKO(F,q,u,t):nEv(F,q,u,t);default:return{}}},Whf=function(F,q,t,u){F=F.map(function(J){return{id:J.getId().getId(),
serviceId:"youtube",name:J.getName(),description:_.xB(J,3),type:yV(J),lastEditedUtc:_.tOf(_.Yw(J,_.HZ,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:J.getUrl(),embedUrl:_.xB(J,13),thumbnails:Cn(gU(J))}});
return{action:q,docs:F,viewToken:u,view:t||"youtube",v2Translated:!0}},TNj=function(F,q,t,u){var J=F.map(function(g){var Y=g.getId().getId(),Q=_.xB(g,7),e=g.getName(),r=yV(g),N=_.tOf(_.Yw(g,_.HZ,12)).getTime(),w=g.getUrl(),k=Number(Yxf(g)),z=_.xB(g,3),T=_.xB(g,11),P=Cn(gU(g));
var v=_.Yw(g,lb,21);v=_.Wi(v,1);var H=_.Yw(g,lb,21);H=_.xB(H,10);var d=_.xB(g,13);var a=_.Yw(g,lb,21);a=_.Wi(a,9);var S=_.Yw(g,lb,21);S=_.xB(S,11);Y={id:Y,serviceId:"docs",mimeType:Q,name:e,type:r,lastEditedUtc:N,url:w,sizeBytes:k,description:z,iconUrl:T,thumbnails:P,isShared:v,downloadUrl:H,embedUrl:d,copyable:a,resourceKey:S};Q=_.Yw(g,lb,21);_.Wi(Q,12)&&(Y.uploadState="success",Y.isNew=!0);Q=_.Yw(g,lb,21);_.Ea(Q,ub,3)&&(g=_.Yw(g,lb,21),g=_.Yw(g,ub,3),_.Ea(g,qz,2)&&(Q=ba(g.getDuration().getSeconds()),
e=g.getDuration(),e=_.pr(e,2),Y.duration=Q+e/1E9),Y.aspectRatio=g.getAspectRatio());return Y});
return{action:q,docs:J,viewToken:u,view:t||"all",extraUserInputs:AUO(F),v2Translated:!0}},GQ1=function(F,q,t,u){F=F.map(function(J){var g=_.Yw(J,eZe,15);
g=_.Yw(g,tc,1);oJ(J,10,tc,g);return{id:J.getId().getId(),serviceId:"web",mimeType:_.xB(J,7),name:J.getName(),type:yV(J),url:J.getUrl(),description:_.xB(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Cn(gU(J))}});
return{action:q,docs:F,viewToken:u,view:t||"image-search",v2Translated:!0}},DhJ=function(F,q,t,u){F=F.map(function(J){return{serviceId:"url",
name:gU(J)[0].getUrl().split("/").pop(),type:yV(J),mimeType:_.xB(J,7),url:J.getUrl(),description:_.xB(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Cn(gU(J))}});
return{action:q,docs:F,viewToken:u,view:t||"url",v2Translated:!0}},PKO=function(F,q,t,u){F=F.map(function(J){return{id:J.getId().getId(),
serviceId:"picasa",name:J.getName(),type:yV(J),description:_.xB(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Cn(gU(J))}});
return{action:q,docs:F,viewToken:u,view:t||"webcam",v2Translated:!0}},nEv=function(F,q,t,u){return{action:q,
docs:F.map(vEL),viewToken:u,view:I0C(t||"upload",F),extraUserInputs:AUO(F),v2Translated:!0}},I0C=function(F,q){return q.some(function(t){var u;
return((u=_.Yw(t,Jc,30))==null?void 0:_.Aa(u,3))===9})?F+"/gmailphotos":F},oEE=function(F,q,t,u){var J=F.map(function(g){var Y={id:g.getId().getId(),
serviceId:"picasa",mimeType:_.xB(g,7),name:g.getName(),type:yV(g),lastEditedUtc:_.tOf(_.Yw(g,_.HZ,12)).getTime(),url:g.getUrl(),sizeBytes:Number(Yxf(g)),description:_.xB(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Cn(gU(g)),mediaKey:g.getId().getId(),parentId:_.xB(g,4)},Q,e=(Q=_.Yw(g,gnf,18))==null?void 0:_.Yw(Q,sKE,3);e&&(Y.latitude=Pi(e,1),Y.longitude=Pi(e,2));var r;g=(r=_.Yw(g,gnf,18))==null?void 0:Oa(r,6);r=g!=null?ba(g):void 0;r&&(Y.version=
r);return Y});
return{action:q,docs:J,viewToken:u,view:t||"photos",extraUserInputs:AUO(F),v2Translated:!0}},zTz=function(F,q,t,u){F=F.map(function(J){return{id:J.getId().getId(),
serviceId:"et",name:gU(J)[0].getUrl().split("/").pop(),description:_.xB(J,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Cn(gU(J),"etjpg")}});
return{action:q,docs:F,viewToken:u,view:t||"et",v2Translated:!0}},OEx=function(F,q,t,u){F=F.map(function(J){var g=J.getId().getId(),Y=u["2"];
return{id:g,serviceId:Y.type!=="gmail_themes"&&Y.parent==="6226252643674576769"?"picasa":"static_themes",name:J.getName(),mimeType:_.xB(J,7),type:yV(J),description:_.xB(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:J.getUrl(),embedUrl:J.getUrl(),thumbnails:Cn(gU(J))}});
return{action:q,docs:F,viewToken:u,view:t||"photos",v2Translated:!0}},Mvr=function(F,q){F=F.map(function(t){var u=_.Yw(t,JQw,27);
u=_.Lh(u,1,_.EC,_.YW())[0];return{id:t.getId().getId(),serviceId:"contacts",mimeType:_.xB(t,7),name:t.getName(),description:_.xB(t,3),url:"mailto:"+u,thumbnail:[{url:_.xB(t,11)}],email:u}});
return{action:q,docs:F,view:"contacts",v2Translated:!0}},EEf=function(F){if(!F)return{};
var q=_.xB(F,3);q=q&&JSON.parse(q)||{};return{0:_.xB(F,1),1:_.xB(F,2),2:q}},Cn=function(F,q){q=q===void 0?"":q;
if(!F.length)return null;q=="etjpg"&&(F=F.filter(function(t){return t.getUrl().includes("w1200-h300")}));
return F.map(function(t){return{url:t.getUrl(),height:t.getHeight(),width:t.getWidth(),type:q}})},AUO=function(F){return{isAttachment:F.some(function(q){return _.Wi(q,31)})}},vEL=function(F){var q,t={id:(q=F.getId())==null?void 0:q.getId(),
serviceId:HEz(F),mimeType:_.xB(F,7),name:F.getName(),type:yV(F),sizeBytes:Number(Yxf(F)),description:_.xB(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Cn(gU(F)),isNew:!0};if(q=_.Yw(F,Jc,30)){t.dataUrl=_.xB(q,1)||null;a:{var u=_.Yw(F,Jc,30);switch(_.Aa(u,3)){case 9:u=_.Hi(u,pSr,2,sr);u={remoteRefs:u&&_.xB(u,1)};break a;case 10:case 15:u=_.Hi(u,YS1,4,sr);var J=gU(F);u={photo_id:u&&_.xB(u,1),media_key:F.getId().getId(),media_type:_.Aa(F,6)===1?1:2,image_url:J&&
J[0].getUrl(),width:J&&String(J[0].getWidth()),height:J&&String(J[0].getHeight())};break a}u=null}t.uploadMetadata=u;t.uploadId=_.xB(q,9)||null;t.uploadState=mhv(q)||null}(u=q&&_.Hi(q,YS1,4,sr))&&(t.id=_.xB(u,1));(u=q&&_.Hi(q,QKJ,5,sr))&&(t.contentId=_.xB(u,1));(u=q&&_.Hi(q,lqe,7,sr))&&(t.contentId=_.xB(u,1));(u=q&&_.Hi(q,XSL,6,sr))&&(t.contentId=_.xB(u,1));(q==null?void 0:_.Aa(q,3))===1&&(t.mediaKey=F.getId().getId());return t},HEz=function(F){var q;
switch(((q=_.Yw(F,Jc,30))==null?void 0:_.Aa(q,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},yV=function(F){switch(_.Aa(F,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.xB(F,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},mhv=function(F){switch(F==null?void 0:_.Aa(F,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var CKC,$hL,bEw,yU1;_.dhf=function(F,q){var t=q||{};q=t.document||document;var u=_.PS(F).toString(),J=(new A$(q)).createElement("SCRIPT"),g={script_:J,timeout_:void 0},Y=new qV($hL,g),Q=null,e=t.timeout!=null?t.timeout:5E3;e>0&&(Q=window.setTimeout(function(){bEw(J,!0);Y.errback(new yU1(1,"Timeout reached for loading script "+u))},e),g.timeout_=Q);
J.onload=J.onreadystatechange=function(){J.readyState&&J.readyState!="loaded"&&J.readyState!="complete"||(bEw(J,t.cleanupWhenDone||!1,Q),Y.callback(null))};
J.onerror=function(){bEw(J,!0,Q);Y.errback(new yU1(0,"Error while loading script "+u))};
g=t.attributes||{};_.m7.extend(g,{type:"text/javascript",charset:"UTF-8"});BxC(J,g);_.uF(J,F);CKC(q).appendChild(J);return Y};
CKC=function(F){var q=T4("HEAD",F);return q&&q.length!==0?q[0]:F.documentElement};
$hL=function(){if(this&&this.script_){var F=this.script_;F&&F.tagName=="SCRIPT"&&bEw(F,!0,this.timeout_)}};
bEw=function(F,q,t){t!=null&&_.uu.clearTimeout(t);F.onload=function(){};
F.onerror=function(){};
F.onreadystatechange=function(){};
q&&window.setTimeout(function(){_.Mq(F)},0)};
yU1=function(F,q){var t="Jsloader error (code #"+F+")";q&&(t+=": "+q);_.Fq.call(this,t);this.code=F};
_.gd(yU1,_.Fq);var Vve=_.LZ(["https://apis.google.com/js/api.js"]),Uhz=_.RV(Vve),BN1=function(F,q,t){t=t===void 0?{}:t;var u=!1,J=SVw(F,q,t).then(function(Y){u=!0;return Y}),g=_.wnO(5E3).then(function(){return u?SVw(F,q,t):hTr(q,t).then(function(Y){return KhO(Y,F)})});
return sVf([J,g])},SVw=function(F,q,t){t=t===void 0?{}:t;
return Lhe(q,t).then(function(u){return KhO(u,F)})},KhO=function(F,q){var t=_.gf(q,"gapi.")?q.slice(5):q;
return F[t]?_.NU(F[t]):new _.iz(function(u,J){var g=mX(function(){J(Error("Ya"))},3E4);
F.load(q,{callback:function(){_.uu.clearTimeout(g);u(F[t])},
onerror:function(Y){_.uu.clearTimeout(g);J(Y)}})})},Lhe=function(F,q){q=q===void 0?{}:q;
return F.gapi&&F.gapi.load?_.NU(F.gapi):hTr(F,q)},hTr=function(F,q){q=q===void 0?{}:q;
return _.dhf(Uhz,{document:F.document,attributes:q}).then(function(){return F.gapi})},f0d=function(){};
f0d.prototype.load=function(F,q,t){q=q===void 0?window:q;t=t===void 0?{}:t;var u=Date.now();return BN1(F,q,t).then(function(J){var g=Date.now();return{library:J,loadStartMs:u,loadEndMs:g}},function(J){throw J instanceof Error?J:Error(String(J));
})};var eEA=function(){_.OP.call(this);this.gapiLoader_=new f0d;this.origin_=null;this.gapiPickerIframeResolver_=_.ji();this.gapiIframesResolver_=_.ji();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.M(eEA,_.OP);var a0v=function(F,q){var t=_.S6("gapi.iframes",q);return t?(F=Date.now(),_.NU({library:t,loadStartMs:F,loadEndMs:F})):F.gapiLoader_.load("gapi.iframes",q)},jmL=function(F,q,t,u,J,g){var Y=!1;
Y=Y===void 0?!1:Y;a0v(F,yp(q.ownerDocument)).then(function(Q){var e=Q.library;F.gapiIframesResolver_.resolve(e);Q=F.gapiPickerIframeResolver_;var r=Q.resolve,N=Y;N=N===void 0?!1:N;var w={};w["host-message-handler"]=t;F.hostMessageHandlerInternal_=w;var k=_.Lr(u);k=_.Lr(k);k=_.pn(_.Yd(_.Xz(new _.qU,k.scheme_),k.JSC$10024_domain_),k.JSC$10024_port_).toString();F.origin_=k;k=(new rNJ).setUrl(u);k.JSC$10039_obj_.where=q;k.JSC$10039_obj_.allowPost=N;k.JSC$10039_obj_.messageHandlers=w;N=_.S6("makeWhiteListIframesFilter",
e)([F.origin_]);k.JSC$10039_obj_.messageHandlersFilter=N;J!=null&&(k.JSC$10039_obj_.id=J);g!=null&&(k.JSC$10039_obj_.rpctoken=g);N=R$j(k);N.JSC$10036_obj_.style={display:"block","min-width":"100%",width:"1px"};N.JSC$10036_obj_.height="100%";R$j(k).value().allow="camera 'src' "+F.origin_;e=e.getContext().openChild(k.value());r.call(Q,e)},function(Q){F.gapiIframesResolver_.reject(Q);
F.gapiPickerIframeResolver_.reject(Q)});
return F.gapiPickerIframeResolver_.promise},cU1=function(F,q){return _.IR([F.gapiIframesResolver_.promise,
F.gapiPickerIframeResolver_.promise]).then(function(t){var u=_.X(t);t=u.next().value;return(u=u.next().value)?u.send("picker-message-handler",q,void 0,_.S6("makeWhiteListIframesFilter",t)([F.origin_])):_.mW(Error("Za"))})};
eEA.prototype.disposeInternal=function(){FIw(this);_.OP.prototype.disposeInternal.call(this)};
var FIw=function(F){F.gapiPickerIframeResolver_.promise.then(function(q){q&&(q.unregister("host-message-handler"),delete F.hostMessageHandlerInternal_["host-message-handler"])})};var qIv=function(){this.JSC$10126_nextId=0};var u41=function(F,q){switch(F.action){case "select-contacts":F=t1C(F.contacts);break;case "visibility":F=F.visible;var t=new QO;F=_.$B(t,1,7).setVisible(F);t={};t["iframe-command"]=F.serialize();F=t;break;default:F=null}return F?cU1(q,F):_.NU()},t1C=function(F){if(!F||F.length==0)return null;
var q=new QO;_.$B(q,1,11);var t=new qIv;F.forEach(function(u){if(u.email){var J=new G3;J=_.Kw(J,2,u.name?u.name:u.email);var g=new JQw;u=_.mDq(g,1,_.rJ,u.email,_.EC);u=_.My(J,27,u);J=new qSv;g=":"+(t.JSC$10126_nextId++).toString(36);J=_.Kw(J,1,g);J=_.$B(J,2,12);u=_.My(u,1,J)}else u=null;u&&oJ(q,7,G3,u)});
F={};F["iframe-command"]=q.serialize();return F};_.JDC=function(){if(n8P){var F=/Windows NT ([0-9.]+)/;return(F=F.exec(_.NA()))?F[1]:"0"}return _.o8u?(F=/1[0|1][_.][0-9_.]+/,(F=F.exec(_.NA()))?F[0].replace(/_/g,"."):"10"):iVP?(F=/Android\s+([^\);]+)(\)|;)/,(F=F.exec(_.NA()))?F[1]:""):TVq||Gio||D9M?(F=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(F=F.exec(_.NA()))?F[1].replace(/_/g,"."):""):""}();var d3;d3=function(F){return(F=F.exec(_.NA()))?F[1]:""};
_.sew=function(){if(_.RC)return d3(/Firefox\/([0-9.]+)/);if(_.p4||qE||kiM)return I7P;if(_.rd){if(_.Py()||_.wyq()){var F=d3(/CriOS\/([0-9.]+)/);if(F)return F}return d3(/Chrome\/([0-9.]+)/)}if(_.dN&&!_.Py())return d3(/Version\/([0-9.]+)/);if(PCP||xpM){if(F=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.NA()))return F[1]+"."+F[2]}else if(yw$)return(F=d3(/Android\s+([0-9.]+)/))?F:d3(/Version\/([0-9.]+)/);return""}();var gwC=function(){};
_.Ja(gwC);gwC.prototype.nextId_=0;_.VV=function(F){return":"+(F.nextId_++).toString(36)};var U5=function(F){_.xD.call(this);this.JSC$10134_dom_=F||Wn();this.JSC$10134_id_=null;this.inDocument_=!1;this.JSC$10134_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.gd(U5,_.xD);U5.prototype.idGenerator_=gwC.getInstance();U5.prototype.getId=function(){return this.JSC$10134_id_||(this.JSC$10134_id_=_.VV(this.idGenerator_))};
U5.prototype.getElement=function(){return this.JSC$10134_element_};
var Sj=function(F){F.googUiComponentHandler_||(F.googUiComponentHandler_=new _.Qb(F));return F.googUiComponentHandler_},lkO=function(F,q){if(F==q)throw Error("$a");
var t;if(t=q&&F.parent_&&F.JSC$10134_id_){t=F.parent_;var u=F.JSC$10134_id_;t=t.childIndex_&&u?_.m7.get(t.childIndex_,u)||null:null}if(t&&F.parent_!=q)throw Error("$a");F.parent_=q;U5.superClass_.setParentEventTarget.call(F,q)};
U5.prototype.setParentEventTarget=function(F){if(this.parent_&&this.parent_!=F)throw Error("ab");U5.superClass_.setParentEventTarget.call(this,F)};
U5.prototype.JSC$10136_createDom=function(){this.JSC$10134_element_=this.JSC$10134_dom_.createElement("DIV")};
U5.prototype.render=function(F){XtC(this,F)};
var XtC=function(F,q,t){if(F.inDocument_)throw Error("bb");F.JSC$10134_element_||F.JSC$10136_createDom();q?q.insertBefore(F.JSC$10134_element_,t||null):F.JSC$10134_dom_.JSC$9319_document_.body.appendChild(F.JSC$10134_element_);F.parent_&&!F.parent_.inDocument_||F.enterDocument()};
_.l=U5.prototype;_.l.decorate=function(F){if(this.inDocument_)throw Error("bb");if(F&&this.canDecorate(F)){this.wasDecorated_=!0;var q=_.Cs(F);this.JSC$10134_dom_&&this.JSC$10134_dom_.JSC$9319_document_==q||(this.JSC$10134_dom_=Wn(F));this.decorateInternal(F);this.enterDocument()}else throw Error("cb");};
_.l.canDecorate=function(){return!0};
_.l.decorateInternal=function(F){this.JSC$10134_element_=F};
_.l.enterDocument=function(){this.inDocument_=!0;YIw(this,function(F){!F.inDocument_&&F.getElement()&&F.enterDocument()})};
_.l.exitDocument=function(){YIw(this,function(F){F.inDocument_&&F.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.l.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);YIw(this,function(F){F.dispose()});
!this.wasDecorated_&&this.JSC$10134_element_&&_.Mq(this.JSC$10134_element_);this.parent_=this.model_=this.JSC$10134_element_=this.childIndex_=this.children_=null;U5.superClass_.disposeInternal.call(this)};
_.l.getModel=function(){return this.model_};
_.l.addChild=function(F,q){var t=this.children_?this.children_.length:0;if(F.inDocument_&&(q||!this.inDocument_))throw Error("bb");if(t<0||t>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);F.parent_==this?(_.m7.set(this.childIndex_,F.getId(),F),_.yC(this.children_,F)):_.m7.add(this.childIndex_,F.getId(),F);lkO(F,this);_.Tf_(this.children_,t,0,F);F.inDocument_&&this.inDocument_&&F.parent_==this?(q=this.getContentElement(),
(q.childNodes[t]||null)!=F.getElement()&&(F.getElement().parentElement==q&&q.removeChild(F.getElement()),t=q.childNodes[t]||null,q.insertBefore(F.getElement(),t))):q?(this.JSC$10134_element_||this.JSC$10136_createDom(),t=this.children_?this.children_[t+1]||null:null,XtC(F,this.getContentElement(),t?t.JSC$10134_element_:null)):this.inDocument_&&!F.inDocument_&&F.JSC$10134_element_&&F.JSC$10134_element_.parentNode&&F.JSC$10134_element_.parentNode.nodeType==1&&F.enterDocument()};
_.l.getContentElement=function(){return this.JSC$10134_element_};
var YIw=function(F,q){F.children_&&F.children_.forEach(q,void 0)};
U5.prototype.removeChild=function(F,q){if(F){var t=typeof F==="string"?F:F.getId();F=this.childIndex_&&t?_.m7.get(this.childIndex_,t)||null:null;t&&F&&(_.m7.remove(this.childIndex_,t),_.yC(this.children_,F),q&&(F.exitDocument(),F.JSC$10134_element_&&_.Mq(F.JSC$10134_element_)),lkO(F,null))}if(!F)throw Error("eb");return F};_.gd(u4t,t1W);_.gd(JDW,t1W);var ptO;_.m7.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var Qen=function(F,q){q?F.setAttribute("role",q):F.removeAttribute("role")},hk=function(F,q,t){Array.isArray(t)&&(t=t.join(" "));
var u="aria-"+q;t===""||t==void 0?(ptO||(t={},ptO=(t.atomic=!1,t.autocomplete="none",t.dropeffect="none",t.haspopup=!1,t.live="off",t.multiline=!1,t.multiselectable=!1,t.orientation="vertical",t.readonly=!1,t.relevant="additions text",t.required=!1,t.sort="none",t.busy=!1,t.disabled=!1,t.hidden=!1,t.invalid="false",t)),t=ptO,q in t?F.setAttribute(u,t[q]):F.removeAttribute(u)):F.setAttribute(u,t)};var eEn;_.Kn=function(F,q,t){_.xD.call(this);this.target=F;this.handle=q||F;this.limits=t||new UN(NaN,NaN,NaN,NaN);this.JSC$10139_document_=_.Cs(F);this.JSC$10139_eventHandler_=new _.Qb(this);_.kW(this,this.JSC$10139_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;_.Ic(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=eEn};
_.gd(_.Kn,_.xD);eEn=_.uu.document&&_.uu.document.documentElement&&!!_.uu.document.documentElement.setCapture&&!!_.uu.document.releaseCapture;_.Ztf=function(F,q){F.hysteresisDistanceSquared_=Math.pow(q,2)};
_.l=_.Kn.prototype;_.l.setEnabled=function(F){this.enabled_=F};
_.l.disposeInternal=function(){_.Kn.superClass_.disposeInternal.call(this);_.Pr(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10139_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10139_document_.releaseCapture();this.handle=this.target=null};
_.l.startDrag=function(F){var q=F.type=="mousedown";if(!this.enabled_||this.dragging_||q&&(F.event_.button!=0||_.o8u&&F.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new BL("start",this,F.clientX,F.clientY,F)))this.dragging_=!0,q&&F.preventDefault();else return;else q&&F.preventDefault();q=this.JSC$10139_document_;var t=q.documentElement,u=!this.useSetCapture_;this.JSC$10139_eventHandler_.listen(q,["touchmove","mousemove"],this.handleMove_,
{capture:u,passive:!1});this.JSC$10139_eventHandler_.listen(q,["touchend","mouseup"],this.endDrag,u);this.useSetCapture_?(t.setCapture(!1),this.JSC$10139_eventHandler_.listen(t,"losecapture",this.endDrag)):this.JSC$10139_eventHandler_.listen(yp(q),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10139_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,u);this.clientX=this.startX=F.clientX;this.clientY=this.startY=F.clientY;this.screenX=F.screenX;this.screenY=F.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=D4(Wn(this.JSC$10139_document_))}};
_.l.endDrag=function(F,q){this.JSC$10139_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10139_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new BL("end",this,F.clientX,F.clientY,F,REE(this,this.deltaX),rDf(this,this.deltaY),q||F.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.l.handleMove_=function(F){if(this.enabled_){var q=F.clientX-this.clientX,t=F.clientY-this.clientY;this.clientX=F.clientX;this.clientY=F.clientY;this.screenX=F.screenX;this.screenY=F.screenY;if(!this.dragging_){var u=this.startX-this.clientX,J=this.startY-this.clientY;if(u*u+J*J>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new BL("start",this,F.clientX,F.clientY,F)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(F);return}}t=NBL(this,q,t);q=t.x;t=t.y;this.dragging_&&this.dispatchEvent(new BL("beforedrag",
this,F.clientX,F.clientY,F,q,t))&&(wt1(this,F,q,t),F.preventDefault())}};
var NBL=function(F,q,t){var u=D4(Wn(F.JSC$10139_document_));q+=u.x-F.pageScroll.x;t+=u.y-F.pageScroll.y;F.pageScroll=u;F.deltaX+=q;F.deltaY+=t;return new _.bQ(REE(F,F.deltaX),rDf(F,F.deltaY))};
_.Kn.prototype.onScroll_=function(F){var q=NBL(this,0,0);F.clientX=this.clientX;F.clientY=this.clientY;wt1(this,F,q.x,q.y)};
var wt1=function(F,q,t,u){F.target.style.left=t+"px";F.target.style.top=u+"px";F.dispatchEvent(new BL("drag",F,q.clientX,q.clientY,q,t,u))},REE=function(F,q){var t=F.limits;
F=isNaN(t.left)?null:t.left;t=isNaN(t.width)?0:t.width;return Math.min(F!=null?F+t:Infinity,Math.max(F!=null?F:-Infinity,q))},rDf=function(F,q){var t=F.limits;
F=isNaN(t.top)?null:t.top;t=isNaN(t.height)?0:t.height;return Math.min(F!=null?F+t:Infinity,Math.max(F!=null?F:-Infinity,q))};
_.Kn.prototype.isDragging=function(){return this.dragging_};
var BL=function(F,q,t,u,J,g,Y){_.Gw.call(this,F);this.clientX=t;this.clientY=u;this.browserEvent=J;this.left=g!==void 0?g:q.deltaX;this.top=Y!==void 0?Y:q.deltaY};
_.gd(BL,_.Gw);var Ln=function(F){this.JSC$10146_map_=new Map;var q=arguments.length;if(q>1){if(q%2)throw Error("ka");for(var t=0;t<q;t+=2)this.set(arguments[t],arguments[t+1])}else F&&this.addAll(F)};
_.l=Ln.prototype;_.l.getCount=function(){return this.JSC$10146_map_.size};
_.l.getValues=function(){return Array.from(this.JSC$10146_map_.values())};
_.l.getKeys=function(){return Array.from(this.JSC$10146_map_.keys())};
_.l.containsKey=function(F){return this.JSC$10146_map_.has(F)};
_.l.containsValue=function(F){return this.getValues().some(function(q){return q==F})};
_.l.equals=function(F,q){var t=this;q=q===void 0?function(u,J){return u===J}:q;
return this===F?!0:this.JSC$10146_map_.size!=F.getCount()?!1:this.getKeys().every(function(u){return q(t.JSC$10146_map_.get(u),F.get(u))})};
_.l.isEmpty=function(){return this.JSC$10146_map_.size==0};
_.l.clear=function(){this.JSC$10146_map_.clear()};
_.l.remove=function(F){return this.JSC$10146_map_.delete(F)};
_.l.get=function(F,q){return this.JSC$10146_map_.has(F)?this.JSC$10146_map_.get(F):q};
_.l.set=function(F,q){this.JSC$10146_map_.set(F,q);return this};
_.l.addAll=function(F){if(F instanceof Ln){F=_.X(F.JSC$10146_map_);for(var q=F.next();!q.done;q=F.next()){var t=_.X(q.value);q=t.next().value;t=t.next().value;this.JSC$10146_map_.set(q,t)}}else if(F)for(F=_.X(Object.entries(F)),q=F.next();!q.done;q=F.next())t=_.X(q.value),q=t.next().value,t=t.next().value,this.JSC$10146_map_.set(q,t)};
_.l.forEach=function(F,q){var t=this;q=q===void 0?this:q;this.JSC$10146_map_.forEach(function(u,J){return F.call(q,u,J,t)})};
_.l.clone=function(){return new Ln(this)};(function(){for(var F=["ms","moz","webkit","o"],q,t=0;q=F[t]&&!_.uu.requestAnimationFrame;++t)_.uu.requestAnimationFrame=_.uu[q+"RequestAnimationFrame"],_.uu.cancelAnimationFrame=_.uu[q+"CancelAnimationFrame"]||_.uu[q+"CancelRequestAnimationFrame"];if(!_.uu.requestAnimationFrame){var u=0;_.uu.requestAnimationFrame=function(J){var g=(new Date).getTime(),Y=Math.max(0,16-(g-u));u=g+Y;return _.uu.setTimeout(function(){J(g+Y)},Y)};
_.uu.cancelAnimationFrame||(_.uu.cancelAnimationFrame=function(J){clearTimeout(J)})}})();
var itJ=[[],[]],kAx=0,Ew1=!1,zE1=0,nwx=function(F,q){var t=zE1++,u={measureTask:{id:t,fn:F.measure,context:q},mutateTask:{id:t,fn:F.mutate,context:q},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(u.args||(u.args=[]),u.args.length=0,u.args.push.apply(u.args,arguments),u.args.push(u.state)):u.args&&u.args.length!=0?(u.args[0]=u.state,u.args.length=1):u.args=[u.state];u.isScheduled||(u.isScheduled=!0,itJ[kAx].push(u));Ew1||(Ew1=!0,window.requestAnimationFrame(owz))}},owz=
function(){Ew1=!1;
var F=itJ[kAx],q=F.length;kAx=(kAx+1)%2;for(var t,u=0;u<q;++u){t=F[u];var J=t.measureTask;t.isScheduled=!1;J.fn&&J.fn.apply(J.context,t.args)}for(u=0;u<q;++u)t=F[u],J=t.mutateTask,t.isScheduled=!1,J.fn&&J.fn.apply(J.context,t.args),t.state={};F.length=0};var M11=_.LZ(["about:blank"]),TBJ=_.LZ(["javascript:undefined"]),GAr=_.RV(M11);_.PS(GAr);var DEJ=_.RV(TBJ);_.PS(DEJ);var fn=function(F){_.xD.call(this);this.JSC$10152_element_=F;this.listenKeyIn_=_.Ic(this.JSC$10152_element_,"focus",this,!0);this.listenKeyOut_=_.Ic(this.JSC$10152_element_,"blur",this,!0)};
_.gd(fn,_.xD);fn.prototype.handleEvent=function(F){var q=new _.D6(F.event_);q.type=F.type=="focusin"||F.type=="focus"?"focusin":"focusout";this.dispatchEvent(q)};
fn.prototype.disposeInternal=function(){fn.superClass_.disposeInternal.call(this);xb(this.listenKeyIn_);xb(this.listenKeyOut_);delete this.JSC$10152_element_};var WId=function(F,q){this.JSC$10155_element_=F;this.JSC$10155_dom_=q};var aa=function(F,q){U5.call(this,q);this.useIframeMask_=!!F;this.lastFocus_=null;this.resizeBackgroundTask_=nwx({mutate:this.resizeBackground_},this);nwx({mutate:this.updateModalAndBackground_},this)};
_.gd(aa,U5);_.l=aa.prototype;_.l.focusHandler_=null;_.l.visible_=!1;_.l.bgEl_=null;_.l.bgIframeEl_=null;_.l.tabCatcherElement_=null;_.l.backwardTabWrapInProgress_=!1;_.l.getCssClass=function(){return"goog-modalpopup"};
_.l.getBackgroundElement=function(){return this.bgEl_};
_.l.JSC$10136_createDom=function(){aa.superClass_.JSC$10136_createDom.call(this);var F=this.getElement(),q=eW(this.getCssClass()).split(" ");cr(F,q);F.tabIndex=0;_.jr(F,!1);Otn(this);PoL(this)};
var Otn=function(F){if(F.useIframeMask_&&!F.bgIframeEl_){var q=F.JSC$10134_dom_.JSC$9321_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.aK(q,GAr);F.bgIframeEl_=q;F.bgIframeEl_.className=F.getCssClass()+"-bg";_.jr(F.bgIframeEl_,!1);n7r(F.bgIframeEl_,0)}F.bgEl_||(F.bgEl_=F.JSC$10134_dom_.JSC$9321_createDom("DIV",F.getCssClass()+"-bg"),_.jr(F.bgEl_,!1))},PoL=function(F){F.tabCatcherElement_||(F.tabCatcherElement_=F.JSC$10134_dom_.createElement("SPAN"),_.jr(F.tabCatcherElement_,
!1),F.tabCatcherElement_.tabIndex=0,F.tabCatcherElement_.style.position="absolute")};
_.l=aa.prototype;_.l.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.l.canDecorate=function(F){return!!F&&F.tagName=="DIV"};
_.l.decorateInternal=function(F){aa.superClass_.decorateInternal.call(this,F);F=eW(this.getCssClass()).split(" ");cr(this.getElement(),F);Otn(this);PoL(this);this.getElement().tabIndex=0;_.jr(this.getElement(),!1)};
_.l.enterDocument=function(){this.bgIframeEl_&&_.y2(this.bgIframeEl_,this.getElement());_.y2(this.bgEl_,this.getElement());aa.superClass_.enterDocument.call(this);_.CR(this.tabCatcherElement_,this.getElement());this.focusHandler_=new fn(this.JSC$10134_dom_.JSC$9319_document_);Sj(this).listen(this.focusHandler_,"focusin",this.onFocus);xEv(this,!1)};
_.l.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.sP(this.focusHandler_);aa.superClass_.exitDocument.call(this);_.Mq(this.bgIframeEl_);_.Mq(this.bgEl_);_.Mq(this.tabCatcherElement_)};
_.l.setVisible=function(F){if(F!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&xEv(this,F),F){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10134_dom_.JSC$9319_document_.activeElement}catch(J){}this.updateModalAndBackground_();Sj(this).listen(this.JSC$10134_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10134_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);ADj(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)P9(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Sj(this).unlisten(this.JSC$10134_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10134_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)P9(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var q=this.JSC$10134_dom_,t=q.JSC$9319_document_.body,u=q.JSC$9319_document_.activeElement||t;if(!this.lastFocus_||this.lastFocus_==t){this.lastFocus_=null;break a}(u==t||q.contains(this.getElement(),u))&&this.lastFocus_.focus()}catch(J){}this.lastFocus_=
null}}};
var xEv=function(F,q){F.modalAriaVisibilityHelper_||(F.modalAriaVisibilityHelper_=new WId(F.JSC$10134_element_,F.JSC$10134_dom_));F=F.modalAriaVisibilityHelper_;if(q){F.hiddenElements_||(F.hiddenElements_=[]);q=F.JSC$10155_dom_.getChildren(F.JSC$10155_dom_.JSC$9319_document_.body);for(var t=0;t<q.length;t++){var u=q[t],J;if(J=u!=F.JSC$10155_element_)J=u.getAttribute("aria-hidden"),J=!(J==null||J==void 0?0:String(J));J&&(hk(u,"hidden",!0),F.hiddenElements_.push(u))}}else if(F.hiddenElements_){for(q=
0;q<F.hiddenElements_.length;q++)F.hiddenElements_[q].removeAttribute("aria-hidden");F.hiddenElements_=null}};
aa.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var ADj=function(F,q){F.bgIframeEl_&&_.jr(F.bgIframeEl_,q);F.bgEl_&&_.jr(F.bgEl_,q);_.jr(F.getElement(),q);_.jr(F.tabCatcherElement_,q)};
_.l=aa.prototype;_.l.onShow=function(){this.dispatchEvent("show")};
_.l.onHide=function(){ADj(this,!1);this.dispatchEvent("hide")};
_.l.isVisible=function(){return this.visible_};
_.l.focus=function(){this.focusElement_()};
_.l.resizeBackground_=function(){this.bgIframeEl_&&_.jr(this.bgIframeEl_,!1);this.bgEl_&&_.jr(this.bgEl_,!1);var F=this.JSC$10134_dom_.JSC$9319_document_;var q=_.G0(yp(this.JSC$10134_dom_.JSC$9319_document_)||window);var t=Math.max(q.width,Math.max(F.body.scrollWidth,F.documentElement.scrollWidth));F=Math.max(q.height,Math.max(F.body.scrollHeight,F.documentElement.scrollHeight));this.bgIframeEl_&&(_.jr(this.bgIframeEl_,!0),_.kvd(this.bgIframeEl_,t,F));this.bgEl_&&(_.jr(this.bgEl_,!0),_.kvd(this.bgEl_,
t,F))};
_.l.reposition=function(){var F;if(_.ihj(this.getElement())=="fixed")var q=F=0;else q=D4(this.JSC$10134_dom_),F=q.x,q=q.y;var t=z9L(this.getElement());var u=_.G0(yp(this.JSC$10134_dom_.JSC$9319_document_)||window);F=Math.max(F+u.width/2-t.width/2,0);q=Math.max(q+u.height/2-t.height/2,0);KR(this.getElement(),F,q);KR(this.tabCatcherElement_,F,q)};
_.l.onFocus=function(F){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():F.target==this.tabCatcherElement_&&mX(this.focusElement_,0,this)};
_.l.focusElement_=function(){try{this.getElement().focus()}catch(F){}};
_.l.disposeInternal=function(){_.sP(this.popupShowTransition_);this.popupShowTransition_=null;_.sP(this.popupHideTransition_);this.popupHideTransition_=null;_.sP(this.bgShowTransition_);this.bgShowTransition_=null;_.sP(this.bgHideTransition_);this.bgHideTransition_=null;aa.superClass_.disposeInternal.call(this)};var Cr=function(F,q,t){aa.call(this,q,t);this.JSC$10165_class_=F||"modal-dialog";this.buttons_=(new jj).addButton(vwd,!0).addButton(IkO,!1,!0)};
_.gd(Cr,aa);_.l=Cr.prototype;_.l.escapeToCancel_=!0;_.l.hasTitleCloseButton_=!0;_.l.modal_=!0;_.l.draggable_=!0;_.l.backgroundElementOpacity_=.5;_.l.title_="";_.l.JSC$10167_dragger_=null;_.l.JSC$10167_disposeOnHide_=!1;_.l.titleEl_=null;_.l.titleTextEl_=null;_.l.titleTextId_=null;_.l.titleCloseEl_=null;_.l.contentEl_=null;_.l.buttonEl_=null;_.l.getCssClass=function(){return this.JSC$10165_class_};
_.l.setTitle=function(F){this.title_=F;this.titleTextEl_&&_.V2(this.titleTextEl_,F)};
_.l.getTitle=function(){return this.title_};
_.l.getContent=function(){return""};
_.l.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var HtC=function(F){F.getElement()||F.render();return F.getElement()};
Cr.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Cr.superClass_.getBackgroundElement.call(this)};
var mEv=function(F,q){F.backgroundElementOpacity_=q;F.getElement()&&(q=F.getBackgroundElement())&&n7r(q,F.backgroundElementOpacity_)};
Cr.prototype.setDraggable=function(F){this.draggable_=F;$Ee(this,F&&this.inDocument_)};
Cr.prototype.handleDrag=function(){};
var $Ee=function(F,q){var t=eW(F.JSC$10165_class_+"-title-draggable").split(" ");F.getElement()&&(q?cr(F.titleEl_,t):QvE(F.titleEl_,t));q&&!F.JSC$10167_dragger_?(q=new _.Kn(F.getElement(),F.titleEl_),F.JSC$10167_dragger_=q,cr(F.titleEl_,t),_.Ic(F.JSC$10167_dragger_,"start",F.setDraggerLimits_,!1,F),_.Ic(F.JSC$10167_dragger_,"drag",F.handleDrag,!1,F)):!q&&F.JSC$10167_dragger_&&(F.JSC$10167_dragger_.dispose(),F.JSC$10167_dragger_=null)};
_.l=Cr.prototype;
_.l.JSC$10136_createDom=function(){Cr.superClass_.JSC$10136_createDom.call(this);var F=this.getElement(),q=this.JSC$10134_dom_;this.titleTextId_=this.getId();var t=this.getId()+".contentEl";this.titleEl_=q.JSC$9321_createDom("DIV",this.JSC$10165_class_+"-title",this.titleTextEl_=q.JSC$9321_createDom("SPAN",{className:this.JSC$10165_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=q.JSC$9321_createDom("SPAN",this.JSC$10165_class_+"-title-close"));cEx(F,this.titleEl_,this.contentEl_=
q.JSC$9321_createDom("DIV",{className:this.JSC$10165_class_+"-content",id:t}),this.buttonEl_=q.JSC$9321_createDom("DIV",this.JSC$10165_class_+"-buttons"));Qen(this.titleTextEl_,"heading");Qen(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;hk(this.titleCloseEl_,"label","Close");Qen(F,"dialog");hk(F,"labelledby",this.titleTextId_||"");_.jr(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(F=this.buttons_,F.JSC$10168_element_=this.buttonEl_,F.render());_.jr(this.buttonEl_,!!this.buttons_);
mEv(this,this.backgroundElementOpacity_)};
_.l.decorateInternal=function(F){Cr.superClass_.decorateInternal.call(this,F);F=this.getElement();var q=this.JSC$10165_class_+"-content";this.contentEl_=vk(document,null,q,F)[0];this.contentEl_||(this.contentEl_=this.JSC$10134_dom_.JSC$9321_createDom("DIV",q),F.appendChild(this.contentEl_));q=this.JSC$10165_class_+"-title";var t=this.JSC$10165_class_+"-title-text",u=this.JSC$10165_class_+"-title-close";(this.titleEl_=vk(document,null,q,F)[0])?(this.titleTextEl_=vk(document,null,t,this.titleEl_)[0],
this.titleCloseEl_=vk(document,null,u,this.titleEl_)[0]):(this.titleEl_=this.JSC$10134_dom_.JSC$9321_createDom("DIV",q),F.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=Zhe(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Hk("SPAN",{className:t,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;hk(F,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10134_dom_.JSC$9321_createDom("SPAN",u),this.titleEl_.appendChild(this.titleCloseEl_));_.jr(this.titleCloseEl_,this.hasTitleCloseButton_);q=this.JSC$10165_class_+"-buttons";(this.buttonEl_=vk(document,null,q,F)[0])?(this.buttons_=new jj(this.JSC$10134_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10134_dom_.JSC$9321_createDom("DIV",q),F.appendChild(this.buttonEl_),this.buttons_&&(F=this.buttons_,F.JSC$10168_element_=this.buttonEl_,F.render()),_.jr(this.buttonEl_,
!!this.buttons_));mEv(this,this.backgroundElementOpacity_)};
_.l.enterDocument=function(){Cr.superClass_.enterDocument.call(this);Sj(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Sj(this).listen(this.buttonEl_,"click",this.onButtonClick_);$Ee(this,this.draggable_);Sj(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var F=this.getElement();Qen(F,"dialog");this.titleTextEl_.id!==""&&hk(F,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){F=this.JSC$10134_dom_;
var q=this.getBackgroundElement();F.removeNode(this.bgIframeEl_);F.removeNode(q)}this.isVisible()&&xEv(this,!1)}};
_.l.exitDocument=function(){this.isVisible()&&this.setVisible(!1);$Ee(this,!1);Cr.superClass_.exitDocument.call(this)};
_.l.setVisible=function(F){F!=this.isVisible()&&(this.inDocument_||this.render(),Cr.superClass_.setVisible.call(this,F))};
_.l.onShow=function(){Cr.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.l.onHide=function(){Cr.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10167_disposeOnHide_&&this.dispose()};
_.l.setDraggerLimits_=function(){var F=this.JSC$10134_dom_.JSC$9319_document_,q=_.G0(yp(F)||window),t=Math.max(F.body.scrollWidth,q.width);F=Math.max(F.body.scrollHeight,q.height);var u=z9L(this.getElement());_.ihj(this.getElement())=="fixed"?this.JSC$10167_dragger_.limits=new UN(0,0,Math.max(0,q.width-u.width),Math.max(0,q.height-u.height)):this.JSC$10167_dragger_.limits=new UN(0,0,t-u.width,F-u.height)};
_.l.onTitleCloseClick_=function(){btr(this)};
var btr=function(F){if(F.hasTitleCloseButton_){var q=F.buttons_,t=q&&q.cancelButton_;t?(q=q.get(t),F.dispatchEvent(new cL(t,q))&&F.setVisible(!1)):F.setVisible(!1)}},yDe=function(F){F.hasTitleCloseButton_=!1;
F.titleCloseEl_&&_.jr(F.titleCloseEl_,F.hasTitleCloseButton_)};
Cr.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Cr.superClass_.disposeInternal.call(this)};
Cr.prototype.onButtonClick_=function(F){a:{for(F=F.target;F!=null&&F!=this.buttonEl_;){if(F.tagName=="BUTTON")break a;F=F.parentNode}F=null}if(F&&!F.disabled){F=F.name;var q=this.buttons_.get(F);this.dispatchEvent(new cL(F,q))&&this.setVisible(!1)}};
Cr.prototype.onKey_=function(F){var q=!1,t=!1,u=this.buttons_,J=F.target;if(F.type=="keydown")if(this.escapeToCancel_&&F.keyCode==27){var g=u&&u.cancelButton_;J=J.tagName=="SELECT"&&!J.disabled;g&&!J?(t=!0,q=u.get(g),q=this.dispatchEvent(new cL(g,q))):J||(q=!0)}else{if(F.keyCode==9&&F.shiftKey&&J==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(N){}mX(this.resetBackwardTabWrap_,0,this)}}else if(F.keyCode==13){if(J.tagName=="BUTTON"&&!J.disabled)g=J.name;
else if(J==this.titleCloseEl_)btr(this);else if(u){var Y=u.defaultButton_,Q;if(Q=Y)a:{Q=T4("BUTTON",u.JSC$10168_element_);for(var e,r=0;e=Q[r];r++)if(e.name==Y||e.id==Y){Q=e;break a}Q=null}J=(J.tagName=="TEXTAREA"||J.tagName=="SELECT"||J.tagName=="A")&&!J.disabled;!Q||Q.disabled||J||(g=Y)}g&&u&&(t=!0,q=this.dispatchEvent(new cL(g,String(u.get(g)))))}else J!=this.titleCloseEl_||F.keyCode!=32&&F.key!=" "||btr(this);if(q||t)F.stopPropagation(),F.preventDefault();q&&this.setVisible(!1)};
var cL=function(F,q){this.type="dialogselect";this.key=F;this.caption=q};
_.gd(cL,_.Gw);var jj=function(F){Ln.call(this);F||Wn();this.cancelButton_=this.JSC$10168_element_=this.defaultButton_=null};
_.gd(jj,Ln);_.l=jj.prototype;_.l.clear=function(){Ln.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.l.set=function(F,q,t,u){Ln.prototype.set.call(this,F,q);t&&(this.defaultButton_=F);u&&(this.cancelButton_=F);return this};
_.l.addButton=function(F,q,t){return this.set(F.key,F.caption,q,t)};
_.l.render=function(){if(this.JSC$10168_element_){_.JK(this.JSC$10168_element_,NBq);var F=Wn(this.JSC$10168_element_);this.forEach(function(q,t){q=F.JSC$9321_createDom("BUTTON",{name:t},q);t==this.defaultButton_&&(q.className="goog-buttonset-default");this.JSC$10168_element_.appendChild(q)},this)}};
_.l.decorate=function(F){if(F&&F.nodeType==1){this.JSC$10168_element_=F;F=T4("BUTTON",this.JSC$10168_element_);for(var q,t,u,J=0;q=F[J];J++)if(t=q.name||q.id,u=Zhe(q)||q.value,t){var g=J==0;this.set(t,u,g,q.name=="cancel");g&&_.gC(q,"goog-buttonset-default")}}};
_.l.getElement=function(){return this.JSC$10168_element_};
var vwd={key:"ok",caption:"OK"},IkO={key:"cancel",caption:"Cancel"},CoE={key:"yes",caption:"Yes"},dEO={key:"no",caption:"No"},V1C={key:"save",caption:"Save"},UEv={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new jj).addButton(vwd,!0,!0),(new jj).addButton(vwd,!0).addButton(IkO,!1,!0),(new jj).addButton(CoE,!0).addButton(dEO,!1,!0),(new jj).addButton(CoE).addButton(dEO,!0).addButton(IkO,!1,!0),(new jj).addButton(UEv).addButton(V1C).addButton(IkO,!0,!0));_.gd(sev,Cr);_.gd(gwW,VS);var SIf=_.LZ(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),hEr=_.LZ(["//apis.google.com/js/rpc.js"]),rDy=_.RV(SIf),REo=_.RV(hEr),XtW=null;var UP=function(F,q){_.xD.call(this);this.JSC$10177_element_=F;F=_.F1(this.JSC$10177_element_)?this.JSC$10177_element_:this.JSC$10177_element_?this.JSC$10177_element_.body:null;this.isRtl_=!!F&&_.M5n(F);this.listenKey_=_.Ic(this.JSC$10177_element_,_.QZ?"DOMMouseScroll":"mousewheel",this,q)};
_.gd(UP,_.xD);UP.prototype.handleEvent=function(F){var q=0,t=0,u=F.event_;u.type=="mousewheel"?(F=KIw(-u.wheelDelta),u.wheelDeltaX!==void 0?(q=KIw(-u.wheelDeltaX),t=KIw(-u.wheelDeltaY)):t=F):(F=u.detail,F>100?F=3:F<-100&&(F=-3),u.axis!==void 0&&u.axis===u.HORIZONTAL_AXIS?q=F:t=F);typeof this.maxDeltaX_==="number"&&(q=_.AX(q,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(t=_.AX(t,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(q=-q);q=new BBe(F,u,q,t);this.dispatchEvent(q)};
var KIw=function(F){return _.es&&(_.o8u||MX$)&&F%40!=0?F:F/40};
UP.prototype.disposeInternal=function(){UP.superClass_.disposeInternal.call(this);xb(this.listenKey_);this.listenKey_=null};
var BBe=function(F,q,t,u){_.D6.call(this,q);this.type="mousewheel";this.detail=F;this.deltaX=t;this.deltaY=u};
_.gd(BBe,_.D6);_.qF=function(F){var q="instance_";if(F.instance_&&F.hasOwnProperty(q))return F.instance_;q=new F;return F.instance_=q};var Zty;var LIj=_.LZ(["https://about:blank"]),fkv=_.LZ(['javascript:""']),akx=_.LZ(["about:blank"]);_.gd(cd,sev);_.l=cd.prototype;_.l.JSC$10185_url_="";_.l.JSC$10185_iframe_=null;_.l.iframeLoaded_=!1;_.l.loadedFired_=!1;_.l.callback_=function(){};
_.l.enterDocument=function(){cd.superClass_.enterDocument.call(this);QeA(this.getBackgroundElement(),Sj(this))};
_.l.render=function(F){var q=this;cd.superClass_.render.call(this,F);this.useGapi_?a0v(this.iframeManager_,window).then(function(){return jeJ(q)}).then(null,function(){q.callback_({action:"error"})}):cDv(this)};
var jeJ=function(F){var q=F.JSC$10134_dom_.JSC$9321_createDom("div",["picker-dialog-content","picker-frame"]);_.jr(q,!1);F.getContentElement().appendChild(q);return jmL(F.iframeManager_,q,function(t){var u=N$v(t["iframe-command"]);switch(u.getCommand()){case 1:t=F.callback_;u=_.Yw(u,pQ,2);var J="";switch(u.getStatus()){case 2:J="cancel";break;case 1:J="picked";break;case 3:J="error"}var g=_.XN(u,G3,2,_.YW(LDy));u=g.length===0?{action:J}:xh1(g,J,_.Yw(u,ZlE,7));t.call(F,u);F.setVisible(!1);break;case 4:yDe(F);
F.callback_({action:"loaded"});break;case 7:case 8:t=F.callback_;a:{J=u.getCommand();g=_.Yw(u,pQ,2);switch(J){case 7:J="uploadScheduled";break;case 8:J="uploadStateChange";break;default:u={};break a}u=_.XN(g,G3,2,_.YW(LDy));if(u.length===0)u={action:J};else{var Y=_.Yw(g,ZlE,7);g=Y&&_.xB(Y,1);Y=EEf(Y);u=nEv(u,J,g,Y)}}t.call(F,u)}},F.JSC$10185_url_,F.targetId_,F.rpcToken_).then(function(t){F.JSC$10185_iframe_=t.getIframeEl();
FHv(F);_.jr(F.JSC$10185_iframe_.parentElement,!0);_.gC(F.getElement(),"picker-dialog");qDr(F);return t})},cDv=function(F){F.JSC$10185_iframe_=F.JSC$10134_dom_.JSC$9321_createDom("IFRAME",{id:F.targetId_,
name:F.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.aK(F.JSC$10185_iframe_,tJr(F));_.gC(F.getElement(),"picker-dialog");F.getContentElement().appendChild(F.JSC$10185_iframe_);Sj(F).listen(F.JSC$10185_iframe_,"load",function(){return void FHv(F)});
F.JSC$10185_iframe_.src=F.JSC$10185_url_;qDr(F)},Jf1=function(F){u1x(F,(0,_.Pd)(function(q){q.setAuthToken(this.targetId_,this.rpcToken_)},F))},qDr=function(F){var q=_.fr(_.Lr(F.JSC$10185_url_),"title");
q&&F.setTitle(q)},tJr=function(F){return _.Ro$("Internet Explorer")>=7&&_.gf(F.JSC$10185_url_,"https")?_.RV(LIj):_.p4?_.RV(fkv):_.RV(akx)},FHv=function(F){Jf1(F);
F.iframeLoaded_=!0;F.JSC$10185_iframe_.tabIndex=0;F.isVisible()&&F.focus()};
cd.prototype.handleKeydown_=function(F){F.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),F.stopPropagation(),F.preventDefault())};
var u1x=function(F,q){var t=F.JSC$10183_gadgetsDomHelper_;YIv(function(){q(t.getWindow().gadgets.rpc)},t)};
cd.prototype.setUrl=function(F){F=_.aX(new _.qU(F),"rpcService",this.targetId_);_.aX(F,"rpctoken",this.rpcToken_);_.ZJ(F,"rpctoken="+this.rpcToken_);_.Xz(F,"https");this.JSC$10185_url_=F.toString();this.JSC$10185_iframe_&&(this.JSC$10185_iframe_.src=this.JSC$10185_url_)};
var sJL=function(F,q){F.callback_=q;u1x(F,(0,_.Pd)(function(t){t.register(this.targetId_,(0,_.Pd)(this.handlePickerAction_,this))},F))};
cd.prototype.handlePickerAction_=function(F){var q=F.action;q=="loaded"&&(this.loadedFired_=!0,geL(this,new JDW(this.isVisible())),l_f(this),yDe(this),Sj(this).unlisten(this.JSC$10134_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10185_iframe_.tabIndex=0);q!="picked"&&q!="cancel"||this.setVisible(!1);this.callback_(F)};
var l_f=function(F){F.JSC$10185_appId_&&geL(F,new u4t(F.JSC$10185_appId_,window.location.protocol+"//"+window.location.host))};
cd.prototype.setRelayUrl=function(F){u1x(this,(0,_.Pd)(function(q){q.setRelayUrl(this.targetId_,F)},this))};
var geL=function(F,q){F.useGapi_&&u41(q,F.iframeManager_).then(null,function(){F.callback_({action:"error"})});
u1x(F,(0,_.Pd)(function(t){t.call(this.targetId_,"picker",null,q)},F))};
cd.prototype.resizePicker_=function(){var F=yp(this.JSC$10134_dom_.JSC$9319_document_)||window;if(_.fr(_.Lr(this.JSC$10185_url_),"ignoreLimits")=="true")F=new _.Ma(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.fr(_.Lr(this.JSC$10185_url_),"shadeDialog")=="true"){var q=HtC(this);q=TJ1(q);var t=_.G0(F);F=t.width-80;t=t.height-40;q&&(F-=q.left?q.left:0,F-=q.right?q.right:0,t-=q.top?q.top:0,t-=q.bottom?q.bottom:0);F=new _.Ma(F>0?F:0,t>0?t:0)}else(q=this.preferredDialogWidth_)?(q=Math.max(320,
Math.min(1051,q)),(t=this.preferredDialogHeight_)||(t=_.G0(F).height*.85),t=Math.max(480,Math.min(650,t))):(q=_.G0(F),t=q.width*.618,t=t<q.height?Math.round(Math.max(480,Math.min(650,t*.85))):Math.round(Math.max(480,Math.min(650,q.height*.85))),q=Math.round(t/.618)),F=_.G0(F),q=Math.min(q,Math.max(F.width,320)),t=Math.min(t,Math.max(F.height,480)),F=new _.Ma(q,t);_.kvd(this.getContentElement(),F);this.reposition()};
cd.prototype.reposition=function(){if(_.fr(_.Lr(this.JSC$10185_url_),"shadeDialog")=="true"){var F=z9L(this.getElement()),q=_.G0(this.JSC$10134_dom_.getWindow());F=Math.floor(q.width/2-F.width/2);q=HtC(this);if(q=TJ1(q)){var t=q.left?q.left:0;t+=q.right?q.right:0;F=Math.floor(F-t/2)}F=F>0?F:0;q=D4(this.JSC$10134_dom_).y;KR(this.getElement(),F,q)}else cd.superClass_.reposition.call(this)};
cd.prototype.setVisible=function(F){if(F!=this.isVisible()&&this.autoSizeDialog_){var q=this.JSC$10134_dom_.getWindow();F?(this.resizePicker_(),Sj(this).listen(q,"resize",this.resizePicker_),this.iframeLoaded_||Sj(this).listen(q,"keydown",this.handleKeydown_)):(Sj(this).unlisten(q,"resize",this.resizePicker_),this.iframeLoaded_||Sj(this).unlisten(q,"keydown",this.handleKeydown_))}cd.superClass_.setVisible.call(this,F);geL(this,new JDW(F))};
cd.prototype.focus=function(){cd.superClass_.focus.call(this);if(this.JSC$10185_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10185_iframe_.focus()}catch(F){}};var y8=function(F,q){q=q===void 0?cd:q;VS.call(this,F);this.pickerConstructor=q;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(F=window.location.origin)||(F=window.location.protocol+"//"+window.location.host);F&&this.urlParamMap_.set("origin",F);this.postProcessors_=[]};
_.M(y8,gwW);y8.prototype.JSC$10190_disposeOnHide_=!1;
y8.prototype.build=function(){this.JSC$10091_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10091_appId_);this.getRelayUrl()||this.setRelayUrl(_.QV(_.ZJ(_.ej(_.Lr(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var F=new this.pickerConstructor(X2x(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);F.JSC$10167_disposeOnHide_=this.JSC$10190_disposeOnHide_;
F.JSC$10185_appId_=this.JSC$10091_appId_;F.loadedFired_&&l_f(F);sJL(F,this.callback_);return F};
var YDf=function(F){F.urlParamMap_.set("multiselectEnabled","true");return F};
_.l=y8.prototype;_.l.getHeight=function(){return this.dialogHeight_};
_.l.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.l.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.l.getTitle=function(){return this.urlParamMap_.get("title")};
_.l.getWidth=function(){return this.dialogWidth_};
var p2z=function(F){F.JSC$10190_disposeOnHide_=void 0;return F};
y8.prototype.setRelayUrl=function(F){this.urlParamMap_.set("parent",F);return this};
var QJv=function(F,q){F.urlParamMap_.set("selectButtonLabel",q);return F};
y8.prototype.setSize=function(F,q){this.dialogWidth_=F;this.dialogHeight_=q;return this};
y8.prototype.setTitle=function(F){this.urlParamMap_.set("title",F);return this};
var X2x=function(F){F.postProcessors_.length&&F.urlParamMap_.set("pp",JSON.stringify(F.postProcessors_));F.urlParamMap_.set("nav",NNv(F.nav_));var q=new _.qU(F.getBaseUrl());F.urlParamMap_.forEach(function(t,u){_.aX(q,u,t)});
return q};var RFd=function(F,q){F.name!==void 0?(this.name=F.name,this.code=eFC[F.name]):(this.code=F=F.code,this.name=ZMz(F));_.Fq.call(this,H3j("%s %s",this.name,q))};
_.gd(RFd,_.Fq);var ZMz=function(F){var q=_.m7.findKey(eFC,function(t){return F==t});
if(q===void 0)throw Error("hb`"+F);return q},Fk={},eFC=(Fk.AbortError=3,Fk.EncodingError=5,Fk.InvalidModificationError=9,Fk.InvalidStateError=7,Fk.NotFoundError=1,Fk.NotReadableError=4,Fk.NoModificationAllowedError=6,Fk.PathExistsError=12,Fk.QuotaExceededError=10,Fk.SecurityError=2,Fk.SyntaxError=8,Fk.TypeMismatchError=11,Fk);var rfJ=function(F,q){_.Gw.call(this,F.type,q);this.event_=F};
_.gd(rfJ,_.Gw);var NOO=function(F,q,t){t===void 0&&(t=F.size);return F.slice?F.slice(q,t):null};var itu=new WeakMap,wtt=function(F,q){F=[F];for(var t=q.length-1;t>=0;--t)F.push(typeof q[t],q[t]);return F.join("\v")};_.Ewt(function(){if(!_.uu.Blob)return!1;var F=new Uint8Array(100);try{var q=new Blob([F])}catch(t){return!1}return q.size!=100?!1:!0});
var w2O=_.Ewt(function(){if(!_.uu.Blob)return!1;var F=new Uint8Array(100);try{var q=new Blob([F])}catch(t){return!1}return NOO(q,0,1)===null?!1:!0});_.uu.U3bHHf!=null||(_.uu.U3bHHf=0);_.uu.U3bHHf++;_.iMJ=new WeakMap;_.kmz=new WeakMap;var owC={};var tO=void 0;var M1t=Symbol("pb");var $E3=sd("WizInjectionContext_Dispatcher");var aSo=Symbol("qb");var EK,Tn;EK=function(){this.afterRenderCallbacks=null};
_.FjC=Symbol("rb");Tn=function(F){this.props=F;this.__unmounted=!1};
Tn.prototype.didPatch=function(){};
Tn.prototype.didMount=function(){};
Tn.prototype.didUnmount=function(){};
Tn.prototype.didUpdate=function(){};_.AD_=sd("WizInjectionContext_RootElement");var IkP=sd("WizInjectionContext_AppContext"),vwo=sd("WizInjectionContext_ModelRootElement"),HtW=sd("WizInjectionContext_RendererData"),mEM=sd("WizInjectionContext_InjectingConstructor"),xEM=sd("WizInjectionContext_AsyncDeps"),bt$={};var SIy=!1;var LI_={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:NVv,enableLazyTsx:wmf,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:rw_,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var l5=Object.assign({},{attributes:{},handleError:function(F){throw F;}},LI_);var EeE=Symbol("vb"),nq=Symbol("wb"),bMf=Symbol("xb"),mbo=Symbol("yb"),hFC=AE(function(F){return X6(F)&&EeE in F});var tJ$=Symbol("zb"),qg={},FHM=(qg[tJ$]=!0,qg.debugName="[component]",qg.getComponentStack=function(){for(var F=[],q=this;q;)u1f(q)&&F.push(q.debugName),q=q.parent;return F},qg.registerSignal=function(){},qg.registerEffect=function(){},qg);var YR=null,Qs=!1,l_y=1,Rv=Symbol("Db"),Ed={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var td=Symbol("Eb"),ul=Symbol("Fb"),ZV=Symbol("Gb"),rfu=Object.assign({},Ed,{value:td,dirty:!0,error:null,equal:Jft,kind:"computed",producerMustRecompute:function(F){return F.value===td||F.value===ul},
producerRecomputeValue:function(F){if(F.value===ul)throw Error("Z");var q=F.value;F.value=ul;var t=eFW(F),u=!1;try{var J=F.computation();pq(null);u=q!==td&&q!==ZV&&J!==ZV&&F.equal(q,J)}catch(g){J=ZV,F.error=g}finally{RFo(F,t)}u?F.value=q:(F.value=J,F.version++)}});var kmC=function(){throw Error();};var zFo=null,w2P=Object.assign({},Ed,{equal:Jft,value:void 0,kind:"signal"});Object.assign({},Ed,{value:td,dirty:!0,error:null,equal:Jft,kind:"linkedSignal",producerMustRecompute:function(F){return F.value===td||F.value===ul},
producerRecomputeValue:function(F){if(F.value===ul)throw Error("Z");var q=F.value;F.value=ul;var t=eFW(F);try{var u=F.source();var J=F.computation(u,q===td||q===ZV?void 0:{source:F.sourceValue,value:q});F.sourceValue=u}catch(g){J=ZV,F.error=g}finally{RFo(F,t)}q!==td&&J!==ZV&&F.equal(q,J)?F.value=q:(F.value=J,F.version++)}});Object.assign({},Ed,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(F){F.schedule!==null&&F.schedule(F.ref)},
hasRun:!1,cleanupFn:function(){}});var ne$=Symbol("Hb"),wP=Symbol("Ib");var i5=Array.isArray;var Af$;var zFE={},I_M=xbC(Object.assign({},{consumerAllowSignalWrites:!0},zFE)),o5=xbC(Object.assign({},{consumerAllowSignalWrites:!0},zFE));var M3=0,Ty=!1,Jd=function(){this.queue=new Set};
Jd.prototype.remove=function(F){this.queue.delete(F)};
Jd.prototype.clear=function(){this.queue.clear()};
var oee=function(){Jd.apply(this,arguments)};
_.M(oee,Jd);oee.prototype.schedule=function(F){this.queue.add(F)};
oee.prototype.flush=function(){if(this.queue.size){Ty=!0;try{for(var F=_.X(this.queue),q=F.next();!q.done;q=F.next()){var t=q.value;this.queue.delete(t);try{t.run()}catch(u){ner(u)}}}finally{Ty=!1}}};
var MJn=new oee,sY=function(){Jd.apply(this,arguments)};
_.M(sY,Jd);var TOv=function(){sY.apply(this,arguments)};
_.M(TOv,sY);TOv.prototype.schedule=function(F){F.hasRun?this.queue.add(F):F.run()};
TOv.prototype.flush=function(){if(this.queue.size)if(l5.flushRenderEffectsDuringRender){var F=this.queue;this.queue=new Set;KH$(F)}else KH$(this.queue)};
var HM3=new TOv,Gmz=function(){sY.apply(this,arguments)};
_.M(Gmz,sY);Gmz.prototype.schedule=function(F){var q=this;return _.p(function(t){if(t.nextAddress==1)return F.hasRun?t.jumpTo(2):t.yield(Promise.resolve(),3);if(t.nextAddress!=2)return F.run(),t.return();q.queue.add(F);_.WA(t)})};
Gmz.prototype.flush=function(){var F=this;return _.p(function(q){if(q.nextAddress==1)return F.queue.size?q.yield(Promise.resolve(),2):q.return();KH$(F.queue);_.WA(q)})};
var yf3=new Gmz,Dbz=function(){sY.apply(this,arguments)};
_.M(Dbz,sY);Dbz.prototype.schedule=function(F){this.queue.add(F)};
Dbz.prototype.flush=function(){this.queue.size&&KH$(this.queue)};
var $by=new Dbz,Ub$=[HM3,MJn,$by,yf3],WHr=[HM3,$by,yf3],db$=[];zFo=function(){SD$();for(var F=_.X(db$),q=F.next();!q.done;q=F.next())q=q.value,q()};
var ner=Jo;_.Wj=Symbol("Nb");var DV=null,f_u,a_C=null,jJy;var gg={},OMz=Object.assign({},Ed,(gg[EeE]=!0,gg.effectType=nq,gg.isResettableContext=!0,gg.hasRun=!1,gg.effectFn=null,gg.consumerIsAlwaysLive=!0,gg.consumerAllowSignalWrites=!0,gg.consumerMarkedDirty=Czy,gg.kind="effect",gg.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Qs)throw Error("Ob");this.dirty=!1;if(!this.hasRun||X2f(this)){this.hasRun=!0;Poq(this);var F=_.u5(this),q=eFW(this);akf("effectRun",this.debugName);try{xR(this.effectFn,this.componentStack,this)}catch(t){throw l5.enableContextBasedComponentStacks&&
Pj(t),t;}finally{jeu("effectRun",this.debugName),RFo(this,q),_.u5(F)}}}},gg.componentStack=void 0,gg.debugName="[effect]",gg[Symbol.dispose]=function(){if(et(this))for(var F=this.producers;F!==void 0;)F=ZMC(F);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;F=_.X(WHr);for(var q=F.next();!q.done;q=F.next())q.value.remove(this);OtA(this)},gg));var qT$=Object.assign({},OMz,{effectType:bMf});var tMq=Symbol("Pb");var uGt=Object.assign({},OMz,{effectType:nq});var ygM=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var gFv={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},s0f=
{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}]}},BUf={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},YTW=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],XU$={"*":{async:1,dir:0,loading:2,target:3}};var Pzr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ll={},Q0$=(ll[1]=null,ll[2]=function(F,q){return q instanceof BS?fl(q):Cl.toString()},ll[3]=function(F,q){return HS(q)?_.mt(q):Pzr.test(String(q))?String(q):Cl.toString()},ll[4]=function(F,q){return q instanceof WS?_.PS(q):Cl.toString()},ll[5]=function(F,q){return String(q)},ll[7]=null,ll[8]=null,ll[10]=null,ll);var lMW=Symbol("Sb");var oXq=function(F){var q=xbz,t=F,u="",J="",g=1;F<0&&(F=-F);if(F===Infinity)F=(Infinity*Math.sign(t)).toString();else{for(var Y=0;Y<Afr.length;Y++){var Q=Afr[Y];g=q[Q];if(F>=g||g<=1&&F>.1*g){u=Q;break}}u?(u+="B",J=" "):g=1;F=Math.round(t/g*10)/10+J+u}return F},Afr="Y Z E P T G M K  m u n".split(" "),xbz={"":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};_.ven=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 e6={};RegExp.prototype.hasOwnProperty("sticky");var dLo=function(F){F=String(F);for(var q=function(u,J,g){for(var Y=Math.min(J.length-g,u.length),Q=0;Q<Y;Q++){var e=J[g+Q];if(u[Q]!==("A"<=e&&e<="Z"?e.toLowerCase():e))return!1}return!0},t=0;(t=F.indexOf("<",t))!=-1;){if(q("\x3c/script",F,t)||q("\x3c!--",F,t))return"zSoyz";
t+=1}return F};var Ud={default:"__default"};var wUo=Object.prototype.hasOwnProperty;Rf_.prototype=Object.create(null);var Jg=EFt();var tN=null;var Ag_=function(F){this.created=[];this.deleted=[];this.node=F};var vFo=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var F=this,q=F;F;)q=F,F=F.parentNode;return q};var oFy=function(F,q){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=F;this.key=q;this.text=void 0};var fq=null,av=null,Bj=null,cj=null,DLt=[],GGu=MMf,Fb=[],qM=[],gi3=function(F){return ISP(function(q,t,u){Bj=av=q;av=null;t(u);TZC(null);av=Bj;Bj=Bj.parentNode;return q},F)}(),s43=function(F){return ISP(function(q,t,u){var J={nextSibling:q};
av=J;t(u);Bj&&TZC(q.nextSibling);return J===av?null:av},F)}();var un=[],mLP=0;var JN=new Rf_;var bd=new Rf_;var I_v=EFt(),STf=I_v[Ud.default],ULP=I_v.style,CRo=["focusin","focusout"],BZq="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var AJo=function(){},Ezo=function(){},$dP=function(){},ItA=function(){};var g2=Symbol("Zb");var FO3,cgq=j0u;var r2=Symbol("$b");var mdM=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(" ")),
HBM=new Set(["a","font","script","style","title"]);var R5={setUp:ZBC,tearDown:ZBC,log:ZBC,logNodeRange:ZBC,graft:function(F,q){q()}};var nI={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var nzt=null,MM=function(F,q){Tn.call(this,F);var t=this;this.functionComponent=q;this.hooks=[];this.hookCounter=0;this.disposeEffects=Iv(function(u){t.effectContext=u;_.vj(function(){TQo(t,t.el)})},l5.alwaysTrackContexts||!!tO)};
_.M(MM,Tn);MM.prototype.render=function(F){var q=nzt;nzt=this;this.hookCounter=0;var t=pq(o5),u=_.u5(this.effectContext);try{return akf("render",this.componentName),this.functionComponent(F)}finally{jeu("render",this.componentName),_.u5(u),pq(t),nzt=q}};
_.JJ.Object.defineProperties(MM.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return BOf(this.functionComponent)}}});var bBu=Symbol("nc"),P7M=function(F,q,t){this.afterRenderCallbacks=null;this.kind=F;this.props=q;this.children=t};
_.M(P7M,EK);P7M.prototype.render=function(){var F=OBo(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var q=_.X(this.afterRenderCallbacks),t=q.next();!t.done;t=q.next())t=t.value,F=t(F);return F};
P7M.prototype.getChildren=function(){return this.children};var C7o=[];kmC=function(F){throw Error("ob`"+F.debugName);};
(function(){var F=tN;tN=function(q){F==null||F(q);dd$(q)}})();var HMe=new WeakMap,mbd=0;var $bf=void 0,bMx={},yfe=new WeakMap,mmW={getComponent:function(F){if(F.hasAttribute("ng-version"))return bMx;if(!F.__wizComponent)return null;F=F.__wizComponent;yfe.set(F.propsAndState,F);return F.propsAndState},
getDirectiveMetadata:function(F){if(F===bMx)return{framework:"wiz",name:"<Root>",props:{}};F=yfe.get(F);if(!F)throw Error("oc");return{framework:"wiz",name:F.name,props:Object.fromEntries(Object.keys(F.props).map(function(q){return[q,q]}))}},
"\u0275setProfiler":function(F){var q;(q=$bf)==null||q();$bf=VJA(function(){F(2)})},
getInjector:function(F){return F.__wizComponent},
"\u0275getSignalGraph":function(F){var q;F=(q=F.effects)!=null?q:[];var t=Vd3(F),u=Array.from(t.keys());q=[];F=[];for(var J=new Map,g=0;g<u.length;g++)J.set(u[g],g);t=_.X(t.entries());for(u=t.next();!u.done;u=t.next()){g=_.X(u.value);u=g.next().value;var Y=g.next().value;g=u;u=J.get(g);var Q=HMe.get(g);Q||(Q=mbd.toString(),HMe.set(g,Q),mbd++);var e=void 0,r=((e=g.debugName)!=null?e:"").replace(/@.+/,"");if(g.kind==="computed"){e=g.computation;var N=void 0;q.push({label:r,value:g.value,kind:g.kind,
epoch:g.version,debuggableFn:(N=e.userFn)!=null?N:e,id:Q})}else if(g.kind==="signal")q.push({label:r,value:g.value,kind:g.kind,epoch:g.version,debuggableFn:g.debugFn,id:Q});else if(g.kind==="effect"){N=void 0;e=(N=g.effectFn)!=null?N:void 0;var w=N=void 0;q.push({label:r,kind:g.kind,epoch:g.version,debuggableFn:(w=(N=e)==null?void 0:N.userFn)!=null?w:e,id:Q})}else q.push({label:r,kind:g.kind,epoch:g.version,id:Q});g=_.X(Y);for(Y=g.next();!Y.done;Y=g.next())F.push({consumer:u,producer:J.get(Y.value)})}return{nodes:q,
edges:F}},
isSignal:function(F){return typeof F==="function"&&F[Rv]!==void 0}};Object.assign({},OMz,{effectType:nq,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var F=this.elementRef;var q;F.element!=null||(F.element=(q=F.document.getElementById(F.value))!=null?q:void 0);F=F.element;for(q=this.attributes;q;){var t=q.signal();t!==q.prevValue&&(q.prevValue=t,q.namespace===1?F[q.name]=t:ygM.has(q.name)?Vs(F,q.name,t?"":null):Vs(F,q.name,t));q=q.next}}});Object.assign({},OMz,{effectType:nq,hasRun:!0});_.R.debugName="RlDudd";var Ud_={nonNullableCondIsNull:function(){return Error("sc")}};var fty=function(){this.map=new Map};
fty.prototype.push=function(F,q){var t=this.map;t.has(F)&&(this.multi||(this.multi=new Map),this.multi.set(q,t.get(F)));t.set(F,q)};
fty.prototype.pop=function(F){var q=this.map,t=q.get(F),u;t!==void 0&&((u=this.multi)==null?0:u.has(t))?(q.set(F,this.multi.get(t)),this.multi.delete(t)):q.delete(F);return t};_.Gn.debugName="nsTGHd";_.DA.debugName="tbhMcf";_.W_.debugName="zyMFzb";_.OK.debugName="vI1rtf";_.tco={OUT_OF_ORDER_HOOK_CALL:function(F){return Error("tc`"+F)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("uc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("vc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("wc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(F,q){return Error("xc`"+((q===void 0?0:q)?"IDOM":"Reactive")+"`"+(P_(F)?F.description:F))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(F,q){return Error("yc`"+(P_(F)?F.description:F)+"`"+q)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(F){return Error("zc`"+(P_(F)?F.description:F))},
USE_ELEMENT_NOT_ASSIGNED:function(F){return Error("Ac`"+(P_(F)?F.description:F))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(F){return Error("Bc`"+(P_(F)?F.description:F))}};FO3=xdq;var poA=Symbol("Cc");ozo({beforeRender:function(F){var q=_.u5(F.effectContext);try{var t;((t=F.__syncEffects)==null?0:t.length)&&ZJA(F.__syncEffects)}finally{_.u5(q)}},
didPatch:function(F){var q=_.u5(F.effectContext);try{var t;((t=F.__syncEffects)==null?0:t.length)&&ZJA(F.__syncEffects)}finally{_.u5(q)}},
didUnmount:function(F){var q;((q=F.hooks)==null?0:q.length)&&F.hooks.forEach(eSC)}});var Czf,dbr,VJn;Czf=_.uu.window;_.m8=(Czf==null?void 0:(dbr=Czf.yt)==null?void 0:dbr.config_)||(Czf==null?void 0:(VJn=Czf.ytcfg)==null?void 0:VJn.data_)||{};_.uo("yt.config_",_.m8);var Ubr={},iJ_=[];_.D0=function(F){var q=_.US.apply(1,arguments);var t=Error.call(this,F);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.args=[].concat(_.mZ(q));Object.setPrototypeOf(this,this.constructor.prototype)};
_.M(_.D0,Error);var PmW=function(F,q,t){this.actionName=F;this.optionalAction=q===void 0?!1:q;this.args=t===void 0?null:t;this.returnValue=[]};_.Xk=function(F){this.name=F};_.UD=new _.Xk("signalAction");var OJP=/^[\w.]*$/,nof={q:!0,search_query:!0},oou=String(zSP);var Yc;Yc=Symbol("Dc");_.pg=function(F){this.name=F};
_.pg.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var PNW=function(F){this.key=F},HJy=function(F){this.deferredKey=F},AVt=function(){var F=this;
this.providers=new Map;this.JSC$10474_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(F.providers)}}};
AVt.prototype.addProvider=function(F){this.providers.set(F.provide,F);var q=this.JSC$10474_deferred.get(F.provide);if(q)try{q.resolver(this.resolve(F.provide))}catch(t){q.rejector(t)}};
AVt.prototype.resolve=function(F){return F instanceof HJy?SDr(this,F):F instanceof PNW?hFz(this,F.key,[],!0):hFz(this,F,[])};
var SDr=function(F,q){q=q.deferredKey;if(F.JSC$10474_deferred.has(q))return F.JSC$10474_deferred.get(q).promise;var t={};t.promise=new Promise(function(u,J){t.resolver=u;t.rejector=J});
F.JSC$10474_deferred.set(q,t);return t.promise},hFz=function(F,q,t,u){u=u===void 0?!1:u;
if(t.indexOf(q)>-1)throw Error("Ec`"+q);if(F.cachedValues.has(q))return F.cachedValues.get(q);if(!F.providers.has(q)){if(u)return;throw Error("Fc`"+q);}u=F.providers.get(q);t.push(q);if(u.useValue!==void 0)var J=u.useValue;else if(u.useFactory)J=u[Yc]?KHr(F,u[Yc],t):[],J=u.useFactory.apply(u,_.mZ(J));else if(u.useClass){J=u.useClass;var g=J[Yc]?KHr(F,J[Yc],t):[];J=new (Function.prototype.bind.apply(J,[null].concat(_.mZ(g))))}else throw Error("Gc`"+q);t.pop();u.skipCache||F.cachedValues.set(q,J);return J},
KHr=function(F,q,t){return q?q.map(function(u){return u instanceof PNW?hFz(F,u.key,t,!0):hFz(F,u,t)}):[]};var xUC;var hf=new _.pg("ENDPOINT_HANDLER_TOKEN");_.KM=new _.Xk("urlEndpoint");var BOx=function(){this.data=[];this.cachedPackedInt52=-1};
BOx.prototype.set=function(F,q){q=q===void 0?!0:q;0<=F&&F<52&&Number.isInteger(F)&&this.data[F]!==q&&(this.data[F]=q,this.cachedPackedInt52=-1)};
BOx.prototype.get=function(F){return!!this.data[F]};
var LHx=function(F){F.cachedPackedInt52===-1&&(F.cachedPackedInt52=F.data.reduce(function(q,t,u){return q+(t?Math.pow(2,u):0)},0));
return F.cachedPackedInt52};var flC=function(F){var q=f_J;F=F===void 0?_.S6("yt.ads.biscotti.lastId_")||"":F;var t=Object,u=t.assign,J={};J.dt=UqE;J.flash="0";a:{try{var g=q.JSC$10480_win_.top.location.href}catch(c){g=2;break a}g=g?g===q.doc_.location.href?0:1:2}J=(J.frm=g,J);try{J.u_tz=-(new Date).getTimezoneOffset();try{var Y=fQ.history.length}catch(c){Y=0}J.u_his=Y;var Q;J.u_h=(Q=fQ.screen)==null?void 0:Q.height;var e;J.u_w=(e=fQ.screen)==null?void 0:e.width;var r;J.u_ah=(r=fQ.screen)==null?void 0:r.availHeight;var N;J.u_aw=
(N=fQ.screen)==null?void 0:N.availWidth;var w;J.u_cd=(w=fQ.screen)==null?void 0:w.colorDepth}catch(c){}Y=q.JSC$10480_win_;try{var k=Y.screenX;var z=Y.screenY}catch(c){}try{var T=Y.outerWidth;var P=Y.outerHeight}catch(c){}try{var v=Y.innerWidth;var H=Y.innerHeight}catch(c){}try{var d=Y.screenLeft;var a=Y.screenTop}catch(c){}try{v=Y.innerWidth,H=Y.innerHeight}catch(c){}try{var S=Y.screen.availWidth;var K=Y.screen.availTop}catch(c){}k=[d,a,k,z,S,K,T,P,v,H];z=rGP(!1,q.JSC$10480_win_.top);T={};var h=h===
void 0?_.uu:h;P=new BOx;"SVGElement"in h&&"createElementNS"in h.document&&P.set(0);v=dnr();v["allow-top-navigation-by-user-activation"]&&P.set(1);v["allow-popups-to-escape-sandbox"]&&P.set(2);h.crypto&&h.crypto.subtle&&P.set(3);"TextDecoder"in h&&"TextEncoder"in h&&P.set(4);h=LHx(P);q=(T.bc=h,T.bih=z.height,T.biw=z.width,T.brdim=k.join(),T.vis=gIP(q.doc_),T.wgl=!!fQ.WebGLRenderingContext,T);t=u.call(t,J,q);t.ca_type="image";F&&(t.bid=F);return t},f_J=new function(){var F=window.document;
this.JSC$10480_win_=window;this.doc_=F};
_.uo("yt.ads_.signals_.getAdSignalsString",function(F){return Mc_(flC(F))});_.sa();navigator.userAgent.indexOf(" (CrKey ");var CNu="XMLHttpRequest"in _.uu?function(){return new XMLHttpRequest}:null;var a_z="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),jJf=[].concat(_.mZ(a_z),["client_dev_set_cookie"]);var LjW={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"},UUt="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(_.mZ(a_z)),sYW=!1,hSv=_.alu,tz3=BYA;var Gl3=[{messageFn:function(F){return"Cannot read property '"+F.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(F){return"Cannot call '"+F.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(F){return F.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var cfj={messageWeights:[],callbackWeights:[{callback:Yfo,weight:500},{callback:p5M,weight:500}]};var F0d=function(){this.callbackWeights=[];this.messageWeights=[]},qTr,T0W=function(){if(!qTr){var F=qTr=new F0d;
F.messageWeights.length=0;F.callbackWeights.length=0;sdo(F,cfj)}return qTr},sdo=function(F,q){q.messageWeights&&F.messageWeights.push.apply(F.messageWeights,q.messageWeights);
q.callbackWeights&&F.callbackWeights.push.apply(F.callbackWeights,q.callbackWeights)};_.gd(_.EV,_.OP);_.EV.prototype.subscribe=function(F,q,t){var u=this.topics_[F];u||(u=this.topics_[F]=[]);var J=this.JSC$10504_key_;this.subscriptions_[J]=F;this.subscriptions_[J+1]=q;this.subscriptions_[J+2]=t;this.JSC$10504_key_=J+3;u.push(J);return J};
var tML=function(F){var q=P6$,t=!1,u=q.subscribe("handleError",function(J){t||(t=!0,this.unsubscribeByKey(u),F.apply(void 0,arguments))},q)};
_.EV.prototype.unsubscribe=function(F,q,t){if(F=this.topics_[F]){var u=this.subscriptions_;if(F=F.find(function(J){return u[J+1]==q&&u[J+2]==t}))return this.unsubscribeByKey(F)}return!1};
_.EV.prototype.unsubscribeByKey=function(F){var q=this.subscriptions_[F];if(q){var t=this.topics_[q];this.publishDepth_!=0?(this.pendingKeys_.push(F),this.subscriptions_[F+1]=function(){}):(t&&_.yC(t,F),delete this.subscriptions_[F],delete this.subscriptions_[F+1],delete this.subscriptions_[F+2])}return!!q};
_.EV.prototype.publish=function(F,q){var t=this.topics_[F];if(t){var u=Array(arguments.length-1),J=arguments.length,g;for(g=1;g<J;g++)u[g-1]=arguments[g];if(this.async_)for(g=0;g<t.length;g++)J=t[g],uG1(this.subscriptions_[J+1],this.subscriptions_[J+2],u);else{this.publishDepth_++;try{for(g=0,J=t.length;g<J&&!this.isDisposed();g++){var Y=t[g];this.subscriptions_[Y+1].apply(this.subscriptions_[Y+2],u)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;t=this.pendingKeys_.pop();)this.unsubscribeByKey(t)}}return g!=
0}return!1};
var uG1=function(F,q,t){_.vr(function(){F.apply(q,t)})};
_.EV.prototype.clear=function(F){if(F){var q=this.topics_[F];q&&(q.forEach(this.unsubscribeByKey,this),delete this.topics_[F])}else this.subscriptions_.length=0,this.topics_={}};
_.EV.prototype.getCount=function(F){if(F){var q=this.topics_[F];return q?q.length:0}F=0;for(q in this.topics_)F+=this.getCount(q);return F};
_.EV.prototype.disposeInternal=function(){_.EV.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var P6$=new _.EV;var e1=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(e1,_.le);e1.prototype.getColdHashData=function(){return _.xB(this,3)};
e1.prototype.getHotHashData=function(){return _.xB(this,5)};
e1.prototype.setHotHashData=function(F){return _.OF(this,5,F)};var nhW=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(nhW,_.le);var aR$=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(aR$,_.le);_.l=aR$.prototype;_.l.getDeviceId=function(){return _.xB(this,6)};
_.l.getExperimentIds=function(F){var q=_.Lh(this,9,_.J9,3,!0);hot(q,F);return q[F]};
_.l.getPlayerType=function(){return _.Aa(this,36)};
_.l.setHomeGroupInfo=function(F){return _.My(this,81,F)};
_.l.clearLocationPlayabilityToken=function(){return _.Qa(this,89)};var zm=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(zm,_.le);zm.prototype.setKey=function(F){return _.OF(this,1,F)};
zm.prototype.getValue=function(){return IC(this,2,cTP)};
var cTP=[2,3,4,5,6];var Jgv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Jgv,_.le);Jgv.prototype.setTrackingParams=function(F){return _.Qa(this,1,_.G1(F,!1))};var jIC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(jIC,_.le);var Grv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Grv,_.le);Grv.prototype.getExperimentIds=function(F){var q=_.Lh(this,5,_.Rdt,3,!0);hot(q,F);return q[F]};var Tm=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Tm,_.le);Tm.prototype.getToken=function(){return _.oX(this,2)};
Tm.prototype.setToken=function(F){return _.OF(this,2,F)};var nM=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(nM,_.le);nM.prototype.setSafetyMode=function(F){return _.pt(this,5,F)};var ED=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ED,_.le);ED.prototype.setClient=function(F){return _.My(this,1,F)};var Tau={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 MTu;_.$h=function(){var F=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.uu.addEventListener("beforeinstallprompt",function(q){q.preventDefault();F.deferredInstallPrompt=q});
_.uu.addEventListener("appinstalled",function(){F.appInstalledEventFired=!0},{once:!0})};
MTu=function(){if(!_.uu.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.uu.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.uu.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.uu.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.uu.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(F){return"WEB_DISPLAY_MODE_UNKNOWN"}};var OGu=function(){this.syncHeaders=!0},P1u=function(F){var q={},t=[];
"USER_SESSION_ID"in _.m8&&t.push({key:"u",value:_.bn("USER_SESSION_ID")});if(t=_.jE3(t))q.Authorization=t,t=F=F==null?void 0:F.sessionIndex,t===void 0&&(t=Number(_.bn("SESSION_INDEX",0)),t=isNaN(t)?0:t),_.E("voice_search_auth_header_removal")||(q["X-Goog-AuthUser"]=t.toString()),"INNERTUBE_HOST_OVERRIDE"in _.m8||(q["X-Origin"]=window.location.origin),F===void 0&&"DELEGATED_SESSION_ID"in _.m8&&(q["X-Goog-PageId"]=_.bn("DELEGATED_SESSION_ID"));return q};var s0x={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Q9=_.S6("ytglobal.prefsUserPrefsPrefs_")||{},gFw;_.uo("ytglobal.prefsUserPrefsPrefs_",Q9);_.eh=function(){this.cookieName=_.bn("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.bn("ALT_PREF_COOKIE_DOMAIN","youtube.com");var F=_.om.get(this.cookieName,void 0);F&&this.parse(F)};
_.TV=function(){gFw||(gFw=new _.eh);return gFw};
_.eh.prototype.get=function(F,q){lSE(F);XUr(F);F=Q9[F]!==void 0?Q9[F].toString():null;return F!=null?F:q?q:""};
_.eh.prototype.set=function(F,q){lSE(F);XUr(F);if(q==null)throw Error("Jc");Q9[F]=q.toString()};
_.eh.prototype.getFlag=function(F){return!!((YTC("f"+(Math.floor(F/31)+1))||0)&1<<F%31)};
_.GV=function(F,q,t){F="f"+(Math.floor(q/31)+1);q=1<<q%31;var u=YTC(F)||0;u=t?u|q:u&~q;u===0?delete Q9[F]:(t=u.toString(16),Q9[F]=t.toString())};
_.eh.prototype.remove=function(F){lSE(F);XUr(F);delete Q9[F]};
_.eh.prototype.save=function(){var F=!0;_.E("web_secure_pref_cookie_killswitch")&&(F=!1);_.nE(this.cookieName,this.dump(),63072E3,this.cookieDomain,F)};
_.eh.prototype.clear=function(){_.m7.clear(Q9)};
_.eh.prototype.dump=function(){var F=[],q;for(q in Q9)Q9.hasOwnProperty(q)&&F.push(q+"="+encodeURIComponent(String(Q9[q])));return F.join("&")};
var XUr=function(F){if(/^f([1-9][0-9]*)$/.test(F))throw Error("Kc`"+F);},lSE=function(F){if(!/^\w+$/.test(F))throw Error("Lc`"+F);
},YTC=function(F){F=Q9[F]!==void 0?Q9[F].toString():null;
return F!=null&&/^[A-Fa-f0-9]+$/.test(F)?parseInt(F,16):null};
_.eh.prototype.parse=function(F){F=decodeURIComponent(F).split("&");for(var q=0;q<F.length;q++){var t=F[q].split("="),u=t[0];(t=t[1])&&(Q9[u]=t.toString())}};var k5y={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"},D13={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},WBC={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},zlf={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var No;_.Zd=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.W2=function(F,q,t){return F.addJob(q,0,t)};
_.Zd.prototype.addLowPriorityJob=function(F,q){return this.addJob(F,1,q)};
_.AC=function(F,q,t){return F.addJob(q,2,t)};
_.Ze=function(F,q,t){return F.addJob(q,3,t)};
_.wC=function(F,q,t){return F.addJob(q,4,t)};
No=function(F){var q=_.S6("yt.scheduler.instance.addImmediateJob");q?q(F):F()};
_.Zd.prototype.debounce=function(F,q,t){var u=this,J=0,g=function(){J&&u.cancelJob(J);J=u.addJob(F,q,t);u.cancelDebouncedJobMap.set(g,J)};
return g};
_.Zd.prototype.cancelThrottle=function(F){(F=this.cancelThrottledJobMap.get(F))&&F()};var RO=function(){_.Zd.apply(this,arguments)};
_.M(RO,_.Zd);_.Gx=function(){RO.instance||(RO.instance=new RO);return RO.instance};
RO.prototype.addJob=function(F,q,t){t!==void 0&&Number.isNaN(Number(t))&&(t=void 0);var u=_.S6("yt.scheduler.instance.addJob");return u?u(F,q,t):t===void 0?(F(),NaN):_.Rm(F,t||0)};
RO.prototype.cancelJob=function(F){if(F===void 0||!Number.isNaN(Number(F))){var q=_.S6("yt.scheduler.instance.cancelJob");q?q(F):_.Nh(F)}};
RO.prototype.start=function(){var F=_.S6("yt.scheduler.instance.start");F&&F()};
RO.prototype.pause=function(){var F=_.S6("yt.scheduler.instance.pause");F&&F()};
_.mI=_.Gx();_.Wc.prototype.set=function(F,q){q===void 0?this.mechanism.remove(F):this.mechanism.set(F,(0,_.bb)(q))};
_.Wc.prototype.get=function(F){try{var q=this.mechanism.get(F)}catch(t){return}if(q!==null)try{return JSON.parse(q)}catch(t){throw"Storage: Invalid value was encountered";}};
_.Wc.prototype.remove=function(F){this.mechanism.remove(F)};var rg=function(F){this.mechanism=F};
_.gd(rg,_.Wc);var pUz=function(F){this.data=F},Q0r=function(F){return F===void 0||F instanceof pUz?F:new pUz(F)};
rg.prototype.set=function(F,q){rg.superClass_.set.call(this,F,Q0r(q))};
rg.prototype.getWrapper=function(F){F=rg.superClass_.get.call(this,F);if(F===void 0||F instanceof Object)return F;throw"Storage: Invalid value was encountered";};
rg.prototype.get=function(F){if(F=this.getWrapper(F)){if(F=F.data,F===void 0)throw"Storage: Invalid value was encountered";}else F=void 0;return F};_.gd(OV,rg);_.efE=function(F){var q=F.creation;F=F.expiration;return!!F&&F<_.sa()||!!q&&q>_.sa()};
OV.prototype.set=function(F,q,t){if(q=Q0r(q)){if(t){if(t<_.sa()){OV.prototype.remove.call(this,F);return}q.expiration=t}q.creation=_.sa()}OV.superClass_.set.call(this,F,q)};
OV.prototype.getWrapper=function(F,q){var t=OV.superClass_.getWrapper.call(this,F);if(t)if(!q&&_.efE(t))OV.prototype.remove.call(this,F);else return t};var Ng=function(){};
Ng.prototype.next=function(){return wg};
var wg={done:!0,value:void 0},il=function(F){return{value:F,done:!1}};
Ng.prototype.__iterator__=function(){return this};
_.ZWr=function(F){if(F instanceof Ng)return F;if(typeof F.__iterator__=="function")return F.__iterator__(!1);if(_.VC(F)){var q=0,t=new Ng;t.next=function(){for(;;){if(q>=F.length)return wg;if(q in F)return il(F[q++]);q++}};
return t}throw Error("Mc");};var Rfj=function(F){if(F instanceof kc||F instanceof EY||F instanceof zU)return F;if(typeof F.next=="function")return new kc(function(){return F});
if(typeof F[Symbol.iterator]=="function")return new kc(function(){return F[Symbol.iterator]()});
if(typeof F.__iterator__=="function")return new kc(function(){return F.__iterator__()});
throw Error("Nc");},kc=function(F){this.func_=F};
kc.prototype.__iterator__=function(){return new EY(this.func_())};
kc.prototype[Symbol.iterator]=function(){return new zU(this.func_())};
kc.prototype.toEs6=function(){return new zU(this.func_())};
var EY=function(F){this.JSC$10588_iter_=F};
_.M(EY,Ng);EY.prototype.next=function(){return this.JSC$10588_iter_.next()};
EY.prototype[Symbol.iterator]=function(){return new zU(this.JSC$10588_iter_)};
EY.prototype.toEs6=function(){return new zU(this.JSC$10588_iter_)};
var zU=function(F){kc.call(this,function(){return F});
this.JSC$10591_iter_=F};
_.M(zU,kc);zU.prototype.next=function(){return this.JSC$10591_iter_.next()};var rgC=function(){};var oO=function(){};
_.gd(oO,rgC);oO.prototype.getCount=function(){for(var F=0,q=_.X(this),t=q.next();!t.done;t=q.next())F++;return F};
oO.prototype[Symbol.iterator]=function(){return Rfj(this.__iterator__(!0)).toEs6()};
oO.prototype.clear=function(){var F=Array.from(this);F=_.X(F);for(var q=F.next();!q.done;q=F.next())this.remove(q.value)};_.gd(Pc,oO);_.l=Pc.prototype;_.l.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var F=this.storage_;if(F)try{F.setItem("__sak","1");F.removeItem("__sak");var q=!0}catch(t){q=t instanceof DOMException&&(t.name==="QuotaExceededError"||t.code===22||t.code===1014||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&F&&F.length!==0}else q=!1;this.cachedIsStorageAvailable_=q}return this.cachedIsStorageAvailable_};
_.l.set=function(F,q){Mg(this);try{this.storage_.setItem(F,q)}catch(t){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.l.get=function(F){Mg(this);F=this.storage_.getItem(F);if(typeof F!=="string"&&F!==null)throw"Storage mechanism: Invalid value was encountered";return F};
_.l.remove=function(F){Mg(this);this.storage_.removeItem(F)};
_.l.getCount=function(){Mg(this);return this.storage_.length};
_.l.__iterator__=function(F){Mg(this);var q=0,t=this.storage_,u=new Ng;u.next=function(){if(q>=t.length)return wg;var J=t.key(q++);if(F)return il(J);J=t.getItem(J);if(typeof J!=="string")throw"Storage mechanism: Invalid value was encountered";return il(J)};
return u};
_.l.clear=function(){Mg(this);this.storage_.clear()};
_.l.key=function(F){Mg(this);return this.storage_.key(F)};
var Mg=function(F){if(F.storage_==null)throw Error("Oc");F.isAvailable()||Jo(Error("Oc"))};_.gd(nvP,Pc);_.gd(Mzo,Pc);_.gd(xE,oO);xE.prototype.set=function(F,q){this.mechanism_.set(this.JSC$10606_prefix_+F,q)};
xE.prototype.get=function(F){return this.mechanism_.get(this.JSC$10606_prefix_+F)};
xE.prototype.remove=function(F){this.mechanism_.remove(this.JSC$10606_prefix_+F)};
xE.prototype.__iterator__=function(F){var q=this.mechanism_[Symbol.iterator](),t=this,u=new Ng;u.next=function(){var J=q.next();if(J.done)return J;for(J=J.value;J.slice(0,t.JSC$10606_prefix_.length)!=t.JSC$10606_prefix_;){J=q.next();if(J.done)return J;J=J.value}return il(F?J.slice(t.JSC$10606_prefix_.length):t.mechanism_.get(J))};
return u};_.dB=function(F){this.expiringStorage_=(F=_.Tj_(F))?new OV(F):null;this.JSC$10610_domain_=document.domain||window.location.hostname};
_.dB.prototype.set=function(F,q,t,u){t=t||31104E3;this.remove(F);if(this.expiringStorage_)try{this.expiringStorage_.set(F,q,Date.now()+t*1E3);return}catch(g){}var J="";if(u)try{J=escape((0,_.bb)(q))}catch(g){return}else J=escape(q);_.nE(F,J,t,this.JSC$10610_domain_)};
_.dB.prototype.get=function(F,q){var t=void 0,u=!this.expiringStorage_;if(!u)try{t=this.expiringStorage_.get(F)}catch(J){u=!0}if(u&&(t=_.om.get(F,void 0))&&(t=unescape(t),q))try{t=JSON.parse(t)}catch(J){this.remove(F),t=void 0}return t};
_.dB.prototype.remove=function(F){this.expiringStorage_&&this.expiringStorage_.remove(F);_.Nj3(F,"/",this.JSC$10610_domain_)};
_.dB.prototype.getCreationTime=function(F){return this.expiringStorage_&&(F=(this.expiringStorage_.getWrapper(F)||{}).creation,typeof F==="number")?F:null};var Dpt=function(){var F;return function(){F||(F=new _.dB("ytidb"));return F}}();var Ojo;_.vc=[];Ojo=!1;var BjW=PCP||xpM;var TU={},NZE=(TU.AUTH_INVALID="No user identifier specified.",TU.EXPLICIT_ABORT="Transaction was explicitly aborted.",TU.IDB_NOT_SUPPORTED="IndexedDB is not supported.",TU.MISSING_INDEX="Index not created.",TU.MISSING_OBJECT_STORES="Object stores not created.",TU.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",TU.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",TU.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",TU.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",TU.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",TU.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",TU.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",TU),GU={},wUd=(GU.AUTH_INVALID="ERROR",GU.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",GU.EXPLICIT_ABORT="IGNORED",
GU.IDB_NOT_SUPPORTED="ERROR",GU.MISSING_INDEX="WARNING",GU.MISSING_OBJECT_STORES="ERROR",GU.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",GU.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",GU.QUOTA_EXCEEDED="WARNING",GU.QUOTA_MAYBE_EXCEEDED="WARNING",GU.UNKNOWN_ABORT="WARNING",GU.INCOMPATIBLE_DB_VERSION="WARNING",GU),Dd={},iWr=(Dd.AUTH_INVALID=!1,Dd.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Dd.EXPLICIT_ABORT=!1,Dd.IDB_NOT_SUPPORTED=!1,Dd.MISSING_INDEX=!1,Dd.MISSING_OBJECT_STORES=!1,Dd.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Dd.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Dd.QUOTA_EXCEEDED=!1,Dd.QUOTA_MAYBE_EXCEEDED=!0,Dd.UNKNOWN_ABORT=!0,Dd.INCOMPATIBLE_DB_VERSION=!1,Dd),CE=function(F,q,t,u,J){q=q===void 0?{}:q;t=t===void 0?NZE[F]:t;u=u===void 0?wUd[F]:u;J=J===void 0?iWr[F]:J;_.D0.call(this,t,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:F},q));this.type=F;this.message=t;this.level=u;this.retryable=J;Object.setPrototypeOf(this,CE.prototype)};
_.M(CE,_.D0);var kGL=function(F,q){CE.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:q,foundObjectStores:F},NZE.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,kGL.prototype)};
_.M(kGL,CE);var vvo=function(F,q){var t=Error.call(this);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.index=F;this.objectStore=q;Object.setPrototypeOf(this,vvo.prototype)};
_.M(vvo,Error);var IxP=["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 Sv=function(F){this.executor=F},UV=function(F){var q=this;
this.state={status:"PENDING"};this.JSC$10638_onFulfilled=[];this.JSC$10638_onRejected=[];F=F.executor;var t=function(J){if(q.state.status==="PENDING"){q.state={status:"FULFILLED",value:J};J=_.X(q.JSC$10638_onFulfilled);for(var g=J.next();!g.done;g=J.next())g=g.value,g()}},u=function(J){if(q.state.status==="PENDING"){q.state={status:"REJECTED",
reason:J};J=_.X(q.JSC$10638_onRejected);for(var g=J.next();!g.done;g=J.next())g=g.value,g()}};
try{F(t,u)}catch(J){u(J)}};
UV.all=function(F){return new UV(new Sv(function(q,t){var u=[],J=F.length;J===0&&q(u);for(var g={i$jscomp$468:0};g.i$jscomp$468<F.length;g={i$jscomp$468:g.i$jscomp$468},++g.i$jscomp$468)UV.resolve(F[g.i$jscomp$468]).then(function(Y){return function(Q){u[Y.i$jscomp$468]=Q;J--;J===0&&q(u)}}(g)).catch(function(Y){t(Y)})}))};
UV.resolve=function(F){return new UV(new Sv(function(q,t){F instanceof UV?F.then(q,t):q(F)}))};
UV.reject=function(F){return new UV(new Sv(function(q,t){t(F)}))};
UV.prototype.then=function(F,q){var t=this,u=F!=null?F:$pu,J=q!=null?q:mpC;return new UV(new Sv(function(g,Y){t.state.status==="PENDING"?(t.JSC$10638_onFulfilled.push(function(){EF1(t,t,u,g,Y)}),t.JSC$10638_onRejected.push(function(){zfE(t,t,J,g,Y)})):t.state.status==="FULFILLED"?EF1(t,t,u,g,Y):t.state.status==="REJECTED"&&zfE(t,t,J,g,Y)}))};
UV.prototype.catch=function(F){return this.then(void 0,F)};
var EF1=function(F,q,t,u,J){try{if(F.state.status!=="FULFILLED")throw Error("Rc");var g=t(F.state.value);g instanceof UV?oFf(F,q,g,u,J):u(g)}catch(Y){J(Y)}},zfE=function(F,q,t,u,J){try{if(F.state.status!=="REJECTED")throw Error("Sc");
var g=t(F.state.reason);g instanceof UV?oFf(F,q,g,u,J):u(g)}catch(Y){J(Y)}},oFf=function(F,q,t,u,J){q===t?J(new TypeError("Tc")):t.then(function(g){g instanceof UV?oFf(F,q,g,u,J):u(g)},function(g){J(g)})};var Wb;Wb=window;_.gB=Wb.ytcsi&&Wb.ytcsi.now?Wb.ytcsi.now:Wb.performance&&Wb.performance.timing&&Wb.performance.now&&Wb.performance.timing.navigationStart?function(){return Wb.performance.timing.navigationStart+Wb.performance.now()}:function(){return(new Date).getTime()};var KE=function(F,q){this.JSC$10650_wrapped=F;this.options=q;this.transactionCount=0;this.startedMs=Math.round((0,_.gB)());this.hasUnknownAbortedTransaction=!1},OY=function(){return _.E("idb_immediate_commit")},TZz,GGJ,Ad,OWe;
KE.prototype.add=function(F,q,t){return _.jv(this,[F],{mode:"readwrite",enableRetries:!0,commit:OY()},function(u){return u.objectStore(F).add(q,t)})};
KE.prototype.clear=function(F){return _.jv(this,[F],{mode:"readwrite",enableRetries:!0},function(q){return q.objectStore(F).clear()})};
KE.prototype.close=function(){this.JSC$10650_wrapped.close();var F;((F=this.options)==null?0:F.closed)&&this.options.closed()};
KE.prototype.count=function(F,q){return _.jv(this,[F],{mode:"readonly",enableRetries:!0,commit:OY()},function(t){return t.objectStore(F).count(q)})};
var UI=function(F,q,t){F=F.JSC$10650_wrapped.createObjectStore(q,t);return new Pb(F)};
KE.prototype.delete=function(F,q){return _.jv(this,[F],{mode:"readwrite",enableRetries:!0,commit:OY()&&!(q instanceof IDBKeyRange)},function(t){return t.objectStore(F).delete(q)})};
var nFr=function(F,q){return _.jv(F,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(t){return t.objectStore("ResponseStore").index("byInterface").delete(q)})};
KE.prototype.get=function(F,q){return _.jv(this,[F],{mode:"readonly",enableRetries:!0,commit:OY()},function(t){return t.objectStore(F).get(q)})};
KE.prototype.getAll=function(F,q,t){return _.jv(this,[F],{mode:"readonly",enableRetries:!0},function(u){return u.objectStore(F).getAll(q,t)})};
KE.prototype.put=function(F,q,t){return _.jv(this,[F],{mode:"readwrite",enableRetries:!0,commit:OY()},function(u){return u.objectStore(F).put(q,t)})};
KE.prototype.objectStoreNames=function(){return Array.from(this.JSC$10650_wrapped.objectStoreNames)};
_.jv=function(F,q,t,u){var J,g,Y,Q,e,r,N,w,k,z,T,P;return _.p(function(v){switch(v.nextAddress){case 1:var H={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof t==="string"?H.mode=t:Object.assign(H,t);J=H;F.transactionCount++;g=J.enableRetries?3:1;Y=0;case 2:if(Q){v.jumpTo(4);break}Y++;e=Math.round((0,_.gB)());_.zg(v,5);r=F.JSC$10650_wrapped.transaction(q,J.mode);H=v.yield;var d=!!J.commit;var a=new Bc(r);d=MMx(a,u,d);return H.call(v,d,7);case 7:return N=v.yieldResult,w=Math.round((0,_.gB)()),
TZz(F,e,w,Y,void 0,q.join(),J),v.return(N);case 5:k=_.Gg(v);z=Math.round((0,_.gB)());T=Hjo(k,F.JSC$10650_wrapped.name,q.join(),F.JSC$10650_wrapped.version);if((P=T instanceof CE&&!T.retryable)||Y>=g)TZz(F,e,z,Y,T,q.join(),J),Q=T;v.jumpTo(2);break;case 4:return v.return(Promise.reject(Q))}})};
TZz=function(F,q,t,u,J,g,Y){q=t-q;J?(J instanceof CE&&(J.type==="QUOTA_EXCEEDED"||J.type==="QUOTA_MAYBE_EXCEEDED")&&Hc("QUOTA_EXCEEDED",{dbName:$E(F.JSC$10650_wrapped.name),objectStoreNames:g,transactionCount:F.transactionCount,transactionMode:Y.mode}),J instanceof CE&&J.type==="UNKNOWN_ABORT"&&(t-=F.startedMs,t<0&&t>=2147483648&&(t=0),Hc("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:g,transactionDuration:q,transactionCount:F.transactionCount,dbDuration:t}),F.hasUnknownAbortedTransaction=!0),
GGJ(F,!1,u,g,q,Y.tag),_.Im(J)):GGJ(F,!0,u,g,q,Y.tag)};
GGJ=function(F,q,t,u,J,g){Hc("TRANSACTION_ENDED",{objectStoreNames:u,connectionHasUnknownAbortedTransaction:F.hasUnknownAbortedTransaction,duration:J,isSuccessful:q,tryCount:t,tag:g===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":g})};
KE.prototype.getVersion=function(){return this.JSC$10650_wrapped.version};
KE.prototype.getName=function(){return this.JSC$10650_wrapped.name};
var Pb=function(F){this.JSC$10665_wrapped=F};
Pb.prototype.add=function(F,q){return hU(this.JSC$10665_wrapped.add(F,q))};
Pb.prototype.autoIncrement=function(){return this.JSC$10665_wrapped.autoIncrement};
Pb.prototype.clear=function(){return hU(this.JSC$10665_wrapped.clear()).then(function(){})};
var S1=function(F,q,t){F.JSC$10665_wrapped.createIndex(q,t,{unique:!1})};
Pb.prototype.count=function(F){return hU(this.JSC$10665_wrapped.count(F))};
var DL1=function(F,q){return F4(F,{query:q},function(t){return t.delete().then(function(){return t.continue()})}).then(function(){})};
Pb.prototype.delete=function(F){return F instanceof IDBKeyRange?DL1(this,F):hU(this.JSC$10665_wrapped.delete(F))};
Pb.prototype.get=function(F){return hU(this.JSC$10665_wrapped.get(F))};
Pb.prototype.getAll=function(F,q){return"getAll"in IDBObjectStore.prototype?hU(this.JSC$10665_wrapped.getAll(F,q)):W0w(this,F,q)};
var W0w=function(F,q,t){var u=[];return F4(F,{query:q},function(J){if(!(t!==void 0&&u.length>=t))return u.push(J.getValue()),J.continue()}).then(function(){return u})};
Pb.prototype.index=function(F){try{return new xc(this.JSC$10665_wrapped.index(F))}catch(q){if(q instanceof Error&&q.name==="NotFoundError")throw new vvo(F,this.JSC$10665_wrapped.name);throw q;}};
Pb.prototype.getName=function(){return this.JSC$10665_wrapped.name};
Pb.prototype.keyPath=function(){return this.JSC$10665_wrapped.keyPath};
Pb.prototype.put=function(F,q){return hU(this.JSC$10665_wrapped.put(F,q))};
var F4=function(F,q,t){F=F.JSC$10665_wrapped.openCursor(q.query,q.direction);return OWe(F).then(function(u){return CCo(u,t)})},Bc=function(F){var q=this;
this.JSC$10673_wrapped=F;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(t,u){q.JSC$10673_wrapped.addEventListener("complete",function(){t()});
q.JSC$10673_wrapped.addEventListener("error",function(J){J.currentTarget===J.target&&u(q.JSC$10673_wrapped.error)});
q.JSC$10673_wrapped.addEventListener("abort",function(){var J=q.JSC$10673_wrapped.error;if(J)u(J);else if(!q.aborted){J=CE;for(var g=q.JSC$10673_wrapped.objectStoreNames,Y=[],Q=0;Q<g.length;Q++){var e=g.item(Q);if(e===null)throw Error("Uc");Y.push(e)}J=new J("UNKNOWN_ABORT",{objectStoreNames:Y.join(),dbName:q.JSC$10673_wrapped.db.name,mode:q.JSC$10673_wrapped.mode});u(J)}})})},MMx=function(F,q,t){var u=new Promise(function(J,g){try{var Y=q(F);
t&&F.commit();Y.then(function(Q){J(Q)}).catch(g)}catch(Q){g(Q),F.abort()}});
return Promise.all([u,F.done]).then(function(J){return _.X(J).next().value})};
Bc.prototype.abort=function(){this.JSC$10673_wrapped.abort();this.aborted=!0;throw new CE("EXPLICIT_ABORT");};
Bc.prototype.commit=function(){if(!this.aborted){var F,q;(q=(F=this.JSC$10673_wrapped).commit)==null||q.call(F)}};
Bc.prototype.objectStore=function(F){F=this.JSC$10673_wrapped.objectStore(F);var q=this.objectStoreCache.get(F);q||(q=new Pb(F),this.objectStoreCache.set(F,q));return q};
var xc=function(F){this.JSC$10675_wrapped=F};
xc.prototype.count=function(F){return hU(this.JSC$10675_wrapped.count(F))};
xc.prototype.delete=function(F){return _.lo(this,{query:F},function(q){return q.delete().then(function(){return q.continue()})})};
xc.prototype.get=function(F){return hU(this.JSC$10675_wrapped.get(F))};
xc.prototype.getAll=function(F,q){return"getAll"in IDBIndex.prototype?hU(this.JSC$10675_wrapped.getAll(F,q)):PR1(this,F,q)};
var PR1=function(F,q,t){var u=[];return _.lo(F,{query:q},function(J){if(!(t!==void 0&&u.length>=t))return u.push(J.getValue()),J.continue()}).then(function(){return u})};
xc.prototype.keyPath=function(){return this.JSC$10675_wrapped.keyPath};
xc.prototype.unique=function(){return this.JSC$10675_wrapped.unique};
_.lo=function(F,q,t){F=F.JSC$10675_wrapped.openCursor(q.query===void 0?null:q.query,q.direction===void 0?"next":q.direction);return OWe(F).then(function(u){return CCo(u,t)})};
Ad=function(F,q){this.request=F;this.cursor=q};
OWe=function(F){return hU(F).then(function(q){return q?new Ad(F,q):null})};
Ad.prototype.continue=function(F){this.cursor.continue(F);return OWe(this.request)};
Ad.prototype.delete=function(){return hU(this.cursor.delete()).then(function(){})};
Ad.prototype.getValue=function(){return this.cursor.value};
Ad.prototype.update=function(F){return hU(this.cursor.update(F))};var vb=function(F,q){this.name=F;this.options=q;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},xLe;
vb.prototype.openDb=function(F,q,t){t=t===void 0?{}:t;return Vz$(F,q,t)};
vb.prototype.delete=function(F){F=F===void 0?{}:F;return _.fE(this.name,F)};
xLe=function(F,q){return new CE("INCOMPATIBLE_DB_VERSION",{dbName:F.name,oldVersion:F.options.version,newVersion:q})};
_.am=function(F,q){if(!q)throw VF("openWithToken",$E(F.name));return F.open()};
vb.prototype.open=function(){var F=this;if(!this.isCompatible)throw xLe(this);if(this.connectionPromise)return this.connectionPromise;var q,t=function(){F.connectionPromise===q&&(F.connectionPromise=void 0)},u={blocking:function(g){g.close()},
closed:t,terminated:t,upgrade:this.options.upgrade},J=function(){var g,Y,Q,e,r,N,w,k,z,T;return _.p(function(P){switch(P.nextAddress){case 1:return Y=(g=Error().stack)!=null?g:"",_.zg(P,2),P.yield(F.openDb(F.name,F.options.version,u),4);case 4:for(var v=Q=P.yieldResult,H=F.options,d=[],a=_.X(Object.keys(H.objectStores)),S=a.next();!S.done;S=a.next()){S=S.value;var K=H.objectStores[S],h=K.removedAtVersion===void 0?Number.MAX_VALUE:K.removedAtVersion;!(v.JSC$10650_wrapped.version>=K.addedAtVersion)||
v.JSC$10650_wrapped.version>=h||v.JSC$10650_wrapped.objectStoreNames.contains(S)||d.push(S)}e=d;if(e.length===0){P.jumpTo(5);break}r=Object.keys(F.options.objectStores);N=Q.objectStoreNames();if(F.timesReopenedToFixMissingObjectStore<_.YE("ytidb_reopen_db_retries",0))return F.timesReopenedToFixMissingObjectStore++,Q.close(),_.Im(new CE("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:F.name,expectedObjectStores:r,foundObjectStores:N})),P.return(J());if(!(F.timesDeletedToFixMissingObjectStore<_.YE("ytidb_remake_db_retries",
1))){P.jumpTo(6);break}F.timesDeletedToFixMissingObjectStore++;return P.yield(F.delete(),7);case 7:return _.Im(new CE("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:F.name,expectedObjectStores:r,foundObjectStores:N})),P.return(J());case 6:throw new kGL(N,r);case 5:return P.return(Q);case 2:w=_.Gg(P);if(w instanceof DOMException?w.name!=="VersionError":"DOMError"in self&&w instanceof DOMError?w.name!=="VersionError":!(w instanceof Object&&"message"in w)||w.message!=="An attempt was made to open a database using a lower version than the existing version."){P.jumpTo(8);
break}return P.yield(F.openDb(F.name,void 0,Object.assign({},u,{upgrade:void 0})),9);case 9:k=P.yieldResult;z=k.getVersion();if(F.options.version!==void 0&&z>F.options.version+1)throw k.close(),F.isCompatible=!1,xLe(F,z);return P.return(k);case 8:throw t(),w instanceof Error&&!_.E("ytidb_async_stack_killswitch")&&(w.stack=w.stack+"\n"+Y.substring(Y.indexOf("\n")+1)),Hjo(w,F.name,"",(T=F.options.version)!=null?T:-1);}})};
return this.connectionPromise=q=J()};var Upy=new vb("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(F,q){q(1)&&UI(F,"databases",{keyPath:"actualName"})}});var axC,LVq=new function(){}(new function(){});new _.i1;var Agj=function(F,q){vb.call(this,F,q);this.options=q;mh(F)};
_.M(Agj,vb);var ln3=function(F,q){var t;return function(){t||(t=new Agj(F,q));return t}};
Agj.prototype.openDb=function(F,q,t){t=t===void 0?{}:t;return(this.options.shared?tTM:qyC)(F,q,Object.assign({},t))};
Agj.prototype.delete=function(F){F=F===void 0?{}:F;return(this.options.shared?ghy:uKo)(this.name,F)};var vFd={},Xx3=sI("ytGcfConfig",{objectStores:(vFd.coldConfigStore={addedAtVersion:1},vFd.hotConfigStore={addedAtVersion:1},vFd),shared:!1,upgrade:function(F,q){q(1)&&(S1(UI(F,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),S1(UI(F,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var ISO=function(){_.OP.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var F=_.S6("yt.gcf.config.hotUpdateCallbacks");F?(this.localHotConfigJobQueue=[].concat(_.mZ(F)),this.sharedHotConfigJobQueue=F):(this.sharedHotConfigJobQueue=[],_.uo("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.M(ISO,_.OP);ISO.prototype.disposeInternal=function(){for(var F=_.X(this.localHotConfigJobQueue),q=F.next();!q.done;q=F.next()){var t=this.sharedHotConfigJobQueue;q=t.indexOf(q.value);q>=0&&t.splice(q,1)}this.localHotConfigJobQueue.length=0;_.OP.prototype.disposeInternal.call(this)};var OD=function(){var F=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new ISO;this.TEST_ONLY={initializeConfigDb:function(){F.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return F.coldGlobalConfigGroup},
setHotConfigGroup:function(q){HWe(F,q)},
setHotHashData:function(q){F.setHotHashData(q)},
setColdConfigGroup:function(q){mLO(F,q)},
getColdHashData:function(){return F.coldHashData},
getHotHashData:function(){return F.hotHashData},
getHotConfigGroup:function(){return F.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return $Lj()},
getExportedHotConfigGroup:function(){return IO()},
getExportedColdHashData:function(){return _.S6("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.S6("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){bWf(F)},
resetInstance:function(){F.setHotHashData(void 0);ygv(F);delete OD.instance},
setDebounceTimer:function(q){F.debounceTimer=q},
getDebounceTimer:function(){return F.debounceTimer}}},CRE=function(){if(!OD.instance){var F=new OD;
OD.instance=F}return OD.instance},ULO=function(F){var q;
_.p(function(t){if(t.nextAddress==1)return _.E("start_client_gcf")||_.E("delete_gcf_config_db")?_.E("start_client_gcf")?t.yield(_.JD(),3):t.jumpTo(2):t.return();t.nextAddress!=2&&((q=t.yieldResult)&&_.GQ()&&!_.E("delete_gcf_config_db")?(F.isConfigDbInitialized=!0,bWf(F)):(dLE(F),VMJ(F)));return _.E("delete_gcf_config_db")?t.yield(Rbu(),0):t.jumpTo(0)})},P2=function(){var F;
return(F=IO())!=null?F:_.bn("RAW_HOT_CONFIG_GROUP")},STx=function(F){var q,t,u,J,g,Y;
return _.p(function(Q){switch(Q.nextAddress){case 1:if(F.hotGlobalConfigGroup)return Q.return(IO());if(!F.isConfigDbInitialized)return q=VF("getHotConfig IDB not initialized"),_.hN(q),Q.return(Promise.reject(q));t=tD();u=_.bn("TIME_CREATED_MS");if(!t){J=VF("getHotConfig token error");_.hN(J);Q.jumpTo(2);break}return Q.yield(ZGy(t),3);case 3:if((g=Q.yieldResult)&&g.timestamp>u)return HWe(F,g.config),F.setHotHashData(g.hashData),Q.return(IO());case 2:VMJ(F);if(!(t&&F.hotGlobalConfigGroup&&F.hotHashData)){Q.jumpTo(4);
break}return Q.yield(pxA(F.hotGlobalConfigGroup,F.hotHashData,t,u),4);case 4:return F.hotGlobalConfigGroup?Q.return(IO()):(Y=new _.D0("Config not available in ytConfig"),_.hN(Y),Q.return(Promise.reject(Y)))}})},K0x=function(F){var q,t,u,J,g,Y;
return _.p(function(Q){switch(Q.nextAddress){case 1:if(F.coldGlobalConfigGroup)return Q.return($Lj());if(!F.isConfigDbInitialized)return q=VF("getColdConfig IDB not initialized"),_.hN(q),Q.return(Promise.reject(q));t=tD();u=_.bn("TIME_CREATED_MS");if(!t){J=VF("getColdConfig");_.hN(J);Q.jumpTo(2);break}return Q.yield(ebf(t),3);case 3:if((g=Q.yieldResult)&&g.timestamp>u)return mLO(F,g.config),hfj(F,g.configData),ygv(F,g.hashData),Q.return($Lj());case 2:dLE(F);if(!(t&&F.coldGlobalConfigGroup&&F.coldHashData&&
F.configData)){Q.jumpTo(4);break}return Q.yield(QbM(F.coldGlobalConfigGroup,F.coldHashData,F.configData,t,u),4);case 4:return F.coldGlobalConfigGroup?Q.return($Lj()):(Y=new _.D0("Config not available in ytConfig"),_.hN(Y),Q.return(Promise.reject(Y)))}})},bWf=function(F){if(!F.hotGlobalConfigGroup||!F.coldGlobalConfigGroup){if(!tD()){var q=VF("scheduleGetConfigs");
_.hN(q)}F.initJob||(F.initJob=_.mI.addLowPriorityJob(function(){return _.p(function(t){switch(t.nextAddress){case 1:return _.zg(t,2),t.yield(STx(F),4);case 4:_.LE(t,3);break;case 2:_.Gg(t);case 3:return _.zg(t,5),t.yield(K0x(F),7);case 7:_.LE(t,6);break;case 5:_.Gg(t);case 6:F.initJob&&(F.initJob=0),_.WA(t)}})},100))}},pDC=function(F,q,t){var u,J,g;
return _.p(function(Y){switch(Y.nextAddress){case 1:if(!_.E("start_client_gcf")){Y.jumpTo(0);break}t&&HWe(F,t);F.setHotHashData(q);u=tD();if(!u){Y.jumpTo(3);break}if(t){Y.jumpTo(4);break}return Y.yield(ZGy(u),5);case 5:J=Y.yieldResult,t=(g=J)==null?void 0:g.config;case 4:return Y.yield(pxA(t,q,u),3);case 3:if(t)for(var Q=t,e=_.X(F.configUpdateService.sharedHotConfigJobQueue),r=e.next();!r.done;r=e.next())r=r.value,r(Q);_.WA(Y)}})},Qs$=function(F,q,t){var u,J,g,Y;
return _.p(function(Q){if(Q.nextAddress==1){if(!_.E("start_client_gcf"))return Q.jumpTo(0);ygv(F,q);return(u=tD())?t?Q.jumpTo(4):Q.yield(ebf(u),5):Q.jumpTo(0)}Q.nextAddress!=4&&(J=Q.yieldResult,t=(g=J)==null?void 0:g.config);if(!t)return Q.jumpTo(0);Y=t.configData;return Q.yield(QbM(t,q,Y,u),0)})},AnC=function(){var F=CRE(),q=(0,_.gB)()-F.debounceTimer;
if(!(F.debounceTimer!==0&&q<_.YE("send_config_hash_timer"))){q=_.S6("yt.gcf.config.coldConfigData");var t=_.S6("yt.gcf.config.hotHashData"),u=_.S6("yt.gcf.config.coldHashData");q&&t&&u&&(F.debounceTimer=(0,_.gB)());return{coldConfigData:q,hotHashData:t,coldHashData:u}}},dLE=function(F){mLO(F,_.bn("RAW_COLD_CONFIG_GROUP"));
ygv(F,_.bn("SERIALIZED_COLD_HASH_DATA"));var q;hfj(F,(q=F.coldGlobalConfigGroup)==null?void 0:q.configData)},VMJ=function(F){HWe(F,_.bn("RAW_HOT_CONFIG_GROUP"));
F.setHotHashData(_.bn("SERIALIZED_HOT_HASH_DATA"))},HWe=function(F,q){F.hotGlobalConfigGroup=q;
_.uo("yt.gcf.config.hotConfigGroup",F.hotGlobalConfigGroup||null)},mLO=function(F,q){F.coldGlobalConfigGroup=q;
_.uo("yt.gcf.config.coldConfigGroup",F.coldGlobalConfigGroup||null)};
OD.prototype.setHotHashData=function(F){this.hotHashData=F;_.uo("yt.gcf.config.hotHashData",this.hotHashData||null)};
var ygv=function(F,q){F.coldHashData=q;_.uo("yt.gcf.config.coldHashData",F.coldHashData||null)},hfj=function(F,q){F.configData=q;
_.uo("yt.gcf.config.coldConfigData",F.configData||null)},IO=function(){return _.S6("yt.gcf.config.hotConfigGroup")},$Lj=function(){return _.S6("yt.gcf.config.coldConfigGroup")};var wB={},BZL=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";wB.assign=function(F){for(var q=Array.prototype.slice.call(arguments,1);q.length;){var t=q.shift();if(t){if(typeof t!=="object")throw new TypeError("Xc`"+t);for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(F[u]=t[u])}}return F};
wB.shrinkBuf=function(F,q){if(F.length===q)return F;if(F.subarray)return F.subarray(0,q);F.length=q;return F};
var L0E={arraySet:function(F,q,t,u,J){if(q.subarray&&F.subarray)F.set(q.subarray(t,t+u),J);else for(var g=0;g<u;g++)F[J+g]=q[t+g]},
flattenChunks:function(F){var q,t;var u=t=0;for(q=F.length;u<q;u++)t+=F[u].length;var J=new Uint8Array(t);u=t=0;for(q=F.length;u<q;u++){var g=F[u];J.set(g,t);t+=g.length}return J}},fSw={arraySet:function(F,q,t,u,J){for(var g=0;g<u;g++)F[J+g]=q[t+g]},
flattenChunks:function(F){return[].concat.apply([],F)}};
wB.setTyped=function(){BZL?(wB.Buf8=Uint8Array,wB.Buf16=Uint16Array,wB.Buf32=Int32Array,wB.assign(wB,L0E)):(wB.Buf8=Array,wB.Buf16=Array,wB.Buf32=Array,wB.assign(wB,fSw))};
wB.setTyped();var aSd=!0;try{new Uint8Array(1)}catch(F){aSd=!1}
var Z1C=function(F){var q,t,u=F.length,J=0;for(q=0;q<u;q++){var g=F.charCodeAt(q);if((g&64512)===55296&&q+1<u){var Y=F.charCodeAt(q+1);(Y&64512)===56320&&(g=65536+(g-55296<<10)+(Y-56320),q++)}J+=g<128?1:g<2048?2:g<65536?3:4}var Q=new wB.Buf8(J);for(q=t=0;t<J;q++)g=F.charCodeAt(q),(g&64512)===55296&&q+1<u&&(Y=F.charCodeAt(q+1),(Y&64512)===56320&&(g=65536+(g-55296<<10)+(Y-56320),q++)),g<128?Q[t++]=g:(g<2048?Q[t++]=192|g>>>6:(g<65536?Q[t++]=224|g>>>12:(Q[t++]=240|g>>>18,Q[t++]=128|g>>>12&63),Q[t++]=
128|g>>>6&63),Q[t++]=128|g&63);return Q};var F6q={};F6q=function(F,q,t,u){var J=F&65535|0;F=F>>>16&65535|0;for(var g;t!==0;){g=t>2E3?2E3:t;t-=g;do J=J+q[u++]|0,F=F+J|0;while(--g);J%=65521;F%=65521}return J|F<<16|0};for(var xw={},Hb,j0J=[],cgL=0;cgL<256;cgL++){Hb=cgL;for(var FOe=0;FOe<8;FOe++)Hb=Hb&1?3988292384^Hb>>>1:Hb>>>1;j0J[cgL]=Hb}xw=function(F,q,t,u){t=u+t;for(F^=-1;u<t;u++)F=F>>>8^j0J[(F^q[u])&255];return F^-1};var zA={};zA={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 VT_=[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],Syf=[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],ei3=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],jbP=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],TA=Array(576);Zk(TA);var GA=Array(60);Zk(GA);var kw=Array(512);Zk(kw);var io=Array(256);Zk(io);var U1A=Array(29);Zk(U1A);var hbC=Array(30);Zk(hbC);var YBA,ph3,QEM,Xh$=!1;var Ht;
Ht=[new Ie(0,0,0,0,function(F,q){var t=65535;for(t>F.pending_buf_size-5&&(t=F.pending_buf_size-5);;){if(F.lookahead<=1){AD(F);if(F.lookahead===0&&q===0)return 1;if(F.lookahead===0)break}F.strstart+=F.lookahead;F.lookahead=0;var u=F.block_start+t;if(F.strstart===0||F.strstart>=u)if(F.lookahead=F.strstart-u,F.strstart=u,Dk(F,!1),F.strm.avail_out===0)return 1;if(F.strstart-F.block_start>=F.w_size-262&&(Dk(F,!1),F.strm.avail_out===0))return 1}F.insert=0;if(q===4)return Dk(F,!0),F.strm.avail_out===0?3:
4;F.strstart>F.block_start&&Dk(F,!1);return 1}),
new Ie(4,4,8,4,qBo),new Ie(4,5,16,8,qBo),new Ie(4,6,32,32,qBo),new Ie(4,4,16,16,vt),new Ie(8,16,32,32,vt),new Ie(8,16,128,128,vt),new Ie(8,32,128,256,vt),new Ie(32,128,258,1024,vt),new Ie(32,258,258,4096,vt)];var ljq={};ljq=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 RiW=Object.prototype.toString;
gMu.prototype.push=function(F,q){var t=this.strm,u=this.options.chunkSize;if(this.ended)return!1;var J=q===~~q?q:q===!0?4:0;typeof F==="string"?t.input=Z1C(F):RiW.call(F)==="[object ArrayBuffer]"?t.input=new Uint8Array(F):t.input=F;t.next_in=0;t.avail_in=t.input.length;do{t.avail_out===0&&(t.output=new wB.Buf8(u),t.next_out=0,t.avail_out=u);F=sEy(t,J);if(F!==1&&F!==0)return qen(this,F),this.ended=!0,!1;if(t.avail_out===0||t.avail_in===0&&(J===4||J===2))if(this.options.to==="string"){var g=wB.shrinkBuf(t.output,
t.next_out);q=g;g=g.length;if(g<65537&&(q.subarray&&aSd||!q.subarray))q=String.fromCharCode.apply(null,wB.shrinkBuf(q,g));else{for(var Y="",Q=0;Q<g;Q++)Y+=String.fromCharCode(q[Q]);q=Y}this.chunks.push(q)}else q=wB.shrinkBuf(t.output,t.next_out),this.chunks.push(q)}while((t.avail_in>0||t.avail_out===0)&&F!==1);if(J===4)return(t=this.strm)&&t.state?(u=t.state.status,u!==42&&u!==69&&u!==73&&u!==91&&u!==103&&u!==113&&u!==666?F=oe(t,-2):(t.state=null,F=u===113?oe(t,-3):0)):F=-2,qen(this,F),this.ended=
!0,F===0;J===2&&(qen(this,0),t.avail_out=0);return!0};
var qen=function(F,q){q===0&&(F.result=F.options.to==="string"?F.chunks.join(""):wB.flattenChunks(F.chunks));F.chunks=[];F.err=q;F.msg=F.strm.msg};var tdz=typeof TextEncoder!=="undefined"?new TextEncoder:null,Us$=tdz?function(F){return tdz.encode(F)}:function(F){F=_.Wd(F);
for(var q=new Uint8Array(F.length),t=0;t<q.length;t++)q[t]=F[t];return q};var Mqo={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},GeP={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var mE=function(F,q){this.version=F;this.args=q};
mE.prototype.serialize=function(){return{version:this.version,args:this.args}};var kao=function(F,q){this.topic=F;this.dataClass=q};
kao.prototype.toString=function(){return this.topic};var u5e=_.S6("ytPubsub2Pubsub2Instance")||new _.EV;_.EV.prototype.subscribe=_.EV.prototype.subscribe;_.EV.prototype.unsubscribeByKey=_.EV.prototype.unsubscribeByKey;_.EV.prototype.publish=_.EV.prototype.publish;_.EV.prototype.clear=_.EV.prototype.clear;_.uo("ytPubsub2Pubsub2Instance",u5e);var i1o=_.S6("ytPubsub2Pubsub2SubscribedKeys")||{};_.uo("ytPubsub2Pubsub2SubscribedKeys",i1o);var zi_=_.S6("ytPubsub2Pubsub2TopicToKeys")||{};_.uo("ytPubsub2Pubsub2TopicToKeys",zi_);
var EMo=_.S6("ytPubsub2Pubsub2IsAsync")||{};_.uo("ytPubsub2Pubsub2IsAsync",EMo);_.uo("ytPubsub2Pubsub2SkipSubKey",null);var xsq=void 0,O1o=void 0;var yYv=_.YE("max_body_size_to_compress",5E5),CLA=_.YE("min_body_size_to_compress",500),bo=!0,K6q=0,ya=0,hif=_.YE("compression_performance_threshold_lr",250),Bs3=_.YE("slow_compressions_before_abandon_count",4),Ijo=!1,H1_=new Map,Vp_=1,dsC=!0;_.gd(Ct,ajo);Ct.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 JJw=function(F,q,t){t||(t=0);var u=F.W_;if(typeof q==="string")for(var J=0;J<16;J++)u[J]=q.charCodeAt(t)<<24|q.charCodeAt(t+1)<<16|q.charCodeAt(t+2)<<8|q.charCodeAt(t+3),t+=4;else for(J=0;J<16;J++)u[J]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3],t+=4;for(q=16;q<80;q++)t=u[q-3]^u[q-8]^u[q-14]^u[q-16],u[q]=(t<<1|t>>>31)&4294967295;q=F.chain_[0];t=F.chain_[1];J=F.chain_[2];for(var g=F.chain_[3],Y=F.chain_[4],Q,e,r=0;r<80;r++)r<40?r<20?(Q=g^t&(J^g),e=1518500249):(Q=t^J^g,e=1859775393):r<60?(Q=t&J|g&(t|J),
e=2400959708):(Q=t^J^g,e=3395469782),Q=(q<<5|q>>>27)+Q+Y+e+u[r]&4294967295,Y=g,g=J,J=(t<<30|t>>>2)&4294967295,t=q,q=Q;F.chain_[0]=F.chain_[0]+q&4294967295;F.chain_[1]=F.chain_[1]+t&4294967295;F.chain_[2]=F.chain_[2]+J&4294967295;F.chain_[3]=F.chain_[3]+g&4294967295;F.chain_[4]=F.chain_[4]+Y&4294967295};
Ct.prototype.update=function(F,q){if(F!=null){q===void 0&&(q=F.length);for(var t=q-this.blockSize,u=0,J=this.buf_,g=this.inbuf_;u<q;){if(g==0)for(;u<=t;)JJw(this,F,u),u+=this.blockSize;if(typeof F==="string")for(;u<q;){if(J[g]=F.charCodeAt(u),++g,++u,g==this.blockSize){JJw(this,J);g=0;break}}else for(;u<q;)if(J[g]=F[u],++g,++u,g==this.blockSize){JJw(this,J);g=0;break}}this.inbuf_=g;this.total_+=q}};
Ct.prototype.digest=function(){var F=[],q=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var t=this.blockSize-1;t>=56;t--)this.buf_[t]=q&255,q/=256;JJw(this,this.buf_);for(t=q=0;t<5;t++)for(var u=24;u>=0;u-=8)F[q]=this.chain_[t]>>u&255,++q;return F};var FWy;var bl=function(F){var q=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(N){q.databaseToken=N},
triggerThrottle:function(){q.throttledSend()},
cancelThrottle:function(){q.cancelThrottledSend()},
immediateSend:function(N){return _.p(function(w){return w.yield(q.immediateSend(N),0)})},
requestWithinAgeLimit:function(N,w){return q.requestWithinAgeLimit(N,w)},
retryQueuedRequests:function(){q.retryQueuedRequests()}};
var t;this.throttleTimeout=(t=F.throttleTimeout)!=null?t:100;var u;this.retryMaxAttempts=(u=F.retryMaxAttempts)!=null?u:1;var J;this.requestAgeLimitMs=(J=F.requestAgeLimitMs)!=null?J:2592E6;var g;this.queuedRequestAgeLimitMs=(g=F.queuedRequestAgeLimitMs)!=null?g:12E4;var Y;this.retryDelayMs=(Y=F.retryDelayMs)!=null?Y:5E3;var Q;this.databaseToken=(Q=F.databaseToken)!=null?Q:void 0;this.enableCleaning=!!F.enableCleaning;var e;this.cleaningRate=(e=F.cleaningRate)!=null?e:.1;var r;this.potentialEsfErrorLimit=
(r=F.potentialEsfErrorLimit)!=null?r:10;F.handleError&&(this.handleError=F.handleError);F.handleWarning&&(this.handleWarning=F.handleWarning);F.disableYtIdbTransactions&&(this.disableYtIdbTransactions=F.disableYtIdbTransactions);F.bypassDbTokenDependency&&(this.bypassDbTokenDependency=F.bypassDbTokenDependency);this.getBooleanFlag=F.getBooleanFlag;this.jobManager=F.jobManager;this.logsStore=F.logsStore;this.networkManager=F.networkManager;this.sendFn=F.sendFn;this.onlineEvent=F.onlineEvent;this.offlineEvent=
F.offlineEvent;$c(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&suj(this)},suj=function(F){$c(F)&&!F.disableYtIdbTransactions&&(F.initialized=!0,F.enableCleaning&&Math.random()<=F.cleaningRate&&F.logsStore.cleanLogsStore(F.databaseToken),F.retryQueuedRequests(),F.networkManager.isNetworkAvailable()&&F.throttledSend(),F.networkManager.listen(F.onlineEvent,F.throttledSend.bind(F)),F.networkManager.listen(F.offlineEvent,F.cancelThrottledSend.bind(F)))};
_.l=bl.prototype;_.l.writeThenSend=function(F,q){var t=this;q=q===void 0?{}:q;if($c(this)&&this.initialized){var u={url:F,options:q,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(u,this.databaseToken).then(function(J){u.id=J;t.networkManager.isNetworkAvailable()&&t.immediateSend(u)}).catch(function(J){t.immediateSend(u);
gzd(t,J)})}else this.sendFn(F,q)};
_.l.sendThenWrite=function(F,q,t){var u=this;q=q===void 0?{}:q;if($c(this)&&this.initialized){var J={url:F,options:q,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(J.skipRetry=t);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!J.skipRetry){if(!J.skipRetry){var g=q.onError?q.onError:function(){};
q.onError=function(Y,Q){return _.p(function(e){if(e.nextAddress==1)return e.yield(u.logsStore.set(J,u.databaseToken).catch(function(r){gzd(u,r)}),2);
g(Y,Q);_.WA(e)})}}this.sendFn(F,q,J.skipRetry)}else this.logsStore.set(J,this.databaseToken).catch(function(Y){u.sendFn(F,q,J.skipRetry);
gzd(u,Y)})}else this.sendFn(F,q,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&t)};
_.l.sendAndWrite=function(F,q){var t=this;q=q===void 0?{}:q;if($c(this)&&this.initialized){var u={url:F,options:q,timestamp:this.now(),status:"NEW",sendCount:0},J=!1,g=q.onSuccess?q.onSuccess:function(){};
u.options.onSuccess=function(Y,Q){u.id!==void 0?t.logsStore.deleteRequest(u.id,t.databaseToken):J=!0;t.networkManager.networkStatusHint&&t.getBooleanFlag&&t.getBooleanFlag("vss_network_hint")&&t.networkManager.networkStatusHint(!0);g(Y,Q)};
this.sendFn(u.url,u.options,void 0,!0);this.logsStore.set(u,this.databaseToken).then(function(Y){u.id=Y;J&&t.logsStore.deleteRequest(u.id,t.databaseToken)}).catch(function(Y){gzd(t,Y)})}else this.sendFn(F,q,void 0,!0)};
_.l.throttledSend=function(){var F=this;if(!$c(this))throw Error("$c");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var q;return _.p(function(t){if(t.nextAddress==1)return t.yield(F.logsStore.getMostRecentByStatus("NEW",F.databaseToken),2);if(t.nextAddress!=3)return q=t.yieldResult,q?t.yield(F.immediateSend(q),3):(F.cancelThrottledSend(),t.return());F.intervalJob&&(F.intervalJob=0,F.throttledSend());_.WA(t)})},this.throttleTimeout))};
_.l.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.l.immediateSend=function(F){var q=this,t;return _.p(function(u){switch(u.nextAddress){case 1:if(!$c(q))throw Error("ad");if(F.id===void 0){u.jumpTo(2);break}return u.yield(q.logsStore.markAsQueued(F.id,q.databaseToken),3);case 3:(t=u.yieldResult)||q.handleWarning(Error("bd"));case 2:if(q.requestWithinAgeLimit(F,q.requestAgeLimitMs)){u.jumpTo(4);break}q.handleWarning(Error("cd"));if(F.id===void 0){u.jumpTo(5);break}return u.yield(q.logsStore.deleteRequest(F.id,q.databaseToken),5);case 5:return u.return();
case 4:F.skipRetry||(F=lt1(q,F));if(!F){u.jumpTo(0);break}if(!F.skipRetry||F.id===void 0){u.jumpTo(8);break}return u.yield(q.logsStore.deleteRequest(F.id,q.databaseToken),8);case 8:q.sendFn(F.url,F.options,!!F.skipRetry),_.WA(u)}})};
var lt1=function(F,q){if(!$c(F))throw Error("dd");var t=q.options.onError?q.options.onError:function(){};
q.options.onError=function(J,g){var Y,Q,e,r;return _.p(function(N){switch(N.nextAddress){case 1:Y=scC(g);(Q=gbW(g))&&F.getBooleanFlag&&F.getBooleanFlag("web_enable_error_204")&&F.handleError(Error("ed"),q.url,g);if(!(F.getBooleanFlag&&F.getBooleanFlag("nwl_consider_error_code")&&Y||F.getBooleanFlag&&!F.getBooleanFlag("nwl_consider_error_code")&&F.potentialEsfErrorCounter<=F.potentialEsfErrorLimit)){N.jumpTo(2);break}if(!F.networkManager.sendNetworkCheckRequest){N.jumpTo(3);break}return N.yield(F.networkManager.sendNetworkCheckRequest(),
3);case 3:if(F.networkManager.isNetworkAvailable()){N.jumpTo(2);break}t(J,g);if(!F.getBooleanFlag||!F.getBooleanFlag("nwl_consider_error_code")||((e=q)==null?void 0:e.id)===void 0){N.jumpTo(6);break}return N.yield(F.logsStore.resetRequest(q.id,F.databaseToken,!1),6);case 6:return N.return();case 2:if(F.getBooleanFlag&&F.getBooleanFlag("nwl_consider_error_code")&&!Y&&F.potentialEsfErrorCounter>F.potentialEsfErrorLimit)return N.return();F.potentialEsfErrorCounter++;if(((r=q)==null?void 0:r.id)===void 0){N.jumpTo(8);
break}return q.sendCount<F.retryMaxAttempts?N.yield(F.logsStore.resetRequest(q.id,F.databaseToken,!0,Q?!1:void 0),12):N.yield(F.logsStore.deleteRequest(q.id,F.databaseToken),8);case 12:F.jobManager.addLowPriorityJob(function(){F.networkManager.isNetworkAvailable()&&F.throttledSend()},F.retryDelayMs);
case 8:t(J,g),_.WA(N)}})};
var u=q.options.onSuccess?q.options.onSuccess:function(){};
q.options.onSuccess=function(J,g){var Y;return _.p(function(Q){if(Q.nextAddress==1)return((Y=q)==null?void 0:Y.id)===void 0?Q.jumpTo(2):Q.yield(F.logsStore.deleteRequest(q.id,F.databaseToken),2);F.networkManager.networkStatusHint&&F.getBooleanFlag&&F.getBooleanFlag("vss_network_hint")&&F.networkManager.networkStatusHint(!0);u(J,g);_.WA(Q)})};
return q};
bl.prototype.requestWithinAgeLimit=function(F,q){F=F.timestamp;return this.now()-F>=q?!1:!0};
bl.prototype.retryQueuedRequests=function(){var F=this;if(!$c(this))throw Error("fd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(q){q&&!F.requestWithinAgeLimit(q,F.queuedRequestAgeLimitMs)?F.jobManager.addLowPriorityJob(function(){return _.p(function(t){if(t.nextAddress==1)return q.id===void 0?t.jumpTo(2):t.yield(F.logsStore.resetRequest(q.id,F.databaseToken),2);F.retryQueuedRequests();_.WA(t)})}):F.networkManager.isNetworkAvailable()&&F.throttledSend()})};
var gzd=function(F,q){F.writeError&&!F.networkManager.isNetworkAvailable()?F.writeError(q):F.handleError(q)},$c=function(F){return!!F.databaseToken||F.bypassDbTokenDependency};var lP_;var R7W={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528};var XWz={},w9C=sI("ServiceWorkerLogsDatabase",{objectStores:(XWz.SWHealthLog={addedAtVersion:1},XWz),shared:!0,upgrade:function(F,q){q(1)&&S1(UI(F,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Tco={},Mgo=0;var O9C;var y9=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},ft=function(){if(!y9.instance){var F=_.S6("yt.networkRequestMonitor.instance")||new y9;
_.uo("yt.networkRequestMonitor.instance",F);y9.instance=F}return y9.instance};
y9.prototype.requestComplete=function(F,q){q&&(this.anyRequestHasSucceeded=!0);F=this.removeParams(F);this.requestMap.get(F)||this.requestMap.set(F,q)};
y9.prototype.isEndpointCFR=function(F){F=this.removeParams(F);return(F=this.requestMap.get(F))?!1:F===!1&&this.anyRequestHasSucceeded?!0:null};
y9.prototype.removeParams=function(F){return F.split("?")[0]};
y9.prototype.removeParams=y9.prototype.removeParams;y9.prototype.isEndpointCFR=y9.prototype.isEndpointCFR;y9.prototype.requestComplete=y9.prototype.requestComplete;y9.getInstance=ft;var Cg=function(F){_.xD.call(this);var q=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=F!=null?F:{addLowPriorityJob:function(J,g){return setTimeout(J,g)},
cancelJob:function(J){clearTimeout(J)}};
var t,u;this.isOnline=(u=(t=window.navigator)==null?void 0:t.onLine)!=null?u:!0;this.onNavigatorChange=function(){return _.p(function(J){return J.yield(YeE(q),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||pWd(this)};
_.M(Cg,_.xD);Cg.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Cg.instance};
Cg.prototype.isNetworkAvailable=function(){return this.isOnline};
var pWd=function(F){F.pollingJob=F.jobManager.addLowPriorityJob(function(){var q;return _.p(function(t){if(t.nextAddress==1)return F.isOnline?((q=window.navigator)==null?0:q.onLine)?t.jumpTo(3):t.yield(YeE(F),3):t.yield(YeE(F),3);pWd(F);_.WA(t)})},3E4)},YeE=function(F,q){return F.networkRequestPromise?F.networkRequestPromise:F.networkRequestPromise=new Promise(function(t){var u,J,g,Y;
return _.p(function(Q){switch(Q.nextAddress){case 1:return u=window.AbortController?new window.AbortController:void 0,g=(J=u)==null?void 0:J.signal,Y=!1,_.zg(Q,2,3),u&&(F.abortTimeoutKey=F.jobManager.addLowPriorityJob(function(){u.abort()},q||2E4)),Q.yield(fetch("/generate_204",{method:"HEAD",
signal:g}),5);case 5:Y=!0;case 3:_.n6(Q);F.networkRequestPromise=void 0;F.abortTimeoutKey&&(F.jobManager.cancelJob(F.abortTimeoutKey),F.abortTimeoutKey=0);Y!==F.isOnline&&(F.isOnline=Y,F.isOnline?F.dispatchEvent("networkstatus-online"):F.dispatchEvent("networkstatus-offline"));t(Y);_.Tg(Q,0);break;case 2:_.Gg(Q),Y=!1,Q.jumpTo(3)}})})};var dg=function(){_.xD.call(this);var F=this;this.shouldFlushErrors=!1;Cg.instance||(Cg.instance=new Cg(_.mI));this.sharedNetworkStatusManager=Cg.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(F.shouldFlushErrors&&_.E("offline_error_handling")){var q=Pdy().get("errors",!0);if(q){for(var t in q)if(q[t]){var u=new _.D0(t,"sent via offline_errors");u.name=q[t].name;u.stack=q[t].stack;u.level=q[t].level;_.CI(u)}Pdy().set("errors",{},2592E3,!0)}}})};
_.M(dg,_.xD);var Quz=function(){if(!dg.instance){var F=_.S6("yt.networkStatusManager.instance")||new dg;_.uo("yt.networkStatusManager.instance",F);dg.instance=F}return dg.instance};
_.l=dg.prototype;_.l.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.l.networkStatusHint=function(F){this.sharedNetworkStatusManager.isOnline=F};
_.l.getWindowStatus=function(){var F=window.navigator.onLine;return F===void 0?!0:F};
_.l.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.l.listen=function(F,q){return this.sharedNetworkStatusManager.listen(F,q)};
_.l.sendNetworkCheckRequest=function(F){F=YeE(this.sharedNetworkStatusManager,F);F.then(function(q){_.E("use_cfr_monitor")&&ft().requestComplete("generate_204",q)});
return F};
dg.prototype.sendNetworkCheckRequest=dg.prototype.sendNetworkCheckRequest;dg.prototype.listen=dg.prototype.listen;dg.prototype.enableErrorFlushing=dg.prototype.enableErrorFlushing;dg.prototype.getWindowStatus=dg.prototype.getWindowStatus;dg.prototype.networkStatusHint=dg.prototype.networkStatusHint;dg.prototype.isNetworkAvailable=dg.prototype.isNetworkAvailable;dg.getInstance=Quz;_.Lt=function(F){F=F===void 0?{}:F;_.xD.call(this);var q=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Quz();var t=_.S6("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);t&&(F.rateLimit?(this.rateLimit=F.rateLimit,t("networkstatus-online",function(){e_v(q,"publicytnetworkstatus-online")}),t("networkstatus-offline",function(){e_v(q,"publicytnetworkstatus-offline")})):(t("networkstatus-online",function(){q.dispatchEvent("publicytnetworkstatus-online")}),t("networkstatus-offline",
function(){q.dispatchEvent("publicytnetworkstatus-offline")})))};
_.M(_.Lt,_.xD);_.Lt.prototype.isNetworkAvailable=function(){var F=_.S6("yt.networkStatusManager.instance.isNetworkAvailable");return F?F.bind(this.nsmInstance)():!0};
_.Lt.prototype.networkStatusHint=function(F){var q=_.S6("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);q&&q(F)};
_.Lt.prototype.sendNetworkCheckRequest=function(F){var q=this,t;return _.p(function(u){t=_.S6("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(q.nsmInstance);return _.E("skip_network_check_if_cfr")&&ft().isEndpointCFR("generate_204")?u.return(new Promise(function(J){var g;q.networkStatusHint(((g=window.navigator)==null?void 0:g.onLine)||!0);J(q.isNetworkAvailable())})):t?u.return(t(F)):u.return(!0)})};
var e_v=function(F,q){F.rateLimit?F.lastJobTime?(_.mI.cancelJob(F.schedulerJob),F.schedulerJob=_.mI.addLowPriorityJob(function(){F.lastPublicSignalSent!==q&&(F.dispatchEvent(q),F.lastPublicSignalSent=q,F.lastJobTime=(0,_.gB)())},F.rateLimit-((0,_.gB)()-F.lastJobTime))):(F.dispatchEvent(q),F.lastPublicSignalSent=q,F.lastJobTime=(0,_.gB)()):F.dispatchEvent(q)};var H9_,V9=function(){bl.call(this,{logsStore:{cleanLogsStore:rvq,deleteRequest:RUo,getMostRecentByStatus:Qct,markAsQueued:eUW,resetRequest:Z9$,set:p9u},networkManager:_.mcf(),handleError:function(F,q,t){var u,J=t==null?void 0:(u=t.error)==null?void 0:u.code;if(J===400||J===415){var g;F=new _.D0(F.message,q,t==null?void 0:(g=t.error)==null?void 0:g.code);_.hN(F,void 0,void 0,void 0,!0)}else _.CI(F)},
handleWarning:_.hN,sendFn:vbo,now:_.gB,writeError:xct,jobManager:_.Gx(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.YE("potential_esf_error_limit",10),getBooleanFlag:_.E,disableYtIdbTransactions:!(_.GQ()&&_.$cu())});this.initializationPromise=new _.i1;_.E("networkless_immediately_drop_all_requests")&&Nco();ghy("LogsDatabaseV2")};
_.M(V9,bl);_.R_d=function(){var F=_.S6("yt.networklessRequestController.instance");F||(F=new V9,_.uo("yt.networklessRequestController.instance",F),_.E("networkless_logging")&&_.JD().then(function(q){F.databaseToken=q;suj(F);F.initializationPromise.resolve();F.enableCleaning&&Math.random()<=F.cleaningRate&&F.databaseToken&&kCu(F.databaseToken);_.E("networkless_immediately_drop_sw_health_store")&&ZBz(F)}));
return F};
V9.prototype.writeThenSend=function(F,q){q||(q={});q=IPP(F,q);_.GQ()||(this.initialized=!1);bl.prototype.writeThenSend.call(this,F,q)};
V9.prototype.sendThenWrite=function(F,q,t){q||(q={});q=IPP(F,q);_.GQ()||(this.initialized=!1);bl.prototype.sendThenWrite.call(this,F,q,t)};
V9.prototype.sendAndWrite=function(F,q){q||(q={});q=IPP(F,q);_.GQ()||(this.initialized=!1);bl.prototype.sendAndWrite.call(this,F,q)};
V9.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var ZBz=function(F){var q;_.p(function(t){if(!F.databaseToken)throw q=VF("clearSWHealthLogsDb"),q;return t.return(EbP(F.databaseToken).catch(function(u){F.handleError(u)}))})};_.yv$=!1;_.b9P=_.uu.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.yv$};_.uo("ytNetworklessLoggingInitializationOptions",_.b9P);var v2=function(F){var q=this;this.config_=null;F?this.config_=F:rnM()&&(this.config_=_.X4());_.W2(_.mI,function(){Jvy(q)},5E3)};
v2.prototype.isReady=function(){!this.config_&&rnM()&&(this.config_=_.X4());return!!this.config_};
var utP=function(F,q,t,u){!_.bn("VISITOR_DATA")&&q!=="visitor_id"&&Math.random()<.01&&_.hN(new _.D0("Missing VISITOR_DATA when sending innertube request.",q,t,u));if(!F.isReady()){var J=new _.D0("innertube xhrclient not ready",q,t,u);_.CI(J);throw J;}var g={headers:u.headers||{},method:"POST",postParams:t,postBody:u.postBody,postBodyFormat:u.postBodyFormat||"JSON",onTimeout:function(){u.onTimeout()},
onFetchTimeout:u.onTimeout,onSuccess:function(w,k){if(u.onSuccess)u.onSuccess(k)},
onFetchSuccess:function(w){if(u.onSuccess)u.onSuccess(w)},
onProgress:function(w){if(u.onProgress)u.onProgress(w)},
onError:function(w,k){if(u.onError)u.onError(k)},
onFetchError:function(w){if(u.onError)u.onError(w)},
timeout:u.timeout,withCredentials:!0,compress:u.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var Y="";(J=F.config_.innertubeHostOverride)&&(Y=J);var Q=F.config_.innertubeUseThirdPartyAuth||!1,e=_.x1W(Q,Y,u);Object.assign(g.headers,e);g.headers.Authorization&&!Y&&Q&&(g.headers["x-origin"]=window.location.origin);var r=_.a5(Y+("/youtubei/"+F.config_.innertubeApiVersion+"/"+q),{alt:"json"}),N=function(w){w=w===void 0?!1:w;var k;if(u.retry&&Y!="www.youtube-nocookie.com"&&
(w||_.E("skip_ls_gel_retry")||g.headers["Content-Type"]!=="application/json"||(k=qkf(q,t,e,Q)),k)){var z=g.onSuccess,T=g.onFetchSuccess;g.onSuccess=function(H,d){tgq(k);z(H,d)};
t.onFetchSuccess=function(H,d){tgq(k);T(H,d)}}try{if(w&&u.retry&&!u.networklessOptions.bypassNetworkless)g.method="POST",u.networklessOptions.writeThenSend?_.R_d().writeThenSend(r,g):_.R_d().sendAndWrite(r,g);
else if(u.compress){var P=!u.networklessOptions.writeThenSend;if(g.postBody){var v=g.postBody;typeof v!=="string"&&(v=JSON.stringify(g.postBody));SBP(r,v,g,_.iK,P)}else SBP(r,JSON.stringify(g.postParams),g,jDP,P)}else _.E("web_all_payloads_via_jspb")?_.iK(r,g):jDP(r,g)}catch(H){if(H.name==="InvalidAccessError")k&&(tgq(k),k=0),_.hN(Error("gd"));else throw H;}k&&_.W2(_.mI,function(){Jvy(F)},5E3)};
_.CdC()?jYv().then(function(w){N(w)}):N(!1)};var cMv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(cMv,_.le);var rJ1=0,VgA=_.es?"webkit":_.QZ?"moz":_.p4?"ms":kiM?"o":"";_.uo("ytDomDomGetNextId",_.S6("ytDomDomGetNextId")||function(){return++rJ1});var NQE={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},uz=function(F){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(F=
F||window.event){this.event=F;for(var q in F)q in NQE||(this[q]=F[q]);this.scale=F.scale;this.rotation=F.rotation;var t=F.target||F.srcElement;t&&t.nodeType==3&&(t=t.parentNode);this.target=t;var u=F.relatedTarget;if(u)try{u=u.nodeName?u:null}catch(J){u=null}else this.type=="mouseover"?u=F.fromElement:this.type=="mouseout"&&(u=F.toElement);this.relatedTarget=u;this.clientX=F.clientX!=void 0?F.clientX:F.pageX;this.clientY=F.clientY!=void 0?F.clientY:F.pageY;this.keyCode=F.keyCode?F.keyCode:F.which;
this.charCode=F.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=F.altKey;this.ctrlKey=F.ctrlKey;this.shiftKey=F.shiftKey;this.metaKey=F.metaKey;this.pageX_=F.pageX;this.pageY_=F.pageY}}catch(J){}},wWz=function(F){if(document.body&&document.documentElement){var q=document.body.scrollTop+document.documentElement.scrollTop;
F.pageX_=F.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);F.pageY_=F.clientY+q}};
uz.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
uz.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
uz.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var qb=_.uu.ytEventsEventsListeners||{};_.uo("ytEventsEventsListeners",qb);var LWP=_.uu.ytEventsEventsCounter||{count:0};_.uo("ytEventsEventsCounter",LWP);var fPo=_.Wk(function(){var F=!1;try{var q=Object.defineProperty({},"capture",{get:function(){F=!0}});
window.addEventListener("test",null,q)}catch(t){}return F});_.gd(sD,_.OP);sD.prototype.onMouseMove_=function(F){F.pageX_===void 0&&wWz(F);var q=F.pageX_;F.pageY_===void 0&&wWz(F);this.position_=new _.bQ(q,F.pageY_)};
sD.prototype.checkPosition_=function(){if(this.position_){var F=(0,_.gB)();if(this.previousTime_!=0){var q=this.previousPosition_,t=this.position_,u=q.x-t.x;q=q.y-t.y;u=Math.sqrt(u*u+q*q)/(F-this.previousTime_);this.cycles_[this.index_]=Math.abs((u-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(t=q=0;t<4;t++)q+=this.cycles_[t]||0;q>=3&&this.callback_();this.previousVelocity_=u}this.previousTime_=F;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
sD.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.aPo(this.mouseListenerKey_)};var qcW={};var YOu=new _.Xk("rawColdConfigGroup");var XDA=new _.Xk("rawHotConfigGroup");var iBr=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(iBr,_.le);var jzy=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(jzy,_.le);var D_=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F,500)};
_.M(D_,_.le);D_.prototype.getPayloadCase=function(){return _.MJ(this,kWw)};
D_.prototype.getContext=function(){return _.Yw(this,jzy,33)};
var kWw=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,527,528];var ta_=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ta_,_.le);var xo$=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(xo$,_.le);xo$.prototype.setVideoId=function(F){return ke(this,1,ATy,k7(F))};
xo$.prototype.getPlaylistId=function(){return _.oX(this,Mb(this,ATy,2))};
var ATy=[1,2];var fRP=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(fRP,_.le);fRP.prototype.getContext=function(){return _.Yw(this,ED,1)};
fRP.prototype.getTier=function(){return _.Aa(this,7)};var EzE,pM,Qw;EzE=_.uu.ytPubsubPubsubInstance||new _.EV;pM=_.uu.ytPubsubPubsubSubscribedKeys||{};Qw=_.uu.ytPubsubPubsubTopicToKeys||{};_.ti$=_.uu.ytPubsubPubsubIsSynchronous||{};_.EV.prototype.subscribe=_.EV.prototype.subscribe;_.EV.prototype.unsubscribeByKey=_.EV.prototype.unsubscribeByKey;_.EV.prototype.publish=_.EV.prototype.publish;_.EV.prototype.clear=_.EV.prototype.clear;_.uo("ytPubsubPubsubInstance",EzE);_.uo("ytPubsubPubsubTopicToKeys",Qw);_.uo("ytPubsubPubsubIsSynchronous",_.ti$);
_.uo("ytPubsubPubsubSubscribedKeys",pM);var Z_=window;var UY=_.E("web_enable_lifecycle_monitoring")&&lR_()!==0,z_e=_.E("web_enable_lifecycle_monitoring");var ozd=function(F){var q=this;var t=t===void 0?0:t;var u=u===void 0?_.Gx():u;this.JSC$10872_defaultPriority=t;this.scheduler=u;this.completedResolver=new _.i1;this.scheduledPayloads=F;for(F={i$jscomp$492:0};F.i$jscomp$492<this.scheduledPayloads.length;F={payload$jscomp$20:void 0,i$jscomp$492:F.i$jscomp$492},F.i$jscomp$492++)F.payload$jscomp$20=this.scheduledPayloads[F.i$jscomp$492],t=function(J){return function(){J.payload$jscomp$20.job();q.scheduledPayloads[J.i$jscomp$492].processed=!0;q.scheduledPayloads.every(function(g){return g.processed===
!0})&&q.completedResolver.resolve()}}(F),u=this.getPriority(F.payload$jscomp$20),u=this.scheduler.addJob(t,u),this.scheduledPayloads[F.i$jscomp$492]=Object.assign({},F.payload$jscomp$20,{job:t,
jobId:u})};
ozd.prototype.flushJobs=function(){var F=this,q=Array.from(this.scheduledPayloads.keys()).sort(function(u,J){return F.getPriority(F.scheduledPayloads[J])-F.getPriority(F.scheduledPayloads[u])});
q=_.X(q);for(var t=q.next();!t.done;t=q.next())t=this.scheduledPayloads[t.value],t.jobId===void 0||t.processed||(this.scheduler.cancelJob(t.jobId),this.scheduler.addJob(t.job,10))};
ozd.prototype.cancel=function(){for(var F=_.X(this.scheduledPayloads),q=F.next();!q.done;q=F.next())q=q.value,q.jobId===void 0||q.processed||this.scheduler.cancelJob(q.jobId),q.processed=!0;this.completedResolver.resolve()};
ozd.prototype.getPriority=function(F){var q;return(q=F.priority)!=null?q:this.JSC$10872_defaultPriority};var Sh=function(F){this.state=F;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};UY&&XTP(this.state)};
Sh.prototype.install=function(F){this.plugins.push(F);return this};
Sh.prototype.uninstall=function(){var F=this;_.US.apply(0,arguments).forEach(function(q){q=F.plugins.indexOf(q);q>-1&&F.plugins.splice(q,1)})};
Sh.prototype.transition=function(F,q){var t=this;UY&&Ycv(this.state);var u=this.transitions.find(function(g){return Array.isArray(g.from)?g.from.find(function(Y){return Y===t.state&&g.to===F}):g.from===t.state&&g.to===F});
if(u){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);nz1(this,F,q);this.state=F;UY&&XTP(this.state);u=u.action.bind(this);var J=this.plugins.filter(function(g){return g[F]}).map(function(g){return g[F]});
u(Mdz(this,J),q)}else throw Error("hd`"+this.state+"`"+F);};
var Mdz=function(F,q){var t=q.filter(function(J){return TQd(F,J)===10}),u=q.filter(function(J){return TQd(F,J)!==10});
return F.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var J=_.US.apply(0,arguments);return _.p(function(g){if(g.nextAddress==1)return g.yield(F.runImmediateJobsAsync.apply(F,[t].concat(_.mZ(J))),2);F.setJobSetWithScheduledJobs.apply(F,[u].concat(_.mZ(J)));_.WA(g)})}:function(){var J=_.US.apply(0,arguments);
F.runImmediateJobsSync.apply(F,[t].concat(_.mZ(J)));F.setJobSetWithScheduledJobs.apply(F,[u].concat(_.mZ(J)))}};
Sh.prototype.runImmediateJobsSync=function(F){var q=_.US.apply(1,arguments);_.Gx();for(var t=_.X(F),u=t.next(),J={};!u.done;J={lifecycle$jscomp$2:void 0},u=t.next())J.lifecycle$jscomp$2=u.value,No(function(g){return function(){GW1(g.lifecycle$jscomp$2.name);QI$(function(){return g.lifecycle$jscomp$2.callback.apply(g.lifecycle$jscomp$2,_.mZ(q))});
hd(g.lifecycle$jscomp$2.name)}}(J))};
Sh.prototype.runImmediateJobsAsync=function(F){var q=_.US.apply(1,arguments),t,u,J,g;return _.p(function(Y){Y.nextAddress==1&&(_.Gx(),t=_.X(F),u=t.next(),J={});if(Y.nextAddress!=3){if(u.done)return Y.jumpTo(0);J.lifecycle$jscomp$3=u.value;J.asyncJobCompletion=void 0;g=function(Q){return function(){GW1(Q.lifecycle$jscomp$3.name);var e=QI$(function(){return Q.lifecycle$jscomp$3.callback.apply(Q.lifecycle$jscomp$3,_.mZ(q))});
a73(e)?Q.asyncJobCompletion=_.E("web_lifecycle_error_handling_killswitch")?e.then(function(){hd(Q.lifecycle$jscomp$3.name)}):e.then(function(){hd(Q.lifecycle$jscomp$3.name)},function(r){pTq(r);
hd(Q.lifecycle$jscomp$3.name)}):hd(Q.lifecycle$jscomp$3.name)}}(J);
No(g);return J.asyncJobCompletion?Y.yield(J.asyncJobCompletion,3):Y.jumpTo(3)}J={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};u=t.next();return Y.jumpTo(2)})};
Sh.prototype.setJobSetWithScheduledJobs=function(F){var q=_.US.apply(1,arguments),t=this,u=F.map(function(J){return{job:function(){GW1(J.name);QI$(function(){return J.callback.apply(J,_.mZ(q))});
hd(J.name)},
priority:TQd(t,J)}});
u.length&&(this.jobSet=new ozd(u))};
var TQd=function(F,q){var t,u;return(u=(t=F.overridePriority)!=null?t:q.priority)!=null?u:0},GW1=function(F){UY&&F&&XTP(F)},hd=function(F){UY&&F&&Ycv(F)},nz1=function(F,q,t){z_e&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+F.constructor.name+"] '"+F.state+"' to '"+q+"'"),console.log("with message: ",t),console.groupEnd())};
_.JJ.Object.defineProperties(Sh.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Ddr=function(F){Sh.call(this,F===void 0?"none":F);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},WOd;
_.M(Ddr,Sh);Ddr.prototype.runApplicationNavigationBegin=function(F,q){var t=this;this.navigationTimer=_.W2(_.mI,function(){t.currentState==="application_navigating"&&t.transition("none")},5E3);
F(q==null?void 0:q.event)};
Ddr.prototype.runApplicationNavigationEnd=function(F,q){this.navigationTimer&&(_.mI.cancelJob(this.navigationTimer),this.navigationTimer=null);F(q==null?void 0:q.event)};
_.lzt=function(){WOd||(WOd=new Ddr);return WOd};var gCo=[];_.uo("yt.logging.transport.getScrapedGelPayloads",function(){return gCo});var RJ=function(){var F=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return F.totalEntries}}};
RJ.prototype.storePayload=function(F,q){F=eCW(F);this.store[F]?this.store[F].push(q):(this.memoizedKeySequences={},this.store[F]=[q]);this.totalEntries++;_.E("more_accurate_gel_parser")&&(q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(q));return F};
RJ.prototype.smartExtractMatchingEntries=function(F){if(!F.keys.length)return[];for(var q=OBd(this,F.keys.splice(0,1)[0]),t=[],u=0;u<q.length;u++)this.store[q[u]]&&F.sizeLimit&&(this.store[q[u]].length<=F.sizeLimit?(t.push.apply(t,_.mZ(this.store[q[u]])),delete this.store[q[u]]):t.push.apply(t,_.mZ(this.store[q[u]].splice(0,F.sizeLimit))));this.totalEntries-=t.length;(F==null?0:F.sizeLimit)&&t.length<(F==null?void 0:F.sizeLimit)&&(F.sizeLimit-=t.length,t.push.apply(t,_.mZ(this.smartExtractMatchingEntries(F))));
return t};
RJ.prototype.extractMatchingEntries=function(F){F=OBd(this,F);for(var q=[],t=0;t<F.length;t++)this.store[F[t]]&&(q.push.apply(q,_.mZ(this.store[F[t]])),delete this.store[F[t]]);this.totalEntries-=q.length;return q};
RJ.prototype.getSequenceCount=function(F){F=OBd(this,F);for(var q=0,t=0;t<F.length;t++){var u=void 0;q+=((u=this.store[F[t]])==null?void 0:u.length)||0}return q};
var OBd=function(F,q){var t=eCW(q);if(F.memoizedKeySequences[t])return F.memoizedKeySequences[t];var u=Object.keys(F.store)||[];if(u.length<=1&&eCW(q)===u[0])return u;for(var J=[],g=0;g<u.length;g++){var Y=u[g].split("/");if(P7v(q.auth,Y[0])){var Q=q.isJspb;P7v(Q===void 0?"undefined":Q?"true":"false",Y[1])&&P7v(q.cttAuthInfo,Y[2])&&(Q=q.tier,Q=Q===void 0?"undefined":JSON.stringify(Q),P7v(Q,Y[3])&&J.push(u[g]))}}return F.memoizedKeySequences[t]=J},P7v=function(F,q){return F===void 0||F==="undefined"?
!0:F===q};
RJ.prototype.getSequenceCount=RJ.prototype.getSequenceCount;RJ.prototype.extractMatchingEntries=RJ.prototype.extractMatchingEntries;RJ.prototype.smartExtractMatchingEntries=RJ.prototype.smartExtractMatchingEntries;RJ.prototype.storePayload=RJ.prototype.storePayload;var dot,yTP,Vit,wO,xdL,ZHt,e7t,bpo,$o3,Gqo,C_v,JCq,IRv;dot=_.YE("initial_gel_batch_timeout",2E3);yTP=_.YE("gel_queue_timeout_max_ms",6E4);Vit=_.YE("gel_min_batch_size",5);wO=void 0;xdL=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
ZHt=new xdL;e7t=new xdL;bpo=new xdL;$o3=new xdL;C_v=!0;JCq=1;_.upP=new Map;IRv=_.uu.ytLoggingTransportTokensToCttTargetIds_||{};_.uo("ytLoggingTransportTokensToCttTargetIds_",IRv);var vmo=_.uu.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.uo("ytLoggingTransportTokensToJspbCttTargetIds_",vmo);var Nb={};var xe=_.uu.ytLoggingGelSequenceIdObj_||{};_.uo("ytLoggingGelSequenceIdObj_",xe);var N0$=[];var Wpu=new Set,z7W=0,ACW=0,xZC=0,nCM=[],oCP=[],vC$=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Kpo=function(){};
Kpo.prototype.getUrl=function(F,q){q=q===void 0?!1:q;return F.hasOwnProperty("shareEndpoint")?null:_.$Zo(F,null,q)};
var m_o=function(F,q,t){F={endpoint:q,actions:[]};t=(t.path?t.path[0]:t.target).icon||"";q=t.indexOf(":");q>0&&(t=t.substr(q+1));t&&F.actions.push(t);return F};var UZ_=/Command$/,Vau=/Endpoint$/,yCq=new Map;var AJE,vzJ;AJE=1;_.B2=function(){this.actionRoutingMap=new Map};
_.B2.prototype.triggerAction=function(F){var q=new PmW(F,!1,_.US.apply(1,arguments));this.handleAction(q);return q.returnValue};
_.B2.prototype.triggerOptionalAction=function(F){var q=new PmW(F,!0,_.US.apply(1,arguments));this.handleAction(q);return q.returnValue};
_.Kg=function(F,q,t){q.forEach(function(u){var J=dZv(u);J&&F.triggerOptionalAction(J,u,t,void 0)})};
_.B2.prototype.handleAction=function(F){var q=this.actionRoutingMap.get(F.actionName);q&&vzJ(F,q);F.optionalAction||F.returnValue.length!==0||(F=new _.D0("Unhandled action",F.actionName),_.hN(F))};
vzJ=function(F,q){q.forEach(function(t){var u=null;t?u=t.apply(null,F.args):(t=Error("id"),t.params=F.actionName,_.CI(t));F.returnValue.push(u)})};
_.aJ=function(F,q,t){t||(t=AJE++);for(var u=_.X(Object.keys(q)),J=u.next();!J.done;J=u.next()){J=J.value;var g=F.actionRoutingMap.get(J);g||(g=new Map,F.actionRoutingMap.set(J,g));F.registerActionHandler(t,J,q[J],g)}return t};
_.B2.prototype.registerActionHandler=function(F,q,t,u){u.set(F,_.UK(t))};
_.jJ=function(F,q,t){q=_.X(Object.keys(q));for(var u=q.next();!u.done;u=q.next())(u=F.actionRoutingMap.get(u.value))&&u.delete(t)};
_.Ja(_.B2);var fz_=function(F,q){var t=_.B2.getInstance();_.v_(function(){var u={},J=_.aJ(t,(u[F]=q,u));_.vj(function(){var g={};_.jJ(t,(g[F]="",g),J)})})};var aGv=Symbol("kd");FO3=xdq;var euP=new Set(["For","If","Match","Watch"]),Itn={},HBv=(Itn[Ud.default]=function(){return hf_},Itn.style=function(){return hf_},Itn),mdv;
for(mdv in HBv)l5.attributes[mdv]=HBv[mdv](l5.attributes[mdv]);var gZ=new _.pg("VISIBILITY_OBSERVER");var zuu={retrieve:function(F){return this.id.\u0275prov.token===F.\u0275prov.token?this.contextValue:this?_.JO(this,this.id):M1t}};var I9P=function(F,q,t){if(F!==tg)return!1;F=gi3(document.createElement("div"),function(){var u=Xb(!1);try{t[0]()}finally{Xb(u)}});
F=Array.from(F.childNodes);F.length===1&&(F=F[0]);return F};var $dO=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(F){}var bBJ=typeof WeakRef==="function";var yJr=function(F){this.value=F};
yJr.prototype.deref=function(){return this.value};
var C7d=bBJ?WeakRef:yJr,ddr=function(F){this.newKeyHandler=F;this.map=new WeakMap};
ddr.prototype.add=function(F,q){this.map.has(F)||(this.newKeyHandler(F),this.map.set(F,[]));this.map.get(F).push(new C7d(q))};
ddr.prototype.get=function(F){var q=this;return function u(){var J,g,Y,Q,e,r,N,w,k,z,T;return _.X9(u,function(P){switch(P.nextAddress){case 1:_.Mv(P,2);J=q.map.get(F);if(!J)return P.return();g=0;Y=_.X(J);Q=Y.next();case 4:if(Q.done){P.jumpTo(6);break}e=Q.value;r=e.deref();if(!r){P.jumpTo(5);break}g++;N=_.Yf;return P.yield(r,8);case 8:N(P.yieldResult);case 5:Q=Y.next();P.jumpTo(4);break;case 6:if(2*g<J.length){w=0;k=_.X(J);for(z=k.next();!z.done;z=k.next())T=z.value,T.deref()&&(J[w++]=T);J.length=
w}case 2:_.n6(P),_.Tg(P,0)}})}()};var Vde=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},WTq=new ddr(function(F){F.addEventListener("abort",PB$,{once:!0})}),DRy=new WeakMap,Udj=function(F){F=F===void 0?Bb:F;
this.signal=new F};
Udj.prototype.abort=function(F){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=F,F=new Event("abort"),this.signal.dispatchEvent(F))};
var Bb=function(){this.target=Vde();this.aborted=!1;this.onabort=null};
Bb.prototype.throwIfAborted=function(){GJA.call(this)};
Bb.prototype.addEventListener=function(F,q,t){this.target.addEventListener(F,q,t)};
Bb.prototype.removeEventListener=function(F,q,t){this.target.removeEventListener(F,q,t)};
Bb.prototype.dispatchEvent=function(F){if(this.onabort&&F.type==="abort")this.onabort(F);return this.target.dispatchEvent(F)};
Bb.abort=TIq;Bb.timeout=xR$;Bb.any=Owf;var Mx$=$dO?AbortController:Udj,Lg=$dO?AbortSignal:Bb;typeof Lg.abort!=="function"&&(Lg.abort=TIq);typeof Lg.prototype.throwIfAborted!=="function"&&(Lg.prototype.throwIfAborted=GJA);typeof Lg.any!=="function"&&(Lg.any=Owf);typeof Lg.timeout!=="function"&&(Lg.timeout=xR$);var Sew=function(F){F=F.clone();l0L(F);xd(F,"dg",null);xd(F,"d","0");uRx(F,null);JUd(F,null);return F},h_J=!0,KOf=function(F,q,t){var u=t===void 0?{}:t;
t=u.cssRowKey===void 0?void 0:u.cssRowKey;var J=u.combinedSignature===void 0?void 0:u.combinedSignature;var g=u.extraEdges===void 0?void 0:u.extraEdges;u=u.callback===void 0?void 0:u.callback;xd(F,"m",q.join(","));g&&gEv(F,g);t&&(xd(F,"ck",t),J?xd(F,"rs",J):h_J&&(h_J=!1));if(u){if(u!=null&&!pcx.test(u))throw Error("Xa`"+u);xd(F,"cb",u)}F=F.toString();_.gf(F,"/")&&(F=bhw(document.location.href)+F);return _.OS(F)};var LOC=function(F){return BQv(F).then(function(q){return JSON.parse(q.responseText)})},BQv=function(F){var q={},t=q.xmlHttpFactory?q.xmlHttpFactory.createInstance():MAd.createInstance();
return(new _.iz(function(u,J){var g;try{t.open("GET",F,!0)}catch(e){J(new fg("Error opening XHR: "+e.message,F,t))}t.onreadystatechange=function(){if(t.readyState==4){_.uu.clearTimeout(g);var e;!(e=nqd(t.status))&&(e=t.status===0)&&(e=$Dw(F),e=!(e=="http"||e=="https"||e==""));e?u(t):J(new ftf(t.status,F,t))}};
t.onerror=function(){J(new fg("Network error",F,t))};
if(q.headers)for(var Y in q.headers){var Q=q.headers[Y];Q!=null&&t.setRequestHeader(Y,Q)}q.withCredentials&&(t.withCredentials=q.withCredentials);q.responseType&&(t.responseType=q.responseType);q.mimeType&&t.overrideMimeType(q.mimeType);q.timeoutMs>0&&(g=_.uu.setTimeout(function(){t.onreadystatechange=function(){};
t.abort();J(new ate(F,t))},q.timeoutMs));
try{t.send(null)}catch(e){t.onreadystatechange=function(){},_.uu.clearTimeout(g),J(new fg("Error sending XHR: "+e.message,F,t))}})).thenCatch(function(u){u instanceof _.dI&&t.abort();
throw u;})},fg=function(F,q,t){_.Fq.call(this,F+", url="+q);
this.url=q;this.xhr=t};
_.gd(fg,_.Fq);fg.prototype.name="XhrError";var ftf=function(F,q,t){fg.call(this,"Request Failed, status="+F,q,t);this.status=F};
_.gd(ftf,fg);ftf.prototype.name="XhrHttpError";var ate=function(F,q){fg.call(this,"Request timed out",F,q)};
_.gd(ate,fg);ate.prototype.name="XhrTimeoutError";up=up||{};var aO=function(){_.OP.call(this)};
_.gd(aO,_.OP);aO.prototype.initialize=function(){};var jur=function(F,q){this.fn_=F;this.handler_=q};
jur.prototype.execute=function(F){this.fn_&&(this.fn_.call(this.handler_||null,F),this.fn_=this.handler_=null)};
jur.prototype.abort=function(){this.handler_=this.fn_=null};var jh=function(F,q){_.OP.call(this);this.deps_=F;this.JSC$11026_id_=q;this.onloadCallbacks_=[];this.JSC$11026_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.gd(jh,_.OP);jh.prototype.moduleConstructor_=aO;jh.prototype.module_=null;jh.prototype.getId=function(){return this.JSC$11026_id_};
jh.prototype.registerCallback=function(F,q){return cJf(this.onloadCallbacks_,F,q)};
var Fjz=function(F,q){cJf(F.JSC$11026_onErrorCallbacks_,q)},cJf=function(F,q,t){q=new jur(q,t);
F.push(q);return q};
jh.prototype.isLoaded=function(){return!!this.module_};
jh.prototype.onLoad=function(F){var q=new this.moduleConstructor_;q.initialize(F());this.module_=q;q=(q=qHw(this.earlyOnloadCallbacks_,F()))||qHw(this.onloadCallbacks_,F());q||(this.JSC$11026_onErrorCallbacks_.length=0);return q};
jh.prototype.onError=function(F){(F=qHw(this.JSC$11026_onErrorCallbacks_,F))&&Jo(Error("nd`"+F));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var qHw=function(F,q){for(var t=[],u=0;u<F.length;u++)try{F[u].execute(q)}catch(J){Jo(J),t.push(J)}F.length=0;return t.length?t:null};
jh.prototype.disposeInternal=function(){jh.superClass_.disposeInternal.call(this);_.sP(this.module_)};var tcE,Xo1,goL,llx,JVv,sDE,ZJn,QDr,eSz;
_.YF=function(F,q,t,u,J){u=u===void 0?!1:u;J=J===void 0?!1:J;var g=g===void 0?!0:g;this.scsReferenceUrl_=KIv(_.PS(F).toString(),g);this.cssRowKey_=q;this.combinedSignature_=t;this.useNegativeLoading_=u;this.requestedModuleMap_={};this.JSC$11029_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(F=PL(this.scsReferenceUrl_,"excm"))?F.split(","):[];this.shouldScanForCss_=J;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;BB3();_.cb(this,smJ(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
tcE=function(F,q){if(q.href||q.getAttribute("data-href"))if(q=q.href||q.getAttribute("data-href"),V1W(q)&&!KIv(q).urlPrefix_.endsWith("_/js/")){q=smJ(KIv(q));q=_.X(q);for(var t=q.next();!t.done;t=q.next())t=t.value,F.loadedCssModuleList_.includes(t)||F.loadedCssModuleList_.push(t)}};
_.YF.prototype.JSC$11031_loadModules=function(F,q,t){var u=t===void 0?{}:t;t=u.extraEdges;var J=u.onError;var g=u.onSuccess;u=u.forceReload;this.JSC$11029_moduleInfoMap_=q;if(!F)throw Error("od");if(this.shouldScanForCss_){q=_.X(document.getElementsByTagName("style"));for(var Y=q.next();!Y.done;Y=q.next())tcE(this,Y.value);q=_.X(document.getElementsByTagName("link"));for(Y=q.next();!Y.done;Y=q.next())tcE(this,Y.value)}uwd(this,JVv(this,F),t,J,g,u)};
var uwd=function(F,q,t,u,J,g){u=u===void 0?function(){}:u;
J=J===void 0?function(){}:J;
g=g===void 0?!1:g;sDE(F,q,function(Y,Q,e){e=e===void 0?Q:e;F.enableFallbackFetch&&g?F.loadWithFetch(Y,Q,u,J,e):F.load(Y,Q,u,J,e,t)},t)||u(-1)};
_.YF.prototype.loadWithFetch=function(){_.p(function(){throw Error("pd");})};
_.YF.prototype.maybeSetAdditionalFields=function(){};
Xo1=function(F,q,t){if(F.useNegativeLoading_){var u=F.scsReferenceUrl_;F={cssRowKey:F.cssRowKey_,combinedSignature:F.combinedSignature_,extraEdges:t,requestedModuleIds:goL(F),requestedCssModuleIds:llx(F)};var J=F===void 0?{}:F;F=J.requestedModuleIds===void 0?[]:J.requestedModuleIds;t=J.requestedCssModuleIds===void 0?[]:J.requestedCssModuleIds;var g=J.cssRowKey===void 0?void 0:J.cssRowKey;var Y=J.combinedSignature===void 0?void 0:J.combinedSignature;var Q=J.extraEdges===void 0?void 0:J.extraEdges;
J=J.callback===void 0?void 0:J.callback;u=Sew(u);xd(u,"d","1");uRx(u,F);JUd(u,t);q=KOf(u,q,{cssRowKey:g,combinedSignature:Y,extraEdges:Q,callback:J})}else u=F.scsReferenceUrl_,F={cssRowKey:F.cssRowKey_,combinedSignature:F.combinedSignature_,requestedModuleIds:goL(F),requestedCssModuleIds:llx(F)},Q=F===void 0?{}:F,F=Q.requestedCssModuleIds===void 0?[]:Q.requestedCssModuleIds,t=Q.cssRowKey===void 0?void 0:Q.cssRowKey,g=Q.combinedSignature===void 0?void 0:Q.combinedSignature,Y=Q.extraEdges===void 0?
void 0:Q.extraEdges,Q=Q.callback===void 0?void 0:Q.callback,u=Sew(u),JUd(u,F),q=KOf(u,q,{cssRowKey:t,combinedSignature:g,extraEdges:Y,callback:Q});return q};
_.cb=function(F,q){for(var t=!1,u=[],J=0;J<q.length;++J){var g=q[J];F.requestedModuleMap_[g]||(F.requestedModuleMap_[g]=!0,F.requestedModuleList_.push(g),t=!0,u.push(g))}t&&(F.requestedModuleListSorted_=!1)};
_.FH=function(F,q){for(var t=[],u=0;u<q.length;++u){var J=q[u];F.requestedModuleMap_[J]&&(delete F.requestedModuleMap_[J],_.yC(F.requestedModuleList_,J),t.push(J))}};
_.YF.prototype.load=function(F,q,t,u,J){J=J===void 0?q:J;_.PS(F);var g=this.useCors_,Y=this.corsMode_,Q=this.fetchPriority,e=_.nr("SCRIPT");_.uF(e,F);g&&(e.crossOrigin=Y);e.async=!1;Q&&e.setAttribute("fetchpriority",Q);_.cb(this,q);_.YHn(this,F,e,q,t,u,J)};
_.YHn=function(F,q,t,u,J,g,Y){Y=Y===void 0?u:Y;F.lastScript_=t;F.insertPos.insertBefore(t,F.insertPos.firstChild);_.pon(t,u,function(){t.parentElement.removeChild(t);F.lastScript_==t&&(F.lastScript_=null);var Q=new Set;u.map(function(r){return Q.add(r)});
for(var e in F.JSC$11029_moduleInfoMap_)F.JSC$11029_moduleInfoMap_[e].isLoaded()&&Q.add(e);Array.from(Q);g()},function(Q){t.parentElement.removeChild(t);
F.lastScript_==t&&(F.lastScript_=null);_.FH(F,Q);F.pendingModuleGraphUpdate_?F.pendingModuleGraphUpdate_.then(function(){J(-1,q)}):J(-1,q)},Y)};
_.pon=function(F,q,t,u,J){J=J===void 0?q:J;var g=q.length,Y=function(){g=0;F.onload=null;F.onerror=null;Q=function(){}},Q=function(){Y();
var r=J.filter(function(N){return!Hd().getModuleInfo(N).isLoaded()});
r.length!==0?u(r,"Response was successful but was missing module(s) "+r+"."):t()},e=function(){g--;
g==0&&Q()};
q.forEach(function(r){r=Hd().getModuleInfo(r);r.isLoaded()?e():(cJf(r.earlyOnloadCallbacks_,e),Fjz(r,e))});
F.onload=function(){return Q()};
F.onerror=function(){Y();u(q)}};
goL=function(F){F.requestedModuleListSorted_||(F.requestedModuleListSorted_=!0,F.requestedModuleList_.sort());return F.requestedModuleList_};
llx=function(F){F=F.loadedCssModuleList_;F.sort();return F};
JVv=function(F,q){return q.filter(function(t){return!F.requestedModuleMap_[t]})};
sDE=function(F,q,t,u){if(F.pendingModuleGraphUpdate_)return F.pendingModuleGraphUpdate_.then(function(){sDE(F,q,t,u)}),!0;
if(!F.useNegativeLoading_){var J=[],g=Object.assign({},F.requestedModuleMap_);QDr(F,q,function(N){J.push(N.getId())},u,function(N){return!N.isLoaded()},g);
q=J}for(g=0;g<q.length;){for(var Y=q.length-g,Q=g==0?q:q.slice(g,q.length),e=Xo1(F,Q,u),r=_.PS(e).toString();r.length>F.urlMaxLength;)if(Y>1)Y-=Math.ceil((r.length-F.urlMaxLength)/6),Y=Math.max(Y,1),Q=q.slice(g,g+Y),e=Xo1(F,Q,u),r=_.PS(e).toString();else return F.useNegativeLoading_?(F.useNegativeLoading_=!1,F.pendingModuleGraphUpdate_=eSz(F).then(function(N){ZJn(F,N,u)}),sDE(F,q.slice(g),t,u)):!1;
g+=Y;F.useNegativeLoading_?t(e,Q):t(e,Q,g===q.length?q:[])}return!0};
ZJn=function(F,q,t){Hd().setAllModuleInfoString((q||{}).moduleGraph);QDr(F,goL(F),function(u){_.cb(F,[u.getId()])},t);
F.pendingModuleGraphUpdate_=null};
QDr=function(F,q,t,u,J,g){g=g===void 0?{}:g;var Y=Hd();q=_.X(q);for(var Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var e=Y.getModuleInfo(Q);if(!(g[Q]||J&&!J(e))){g[Q]=!0;var r=e.deps_||[];if(u){var N=[];u[Q]&&(N=Object.keys(u[Q]));r=r.concat(N)}QDr(F,r,t,u,J,g);t(e)}}};
eSz=function(F){F=F.scsReferenceUrl_.clone();l0L(F);xd(F,"dg",null);xd(F,"md","1");return LOC(F.toString())};var Aif=new Uint8Array(123);var RSj=[];var rVv=function(){this.JSC$10046_loader_=null};
_.l=rVv.prototype;_.l.setBatchModeEnabled=function(){};
_.l.setAllModuleInfoString=function(){};
_.l.addExtraEdge=function(){throw Error("qd");};
_.l.removeExtraEdge=function(){throw Error("rd");};
_.l.getModuleContext=function(){return null};
_.l.isActive=function(){return!1};
_.l.isUserActive=function(){return!1};
_.l.registerCallback=function(){};var qK=function(F,q,t,u,J){var g=Error.call(this);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.name="ModuleLoadFailure";this.type=F;this.status=q;this.requestedModuleIds=t;this.url=u;this.cause=J;this.message=this.toString()};
_.M(qK,Error);qK.prototype.toString=function(){return NYO(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var NYO=function(F){switch(F.type){case qK.Type.UNAUTHORIZED:return"Unauthorized";case qK.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case qK.Type.TIMEOUT:return"Timed out";case qK.Type.OLD_CODE_GONE:return"Out of date module id";case qK.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+F.type}};
up.ModuleLoadFailure=qK;up.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var tM=function(){this.moduleIds_=this.JSC$10046_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11044_extraEdges_={};this.JSC$11044_callbackMap_={};this.JSC$11044_currentlyLoadingModule_=this.baseModuleInfo_=new jh([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new qV;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.gd(tM,rVv);var wox=function(F,q){_.Fq.call(this,"Error loading "+F+": "+q)};
_.gd(wox,_.Fq);tM.prototype.setBatchModeEnabled=function(F){this.batchModeEnabled_=F};
tM.prototype.setAllModuleInfoString=function(F,q){if(!(this instanceof tM))this.setAllModuleInfoString(F,q);else if(typeof F==="string"){if(F.startsWith("d$")){F=F.substring(2);for(var t=[],u=0,J=F.indexOf("/"),g=0,Y=!1,Q=0;;){var e=Y?F.substring(g):F.substring(g,J);if(e.length===0)u++,g="sy"+u.toString(36),e=[];else{var r=e.indexOf(":");if(r<0)g=e,e=[];else if(r===e.length-1)g=e.substring(0,r),e=Array(t[Q-1]);else{g=e.substring(0,r);e=e.substring(r+1).split(",");r=Q;for(var N=0;N<e.length;N++)r-=
e[N].length===0?1:Number(e[N]),e[N]=t[r]}r=0;if(g.length===0)r=1;else if(g.charAt(0)==="+"||g.charAt(0)==="-")r=Number(g);r!==0&&(u+=r,g="sy"+u.toString(36))}t.push(g);iJj(this,g,e);if(Y)break;g=J+1;J=F.indexOf("/",g);J===-1&&(Y=!0);Q++}this.moduleIds_=t}else if(F.startsWith("p$"))kVL(this,F);else{F=F.split("/");t=[];for(u=0;u<F.length;u++){Q=F[u].split(":");J=Q[0];Y=[];if(Q[1])for(Y=Q[1].split(","),Q=0;Q<Y.length;Q++)Y[Q]=t[parseInt(Y[Q],36)];t.push(J);iJj(this,J,Y)}this.moduleIds_=t}q&&q.length?
(_.UM(this.loadingModuleIds_,q),this.lastInitialModuleId_=_.xP(q)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11044_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11044_currentlyLoadingModule_=null,(q=this.baseModuleInfo_.onLoad((0,_.Pd)(this.getModuleContext,this)))&&q.length&&Eon(this,new up.ModuleLoadFailure(up.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,q[0])),um(this))}};
var kVL=function(F,q){var t=q.substring(2);for(q=0;q<64;q++)Aif["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(q)]=q;var u={buf:t,pos:0};XG(u);var J=XG(u),g=XG(u)+1;q=Array(J);var Y=Array(J),Q=Array(J);g=Array(g);var e=0,r=0,N=u.pos,w=u.buf.indexOf("|",u.pos);u.pos=w+1;for(w=0;w<J;w++){var k=XG(u),z=k&2,T=k&1;k>>>=2;T?(e+=k>>>1^-(k&1),k="sy"+e.toString(36)):(T=N,N+=k,k=t.substring(T,N));q[w]=k;z&&(g[r++]=k)}g[r]="";u.pos++;r=J&-2;t=J&1;for(e=0;e<r;e+=2)N=vif(u),Q[e]=
N&7,Q[e+1]=N>>>3&7;t&&(t=vif(u),Q[r]=t&7);u.pos++;for(r=0;r<J;r++)Q[r]===7&&(Q[r]=XG(u));u.pos++;for(t=r=0;t<J;t++){e=Q[t];N=e===0?RSj:Array(e);Y[t]=N;w=r;for(z=0;z<e;z++)w-=XG(u),N[z]=g[w];g[r]===q[t]&&r++}for(u=0;u<q.length;u++)iJj(F,q[u],Y[u]);F.moduleIds_=q};
_.l=tM.prototype;_.l.getModuleInfo=function(F){return this.moduleInfoMap[F]};
_.l.addExtraEdge=function(F,q){var t=this.getModuleInfo(F);t&&t.isLoaded()?this.load(q):(this.JSC$11044_extraEdges_[F]||(this.JSC$11044_extraEdges_[F]={}),this.JSC$11044_extraEdges_[F][q]=!0)};
_.l.removeExtraEdge=function(F,q){if(this.JSC$11044_extraEdges_[F]){delete this.JSC$11044_extraEdges_[F][q];for(var t in this.JSC$11044_extraEdges_[F])return;delete this.JSC$11044_extraEdges_[F]}};
_.l.isActive=function(){return this.loadingModuleIds_.length>0};
_.l.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var um=function(F){var q=F.lastActive_,t=F.isActive();t!=q&&(F.executeCallbacks_(t?"active":"idle"),F.lastActive_=t);q=F.isUserActive();q!=F.userLastActive_&&(F.executeCallbacks_(q?"userActive":"userIdle"),F.userLastActive_=q)},iJj=function(F,q,t){F.moduleInfoMap[q]?(F=F.moduleInfoMap[q].deps_,F!=t&&F.splice.apply(F,[0,
F.length].concat(_.mZ(t)))):F.moduleInfoMap[q]=new jh(t,q)},ooJ=function(F,q,t){var u=[];
GtA(q,u);q=[];for(var J={},g=0;g<u.length;g++){var Y=u[g],Q=F.getModuleInfo(Y);if(!Q)throw Error("sd`"+Y);var e=new qV;J[Y]=e;Q.isLoaded()?e.callback(null):(zSO(F,Y,Q,!!t,e),F.isModuleLoading(Y)||q.push(Y))}q.length>0&&(F.loadingModuleIds_.length===0?F.loadModules_(q):(F.requestedModuleIdsQueue_.push(q),um(F)));return J},zSO=function(F,q,t,u,J){t.registerCallback(J.callback,J);
Fjz(t,function(g){J.errback(new wox(q,g))});
F.isModuleLoading(q)?u&&(nox(F,q),um(F)):u&&nox(F,q)};
tM.prototype.loadModules_=function(F,q,t){var u=this;q||(this.consecutiveFailures_=0);var J=Mcj(this,F);this.loadingModuleIds_=J;this.requestedLoadingModuleIds_=this.batchModeEnabled_?F:_.C3(J);um(this);if(J.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,J);if(Object.keys(this.JSC$11044_extraEdges_).length>0&&!this.JSC$10046_loader_.supportsExtraEdges)throw Error("td");F=(0,_.Pd)(this.JSC$10046_loader_.JSC$11031_loadModules,this.JSC$10046_loader_,_.C3(J),this.moduleInfoMap,
{extraEdges:this.JSC$11044_extraEdges_,forceReload:!!t,onError:function(g,Y){var Q=u.requestedLoadingModuleIds_;g=g!=null?g:void 0;u.consecutiveFailures_++;var e=_.C3(J);u.requestedLoadingModuleIds_=Q;J.forEach(_.MU(_.yC,u.requestedModuleIds_),u);g==401?(Eon(u,new up.ModuleLoadFailure(up.ModuleLoadFailure.Type.UNAUTHORIZED,g)),u.requestedModuleIdsQueue_.length=0):g==410?(TYE(u,new up.ModuleLoadFailure(up.ModuleLoadFailure.Type.OLD_CODE_GONE,g)),GVn(u)):u.consecutiveFailures_>=3?(TYE(u,new up.ModuleLoadFailure(up.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
g,e,Y)),GVn(u)):u.loadModules_(u.requestedLoadingModuleIds_,!0,g==8001||!1)},
onTimeout:(0,_.Pd)(this.handleLoadTimeout_,this)});(q=Math.pow(this.consecutiveFailures_,2)*5E3)?_.uu.setTimeout(F,q):F()}};
var Mcj=function(F,q){q=q.filter(function(J){return F.moduleInfoMap[J].isLoaded()?(_.uu.setTimeout(function(){return Error("ud`"+J)},0),!1):!0});
for(var t=[],u=0;u<q.length;u++)t=t.concat(DUE(F,q[u]));GtA(t);return!F.batchModeEnabled_&&t.length>1?(q=t.shift(),F.requestedModuleIdsQueue_=t.map(function(J){return[J]}).concat(F.requestedModuleIdsQueue_),[q]):t},DUE=function(F,q){var t=_.m7.createSet(F.requestedModuleIds_),u=[];
t[q]||u.push(q);q=[q];for(var J=0;J<q.length;J++)for(var g=F.getModuleInfo(q[J]).deps_,Y=g.length-1;Y>=0;Y--){var Q=g[Y];F.getModuleInfo(Q).isLoaded()||t[Q]||(u.push(Q),q.push(Q))}u.reverse();GtA(u);return u};
tM.prototype.JSC$11039_setLoaded=function(){if(this.JSC$11044_currentlyLoadingModule_){var F=this.JSC$11044_currentlyLoadingModule_.getId(),q=[];if(this.JSC$11044_extraEdges_[F]){for(var t=_.X(Object.keys(this.JSC$11044_extraEdges_[F])),u=t.next();!u.done;u=t.next()){u=u.value;var J=this.getModuleInfo(u);J&&!J.isLoaded()&&(this.removeExtraEdge(F,u),q.push(u))}this.loadMultiple(q)}this.isDisposed()||((q=this.moduleInfoMap[F].onLoad((0,_.Pd)(this.getModuleContext,this)))&&q.length&&Eon(this,new up.ModuleLoadFailure(up.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,q[0])),_.yC(this.userInitiatedLoadingModuleIds_,F),_.yC(this.loadingModuleIds_,F),this.loadingModuleIds_.length===0&&GVn(this),this.lastInitialModuleId_&&F==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),um(this),this.JSC$11044_currentlyLoadingModule_=null)}};
tM.prototype.isModuleLoading=function(F){if(_.bu(this.loadingModuleIds_,F))return!0;for(var q=0;q<this.requestedModuleIdsQueue_.length;q++)if(_.bu(this.requestedModuleIdsQueue_[q],F))return!0;return!1};
tM.prototype.load=function(F,q){return ooJ(this,[F],q)[F]};
tM.prototype.loadMultiple=function(F){return ooJ(this,F)};
var nox=function(F,q){_.bu(F.userInitiatedLoadingModuleIds_,q)||F.userInitiatedLoadingModuleIds_.push(q)};
tM.prototype.beforeLoadModuleCode=function(F){var q=this;this.JSC$11044_currentlyLoadingModule_&&this.JSC$11044_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11039_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[F]&&Wjf(this,this.moduleInfoMap[F].deps_||[],function(t){t.module_=new aO;_.yC(q.loadingModuleIds_,t.getId())},function(t){return!t.isLoaded()});
this.JSC$11044_currentlyLoadingModule_=this.getModuleInfo(F)};
tM.prototype.handleLoadTimeout_=function(){TYE(this,new up.ModuleLoadFailure(up.ModuleLoadFailure.Type.TIMEOUT));GVn(this)};
var TYE=function(F,q){F.requestedLoadingModuleIds_.length>1?F.requestedModuleIdsQueue_=F.requestedLoadingModuleIds_.map(function(t){return[t]}).concat(F.requestedModuleIdsQueue_):Eon(F,q)},Eon=function(F,q){var t=F.requestedLoadingModuleIds_;
F.loadingModuleIds_.length=0;for(var u=[],J=0;J<F.requestedModuleIdsQueue_.length;J++){var g=F.requestedModuleIdsQueue_[J].filter(function(e){var r=DUE(this,e);return ae(t,function(N){return _.bu(r,N)})},F);
_.UM(u,g)}for(J=0;J<t.length;J++)_.oPC(u,t[J]);for(J=0;J<u.length;J++){for(g=0;g<F.requestedModuleIdsQueue_.length;g++)_.yC(F.requestedModuleIdsQueue_[g],u[J]);_.yC(F.userInitiatedLoadingModuleIds_,u[J])}if(J=F.JSC$11044_callbackMap_.error)for(g=0;g<J.length;g++)for(var Y=J[g],Q=0;Q<u.length;Q++)Y("error",u[Q],q);for(u=0;u<t.length;u++)if(F.moduleInfoMap[t[u]])F.moduleInfoMap[t[u]].onError(q);F.requestedLoadingModuleIds_.length=0;um(F)},GVn=function(F){for(;F.requestedModuleIdsQueue_.length;){var q=
F.requestedModuleIdsQueue_.shift().filter(function(t){return!this.getModuleInfo(t).isLoaded()},F);
if(q.length>0){F.loadModules_(q);return}}um(F)};
tM.prototype.registerCallback=function(F,q){Array.isArray(F)||(F=[F]);for(var t=0;t<F.length;t++){var u=F[t],J=q,g=this.JSC$11044_callbackMap_;g[u]||(g[u]=[]);g[u].push(J)}};
tM.prototype.executeCallbacks_=function(F){for(var q=this.JSC$11044_callbackMap_[F],t=0;q&&t<q.length;t++)q[t](F)};
var Wjf=function(F,q,t,u,J){u=u===void 0?function(){return!0}:u;
J=J===void 0?{}:J;q=_.X(q);for(var g=q.next();!g.done;g=q.next()){g=g.value;var Y=F.getModuleInfo(g);!J[g]&&u(Y)&&(J[g]=!0,Wjf(F,Y.deps_||[],t,u,J),t(Y))}};
tM.prototype.dispose=function(){_.go(_.m7.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11044_callbackMap_={};this.isDisposed_=!0};
tM.prototype.isDisposed=function(){return this.isDisposed_};
_.IX=function(){return new tM};var OJO=[5E3,2E4],PNC=function(){this.JSC$10046_loader_=null;this.JSC$11052_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11052_queue_=[];this.JSC$11052_extraEdges_=Object.create(null);this.JSC$11052_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.M(PNC,rVv);_.l=PNC.prototype;_.l.setAllModuleInfoString=function(){this.JSC$11052_currentlyLoadingModule_&&this.JSC$11052_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11039_setLoaded()};
_.l.getModuleInfo=function(F){var q=this.JSC$11052_moduleInfoMap_[F];q||(q=new jh([],F),this.JSC$11052_moduleInfoMap_[F]=q);return q};
_.l.addExtraEdge=function(F,q){this.getModuleInfo(F).isLoaded()?this.load(q):(this.JSC$11052_extraEdges_[F]||(this.JSC$11052_extraEdges_[F]={}),this.JSC$11052_extraEdges_[F][q]=!0)};
_.l.removeExtraEdge=function(F,q){if(this.JSC$11052_extraEdges_[F]){delete this.JSC$11052_extraEdges_[F][q];for(var t in this.JSC$11052_extraEdges_[F])return;delete this.JSC$11052_extraEdges_[F]}};
_.l.isModuleLoading=function(F){return!!this.loadingModules_[F]};
_.l.load=function(F){xUz(this,[F]);return AV1(this,F)};
_.l.loadMultiple=function(F){var q=this,t=Object.create(null),u=[];F.forEach(function(J){t[J]||(t[J]=AV1(q,J),u.push(J))});
xUz(this,u);return t};
_.l.beforeLoadModuleCode=function(F){var q;((q=this.JSC$11052_currentlyLoadingModule_)==null?void 0:q.getId())==="synthetic_module_overhead"&&this.JSC$11039_setLoaded();var t,u;voz(this,(u=(t=this.JSC$11052_moduleInfoMap_[F])==null?void 0:t.deps_)!=null?u:[],function(J){J.module_=new aO},function(J){return!J.isLoaded()});
this.JSC$11052_currentlyLoadingModule_=this.getModuleInfo(F)};
_.l.JSC$11039_setLoaded=function(){if(this.JSC$11052_currentlyLoadingModule_){var F=this.JSC$11052_currentlyLoadingModule_.getId(),q=[];if(this.JSC$11052_extraEdges_[F]){for(var t=_.X(Object.keys(this.JSC$11052_extraEdges_[F])),u=t.next();!u.done;u=t.next())u=u.value,this.getModuleInfo(u).isLoaded()||(this.removeExtraEdge(F,u),q.push(u));this.loadMultiple(q)}this.JSC$11052_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11052_currentlyLoadingModule_=null;(!this.isModuleLoading(F)&&/^sy[0-9a-z]{0,4}$/.test(F)||F==="synthetic_module_overhead")&&delete this.JSC$11052_moduleInfoMap_[F];this.unsetModulesAsLoading(F)}};
_.l.setModulesAsLoading=function(){var F=this;_.US.apply(0,arguments).forEach(function(q){F.loadingModules_[q]=!0})};
_.l.unsetModulesAsLoading=function(){var F=this;_.US.apply(0,arguments).forEach(function(q){delete F.loadingModules_[q]})};
var AV1=function(F,q){return new _.iz(function(t,u){var J=F.getModuleInfo(q);J.isLoaded()?t(null):(J.registerCallback(function(){t(null)}),Fjz(J,function(g){var Y="Error loading "+q+": "+g;
g instanceof up.ModuleLoadFailure&&g.url&&(Y=Y+", requested url: "+g.url.toString());u(Error(Y))}))})},xUz=function(F,q){q=q.filter(function(t){return!F.isModuleLoading(t)&&!F.getModuleInfo(t).isLoaded()});
q.length>0&&(F.setModulesAsLoading.apply(F,_.mZ(q)),F.JSC$11052_queue_.push(q),Ilz(F))},Ilz=function(F){for(var q={};F.activeLoads_<Infinity&&F.JSC$11052_queue_.length>0;q={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})q.ids$jscomp$36=F.JSC$11052_queue_.shift().filter(function(t){return!F.getModuleInfo(t).isLoaded()}),q.ids$jscomp$36.length>0&&(F.activeLoads_++,q.finishLoad=function(t){return function(){F.activeLoads_--;
Ilz(F);t.finishLoad=function(){}}}(q),_.IR(q.ids$jscomp$36.map(function(t){return AV1(F,t)})).then(function(t){return function(){(0,t.finishLoad)()}}(q)),q.attempt$jscomp$6=0,q.load$jscomp$1=function(t){return function(){if(Object.keys(F.JSC$11052_extraEdges_).length>0&&!F.JSC$10046_loader_.supportsExtraEdges)throw Error("td");
F.JSC$10046_loader_.JSC$11031_loadModules(t.ids$jscomp$36,F.JSC$11052_moduleInfoMap_,{extraEdges:F.JSC$11052_extraEdges_,onError:function(u,J){var g=OJO[t.attempt$jscomp$6++];g!==void 0?setTimeout(function(){(0,t.load$jscomp$1)()},g):(F.unsetModulesAsLoading.apply(F,_.mZ(t.ids$jscomp$36)),(0,t.finishLoad)(),t.ids$jscomp$36.forEach(function(Y){Y=F.getModuleInfo(Y);
if(!Y.isLoaded())Y.onError(new up.ModuleLoadFailure(up.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,u,t.ids$jscomp$36,J))}))}})}}(q),(0,q.load$jscomp$1)())},voz=function(F,q,t,u,J){u=u===void 0?function(){return!0}:u;
J=J===void 0?{}:J;q=_.X(q);for(var g=q.next();!g.done;g=q.next()){g=g.value;var Y=F.getModuleInfo(g);!J[g]&&u(Y)&&(J[g]=!0,voz(F,Y.deps_||[],t,u,J),t(Y))}};var HJf=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var $Ro=Symbol("wd");window.JSCompiler_renameProperty=function(F){return F};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var mUv,$Ud,bJz;mUv=!HJf||HTMLElement.es5Shimmed||_.uu.Reflect===void 0||_.uu.customElements===void 0||_.uu.customElements.polyfillWrapFlushCallback||!1;_.YRM=function(){var F=HTMLElement;if(mUv)return F;if($Ud!==void 0)return $Ud;var q=_.uu.Reflect,t=function(){return q.construct(F,[],this.constructor)};
t.prototype=F.prototype;t.prototype.constructor=t;t.es5Shimmed=!0;Object.setPrototypeOf(t,F);return $Ud=t};
bJz=!1;mUv||bJz||(bJz=!0,_.uu.HTMLElement=_.YRM());/*

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 Vxt=/(url\()([^)]*)(\))/g,CB$=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,dRC,pW;var SM=!window.ShadyDOM||!window.ShadyDOM.inUse,yVe=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),CNJ=!window.customElements.polyfillWrapFlushCallback,dUx;if(dUx=SM&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Vcw=new CSSStyleSheet;Vcw.replaceSync("");var UU1=document.createElement("div");UU1.attachShadow({mode:"open"});UU1.shadowRoot.adoptedStyleSheets=[Vcw];dUx=UU1.shadowRoot.adoptedStyleSheets[0]===Vcw}catch(F){dUx=!1}
var SHn=dUx,hSw=window.Polymer&&window.Polymer.rootPath||So$(document.baseURI||window.location.href),ML=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,cX_=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,LW=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Kjn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,UT=window.Polymer&&window.Polymer.legacyOptimizations||!1,BU=window.Polymer&&window.Polymer.legacyWarnings||!1,BYn=window.Polymer&&window.Polymer.syncInitialRender||
!1,GG=window.Polymer&&window.Polymer.legacyUndefined||!1,LjC=window.Polymer&&window.Polymer.orderedComputed||!1,JM=window.Polymer&&window.Polymer.removeNestedTemplates||!1,su=window.Polymer&&window.Polymer.fastDomIf||!1,g5=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,flz=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,alJ=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var lm={},jDO={},WU=function(){return HTMLElement.apply(this,arguments)||this};
_.M(WU,HTMLElement);WU.import=function(F,q){return F?(F=lm[F]||jDO[F.toLowerCase()])&&q?F.querySelector(q):F:null};
WU.prototype.attributeChangedCallback=function(F,q,t){q!==t&&this.register()};
WU.prototype.register=function(F){if(F=F||this.id){if(LW&&(lm[F]||jDO[F.toLowerCase()])!==void 0)throw lm[F]=jDO[F.toLowerCase()]=null,Error("xd`"+F);this.id=F;lm[F]=jDO[F.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.JJ.Object.defineProperties(WU.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var F=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;F=_.Qn(this.getAttribute("assetpath")||"",F.baseURI);this.__assetpath=So$(F)}return this.__assetpath}}});
_.JJ.Object.defineProperties(WU,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
WU["import"]=WU.import;WU.prototype.modules=lm;customElements.define("dom-module",WU);var cVx=0,KTA=0,eM=[],FVC=0,huM=!1,qfr=document.createTextNode(""),tze,dZ;(new window.MutationObserver(BIC)).observe(qfr,{characterData:!0});_.XH={after:function(F){return{run:function(q){return window.setTimeout(q,F)},
cancel:function(q){window.clearTimeout(q)}}},
run:function(F,q){return window.setTimeout(F,q)},
cancel:function(F){window.clearTimeout(F)}};
_.H9={run:function(F){return window.requestAnimationFrame(F)},
cancel:function(F){window.cancelAnimationFrame(F)}};
tze={run:function(F){return window.requestIdleCallback?window.requestIdleCallback(F):window.setTimeout(F,16)},
cancel:function(F){window.cancelIdleCallback?window.cancelIdleCallback(F):window.clearTimeout(F)}};
dZ={run:function(F){huM||(huM=!0,qfr.textContent=FVC++);eM.push(F);return cVx++},
cancel:function(F){var q=F-KTA;if(q>=0){if(!eM[q])throw Error("yd`"+F);eM[q]=null}}};var uEv=0,YZ=function(F){var q=F.__mixinApplications;q||(q=new WeakMap,F.__mixinApplications=q);var t=uEv++;return function(u){var J=u.__mixinSet;if(J&&J[t])return u;var g=q,Y=g.get(u);Y||(Y=F(u),g.set(u,Y),u=Object.create(Y.__mixinSet||J||null),u[t]=!0,Y.__mixinSet=u);return Y}};_.nW=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(F){return ShadyDOM.patch(F)}:function(F){return F};var Jx1=YZ(function(F){var q=function(){var t=F.call(this)||this;t.__dataEnabled=!1;t.__dataReady=!1;t.__dataInvalid=!1;t.__data={};t.__dataPending=null;t.__dataOld=null;t.__dataInstanceProps=null;t.__dataCounter=0;t.__serializing=!1;t._initializeProperties();return t};
_.M(q,F);q.createProperties=function(t){var u=this.prototype,J;for(J in t)J in u||u._createPropertyAccessor(J)};
q.attributeNameForProperty=function(t){return t.toLowerCase()};
q.typeForProperty=function(){};
q.prototype._createPropertyAccessor=function(t,u){this._addPropertyToAttributeMap(t);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,u))};
q.prototype._addPropertyToAttributeMap=function(t){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var u=this.__dataAttributes[t];u||(u=this.constructor.attributeNameForProperty(t),this.__dataAttributes[u]=t);return u};
q.prototype._definePropertyAccessor=function(t,u){Object.defineProperty(this,t,{get:function(){return this.__data[t]},
set:u?function(){}:function(J){this._setPendingProperty(t,J,!0)&&this._invalidateProperties()}})};
q.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
q.prototype._initializeProperties=function(){for(var t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])};
q.prototype._initializeInstanceProperties=function(t){Object.assign(this,t)};
q.prototype._setProperty=function(t,u){this._setPendingProperty(t,u)&&this._invalidateProperties()};
q.prototype._getProperty=function(t){return this.__data[t]};
q.prototype._setPendingProperty=function(t,u){var J=this.__data[t],g=this._shouldPropertyChange(t,u,J);g&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||t in this.__dataOld||(this.__dataOld[t]=J),this.__data[t]=u,this.__dataPending[t]=u);return g};
q.prototype._isPropertyPending=function(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))};
q.prototype._invalidateProperties=function(){var t=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,dZ.run(function(){t.__dataInvalid&&(t.__dataInvalid=!1,t._flushProperties())}))};
q.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
q.prototype._flushProperties=function(){this.__dataCounter++;var t=this.__data,u=this.__dataPending,J=this.__dataOld;this._shouldPropertiesChange(t,u,J)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(t,u,J));this.__dataCounter--};
q.prototype._shouldPropertiesChange=function(t,u){return!!u};
q.prototype._propertiesChanged=function(){};
q.prototype._shouldPropertyChange=function(t,u,J){return J!==u&&(J===J||u===u)};
q.prototype.attributeChangedCallback=function(t,u,J,g){u!==J&&this._attributeToProperty(t,J);F.prototype.attributeChangedCallback&&F.prototype.attributeChangedCallback.call(this,t,u,J,g)};
q.prototype._attributeToProperty=function(t,u,J){if(!this.__serializing){var g=this.__dataAttributes;t=g&&g[t]||t;this[t]=this._deserializeValue(u,J||this.constructor.typeForProperty(t))}};
q.prototype._propertyToAttribute=function(t,u,J){this.__serializing=!0;J=arguments.length<3?this[t]:J;this._valueToNodeAttribute(this,J,u||this.constructor.attributeNameForProperty(t));this.__serializing=!1};
q.prototype._valueToNodeAttribute=function(t,u,J){u=this._serializeValue(u);if(J==="class"||J==="name"||J==="slot")t=(0,_.nW)(t);u===void 0?t.removeAttribute(J):t.setAttribute(J,u===""&&window.trustedTypes?window.trustedTypes.emptyScript:u)};
q.prototype._serializeValue=function(t){switch(typeof t){case "boolean":return t?"":void 0;default:return t!=null?t.toString():void 0}};
q.prototype._deserializeValue=function(t,u){switch(u){case Boolean:return t!==null;case Number:return Number(t);default:return t}};
return q});var sYC=0,LTt=[];var gvv=YZ(function(F){function q(g){g=Object.getPrototypeOf(g);return g.prototype instanceof J?g:null}
function t(g){if(!g.hasOwnProperty("__ownProperties")){var Y=null;if(g.hasOwnProperty("properties")){var Q=g.properties;if(Q){Y={};for(var e in Q){var r=Q[e];Y[e]=typeof r==="function"?{type:r}:r}}}g.__ownProperties=Y}return g.__ownProperties}
var u=Jx1(F),J=function(){return u.apply(this,arguments)||this};
_.M(J,u);J.finalize=function(){if(!this.hasOwnProperty("__finalized")){var g=q(this);g&&g.finalize();this.__finalized=!0;this._finalizeClass()}};
J._finalizeClass=function(){var g=t(this);g&&this.createProperties(g)};
J.typeForProperty=function(g){return(g=this._properties[g])&&g.type};
J.prototype._initializeProperties=function(){sYC++;this.constructor.finalize();u.prototype._initializeProperties.call(this)};
J.prototype.connectedCallback=function(){u.prototype.connectedCallback&&u.prototype.connectedCallback.call(this);this._enableProperties()};
J.prototype.disconnectedCallback=function(){u.prototype.disconnectedCallback&&u.prototype.disconnectedCallback.call(this)};
_.JJ.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var g=this;if(!this.hasOwnProperty("__observedAttributes")){fMv(this.prototype);var Y=this._properties;this.__observedAttributes=Y?Object.keys(Y).map(function(Q){return g.prototype._addPropertyToAttributeMap(Q)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var g=q(this);this.__properties=Object.assign({},g&&g._properties,t(this))}return this.__properties}}});
return J});var aMW={},j4y=/-[a-z]/g,ciW=/([A-Z])/g;for(var lxz={},X5L=HTMLElement.prototype;X5L;){for(var YfE=Object.getOwnPropertyNames(X5L),p5v=0;p5v<YfE.length;p5v++)lxz[YfE[p5v]]=!0;X5L=Object.getPrototypeOf(X5L)}var QYd=window.trustedTypes?function(F){return trustedTypes.isHTML(F)||trustedTypes.isScript(F)||trustedTypes.isScriptURL(F)}:function(){return!1},elz=YZ(function(F){var q=Jx1(F);
F=function(){return q.apply(this,arguments)||this};
_.M(F,q);F.createPropertiesForAttributes=function(){for(var t=this.observedAttributes,u=0;u<t.length;u++)this.prototype._createPropertyAccessor(ZS(t[u]))};
F.attributeNameForProperty=function(t){return R0(t)};
F.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);q.prototype._initializeProperties.call(this)};
F.prototype._initializeProtoProperties=function(t){for(var u in t)this._setProperty(u,t[u])};
F.prototype._ensureAttribute=function(t,u){this.hasAttribute(t)||this._valueToNodeAttribute(this,u,t)};
F.prototype._serializeValue=function(t){switch(typeof t){case "object":if(t instanceof Date)return t.toString();if(t){if(QYd(t))return t;try{return JSON.stringify(t)}catch(u){return""}}default:return q.prototype._serializeValue.call(this,t)}};
F.prototype._deserializeValue=function(t,u){switch(u){case Object:try{var J=JSON.parse(t)}catch(g){J=t}break;case Array:try{J=JSON.parse(t)}catch(g){J=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+t)}break;case Date:J=isNaN(t)?String(t):Number(t);J=new Date(J);break;default:J=q.prototype._deserializeValue.call(this,t,u)}return J};
F.prototype._definePropertyAccessor=function(t,u){if(!lxz[t]){var J=this[t];J!==void 0&&(this.__data?this._setPendingProperty(t,J):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[t]=J))}q.prototype._definePropertyAccessor.call(this,t,u)};
F.prototype._hasAccessor=function(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]};
F.prototype._isPropertyPending=function(t){return!!(this.__dataPending&&t in this.__dataPending)};
return F});var ZjL={"dom-if":!0,"dom-repeat":!0},RlE=!1,rxO=!1,Nje=function(){var F=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(q){return q}});
return function(q,t,u){t=t.getAttribute(u);F&&u.startsWith("on-")?q.setAttribute(u,F.createScript(t,u)):q.setAttribute(u,t)}}(),w5r=YZ(function(F){var q=function(){return F.apply(this,arguments)||this};
_.M(q,F);q._parseTemplate=function(t,u){if(!t._templateInfo){var J=t._templateInfo={};J.nodeInfoList=[];J.nestedTemplate=!!u;J.stripWhiteSpace=u&&u.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace");this._parseTemplateContent(t,J,{parent:null})}return t._templateInfo};
q._parseTemplateContent=function(t,u,J){return this._parseTemplateNode(t.content,u,J)};
q._parseTemplateNode=function(t,u,J){var g=!1;t.localName!="template"||t.hasAttribute("preserve-content")?t.localName==="slot"&&(u.hasInsertionPoint=!0):g=this._parseTemplateNestedTemplate(t,u,J)||g;if(!RlE){RlE=!0;var Y=document.createElement("textarea");Y.placeholder="a";rxO=Y.placeholder===Y.textContent}rxO&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null);t.firstChild&&this._parseTemplateChildNodes(t,u,J);t.hasAttributes&&t.hasAttributes()&&(g=this._parseTemplateNodeAttributes(t,
u,J)||g);return g||J.noted};
q._parseTemplateChildNodes=function(t,u,J){if(t.localName!=="script"&&t.localName!=="style")for(var g=t.firstChild,Y=0,Q;g;g=Q){if(g.localName=="template"){var e=g.getAttribute("is");if(e&&ZjL[e])for(Q=g,Q.removeAttribute("is"),g=Q.ownerDocument.createElement(e),Q.parentNode.replaceChild(g,Q),g.appendChild(Q);Q.attributes.length;)e=Q.attributes[0].name,Nje(g,Q,e),Q.removeAttribute(e)}Q=g.nextSibling;if(g.nodeType===Node.TEXT_NODE){for(e=Q;e&&e.nodeType===Node.TEXT_NODE;)g.textContent+=e.textContent,
Q=e.nextSibling,t.removeChild(e),e=Q;if(u.stripWhiteSpace&&!g.textContent.trim()){t.removeChild(g);continue}}e={parentIndex:Y,parentInfo:J};this._parseTemplateNode(g,u,e)&&(e.infoIndex=u.nodeInfoList.push(e)-1);g.parentNode&&Y++}};
q._parseTemplateNestedTemplate=function(t,u,J){u=this._parseTemplate(t,u);(u.content=t.content.ownerDocument.createDocumentFragment()).appendChild(t.content);J.templateInfo=u;return!0};
q._parseTemplateNodeAttributes=function(t,u,J){for(var g=!1,Y=Array.from(t.attributes),Q=Y.length-1,e;e=Y[Q];Q--)g=this._parseTemplateNodeAttribute(t,u,J,e.name,e.value)||g;return g};
q._parseTemplateNodeAttribute=function(t,u,J,g,Y){return g.slice(0,3)==="on-"?(t.removeAttribute(g),J.events=J.events||[],J.events.push({name:g.slice(3),value:Y}),!0):g==="id"?(J.id=Y,!0):!1};
q._contentForTemplate=function(t){var u=t._templateInfo;return u&&u.content||t.content};
q.prototype._stampTemplate=function(t,u){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);u=u||this.constructor._parseTemplate(t);var J=u.nodeInfoList;t=document.importNode(u.content||t.content,!0);t.__noInsertionPoint=!u.hasInsertionPoint;var g=t.nodeList=Array(J.length);t.$={};for(var Y=0,Q=J.length,e=void 0;Y<Q&&(e=J[Y]);Y++){var r=g[Y]=F4t(t,e);e.id&&(t.$[e.id]=r);var N=r,w=e,k=u;w.templateInfo&&(N._templateInfo=w.templateInfo,N._parentTemplateInfo=
k);if(e.events&&e.events.length)for(N=0,w=e.events,k=void 0;N<w.length&&(k=w[N]);N++)this._addMethodEventListenerToNode(r,k.name,k.value,this)}return t};
q.prototype._addMethodEventListenerToNode=function(t,u,J,g){J=qLM(g||t,J);this._addEventListenerToNode(t,u,J);return J};
q.prototype._addEventListenerToNode=function(t,u,J){t.addEventListener(u,J)};
q.prototype._removeEventListenerFromNode=function(t,u,J){t.removeEventListener(u,J)};
return q});var zG=0,TG=[],ijj={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},k5f=/[A-Z]/,Evj=function(F,q,t,u,J){var g=J?NL(F):F;if(q=q[g])for(g=0;g<q.length;g++){var Y=q[g];if(Y.info.lastRun!==zG&&(!J||le$(F,Y.trigger))){Y.info.lastRun=zG;Y=Y.info;for(var Q=t,e=u,r=0,N=Q.length-1,w=-1;r<=N;){var k=r+N>>1,z=e.get(Q[k].methodInfo)-e.get(Y.methodInfo);if(z<0)r=k+1;else if(z>0)N=k-1;else{w=k;break}}w<
0&&(w=N+1);Q.splice(w,0,Y)}}},of$=[],zlx=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"),Q3=YZ(function(F){var q=w5r(elz(F));
F=function(){var t=q.call(this)||this;t.__isPropertyEffectsClient=!0;return t};
_.M(F,q);F.prototype._initializeProperties=function(){q.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
F.prototype._registerHost=function(){if(pV.length){var t=pV[pV.length-1];t._enqueueClient(this);this.__dataHost=t}};
F.prototype._initializeProtoProperties=function(t){this.__data=Object.create(t);this.__dataPending=Object.create(t);this.__dataOld={}};
F.prototype._initializeInstanceProperties=function(t){var u=this.__readOnly,J;for(J in t)u&&u[J]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[J]=this.__dataPending[J]=t[J])};
F.prototype._addPropertyEffect=function(t,u,J){this._createPropertyAccessor(t,u=="__readOnly");var g=gfy(this,u,!0)[t];g||(g=this[u][t]=[]);g.push(J)};
F.prototype._removePropertyEffect=function(t,u,J){t=gfy(this,u,!0)[t];J=t.indexOf(J);J>=0&&t.splice(J,1)};
F.prototype._hasPropertyEffect=function(t,u){u=this[u];return!(!u||!u[t])};
F.prototype._hasReadOnlyEffect=function(t){return this._hasPropertyEffect(t,"__readOnly")};
F.prototype._hasNotifyEffect=function(t){return this._hasPropertyEffect(t,"__notifyEffects")};
F.prototype._hasReflectEffect=function(t){return this._hasPropertyEffect(t,"__reflectEffects")};
F.prototype._hasComputedEffect=function(t){return this._hasPropertyEffect(t,"__computeEffects")};
F.prototype._setPendingPropertyOrPath=function(t,u,J,g){if(g||NL(Array.isArray(t)?t[0]:t)!==t){if(!g&&(g=ET(this,t),t=sLt(this,t,u),!t||!q.prototype._shouldPropertyChange.call(this,t,u,g)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(t,u,J)){if(J=this.__dataLinkedPaths)for(var Y in J)g=J[Y],wZ(Y,t)?(g=iR(Y,g,t),this._setPendingPropertyOrPath(g,u,!0,!0)):wZ(g,t)&&(g=iR(g,Y,t),this._setPendingPropertyOrPath(g,u,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,
u,J);this[t]=u}return!1};
F.prototype._setUnmanagedPropertyToNode=function(t,u,J){if(J!==t[u]||typeof J=="object")u==="className"&&(t=(0,_.nW)(t)),t[u]=J};
F.prototype._setPendingProperty=function(t,u,J){var g=this.__dataHasPaths&&rZ(t);if(this._shouldPropertyChange(t,u,(g?this.__dataTemp:this.__data)[t])){this.__dataPending||(this.__dataPending={},this.__dataOld={});t in this.__dataOld||(this.__dataOld[t]=this.__data[t]);g?this.__dataTemp[t]=u:this.__data[t]=u;this.__dataPending[t]=u;if(g||this.__notifyEffects&&this.__notifyEffects[t])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=J;return!0}return!1};
F.prototype._setProperty=function(t,u){this._setPendingProperty(t,u,!0)&&this._invalidateProperties()};
F.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
F.prototype._enqueueClient=function(t){this.__dataPendingClients=this.__dataPendingClients||[];t!==this&&this.__dataPendingClients.push(t)};
F.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
F.prototype.__enableOrFlushClients=function(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(var u=0;u<t.length;u++){var J=t[u];J.__dataEnabled?J.__dataPending&&J._flushProperties():J._enableProperties()}}};
F.prototype._readyClients=function(){this.__enableOrFlushClients()};
F.prototype.setProperties=function(t,u){for(var J in t)!u&&this.__readOnly&&this.__readOnly[J]||this._setPendingPropertyOrPath(J,t[J],!0);this._invalidateProperties()};
F.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
F.prototype._propertiesChanged=function(t,u,J){t=this.__dataHasPaths;this.__dataHasPaths=!1;var g;if(g=this.__computeEffects)if(LjC){zG++;var Y=ZZf(this),Q=[],e;for(e in u)Evj(e,g,Q,Y,t);for(;e=Q.shift();)rX_(this,"",u,J,e)&&Evj(e.methodInfo,g,Q,Y,t);Object.assign(J,this.__dataOld);Object.assign(u,this.__dataPending);this.__dataPending=null}else for(Y=u;o0(this,g,Y,J,t);)Object.assign(J,this.__dataOld),Object.assign(u,this.__dataPending),Y=this.__dataPending,this.__dataPending=null;g=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(u,J,t);this._flushClients();o0(this,this.__reflectEffects,u,J,t);o0(this,this.__observeEffects,u,J,t);if(g){Y=this.__notifyEffects;Q=zG++;for(var r in g)if(g[r]){if(e=Y){var N=Y;e=Q;var w=r,k=u,z=J,T=t,P=!1,v=T?NL(w):w;if(N=N[v]){v=0;for(var H=N.length,d=void 0;v<H&&(d=N[v]);v++)d.info&&d.info.lastRun===e||T&&!le$(w,d.trigger)||(d.info&&(d.info.lastRun=e),d.fn(this,w,k,z,d.info,T,void 0),P=!0)}e=P}if(e)var a=!0;else{if(e=t)e=r,w=u,k=NL(e),k!==
e?(k=R0(k)+"-changed",YLC(this,k,w[e],e),e=!0):e=!1;e&&(a=!0)}}var S;a&&(S=this.__dataHost)&&S._invalidateProperties&&S._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
F.prototype._propagatePropertyChanges=function(t,u,J){this.__propagateEffects&&o0(this,this.__propagateEffects,t,u,J);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,u,J)};
F.prototype._runEffectsForTemplate=function(t,u,J,g){var Y=this,Q=function(e,r){o0(Y,t.propertyEffects,e,J,r,t.nodeList);for(var N=t.firstChild;N;N=N.nextSibling)Y._runEffectsForTemplate(N,e,J,r)};
t.runEffects?t.runEffects(Q,u,g):Q(u,g)};
F.prototype.linkPaths=function(t,u){t=kF(t);u=kF(u);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[t]=u};
F.prototype.unlinkPaths=function(t){t=kF(t);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]};
F.prototype.notifySplices=function(t,u){var J={path:""};t=ET(this,t,J);Gx3(this,t,J.path,u)};
F.prototype.get=function(t,u){return ET(u||this,t)};
F.prototype.set=function(t,u,J){J?sLt(J,t,u):this.__readOnly&&this.__readOnly[t]||this._setPendingPropertyOrPath(t,u,!0)&&this._invalidateProperties()};
F.prototype.push=function(t){var u=_.US.apply(1,arguments),J={path:""},g=ET(this,t,J),Y=g.length,Q=g.push.apply(g,_.mZ(u));u.length&&DS(this,g,J.path,Y,u.length,[]);return Q};
F.prototype.pop=function(t){var u={path:""};t=ET(this,t,u);var J=!!t.length,g=t.pop();J&&DS(this,t,u.path,t.length,0,[g]);return g};
F.prototype.splice=function(t,u,J){var g=_.US.apply(3,arguments),Y={path:""},Q=ET(this,t,Y);u<0?u=Q.length-Math.floor(-u):u&&(u=Math.floor(u));var e=arguments.length===2?Q.splice(u):Q.splice.apply(Q,[u,J].concat(_.mZ(g)));(g.length||e.length)&&DS(this,Q,Y.path,u,g.length,e);return e};
F.prototype.shift=function(t){var u={path:""};t=ET(this,t,u);var J=!!t.length,g=t.shift();J&&DS(this,t,u.path,0,0,[g]);return g};
F.prototype.unshift=function(t){var u=_.US.apply(1,arguments),J={path:""},g=ET(this,t,J),Y=g.unshift.apply(g,_.mZ(u));u.length&&DS(this,g,J.path,0,u.length,[]);return Y};
F.prototype.notifyPath=function(t,u){if(arguments.length==1){var J={path:""};u=ET(this,t,J);J=J.path}else J=Array.isArray(t)?kF(t):t;this._setPendingPropertyOrPath(J,u,!0,!0)&&this._invalidateProperties()};
F.prototype._createReadOnlyProperty=function(t,u){this._addPropertyEffect(t,"__readOnly");u&&(this["_set"+(t[0].toUpperCase()+t.substring(1))]=function(J){this._setProperty(t,J)})};
F.prototype._createPropertyObserver=function(t,u,J){var g={property:t,method:u,dynamicFn:!!J};this._addPropertyEffect(t,"__observeEffects",{fn:XOt,info:g,trigger:{name:t}});J&&this._addPropertyEffect(u,"__observeEffects",{fn:XOt,info:g,trigger:{name:u}})};
F.prototype._createMethodObserver=function(t,u){var J=MNA(t);if(!J)throw Error("zd`"+t);EfM(this,J,"__observeEffects",RXf,null,u)};
F.prototype._createNotifyingProperty=function(t){this._addPropertyEffect(t,"__notifyEffects",{fn:pOA,info:{eventName:R0(t)+"-changed",property:t}})};
F.prototype._createReflectedProperty=function(t){var u=this.constructor.attributeNameForProperty(t);u[0]==="-"?console.warn("Property "+t+" cannot be reflected to attribute "+u+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,"__reflectEffects",{fn:QLo,info:{attrName:u}})};
F.prototype._createComputedProperty=function(t,u,J){var g=MNA(u);if(!g)throw Error("Ad`"+u);u=EfM(this,g,"__computeEffects",rX_,t,J);gfy(this,"__computeInfo")[t]=u};
F.prototype._marshalArgs=function(t,u,J){for(var g=this.__data,Y=[],Q=0,e=t.length;Q<e;Q++){var r=t[Q],N=r.name,w=r.structured,k=r.wildcard,z=r.value;r.literal||(k?(r=wZ(N,u),w=Tmf(g,J,r?u:N),z={path:r?u:N,value:w,base:r?ET(g,N):w}):z=w?Tmf(g,J,N):g[N]);if(GG&&!this._overrideLegacyUndefined&&z===void 0&&t.length>1)return TG;Y[Q]=z}return Y};
F.addPropertyEffect=function(t,u,J){this.prototype._addPropertyEffect(t,u,J)};
F.createPropertyObserver=function(t,u,J){this.prototype._createPropertyObserver(t,u,J)};
F.createMethodObserver=function(t,u){this.prototype._createMethodObserver(t,u)};
F.createNotifyingProperty=function(t){this.prototype._createNotifyingProperty(t)};
F.createReadOnlyProperty=function(t,u){this.prototype._createReadOnlyProperty(t,u)};
F.createReflectedProperty=function(t){this.prototype._createReflectedProperty(t)};
F.createComputedProperty=function(t,u,J){this.prototype._createComputedProperty(t,u,J)};
F.bindTemplate=function(t){return this.prototype._bindTemplate(t)};
F.prototype._bindTemplate=function(t,u){var J=this.constructor._parseTemplate(t),g=this.__preBoundTemplateInfo==J;if(!g)for(var Y in J.propertyEffects)this._createPropertyAccessor(Y);u?(J=Object.create(J),J.wasPreBound=g,this.__templateInfo?(t=t._parentTemplateInfo||this.__templateInfo,u=t.lastChild,J.parent=t,t.lastChild=J,(J.previousSibling=u)?u.nextSibling=J:t.firstChild=J):this.__templateInfo=J):this.__preBoundTemplateInfo=J;return J};
F._addTemplatePropertyEffect=function(t,u,J){(t.hostProps=t.hostProps||{})[u]=!0;t=t.propertyEffects=t.propertyEffects||{};(t[u]=t[u]||[]).push(J)};
F.prototype._stampTemplate=function(t,u){u=u||this._bindTemplate(t,!0);pV.push(this);t=q.prototype._stampTemplate.call(this,t,u);pV.pop();u.nodeList=t.nodeList;if(!u.wasPreBound)for(var J=u.childNodes=[],g=t.firstChild;g;g=g.nextSibling)J.push(g);t.templateInfo=u;J=u.nodeList;g=u.nodeInfoList;if(g.length)for(var Y=0;Y<g.length;Y++){var Q=J[Y],e=g[Y].bindings;if(e)for(var r=0;r<e.length;r++){var N=e[r],w=Q,k=N;if(k.isCompound){for(var z=w.__dataCompoundStorage||(w.__dataCompoundStorage={}),T=k.parts,
P=Array(T.length),v=0;v<T.length;v++)P[v]=T[v].literal;T=k.target;z[T]=P;k.literal&&k.kind=="property"&&(T==="className"&&(w=(0,_.nW)(w)),w[T]=k.literal)}kxq(Q,this,N)}Q.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(u,this.__data,null,!1),this._flushClients());return t};
F.prototype._removeBoundDom=function(t){t=t.templateInfo;var u=t.previousSibling,J=t.nextSibling,g=t.parent;u?u.nextSibling=J:g&&(g.firstChild=J);J?J.previousSibling=u:g&&(g.lastChild=u);t.nextSibling=t.previousSibling=null;t=t.childNodes;for(u=0;u<t.length;u++)J=t[u],(0,_.nW)((0,_.nW)(J).parentNode).removeChild(J)};
F._parseTemplateNode=function(t,u,J){var g=q._parseTemplateNode.call(this,t,u,J);if(t.nodeType===Node.TEXT_NODE){var Y=this._parseBindings(t.textContent,u);Y&&(t.textContent=zXq(Y)||" ",iZu(this,u,J,"text","textContent",Y),g=!0)}return g};
F._parseTemplateNodeAttribute=function(t,u,J,g,Y){var Q=this._parseBindings(Y,u);if(Q){Y=g;var e="property";k5f.test(g)?e="attribute":g[g.length-1]=="$"&&(g=g.slice(0,-1),e="attribute");var r=zXq(Q);r&&e=="attribute"&&(g=="class"&&t.hasAttribute("class")&&(r+=" "+t.getAttribute(g)),t.setAttribute(g,r));e=="attribute"&&Y=="disable-upgrade$"&&t.setAttribute(g,"");t.localName==="input"&&Y==="value"&&t.setAttribute(Y,"");t.removeAttribute(Y);e==="property"&&(g=ZS(g));iZu(this,u,J,e,g,Q,r);return!0}return q._parseTemplateNodeAttribute.call(this,
t,u,J,g,Y)};
F._parseTemplateNestedTemplate=function(t,u,J){var g=q._parseTemplateNestedTemplate.call(this,t,u,J),Y=t.parentNode,Q=J.templateInfo,e=Y.localName==="dom-if",r=Y.localName==="dom-repeat";JM&&(e||r)&&(Y.removeChild(t),J=J.parentInfo,J.templateInfo=Q,J.noted=!0,g=!1);t=Q.hostProps;if(su&&e)t&&(u.hostProps=Object.assign(u.hostProps||{},t),JM||(J.parentInfo.noted=!0));else for(var N in t)iZu(this,u,J,"property","_host_"+N,[{mode:"{",source:N,dependencies:[N],hostProp:!0}]);return g};
F._parseBindings=function(t,u){for(var J=[],g=0,Y;(Y=zlx.exec(t))!==null;){Y.index>g&&J.push({literal:t.slice(g,Y.index)});g=Y[1][0];var Q=!!Y[2];Y=Y[3].trim();var e=!1,r="",N=-1;g=="{"&&(N=Y.indexOf("::"))>0&&(r=Y.substring(N+2),Y=Y.substring(0,N),e=!0);N=MNA(Y);var w=[];if(N){var k=N,z=k.args;k=k.methodName;for(var T=0;T<z.length;T++){var P=z[T];P.literal||w.push(P)}if((z=u.dynamicFns)&&z[k]||N.static)w.push(k),N.dynamicFn=!0}else w.push(Y);J.push({source:Y,mode:g,negate:Q,customEvent:e,signature:N,
dependencies:w,event:r});g=zlx.lastIndex}g&&g<t.length&&(t=t.substring(g))&&J.push({literal:t});return J.length?J:null};
F._evaluateBinding=function(t,u,J,g,Y,Q){t=u.signature?RXf(t,J,g,Y,u.signature):J!=u.source?ET(t,u.source):Q&&rZ(J)?ET(t,J):t.__data[J];u.negate&&(t=!t);return t};
_.JJ.Object.defineProperties(F.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return ijj}}});
return F}),pV=[];var ove=window.ShadyCSS&&window.ShadyCSS.cssBuild,eZ=YZ(function(F){function q(u,J,g,Y){if(!ove){for(var Q=J.content.querySelectorAll("style"),e=PZq(J),r=xFu(g),N=J.content.firstElementChild,w=0;w<r.length;w++){var k=r[w];k.textContent=u._processStyleText(k.textContent,Y);J.content.insertBefore(k,N)}for(N=r=0;N<e.length;N++)w=e[N],k=Q[r],k!==w?(w=w.cloneNode(!0),k.parentNode.insertBefore(w,k)):r++,w.textContent=u._processStyleText(w.textContent,Y)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(J,
g);if(alJ&&ove&&SHn&&(J=J.content.querySelectorAll("style"))){var z="";Array.from(J).forEach(function(T){z+=T.textContent;T.parentNode.removeChild(T)});
u._styleSheet=new CSSStyleSheet;u._styleSheet.replaceSync(z)}}
var t=gvv(Q3(F));F=function(){return t.call(this)||this};
_.M(F,t);F._finalizeClass=function(){t._finalizeClass.call(this);var u;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(u=this.__ownObservers)&&this.createObservers(u,this._properties);this._prepareTemplate()};
F._prepareTemplate=function(){var u=this.template;u&&(typeof u==="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):UT||(u=u.cloneNode(!0)));this.prototype._template=u};
F.createProperties=function(u){for(var J in u){var g=this.prototype,Y=J,Q=u[J],e=u;Q.computed&&(Q.readOnly=!0);Q.computed&&(g._hasReadOnlyEffect(Y)?console.warn("Cannot redefine computed property '"+Y+"'."):g._createComputedProperty(Y,Q.computed,e));Q.readOnly&&!g._hasReadOnlyEffect(Y)?g._createReadOnlyProperty(Y,!Q.computed):Q.readOnly===!1&&g._hasReadOnlyEffect(Y)&&console.warn("Cannot make readOnly property '"+Y+"' non-readOnly.");Q.reflectToAttribute&&!g._hasReflectEffect(Y)?g._createReflectedProperty(Y):
Q.reflectToAttribute===!1&&g._hasReflectEffect(Y)&&console.warn("Cannot make reflected property '"+Y+"' non-reflected.");Q.notify&&!g._hasNotifyEffect(Y)?g._createNotifyingProperty(Y):Q.notify===!1&&g._hasNotifyEffect(Y)&&console.warn("Cannot make notify property '"+Y+"' non-notify.");Q.observer&&g._createPropertyObserver(Y,Q.observer,e[Q.observer]);g._addPropertyToAttributeMap(Y)}};
F.createObservers=function(u,J){for(var g=this.prototype,Y=0;Y<u.length;Y++)g._createMethodObserver(u[Y],J)};
F.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);t.prototype._initializeProperties.call(this);this.rootPath=hSw;this.importPath=this.constructor.importPath;var u=this.constructor;if(!u.hasOwnProperty("__propertyDefaults")){u.__propertyDefaults=null;var J=u._properties,g;for(g in J){var Y=J[g];"value"in Y&&(u.__propertyDefaults=u.__propertyDefaults||{},u.__propertyDefaults[g]=Y)}}if(u=u.__propertyDefaults)for(var Q in u)J=u[Q],
this._canApplyPropertyDefault(Q)&&(J=typeof J.value=="function"?J.value.call(this):J.value,this._hasAccessor(Q)?this._setPendingProperty(Q,J,!0):this[Q]=J)};
F.prototype._canApplyPropertyDefault=function(u){return!this.hasOwnProperty(u)};
F._processStyleText=function(u,J){return URy(u,J)};
F._finalizeTemplate=function(u){var J=this.prototype._template;if(J&&!J.__polymerFinalized){J.__polymerFinalized=!0;var g=this.importPath;g=g?_.Qn(g):"";q(this,J,u,g);this.prototype._bindTemplate(J)}};
F.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);t.prototype.connectedCallback.call(this)};
F.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);t.prototype.ready.call(this)};
F.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));t.prototype._readyClients.call(this)};
F.prototype._attachDom=function(u){var J=(0,_.nW)(this);if(J.attachShadow)return u?(J.shadowRoot||(J.attachShadow({mode:"open",shadyUpgradeFragment:u}),J.shadowRoot.appendChild(u),this.constructor._styleSheet&&(J.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),BYn&&window.ShadyDOM&&window.ShadyDOM.flushInitial(J.shadowRoot),J.shadowRoot):null;throw Error("Cd");};
F.prototype.updateStyles=function(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)};
F.prototype.resolveUrl=function(u,J){!J&&this.importPath&&(J=_.Qn(this.importPath));return _.Qn(u,J)};
F._parseTemplateContent=function(u,J,g){J.dynamicFns=J.dynamicFns||this._properties;return t._parseTemplateContent.call(this,u,J,g)};
F._addTemplatePropertyEffect=function(u,J,g){!BU||J in this._properties||g.info.part.signature&&g.info.part.signature.static||g.info.part.hostProp||u.nestedTemplate||console.warn("Property '"+J+"' used in template but not declared in 'properties'; attribute will not be observed.");return t._addTemplatePropertyEffect.call(this,u,J,g)};
_.JJ.Object.defineProperties(F,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var u=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof u==="function"&&(u=u());if(u===void 0){if(u=this.hasOwnProperty("is")){u=this.is;var J=null;if(u&&(!LW||Kjn)&&(J=WU.import(u,"template"),LW&&!J))throw Error("Bd`"+u);u=J}u=u||Object.getPrototypeOf(this.prototype).constructor.template}this._template=u}return this._template},
set:function(u){this._template=u}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var u=this.importMeta;u?this._importPath=So$(u.url):this._importPath=(u=WU.import(this.is))&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return F});var nvO=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(F){return F}}),bZM=function(F,q){MzE(F,q);
this.value=q.reduce(function(t,u,J){return t+yXo(u)+F[J+1]},F[0]).toString()},MzE;
bZM.prototype.toString=function(){return this.value};
_.Tjj=function(F){var q=_.US.apply(1,arguments);MzE(F,q);var t=document.createElement("template");q=q.reduce(function(u,J,g){if(J instanceof HTMLTemplateElement)J=J.innerHTML;else if(J instanceof bZM)J=yXo(J);else throw Error("Ed`"+J);return u+J+F[g+1]},F[0]);
nvO&&(q=nvO.createHTML(q));t.innerHTML=q;return t};
MzE=function(F,q){if(!Array.isArray(F)||!Array.isArray(F.raw)||q.length!==F.length-1)throw new TypeError("Fd");};var ZC=eZ(HTMLElement);var G5L=YZ(function(F){var q=eZ(F);F=function(){var t=q.call(this)||this;t.__lastItems=null;t.__lastMulti=null;t.__selectedMap=null;return t};
_.M(F,q);F.prototype.__updateSelection=function(t,u){var J=u.path;J=="items"?(u=u.base||[],J=this.__lastItems,t!==this.__lastMulti&&this.clearSelection(),J&&(J=$FP(u,J),this.__applySplices(J)),this.__lastItems=u,this.__lastMulti=t):u.path=="items.splices"?this.__applySplices(u.value.indexSplices):(t=J.slice(6),u=parseInt(t,10),t.indexOf(".")<0&&t==u&&this.__deselectChangedIdx(u))};
F.prototype.__applySplices=function(t){for(var u=this,J=this.__selectedMap,g={},Y=0;Y<t.length;g={s$jscomp$109:void 0},Y++){g.s$jscomp$109=t[Y];J.forEach(function(N){return function(w,k){w<N.s$jscomp$109.index||(w>=N.s$jscomp$109.index+N.s$jscomp$109.removed.length?J.set(k,w+N.s$jscomp$109.addedCount-N.s$jscomp$109.removed.length):J.set(k,-1))}}(g));
for(var Q=0;Q<g.s$jscomp$109.addedCount;Q++){var e=g.s$jscomp$109.index+Q;J.has(this.items[e])&&J.set(this.items[e],e)}}this.__updateLinks();var r=0;J.forEach(function(N,w){N<0?(u.multi?u.splice("selected",r,1):u.selected=u.selectedItem=null,J.delete(w)):r++})};
F.prototype.__updateLinks=function(){var t=this;this.__dataLinkedPaths={};if(this.multi){var u=0;this.__selectedMap.forEach(function(J){J>=0&&t.linkPaths("items."+J,"selected."+u++)})}else this.__selectedMap.forEach(function(J){t.linkPaths("selected","items."+J);
t.linkPaths("selectedItem","items."+J)})};
F.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
F.prototype.isSelected=function(t){return this.__selectedMap.has(t)};
F.prototype.isIndexSelected=function(t){return this.isSelected(this.items[t])};
F.prototype.__deselectChangedIdx=function(t){var u=this,J=this.__selectedIndexForItemIndex(t);if(J>=0){var g=0;this.__selectedMap.forEach(function(Y,Q){J==g++&&u.deselect(Q)})}};
F.prototype.__selectedIndexForItemIndex=function(t){if(t=this.__dataLinkedPaths["items."+t])return parseInt(t.slice(9),10)};
F.prototype.deselect=function(t){var u=this.__selectedMap.get(t);if(u>=0){this.__selectedMap.delete(t);var J;this.multi&&(J=this.__selectedIndexForItemIndex(u));this.__updateLinks();this.multi?this.splice("selected",J,1):this.selected=this.selectedItem=null}};
F.prototype.deselectIndex=function(t){this.deselect(this.items[t])};
F.prototype.select=function(t){this.selectIndex(this.items.indexOf(t))};
F.prototype.selectIndex=function(t){var u=this.items[t];this.isSelected(u)?this.toggle&&this.deselectIndex(t):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(u,t),this.__updateLinks(),this.multi?this.push("selected",u):this.selected=this.selectedItem=u)};
_.JJ.Object.defineProperties(F,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return F}),Dp1=G5L(ZC),Rz=function(){return Dp1.apply(this,arguments)||this};
_.M(Rz,Dp1);_.JJ.Object.defineProperties(Rz,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Rz.is,Rz);var WVx=window.Polymer;window.Polymer=function(F){return window.Polymer._polymerFn(F)};
WVx&&Object.assign(Polymer,WVx);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:URy,resolveUrl:_.Qn,pathFromUrl:So$};Polymer.DomModule=WU;Polymer.Async={timeOut:_.XH,animationFrame:_.H9,idlePeriod:tze,microTask:dZ};Polymer.dedupingMixin=YZ;Polymer.wrap=_.nW;Polymer.PropertiesChanged=Jx1;Polymer.telemetry={instanceCount:sYC,incrementInstanceCount:function(){sYC++},
registrations:LTt,register:fMv,dumpRegistrations:function(){LTt.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=gvv;Polymer.CaseMap={dashToCamelCase:ZS,camelToDashCase:R0};Polymer.PropertyAccessors=elz;Polymer.TemplateStamp=w5r;Polymer.Path={isPath:rZ,root:NL,isAncestor:tNC,isDescendant:wZ,translate:iR,matches:u9W,normalize:kF,split:JX$,get:ET,set:sLt,isDeep:rZ};Polymer.Settings={useShadow:SM,useNativeCSSProperties:yVe,useNativeCustomElements:CNJ,get rootPath(){return hSw},setRootPath:function(F){hSw=F},
get sanitizeDOMValue(){return ML},setSanitizeDOMValue:function(F){ML=F},
get passiveTouchGestures(){return cX_},setPassiveTouchGestures:function(F){cX_=F},
get strictTemplatePolicy(){return LW},setStrictTemplatePolicy:function(F){LW=F},
get allowTemplateFromDomModule(){return Kjn},setAllowTemplateFromDomModule:function(F){Kjn=F},
get legacyOptimizations(){return UT},setLegacyOptimizations:function(F){UT=F},
get syncInitialRender(){return BYn},setSyncInitialRender:function(F){BYn=F},
get legacyUndefined(){return GG},setLegacyUndefined:function(F){GG=F},
get legacyWarnings(){return BU},setLegacyWarnings:function(F){BU=F},
get orderedComputed(){return LjC},setOrderedComputed:function(F){LjC=F},
get fastDomIf(){return su},setFastDomIf:function(F){su=F},
get removeNestedTemplates(){return JM},setRemoveNestedTemplates:function(F){JM=F},
get suppressTemplateNotifications(){return g5},setSuppressTemplateNotifications:g5};Polymer.rootPath!==void 0&&(hSw=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(ML=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(cX_=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(LW=Polymer.strictTemplatePolicy);Kjn=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(UT=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(BYn=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(GG=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(BU=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(LjC=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(su=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(JM=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(g5=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return ML},
set:function(F){ML=F}});Polymer.PropertyEffects=Q3;Polymer.StyleGather={stylesFromModules:OZC,stylesFromModule:W4W,stylesFromTemplate:PZq,stylesFromModuleImports:xFu,cssFromModules:vf3,cssFromModule:AXu,cssFromTemplate:IeM,cssFromModuleImports:function(F){return(F=WU.import(F))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(F):""}};Polymer.ElementMixin=eZ;Polymer.updateStyles=function(F){window.ShadyCSS&&window.ShadyCSS.styleDocument(F)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:$FP};Polymer.html=_.Tjj;Polymer.htmlLiteral=function(F){return new bZM(F,_.US.apply(1,arguments))};Polymer.Element=ZC;Polymer.ArraySelectorMixin=G5L;Polymer.ArraySelector=Rz;var OjE=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,PCO=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,kb3=/@media\s(.*)/;var UFq=null,VNy=window.HTMLImports&&window.HTMLImports.whenReady||null,SLC;var xpv=null,r5=null,NK=function(){this.customStyles=[];this.enqueued=!1;hXM(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},AxC=function(F){!F.enqueued&&r5&&(F.enqueued=!0,hXM(r5))};
NK.prototype.addCustomStyle=function(F){F.__seenByShadyCSS||(F.__seenByShadyCSS=!0,this.customStyles.push(F),AxC(this))};
NK.prototype.getStyleForCustomStyle=function(F){if(F.__shadyCSSCachedStyle)return F.__shadyCSSCachedStyle;var q;F.getStyle?q=F.getStyle():q=F;return q};
NK.prototype.processStyles=function(){for(var F=this.customStyles,q=0;q<F.length;q++){var t=F[q];if(!t.__shadyCSSCachedStyle){var u=this.getStyleForCustomStyle(t);u&&(u=u.__appliedElement||u,xpv&&xpv(u),t.__shadyCSSCachedStyle=u)}}return F};
NK.prototype.addCustomStyle=NK.prototype.addCustomStyle;NK.prototype.getStyleForCustomStyle=NK.prototype.getStyleForCustomStyle;NK.prototype.processStyles=NK.prototype.processStyles;Object.defineProperties(NK.prototype,{transformCallback:{get:function(){return xpv},
set:function(F){xpv=F}},
validateCallback:{get:function(){return r5},
set:function(F){var q=!1;r5||(q=!0);r5=F;q&&AxC(this)}}});var BmC=!(window.ShadyDOM&&window.ShadyDOM.inUse),K4o,u7;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(u7=window.ShadyCSS.cssBuild);var vvE=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?K4o=window.ShadyCSS.nativeCss:window.ShadyCSS?(L4y(window.ShadyCSS),window.ShadyCSS=void 0):L4y(window.WebComponents&&window.WebComponents.flags);var N1t=K4o;var IxO=new NK;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(F,q){IxO.processStyles();CZq(F,q)},
styleElement:function(){IxO.processStyles()},
styleDocument:function(F){IxO.processStyles();CZq(document.body,F)},
getComputedStyleValue:function(F,q){return dFC(F,q)},
flushCustomStyles:function(){},
nativeCss:N1t,nativeShadow:BmC,cssBuild:u7,disableRuntime:vvE});window.ShadyCSS.CustomStyleInterface=IxO;var HjE=window.ShadyCSS.CustomStyleInterface,w5=function(){var F=HTMLElement.call(this)||this;F._style=null;HjE.addCustomStyle(F);return F};
_.M(w5,HTMLElement);w5.prototype.getStyle=function(){if(this._style)return this._style;var F=this.querySelector("style");if(!F)return null;this._style=F;var q=F.getAttribute("include");q&&(F.removeAttribute("include"),F.textContent=vf3(q)+F.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
w5.prototype.getStyle=w5.prototype.getStyle;window.customElements.define("custom-style",w5);Polymer.CustomStyle=w5;var im=function(){this._timer=this._callback=this._asyncModule=null},kZ,$pJ;
im.prototype.setConfig=function(F,q){var t=this;this._asyncModule=F;this._callback=q;this._timer=this._asyncModule.run(function(){t._timer=null;kZ.delete(t);t._callback()})};
im.prototype.cancel=function(){this.isActive()&&(mpz(this),kZ.delete(this))};
var mpz=function(F){F.isActive()&&(F._asyncModule.cancel(F._timer),F._timer=null)};
im.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
im.prototype.isActive=function(){return this._timer!=null};
_.Eu=function(F,q,t){F instanceof im?mpz(F):F=new im;F.setConfig(q,t);return F};
kZ=new Set;_.zs=function(F){kZ.add(F)};
$pJ=function(){var F=!!kZ.size;kZ.forEach(function(q){try{q.flush()}catch(t){setTimeout(function(){throw t;})}});
return F};var aeq=typeof document.head.style.touchAction==="string",fet=["mousedown","mousemove","mouseup","click"],gBf=[0,1,4,2],bjx;try{bjx=(new MouseEvent("test",{buttons:1})).buttons===1}catch(F){bjx=!1}var sCq=bjx,jLC=!1;(function(){try{var F=Object.defineProperty({},"passive",{get:function(){jLC=!0}});
window.addEventListener("test",null,F);window.removeEventListener("test",null,F)}catch(q){}})();
var qaW=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),tso=[],yxL={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},i4W={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},urC=function(F){var q=F.sourceCapabilities;if(!q||q.firesTouchEvents)if(F.__polymerGesturesHandled={skip:!0},F.type==="click"){q=!1;for(var t=piy(F),u=0;u<t.length;u++){if(t[u].nodeType===Node.ELEMENT_NODE)if(t[u].localName==="label")tso.push(t[u]);
else if(yxL[t[u].localName]){var J=t[u];var g=Array.prototype.slice.call(J.labels||[]);if(!g.length){g=[];try{var Y=J.getRootNode();if(J.id){var Q=Y.querySelectorAll("label[for = '"+J.id+"']");for(J=0;J<Q.length;J++)g.push(Q[J])}}catch(e){}}for(J=0;J<g.length;J++)q=q||tso.indexOf(g[J])>-1}if(t[u]===CCd)return}q||(F.preventDefault(),F.stopPropagation())}},CCd=null,oz=null,etP=0,Z4u=0,QCA=-1,Rtq=!1;
document.addEventListener("touchend",function(F){oz||Jao(!0);CCd=piy(F)[0];oz=_.Eu(oz,_.XH.after(2500),function(){Jao();oz=CCd=null})},jLC?{passive:!0}:!1);
var piy=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(F){return F.composedPath&&F.composedPath()||[]},HU={},vU=[];
raW({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Ag(this.info)},
mousedown:function(F){if(xF(F)){var q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F),t=this;Xio(this.info,function(u){xF(u)||(Vn("up",q,u),Ag(t.info))},function(u){xF(u)&&Vn("up",q,u);
Ag(t.info)});
Vn("down",q,F)}},
touchstart:function(F){Vn("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F),F.changedTouches[0],F)},
touchend:function(F){Vn("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F),F.changedTouches[0],F)}});
raW({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(F){this.moves.length>2&&this.moves.shift();this.moves.push(F)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;Ag(this.info)},
mousedown:function(F){if(xF(F)){var q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F),t=this,u=function(J){var g=J.clientX,Y=J.clientY;Nd$(t.info,g,Y)&&(t.info.state=t.info.started?J.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&I0("tap"),t.info.addMove({x:g,y:Y}),xF(J)||(t.info.state="end",Ag(t.info)),q&&wiP(t.info,q,J),t.info.started=!0)};
Xio(this.info,u,function(J){t.info.started&&u(J);Ag(t.info)});
this.info.x=F.clientX;this.info.y=F.clientY}},
touchstart:function(F){F=F.changedTouches[0];this.info.x=F.clientX;this.info.y=F.clientY},
touchmove:function(F){var q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F);F=F.changedTouches[0];var t=F.clientX,u=F.clientY;Nd$(this.info,t,u)&&(this.info.state==="start"&&I0("tap"),this.info.addMove({x:t,y:u}),wiP(this.info,q,F),this.info.state="track",this.info.started=!0)},
touchend:function(F){var q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F);F=F.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:F.clientX,y:F.clientY}),wiP(this.info,q,F))}});
raW({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(F){xF(F)&&(this.info.x=F.clientX,this.info.y=F.clientY)},
click:function(F){xF(F)&&k3f(this.info,F)},
touchstart:function(F){F=F.changedTouches[0];this.info.x=F.clientX;this.info.y=F.clientY},
touchend:function(F){k3f(this.info,F.changedTouches[0],F)}});var dpz=YZ(function(F){var q=function(){return F.apply(this,arguments)||this};
_.M(q,F);q.prototype._addEventListenerToNode=function(t,u,J){m0(t,u,J)||F.prototype._addEventListenerToNode.call(this,t,u,J)};
q.prototype._removeEventListenerFromNode=function(t,u,J){yn(t,u,J)||F.prototype._removeEventListenerFromNode.call(this,t,u,J)};
return q});var nV=YZ(function(F){var q=function(){return F.apply(this,arguments)||this};
_.M(q,F);q.prototype._shouldPropertyChange=function(t,u,J){return EB_(this,t,u,J,!0)};
return q}),Vzr=YZ(function(F){var q=function(){return F.apply(this,arguments)||this};
_.M(q,F);q.prototype._shouldPropertyChange=function(t,u,J){return EB_(this,t,u,J,this.mutableData)};
_.JJ.Object.defineProperties(q,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return q});
nV._mutablePropertyChange=EB_;var ztu=!1;var Upf=dpz(Vzr(Q3(HTMLElement))),MK=function(){var F=Upf.call(this)||this;if(LW)throw Error("Hd");F.root=null;F.$=null;F.__children=null;return F};
_.M(MK,Upf);_.l=MK.prototype;_.l.attributeChangedCallback=function(){this.mutableData=!0};
_.l.connectedCallback=function(){oBf()||(this.style.display="none");this.render()};
_.l.disconnectedCallback=function(){this.__removeChildren()};
_.l.__insertChildren=function(){(0,_.nW)((0,_.nW)(this).parentNode).insertBefore(this.root,this)};
_.l.__removeChildren=function(){if(this.__children)for(var F=0;F<this.__children.length;F++)this.root.appendChild(this.__children[F])};
_.l.render=function(){var F=this;if(!this.__children){var q=q||this.querySelector("template");if(!q){var t=new MutationObserver(function(){if(q=F.querySelector("template"))t.disconnect(),F.render();else throw Error("Id");});
t.observe(this,{childList:!0});return}this.root=this._stampTemplate(q);this.$=this.root.$;this.__children=[];for(var u=this.root.firstChild;u;u=u.nextSibling)this.__children[this.__children.length]=u;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.JJ.Object.defineProperties(MK,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",MK);Polymer.Debouncer=im;Polymer.Gestures={gestures:HU,recognizers:vU,deepTargetFind:YaW,addListener:m0,removeListener:yn,register:raW,setTouchAction:_.CW,prevent:I0,resetMouseCanceller:function(){oz&&oz.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:m0,remove:yn};Polymer.GestureEventListeners=dpz;Polymer.MutableData=nV;Polymer.OptionalMutableData=Vzr;Polymer.DomBind=MK;_.Ts=function(){do{var F=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var q=$pJ()}while(F||q)};var nB_=null;Ms_.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Ms_,writable:!0}});var AaP=Q3(Ms_),xJt=nV(AaP),Sfz=Q3(function(){}),hg=function(F){var q=Sfz.call(this)||this;
q._configureProperties(F);q.root=q._stampTemplate(q.__dataHost);var t=[];q.children=t;for(var u=q.root.firstChild;u;u=u.nextSibling)t.push(u),u.__templatizeInstance=q;q.__templatizeOwner&&q.__templatizeOwner.__hideTemplateChildren__&&q._showHideChildren(!0);t=q.__templatizeOptions;(F&&t.instanceProps||!t.instanceProps)&&q._enableProperties();return q};
_.M(hg,Sfz);_.l=hg.prototype;_.l._configureProperties=function(F){if(this.__templatizeOptions.forwardHostProp)for(var q in this.__hostProps)this._setPendingProperty(q,this.__dataHost["_host_"+q]);for(var t in F)this._setPendingProperty(t,F[t])};
_.l.forwardHostProp=function(F,q){this._setPendingPropertyOrPath(F,q,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.l._addEventListenerToNode=function(F,q,t){var u=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(F,q,function(g){g.model=u;t(g)});
else{var J=this.__dataHost.__dataHost;J&&J._addEventListenerToNode(F,q,t)}};
_.l._showHideChildren=function(F){G3_(F,this.children)};
_.l._setUnmanagedPropertyToNode=function(F,q,t){F.__hideTemplateChildren__&&F.nodeType==Node.TEXT_NODE&&q=="textContent"?F.__polymerTextContent__=t:Sfz.prototype._setUnmanagedPropertyToNode.call(this,F,q,t)};
_.l.dispatchEvent=function(){return!0};
_.JJ.Object.defineProperties(hg.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var F=this.__parentModel;if(!F){var q;F=this;do F=F.__dataHost.__dataHost;while((q=F.__templatizeOptions)&&!q.parentModel);this.__parentModel=F}return F}}});
var Wcf=nV(hg);var Gs=function(){var F=ZC.call(this)||this;F.__renderDebouncer=null;F._lastIf=!1;F.__hideTemplateChildren__=!1;return F};
_.M(Gs,ZC);_.l=Gs.prototype;_.l.__debounceRender=function(){var F=this;this.__renderDebouncer=_.Eu(this.__renderDebouncer,dZ,function(){return F.__render()});
_.zs(this.__renderDebouncer)};
_.l.disconnectedCallback=function(){ZC.prototype.disconnectedCallback.call(this);var F=(0,_.nW)(this).parentNode;F&&(F.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.nW)(F).host)||this.__teardownInstance()};
_.l.connectedCallback=function(){ZC.prototype.connectedCallback.call(this);oBf()||(this.style.display="none");this.if&&this.__debounceRender()};
_.l.__ensureTemplate=function(){var F=this;if(!this.__template){var q=this._templateInfo?this:(0,_.nW)(this).querySelector("template");if(!q){var t=new MutationObserver(function(){if((0,_.nW)(F).querySelector("template"))t.disconnect(),F.__render();else throw Error("Ld");});
t.observe(this,{childList:!0});return!1}this.__template=q}return!0};
_.l.__ensureInstance=function(){var F=(0,_.nW)(this).parentNode;if(this.__hasInstance()){var q=this.__getInstanceNodes();if(q&&q.length&&(0,_.nW)(this).previousSibling!==q[q.length-1])for(var t=0,u=void 0;t<q.length&&(u=q[t]);t++)(0,_.nW)(F).insertBefore(u,this)}else{if(!F||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(F)}return!0};
_.l.render=function(){_.Ts()};
_.l.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();g5&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.l.__hasInstance=function(){};
_.l.__getInstanceNodes=function(){};
_.l.__createAndInsertInstance=function(){};
_.l.__teardownInstance=function(){};
_.l._showHideChildren=function(){};
_.JJ.Object.defineProperties(Gs,{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:Gs.prototype.__debounceRender},restamp:{type:Boolean,observer:Gs.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var hlE=function(){var F=Gs.call(this)||this;F.__instance=null;F.__syncInfo=null;return F};
_.M(hlE,Gs);_.l=hlE.prototype;_.l.__hasInstance=function(){return!!this.__instance};
_.l.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.l.__createAndInsertInstance=function(F){var q=this,t=this.__dataHost||this;if(LW&&!this.__dataHost)throw Error("Jd");var u=t._bindTemplate(this.__template,!0);u.runEffects=function(J,g,Y){var Q=q.__syncInfo;if(q.if)Q&&(q.__syncInfo=null,q._showHideChildren(),g=Object.assign(Q.changedProps,g)),J(g,Y);else if(q.__instance)if(Q||(Q=q.__syncInfo={runEffects:J,changedProps:{}}),Y)for(var e in g)J=NL(e),Q.changedProps[J]=q.__dataHost[J];else Object.assign(Q.changedProps,g)};
this.__instance=t._stampTemplate(this.__template,u);(0,_.nW)(F).insertBefore(this.__instance,this)};
_.l.__syncHostProperties=function(){var F=this.__syncInfo;F&&(this.__syncInfo=null,F.runEffects(F.changedProps,!1))};
_.l.__teardownInstance=function(){var F=this.__dataHost||this;this.__instance&&(F._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.l._showHideChildren=function(){var F=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==F&&(this.__instance.__hidden=F,G3_(F,this.__instance.templateInfo.childNodes));F||this.__syncHostProperties()};
var KVz=function(){var F=Gs.call(this)||this;F.__ctor=null;F.__instance=null;F.__invalidProps=null;return F};
_.M(KVz,Gs);_.l=KVz.prototype;_.l.__hasInstance=function(){return!!this.__instance};
_.l.__getInstanceNodes=function(){return this.__instance.children};
_.l.__createAndInsertInstance=function(F){this.__ctor||(this.__ctor=KW(this.__template,this,{mutableData:!0,forwardHostProp:function(q,t){this.__instance&&(this.if?this.__instance.forwardHostProp(q,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[NL(q)]=!0))}}));
this.__instance=new this.__ctor;(0,_.nW)(F).insertBefore(this.__instance.root,this)};
_.l.__teardownInstance=function(){if(this.__instance){var F=this.__instance.children;if(F&&F.length){var q=(0,_.nW)(F[0]).parentNode;if(q){q=(0,_.nW)(q);for(var t=0,u=void 0;t<F.length&&(u=F[t]);t++)q.removeChild(u)}}this.__instance=this.__invalidProps=null}};
_.l.__syncHostProperties=function(){var F=this.__invalidProps;if(F){this.__invalidProps=null;for(var q in F)this.__instance._setPendingProperty(q,this.__dataHost[q]);this.__instance._flushProperties()}};
_.l._showHideChildren=function(){var F=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==F&&(this.__instance.__hidden=F,this.__instance._showHideChildren(F));F||this.__syncHostProperties()};
_.yu=su?hlE:KVz;customElements.define(_.yu.is,_.yu);Polymer.enqueueDebouncer=_.zs;Polymer.flush=_.Ts;Polymer.Templatize={templatize:KW,modelForElement:b43};Polymer.TemplateInstanceBase=hg;Polymer.DomIf=_.yu;var BjC=Vzr(ZC),m6=function(){var F=BjC.call(this)||this;F.__instances=[];F.__renderDebouncer=null;F.__itemsIdxToInstIdx={};F.__chunkCount=null;F.__renderStartTime=null;F.__itemsArrayChanged=!1;F.__shouldMeasureChunk=!1;F.__shouldContinueChunking=!1;F.__chunkingId=0;F.__sortFn=null;F.__filterFn=null;F.__observePaths=null;F.__ctor=null;F.__isDetached=!0;F.template=null;return F};
_.M(m6,BjC);_.l=m6.prototype;_.l.disconnectedCallback=function(){BjC.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var F=0;F<this.__instances.length;F++)this.__detachInstance(F);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.l.connectedCallback=function(){BjC.prototype.connectedCallback.call(this);oBf()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var F=(0,_.nW)((0,_.nW)(this).parentNode),q=0;q<this.__instances.length;q++)this.__attachInstance(q,F);this.__chunkingId&&this.__render()}};
_.l.__ensureTemplatized=function(){var F=this;if(!this.__ctor){var q=this.template=this._templateInfo?this:this.querySelector("template");if(!q){var t=new MutationObserver(function(){if(F.querySelector("template"))t.disconnect(),F.__render();else throw Error("Md");});
t.observe(this,{childList:!0});return!1}var u={};u[this.as]=!0;u[this.indexAs]=!0;u[this.itemsIndexAs]=!0;this.__ctor=KW(q,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:u,forwardHostProp:function(J,g){for(var Y=this.__instances,Q=0,e=void 0;Q<Y.length&&(e=Y[Q]);Q++)e.forwardHostProp(J,g)},
notifyInstanceProp:function(J,g,Y){u9W(this.as,g)&&(J=J[this.itemsIndexAs],g==this.as&&(this.items[J]=Y),g=iR(this.as,"items."+J,g),this.notifyPath(g,Y))}})}return!0};
_.l.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.l.__functionFromPropertyValue=function(F){if(typeof F==="string"){var q=this.__getMethodHost();return function(){return q[F].apply(q,arguments)}}return F};
_.l.__sortChanged=function(F){this.__sortFn=this.__functionFromPropertyValue(F);this.items&&this.__debounceRender(this.__render)};
_.l.__filterChanged=function(F){this.__filterFn=this.__functionFromPropertyValue(F);this.items&&this.__debounceRender(this.__render)};
_.l.__computeFrameTime=function(F){return Math.ceil(1E3/F)};
_.l.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.l.__handleObservedPaths=function(F){if(this.__sortFn||this.__filterFn)if(!F)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var q=this.__observePaths,t=0;t<q.length;t++)F.indexOf(q[t])===0&&this.__debounceRender(this.__render,this.delay)};
_.l.__itemsChanged=function(F){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(F.path,F.value)||(F.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.l.__debounceRender=function(F,q){q=q===void 0?0:q;this.__renderDebouncer=_.Eu(this.__renderDebouncer,q>0?_.XH.after(q):dZ,F.bind(this));_.zs(this.__renderDebouncer)};
_.l.render=function(){this.__debounceRender(this.__render);_.Ts()};
_.l.__render=function(){var F=this;if(this.__ensureTemplatized()){var q=this.items||[],t=this.__sortAndFilterItems(q),u=this.__calculateLimit(t.length);this.__updateInstances(q,u,t);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){F.__chunkingId=null;F.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);g5&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.l.__sortAndFilterItems=function(F){for(var q=this,t=Array(F.length),u=0;u<F.length;u++)t[u]=u;this.__filterFn&&(t=t.filter(function(J,g,Y){return q.__filterFn(F[J],g,Y)}));
this.__sortFn&&t.sort(function(J,g){return q.__sortFn(F[J],F[g])});
return t};
_.l.__calculateLimit=function(F){var q=F,t=this.__instances.length;if(this.initialCount){var u;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(q=Math.min(F,this.initialCount),this.__chunkCount=(u=Math.max(q-t,0))||1):(u=Math.min(Math.max(F-t,0),this.__chunkCount),q=Math.min(t+u,F));this.__shouldMeasureChunk=u===this.__chunkCount;this.__shouldContinueChunking=q<F;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return q};
_.l.__continueChunking=function(){if(this.__shouldMeasureChunk){var F=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/F*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.l.__updateInstances=function(F,q,t){var u=this.__itemsIdxToInstIdx={},J;for(J=0;J<q;J++){var g=this.__instances[J],Y=t[J],Q=F[Y];u[Y]=J;g?(g._setPendingProperty(this.as,Q),g._setPendingProperty(this.indexAs,J),g._setPendingProperty(this.itemsIndexAs,Y),g._flushProperties()):this.__insertInstance(Q,J,Y)}for(F=this.__instances.length-1;F>=J;F--)this.__detachAndRemoveInstance(F)};
_.l.__detachInstance=function(F){F=this.__instances[F];for(var q=(0,_.nW)(F.root),t=0;t<F.children.length;t++)q.appendChild(F.children[t]);return F};
_.l.__attachInstance=function(F,q){q.insertBefore(this.__instances[F].root,this)};
_.l.__detachAndRemoveInstance=function(F){this.__detachInstance(F);this.__instances.splice(F,1)};
_.l.__stampInstance=function(F,q,t){var u={};u[this.as]=F;u[this.indexAs]=q;u[this.itemsIndexAs]=t;return new this.__ctor(u)};
_.l.__insertInstance=function(F,q,t){F=this.__stampInstance(F,q,t);t=(t=this.__instances[q+1])?t.children[0]:this;(0,_.nW)((0,_.nW)(this).parentNode).insertBefore(F.root,t);return this.__instances[q]=F};
_.l._showHideChildren=function(F){for(var q=0;q<this.__instances.length;q++)this.__instances[q]._showHideChildren(F)};
_.l.__handleItemPath=function(F,q){var t=F.slice(6),u=t.indexOf(".");F=u<0?t:t.substring(0,u);if(F==parseInt(F,10)){t=u<0?"":t.substring(u+1);this.__handleObservedPaths(t);if(F=this.__instances[this.__itemsIdxToInstIdx[F]])F._setPendingPropertyOrPath(this.as+(t?"."+t:""),q,!1,!0),F._flushProperties();return!0}};
_.l.itemForElement=function(F){return(F=this.modelForElement(F))&&F[this.as]};
_.l.indexForElement=function(F){return(F=this.modelForElement(F))&&F[this.indexAs]};
_.l.modelForElement=function(F){return b43(this.template,F)};
_.JJ.Object.defineProperties(m6,{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:m6.prototype.__sortChanged},filter:{type:Function,observer:m6.prototype.__filterChanged},observe:{type:String,observer:m6.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!g5,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.*)"]}}});
m6.prototype._setRenderedItemCount=function(){};
customElements.define(m6.is,m6);Polymer.DomRepeat=m6;var LVL=function(F,q){var t=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=F;this.callback=q;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){t._schedule()};
this.connect();this._schedule()},fxL=function(F){var q=(0,_.nW)(F);
if(fW(F))return q.assignedNodes({flatten:!0});F=[];for(var t=0;t<q.childNodes.length;t++){var u=q.childNodes[t];fW(u)?F.push.apply(F,_.mZ((0,_.nW)(u).assignedNodes({flatten:!0}))):F.push(u)}return F};
_.l=LVL.prototype;_.l.connect=function(){var F=this;fW(this._target)?this._listenSlots([this._target]):(0,_.nW)(this._target).children&&(this._listenSlots((0,_.nW)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(q){F._processMutations(q)}):(this._nativeChildrenObserver=new MutationObserver(function(q){F._processMutations(q)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.l.disconnect=function(){fW(this._target)?this._unlistenSlots([this._target]):(0,_.nW)(this._target).children&&(this._unlistenSlots((0,_.nW)(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};
_.l._schedule=function(){var F=this;this._scheduled||(this._scheduled=!0,dZ.run(function(){return F.flush()}))};
_.l._processMutations=function(F){this._processSlotMutations(F);this.flush()};
_.l._processSlotMutations=function(F){if(F)for(var q=0;q<F.length;q++){var t=F[q];t.addedNodes&&this._listenSlots(t.addedNodes);t.removedNodes&&this._unlistenSlots(t.removedNodes)}};
_.l.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var F={target:this._target,addedNodes:[],removedNodes:[]},q=fxL(this._target),t=$FP(q,this._effectiveNodes),u=0,J=void 0;u<t.length&&(J=t[u]);u++)for(var g=0,Y=void 0;g<J.removed.length&&(Y=J.removed[g]);g++)F.removedNodes.push(Y);
u=0;for(J=void 0;u<t.length&&(J=t[u]);u++)for(g=J.index;g<J.index+J.addedCount;g++)F.addedNodes.push(q[g]);this._effectiveNodes=q;q=!1;if(F.addedNodes.length||F.removedNodes.length)q=!0,this.callback.call(this._target,F);return q};
_.l._listenSlots=function(F){for(var q=0;q<F.length;q++){var t=F[q];fW(t)&&t.addEventListener("slotchange",this._boundSchedule)}};
_.l._unlistenSlots=function(F){for(var q=0;q<F.length;q++){var t=F[q];fW(t)&&t.removeEventListener("slotchange",this._boundSchedule)}};var DC=Element.prototype,axz=DC.matches||DC.matchesSelector||DC.mozMatchesSelector||DC.msMatchesSelector||DC.oMatchesSelector||DC.webkitMatchesSelector,jYw=function(F,q){return axz.call(F,q)},a0=function(F){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(F);
this.node=F},tTv;
_.l=a0.prototype;_.l.observeNodes=function(F){return new LVL(this.node,F)};
_.l.unobserveNodes=function(F){F.disconnect()};
_.l.notifyObserver=function(){};
_.l.deepContains=function(F){if((0,_.nW)(this.node).contains(F))return!0;var q=F;for(F=F.ownerDocument;q&&q!==F&&q!==this.node;)q=(0,_.nW)(q).parentNode||(0,_.nW)(q).host;return q===this.node};
_.l.getOwnerRoot=function(){return(0,_.nW)(this.node).getRootNode()};
_.l.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.nW)(this.node).assignedNodes({flatten:!0}):[]};
_.l.getDestinationInsertionPoints=function(){for(var F=[],q=(0,_.nW)(this.node).assignedSlot;q;)F.push(q),q=(0,_.nW)(q).assignedSlot;return F};
_.l.importNode=function(F,q){return(0,_.nW)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(F,q)};
_.l.getEffectiveChildNodes=function(){return fxL(this.node)};
_.l.queryDistributedElements=function(F){for(var q=this.getEffectiveChildNodes(),t=[],u=0,J=q.length,g=void 0;u<J&&(g=q[u]);u++)g.nodeType===Node.ELEMENT_NODE&&jYw(g,F)&&t.push(g);return t};
_.JJ.Object.defineProperties(a0.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var F=this.node;return F._activeElement!==void 0?F._activeElement:F.activeElement}}});
var WN=function(F){this.event=F};
_.JJ.Object.defineProperties(WN.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 cxd=a0;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var FBC=window.ShadyDOM.Wrapper,qyz=function(){return FBC.apply(this,arguments)||this};
_.M(qyz,FBC);Object.getOwnPropertyNames(a0.prototype).forEach(function(F){F!="activeElement"&&F!="constructor"&&(qyz.prototype[F]=a0.prototype[F])});
Cpo(qyz.prototype,["classList"]);cxd=qyz;Object.defineProperties(WN.prototype,{localTarget:{get:function(){var F=this.event.currentTarget;F=F&&_.xz(F).getOwnerRoot();for(var q=this.path,t=0;t<q.length;t++){var u=q[t];if(_.xz(u).getOwnerRoot()===F)return u}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else yaC(),Cpo(a0.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),dJW();tTv=cxd;_.xz=function(F){F=F||document;if(F instanceof cxd)return F;if(F instanceof WN)return F;var q=F.__domApi;q||(F instanceof Event?q=new WN(F):q=new cxd(F),F.__domApi=q);return q};var uKE=/:host\(:dir\((ltr|rtl)\)\)/g,Jnr=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,sbx=/:dir\((?:ltr|rtl)\)/,ghf=!(!window.ShadyDOM||!window.ShadyDOM.inUse),cU=[],Ou=null,jM="",lne=YZ(function(F){ghf||Ou||(jM=document.documentElement.getAttribute("dir"),Ou=new MutationObserver(Vs_),Ou.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var q=elz(F);F=function(){var t=q.call(this)||this;t.__autoDirOptOut=!1;return t};
_.M(F,q);F._processStyleText=function(t,u){t=q._processStyleText.call(this,t,u);!ghf&&sbx.test(t)&&(t=this._replaceDirInCssText(t),this.__activateDir=!0);return t};
F._replaceDirInCssText=function(t){t=t.replace(uKE,':host([dir="$1"])');return t=t.replace(Jnr,':host([dir="$2"]) $1')};
F.prototype.ready=function(){q.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
F.prototype.connectedCallback=function(){q.prototype.connectedCallback&&q.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Ou&&Ou.takeRecords().length&&Vs_(),cU.push(this),this.__autoDirOptOut||this.setAttribute("dir",jM))};
F.prototype.disconnectedCallback=function(){q.prototype.disconnectedCallback&&q.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var t=cU.indexOf(this);t>-1&&cU.splice(t,1)}};
F.__activateDir=!1;return F});var Xxe=function(F){for(;F;){var q=Object.getOwnPropertyDescriptor(F,"observedAttributes");if(q)return q.get;F=Object.getPrototypeOf(F.prototype).constructor}return function(){return[]}};
YZ(function(F){var q=eZ(F),t=Xxe(q);F=function(){return q.call(this)||this};
_.M(F,q);F.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:q.prototype._initializeProperties.call(this)};
F.prototype._enableProperties=function(){this.__isUpgradeDisabled||q.prototype._enableProperties.call(this)};
F.prototype._canApplyPropertyDefault=function(u){return q.prototype._canApplyPropertyDefault.call(this,u)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(u))};
F.prototype.attributeChangedCallback=function(u,J,g,Y){u=="disable-upgrade"?this.__isUpgradeDisabled&&g==null&&(q.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.nW)(this).isConnected&&q.prototype.connectedCallback.call(this)):q.prototype.attributeChangedCallback.call(this,u,J,g,Y)};
F.prototype.connectedCallback=function(){this.__isUpgradeDisabled||q.prototype.connectedCallback.call(this)};
F.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||q.prototype.disconnectedCallback.call(this)};
_.JJ.Object.defineProperties(F,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return t.call(this).concat("disable-upgrade")}}});
return F});var F5=!1,Sao=[],qd=[];var Lc3=window.ShadyDOM,ffW=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",jCq):document.readyState==="interactive"||document.readyState==="complete"?jCq():window.addEventListener("DOMContentLoaded",jCq);var qNy=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=""},ca3=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,FRA=/@import[^;]*;/gim,lHq=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Xkt=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,YNy=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,pkq=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,s8f=/^@[^\s]*keyframes/,
J$W=/\s+/g;var Q8u={};var RKM=Promise.resolve();var Yyn=new Set;var pxn=/;\s*/m,Qbv=/^\s*(initial)|(inherit)\s*$/,ebx=/\s*!important/,ZGf=function(){this._map={}};
ZGf.prototype.set=function(F,q){F=F.trim();this._map[F]={properties:q,dependants:{}}};
ZGf.prototype.get=function(F){F=F.trim();return this._map[F]||null};
var RbJ=null,PN=function(){this._measureElement=this._currentElement=null;this._map=new ZGf};
_.l=PN.prototype;_.l.detectMixin=function(F){F=PCO.test(F)||OjE.test(F);PCO.lastIndex=0;OjE.lastIndex=0;return F};
_.l.transformTemplate=function(F,q){if(F._gatheredStyle===void 0){var t=[];for(var u=F.content.querySelectorAll("style"),J=0;J<u.length;J++){var g=u[J];if(g.hasAttribute("shady-unscoped")){if(!BmC){var Y=g.textContent;if(!Yyn.has(Y)){Yyn.add(Y);var Q=document.createElement("style");Q.setAttribute("shady-unscoped","");Q.textContent=Y;document.head.appendChild(Q)}g.parentNode.removeChild(g)}}else t.push(g.textContent),g.parentNode.removeChild(g)}(t=t.join("").trim())?(u=document.createElement("style"),
u.textContent=t,F.content.insertBefore(u,F.content.firstChild),t=u):t=null;F._gatheredStyle=t}return(F=F._gatheredStyle)?this.JSC$11255_transformStyle(F,q):null};
_.l.JSC$11255_transformStyle=function(F,q){q=q===void 0?"":q;var t=iRy(F);this.transformRules(t,q);F.textContent=wk3(t);return t};
_.l.transformCustomStyle=function(F){var q=this,t=iRy(F);EVt(t,function(u){u.selector===":root"&&(u.selector="html");q.transformRule(u)});
F.textContent=wk3(t);return t};
_.l.transformRules=function(F,q){var t=this;this._currentElement=q;EVt(F,function(u){t.transformRule(u)});
this._currentElement=null};
_.l.transformRule=function(F){F.cssText=rnv(this,F.parsedCssText,F);F.selector===":root"&&(F.selector=":host > *")};
var rnv=function(F,q,t){q=q.replace(OjE,function(u,J,g,Y){return F._produceCssProperties(u,J,g,Y,t)});
return F._consumeCssProperties(q,t)};
_.l=PN.prototype;_.l._getInitialValueForProperty=function(F){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(F)};
_.l._fallbacksFromPreviousRules=function(F){for(var q=this,t=F;t.parent;)t=t.parent;var u={},J=!1;EVt(t,function(g){(J=J||g===F)||g.selector===F.selector&&Object.assign(u,q._cssTextToMap(g.parsedCssText))});
return u};
_.l._consumeCssProperties=function(F,q){for(var t;t=PCO.exec(F);){var u=t[0],J=t[1];t=t.index;var g=t+u.indexOf("@apply"),Y=t+u.length;u=F.slice(0,g);F=F.slice(Y);g=q?this._fallbacksFromPreviousRules(q):{};Object.assign(g,this._cssTextToMap(u));J=this._atApplyToCssProperties(J,g);F=u+J+F;PCO.lastIndex=t+J.length}return F};
_.l._atApplyToCssProperties=function(F,q){F=F.replace(pxn,"");var t=[],u=this._map.get(F);u||(this._map.set(F,{}),u=this._map.get(F));if(u){this._currentElement&&(u.dependants[this._currentElement]=!0);var J,g=u.properties;for(J in g){var Y=q&&q[J];u=[J,": var(",F,"_-_",J];Y&&u.push(",",Y.replace(ebx,""));u.push(")");ebx.test(g[J])&&u.push(" !important");t.push(u.join(""))}}return t.join("; ")};
_.l._replaceInitialOrInherit=function(F,q){var t=Qbv.exec(q);t&&(q=t[1]?this._getInitialValueForProperty(F):"apply-shim-inherit");return q};
_.l._cssTextToMap=function(F,q){q=q===void 0?!1:q;F=F.split(";");for(var t,u,J={},g=0;g<F.length;g++)if(t=F[g])u=t.split(":"),u.length>1&&(t=u[0].trim(),u=u.slice(1).join(":"),q&&(u=this._replaceInitialOrInherit(t,u)),J[t]=u);return J};
_.l._invalidateMixinEntry=function(F){if(RbJ)for(var q in F.dependants)q!==this._currentElement&&RbJ(q)};
_.l._produceCssProperties=function(F,q,t,u,J){var g=this;t&&zKt(t,function(T,P){P&&g._map.get(P)&&(u="@apply "+P+";")});
if(!u)return F;var Y=this._consumeCssProperties(""+u,J);J=F.slice(0,F.indexOf("--"));var Q=Y=this._cssTextToMap(Y,!0),e=this._map.get(q),r=e&&e.properties;r?Q=Object.assign(Object.create(r),Y):this._map.set(q,Q);var N=[],w,k=!1;for(w in Q){var z=Y[w];z===void 0&&(z="initial");!r||w in r||(k=!0);N.push(q+"_-_"+w+": "+z)}k&&this._invalidateMixinEntry(e);e&&(e.properties=Q);t&&(J=F+";"+J);return J+N.join("; ")+";"};
PN.prototype.detectMixin=PN.prototype.detectMixin;PN.prototype.transformStyle=PN.prototype.JSC$11255_transformStyle;PN.prototype.transformCustomStyle=PN.prototype.transformCustomStyle;PN.prototype.transformRules=PN.prototype.transformRules;PN.prototype.transformRule=PN.prototype.transformRule;PN.prototype.transformTemplate=PN.prototype.transformTemplate;PN.prototype._separator="_-_";Object.defineProperty(PN.prototype,"invalidCallback",{get:function(){return RbJ},
set:function(F){RbJ=F}});var xZ=new PN,Na1=function(){this.customStyleInterface=null;xZ.invalidCallback=eKo},AM=function(F){!F.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(F.customStyleInterface=window.ShadyCSS.CustomStyleInterface,F.customStyleInterface.transformCallback=function(q){xZ.transformCustomStyle(q)},F.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){F.customStyleInterface.enqueued&&F.flushCustomStyles()})})};
_.l=Na1.prototype;_.l.prepareTemplate=function(F,q){AM(this);oVP(F)===""&&(Q8u[q]=F,q=xZ.transformTemplate(F,q),F._styleAst=q)};
_.l.flushCustomStyles=function(){AM(this);if(this.customStyleInterface){var F=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var q=0;q<F.length;q++){var t=this.customStyleInterface.getStyleForCustomStyle(F[q]);t&&xZ.transformCustomStyle(t)}this.customStyleInterface.enqueued=!1}}};
_.l.styleSubtree=function(F,q){AM(this);q&&CZq(F,q);if(F.shadowRoot)for(this.styleElement(F),F=F.shadowRoot.children||F.shadowRoot.childNodes,q=0;q<F.length;q++)this.styleSubtree(F[q]);else for(F=F.children||F.childNodes,q=0;q<F.length;q++)this.styleSubtree(F[q])};
_.l.styleElement=function(F){AM(this);var q=F.localName,t;q?q.indexOf("-")>-1?t=q:t=F.getAttribute&&F.getAttribute("is")||"":t=F.is;q=Q8u[t];if(!(q&&oVP(q)!==""||!q||ZRu(q))){if(ZRu(q)||q._applyShimValidatingVersion!==q._applyShimNextVersion)this.prepareTemplate(q,t),r$u(q);if(F=F.shadowRoot)if(F=F.querySelector("style"))F.__cssRules=q._styleAst,F.textContent=wk3(q._styleAst)}};
_.l.styleDocument=function(F){AM(this);this.styleSubtree(document.body,F)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var vN=new Na1,wxf=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(F,q){vN.flushCustomStyles();vN.prepareTemplate(F,q)},
prepareTemplateStyles:function(F,q,t){window.ShadyCSS.prepareTemplate(F,q,t)},
prepareTemplateDom:function(){},
styleSubtree:function(F,q){vN.flushCustomStyles();vN.styleSubtree(F,q)},
styleElement:function(F){vN.flushCustomStyles();vN.styleElement(F)},
styleDocument:function(F){vN.flushCustomStyles();vN.styleDocument(F)},
getComputedStyleValue:function(F,q){return dFC(F,q)},
flushCustomStyles:function(){vN.flushCustomStyles()},
nativeCss:N1t,nativeShadow:BmC,cssBuild:u7,disableRuntime:vvE};wxf&&(window.ShadyCSS.CustomStyleInterface=wxf)}window.ShadyCSS.ApplyShim=xZ;var iGz;iGz=window.ShadyCSS;_.Iz=YZ(function(F){F=dpz(eZ(F));var q=ove?F:lne(F),t=Xxe(q),u={x:"pan-x",y:"pan-y",none:"none",all:"auto"};F=function(){return q.call(this)||this};
_.M(F,q);F.prototype.created=function(){};
F.prototype.__attributeReaction=function(J,g,Y){(this.__dataAttributes&&this.__dataAttributes[J]||J==="disable-upgrade")&&this.attributeChangedCallback(J,g,Y,null)};
F.prototype.setAttribute=function(J,g){if(flz&&!this._legacyForceObservedAttributes){var Y=this.getAttribute(J);q.prototype.setAttribute.call(this,J,g);this.__attributeReaction(J,Y,String(g))}else q.prototype.setAttribute.call(this,J,g)};
F.prototype.removeAttribute=function(J){if(flz&&!this._legacyForceObservedAttributes){var g=this.getAttribute(J);q.prototype.removeAttribute.call(this,J);this.__attributeReaction(J,g,null)}else q.prototype.removeAttribute.call(this,J)};
F.prototype._enableProperties=function(){this.__isUpgradeDisabled||q.prototype._enableProperties.call(this)};
F.prototype._canApplyPropertyDefault=function(J){return q.prototype._canApplyPropertyDefault.call(this,J)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(J))};
F.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(q.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
F.prototype.attached=function(){};
F.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(q.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
F.prototype.detached=function(){};
F.prototype.attributeChangedCallback=function(J,g,Y,Q){g!==Y&&(J=="disable-upgrade"?this.__isUpgradeDisabled&&Y==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.nW)(this).isConnected&&this.connectedCallback()):(q.prototype.attributeChangedCallback.call(this,J,g,Y,Q),this.attributeChanged(J,g,Y)))};
F.prototype.attributeChanged=function(){};
F.prototype._initializeProperties=function(){if(UT&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var J=Object.getPrototypeOf(this);J.hasOwnProperty("__hasRegisterFinished")||(this._registered(),J.__hasRegisterFinished=!0);q.prototype._initializeProperties.call(this);this.root=this;this.created();flz&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
F.prototype._takeAttributes=function(){for(var J=this.attributes,g=0,Y=J.length;g<Y;g++){var Q=J[g];this.__attributeReaction(Q.name,null,Q.value)}};
F.prototype._registered=function(){};
F.prototype.ready=function(){this._ensureAttributes();q.prototype.ready.call(this)};
F.prototype._ensureAttributes=function(){};
F.prototype._applyListeners=function(){};
F.prototype.serialize=function(J){return this._serializeValue(J)};
F.prototype.deserialize=function(J,g){return this._deserializeValue(J,g)};
F.prototype.reflectPropertyToAttribute=function(J,g,Y){this._propertyToAttribute(J,g,Y)};
F.prototype.serializeValueToAttribute=function(J,g,Y){this._valueToNodeAttribute(Y||this,J,g)};
F.prototype.extend=function(J,g){if(!J||!g)return J||g;for(var Y=Object.getOwnPropertyNames(g),Q=0,e=void 0;Q<Y.length&&(e=Y[Q]);Q++){var r=Object.getOwnPropertyDescriptor(g,e);r&&Object.defineProperty(J,e,r)}return J};
F.prototype.mixin=function(J,g){for(var Y in g)J[Y]=g[Y];return J};
F.prototype.chainObject=function(J,g){J&&g&&J!==g&&(J.__proto__=g);return J};
F.prototype.instanceTemplate=function(J){J=this.constructor._contentForTemplate(J);return document.importNode(J,!0)};
F.prototype.fire=function(J,g,Y){Y=Y||{};g=g===null||g===void 0?{}:g;J=new Event(J,{bubbles:Y.bubbles===void 0?!0:Y.bubbles,cancelable:!!Y.cancelable,composed:Y.composed===void 0?!0:Y.composed});J.detail=g;(0,_.nW)(Y.node||this).dispatchEvent(J);return J};
F.prototype.listen=function(J,g,Y){J=J||this;var Q=this.__boundListeners||(this.__boundListeners=new WeakMap),e=Q.get(J);e||(e={},Q.set(J,e));Q=g+Y;e[Q]||(e[Q]=this._addMethodEventListenerToNode(J,g,Y,this))};
F.prototype.unlisten=function(J,g,Y){J=J||this;var Q=this.__boundListeners&&this.__boundListeners.get(J);Y=g+Y;var e=Q&&Q[Y];e&&(this._removeEventListenerFromNode(J,g,e),Q[Y]=null)};
F.prototype.setScrollDirection=function(J,g){_.CW(g||this,u[J]||"auto")};
F.prototype.$$=function(J){return this.root.querySelector(J)};
F.prototype.distributeContent=function(){var J=_.xz(this);window.ShadyDOM&&J.shadowRoot&&ShadyDOM.flush()};
F.prototype.getEffectiveChildNodes=function(){return _.xz(this).getEffectiveChildNodes()};
F.prototype.queryDistributedElements=function(J){return _.xz(this).queryDistributedElements(J)};
F.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(J){return J.nodeType===Node.ELEMENT_NODE})};
F.prototype.getEffectiveTextContent=function(){for(var J=this.getEffectiveChildNodes(),g=[],Y=0,Q;Q=J[Y];Y++)Q.nodeType!==Node.COMMENT_NODE&&g.push(Q.textContent);return g.join("")};
F.prototype.queryEffectiveChildren=function(J){return(J=this.queryDistributedElements(J))&&J[0]};
F.prototype.queryAllEffectiveChildren=function(J){return this.queryDistributedElements(J)};
F.prototype.getContentChildNodes=function(J){return(J=this.root.querySelector(J||"slot"))?_.xz(J).getDistributedNodes():[]};
F.prototype.getContentChildren=function(J){return this.getContentChildNodes(J).filter(function(g){return g.nodeType===Node.ELEMENT_NODE})};
F.prototype.isLightDescendant=function(J){return this!==J&&(0,_.nW)(this).contains(J)&&(0,_.nW)(this).getRootNode()===(0,_.nW)(J).getRootNode()};
F.prototype.isLocalDescendant=function(J){return this.root===(0,_.nW)(J).getRootNode()};
F.prototype.scopeSubtree=function(J,g){return af3(J,g===void 0?!1:g)};
F.prototype.getComputedStyleValue=function(J){return iGz.getComputedStyleValue(this,J)};
F.prototype.debounce=function(J,g,Y){this._debouncers=this._debouncers||{};return this._debouncers[J]=_.Eu(this._debouncers[J],Y>0?_.XH.after(Y):dZ,g.bind(this))};
F.prototype.isDebouncerActive=function(J){this._debouncers=this._debouncers||{};J=this._debouncers[J];return!(!J||!J.isActive())};
F.prototype.flushDebouncer=function(J){this._debouncers=this._debouncers||{};(J=this._debouncers[J])&&J.flush()};
F.prototype.cancelDebouncer=function(J){this._debouncers=this._debouncers||{};(J=this._debouncers[J])&&J.cancel()};
F.prototype.async=function(J,g){return g>0?_.XH.run(J.bind(this),g):~dZ.run(J.bind(this))};
F.prototype.cancelAsync=function(J){J<0?dZ.cancel(~J):_.XH.cancel(J)};
F.prototype.create=function(J,g){J=document.createElement(J);if(g)if(J.setProperties)J.setProperties(g);else for(var Y in g)J[Y]=g[Y];return J};
F.prototype.elementMatches=function(J,g){return jYw(g||this,J)};
F.prototype.toggleAttribute=function(J,g){var Y=this;arguments.length===3&&(Y=arguments[2]);arguments.length==1&&(g=!Y.hasAttribute(J));if(g)return(0,_.nW)(Y).setAttribute(J,""),!0;(0,_.nW)(Y).removeAttribute(J);return!1};
F.prototype.toggleClass=function(J,g,Y){Y=Y||this;arguments.length==1&&(g=!Y.classList.contains(J));g?Y.classList.add(J):Y.classList.remove(J)};
F.prototype.transform=function(J,g){g=g||this;g.style.webkitTransform=J;g.style.transform=J};
F.prototype.translate3d=function(J,g,Y,Q){this.transform("translate3d("+J+","+g+","+Y+")",Q||this)};
F.prototype.arrayDelete=function(J,g){if(Array.isArray(J)){if(g=J.indexOf(g),g>=0)return J.splice(g,1)}else if(g=ET(this,J).indexOf(g),g>=0)return this.splice(J,g,1);return null};
F.prototype._logger=function(J,g){Array.isArray(g)&&g.length===1&&Array.isArray(g[0])&&(g=g[0]);switch(J){case "log":case "warn":case "error":console[J].apply(console,_.mZ(g))}};
F.prototype._log=function(){this._logger("log",_.US.apply(0,arguments))};
F.prototype._warn=function(){this._logger("warn",_.US.apply(0,arguments))};
F.prototype._error=function(){this._logger("error",_.US.apply(0,arguments))};
F.prototype._logf=function(J){return["[%s::%s]",this.is,J].concat(_.mZ(_.US.apply(1,arguments)))};
_.JJ.Object.defineProperties(F.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var J=(0,_.nW)(this).getRootNode();return J instanceof DocumentFragment?J.host:J}}});
_.JJ.Object.defineProperties(F,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return flz&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],fMv(this.prototype)),this.__observedAttributes):t.call(this).concat("disable-upgrade")}}});
F.prototype.is="";return F});Polymer.FlattenedNodesObserver=LVL;Polymer.DomApi=tTv;Polymer.EventApi=WN;Polymer.dom=_.xz;Polymer.dom.matchesSelector=jYw;Polymer.dom.flush=_.Ts;Polymer.dom.addDebouncer=_.zs;Polymer.DirMixin=lne;Polymer.RenderStatus={beforeNextRender:_.Bd3,afterNextRender:_.tJ,flush:function(){for(;Sao.length||qd.length;)UJA(Sao),UJA(qd);F5=!1}};Polymer.LegacyElementMixin=_.Iz;var krf;krf=nV._mutablePropertyChange;var Ehd={properties:{mutableData:Boolean},_shouldPropertyChange:function(F,q,t){return krf(this,F,q,t,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(F,q,t){return krf(this,F,q,t,!0)}};
Polymer.OptionalMutableDataBehavior=Ehd;var nVf={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},WRu={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Dt_=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},WRu),zbx=(0,_.Iz)(HTMLElement),NpC=function(F,q){F||console.warn("Polymer.Class requires `info` argument");q=q?q(zbx):zbx;q=ORW(F,q,F.behaviors);q.is=q.prototype.is=
F.is;return q};Polymer.Class=NpC;Polymer.mixinBehaviors=function(F,q){return ORW({},(0,_.Iz)(q),F)};
Polymer.GenerateClassFromInfo=ORW;_.Hh=function(F){var q=typeof F==="function"?F:_.Hh.Class(F);F._legacyForceObservedAttributes&&(q.prototype._legacyForceObservedAttributes=F._legacyForceObservedAttributes);customElements.define(q.is,q);return q};
_.Hh.Class=NpC;Polymer._polymerFn=_.Hh;var oh1=window.onLegacyPolymerFunctionDefinedCallback;oh1&&oh1();var iyA={templatize:function(F,q){this._templatizerTemplate=F;this.ctor=KW(F,this,{mutableData:!!q,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(F){return new this.ctor(F)},
modelForElement:function(F){return b43(this._templatizerTemplate,F)}};Polymer.Templatizer=iyA;_.HN=(0,_.Iz)(HTMLElement).prototype;Polymer.Base=_.HN;var xto=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.se=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.M(_.se,PolymerFakeBaseClass);var gQ=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.M(gQ,PolymerFakeBaseClass);var A$A=Symbol("Nd"),CXq=[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 nhC=nhC||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},MTJ;(function(F){function q(S,K,h){var c=a.get(S);if(!c){if(!h)return;c=new H;a.set(S,c)}S=c.get(K);if(!S){if(!h)return;S=new H;c.set(K,S)}return S}
function t(S,K,h){if(u(S,K,h))return!0;K=k(K);return K!==null?t(S,K,h):!1}
function u(S,K,h){K=q(K,h,!1);return K===void 0?!1:!!K.has(S)}
function J(S,K,h){if(u(S,K,h))return g(S,K,h);K=k(K);if(K!==null)return J(S,K,h)}
function g(S,K,h){K=q(K,h,!1);if(K!==void 0)return K.get(S)}
function Y(S,K){var h=Q(S,K);S=k(S);if(S===null)return h;var c=Y(S,K);if(c.length<=0)return h;if(h.length<=0)return c;K=new d;S=[];h=_.X(h);for(var rf=h.next();!rf.done;rf=h.next())rf=rf.value,K.has(rf)||(K.add(rf),S.push(rf));h=_.X(c);for(c=h.next();!c.done;c=h.next())c=c.value,K.has(c)||(K.add(c),S.push(c));return S}
function Q(S,K){S=q(S,K,!1);var h=[];S&&S.forEach(function(c,rf){return h.push(rf)});
return h}
function e(S){return S===void 0}
function r(S){return typeof S==="object"?S!==null:typeof S==="function"}
function N(S){return typeof S==="function"}
function w(S){return typeof S==="symbol"?S:String(S)}
function k(S){var K=Object.getPrototypeOf(S);if(typeof S!=="function"||S===v||K!==v)return K;var h=Object.getPrototypeOf(S.prototype);if(h==null||h===Object.prototype)return K;h=h.constructor;return typeof h!=="function"||h===S?K:h}
function z(){function S(){this._keys=[];this._values=[];this._cache=K}
var K={};S.prototype={get size(){return this._keys.length},has:function(h){return h===this._cache?!0:this._find(h)>=0?(this._cache=h,!0):!1},
get:function(h){var c=this._find(h);if(c>=0)return this._cache=h,this._values[c]},
set:function(h,c){this.delete(h);this._keys.push(h);this._values.push(c);this._cache=h;return this},
delete:function(h){h=this._find(h);return h>=0?(this._keys.splice(h,1),this._values.splice(h,1),this._cache=K,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=K},
forEach:function(h){for(var c=this.size,rf=0;rf<c;++rf){var Zv=this._keys[rf],kP=this._values[rf];this._cache=Zv;h.call(this,kP,Zv,this)}},
_find:function(h){for(var c=this._keys,rf=c.length,Zv=0;Zv<rf;++Zv)if(c[Zv]===h)return Zv;return-1}};
return S}
function T(){function S(){this._map=new H}
S.prototype={get size(){return this._map.length},has:function(K){return this._map.has(K)},
add:function(K){this._map.set(K,K);return this},
delete:function(K){return this._map.delete(K)},
clear:function(){this._map.clear()},
forEach:function(K,h){this._map.forEach(K,h)}};
return S}
function P(){function S(){this._key=h()}
function K(o_,df){for(var m$=0;m$<df;++m$)o_[m$]=Math.random()*255|0}
function h(){do{if(rf)var o_=rf.randomBytes(16);else typeof Uint8Array==="function"?(o_=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(o_):K(o_,16)):(o_=Array(16),K(o_,16));o_[6]=o_[6]&79|64;o_[8]=o_[8]&191|128;for(var df="",m$=0;m$<16;++m$){var gx=o_[m$];if(m$===4||m$===6||m$===8)df+="-";gx<16&&(df+="0");df+=gx.toString(16).toLowerCase()}o_="@@WeakMap@@"+df}while(Zv.call(kP,o_));kP[o_]=!0;return o_}
function c(o_,df){if(!Zv.call(o_,n3)){if(!df)return;Object.defineProperty(o_,n3,{value:Object.create(null)})}return o_[n3]}
var rf=typeof global!=="undefined"&&typeof nhC==="object"&&typeof require==="function"&&require("crypto"),Zv=Object.prototype.hasOwnProperty,kP={},n3=h();S.prototype={has:function(o_){return(o_=c(o_,!1))?this._key in o_:!1},
get:function(o_){if(o_=c(o_,!1))return o_[this._key]},
set:function(o_,df){c(o_,!0)[this._key]=df;return this},
delete:function(o_){return(o_=c(o_,!1))&&this._key in o_?delete o_[this._key]:!1},
clear:function(){this._key=h()}};
return S}
var v=Object.getPrototypeOf(Function),H=typeof Map==="function"?Map:z(),d=typeof Set==="function"?Set:T(),a=new (typeof WeakMap==="function"?WeakMap:P());F.decorate=function(S,K,h,c){if(e(c)){if(e(h)){if(!Array.isArray(S))throw new TypeError;if(!N(K))throw new TypeError;for(h=S.length-1;h>=0;--h)if(c=(0,S[h])(K),!e(c)){if(!N(c))throw new TypeError;K=c}return K}if(!Array.isArray(S))throw new TypeError;if(!r(K))throw new TypeError;h=w(h);for(c=S.length-1;c>=0;--c)(0,S[c])(K,h)}else{if(Array.isArray(S))if(r(K)){if(e(h))throw new TypeError;
if(!r(c))throw new TypeError;}else throw new TypeError;else throw new TypeError;h=w(h);for(var rf=S.length-1;rf>=0;--rf){var Zv=(0,S[rf])(K,h,c);if(!e(Zv)){if(!r(Zv))throw new TypeError;c=Zv}}return c}};
F.metadata=function(S,K){return function(h,c){if(e(c)){if(!N(h))throw new TypeError;q(h,void 0,!0).set(S,K)}else{if(!r(h))throw new TypeError;c=w(c);q(h,c,!0).set(S,K)}}};
F.defineMetadata=function(S,K){var h;if(r(K))e(h)||(h=w(h));else throw new TypeError;q(K,h,!0).set("parameters",S)};
F.hasMetadata=function(S,K,h){if(r(K))e(h)||(h=w(h));else throw new TypeError;return t(S,K,h)};
F.hasOwnMetadata=function(S,K,h){if(r(K))e(h)||(h=w(h));else throw new TypeError;return u(S,K,h)};
F.getMetadata=function(S,K,h){if(r(K))e(h)||(h=w(h));else throw new TypeError;return J(S,K,h)};
F.getOwnMetadata=function(S,K,h){if(r(K))e(h)||(h=w(h));else throw new TypeError;return g(S,K,h)};
F.getMetadataKeys=function(S,K){if(r(S))e(K)||(K=w(K));else throw new TypeError;return Y(S,K)};
F.getOwnMetadataKeys=function(S,K){if(r(S))e(K)||(K=w(K));else throw new TypeError;return Q(S,K)};
F.deleteMetadata=function(S,K,h){if(r(K))e(h)||(h=w(h));else throw new TypeError;var c=q(K,h,!1);if(!e(c)){if(!c.delete(S))return!1;if(c.size>0)return!0;S=a.get(K);S.delete(h);if(S.size>0)return!0;a.delete(K);return!0}};
(function(S){if(typeof S.Reflect!=="undefined"){if(S.Reflect!==F)for(var K in F)S.Reflect[K]=F[K]}else S.Reflect=F})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(MTJ||(MTJ={}));var qlq=self;var TaJ=[0,_.f4,_.ci,_.f4];var Grw=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Grw,_.le);var D1e=_.w$(Grw,[0,_.uFP,_.t$,TaJ,_.ci,_.J$]);_.gd(_.l7,_.OP);_.l=_.l7.prototype;_.l.start=function(){this.stop();this.usingListeners_=!1;var F=WBz(this),q=OGJ(this);F&&!q&&this.JSC$11298_win_.mozRequestAnimationFrame?(this.JSC$11298_id_=_.Ic(this.JSC$11298_win_,"MozBeforePaint",this.callback_),this.JSC$11298_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11298_id_=F&&q?F.call(this.JSC$11298_win_,this.callback_):this.JSC$11298_win_.setTimeout(NxJ(this.callback_),20)};
_.l.stop=function(){if(this.isActive()){var F=WBz(this),q=OGJ(this);F&&!q&&this.JSC$11298_win_.mozRequestAnimationFrame?xb(this.JSC$11298_id_):F&&q?q.call(this.JSC$11298_win_,this.JSC$11298_id_):this.JSC$11298_win_.clearTimeout(this.JSC$11298_id_)}this.JSC$11298_id_=null};
_.l.fire=function(){this.stop();this.JSC$11300_doAction_()};
_.l.isActive=function(){return this.JSC$11298_id_!=null};
_.l.JSC$11300_doAction_=function(){this.usingListeners_&&this.JSC$11298_id_&&xb(this.JSC$11298_id_);this.JSC$11298_id_=null;this.JSC$11298_listener_.call(this.handler_,_.sa())};
_.l.disposeInternal=function(){this.stop();_.l7.superClass_.disposeInternal.call(this)};
var WBz=function(F){F=F.JSC$11298_win_;return F.requestAnimationFrame||F.webkitRequestAnimationFrame||F.mozRequestAnimationFrame||F.oRequestAnimationFrame||F.msRequestAnimationFrame||null},OGJ=function(F){F=F.JSC$11298_win_;
return F.cancelAnimationFrame||F.cancelRequestAnimationFrame||F.webkitCancelRequestAnimationFrame||F.mozCancelRequestAnimationFrame||F.oCancelRequestAnimationFrame||F.msCancelRequestAnimationFrame||null};_.LH=function(F,q,t){_.OP.call(this);this.JSC$11301_listener_=t!=null?F.bind(t):F;this.JSC$11301_interval_=q;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11301_timer_=null};
_.M(_.LH,_.OP);_.l=_.LH.prototype;_.l.fire=function(F){this.args_=arguments;this.JSC$11301_timer_||this.pauseCount_?this.shouldFire_=!0:P1J(this)};
_.l.stop=function(){this.JSC$11301_timer_&&(_.uu.clearTimeout(this.JSC$11301_timer_),this.JSC$11301_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.l.pause=function(){this.pauseCount_++};
_.l.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11301_timer_||(this.shouldFire_=!1,P1J(this))};
_.l.disposeInternal=function(){_.OP.prototype.disposeInternal.call(this);this.stop()};
var P1J=function(F){F.JSC$11301_timer_=mX(function(){F.JSC$11301_timer_=null;F.shouldFire_&&!F.pauseCount_&&(F.shouldFire_=!1,P1J(F))},F.JSC$11301_interval_);
var q=F.args_;F.args_=null;F.JSC$11301_listener_.apply(null,q)};var x1C=function(F,q){this.childIterator_=F[_.uu.Symbol.iterator]();this.mapFn_=q};
x1C.prototype[Symbol.iterator]=function(){return this};
x1C.prototype.next=function(){var F=this.childIterator_.next();return{value:F.done?void 0:this.mapFn_.call(void 0,F.value),done:F.done}};
var Anz=function(F,q){return new x1C(F,q)};var vh1={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 vkM=function(F){var q=Inj(F);if(!q)throw Error("Rd`"+F);return q},Inj=function(F){var q={};
F=String(F);var t=F.charAt(0)=="#"?F:"#"+F;if(HGe.test(t))return q.hex=DOA(t),q.type="hex",q;t=$uq(F);return t.length?(q.hex=iNu(t[0],t[1],t[2]),q.type="rgb",q):vh1&&(F=vh1[F.toLowerCase()])?(q.hex=F,q.type="named",q):null},m1C=/#(.)(.)(.)/,DOA=function(F){if(!HGe.test(F))throw Error("Td`"+F);
F.length==4&&(F=F.replace(m1C,"#$1$1$2$2$3$3"));return F.toLowerCase()},I8C=function(F){F=DOA(F);
F=parseInt(F.slice(1),16);return[F>>16,F>>8&255,F&255]},iNu=function(F,q,t){F=Number(F);
q=Number(q);t=Number(t);if(F!=(F&255)||q!=(q&255)||t!=(t&255))throw Error("Ud`"+F+"`"+q+"`"+t);q=F<<16|q<<8|t;return F<16?"#"+(16777216|q).toString(16).slice(1):"#"+q.toString(16)},HGe=/^#(?:[0-9a-f]{3}){1,2}$/i,$1j=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,$uq=function(F){var q=F.match($1j);
if(q){F=Number(q[1]);var t=Number(q[2]);q=Number(q[3]);if(F>=0&&F<=255&&t>=0&&t<=255&&q>=0&&q<=255)return[F,t,q]}return[]};var bGj={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},Eo=bGj;Eo=bGj;var RGW,ynx,C1f;RGW=function(F,q){switch(q){case 1:return F%4!=0||F%100==0&&F%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
ynx=function(F,q,t,u,J){F=new Date(F,q,t);J=J||0;return F.valueOf()+(((u!==void 0?u:3)-J+7)%7-((F.getDay()+6)%7-J+7)%7)*864E5};
_.mY=function(F,q,t){typeof F==="number"?(this.date=C1f(F,q||0,t||1),d1O(this,t||1)):_.ho(F)?(this.date=C1f(F.getFullYear(),F.getMonth(),F.getDate()),d1O(this,F.getDate())):(this.date=new Date(_.sa()),F=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),d1O(this,F))};
C1f=function(F,q,t){q=new Date(F,q,t);F>=0&&F<100&&q.setFullYear(q.getFullYear()-1900);return q};
_.l=_.mY.prototype;_.l.firstDayOfWeek_=Eo.FIRSTDAYOFWEEK;_.l.firstWeekCutOffDay_=Eo.FIRSTWEEKCUTOFFDAY;_.l.clone=function(){var F=new _.mY(this.date);F.firstDayOfWeek_=this.firstDayOfWeek_;F.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return F};
_.l.getFullYear=function(){return this.date.getFullYear()};
_.l.getYear=function(){return this.getFullYear()};
_.l.getMonth=function(){return this.date.getMonth()};
_.l.getDate=function(){return this.date.getDate()};
_.l.getTime=function(){return this.date.getTime()};
_.l.getDay=function(){return this.date.getDay()};
_.l.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.l.getUTCMonth=function(){return this.date.getUTCMonth()};
_.l.getUTCDate=function(){return this.date.getUTCDate()};
_.l.getUTCDay=function(){return this.date.getDay()};
_.l.getUTCHours=function(){return this.date.getUTCHours()};
_.l.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.l.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.l.set=function(F){this.date=new Date(F.getFullYear(),F.getMonth(),F.getDate())};
_.l.setFullYear=function(F){this.date.setFullYear(F)};
_.l.setYear=function(F){this.setFullYear(F)};
_.l.setMonth=function(F){this.date.setMonth(F)};
_.l.setDate=function(F){this.date.setDate(F)};
_.l.setTime=function(F){this.date.setTime(F)};
_.l.setUTCFullYear=function(F){this.date.setUTCFullYear(F)};
_.l.setUTCMonth=function(F){this.date.setUTCMonth(F)};
_.l.setUTCDate=function(F){this.date.setUTCDate(F)};
_.l.add=function(F){if(F.years||F.months){var q=this.getMonth()+F.months+F.years*12,t=this.getYear()+Math.floor(q/12);q%=12;q<0&&(q+=12);var u=Math.min(RGW(t,q),this.getDate());this.setDate(1);this.setFullYear(t);this.setMonth(q);this.setDate(u)}F.days&&(t=this.getYear(),q=t>=0&&t<=99?-1900:0,F=new Date((new Date(t,this.getMonth(),this.getDate(),12)).getTime()+F.days*864E5),this.setDate(1),this.setFullYear(F.getFullYear()+q),this.setMonth(F.getMonth()),this.setDate(F.getDate()),d1O(this,F.getDate()))};
_.l.JSC$11314_toIsoString=function(F){var q=this.getFullYear(),t=q<0?"-":q>=1E4?"+":"";return[t+_.Q2(Math.abs(q),t?6:4),_.Q2(this.getMonth()+1,2),_.Q2(this.getDate(),2)].join(F?"-":"")};
_.l.equals=function(F){return!(!F||this.getYear()!=F.getYear()||this.getMonth()!=F.getMonth()||this.getDate()!=F.getDate())};
_.l.toString=function(){return this.JSC$11314_toIsoString()};
var d1O=function(F,q){F.getDate()!=q&&F.date.setUTCHours(F.date.getUTCHours()+(F.getDate()<q?1:-1))};
_.mY.prototype.valueOf=function(){return this.date.valueOf()};var bm=function(F,q,t,u,J){this.reversed=!!q;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!t;F&&$Z(this,F,u);this.depth=J!=void 0?J:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.gd(bm,Ng);var $Z=function(F,q,t,u){if(F.node=q)F.tagType=typeof t==="number"?t:F.node.nodeType!=1?0:F.reversed?-1:1;typeof u==="number"&&(F.depth=u)};
_.l=bm.prototype;_.l.JSC$11329_copyFrom=function(F){this.node=F.node;this.tagType=F.tagType;this.depth=F.depth;this.reversed=F.reversed;this.constrained=F.constrained};
_.l.clone=function(){return new bm(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.l.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return wg;var F=this.node;var q=this.reversed?-1:1;if(this.tagType==q){var t=this.reversed?F.lastChild:F.firstChild;t?$Z(this,t):$Z(this,F,q*-1)}else(t=this.reversed?F.previousSibling:F.nextSibling)?$Z(this,t):$Z(this,F.parentNode,q*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(F=this.node)?il(F):wg};
_.l.equals=function(F){return F.node==this.node&&(!this.node||F.tagType==this.tagType)};
_.l.splice=function(F){var q=this.node,t=this.reversed?1:-1;this.tagType==t&&(this.tagType=t*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;bm.prototype.next.call(this);this.reversed=!this.reversed;t=_.VC(arguments[0])?arguments[0]:arguments;for(var u=t.length-1;u>=0;u--)_.CR(t[u],q);_.Mq(q)};var VTj=function(){},y3=function(F){for(var q=[],t=F.getTextRangeCount(),u=0;u<t;u++)q.push(F.getTextRange(u));
return q};
VTj.prototype.isReversed=function(){return!1};
VTj.prototype.getWindow=function(){return yp(_.Cs(this.JSC$11331_getStartNode()))};
var U1n=function(F,q){bm.call(this,F,q,!0)};
_.gd(U1n,bm);var CV=function(F,q,t,u,J){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!J;if(F){this.startNode_=F;this.startOffset_=q;this.endNode_=t;this.endOffset_=u;if(F.nodeType==1&&F.tagName!="BR")if(F=F.childNodes,q=F[q])this.startNode_=q,this.startOffset_=0;else{F.length&&(this.startNode_=_.xP(F));var g=!0}t.nodeType==1&&((this.endNode_=t.childNodes[u])?this.endOffset_=0:this.endNode_=t)}bm.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);g&&this.next()};
_.gd(CV,U1n);_.l=CV.prototype;_.l.JSC$11337_getStartNode=function(){return this.startNode_};
_.l.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)};
_.l.next=function(){return this.isLast()?wg:CV.superClass_.next.call(this)};
_.l.JSC$11329_copyFrom=function(F){this.startNode_=F.startNode_;this.endNode_=F.endNode_;this.startOffset_=F.startOffset_;this.endOffset_=F.endOffset_;this.isReversed_=F.isReversed_;CV.superClass_.JSC$11329_copyFrom.call(this,F)};
_.l.clone=function(){var F=new CV(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);F.JSC$11329_copyFrom(this);return F};var Syx=function(){};
Syx.prototype.__iterator__=function(){return new CV(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var d5=function(F){this.range_=F};
_.gd(d5,Syx);var hbz=function(F){var q=_.Cs(F).createRange();if(F.nodeType==3)q.setStart(F,0),q.setEnd(F,F.length);else if($V(F)||F.nodeType==3){for(var t,u=F;(t=u.firstChild)&&($V(t)||t.nodeType==3);)u=t;q.setStart(u,0);for(u=F;(t=u.lastChild)&&($V(t)||t.nodeType==3);)u=t;q.setEnd(u,u.nodeType==1?u.childNodes.length:u.length)}else t=F.parentNode,F=Array.prototype.indexOf.call(t.childNodes,F),q.setStart(t,F),q.setEnd(t,F+1);return q},KBd=function(F,q,t,u){var J=_.Cs(F).createRange();
J.setStart(F,q);J.setEnd(t,u);return J};
_.l=d5.prototype;_.l.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.l.getContainer=function(){return this.range_.commonAncestorContainer};
_.l.compareBrowserRangeEndpoints=function(F,q,t){return this.range_.compareBoundaryPoints(t==1?q==1?_.uu.Range.START_TO_START:_.uu.Range.START_TO_END:q==1?_.uu.Range.END_TO_START:_.uu.Range.END_TO_END,F)};
_.l.isCollapsed=function(){return this.range_.collapsed};
_.l.select=function(F){this.selectInternal(yp(_.Cs(this.range_.startContainer)).getSelection(),F)};
_.l.selectInternal=function(F){F.removeAllRanges();F.addRange(this.range_)};
_.l.insertNode=function(F,q){var t=this.range_.cloneRange();t.collapse(q);t.insertNode(F);t.detach();return F};
_.l.collapse=function(F){this.range_.collapse(F)};_.gd(X5,d5);X5.prototype.selectInternal=function(F,q){!q||this.isCollapsed()?X5.superClass_.selectInternal.call(this,F,q):(F.collapse(this.range_.endContainer,this.range_.endOffset),F.extend(this.range_.startContainer,this.range_.startOffset))};_.gd(Yz,d5);Yz.prototype.compareBrowserRangeEndpoints=function(F,q,t){return Yz.superClass_.compareBrowserRangeEndpoints.call(this,F,q,t)};
Yz.prototype.selectInternal=function(F,q){q?F.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):F.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Ban=function(F){return _.es?new Yz(F):_.QZ?new X5(F):new d5(F)};var V3=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},LBC;
_.gd(V3,VTj);LBC=function(F,q){var t=new V3;t.browserRangeWrapper_=F;t.isReversed_=!!q;return t};
_.fnz=function(F){F=_.es?new Yz(hbz(F)):_.QZ?new X5(hbz(F)):new d5(hbz(F));return LBC(F)};
_.Uu=function(F,q,t,u){var J=new V3;J.isReversed_=ann(F,q,t,u);if(_.F1(F)&&!$V(F)){var g=F.parentNode;q=Array.prototype.indexOf.call(g.childNodes,F);F=g}_.F1(t)&&!$V(t)&&(g=t.parentNode,u=Array.prototype.indexOf.call(g.childNodes,t),t=g);J.isReversed_?(J.startNode_=t,J.startOffset_=u,J.endNode_=F,J.endOffset_=q):(J.startNode_=F,J.startOffset_=q,J.endNode_=t,J.endOffset_=u);return J};
_.l=V3.prototype;_.l.clone=function(){var F=new V3;F.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();F.startNode_=this.startNode_;F.startOffset_=this.startOffset_;F.endNode_=this.endNode_;F.endOffset_=this.endOffset_;F.isReversed_=this.isReversed_;return F};
_.l.JSC$11331_getType=function(){return"text"};
_.l.getBrowserRangeObject=function(){return SZ(this).range_};
_.l.getTextRangeCount=function(){return 1};
_.l.getTextRange=function(){return this};
var SZ=function(F){var q;if(!(q=F.browserRangeWrapper_)){q=F.JSC$11331_getStartNode();var t=F.JSC$11331_getStartOffset(),u=F.JSC$11331_getEndNode(),J=F.JSC$11331_getEndOffset();q=_.es?new Yz(KBd(q,t,u,J)):_.QZ?new X5(KBd(q,t,u,J)):new d5(KBd(q,t,u,J));q=F.browserRangeWrapper_=q}return q};
_.l=V3.prototype;_.l.getContainer=function(){return SZ(this).getContainer()};
_.l.JSC$11331_getStartNode=function(){return this.startNode_||(this.startNode_=SZ(this).range_.startContainer)};
_.l.JSC$11331_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=SZ(this).range_.startOffset};
_.l.JSC$11331_getEndNode=function(){return this.endNode_||(this.endNode_=SZ(this).range_.endContainer)};
_.l.JSC$11331_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=SZ(this).range_.endOffset};
_.l.isReversed=function(){return this.isReversed_};
_.l.JSC$11331_containsRange=function(F,q){if(F.JSC$11331_getType()=="text"){var t=SZ(this);F=SZ(F);q=q&&!F.isCollapsed();F=F.range_;t=q?t.compareBrowserRangeEndpoints(F,0,1)>=0&&t.compareBrowserRangeEndpoints(F,1,0)<=0:t.compareBrowserRangeEndpoints(F,0,0)>=0&&t.compareBrowserRangeEndpoints(F,1,1)<=0}else t=!1;return t};
_.l.isCollapsed=function(){return SZ(this).isCollapsed()};
_.l.JSC$11331_getText=function(){return SZ(this).range_.toString()};
_.l.__iterator__=function(){return new CV(this.JSC$11331_getStartNode(),this.JSC$11331_getStartOffset(),this.JSC$11331_getEndNode(),this.JSC$11331_getEndOffset())};
_.l.select=function(){SZ(this).select(this.isReversed_)};
_.l.JSC$11331_removeContents=function(){var F=SZ(this).range_;F.extractContents();if(F.startContainer.hasChildNodes()&&(F=F.startContainer.childNodes[F.startOffset])){var q=F.previousSibling;R9e(F)==""&&_.Mq(F);q&&R9e(q)==""&&_.Mq(q)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.l.insertNode=function(F,q){F=SZ(this).insertNode(F,q);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return F};
_.l.collapse=function(F){F=this.isReversed()?!F:F;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(F);F?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var jbO=function(){};
_.gd(jbO,VTj);jbO.prototype.JSC$11331_containsRange=function(F,q){var t=y3(this);F=y3(F);return(q?ae:_.kuu)(F,function(u){return ae(t,function(J){return J.JSC$11331_containsRange(u,q)})})};
jbO.prototype.insertNode=function(F,q){q?_.y2(F,this.JSC$11331_getStartNode()):_.CR(F,this.JSC$11331_getEndNode());return F};var cnO,F6L=Wn().JSC$9319_document_.documentElement;cnO=F6L.requestFullscreen?"fullscreenchange":F6L.webkitRequestFullscreen?"webkitfullscreenchange":F6L.mozRequestFullScreen?"mozfullscreenchange":F6L.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var qBE=function(){var F=Wn().JSC$9319_document_;return!!(F.webkitIsFullScreen||F.mozFullScreen||F.msFullscreenElement||F.fullscreenElement)};var hM=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.gd(hM,jbO);_.l=hM.prototype;_.l.clone=function(){var F=new hM;F.browserRanges_=_.C3(this.browserRanges_);return F};
_.l.JSC$11331_getType=function(){return"mutli"};
_.l.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.l.getTextRangeCount=function(){return this.browserRanges_.length};
_.l.getTextRange=function(F){this.ranges_[F]||(this.ranges_[F]=LBC(Ban(this.browserRanges_[F])));return this.ranges_[F]};
_.l.getContainer=function(){if(!this.container_){for(var F=[],q=this.getTextRangeCount(),t=0;t<q;t++)F.push(this.getTextRange(t).getContainer());this.container_=lQL.apply(null,F)}return this.container_};
var KV=function(F){F.sortedRanges_||(F.sortedRanges_=y3(F),F.sortedRanges_.sort(function(q,t){var u=q.JSC$11331_getStartNode();q=q.JSC$11331_getStartOffset();var J=t.JSC$11331_getStartNode();t=t.JSC$11331_getStartOffset();return u==J&&q==t?0:ann(u,q,J,t)?1:-1}));
return F.sortedRanges_};
_.l=hM.prototype;_.l.JSC$11331_getStartNode=function(){return KV(this)[0].JSC$11331_getStartNode()};
_.l.JSC$11331_getStartOffset=function(){return KV(this)[0].JSC$11331_getStartOffset()};
_.l.JSC$11331_getEndNode=function(){return _.xP(KV(this)).JSC$11331_getEndNode()};
_.l.JSC$11331_getEndOffset=function(){return _.xP(KV(this)).JSC$11331_getEndOffset()};
_.l.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.l.JSC$11331_getText=function(){return y3(this).map(function(F){return F.JSC$11331_getText()}).join("")};
_.l.__iterator__=function(){return new BN(this)};
_.l.select=function(){var F=this.getWindow().getSelection();F.removeAllRanges();for(var q=this.getTextRangeCount(),t=0;t<q;t++)F.addRange(this.getTextRange(t).getBrowserRangeObject())};
_.l.JSC$11331_removeContents=function(){y3(this).forEach(function(F){F.JSC$11331_removeContents()})};
_.l.collapse=function(F){if(!this.isCollapsed()){var q=F?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;q.collapse(F);this.ranges_=[q];this.sortedRanges_=[q];this.browserRanges_=[q.getBrowserRangeObject()]}};
var BN=function(F){this.iterators_=null;this.currentIdx_=0;F&&(this.iterators_=KV(F).map(function(q){return _.ZWr(q)}));
bm.call(this,F?this.JSC$11337_getStartNode():null,!1,!0)};
_.gd(BN,U1n);_.l=BN.prototype;_.l.JSC$11337_getStartNode=function(){return this.iterators_[0].JSC$11337_getStartNode()};
_.l.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.l.next=function(){for(;this.currentIdx_<this.iterators_.length;){var F=this.iterators_[this.currentIdx_],q=F.next();if(q.done)this.currentIdx_++;else return $Z(this,F.node,F.tagType,F.depth),q}return wg};
_.l.JSC$11329_copyFrom=function(F){this.iterators_=_.C3(F.iterators_);BN.superClass_.JSC$11329_copyFrom.call(this,F)};
_.l.clone=function(){var F=new BN(null);F.JSC$11329_copyFrom(this);return F};var tp1,ann;_.rI=function(){var F=window.getSelection();return F&&tp1(F)};
tp1=function(F){var q=!1;if(F.createRange)try{var t=F.createRange()}catch(J){return null}else if(F.rangeCount){if(F.rangeCount>1){t=new hM;q=F.rangeCount;for(var u=0;u<q;u++)t.browserRanges_.push(F.getRangeAt(u));return t}t=F.getRangeAt(0);q=ann(F.anchorNode,F.anchorOffset,F.focusNode,F.focusOffset)}else return null;return LBC(Ban(t),q)};
_.LV=function(F,q){return _.Uu(F,q,F,q)};
_.fV=function(F,q,t,u){return _.Uu(F,q,t,u)};
ann=function(F,q,t,u){if(F==t)return u<q;var J;if(F.nodeType==1&&q)if(J=F.childNodes[q])F=J,q=0;else if(_.hG(F,t))return!0;if(t.nodeType==1&&u)if(J=t.childNodes[u])t=J,u=0;else if(_.hG(t,F))return!1;return(g7J(F,t)||q-u)>0};var az=function(){_.xD.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Pd)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Pd)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Pd)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Pd)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Pd)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Pd)(this.dispatchProgressEvent_,this)};
_.gd(az,_.xD);az.prototype.abort=function(){try{this.reader_.abort()}catch(F){throw new RFd(F,"aborting read");}};
az.prototype.getError=function(){return this.reader_.error&&new RFd(this.reader_.error,"reading file")};
az.prototype.dispatchProgressEvent_=function(F){this.dispatchEvent(new rfJ(F,this))};
az.prototype.disposeInternal=function(){az.superClass_.disposeInternal.call(this);delete this.reader_};
var JY1=function(F){var q=new az,t=uej(q);q.reader_.readAsArrayBuffer(F);return t},sEf=function(F){var q=new az,t=uej(q);
q.reader_.readAsDataURL(F);return t},uej=function(F){var q=new qV;
F.listen("loadend",_.MU(function(t,u){var J=u.reader_.result,g=u.getError();J==null||g?t.errback(g):t.callback(J);u.dispose()},q,F));
return q};var jZ=function(){_.xD.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11371_eventHandler_=new _.Qb(this);this.JSC$11371_isInitialized_=!1};
_.gd(jZ,_.xD);var gMJ=new _.Tw("d"),ljL=new _.Tw("beforedragstart"),Xhr=new _.Tw("dragstart"),YBn=new _.Tw("beforedragmove"),phe=new _.Tw("dragmove"),QEv=new _.Tw("beforedragend"),eie=new _.Tw("dragend"),Z1z=new _.Tw("e");jZ.prototype.isDragging=function(){return!!this.JSC$11371_dragger_};
var RiC=function(F,q){q.dlgGrowthDirection_=0;q.dlgDragHoverClass_=void 0;q.dlgDragPermission=0;F.dragLists_.push(q)},rYx=function(F,q){F.getHandleForDragItem_=q};
jZ.prototype.init=function(){if(!this.JSC$11371_isInitialized_){for(var F=this.dragLists_.length,q=0;q<F;q++)for(var t=_.d1(this.dragLists_[q]),u=t.length,J=0;J<u;++J){var g=t[J],Y=this.getHandleForDragItem_(g),Q=_.K3(Y);this.dragItemForHandle_[Q]=g;this.dragItemHoverClasses_&&(this.JSC$11371_eventHandler_.listen(g,"mouseover",this.handleDragItemMouseover_),this.JSC$11371_eventHandler_.listen(g,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11371_eventHandler_.listen(Y,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11371_eventHandler_.listen(Y,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(g);this.JSC$11371_eventHandler_.listen(Y,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11371_isInitialized_=!0}};
jZ.prototype.disposeInternal=function(){this.JSC$11371_eventHandler_.dispose();for(var F=this.dragLists_.length,q=0;q<F;q++){var t=this.dragLists_[q];t.dlgGrowthDirection_=void 0;t.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;Ns1(this);jZ.superClass_.disposeInternal.call(this)};
var whC=function(F,q){for(var t=F.dragLists_.length,u=0;u<t;u++){var J=F.dragLists_[u];J.dlgBounds_=KR_(J)}t=F.dragItems_.length;for(u=0;u<t;u++)J=F.dragItems_[u],J!=q&&(J.dlgBounds_=KR_(J))};
_.l=jZ.prototype;
_.l.handlePotentialDragStart_=function(F){var q=_.K3(F.currentTarget);q=this.dragItemForHandle_[q];if(q.parentElement.dlgDragPermission!=2){this.currDragItem_=q;a:{q=this.currDragItem_;for(var t=q.cloneNode(!0),u=T4("TEXTAREA",q),J=T4("TEXTAREA",t),g=0;g<u.length;g++)J[g].value=u[g].value;switch(q.tagName){case "TR":q=_.Hk("TABLE",null,_.Hk("TBODY",null,t));break a;case "TD":case "TH":q=_.Hk("TABLE",null,_.Hk("TBODY",null,_.Hk("TR",null,t)));break a;case "TEXTAREA":t.value=q.value;default:q=t;break a}q=
void 0}this.draggerEl_=q;this.draggerElClasses_&&cr(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Cs(this.currDragItem_).body.appendChild(this.draggerEl_);t=_.dh(this.currDragItem_);q=this.draggerEl_;u=_.dh(q);if(t instanceof _.bQ){var Y=t.y;t=t.x}KR(q,q.offsetLeft+(t-u.x),q.offsetTop+(Number(Y)-u.y));this.JSC$11371_dragger_=new _.Kn(this.draggerEl_);_.Ztf(this.JSC$11371_dragger_,this.hysteresisDistance_);
_.Ic(this.JSC$11371_dragger_,"start",this.handleDragStart_,!1,this);_.Ic(this.JSC$11371_dragger_,"end",this.handleDragEnd_,!1,this);_.Ic(this.JSC$11371_dragger_,"earlycancel",this.JSC$11373_cleanup_,!1,this);this.dispatchEvent(new cN(gMJ,this,F,this.currDragItem_,this.draggerEl_,this.JSC$11371_dragger_));this.JSC$11371_dragger_.startDrag(F)}};
_.l.handleDragStart_=function(F){if(this.dispatchEvent(new cN(ljL,this,F.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.u3J(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?cr(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var q=E7j(this.draggerEl_);this.draggerEl_.halfWidth=q.width/2;this.draggerEl_.halfHeight=q.height/2;q=this.draggerEl_.getBoundingClientRect();
var t=F.clientY,u=REE(this.JSC$11371_dragger_,F.clientX);if(u>q.right){var J=this.currDragItem_.getBoundingClientRect();this.JSC$11371_dragger_.deltaX=u-(u-J.left)/J.width*q.width}t=rDf(this.JSC$11371_dragger_,t);t>q.bottom&&(this.JSC$11371_dragger_.deltaY+=t-q.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";whC(this,this.currDragItem_);this.currDragItem_.style.display="";_.Ic(this.JSC$11371_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new cN(Xhr,
this,F.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11371_dragger_))}else F.preventDefault(),this.JSC$11373_cleanup_()};
_.l.handleDragMove_=function(F){var q=_.dh(this.draggerEl_);q=new _.bQ(q.x+this.draggerEl_.halfWidth,q.y+this.draggerEl_.halfHeight);a:{var t=null;if(this.currDragItem_.style.display!="none"){t=this.currDragItem_.parentNode;var u=KR_(t);if(i1E(q,u))break a}u=this.dragLists_.length;for(var J=0;J<u;J++){var g=this.dragLists_[J];if(g!=t&&i1E(q,g.dlgBounds_)){t=g;break a}}t=null}if(t){if(t==null)throw Error("Vd");u=0;J=!1;g=void 0;switch(t.dlgGrowthDirection_){case 0:u=q.y;var Y=kaE;var Q=EMd;break;case 4:J=
!0;case 2:u=q.x;Y=zij;Q=EMd;break;case 5:J=!0;case 3:u=q.x,Y=oML,Q=nMv}for(var e=null,r,N=_.d1(t),w=N.length,k=0;k<w;k++){var z=N[k];if(z!=this.currDragItem_){var T=Y(z.dlgBounds_);if(J){var P=Mpj(z,q);g===void 0&&(g=P);Q(u,T)&&(r==void 0||P<g||P==g&&(Q(T,r)||T==r))&&(e=z,r=T);P<g&&(g=P)}else Q(u,T)&&(r==void 0||Q(T,r))&&(e=z,r=T)}}Y=e!==null&&Mpj(e,q)>g?null:e}else Y=null;if(!this.dispatchEvent(new cN(YBn,this,F,this.currDragItem_,this.draggerEl_,this.JSC$11371_dragger_,q,t,Y)))return!1;if(t&&t.dlgDragPermission!=
1)this.currDragItem_.parentNode==t&&_.u3J(this.currDragItem_)==Y||t.insertBefore(this.currDragItem_,Y),this.currDragItem_.style.display="",t.dlgDragHoverClass_&&_.gC(t,t.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",Q=this.dragLists_.length,r=0;r<Q;r++)u=this.dragLists_[r],u.dlgDragHoverClass_&&_.JT(u,u.dlgDragHoverClass_);t!=this.currHoverList_&&(this.currHoverList_=t,whC(this,this.currDragItem_));this.dispatchEvent(new cN(phe,this,F,this.currDragItem_,this.draggerEl_,this.JSC$11371_dragger_,
q,t,Y));return!1};
_.l.JSC$11373_cleanup_=function(){Ns1(this);this.JSC$11371_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var F=this.dragLists_.length,q=0;q<F;q++)this.dragLists_[q].dlgBounds_=null;F=this.dragItems_.length;for(q=0;q<F;q++)this.dragItems_[q].dlgBounds_=null};
_.l.handleDragEnd_=function(F){if(!this.dispatchEvent(new cN(QEv,this,F,this.currDragItem_,this.draggerEl_,this.JSC$11371_dragger_)))return!1;Ns1(this);this.dispatchEvent(new cN(eie,this,F,this.currDragItem_,this.draggerEl_,this.JSC$11371_dragger_));this.JSC$11373_cleanup_();return!0};
var Ns1=function(F){_.sP(F.JSC$11371_dragger_);var q=F.draggerEl_&&F.draggerEl_.parentElement;F.draggerEl_&&_.Mq(F.draggerEl_);F.currDragItem_&&F.currDragItem_.style.display=="none"&&(F.origList_.insertBefore(F.currDragItem_,F.origNextItem_),F.currDragItem_.style.display="");F.currDragItemClasses_&&F.currDragItem_?QvE(F.currDragItem_,F.currDragItemClasses_||[]):F.currDragItem_&&(F.currDragItem_.style.visibility="");for(var t=F.dragLists_.length,u=0;u<t;u++){var J=F.dragLists_[u];J.dlgDragHoverClass_&&
_.JT(J,J.dlgDragHoverClass_)}q&&F.dispatchEvent(new cN(Z1z,F,null,F.currDragItem_,F.draggerEl_,F.JSC$11371_dragger_))};
_.l=jZ.prototype;_.l.getHandleForDragItem_=function(F){return F};
_.l.handleDragItemMouseover_=function(F){cr(F.currentTarget,this.dragItemHoverClasses_||[])};
_.l.handleDragItemMouseout_=function(F){QvE(F.currentTarget,this.dragItemHoverClasses_||[])};
_.l.handleDragItemHandleMouseover_=function(F){cr(F.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.l.handleDragItemHandleMouseout_=function(F){QvE(F.currentTarget,this.dragItemHandleHoverClasses_||[])};
var i1E=function(F,q){return F.x>q.left&&F.x<q.left+q.width&&F.y>q.top&&F.y<q.top+q.height},Mpj=function(F,q){F=F.dlgBounds_;
return Math.abs(q.y-(F.top+(F.height-1)/2))},kaE=function(F){return F.top+F.height-1},zij=function(F){return F.left+F.width-1},oML=function(F){return F.left||0},EMd=function(F,q){return F<q},nMv=function(F,q){return F>q},cN=function(F,q,t,u,J,g){_.Gw.call(this,F);
this.event=t;this.currDragItem=u;this.draggerEl=J;this.JSC$11375_dragger=g};
_.gd(cN,_.Gw);_.gd(ed,_.OP);var Tse=new _.bQ(0,0);ed.prototype.JSC$11379_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
ed.prototype.JSC$11379_onMouseMove=function(F){var q=this.containerIsActuallyContent_?Tse:D4(Wn(this.containerNode_)),t=this.horizontalScrolling_?this.calculateScrollDelta(F.clientX+q.x,this.scrollBounds_.left,this.scrollBounds_.width):0,u=this.calculateScrollDelta(F.clientY+q.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=t;this.scrollDelta_.y=u;!(t=!t&&!u)&&(t=this.constrainScroll_)&&(t=F.clientX+q.x,F=F.clientY+q.y,q=this.containerBounds_,t=!(q.left<=t&&q.left+q.width>=
t&&q.top<=F&&q.top+q.height>=F));t?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
ed.prototype.calculateScrollDelta=function(F,q,t){var u=0;F<q?u=-8:F>q+t&&(u=8);return u};
ed.prototype.disposeInternal=function(){ed.superClass_.disposeInternal.call(this);this.JSC$11377_eventHandler_.dispose();this.scrollTimer_.dispose()};var GaC={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"}}},FP=GaC;FP=GaC;var qk={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 Dsz=function(){},aY=function(F){if(typeof F=="number"){var q=new Dsz;
q.standardOffset_=F;var t=F;if(t==0)t="Etc/GMT";else{var u=["Etc/GMT",t<0?"-":"+"];t=Math.abs(t);u.push(Math.floor(t/60)%100);t%=60;t!=0&&u.push(":",_.Q2(t,2));t=u.join("")}q.timeZoneId_=t;t=F;t==0?t="UTC":(u=["UTC",t<0?"+":"-"],t=Math.abs(t),u.push(Math.floor(t/60)%100),t%=60,t!=0&&u.push(":",t),t=u.join(""));F=W6e(F);q.tzNames_=[t,t];q.tzNamesExt_={STD_LONG_NAME_GMT:F,STD_GENERIC_LOCATION:F};q.transitions_=[];return q}q=new Dsz;q.timeZoneId_=F.id;q.standardOffset_=-F.std_offset;q.tzNames_=F.names;
q.tzNamesExt_=F.names_ext;q.transitions_=F.transitions;return q},W6e=function(F){var q=["GMT"];
q.push(F<=0?"+":"-");F=Math.abs(F);q.push(_.Q2(Math.floor(F/60)%100,2),":",_.Q2(F%60,2));return q.join("")},O1E=function(F,q){q=Date.UTC(q.getUTCFullYear(),q.getUTCMonth(),q.getUTCDate(),q.getUTCHours(),q.getUTCMinutes())/36E5;
for(var t=0;t<F.transitions_.length&&q>=F.transitions_[t];)t+=2;return t==0?0:F.transitions_[t-1]},PLx=function(F,q){F=F.standardOffset_-O1E(F,q);
return F===-1440?0:F};var jz=function(F,q){this.patternParts_=[];this.JSC$11390_dateTimeSymbols_=q||Eo;typeof F=="number"?xsL(this,F):AYJ(this,F)},vMr=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],t3=function(F){return F.getHours?F.getHours():0},AYJ=function(F,q){for(CWo&&(q=q.replace(/\u200f/g,""));q;){for(var t=q,u=0;u<vMr.length;++u){var J=q.match(vMr[u]);
if(J){var g=J[0];q=q.substring(g.length);u==0&&(g=="''"?g="'":(g=g.substring(1,J[1]=="'"?g.length-1:g.length),g=g.replace(/''/g,"'")));F.patternParts_.push({text:g,type:u});break}}if(t===q)throw Error("Wd`"+q);}};
jz.prototype.format=function(F,q){if(!F)throw Error("Xd");var t=q?(F.getTimezoneOffset()-PLx(q,F))*6E4:0,u=t?new Date(F.getTime()+t):F,J=u;q&&u.getTimezoneOffset()!=F.getTimezoneOffset()&&(u=new Date(u.getTime()+(u.getTimezoneOffset()-F.getTimezoneOffset())*6E4),J=new Date(F.getTime()+(t+(t>0?-864E5:864E5))));t=[];for(var g=0;g<this.patternParts_.length;++g){var Y=this.patternParts_[g].text;1==this.patternParts_[g].type?t.push(IjE(this,Y,F,u,J,q)):t.push(Y)}return t.join("")};
var xsL=function(F,q){if(q<4)var t=F.JSC$11390_dateTimeSymbols_.DATEFORMATS[q];else if(q<8)t=F.JSC$11390_dateTimeSymbols_.TIMEFORMATS[q-4];else if(q<12)t=F.JSC$11390_dateTimeSymbols_.DATETIMEFORMATS[q-8],t=t.replace("{1}",F.JSC$11390_dateTimeSymbols_.DATEFORMATS[q-8]),t=t.replace("{0}",F.JSC$11390_dateTimeSymbols_.TIMEFORMATS[q-8]);else if(q===12)t=F.JSC$11390_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(q===13)t=F.JSC$11390_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{xsL(F,10);return}AYJ(F,t)},uS=function(F,q){q=String(q);
F=F.JSC$11390_dateTimeSymbols_||Eo;if(F.ZERODIGIT!==void 0&&!y8M){for(var t=[],u=0;u<q.length;u++){var J=q.charCodeAt(u);t.push(48<=J&&J<=57?String.fromCharCode(F.ZERODIGIT+J-48):q.charAt(u))}q=t.join("")}return q},y8M=!1,CWo=!1,msf=function(F,q,t,u){t=t.getFullYear();
t<=0&&u&&(t=1-t);return uS(F,H1j(t,q))},H1j=function(F,q){q==2&&(F%=100);
F<0&&q++;return _.Q2(F,q)},J3=function(F){if(!(F.getHours&&F.getSeconds&&F.getMinutes))throw Error("Yd");
},$sj=function(F,q){J3(q);
q=t3(q);return F.JSC$11390_dateTimeSymbols_.AMPMS[q>=12&&q<24?1:0]},IjE=function(F,q,t,u,J,g){var Y=q.length;
switch(q.charAt(0)){case "G":return t=u.getFullYear()>0?1:0,Y>=4?F.JSC$11390_dateTimeSymbols_.ERANAMES[t]:F.JSC$11390_dateTimeSymbols_.ERAS[t];case "y":return msf(F,Y,u,!0);case "Y":return t=(new Date(ynx(u.getFullYear(),u.getMonth(),u.getDate(),F.JSC$11390_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,F.JSC$11390_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),Y==2&&(t%=100),uS(F,H1j(t,Y));case "u":return msf(F,Y,u,!1);case "M":a:switch(t=u.getMonth(),Y){case 5:Y=F.JSC$11390_dateTimeSymbols_.NARROWMONTHS[t];
break a;case 4:Y=F.JSC$11390_dateTimeSymbols_.MONTHS[t];break a;case 3:Y=F.JSC$11390_dateTimeSymbols_.SHORTMONTHS[t];break a;default:Y=uS(F,_.Q2(t+1,Y))}return Y;case "k":return J3(J),uS(F,_.Q2(t3(J)||24,Y));case "S":return uS(F,(J.getMilliseconds()/1E3).toFixed(Math.min(3,Y)).slice(2)+(Y>3?_.Q2(0,Y-3):""));case "E":return t=u.getDay(),Y>=4?F.JSC$11390_dateTimeSymbols_.WEEKDAYS[t]:F.JSC$11390_dateTimeSymbols_.SHORTWEEKDAYS[t];case "a":return $sj(F,J);case "b":return $sj(F,J);case "B":return $sj(F,
J);case "h":return J3(J),uS(F,_.Q2(t3(J)%12||12,Y));case "K":return J3(J),uS(F,_.Q2(t3(J)%12,Y));case "H":return J3(J),uS(F,_.Q2(t3(J),Y));case "c":a:switch(t=u.getDay(),Y){case 5:Y=F.JSC$11390_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[t];break a;case 4:Y=F.JSC$11390_dateTimeSymbols_.STANDALONEWEEKDAYS[t];break a;case 3:Y=F.JSC$11390_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[t];break a;default:Y=uS(F,_.Q2(t,1))}return Y;case "L":a:switch(t=u.getMonth(),Y){case 5:Y=F.JSC$11390_dateTimeSymbols_.STANDALONENARROWMONTHS[t];
break a;case 4:Y=F.JSC$11390_dateTimeSymbols_.STANDALONEMONTHS[t];break a;case 3:Y=F.JSC$11390_dateTimeSymbols_.STANDALONESHORTMONTHS[t];break a;default:Y=uS(F,_.Q2(t+1,Y))}return Y;case "Q":return t=Math.floor(u.getMonth()/3),Y<4?F.JSC$11390_dateTimeSymbols_.SHORTQUARTERS[t]:F.JSC$11390_dateTimeSymbols_.QUARTERS[t];case "d":return uS(F,_.Q2(u.getDate(),Y));case "m":return J3(J),uS(F,_.Q2(J.getMinutes?J.getMinutes():0,Y));case "s":return J3(J),uS(F,_.Q2(J.getSeconds(),Y));case "v":return(g||aY(t.getTimezoneOffset())).timeZoneId_;
case "V":return F=g||aY(t.getTimezoneOffset()),Y<=2?F.timeZoneId_:O1E(F,t)>0?F.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?F.tzNamesExt_.DST_GENERIC_LOCATION:F.tzNamesExt_.DST_GENERIC_LOCATION:F.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?F.tzNamesExt_.STD_GENERIC_LOCATION:F.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return t=ynx(J.getFullYear(),J.getMonth(),J.getDate(),F.JSC$11390_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,F.JSC$11390_dateTimeSymbols_.FIRSTDAYOFWEEK),uS(F,_.Q2(Math.floor(Math.round((t-(new Date((new Date(t)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,Y));case "z":return F=g||aY(t.getTimezoneOffset()),Y<4?F.tzNames_[O1E(F,t)>0?2:0]:F.tzNames_[O1E(F,t)>0?3:1];case "Z":return q=g||aY(t.getTimezoneOffset()),Y<4?(Y=-PLx(q,t),F=[Y<0?"-":"+"],Y=Math.abs(Y),F.push(_.Q2(Math.floor(Y/60)%100,2),_.Q2(Y%60,2)),Y=F.join("")):Y=uS(F,W6e(PLx(q,t))),Y;default:return""}};var b11=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,yYw=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,yHf=function(F){this.patternParts_=[];this.JSC$11399_dateTimeSymbols_=Eo;if(typeof F=="number"){F>11&&(F=10);if(F<4)var q=this.JSC$11399_dateTimeSymbols_.DATEFORMATS[F];else F<8?q=this.JSC$11399_dateTimeSymbols_.TIMEFORMATS[F-4]:(q=this.JSC$11399_dateTimeSymbols_.DATETIMEFORMATS[F-8],q=q.replace("{1}",this.JSC$11399_dateTimeSymbols_.DATEFORMATS[F-8]),q=q.replace("{0}",this.JSC$11399_dateTimeSymbols_.TIMEFORMATS[F-
8]));CLn(this,q)}else CLn(this,F)},CLn=function(F,q){for(var t=!1,u="",J=0;J<q.length;J++){var g=q.charAt(J);
if(b11.test(g))for(u.length>0&&(F.patternParts_.push({text:u,count:0,abutStart:!1,numeric:!1}),u=""),F.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});J<q.length-1&&q.charAt(J+1)==" ";)J++;else if(t)g=="'"?J+1<q.length&&q.charAt(J+1)=="'"?(u+="'",J++):t=!1:u+=g;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(g)>=0){u.length>0&&(F.patternParts_.push({text:u,count:0,abutStart:!1,numeric:!1}),u="");for(var Y=q.charAt(J),Q=J+1;Q<q.length&&q.charAt(Q)==Y;)Q++;Y=Q-J;Y<=0?Q=!1:(Q="MydhHmsSDkK".indexOf(g),
Q=Q>0||Q==0&&Y<3);F.patternParts_.push({text:g,count:Y,abutStart:!1,numeric:Q});J+=Y-1}else g=="'"?J+1<q.length&&q.charAt(J+1)=="'"?(u+="'",J++):t=!0:u+=g}u.length>0&&F.patternParts_.push({text:u,count:0,abutStart:!1,numeric:!1});q=!1;for(t=0;t<F.patternParts_.length;t++)F.patternParts_[t].numeric?!q&&t+1<F.patternParts_.length&&F.patternParts_[t+1].numeric&&(q=!0,F.patternParts_[t].abutStart=!0):q=!1};
yHf.prototype.parse=function(F,q,t){var u=!1,J=!1;t&&(u=t.predictive||!1,J=t.validate||!1);if(u)for(t=0;t<this.patternParts_.length;t++){var g=this.patternParts_[t];if(g.count>0&&("abBhHkKm".indexOf(g.text.charAt(0))<0||g.count>2||g.abutStart))throw Error("Zd`"+g.text.charAt(0));}g=new dsz;t=[0];g.dayPeriodIndex=-1;for(var Y=0;Y<this.patternParts_.length&&!(u&&t[0]>=F.length);Y++){if(this.patternParts_[Y].count==0){a:{var Q=F;var e=t,r=this.patternParts_[Y],N=u;if(r.text.match(b11)!=null){if(r=e[0],
Vpj(Q,e),e[0]>r){Q=!0;break a}}else{if(Q.indexOf(r.text,e[0])==e[0]){e[0]+=r.text.length;Q=!0;break a}if(N&&r.text.indexOf(Q.substring(e[0]))==0){e[0]+=Q.length-e[0];Q=!0;break a}}Q=!1}if(Q)continue;return 0}if(this.patternParts_[Y].abutStart){a:{e=F;r=t;N=Y;var w=r[0],k=0;for(Q=N;Q<this.patternParts_.length;Q++){var z=this.patternParts_[Q],T=z.count;if(T===0)break;if(Q==N&&(T-=k,k++,T==0)){Q=0;break a}var P=Q>N&&z.numeric,v=r[0];if(!Usr(this,e,r,z,T,g,!1)||P&&r[0]-v<T)Q=N-1,r[0]=w}Q-=N}if(Q<=0)return 0;
Y+=Q-1}else if(!Usr(this,F,t,this.patternParts_[Y],0,g,u))return 0}a:{F=J;if(q==null)throw Error("$d");g.era!=void 0&&g.year!=void 0&&g.era==0&&g.year>0&&(g.year=-(g.year-1));g.year!=void 0&&q.setFullYear(g.year);u=q.getDate();q.setDate(1);g.month!=void 0&&q.setMonth(g.month);g.day!=void 0?q.setDate(g.day):(J=RGW(q.getFullYear(),q.getMonth()),q.setDate(u>J?J:u));typeof q.setHours==="function"&&(g.hours==void 0&&(g.hours=q.getHours()),g.hours<12&&(g.ampm!=void 0&&g.ampm>0?g.hours+=12:g.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(g.dayPeriodName)||["night1","night2"].includes(g.dayPeriodName)&&g.hours>=6)&&(g.hours+=12)),q.setHours(g.hours));typeof q.setMinutes==="function"&&g.minutes!=void 0&&q.setMinutes(g.minutes);typeof q.setSeconds==="function"&&g.seconds!=void 0&&q.setSeconds(g.seconds);typeof q.setMilliseconds==="function"&&g.milliseconds!=void 0&&q.setMilliseconds(g.milliseconds);if(F&&(g.year&&g.year!=q.getFullYear()||g.month&&g.month!=
q.getMonth()||g.day&&g.day!=q.getDate()||g.hours&&g.hours>=24||g.minutes&&g.minutes>=60||g.seconds&&g.seconds>=60||g.milliseconds&&g.milliseconds>=1E3))q=!1;else{g.tzOffset!=void 0&&q.setTime(q.getTime()+(g.tzOffset-q.getTimezoneOffset())*60*1E3);g.ambiguousYear&&(F=new Date,F.setFullYear(F.getFullYear()-80),q.getTime()<F.getTime()&&q.setFullYear(F.getFullYear()+100));if(g.dayOfWeek!=void 0)if(g.day==void 0)g=(7+g.dayOfWeek-q.getDay())%7,g>3&&(g-=7),F=q.getMonth(),q.setDate(q.getDate()+g),q.getMonth()!=
F&&q.setDate(q.getDate()+(g>0?-7:7));else if(g.dayOfWeek!=q.getDay()){q=!1;break a}q=!0}}return q?t[0]:0};
var Usr=function(F,q,t,u,J,g,Y){Vpj(q,t);if(u.numeric&&J>0&&t[0]+J>q.length)return!1;switch(u.text.charAt(0)){case "G":return sw(q,t,[F.JSC$11399_dateTimeSymbols_.ERAS],function(Q){return g.era=Q}),!0;
case "M":case "L":return SBO(F,q,t,J,u,g);case "E":return sw(q,t,[F.JSC$11399_dateTimeSymbols_.WEEKDAYS,F.JSC$11399_dateTimeSymbols_.SHORTWEEKDAYS],function(Q){return g.dayOfWeek=Q});
case "B":case "b":return J=[],F=[[].concat(F.JSC$11399_dateTimeSymbols_.AMPMS)],J.push("isAm"),J.push("isPm"),q=sw(q,t,F,function(Q){return g.dayPeriodIndex=Q},Y),g.dayPeriodName=J[g.dayPeriodIndex],Y?q:!0;
case "a":return q=sw(q,t,[F.JSC$11399_dateTimeSymbols_.AMPMS],function(Q){return g.ampm=Q},Y),Y?q:!0;
case "y":return hix(F,q,t,u,J,g);case "Q":return sw(q,t,[F.JSC$11399_dateTimeSymbols_.QUARTERS,F.JSC$11399_dateTimeSymbols_.SHORTQUARTERS],function(Q){g.month=Q*3;g.day=1});
case "d":return gz(F,q,t,u,J,function(Q){g.day=Q}),!0;
case "S":return K6L(F,q,t,J,g);case "h":case "K":case "H":case "k":return q=gz(F,q,t,u,J,function(Q){g.hours=u.text.charAt(0)==="h"&&Q===12?0:Q},Y),Y?q:!0;
case "m":return q=gz(F,q,t,u,J,function(Q){g.minutes=Q},Y),Y?q:!0;
case "s":return gz(F,q,t,u,J,function(Q){g.seconds=Q}),!0;
case "z":case "Z":case "v":return Bse(F,q,t,g);default:return!1}},hix=function(F,q,t,u,J,g){var Y=t[0];
J=lS(F,q,t,J);J===null&&(J=lS(F,q,t,0,!0));if(J===null)return!1;J>=0&&t[0]-Y==2&&u.count==2?(F=J,q=(new Date).getFullYear()-80,t=q%100,g.ambiguousYear=F==t,F+=Math.floor(q/100)*100+(F<t?100:0),g.year=F):g.year=J;return!0},SBO=function(F,q,t,u,J,g){return J.numeric&&gz(F,q,t,J,u,function(Y){g.month=Y-1})?!0:sw(q,t,[F.JSC$11399_dateTimeSymbols_.MONTHS,
F.JSC$11399_dateTimeSymbols_.STANDALONEMONTHS,F.JSC$11399_dateTimeSymbols_.SHORTMONTHS,F.JSC$11399_dateTimeSymbols_.STANDALONESHORTMONTHS],function(Y){g.month=Y})},K6L=function(F,q,t,u,J){var g=t[0];
F=lS(F,q,t,u);if(F===null)return!1;t=t[0]-g;J.milliseconds=t<3?F*Math.pow(10,3-t):Math.round(F/Math.pow(10,t-3));return!0},Bse=function(F,q,t,u){q.indexOf("GMT",t[0])==t[0]&&(t[0]+=3);
if(t[0]>=q.length)return u.tzOffset=0,!0;var J=t[0],g=lS(F,q,t,0,!0);if(g===null)return!1;if(t[0]<q.length&&q.charAt(t[0])==":"){var Y=g*60;t[0]++;g=lS(F,q,t,0);if(g===null)return!1;Y+=g}else Y=g,Y=Y<24&&t[0]-J<=3?Y*60:Y%100+Y/100*60;u.tzOffset=-Y;return!0},gz=function(F,q,t,u,J,g,Y){Y=Y||!1;
var Q=t[0];F=lS(F,q,t,J);if(F===null)return!1;if(Y&&t[0]-Q<u.count){if(t[0]<q.length)return!1;F*=Math.pow(10,u.count-(t[0]-Q))}g(F);return!0},sw=function(F,q,t,u,J){J=J||!1;
for(var g,Y=0;Y<t.length;Y++){g=q;for(var Q=t[Y],e=J,r=0,N=null,w=F.substring(g[0]).toLowerCase(),k=0;k<Q.length;k++){var z=Q[k].toLowerCase();if(e&&z.indexOf(w)==0){r=w.length;N=k;break}Q[k].length>r&&w.indexOf(z)==0&&(r=Q[k].length,N=k)}N!==null&&(g[0]+=r);g=N;if(g!==null)return u(g),!0}return!1},Vpj=function(F,q){(F=F.substring(q[0]).match(yYw))&&(q[0]+=F[0].length)},lS=function(F,q,t,u,J){q=u>0?q.substring(0,t[0]+u):q;
J=J||!1;if(F.JSC$11399_dateTimeSymbols_.ZERODIGIT){u=[];for(var g=t[0];g<q.length;g++){var Y=q.charCodeAt(g)-F.JSC$11399_dateTimeSymbols_.ZERODIGIT;u.push(0<=Y&&Y<=9?String.fromCharCode(Y+48):q.charAt(g))}q=u.join("")}else q=q.substring(t[0]);F=q.match(new RegExp("^"+(J?"[+-]?":"")+"\\d+"));if(!F)return null;t[0]+=F[0].length;return parseInt(F[0],10)},dsz=function(){};
dsz.prototype.ambiguousYear=!1;_.L6d={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 fjL={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"},ajd=fjL,jEe=fjL;jEe=ajd=fjL;var FWf,XP,pi,sPP,Yx,cYn;
_.B5=function(F,q,t,u){var J;if(J=q){a:if(q&&q.length===3){for(J=0;J<3;J++){var g=q[J];if(g<"A"||g>"Z"&&g<"a"||g>"z"){J=!1;break a}}J=!0}else J=!1;J=!J}if(J)throw new TypeError("ae");this.intlCurrencyCode_=q?q.toUpperCase():null;this.currencyStyle_=t||0;this.overrideNumberFormatSymbols_=u||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_=XP(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof F==="number")switch(F){case 1:Yx(this,XP(this).DECIMAL_PATTERN);break;case 2:Yx(this,XP(this).SCIENTIFIC_PATTERN);break;case 3:Yx(this,XP(this).PERCENT_PATTERN);break;case 4:F=XP(this).CURRENCY_PATTERN;q=["0"];if(t=
qk[pi(this)]){t=t[0]&7;if(t>0)for(q.push("."),u=0;u<t;u++)q.push("0");F=F.replace(/0.00/g,q.join(""))}Yx(this,F);break;case 5:cYn(this,1);break;case 6:cYn(this,2);break;default:throw Error("de");}else Yx(this,F)};
FWf=!1;XP=function(F){return F.overrideNumberFormatSymbols_||(FWf?jEe:ajd)};
pi=function(F){return F.intlCurrencyCode_||XP(F).DEF_CURRENCY_CODE};
sPP=function(F,q){if(q>308)throw Error("ce`"+q);F.maximumFractionDigits_=q;return F};
Yx=function(F,q){var t=[0];F.positivePrefix_=qkx(F,q,t);for(var u=t[0],J=-1,g=0,Y=0,Q=0,e=-1,r=q.length,N=!0;t[0]<r&&N;t[0]++)switch(q.charAt(t[0])){case "#":Y>0?Q++:g++;e>=0&&J<0&&e++;break;case "0":if(Q>0)throw Error("je`"+q);Y++;e>=0&&J<0&&e++;break;case ",":e>0&&F.groupingArray_.push(e);e=0;break;case ".":if(J>=0)throw Error("ke`"+q);J=g+Y+Q;break;case "E":if(F.useExponentialNotation_)throw Error("le`"+q);F.useExponentialNotation_=!0;F.minExponentDigits_=0;t[0]+1<r&&q.charAt(t[0]+1)=="+"&&(t[0]++,
F.useSignForPositiveExponent_=!0);for(;t[0]+1<r&&q.charAt(t[0]+1)=="0";)t[0]++,F.minExponentDigits_++;if(g+Y<1||F.minExponentDigits_<1)throw Error("me`"+q);N=!1;break;default:t[0]--,N=!1}Y==0&&g>0&&J>=0&&(Y=J,Y==0&&Y++,Q=g-Y,g=Y-1,Y=1);if(J<0&&Q>0||J>=0&&(J<g||J>g+Y)||e==0)throw Error("ne`"+q);Q=g+Y+Q;F.maximumFractionDigits_=J>=0?Q-J:0;J>=0&&(F.minimumFractionDigits_=g+Y-J,F.minimumFractionDigits_<0&&(F.minimumFractionDigits_=0));F.minimumIntegerDigits_=(J>=0?J:Q)-g;F.useExponentialNotation_&&(F.maximumIntegerDigits_=
g+F.minimumIntegerDigits_,F.maximumFractionDigits_==0&&F.minimumIntegerDigits_==0&&(F.minimumIntegerDigits_=1));F.groupingArray_.push(Math.max(0,e));F.decimalSeparatorAlwaysShown_=J==0||J==Q;u=t[0]-u;F.positiveSuffix_=qkx(F,q,t);t[0]<q.length&&q.charAt(t[0])==";"?(t[0]++,F.multiplier_!=1&&(F.negativePercentSignExpected_=!0),F.negativePrefix_=qkx(F,q,t),t[0]+=u,F.negativeSuffix_=qkx(F,q,t)):(F.negativePrefix_+=F.positivePrefix_,F.negativeSuffix_+=F.positiveSuffix_)};
cYn=function(F,q){F.compactStyle_=q;Yx(F,XP(F).DECIMAL_PATTERN);F.minimumFractionDigits_=0;sPP(F,2);if(F.minimumFractionDigits_>0)throw Error("be");F.significantDigits_=2};
_.B5.prototype.parse=function(F,q){q=q||[0];if(this.compactStyle_!==0)throw Error("ee");F=F.replace(/ |\u202f/g,"\u00a0");var t=F.indexOf(this.positivePrefix_,q[0])==q[0],u=F.indexOf(this.negativePrefix_,q[0])==q[0];t&&u&&(this.positivePrefix_.length>this.negativePrefix_.length?u=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(t=!1));t?q[0]+=this.positivePrefix_.length:u&&(q[0]+=this.negativePrefix_.length);if(F.indexOf(XP(this).INFINITY,q[0])==q[0]){q[0]+=XP(this).INFINITY.length;var J=
Infinity}else{J=F;var g=!1,Y=!1,Q=!1,e=-1,r=1,N=XP(this).DECIMAL_SEP,w=XP(this).GROUP_SEP,k=XP(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");w=w.replace(/\u202f/g,"\u00a0");for(var z="";q[0]<J.length;q[0]++){var T=J.charAt(q[0]),P=tgL(this,T);if(P>=0&&P<=9)z+=P,Q=!0;else if(T==N.charAt(0)){if(g||Y)break;z+=".";g=!0}else if(T==w.charAt(0)&&("\u00a0"!=w.charAt(0)||q[0]+1<J.length&&tgL(this,J.charAt(q[0]+1))>=0)){if(g||Y)break}else if(T==k.charAt(0)){if(Y)break;z+="E";Y=!0;e=q[0]}else if(T==
"+"||T=="-"){if(Q&&e!=q[0]-1)break;z+=T}else if(this.multiplier_==1&&T==XP(this).PERCENT.charAt(0)){if(r!=1)break;r=100;if(Q){q[0]++;break}}else if(this.multiplier_==1&&T==XP(this).PERMILL.charAt(0)){if(r!=1)break;r=1E3;if(Q){q[0]++;break}}else break}this.multiplier_!=1&&(r=this.multiplier_);J=parseFloat(z)/r}if(t){if(F.indexOf(this.positiveSuffix_,q[0])!=q[0])return NaN;q[0]+=this.positiveSuffix_.length}else if(u){if(F.indexOf(this.negativeSuffix_,q[0])!=q[0])return NaN;q[0]+=this.negativeSuffix_.length}return u?
-J:J};
_.B5.prototype.format=function(F){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(F))return XP(this).NAN;var q=[];var t=F;if(this.compactStyle_==0)t=Ql;else{t=Math.abs(t);var u=utO(this,t<=1?0:Jvf(t)).divisorBase;t=utO(this,u+Jvf(scz(this,eq(t,-u)).intValue))}F=eq(F,-t.divisorBase);(u=F<0||F==0&&1/F<0)?t.negative_prefix?q.push(t.negative_prefix):(q.push(t.prefix),q.push(this.negativePrefix_)):(q.push(t.prefix),q.push(this.positivePrefix_));if(isFinite(F))if(F*=
u?-1:1,F*=this.multiplier_,this.useExponentialNotation_){var J=F;if(J==0)gbC(this,J,this.minimumIntegerDigits_,q),lPj(this,0,q);else{var g=Math.floor(Math.log(J)/Math.log(10)+2E-15);J=eq(J,-g);var Y=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(Y=g%this.maximumIntegerDigits_,Y<0&&(Y=this.maximumIntegerDigits_+Y),J=eq(J,Y),g-=Y,Y=1):this.minimumIntegerDigits_<1?(g++,J=eq(J,-1)):(g-=this.minimumIntegerDigits_-1,J=eq(J,this.minimumIntegerDigits_-
1));gbC(this,J,Y,q);lPj(this,g,q)}}else gbC(this,F,this.minimumIntegerDigits_,q);else q.push(XP(this).INFINITY);u?t.negative_suffix?q.push(t.negative_suffix):(isFinite(F)&&q.push(t.suffix),q.push(this.negativeSuffix_)):(isFinite(F)&&q.push(t.suffix),q.push(this.positiveSuffix_));return q.join("")};
var scz=function(F,q){var t=eq(q,F.maximumFractionDigits_);F.significantDigits_>0&&(t=X9C(t,F.significantDigits_,F.maximumFractionDigits_));t=Math.round(t);if(isFinite(t)){var u=Math.floor(eq(t,-F.maximumFractionDigits_));t=Math.floor(t-eq(u,F.maximumFractionDigits_));if(t<0||t>=eq(1,F.maximumFractionDigits_))u=Math.round(q),t=0}else u=q,t=0;return{intValue:u,fracValue:t}},gbC=function(F,q,t,u){if(F.minimumFractionDigits_>F.maximumFractionDigits_)throw Error("ge");
u||(u=[]);q=scz(F,q);var J=q.intValue,g=q.fracValue,Y=F.minimumFractionDigits_>0||g>0||!1;q=F.minimumFractionDigits_;Y&&(q=F.minimumFractionDigits_);for(var Q="",e=J;e>1E20;)Q="0"+Q,e=Math.round(eq(e,-1));Q=e+Q;var r=XP(F).DECIMAL_SEP;e=XP(F).ZERO_DIGIT.codePointAt(0);var N=Q.length,w=0;if(J>0||t>0){for(J=N;J<t;J++)u.push(String.fromCodePoint(e));if(F.groupingArray_.length>=2)for(t=1;t<F.groupingArray_.length;t++)w+=F.groupingArray_[t];t=N-w;if(t>0){J=F.groupingArray_;w=N=0;for(var k,z=XP(F).GROUP_SEP,
T=Q.length,P=0;P<T;P++)if(u.push(String.fromCodePoint(e+Number(Q.charAt(P)))),T-P>1)if(k=J[w],P<t){var v=t-P;(k===1||k>0&&v%k===1)&&u.push(z)}else w<J.length&&(P===t?w+=1:k===P-t-N+1&&(u.push(z),N+=k,w+=1))}else{t=Q;Q=F.groupingArray_;J=XP(F).GROUP_SEP;k=t.length;z=[];for(N=Q.length-1;N>=0&&k>0;N--){w=Q[N];for(T=0;T<w&&k-T-1>=0;T++)z.push(String.fromCodePoint(e+Number(t.charAt(k-T-1))));k-=w;k>0&&z.push(J)}u.push.apply(u,z.reverse())}}else Y||u.push(String.fromCodePoint(e));(F.decimalSeparatorAlwaysShown_||
Y)&&u.push(r);g=String(g);Y=g.split("e+");Y.length==2&&(g=String(X9C(parseFloat(Y[0]),F.significantDigits_,1)),g=g.replace(".",""),g+=(0,_.yoe)("0",parseInt(Y[1],10)-g.length+1));F.maximumFractionDigits_+1>g.length&&(g="1"+(0,_.yoe)("0",F.maximumFractionDigits_-g.length)+g);for(F=g.length;g.charAt(F-1)=="0"&&F>q+1;)F--;for(q=1;q<F;q++)u.push(String.fromCodePoint(e+Number(g.charAt(q))))},lPj=function(F,q,t){t.push(XP(F).EXP_SYMBOL);
q<0?(q=-q,t.push(XP(F).MINUS_SIGN)):F.useSignForPositiveExponent_&&t.push(XP(F).PLUS_SIGN);q=""+q;for(var u=XP(F).ZERO_DIGIT,J=q.length;J<F.minExponentDigits_;J++)t.push(u);F=u.codePointAt(0)-Ykr;for(u=0;u<q.length;u++)t.push(String.fromCodePoint(F+q.codePointAt(u)))},tgL=function(F,q){q=q.codePointAt(0);
if(48<=q&&q<58)return q-48;F=XP(F).ZERO_DIGIT.codePointAt(0);return F<=q&&q<F+10?q-F:-1},Ykr="0".codePointAt(0),qkx=function(F,q,t){for(var u="",J=!1,g=q.length;t[0]<g;t[0]++){var Y=q.charAt(t[0]);
if(Y=="'")t[0]+1<g&&q.charAt(t[0]+1)=="'"?(t[0]++,u+="'"):J=!J;else if(J)u+=Y;else switch(Y){case "#":case "0":case ",":case ".":case ";":return u;case "\u00a4":if(t[0]+1<g&&q.charAt(t[0]+1)=="\u00a4")t[0]++,u+=pi(F);else switch(F.currencyStyle_){case 0:Y=pi(F);u+=Y in qk?qk[Y][1]:Y;break;case 2:Y=pi(F);var Q=qk[Y];u+=Q?Y==Q[1]?Y:Y+" "+Q[1]:Y;break;case 1:Y=pi(F),u+=Y in qk?qk[Y][2]:Y}break;case "%":if(!F.negativePercentSignExpected_&&F.multiplier_!=1)throw Error("he");if(F.negativePercentSignExpected_&&
F.multiplier_!=100)throw Error("ie");F.multiplier_=100;F.negativePercentSignExpected_=!1;u+=XP(F).PERCENT;break;case "\u2030":if(!F.negativePercentSignExpected_&&F.multiplier_!=1)throw Error("he");if(F.negativePercentSignExpected_&&F.multiplier_!=1E3)throw Error("ie");F.multiplier_=1E3;F.negativePercentSignExpected_=!1;u+=XP(F).PERMILL;break;default:u+=Y}}return u},Ql={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},utO=function(F,q){F=F.compactStyle_==1?FP.COMPACT_DECIMAL_SHORT_PATTERN:FP.COMPACT_DECIMAL_LONG_PATTERN;F==null&&(F=FP.COMPACT_DECIMAL_SHORT_PATTERN);if(q<3)return Ql;q=Math.min(14,q);var t=F[eq(1,q)];for(--q;!t&&q>=3;)t=F[eq(1,q)],q--;if(!t)return Ql;t=t.other;var u=F="",J=t.indexOf(";");J>=0&&(t=t.substring(0,J),J=t.substring(J+1))&&(u=/([^0]*)(0+)(.*)/.exec(J),F=u[1],u=u[3]);return t&&t!="0"?(t=/([^0]*)(0+)(.*)/.exec(t))?{divisorBase:q+
1-(t[2].length-1),negative_prefix:F,negative_suffix:u,prefix:t[1],suffix:t[3]}:Ql:Ql},Jvf=function(F){if(!isFinite(F))return F>0?F:0;
for(var q=0;(F/=10)>=1;)q++;return q},eq=function(F,q){if(!F||!isFinite(F)||q==0)return F;
F=String(F).split("e");return parseFloat(F[0]+"e"+(parseInt(F[1]||0,10)+q))},p9J=function(F,q){return F&&isFinite(F)?eq(Math.round(eq(F,q)),-q):F},X9C=function(F,q,t){if(!F)return F;
q=q-Jvf(F)-1;return q<-t?p9J(F,-t):p9J(F,q)};var Qc1=function(F){return F%10==1&&F%100!=11?"one":F%10==2&&F%100!=12?"two":F%10==3&&F%100!=13?"few":"other"},eUC=Qc1;
eUC=Qc1;var Z9r;Z9r=function(F,q){var t=F|0;if(void 0===q){q=Math;var u=q.min,J=F+"",g=J.indexOf(".");q=u.call(q,g===-1?0:J.length-g-1,3)}u=Math.pow(10,q);F={v:q,f:(F*u|0)%u};return t==1&&F.v==0?"one":"other"};
_.c5=Z9r;_.c5=Z9r;var RUE,rvL,Ncd,i9J,kCJ;_.w9z=function(F){this.JSC$11442_pattern_=F;this.parsedPattern_=this.literals_=this.initialLiterals_=null;F=ajd;var q=FP;if(RUE!==F||rvL!==q)RUE=F,rvL=q,Ncd=new _.B5(1);this.numberFormatter_=Ncd};
RUE=null;rvL=null;Ncd=null;i9J=RegExp("'([{}#].*?)'","g");kCJ=RegExp("''","g");
_.w9z.prototype.format=function(F){if(this.JSC$11442_pattern_){this.initialLiterals_=[];var q=EbO(this,this.JSC$11442_pattern_);this.parsedPattern_=zUL(this,q);this.JSC$11442_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.C3(this.initialLiterals_),q=[],obJ(this,this.parsedPattern_,F,!1,q),F=q.join("");this.literals_.length>0;)F=F.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else F="";return F};
var obJ=function(F,q,t,u,J){for(var g=0;g<q.length;g++)switch(q[g].type){case 4:J.push(q[g].value);break;case 3:var Y=q[g].value;var Q=F,e=J,r=t[Y];r===void 0?e.push("Undefined parameter - "+Y):(Q.literals_.push(r),e.push(Q.buildPlaceholder_(Q.literals_)));break;case 2:Y=q[g].value;Q=F;e=t;r=u;var N=J,w=Y.argumentIndex;e[w]===void 0?N.push("Undefined parameter - "+w):(w=Y[e[w]],w===void 0&&(w=Y.other),obJ(Q,w,e,r,N));break;case 0:Y=q[g].value;nbJ(F,Y,t,_.c5,u,J);break;case 1:Y=q[g].value,nbJ(F,Y,
t,eUC,u,J)}},nbJ=function(F,q,t,u,J,g){var Y=q.argumentIndex,Q=q.argumentOffset,e=+t[Y];
isNaN(e)?g.push("Undefined or invalid parameter - "+Y):(Q=e-Q,Y=q[t[Y]],Y===void 0&&(u=u(Math.abs(Q)),Y=q[u],Y===void 0&&(Y=q.other)),q=[],obJ(F,Y,t,J,q),t=q.join(""),J?g.push(t):(F=F.numberFormatter_.format(Q),g.push(t.replace(/#/g,F))))},EbO=function(F,q){var t=F.initialLiterals_,u=F.buildPlaceholder_.bind(F);
q=q.replace(kCJ,function(){t.push("'");return u(t)});
return q=q.replace(i9J,function(J,g){t.push(g);return u(t)})},Mgd=function(F){var q=0,t=[],u=[],J=/[{}]/g;
J.lastIndex=0;for(var g;g=J.exec(F);){var Y=g.index;g[0]=="}"?(t.pop(),t.length==0&&(g={type:1},g.value=F.substring(q,Y),u.push(g),q=Y+1)):(t.length==0&&(q=F.substring(q,Y),q!=""&&u.push({type:0,value:q}),q=Y+1),t.push("{"))}F=F.substring(q);F!=""&&u.push({type:0,value:F});return u},TcE=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,GCO=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Dcw=/^\s*(\w+)\s*,\s*select\s*,/,zUL=function(F,q){var t=[];
q=Mgd(q);for(var u=0;u<q.length;u++){var J={};if(0==q[u].type)J.type=4,J.value=q[u].value;else if(1==q[u].type){var g=q[u].value;switch(TcE.test(g)?0:GCO.test(g)?1:Dcw.test(g)?2:/^\s*\w+\s*/.test(g)?3:5){case 2:J.type=2;J.value=WWx(F,q[u].value);break;case 0:J.type=0;J.value=O9z(F,q[u].value);break;case 1:J.type=1;J.value=Pdf(F,q[u].value);break;case 3:J.type=3,J.value=q[u].value}}t.push(J)}return t},WWx=function(F,q){var t="";
q=q.replace(Dcw,function(Q,e){t=e;return""});
var u={};u.argumentIndex=t;q=Mgd(q);for(var J=0;J<q.length;){var g=q[J].value;J++;var Y=void 0;1==q[J].type&&(Y=zUL(F,q[J].value));u[g.replace(/\s/g,"")]=Y;J++}return u},O9z=function(F,q){var t="",u=0;
q=q.replace(TcE,function(e,r,N){t=r;N&&(u=parseInt(N,10));return""});
var J={};J.argumentIndex=t;J.argumentOffset=u;q=Mgd(q);for(var g=0;g<q.length;){var Y=q[g].value;g++;var Q=void 0;1==q[g].type&&(Q=zUL(F,q[g].value));J[Y.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Q;g++}return J},Pdf=function(F,q){var t="";
q=q.replace(GCO,function(Q,e){t=e;return""});
var u={};u.argumentIndex=t;u.argumentOffset=0;q=Mgd(q);for(var J=0;J<q.length;){var g=q[J].value;J++;var Y=void 0;1==q[J].type&&(Y=zUL(F,q[J].value));u[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Y;J++}return u};
_.w9z.prototype.buildPlaceholder_=function(F){return"\ufddf_"+(F.length-1).toString(10)+"_"};var xc1;
xc1={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 U4u=function(){this.rdtfSymbols_=Avz||xc1;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
U4u.prototype.format=function(F,q){a:{q=vbE(this,q);switch(this.style_){case 2:if(q.NARROW!=void 0){q=q.NARROW;break a}case 1:if(q.SHORT!=void 0){q=q.SHORT;break a}default:q=q.LONG;break a}q=void 0}if(!this.alwaysNumeric_&&q&&q.R&&q.R[""+F])F=q.R[""+F];else if(q){var t=Math.abs(F);F=(new _.w9z("{N,plural,"+(F>0||F==0&&1/F==Infinity?q.F:q.P)+"}")).format({N:t})}else F="";return F};
var vbE=function(F,q){switch(q){default:case 0:return F.rdtfSymbols_.YEAR;case 1:return F.rdtfSymbols_.QUARTER;case 2:return F.rdtfSymbols_.MONTH;case 3:return F.rdtfSymbols_.WEEK;case 4:return F.rdtfSymbols_.DAY;case 5:return F.rdtfSymbols_.HOUR;case 6:return F.rdtfSymbols_.MINUTE;case 7:return F.rdtfSymbols_.SECOND}};var IPO=function(F,q,t,u,J,g,Y,Q){this.x0=F;this.y0=q;this.x1=t;this.y1=u;this.x2=J;this.y2=g;this.x3=Y;this.y3=Q};
IPO.prototype.clone=function(){return new IPO(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
IPO.prototype.equals=function(F){return this.x0==F.x0&&this.y0==F.y0&&this.x1==F.x1&&this.y1==F.y1&&this.x2==F.x2&&this.y2==F.y2&&this.x3==F.x3&&this.y3==F.y3};
var H9j=function(F,q){if(q==0)return F.x0;if(q==1)return F.x3;var t=xV(F.x0,F.x1,q),u=xV(F.x1,F.x2,q);F=xV(F.x2,F.x3,q);t=xV(t,u,q);u=xV(u,F,q);return xV(t,u,q)},mcx=function(F,q){var t=(q-F.x0)/(F.x3-F.x0);
if(t<=0)return 0;if(t>=1)return 1;for(var u=0,J=1,g=0,Y=0;Y<8;Y++){g=H9j(F,t);var Q=(H9j(F,t+1E-6)-g)/1E-6;if(Math.abs(g-q)<1E-6)return t;if(Math.abs(Q)<1E-6)break;else g<q?u=t:J=t,t-=(g-q)/Q}for(Y=0;Math.abs(g-q)>1E-6&&Y<8;Y++)g<q?(u=t,t=(t+J)/2):(J=t,t=(t+u)/2),g=H9j(F,t);return t};var ZX=function(){_.xD.call(this);this.JSC$11463_name_="closure_frame"+$cJ++;this.iframesForDisposal_=[];b9O[this.JSC$11463_name_]=this},R$;
_.gd(ZX,_.xD);var b9O={},$cJ=0,yvr=function(F,q){var t=Wn(F);h4z(q,function(u,J){Array.isArray(u)||(u=[u]);_.B_(u,function(g){g=t.JSC$9321_createDom("INPUT",{type:"hidden",name:J,value:g});F.appendChild(g)})})};
_.l=ZX.prototype;_.l.JSC$11465_form_=null;_.l.JSC$11465_iframe_=null;_.l.iframeName_=null;_.l.nextIframeId_=0;_.l.JSC$11465_active_=!1;_.l.complete_=!1;_.l.success_=!1;_.l.lastContent_=null;_.l.JSC$11465_lastErrorCode_=0;_.l.iframeDisposalTimer_=null;
_.l.send=function(F,q,t,u){if(this.JSC$11465_active_)throw Error("oe");F=new _.qU(F);q=q?q.toUpperCase():"GET";t&&_.w3(F);R$||(R$=_.Hk("FORM"),R$.acceptCharset="utf-8",t=R$.style,t.position="absolute",t.visibility="hidden",t.top=t.left="-10px",t.width=t.height="10px",t.overflow="hidden",document.body.appendChild(R$));this.JSC$11465_form_=R$;q=="GET"&&yvr(this.JSC$11465_form_,F.JSC$10024_queryData_);u&&yvr(this.JSC$11465_form_,u);t=F.toString();t=xht(t);u=this.JSC$11465_form_;t=_.SO(IK(t));t!==void 0&&
(u.action=t);this.JSC$11465_form_.method=q;Cdz(this);dce(this)};
_.l.abort=function(F){if(this.JSC$11465_active_){var q=rz(this);if(q)if(Wr(q))q.removeAllListeners(void 0);else if(q=Or(q)){var t=0,u;for(u in q.listeners)for(var J=q.listeners[u].concat(),g=0;g<J.length;++g)xb(J[g])&&++t}this.success_=this.JSC$11465_active_=this.complete_=!1;this.JSC$11465_lastErrorCode_=F||7;this.dispatchEvent("abort");Vgn(this)}};
_.l.disposeInternal=function(){this.JSC$11465_active_&&this.abort();ZX.superClass_.disposeInternal.call(this);this.JSC$11465_iframe_&&UcE(this);dce(this);this.JSC$11465_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11465_form_=null;this.JSC$11465_lastErrorCode_=0;delete b9O[this.JSC$11463_name_]};
_.l.isComplete=function(){return this.complete_};
_.l.isSuccess=function(){return this.success_};
_.l.isActive=function(){return this.JSC$11465_active_};
_.l.getResponseText=function(){return this.lastContent_};
_.l.getLastError=function(){return _.oqw(this.JSC$11465_lastErrorCode_)};
var Cdz=function(F){F.JSC$11465_active_=!0;F.complete_=!1;F.JSC$11465_lastErrorCode_=0;F.iframeName_=F.JSC$11463_name_+"_"+(F.nextIframeId_++).toString(36);F.JSC$11465_iframe_=Wn(F.JSC$11465_form_).JSC$9321_createDom("IFRAME",{name:F.iframeName_,id:F.iframeName_});var q=F.JSC$11465_iframe_.style;q.visibility="hidden";q.width=q.height="10px";q.display="none";_.es?q.marginTop=q.marginLeft="-10px":(q.position="absolute",q.top=q.left="-10px");Wn(F.JSC$11465_form_).JSC$9319_document_.body.appendChild(F.JSC$11465_iframe_);
q=F.iframeName_+"_inner";var t=Xsn(F.JSC$11465_iframe_);if(document.baseURI){var u=Rs(q);u='<head><base href="'+Rs(document.baseURI)+'"></head><body><iframe id="'+u+'" name="'+u+'"></iframe>';u=Ll(u)}else u=Rs(q),u=Ll('<body><iframe id="'+u+'" name="'+u+'"></iframe>');t.write(fl(u));_.Ic(t.getElementById(q),"load",F.onIframeLoaded_,!1,F);u=T4("TEXTAREA",F.JSC$11465_form_);for(var J=0,g=u.length;J<g;J++){var Y=u[J].value;R9e(u[J])!=Y&&(_.V2(u[J],Y),u[J].value=Y)}u=t.importNode(F.JSC$11465_form_,!0);
u.target=q;u.action=F.JSC$11465_form_.action;t.body.appendChild(u);J=T4("SELECT",F.JSC$11465_form_);g=T4("SELECT",u);Y=0;for(var Q=J.length;Y<Q;Y++)for(var e=T4("OPTION",J[Y]),r=T4("OPTION",g[Y]),N=0,w=e.length;N<w;N++)r[N].selected=e[N].selected;J=T4("INPUT",F.JSC$11465_form_);g=T4("INPUT",u);Y=0;for(Q=J.length;Y<Q;Y++)if(J[Y].type=="file"&&J[Y].value!=g[Y].value){F.JSC$11465_form_.target=q;u=F.JSC$11465_form_;break}try{F.errorHandled_=!1,u.submit(),t.close(),_.QZ&&setTimeout(F.testForFirefoxSilentError_.bind(F),
250)}catch(k){_.Pr(t.getElementById(q),"load",F.onIframeLoaded_,!1,F),t.close(),Nk(F,2)}};
ZX.prototype.onIframeLoaded_=function(){_.Pr(rz(this),"load",this.onIframeLoaded_,!1,this);try{var F=this.JSC$11465_iframe_?Xsn(rz(this)):null;this.complete_=!0;this.JSC$11465_active_=!1;try{var q=F.body;this.lastContent_=q.textContent||q.innerText}catch(J){var t=1}var u;t||typeof this.errorChecker_!="function"||(u=this.errorChecker_(F))&&(t=4);t?Nk(this,t):(this.success_=!0,this.JSC$11465_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Vgn(this))}catch(J){Nk(this,1)}};
var Nk=function(F,q){F.errorHandled_||(F.success_=!1,F.JSC$11465_active_=!1,F.complete_=!0,F.JSC$11465_lastErrorCode_=q,F.dispatchEvent("complete"),F.dispatchEvent("error"),Vgn(F),F.errorHandled_=!0)},Vgn=function(F){UcE(F);
dce(F);F.JSC$11465_form_=null;F.dispatchEvent("ready")},UcE=function(F){var q=F.JSC$11465_iframe_;
q&&(q.onreadystatechange=null,q.onload=null,q.onerror=null,F.iframesForDisposal_.push(q));F.iframeDisposalTimer_&&(clearTimeout(F.iframeDisposalTimer_),F.iframeDisposalTimer_=null);_.QZ?F.iframeDisposalTimer_=setTimeout(F.disposeIframes_.bind(F),2E3):F.disposeIframes_();F.JSC$11465_iframe_=null;F.iframeName_=null};
ZX.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var F=this.iframesForDisposal_.pop();_.Mq(F)}};
var dce=function(F){F.JSC$11465_form_&&F.JSC$11465_form_==R$&&_.bX(F.JSC$11465_form_)},rz=function(F){return F.JSC$11465_iframe_?Xsn(F.JSC$11465_iframe_).getElementById(F.iframeName_+"_inner"):null};
ZX.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11465_active_){var F=this.JSC$11465_iframe_?Xsn(rz(this)):null;F&&!G0C(F,"documentUri")?(_.Pr(rz(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Nk(this,3):Nk(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.wz=function(F){return F=="\r"||F=="\n"||F==" "||F=="\t"};var Ske;_.iS=function(F){this.errorMessage_=null;this.result_=[];this.JSC$11467_buffer_="";this.stack_=[];this.JSC$11467_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!F||!F.deliverMessageAsRawString)};
Ske={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};_.iS.prototype.isInputValid=function(){return this.streamState_!=3};
_.iS.prototype.done=function(){return this.streamState_===2};
var kx=function(F,q,t){F.streamState_=3;F.errorMessage_="The stream is broken @"+F.JSC$11467_pos_+"/"+t+". With input:\n"+q;throw Error(F.errorMessage_);};
_.iS.prototype.acceptsBinaryInput=function(){return!1};
_.iS.prototype.parse=function(F){function q(){for(;k<F.length;)if(_.wz(F[k]))k++,g.JSC$11467_pos_++;else break;return k<r}
function t(){for(var T;;){T=F[k++];if(!T)break;g.JSC$11467_pos_++;switch(g.state_){case e.INIT:T==="{"?g.state_=e.OBJECT_OPEN:T==="["?g.state_=e.ARRAY_OPEN:_.wz(T)||kx(g,F,k);continue;case e.KEY_START:case e.OBJECT_OPEN:if(_.wz(T))continue;if(g.state_===e.KEY_START)Y.push(e.KEY_END);else if(T==="}"){J("{}");g.state_=u();continue}else Y.push(e.OBJECT_END);T==='"'?g.state_=e.STRING:kx(g,F,k);continue;case e.KEY_END:case e.OBJECT_END:if(_.wz(T))continue;T===":"?(g.state_===e.OBJECT_END&&(Y.push(e.OBJECT_END),
g.depth_++),g.state_=e.VALUE):T==="}"?(g.depth_--,J(),g.state_=u()):T===","?(g.state_===e.OBJECT_END&&Y.push(e.OBJECT_END),g.state_=e.KEY_START):kx(g,F,k);continue;case e.ARRAY_OPEN:case e.VALUE:if(_.wz(T))continue;if(g.state_===e.ARRAY_OPEN)if(g.depth_++,g.state_=e.VALUE,T==="]"){g.depth_--;if(g.depth_===0){g.state_=e.ARRAY_END;return}J("[]");g.state_=u();continue}else Y.push(e.ARRAY_END);T==='"'?g.state_=e.STRING:T==="{"?g.state_=e.OBJECT_OPEN:T==="["?g.state_=e.ARRAY_OPEN:T==="t"?g.state_=e.TRUE1:
T==="f"?g.state_=e.FALSE1:T==="n"?g.state_=e.NULL1:T!=="-"&&("0123456789".indexOf(T)!==-1?g.state_=e.NUM_DIGIT:kx(g,F,k));continue;case e.ARRAY_END:if(T===",")Y.push(e.ARRAY_END),g.state_=e.VALUE,g.depth_===1&&(w=k);else if(T==="]"){g.depth_--;if(g.depth_===0)return;J();g.state_=u()}else if(_.wz(T))continue;else kx(g,F,k);continue;case e.STRING:var P=k;a:for(;;){for(;g.unicodeCount_>0;)if(T=F[k++],g.unicodeCount_===4?g.unicodeCount_=0:g.unicodeCount_++,!T)break a;if(T==='"'&&!g.slashed_){g.state_=
u();break}if(T==="\\"&&!g.slashed_&&(g.slashed_=!0,T=F[k++],!T))break;if(g.slashed_)if(g.slashed_=!1,T==="u"&&(g.unicodeCount_=1),T=F[k++])continue;else break;Q.lastIndex=k;T=Q.exec(F);if(!T){k=F.length+1;break}k=T.index+1;T=F[T.index];if(!T)break}g.JSC$11467_pos_+=k-P;continue;case e.TRUE1:if(!T)continue;T==="r"?g.state_=e.TRUE2:kx(g,F,k);continue;case e.TRUE2:if(!T)continue;T==="u"?g.state_=e.TRUE3:kx(g,F,k);continue;case e.TRUE3:if(!T)continue;T==="e"?g.state_=u():kx(g,F,k);continue;case e.FALSE1:if(!T)continue;
T==="a"?g.state_=e.FALSE2:kx(g,F,k);continue;case e.FALSE2:if(!T)continue;T==="l"?g.state_=e.FALSE3:kx(g,F,k);continue;case e.FALSE3:if(!T)continue;T==="s"?g.state_=e.FALSE4:kx(g,F,k);continue;case e.FALSE4:if(!T)continue;T==="e"?g.state_=u():kx(g,F,k);continue;case e.NULL1:if(!T)continue;T==="u"?g.state_=e.NULL2:kx(g,F,k);continue;case e.NULL2:if(!T)continue;T==="l"?g.state_=e.NULL3:kx(g,F,k);continue;case e.NULL3:if(!T)continue;T==="l"?g.state_=u():kx(g,F,k);continue;case e.NUM_DECIMAL_POINT:T===
"."?g.state_=e.NUM_DIGIT:kx(g,F,k);continue;case e.NUM_DIGIT:if("0123456789.eE+-".indexOf(T)!==-1)continue;else k--,g.JSC$11467_pos_--,g.state_=u();continue;default:kx(g,F,k)}}}
function u(){var T=Y.pop();return T!=null?T:e.VALUE}
function J(T){g.depth_>1||(T||(T=w===-1?g.JSC$11467_buffer_+F.substring(N,k):F.substring(w,k)),g.deliverMessageAsRawString_?g.result_.push(T):g.result_.push(JSON.parse(T)),w=k)}
for(var g=this,Y=g.stack_,Q=g.stringInputPattern_,e=Ske,r=F.length,N=0,w=-1,k=0;k<r;)switch(g.streamState_){case 3:return kx(g,F,k),null;case 2:return q()&&kx(g,F,k),null;case 0:if(q()){var z=F[k++];g.JSC$11467_pos_++;if(z==="["){g.streamState_=1;N=k;g.state_=e.ARRAY_OPEN;continue}else kx(g,F,k)}return null;case 1:return t(),g.depth_===0&&g.state_==e.ARRAY_END?(g.streamState_=2,g.JSC$11467_buffer_=F.substring(k)):g.JSC$11467_buffer_=w===-1?g.JSC$11467_buffer_+F.substring(N):F.substring(w),g.result_.length>
0?(z=g.result_,g.result_=[],z):null}return null};_.gd(_.Zt,OV);Ru.prototype.getValue=function(){return this.JSC$11475_value_};
Ru.prototype.clone=function(){return new Ru(this.JSC$11475_key_,this.JSC$11475_value_)};var Ew=function(F){this.nodes_=[];if(F)a:{if(F instanceof Ew){var q=F.getKeys();F=F.getValues();if(this.getCount()<=0){for(var t=this.nodes_,u=0;u<q.length;u++)t.push(new Ru(q[u],F[u]));break a}}else q=_.m7.getKeys(F),F=_.m7.getValues(F);for(t=0;t<q.length;t++)this.insert(q[t],F[t])}};
_.l=Ew.prototype;_.l.insert=function(F,q){var t=this.nodes_;t.push(new Ru(F,q));F=t.length-1;q=this.nodes_;for(t=q[F];F>0;){var u=F-1>>1;if(q[u].JSC$11475_key_>t.JSC$11475_key_)q[F]=q[u],F=u;else break}q[F]=t};
_.l.remove=function(){var F=this.nodes_,q=F.length,t=F[0];if(!(q<=0)){if(q==1)F.length=0;else{F[0]=F.pop();F=0;q=this.nodes_;for(var u=q.length,J=q[F];F<u>>1;){var g=F*2+1,Y=F*2+2;g=Y<u&&q[Y].JSC$11475_key_<q[g].JSC$11475_key_?Y:g;if(q[g].JSC$11475_key_>J.JSC$11475_key_)break;q[F]=q[g];F=g}q[F]=J}return t.getValue()}};
_.l.peek=function(){var F=this.nodes_;if(F.length!=0)return F[0].getValue()};
_.l.getValues=function(){for(var F=this.nodes_,q=[],t=F.length,u=0;u<t;u++)q.push(F[u].getValue());return q};
_.l.getKeys=function(){for(var F=this.nodes_,q=[],t=F.length,u=0;u<t;u++)q.push(F[u].JSC$11475_key_);return q};
_.l.containsValue=function(F){return this.nodes_.some(function(q){return q.getValue()==F})};
_.l.containsKey=function(F){return this.nodes_.some(function(q){return q.JSC$11475_key_==F})};
_.l.clone=function(){return new Ew(this)};
_.l.getCount=function(){return this.nodes_.length};
_.l.isEmpty=function(){return this.nodes_.length===0};
_.l.clear=function(){this.nodes_.length=0};_.ze=function(F,q){this.JSC$11481_map_={};this.JSC$11481_keys_=[];this.version_=this.size=0;var t=arguments.length;if(t>1){if(t%2)throw Error("ka");for(var u=0;u<t;u+=2)this.set(arguments[u],arguments[u+1])}else F&&this.addAll(F)};
_.l=_.ze.prototype;_.l.getCount=function(){return this.size};
_.l.getValues=function(){o$(this);for(var F=[],q=0;q<this.JSC$11481_keys_.length;q++)F.push(this.JSC$11481_map_[this.JSC$11481_keys_[q]]);return F};
_.l.getKeys=function(){o$(this);return this.JSC$11481_keys_.concat()};
_.l.containsKey=function(F){return this.has(F)};
_.l.has=function(F){return ni(this.JSC$11481_map_,F)};
_.l.containsValue=function(F){for(var q=0;q<this.JSC$11481_keys_.length;q++){var t=this.JSC$11481_keys_[q];if(ni(this.JSC$11481_map_,t)&&this.JSC$11481_map_[t]==F)return!0}return!1};
_.l.equals=function(F,q){if(this===F)return!0;if(this.size!=F.getCount())return!1;q=q||hUn;o$(this);for(var t,u=0;t=this.JSC$11481_keys_[u];u++)if(!q(this.get(t),F.get(t)))return!1;return!0};
var hUn=function(F,q){return F===q};
_.ze.prototype.isEmpty=function(){return this.size==0};
_.ze.prototype.clear=function(){this.JSC$11481_map_={};this.version_=this.size=this.JSC$11481_keys_.length=0};
_.ze.prototype.remove=function(F){return this.delete(F)};
_.ze.prototype.delete=function(F){return ni(this.JSC$11481_map_,F)?(delete this.JSC$11481_map_[F],--this.size,this.version_++,this.JSC$11481_keys_.length>2*this.size&&o$(this),!0):!1};
var o$=function(F){if(F.size!=F.JSC$11481_keys_.length){for(var q=0,t=0;q<F.JSC$11481_keys_.length;){var u=F.JSC$11481_keys_[q];ni(F.JSC$11481_map_,u)&&(F.JSC$11481_keys_[t++]=u);q++}F.JSC$11481_keys_.length=t}if(F.size!=F.JSC$11481_keys_.length){q={};for(u=t=0;t<F.JSC$11481_keys_.length;){var J=F.JSC$11481_keys_[t];ni(q,J)||(F.JSC$11481_keys_[u++]=J,q[J]=1);t++}F.JSC$11481_keys_.length=u}};
_.l=_.ze.prototype;_.l.get=function(F,q){return ni(this.JSC$11481_map_,F)?this.JSC$11481_map_[F]:q};
_.l.set=function(F,q){ni(this.JSC$11481_map_,F)||(this.size+=1,this.JSC$11481_keys_.push(F),this.version_++);this.JSC$11481_map_[F]=q};
_.l.addAll=function(F){if(F instanceof _.ze)for(var q=F.getKeys(),t=0;t<q.length;t++)this.set(q[t],F.get(q[t]));else for(q in F)this.set(q,F[q])};
_.l.forEach=function(F,q){for(var t=this.getKeys(),u=0;u<t.length;u++){var J=t[u],g=this.get(J);F.call(q,g,J,this)}};
_.l.clone=function(){return new _.ze(this)};
_.l.transpose=function(){for(var F=new _.ze,q=0;q<this.JSC$11481_keys_.length;q++){var t=this.JSC$11481_keys_[q];F.set(this.JSC$11481_map_[t],t)}return F};
_.l.keys=function(){return Rfj(this.__iterator__(!0)).toEs6()};
_.l.values=function(){return Rfj(this.__iterator__(!1)).toEs6()};
_.l.entries=function(){var F=this;return Anz(this.keys(),function(q){return[q,F.get(q)]})};
_.l.__iterator__=function(F){o$(this);var q=0,t=this.version_,u=this,J=new Ng;J.next=function(){if(t!=u.version_)throw Error("pe");if(q>=u.JSC$11481_keys_.length)return wg;var g=u.JSC$11481_keys_[q++];return il(F?g:u.JSC$11481_map_[g])};
return J};
var ni=function(F,q){return Object.prototype.hasOwnProperty.call(F,q)};var Bcw=function(){this.JSC$11484_map_=new _.ze;this.JSC$11484_head_=new KWC("");this.JSC$11484_head_.next=this.JSC$11484_head_.prev=this.JSC$11484_head_},LWO=function(F,q){if(q=F.JSC$11484_map_.get(q))q.remove(),F.insert_(q);
return q};
_.l=Bcw.prototype;_.l.get=function(F,q){return(F=LWO(this,F))?F.value:q};
_.l.set=function(F,q){var t=LWO(this,F);t?t.value=q:(t=new KWC(F,q),this.JSC$11484_map_.set(F,t),this.insert_(t))};
_.l.peek=function(){return this.JSC$11484_head_.next.value};
_.l.shift=function(){return fPd(this,this.JSC$11484_head_.next)};
_.l.pop=function(){return fPd(this,this.JSC$11484_head_.prev)};
_.l.remove=function(F){return(F=this.JSC$11484_map_.get(F))?(this.removeNode(F),!0):!1};
_.l.removeNode=function(F){F.remove();this.JSC$11484_map_.remove(F.key)};
_.l.getCount=function(){return this.JSC$11484_map_.getCount()};
_.l.isEmpty=function(){return this.JSC$11484_map_.isEmpty()};
_.l.getKeys=function(){return this.map(function(F,q){return q})};
_.l.getValues=function(){return this.map(function(F){return F})};
_.l.contains=function(F){return this.some(function(q){return q==F})};
_.l.containsKey=function(F){return this.JSC$11484_map_.containsKey(F)};
_.l.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11484_head_.prev)};
_.l.forEach=function(F,q){for(var t=this.JSC$11484_head_.next;t!=this.JSC$11484_head_;t=t.next)F.call(q,t.value,t.key,this)};
_.l.map=function(F,q){for(var t=[],u=this.JSC$11484_head_.next;u!=this.JSC$11484_head_;u=u.next)t.push(F.call(q,u.value,u.key,this));return t};
_.l.some=function(F,q){for(var t=this.JSC$11484_head_.next;t!=this.JSC$11484_head_;t=t.next)if(F.call(q,t.value,t.key,this))return!0;return!1};
_.l.every=function(F,q){for(var t=this.JSC$11484_head_.next;t!=this.JSC$11484_head_;t=t.next)if(!F.call(q,t.value,t.key,this))return!1;return!0};
_.l.insert_=function(F){F.next=this.JSC$11484_head_.next;F.prev=this.JSC$11484_head_;this.JSC$11484_head_.next=F;for(F.next.prev=F;this.getCount()>100;)this.removeNode(this.JSC$11484_head_.prev)};
var fPd=function(F,q){F.JSC$11484_head_!=q&&F.removeNode(q);return q.value},KWC=function(F,q){this.key=F;
this.value=q};
KWC.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var aPE=function(){Ew.apply(this,arguments)};
_.M(aPE,Ew);aPE.prototype.enqueue=function(F,q){this.insert(F,q)};var jcE=function(){var F=Error();F.name="SecurityError";throw F;},C$M=function(){return{get opener(){return null},
get closed(){return!0},get location(){jcE()},get document(){jcE()},postMessage:function(){},
close:function(){},
focus:function(){}}};var B1P={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 j8P={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 cvL={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(j8P).join("|");var FoJ=function(){function F(Q){Q.substr(-1)!==";"&&(Q+=";");return Y(Q)}
for(var q=Object.keys(cvL).sort(aHW),t=Object.keys(j8P).sort(aHW),u=0,J=0;u<t.length;u++)q[J]===t[u]?(t[u]+=";?",J++):t[u]+=";";var g=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),Y=c$3();return function(Q){return String(Q).replace(g,F)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var qcC={};var tir=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"),u0e=/[\\&]/,JTJ=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),sId=RegExp('[&<>"]',"g"),gmO=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),lRj=function(F){return F.charCodeAt(0)===92?F.charAt(1):FoJ(F)},XTO=function(F){return u0e.test(F)?F.replace(JTJ,lRj):F},Ycw=function(F){try{var q,t="";
if(typeof J!=="string"){var u=J;var J=";/?:@&=+$,-_.!~*'()#"}typeof u==="undefined"&&(u=!0);var g,Y=qcC[J];if(Y)var Q=Y;else{Y=qcC[J]=[];for(g=0;g<128;g++){var e=String.fromCharCode(g);/^[0-9a-z]$/i.test(e)?Y.push(e):Y.push("%"+("0"+g.toString(16).toUpperCase()).slice(-2))}for(g=0;g<J.length;g++)Y[J.charCodeAt(g)]=J[g];Q=Y}var r=0;for(q=F.length;r<q;r++){var N=F.charCodeAt(r);if(u&&N===37&&r+2<q&&/^[0-9a-f]{2}$/i.test(F.slice(r+1,r+3)))t+=F.slice(r,r+3),r+=2;else if(N<128)t+=Q[N];else if(N>=55296&&
N<=57343){if(N>=55296&&N<=56319&&r+1<q){var w=F.charCodeAt(r+1);if(w>=56320&&w<=57343){t+=encodeURIComponent(F[r]+F[r+1]);r++;continue}}t+="%EF%BF%BD"}else t+=encodeURIComponent(F[r])}return t}catch(k){return F}},pTL=function(F){switch(F){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return F}},Mk=function(F,q){return sId.test(F)?q?F.replace(gmO,pTL):F.replace(sId,pTL):F};/*

 lib/from-code-point.js is derived from a polyfill
 Copyright Mathias Bynens <http://mathiasbynens.be/>

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var Te;if(String.fromCodePoint)Te=function(F){try{return String.fromCodePoint(F)}catch(q){if(q instanceof RangeError)return String.fromCharCode(65533);throw q;}};
else{var QIr=String.fromCharCode,eCC=Math.floor;Te=function(){var F=[],q=-1,t=arguments.length;if(!t)return"";for(var u="";++q<t;){var J=Number(arguments[q]);if(!isFinite(J)||J<0||J>1114111||eCC(J)!==J)return String.fromCharCode(65533);if(J<=65535)F.push(J);else{J-=65536;var g=(J>>10)+55296;J=J%1024+56320;F.push(g,J)}if(q+1===t||F.length>16384)u+=QIr.apply(null,F),F.length=0}return u}};var Zpe=function(F){this.root=this.current=F;this.entering=!0};
Zpe.prototype.next=function(){var F=this.current,q=this.entering;if(F===null)return null;a:switch(F._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var t=!0;break a;default:t=!1}q&&t?F._firstChild?(this.current=F._firstChild,this.entering=!0):this.entering=!1:F===this.root?this.current=null:F._next===null?(this.current=
F._parent,this.entering=!1):(this.current=F._next,this.entering=!0);return{entering:q,node:F}};
var i7=function(F,q){this._type=F;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=q;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};
i7.prototype.appendChild=function(F){F.unlink();F._parent=this;this._lastChild?(this._lastChild._next=F,F._prev=this._lastChild):this._firstChild=F;this._lastChild=F};
i7.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var RCC=function(F,q){q.unlink();q._next=F._next;q._next&&(q._next._prev=q);q._prev=F;F._next=q;q._parent=F._parent;q._next||(q._parent._lastChild=q)};
i7.prototype.insertBefore=function(F){F.unlink();F._prev=this._prev;F._prev&&(F._prev._next=F);F._next=this;this._prev=F;F._parent=this._parent;F._prev||(F._parent._firstChild=F)};
_.JJ.Object.defineProperties(i7.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(F){this._literal=F}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(F){this._destination=F}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(F){this._title=F}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(F){this._info=F}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(F){this._level=F}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(F){this._listData.type=F}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(F){this._listData.tight=F}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(F){this._listData.start=F}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(F){this._onEnter=F}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(F){this._onExit=F}}});var FXP=/[ \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,
qrM={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 rTz=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]/),
NCe=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),wTJ=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),ipx=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),kqd=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),EmJ=/`+/,zCv=/^`+/,omd=/\.\.\./g,nmL=/--+/g,Min=/^<([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])?)*)>/,
TCx=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Gqd=/^ *(?:\n *)?/,DoO=/^[ \t\n\x0b\x0c\x0d]/,WoL=/[ \t\n\x0b\x0c\x0d]+/g,Opn=/^\s/,P_E=/ *$/,xor=/^ */,ATf=/^ *(?:\n|$)/,vmE=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),IRw=/^[^\n`\[\]\\!<&*_'"]+/m,Ge=function(F){var q=new i7("text");q._literal=F;return q},DX=function(F){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=F||{}};
DX.prototype.match=function(F){F=F.exec(this.subject.slice(this.pos));if(F===null)return null;this.pos+=F.index+F[0].length;return F[0]};
DX.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var W6=function(F){F.match(Gqd);return!0},HpE=function(F,q,t){var u=0;
var J=F.pos;if(q===39||q===34)u++,F.pos++;else for(;F.peek()===q;)u++,F.pos++;if(u===0)u=null;else{var g=J===0?"\n":F.subject.charAt(J-1);var Y=F.peek();Y=Y===-1?"\n":Te(Y);var Q=Opn.test(Y);Y=rTz.test(Y);var e=Opn.test(g);var r=rTz.test(g);g=!Q&&!(Y&&!e&&!r);Q=!e&&!(r&&!Q&&!Y);q===95?(e=g&&(!Q||r),Y=Q&&(!g||Y)):(e=q===39||q===34?g&&!Q:g,Y=Q);F.pos=J;u={numdelims:u,can_open:e,can_close:Y}}if(!u)return!1;J=u.numdelims;Y=F.pos;F.pos+=J;Y=q===39?"\u2019":q===34?"\u201c":F.subject.slice(Y,F.pos);Y=Ge(Y);
t.appendChild(Y);F.delimiters={cc:q,numdelims:J,origdelims:J,node:Y,previous:F.delimiters,next:null,can_open:u.can_open,can_close:u.can_close};F.delimiters.previous!==null&&(F.delimiters.previous.next=F.delimiters);return!0},moj=function(F,q){q.previous!==null&&(q.previous.next=q.next);
q.next===null?F.delimiters=q.previous:q.next.previous=q.previous},$oe=function(F,q){var t,u,J=[],g=!1;
J[95]=q;J[42]=q;J[39]=q;J[34]=q;for(t=F.delimiters;t!==null&&t.previous!==q;)t=t.previous;for(;t!==null;){var Y=t.cc;if(t.can_close){var Q=t.previous;for(u=!1;Q!==null&&Q!==q&&Q!==J[Y];){g=(t.can_open||Q.can_close)&&(Q.origdelims+t.origdelims)%3===0;if(Q.cc===t.cc&&Q.can_open&&!g){u=!0;break}Q=Q.previous}var e=t;if(Y===42||Y===95)if(u){var r=t.numdelims>=2&&Q.numdelims>=2?2:1;var N=Q.node;var w=t.node;Q.numdelims-=r;t.numdelims-=r;N._literal=N._literal.slice(0,N._literal.length-r);w._literal=w._literal.slice(0,
w._literal.length-r);var k=new i7(r===1?"emph":"strong");for(r=N._next;r&&r!==w;){var z=r._next;r.unlink();k.appendChild(r);r=z}RCC(N,k);r=Q;z=t;r.next!==z&&(r.next=z,z.previous=r);Q.numdelims===0&&(N.unlink(),moj(F,Q));t.numdelims===0&&(w.unlink(),Q=t.next,moj(F,t),t=Q)}else t=t.next;else Y===39?(t.node._literal="\u2019",u&&(Q.node._literal="\u2018"),t=t.next):Y===34&&(t.node._literal="\u201d",u&&(Q.node.literal="\u201c"),t=t.next);u||g||(J[Y]=e.previous,e.can_open||moj(F,e))}else t=t.next}for(;F.delimiters!==
null&&F.delimiters!==q;)moj(F,F.delimiters)},bpd=function(F){F=F.match(NCe);
return F===null?null:XTO(F.substr(1,F.length-2))},yTO=function(F){var q=F.match(wTJ);
if(q===null){q=F.pos;for(var t=0,u;(u=F.peek())!==-1;)if(u===92)F.pos+=1,F.peek()!==-1&&(F.pos+=1);else if(u===40)F.pos+=1,t+=1;else if(u===41)if(t<1)break;else F.pos+=1,--t;else if(DoO.exec(Te(u))!==null)break;else F.pos+=1;q=F.subject.substr(q,F.pos-q);return Ycw(XTO(q))}return Ycw(XTO(q.substr(1,q.length-2)))},C_w=function(F){F=F.match(vmE);
return F===null||F.length>1001?0:F.length},do1=function(F,q,t,u){F.brackets!==null&&(F.brackets.bracketAfter=!0);
F.brackets={node:q,previous:F.brackets,previousDelimiter:F.delimiters,index:t,image:u,active:!0}},Vi1=function(F,q){var t;
return(t=F.match(IRw))?(F.options.smart?q.appendChild(Ge(t.replace(omd,"\u2026").replace(nmL,function(u){var J=0,g=0;u.length%3===0?g=u.length/3:u.length%2===0?J=u.length/2:u.length%3===2?(J=1,g=(u.length-2)/3):(J=2,g=(u.length-4)/3);u="";var Y;for(Y=0;Y<g;Y++)u+="\u2014";for(Y=0;Y<J;Y++)u+="\u2013";return u}))):q.appendChild(Ge(t)),!0):!1},Uon=function(F,q,t){F.subject=q;
F.pos=0;q=F.pos;var u=C_w(F);if(u===0)return 0;var J=F.subject.substr(0,u);if(F.peek()===58)F.pos++;else return F.pos=q,0;W6(F);u=yTO(F);if(u===null||u.length===0)return F.pos=q,0;var g=F.pos;W6(F);var Y=bpd(F);Y===null&&(Y="",F.pos=g);var Q=!0;F.match(ATf)===null&&(Y===""?Q=!1:(Y="",F.pos=g,Q=F.match(ATf)!==null));if(!Q)return F.pos=q,0;J=tuv(J);if(J==="")return F.pos=q,0;t[J]||(t[J]={destination:u,title:Y});return F.pos-q},Sce=function(F,q){var t,u=F.peek();
if(u===-1)return!1;switch(u){case 10:F.pos+=1;if((t=q._lastChild)&&t.type==="text"&&t._literal[t._literal.length-1]===" "){var J=t._literal[t._literal.length-2]===" ";t._literal=t._literal.replace(P_E,"");q.appendChild(new i7(J?"linebreak":"softbreak"))}else q.appendChild(new i7("softbreak"));F.match(xor);t=!0;break;case 92:t=F.subject;F.pos+=1;F.peek()===10?(F.pos+=1,t=new i7("linebreak"),q.appendChild(t)):ipx.test(t.charAt(F.pos))?(q.appendChild(Ge(t.charAt(F.pos))),F.pos+=1):q.appendChild(Ge("\\"));
t=!0;break;case 96:a:if(t=F.match(zCv),t===null)t=!1;else{J=F.pos;for(var g;(g=F.match(EmJ))!==null;)if(g===t){g=new i7("code");g._literal=F.subject.slice(J,F.pos-t.length).trim().replace(WoL," ");q.appendChild(g);t=!0;break a}F.pos=J;q.appendChild(Ge(t));t=!0}break;case 42:case 95:t=HpE(F,u,q);break;case 39:case 34:t=F.options.smart&&HpE(F,u,q);break;case 91:t=F.pos;F.pos+=1;J=Ge("[");q.appendChild(J);do1(F,J,t,!1);t=!0;break;case 33:t=F.pos;F.pos+=1;F.peek()===91?(F.pos+=1,J=Ge("!["),q.appendChild(J),
do1(F,J,t+1,!0)):q.appendChild(Ge("!"));t=!0;break;case 93:var Y,Q=!1,e;F.pos+=1;var r=F.pos;J=F.brackets;if(J===null)q.appendChild(Ge("]"));else if(J.active){t=J.image;var N=F.pos;F.peek()===40&&(F.pos++,W6(F)&&(g=yTO(F))!==null&&W6(F)&&(DoO.test(F.subject.charAt(F.pos-1))&&(Y=bpd(F)),1)&&W6(F)&&F.peek()===41?(F.pos+=1,Q=!0):F.pos=N);if(!Q){var w=F.pos,k=C_w(F);k>2?e=F.subject.slice(w,w+k):J.bracketAfter||(e=F.subject.slice(J.index,r));k===0&&(F.pos=N);e&&(e=F.refmap[tuv(e)])&&(g=e.destination,Y=
e.title,Q=!0)}if(Q){r=new i7(t?"image":"link");r._destination=g;r._title=Y||"";for(g=J.node._next;g;)Y=g._next,g.unlink(),r.appendChild(g),g=Y;q.appendChild(r);$oe(F,J.previousDelimiter);F.brackets=F.brackets.previous;J.node.unlink();if(!t)for(J=F.brackets;J!==null;)J.image||(J.active=!1),J=J.previous}else F.brackets=F.brackets.previous,F.pos=r,q.appendChild(Ge("]"))}else q.appendChild(Ge("]")),F.brackets=F.brackets.previous;t=!0;break;case 60:(t=F.match(Min))?(t=t.slice(1,t.length-1),J=new i7("link"),
J._destination=Ycw("mailto:"+t),J._title="",J.appendChild(Ge(t)),q.appendChild(J),t=!0):(t=F.match(TCx))?(t=t.slice(1,t.length-1),J=new i7("link"),J._destination=Ycw(t),J._title="",J.appendChild(Ge(t)),q.appendChild(J),t=!0):t=!1;t||(t=F.match(tir),t===null?t=!1:(J=new i7("html_inline"),J._literal=t,q.appendChild(J),t=!0));break;case 38:(t=F.match(kqd))?(q.appendChild(Ge(FoJ(t))),t=!0):t=!1;break;default:t=Vi1(F,q)}t||(F.pos+=1,q.appendChild(Ge(Te(u))));return!0};
DX.prototype.parseInlines=function(F){this.subject=F._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Sce(this,F););F._string_content=null;$oe(this,null)};
DX.prototype.parse=DX.prototype.parseInlines;var hCJ=[/./,/^<(?: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")],KoC=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],BCw=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Lor=/^[#`~*+_=<>0-9-\|]|\|/,fRO=/[^ \t\f\v\r\n]/,aRr=/^[*+-]/,jIz=/^(\d{1,9})([.)])/,cTO=/^#{1,6}(?:[ \t]+|$)/,FpL=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,qOn=/^(?:`{3,}|~{3,})(?= *$)/,taj=/^(?:=+|-+)[ \t]*$/,upO=/\r\n|\n|\r/,Jct=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,sRW=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,JCL={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(F){return F!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(F,q){for(F=q._firstChild;F;){if(uoy(F)&&F._next){q._listData.tight=!1;break}for(var t=F._firstChild;t;){if(uoy(t)&&(F._next||t._next)){q._listData.tight=!1;break}t=t._next}F=F._next}},
canContain:function(F){return F==="item"},
acceptsLines:!1},block_quote:{continue:function(F){var q=F.currentLine;if(F.indented||Nd(q,F.nextNonspace)!==62)return 1;Ow(F);P6(F,1,!1);rQ(Nd(q,F.offset))&&P6(F,1,!0);return 0},
finalize:function(){},
canContain:function(F){return F!=="item"},
acceptsLines:!1},item:{continue:function(F,q){if(F.blank){if(q._firstChild==null)return 1;Ow(F)}else if(F.indent>=q._listData.markerOffset+q._listData.padding)P6(F,q._listData.markerOffset+q._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(F){return F!=="item"&&!gDu(F)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(F,q){var t=F.currentLine,u=F.indent;if(q._isFenced){if((u=u<=3&&t.charAt(F.nextNonspace)===q._fenceChar&&t.slice(F.nextNonspace).match(qOn))&&u[0].length>=q._fenceLength)return F.finalize(q,F.lineNumber),2;for(q=q._fenceOffset;q>0&&rQ(Nd(t,F.offset));)P6(F,1,!0),q--}else if(u>=4)P6(F,4,!0);else if(F.blank)Ow(F);else return 1;return 0},
finalize:function(F,q){if(q._isFenced){var t=q._string_content,u=t.indexOf("\n");F=t.slice(0,u);t=t.slice(u+1);q.info=XTO(F.trim());q._literal=t}else q._literal=q._string_content.replace(/(\n *)+$/,"\n");q._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(F,q){return!F.blank||q._htmlBlockType!==6&&q._htmlBlockType!==7?0:1},
finalize:function(F,q){q._literal=q._string_content.replace(/(\n *)+$/,"");q._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(F){return F.blank?1:0},
finalize:function(F,q){for(var t,u=!1;Nd(q._string_content,0)===91&&(t=Uon(F.inlineParser,q._string_content,F.refmap));)q._string_content=q._string_content.slice(t),u=!0;u&&!fRO.test(q._string_content)&&q.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(F){return wQ(F.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(F){return F=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(F,q){if(!q._rowIsDelimiter){F=q._isHeader?"th":"td";for(var t=q._parent._tableColumns,u=q._string_content,J=0,g="",Y,Q=q._sourcepos[0][0];J<u.length;){switch(u[J]){case "|":Y&&(Y._string_content=g.trim(),g="",Y=null,t--,t<=0&&(J=u.length));break;default:if(!Y){Y=new i7(F,[[Q,J],[Q,J]]);var e=q._parent._columnAlignment,r=q._parent._tableColumns-t;e&&r<=e.length&&r>=0&&(Y._alignment=e[r]);q.appendChild(Y)}g+=u[J];Y._sourcepos[1][1]=J}J++}Y&&(Y._string_content=g.trim());q._string_content=
""}},
canContain:function(F){return F!=="row"},
acceptsLines:!1}},ssj=[function(F){if(F.indented||Nd(F.currentLine,F.nextNonspace)!==62)return 0;Ow(F);P6(F,1,!1);rQ(Nd(F.currentLine,F.offset))&&P6(F,1,!0);xx(F);F.addChild("block_quote",F.nextNonspace);return 1},
function(F){var q;if(!F.indented&&(q=F.currentLine.slice(F.nextNonspace).match(cTO))){Ow(F);P6(F,q[0].length,!1);xx(F);var t=F.addChild("heading",F.nextNonspace);t.level=q[0].trim().length;t._string_content=F.currentLine.slice(F.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");P6(F,F.currentLine.length-F.offset);return 2}return 0},
function(F){var q;if(!F.indented&&(q=F.currentLine.slice(F.nextNonspace).match(FpL))){var t=q[0].length;xx(F);var u=F.addChild("code_block",F.nextNonspace);u._isFenced=!0;u._fenceLength=t;u._fenceChar=q[0][0];u._fenceOffset=F.indent;Ow(F);P6(F,t,!1);return 2}return 0},
function(F,q){if(!F.indented&&Nd(F.currentLine,F.nextNonspace)===60){var t=F.currentLine.slice(F.nextNonspace),u;for(u=1;u<=7;u++)if(hCJ[u].test(t)&&(u<7||q.type!=="paragraph"))return xx(F),F.addChild("html_block",F.offset)._htmlBlockType=u,2}return 0},
function(F,q){var t;if(!F.indented&&q.type==="paragraph"&&(t=F.currentLine.slice(F.nextNonspace).match(taj))){xx(F);var u=new i7("heading",q.sourcepos);u.level=t[0][0]==="="?1:2;u._string_content=q._string_content;RCC(q,u);q.unlink();F.tip=u;P6(F,F.currentLine.length-F.offset,!1);return 2}return 0},
function(F){return!F.indented&&BCw.test(F.currentLine.slice(F.nextNonspace))?(xx(F),F.addChild("thematic_break",F.nextNonspace),P6(F,F.currentLine.length-F.offset,!1),2):0},
function(F,q){var t,u;if(!(u=F.indented&&q.type!=="list")){a:{var J=q,g=F.currentLine.slice(F.nextNonspace);u={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:F.indent};if(t=g.match(aRr))u.type="bullet",u.bulletChar=t[0][0];else{if(!(t=g.match(jIz))||J.type==="paragraph"&&t[1]!=="1"){t=null;break a}u.type="ordered";u.start=parseInt(t[1],10);u.delimiter=t[2]}var Y=Nd(F.currentLine,F.nextNonspace+t[0].length);if(Y!==-1&&Y!==9&&Y!==32||J.type==="paragraph"&&!F.currentLine.slice(F.nextNonspace+
t[0].length).match(fRO))t=null;else{Ow(F);P6(F,t[0].length,!0);J=F.column;g=F.offset;do P6(F,1,!0),Y=Nd(F.currentLine,F.offset);while(F.column-J<5&&rQ(Y));Y=Nd(F.currentLine,F.offset)===-1;var Q=F.column-J;Q>=5||Q<1||Y?(u.padding=t[0].length+1,F.column=J,F.offset=g,rQ(Nd(F.currentLine,F.offset))&&P6(F,1,!0)):u.padding=t[0].length+Q;t=u}}u=!t}if(u)return 0;xx(F);(u=F.tip.type!=="list")||(q=q._listData,u=!(q.type===t.type&&q.delimiter===t.delimiter&&q.bulletChar===t.bulletChar));u&&(q=F.addChild("list",
F.nextNonspace),q._listData=t);q=F.addChild("item",F.nextNonspace);q._listData=t;return 1},
function(F){var q;return((q=F.options.shouldParseIndentAsCodeBlock)!=null?q:1)&&F.indented&&F.tip.type!=="paragraph"&&!F.blank?(P6(F,4,!0),xx(F),F.addChild("code_block",F.offset),2):0},
function(F,q){var t=wQ(F.currentLine),u=wQ(F.lookahead);if(t!==0&&u<0&&Math.abs(t)==Math.abs(u)&&!gDu(q.type)){xx(F);q=F.addChild("table",F.nextNonspace);q._tableRows=1;q._tableColumns=Math.abs(t);t=F.lookahead;if(sRW.test(t)){u=[];for(var J=0,g=!1,Y=0,Q=void 0;J<t.length;){var e=Y>=3;switch(t[J]){case "-":Y++;break;case "|":g&&(u.push(Q),Q=void 0,Y=0);g=!0;break;case ":":Q||e||(Q="left"),!Q&&e&&(Q="right"),Q==="left"&&e&&(Q="center")}J++}t=u}else t=void 0;q._columnAlignment=t;q=F.addChild("row",
F.nextNonspace);q._isHeader=!0;P6(F,F.currentLine.length-F.offset,!1);q._string_content=F.currentLine;return 1}return 0},
function(F,q){if(q.type=="table"&&wQ(F.currentLine)!==0){xx(F);var t=q;q=F.addChild("row",F.nextNonspace);wQ(F.currentLine)<0?q._rowIsDelimiter=!0:t._tableRows+=1;P6(F,F.currentLine.length-F.offset,!1);q._string_content=F.currentLine;return 2}return 0}],nNP=function(){var F={shouldParseIndentAsCodeBlock:!1};
F=F===void 0?{}:F;this.lastMatchedContainer=this.doc=l6_();this.refmap={};this.lastLineLength=0;this.inlineParser=new DX(F);this.options=F;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=JCL;this.blockStarts=ssj},gCE=function(F){F.partiallyConsumedTab&&(F.offset+=1,F.tip._string_content+=" ".repeat(4-F.column%
4));
F.tip._string_content+=F.currentLine.slice(F.offset)+"\n"};
nNP.prototype.addChild=function(F,q){for(;!this.blocks[this.tip.type].canContain(F);)this.finalize(this.tip,this.lineNumber-1);F=new i7(F,[[this.lineNumber,q+1],[0,0]]);F._string_content="";this.tip.appendChild(F);return this.tip=F};
var xx=function(F){if(!F.allClosed){for(;F.oldtip!==F.lastMatchedContainer;){var q=F.oldtip._parent;F.finalize(F.oldtip,F.lineNumber-1);F.oldtip=q}F.allClosed=!0}},P6=function(F,q,t){for(var u=F.currentLine,J,g;q>0&&(g=u[F.offset]);)g==="\t"?(J=4-F.column%4,t?(F.partiallyConsumedTab=J>q,J=J>q?q:J,F.column+=J,F.offset+=F.partiallyConsumedTab?0:1,q-=J):(F.partiallyConsumedTab=!1,F.column+=J,F.offset+=1,--q)):(F.partiallyConsumedTab=!1,F.offset+=1,F.column+=1,--q)},Ow=function(F){F.offset=F.nextNonspace;
F.column=F.nextNonspaceColumn;F.partiallyConsumedTab=!1},lz1=function(F){for(var q=F.currentLine,t=F.offset,u=F.column,J;(J=q.charAt(t))!=="";)if(J===" ")t++,u++;
else if(J==="\t")t++,u+=4-u%4;else break;F.blank=J==="\n"||J==="\r"||J==="";F.nextNonspace=t;F.nextNonspaceColumn=u;F.indent=F.nextNonspaceColumn-F.column;F.indented=F.indent>=4};
nNP.prototype.finalize=function(F,q){var t=F._parent;F._open=!1;F.sourcepos[1]=[q,this.lastLineLength];this.blocks[F.type].finalize(this,F);this.tip=t};
nNP.prototype.parse=function(F){this.tip=this.doc=l6_();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!F)return this.doc;this.options.time&&console.time("preparing input");var q=F.split(upO),t=q.length;F.charCodeAt(F.length-1)===10&&--t;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(F=0;F<t;F++)a:{var u=void 0,J=q[F],g=q[F+1],Y=!0,Q=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;J.indexOf("\x00")!==-1&&(J=J.replace(/\0/g,"\ufffd"));this.currentLine=J;for(this.lookahead=g;(u=Q._lastChild)&&u._open;){Q=u;lz1(this);switch(this.blocks[Q.type].continue(this,Q)){case 0:break;case 1:Y=!1;break;case 2:this.lastLineLength=J.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!Y){Q=Q._parent;break}}this.allClosed=Q===this.oldtip;this.lastMatchedContainer=
Q;u=Q.type!=="paragraph"&&JCL[Q.type].acceptsLines;g=this.blockStarts;for(Y=g.length;!u;){lz1(this);if(!this.indented&&!Lor.test(J.slice(this.nextNonspace))){Ow(this);break}for(var e=0;e<Y;){var r=g[e](this,Q);if(r===1){Q=this.tip;break}else if(r===2){Q=this.tip;u=!0;break}else e++}if(e===Y){Ow(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){xx(this);this.blank&&Q.lastChild&&(Q.lastChild._lastLineBlank=!0);u=Q.type;g=this.blank&&!(u==="block_quote"||u==="code_block"&&Q._isFenced||
u==="item"&&!Q._firstChild&&Q.sourcepos[0][0]===this.lineNumber);for(Y=Q;Y;)Y._lastLineBlank=g,Y=Y._parent;this.blocks[u].acceptsLines?(gCE(this),u==="html_block"&&Q._htmlBlockType>=1&&Q._htmlBlockType<=5&&KoC[Q._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(Q,this.lineNumber)):this.offset<J.length&&!this.blank&&(this.addChild("paragraph",this.offset),Ow(this),gCE(this))}else gCE(this);this.lastLineLength=J.length}for(;this.tip;)this.finalize(this.tip,t);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");J=new Zpe(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;t=J.next();)q=t.node,F=q.type,t.entering||F!=="paragraph"&&F!=="heading"&&F!=="th"&&F!="td"||this.inlineParser.parse(q);this.options.time&&console.timeEnd("inline parsing");return this.doc};Xr_.prototype.render=function(F){F=new Zpe(F);var q;this.buffer="";for(this.lastOut="\n";q=F.next();){var t=q.node.type;if(this[t])this[t](q.node,q.entering)}return this.buffer};
Xr_.prototype.out=function(F){A3(this,F)};
var A3=function(F,q){F.buffer+=q;F.lastOut=q};
Xr_.prototype.cr=function(){this.lastOut!=="\n"&&A3(this,"\n")};var XDn=/^javascript:|vbscript:|file:|data:/i,YOJ=/^data:image\/(?:png|gif|jpeg|webp)/i,pDz=function(F){return XDn.test(F)&&!YOJ.test(F)};
kz.prototype=Object.create(Xr_.prototype);_.l=kz.prototype;_.l.text=function(F){this.out(F.literal)};
_.l.html_inline=function(F){this.options.safe?A3(this,"\x3c!-- raw HTML omitted --\x3e"):A3(this,F.literal)};
_.l.html_block=function(F){this.cr();this.options.safe?A3(this,"\x3c!-- raw HTML omitted --\x3e"):A3(this,F.literal);this.cr()};
_.l.softbreak=function(){A3(this,this.options.softbreak)};
_.l.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.l.link=function(F,q){var t=this.attrs(F);q?(this.options.safe&&pDz(F.destination)||t.push(["href",Mk(F.destination,!0)]),F.title&&t.push(["title",Mk(F.title,!0)]),this.tag("a",t)):this.tag("/a")};
_.l.image=function(F,q){q?(this.disableTags===0&&(this.options.safe&&pDz(F.destination)?A3(this,'<img src="" alt="'):A3(this,'<img src="'+Mk(F.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(F.title&&A3(this,'" title="'+Mk(F.title,!0)),A3(this,'" />')))};
_.l.emph=function(F,q){this.tag(q?"em":"/em")};
_.l.strong=function(F,q){this.tag(q?"strong":"/strong")};
_.l.paragraph=function(F,q){var t=F.parent.parent;F=this.attrs(F);t!==null&&t.type==="list"&&t.listTight||(q?(this.cr(),this.tag("p",F)):(this.tag("/p"),this.cr()))};
_.l.heading=function(F,q){var t="h"+F.level;F=this.attrs(F);q?(this.cr(),this.tag(t,F)):(this.tag("/"+t),this.cr())};
_.l.code=function(F){this.tag("code");this.out(F.literal);this.tag("/code")};
_.l.code_block=function(F){var q=F.info?F.info.split(/\s+/):[],t=this.attrs(F);q.length>0&&q[0].length>0&&t.push(["class","language-"+Mk(q[0],!0)]);this.cr();this.tag("pre");this.tag("code",t);this.out(F.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.l.thematic_break=function(F){F=this.attrs(F);this.cr();this.tag("hr",F,!0);this.cr()};
_.l.block_quote=function(F,q){F=this.attrs(F);q?(this.cr(),this.tag("blockquote",F)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.l.list=function(F,q){var t=F.listType==="bullet"?"ul":"ol",u=this.attrs(F);q?(F=F.listStart,F!==null&&F!==1&&u.push(["start",F.toString()]),this.cr(),this.tag(t,u)):(this.cr(),this.tag("/"+t));this.cr()};
_.l.item=function(F,q){F=this.attrs(F);q?this.tag("li",F):(this.tag("/li"),this.cr())};
_.l.custom_inline=function(F,q){q&&F.onEnter?A3(this,F.onEnter):!q&&F.onExit&&A3(this,F.onExit)};
_.l.custom_block=function(F,q){this.cr();q&&F.onEnter?A3(this,F.onEnter):!q&&F.onExit&&A3(this,F.onExit);this.cr()};
_.l.table=function(F,q){F=this.attrs(F);q?(this.cr(),this.tag("table",F)):(this.tag("/table"),this.cr())};
_.l.row=function(F,q){F._rowIsDelimiter||(F=this.attrs(F),q?this.tag("tr",F):this.tag("/tr"))};
_.l.td=function(F,q){var t=this.attrs(F);F._alignment&&t.push(["align",F._alignment]);q?this.tag("td",t):this.tag("/td")};
_.l.th=function(F,q){var t=this.attrs(F);F._alignment&&t.push(["align",F._alignment]);q?this.tag("th",t):this.tag("/th")};
_.l.out=function(F){A3(this,Mk(F,!1))};
_.l.tag=function(F,q,t){if(!(this.disableTags>0)){this.buffer+="<"+F;if(q&&q.length>0){F=0;for(var u;(u=q[F])!==void 0;)this.buffer+=" "+u[0]+'="'+u[1]+'"',F++}t&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.l.attrs=function(F){var q=[];this.options.sourcepos&&(F=F.sourcepos)&&q.push(["data-sourcepos",String(F[0][0])+":"+String(F[0][1])+"-"+String(F[1][0])+":"+String(F[1][1])]);return q};
kz.prototype.text=kz.prototype.text;kz.prototype.html_inline=kz.prototype.html_inline;kz.prototype.html_block=kz.prototype.html_block;kz.prototype.softbreak=kz.prototype.softbreak;kz.prototype.linebreak=kz.prototype.linebreak;kz.prototype.link=kz.prototype.link;kz.prototype.image=kz.prototype.image;kz.prototype.emph=kz.prototype.emph;kz.prototype.strong=kz.prototype.strong;kz.prototype.paragraph=kz.prototype.paragraph;kz.prototype.heading=kz.prototype.heading;kz.prototype.code=kz.prototype.code;
kz.prototype.code_block=kz.prototype.code_block;kz.prototype.thematic_break=kz.prototype.thematic_break;kz.prototype.block_quote=kz.prototype.block_quote;kz.prototype.list=kz.prototype.list;kz.prototype.item=kz.prototype.item;kz.prototype.custom_inline=kz.prototype.custom_inline;kz.prototype.custom_block=kz.prototype.custom_block;kz.prototype.table=kz.prototype.table;kz.prototype.row=kz.prototype.row;kz.prototype.td=kz.prototype.td;kz.prototype.th=kz.prototype.th;kz.prototype.out=kz.prototype.out;
kz.prototype.tag=kz.prototype.tag;kz.prototype.attrs=kz.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 Qsr,e71,mu_;(function(){function F(I,A){return I<A?-1:I>A?1:I>=A?0:NaN}
function q(I){return function(A,y){return F(I(A),y)}}
function t(){for(var I=0,A=arguments.length,y={},qA;I<A;++I){if(!(qA=arguments[I]+"")||qA in y)throw Error("re`"+qA);y[qA]=[]}return new u(y)}
function u(I){this._=I}
function J(I,A){return I.trim().split(/^|\s+/).map(function(y){var qA="",Xq=y.indexOf(".");Xq>=0&&(qA=y.slice(Xq+1),y=y.slice(0,Xq));if(y&&!A.hasOwnProperty(y))throw Error("se`"+y);return{type:y,name:qA}})}
function g(I,A,y){for(var qA=0,Xq=I.length;qA<Xq;++qA)if(I[qA].name===A){I[qA]=uSh;I=I.slice(0,qA).concat(I.slice(qA+1));break}y!=null&&I.push({name:A,value:y});return I}
function Y(I){var A=I,y=A.indexOf(":");y>=0&&(A=I.slice(0,y))!=="xmlns"&&(I=I.slice(y+1));return bZ.hasOwnProperty(A)?{space:bZ[A],local:I}:I}
function Q(I){return function(){var A=this.ownerDocument,y=this.namespaceURI;return y==="http://www.w3.org/1999/xhtml"&&A.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?A.createElement(I):A.createElementNS(y,I)}}
function e(I){return function(){return this.ownerDocument.createElementNS(I.space,I.local)}}
function r(I){I=Y(I);return(I.local?e:Q)(I)}
function N(){}
function w(I){return I==null?N:function(){return this.querySelector(I)}}
function k(I){return Array(I.length)}
function z(I,A){this.ownerDocument=I.ownerDocument;this.namespaceURI=I.namespaceURI;this._next=null;this._parent=I;this.__data__=A}
function T(I){return function(){return I}}
function P(I,A,y,qA,Xq,wf){for(var MA=0,Ao,tE=A.length,a_=wf.length;MA<a_;++MA)(Ao=A[MA])?(Ao.__data__=wf[MA],qA[MA]=Ao):y[MA]=new z(I,wf[MA]);for(;MA<tE;++MA)if(Ao=A[MA])Xq[MA]=Ao}
function v(I,A,y,qA,Xq,wf,MA){var Ao,tE,a_={},uJ=A.length,rx=wf.length,Le=Array(uJ),Gv;for(Ao=0;Ao<uJ;++Ao)if(tE=A[Ao])Le[Ao]=Gv="$"+MA.call(tE,tE.__data__,Ao,A),Gv in a_?Xq[Ao]=tE:a_[Gv]=tE;for(Ao=0;Ao<rx;++Ao)Gv="$"+MA.call(I,wf[Ao],Ao,wf),(tE=a_[Gv])?(qA[Ao]=tE,tE.__data__=wf[Ao],a_[Gv]=null):y[Ao]=new z(I,wf[Ao]);for(Ao=0;Ao<uJ;++Ao)(tE=A[Ao])&&a_[Le[Ao]]===tE&&(Xq[Ao]=tE)}
function H(I,A){return I<A?-1:I>A?1:I>=A?0:NaN}
function d(I){return function(){this.removeAttribute(I)}}
function a(I){return function(){this.removeAttributeNS(I.space,I.local)}}
function S(I,A){return function(){this.setAttribute(I,A)}}
function K(I,A){return function(){this.setAttributeNS(I.space,I.local,A)}}
function h(I,A){return function(){var y=A.apply(this,arguments);y==null?this.removeAttribute(I):this.setAttribute(I,y)}}
function c(I,A){return function(){var y=A.apply(this,arguments);y==null?this.removeAttributeNS(I.space,I.local):this.setAttributeNS(I.space,I.local,y)}}
function rf(I){return function(){this.style.removeProperty(I)}}
function Zv(I,A,y){return function(){this.style.setProperty(I,A,y)}}
function kP(I,A,y){return function(){var qA=A.apply(this,arguments);qA==null?this.style.removeProperty(I):this.style.setProperty(I,qA,y)}}
function n3(I,A){return I.style.getPropertyValue(A)||(I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView).getComputedStyle(I,null).getPropertyValue(A)}
function o_(I){return function(){delete this[I]}}
function df(I,A){return function(){this[I]=A}}
function m$(I,A){return function(){var y=A.apply(this,arguments);y==null?delete this[I]:this[I]=y}}
function gx(){this.textContent=""}
function Hf(I){return function(){this.textContent=I}}
function Zw(I){return function(){var A=I.apply(this,arguments);this.textContent=A==null?"":A}}
function cy(){this.innerHTML=""}
function wx(I){return function(){this.innerHTML=I}}
function Rj(I){return function(){var A=I.apply(this,arguments);this.innerHTML=A==null?"":A}}
function xO(){return null}
function DQ(){var I=this.parentNode;I&&I.removeChild(this)}
function fe(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function sM(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function FL(I,A,y){I=Ev(I,A,y);return function(qA){var Xq=qA.relatedTarget;Xq&&(Xq===this||Xq.compareDocumentPosition(this)&8)||I.call(this,qA)}}
function Ev(I,A,y){return function(){I.call(this,this.__data__,A,y)}}
function e5(I){return I.trim().split(/^|\s+/).map(function(A){var y="",qA=A.indexOf(".");qA>=0&&(y=A.slice(qA+1),A=A.slice(0,qA));return{type:A,name:y}})}
function z1(I){return function(){var A=this.__on;if(A){for(var y=0,qA=-1,Xq=A.length,wf;y<Xq;++y)(wf=A[y],I.type&&wf.type!==I.type||wf.name!==I.name)?A[++qA]=wf:this.removeEventListener(wf.type,wf.listener,wf.capture);++qA?A.length=qA:delete this.__on}}}
function qD(I,A,y){var qA=f2z.hasOwnProperty(I.type)?FL:Ev;return function(Xq,wf,MA){Xq=this.__on;var Ao;wf=qA(A,wf,MA);if(Xq){MA=0;for(var tE=Xq.length;MA<tE;++MA)if((Ao=Xq[MA]).type===I.type&&Ao.name===I.name){this.removeEventListener(Ao.type,Ao.listener,Ao.capture);this.addEventListener(Ao.type,Ao.listener=wf,Ao.capture=y);Ao.value=A;return}}this.addEventListener(I.type,wf,y);Ao={type:I.type,name:I.name,value:A,listener:wf,capture:y};Xq?Xq.push(Ao):this.__on=[Ao]}}
function gL(I,A,y){var qA=I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView,Xq=qA.CustomEvent;typeof Xq==="function"?Xq=new Xq(A,y):(Xq=qA.document.createEvent("Event"),y?(Xq.initEvent(A,y.bubbles,y.cancelable),Xq.detail=y.detail):Xq.initEvent(A,!1,!1));I.dispatchEvent(Xq)}
function F3(I,A){return function(){return gL(this,I,A)}}
function pe(I,A){return function(){return gL(this,I,A.apply(this,arguments))}}
function Bf(I,A){this._groups=I;this._parents=A}
function wJ(){return new Bf([[document.documentElement]],J1s)}
function Dw(){this._="@"+(++stw).toString(36)}
function Wf(I,A,y){I.prototype=A.prototype=y;y.constructor=I}
function zv(I,A){I=Object.create(I.prototype);for(var y in A)I[y]=A[y];return I}
function R2(){}
function ND(I){var A;I=(I+"").trim().toLowerCase();return(A=gHh.exec(I))?(A=parseInt(A[1],16),new h9(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1)):(A=l17.exec(I))?Pn(parseInt(A[1],16)):(A=XX3.exec(I))?new h9(A[1],A[2],A[3],1):(A=YqT.exec(I))?new h9(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=pXJ.exec(I))?OT(A[1],A[2],A[3],A[4]):(A=Qtv.exec(I))?OT(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=eOJ.exec(I))?tf(A[1],A[2]/100,A[3]/100,1):(A=Zuh.exec(I))?tf(A[1],A[2]/100,A[3]/100,A[4]):a2O.hasOwnProperty(I)?
Pn(a2O[I]):I==="transparent"?new h9(NaN,NaN,NaN,0):null}
function Pn(I){return new h9(I>>16&255,I>>8&255,I&255,1)}
function OT(I,A,y,qA){qA<=0&&(I=A=y=NaN);return new h9(I,A,y,qA)}
function dx(I){I instanceof R2||(I=ND(I));if(!I)return new h9;I=I.rgb();return new h9(I.r,I.g,I.b,I.opacity)}
function $7(I,A,y,qA){return arguments.length===1?dx(I):new h9(I,A,y,qA==null?1:qA)}
function h9(I,A,y,qA){this.r=+I;this.g=+A;this.b=+y;this.opacity=+qA}
function JQ(I){I=Math.max(0,Math.min(255,Math.round(I)||0));return(I<16?"0":"")+I.toString(16)}
function tf(I,A,y,qA){qA<=0?I=A=y=NaN:y<=0||y>=1?I=A=NaN:A<=0&&(I=NaN);return new Wt(I,A,y,qA)}
function lQ(I){if(I instanceof Wt)return new Wt(I.h,I.s,I.l,I.opacity);I instanceof R2||(I=ND(I));if(!I)return new Wt;if(I instanceof Wt)return I;I=I.rgb();var A=I.r/255,y=I.g/255,qA=I.b/255,Xq=Math.min(A,y,qA),wf=Math.max(A,y,qA),MA=NaN,Ao=wf-Xq,tE=(wf+Xq)/2;Ao?(MA=A===wf?(y-qA)/Ao+(y<qA)*6:y===wf?(qA-A)/Ao+2:(A-y)/Ao+4,Ao/=tE<.5?wf+Xq:2-wf-Xq,MA*=60):Ao=tE>0&&tE<1?0:MA;return new Wt(MA,Ao,tE,I.opacity)}
function yF(I,A,y,qA){return arguments.length===1?lQ(I):new Wt(I,A,y,qA==null?1:qA)}
function Wt(I,A,y,qA){this.h=+I;this.s=+A;this.l=+y;this.opacity=+qA}
function Es(I,A,y){return(I<60?A+(y-A)*I/60:I<180?y:I<240?A+(y-A)*(240-I)/60:A)*255}
function WD(I){if(I instanceof Dv)return new Dv(I.l,I.a,I.b,I.opacity);if(I instanceof ne){if(isNaN(I.h))return new Dv(I.l,0,0,I.opacity);var A=I.h*jle;return new Dv(I.l,Math.cos(A)*I.c,Math.sin(A)*I.c,I.opacity)}I instanceof h9||(I=dx(I));var y=ZQ(I.r),qA=ZQ(I.g),Xq=ZQ(I.b);A=$P(.2225045*y+.7168786*qA+.0606169*Xq);if(y===qA&&qA===Xq)var wf=y=A;else wf=$P((.4360747*y+.3850649*qA+.1430804*Xq)/.96422),y=$P((.0139322*y+.0971045*qA+.7141733*Xq)/.82521);return new Dv(116*A-16,500*(wf-A),200*(A-y),I.opacity)}
function Dv(I,A,y,qA){this.l=+I;this.a=+A;this.b=+y;this.opacity=+qA}
function $P(I){return I>ROQ?Math.pow(I,1/3):I/chE+FSO}
function SW(I){return I>RT?I*I*I:chE*(I-FSO)}
function kO(I){return 255*(I<=.0031308?12.92*I:1.055*Math.pow(I,1/2.4)-.055)}
function ZQ(I){return(I/=255)<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}
function AQ(I){if(I instanceof ne)return new ne(I.h,I.c,I.l,I.opacity);I instanceof Dv||(I=WD(I));if(I.a===0&&I.b===0)return new ne(NaN,0,I.l,I.opacity);var A=Math.atan2(I.b,I.a)*qhr;return new ne(A<0?A+360:A,Math.sqrt(I.a*I.a+I.b*I.b),I.l,I.opacity)}
function MD(I,A,y,qA){return arguments.length===1?AQ(I):new ne(I,A,y,qA==null?1:qA)}
function ne(I,A,y,qA){this.h=+I;this.c=+A;this.l=+y;this.opacity=+qA}
function oj(I,A,y,qA){if(arguments.length===1){var Xq=I;if(Xq instanceof Iy)Xq=new Iy(Xq.h,Xq.s,Xq.l,Xq.opacity);else{Xq instanceof h9||(Xq=dx(Xq));var wf=Xq.g/255,MA=Xq.b/255,Ao=(t$1*MA+Xq.r/255*-1.7884503806-3.5172982438*wf)/(t$1+-1.7884503806-3.5172982438);MA-=Ao;var tE=(1.97294*(wf-Ao)- -.29227*MA)/-.90649;MA=(wf=Math.sqrt(tE*tE+MA*MA)/(1.97294*Ao*(1-Ao)))?Math.atan2(tE,MA)*qhr-120:NaN;Xq=new Iy(MA<0?MA+360:MA,wf,Ao,Xq.opacity)}}else Xq=new Iy(I,A,y,qA==null?1:qA);return Xq}
function Iy(I,A,y,qA){this.h=+I;this.s=+A;this.l=+y;this.opacity=+qA}
function ie(I,A,y,qA,Xq){var wf=I*I,MA=wf*I;return((1-3*I+3*wf-MA)*A+(4-6*wf+3*MA)*y+(1+3*I+3*wf-3*MA)*qA+MA*Xq)/6}
function Nn(I){return function(){return I}}
function T0(I,A){return function(y){return I+y*A}}
function Cq(I,A,y){return I=Math.pow(I,y),A=Math.pow(A,y)-I,y=1/y,function(qA){return Math.pow(I+qA*A,y)}}
function be(I,A){var y=A-I;return y?T0(I,y>180||y<-180?y-360*Math.round(y/360):y):Nn(isNaN(I)?A:I)}
function dP(I){return(I=+I)===1?SJ:function(A,y){return y-A?Cq(A,y,I):Nn(isNaN(A)?y:A)}}
function SJ(I,A){var y=A-I;return y?T0(I,y):Nn(isNaN(I)?A:I)}
function oE(I){return function(A){var y=A.length,qA=Array(y),Xq=Array(y),wf=Array(y),MA;for(MA=0;MA<y;++MA){var Ao=$7(A[MA]);qA[MA]=Ao.r||0;Xq[MA]=Ao.g||0;wf[MA]=Ao.b||0}qA=I(qA);Xq=I(Xq);wf=I(wf);Ao.opacity=1;return function(tE){Ao.r=qA(tE);Ao.g=Xq(tE);Ao.b=wf(tE);return Ao+""}}}
function X$(I,A){return I=+I,A-=I,function(y){return I+A*y}}
function OO(I){return function(){return I}}
function Ne(I){return function(A){return I(A)+""}}
function L3(I,A){var y=g9o.lastIndex=ls3.lastIndex=0,qA,Xq,wf,MA=-1,Ao=[],tE=[];I+="";for(A+="";(qA=g9o.exec(I))&&(Xq=ls3.exec(A));)(wf=Xq.index)>y&&(wf=A.slice(y,wf),Ao[MA]?Ao[MA]+=wf:Ao[++MA]=wf),(qA=qA[0])===(Xq=Xq[0])?Ao[MA]?Ao[MA]+=Xq:Ao[++MA]=Xq:(Ao[++MA]=null,tE.push({i:MA,x:X$(qA,Xq)})),y=ls3.lastIndex;y<A.length&&(wf=A.slice(y),Ao[MA]?Ao[MA]+=wf:Ao[++MA]=wf);return Ao.length<2?tE[0]?Ne(tE[0].x):OO(A):(A=tE.length,function(a_){for(var uJ=0,rx;uJ<A;++uJ)Ao[(rx=tE[uJ]).i]=rx.x(a_);return Ao.join("")})}
function iw(I,A,y,qA,Xq,wf){var MA,Ao,tE;if(MA=Math.sqrt(I*I+A*A))I/=MA,A/=MA;if(tE=I*y+A*qA)y-=I*tE,qA-=A*tE;if(Ao=Math.sqrt(y*y+qA*qA))y/=Ao,qA/=Ao,tE/=Ao;I*qA<A*y&&(I=-I,A=-A,tE=-tE,MA=-MA);return{translateX:Xq,translateY:wf,rotate:Math.atan2(A,I)*uDJ,skewX:Math.atan(tE)*uDJ,scaleX:MA,scaleY:Ao}}
function Tv(I,A,y,qA){function Xq(a_){return a_.length?a_.pop()+" ":""}
function wf(a_,uJ,rx,Le,Gv,z9){a_!==rx||uJ!==Le?(Gv=Gv.push("translate(",null,A,null,y),z9.push({i:Gv-4,x:X$(a_,rx)},{i:Gv-2,x:X$(uJ,Le)})):(rx||Le)&&Gv.push("translate("+rx+A+Le+y)}
function MA(a_,uJ,rx,Le){a_!==uJ?(a_-uJ>180?uJ+=360:uJ-a_>180&&(a_+=360),Le.push({i:rx.push(Xq(rx)+"rotate(",null,qA)-2,x:X$(a_,uJ)})):uJ&&rx.push(Xq(rx)+"rotate("+uJ+qA)}
function Ao(a_,uJ,rx,Le){a_!==uJ?Le.push({i:rx.push(Xq(rx)+"skewX(",null,qA)-2,x:X$(a_,uJ)}):uJ&&rx.push(Xq(rx)+"skewX("+uJ+qA)}
function tE(a_,uJ,rx,Le,Gv,z9){a_!==rx||uJ!==Le?(Gv=Gv.push(Xq(Gv)+"scale(",null,",",null,")"),z9.push({i:Gv-4,x:X$(a_,rx)},{i:Gv-2,x:X$(uJ,Le)})):rx===1&&Le===1||Gv.push(Xq(Gv)+"scale("+rx+","+Le+")")}
return function(a_,uJ){var rx=[],Le=[];a_=I(a_);uJ=I(uJ);wf(a_.translateX,a_.translateY,uJ.translateX,uJ.translateY,rx,Le);MA(a_.rotate,uJ.rotate,rx,Le);Ao(a_.skewX,uJ.skewX,rx,Le);tE(a_.scaleX,a_.scaleY,uJ.scaleX,uJ.scaleY,rx,Le);a_=uJ=null;return function(Gv){for(var z9=-1,SS=Le.length,Do;++z9<SS;)rx[(Do=Le[z9]).i]=Do.x(Gv);return rx.join("")}}}
function lw(I){return function(A,y){var qA=I((A=yF(A)).h,(y=yF(y)).h),Xq=SJ(A.s,y.s),wf=SJ(A.l,y.l),MA=SJ(A.opacity,y.opacity);return function(Ao){A.h=qA(Ao);A.s=Xq(Ao);A.l=wf(Ao);A.opacity=MA(Ao);return A+""}}}
function Z4(I){return function(A,y){var qA=I((A=MD(A)).h,(y=MD(y)).h),Xq=SJ(A.c,y.c),wf=SJ(A.l,y.l),MA=SJ(A.opacity,y.opacity);return function(Ao){A.h=qA(Ao);A.c=Xq(Ao);A.l=wf(Ao);A.opacity=MA(Ao);return A+""}}}
function Ks(I){return function qA(y){function Xq(wf,MA){var Ao=I((wf=oj(wf)).h,(MA=oj(MA)).h),tE=SJ(wf.s,MA.s),a_=SJ(wf.l,MA.l),uJ=SJ(wf.opacity,MA.opacity);return function(rx){wf.h=Ao(rx);wf.s=tE(rx);wf.l=a_(Math.pow(rx,y));wf.opacity=uJ(rx);return wf+""}}
y=+y;Xq.gamma=qA;return Xq}(1)}
function yS(){return fy||(J8z(jg),fy=OQ.now()+mhM)}
function jg(){fy=0}
function PD(){this._call=this._time=this._next=null}
function MG(I,A,y){var qA=new PD;qA.restart(I,A,y);return qA}
function TL(){fy=($hq=OQ.now())+mhM;rA=P4=0;try{yS();++rA;for(var I=bEv,A;I;)(A=fy-I._time)>=0&&I._call.call(null,A),I=I._next;--rA}finally{rA=0;I=bEv;for(var y=Infinity;I;)if(I._call){y>I._time&&(y=I._time);var qA=I;I=I._next}else A=I._next,I._next=null,I=qA?qA._next=A:bEv=A;x_=qA;GL(y);fy=0}}
function fHt(){var I=OQ.now(),A=I-$hq;A>1E3&&(mhM-=A,$hq=I)}
function GL(I){rA||(P4&&(P4=clearTimeout(P4)),I-fy>24?(I<Infinity&&(P4=setTimeout(TL,I-OQ.now()-mhM)),A2&&(A2=clearInterval(A2))):(A2||($hq=OQ.now(),A2=setInterval(fHt,1E3)),rA=1,J8z(TL)))}
function sgv(I,A,y){var qA=new PD;A=A==null?0:+A;qA.restart(function(Xq){qA.stop();I(Xq+A)},A,y);
return qA}
function XPo(I,A,y,qA,Xq,wf){var MA=I.__transition;if(!MA)I.__transition={};else if(y in MA)return;r1J(I,y,{name:A,index:qA,group:Xq,on:NRQ,tween:wX9,time:wf.time,delay:wf.delay,duration:wf.duration,ease:wf.ease,timer:null,state:0})}
function YbP(I,A){I=GS(I,A);if(I.state>0)throw Error("te");return I}
function ao(I,A){I=GS(I,A);if(I.state>2)throw Error("ue");return I}
function GS(I,A){I=I.__transition;if(!I||!(I=I[A]))throw Error("ve");return I}
function r1J(I,A,y){function qA(tE){var a_,uJ;if(y.state!==1)return wf();for(Le in MA){var rx=MA[Le];if(rx.name===y.name){if(rx.state===3)return sgv(qA);rx.state===4?(rx.state=6,rx.timer.stop(),rx.on.call("interrupt",I,I.__data__,rx.index,rx.group),delete MA[Le]):+Le<A&&(rx.state=6,rx.timer.stop(),delete MA[Le])}}sgv(function(){y.state===3&&(y.state=4,y.timer.restart(Xq,y.delay,y.time),Xq(tE))});
y.state=2;y.on.call("start",I,I.__data__,y.index,y.group);if(y.state===2){y.state=3;Ao=Array(uJ=y.tween.length);var Le=0;for(a_=-1;Le<uJ;++Le)if(rx=y.tween[Le].value.call(I,I.__data__,y.index,y.group))Ao[++a_]=rx;Ao.length=a_+1}}
function Xq(tE){tE=tE<y.duration?y.ease.call(null,tE/y.duration):(y.timer.restart(wf),y.state=5,1);for(var a_=-1,uJ=Ao.length;++a_<uJ;)Ao[a_].call(null,tE);y.state===5&&(y.on.call("end",I,I.__data__,y.index,y.group),wf())}
function wf(){y.state=6;y.timer.stop();delete MA[A];for(var tE in MA)return;delete I.__transition}
var MA=I.__transition,Ao;MA[A]=y;y.timer=MG(function(tE){y.state=1;y.timer.restart(qA,y.delay,y.time);y.delay<=tE&&qA(tE-y.delay)},0,y.time)}
function iuv(I,A){var y,qA;return function(){var Xq=ao(this,I),wf=Xq.tween;if(wf!==y){qA=y=wf;wf=0;for(var MA=qA.length;wf<MA;++wf)if(qA[wf].name===A){qA=qA.slice();qA.splice(wf,1);break}}Xq.tween=qA}}
function kYT(I,A,y){var qA,Xq;if(typeof y!=="function")throw Error();return function(){var wf=ao(this,I),MA=wf.tween;if(MA!==qA){Xq=(qA=MA).slice();MA={name:A,value:y};for(var Ao=0,tE=Xq.length;Ao<tE;++Ao)if(Xq[Ao].name===A){Xq[Ao]=MA;break}Ao===tE&&Xq.push(MA)}wf.tween=Xq}}
function pPC(I,A,y){var qA=I._id;I.each(function(){var Xq=ao(this,qA);(Xq.value||(Xq.value={}))[A]=y.apply(this,arguments)});
return function(Xq){return GS(Xq,qA).value[A]}}
function gQv(I,A){var y;return(typeof A==="number"?X$:A instanceof ND?lDJ:(y=ND(A))?(A=y,lDJ):L3)(I,A)}
function EH3(I){return function(){this.removeAttribute(I)}}
function zOC(I){return function(){this.removeAttributeNS(I.space,I.local)}}
function oHs(I,A,y){var qA,Xq;return function(){var wf=this.getAttribute(I);return wf===y?null:wf===qA?Xq:Xq=A(qA=wf,y)}}
function nHw(I,A,y){var qA,Xq;return function(){var wf=this.getAttributeNS(I.space,I.local);return wf===y?null:wf===qA?Xq:Xq=A(qA=wf,y)}}
function MGv(I,A,y){var qA,Xq,wf;return function(){var MA=y(this);if(MA==null)return void this.removeAttribute(I);var Ao=this.getAttribute(I);return Ao===MA?null:Ao===qA&&MA===Xq?wf:wf=A(qA=Ao,Xq=MA)}}
function TRh(I,A,y){var qA,Xq,wf;return function(){var MA=y(this);if(MA==null)return void this.removeAttributeNS(I.space,I.local);var Ao=this.getAttributeNS(I.space,I.local);return Ao===MA?null:Ao===qA&&MA===Xq?wf:wf=A(qA=Ao,Xq=MA)}}
function GYQ(I,A){function y(){var qA=this,Xq=A.apply(qA,arguments);return Xq&&function(wf){qA.setAttributeNS(I.space,I.local,Xq(wf))}}
y._value=A;return y}
function DX7(I,A){function y(){var qA=this,Xq=A.apply(qA,arguments);return Xq&&function(wf){qA.setAttribute(I,Xq(wf))}}
y._value=A;return y}
function Wlh(I,A){return function(){YbP(this,I).delay=+A.apply(this,arguments)}}
function OuJ(I,A){return A=+A,function(){YbP(this,I).delay=A}}
function P49(I,A){return function(){ao(this,I).duration=+A.apply(this,arguments)}}
function xXy(I,A){return A=+A,function(){ao(this,I).duration=A}}
function A1Q(I,A){if(typeof A!=="function")throw Error();return function(){ao(this,I).ease=A}}
function vHv(I){return(I+"").trim().split(/^|\s+/).every(function(A){var y=A.indexOf(".");y>=0&&(A=A.slice(0,y));return!A||A==="start"})}
function I19(I,A,y){var qA,Xq,wf=vHv(A)?YbP:ao;return function(){var MA=wf(this,I),Ao=MA.on;if(Ao!==qA)(Xq=(qA=Ao).copy()).on(A,y);MA.on=Xq}}
function Huv(I){return function(){var A=this.parentNode,y;for(y in this.__transition)if(+y!==I)return;A&&A.removeChild(this)}}
function mXv(I,A){var y,qA,Xq;return function(){var wf=n3(this,I),MA=(this.style.removeProperty(I),n3(this,I));return wf===MA?null:wf===y&&MA===qA?Xq:Xq=A(y=wf,qA=MA)}}
function $XQ(I){return function(){this.style.removeProperty(I)}}
function buT(I,A,y){var qA,Xq;return function(){var wf=n3(this,I);return wf===y?null:wf===qA?Xq:Xq=A(qA=wf,y)}}
function y13(I,A,y){var qA,Xq,wf;return function(){var MA=n3(this,I),Ao=y(this);Ao==null&&(Ao=(this.style.removeProperty(I),n3(this,I)));return MA===Ao?null:MA===qA&&Ao===Xq?wf:wf=A(qA=MA,Xq=Ao)}}
function C4C(I,A,y){function qA(){var Xq=this,wf=A.apply(Xq,arguments);return wf&&function(MA){Xq.style.setProperty(I,wf(MA),y)}}
qA._value=A;return qA}
function dX9(I){return function(){this.textContent=I}}
function VG3(I){return function(){var A=I(this);this.textContent=A==null?"":A}}
function fA(I,A,y,qA){this._groups=I;this._parents=A;this._name=y;this._id=qA}
function QwA(I){return{type:I}}
function epy(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function yUt(){}
function XGC(I,A){var y=new yUt;if(I instanceof yUt)I.each(function(MA,Ao){y.set(Ao,MA)});
else if(Array.isArray(I)){var qA=-1,Xq=I.length,wf;if(A==null)for(;++qA<Xq;)y.set(qA,I[qA]);else for(;++qA<Xq;)y.set(A(wf=I[qA],qA,I),wf)}else if(I)for(qA in I)y.set(qA,I[qA]);return y}
function CKW(){}
function Yhn(I){return function(A){for(var y={},qA=0;qA<I.length;qA++)y[I[qA]]=A[qA]||"";return y}}
function UXs(I,A){var y=Yhn(I);return function(qA,Xq){return A(y(qA),Xq,I)}}
function Sq9(I){var A=Object.create(null),y=[];I.forEach(function(qA){for(var Xq in qA)Xq in A||y.push(A[Xq]=Xq)});
return y}
function pGw(I){function A(MA,Ao){function tE(){if(z9)return ZAq;if(SS)return SS=!1,Qgn;var LM,St=rx,RY;if(MA.charCodeAt(St)===34){for(;rx++<uJ&&MA.charCodeAt(rx)!==34||MA.charCodeAt(++rx)===34;);(LM=rx)>=uJ?z9=!0:(RY=MA.charCodeAt(rx++))===10?SS=!0:RY===13&&(SS=!0,MA.charCodeAt(rx)===10&&++rx);return MA.slice(St+1,LM-1).replace(/""/g,'"')}for(;rx<uJ;){if((RY=MA.charCodeAt(LM=rx++))===10)SS=!0;else if(RY===13)SS=!0,MA.charCodeAt(rx)===10&&++rx;else if(RY!==wf)continue;return MA.slice(St,LM)}return z9=
!0,MA.slice(St,uJ)}
var a_=[],uJ=MA.length,rx=0,Le=0,Gv,z9=uJ<=0,SS=!1;MA.charCodeAt(uJ-1)===10&&--uJ;for(MA.charCodeAt(uJ-1)===13&&--uJ;(Gv=tE())!==ZAq;){for(var Do=[];Gv!==Qgn&&Gv!==ZAq;)Do.push(Gv),Gv=tE();Ao&&(Do=Ao(Do,Le++))==null||a_.push(Do)}return a_}
function y(MA){return MA.map(qA).join(I)}
function qA(MA){return MA==null?"":Xq.test(MA)?'"'+MA.replace(/"/g,'""')+'"':MA}
var Xq=new RegExp('["'+I+"\n\r]"),wf=I.charCodeAt(0);return{parse:function(MA,Ao){var tE,a_;MA=A(MA,function(uJ,rx){if(tE)return tE(uJ,rx-1);a_=uJ;tE=Ao?UXs(uJ,Ao):Yhn(uJ)});
MA.columns=a_||[];return MA},
parseRows:A,format:function(MA,Ao){Ao==null&&(Ao=Sq9(MA));return[Ao.map(qA).join(I)].concat(MA.map(function(tE){return Ao.map(function(a_){return qA(tE[a_])}).join(I)})).join("\n")},
formatRows:function(MA){return MA.map(y).join("\n")}}}
function hOh(I){if(!I.ok)throw Error("we`"+I.status+"`"+I.statusText);return I.text()}
function ezv(I){return function(A,y,qA){arguments.length===2&&typeof y==="function"&&(qA=y,y=void 0);return fetch(A,y).then(hOh).then(function(Xq){return I(Xq,qA)})}}
function Z8w(I,A,y,qA){if(isNaN(A)||isNaN(y))return I;var Xq,wf=I._root;qA={data:qA};var MA=I._x0,Ao=I._y0,tE=I._x1,a_=I._y1,uJ,rx,Le,Gv,z9;if(!wf)return I._root=qA,I;for(;wf.length;)if((Le=A>=(uJ=(MA+tE)/2))?MA=uJ:tE=uJ,(Gv=y>=(rx=(Ao+a_)/2))?Ao=rx:a_=rx,Xq=wf,!(wf=wf[z9=Gv<<1|Le]))return Xq[z9]=qA,I;var SS=+I._x.call(null,wf.data);var Do=+I._y.call(null,wf.data);if(A===SS&&y===Do)return qA.next=wf,Xq?Xq[z9]=qA:I._root=qA,I;do Xq=Xq?Xq[z9]=Array(4):I._root=Array(4),(Le=A>=(uJ=(MA+tE)/2))?MA=uJ:tE=
uJ,(Gv=y>=(rx=(Ao+a_)/2))?Ao=rx:a_=rx;while((z9=Gv<<1|Le)===(Le=(Do>=rx)<<1|SS>=uJ));return Xq[Le]=wf,Xq[z9]=qA,I}
function $M(I,A,y,qA,Xq){this.node=I;this.x0=A;this.y0=y;this.x1=qA;this.y1=Xq}
function Kl9(I){return I[0]}
function BRD(I){return I[1]}
function RpW(I,A,y,qA,Xq,wf){this._x=I;this._y=A;this._x0=y;this._y0=qA;this._x1=Xq;this._y1=wf;this._root=void 0}
function Rzv(I){for(var A={data:I.data},y=A;I=I.next;)y=y.next={data:I.data};return A}
function dhy(I,A){if((A=(I=A?I.toExponential(A-1):I.toExponential()).indexOf("e"))<0)return null;var y=I.slice(0,A);return[y.length>1?y[0]+y.slice(2):y,+I.slice(A+1)]}
function Ll7(I){return I=dhy(Math.abs(I)),I?I[1]:NaN}
function f1v(I,A){return function(y,qA){for(var Xq=y.length,wf=[],MA=0,Ao=I[0],tE=0;Xq>0&&Ao>0;){tE+Ao+1>qA&&(Ao=Math.max(1,qA-tE));wf.push(y.substring(Xq-=Ao,Xq+Ao));if((tE+=Ao+1)>qA)break;Ao=I[MA=(MA+1)%I.length]}return wf.reverse().join(A)}}
function a15(I){return function(A){return A.replace(/[0-9]/g,function(y){return I[+y]})}}
function rBf(I){return new Nvv(I)}
function Nvv(I){if(!(A=jtD.exec(I)))throw Error("xe`"+I);var A;this.fill=A[1]||" ";this.align=A[2]||">";this.sign=A[3]||"-";this.symbol=A[4]||"";this.zero=!!A[5];this.width=A[6]&&+A[6];this.comma=!!A[7];this.precision=A[8]&&+A[8].slice(1);this.trim=!!A[9];this.type=A[10]||""}
function r8e(I,A){A=dhy(I,A);if(!A)return I+"";I=A[0];A=A[1];return A<0?"0."+Array(-A).join("0")+I:I.length>A+1?I.slice(0,A+1)+"."+I.slice(A+1):I+Array(A-I.length+2).join("0")}
function N7r(I){return I}
function c1y(I){function A(Ao){function tE(hQ){var lz=RY,Ch=ja,kn,Yn;if(St==="c")Ch=hO(hQ)+Ch,hQ="";else{hQ=+hQ;var x7=hQ<0;hQ=hO(Math.abs(hQ),Do);if(LM){var d2=hQ.length,$F=1,fM=-1;a:for(;$F<d2;++$F)switch(hQ[$F]){case ".":fM=kn=$F;break;case "0":fM===0&&(fM=$F);kn=$F;break;default:if(!+hQ[$F])break a;fM>0&&(fM=0)}hQ=fM>0?hQ.slice(0,fM)+hQ.slice(kn+1):hQ}x7&&+hQ===0&&(x7=!1);lz=(x7?rx==="("?rx:"-":rx==="-"||rx==="("?"":rx)+lz;Ch=(St==="s"?wGw[8+i8C/3]:"")+Ch+(x7&&rx==="("?")":"");if(ia)for(x7=-1,
kn=hQ.length;++x7<kn;)if(Yn=hQ.charCodeAt(x7),48>Yn||Yn>57){Ch=(Yn===46?Xq+hQ.slice(x7+1):hQ.slice(x7))+Ch;hQ=hQ.slice(0,x7);break}}SS&&!Gv&&(hQ=y(hQ,Infinity));Yn=lz.length+hQ.length+Ch.length;x7=Yn<z9?Array(z9-Yn+1).join(a_):"";SS&&Gv&&(hQ=y(x7+hQ,x7.length?z9-Ch.length:Infinity),x7="");switch(uJ){case "<":hQ=lz+hQ+Ch+x7;break;case "=":hQ=lz+x7+hQ+Ch;break;case "^":hQ=x7.slice(0,Yn=x7.length>>1)+lz+hQ+Ch+x7.slice(Yn);break;default:hQ=x7+lz+hQ+Ch}return wf(hQ)}
Ao=rBf(Ao);var a_=Ao.fill,uJ=Ao.align,rx=Ao.sign,Le=Ao.symbol,Gv=Ao.zero,z9=Ao.width,SS=Ao.comma,Do=Ao.precision,LM=Ao.trim,St=Ao.type;St==="n"?(SS=!0,St="g"):k_E[St]||(Do==null&&(Do=12),LM=!0,St="g");if(Gv||a_==="0"&&uJ==="=")Gv=!0,a_="0",uJ="=";var RY=Le==="$"?qA[0]:Le==="#"&&/[boxX]/.test(St)?"0"+St.toLowerCase():"",ja=Le==="$"?qA[1]:/[%p]/.test(St)?MA:"",hO=k_E[St],ia=/[defgprs%]/.test(St);Do=Do==null?6:/[gprs]/.test(St)?Math.max(1,Math.min(21,Do)):Math.max(0,Math.min(20,Do));tE.toString=function(){return Ao+
""};
return tE}
var y=I.grouping&&I.thousands?f1v(I.grouping,I.thousands):N7r,qA=I.currency,Xq=I.decimal,wf=I.numerals?a15(I.numerals):N7r,MA=I.percent||"%";return{format:A,formatPrefix:function(Ao,tE){var a_=A((Ao=rBf(Ao),Ao.type="f",Ao));Ao=Math.max(-8,Math.min(8,Math.floor(Ll7(tE)/3)))*3;var uJ=Math.pow(10,-Ao),rx=wGw[8+Ao/3];return function(Le){return a_(uJ*Le)+rx}}}}
function Gb(){this.reset()}
function EQd(I,A,y){var qA=I.s=A+y,Xq=qA-A;I.t=A-(qA-Xq)+(y-Xq)}
function Vv3(I){return I>1?yI:I<-1?-yI:Math.asin(I)}
function FL5(){}
function zzE(I){var A=I[0];I=I[1];var y=CZ(I);return[y*CZ(A),y*ob(A),ob(I)]}
function oQO(I,A){return[I[1]*A[2]-I[2]*A[1],I[2]*A[0]-I[0]*A[2],I[0]*A[1]-I[1]*A[0]]}
function nQv(I){var A=UhC(I[0]*I[0]+I[1]*I[1]+I[2]*I[2]);I[0]/=A;I[1]/=A;I[2]/=A}
function qXv(){var I=[],A;return{point:function(y,qA){A.push([y,qA])},
lineStart:function(){I.push(A=[])},
lineEnd:FL5,rejoin:function(){I.length>1&&I.push(I.pop().concat(I.shift()))},
result:function(){var y=I;I=[];A=null;return y}}}
function SVv(I,A,y,qA){this.x=I;this.z=A;this.o=y;this.e=qA;this.v=!1;this.n=this.p=null}
function tRv(I,A,y,qA,Xq){var wf=[],MA=[];I.forEach(function(rx){if(!((Le=rx.length-1)<=0)){var Le,Gv=rx[0],z9=rx[Le],SS=Gv;if(aw(SS[0]-z9[0])<1E-6&&aw(SS[1]-z9[1])<1E-6){Xq.lineStart();for(Ao=0;Ao<Le;++Ao)Xq.point((Gv=rx[Ao])[0],Gv[1]);Xq.lineEnd()}else wf.push(Le=new SVv(Gv,rx,null,!0)),MA.push(Le.o=new SVv(Gv,null,Le,!1)),wf.push(Le=new SVv(z9,rx,null,!1)),MA.push(Le.o=new SVv(z9,null,Le,!0))}});
if(wf.length){MA.sort(A);M$f(wf);M$f(MA);var Ao=0;for(I=MA.length;Ao<I;++Ao)MA[Ao].e=y=!y;y=wf[0];for(var tE;;){for(var a_=y,uJ=!0;a_.v;)if((a_=a_.n)===y)return;A=a_.z;Xq.lineStart();do{a_.v=a_.o.v=!0;if(a_.e){if(uJ)for(Ao=0,I=A.length;Ao<I;++Ao)Xq.point((tE=A[Ao])[0],tE[1]);else qA(a_.x,a_.n.x,1,Xq);a_=a_.n}else{if(uJ)for(A=a_.p.z,Ao=A.length-1;Ao>=0;--Ao)Xq.point((tE=A[Ao])[0],tE[1]);else qA(a_.x,a_.p.x,-1,Xq);a_=a_.p}a_=a_.o;A=a_.z;uJ=!uJ}while(!a_.v);Xq.lineEnd()}}}
function M$f(I){if(A=I.length){for(var A,y=0,qA=I[0],Xq;++y<A;)qA.n=Xq=I[y],Xq.p=qA,qA=Xq;qA.n=Xq=I[0];Xq.p=qA}}
function uZv(I){return I.length>1}
function JhJ(I,A){return((I=I.x)[0]<0?I[1]-yI-1E-6:yI-I[1])-((A=A.x)[0]<0?A[1]-yI-1E-6:yI-A[1])}
function wPv(){}
function T71(I){return function(A,y){var qA=CZ(A),Xq=CZ(y);qA=I(qA*Xq);return[qA*Xq*ob(A),qA*ob(y)]}}
function v4(I){return function(A,y){var qA=UhC(A*A+y*y),Xq=I(qA),wf=ob(Xq);Xq=CZ(Xq);return[G_x(A*wf,qA*Xq),Vv3(qA&&y*wf/qA)]}}
function sl7(I){var A=0,y=I.children,qA=y&&y.length;if(qA)for(;--qA>=0;)A+=y[qA].value;else A=1;I.value=A}
function D4E(I,A){var y=new Id(I);I=+I.value&&(y.value=I.value);var qA,Xq=[y],wf,MA,Ao,tE;for(A==null&&(A=gAD);qA=Xq.pop();)if(I&&(qA.value=+qA.data.value),(MA=A(qA.data))&&(tE=MA.length))for(qA.children=Array(tE),Ao=tE-1;Ao>=0;--Ao)Xq.push(wf=qA.children[Ao]=new Id(MA[Ao])),wf.parent=qA,wf.depth=qA.depth+1;return y.eachBefore(l2T)}
function gAD(I){return I.children}
function XQw(I){I.data=I.data.data}
function l2T(I){var A=0;do I.height=A;while((I=I.parent)&&I.height<++A)}
function Id(I){this.data=I;this.depth=this.height=0;this.parent=null}
function pJ(I,A,y,qA){function Xq(wf){return I(wf=new Date(+wf)),wf}
Xq.floor=Xq;Xq.ceil=function(wf){return I(wf=new Date(wf-1)),A(wf,1),I(wf),wf};
Xq.round=function(wf){var MA=Xq(wf),Ao=Xq.ceil(wf);return wf-MA<Ao-wf?MA:Ao};
Xq.offset=function(wf,MA){return A(wf=new Date(+wf),MA==null?1:Math.floor(MA)),wf};
Xq.range=function(wf,MA,Ao){var tE=[],a_;wf=Xq.ceil(wf);Ao=Ao==null?1:Math.floor(Ao);if(!(wf<MA&&Ao>0))return tE;do tE.push(a_=new Date(+wf)),A(wf,Ao),I(wf);while(a_<wf&&wf<MA);return tE};
Xq.filter=function(wf){return pJ(function(MA){if(MA>=MA)for(;I(MA),!wf(MA);)MA.setTime(MA-1)},function(MA,Ao){if(MA>=MA)if(Ao<0)for(;++Ao<=0;)for(;A(MA,-1),!wf(MA););
else for(;--Ao>=0;)for(;A(MA,1),!wf(MA););})};
y&&(Xq.count=function(wf,MA){iAM.setTime(+wf);kDA.setTime(+MA);I(iAM);I(kDA);return Math.floor(y(iAM,kDA))},Xq.every=function(wf){wf=Math.floor(wf);
return isFinite(wf)&&wf>0?wf>1?Xq.filter(qA?function(MA){return qA(MA)%wf===0}:function(MA){return Xq.count(0,MA)%wf===0}):Xq:null});
return Xq}
function jH(I){return pJ(function(A){A.setDate(A.getDate()-(A.getDay()+7-I)%7);A.setHours(0,0,0,0)},function(A,y){A.setDate(A.getDate()+y*7)},function(A,y){return(y-A-(y.getTimezoneOffset()-A.getTimezoneOffset())*6E4)/6048E5})}
function cY(I){return pJ(function(A){A.setUTCDate(A.getUTCDate()-(A.getUTCDay()+7-I)%7);A.setUTCHours(0,0,0,0)},function(A,y){A.setUTCDate(A.getUTCDate()+y*7)},function(A,y){return(y-A)/6048E5})}
function YX9(I){if(0<=I.y&&I.y<100){var A=new Date(-1,I.m,I.d,I.H,I.M,I.S,I.L);A.setFullYear(I.y);return A}return new Date(I.y,I.m,I.d,I.H,I.M,I.S,I.L)}
function hT$(I){if(0<=I.y&&I.y<100){var A=new Date(Date.UTC(-1,I.m,I.d,I.H,I.M,I.S,I.L));A.setUTCFullYear(I.y);return A}return new Date(Date.UTC(I.y,I.m,I.d,I.H,I.M,I.S,I.L))}
function H4(I){return{y:I,m:0,d:1,H:0,M:0,S:0,L:0}}
function pQT(I){function A(Ch,kn){return function(Yn){var x7=[],d2=-1,$F=0,fM=Ch.length,QF,gR;for(Yn instanceof Date||(Yn=new Date(+Yn));++d2<fM;)if(Ch.charCodeAt(d2)===37){x7.push(Ch.slice($F,d2));($F=WSj[QF=Ch.charAt(++d2)])!=null?QF=Ch.charAt(++d2):$F=QF==="e"?" ":"0";if(gR=kn[QF])QF=gR(Yn,$F);x7.push(QF);$F=d2+1}x7.push(Ch.slice($F,d2));return x7.join("")}}
function y(Ch,kn){return function(Yn){var x7=H4(1900);if(qA(x7,Ch,Yn,0)!=Yn.length)return null;if("Q"in x7)return new Date(x7.Q);"p"in x7&&(x7.H=x7.H%12+x7.p*12);if("V"in x7){if(x7.V<1||x7.V>53)return null;"w"in x7||(x7.w=1);if("Z"in x7){Yn=hT$(H4(x7.y));var d2=Yn.getUTCDay();Yn=d2>4||d2===0?E9t.ceil(Yn):E9t(Yn);Yn=O8d.offset(Yn,(x7.V-1)*7);x7.y=Yn.getUTCFullYear();x7.m=Yn.getUTCMonth();x7.d=Yn.getUTCDate()+(x7.w+6)%7}else Yn=kn(H4(x7.y)),d2=Yn.getDay(),Yn=d2>4||d2===0?zpo.ceil(Yn):zpo(Yn),Yn=PWw.offset(Yn,
(x7.V-1)*7),x7.y=Yn.getFullYear(),x7.m=Yn.getMonth(),x7.d=Yn.getDate()+(x7.w+6)%7}else if("W"in x7||"U"in x7)"w"in x7||(x7.w="u"in x7?x7.u%7:"W"in x7?1:0),d2="Z"in x7?hT$(H4(x7.y)).getUTCDay():kn(H4(x7.y)).getDay(),x7.m=0,x7.d="W"in x7?(x7.w+6)%7+x7.W*7-(d2+5)%7:x7.w+x7.U*7-(d2+6)%7;return"Z"in x7?(x7.H+=x7.Z/100|0,x7.M+=x7.Z%100,hT$(x7)):kn(x7)}}
function qA(Ch,kn,Yn,x7){for(var d2=0,$F=kn.length,fM=Yn.length,QF;d2<$F;){if(x7>=fM)return-1;QF=kn.charCodeAt(d2++);if(QF===37){if(QF=kn.charAt(d2++),QF=lz[QF in WSj?kn.charAt(d2++):QF],!QF||(x7=QF(Ch,Yn,x7))<0)return-1}else if(QF!=Yn.charCodeAt(x7++))return-1}return x7}
var Xq=I.dateTime,wf=I.date,MA=I.time,Ao=I.periods,tE=I.days,a_=I.shortDays,uJ=I.months,rx=I.shortMonths,Le=md(Ao),Gv=$_(Ao),z9=md(tE),SS=$_(tE),Do=md(a_),LM=$_(a_),St=md(uJ),RY=$_(uJ),ja=md(rx),hO=$_(rx),ia={a:function(Ch){return a_[Ch.getDay()]},
A:function(Ch){return tE[Ch.getDay()]},
b:function(Ch){return rx[Ch.getMonth()]},
B:function(Ch){return uJ[Ch.getMonth()]},
c:null,d:x4z,e:x4z,f:QlC,H:eMJ,I:ZCC,j:RMv,L:A8C,m:rh9,M:NX3,p:function(Ch){return Ao[+(Ch.getHours()>=12)]},
Q:vQj,s:IDL,S:wQJ,u:iCJ,U:kTv,V:EAy,w:zM7,W:oAh,x:null,X:null,y:nAw,Y:MRh,Z:TX9,"%":H8x},hQ={a:function(Ch){return a_[Ch.getUTCDay()]},
A:function(Ch){return tE[Ch.getUTCDay()]},
b:function(Ch){return rx[Ch.getUTCMonth()]},
B:function(Ch){return uJ[Ch.getUTCMonth()]},
c:null,d:m4f,e:m4f,f:GTv,H:DC3,I:WLJ,j:OC9,L:$4n,m:Pv9,M:xCw,p:function(Ch){return Ao[+(Ch.getUTCHours()>=12)]},
Q:vQj,s:IDL,S:AhT,u:vAT,U:I2s,V:HC7,w:mCD,W:$C9,x:null,X:null,y:bCD,Y:yh9,Z:Cvw,"%":H8x},lz={a:function(Ch,kn,Yn){return(kn=Do.exec(kn.slice(Yn)))?(Ch.w=LM[kn[0].toLowerCase()],Yn+kn[0].length):-1},
A:function(Ch,kn,Yn){return(kn=z9.exec(kn.slice(Yn)))?(Ch.w=SS[kn[0].toLowerCase()],Yn+kn[0].length):-1},
b:function(Ch,kn,Yn){return(kn=ja.exec(kn.slice(Yn)))?(Ch.m=hO[kn[0].toLowerCase()],Yn+kn[0].length):-1},
B:function(Ch,kn,Yn){return(kn=St.exec(kn.slice(Yn)))?(Ch.m=RY[kn[0].toLowerCase()],Yn+kn[0].length):-1},
c:function(Ch,kn,Yn){return qA(Ch,Xq,kn,Yn)},
d:b81,e:b81,f:dCy,H:y8v,I:y8v,j:VRT,L:UCh,m:SXC,M:hMD,p:function(Ch,kn,Yn){return(kn=Le.exec(kn.slice(Yn)))?(Ch.p=Gv[kn[0].toLowerCase()],Yn+kn[0].length):-1},
Q:KLs,s:BXh,S:LL7,u:f2T,U:a27,V:jlh,w:ch9,W:FS7,x:function(Ch,kn,Yn){return qA(Ch,wf,kn,Yn)},
X:function(Ch,kn,Yn){return qA(Ch,MA,kn,Yn)},
y:qhv,Y:t$v,Z:uDw,"%":J8T};ia.x=A(wf,ia);ia.X=A(MA,ia);ia.c=A(Xq,ia);hQ.x=A(wf,hQ);hQ.X=A(MA,hQ);hQ.c=A(Xq,hQ);return{format:function(Ch){var kn=A(Ch,ia);kn.toString=function(){return Ch};
return kn},
parse:function(Ch){var kn=y(Ch,YX9);kn.toString=function(){return Ch};
return kn},
utcFormat:function(Ch){var kn=A(Ch,hQ);kn.toString=function(){return Ch};
return kn},
utcParse:function(Ch){var kn=y(Ch,hT$);kn.toString=function(){return Ch};
return kn}}}
function NM(I,A,y){var qA=I<0?"-":"";I=(qA?-I:I)+"";var Xq=I.length;return qA+(Xq<y?Array(y-Xq+1).join(A)+I:I)}
function sgC(I){return I.replace(gQC,"\\$&")}
function md(I){return new RegExp("^(?:"+I.map(sgC).join("|")+")","i")}
function $_(I){for(var A={},y=-1,qA=I.length;++y<qA;)A[I[y].toLowerCase()]=y;return A}
function ch9(I,A,y){return(A=rj.exec(A.slice(y,y+1)))?(I.w=+A[0],y+A[0].length):-1}
function f2T(I,A,y){return(A=rj.exec(A.slice(y,y+1)))?(I.u=+A[0],y+A[0].length):-1}
function a27(I,A,y){return(A=rj.exec(A.slice(y,y+2)))?(I.U=+A[0],y+A[0].length):-1}
function jlh(I,A,y){return(A=rj.exec(A.slice(y,y+2)))?(I.V=+A[0],y+A[0].length):-1}
function FS7(I,A,y){return(A=rj.exec(A.slice(y,y+2)))?(I.W=+A[0],y+A[0].length):-1}
function t$v(I,A,y){return(A=rj.exec(A.slice(y,y+4)))?(I.y=+A[0],y+A[0].length):-1}
function qhv(I,A,y){return(A=rj.exec(A.slice(y,y+2)))?(I.y=+A[0]+(+A[0]>68?1900:2E3),y+A[0].length):-1}
function uDw(I,A,y){return(A=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(A.slice(y,y+6)))?(I.Z=A[1]?0:-(A[2]+(A[3]||"00")),y+A[0].length):-1}
function SXC(I,A,y){return(A=rj.exec(A.slice(y,y+2)))?(I.m=A[0]-1,y+A[0].length):-1}
function b81(I,A,y){return(A=rj.exec(A.slice(y,y+2)))?(I.d=+A[0],y+A[0].length):-1}
function VRT(I,A,y){return(A=rj.exec(A.slice(y,y+3)))?(I.m=0,I.d=+A[0],y+A[0].length):-1}
function y8v(I,A,y){return(A=rj.exec(A.slice(y,y+2)))?(I.H=+A[0],y+A[0].length):-1}
function hMD(I,A,y){return(A=rj.exec(A.slice(y,y+2)))?(I.M=+A[0],y+A[0].length):-1}
function LL7(I,A,y){return(A=rj.exec(A.slice(y,y+2)))?(I.S=+A[0],y+A[0].length):-1}
function UCh(I,A,y){return(A=rj.exec(A.slice(y,y+3)))?(I.L=+A[0],y+A[0].length):-1}
function dCy(I,A,y){return(A=rj.exec(A.slice(y,y+6)))?(I.L=Math.floor(A[0]/1E3),y+A[0].length):-1}
function J8T(I,A,y){return(I=lDw.exec(A.slice(y,y+1)))?y+I[0].length:-1}
function KLs(I,A,y){return(A=rj.exec(A.slice(y)))?(I.Q=+A[0],y+A[0].length):-1}
function BXh(I,A,y){return(A=rj.exec(A.slice(y)))?(I.Q=+A[0]*1E3,y+A[0].length):-1}
function x4z(I,A){return NM(I.getDate(),A,2)}
function eMJ(I,A){return NM(I.getHours(),A,2)}
function ZCC(I,A){return NM(I.getHours()%12||12,A,2)}
function RMv(I,A){return NM(1+PWw.count(Nl(I),I),A,3)}
function A8C(I,A){return NM(I.getMilliseconds(),A,3)}
function QlC(I,A){return A8C(I,A)+"000"}
function rh9(I,A){return NM(I.getMonth()+1,A,2)}
function NX3(I,A){return NM(I.getMinutes(),A,2)}
function wQJ(I,A){return NM(I.getSeconds(),A,2)}
function iCJ(I){I=I.getDay();return I===0?7:I}
function kTv(I,A){return NM(XG5.count(Nl(I),I),A,2)}
function EAy(I,A){var y=I.getDay();I=y>=4||y===0?o9C(I):o9C.ceil(I);return NM(o9C.count(Nl(I),I)+(Nl(I).getDay()===4),A,2)}
function zM7(I){return I.getDay()}
function oAh(I,A){return NM(zpo.count(Nl(I),I),A,2)}
function nAw(I,A){return NM(I.getFullYear()%100,A,2)}
function MRh(I,A){return NM(I.getFullYear()%1E4,A,4)}
function TX9(I){I=I.getTimezoneOffset();return(I>0?"-":(I*=-1,"+"))+NM(I/60|0,"0",2)+NM(I%60,"0",2)}
function m4f(I,A){return NM(I.getUTCDate(),A,2)}
function DC3(I,A){return NM(I.getUTCHours(),A,2)}
function WLJ(I,A){return NM(I.getUTCHours()%12||12,A,2)}
function OC9(I,A){return NM(1+O8d.count(wA(I),I),A,3)}
function $4n(I,A){return NM(I.getUTCMilliseconds(),A,3)}
function GTv(I,A){return $4n(I,A)+"000"}
function Pv9(I,A){return NM(I.getUTCMonth()+1,A,2)}
function xCw(I,A){return NM(I.getUTCMinutes(),A,2)}
function AhT(I,A){return NM(I.getUTCSeconds(),A,2)}
function vAT(I){I=I.getUTCDay();return I===0?7:I}
function I2s(I,A){return NM(YhD.count(wA(I),I),A,2)}
function HC7(I,A){var y=I.getUTCDay();I=y>=4||y===0?n9M(I):n9M.ceil(I);return NM(n9M.count(wA(I),I)+(wA(I).getUTCDay()===4),A,2)}
function mCD(I){return I.getUTCDay()}
function $C9(I,A){return NM(E9t.count(wA(I),I),A,2)}
function bCD(I,A){return NM(I.getUTCFullYear()%100,A,2)}
function yh9(I,A){return NM(I.getUTCFullYear()%1E4,A,4)}
function Cvw(){return"+0000"}
function H8x(){return"%"}
function vQj(I){return+I}
function IDL(I){return Math.floor(+I/1E3)}
function rh(I){for(var A=I.length/6|0,y=Array(A),qA=0;qA<A;)y[qA]="#"+I.slice(qA*6,++qA*6);return y}
function VG(I){return pGQ(I[I.length-1])}
function KhP(I){var A=I.length;return function(y){return I[Math.max(0,Math.min(A-1,Math.floor(y*A)))]}}
function CWE(I){this._context=I}
function d4L(I){this._curve=I}
function V$z(I,A,y){var qA=I._x1-I._x0;A-=I._x1;var Xq=(I._y1-I._y0)/(qA||A<0&&-0);I=(y-I._y1)/(A||qA<0&&-0);return((Xq<0?-1:1)+(I<0?-1:1))*Math.min(Math.abs(Xq),Math.abs(I),.5*Math.abs((Xq*A+I*qA)/(qA+A)))||0}
function U4J(I,A){var y=I._x1-I._x0;return y?(3*(I._y1-I._y0)/y-A)/2:A}
function M9t(I,A,y){var qA=I._x0,Xq=I._x1,wf=I._y1,MA=(Xq-qA)/3;I._context.bezierCurveTo(qA+MA,I._y0+MA*A,Xq-MA,wf-MA*y,Xq,wf)}
function Tvu(I){this._context=I}
function ShC(I){this._context=I}
function bq(I,A,y){this.k=I;this.x=A;this.y=y}
(function(I){I.length===1&&(I=q(I));return{left:function(A,y,qA,Xq){qA==null&&(qA=0);Xq==null&&(Xq=A.length);for(;qA<Xq;){var wf=qA+Xq>>>1;I(A[wf],y)<0?qA=wf+1:Xq=wf}return qA},
right:function(A,y,qA,Xq){qA==null&&(qA=0);Xq==null&&(Xq=A.length);for(;qA<Xq;){var wf=qA+Xq>>>1;I(A[wf],y)>0?Xq=wf:qA=wf+1}return qA}}})(F);
var uSh={value:function(){}};
u.prototype=t.prototype={constructor:u,on:function(I,A){var y=this._,qA=J(I+"",y),Xq,wf=-1,MA=qA.length;if(arguments.length<2)for(;++wf<MA;){var Ao;if(Ao=Xq=(I=qA[wf]).type){a:{Ao=y[Xq];for(var tE=0,a_=Ao.length;tE<a_;++tE)if((Xq=Ao[tE]).name===I.name){Xq=Xq.value;break a}Xq=void 0}Ao=Xq}if(Ao)return Xq}else{if(A!=null&&typeof A!=="function")throw Error("ye`"+A);for(;++wf<MA;)if(Xq=(I=qA[wf]).type)y[Xq]=g(y[Xq],I.name,A);else if(A==null)for(Xq in y)y[Xq]=g(y[Xq],I.name,null);return this}},
copy:function(){var I={},A=this._,y;for(y in A)I[y]=A[y].slice();return new u(I)},
call:function(I,A){if((Xq=arguments.length-2)>0)for(var y=Array(Xq),qA=0,Xq,wf;qA<Xq;++qA)y[qA]=arguments[qA+2];if(!this._.hasOwnProperty(I))throw Error("se`"+I);wf=this._[I];qA=0;for(Xq=wf.length;qA<Xq;++qA)wf[qA].value.apply(A,y)},
apply:function(I,A,y){if(!this._.hasOwnProperty(I))throw Error("se`"+I);I=this._[I];for(var qA=0,Xq=I.length;qA<Xq;++qA)I[qA].value.apply(A,y)}};
var bZ={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/"},hzz=function(I){return function(){return this.matches(I)}};
if(typeof document!=="undefined"){var yq=document.documentElement;if(!yq.matches){var QgD=yq.webkitMatchesSelector||yq.msMatchesSelector||yq.mozMatchesSelector||yq.oMatchesSelector;hzz=function(I){return function(){return QgD.call(this,I)}}}}var KSw=hzz;
z.prototype={constructor:z,appendChild:function(I){return this._parent.insertBefore(I,this._next)},
insertBefore:function(I,A){return this._parent.insertBefore(I,A)},
querySelector:function(I){return this._parent.querySelector(I)},
querySelectorAll:function(I){return this._parent.querySelectorAll(I)}};
var f2z={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(f2z={mouseenter:"mouseover",mouseleave:"mouseout"}));var J1s=[null];Bf.prototype=wJ.prototype={constructor:Bf,select:function(I){typeof I!=="function"&&(I=w(I));for(var A=this._groups,y=A.length,qA=Array(y),Xq=0;Xq<y;++Xq)for(var wf=A[Xq],MA=wf.length,Ao=qA[Xq]=Array(MA),tE,a_,uJ=0;uJ<MA;++uJ)(tE=wf[uJ])&&(a_=I.call(tE,tE.__data__,uJ,wf))&&("__data__"in tE&&(a_.__data__=tE.__data__),Ao[uJ]=a_);return new Bf(qA,
this._parents)},
filter:function(I){typeof I!=="function"&&(I=KSw(I));for(var A=this._groups,y=A.length,qA=Array(y),Xq=0;Xq<y;++Xq)for(var wf=A[Xq],MA=wf.length,Ao=qA[Xq]=[],tE,a_=0;a_<MA;++a_)(tE=wf[a_])&&I.call(tE,tE.__data__,a_,wf)&&Ao.push(tE);return new Bf(qA,this._parents)},
data:function(I,A){if(!I)return Gv=Array(this.size()),a_=-1,this.each(function(St){Gv[++a_]=St}),Gv;
var y=A?v:P,qA=this._parents,Xq=this._groups;typeof I!=="function"&&(I=T(I));for(var wf=Xq.length,MA=Array(wf),Ao=Array(wf),tE=Array(wf),a_=0;a_<wf;++a_){var uJ=qA[a_],rx=Xq[a_],Le=rx.length,Gv=I.call(uJ,uJ&&uJ.__data__,a_,qA),z9=Gv.length,SS=Ao[a_]=Array(z9),Do=MA[a_]=Array(z9);Le=tE[a_]=Array(Le);y(uJ,rx,SS,Do,Le,Gv,A);rx=uJ=0;for(var LM;uJ<z9;++uJ)if(Le=SS[uJ]){for(uJ>=rx&&(rx=uJ+1);!(LM=Do[rx])&&++rx<z9;);Le._next=LM||null}}MA=new Bf(MA,qA);MA._enter=Ao;MA._exit=tE;return MA},
enter:function(){return new Bf(this._enter||this._groups.map(k),this._parents)},
exit:function(){return new Bf(this._exit||this._groups.map(k),this._parents)},
merge:function(I){var A=this._groups;I=I._groups;for(var y=A.length,qA=Math.min(y,I.length),Xq=Array(y),wf=0;wf<qA;++wf)for(var MA=A[wf],Ao=I[wf],tE=MA.length,a_=Xq[wf]=Array(tE),uJ,rx=0;rx<tE;++rx)if(uJ=MA[rx]||Ao[rx])a_[rx]=uJ;for(;wf<y;++wf)Xq[wf]=A[wf];return new Bf(Xq,this._parents)},
order:function(){for(var I=this._groups,A=-1,y=I.length;++A<y;)for(var qA=I[A],Xq=qA.length-1,wf=qA[Xq],MA;--Xq>=0;)if(MA=qA[Xq])wf&&wf!==MA.nextSibling&&wf.parentNode.insertBefore(MA,wf),wf=MA;return this},
sort:function(I){function A(rx,Le){return rx&&Le?I(rx.__data__,Le.__data__):!rx-!Le}
I||(I=H);for(var y=this._groups,qA=y.length,Xq=Array(qA),wf=0;wf<qA;++wf){for(var MA=y[wf],Ao=MA.length,tE=Xq[wf]=Array(Ao),a_,uJ=0;uJ<Ao;++uJ)if(a_=MA[uJ])tE[uJ]=a_;tE.sort(A)}return(new Bf(Xq,this._parents)).order()},
call:function(){var I=arguments[0];arguments[0]=this;I.apply(null,arguments);return this},
nodes:function(){var I=Array(this.size()),A=-1;this.each(function(){I[++A]=this});
return I},
node:function(){for(var I=this._groups,A=0,y=I.length;A<y;++A)for(var qA=I[A],Xq=0,wf=qA.length;Xq<wf;++Xq){var MA=qA[Xq];if(MA)return MA}return null},
size:function(){var I=0;this.each(function(){++I});
return I},
empty:function(){return!this.node()},
each:function(I){for(var A=this._groups,y=0,qA=A.length;y<qA;++y)for(var Xq=A[y],wf=0,MA=Xq.length,Ao;wf<MA;++wf)(Ao=Xq[wf])&&I.call(Ao,Ao.__data__,wf,Xq);return this},
attr:function(I,A){var y=Y(I);if(arguments.length<2){var qA=this.node();return y.local?qA.getAttributeNS(y.space,y.local):qA.getAttribute(y)}return this.each((A==null?y.local?a:d:typeof A==="function"?y.local?c:h:y.local?K:S)(y,A))},
style:function(I,A,y){return arguments.length>1?this.each((A==null?rf:typeof A==="function"?kP:Zv)(I,A,y==null?"":y)):n3(this.node(),I)},
property:function(I,A){return arguments.length>1?this.each((A==null?o_:typeof A==="function"?m$:df)(I,A)):this.node()[I]},
text:function(I){return arguments.length?this.each(I==null?gx:(typeof I==="function"?Zw:Hf)(I)):this.node().textContent},
html:function(I){return arguments.length?this.each(I==null?cy:(typeof I==="function"?Rj:wx)(I)):this.node().innerHTML},
append:function(I){var A=typeof I==="function"?I:r(I);return this.select(function(){return this.appendChild(A.apply(this,arguments))})},
insert:function(I,A){var y=typeof I==="function"?I:r(I),qA=A==null?xO:typeof A==="function"?A:w(A);return this.select(function(){return this.insertBefore(y.apply(this,arguments),qA.apply(this,arguments)||null)})},
remove:function(){return this.each(DQ)},
clone:function(I){return this.select(I?sM:fe)},
datum:function(I){return arguments.length?this.property("__data__",I):this.node().__data__},
on:function(I,A,y){var qA=e5(I+""),Xq=qA.length,wf;if(arguments.length<2){var MA=this.node().__on;if(MA)for(var Ao=0,tE=MA.length,a_;Ao<tE;++Ao){var uJ=0;for(a_=MA[Ao];uJ<Xq;++uJ)if((wf=qA[uJ]).type===a_.type&&wf.name===a_.name)return a_.value}}else{MA=A?qD:z1;y==null&&(y=!1);for(uJ=0;uJ<Xq;++uJ)this.each(MA(qA[uJ],A,y));return this}},
dispatch:function(I,A){return this.each((typeof A==="function"?pe:F3)(I,A))}};
var stw=0;Dw.prototype=function(){return new Dw}.prototype={constructor:Dw,
get:function(I){for(var A=this._;!(A in I);)if(!(I=I.parentNode))return;return I[A]},
set:function(I,A){return I[this._]=A},
remove:function(I){return this._ in I&&delete I[this._]},
toString:function(){return this._}};
var iU=1/.7,gHh=/^#([0-9a-f]{3})$/,l17=/^#([0-9a-f]{6})$/,XX3=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),YqT=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),pXJ=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),Qtv=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*\\)$"),
eOJ=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Zuh=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*\\)$"),a2O={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};
Wf(R2,ND,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Wf(h9,$7,zv(R2,{brighter:function(I){I=I==null?iU:Math.pow(iU,I);return new h9(this.r*I,this.g*I,this.b*I,this.opacity)},
darker:function(I){I=I==null?.7:Math.pow(.7,I);return new h9(this.r*I,this.g*I,this.b*I,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"#"+JQ(this.r)+JQ(this.g)+JQ(this.b)},
toString:function(){var I=this.opacity;I=isNaN(I)?1:Math.max(0,Math.min(1,I));return(I===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))+(I===1?")":", "+I+")")}}));
Wf(Wt,yF,zv(R2,{brighter:function(I){I=I==null?iU:Math.pow(iU,I);return new Wt(this.h,this.s,this.l*I,this.opacity)},
darker:function(I){I=I==null?.7:Math.pow(.7,I);return new Wt(this.h,this.s,this.l*I,this.opacity)},
rgb:function(){var I=this.h%360+(this.h<0)*360,A=this.l,y=A+(A<.5?A:1-A)*(isNaN(I)||isNaN(this.s)?0:this.s);A=2*A-y;return new h9(Es(I>=240?I-240:I+120,A,y),Es(I,A,y),Es(I<120?I+240:I-120,A,y),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 jle=Math.PI/180,qhr=180/Math.PI,FSO=4/29,RT=6/29,chE=3*RT*RT,ROQ=RT*RT*RT;Wf(Dv,function(I,A,y,qA){return arguments.length===1?WD(I):new Dv(I,A,y,qA==null?1:qA)},zv(R2,{brighter:function(I){return new Dv(this.l+18*(I==null?1:I),this.a,this.b,this.opacity)},
darker:function(I){return new Dv(this.l-18*(I==null?1:I),this.a,this.b,this.opacity)},
rgb:function(){var I=(this.l+16)/116,A=isNaN(this.a)?I:I+this.a/500,y=isNaN(this.b)?I:I-this.b/200;A=.96422*SW(A);I=1*SW(I);y=.82521*SW(y);return new h9(kO(3.1338561*A-1.6168667*I-.4906146*y),kO(-.9787684*A+1.9161415*I+.033454*y),kO(.0719453*A-.2289914*I+1.4052427*y),this.opacity)}}));
Wf(ne,MD,zv(R2,{brighter:function(I){return new ne(this.h,this.c,this.l+18*(I==null?1:I),this.opacity)},
darker:function(I){return new ne(this.h,this.c,this.l-18*(I==null?1:I),this.opacity)},
rgb:function(){return WD(this).rgb()}}));
var t$1=1.78277*-.29227-.1347134789;Wf(Iy,oj,zv(R2,{brighter:function(I){I=I==null?iU:Math.pow(iU,I);return new Iy(this.h,this.s,this.l*I,this.opacity)},
darker:function(I){I=I==null?.7:Math.pow(.7,I);return new Iy(this.h,this.s,this.l*I,this.opacity)},
rgb:function(){var I=isNaN(this.h)?0:(this.h+120)*jle,A=+this.l,y=isNaN(this.s)?0:this.s*A*(1-A),qA=Math.cos(I);I=Math.sin(I);return new h9(255*(A+y*(-.14861*qA+1.78277*I)),255*(A+y*(-.29227*qA+-.90649*I)),255*(A+1.97294*qA*y),this.opacity)}}));
var lDJ=function y(A){function qA(wf,MA){var Ao=Xq((wf=$7(wf)).r,(MA=$7(MA)).r),tE=Xq(wf.g,MA.g),a_=Xq(wf.b,MA.b),uJ=SJ(wf.opacity,MA.opacity);return function(rx){wf.r=Ao(rx);wf.g=tE(rx);wf.b=a_(rx);wf.opacity=uJ(rx);return wf+""}}
var Xq=dP(A);qA.gamma=y;return qA}(1),pGQ=oE(function(A){var y=A.length-1;
return function(qA){var Xq=qA<=0?qA=0:qA>=1?(qA=1,y-1):Math.floor(qA*y),wf=A[Xq],MA=A[Xq+1];return ie((qA-Xq/y)*y,Xq>0?A[Xq-1]:2*wf-MA,wf,MA,Xq<y-1?A[Xq+2]:2*MA-wf)}});
oE(function(A){var y=A.length;return function(qA){var Xq=Math.floor(((qA%=1)<0?++qA:qA)*y);return ie((qA-Xq/y)*y,A[(Xq+y-1)%y],A[Xq%y],A[(Xq+1)%y],A[(Xq+2)%y])}});
var g9o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ls3=new RegExp(g9o.source,"g"),uDJ=180/Math.PI,GDt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Cd,DH3,B71,BNt,ezC=Tv(function(A){if(A==="none")return GDt;Cd||(Cd=document.createElement("DIV"),DH3=document.documentElement,B71=document.defaultView);Cd.style.transform=A;A=B71.getComputedStyle(DH3.appendChild(Cd),null).getPropertyValue("transform");DH3.removeChild(Cd);A=A.slice(7,-1).split(",");return iw(+A[0],+A[1],+A[2],+A[3],
+A[4],+A[5])},"px, ","px)","deg)"),Z8Q=Tv(function(A){if(A==null)return GDt;
BNt||(BNt=document.createElementNS("http://www.w3.org/2000/svg","g"));BNt.setAttribute("transform",A);if(!(A=BNt.transform.baseVal.consolidate()))return GDt;A=A.matrix;return iw(A.a,A.b,A.c,A.d,A.e,A.f)},", ",")",")");
lw(be);lw(SJ);Z4(be);Z4(SJ);Ks(be);var Wuy=Ks(SJ),rA=0,P4=0,A2=0,bEv,x_,$hq=0,fy=0,mhM=0,OQ=typeof performance==="object"&&performance.now?performance:Date,J8z=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(A){setTimeout(A,17)};
PD.prototype=MG.prototype={constructor:PD,restart:function(A,y,qA){if(typeof A!=="function")throw new TypeError("ze");qA=(qA==null?yS():+qA)+(y==null?0:+y);this._next||x_===this||(x_?x_._next=this:bEv=this,x_=this);this._call=A;this._time=qA;GL()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,GL())}};
var NRQ=t("start","end","interrupt"),wX9=[],RzC=wJ.prototype.constructor,LSw=0,k0=wJ.prototype;fA.prototype=function(A){return wJ().transition(A)}.prototype={constructor:fA,
select:function(A){var y=this._name,qA=this._id;typeof A!=="function"&&(A=w(A));for(var Xq=this._groups,wf=Xq.length,MA=Array(wf),Ao=0;Ao<wf;++Ao)for(var tE=Xq[Ao],a_=tE.length,uJ=MA[Ao]=Array(a_),rx,Le,Gv=0;Gv<a_;++Gv)(rx=tE[Gv])&&(Le=A.call(rx,rx.__data__,Gv,tE))&&("__data__"in rx&&(Le.__data__=rx.__data__),uJ[Gv]=Le,XPo(uJ[Gv],y,qA,Gv,uJ,GS(rx,qA)));return new fA(MA,this._parents,y,qA)},
filter:function(A){typeof A!=="function"&&(A=KSw(A));for(var y=this._groups,qA=y.length,Xq=Array(qA),wf=0;wf<qA;++wf)for(var MA=y[wf],Ao=MA.length,tE=Xq[wf]=[],a_,uJ=0;uJ<Ao;++uJ)(a_=MA[uJ])&&A.call(a_,a_.__data__,uJ,MA)&&tE.push(a_);return new fA(Xq,this._parents,this._name,this._id)},
merge:function(A){if(A._id!==this._id)throw Error();var y=this._groups;A=A._groups;for(var qA=y.length,Xq=Math.min(qA,A.length),wf=Array(qA),MA=0;MA<Xq;++MA)for(var Ao=y[MA],tE=A[MA],a_=Ao.length,uJ=wf[MA]=Array(a_),rx,Le=0;Le<a_;++Le)if(rx=Ao[Le]||tE[Le])uJ[Le]=rx;for(;MA<qA;++MA)wf[MA]=y[MA];return new fA(wf,this._parents,this._name,this._id)},
selection:function(){return new RzC(this._groups,this._parents)},
transition:function(){for(var A=this._name,y=this._id,qA=++LSw,Xq=this._groups,wf=Xq.length,MA=0;MA<wf;++MA)for(var Ao=Xq[MA],tE=Ao.length,a_,uJ=0;uJ<tE;++uJ)if(a_=Ao[uJ]){var rx=GS(a_,y);XPo(a_,A,qA,uJ,Ao,{time:rx.time+rx.delay+rx.duration,delay:0,duration:rx.duration,ease:rx.ease})}return new fA(Xq,this._parents,A,qA)},
call:k0.call,nodes:k0.nodes,node:k0.node,size:k0.size,empty:k0.empty,each:k0.each,on:function(A,y){var qA=this._id;return arguments.length<2?GS(this.node(),qA).on.on(A):this.each(I19(qA,A,y))},
attr:function(A,y){var qA=Y(A),Xq=qA==="transform"?Z8Q:gQv;return this.attrTween(A,typeof y==="function"?(qA.local?TRh:MGv)(qA,Xq,pPC(this,"attr."+A,y)):y==null?(qA.local?zOC:EH3)(qA):(qA.local?nHw:oHs)(qA,Xq,y+""))},
attrTween:function(A,y){var qA="attr."+A;if(arguments.length<2)return(qA=this.tween(qA))&&qA._value;if(y==null)return this.tween(qA,null);if(typeof y!=="function")throw Error();var Xq=Y(A);return this.tween(qA,(Xq.local?GYQ:DX7)(Xq,y))},
style:function(A,y,qA){var Xq=A==="transform"?ezC:gQv;return y==null?this.styleTween(A,mXv(A,Xq)).on("end.style."+A,$XQ(A)):this.styleTween(A,typeof y==="function"?y13(A,Xq,pPC(this,"style."+A,y)):buT(A,Xq,y+""),qA)},
styleTween:function(A,y,qA){var Xq="style."+A;if(arguments.length<2)return(Xq=this.tween(Xq))&&Xq._value;if(y==null)return this.tween(Xq,null);if(typeof y!=="function")throw Error();return this.tween(Xq,C4C(A,y,qA==null?"":qA))},
text:function(A){return this.tween("text",typeof A==="function"?VG3(pPC(this,"text",A)):dX9(A==null?"":A+""))},
remove:function(){return this.on("end.remove",Huv(this._id))},
tween:function(A,y){var qA=this._id;if(arguments.length<2){qA=GS(this.node(),qA).tween;for(var Xq=0,wf=qA.length,MA;Xq<wf;++Xq)if((MA=qA[Xq]).name===A)return MA.value;return null}return this.each((y==null?iuv:kYT)(qA,A,y))},
delay:function(A){var y=this._id;return arguments.length?this.each((typeof A==="function"?Wlh:OuJ)(y,A)):GS(this.node(),y).delay},
duration:function(A){var y=this._id;return arguments.length?this.each((typeof A==="function"?P49:xXy)(y,A)):GS(this.node(),y).duration},
ease:function(A){var y=this._id;return arguments.length?this.each(A1Q(y,A)):GS(this.node(),y).ease}};
var OAC={time:null,delay:0,duration:250,ease:function(A){return((A*=2)<=1?A*A*A:(A-=2)*A*A+2)/2}};
wJ.prototype.transition=function(A){var y;if(A instanceof fA){var qA=A._id;A=A._name}else qA=++LSw,(y=OAC).time=yS(),A=A==null?null:A+"";for(var Xq=this._groups,wf=Xq.length,MA=0;MA<wf;++MA)for(var Ao=Xq[MA],tE=Ao.length,a_,uJ=0;uJ<tE;++uJ)if(a_=Ao[uJ]){var rx=a_,Le=A,Gv=qA,z9=uJ,SS=Ao,Do;if(!(Do=y))a:{Do=void 0;for(var LM=qA;!(Do=a_.__transition)||!(Do=Do[LM]);)if(!(a_=a_.parentNode)){Do=(OAC.time=yS(),OAC);break a}}XPo(rx,Le,Gv,z9,SS,Do)}return new fA(Xq,this._parents,A,qA)};
["e","w"].map(QwA);["n","s"].map(QwA);"n e s w nw ne se sw".split(" ").map(QwA);epy.prototype=function(){return new epy}.prototype={constructor:epy,
moveTo:function(A,y){this._+="M"+(this._x0=this._x1=+A)+","+(this._y0=this._y1=+y)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(A,y){this._+="L"+(this._x1=+A)+","+(this._y1=+y)},
bezierCurveTo:function(A,y,qA,Xq,wf,MA){this._+="C"+ +A+","+ +y+","+ +qA+","+ +Xq+","+(this._x1=+wf)+","+(this._y1=+MA)},
rect:function(A,y,qA,Xq){this._+="M"+(this._x0=this._x1=+A)+","+(this._y0=this._y1=+y)+"h"+ +qA+"v"+ +Xq+"h"+-qA+"Z"},
toString:function(){return this._}};
yUt.prototype=XGC.prototype={constructor:yUt,has:function(A){return" "+A in this},
get:function(A){return this[" "+A]},
set:function(A,y){this[" "+A]=y;return this},
remove:function(A){A=" "+A;return A in this&&delete this[A]},
clear:function(){for(var A in this)A[0]===" "&&delete this[A]},
keys:function(){var A=[],y;for(y in this)y[0]===" "&&A.push(y.slice(1));return A},
values:function(){var A=[],y;for(y in this)y[0]===" "&&A.push(this[y]);return A},
entries:function(){var A=[],y;for(y in this)y[0]===" "&&A.push({key:y.slice(1),value:this[y]});return A},
size:function(){var A=0,y;for(y in this)y[0]===" "&&++A;return A},
empty:function(){for(var A in this)if(A[0]===" ")return!1;return!0},
each:function(A){for(var y in this)y[0]===" "&&A(this[y],y.slice(1),this)}};
var FW=XGC.prototype;CKW.prototype=function(A,y){var qA=new CKW;if(A instanceof CKW)A.each(function(MA){qA.add(MA)});
else if(A){var Xq=-1,wf=A.length;if(y==null)for(;++Xq<wf;)qA.add(A[Xq]);else for(;++Xq<wf;)qA.add(y(A[Xq],Xq,A))}return qA}.prototype={constructor:CKW,
has:FW.has,add:function(A){this[" "+A]=A;return this},
remove:FW.remove,clear:FW.clear,values:FW.keys,size:FW.size,empty:FW.empty,each:FW.each};var Qgn={},ZAq={},r8h=pGw(",").parse,N7v=pGw("\t").parse;ezv(r8h);ezv(N7v);var bL=function(A,y,qA){y=new RpW(y==null?Kl9:y,qA==null?BRD:qA,NaN,NaN,NaN,NaN);return A==null?y:y.addAll(A)}.prototype=RpW.prototype;
bL.copy=function(){var A=new RpW(this._x,this._y,this._x0,this._y0,this._x1,this._y1),y=this._root,qA,Xq;if(!y)return A;if(!y.length)return A._root=Rzv(y),A;for(qA=[{source:y,target:A._root=Array(4)}];y=qA.pop();)for(var wf=0;wf<4;++wf)if(Xq=y.source[wf])Xq.length?qA.push({source:Xq,target:y.target[wf]=Array(4)}):y.target[wf]=Rzv(Xq);return A};
bL.add=function(A){var y=+this._x.call(null,A),qA=+this._y.call(null,A);return Z8w(this.cover(y,qA),y,qA,A)};
bL.addAll=function(A){var y,qA,Xq=A.length,wf,MA,Ao=Array(Xq),tE=Array(Xq),a_=Infinity,uJ=Infinity,rx=-Infinity,Le=-Infinity;for(qA=0;qA<Xq;++qA)isNaN(wf=+this._x.call(null,y=A[qA]))||isNaN(MA=+this._y.call(null,y))||(Ao[qA]=wf,tE[qA]=MA,wf<a_&&(a_=wf),wf>rx&&(rx=wf),MA<uJ&&(uJ=MA),MA>Le&&(Le=MA));rx<a_&&(a_=this._x0,rx=this._x1);Le<uJ&&(uJ=this._y0,Le=this._y1);this.cover(a_,uJ).cover(rx,Le);for(qA=0;qA<Xq;++qA)Z8w(this,Ao[qA],tE[qA],A[qA]);return this};
bL.cover=function(A,y){if(isNaN(A=+A)||isNaN(y=+y))return this;var qA=this._x0,Xq=this._y0,wf=this._x1,MA=this._y1;if(isNaN(qA))wf=(qA=Math.floor(A))+1,MA=(Xq=Math.floor(y))+1;else if(qA>A||A>wf||Xq>y||y>MA){var Ao=wf-qA,tE=this._root,a_;switch(a_=(y<(Xq+MA)/2)<<1|A<(qA+wf)/2){case 0:do{var uJ=Array(4);uJ[a_]=tE;tE=uJ}while(Ao*=2,wf=qA+Ao,MA=Xq+Ao,A>wf||y>MA);break;case 1:do uJ=Array(4),uJ[a_]=tE,tE=uJ;while(Ao*=2,qA=wf-Ao,MA=Xq+Ao,qA>A||y>MA);break;case 2:do uJ=Array(4),uJ[a_]=tE,tE=uJ;while(Ao*=
2,wf=qA+Ao,Xq=MA-Ao,A>wf||Xq>y);break;case 3:do uJ=Array(4),uJ[a_]=tE,tE=uJ;while(Ao*=2,qA=wf-Ao,Xq=MA-Ao,qA>A||Xq>y)}this._root&&this._root.length&&(this._root=tE)}else return this;this._x0=qA;this._y0=Xq;this._x1=wf;this._y1=MA;return this};
bL.data=function(){var A=[];this.visit(function(y){if(!y.length){do A.push(y.data);while(y=y.next)}});
return A};
bL.extent=function(A){return arguments.length?this.cover(+A[0][0],+A[0][1]).cover(+A[1][0],+A[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
bL.find=function(A,y,qA){var Xq=this._x0,wf=this._y0,MA,Ao,tE,a_,uJ=this._x1,rx=this._y1,Le=[],Gv=this._root,z9;Gv&&Le.push(new $M(Gv,Xq,wf,uJ,rx));qA==null?qA=Infinity:(Xq=A-qA,wf=y-qA,uJ=A+qA,rx=y+qA,qA*=qA);for(;z9=Le.pop();)if(!(!(Gv=z9.node)||(MA=z9.x0)>uJ||(Ao=z9.y0)>rx||(tE=z9.x1)<Xq||(a_=z9.y1)<wf))if(Gv.length){z9=(MA+tE)/2;var SS=(Ao+a_)/2;Le.push(new $M(Gv[3],z9,SS,tE,a_),new $M(Gv[2],MA,SS,z9,a_),new $M(Gv[1],z9,Ao,tE,SS),new $M(Gv[0],MA,Ao,z9,SS));if(Gv=(y>=SS)<<1|A>=z9)z9=Le[Le.length-
1],Le[Le.length-1]=Le[Le.length-1-Gv],Le[Le.length-1-Gv]=z9}else if(z9=A-+this._x.call(null,Gv.data),SS=y-+this._y.call(null,Gv.data),z9=z9*z9+SS*SS,z9<qA){var Do=Math.sqrt(qA=z9);Xq=A-Do;wf=y-Do;uJ=A+Do;rx=y+Do;Do=Gv.data}return Do};
bL.remove=function(A){if(isNaN(a_=+this._x.call(null,A))||isNaN(uJ=+this._y.call(null,A)))return this;var y,qA=this._root,Xq,wf=this._x0,MA=this._y0,Ao=this._x1,tE=this._y1,a_,uJ,rx,Le,Gv,z9,SS;if(!qA)return this;if(qA.length)for(;;){(Gv=a_>=(rx=(wf+Ao)/2))?wf=rx:Ao=rx;(z9=uJ>=(Le=(MA+tE)/2))?MA=Le:tE=Le;if(!(y=qA,qA=qA[SS=z9<<1|Gv]))return this;if(!qA.length)break;if(y[SS+1&3]||y[SS+2&3]||y[SS+3&3]){var Do=y;var LM=SS}}for(;qA.data!==A;)if(!(Xq=qA,qA=qA.next))return this;(A=qA.next)&&delete qA.next;
if(Xq)return A?Xq.next=A:delete Xq.next,this;if(!y)return this._root=A,this;A?y[SS]=A:delete y[SS];(qA=y[0]||y[1]||y[2]||y[3])&&qA===(y[3]||y[2]||y[1]||y[0])&&!qA.length&&(Do?Do[LM]=qA:this._root=qA);return this};
bL.removeAll=function(A){for(var y=0,qA=A.length;y<qA;++y)this.remove(A[y]);return this};
bL.root=function(){return this._root};
bL.size=function(){var A=0;this.visit(function(y){if(!y.length){do++A;while(y=y.next)}});
return A};
bL.visit=function(A){var y=[],qA,Xq=this._root,wf,MA,Ao,tE,a_;for(Xq&&y.push(new $M(Xq,this._x0,this._y0,this._x1,this._y1));qA=y.pop();)if(!A(Xq=qA.node,MA=qA.x0,Ao=qA.y0,tE=qA.x1,a_=qA.y1)&&Xq.length){qA=(MA+tE)/2;var uJ=(Ao+a_)/2;(wf=Xq[3])&&y.push(new $M(wf,qA,uJ,tE,a_));(wf=Xq[2])&&y.push(new $M(wf,MA,uJ,qA,a_));(wf=Xq[1])&&y.push(new $M(wf,qA,Ao,tE,uJ));(wf=Xq[0])&&y.push(new $M(wf,MA,Ao,qA,uJ))}};
bL.visitAfter=function(A){var y=[],qA=[],Xq;for(this._root&&y.push(new $M(this._root,this._x0,this._y0,this._x1,this._y1));Xq=y.pop();){var wf=Xq.node;if(wf.length){var MA,Ao=Xq.x0,tE=Xq.y0,a_=Xq.x1,uJ=Xq.y1,rx=(Ao+a_)/2,Le=(tE+uJ)/2;(MA=wf[0])&&y.push(new $M(MA,Ao,tE,rx,Le));(MA=wf[1])&&y.push(new $M(MA,rx,tE,a_,Le));(MA=wf[2])&&y.push(new $M(MA,Ao,Le,rx,uJ));(MA=wf[3])&&y.push(new $M(MA,rx,Le,a_,uJ))}qA.push(Xq)}for(;Xq=qA.pop();)A(Xq.node,Xq.x0,Xq.y0,Xq.x1,Xq.y1);return this};
bL.x=function(A){return arguments.length?(this._x=A,this):this._x};
bL.y=function(A){return arguments.length?(this._y=A,this):this._y};
var jtD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;rBf.prototype=Nvv.prototype;Nvv.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 i8C,k_E={"%":function(A,y){return(A*100).toFixed(y)},
b:function(A){return Math.round(A).toString(2)},
c:function(A){return A+""},
d:function(A){return Math.round(A).toString(10)},
e:function(A,y){return A.toExponential(y)},
f:function(A,y){return A.toFixed(y)},
g:function(A,y){return A.toPrecision(y)},
o:function(A){return Math.round(A).toString(8)},
p:function(A,y){return r8e(A*100,y)},
r:r8e,s:function(A,y){var qA=dhy(A,y);if(!qA)return A+"";var Xq=qA[0];qA=qA[1];qA=qA-(i8C=Math.max(-8,Math.min(8,Math.floor(qA/3)))*3)+1;var wf=Xq.length;return qA===wf?Xq:qA>wf?Xq+Array(qA-wf+1).join("0"):qA>0?Xq.slice(0,qA)+"."+Xq.slice(qA):"0."+Array(1-qA).join("0")+dhy(A,Math.max(0,y+qA-1))[0]},
X:function(A){return Math.round(A).toString(16).toUpperCase()},
x:function(A){return Math.round(A).toString(16)}},wGw="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),wGQ;
(function(A){return wGQ=c1y(A)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Gb.prototype={constructor:Gb,reset:function(){this.s=this.t=0},
add:function(A){EQd(Lh3,A,this.t);EQd(this,Lh3.s,this.s);this.s?this.t+=Lh3.t:this.s=Lh3.t},
valueOf:function(){return this.s}};
var Lh3=new Gb,bR=Math.PI,yI=bR/2,fDv=bR/4,i85=bR*2,PTu=bR/180,aw=Math.abs,xHo=Math.atan,G_x=Math.atan2,CZ=Math.cos,ob=Math.sin,UhC=Math.sqrt;new Gb;new Gb;new Gb;var ABt=new Gb;(function(A,y,qA,Xq){return function(wf){function MA(hO,ia){A(hO,ia)&&wf.point(hO,ia)}
function Ao(hO,ia){Gv.point(hO,ia)}
function tE(){ja.point=Ao;Gv.lineStart()}
function a_(){ja.point=MA;Gv.lineEnd()}
function uJ(hO,ia){RY.push([hO,ia]);SS.point(hO,ia)}
function rx(){SS.lineStart();RY=[]}
function Le(){uJ(RY[0][0],RY[0][1]);SS.lineEnd();var hO=SS.clean(),ia=z9.result(),hQ=ia.length,lz;RY.pop();LM.push(RY);RY=null;if(hQ)if(hO&1){if(hQ=ia[0],(ia=hQ.length-1)>0){Do||(wf.polygonStart(),Do=!0);wf.lineStart();for(hO=0;hO<ia;++hO)wf.point((lz=hQ[hO])[0],lz[1]);wf.lineEnd()}}else hQ>1&&hO&2&&ia.push(ia.pop().concat(ia.shift())),St.push(ia.filter(uZv))}
var Gv=y(wf),z9=qXv(),SS=y(z9),Do=!1,LM,St,RY,ja={point:MA,lineStart:tE,lineEnd:a_,polygonStart:function(){ja.point=uJ;ja.lineStart=rx;ja.lineEnd=Le;St=[];LM=[]},
polygonEnd:function(){ja.point=MA;ja.lineStart=tE;ja.lineEnd=a_;var hO=St,ia=hO.length;var hQ=-1;for(var lz=0,Ch,kn;++hQ<ia;)lz+=hO[hQ].length;for(Ch=Array(lz);--ia>=0;)for(kn=hO[ia],hQ=kn.length;--hQ>=0;)Ch[--lz]=kn[hQ];St=Ch;hO=LM;ia=Xq[0];lz=Xq[1];var Yn=ob(lz);hQ=[ob(ia),-CZ(ia),0];kn=Ch=0;ABt.reset();Yn===1?lz=yI+1E-6:Yn===-1&&(lz=-yI-1E-6);Yn=0;for(var x7=hO.length;Yn<x7;++Yn)if($F=(d2=hO[Yn]).length){var d2,$F,fM=d2[$F-1],QF=fM[0],gR=fM[1]/2+fDv,f0o=ob(gR),aDC=CZ(gR);for(gR=0;gR<$F;++gR,QF=
v9P,f0o=jgL,aDC=dw,fM=a0M){var a0M=d2[gR],v9P=a0M[0];dw=a0M[1]/2+fDv;var jgL=ob(dw),dw=CZ(dw),Ez=v9P-QF,Isf=Ez>=0?1:-1,HA3=Isf*Ez,jmq=HA3>bR;f0o*=jgL;ABt.add(G_x(f0o*Isf*ob(HA3),aDC*dw+f0o*CZ(HA3)));Ch+=jmq?Ez+Isf*i85:Ez;jmq^QF>=ia^v9P>=ia&&(fM=oQO(zzE(fM),zzE(a0M)),nQv(fM),QF=oQO(hQ,fM),nQv(QF),QF=(jmq^Ez>=0?-1:1)*Vv3(QF[2]),lz>QF||lz===QF&&(fM[0]||fM[1]))&&(kn+=jmq^Ez>=0?1:-1)}}hO=(Ch<-1E-6||Ch<1E-6&&ABt<-1E-6)^kn&1;St.length?(Do||(wf.polygonStart(),Do=!0),tRv(St,JhJ,hO,qA,wf)):hO&&(Do||(wf.polygonStart(),
Do=!0),wf.lineStart(),qA(null,null,1,wf),wf.lineEnd());Do&&(wf.polygonEnd(),Do=!1);St=LM=null},
sphere:function(){wf.polygonStart();wf.lineStart();qA(null,null,1,wf);wf.lineEnd();wf.polygonEnd()}};
return ja}})(function(){return!0},function(A){var y=NaN,qA=NaN,Xq=NaN,wf;
return{lineStart:function(){A.lineStart();wf=1},
point:function(MA,Ao){var tE=MA>0?bR:-bR,a_=aw(MA-y);if(aw(a_-bR)<1E-6)A.point(y,qA=(qA+Ao)/2>0?yI:-yI),A.point(Xq,qA),A.lineEnd(),A.lineStart(),A.point(tE,qA),A.point(MA,qA),wf=0;else if(Xq!==tE&&a_>=bR){aw(y-Xq)<1E-6&&(y-=Xq*1E-6);aw(MA-tE)<1E-6&&(MA-=tE*1E-6);a_=y;var uJ=qA,rx=MA,Le,Gv,z9=ob(a_-rx);qA=aw(z9)>1E-6?xHo((ob(uJ)*(Gv=CZ(Ao))*ob(rx)-ob(Ao)*(Le=CZ(uJ))*ob(a_))/(Le*Gv*z9)):(uJ+Ao)/2;A.point(Xq,qA);A.lineEnd();A.lineStart();A.point(tE,qA);wf=0}A.point(y=MA,qA=Ao);Xq=tE},
lineEnd:function(){A.lineEnd();y=qA=NaN},
clean:function(){return 2-wf}}},function(A,y,qA,Xq){A==null?(qA*=yI,Xq.point(-bR,qA),Xq.point(0,qA),Xq.point(bR,qA),Xq.point(bR,0),Xq.point(bR,-qA),Xq.point(0,-qA),Xq.point(-bR,-qA),Xq.point(-bR,0),Xq.point(-bR,qA)):aw(A[0]-y[0])>1E-6?(A=A[0]<y[0]?bR:-bR,qA=qA*A/2,Xq.point(-A,qA),Xq.point(0,qA),Xq.point(A,qA)):Xq.point(y[0],y[1])},[-bR,
-yI]);new Gb;new Gb;new Gb;new Gb;wPv.prototype={constructor:wPv,point:function(A,y){this.stream.point(A,y)},
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()}};
CZ(30*PTu);(function(A){return function(y){var qA=new wPv,Xq;for(Xq in A)qA[Xq]=A[Xq];qA.stream=y;return qA}})({point:function(A,y){this.stream.point(A*PTu,y*PTu)}});
T71(function(A){return UhC(2/(1+A))}).invert=v4(function(A){return 2*Vv3(A/2)});
T71(function(A){return(A=A>1?0:A<-1?bR:Math.acos(A))&&A/ob(A)}).invert=v4(function(A){return A});
UhC(3);v4(xHo);v4(Vv3);v4(function(A){return 2*xHo(A)});
Id.prototype=D4E.prototype={constructor:Id,count:function(){return this.eachAfter(sl7)},
each:function(A){var y,qA=[this],Xq;do{var wf=qA.reverse();for(qA=[];y=wf.pop();)if(A(y),y=y.children){var MA=0;for(Xq=y.length;MA<Xq;++MA)qA.push(y[MA])}}while(qA.length);return this},
eachAfter:function(A){for(var y,qA=[this],Xq=[],wf,MA;y=qA.pop();)if(Xq.push(y),y=y.children)for(wf=0,MA=y.length;wf<MA;++wf)qA.push(y[wf]);for(;y=Xq.pop();)A(y);return this},
eachBefore:function(A){for(var y,qA=[this],Xq;y=qA.pop();)if(A(y),y=y.children)for(Xq=y.length-1;Xq>=0;--Xq)qA.push(y[Xq]);return this},
sum:function(A){return this.eachAfter(function(y){for(var qA=+A(y.data)||0,Xq=y.children,wf=Xq&&Xq.length;--wf>=0;)qA+=Xq[wf].value;y.value=qA})},
sort:function(A){return this.eachBefore(function(y){y.children&&y.children.sort(A)})},
path:function(A){var y=this;var qA=y;var Xq=A;if(qA!==Xq){var wf=qA.ancestors(),MA=Xq.ancestors(),Ao=null;qA=wf.pop();for(Xq=MA.pop();qA===Xq;)Ao=qA,qA=wf.pop(),Xq=MA.pop();qA=Ao}for(Xq=[y];y!==qA;)y=y.parent,Xq.push(y);for(y=Xq.length;A!==qA;)Xq.splice(y,0,A),A=A.parent;return Xq},
ancestors:function(){for(var A=this,y=[A];A=A.parent;)y.push(A);return y},
links:function(){var A=this,y=[];A.each(function(qA){qA!==A&&y.push({source:qA.parent,target:qA})});
return y},
copy:function(){return D4E(this).eachBefore(XQw)}};
(function(A,y){this._=A;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=y}).prototype=Object.create(Id.prototype);
var iAM=new Date,kDA=new Date,c8r=pJ(function(){},function(A,y){A.setTime(+A+y)},function(A,y){return y-A});
c8r.every=function(A){A=Math.floor(A);return isFinite(A)&&A>0?A>1?pJ(function(y){y.setTime(Math.floor(y/A)*A)},function(y,qA){y.setTime(+y+qA*A)},function(y,qA){return(qA-y)/A}):c8r:null};
pJ(function(A){A.setTime(Math.floor(A/1E3)*1E3)},function(A,y){A.setTime(+A+y*1E3)},function(A,y){return(y-A)/1E3},function(A){return A.getUTCSeconds()});
pJ(function(A){A.setTime(Math.floor(A/6E4)*6E4)},function(A,y){A.setTime(+A+y*6E4)},function(A,y){return(y-A)/6E4},function(A){return A.getMinutes()});
pJ(function(A){var y=A.getTimezoneOffset()*6E4%36E5;y<0&&(y+=36E5);A.setTime(Math.floor((+A-y)/36E5)*36E5+y)},function(A,y){A.setTime(+A+y*36E5)},function(A,y){return(y-A)/36E5},function(A){return A.getHours()});
var PWw=pJ(function(A){A.setHours(0,0,0,0)},function(A,y){A.setDate(A.getDate()+y)},function(A,y){return(y-A-(y.getTimezoneOffset()-A.getTimezoneOffset())*6E4)/864E5},function(A){return A.getDate()-1}),XG5=jH(0),zpo=jH(1);
jH(2);jH(3);var o9C=jH(4);jH(5);jH(6);pJ(function(A){A.setDate(1);A.setHours(0,0,0,0)},function(A,y){A.setMonth(A.getMonth()+y)},function(A,y){return y.getMonth()-A.getMonth()+(y.getFullYear()-A.getFullYear())*12},function(A){return A.getMonth()});
var Nl=pJ(function(A){A.setMonth(0,1);A.setHours(0,0,0,0)},function(A,y){A.setFullYear(A.getFullYear()+y)},function(A,y){return y.getFullYear()-A.getFullYear()},function(A){return A.getFullYear()});
Nl.every=function(A){return isFinite(A=Math.floor(A))&&A>0?pJ(function(y){y.setFullYear(Math.floor(y.getFullYear()/A)*A);y.setMonth(0,1);y.setHours(0,0,0,0)},function(y,qA){y.setFullYear(y.getFullYear()+qA*A)}):null};
pJ(function(A){A.setUTCSeconds(0,0)},function(A,y){A.setTime(+A+y*6E4)},function(A,y){return(y-A)/6E4},function(A){return A.getUTCMinutes()});
pJ(function(A){A.setUTCMinutes(0,0,0)},function(A,y){A.setTime(+A+y*36E5)},function(A,y){return(y-A)/36E5},function(A){return A.getUTCHours()});
var O8d=pJ(function(A){A.setUTCHours(0,0,0,0)},function(A,y){A.setUTCDate(A.getUTCDate()+y)},function(A,y){return(y-A)/864E5},function(A){return A.getUTCDate()-1}),YhD=cY(0),E9t=cY(1);
cY(2);cY(3);var n9M=cY(4);cY(5);cY(6);pJ(function(A){A.setUTCDate(1);A.setUTCHours(0,0,0,0)},function(A,y){A.setUTCMonth(A.getUTCMonth()+y)},function(A,y){return y.getUTCMonth()-A.getUTCMonth()+(y.getUTCFullYear()-A.getUTCFullYear())*12},function(A){return A.getUTCMonth()});
var wA=pJ(function(A){A.setUTCMonth(0,1);A.setUTCHours(0,0,0,0)},function(A,y){A.setUTCFullYear(A.getUTCFullYear()+y)},function(A,y){return y.getUTCFullYear()-A.getUTCFullYear()},function(A){return A.getUTCFullYear()});
wA.every=function(A){return isFinite(A=Math.floor(A))&&A>0?pJ(function(y){y.setUTCFullYear(Math.floor(y.getUTCFullYear()/A)*A);y.setUTCMonth(0,1);y.setUTCHours(0,0,0,0)},function(y,qA){y.setUTCFullYear(y.getUTCFullYear()+qA*A)}):null};
var WSj={"-":"",_:" ",0:"0"},rj=/^\s*\d+/,lDw=/^%/,gQC=/[\\^$*+?|[\]().{}]/g,cUt;(function(A){cUt=pQT(A);Qsr=cUt.utcFormat;e71=cUt.utcParse;return cUt})({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||Qsr("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||e71("%Y-%m-%dT%H:%M:%S.%LZ");rh("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
rh("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");rh("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");rh("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");rh("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");rh("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");rh("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
rh("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");rh("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");rh("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");rh("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");rh("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var k_9=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(rh);VG(k_9);var EQ9=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(rh);VG(EQ9);var zz9=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(rh);VG(zz9);var oQ7=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(rh);
VG(oQ7);var nQC=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(rh);VG(nQC);var M$s=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(rh);VG(M$s);var T7v=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(rh);VG(T7v);var G_J=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(rh);VG(G_J);var D49=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(rh);VG(D49);var WSy=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(rh);VG(WSy);var O89=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(rh);VG(O89);var PWQ=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(rh);VG(PWQ);var x4T=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(rh);VG(x4T);var A85=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(rh);VG(A85);var vQy=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(rh);VG(vQy);var ID3=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(rh);VG(ID3);var H8J=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(rh);VG(H8J);var m4s=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(rh);VG(m4s);var $4D=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(rh);VG($4D);var b8v=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(rh);VG(b8v);var y8C=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(rh);VG(y8C);var CW9=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(rh);VG(CW9);var d43=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(rh);VG(d43);var V$T=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(rh);VG(V$T);var U4w=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(rh);VG(U4w);var Sh5=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(rh);VG(Sh5);var hzT=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(rh);VG(hzT);Wuy(oj(300,.5,0),oj(-240,.5,1));Wuy(oj(-100,.75,.35),oj(80,1.5,.8));Wuy(oj(260,.75,.35),oj(80,1.5,.8));oj();$7();KhP(rh("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
KhP(rh("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
KhP(rh("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
KhP(rh("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
CWE.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(A,y){A=+A;y=+y;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(A,y):this._context.moveTo(A,y);break;case 1:this._point=2;default:this._context.lineTo(A,y)}}};
(function(A){function y(qA){return new d4L(A(qA))}
y._curve=A;return y})(function(A){return new CWE(A)});
d4L.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(A,y){this._curve.point(y*Math.sin(A),y*-Math.cos(A))}};
Tvu.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:M9t(this,this._t0,U4J(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(A,y){var qA=NaN;A=+A;y=+y;if(A!==this._x1||y!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(A,y):this._context.moveTo(A,y);break;case 1:this._point=2;break;case 2:this._point=3;M9t(this,U4J(this,qA=V$z(this,A,y)),qA);break;default:M9t(this,this._t0,qA=V$z(this,A,y))}this._x0=this._x1;this._x1=A;this._y0=this._y1;this._y1=y;this._t0=qA}}};
(function(A){this._context=new ShC(A)}.prototype=Object.create(Tvu.prototype)).point=function(A,y){Tvu.prototype.point.call(this,y,A)};
ShC.prototype={moveTo:function(A,y){this._context.moveTo(y,A)},
closePath:function(){this._context.closePath()},
lineTo:function(A,y){this._context.lineTo(y,A)},
bezierCurveTo:function(A,y,qA,Xq,wf,MA){this._context.bezierCurveTo(y,A,Xq,qA,MA,wf)}};
bq.prototype={constructor:bq,scale:function(A){return A===1?this:new bq(this.k*A,this.x,this.y)},
translate:function(A,y){return A===0&y===0?this:new bq(this.k,this.x+this.k*A,this.y+this.k*y)},
apply:function(A){return[A[0]*this.k+this.x,A[1]*this.k+this.y]},
invert:function(A){return[(A[0]-this.x)/this.k,(A[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new bq(1,0,0);mu_=ND;bZ.svg=bZ.svg;bZ.xhtml=bZ.xhtml;bZ.xlink=bZ.xlink;bZ.xml=bZ.xml;bZ.xmlns=bZ.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 ZH1="hammer_"+(Math.random()*1E6|0),R7C=function(){var F=document||document;if(!F[ZH1]){var q=function(){(function(t,u,J,g){function Y(Dv,$P,SW){return setTimeout(k(Dv,SW),$P)}
function Q(Dv,$P,SW){return Array.isArray(Dv)?(e(Dv,SW[$P],SW),!0):!1}
function e(Dv,$P,SW){var kO;if(Dv)if(Dv.forEach)Dv.forEach($P,SW);else if(Dv.length!==g){var ZQ=0;for(kO=Dv.length;ZQ<kO;ZQ++)$P.call(SW,Dv[ZQ],ZQ,Dv)}else for(ZQ in Dv)Dv.hasOwnProperty(ZQ)&&$P.call(SW,Dv[ZQ],ZQ,Dv)}
function r(Dv,$P,SW){for(var kO=Object.keys($P),ZQ=0,AQ=kO.length;ZQ<AQ;ZQ++)if(!SW||SW&&Dv[kO[ZQ]]===g)Dv[kO[ZQ]]=$P[kO[ZQ]];return Dv}
function N(Dv,$P){return r(Dv,$P,!0)}
function w(Dv,$P,SW){$P=$P.prototype;var kO=Dv.prototype=Object.create($P);kO.constructor=Dv;kO._super=$P;SW&&r(kO,SW)}
function k(Dv,$P){return function(){return Dv.apply($P,arguments)}}
function z(Dv,$P){return typeof Dv=="function"?Dv.apply($P?$P[0]||g:g,$P):Dv}
function T(Dv,$P,SW){e(v($P),function(kO){Dv.addEventListener(kO,SW,!1)})}
function P(Dv,$P,SW){e(v($P),function(kO){Dv.removeEventListener(kO,SW,!1)})}
function v(Dv){return Dv.trim().split(/\s+/g)}
function H(Dv,$P,SW){if(Dv.indexOf&&!SW)return Dv.indexOf($P);for(var kO=0,ZQ=Dv.length;kO<ZQ;kO++)if(SW&&Dv[kO][SW]==$P||!SW&&Dv[kO]===$P)return kO;return-1}
function d(Dv,$P,SW){for(var kO=[],ZQ=[],AQ=0,MD=Dv.length;AQ<MD;AQ++){var ne=$P?Dv[AQ][$P]:Dv[AQ];H(ZQ,ne)<0&&kO.push(Dv[AQ]);ZQ[AQ]=ne}SW&&(kO=$P?kO.sort(function(oj,Iy){return oj[$P]>Iy[$P]}):kO.sort());
return kO}
function a(Dv,$P){for(var SW,kO=$P[0].toUpperCase()+$P.slice(1),ZQ=0,AQ=pe.length;ZQ<AQ;ZQ++)if(SW=(SW=pe[ZQ])?SW+kO:$P,SW in Dv)return SW;return g}
function S(Dv,$P){var SW=this;this.manager=Dv;this.callback=$P;this.element=Dv.element;this.target=Dv.options.inputTarget;this.domHandler=function(kO){z(Dv.options.enable,[Dv])&&SW.handler(kO)};
this.evEl&&T(this.element,this.evEl,this.domHandler);this.evTarget&&T(this.target,this.evTarget,this.domHandler);this.evWin&&T(t,this.evWin,this.domHandler)}
function K(Dv){var $P;Pn?$P=df:OT?$P=m$:ND?$P=gx:$P=o_;return new $P(Dv,h)}
function h(Dv,$P,SW){var kO=SW.pointers.length,ZQ=SW.changedPointers.length,AQ=$P&1&&kO-ZQ===0;SW.isFirst=!!AQ;SW.isFinal=!!($P&12&&kO-ZQ===0);AQ&&(Dv.session={});SW.eventType=$P;$P=Dv.session;kO=SW.pointers;ZQ=kO.length;$P.firstInput||($P.firstInput=c(SW));ZQ>1&&!$P.firstMultiple?$P.firstMultiple=c(SW):ZQ===1&&($P.firstMultiple=!1);AQ=$P.firstInput;var MD=(ZQ=$P.firstMultiple)?ZQ.center:AQ.center,ne=SW.center=rf(kO);SW.timeStamp=Wf();SW.deltaTime=SW.timeStamp-AQ.timeStamp;SW.angle=n3(MD,ne);SW.distance=
kP(MD,ne);AQ=SW.center;MD=$P.offsetDelta||{};ne=$P.prevDelta||{};var oj=$P.prevInput||{};if(SW.eventType===1||oj.eventType===4)ne=$P.prevDelta={x:oj.deltaX||0,y:oj.deltaY||0},MD=$P.offsetDelta={x:AQ.x,y:AQ.y};SW.deltaX=ne.x+(AQ.x-MD.x);SW.deltaY=ne.y+(AQ.y-MD.y);SW.offsetDirection=Zv(SW.deltaX,SW.deltaY);ZQ?(AQ=ZQ.pointers,AQ=kP(kO[0],kO[1],$7)/kP(AQ[0],AQ[1],$7)):AQ=1;SW.scale=AQ;ZQ?(ZQ=ZQ.pointers,kO=n3(kO[1],kO[0],$7)-n3(ZQ[1],ZQ[0],$7)):kO=0;SW.rotation=kO;MD=$P.lastInterval||SW;kO=SW.timeStamp-
MD.timeStamp;SW.eventType!=8&&(kO>25||MD.velocity===g)?(AQ=MD.deltaX-SW.deltaX,MD=MD.deltaY-SW.deltaY,ne=AQ/kO||0,oj=MD/kO||0,kO=ne,ZQ=oj,ne=Dw(ne)>Dw(oj)?ne:oj,AQ=Zv(AQ,MD),$P.lastInterval=SW):(ne=MD.velocity,kO=MD.velocityX,ZQ=MD.velocityY,AQ=MD.direction);SW.velocity=ne;SW.velocityX=kO;SW.velocityY=ZQ;SW.direction=AQ;$P=Dv.element;a:{for(kO=SW.srcEvent.target;kO;){if(kO==$P){kO=!0;break a}kO=kO.parentNode}kO=!1}kO&&($P=SW.srcEvent.target);SW.target=$P;Dv.emit("hammer.input",SW);Dv.recognize(SW);
Dv.session.prevInput=SW}
function c(Dv){for(var $P=[],SW=0;SW<Dv.pointers.length;SW++)$P[SW]={clientX:wJ(Dv.pointers[SW].clientX),clientY:wJ(Dv.pointers[SW].clientY)};return{timeStamp:Wf(),pointers:$P,center:rf($P),deltaX:Dv.deltaX,deltaY:Dv.deltaY}}
function rf(Dv){var $P=Dv.length;if($P===1)return{x:wJ(Dv[0].clientX),y:wJ(Dv[0].clientY)};for(var SW=0,kO=0,ZQ=0;ZQ<$P;ZQ++)SW+=Dv[ZQ].clientX,kO+=Dv[ZQ].clientY;return{x:wJ(SW/$P),y:wJ(kO/$P)}}
function Zv(Dv,$P){return Dv===$P?1:Dw(Dv)>=Dw($P)?Dv>0?2:4:$P>0?8:16}
function kP(Dv,$P,SW){SW||(SW=dx);var kO=$P[SW[0]]-Dv[SW[0]];Dv=$P[SW[1]]-Dv[SW[1]];return Math.sqrt(kO*kO+Dv*Dv)}
function n3(Dv,$P,SW){SW||(SW=dx);return Math.atan2($P[SW[1]]-Dv[SW[1]],$P[SW[0]]-Dv[SW[0]])*180/Math.PI}
function o_(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;S.apply(this,arguments)}
function df(){this.evEl=lQ;this.evWin=yF;S.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function m$(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};S.apply(this,arguments)}
function gx(){S.apply(this,arguments);var Dv=k(this.handler,this);this.touch=new m$(this.manager,Dv);this.mouse=new o_(this.manager,Dv)}
function Hf(Dv,$P){this.manager=Dv;this.set($P)}
function Zw(Dv){if(Dv.indexOf("none")>-1)return"none";var $P=Dv.indexOf("pan-x")>-1,SW=Dv.indexOf("pan-y")>-1;return $P&&SW?"pan-x pan-y":$P||SW?$P?"pan-x":"pan-y":Dv.indexOf("manipulation")>-1?"manipulation":"auto"}
function cy(Dv){this.id=zv++;this.manager=null;this.options=N(Dv||{},this.defaults);Dv=this.options.enable;this.options.enable=Dv===g?!0:Dv;this.state=1;this.simultaneous={};this.requireFail=[]}
function wx(Dv){return Dv==16?"down":Dv==8?"up":Dv==2?"left":Dv==4?"right":""}
function Rj(Dv,$P){return($P=$P.manager)?$P.get(Dv):Dv}
function xO(){cy.apply(this,arguments)}
function DQ(){xO.apply(this,arguments);this.pY=this.pX=null}
function fe(){xO.apply(this,arguments)}
function sM(){cy.apply(this,arguments);this._input=this._timer=null}
function FL(){xO.apply(this,arguments)}
function Ev(){xO.apply(this,arguments)}
function e5(){cy.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function z1(Dv,$P){$P=$P||{};var SW=$P.recognizers;$P.recognizers=SW===g?z1.defaults.preset:SW;return new qD(Dv,$P)}
function qD(Dv,$P){$P=$P||{};this.options=N($P,z1.defaults);this.options.inputTarget=this.options.inputTarget||Dv;this.handlers={};this.session={};this.recognizers=[];this.element=Dv;this.input=K(this);this.touchAction=new Hf(this,this.options.touchAction);gL(this,!0);e($P.recognizers,function(SW){var kO=this.add(new SW[0](SW[1]));SW[2]&&kO.recognizeWith(SW[2]);SW[3]&&kO.requireFailure(SW[2])},this)}
function gL(Dv,$P){var SW=Dv.element;e(Dv.options.cssProps,function(kO,ZQ){SW.style[a(SW.style,ZQ)]=$P?kO:""})}
function F3(Dv,$P){var SW=u.createEvent("Event");SW.initEvent(Dv,!0,!0);SW.gesture=$P;$P.target.dispatchEvent(SW)}
var pe=" webkit moz MS ms o".split(" "),Bf=u.createElement("div"),wJ=Math.round,Dw=Math.abs,Wf=Date.now,zv=1,R2=/mobile|tablet|ip(ad|hone|od)|android/i,ND="ontouchstart"in t,Pn=a(t,"PointerEvent")!==g,OT=ND&&R2.test(navigator.userAgent),dx=["x","y"],$7=["clientX","clientY"];S.prototype={handler:function(){},
destroy:function(){this.evEl&&P(this.element,this.evEl,this.domHandler);this.evTarget&&P(this.target,this.evTarget,this.domHandler);this.evWin&&P(t,this.evWin,this.domHandler)}};
var h9={mousedown:1,mousemove:2,mouseup:4};w(o_,S,{handler:function(Dv){var $P=h9[Dv.type];$P&1&&Dv.button===0&&(this.pressed=!0);$P&2&&Dv.which!==1&&($P=4);this.pressed&&this.allow&&($P&4&&(this.pressed=!1),this.callback(this.manager,$P,{pointers:[Dv],changedPointers:[Dv],pointerType:"mouse",srcEvent:Dv}))}});
var JQ={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},tf={2:"touch",3:"pen",4:"mouse",5:"kinect"},lQ="pointerdown",yF="pointermove pointerup pointercancel";t.MSPointerEvent&&(lQ="MSPointerDown",yF="MSPointerMove MSPointerUp MSPointerCancel");w(df,S,{handler:function(Dv){var $P=this.store,SW=!1,kO=Dv.type.toLowerCase().replace("ms","");kO=JQ[kO];var ZQ=tf[Dv.pointerType]||Dv.pointerType;kO&1&&(Dv.button===0||ZQ=="touch")?$P.push(Dv):kO&12&&(SW=!0);var AQ=H($P,Dv.pointerId,"pointerId");
AQ<0||($P[AQ]=Dv,this.callback(this.manager,kO,{pointers:$P,changedPointers:[Dv],pointerType:ZQ,srcEvent:Dv}),SW&&$P.splice(AQ,1))}});
var Wt={touchstart:1,touchmove:2,touchend:4,touchcancel:8};w(m$,S,{handler:function(Dv){var $P=Wt[Dv.type];var SW=Array.prototype.slice.call(Dv.touches,0);var kO=this.targetIds;if($P&3&&SW.length===1)kO[SW[0].identifier]=!0,kO=[SW,SW];else{var ZQ,AQ=Array.prototype.slice.call(Dv.targetTouches,0),MD=Array.prototype.slice.call(Dv.changedTouches,0),ne=[];if($P===1)for(SW=0,ZQ=AQ.length;SW<ZQ;SW++)kO[AQ[SW].identifier]=!0;SW=0;for(ZQ=MD.length;SW<ZQ;SW++)kO[MD[SW].identifier]&&ne.push(MD[SW]),$P&12&&
delete kO[MD[SW].identifier];kO=ne.length?[d(AQ.concat(ne),"identifier",!0),ne]:void 0}kO&&this.callback(this.manager,$P,{pointers:kO[0],changedPointers:kO[1],pointerType:"touch",srcEvent:Dv})}});
w(gx,S,{handler:function(Dv,$P,SW){var kO=SW.pointerType=="mouse";if(SW.pointerType=="touch")this.mouse.allow=!1;else if(kO&&!this.mouse.allow)return;$P&12&&(this.mouse.allow=!0);this.callback(Dv,$P,SW)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Es=a(Bf.style,"touchAction"),WD=Es!==g;Hf.prototype={set:function(Dv){Dv=="compute"&&(Dv=this.compute());WD&&(this.manager.element.style[Es]=Dv);this.actions=Dv.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Dv=[];e(this.manager.recognizers,function($P){z($P.options.enable,[$P])&&(Dv=Dv.concat($P.getTouchAction()))});
return Zw(Dv.join(" "))},
preventDefaults:function(Dv){if(!WD){var $P=Dv.srcEvent;Dv=Dv.offsetDirection;if(this.manager.session.prevented)$P.preventDefault();else{var SW=this.actions,kO=SW.indexOf("none")>-1,ZQ=SW.indexOf("pan-y")>-1;SW=SW.indexOf("pan-x")>-1;if(kO||ZQ&&SW||ZQ&&Dv&6||SW&&Dv&24)return this.preventSrc($P)}}},
preventSrc:function(Dv){this.manager.session.prevented=!0;Dv.preventDefault()}};
cy.prototype={defaults:{},set:function(Dv){r(this.options,Dv);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Dv){if(Q(Dv,"recognizeWith",this))return this;var $P=this.simultaneous;Dv=Rj(Dv,this);$P[Dv.id]||($P[Dv.id]=Dv,Dv.recognizeWith(this));return this},
dropRecognizeWith:function(Dv){if(Q(Dv,"dropRecognizeWith",this))return this;Dv=Rj(Dv,this);delete this.simultaneous[Dv.id];return this},
requireFailure:function(Dv){if(Q(Dv,"requireFailure",this))return this;var $P=this.requireFail;Dv=Rj(Dv,this);H($P,Dv)===-1&&($P.push(Dv),Dv.requireFailure(this));return this},
dropRequireFailure:function(Dv){if(Q(Dv,"dropRequireFailure",this))return this;Dv=Rj(Dv,this);Dv=H(this.requireFail,Dv);Dv>-1&&this.requireFail.splice(Dv,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Dv){return!!this.simultaneous[Dv.id]},
emit:function(Dv){function $P(ZQ){SW.manager.emit(SW.options.event+(ZQ?kO&16?"cancel":kO&8?"end":kO&4?"move":kO&2?"start":"":""),Dv)}
var SW=this,kO=this.state;kO<8&&$P(!0);$P();kO>=8&&$P(!0)},
tryEmit:function(Dv){if(this.canEmit())return this.emit(Dv);this.state=32},
canEmit:function(){for(var Dv=0;Dv<this.requireFail.length;Dv++)if(!(this.requireFail[Dv].state&33))return!1;return!0},
recognize:function(Dv){Dv=r({},Dv);z(this.options.enable,[this,Dv])?(this.state&56&&(this.state=1),this.state=this.process(Dv),this.state&30&&this.tryEmit(Dv)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
w(xO,cy,{defaults:{pointers:1},attrTest:function(Dv){var $P=this.options.pointers;return $P===0||Dv.pointers.length===$P},
process:function(Dv){var $P=this.state,SW=Dv.eventType,kO=$P&6;Dv=this.attrTest(Dv);return kO&&(SW&8||!Dv)?$P|16:kO||Dv?SW&4?$P|8:$P&2?$P|4:2:32}});
w(DQ,xO,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Dv=this.options.direction;if(Dv===30)return["none"];var $P=[];Dv&6&&$P.push("pan-y");Dv&24&&$P.push("pan-x");return $P},
directionTest:function(Dv){var $P=this.options,SW=!0,kO=Dv.distance,ZQ=Dv.direction,AQ=Dv.deltaX,MD=Dv.deltaY;ZQ&$P.direction||($P.direction&6?(ZQ=AQ===0?1:AQ<0?2:4,SW=AQ!=this.pX,kO=Math.abs(Dv.deltaX)):(ZQ=MD===0?1:MD<0?8:16,SW=MD!=this.pY,kO=Math.abs(Dv.deltaY)));Dv.direction=ZQ;return SW&&kO>$P.threshold&&ZQ&$P.direction},
attrTest:function(Dv){return xO.prototype.attrTest.call(this,Dv)&&(this.state&2||!(this.state&2)&&this.directionTest(Dv))},
emit:function(Dv){this.pX=Dv.deltaX;this.pY=Dv.deltaY;var $P=wx(Dv.direction);$P&&this.manager.emit(this.options.event+$P,Dv);this._super.emit.call(this,Dv)}});
w(fe,xO,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Dv){return this._super.attrTest.call(this,Dv)&&(Math.abs(Dv.scale-1)>this.options.threshold||this.state&2)},
emit:function(Dv){this._super.emit.call(this,Dv);Dv.scale!==1&&this.manager.emit(this.options.event+(Dv.scale<1?"in":"out"),Dv)}});
w(sM,cy,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Dv){var $P=this.options,SW=Dv.pointers.length===$P.pointers,kO=Dv.distance<$P.threshold,ZQ=Dv.deltaTime>$P.time;this._input=Dv;if(!kO||!SW||Dv.eventType&12&&!ZQ)this.reset();else if(Dv.eventType&1)this.reset(),this._timer=Y(function(){this.state=8;this.tryEmit()},$P.time,this);
else if(Dv.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Dv){this.state===8&&(Dv&&Dv.eventType&4?this.manager.emit(this.options.event+"up",Dv):(this._input.timeStamp=Wf(),this.manager.emit(this.options.event,this._input)))}});
w(FL,xO,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Dv){return this._super.attrTest.call(this,Dv)&&(Math.abs(Dv.rotation)>this.options.threshold||this.state&2)}});
w(Ev,xO,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return DQ.prototype.getTouchAction.call(this)},
attrTest:function(Dv){var $P=this.options.direction;if($P&30)var SW=Dv.velocity;else $P&6?SW=Dv.velocityX:$P&24&&(SW=Dv.velocityY);return this._super.attrTest.call(this,Dv)&&$P&Dv.direction&&Dw(SW)>this.options.velocity&&Dv.eventType&4},
emit:function(Dv){var $P=wx(Dv.direction);$P&&this.manager.emit(this.options.event+$P,Dv);this.manager.emit(this.options.event,Dv)}});
w(e5,cy,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Dv){var $P=this.options,SW=Dv.pointers.length===$P.pointers,kO=Dv.distance<$P.threshold,ZQ=Dv.deltaTime<$P.time;this.reset();if(Dv.eventType&1&&this.count===0)return this.failTimeout();if(kO&&ZQ&&SW){if(Dv.eventType!=4)return this.failTimeout();SW=this.pTime?Dv.timeStamp-this.pTime<$P.interval:!0;kO=!this.pCenter||kP(this.pCenter,Dv.center)<$P.posThreshold;this.pTime=Dv.timeStamp;this.pCenter=Dv.center;kO&&SW?this.count+=1:this.count=1;this._input=Dv;if(this.count%$P.taps===0)return this.hasRequireFailures()?
(this._timer=Y(function(){this.state=8;this.tryEmit()},$P.interval,this),2):8}return 32},
failTimeout:function(){this._timer=Y(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
z1.VERSION="2.0.2";z1.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[FL,{enable:!1}],[fe,{enable:!1},["rotate"]],[Ev,{direction:6}],[DQ,{direction:6},["swipe"]],[e5],[e5,{event:"doubletap",taps:2},["tap"]],[sM]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};qD.prototype={set:function(Dv){r(this.options,Dv);return this},
stop:function(Dv){this.session.stopped=Dv?2:1},
recognize:function(Dv){var $P=this.session;if(!$P.stopped){this.touchAction.preventDefaults(Dv);var SW=this.recognizers,kO=$P.curRecognizer;if(!kO||kO&&kO.state&8)kO=$P.curRecognizer=null;for(var ZQ=0,AQ=SW.length;ZQ<AQ;ZQ++){var MD=SW[ZQ];$P.stopped===2||kO&&MD!=kO&&!MD.canRecognizeWith(kO)?MD.reset():MD.recognize(Dv);!kO&&MD.state&14&&(kO=$P.curRecognizer=MD)}}},
get:function(Dv){if(Dv instanceof cy)return Dv;for(var $P=this.recognizers,SW=0;SW<$P.length;SW++)if($P[SW].options.event==Dv)return $P[SW];return null},
add:function(Dv){if(Q(Dv,"add",this))return this;var $P=this.get(Dv.options.event);$P&&this.remove($P);this.recognizers.push(Dv);Dv.manager=this;this.touchAction.update();return Dv},
remove:function(Dv){if(Q(Dv,"remove",this))return this;var $P=this.recognizers;Dv=this.get(Dv);$P.splice(H($P,Dv),1);this.touchAction.update();return this},
on:function(Dv,$P){var SW=this.handlers;e(v(Dv),function(kO){SW[kO]=SW[kO]||[];SW[kO].push($P)});
return this},
off:function(Dv,$P){var SW=this.handlers;e(v(Dv),function(kO){$P?SW[kO].splice(H(SW[kO],$P),1):delete SW[kO]});
return this},
emit:function(Dv,$P){this.options.domEvents&&F3(Dv,$P);var SW=this.handlers[Dv]&&this.handlers[Dv].slice();if(SW&&SW.length){$P.type=Dv;$P.preventDefault=function(){$P.srcEvent.preventDefault()};
Dv=0;for(var kO=SW.length;Dv<kO;Dv++)SW[Dv]($P)}},
destroy:function(){this.element&&gL(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
r(z1,{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:qD,Input:S,TouchAction:Hf,Recognizer:cy,AttrRecognizer:xO,Tap:e5,Pan:DQ,Swipe:Ev,Pinch:fe,Rotate:FL,Press:sM,on:T,off:P,each:e,merge:N,extend:r,inherit:w,bindFn:k,prefixed:a});
t[J]=z1})(window,document,"Hammer");
return window.Hammer}.call({});
q.DOCUMENT=F;F[ZH1]=q}return F[ZH1]};/*

 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 rCr=function(F,q){if(F.length!==q.length)return!1;for(var t=0;t<F.length;++t)if(F[t]!==q[t])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var N0r=_.X(["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"]),wDn=N0r.next();!wDn.done;wDn=N0r.next()){var iHE=wDn.value,kl1=document.createElement("link");kl1.rel="stylesheet";kl1.href=iHE;document.head.appendChild(kl1)};var RNt,NUW,iQP,QRo,rcP,eN3,Yrf,prW;RNt={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};NUW={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:"*"};iQP={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};QRo=/[a-z0-9*]/;rcP=/U\+/;eN3=/^arrow/;Yrf=/^space(bar)?/;prW=/^escape$/;_.v6={properties:{keyEventTarget:{type:Object,value:function(){return this}},
stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},
_imperativeKeyBindings:{type:Object,value:function(){return{}}}},
observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},
attached:function(){this._listenKeyEventListeners()},
detached:function(){this._unlistenKeyEventListeners()},
addOwnKeyBinding:function(F,q){this._imperativeKeyBindings[F]=q;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(F,q){q=EDC(q);for(var t=0;t<q.length;++t)if(wr$(q[t],F))return!0;return!1},
_collectKeyBindings:function(){var F=this.behaviors.map(function(q){return q.keyBindings});
F.indexOf(this.keyBindings)===-1&&F.push(this.keyBindings);return F},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(t){for(var u in t)this._addKeyBinding(u,t[u])},this);
for(var F in this._imperativeKeyBindings)this._addKeyBinding(F,this._imperativeKeyBindings[F]);for(var q in this._keyBindings)this._keyBindings[q].sort(function(t,u){t=t[0].hasModifiers;return t===u[0].hasModifiers?0:t?-1:1})},
_addKeyBinding:function(F,q){EDC(F).forEach(function(t){this._keyBindings[t.event]=this._keyBindings[t.event]||[];this._keyBindings[t.event].push([t,q])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(F){var q=this._onKeyBindingEvent.bind(this,this._keyBindings[F]);this._boundKeyHandlers.push([this.keyEventTarget,F,q]);this.keyEventTarget.addEventListener(F,q)},this)},
_unlistenKeyEventListeners:function(){for(var F,q,t;this._boundKeyHandlers.length;)F=this._boundKeyHandlers.pop(),q=F[0],t=F[1],F=F[2],q.removeEventListener(t,F)},
_onKeyBindingEvent:function(F,q){this.stopKeyboardEventPropagation&&q.stopPropagation();if(!q.defaultPrevented)for(var t=0;t<F.length;t++){var u=F[t][0],J=F[t][1];if(wr$(u,q)&&(this._triggerKeyHandler(u,J,q),q.defaultPrevented))break}},
_triggerKeyHandler:function(F,q,t){var u=Object.create(F);u.keyboardEvent=t;F=new CustomEvent(F.event,{detail:u,cancelable:!0});this[q].call(this,F);F.defaultPrevented&&t.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
*/
_.Hh({is:"iron-a11y-keys",_template:null,behaviors:[_.v6],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(F){this.keyEventTarget=F},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(F){this.fire("keys-pressed",F.detail,{})}});_.I$={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},
observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0);this.addEventListener("blur",this._boundFocusBlurHandler,!0)},
_focusBlurHandler:function(F){this._setFocused(F.type==="focus")},
_disabledChanged:function(F){this.setAttribute("aria-disabled",F?"true":"false");this.style.pointerEvents=F?"none":"";F?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):this._oldTabIndex!==void 0&&(this._oldTabIndex===null?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},
_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};var H6={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",mouseup:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)",
"_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},
_focusChanged:function(F){this._detectKeyboardFocus(F);F||this._setPressed(!1)},
_detectKeyboardFocus:function(F){this._setReceivedFocusFromKeyboard(!this.pointerDown&&F)},
_userActivate:function(F){this.active!==F&&(this.active=F,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(F){F=F.detail.keyboardEvent;var q=_.xz(F).localTarget;this.isLightDescendant(q)||(F.preventDefault(),F.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(F){F=_.xz(F.detail.keyboardEvent).localTarget;this.isLightDescendant(F)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(F,q){q&&q!=F&&this.hasAttribute(q)&&this.removeAttribute(q)},
_activeChanged:function(F){this.toggles?this.setAttribute(this.ariaActiveAttribute,F?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},ECJ=[_.v6,
H6];_.my={IronButtonState:ECJ,IronButtonStateImpl:H6};_.$x={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.bS=function(F){_.bS[" "](F);this.type=F&&F.type||"default";this.key=F&&F.key;F&&"value"in F&&(this.value=F.value)};
_.bS.prototype.byKey=function(F){this.key=F;return this.value};
_.JJ.Object.defineProperties(_.bS.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var F=this.type,q=this.key;if(F&&q)return yl[F]&&yl[F][q]},
set:function(F){var q=this.type,t=this.key;q&&t&&(q=yl[q]=yl[q]||{},F==null?delete q[t]:q[t]=F)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var F=yl[this.type];return F?Object.keys(F).map(function(q){return yl[this.type][q]},this):[]}}});
_.bS[" "]=function(){};
var yl={};_.Hh({is:"iron-meta",_template:null,properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(F,q,t){F=new _.bS({type:F,key:q});t!==void 0&&t!==F.value?F.value=t:this.value!==F.value&&(this.value=F.value);return F},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(F){F&&(this.value=this)},
byKey:function(F){return(new _.bS({type:this.type,key:F})).value}});var z7C;z7C=null;_.Ci={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){z7C=new _.bS({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return z7C&&z7C.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(F){this.invalid=F===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(F);return!this.invalid},
_getValidity:function(F){return this.hasValidator()?this._validator.validate(F):!0}};var oCO={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"}},nCv=[_.$x,
_.Ci,oCO];_.Hh({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 _.bS({type:"iconset",key:null,value:null})},
attached:function(){this.style.display="none"},
getIconNames:function(){this._icons=this._createIconMap();return Object.keys(this._icons).map(function(F){return this.name+":"+F},this)},
applyIcon:function(F,q){this.removeIcon(F);if(q=this._cloneIcon(q,this.rtlMirroring&&this._targetIsRTL(F))){var t=_.xz(F.root||F);t.insertBefore(q,t.childNodes[0]);return F._svgIcon=q}return null},
removeIcon:function(F){F._svgIcon&&(_.xz(F.root||F).removeChild(F._svgIcon),F._svgIcon=null)},
_targetIsRTL:function(F){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(F&&F.nodeType!==Node.ELEMENT_NODE&&(F=F.host),this.__targetIsRTL=F&&window.getComputedStyle(F).direction==="rtl"));return this.__targetIsRTL},
_nameChanged:function(){this._meta.value=null;this._meta.key=this.name;this._meta.value=this;this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},
_createIconMap:function(){var F=Object.create(null);_.xz(this).querySelectorAll("[id]").forEach(function(q){F[q.id]=q});
return F},
_cloneIcon:function(F,q){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[F],this.size,q)},
_prepareSvgClone:function(F,q,t){if(F){F=F.cloneNode(!0);var u=document.createElementNS("http://www.w3.org/2000/svg","svg");q=F.getAttribute("viewBox")||"0 0 "+q+" "+q;var J="pointer-events: none; display: block; width: 100%; height: 100%;";t&&F.hasAttribute("mirror-in-rtl")&&(J+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");u.setAttribute("viewBox",q);u.setAttribute("preserveAspectRatio","xMidYMid meet");u.setAttribute("focusable","false");u.style&&(u.style.cssText=
J);u.appendChild(F).removeAttribute("id");return u}return null}});var Mav=function(F){this.multi=!1;this.selection=[];this.selectCallback=F};
_.l=Mav.prototype;_.l.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.l.clear=function(F){this.selection.slice().forEach(function(q){(!F||F.indexOf(q)<0)&&this.setItemSelected(q,!1)},this)};
_.l.isSelected=function(F){return this.selection.indexOf(F)>=0};
_.l.setItemSelected=function(F,q){if(F!=null&&q!==this.isSelected(F)){if(q)this.selection.push(F);else{var t=this.selection.indexOf(F);t>=0&&this.selection.splice(t,1)}this.selectCallback&&this.selectCallback(F,q)}};
_.l.select=function(F){this.multi?this.toggle(F):this.get()!==F&&(this.setItemSelected(this.get(),!1),this.setItemSelected(F,!0))};
_.l.toggle=function(F){this.setItemSelected(F,!this.isSelected(F))};_.ch={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 Mav(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.xz(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(F){return this.items?this.items.indexOf(F):-1},
select:function(F){this.selected=F},
selectPrevious:function(){var F=this.items.length,q=F-1;this.selected!==void 0&&(q=(Number(this._valueToIndex(this.selected))-1+F)%F);this.selected=this._indexToValue(q)},
selectNext:function(){var F=0;this.selected!==void 0&&(F=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(F)},
selectIndex:function(F){this.select(this._indexToValue(F))},
forceSynchronousItemUpdate:function(){this._observer&&typeof this._observer.flush==="function"?this._observer.flush():this._updateItems()},
get _shouldUpdateSelection(){return this.selected!=null},_checkFallback:function(){this._updateSelected()},
_addListener:function(F){this.listen(this,F,"_activateHandler")},
_removeListener:function(F){this.unlisten(this,F,"_activateHandler")},
_activateEventChanged:function(F,q){this._removeListener(q);this._addListener(F)},
_updateItems:function(){var F=_.xz(this).queryDistributedElements(this.selectable||"*");F=Array.prototype.filter.call(F,this._bindFilterItem);this._setItems(F)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var F=this._valueToItem(this.selected);F?this._selection.select(F):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(F){return!this._excludedLocalNames[F.localName]},
_valueToItem:function(F){return F==null?null:this.items[this._valueToIndex(F)]},
_valueToIndex:function(F){if(this.attrForSelected)for(var q=0,t;t=this.items[q];q++){if(this._valueForItem(t)==F)return q}else return Number(F)},
_indexToValue:function(F){if(this.attrForSelected){if(F=this.items[F])return this._valueForItem(F)}else return F},
_valueForItem:function(F){if(!F)return null;if(!this.attrForSelected)return F=this.indexOf(F),F===-1?null:F;var q=F[ZS(this.attrForSelected)];return q!=void 0?q:F.getAttribute(this.attrForSelected)},
_applySelection:function(F,q){this.selectedClass&&this.toggleClass(this.selectedClass,q,F);this.selectedAttribute&&this.toggleAttribute.call(F,this.selectedAttribute,q);this._selectionChange();this.fire("iron-"+(q?"select":"deselect"),{item:F})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(F){return _.xz(F).observeNodes(function(q){this._updateItems();this._updateSelected();this.fire("iron-items-changed",q,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(F){F=F.target;for(var q=this.items;F&&F!=this;){var t=q.indexOf(F);if(t>=0){q=this._indexToValue(t);this._itemActivate(q,F);break}F=F.parentNode}},
_itemActivate:function(F,q){this.fire("iron-activate",{selected:F,item:q},{cancelable:!0}).defaultPrevented||this.select(F)}};var T0C={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},
selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},
observers:["_updateSelected(selectedValues.splices)"],select:function(F){this.multi?this._toggleSelected(F):this.selected=F},
multiChanged:function(F){this._selection.multi=F;this._updateSelected()},
get _shouldUpdateSelection(){return this.selected!=null||this.selectedValues!=null&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map(function(F){return this._indexToValue(this.indexOf(F))},this).filter(function(F){return F!=null},this)):_.ch._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(F){F=F||[];F=(this._valuesToItems(F)||[]).filter(function(t){return t!==null&&t!==void 0});
this._selection.clear(F);for(var q=0;q<F.length;q++)this._selection.setItemSelected(F[q],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var F=this._selection.get();this.multi?(this._setSelectedItems(F),this._setSelectedItem(F.length?F[0]:null)):F!==null&&F!==void 0?(this._setSelectedItems([F]),this._setSelectedItem(F)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(F){var q=this.selectedValues.indexOf(F);q<0?this.push("selectedValues",F):this.splice("selectedValues",q,1)},
_valuesToItems:function(F){return F==null?null:F.map(function(q){return this._valueToItem(q)},this)}},Gle=[_.ch,
T0C];var DZj;
_.dz={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),_SEARCH_RESET_TIMEOUT_MS:1E3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",
down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},
select:function(F){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var q=this._valueToItem(F);q&&q.hasAttribute("disabled")||(this._setFocusedItem(q),T0C.select.apply(this,arguments))},
_resetTabindices:function(){var F=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(q){q.setAttribute("tabindex",q===F?"0":"-1");q.setAttribute("aria-selected",this._selection.isSelected(q))},this)},
_updateMultiselectable:function(F){F?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(F){if(this._MODIFIER_KEYS.indexOf(F.key)===-1){this.cancelDebouncer("_clearSearchText");var q=this._searchText||"";q+=(F.key&&F.key.length==1?F.key:String.fromCharCode(F.keyCode)).toLocaleLowerCase();F=q.length;for(var t=0,u;u=this.items[t];t++)if(!u.hasAttribute("disabled")){var J=this.attrForItemTitle||"textContent";J=(u[J]||u.getAttribute(J)||"").trim();if(!(J.length<F)&&J.slice(0,F).toLocaleLowerCase()==q){this._setFocusedItem(u);break}}this._searchText=q;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var F=this.items.length,q=Number(this.indexOf(this.focusedItem)),t=1;t<F+1;t++){var u=this.items[(q-t+F)%F];if(!u.hasAttribute("disabled")){var J=_.xz(u).getOwnerRoot()||document;this._setFocusedItem(u);if(_.xz(J).activeElement==u)break}}},
_focusNext:function(){for(var F=this.items.length,q=Number(this.indexOf(this.focusedItem)),t=1;t<F+1;t++){var u=this.items[(q+t)%F];if(!u.hasAttribute("disabled")){var J=_.xz(u).getOwnerRoot()||document;this._setFocusedItem(u);if(_.xz(J).activeElement==u)break}}},
_applySelection:function(F,q){q?F.setAttribute("aria-selected","true"):F.setAttribute("aria-selected","false");_.ch._applySelection.apply(this,arguments)},
_focusedItemChanged:function(F,q){q&&q.setAttribute("tabindex","-1");!F||F.hasAttribute("disabled")||this.disabled||(F.setAttribute("tabindex","0"),F.focus())},
_onIronItemsChanged:function(F){F.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var F=this.getAttribute("tabindex");_.dz._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",F);_.dz._shiftTabPressed=!1},1)},
_onFocus:function(F){!_.dz._shiftTabPressed&&(F=_.xz(F).rootTarget,F===this||typeof F.tabIndex==="undefined"||this.isLightDescendant(F))&&(this._defaultFocusAsync=this.async(function(){var q=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);q?this._setFocusedItem(q):this.items[0]&&this._focusNext()}))},
_onUpKey:function(F){this._focusPrevious();F.detail.keyboardEvent.preventDefault()},
_onDownKey:function(F){this._focusNext();F.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var F=this.focusedItem;F&&F.blur()},
_onKeydown:function(F){this.keyboardEventMatchesKeys(F,"up down esc")||this._focusWithKeyboardEvent(F);F.stopPropagation()},
_activateHandler:function(F){_.ch._activateHandler.call(this,F);F.stopPropagation()},
_disabledChanged:function(F){F?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};DZj=[Gle,_.v6,_.dz];_.WpJ={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(F){this.focusedItem&&(this.focusedItem.click(),F.detail.keyboardEvent.preventDefault())},
_onDownKey:function(F){this.focusedItem&&(this.focusedItem.click(),F.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(F){return F.ctrlKey||F.shiftKey||F.altKey||F.metaKey},
_onLeftKey:function(F){this._isSpecialKey(F.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),F.detail.keyboardEvent.preventDefault())},
_onRightKey:function(F){this._isSpecialKey(F.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),F.detail.keyboardEvent.preventDefault())},
_onKeydown:function(F){this.keyboardEventMatchesKeys(F,"up down left right esc")||this._focusWithKeyboardEvent(F)}};
_.OHv=[DZj,_.WpJ];var P6r;P6r=new Set;_.Vl={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):(P6r.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(F){this.resizerShouldNotify(F)&&this._notifyDescendant(F)},this),this._fireResize())},
assignParentResizable:function(F){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=F)&&F._interestedResizables.indexOf(this)===-1&&(F._interestedResizables.push(this),F._subscribeIronResize(this))},
stopResizeNotificationsFor:function(F){var q=this._interestedResizables.indexOf(F);q>-1&&(this._interestedResizables.splice(q,1),this._unsubscribeIronResize(F))},
_subscribeIronResize:function(F){F.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(F){F.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(F){this._notifyingDescendant?F.stopPropagation():SM||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(F){var q=_.xz(F).rootTarget;q!==this&&(q.assignParentResizable(this),this._notifyDescendant(q),F.stopPropagation())},
_parentResizableChanged:function(F){F&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(F){this.isAttached&&(this._notifyingDescendant=!0,F.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var F=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function t(){document.removeEventListener("readystatechange",t);F()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(q){q!==this&&q._findParent()},this):(P6r.forEach(function(q){q!==this&&q._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?P6r.delete(this):P6r.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
*/
_.xZz={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(F,q){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);q&&(F==="document"?this.scrollTarget=this._doc:typeof F==="string"?this.scrollTarget=(q=this.domHost)&&q.$?q.$[F]:_.xz(this.ownerDocument).querySelector("#"+F):this._isValidScrollTarget()&&(this._oldScrollTarget=F,this._toggleScrollListener(this._shouldHaveListener,F)))},
_scrollHandler:function(){},
get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(F){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,F):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
F)},set _scrollLeft(F){this.scrollTarget===this._doc?window.scrollTo(F,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=F)},scroll:function(F,q){if(typeof F==="object"){var t=F.left;q=F.top}else t=F;t=t||0;q=q||0;this.scrollTarget===this._doc?window.scrollTo(t,q):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=t,this.scrollTarget.scrollTop=q)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(F,q){q=q===this._doc?window:q;F?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),q.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(q.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(F){this._shouldHaveListener=F;this._toggleScrollListener(F,this.scrollTarget)}};_.Hh({is:"iron-selector",_template:null,behaviors:[Gle]});var Uw={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},
isNeonAnimation:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},
timingFromConfig:function(F){if(F.timing)for(var q in F.timing)this.animationTiming[q]=F.timing[q];return this.animationTiming},
setPrefixedProperty:function(F,q,t){for(var u={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[q],J,g=0;J=u[g];g++)F.style[J]=t;F.style[q]=t},
complete:function(){}};_.Hh({is:"fade-in-animation",_template:null,behaviors:[Uw],configure:function(F){return this._effect=new KeyframeEffect(F.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(F))}});_.Hh({is:"fade-out-animation",_template:null,behaviors:[Uw],configure:function(F){return this._effect=new KeyframeEffect(F.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(F))}});var ACC=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},
_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},
_copyProperties:function(F,q){for(var t in q)F[t]=q[t]},
_cloneConfig:function(F){var q={isClone:!0};this._copyProperties(q,F);return q},
_getAnimationConfigRecursive:function(F,q,t){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 u=F?this.animationConfig[F]:this.animationConfig;Array.isArray(u)||(u=[u]);if(u)for(var J,g=0;J=u[g];g++)if(J.animatable)J.animatable._getAnimationConfigRecursive(J.type||F,q,t);else if(J.id){var Y=q[J.id];
Y?(Y.isClone||(q[J.id]=this._cloneConfig(Y),Y=q[J.id]),this._copyProperties(Y,J)):q[J.id]=J}else t.push(J)}},
getAnimationConfig:function(F){var q={},t=[];this._getAnimationConfigRecursive(F,q,t);for(var u in q)t.push(q[u]);return t}},
{_configureAnimations:function(F){var q=[],t=[];if(F.length>0)for(var u,J=0;u=F[J];J++){var g=document.createElement(u.name);if(g.isNeonAnimation){var Y=null;g.configure||(g.configure=function(){return null});
Y=g.configure(u);t.push({result:Y,config:u})}else console.warn(this.is+":",u.name,"not found!")}for(F=0;F<t.length;F++){Y=t[F].result;u=t[F].config;try{typeof Y.cancel!="function"&&(Y=document.timeline.play(Y))}catch(Q){Y=null,console.warn("Couldnt play","(",u.name,").",Q)}Y&&q.push({neonAnimation:g,config:u,animation:Y})}return q},
_shouldComplete:function(F){for(var q=!0,t=0;t<F.length;t++)if(F[t].animation.playState!="finished"){q=!1;break}return q},
_complete:function(F){for(var q=0;q<F.length;q++)F[q].neonAnimation.complete(F[q].config);for(q=0;q<F.length;q++)F[q].animation.cancel()},
playAnimation:function(F,q){var t=this.getAnimationConfig(F);if(t){this._active=this._active||{};this._active[F]&&(this._complete(this._active[F]),delete this._active[F]);var u=this._configureAnimations(t);if(u.length==0)this.fire("neon-animation-finish",q,{bubbles:!1});else for(this._active[F]=u,t=0;t<u.length;t++)u[t].animation.onfinish=function(){this._shouldComplete(u)&&(this._complete(u),delete this._active[F],this.fire("neon-animation-finish",q,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var F in this._active){var q=this._active[F],t;for(t in q)q[t].animation&&q[t].animation.cancel&&q[t].animation.cancel()}this._active={}}}];var Ee=function(F,q){F=Error.call(this,F);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.arg=q;this.name=this.constructor.name;this.constructor=Ee;this.__proto__=Ee.prototype};
_.M(Ee,Error);var vCr=YZ(function(F){var q=function(){return F.apply(this,arguments)||this};
_.M(q,F);q.prototype._marshalArgs=function(t,u,J){u=F.prototype._marshalArgs.call(this,t,u,J);if(this._legacyUndefinedCheck&&u.length>1)for(J=0;J<u.length;J++)if(u[J]===void 0||t[J].wildcard&&u[J].base===void 0)throw t=t[J].name,new Ee("Argument '"+t+"' is undefined.",t);return u};
q.prototype._addPropertyEffect=function(t,u,J){return F.prototype._addPropertyEffect.call(this,t,u,zNt(J,J&&J.info&&J.info.methodName))};
q._addTemplatePropertyEffect=function(t,u,J){return F._addTemplatePropertyEffect.call(this,t,u,zNt(J))};
return q}),Iz1=_.Hh.Class;
_.Hh.Class=function(F,q){return Iz1(F,function(t){return q?q(vCr(t)):vCr(t)})};
var HH1=YZ(function(F){var q=vCr(F);F=function(){return q.apply(this,arguments)||this};
_.M(F,q);_.JJ.Object.defineProperties(F.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return F}),mZ1=KW.mixin;
KW.mixin=mZ1?function(F){return HH1(mZ1(F))}:HH1;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.Sq=_.my.IronButtonState;var wYy=UT;/*

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 bHE;_.$Zd="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");bHE=function(){var F=[],q;var t=t||_.$Zd.length;for(q=0;q<8;q++)F[q]=_.$Zd[0|Math.random()*t];return F.join("")};var TUW=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mu_="@@redux/INIT"+TUW(),WXq="@@redux/REPLACE"+TUW();var OQ_=typeof Symbol==="function"&&Symbol.observable||"@@observable";var yCL=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var C6C="top right bottom left width height size weight".split(" "),dZw=typeof MutationObserver!=="undefined",VaJ=yCL&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,UZj=function(){this.mutationEventsAdded_=this.JSC$11740_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=PbW(this.refresh.bind(this))},SOO=function(F,
q){var t=F.observers_;
q=t.indexOf(q);~q&&t.splice(q,1);!t.length&&F.JSC$11740_connected_&&yCL&&F.JSC$11740_connected_&&(document.removeEventListener("transitionend",F.onTransitionEnd_),window.removeEventListener("resize",F.refresh),F.mutationsObserver_&&(F.mutationsObserver_.disconnect(),VaJ&&(HTMLElement.prototype.attachShadow=VaJ)),F.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",F.refresh),F.mutationsObserver_=null,F.mutationEventsAdded_=!1,F.JSC$11740_connected_=!1)};
UZj.prototype.refresh=function(){h7O(this)&&this.refresh()};
var h7O=function(F){F=F.observers_.filter(function(q){return KpE(q),q.activeObservations_.length>0});
F.forEach(function(q){return B0z(q)});
return F.length>0},Lpz=function(F){if(yCL&&!F.JSC$11740_connected_){document.addEventListener("transitionend",F.onTransitionEnd_);
window.addEventListener("resize",F.refresh);if(dZw){F.mutationsObserver_=new MutationObserver(F.refresh);var q={attributes:!0,childList:!0,characterData:!0,subtree:!0};F.mutationsObserver_.observe(document,q);VaJ&&(function J(u){var g=u.shadowRoot;g&&(F.mutationsObserver_.observe(g,q),J(g));for(u=u.firstElementChild;u;)J(u),u=u.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var u=VaJ.apply(this,_.US.apply(0,arguments));
F.mutationsObserver_.observe(u,q);return u})}else document.addEventListener("DOMSubtreeModified",F.refresh),F.mutationEventsAdded_=!0;
F.JSC$11740_connected_=!0}};
UZj.prototype.onTransitionEnd_=function(F){var q=F.propertyName===void 0?"":F.propertyName;C6C.some(function(t){return!!~q.indexOf(t)})&&this.refresh()};
var fzj=null;var azj=function(F,q){for(var t=_.X(Object.keys(q)),u=t.next();!u.done;u=t.next())u=u.value,Object.defineProperty(F,u,{value:q[u],enumerable:!1,writable:!1,configurable:!0})};var h3=function(F){var q;return(F==null?void 0:(q=F.ownerDocument)==null?void 0:q.defaultView)||globalThis};var jsf={x:0,y:0,width:0,height:0},cCr=typeof SVGGraphicsElement!=="undefined"?function(F){return F instanceof h3(F).SVGGraphicsElement}:function(F){return F instanceof h3(F).SVGElement&&typeof F.getBBox==="function"};var FTe=function(F){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=F};
FTe.prototype.isActive=function(){var F=this.target;if(yCL)if(cCr(F)){var q=F.getBBox();q={x:0,y:0,width:q.width,height:q.height}}else{var t=F.clientWidth,u=F.clientHeight;if(t||u){var J=h3(F).getComputedStyle(F);q=ou(J["padding-top"]);var g=ou(J["padding-left"]),Y=g+ou(J["padding-right"]),Q=q+ou(J["padding-bottom"]),e=ou(J.width),r=ou(J.height);J.boxSizing==="border-box"&&(Math.round(e+Y)!==t&&(e-=xzf(J,"left","right")+Y),Math.round(r+Q)!==u&&(r-=xzf(J,"top","bottom")+Q));F!==h3(F).document.documentElement&&
(F=Math.round(e+Y)-t,u=Math.round(r+Q)-u,Math.abs(F)!==1&&(e-=F),Math.abs(u)!==1&&(r-=u));q={x:g,y:q,width:e,height:r}}else q=jsf}else q=jsf;this.contentRect_=q;return q.width!==this.broadcastWidth||q.height!==this.broadcastHeight};var qoO=function(F,q){var t=q.x;var u=q.y;var J=q.width;q=q.height;var g=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);azj(g,{x:t,y:u,width:J,height:q,top:u,right:t+J,bottom:q+u,left:t});azj(this,{target:F,contentRect:g})};var txz=function(F,q){var t=fzj;this.activeObservations_=[];this.observations_=new Map;if(typeof F!=="function")throw new TypeError("Qe");this.callback_=F;this.controller_=t;this.callbackCtx_=q};
txz.prototype.observe=function(F){if(F===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(F instanceof h3(F).Element))throw new TypeError("Se");var q=this.observations_;q.has(F)||(q.set(F,new FTe(F)),F=this.controller_,~F.observers_.indexOf(this)||F.observers_.push(this),F.JSC$11740_connected_||Lpz(F),this.controller_.refresh())}};
txz.prototype.unobserve=function(F){if(F===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(F instanceof h3(F).Element))throw new TypeError("Se");var q=this.observations_;q.has(F)&&(q.delete(F),q.size||SOO(this.controller_,this))}};
txz.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();SOO(this.controller_,this)};
var KpE=function(F){F.activeObservations_.splice(0);F.observations_.forEach(function(q){q.isActive()&&F.activeObservations_.push(q)})},B0z=function(F){if(F.activeObservations_.length>0){var q=F.callbackCtx_,t=F.activeObservations_.map(function(u){var J=u.target,g=u.contentRect_;
u.broadcastWidth=g.width;u.broadcastHeight=g.height;return new qoO(J,g)});
F.callback_.call(q,t,q);F.activeObservations_.splice(0)}};var Ki=function(F){if(!(this instanceof Ki))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");fzj||(fzj=new UZj);this.observer_=new txz(F,this)};
Ki.prototype.observe=function(F){this.observer_.observe(F)};
Ki.prototype.unobserve=function(F){this.observer_.unobserve(F)};
Ki.prototype.disconnect=function(){this.observer_.disconnect()};var bmq=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Ki;var ycP="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(" "),bQA={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},$zP=null,Acy=null;var Cb3={},dzo=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 LXf={text:1},Sr$={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var ufd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Jif={CONSTANT:{isUnwrappable:function(F){return F instanceof CM},
unwrap:UnL},JAVASCRIPT:{isUnwrappable:function(F){return F instanceof _.FY},
unwrap:XAo},HTML:{isUnwrappable:function(F){return F instanceof BS},
unwrap:function(F){return fl(F)}},
RESOURCE_URL:{isUnwrappable:function(F){return F instanceof WS},
unwrap:_.PS},STRING:{isUnwrappable:function(F){return F instanceof Object},
unwrap:function(F){return String(F)}},
STYLE:{isUnwrappable:function(F){return typeof F==="string"},
unwrap:function(F){return F}},
URL:{isUnwrappable:function(F){return HS(F)},
unwrap:_.mt}},s4e={CONSTANT:f6q,JAVASCRIPT:f6q,HTML:function(F){F=F instanceof BS?F:Ll(String(F).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return fl(F)},
RESOURCE_URL:f6q,STRING:String,STYLE:f6q,URL:function(F,q){F=ufd.test(F)?F:void 0;return F===void 0?q:F}};var lJP=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,a6M=/[\t\n\f\r ]+/,ccy=/[\t\n\f\r ,]+/g,q5v=function(F,q,t){return t},GW={},gie=function(){var F=function(){var u={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",u):u}(),q=F.createHTML(""),t=F.createScript("");
F=F.createScriptURL("");return{INNOCUOUS_STRING:q,INNOCUOUS_SCRIPT:t,INNOCUOUS_URL:F}}(),TW=gie.INNOCUOUS_STRING,gd3=gie.INNOCUOUS_SCRIPT,sao=gie.INNOCUOUS_URL;var lMC=function(F){var q=XL$(F);return function(t,u,J,g){return g?q(g,u,J,t):TW}}({reportHandler:function(F,q){if(F)try{throw Error(q);
}catch(t){_.mH(t)}},
safeTypesBridge:function(F,q,t){var u=Jif[q];return u.isUnwrappable(F)&&(u=u.unwrap(F,t),u!==t)?u:(0,s4e[q])(String(F),t)},
allowedIdentifierPrefixes:[""]});if(ML!==void 0)throw Error("Ue");ML=lMC;if(ML!==lMC)throw Error("Ve");Dt("Injectable",[]);var IJW=Dt("Inject",[["token",void 0]]),mV$=Dt("Optional",[]);Dt("Injectable",[]);var $Vo=Dt("Self",[]),bnP=Dt("SkipSelf",[]);Dt("Host",[]);var XZJ={},Yoj=function(){};
Yoj.prototype.resolve=function(){throw Error("Xe");};
Yoj.prototype.addProvider=function(){throw Error("Xe");};var Ako=Function;var pZv=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Q4x=function(){this._reflect=window.Reflect};
_.l=Q4x.prototype;_.l.factory=function(F){return function(){return new (Function.prototype.bind.apply(F,[null].concat(_.mZ(_.US.apply(0,arguments)))))}};
_.l._zipTypesAndAnnotations=function(F,q){var t=typeof F==="undefined"?Array(q.length):Array(F.length);for(var u=0;u<t.length;u++)t[u]=typeof F==="undefined"?[]:F[u]!=Object?[F[u]]:[],q&&pLC(q[u])&&(t[u]=t[u].concat(q[u]));return t};
_.l._ownParameters=function(F,q){if(pZv.exec(F.toString()))return null;if(F.parameters&&F.parameters!==q.parameters)return F.parameters;var t=F.ctorParameters;return t&&t!==q.ctorParameters?(q=typeof t==="function"?t():t,F=q.map(function(u){return u&&u.type}),q=q.map(function(u){return u&&eYA(u.decorators)}),this._zipTypesAndAnnotations(F,q)):pLC(this._reflect)&&pLC(this._reflect.getOwnMetadata)&&(q=this._reflect.getOwnMetadata("parameters",F),(t=this._reflect.getOwnMetadata("design:paramtypes",F))||
q)?this._zipTypesAndAnnotations(t,q):Array(F.length).fill(void 0)};
_.l.parameters=function(F){if(!F.prototype)return[];var q=Object.getPrototypeOf(F.prototype).constructor;(F=this._ownParameters(F,q))||q===Object||(F=this.parameters(q));return F||[]};
_.l._ownAnnotations=function(F,q){if(F.annotations&&F.annotations!==q.annotations)return F=F.annotations,typeof F==="function"&&F.annotations&&(F=F.annotations),F;if(F.decorators&&F.decorators!==q.decorators)return eYA(F.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",F)};
_.l.annotations=function(F){var q=Object.getPrototypeOf(F.prototype).constructor;F=this._ownAnnotations(F,q)||[];return(q!==Object?this.annotations(q):[]).concat(F)};
_.l._ownPropMetadata=function(F,q){if(F.propMetadata&&F.propMetadata!==q.propMetadata)return F=F.propMetadata,typeof F==="function"&&F.propMetadata&&(F=F.propMetadata),F;if(F.propDecorators&&F.propDecorators!==q.propDecorators){var t=F.propDecorators,u={};Object.keys(t).forEach(function(J){u[J]=eYA(t[J])});
return u}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",F)};
_.l.propMetadata=function(F){var q=Object.getPrototypeOf(F.prototype).constructor,t={};if(q!==Object){var u=this.propMetadata(q);Object.keys(u).forEach(function(g){t[g]=u[g]})}var J=this._ownPropMetadata(F,q);
J&&Object.keys(J).forEach(function(g){var Y=[];t.hasOwnProperty(g)&&Y.push.apply(Y,_.mZ(t[g]));Y.push.apply(Y,_.mZ(J[g]));t[g]=Y});
return t};
_.l.getter=function(F){return function(q){return q[F]}};
_.l.setter=function(F){return function(q,t){return q[F]=t}};
_.l.method=function(F){return function(q,t){if(!q[F])throw Error("Ye`"+F);return q[F].apply(q,t)}};var euO=function(){};var Zw1=function(F){this.reflectionCapabilities=F};
_.M(Zw1,euO);_.l=Zw1.prototype;_.l.factory=function(F){return this.reflectionCapabilities.factory(F)};
_.l.parameters=function(F){return this.reflectionCapabilities.parameters(F)};
_.l.annotations=function(F){return this.reflectionCapabilities.annotations(F)};
_.l.propMetadata=function(F){return this.reflectionCapabilities.propMetadata(F)};
_.l.getter=function(F){return this.reflectionCapabilities.getter(F)};
_.l.setter=function(F){return this.reflectionCapabilities.setter(F)};
_.l.method=function(F){return this.reflectionCapabilities.method(F)};var zYo=new Zw1(new Q4x);var B6=function(F,q){this.token=F;this.id=q;if(F===void 0||F===null)throw Error("cf");};
_.JJ.Object.defineProperties(B6.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return WW(this.token)}}});
_.JJ.Object.defineProperties(B6,{JSC$11782_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return PW.JSC$11786_numberOfKeys}}});
var Rue=function(){this._allKeys=new Map};
Rue.prototype.get=function(F){if(F instanceof B6)return F;if(this._allKeys.has(F))return this._allKeys.get(F);var q=new B6(F,B6.JSC$11782_numberOfKeys);this._allKeys.set(F,q);return q};
_.JJ.Object.defineProperties(Rue.prototype,{JSC$11786_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var PW=new Rue;var ykf=function(F,q,t){this.key=F;this.optional=q;this.visibility=t},ndo=function(F){return new ykf(F,!1,null)},T3q=[],W__=function(F,q,t){this.key=F;
this.resolvedFactories=q;this.multiProvider=t},GSM=function(F,q,t,u){this.factory=F;
this.dependencies=q;this.providerClass=t;this.providerValue=u};var Li={},fi=function(F,q){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=q===void 0?null:q;F=_.X(F);for(q=F.next();!q.done;q=F.next())this.addProvider(q.value)};
_.l=fi.prototype;_.l.addProvider=function(F){this.keyIdToIndex.set(F.key.id,this.keyIds.length);this.providers.push(F);this.keyIds.push(F.key.id);this.objs.push(Li)};
_.l.resolve=function(F,q){q=q===void 0?XZJ:q;return this._getByKey(PW.get(Oe(F)),null,q)};
_.l._new=function(F){if(this.constructedKeyIds[F.key.id])throw inM(this,F.key);this.constructedKeyIds[F.key.id]=!0;return this._instantiateProvider(F)};
_.l._instantiateProvider=function(F){if(F.multiProvider){for(var q=Array(F.resolvedFactories.length),t=0;t<F.resolvedFactories.length;++t)q[t]=this._instantiate(F,F.resolvedFactories[t]);return q}return this._instantiate(F,F.resolvedFactories[0])};
_.l._instantiate=function(F,q){var t=this,u=q.factory;try{var J=q.dependencies.map(function(Y){return t._getByReflectiveDependency(Y)})}catch(Y){throw Y.addKey&&Y.addKey(this,F.key),Y;
}try{var g=u.apply(null,_.mZ(J))}catch(Y){throw kSC(this,Y,F.key);}return g};
_.l._getByReflectiveDependency=function(F){return this._getByKey(F.key,F.visibility,F.optional?null:XZJ)};
_.l._getByKey=function(F,q,t){return F===ri1?this:q instanceof $Vo?this._getByKeySelf(F,t):this._getByKeyDefault(F,t,q)};
_.l._getObjByKeyId=function(F){for(var q=0;q<this.keyIds.length;q++)if(this.keyIds[q]===F)return this.objs[q]===Li&&(this.objs[q]=this._new(this.providers[q])),this.objs[q];return Li};
_.l._throwOrNull=function(F,q){if(q!==XZJ)return q;throw wLW(this,F);};
_.l._getByKeySelf=function(F,q){var t=this._getObjByKeyId(F.id);return t!==Li?t:this._throwOrNull(F,q)};
_.l._getByKeyDefault=function(F,q,t){for(var u=t=t instanceof bnP?this.parent:this;t instanceof fi;){var J=t._getObjByKeyId(F.id);if(J!==Li)return J;t=t.parent}J=void 0;if(t!==null)try{var g=t.resolve(F.token,q);if(g!==Li)return g}catch(Y){J=Y}if(!(u instanceof fi&&dV$(F.token))){if(J)throw J;return this._throwOrNull(F,q)}for(g=u;g.parent instanceof fi;)g=g.parent;g.addProvider(On3({provide:F.token,useClass:F.token}));return g.resolve(F.token,q)};
_.l.toString=function(){return this.displayName};
_.JJ.Object.defineProperties(fi.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+Cit(this,function(F){return' "'+F.key.displayName+'" '}).join(", ")+"])"}}});
var ri1=PW.get(Oe(Yoj));(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 NIz=window.XRegExp;var wZj=-1,iwr=function(F){addEventListener("pageshow",function(q){q.persisted&&(wZj=q.timeStamp,F(q))},!0)};var Eif=function(F,q,t){var u=kJn,J,g;return function(Y){if(q.value>=0&&(Y||t)){var Q;if((g=q.value-((Q=J)!=null?Q:0))||J===void 0)J=q.value,q.delta=g,Y=q.value,q.rating=Y>u[1]?"poor":Y>u[0]?"needs-improvement":"good",F(q)}}};var zuJ=function(F){requestAnimationFrame(function(){return requestAnimationFrame(function(){return F()})})};var oiJ=function(){var F=performance.getEntriesByType("navigation")[0];if(F&&F.responseStart>0&&F.responseStart<performance.now())return F};var nie=function(){var F,q;return(q=(F=oiJ())==null?void 0:F.activationStart)!=null?q:0};var Mxr=function(){var F=F===void 0?-1:F;var q=oiJ(),t="navigate";wZj>=0?t="back-forward-cache":q&&(document.prerendering||nie()>0?t="prerender":document.wasDiscarded?t="restore":q.type&&(t=q.type.replace(/_/g,"-")));return{name:"LCP",value:F,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:t}};var UV_=new WeakMap;var TIL=function(F){var q=q===void 0?{}:q;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var t=new PerformanceObserver(function(u){Promise.resolve().then(function(){F(u.getEntries())})});
t.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},q));return t}}catch(u){}};var GJn=function(F){var q=!1;return function(){q||(F(),q=!0)}};var a$=-1,DRf=function(F){document.visibilityState==="hidden"&&a$>-1&&(a$=F.type==="visibilitychange"?F.timeStamp:0,removeEventListener("visibilitychange",DRf,!0),removeEventListener("prerenderingchange",DRf,!0))},WTL=function(){addEventListener("visibilitychange",DRf,!0);
addEventListener("prerenderingchange",DRf,!0)},Owx=function(){if(a$<0){var F=nie(),q,t;
a$=(t=document.prerendering?void 0:(q=globalThis.performance.getEntriesByType("visibility-state").filter(function(u){return u.name==="hidden"&&u.startTime>F})[0])==null?void 0:q.startTime)!=null?t:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
WTL();iwr(function(){setTimeout(function(){a$=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;WTL()})})}return{get firstHiddenTime(){return a$}}};var PBr=function(F){document.prerendering?addEventListener("prerenderingchange",function(){return F()},!0):F()};var xRr=function(F){var q=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?F():(F=GJn(F),document.addEventListener("visibilitychange",F,{once:!0}),q(function(){F();document.removeEventListener("visibilitychange",F)}))};var Vj3=function(){};
Vj3.prototype._processEntry=function(F){var q;(q=this._onBeforeProcessingEntry)==null||q.call(this,F)};var kJn=[2500,4E3],Bqf=function(F){var q=q===void 0?{}:q;PBr(function(){var t=Owx(),u=Mxr(),J=S5P(q),g=function(w){q.reportAllChanges||(w=w.slice(-1));w=_.X(w);for(var k=w.next();!k.done;k=w.next())k=k.value,J._processEntry(k),k.startTime<t.firstHiddenTime&&(u.value=Math.max(k.startTime-nie(),0),u.entries=[k],Q())},Y=TIL(g);
if(Y){var Q=Eif(F,u,q.reportAllChanges);for(var e=GJn(function(){g(Y.takeRecords());Y.disconnect();Q(!0)}),r=_.X(["keydown",
"click","visibilitychange"]),N=r.next();!N.done;N=r.next())addEventListener(N.value,function(){return xRr(e)},{capture:!0,
once:!0});iwr(function(w){u=Mxr();Q=Eif(F,u,q.reportAllChanges);zuJ(function(){u.value=performance.now()-w.timeStamp;Q(!0)})})}})};var Aix;var vix;_.U=function(){return vix!==void 0?vix:vix=document.createElement("template")};
document.head.appendChild(_.U().content);var IMO;_.Hh({_template:function(){if(IMO!==void 0)return IMO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-toolbar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_toolbar.tp.yt.app.toolbar.css.js--\x3e<slot class="style-scope tp-yt-app-toolbar"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
var q=F.content,t=q.insertBefore;Aix===void 0&&(Aix=document.createElement("template"));var u=Aix;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return IMO=F},
is:"tp-yt-app-toolbar"});var Hw1;var mRx;_.jq=function(){};
_.jq=_.Hh({_template:function(){if(mRx!==void 0)return mRx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-a11y-announcer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_a11y_announcer.tp.yt.iron.a11y.announcer.css.js--\x3e<div aria-live$="[[mode]]" class="style-scope tp-yt-iron-a11y-announcer">[[_text]]</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Hw1===void 0&&(Hw1=document.createElement("template"));var u=Hw1;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return mRx=F},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.jq.instance||(_.jq.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(F){this._text===F&&(F+="\u00a0");this._text="";this.async(function(){this._text=F},this.timeout)},
_onIronAnnounce:function(F){F.detail&&F.detail.text&&this.announce(F.detail.text)}});
_.jq.instance=null;_.jq.requestAvailability=function(){_.jq.instance||(_.jq.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.jq.instance):document.addEventListener("load",function(){document.body.appendChild(_.jq.instance)})};var $RE;var bwj;/*

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
*/
_.Hh({_template:function(){if(bwj!==void 0)return bwj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;$RE===void 0&&($RE=document.createElement("template"));var u=$RE;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return bwj=F},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.Ci,_.I$],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(F){this.$.textarea.selectionStart=F},set selectionEnd(F){this.$.textarea.selectionEnd=F},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var F=this.$.textarea.validity.valid;F&&(this.required&&this.value===""?F=!1:this.hasValidator()&&(F=_.Ci.validate.call(this,this.value)));this.invalid=!F;this.fire("iron-input-validate");return F},
_bindValueChanged:function(F){this.value=F},
_valueChanged:function(F){var q=this.textarea;q&&(q.value!==F&&(q.value=F||F===0?F:""),this.bindValue=F,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(F){var q=_.xz(F).path;this.value=q?q[0].value:F.target.value},
_constrain:function(F){var q;F=F||[""];for(q=this.maxRows>0&&F.length>this.maxRows?F.slice(0,this.maxRows):F.slice(0);this.rows>0&&q.length<this.rows;)q.push("");return q.join("\n")+"\u00a0"},
_valueForMirror:function(){var F=this.textarea;if(F)return this.tokens=F&&F.value?F.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var yie;var CBr;_.Hh({_template:function(){if(CBr!==void 0)return CBr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
var q=F.content,t=q.insertBefore;yie===void 0&&(yie=document.createElement("template"));var u=yie;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return CBr=F},
is:"tp-yt-iron-collapse",behaviors:[_.Vl],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(F,q){F=F==="auto"?"":F;q=q&&!this.noAnimation&&this.isAttached&&this._desiredSize!==F;this._desiredSize=F;this._updateTransition(!1);q&&(q=this._calcSize(),F===""&&(this.style[this._dimensionMax]="",F=this._calcSize()),this.style[this._dimensionMax]=q,this.scrollTop=this.scrollTop,this._updateTransition(!0),q=F!==q);this.style[this._dimensionMax]=F;q||this._transitionEnd()},
enableTransition:function(F){_.HN._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!F},
_updateTransition:function(F){this.style.transitionDuration=F&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(F){_.xz(F).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var dRz;var Vx1;var URf=void 0,Sor={properties:{sizingTarget:{type:Object,value:function(){var F;return(F=this.hostElement)!=null?F:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var F,q=_.xz((F=this.hostElement)!=null?F:
this).parentNode;q&&q.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(q=q.host);return q},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var F;this._memoizedIsRTL=window.getComputedStyle((F=this.hostElement)!=null?F:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var F;window.getComputedStyle((F=this.hostElement)!=null?F:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var F,q=window.getComputedStyle((F=this.hostElement)!=null?F:this);F=window.getComputedStyle(this.sizingTarget);var t,u,J;this._fitInfo={inlineStyle:{top:((t=this.hostElement)!=null?t:this).style.top||"",left:((u=this.hostElement)!=null?u:this).style.left||"",position:((J=this.hostElement)!=null?J:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:q.top!=="auto"?"top":q.bottom!=="auto"?"bottom":null,horizontally:q.left!=="auto"?"left":q.right!=="auto"?"right":null},sizedBy:{height:F.maxHeight!=="none",width:F.maxWidth!=="none",minWidth:parseInt(F.minWidth,10)||0,minHeight:parseInt(F.minHeight,10)||0},margin:{top:parseInt(q.marginTop,10)||0,right:parseInt(q.marginRight,10)||0,bottom:parseInt(q.marginBottom,10)||0,left:parseInt(q.marginLeft,10)||0}}}},
resetFit:function(){var F=this._fitInfo||{},q;for(q in F.sizerInlineStyle)this.sizingTarget.style[q]=F.sizerInlineStyle[q];for(q in F.inlineStyle){var t=void 0;((t=this.hostElement)!=null?t:this).style[q]=F.inlineStyle[q]}this._fitInfo=null},
refit:function(){var F=this.sizingTarget.scrollLeft,q=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=F;this.sizingTarget.scrollTop=q},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var F;((F=this.hostElement)!=null?F:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var q;((q=this.hostElement)!=null?q:this).style.left="0px";var t;((t=this.hostElement)!=null?t:this).style.top="0px";var u,J=((u=this.hostElement)!=null?u:this).getBoundingClientRect();q=this.__getNormalizedRect(this.positionTarget);u=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(u={left:u.left+24,right:u.right-24,top:u.top+24,bottom:u.bottom-24});if(this.expandSizingTargetForScrollbars){var g=this.sizingTarget.offsetWidth;var Y=this.sizingTarget.offsetHeight;var Q=this.sizingTarget.clientWidth;var e=this.sizingTarget.clientHeight}F=this._fitInfo.margin;q=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:J.width+F.left+F.right,height:J.height+F.top+F.bottom},J,q,u);var r=q.left+F.left,N=q.top+F.top;t=Math.min(u.right-F.right,r+J.width);var w=Math.min(u.bottom-
F.bottom,N+J.height);r=Math.max(u.left+F.left,Math.min(r,t-this._fitInfo.sizedBy.minWidth));N=Math.max(u.top+F.top,Math.min(N,w-this._fitInfo.sizedBy.minHeight));t=Math.max(t-r,this._fitInfo.sizedBy.minWidth);w=Math.max(w-N,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=t+"px";this.sizingTarget.style.maxHeight=w+"px";r-=J.left;J=N-J.top;var k;((k=this.hostElement)!=null?k:this).style.left=r+"px";var z;((z=this.hostElement)!=null?z:this).style.top=J+"px";if(this.expandSizingTargetForScrollbars){k=
this.sizingTarget.offsetHeight;Y=k-this.sizingTarget.clientHeight-(Y-e);if(Y>0){this.sizingTarget.style.maxHeight=Math.min(u.height-F.top-F.bottom,w+Y)+"px";Y=this.sizingTarget.offsetHeight;e=Y-k;var T;q.verticalAlign==="top"?T=J:q.verticalAlign==="middle"?T=J-e/2:q.verticalAlign==="bottom"&&(T=J-e);T=Math.max(u.top+F.top,Math.min(T,u.bottom-F.bottom-Y));var P;((P=this.hostElement)!=null?P:this).style.top=T+"px"}T=this.sizingTarget.offsetWidth;g=T-this.sizingTarget.clientWidth-(g-Q);if(g>0){URf!==
void 0?Q=URf:(Q=document.createElement("div"),Object.assign(Q.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),P=document.createElement("div"),P.style.width="200px",P.style.height="200px",Q.appendChild(P),document.body.appendChild(Q),URf=Math.abs(Q.offsetWidth-100)>1?Q.offsetWidth-Q.clientWidth:0,document.body.removeChild(Q),Q=URf);this.sizingTarget.style.maxWidth=Math.min(u.width-F.left-F.right,t+g-Q)+"px";g=this.sizingTarget.offsetWidth+Q;Q=g-T;var v;
q.horizontalAlign==="left"?v=r:q.horizontalAlign==="center"?v=r-Q/2:q.horizontalAlign==="right"&&(v=r-Q);v=Math.max(u.left+F.left,Math.min(v,u.right-F.right-g));var H;((H=this.hostElement)!=null?H:this).style.left=v+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var F=this._fitInfo;if(!F.positionedBy.vertically){var q;((q=this.hostElement)!=null?q:this).style.position="fixed";var t;((t=this.hostElement)!=null?t:this).style.top="0px"}if(!F.positionedBy.horizontally){var u;((u=this.hostElement)!=null?u:this).style.position="fixed";var J;((J=this.hostElement)!=null?J:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var g;q=((g=this.hostElement)!=null?g:this).getBoundingClientRect();
F.sizedBy.height||this.__sizeDimension(q,F.positionedBy.vertically,"top","bottom","Height");F.sizedBy.width||this.__sizeDimension(q,F.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(F,q,t,u,J){this.__sizeDimension(F,q,t,u,J)},
__sizeDimension:function(F,q,t,u,J){var g=this._fitInfo,Y=this.__getNormalizedRect(this.fitInto);Y=J==="Width"?Y.width:Y.height;F=(q=q===u)?Y-F[u]:F[t];t=g.margin[q?t:u];u="offset"+J;var Q;g=((Q=this.hostElement)!=null?Q:this)[u]-this.sizingTarget[u];this.sizingTarget.style["max"+J]=Y-t-F-g+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var F=this._fitInfo.positionedBy;if(!F.vertically||!F.horizontally){var q;((q=this.hostElement)!=null?q:this).style.position="fixed";if(!F.vertically){var t;((t=this.hostElement)!=null?t:this).style.top="0px"}if(!F.horizontally){var u;((u=this.hostElement)!=null?u:this).style.left="0px"}var J;q=((J=this.hostElement)!=null?J:this).getBoundingClientRect();J=this.__getNormalizedRect(this.fitInto);if(!F.vertically){t=J.top-q.top+(J.height-
q.height)/2;var g;((g=this.hostElement)!=null?g:this).style.top=t+"px"}if(!F.horizontally){F=J.left-q.left+(J.width-q.width)/2;var Y;((Y=this.hostElement)!=null?Y:this).style.left=F+"px"}}}},
__getNormalizedRect:function(F){return F===document.documentElement||F===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:F.getBoundingClientRect()},
__getOffscreenArea:function(F,q,t){return Math.abs(Math.min(0,F.top)+Math.min(0,t.bottom-(F.top+q.height)))*q.width+Math.abs(Math.min(0,F.left)+Math.min(0,t.right-(F.left+q.width)))*q.height},
__getPosition:function(F,q,t,u,J,g){var Y=[{verticalAlign:"top",horizontalAlign:"left",top:J.top+this.verticalOffset,left:J.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:J.top+this.verticalOffset,left:J.right-t.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:J.bottom-t.height-this.verticalOffset,left:J.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:J.bottom-t.height-this.verticalOffset,left:J.right-t.width-
this.horizontalOffset}];if(this.noOverlap){for(var Q=0,e=Y.length;Q<e;Q++){var r={},N;for(N in Y[Q])r[N]=Y[Q][N];Y.push(r)}Y[0].top=Y[1].top+=J.height;Y[2].top=Y[3].top-=J.height;Y[4].left=Y[6].left+=J.width;Y[5].left=Y[7].left-=J.width}q=q==="auto"?null:q;F=F==="auto"?null:F;F&&F!=="center"||(Y.push({verticalAlign:"top",horizontalAlign:"center",top:J.top+this.verticalOffset+(this.noOverlap?J.height:0),left:J.left-u.width/2+J.width/2+this.horizontalOffset}),Y.push({verticalAlign:"bottom",horizontalAlign:"center",
top:J.bottom-t.height-this.verticalOffset-(this.noOverlap?J.height:0),left:J.left-u.width/2+J.width/2+this.horizontalOffset}));q&&q!=="middle"||(Y.push({verticalAlign:"middle",horizontalAlign:"left",top:J.top-u.height/2+J.height/2+this.verticalOffset,left:J.left+this.horizontalOffset+(this.noOverlap?J.width:0)}),Y.push({verticalAlign:"middle",horizontalAlign:"right",top:J.top-u.height/2+J.height/2+this.verticalOffset,left:J.right-t.width-this.horizontalOffset-(this.noOverlap?J.width:0)}));q==="middle"&&
F==="center"&&Y.push({verticalAlign:"middle",horizontalAlign:"center",top:J.top-u.height/2+J.height/2+this.verticalOffset,left:J.left-u.width/2+J.width/2+this.horizontalOffset});for(Q=0;Q<Y.length;Q++){u=Y[Q];J=u.verticalAlign===q;e=u.horizontalAlign===F;if(!this.dynamicAlign&&!this.noOverlap&&J&&e){var w=u;break}r=(!q||J)&&(!F||e);if(this.dynamicAlign||r){u.offscreenArea=this.__getOffscreenArea(u,t,g);if(u.offscreenArea===0&&r){w=u;break}u.alignsOk=J+e;w=w||u;J=u.offscreenArea-w.offscreenArea;if(J<
0||J===0&&u.alignsOk>w.alignsOk)w=u}}return w}};/*

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 c6,huv,KTn;c6=Element.prototype;huv=c6.matches||c6.matchesSelector||c6.mozMatchesSelector||c6.msMatchesSelector||c6.oMatchesSelector||c6.webkitMatchesSelector;KTn=function(){};
_.LT1=function(F){var q=BIz,t=[];return q._collectTabbableNodes(F,t)?q._sortByTabIndex(t):t};
_.l=KTn.prototype;_.l._normalizedTabIndex=function(F){return(huv.call(F,"input, select, textarea, button, object")?huv.call(F,":not([disabled])"):huv.call(F,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(F=F.getAttribute("tabindex")||0,Number(F)):-1};
_.l._collectTabbableNodes=function(F,q){if(F.nodeType!==Node.ELEMENT_NODE||!this._isVisible(F))return!1;var t=this._normalizedTabIndex(F),u=t>0;t>=0&&q.push(F);if(F.localName==="content"||F.localName==="slot")t=_.xz(F).getDistributedNodes();else{var J;t=((J=_.xz(F).shadowRoot)!=null?J:_.xz(F.root||F)).children}for(F=0;F<t.length;F++)u=this._collectTabbableNodes(t[F],q)||u;return u};
_.l._isVisible=function(F){var q=F.style;return q.visibility!=="hidden"&&q.display!=="none"?(q=window.getComputedStyle(F),q.visibility!=="hidden"&&q.display!=="none"):!1};
_.l._sortByTabIndex=function(F){var q=F.length;if(q<2)return F;var t=Math.ceil(q/2);q=this._sortByTabIndex(F.slice(0,t));F=this._sortByTabIndex(F.slice(t));return this._mergeSortByTabIndex(q,F)};
_.l._mergeSortByTabIndex=function(F,q){for(var t=[];F.length>0&&q.length>0;)this._hasLowerTabOrder(F[0],q[0])?t.push(q.shift()):t.push(F.shift());return t.concat(F,q)};
_.l._hasLowerTabOrder=function(F,q){F=Math.max(F.tabIndex,0);q=Math.max(q.tabIndex,0);return F===0||q===0?q>F:F>q};
var BIz=new KTn;var fMw;var aMC;_.Hh({_template:function(){if(aMC!==void 0)return aMC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;fMw===void 0&&(fMw=document.createElement("template"));var u=fMw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return aMC=F},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.xz(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.xz(this.parentNode).removeChild(this)},
_onTransitionend:function(F){F&&F.target===this&&this.complete()},
_openedChanged:function(F){F?this.prepare():(F=window.getComputedStyle(this),F.transitionDuration!=="0s"&&F.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var FS=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;m0(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)};
FS.prototype._bringOverlayAtIndexToFront=function(F){var q=this._overlays[F];if(q){var t=this._overlays.length-1,u=this._overlays[t];u&&this._shouldBeBehindOverlay(q,u)&&t--;if(!(F>=t)){u=Math.max(this._getZ(_.j4f(this)),this._minimumZ);for(this._getZ(q)<=u&&this._applyOverlayZ(q,u);F<t;)this._overlays[F]=this._overlays[F+1],F++;this._overlays[t]=q}}};
FS.prototype.addOverlay=function(F){var q=this._overlays.indexOf(F);if(q>=0)this._bringOverlayAtIndexToFront(q);else{q=this._overlays.length;var t=this._overlays[q-1],u=Math.max(this._getZ(t),this._minimumZ),J=this._getZ(F);t&&this._shouldBeBehindOverlay(F,t)&&(this._applyOverlayZ(t,u),q--,u=Math.max(this._getZ(this._overlays[q-1]),this._minimumZ));J<=u&&this._applyOverlayZ(F,u);this._overlays.splice(q,0,F)}this.trackBackdrop()};
FS.prototype.removeOverlay=function(F){F=this._overlays.indexOf(F);F!==-1&&(this._overlays.splice(F,1),this.trackBackdrop())};
_.j4f=function(F){return F._overlays[F._overlays.length-1]};
_.l=FS.prototype;_.l.trackBackdrop=function(){var F=this._overlayWithBackdrop();if(F||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(F)-1,this.backdropElement.opened=!!F,this.backdropElement.prepare()};
_.l._overlayWithBackdrop=function(){for(var F=this._overlays.length-1;F>=0;F--)if(this._overlays[F].withBackdrop)return this._overlays[F]};
_.l._getZ=function(F){var q=this._minimumZ;if(F){var t,u,J=Number(((t=F.hostElement)!=null?t:F).style.zIndex||window.getComputedStyle((u=F.hostElement)!=null?u:F).zIndex);J===J&&(q=J)}return q};
_.l._setZ=function(F,q){var t;((t=F.hostElement)!=null?t:F).style.zIndex=q};
_.l._applyOverlayZ=function(F,q){this._setZ(F,q+2)};
_.l._overlayInPath=function(F){F=F||[];for(var q=0;q<F.length;q++){var t=void 0;if(((t=F[q].polymerController)!=null?t:F[q])._manager===this)return F[q]}};
_.l._onCaptureClick=function(F){var q=this._overlays.length-1;if(q!==-1)for(var t=_.xz(F).path,u,J;(u=this._overlays[q])&&this._overlayInPath(t)!==((J=u.hostElement)!=null?J:u);)if(u._onCaptureClick(F),u.allowClickThrough)q--;else break};
_.l._onCaptureFocus=function(F){var q=_.j4f(this);q&&q._onCaptureFocus(F)};
_.l._onCaptureKeyDown=function(F){var q=_.j4f(this);q&&(_.v6.keyboardEventMatchesKeys(F,"esc")?q._onCaptureEsc(F):_.v6.keyboardEventMatchesKeys(F,"tab")&&q._onCaptureTab(F))};
_.l._shouldBeBehindOverlay=function(F,q){return!F.alwaysOnTop&&q.alwaysOnTop&&!q.contains(F)};
_.JJ.Object.defineProperties(FS.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var F=document.activeElement;F&&F instanceof Element!==!1||(F=document.body);for(;F.root&&_.xz(F.root).activeElement;)F=_.xz(F.root).activeElement;return F}}});
_.qX=new FS;var hYy=0,K_P=0,B3u=null,L_A=[],AJ=["wheel","mousewheel","DOMMouseScroll"],fJW;_.E("web_no_lock_on_touchstart_killswitch")&&(AJ.push("touchstart"),AJ.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;_.t1={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:_.qX},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var F;return this._focusedChild||_.xz((F=this.hostElement)!=null?F:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var F;return _.LT1((F=this.hostElement)!=null?F:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var F;this._observer=_.xz((F=this.hostElement)!=null?F:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var F;_.xz((F=this.hostElement)!=null?F:this).unobserveNodes(this._observer)}this._observer=null;for(var q in this.__rafs)this.__rafs[q]!==null&&cancelAnimationFrame(this.__rafs[q]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(F){this.fire("iron-overlay-canceled",F,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var F;((F=this.hostElement)!=null?F:this).style.outline="none";var q;((q=this.hostElement)!=null?q:this).style.display="none"}},
_openedChanged:function(F){if(F){var q;((q=this.hostElement)!=null?q:this).removeAttribute("aria-hidden")}else{var t;((t=this.hostElement)!=null?t:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var F;if(this.withBackdrop&&!((F=this.hostElement)!=null?F:this).hasAttribute("tabindex")){var q;((q=this.hostElement)!=null?q:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var t;((t=this.hostElement)!=null?t:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var F;((F=this.hostElement)!=null?F:this).style.display="none";var q;((q=this.hostElement)!=null?q:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var F,q;((F=this.hostElement)!=null?F:this).style.transition=((q=this.hostElement)!=null?q:this).style.webkitTransition="none";var t,u;((t=this.hostElement)!=null?t:this).style.transform=((u=this.hostElement)!=null?u:this).style.webkitTransform="none";var J;((J=this.hostElement)!=null?J:this).style.display=""},
_finishPositioning:function(){var F;((F=this.hostElement)!=null?F:this).style.display="none";this.scrollTop=this.scrollTop;var q,t;((q=this.hostElement)!=null?q:this).style.transition=((t=this.hostElement)!=null?t:this).style.webkitTransition="";var u,J;((u=this.hostElement)!=null?u:this).style.transform=((J=this.hostElement)!=null?J:this).style.webkitTransform="";var g;((g=this.hostElement)!=null?g:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var F=this._manager.deepActiveElement,q;if(!(q=F===document.body))a:{for(;F;F=F.assignedSlot||F.parentNode||F.host)if(F===this){q=!0;break a}q=!1}q&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(F){this.noCancelOnOutsideClick||this.cancel(F)},
_onCaptureFocus:function(F){if(this.withBackdrop){var q=_.xz(F).path;q.indexOf(this)===-1?(F.stopPropagation(),this._applyFocus()):this._focusedChild=q[0]}},
_onCaptureEsc:function(F){this.noCancelOnEscKey||this.cancel(F)},
_onCaptureTab:function(F){if(this.withBackdrop){this.__ensureFirstLastFocusables();var q=F.shiftKey,t=q?this.__firstFocusableNode:this.__lastFocusableNode;q=q?this.__lastFocusableNode:this.__firstFocusableNode;if(t===q)t=!0;else{var u=this._manager.deepActiveElement;t=u===t||u===this}t&&(F.preventDefault(),this._focusedChild=q,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var F=this._focusableNodes;this.__firstFocusableNode=F[0];this.__lastFocusableNode=F[F.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(F,q){var t=this.__rafs;t[F]!==null&&cancelAnimationFrame(t[F]);t[F]=requestAnimationFrame(function(){t[F]=null;q.call(this)}.bind(this))},
__updateScrollObservers:function(F,q,t){F&&q&&this.__isValidScrollAction(t)?(t==="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),fJW=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(F=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),F!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(F,1),fJW=_._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(SM)for(var F=this;F;)F.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&F.host&&this.__rootNodes.push(F),F=F.host||F.assignedSlot||F.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(q){q.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(F){F.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(F){return F==="lock"||F==="refit"||F==="cancel"},
__onCaptureScroll:function(F){if(!(this.__isAnimating||_.xz(F).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(F)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.u4=[Sor,_.Vl,_.t1];_.Hh({_template:function(){if(Vx1!==void 0)return Vx1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;dRz===void 0&&(dRz=document.createElement("template"));var u=dRz;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return Vx1=F},
is:"tp-yt-iron-dropdown",behaviors:[_.I$,_.v6,_.u4,ACC],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var F=_.xz(this.$.content).getDistributedNodes(),q=0,t=F.length;q<t;q++)if(F[q].nodeType===Node.ELEMENT_NODE)return F[q]},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(),_.t1._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.t1._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.t1._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var F=this.containedElement,q=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),t=0;t<q.length;t++)q[t].node=F;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(F){this._readied&&(F?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var F=this.focusTarget||this.containedElement;F&&this.opened&&!this.noAutoFocus?F.focus():_.t1._applyFocus.apply(this,arguments)}});var ciC;var F41;/*

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 qLv=new _.bS({type:"iconset"});
_.Hh({_template:function(){if(F41!==void 0)return F41;var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;ciC===void 0&&(ciC=document.createElement("template"));
var u=ciC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return F41=F},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(F){F=(F||"").split(":");this._iconName=F.pop();this._iconsetName=F.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.xz(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=qLv.byKey(this._iconsetName)){var F=this._iconset.applyIcon(this,this._iconName,this.theme);F&&F.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.xz(this.root).appendChild(this._img)}});var tNz;var u9C;_.Hh({_template:function(){if(u9C!==void 0)return u9C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
var q=F.content,t=q.insertBefore;tNz===void 0&&(tNz=document.createElement("template"));var u=tNz;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return u9C=F},
is:"tp-yt-iron-input",behaviors:[_.Ci],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(){_.jq.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.xz(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.xz(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var F=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":F=/[0-9.,e-]/}return F},_bindValueChanged:function(F,q){q&&(F===void 0?q.value=null:F!==q.value&&(this.inputElement.value=F),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:F}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(F){var q=F.keyCode==19||F.keyCode==20||F.keyCode==45||F.keyCode==46||F.keyCode==144||F.keyCode==145||F.keyCode>32&&F.keyCode<41||F.keyCode>111&&F.keyCode<124;return!(F.keyCode==8||F.keyCode==9||F.keyCode==13||F.keyCode==27)&&!(F.charCode==0&&q)},
_onKeypress:function(F){if(this.allowedPattern||this.inputElement.type==="number"){var q=this._patternRegExp;if(q&&!(F.metaKey||F.ctrlKey||F.altKey)){this._patternAlreadyChecked=!0;var t=String.fromCharCode(F.charCode);this._isPrintable(F)&&!q.test(t)&&(F.preventDefault(),this._announceInvalidCharacter("Invalid character "+t+" not entered."))}}},
_checkPatternValidity:function(){var F=this._patternRegExp;if(!F)return!0;for(var q=0;q<this.inputElement.value.length;q++)if(!F.test(this.inputElement.value[q]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var F=this.inputElement.checkValidity();F&&(this.required&&this.bindValue===""?F=!1:this.hasValidator()&&(F=_.Ci.validate.call(this,this.bindValue)));this.invalid=!F;this.fire("iron-input-validate");return F},
_announceInvalidCharacter:function(F){this.fire("iron-announce",{text:F})},
_computeValue:function(F){return F}});var JXr;var sL1;var gff=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),ler=gff&&gff[1]>=8;
_.Hh({_template:function(){if(sL1!==void 0)return sL1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;JXr===void 0&&(JXr=document.createElement("template"));var u=JXr;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return sL1=F},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[iyA,_.Vl,_.xZz,Ehd],_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 _.xz(_.xz(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var F=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,F-this._physicalCount)},set _virtualStart(F){F=this._clamp(F,0,this._maxVirtualStart);this.grid&&(F-=F%this._itemsPerRow);this._virtualStartVal=F},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(F){F%=this._physicalCount;F<0&&(F=this._physicalCount+F);this.grid&&(F-=F%this._itemsPerRow);this._physicalStartVal=F},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(F){this._physicalCountVal=F},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var F=this._firstVisibleIndexVal;if(F==null){var q=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
F=this._iterateItems(function(t,u){q+=this._getPhysicalSizeIncrement(t);if(q>this._scrollPosition)return this.grid?u-u%this._itemsPerRow:u;if(this.grid&&this._virtualCount-1===u)return u-u%this._itemsPerRow})||0}return F},
get lastVisibleIndex(){var F=this._lastVisibleIndexVal;if(F==null){if(this.grid)F=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var q=this._physicalTop+this._scrollOffset;this._iterateItems(function(t,u){q<this._scrollBottom&&(F=u);q+=this._getPhysicalSizeIncrement(t)})}this._lastVisibleIndexVal=F}return F},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.H9);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(F){this.style.webkitOverflowScrolling=F===this?"touch":"";this.style.overflowY=F===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.H9)},
updateViewportBoundaries:function(){var F=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(F["padding-top"],10);this._isRTL=F.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var F=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),q=F-this._scrollPosition,t=q>=0;this._scrollPosition=F;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(q)>this._physicalSize&&this._physicalSize>0?(q-=this._scrollOffset,t=Math.round(q/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=t,this._physicalStart+=t,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(F=this._getReusables(t),t?(this._physicalTop=F.physicalTop,this._virtualStart+=F.indexes.length,this._physicalStart+=F.indexes.length):(this._virtualStart=this._virtualStart-F.indexes.length,this._physicalStart=this._physicalStart-F.indexes.length),this._update(F.indexes,t?null:F.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),dZ))},
_getReusables:function(F){var q=[],t=this._hiddenContentSize*this._ratio,u=this._virtualStart,J=this._virtualEnd,g=this._physicalCount,Y=this._physicalTop+this._scrollOffset;var Q=this._physicalBottom+this._scrollOffset;var e=this._scrollPosition,r=this._scrollBottom;if(F){var N=this._physicalStart;Q=e-Y}else N=this._physicalEnd,Q-=r;for(;;){var w=this._getPhysicalSizeIncrement(N);Q-=w;if(q.length>=g||Q<=t)break;if(F){if(J+q.length+1>=this._virtualCount)break;if(Y+w>=e-this._scrollOffset)break;q.push(N);
Y+=w;N=(N+1)%g}else{if(u-q.length<=0)break;if(Y+this._physicalSize-w<=r)break;q.push(N);Y-=w;N=N===0?g-1:N-1}}return{indexes:q,physicalTop:Y-this._scrollOffset}},
_update:function(F,q){if(!(F&&F.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(F);this._updateMetrics(F);if(q)for(;q.length;)F=q.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(F);this._positionItems();this._updateScrollerSize()}},
_createPool:function(F){this._ensureTemplatized();var q,t=Array(F);for(q=0;q<F;q++){var u=this.stamp(null);t[q]=u.root.querySelector("*");this._itemsParent.appendChild(u.root)}return t},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(F){F=this._clamp(this._physicalCount+F,3,this._virtualCount-this._virtualStart);F=this._convertIndexToCompleteRow(F);if(this.grid){var q=F%this._itemsPerRow;q&&F-q<=this._physicalCount&&(F+=this._itemsPerRow);F-=q}F-=this._physicalCount;q=Math.round(this._physicalCount*.5);if(!(F<0)){if(F>0){q=window.performance.now();[].push.apply(this._physicalItems,this._createPool(F));for(var t=0;t<F;t++)this._physicalSizes.push(0);this._physicalCount+=F;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=F);this._update();this._templateCost=(window.performance.now()-q)/F;q=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||q===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,q)),tze):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,q),dZ))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var F=this._getReusables(!0);this._physicalTop=F.physicalTop;this._virtualStart+=F.indexes.length;this._physicalStart+=F.indexes.length;this._update(F.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var F={__key__:!0};F[this.as]=!0;F[this.indexAs]=!0;F[this.selectedAs]=!0;F.tabIndex=!0;this._instanceProps=F;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(F,q){typeof q!=="undefined"&&(this.notifyResize(),_.Ts(),F&&this._updateGridMetrics())},
_itemsChanged:function(F){if(F.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.H9);else if(F.path==="items.splices"){this._adjustVirtualIndex(F.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(F.value.indexSplices.some(function(t){return t.addedCount>0||t.removed.length>0})){var q=this._getActiveElement();
this.contains(q)&&q.blur()}F=F.value.indexSplices.some(function(t){return t.index+t.addedCount>=this._virtualStart&&t.index<=this._virtualEnd},this);
this._isClientFull()&&!F||this._debounce("_render",this._render,_.H9)}else F.path!=="items.length"&&this._forwardItemPath(F.path,F.value)},
_forwardItemPath:function(F,q){F=F.slice(6);var t=F.indexOf(".");t===-1&&(t=F.length);var u,J=this.modelForElement(this._offscreenFocusedItem),g=parseInt(F.substring(0,t),10);if(u=this._isIndexRendered(g)){var Y=this._getPhysicalIndex(g);var Q=this.modelForElement(this._physicalItems[Y])}else J&&(Q=J);Q&&Q[this.indexAs]===g&&(F=F.substring(t+1),F=this.as+(F?"."+F:""),Q._setPendingPropertyOrPath(F,q,!1,!0),Q._flushProperties&&Q._flushProperties(),u&&(this._updateMetrics([Y]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(F){F.forEach(function(q){q.removed.forEach(this._removeItem,this);q.index<this._virtualStart&&(q=Math.max(q.addedCount-q.removed.length,q.index-this._virtualStart),this._virtualStart+=q,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=q))},this)},
_removeItem:function(F){this.$.selector.deselect(F);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===F&&this._removeFocusedItem()},
_iterateItems:function(F,q){var t,u;if(arguments.length===2&&q)for(u=0;u<q.length;u++){var J=q[u];var g=this._computeVidx(J);if((t=F.call(this,J,g))!=null)return t}else{J=this._physicalStart;for(g=this._virtualStart;J<this._physicalCount;J++,g++)if((t=F.call(this,J,g))!=null)return t;for(J=0;J<this._physicalStart;J++,g++)if((t=F.call(this,J,g))!=null)return t}},
_computeVidx:function(F){return F>=this._physicalStart?this._virtualStart+(F-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+F},
_assignModels:function(F){this._iterateItems(function(q,t){var u=this._physicalItems[q],J=this.items&&this.items[t];if(J!=null){var g=this.modelForElement(u);g.__key__=null;this._forwardProperty(g,this.as,J);this._forwardProperty(g,this.selectedAs,this.$.selector.isSelected(J));this._forwardProperty(g,this.indexAs,t);this._forwardProperty(g,"tabIndex",this._focusedVirtualIndex===t?0:-1);this._physicalIndexForKey[g.__key__]=q;g._flushProperties&&g._flushProperties(!0);u.removeAttribute("hidden")}else u.setAttribute("hidden",
"")},F)},
_updateMetrics:function(F){_.Ts();var q=0,t=0,u=this._physicalAverageCount,J=this._physicalAverage;this._iterateItems(function(g){t+=this._physicalSizes[g];this._physicalSizes[g]=this._physicalItems[g].offsetHeight;q+=this._physicalSizes[g];this._physicalAverageCount+=this._physicalSizes[g]?1:0},F);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(t=this._itemsPerRow===1?t:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+q-t,this._itemsPerRow=1);this._physicalAverageCount!==u&&(this._physicalAverage=Math.round((J*u+q)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var F=this._physicalTop;if(this.grid){var q=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(t,u){var J=Math.floor(u%this._itemsPerRow*this._itemWidth+q);this._isRTL&&(J*=-1);this.translate3d(J+"px",F+"px",0,this._physicalItems[t]);this._shouldRenderNextRow(u)&&(F+=this._rowHeight)})}else this._iterateItems(function(t){this.translate3d(0,F+"px",0,this._physicalItems[t]);
F+=this._physicalSizes[t]})},
_getPhysicalSizeIncrement:function(F){return this.grid?this._computeVidx(F)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[F]},
_shouldRenderNextRow:function(F){return F%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var F=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(F!==0){this._physicalTop=this._physicalTop-F;var q=this._scrollPosition;!ler&&q>0&&this._resetScrollPosition(q-F)}},
_resetScrollPosition:function(F){this.scrollTarget&&F>=0&&(this._scrollPosition=this._scrollTop=F)},
_updateScrollerSize:function(F){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((F=(F=(F=F||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(F){return this.scrollToIndex(this.items.indexOf(F))},
scrollToIndex:function(F){if(!(typeof F!=="number"||F<0||F>this.items.length-1)&&(_.Ts(),this._physicalCount!==0)){F=this._clamp(F,0,this._virtualCount-1);if(!this._isIndexRendered(F)||F>=this._maxVirtualStart)this._virtualStart=this.grid?F-this._itemsPerRow*2:F-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var q=this._physicalStart,t=this._virtualStart,u=0,J=this._hiddenContentSize;t<F&&
u<=J;)u+=this._getPhysicalSizeIncrement(q),q=(q+1)%this._physicalCount,t++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+u);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)},_.H9)},
selectItem:function(F){return this.selectIndex(this.items.indexOf(F))},
selectIndex:function(F){if(!(F<0||F>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(F)){var q=this.modelForElement(this._physicalItems[this._getPhysicalIndex(F)]);q&&(q[this.selectedAs]=!0);this.updateSizeForIndex(F)}this.$.selector.selectIndex(F)}},
deselectItem:function(F){return this.deselectIndex(this.items.indexOf(F))},
deselectIndex:function(F){F<0||F>=this._virtualCount||(this._isIndexRendered(F)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(F)])[this.selectedAs]=!1,this.updateSizeForIndex(F)),this.$.selector.deselectIndex(F))},
toggleSelectionForItem:function(F){return this.toggleSelectionForIndex(this.items.indexOf(F))},
toggleSelectionForIndex:function(F){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(F):this.$.selector.isSelected(this.items[F]))?this.deselectIndex(F):this.selectIndex(F)},
clearSelection:function(){this._iterateItems(function(F){this.modelForElement(this._physicalItems[F])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(F){(F?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(F){var q=this.modelForElement(F.target);if(q){var t=_.xz(F).path[0];F=this._getActiveElement();var u=this._physicalItems[this._getPhysicalIndex(q[this.indexAs])];if(t.localName!=="input"&&t.localName!=="button"&&t.localName!=="select"){t=q.tabIndex;q.tabIndex=-100;var J=F?F.tabIndex:-1;q.tabIndex=t;F&&u!==F&&u.contains(F)&&J!==-100||this.toggleSelectionForItem(q[this.as])}}},
_multiSelectionChanged:function(F){this.clearSelection();this.$.selector.multi=F},
updateSizeForItem:function(F){return this.updateSizeForIndex(this.items.indexOf(F))},
updateSizeForIndex:function(F){if(!this._isIndexRendered(F))return null;this._updateMetrics([this._getPhysicalIndex(F)]);this._positionItems();return null},
_manageFocus:function(){var F=this._focusedVirtualIndex;F>=0&&F<this._virtualCount?this._isIndexRendered(F)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(F){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(F/this._itemsPerRow)*this._itemsPerRow:F},
_isIndexRendered:function(F){return F>=this._virtualStart&&F<=this._virtualEnd},
_isIndexVisible:function(F){return F>=this.firstVisibleIndex&&F<=this.lastVisibleIndex},
_getPhysicalIndex:function(F){return(this._physicalStart+(F-this._virtualStart))%this._physicalCount},
focusItem:function(F){this._focusPhysicalItem(F)},
_focusPhysicalItem:function(F){if(!(F<0||F>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(F)||this.scrollToIndex(F);var q=this._physicalItems[this._getPhysicalIndex(F)],t=this.modelForElement(q),u;t.tabIndex=-100;q.tabIndex===-100&&(u=q);u||(u=_.xz(q).querySelector('[tabindex="-100"]'));t.tabIndex=0;this._focusedVirtualIndex=F;u&&u.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var F=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var q=this.stamp(null);this._focusBackfillItem=q.root.querySelector("*");this._itemsParent.appendChild(q.root)}this._offscreenFocusedItem=this._physicalItems[F];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[F]=this._focusBackfillItem;this._focusedPhysicalIndex=F;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var F=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),q=this._physicalItems[F];if(q){var t=this.modelForElement(q),u=this.modelForElement(this._offscreenFocusedItem);t[this.as]===u[this.as]?(this._focusBackfillItem=q,t.tabIndex=-1,this._physicalItems[F]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(F){F=this.modelForElement(F.target);var q=this.modelForElement(this._focusedItem),t=this._offscreenFocusedItem!==null,u=this._focusedVirtualIndex;F&&(q===F?this._isIndexVisible(u)||this.scrollToIndex(u):(this._restoreFocusedItem(),q&&(q.tabIndex=-1),F.tabIndex=0,this._focusedVirtualIndex=u=F[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(u),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],t&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(F){switch(F.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&F.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&F.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(F)}},
_clamp:function(F,q,t){return Math.min(t,Math.max(q,F))},
_debounce:function(F,q,t){this._debouncers=this._debouncers||{};this._debouncers[F]=_.Eu(this._debouncers[F],t,q.bind(this));_.zs(this._debouncers[F])},
_forwardProperty:function(F,q,t){F._setPendingProperty(q,t)},
_forwardHostPropV2:function(F,q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(t){t&&this.modelForElement(t).forwardHostProp(F,q)},this)},
_notifyInstancePropV2:function(F,q,t){u9W(this.as,q)&&(F=F[this.indexAs],q==this.as&&(this.items[F]=t),this.notifyPath(iR(this.as,"items."+F,q),t))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(F,q,t){q.indexOf(this.as+".")===0&&this.notifyPath("items."+F.__key__+"."+q.slice(this.as.length+1),t)},
_forwardParentPath:function(F,q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(t){t&&this.modelForElement(t).notifyPath(F,q)},this)},
_forwardParentProp:function(F,q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(t){t&&(this.modelForElement(t)[F]=q)},this)},
_getActiveElement:function(){var F=this._itemsParent.node.domHost;return _.xz(F?F.root:document).activeElement},
_scrollTargetChanged:function(F,q){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(q)if(F==="document")this.scrollTarget=this._doc;else if(typeof F==="string"){var t,u;this.scrollTarget=(q=(u=(t=this.domHost)==null?void 0:t.polymerController)!=null?u:this.domHost)&&q.$?q.$[F]:_.xz(this.ownerDocument).querySelector("#"+F)}else this._isValidScrollTarget()&&(this._oldScrollTarget=F,this._toggleScrollListener(this._shouldHaveListener,F))}});var XO1;var YLz;var pOn=function(F,q,t,u){F-=t;q-=u;return Math.sqrt(F*F+q*q)},QLE=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
aJM.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var jav=function(F){F.maxRadius=0;F.mouseDownStart=0;F.mouseUpStart=0;F.xStart=0;F.yStart=0;F.xEnd=0;F.yEnd=0;F.containerMetrics=new aJM(F.element)};
ckC.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var F=QLE()-this.mouseDownStart;this.mouseUpStart&&(F-=this.mouseUpElapsed);return F},get mouseUpElapsed(){return this.mouseUpStart?QLE()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var F=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(F*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-F/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var F=this.radius/(this.containerMetrics.size/2);var q=this.xNow-this.containerMetrics.width/2;var t=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+q+"px, "+t+"px)";this.waveContainer.style.transform="translate3d("+q+"px, "+t+"px, 0)";this.wave.style.webkitTransform="scale("+F+","+F+")";this.wave.style.transform="scale3d("+F+","+F+",1)"},
downAction:function(F){var q=this.containerMetrics.width/2,t=this.containerMetrics.height/2;jav(this);this.mouseDownStart=QLE();this.center?(this.xStart=q,this.yStart=t):(this.xStart=F?F.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=F?F.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=q,this.yEnd=t);F=this.containerMetrics;q=this.xStart;t=this.yStart;this.maxRadius=Math.max(pOn(q,t,0,0),pOn(q,t,
F.width,0),pOn(q,t,0,F.height),pOn(q,t,F.width,F.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=QLE())},
remove:function(){_.xz(_.xz(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Hh({_template:function(){if(YLz!==void 0)return YLz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;XO1===void 0&&(XO1=document.createElement("template"));var u=XO1;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return YLz=F},
is:"tp-yt-paper-ripple",behaviors:[_.v6],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(){_.xz(this).parentNode.nodeType==11?this.keyEventTarget=_.xz(this).getOwnerRoot().host:this.keyEventTarget=_.xz(this).parentNode;var F=this.keyEventTarget;this.listen(F,"up","uiUpAction");this.listen(F,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(F){F.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var F=0;F<this.ripples.length;++F)if(!this.ripples[F].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(F){this.noink||this.downAction(F)},
downAction:function(F){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(F),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(F){this.noink||this.upAction(F)},
upAction:function(F){this.holdDown||(this.ripples.forEach(function(q){q.upAction(F)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var F=0;F<this.ripples.length;++F){var q=this.ripples[F];q.isOpacityFullyDecayed&&!q.isRestingAtMaxRadius&&this.removeRipple(q)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var F=new ckC(this);_.xz(this.$.waves).appendChild(F.waveContainer);this.$.background.style.backgroundColor=F.color;this.ripples.push(F);this._setAnimating(!0);return F},
removeRipple:function(F){var q=this.ripples.indexOf(F);q<0||(this.ripples.splice(q,1),F.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var F;for(F=0;F<this.ripples.length;++F){var q=this.ripples[F];q.draw();this.$.background.style.opacity=q.outerOpacity;q.isOpacityFullyDecayed&&!q.isRestingAtMaxRadius&&this.removeRipple(q)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(F,q){q!==void 0&&(F?this.downAction():this.upAction())}});var J1={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(F){H6._downHandler.call(this,F);this.pressed&&this.ensureRipple(F)},
ensureRipple:function(F){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var q=this._rippleContainer||this.root;q&&_.xz(q).appendChild(this._ripple);if(F){q=_.xz(this._rippleContainer||this);var t=_.xz(F).rootTarget;q.deepContains(t)&&this._ripple.uiDownAction(F)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(F){this.hasRipple()&&(this._ripple.noink=F)}};var eXf={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var F=1;this.disabled?F=0:this.active||this.pressed?F=4:this.receivedFocusFromKeyboard&&(F=3);this._setElevation(F)},
_computeKeyboardClass:function(F){this.toggleClass("keyboard-focus",F)},
_spaceKeyDownHandler:function(F){H6._spaceKeyDownHandler.call(this,F);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(F){H6._spaceKeyUpHandler.call(this,F);this.hasRipple()&&this._ripple.uiUpAction()}},ZZx=[ECJ,
_.I$,J1,eXf];_.RXx={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(F){F&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=F)},
_createRipple:function(){var F=J1._createRipple();F.id="ink";F.setAttribute("center","");F.classList.add("circle");return F}};
_.rXj=[ECJ,_.I$,J1,_.RXx];_.Nme=[_.rXj,nCv,{_checkedChanged:function(){oCO._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){J1._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var wOf;var iZJ;var kxL=function(){};
_.l=kxL.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._buttonStateChanged=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._createRipple=function(){};
_.l._noinkChanged=function(){};
_.l._computeKeyboardClass=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
_.l._setElevation=function(){};
kxL=_.Hh({_template:function(){if(iZJ!==void 0)return iZJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
var q=F.content,t=q.insertBefore;wOf===void 0&&(wOf=document.createElement("template"));var u=wOf;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return iZJ=F},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[ZZx],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?eXf._calculateElevation.apply(this):this._setElevation(0)}});var Efv;var zXL;var ofr={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(F){_.E("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(F)},
_onDialogClickWrapped:function(F){_.E("dialog_behavior_no_tap_killswitch")||this._onDialogClick(F)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(F,q){q&&(F?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(F){if(F){var q;((q=this.hostElement)!=null?q:this).setAttribute("aria-modal","true")}else{var t;((t=this.hostElement)!=null?t:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(F){this.closingReason=this.closingReason||{};this.closingReason.confirmed=F},
_onDialogClick:function(F){for(var q=_.xz(F).path,t=0,u,J=q.indexOf((u=this.hostElement)!=null?u:this);t<J;t++)if(u=q[t],u.hasAttribute&&(u.hasAttribute("dialog-dismiss")||u.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(u.hasAttribute("dialog-confirm"));this.close();F.stopPropagation();break}}},nfJ=[_.u4,
ofr];var MNn=document.createElement("template");_.G(MNn,'<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(MNn.content);var Tmx=document.createElement("template");_.G(Tmx,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(Tmx.content);_.Hh({_template:function(){if(zXL!==void 0)return zXL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
var q=F.content,t=q.insertBefore;Efv===void 0&&(Efv=document.createElement("template"));var u=Efv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return zXL=F},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[nfJ,ACC],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 Gxe;var DFJ;_.Hh({_template:function(){if(DFJ!==void 0)return DFJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Gxe===void 0&&(Gxe=document.createElement("template"));var u=Gxe;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return DFJ=F},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var F,q,t;if(((F=window.ShadyDOM)==null?void 0:F.noPatch)!==!0&&((q=window.ShadyDOM)==null?void 0:q.noPatch)!=="on-demand"||((t=this.__shady_parentNode)==null?void 0:t.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(ofr)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var W4C=_.LZ(['<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>']),OZz=_.Tjj(W4C);OZz.setAttribute("style","display: none;");document.head.appendChild(OZz.content);var PZL;var xFJ;var AXJ;var vfe;_.Hh({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Uw],configure:function(F){var q=F.node,t=q.getBoundingClientRect().height;return this._effect=new KeyframeEffect(q,[{height:t/2+"px"},{height:t+"px"}],this.timingFromConfig(F))}});
_.Hh({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Uw],configure:function(F){var q=F.node,t=q.getBoundingClientRect().width;return this._effect=new KeyframeEffect(q,[{width:t/2+"px"},{width:t+"px"}],this.timingFromConfig(F))}});
_.Hh({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Uw],configure:function(F){var q=F.node,t=q.getBoundingClientRect().width;return this._effect=new KeyframeEffect(q,[{width:t+"px"},{width:t-t/20+"px"}],this.timingFromConfig(F))}});
_.Hh({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Uw],configure:function(F){var q=F.node,t=q.getBoundingClientRect().height;this.setPrefixedProperty(q,"transformOrigin","0 0");return this._effect=new KeyframeEffect(q,[{height:t+"px",transform:"translateY(0)"},{height:t/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(F))}});var sq={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Iev=function(){};
_.l=Iev.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._focusBlurHandler=function(){};
_.l._changedControlState=function(){};
_.l._setFocused=function(){};
Iev=_.Hh({_template:function(){if(vfe!==void 0)return vfe;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;AXJ===void 0&&(AXJ=document.createElement("template"));var u=AXJ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return vfe=F},
is:"tp-yt-paper-menu-button",behaviors:[_.v6,_.I$],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:sq.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:sq.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:sq.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var F=_.xz(this.$.content).getDistributedNodes(),q=0,t=F.length;q<t;q++)if(F[q].nodeType===Node.ELEMENT_NODE)return F[q]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(F,q){F?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):q!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(F){_.I$._disabledChanged.apply(this,arguments);F&&this.opened&&this.close()},
__onIronOverlayCanceled:function(F){var q=this.$.trigger;_.xz(F.detail).path.indexOf(q)>-1&&F.preventDefault()}});
Object.keys(sq).forEach(function(F){Iev[F]=sq[F]});var HZL=_.my.IronButtonState,mFx=(0,_.Iz)(HTMLElement);
_.Hh({_template:function(){if(xFJ!==void 0)return xFJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;PZL===void 0&&(PZL=document.createElement("template"));var u=PZL;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return xFJ=F},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[HZL,_.I$,J1,_.$x,_.Ci],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(F){var q=(0,_.nW)(this);q.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:F});q.shadowRoot.appendChild(F);return mFx.prototype._attachDom.call(this,F)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var F=this.contentElement;F&&F.selectedItem&&this._setSelectedItem(F.selectedItem)},
get contentElement(){for(var F=_.xz(this.$.content).getDistributedNodes(),q=0,t=F.length;q<t;q++)if(F[q].nodeType===Node.ELEMENT_NODE)return F[q]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(F){this._setSelectedItem(F.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(F){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F)===this&&this.open()},
_selectedItemChanged:function(F){var q="";F?q=F.label||F.getAttribute("label")||F.textContent.trim():q="";this.value=q;this._setSelectedItemLabel(q)},
_computeMenuVerticalOffset:function(F,q){return q?q:F?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var F=this.opened?"true":"false",q=this.contentElement;q&&q.setAttribute("aria-expanded",F)},
_computeLabelClass:function(F,q,t){var u="label";if(F)t&&(u+=" label-is-hidden");else if(t||q)u+=" label-is-floating";return u},
_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 $FO;var bZv;_.Hh({is:"tp-yt-paper-icon-button",_template:function(){if(bZv!==void 0)return bZv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;$FO===void 0&&($FO=document.createElement("template"));var u=$FO;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return bZv=F},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.rXj],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(F,q){var t=this.getAttribute("aria-label");t&&q!=t||this.setAttribute("aria-label",F)}});var yXd;var CZL;_.l4=[ECJ,_.I$,{hostAttributes:{role:"option",tabindex:"0"}}];_.Hh({_template:function(){if(CZL!==void 0)return CZL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;yXd===void 0&&(yXd=document.createElement("template"));var u=yXd;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return CZL=F},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.l4]});var dFz;var VNf;var UFL={attached:function(){this.fire("addon-attached")},
update:function(){}};var SLz=1,hXv=1,K4E=1,Bmz=[_.I$,_.v6,{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();!ZC&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(F,q){F?F=F+" "+q:F=q;return F},
_onAddonAttached:function(F){F=_.xz(F).rootTarget;if(F.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,F.id);else{var q="paper-input-add-on-"+hXv++;F.id=q;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,q)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(F){_.I$._focusBlurHandler.call(this,F);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var F=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",F);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(F){try{var q=this.inputElement.selectionStart;this.value=F;this.inputElement.selectionStart=q;this.inputElement.selectionEnd=q}catch(t){this.value=F}},
_computeAlwaysFloatLabel:function(F,q){return q||F},
_updateAriaLabelledBy:function(){var F=_.xz(this.root).querySelector("label");if(F){if(F.id)var q=F.id;else q="paper-input-label-"+SLz++,F.id=q;this._ariaLabelledBy=q}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+K4E++)},
_onChange:function(F){this.shadowRoot&&this.fire(F.type,{sourceEvent:F},{node:this,bubbles:F.bubbles,cancelable:F.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var F=document.activeElement;F instanceof HTMLElement&&F!==document.body&&F!==document.documentElement||this._focusableElement.focus()}}}];var L4f;var fe1;_.Hh({_template:function(){if(fe1!==void 0)return fe1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;L4f===void 0&&(L4f=document.createElement("template"));var u=L4f;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return fe1=F},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[UFL],properties:{_charCounterStr:{type:String,value:"0"}},update:function(F){if(F.inputElement){F.value=F.value||"";var q=F.value.toString().length.toString();F.inputElement.hasAttribute("maxlength")&&(q+="/"+F.inputElement.getAttribute("maxlength"));this._charCounterStr=q}}});var aeL;var jLz;_.Hh({_template:function(){if(jLz!==void 0)return jLz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;aeL===void 0&&(aeL=document.createElement("template"));var u=aeL;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return jLz=F},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return ZS(this.attrForValue)},get _inputElement(){return _.xz(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(F){this._addons||(this._addons=[]);F=F.target;this._addons.indexOf(F)===-1&&(this._addons.push(F),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(F){this._handleValueAndAutoValidate(F.target)},
_onValueChanged:function(F){var q=F.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,q.value===void 0||q.value===""))return;this._handleValueAndAutoValidate(F.target)},
_handleValue:function(F){var q=this._inputElementValue;q||q===0||F.type==="number"&&!F.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:F,value:q,invalid:this.invalid})},
_handleValueAndAutoValidate:function(F){this.autoValidate&&F&&(this.invalid=!(F.validate?F.validate(this._inputElementValue):F.checkValidity()));this._handleValue(F)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(F){if(this._addons)for(var q,t=0;q=this._addons[t];t++)q.update(F)},
_computeInputContentClass:function(F,q,t,u,J){var g="input-content";F?(J&&(g+=" label-is-hidden"),u&&!this.noUnfloatedLabelError&&(g+=" is-invalid")):(F=this.querySelector("label"),q||J?(g+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",u?g+=" is-invalid":t&&(g+=" label-is-highlighted")):(F&&(this.$.labelAndInputContainer.style.position="relative"),u&&!this.noUnfloatedLabelError&&(g+=" is-invalid")));t&&(g+=" focused");return g},
_computeUnderlineClass:function(F,q){var t="underline";q?t+=" is-invalid":F&&(t+=" is-highlighted");return t},
_computeAddOnContentClass:function(F,q){var t="add-on-content";q?t+=" is-invalid":F&&(t+=" is-highlighted");return t}});var cXj;var Fc1;_.Hh({_template:function(){if(Fc1!==void 0)return Fc1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;cXj===void 0&&(cXj=document.createElement("template"));var u=cXj;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return Fc1=F},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[UFL],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(F){this._setInvalid(F.invalid)}});_.Hh({is:"tp-yt-paper-input",_template:function(){if(VNf!==void 0)return VNf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;dFz===void 0&&(dFz=document.createElement("template"));var u=dFz;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return VNf=F},
behaviors:[Bmz,_.$x],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 qaC;var tsd;_.Hh({_template:function(){if(tsd!==void 0)return tsd;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=
F.content,t=q.insertBefore;qaC===void 0&&(qaC=document.createElement("template"));var u=qaC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return tsd=F},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.l4]});var urz;var JaE;_.Hh({_template:function(){if(JaE!==void 0)return JaE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
var q=F.content,t=q.insertBefore;urz===void 0&&(urz=document.createElement("template"));var u=urz;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return JaE=F},
is:"tp-yt-paper-item-body"});var sCL;var gBx;var lfO=function(){};
_.l=lfO.prototype;_.l.indexOf=function(){};
_.l.selectPrevious=function(){};
_.l.selectNext=function(){};
_.l.selectIndex=function(){};
_.l.forceSynchronousItemUpdate=function(){};
_.l._checkFallback=function(){};
_.l._addListener=function(){};
_.l._removeListener=function(){};
_.l._activateEventChanged=function(){};
_.l._updateItems=function(){};
_.l._selectSelected=function(){};
_.l._filterItem=function(){};
_.l._valueToItem=function(){};
_.l._valueToIndex=function(){};
_.l._indexToValue=function(){};
_.l._valueForItem=function(){};
_.l._observeItems=function(){};
_.l._itemActivate=function(){};
_.l.multiChanged=function(){};
_.l._updateAttrForSelected=function(){};
_.l._updateSelected=function(){};
_.l._selectMulti=function(){};
_.l._selectionChange=function(){};
_.l._toggleSelected=function(){};
_.l._valuesToItems=function(){};
_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l.select=function(){};
_.l._resetTabindices=function(){};
_.l._updateMultiselectable=function(){};
_.l._focusWithKeyboardEvent=function(){};
_.l._clearSearchText=function(){};
_.l._focusPrevious=function(){};
_.l._focusNext=function(){};
_.l._applySelection=function(){};
_.l._focusedItemChanged=function(){};
_.l._onIronItemsChanged=function(){};
_.l._onShiftTabDown=function(){};
_.l._onFocus=function(){};
_.l._onUpKey=function(){};
_.l._onDownKey=function(){};
_.l._onEscKey=function(){};
_.l._onKeydown=function(){};
_.l._activateHandler=function(){};
_.l._disabledChanged=function(){};
_.l._setSelectedItem=function(){};
_.l._setItems=function(){};
_.l._setSelectedItems=function(){};
_.l._setFocusedItem=function(){};
lfO=_.Hh({_template:function(){if(gBx!==void 0)return gBx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
var q=F.content,t=q.insertBefore;sCL===void 0&&(sCL=document.createElement("template"));var u=sCL;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return gBx=F},
is:"tp-yt-paper-listbox",behaviors:[DZj],hostAttributes:{role:"listbox"}});var XiE;var YaC;var pif={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(F,q){return[F||q?"active":"",q?"cooldown":""].join(" ")},
__activeChanged:function(F,q){this.__setAriaHidden(!F);this.__coolingDown=!F&&q},
__altChanged:function(F){this.setAttribute("aria-label",F||"loading")},
__setAriaHidden:function(F){F?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Hh({_template:function(){if(YaC!==void 0)return YaC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;XiE===void 0&&(XiE=document.createElement("template"));var u=XiE;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return YaC=F},
is:"tp-yt-paper-spinner",behaviors:[pif]});var QCn;var etO;_.Hh({_template:function(){if(etO!==void 0)return etO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;QCn===void 0&&(QCn=document.createElement("template"));var u=QCn;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return etO=F},
is:"tp-yt-paper-spinner-lite",behaviors:[pif]});var Z4J;var RtL;_.Hh({_template:function(){if(RtL!==void 0)return RtL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Z4J===void 0&&(Z4J=document.createElement("template"));var u=Z4J;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return RtL=F},
is:"tp-yt-paper-tab",behaviors:[_.I$,_.my.IronButtonState,J1],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var F=_.xz(this).parentNode;return!!F&&!!F.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(F){if(this.link){var q=this.queryEffectiveChildren("a");q&&F.target!==q&&q.click()}}});var raC;var Ndr;var wiO=_.LZ(['<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>']),i4C=_.Tjj(wiO);document.head.appendChild(i4C.content);_.Hh({_template:function(){if(Ndr!==void 0)return Ndr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;raC===void 0&&(raC=document.createElement("template"));var u=raC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return Ndr=F},
is:"tp-yt-paper-tabs",behaviors:[_.Vl,_.OHv],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(F){_.xz(this).querySelectorAll("tp-yt-paper-tab").forEach(F?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(F){F.setAttribute("noink","")},
_removeNoinkAttribute:function(F){F.removeAttribute("noink")},
_computeScrollButtonClass:function(F,q,t,u){return!q||t?"hidden":F?u?"hidden":"not-visible":""},
_computeTabsContentClass:function(F,q){var t="tabs-content";F&&(t+=" scrollable");if(!F||q)t+=" fit-container";return t},
_computeSelectionBarClass:function(F,q){var t="selection-bar";F?t+=" hidden":q&&(t+=" align-bottom");return t},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(F){return""+F},
_onIronSelect:function(F){this._tabChanged(F.detail.item,this._previousTab);this._previousTab=F.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.dz._activateHandler.apply(this,arguments)},
_scheduleActivation:function(F,q){this._pendingActivationItem=F;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,q)},
_delayedActivationHandler:function(){var F=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;F.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(F){F.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(F,q){this.scrollable&&this._affectScroll(q&&-q.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(F){this.$.tabsContainer.scrollLeft+=F;F=this.$.tabsContainer.scrollLeft;this._leftHidden=F===0||this.hideScrollButtons;this._rightHidden=F===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(F,q){if(F){var t=this.$.tabsContent.getBoundingClientRect(),u=t.width,J=F.getBoundingClientRect();t=J.left-t.left;this._pos={width:this._calcPercent(J.width,u),left:this._calcPercent(t,u)};if(this.noSlide||q==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var g=q.getBoundingClientRect();q=this.items.indexOf(q);F=this.items.indexOf(F);this.$.selectionBar.classList.add("expand");
F=q<F;this._isRTL&&(F=!F);F?this._positionBar(this._calcPercent(J.left+J.width-g.left,u)-5,this._left):this._positionBar(this._calcPercent(g.left+g.width-J.left,u)-5,this._calcPercent(t,u)+5);this.scrollable&&this._scrollToSelectedIfNeeded(J.width,t)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(F,q){q-=this.$.tabsContainer.scrollLeft;q<0?this.$.tabsContainer.scrollLeft+=q:(q+=F-this.$.tabsContainer.offsetWidth,q>0&&(this.$.tabsContainer.scrollLeft+=q))},
_calcPercent:function(F,q){return 100*F/q},
_positionBar:function(F,q){F=F||0;q=q||0;this._width=F;this._left=q;this.transform("translateX("+q+"%) scaleX("+F/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var F=this.$.selectionBar.classList;F.contains("expand")?(F.remove("expand"),F.add("contract"),this._positionBar(this._pos.width,this._pos.left)):F.contains("contract")&&F.remove("contract")}});var k3x;var EBj;_.Hh({_template:function(){if(EBj!==void 0)return EBj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;k3x===void 0&&(k3x=document.createElement("template"));var u=k3x;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return EBj=F},
is:"tp-yt-paper-textarea",behaviors:[Bmz,_.$x],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(F){this.$.input.textarea.selectionStart=F},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(F){this.$.input.textarea.selectionEnd=F},_ariaLabelledByChanged:function(F){this._focusableElement.setAttribute("aria-labelledby",F)},
_ariaDescribedByChanged:function(F){this._focusableElement.setAttribute("aria-describedby",F)},
get _focusableElement(){return this.inputElement.textarea}});var ztJ;var oBx;/*

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 nBj=function(){};
_.l=nBj.prototype;_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._focusedChanged=function(){};
_.l.registered=function(){};
_.l._invalidChanged=function(){};
_.l.hasValidator=function(){};
_.l.validate=function(){};
_.l._getValidity=function(){};
_.l._requiredChanged=function(){};
_.l._valueChanged=function(){};
_.l._checkedChanged=function(){};
_.l._buttonStateChanged=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
nBj=_.Hh({is:"tp-yt-paper-toggle-button",_template:function(){if(oBx!==void 0)return oBx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;ztJ===void 0&&(ztJ=document.createElement("template"));var u=ztJ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return oBx=F},
behaviors:[_.Nme],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");_.tJ(this,function(){_.CW(this,"pan-y")})},
_ontrack:function(F){F=F.detail;F.state==="start"?this._trackStart(F):F.state==="track"?this._trackMove(F):F.state==="end"&&this._trackEnd(F)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(F){F=F.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+F:F)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+F:F));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var F=J1._createRipple();F.id="ink";F.setAttribute("recenters","");F.classList.add("circle","toggle-ink");return F}});var Msj;var Tdz;_.Hh({_template:function(){if(Tdz!==void 0)return Tdz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Msj===void 0&&(Msj=document.createElement("template"));var u=Msj;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return Tdz=F},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var F=_.xz(this).parentNode,q=_.xz(this).getOwnerRoot(),t;this.for?t=_.xz(q).querySelector("#"+this.for):t=F.nodeType==Node.DOCUMENT_FRAGMENT_NODE?q.host:F;return t},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(F){F==="entry"?this.show():F==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.xz(this).textContent.trim()===""){for(var F=!0,q=_.xz(this).getEffectiveChildNodes(),t=0;t<q.length;t++)if(q[t].textContent.trim()!==""){F=!1;break}if(F)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var F=this.offset;this.marginTop!=14&&this.offset==14&&(F=this.marginTop);var q=this.offsetParent.getBoundingClientRect(),t=this._target.getBoundingClientRect(),u=this.getBoundingClientRect(),J=(t.width-u.width)/2,g=(t.height-u.height)/2,Y=t.left-q.left,Q=t.top-q.top;switch(this.position){case "top":var e=Y+J;var r=Q-u.height-F;break;case "bottom":e=Y+J;r=Q+t.height+F;break;case "left":e=Y-u.width-F;r=Q+g;break;case "right":e=Y+t.width+
F,r=Q+g}this.fitToVisibleBounds?(q.left+e+u.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,e)+"px",this.style.right="auto"),q.top+r+u.height>window.innerHeight?(this.style.bottom=q.height+"px",this.style.top="auto"):(this.style.top=Math.max(-q.top,r)+"px",this.style.bottom="auto")):(this.style.left=e+"px",this.style.top=r+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(F){F!==500&&this.updateStyles({"--paper-tooltip-delay-in":F+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(F){if(F==="entry"&&this.animationEntry!=="")return this.animationEntry;if(F==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[F]&&typeof this.animationConfig[F][0].name==="string"){if(this.animationConfig[F][0].timing&&this.animationConfig[F][0].timing.delay&&this.animationConfig[F][0].timing.delay!==0){var q=this.animationConfig[F][0].timing.delay;F==="entry"?this.updateStyles({"--paper-tooltip-delay-in":q+"ms"}):F==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":q+
"ms"})}return this.animationConfig[F][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var G3j=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(G3j,_.le);var DJv=_.w$(G3j,[0,_.J$]);var XS=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(XS,_.le);var Wcx=[3,4],O4j=[5,6];var Ppw=[0,Wcx,O4j,_.Xo,-1,_.uX,_.YD,-1,Jl_,g6W];var xJ1=_.w$(XS,Ppw),AaO=_.ES(Ppw);var vBO=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(vBO,_.le);var IfC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(IfC,_.le);var H4e=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(H4e,_.le);var mJ1=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(mJ1,_.le);var $JE=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M($JE,_.le);var YH=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(YH,_.le);YH.prototype.getSource=function(){return _.Aa(this,1)};
YH.prototype.getMessage=function(){return _.xB(this,4)};
YH.prototype.getData=function(){return _.Yw(this,$JE,8)};var b4e=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(b4e,_.le);var pu=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(pu,_.le);var Q5=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Q5,_.le);var eG=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(eG,_.le);eG.prototype.getUrl=function(){return _.xB(this,1)};
eG.prototype.setUrl=function(F){return _.OF(this,1,F)};
eG.prototype.hasUrl=function(){return _.EC(_.kB(this,1))!=null};var yaz=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(yaz,_.le);var Cpd=[3];var dJC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(dJC,_.le);var Z1=function(F){var q=new dJC;return _.pt(q,2,F)};
dJC.prototype.getLanguage=function(){return IC(this,4,Rt)};
var Vsj=function(F){var q=Z1(1);return _.T9(q,6,Rt,F)},Rt=[3,
4,5,6];var UJn=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(UJn,_.le);var rR=function(F){var q=new UJn;return _.pt(q,1,F)},NX=function(F,q){return _.T9(F,2,Sad,q)},Sad=[2,
3,4,5];var htE=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(htE,_.le);var wR=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(wR,_.le);var KcL=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(KcL,_.le);var Bde=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Bde,_.le);var Lce=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Lce,_.le);var ffC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ffC,_.le);var afe=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(afe,_.le);var i4=function(F){return _.Yw(F,Q5,5)};var jCL=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(jCL,_.le);jCL.prototype.getValue=function(){return Oa(this,1)};var cae=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(cae,_.le);var kH=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(kH,_.le);kH.prototype.getMetadata=function(){return _.Hi(this,Lce,7,Eq)};
kH.prototype.hasMetadata=function(){return _.z3(this,Lce,7,Eq)};
var FRn=_.CeW(kH),Eq=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var zY=function(F){this.JSC$12006_name_=F;this.files_=[];this.directories_=[];this.directoryMap_={}};
zY.prototype.getName=function(){return this.JSC$12006_name_};var nu=function(F,q){this.callback_=q;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new zY("");qNf(this,F,this.rootDirectory_);ot(this)},qNf=function(F,q,t){for(var u=0;u<q.length;u++){var J=q[u];
J.isFile?(F.fileOps_++,J.file((0,_.Pd)(F.handleFileSuccess_,F,t),(0,_.Pd)(F.handleFileError_,F))):F.unscannedDirectories_.push(new tLJ(J,t))}},ot=function(F){if(F.unscannedDirectories_.length>0&&F.directoryOps_<5&&!F.hasError_){F.directoryOps_++;
var q=F.unscannedDirectories_.shift(),t=q.entry,u=new zY(t.name);q=q.parent;q.directoryMap_[u.getName()]=u;q.directories_.push(u);t=t.createReader();t.readEntries((0,_.Pd)(F.handleDirectorySuccess_,F,t,u),(0,_.Pd)(F.handleDirectoryError_,F))}F.directoryOps_!=0||F.fileOps_!=0||F.unscannedDirectories_.length!=0&&!F.hasError_||F.callback_(F.rootDirectory_.files_,F.rootDirectory_.directories_,F.hasError_)};
nu.prototype.handleDirectorySuccess_=function(F,q,t){qNf(this,t,q);t.length==0?(this.directoryOps_--,ot(this)):F.readEntries((0,_.Pd)(this.handleDirectorySuccess_,this,F,q),(0,_.Pd)(this.handleDirectoryError_,this))};
nu.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;ot(this)};
nu.prototype.handleFileSuccess_=function(F,q){F.files_.push(q);this.fileOps_--;ot(this)};
nu.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;ot(this)};
var tLJ=function(F,q){this.entry=F;this.parent=q};var MX=function(F){_.xD.call(this);_.Ic(F,"drop",this.onObjectsDropped_,!1,this);_.Ic(F,"dragenter",this.onFilesDragged_,!1,this);_.Ic(F,"dragover",this.onFilesDragged_,!1,this);_.Ic(F,"dragleave",this.onDragLeave_,!1,this);_.Ic(F,"dragend",this.onDragLeave_,!1,this)};
_.gd(MX,_.xD);var uhL=function(F,q){_.Gw.call(this,"f");this.files=F;this.directories=q};
_.gd(uhL,_.Gw);var J$C=function(){_.Gw.call(this,"h")};
_.gd(J$C,_.Gw);var s8x=function(){_.Gw.call(this,"i")};
_.gd(s8x,_.Gw);var gVL=function(){_.Gw.call(this,"g")};
_.gd(gVL,_.Gw);MX.prototype.onObjectsDropped_=function(F){var q=this;F.preventDefault();var t=F.event_.dataTransfer;if((F=t&&t.items)&&F.length>0&&F[0].webkitGetAsEntry){t=[];for(var u=[],J=0;J<F.length;J++){var g=F[J].webkitGetAsEntry();g?t.push(g):u.push(F[J])}new nu(t,function(Y,Q,e){e?q.dispatchEvent(new gVL("Error occurred while reading from the file system.")):q.dispatchEvent(new uhL(Y,Q,u))})}else(F=t&&t.files)&&this.dispatchEvent(new uhL(Array.from(F),[]))};
MX.prototype.onFilesDragged_=function(F){F.type==="dragenter"&&this.dispatchEvent(new J$C);F.preventDefault()};
MX.prototype.onDragLeave_=function(){this.dispatchEvent(new s8x)};var lHL=function(F,q){this.JSC$12029_name_=F;this.inputElement_=q};
lHL.prototype.getName=function(){return this.JSC$12029_name_};
lHL.prototype.getInputElement=function(){return this.inputElement_};var TY=function(F,q,t){q=q===void 0?"single_file":q;t=t===void 0?[]:t;_.xD.call(this);this.overlayTarget_=F;this.parentOverlay_=F!=null?F.parentNode:_.nr("scotty-overlay-parent");this.selectorType_=q;this.acceptTypes_=t;this.overlay_=Xk1(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.M(TY,_.xD);
var Xk1=function(F,q,t,u){var J=document.createElement("input");J.setAttribute("type","file");J.setAttribute("name","Filedata");_.Ic(J,"change",F.onFilesSelected_,!1,F);t==="multiple_file"&&(J.multiple="true");t==="single_directory"&&(J.webkitdirectory="true");u.length>0&&J.setAttribute("accept",u.join(","));J.style.position="absolute";J.style.overflow="hidden";J.style.height="0px";J.style.width="0px";J.style.opacity="0";J.setAttribute("aria-hidden","true");J.setAttribute("tabIndex",-1);if(F.overlayTarget_!=
null)return J.style.height=q.offsetHeight+"px",J.style.width=q.offsetWidth+"px",F.parentOverlay_&&(F.parentOverlay_.style.position="relative"),_.CR(J,q),KR(J,new _.bQ(q.offsetLeft,q.offsetTop)),J;F.parentOverlay_.appendChild(J);return J};
TY.prototype.click=function(){this.overlay_.click()};
TY.prototype.onFilesSelected_=function(F){a:{try{var q=(new XMLHttpRequest).upload!==void 0;break a}catch(r){}q=!1}if(q){var t;F=Array.from((t=F.target.files)!=null?t:[]);t=[];if(this.selectorType_==="single_directory"&&(_.es||qE||_.QZ)){t=new zY("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(q=0;q<F.length;q++)for(var u=F[q],J=u.webkitRelativePath.split("/"),g=t,Y=0;Y<J.length;Y++){var Q=J[Y];if(Y==J.length-1){Q!="."&&g.files_.push(u);break}var e=g.directoryMap_[Q];e==void 0&&(Q=
e=new zY(Q),g.directoryMap_[Q.getName()]=Q,g.directories_.push(Q));g=e}t=t.directories_}this.dispatchEvent(new YNf(F,t,null))}else F=F.target.value,F.match(/^c:\\fakepath\\/i)&&(F=F.substring(12)),this.dispatchEvent(new YNf([],[],new lHL(F,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=Xk1(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var YNf=function(F,q){_.Gw.call(this,"j");this.files=F;this.directories=q};
_.M(YNf,_.Gw);var pkL=function(F){this.uploadUrl_=F};var Q8J=function(){_.xD.call(this)};
_.gd(Q8J,_.xD);var GY=function(F){_.Gw.call(this,F)};
_.gd(GY,_.Gw);var D1=function(F){_.Gw.call(this,F)};
_.gd(D1,_.Gw);var eKd=function(F,q,t,u,J){_.xD.call(this);t=document.createElement("form");t.setAttribute("method",q);t.setAttribute("enctype","multipart/form-data");t.setAttribute("encoding","multipart/form-data");q=document.createElement("input");q.setAttribute("type","hidden");q.setAttribute("name","metadata");q.setAttribute("value",J);t.appendChild(q);t.appendChild(u);this.JSC$12046_form_=t;F=new _.qU(F);_.aX(F,"upload_protocol","multipart");this.JSC$12046_url_=F.toString();this.JSC$12046_request_=new ZX;this.state_=
"Ready";this.JSC$12046_errorDescription_=null;this.JSC$12046_eventHandler_=new _.Qb(this);_.kW(this,this.JSC$12046_eventHandler_);this.JSC$12046_eventHandler_.listen(this.JSC$12046_request_,"success",this.onTransferSuccess_);this.JSC$12046_eventHandler_.listen(this.JSC$12046_request_,"error",this.onTransferError_)};
_.M(eKd,Q8J);_.l=eKd.prototype;_.l.run=function(){this.state_="Transferring";var F=this.JSC$12046_request_,q=this.JSC$12046_form_;if(F.JSC$11465_active_)throw Error("oe");var t=new _.qU(this.JSC$12046_url_||q.action);F.JSC$11465_form_=q;q=F.JSC$11465_form_;t=_.SO(t.toString());t!==void 0&&(q.action=t);Cdz(F)};
_.l.getResponseCode=function(){return null};
_.l.getResponseText=function(){return this.JSC$12046_request_&&this.JSC$12046_request_.getResponseText()||null};
_.l.JSC$29426_getErrorDescription=function(){return this.JSC$12046_errorDescription_};
_.l.cancel=function(){this.JSC$12046_request_&&this.JSC$12046_request_.abort();this.state_="Cancelled";this.dispatchEvent(new GY("o"))};
_.l.pause=function(){};
_.l.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new GY("l"))};
_.l.onTransferError_=function(){this.JSC$12046_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new GY("n"))};var WX=function(){_.yO.call(this)};
_.M(WX,_.yO);WX.prototype.createXhr=function(){var F=_.yO.prototype.createXhr.call(this);F.upload&&(F.upload.onprogress=(0,_.Pd)(this.onProgress_,this));return F};
WX.prototype.onProgress_=function(F){this.dispatchEvent(F)};var ZRJ=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},r$J=function(F,q){var t=F.attempt_+1;
if(F.maxAttempts_>0&&t>F.maxAttempts_)return!1;t==0?q():F.delayCallId_=mX(function(){F.delayCallId_=null;q()},RKv(F),F);
F.attempt_=t;return!0};
ZRJ.prototype.reset=function(){this.delayCallId_&&_.uu.clearTimeout(this.delayCallId_);this.attempt_=-1};
var RKv=function(F){var q=250*Math.pow(2,F.attempt_);F.maxDelayMs_>=0&&(q=Math.min(q,F.maxDelayMs_));return q};var qY$=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Oq=function(){_.xD.call(this);this.JSC$12056_request_=this.state_=null;this.JSC$12056_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12056_bytesTransferred_=0;this.retryIterator_=new ZRJ;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12056_errorDescription_=null;this.JSC$12056_eventHandler_=new _.Qb(this);_.kW(this,this.JSC$12056_eventHandler_);this.JSC$12056_url_=this.blob_=null;this.JSC$12056_method_=void 0;this.chunkSize_=this.JSC$12056_metadata_=
this.JSC$12056_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12056_responseText_=this.JSC$12056_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.gd(Oq,Q8J);_.l=Oq.prototype;_.l.run=function(){PX(this)};
_.l.getResponseCode=function(){return this.JSC$12056_responseCode_};
_.l.getResponseText=function(){return this.JSC$12056_responseText_};
_.l.JSC$29426_getErrorDescription=function(){return this.JSC$12056_errorDescription_};
_.l.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12056_eventHandler_.removeAll();this.JSC$12056_request_&&this.JSC$12056_request_.abort();this.retryIterator_.reset();var F=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(F==="Upload"||F==="Query")F=new WX,F.JSC$9789_withCredentials_=this.JSC$12056_withCredentials_,F.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12056_bytesTransferred_=
0;this.dispatchEvent(new GY("o"))}};
_.l.pause=function(){this.pauseRequested_=!0};
var PX=function(F){var q=F.state_;F.pauseRequested_?(F.pauseRequested_=!1,F.stateAfterUnpausing_=q,F.state_="Paused"):r$J(F.retryIterator_,function(){switch(F.state_){case "Start":F.JSC$12056_request_=new WX;var t=_.m7.clone(F.JSC$12056_headers_);F.blob_.size!=null&&(t["Content-Length"]=F.blob_.size);t=tho(t);t["X-Goog-Upload-Protocol"]="resumable";t["X-Goog-Upload-Command"]="start";F.JSC$12056_eventHandler_.removeAll();F.JSC$12056_eventHandler_.listen(F.JSC$12056_request_,"complete",F.onStartComplete_);
F.JSC$12056_request_.JSC$9789_withCredentials_=F.JSC$12056_withCredentials_;F.JSC$12056_request_.send(F.JSC$12056_url_,F.JSC$12056_method_,F.JSC$12056_metadata_,t);F.lastCommandResponseCode_=null;F.dispatchEvent(new D1("q"));break;case "Upload":t=F.transferHandle_.uploadUrl_;var u=F.blob_.size;if(w2O()){var J=F.chunkSize_;var g=F.offset_+J>=u;u=NOO(F.blob_,F.offset_,g?u:F.offset_+J)}else F.offset_=0,u=F.blob_,g=!0;F.JSC$12056_request_=new WX;F.JSC$12056_request_.JSC$9789_withCredentials_=F.JSC$12056_withCredentials_;
F.JSC$12056_eventHandler_.removeAll();F.JSC$12056_eventHandler_.listen(F.JSC$12056_request_,"progress",F.onUploadProgress_);J=(0,_.Pd)(F.JSC$12058_onUploadComplete_,F,F.offset_+u.size,g);F.JSC$12056_eventHandler_.listen(F.JSC$12056_request_,"complete",J);F.lastCommandResponseCode_=null;F.dispatchEvent(new D1("q"));g=Object.assign({},F.JSC$12056_headers_||{},{"X-Goog-Upload-Command":"upload"+(g?", finalize":""),"X-Goog-Upload-Offset":F.offset_});F.JSC$12056_request_.send(t,"POST",u,g);break;case "Query":F.JSC$12056_request_=
new WX;F.JSC$12056_eventHandler_.removeAll();F.JSC$12056_eventHandler_.listen(F.JSC$12056_request_,"complete",F.onQueryComplete_);t=Object.assign({},F.JSC$12056_headers_||{},{"X-Goog-Upload-Command":"query"});F.JSC$12056_request_.send(F.transferHandle_.uploadUrl_,"POST","",t);F.lastCommandResponseCode_=null;F.dispatchEvent(new D1("q"));break;default:throw Error("df");}})||xH(F,"Transfer encountered too many consecutive failures.")},xH=function(F,q){F.state_="Error";
F.JSC$12056_errorDescription_=q;F.dispatchEvent(new GY("n"))};
Oq.prototype.onStartComplete_=function(F){var q=F.target;this.lastCommandResponseCode_=q.getStatus();this.dispatchEvent(new D1("r"));if(N11(q))wke(this,q);else if(iRf(q)){F=q3(F.target.getAllResponseHeaders());for(var t in F)_.gf(t.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new GY("m"));t=vW(F,"X-Goog-Upload-URL");F=(F=vW(F,"X-Goog-Upload-Chunk-Granularity"))?parseInt(F,10):1;t===void 0||isNaN(F)||F<=0?xH(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
F)*F,this.transferHandle_=new pkL(t),this.dispatchEvent(new GY("p")),this.state_="Upload",this.retryIterator_.reset(),PX(this))}else PX(this)};
Oq.prototype.onUploadProgress_=function(F){this.JSC$12056_bytesTransferred_=this.offset_+F.loaded;this.dispatchEvent(new GY("k"))};
Oq.prototype.JSC$12058_onUploadComplete_=function(F,q,t){var u=this,J,g;return _.p(function(Y){switch(Y.nextAddress){case 1:J=t.target;u.lastCommandResponseCode_=J.getStatus();u.dispatchEvent(new D1("r"));if(kbe(J)||J.getStatus()==404)return u.JSC$12056_bytesTransferred_=F,wke(u,J),Y.return();if(iRf(J)){Y.jumpTo(2);break}if(!(g=u.detectCorruptedBlobEnabled_)){Y.jumpTo(3);break}return Y.yield(EV1(u),4);case 4:g=Y.yieldResult;case 3:if(g)return xH(u,"Blob has been modified or corrupted."),Y.return();
u.requireUploadRequestModification_=J.getStatus()==400;u.state_="Query";PX(u);return Y.return();case 2:if(q)return xH(u,"Got a non-final success response after issuing a finalize command."),Y.return();u.JSC$12056_bytesTransferred_=F;u.offset_=F;u.retryIterator_.reset();PX(u);return Y.return()}})};
Oq.prototype.onQueryComplete_=function(F){var q=F.target;this.lastCommandResponseCode_=q.getStatus();this.dispatchEvent(new D1("r"));N11(q)?(q.getStatus()===200&&(this.JSC$12056_bytesTransferred_=this.blob_.size),wke(this,q)):iRf(q)?(F=q3(F.target.getAllResponseHeaders()),F=parseInt(vW(F,"X-Goog-Upload-Size-Received"),10),isNaN(F)?xH(this,"Server did not respond with current offset."):F<this.offset_?xH(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
F+"."):this.requireUploadRequestModification_&&this.offset_===F?xH(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<F&&this.retryIterator_.reset(),this.offset_=this.JSC$12056_bytesTransferred_=F,this.state_="Upload",PX(this))):PX(this)};
var wke=function(F,q){F.JSC$12056_responseCode_=q.getStatus();var t=q3(q.getAllResponseHeaders());ukq(t);F.JSC$12056_responseText_=q.getResponseText();F.state_="Response received";F.dispatchEvent(new GY("l"))},iRf=function(F){var q=F.getStatus();
F=q3(F.getAllResponseHeaders());F=vW(F,"X-Goog-Upload-Status");return q===200&&F==="active"},kbe=function(F){F=q3(F.getAllResponseHeaders());
return vW(F,"X-Goog-Upload-Status")==="final"},N11=function(F){if(kbe(F))return!0;
F=F.getStatus();return F>=400&&F<500},EV1=function(F){var q;
return _.p(function(t){if(t.nextAddress==1){if(!F.blob_||F.originalBlobSize_<=0)return t.return(!1);if(F.blob_.size!==F.originalBlobSize_)return t.return(!0);_.zg(t,2);if(q=NOO(F.blob_,0,1)){var u=t.yield,J=new az,g=uej(J);J.reader_.readAsBinaryString(q);t=u.call(t,g,4)}else t=t.return(!0);return t}if(t.nextAddress!=2)return t.return(F.blob_.size!==F.originalBlobSize_);_.Gg(t);return t.return(!0)})};var zK1=function(F,q,t,u,J,g){_.xD.call(this);this.payload_=u;this.JSC$12059_url_=F;this.JSC$12059_method_=q;this.JSC$12059_headers_=t;this.JSC$12059_metadata_=J;this.encoding_=g||"binary";F=new _.mY;this.boundary_="uploader-"+Bd()+"-"+F.JSC$11314_toIsoString();this.JSC$12059_responseText_=this.JSC$12059_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12059_errorDescription_=null;this.JSC$12059_eventHandler_=new _.Qb(this);_.kW(this,this.JSC$12059_eventHandler_)};
_.M(zK1,Q8J);_.l=zK1.prototype;
_.l.run=function(){var F=_.m7.clone(this.JSC$12059_headers_);this.payload_.length!=null&&(F["Content-Length"]=this.payload_.length);F=tho(F);F["X-Goog-Upload-Protocol"]="multipart";F["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new WX;this.JSC$12059_eventHandler_.removeAll();this.JSC$12059_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12059_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12059_url_,this.JSC$12059_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12059_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",F)};
_.l.getResponseCode=function(){return this.JSC$12059_responseCode_};
_.l.getResponseText=function(){return this.JSC$12059_responseText_};
_.l.JSC$29426_getErrorDescription=function(){return this.JSC$12059_errorDescription_};
_.l.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12059_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new GY("o")))};
_.l.pause=function(){};
_.l.onTransferProgress_=function(){this.dispatchEvent(new GY("k"))};
_.l.onTransferComplete_=function(F){var q=F.target.getStatus();q===void 0||q===-1?(this.JSC$12059_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new GY("n"))):(this.JSC$12059_responseCode_=q,F=F.target,q=q3(F.getAllResponseHeaders()),ukq(q),this.JSC$12059_responseText_=F.getResponseText(),this.state_="Complete",this.dispatchEvent(new GY("l")))};_.oVO=function(F,q,t,u){u=u===void 0?!1:u;if(t instanceof lHL)return new eKd(F,"POST",q,t.getInputElement(),"");if(typeof t==="string"||t instanceof String)return new zK1(F,"POST",q,t,"");var J=new Oq(void 0);J.JSC$12056_url_=F;J.JSC$12056_method_="POST";J.JSC$12056_headers_=q;J.blob_=t;J.originalBlobSize_=t.size;J.JSC$12056_metadata_="";u&&(J.JSC$12056_withCredentials_=u);J.state_="Start";return J};var A1=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(A1,_.le);_.l=A1.prototype;_.l.getEnableSsEngine=function(){return _.Wi(this,2)};
_.l.getEnableAwr=function(){return _.Wi(this,3)};
_.l.getAlohaAutoGaRollout=function(){return _.Wi(this,5)};
_.l.getEnableConfigurator=function(){return _.Wi(this,6)};
_.l.getEnableMweb=function(){return _.Wi(this,7)};
var ML1=function(){var F=nVx();return _.HW(F,7,!0)};
A1.prototype.getEnableCtlConsentCheckbox=function(){return _.Wi(this,8)};
A1.prototype.getEnableIframe=function(){return _.Wi(this,9)};
var nVx=function(){var F=new A1;F=_.HW(F,5,!0);F=_.HW(F,2,!0);F=_.HW(F,4,!1);F=_.HW(F,8,!0);return _.HW(F,9,!0)};
A1.prototype.getEnableScreenshotNudge=function(){return _.Wi(this,10)};
var T1f=function(){var F=ML1();return _.HW(F,10,!0)};
A1.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Wi(this,11)};
A1.prototype.getEnableJunkNudge=function(){return _.Wi(this,12)};
var ocW=function(){var F=T1f();return _.HW(F,12,!0)};
_.l=A1.prototype;_.l.getEnableConfiguratorLocale=function(){return _.Wi(this,13)};
_.l.getEnableTinyNoPointer=function(){return _.Wi(this,14)};
_.l.getEnableSupportSessionLogging=function(){return _.Wi(this,15)};
_.l.getEnableFileUploadForScreenshot=function(){return _.Wi(this,16)};
_.l.getEnableDirectDeflectionForSingleCategory=function(){return _.Wi(this,17)};
_.l.getEnableImageSanitization=function(){return _.Wi(this,18)};
_.l.getEnableAlohaBinarySplit=function(){return _.Wi(this,19)};
_.l.getEnableDbFeedbackIntents=function(){return _.Wi(this,20)};
_.l.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Wi(this,21)};
_.l.getEnableFeedbackCategoryCustomUi=function(){return _.Wi(this,22)};
_.l.getEnableRealtimeCtl=function(){return _.Wi(this,23)};var z33=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(z33,_.le);var Jdt=[/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 gc3="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 ldt=_.LZ(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Xbq=_.LZ(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var pbo,Zgo,QOu,R3t;var GbE,Dtj;
GbE=function(F,q,t){F.timeOfStartCall=(new Date).getTime();var u=t||_.uu,J=u.document,g=F.nonce||_.cS(u.document);g&&!F.nonce&&(F.nonce=g);if(F.flow=="help"){var Y=_.S6("document.location.href",u);!F.helpCenterContext&&Y&&(F.helpCenterContext=Y.substring(0,1200));Y=!0;if(q&&JSON&&JSON.stringify){var Q=JSON.stringify(q);(Y=Q.length<=1200)&&(F.psdJson=Q)}Y||(q={invalidPsd:!0})}q=[F,q,t];u.GOOGLE_FEEDBACK_START_ARGUMENTS=q;t=F.feedbackServerUri||"//www.google.com/tools/feedback";if(Y=u.GOOGLE_FEEDBACK_START)Y.apply(u,q);
else{u=t+"/load.js?";for(var e in F)q=F[e],q==null||_.ho(q)||(u+=encodeURIComponent(e)+"="+encodeURIComponent(q)+"&");F=Wn(J).createElement("SCRIPT");g&&F.setAttribute("nonce",g);_.uF(F,_.OS(u));J.body.appendChild(F)}};
Dtj=function(F,q,t,u){var J,g;_.p(function(Y){J=t||_.uu;var Q=F.serverEnvironment==="DEV",e=t||_.uu;e=F.nonce||_.cS(e.document);Q={integrationKeys:{productId:F.productId,feedbackBucket:F.bucket,triggerId:F.triggerId},callbacks:{onClose:F.callback,onLoad:F.onLoadCallback},formContent:{locale:F.locale,disableScreenshot:F.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:F.abuseLink,additionalDataConsent:F.additionalDataConsent},initializationData:{isLocalServer:Q,nonce:e,useNightlyRelease:Q,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:F.feedbackServerUri,colorScheme:F.colorScheme},extraData:{productVersion:F.productVersion,authUser:F.authuser,configuratorId:F.configuratorId,customZIndex:F.customZIndex,tinyNoPointer:F.tinyNoPointer,
allowNonLoggedInFeedback:F.allowNonLoggedInFeedback,enableAnonymousFeedback:F.enableAnonymousFeedback}};q&&(e=new Map(Object.entries(q)),Q.extraData.productSpecificData=e);g=Q;return Y.yield(ig3(g,u,J),0)})};
_.WRJ=function(F,q,t){try{if(F.flow==="help"){var u=F.helpCenterPath.replace(/^\//,"");_.jO(t||window,"https://support.google.com/"+u)}else F.flow==="submit"?GbE(F,q,t):ncC(F.productId,F.feedbackServerUri).then(function(J){J=_.Yw(J,A1,1);var g=!zqM||(J==null?void 0:J.getEnableMweb()),Y=!F.tinyNoPointer||(J==null?void 0:J.getEnableTinyNoPointer());!J||J.getAlohaAutoGaRollout()&&g&&Y?Dtj(F,q,t,J):GbE(F,q,t)},function(J){J&&J.name!=="DuplicateFormError"&&GbE(F,q,t)})}catch(J){Dtj(F,q,t,null)}};
_.uo("userfeedback.api.startFeedback",_.WRJ);var Mh_=/https?:\/\/\S+\.\S+/,Tgo=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],GUv=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Hzo=function(F){var q=F.split(""),t=[-263237435,15,q,function(u,J,g){var Y=J.length;g.forEach(function(Q,e,r){this.push(r[e]=J[(J.indexOf(Q)-J.indexOf(this[e])+e+Y--)%J.length])},u.split(""))},
function(u,J){u=(u%J.length+J.length)%J.length;J.splice(-u).reverse().forEach(function(g){J.unshift(g)})},
"response",function(){for(var u=64,J=[];++u-J.length-32;){switch(u){case 58:u-=14;case 91:case 92:case 93:continue;case 123:u=47;case 94:case 95:case 96:continue;case 46:u=95}J.push(String.fromCharCode(u))}return J},
null,12,1540023973,65941107,null,q,function(u,J){for(u=(u%J.length+J.length)%J.length;u--;)J.unshift(J.pop())},
695603893,function(u){for(var J=u.length;J;)u.push(u.splice(--J,1)[0])},
"'[;'[(",function(u,J){u.push(J)},
null,function(u,J,g,Y,Q){return J(g,Y,Q)},
"continuation",q,function(u,J){if(u.length!=0){J=(J%u.length+u.length)%u.length;var g=u[0];u[0]=u[J];u[J]=g}},
function(){for(var u=64,J=[];++u-J.length-32;){switch(u){case 91:u=44;continue;case 123:u=65;break;case 65:u-=18;continue;case 58:u=96;continue;case 46:u=95}J.push(String.fromCharCode(u))}return J},
'"),/]];'];t[7]=t;t[11]=t;t[18]=t;try{(((0,t[15])(t[21]),t[22])(t[11],t[9]),t[22])(t[new Date("1970-01-01T04:30:12.000+04:30")/1E3],t[1]),((0,t[22])(t[11],t[23]),t[4])(t[10],t[18]),(0,t[20])(t[21],t[14])<<(0,t[17])(t[18],t[1]),(0,t[4])(t[8],t[21]),(0,t[19])((0,t[19])((0,t[17])(t[7],t[9]),t[3],t[20],(0,t[6])(),t[2]),t[3],t[5],(0,t[15])(),t[2])}catch(u){return"aTlOUOubTO4AP____8P_"+F}return q.join("")};_.ORC=new _.Xk("runAttestationCommand");var PXv=new _.Xk("verifyCommand");_.vX=new _.Xk("accessibilityContext");var xtd=new _.Xk("accessibilityData");var A$n=new _.Xk("profileCardCommand");var SZM=new _.Xk("signInEndpoint");var UWq=new _.Xk("signOutEndpoint");var IHE;_.vVO=new _.Xk("accountItemSectionRenderer");IHE=new _.Xk("accountItemRenderer");_.HRx=new _.Xk("saveCommandToSessionStorageAction");var mtJ=new _.Xk("crossAccountChannelTransferEndpoint");var ySq=new _.Xk("getAccountMenuEndpoint");_.CUP=new _.Xk("getAccountSwitcherEndpoint");var bfu=new _.Xk("getAccountsListEndpoint");var $td=new _.Xk("getAccountsListInnertubeEndpoint");_.It=new _.Xk("addToToastAction");var bRv=new _.Xk("hideEnclosingAction");_.HX=new _.Xk("replaceEnclosingAction");var y$z=new _.Xk("buttonRefreshAction");var CXL=new _.Xk("adsControlFlowOpportunityReceivedCommand");var dtw=new _.Xk("openAdAllowlistInstructionCommand");var VLd=new _.Xk("videoMastheadAdPrimaryVideoRenderer");var Utd=new _.Xk("displayAdRenderer");var Z__=new _.Xk("instreamVideoAdRenderer");_.SNJ=new _.Xk("inFeedAdLayoutRenderer");var hKx=new _.Xk("sequenceItemInPlayerAdLayoutRenderer");_.KRj=new _.Xk("adSlotRenderer");var B1O=new _.Xk("adAvatarViewModel");var LRO=new _.Xk("adBadgeViewModel");var fH1=new _.Xk("adButtonViewModel");var aHC=new _.Xk("adImageViewModel");var ggv=new _.Xk("reelsAdCardButtonedViewModel");var j8O=new _.Xk("reelsPlayerOverlayLayoutViewModel");var c$e=new _.Xk("showSchedulingPanelCommand");var FXO=new _.Xk("backstageCommentsRenderer");var qrv=new _.Xk("backstageImageRenderer");var tuw=new _.Xk("backstagePostRenderer");var uof=new _.Xk("backstageZeroStateRenderer");var Jc1=new _.Xk("postRenderer");var sRC=new _.Xk("sharedPostRenderer");var gDJ=new _.Xk("createBackstagePostEndpoint");var l6j=new _.Xk("getPostVideoPreviewEndpoint");var Xrj=new _.Xk("updateBackstagePostEndpoint");var Yrx=new _.Xk("filterChipTransformCommand");var prC=new _.Xk("insertRichSectionCommand");var jQt=new _.Xk("talkToRecsDeselectCommand");var QRd=new _.Xk("talkToRecsNextCommand");var a9f=new _.Xk("talkToRecsSelectCommand");var eNe=new _.Xk("talkToRecsUpdateTextCommand");_.Gr=new _.Xk("browseEndpoint");_.ZQe=new _.Xk("confirmDialogEndpoint");var RN1=new _.Xk("expandOnHoverCardRenderer");var rcO=new _.Xk("lumiereShelfDetailsRenderer");var NUC=new _.Xk("revealBusinessEmailCommand");var wrr=new _.Xk("validateChannelHandleCommand");var iQO=new _.Xk("channelCreationFormEndpoint");var kwv=new _.Xk("aboutChannelViewModel");var EDz=new _.Xk("channelThumbnailWithLinkRenderer");var zN1=new _.Xk("channelCreationServiceEndpoint");var oD1=new _.Xk("updateChannelPageSettingsEndpoint");var ml=function(F){this.delegate=F},$H=function(){ml.apply(this,arguments)};
_.M($H,ml);_.JJ.Object.defineProperties($H.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(F){this.delegate.entityMetadata=F}}});var nDz=function(){$H.apply(this,arguments)};
_.M(nDz,$H);nDz.prototype.getAssociations=function(){return[]};
nDz.prototype.getTypeName=function(){return"channelHandle"};var LbM=new _.Xk("webThumbnailDetailsExtensionData");var Y7A=new _.Xk("commandContext");var Muj=new _.Xk("addVideoLinkAction");var TUC=new _.Xk("banAuthorAction");var GwC=new _.Xk("createCommentAction");var Dzw=new _.Xk("createCommentReplyAction");var WXL=new _.Xk("createPollAction");var OQj=new _.Xk("hideIdentityChipAction");var PbC=new _.Xk("openUpdateCommentDialogAction");var xzx=new _.Xk("pinCommentAction");var Acf=new _.Xk("removeCommentAction");var vDw=new _.Xk("unpinCommentAction");var b4=new _.Xk("updateBackstagePollAction");var I6f=new _.Xk("updateCommentVoteAction");var HQv=new _.Xk("commentThreadRenderer");var mz1=function(){$H.apply(this,arguments)};
_.M(mz1,$H);mz1.prototype.getAssociations=function(){return[]};
mz1.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var $zO=function(){$H.apply(this,arguments)};
_.M($zO,$H);$zO.prototype.getAssociations=function(){return[]};
$zO.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.bQn=new _.Xk("commentDialogRenderer");var ycO=new _.Xk("reloadCommentsCommand");var Cbe=new _.Xk("updateCommentsSettingsEndpoint");var dzE=new _.Xk("commentViewModel");var Vu1=new _.Xk("triStateButtonViewModel");var UzJ=new _.Xk("voiceReplyContainerViewModel");_.wY=new _.Xk("commandExecutorCommand");var dc=new _.Xk("emoji");var Srr=new _.Xk("updateCreatorChannelInnertubeCommand");_.hNe=new _.Xk("appendContinuationItemsAction");_.KXf=new _.Xk("changeEngagementPanelVisibilityAction");_.Si=new _.Xk("continuationCommand");var BUx=new _.Xk("hideReportedCommentAction");var LXx=new _.Xk("listMutationCommand");_.y5=new _.Xk("openPopupAction");var f6L=new _.Xk("persistSubscriptionsDisplayPreferencesCommand");var Jkj;_.a6v=new _.Xk("playlistRemoveVideosAction");_.jRf=new _.Xk("updatePlaylistAction");_.ccf=new _.Xk("addToPlaylistCommand");_.F_C=new _.Xk("endPlaylistCommand");_.q5w=new _.Xk("recoverPlaylistCommand");_.tjC=new _.Xk("refreshPlaylistCommand");_.uzJ=new _.Xk("refreshFormCommand");Jkj=new _.Xk("openOnePickAddVideoModalCommand");_.KG3=new _.Xk("reloadContinuationItemsCommand");_.saE=new _.Xk("scrollToEngagementPanelCommand");var gde=new _.Xk("selectCountryCommand");var lJO=new _.Xk("showReloadUiCommand");var XLr=new _.Xk("undoFeedbackAction");var Y5f=new _.Xk("updateButtonAction");var pLz=new _.Xk("updateSubscribeButtonAction");var QaJ=new _.Xk("updateToggleAction");var eYn=new _.Xk("webNativeShareCommand");_.EH=new _.Xk("webCommandMetadata");_.Cu=new _.Xk("webHandleServiceEndpointExtension");var SAv=new _.Xk("webNavigationEndpointData");var Znn=new _.Xk("backgroundAudioPlaybackCommand");var RYv=new _.Xk("copyLinkCommand");var rkz=new _.Xk("playlistVotingRefreshPopupCommand");var N3j=new _.Xk("selectChipCommand");var wLC=new _.Xk("setCookieCommand");var inv=new _.Xk("setLocalStorageCommand");var kSz=new _.Xk("setPrefStorageEntryCommand");var ndd;_.EdE=new _.Xk("settingsUpdateCheckboxCommand");_.zYE=new _.Xk("settingsUpdateTextCommand");_.odf=new _.Xk("settingsUpdateOptionsCommand");ndd=new _.Xk("settingsUpdateSwitchCommand");_.Mjf=new _.Xk("settingsUpdateConnectedAppRendererCommand");var T3L=new _.Xk("updateTextInputFormFieldRendererCommand");var GSv=new _.Xk("updateToggleButtonStateCommand");var DVn=new _.Xk("updateUrlParamCommand");var W_j=new _.Xk("webSubmitFormCommand");var One=new _.Xk("channelSwitcherPageRenderer"),Piw=new _.Xk("updateChannelSwitcherPageAction");_.F9=new _.Xk("continuationItemRenderer");_.dR=new _.Xk("richItemRenderer");var xVE=new _.Xk("richSectionRenderer");_.Akd=new _.Xk("richShelfRenderer");_.vd1=new _.Xk("metadataBadgeRenderer");_.IJC=new _.Xk("multiPageMenuNotificationSectionRenderer");_.Hnx=new _.Xk("playlistLoopButtonStateRenderer");var mVr=new _.Xk("claimLegacyYoutubeChannelEndpoint");var $Vd=new _.Xk("getNotificationMenuEndpoint");var bnO=new _.Xk("getSearchInVideoCommand");_.ykx=new _.Xk("getTranscriptEndpoint");_.ko=new _.Xk("signalServiceEndpoint");var Ci1=new _.Xk("verifyAgeEndpoint");var bz3=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(bz3,_.le);bz3.prototype.getPath=function(){return _.xB(this,1)};
bz3.prototype.getValue=function(){return _.xB(this,2)};var dVr=[0,_.ci,-1];var Vje=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Vje,_.le);var $fo=_.w$(Vje,[0,_.t$,dVr]);var UVj=new _.Xk("dismissalEndpoint");var S5O=new _.Xk("elementsCommand");_.Uk=new _.Xk("innertubeCommand");var hYf=new _.Xk("multipleInlinePlaybackCommand");var W3y=new _.Xk("loggingDirectives");var K_O=new _.Xk("acknowledgeChannelTouStrikeCommand");var B3J=function(){$H.apply(this,arguments)};
_.M(B3J,$H);B3J.prototype.getAssociations=function(){return[]};
B3J.prototype.getTypeName=function(){return"booleanEntity"};var L_n=function(){$H.apply(this,arguments)};
_.M(L_n,$H);L_n.prototype.getAssociations=function(){return[]};
L_n.prototype.getTypeName=function(){return"stringEntity"};var Fp=new _.Xk("entityBatchUpdate");_.fJC=new _.Xk("entityUpdateCommand");var aJv=function(){$H.apply(this,arguments)};
_.M(aJv,$H);aJv.prototype.getAssociations=function(){var F=[];this.delegate.alternateChannel&&F.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&F.push.apply(F,_.mZ(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&F.push(this.delegate.oneofChannelEntity);return[].concat(_.mZ(new Set(F)))};
aJv.prototype.getTypeName=function(){return"fakeChannel"};var jaw=function(){$H.apply(this,arguments)};
_.M(jaw,$H);jaw.prototype.getAssociations=function(){var F=[];this.delegate.entryCollection&&F.push(this.delegate.entryCollection);return[].concat(_.mZ(new Set(F)))};
jaw.prototype.getTypeName=function(){return"fakePlaylist"};
var ckz=function(){$H.apply(this,arguments)};
_.M(ckz,$H);ckz.prototype.getAssociations=function(){var F=[];this.delegate.parentPlaylist&&F.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var q=_.X(this.delegate.entries),t=q.next();!t.done;t=q.next())F.push.apply(F,_.mZ((new FEf(t.value)).getAssociations()));return[].concat(_.mZ(new Set(F)))};
ckz.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var FEf=function(){ml.apply(this,arguments)};
_.M(FEf,ml);FEf.prototype.getAssociations=function(){var F=[];this.delegate.video&&F.push(this.delegate.video);return[].concat(_.mZ(new Set(F)))};var qYr=function(){$H.apply(this,arguments)};
_.M(qYr,$H);qYr.prototype.getAssociations=function(){var F=[];this.delegate.descriptionEntity&&F.push(this.delegate.descriptionEntity);this.delegate.creators&&F.push.apply(F,_.mZ(this.delegate.creators));this.delegate.theBiggestFan&&F.push(this.delegate.theBiggestFan);return[].concat(_.mZ(new Set(F)))};
qYr.prototype.getTypeName=function(){return"fakeVideo"};
var thd=function(){$H.apply(this,arguments)};
_.M(thd,$H);thd.prototype.getAssociations=function(){return[]};
thd.prototype.getTypeName=function(){return"fakeVideoDescription"};var ukL=new _.Xk("fantasyRosterViewModel");var Jd1=new _.Xk("addFollowUpSurveyCommand");var sOd=new _.Xk("getSurveyCommand");var gce=new _.Xk("ratingSurveyOptionRenderer");_.PO=new _.Xk("feedbackEndpoint");var ld1=new _.Xk("reportHistoryTableCellRenderer"),XbL=new _.Xk("reportHistoryTableTextCellRenderer"),YYx=new _.Xk("reportHistoryTableReasonCellRenderer");_.pbd=new _.Xk("flagEndpoint");var QOJ=new _.Xk("getFlowCommand");var e3x=new _.Xk("submitFormWithValidationFlowCommand");var Zgd=function(){$H.apply(this,arguments)};
_.M(Zgd,$H);Zgd.prototype.getAssociations=function(){return[]};
Zgd.prototype.getTypeName=function(){return"flowStateEntity"};var R31=new _.Xk("flowFormState");var rdx=new _.Xk("gameCardRenderer");var Ngv=new _.Xk("accountLinkingStateChangedCommand");var wbr=function(){$H.apply(this,arguments)};
_.M(wbr,$H);wbr.prototype.getAssociations=function(){return[]};
wbr.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var ige=new _.Xk("changeMiniAppPlayStateCommand");var kUE=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(kUE,_.le);var V5=[1,2,3];var Ecd=[0,V5,FAM,_.qt,B6q];var z3e=_.w$(kUE,Ecd),ocC=_.ES(Ecd);var ncz=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ncz,_.le);var Mhj=[0,_.K4,_.ci];var TgE=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(TgE,_.le);var GUw=[0,_.ci,_.K4,-1];var Uq=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Uq,_.le);var Dgj=_.ES([0,1,Mhj,_.J$,GUw]);var WEn=new _.Xk("miniAppScoreChallengeViewModel");var OgO=new _.Xk("miniGameCardViewModel");var Pl1=new _.Xk("teaserCardViewModel");var xgf=function(){$H.apply(this,arguments)};
_.M(xgf,$H);xgf.prototype.getAssociations=function(){return[]};
xgf.prototype.getTypeName=function(){return"logoEntity"};_.AdC=new _.Xk("feedbackItemRenderer");var vcr=function(){$H.apply(this,arguments)};
_.M(vcr,$H);vcr.prototype.getAssociations=function(){return[]};
vcr.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.IdO=new _.Xk("playerInterstitialRenderer");var Hgf=new _.Xk("getKidsBlocklistPickerCommand");_.mgL=new _.Xk("updateKidsBlacklistEndpoint");_.Cw=new _.Xk("likeEndpoint");var $gj,bgn,yd1;$gj=new _.Xk("addChatItemAction");bgn=new _.Xk("removeChatItemAction");yd1=new _.Xk("markChatItemAsDeletedAction");_.Clw=new _.Xk("setLiveChatCollapsedStateAction");var dgv=function(){$H.apply(this,arguments)};
_.M(dgv,$H);dgv.prototype.getAssociations=function(){return[]};
dgv.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var VhC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(VhC,_.le);var UgO=[0,_.t$,[0,[1,2],_.qt,_.uX,[0,_.Fh,1,_.Fh]]];var SYv=[0,_.ci,-1];var h3z=[0,[1],_.qt];var SG=[0,[1,2],_.qt,_.uX,[0,_.J$]];var h1=[0,_.ci];var KEL=[0,[0,_.aC,_.f4,[0,_.Fh,_.sN,_.Fh]],1,[0,_.aC]];var Bgx=[0,Bi];var LEx=[0,Bi];var fd1=[0,LEx,Bgx];var adw=[0,_.t$,[0,[1,2],_.qt,-1],_.aC];var jOE=[0,[2],1,_.uX,[0,_.Fh,-1,adw]];var cdJ=[0,[1],_.uX,[0,_.Fh,_.ci,_.sN,1,adw]];var FYj=[0,_.f4,-1,KPM,_.J$];var quz=[0,[0,ha,-3],-4];var Ku=[0,_.aC,-3,_.ci,_.aC,_.Xo,_.aC,UgO,_.aC,-1];var BX=[0,_.t$,[0,[1,2],_.qt,-1],_.aC,_.ci];var tZd=[0,[3],SG,[0,[2,3,4],lUf,_.qt,-2],_.uX,[0,_.ci],_.K4];var uHd=[0,[3,5],_.ci,L4,_.uX,[0,1,_.K4,_.J$],_.J$,_.uX,[0,_.J$,_.K4]];var JMO=[0,2,L4,_.ci,-1];var szr=[0,jx$];var gZx=[0,[3,4],2,LPy,_.qt,_.ci];var lCC=[0,_.J$,-2,1,_.ci];var XNE=[0,_.ci,-1,_.J$];var YuL=[0,h1,function(){return Lu},
h1,_.ci],pNe=[0,_.J$,h1,SG,function(){return Lu},
_.ci],Lu=[-159,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158],h1,L4,[0,_.aC,1,_.aC,1,_.aC,1,_.J$,-1,h1],[0,1,_.aC,2,_.aC,_.J$,_.aC],1,L4,-1,_.ci,L4,2,ha,[0,ha,L4],_.ci,1,KEL,1,SG,_.Xo,1,[0,[0,_.t$,[0,_.ci,_.aC,_.J$]]],[0,_.aC,[0,_.K4,[0,_.sN]],_.K4,1,[0,fao,-1]],_.ci,[0,1,_.ci],76,_.uX,[0,SG,BX,KEL,1,[0,_.t$,BX]],1,_.uX,[0,SG,_.ci,_.aC],_.uX,[0,
SG,h3z],_.uX,[0,SG,h3z,L4],_.uX,[0,SG,h3z],_.uX,[0,SG,_.t$,h1,SG,qUu],_.uX,[0,SG,h1,_.ci],_.uX,[0,SG,_.aC,Ku,-1,_.aC],4,_.uX,[0,SG,_.aC,L4,Ku,_.aC],_.uX,[0,[4,9],SG,_.J$,L4,_.qt,BX,1,KEL,_.ci,_.qt,lCC],_.uX,[0,SG,h1,SG,_.J$,_.ci],_.uX,[0,_.aC,SG,Ku,_.aC,_.ci],_.uX,[0,SG,h1,SG,_.J$,_.ci],1,_.uX,[0,SG,_.J$,_.ci,Ku],_.uX,[0,SG,_.J$,[0,_.ci,L4],_.ci,L4,_.ci,sqW,-2,3,XNE,_.t$,XNE,XNE,lCC],_.uX,[0,SG,_.J$,cdJ,_.t$,[0,LEx,jOE],h1,_.t$,fd1,_.ci,1,_.J$,FYj,quz,hAA,-1],_.uX,[0,SG,[0,_.sN,-1,cdJ,_.t$,[0,LEx,
jOE,Bgx],[0,_.YD],1,_.Fh],h1,_.ci],_.uX,[0,SG,BX,_.ci,[0,_.f4]],_.uX,function(){return pNe},
_.uX,[0,SG,L4,_.ci,-1,_.aC],_.uX,[0,[6,7],SG,_.t$,JMO,_.J$,BX,1,_.uX,gZx,_.uX,szr],_.uX,[0,_.t$,JMO,_.J$,_.aC],_.uX,[0,_.ci,JOv,-1],_.uX,[0,h1,_.t$,fd1,_.ci],_.uX,[0,SG,h1,_.ci],_.uX,[0,sqW,_.ci],_.uX,[0,SYv],_.uX,[0,SYv],_.uX,[0,BX],_.uX,[0,h1,BX],_.uX,function(){return YuL},
_.uX,[0,h1,_.ci],_.uX,[0,h1,_.ci],1,_.uX,[0,_.aC,SG,Ku,_.aC,Ku],_.uX,[0,_.YD],1,_.uX,[0],1,_.uX,[0,h1,_.J$,SG,_.J$],_.uX,[0,[1,2],_.uX,gZx,_.uX,szr,L4],_.uX,[0,_.YD,BX,uHd,_.ci,L4],_.uX,[0,uHd,_.ci,L4],_.uX,[0,FYj,BX,_.aC,quz],_.uX,tZd,_.uX,[0],_.uX,[0,_.ci,-1,_.K4],_.uX,[0,h1,_.ci],_.uX,[0,tZd,_.K4,_.ci],_.uX,[0,SG,Ku,_.aC],_.uX,[0,SG,Ku,_.aC],_.uX,[0,FYj,quz,BX,_.Xo,_.aC,hAA,-1]];var Qzw=[0,_.t$,Lu];var enE=_.w$(VhC,[0,1,_.K4,[0,[18,22,24],Qzw,3,[0,Qzw],1,_.K4,[0,_.t$,[0,L4,ha],L4],1,Lu,-1,[0,_.js,-2,_.Xo,_.js,-1,_.Xo,_.js,UgO,_.js,-2],UIy,[!0,_.ci,[0,h3z,2,_.ci,L4,_.aC,2,_.ci,sqW]],[0,[1,2,3],[5,6],_.uX,[0,_.Fh],_.uX,[0,_.Fh,-1],_.uX,[0,_.Fh],1,_.uX,SYv,_.uX,[0,_.ci]],[0,Lu,-1],_.YD,Lu,_.uX,Lu,[0,Qzw],_.K4,Lu,_.uX,Lu,_.ci,_.uX,Lu]]);var ZVE=new _.Xk("liveChatEndpoint");var RnE=new _.Xk("liveChatItemContextMenuEndpoint");var rMw=new _.Xk("liveChatReplayEndpoint");_.N5j=new _.Xk("emojiPickerRenderer");var wNO=new _.Xk("liveChatAuthorBadgeViewModel");var iVO=new _.Xk("deleteLiveChatMessageCommand");var ksn=new _.Xk("liveChatActionEndpoint");var EZz=new _.Xk("createLiveChatPollEndpoint");var zne=new _.Xk("manageLiveChatUserEndpoint");var oZL=new _.Xk("moderateLiveChatEndpoint");_.nZL=new _.Xk("sendLiveChatMessageEndpoint");var MZw=new _.Xk("sendLiveChatVoteEndpoint");var T5z=new _.Xk("clearLocationCommand");var GsC=new _.Xk("resolveLocationCommand");var DKz=new _.Xk("interactionLoggingCommandMetadata");var WYL=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(WYL,_.le);var OVJ=function(F,q){return _.RX(F,1,q)};var PmC=[0,_.aC];var xKw=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(xKw,_.le);var AMJ=function(F,q){return oJ(F,1,WYL,q)};xKw.prototype.JSC$12153_serializeBinary=yQv([0,_.t$,PmC]);var LEf={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 vZd={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"},
ICL={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 BfP={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND"};_.r_C=new _.Xk("logFlowLoggingEventCommand");_.W9=new _.Xk("loggingContext");var HVJ=new _.Xk("audioTrackSelectActionCommand");var mKd=new _.Xk("captionLanguageSelectActionCommand");var $KO=new _.Xk("showAudioTrackPickerActionCommand");var bVn=new _.Xk("showCaptionLanguageSelectActionCommand");var yMr=new _.Xk("dismissDialogEndpoint");var Cmn=new _.Xk("dismissPlayerOverlayCommand");var dK1=new _.Xk("hideItemSectionVideosByIdCommand");var VZE=new _.Xk("showMiniplayerCommand");var UKJ=function(){$H.apply(this,arguments)};
_.M(UKJ,$H);UKJ.prototype.getAssociations=function(){return[]};
UKJ.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var SuJ=function(){$H.apply(this,arguments)};
_.M(SuJ,$H);SuJ.prototype.getAssociations=function(){return[]};
SuJ.prototype.getTypeName=function(){return"downloadStatusEntity"};var hnC=function(){$H.apply(this,arguments)};
_.M(hnC,$H);hnC.prototype.getAssociations=function(){return[]};
hnC.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var KYJ=function(){$H.apply(this,arguments)};
_.M(KYJ,$H);KYJ.prototype.getAssociations=function(){var F=[];this.delegate.downloadsList&&F.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&F.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&F.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&F.push(this.delegate.refresh);return[].concat(_.mZ(new Set(F)))};
KYJ.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var B5r=function(){$H.apply(this,arguments)};
_.M(B5r,$H);B5r.prototype.getAssociations=function(){var F=[];this.delegate.refresh&&F.push(this.delegate.refresh);if(this.delegate.downloads)for(var q=_.X(this.delegate.downloads),t=q.next();!t.done;t=q.next())F.push.apply(F,_.mZ((new LYO(t.value)).getAssociations()));return[].concat(_.mZ(new Set(F)))};
B5r.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var LYO=function(){ml.apply(this,arguments)};
_.M(LYO,ml);LYO.prototype.getAssociations=function(){var F=[];this.delegate.video&&F.push(this.delegate.video);this.delegate.playlist&&F.push(this.delegate.playlist);this.delegate.videoItem&&F.push(this.delegate.videoItem);this.delegate.playlistItem&&F.push(this.delegate.playlistItem);return[].concat(_.mZ(new Set(F)))};var fCv=function(){$H.apply(this,arguments)};
_.M(fCv,$H);fCv.prototype.getAssociations=function(){var F=[];this.delegate.localImageEntities&&F.push.apply(F,_.mZ(this.delegate.localImageEntities));return[].concat(_.mZ(new Set(F)))};
fCv.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var aCz=function(){$H.apply(this,arguments)};
_.M(aCz,$H);aCz.prototype.getAssociations=function(){var F=[];this.delegate.playbackData&&F.push(this.delegate.playbackData);this.delegate.localImageEntities&&F.push.apply(F,_.mZ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&F.push(this.delegate.videoDownloadContextEntity);return[].concat(_.mZ(new Set(F)))};
aCz.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var jzf=function(){$H.apply(this,arguments)};
_.M(jzf,$H);jzf.prototype.getAssociations=function(){return[]};
jzf.prototype.getTypeName=function(){return"offlineabilityEntity"};var cMw=function(){$H.apply(this,arguments)};
_.M(cMw,$H);cMw.prototype.getAssociations=function(){var F=[];this.delegate.fakeChildren&&F.push.apply(F,_.mZ(this.delegate.fakeChildren));return[].concat(_.mZ(new Set(F)))};
cMw.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var FyL=function(){$H.apply(this,arguments)};
_.M(FyL,$H);FyL.prototype.getAssociations=function(){var F=[];this.delegate.video&&F.push(this.delegate.video);this.delegate.playbackData&&F.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&F.push(this.delegate.offlineVideoPolicy);return[].concat(_.mZ(new Set(F)))};
FyL.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var qwe=function(){$H.apply(this,arguments)};
_.M(qwe,$H);qwe.prototype.getAssociations=function(){return[]};
qwe.prototype.getTypeName=function(){return"continuationTokenEntity"};var tqe=function(){$H.apply(this,arguments)};
_.M(tqe,$H);tqe.prototype.getAssociations=function(){var F=[];this.delegate.channelOwner&&F.push(this.delegate.channelOwner);this.delegate.videos&&F.push.apply(F,_.mZ(this.delegate.videos));this.delegate.collaboratorChannels&&F.push.apply(F,_.mZ(this.delegate.collaboratorChannels));this.delegate.downloadState&&F.push(this.delegate.downloadState);this.delegate.refresh&&F.push(this.delegate.refresh);return[].concat(_.mZ(new Set(F)))};
tqe.prototype.getTypeName=function(){return"mainPlaylistEntity"};var uPx=function(){$H.apply(this,arguments)};
_.M(uPx,$H);uPx.prototype.getAssociations=function(){var F=[];this.delegate.video&&F.push(this.delegate.video);this.delegate.channelContributor&&F.push(this.delegate.channelContributor);return[].concat(_.mZ(new Set(F)))};
uPx.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var J3E=function(){ml.apply(this,arguments)};
_.M(J3E,ml);J3E.prototype.getAssociations=function(){var F=[];this.delegate.recommendedVideoMetadata&&F.push.apply(F,_.mZ((new s$O(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.mZ(new Set(F)))};
var s$O=function(){ml.apply(this,arguments)};
_.M(s$O,ml);s$O.prototype.getAssociations=function(){var F=[];this.delegate.localImageEntities&&F.push.apply(F,_.mZ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&F.push(this.delegate.videoDownloadContextEntity);return[].concat(_.mZ(new Set(F)))};var gxe=function(){ml.apply(this,arguments)};
_.M(gxe,ml);gxe.prototype.getAssociations=function(){var F=[];this.delegate.playbackPosition&&F.push(this.delegate.playbackPosition);return[].concat(_.mZ(new Set(F)))};var lXx=function(){$H.apply(this,arguments)};
_.M(lXx,$H);lXx.prototype.getAssociations=function(){var F=[];this.delegate.owner&&F.push(this.delegate.owner);this.delegate.downloadState&&F.push(this.delegate.downloadState);this.delegate.userState&&F.push.apply(F,_.mZ((new gxe(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&F.push.apply(F,_.mZ((new J3E(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.mZ(new Set(F)))};
lXx.prototype.getTypeName=function(){return"mainVideoEntity"};var X6d=function(){$H.apply(this,arguments)};
_.M(X6d,$H);X6d.prototype.getAssociations=function(){var F=[];this.delegate.userChannelDetails&&F.push(this.delegate.userChannelDetails);return[].concat(_.mZ(new Set(F)))};
X6d.prototype.getTypeName=function(){return"ytMainChannelEntity"};var Ywn=function(){$H.apply(this,arguments)};
_.M(Ywn,$H);Ywn.prototype.getAssociations=function(){var F=[];this.delegate.channelOwner&&F.push(this.delegate.channelOwner);this.delegate.playbackPosition&&F.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&F.push.apply(F,_.mZ(this.delegate.localImageEntities));this.delegate.downloadStatus&&F.push(this.delegate.downloadStatus);return[].concat(_.mZ(new Set(F)))};
Ywn.prototype.getTypeName=function(){return"ytMainVideoEntity"};var dC_=new _.Xk("downloadsPageSmartDownloadsOptInBannerParams");var hMA=new _.Xk("downloadsPageUpsellBannerParams");var p6d=function(){$H.apply(this,arguments)};
_.M(p6d,$H);p6d.prototype.getAssociations=function(){return[]};
p6d.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var Q$O=function(){$H.apply(this,arguments)};
_.M(Q$O,$H);Q$O.prototype.getAssociations=function(){return[]};
Q$O.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var eQz=function(){$H.apply(this,arguments)};
_.M(eQz,$H);eQz.prototype.getAssociations=function(){return[]};
eQz.prototype.getTypeName=function(){return"macroMarkerEntity"};var ZiJ=function(){$H.apply(this,arguments)};
_.M(ZiJ,$H);ZiJ.prototype.getAssociations=function(){return[]};
ZiJ.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var RQC=function(){$H.apply(this,arguments)};
_.M(RQC,$H);RQC.prototype.getAssociations=function(){return[]};
RQC.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var r3f=function(){$H.apply(this,arguments)};
_.M(r3f,$H);r3f.prototype.getAssociations=function(){return[]};
r3f.prototype.getTypeName=function(){return"playerStateEntity"};var Nzx=function(){$H.apply(this,arguments)};
_.M(Nzx,$H);Nzx.prototype.getAssociations=function(){return[]};
Nzx.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var w6e=function(){$H.apply(this,arguments)};
_.M(w6e,$H);w6e.prototype.getAssociations=function(){return[]};
w6e.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var iiJ=function(){$H.apply(this,arguments)};
_.M(iiJ,$H);iiJ.prototype.getAssociations=function(){return[]};
iiJ.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.fu=new _.Xk("dislikeButtonViewModel");_.at=new _.Xk("likeButtonViewModel");var keJ=new _.Xk("videoSummaryContentViewModel");var ExE=new _.Xk("videoSummaryParagraphViewModel");var zQr=new _.Xk("changeTimelyActionVisibilityCommand");var oxL=new _.Xk("hideEngagementPanelEndpoint");var nxn=new _.Xk("refreshPanelEndpoint");var Mqd=new _.Xk("scrollToSectionEndpoint");var Tzx=new _.Xk("seekToVideoTimestampCommand");_.OL=new _.Xk("showEngagementPanelEndpoint");var GeO=new _.Xk("showTransientPlayerScrimOverlayCommand");var Dkf=new _.Xk("toggleEngagementPanelCommand");_.Wyz=new _.Xk("createBroadcastCommand");var OiJ=new _.Xk("metadataUpdateCommand");var PSO=function(){$H.apply(this,arguments)};
_.M(PSO,$H);PSO.prototype.getAssociations=function(){return[]};
PSO.prototype.getTypeName=function(){return"featuredProductsEntity"};var xke=function(){$H.apply(this,arguments)};
_.M(xke,$H);xke.prototype.getAssociations=function(){return[]};
xke.prototype.getTypeName=function(){return"pinnedProductEntity"};var A3z=function(){$H.apply(this,arguments)};
_.M(A3z,$H);A3z.prototype.getAssociations=function(){return[]};
A3z.prototype.getTypeName=function(){return"trendingOfferEntity"};_.vxJ=new _.Xk("merchandiseShelfRenderer");var IXw=new _.Xk("gridMovieRenderer");_.Hiv=new _.Xk("movieRenderer");var mkL=function(){$H.apply(this,arguments)};
_.M(mkL,$H);mkL.prototype.getAssociations=function(){var F=[];this.delegate.trackDownloadMetadatas&&F.push.apply(F,_.mZ(this.delegate.trackDownloadMetadatas));return[].concat(_.mZ(new Set(F)))};
mkL.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var $k1=function(){$H.apply(this,arguments)};
_.M($k1,$H);
$k1.prototype.getAssociations=function(){var F=[];this.delegate.downloadedTracks&&F.push.apply(F,_.mZ(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&F.push.apply(F,_.mZ(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&F.push.apply(F,_.mZ(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&F.push.apply(F,_.mZ(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&F.push.apply(F,_.mZ(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
F.push.apply(F,_.mZ(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&F.push.apply(F,_.mZ(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&F.push.apply(F,_.mZ(this.delegate.metadataOnlyTracks));return[].concat(_.mZ(new Set(F)))};
$k1.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var biC=function(){$H.apply(this,arguments)};
_.M(biC,$H);biC.prototype.getAssociations=function(){var F=[];this.delegate.trackDownloadMetadatas&&F.push.apply(F,_.mZ(this.delegate.trackDownloadMetadatas));return[].concat(_.mZ(new Set(F)))};
biC.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var y3x=function(){$H.apply(this,arguments)};
_.M(y3x,$H);y3x.prototype.getAssociations=function(){var F=[];this.delegate.playbackData&&F.push(this.delegate.playbackData);this.delegate.localImageEntities&&F.push.apply(F,_.mZ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&F.push(this.delegate.videoDownloadContextEntity);return[].concat(_.mZ(new Set(F)))};
y3x.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var CSz=function(){$H.apply(this,arguments)};
_.M(CSz,$H);
CSz.prototype.getAssociations=function(){var F=[];this.delegate.musicLibraryStatusEntity&&F.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&F.push.apply(F,_.mZ(this.delegate.primaryArtists));this.delegate.details&&F.push(this.delegate.details);this.delegate.userDetails&&F.push(this.delegate.userDetails);this.delegate.tracks&&F.push.apply(F,_.mZ(this.delegate.tracks));this.delegate.share&&F.push(this.delegate.share);this.delegate.downloadMetadata&&F.push(this.delegate.downloadMetadata);this.delegate.refresh&&
F.push(this.delegate.refresh);return[].concat(_.mZ(new Set(F)))};
CSz.prototype.getTypeName=function(){return"musicAlbumRelease"};
var dke=function(){$H.apply(this,arguments)};
_.M(dke,$H);dke.prototype.getAssociations=function(){var F=[];this.delegate.albumRelease&&F.push(this.delegate.albumRelease);this.delegate.tracks&&F.push.apply(F,_.mZ(this.delegate.tracks));return[].concat(_.mZ(new Set(F)))};
dke.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var Vqd=function(){$H.apply(this,arguments)};
_.M(Vqd,$H);Vqd.prototype.getAssociations=function(){var F=[];this.delegate.albumRelease&&F.push(this.delegate.albumRelease);return[].concat(_.mZ(new Set(F)))};
Vqd.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var Ukx=function(){$H.apply(this,arguments)};
_.M(Ukx,$H);Ukx.prototype.getAssociations=function(){var F=[];this.delegate.details&&F.push(this.delegate.details);this.delegate.userDetails&&F.push(this.delegate.userDetails);return[].concat(_.mZ(new Set(F)))};
Ukx.prototype.getTypeName=function(){return"musicArtist"};
var SwL=function(){$H.apply(this,arguments)};
_.M(SwL,$H);SwL.prototype.getAssociations=function(){var F=[];this.delegate.parentArtist&&F.push(this.delegate.parentArtist);return[].concat(_.mZ(new Set(F)))};
SwL.prototype.getTypeName=function(){return"musicArtistDetail"};
var hQJ=function(){$H.apply(this,arguments)};
_.M(hQJ,$H);hQJ.prototype.getAssociations=function(){var F=[];this.delegate.parentArtist&&F.push(this.delegate.parentArtist);return[].concat(_.mZ(new Set(F)))};
hQJ.prototype.getTypeName=function(){return"musicArtistUserDetail"};var Kyx=function(){$H.apply(this,arguments)};
_.M(Kyx,$H);Kyx.prototype.getAssociations=function(){return[]};
Kyx.prototype.getTypeName=function(){return"musicLibraryEdit"};var BzE=function(){$H.apply(this,arguments)};
_.M(BzE,$H);BzE.prototype.getAssociations=function(){return[]};
BzE.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var LyE=function(){$H.apply(this,arguments)};
_.M(LyE,$H);
LyE.prototype.getAssociations=function(){var F=[];this.delegate.tracks&&F.push.apply(F,_.mZ(this.delegate.tracks));this.delegate.refresh&&F.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&F.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&F.push(this.delegate.details);this.delegate.downloadMetadata&&F.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&F.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&F.push(this.delegate.userDetails);this.delegate.entryCollection&&
F.push(this.delegate.entryCollection);this.delegate.share&&F.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&F.push.apply(F,_.mZ((new fXO(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.mZ(new Set(F)))};
LyE.prototype.getTypeName=function(){return"musicPlaylist"};
var fXO=function(){ml.apply(this,arguments)};
_.M(fXO,ml);fXO.prototype.getAssociations=function(){var F=[];this.delegate.creatorEntity&&F.push(this.delegate.creatorEntity);return[].concat(_.mZ(new Set(F)))};var aXj=function(){$H.apply(this,arguments)};
_.M(aXj,$H);aXj.prototype.getAssociations=function(){return[]};
aXj.prototype.getTypeName=function(){return"musicShare"};var j$J=function(){$H.apply(this,arguments)};
_.M(j$J,$H);
j$J.prototype.getAssociations=function(){var F=[];this.delegate.musicLibraryStatusEntity&&F.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&F.push.apply(F,_.mZ(this.delegate.artists));this.delegate.audioModeVersion&&F.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&F.push(this.delegate.videoModeVersion);this.delegate.userDetails&&F.push(this.delegate.userDetails);this.delegate.details&&F.push(this.delegate.details);this.delegate.albumRelease&&F.push(this.delegate.albumRelease);this.delegate.share&&
F.push(this.delegate.share);this.delegate.libraryEdit&&F.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&F.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&F.push(this.delegate.playbackPosition);this.delegate.lyrics&&F.push(this.delegate.lyrics);return[].concat(_.mZ(new Set(F)))};
j$J.prototype.getTypeName=function(){return"musicTrack"};
var c3L=function(){$H.apply(this,arguments)};
_.M(c3L,$H);c3L.prototype.getAssociations=function(){var F=[];this.delegate.parentTrack&&F.push(this.delegate.parentTrack);return[].concat(_.mZ(new Set(F)))};
c3L.prototype.getTypeName=function(){return"musicTrackDetail"};
var FlJ=function(){$H.apply(this,arguments)};
_.M(FlJ,$H);FlJ.prototype.getAssociations=function(){var F=[];this.delegate.parentTrack&&F.push(this.delegate.parentTrack);return[].concat(_.mZ(new Set(F)))};
FlJ.prototype.getTypeName=function(){return"musicTrackUserDetail"};var a4=new _.Xk("musicResponsiveListItemRenderer");var ayy=new _.Xk("addToPlaylistEndpoint");var qqf=new _.Xk("captionPickerEndpoint");var tGe=new _.Xk("suggestStats");var uSe=new _.Xk("backstageImageUploadEndpoint");var J1f=new _.Xk("createBackstagePostDialogEndpoint");_.stJ=new _.Xk("createCommentReplyDialogEndpoint");_.gHe=new _.Xk("updateCommentDialogEndpoint");_.l1O=new _.Xk("updateCommentReplyDialogEndpoint");var XXL=new _.Xk("menuEndpoint");var dOC=new _.Xk("modalEndpoint");var Yqz=new _.Xk("playlistEditorEndpoint");var pXx=new _.Xk("copyTextEndpoint");var Qt1,eOx;Qt1=new _.Xk("shareEndpoint");eOx=new _.Xk("shareEntityEndpoint");_.Zue=new _.Xk("shareEntityServiceEndpoint");_.$_o=new _.Xk("userFeedbackEndpoint");_.Fw=new _.Xk("watchEndpoint");var MeW=new _.Xk("watchPlaylistEndpoint");var ROw=new _.Xk("addUpcomingEventReminderEndpoint");_.jG=new _.Xk("getCommentsFromInboxCommand");var r1x=new _.Xk("notificationOptOutEndpoint");var NRw=new _.Xk("recordNotificationInteractionsEndpoint");var wXd=new _.Xk("removeUpcomingEventReminderEndpoint");var LGv=new _.Xk("getDownloadActionCommand");_.iu1=new _.Xk("offlineOrchestrationActionCommand");var kYz=function(){$H.apply(this,arguments)};
_.M(kYz,$H);kYz.prototype.getAssociations=function(){return[]};
kYz.prototype.getTypeName=function(){return"captionTrack"};var EHL=function(){$H.apply(this,arguments)};
_.M(EHL,$H);EHL.prototype.getAssociations=function(){return[]};
EHL.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var zOv=function(){$H.apply(this,arguments)};
_.M(zOv,$H);zOv.prototype.getAssociations=function(){return[]};
zOv.prototype.getTypeName=function(){return"offlineVideoPolicy"};var oHf=function(){$H.apply(this,arguments)};
_.M(oHf,$H);oHf.prototype.getAssociations=function(){return[]};
oHf.prototype.getTypeName=function(){return"offlineVideoStreams"};var nHJ=function(){$H.apply(this,arguments)};
_.M(nHJ,$H);nHJ.prototype.getAssociations=function(){var F=[];this.delegate.transfer&&F.push(this.delegate.transfer);this.delegate.adsPlaybackData&&F.push.apply(F,_.mZ(this.delegate.adsPlaybackData));this.delegate.drmLicense&&F.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&F.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&F.push(this.delegate.videoDownloadContextEntity);return[].concat(_.mZ(new Set(F)))};
nHJ.prototype.getTypeName=function(){return"playbackData"};var MGr=function(){$H.apply(this,arguments)};
_.M(MGr,$H);MGr.prototype.getAssociations=function(){return[]};
MGr.prototype.getTypeName=function(){return"refresh"};var TRe=function(){$H.apply(this,arguments)};
_.M(TRe,$H);TRe.prototype.getAssociations=function(){var F=[];this.delegate.offlineVideoStreams&&F.push.apply(F,_.mZ(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&F.push.apply(F,_.mZ(this.delegate.captionTrack));return[].concat(_.mZ(new Set(F)))};
TRe.prototype.getTypeName=function(){return"transfer"};var GYw=function(){$H.apply(this,arguments)};
_.M(GYw,$H);GYw.prototype.getAssociations=function(){return[]};
GYw.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var DXO=new _.Xk("showMoreDrawerCommand");var Wle=new _.Xk("updateEngagementPanelContentCommand");var Oux=new _.Xk("getPdgBuyFlowCommand");var P4d=new _.Xk("liveChatPurchaseMessageEndpoint");var xXj=new _.Xk("openSuperStickerBuyFlowCommand");var A1w=new _.Xk("updatePdgFeatureEnablementCommand");var vH1=function(){$H.apply(this,arguments)};
_.M(vH1,$H);vH1.prototype.getAssociations=function(){return[]};
vH1.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var I1E=function(){$H.apply(this,arguments)};
_.M(I1E,$H);I1E.prototype.getAssociations=function(){return[]};
I1E.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.Hu1=new _.Xk("pdgCommentChipRenderer");_.mX1=new _.Xk("permissionRoleBottomBarRenderer");_.$Xw=new _.Xk("updatePermissionRoleCommand");var buz=new _.Xk("prefetchWatchCommand");var y1L=new _.Xk("updatePlayerErrorMessageCommand");var dly=new _.Xk("toggleCaptionsVisibilityCommand");_.C4v=new _.Xk("quickActionsViewModel");var dXd=new _.Xk("playerResponse");var VGL=new _.Xk("playlistRenderer");_.UXf=new _.Xk("playlistVideoListRenderer");_.cX=new _.Xk("playlistEditEndpoint");var Sqd=new _.Xk("createImagePollCommand");var hOe=new _.Xk("createQuizCommand");var KlE=new _.Xk("quizRenderer");var BRn=new _.Xk("uploadedVideoRenderer");var LlO=new _.Xk("decorateMessageEndpoint");var f1r=new _.Xk("lpOfferCardOptionViewModel");var a1C=new _.Xk("sfvAudioItemPlaybackCommand");var jtn=function(){$H.apply(this,arguments)};
_.M(jtn,$H);jtn.prototype.getAssociations=function(){return[]};
jtn.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.FZ=new _.Xk("reelNonVideoContentEndpoint");_.Px=new _.Xk("reelWatchEndpoint");_.qC=new _.Xk("reelItemRenderer");_.c1j=new _.Xk("reelMetapanelViewModel");_.FLC=new _.Xk("reelNonVideoContentRenderer");_.qXr=new _.Xk("reelPlayerOverlayRenderer");var tR1=new _.Xk("shortsLockupViewModel");var uZ1=new _.Xk("sponsorButtonViewModel");var Jhx=new _.Xk("reelItemWatchResponse");var slO=new _.Xk("textBadgeRenderer");_.th=new _.Xk("buttonRenderer");_.uv=new _.Xk("toggleButtonRenderer");var fbM=new _.Xk("switchButtonViewModel");_.gAn=new _.Xk("confirmDialogRenderer");var l2z;l2z=new _.Xk("menuRenderer");_.XQJ=new _.Xk("menuFlexibleItemRenderer");var YXd=new _.Xk("pollRenderer");_.pQz=new _.Xk("backgroundPromoRenderer");var eMx;_.Qlv=new _.Xk("chipCloudRenderer");eMx=new _.Xk("chipCloudChipRenderer");var ZCv=new _.Xk("dropdownRenderer");var RM1=new _.Xk("gridVideoRenderer");_.rhd=new _.Xk("itemSectionRenderer");_.NXL=new _.Xk("messageRenderer");var wQx=new _.Xk("sortFilterHeaderRenderer");_.Jh=new _.Xk("videoRenderer");var iCx=new _.Xk("resolveUrlCommandMetadata");var kT1=function(){$H.apply(this,arguments)};
_.M(kT1,$H);kT1.prototype.getAssociations=function(){return[]};
kT1.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.EAj=new _.Xk("getAnswerCommand");_.Dn=new _.Xk("searchEndpoint");var zMO=new _.Xk("genAiRichTextViewModel");var BAW=new _.Xk("overviewAnswerViewModel");var oAe=new _.Xk("videoOverviewViewModel");var nAJ=new _.Xk("addToPlaylistServiceEndpoint");var MRe=new _.Xk("clearSearchHistoryEndpoint");var TXd=new _.Xk("clearWatchHistoryEndpoint");var GTr=new _.Xk("webSerializedServiceEndpointExtension");_.DCL=new _.Xk("createCommentEndpoint");var WLx=new _.Xk("createCommentReplyEndpoint");var OCd=new _.Xk("performCommentActionEndpoint");var Pvd=new _.Xk("updateCommentEndpoint");var xCJ=new _.Xk("updateCommentReplyEndpoint");_.sX=new _.Xk("createPlaylistServiceEndpoint");var Ahz=new _.Xk("deletePlaylistEndpoint");var vAz=new _.Xk("deleteVideoEndpoint");var fyW=new _.Xk("getReportFormEndpoint");var I2f=new _.Xk("modifyChannelNotificationPreferenceEndpoint");var eJq;_.zl=new _.Xk("offlinePlaylistEndpoint");eJq={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 ZLf;_.EO=new _.Xk("offlineVideoEndpoint");ZLf={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 HCO=new _.Xk("pingingEndpoint");_.mCn=new _.Xk("selectActiveIdentityEndpoint");var $CE=new _.Xk("setSettingEndpoint");var c7f=new _.Xk("undoFeedbackEndpoint");var bCn=new _.Xk("unsubscribeEndpoint");_.yhE=new _.Xk("updatedMetadataEndpoint");var CvJ=function(){$H.apply(this,arguments)};
_.M(CvJ,$H);CvJ.prototype.getAssociations=function(){return[]};
CvJ.prototype.getTypeName=function(){return"settingEntity"};_.dCj=new _.Xk("updateLocalAppSettingCommand");var VRz=new _.Xk("saveImageToDeviceEndpoint");var UCe=new _.Xk("shareImageCommand");var SXv=new _.Xk("sharingProviderDataCommand");var hMn=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(hMn,_.le);var KLf=[0,_.ci,-1];hMn.prototype.JSC$12354_serializeBinary=yQv(KLf);var BXe=_.ES(KLf);var LLO=new _.Xk("userMentionSuggestionRenderer");var Fud=new _.Xk("liveChatTunnelCommand");var qbj=new _.Xk("showSponsorshipsGiftOfferDialogCommand");var t9L=new _.Xk("sponsorshipsScrollableShelfViewModel");var uVx=new _.Xk("updateUpcomingEventReminderButtonStateCommand");var JBe=new _.Xk("upcomingEventReminderButtonStateRenderer");var swn=new _.Xk("subscribeEndpoint");var g9E=new _.Xk("registerTasksCommand");var lse=new _.Xk("hideSnackbarCommand");var XPE=new _.Xk("showDialogCommand");_.Dz=new _.Xk("showSheetCommand");var YbO=new _.Xk("showSnackbarCommand");var pPz=function(){$H.apply(this,arguments)};
_.M(pPz,$H);pPz.prototype.getAssociations=function(){return[]};
pPz.prototype.getTypeName=function(){return"chipEntity"};var Qwn=function(){$H.apply(this,arguments)};
_.M(Qwn,$H);Qwn.prototype.getAssociations=function(){return[]};
Qwn.prototype.getTypeName=function(){return"dismissState"};_.d0=new _.Xk("avatarViewModel");var epf=new _.Xk("badgeViewModel");_.gX=new _.Xk("buttonViewModel");_.lv=new _.Xk("chipViewModel");var XKP=new _.Xk("collectionThumbnailViewModel");var ZAL=new _.Xk("contentPreviewImageViewModel");var RpC=new _.Xk("decoratedAvatarViewModel");_.F5o=new _.Xk("engagementBarViewModel");_.rBx=new _.Xk("imageBannerViewModel");var Nvw=new _.Xk("lockupContentMetadataRowExtension");_.wPw=new _.Xk("lockupMetadataViewModel");_.iAv=new _.Xk("lockupViewModel");var kDn=new _.Xk("avatarStackViewModel");_.E91=new _.Xk("contentMetadataViewModel");var zpE=function(){$H.apply(this,arguments)};
_.M(zpE,$H);zpE.prototype.getAssociations=function(){return[]};
zpE.prototype.getTypeName=function(){return"pageHeaderEntity"};_.o9z=new _.Xk("pageHeaderViewModel");var n9v=new _.Xk("snackbarViewModel");var M91=new _.Xk("thumbnailHoverOverlayToggleActionsViewModel");_.XZ=new _.Xk("toggleButtonViewModel");var TvJ=function(){$H.apply(this,arguments)};
_.M(TvJ,$H);TvJ.prototype.getAssociations=function(){return[]};
TvJ.prototype.getTypeName=function(){return"votingEntity"};_.qgM=new _.Xk("votingViewModel");var GD1=new _.Xk("sectionHeaderViewModel");var DHe=new _.Xk("notifyDropdownOptionSelectedCommand");var MYo=new _.Xk("listViewModel");_.xC=new _.Xk("listItemViewModel");var lIt=new _.Xk("toggleableListItemViewModel");var Wuf=new _.Xk("dialogHeaderViewModel");var OAz=function(){$H.apply(this,arguments)};
_.M(OAz,$H);OAz.prototype.getAssociations=function(){return[]};
OAz.prototype.getTypeName=function(){return"dataFreshnessEntity"};var Iu_=new _.Xk("suspenseViewModel");var PTJ=function(){$H.apply(this,arguments)};
_.M(PTJ,$H);PTJ.prototype.getAssociations=function(){return[]};
PTJ.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var xHd=function(){$H.apply(this,arguments)};
_.M(xHd,$H);xHd.prototype.getAssociations=function(){return[]};
xHd.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var AB1=function(){$H.apply(this,arguments)};
_.M(AB1,$H);AB1.prototype.getAssociations=function(){return[]};
AB1.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.v9O=new _.Xk("transcriptSubmitCaptionCorrectionCommand");var Isx=function(){$H.apply(this,arguments)};
_.M(Isx,$H);Isx.prototype.getAssociations=function(){return[]};
Isx.prototype.getTypeName=function(){return"buttonEntity"};var OvC=new _.Xk("unpluggedStringRunImage");var HAe=new _.Xk("tabViewModel");var mHw=new _.Xk("tabbedViewModel");var $He=function(){$H.apply(this,arguments)};
_.M($He,$H);$He.prototype.getAssociations=function(){return[]};
$He.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.bAj=new _.Xk("updateDescriptionAction");var yBz=new _.Xk("updateToggleButtonTextAction");_.CTv=new _.Xk("autoplaySwitchButtonRenderer");var vO;_.dHz=new _.Xk("multiMarkersPlayerBarRenderer");vO=new _.Xk("chapterRenderer");var V9E=new _.Xk("heatMarkerRenderer");var pVo=new _.Xk("heatmapRenderer");var UHd=new _.Xk("smartSkipPlayerScrimOverlayRenderer");var Sbw=new _.Xk("timedMarkerDecorationRenderer");var Cxo=new _.Xk("postWebToNativeMessageCommand");var mT=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(mT,_.le);mT.prototype.getMethodName=function(){return _.xB(this,1)};var hpr=[0,_.ci,-2];mT.prototype.JSC$12376_serializeBinary=yQv(hpr);var Kuz=_.w$(mT,hpr);var Bve=new _.Xk("whitelistEditEndpoint");var Luw=new _.Xk("clearUrlParamCommand");var fsv=new _.Xk("commerceActionCommand");_.asf=new _.Xk("getPaymentInstrumentsParamsCommand");var jwz=new _.Xk("getPaymentsClientTokenCommand");var cBn=new _.Xk("googlePaymentBillingCommand");var FeJ=new _.Xk("googlePaymentPurchaseManagerCommand");_.qnE=new _.Xk("logGtmCommand");var tDd=new _.Xk("updateCardItemOnClickCommand");_.uX1=new _.Xk("ypcPauseSubscriptionCommand");_.Jtz=new _.Xk("ypcResumeSubscriptionCommand");var sAw=function(){$H.apply(this,arguments)};
_.M(sAw,$H);sAw.prototype.getAssociations=function(){return[]};
sAw.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var gpv=function(){$H.apply(this,arguments)};
_.M(gpv,$H);gpv.prototype.getAssociations=function(){return[]};
gpv.prototype.getTypeName=function(){return"commerceCartListEntity"};var lBx=function(){$H.apply(this,arguments)};
_.M(lBx,$H);lBx.prototype.getAssociations=function(){return[]};
lBx.prototype.getTypeName=function(){return"iconBadgeEntity"};var X8O=function(){$H.apply(this,arguments)};
_.M(X8O,$H);X8O.prototype.getAssociations=function(){return[]};
X8O.prototype.getTypeName=function(){return"pdpStateEntity"};var Ynd=function(){$H.apply(this,arguments)};
_.M(Ynd,$H);Ynd.prototype.getAssociations=function(){return[]};
Ynd.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var AsW=new _.Xk("ypcOffersEndpoint");var p8v=new _.Xk("cardItemRenderer"),QAC=new _.Xk("cardItemTextRenderer");var esz=new _.Xk("commerceCartItemQuantityPickerRenderer");var Z7C=new _.Xk("linkCardRenderer");var IIt=new _.Xk("quantityIncrementerButtonViewModel");var RsJ=new _.Xk("quantityIncrementerViewModel");var rtC=new _.Xk("themedImageViewModel");_.Ntd=new _.Xk("ypcCancelRecurrenceEndpoint");var w8j=new _.Xk("ypcCompleteTransactionEndpoint");_.i7j=new _.Xk("ypcGetCartEndpoint");_.qR=new _.Xk("ypcGetOffersEndpoint");_.YA=new _.Xk("ypcHandleTransactionEndpoint");var kkv=new _.Xk("ypcLogWalletAnalyticDataEndpoint");_.Epd=new _.Xk("ypcRedeemCodeEndpoint");var zsw=new _.Xk("ypcUpdateFopEndpoint");NX(rR(1),Z1(4));Hc3((new MessageChannel).port2);var opC=function(){this.register=new Map},adv=function(F,q,t){F=F+"_"+q;
pC.register.has(F)?t=pC.register.get(F):(t=t(),pC.register.set(F,t));return t},npO=function(F){F=_.X(F.register.values());
for(var q=F.next();!q.done;q=F.next())_.QI(q.value,"ABORTED")};
opC.prototype.clear=function(){npO(this);this.register.clear()};
var pC=new opC;var Plt=Date.now().toString();var vc$=AdW();var dgM={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 MDz,$z;MDz=1;$z=function(F){this.veData=F};
_.Av=function(F){return new $z({trackingParams:F})};
_.r0=function(F,q,t,u,J,g){var Y=MDz++;return new $z({veType:F,veCounter:Y,elementIndex:t,dataElement:q,youtubeData:u,jspbYoutubeData:J,loggingDirectives:g})};
_.l=$z.prototype;
_.l.getAsJson=function(){var F={};this.veData.trackingParams!==void 0?F.trackingParams=this.veData.trackingParams:(F.veType=this.veData.veType,this.veData.veCounter!==void 0&&(F.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(F.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(F.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(F.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(F.isCounterfactual=!0);
return F};
_.l.getAsJspb=function(){var F=new Jgv;this.veData.trackingParams!==void 0?F.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.mc(F,2,this.veData.veType),this.veData.veCounter!==void 0&&_.mc(F,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.mc(F,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.RX(F,5,!0));if(this.veData.dataElement!==void 0){var q=this.veData.dataElement.getAsJspb();_.My(F,7,q)}this.veData.youtubeData!==void 0&&_.My(F,8,this.veData.jspbYoutubeData);
return F};
_.l.toString=function(){return JSON.stringify(this.getAsJson())};
_.l.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.l.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.uo("yt_logging_screen.getRootVeType",bgA);_.uo("yt_logging_screen.getCurrentCsn",_.yb);_.uo("yt_logging_screen.getCttAuthInfo",CB);_.uo("yt_logging_screen.setCurrentScreen",_.dQ);var TtE=function(){this.events=new Map},Gkn=function(F){var q=[];
F=_.X(F.events.values());for(var t=F.next();!t.done;t=F.next())q.push(t.value);return q};
TtE.prototype.clear=function(){this.events.clear()};var Wew=function(){this.logTransport=new DTO;this.loggedEventRegister=new TtE;this.unloggedEventRegister=new TtE;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12413_flushTimer=new _.pB(this.flushInterval);this.JSC$12413_flushTimer.listen("tick",this.flush,!1,this)};
Wew.prototype.flush=function(){if(this.eventsCount){var F={loggedEvents:Gkn(this.loggedEventRegister),unloggedEvents:Gkn(this.unloggedEventRegister)};if(_.E("export_player_version_to_ytconfig")){var q;(q=_.bn("PLAYER_CLIENT_VERSION"))?(q=q.split("-")[0].replace(/\./g,""),q=isNaN(Number(q))?"0":q):q="";var t=_.bn("PLAYER_CLIENT_VERSION");if(t){t=t.split("-");var u="";t.length>1&&(u=t[t.length-1]);t=OgP(u.startsWith("canary_experiment")?"canary":u.startsWith("canary_control")?"control":"none")}else t=
"CLIENT_CANARY_STATE_UNKNOWN";F.dimensions={playerClientVersion:q,playerCanaryState:t}}this.logTransport.flush(F);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12413_flushTimer.enabled&&this.JSC$12413_flushTimer.stop()}};
var O7w=function(F){QL==null&&(QL=new Wew);var q=QL;var t=q.loggedEventRegister;F.dimensions=F.dimensions||{};F.dimensions.csn=_.yb()||"";var u=SYM(F.dimensions).join(";");if(F.records!=null)if(t.events.has(u)){var J;(J=t.events.get(u).records)==null||J.push.apply(J,_.mZ(F.records))}else t.events.set(u,F);q.JSC$12413_flushTimer.enabled||q.JSC$12413_flushTimer.start();q.eventsCount++;q.eventsCount>=100&&q.flush()};var DTO=function(){};
DTO.prototype.flush=function(F,q){_.E("enable_client_sli_logging")&&_.IJ("sliEventBatch",F,{sendIsolatedPayload:!!q})};var QL;var xTx;xTx=function(F){var q=PYC;F=F===void 0?{}:F;q=q.name;var t=fdt("SUCCESS");O7w({dimensions:F,records:[{name:q,state:"SLI_STATE_END",status:t}]})};
_.jOo=function(F,q,t,u){this.name=F;this.sliId=q;this.timeoutMs=t;this.statusOnTimeout=u;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.jOo.prototype.getId=function(){return this.sliId};
_.pZ=function(F,q){q=q===void 0?{}:q;F.ongoing||(F.ongoing=!0,F.dimensions=q,F.logSliId=bHE(),O7w({dimensions:F.dimensions,records:[{name:F.name,state:"SLI_STATE_START",sliId:F.logSliId}]}),F.timeoutMs>0&&(F.timeoutHandle=setTimeout(function(){_.QI(F,F.statusOnTimeout)},F.timeoutMs)))};
_.QI=function(F,q){F.ongoing&&(F.timeoutMs>0&&clearTimeout(F.timeoutHandle),F.ongoing=!1,q={dimensions:F.dimensions,records:[{name:F.name,status:fdt(q),state:"SLI_STATE_END",sliId:F.logSliId}]},pC.register.delete(F.name+"_"+F.sliId),O7w(q))};var PYC=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Atd=function(){$H.apply(this,arguments)};
_.M(Atd,$H);Atd.prototype.getAssociations=function(){return[]};
Atd.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var eHq=new _.Xk("highlightTextDecoratorColorMapExtension");var pR3=new _.Xk("styleRunColorMapExtension");var sz$=_.LZ(["data-"]),XNo={};var pN3={};var eR=function(F){this.wrappedPromise_=F===void 0?null:F;this.state_=0;this.JSC$12445_value_=null};
eR.prototype.then=function(F,q,t){return this.wrappedPromise_?this.wrappedPromise_.then(F,q,t):this.state_===1&&F?(F=F.call(t,this.JSC$12445_value_))&&typeof F.then==="function"?F:_.Z2(F):this.state_===2&&q?(F=q.call(t,this.JSC$12445_value_))&&typeof F.then==="function"?F:_.vpz(F):this};
eR.prototype.getValue=function(){return this.JSC$12445_value_};
eR.prototype.isRejected=function(){return this.state_==2};
aoC(eR);_.vpz=function(F){var q=new eR;F=F===void 0?null:F;q.state_=2;q.JSC$12445_value_=F===void 0?null:F;return q};
_.Z2=function(F){var q=new eR;F=F===void 0?null:F;q.state_=1;q.JSC$12445_value_=F===void 0?null:F;return q};var T5C="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var IBn=["load","abort","error"],Rl=function(F,q,t){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12465_maxAspectRatio_=F;this.disableAnimation_=q===void 0?!1:q;this.disableExifRotation_=t===void 0?!1:t;this.JSC$12465_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12465_reject_=this.resolve_=null};
Rl.prototype.transform=function(F){var q=this;this.mime_=F.type;ui(sEf(F),this.dataUrlRead_,this.readError_,this);ui(JY1(F.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(t,u){q.resolve_=t;q.JSC$12465_reject_=u})};
Rl.prototype.dataUrlRead_=function(F){this.dataUrl_=F;this.angle_!=null&&H7z(this)};
Rl.prototype.exifRead_=function(F){if(this.disableExifRotation_)this.angle_=0;else{a:if(F=new DataView(F),F.byteLength<2||F.getUint16(0)!==65496)F=-2;else{for(var q=2,t=F.byteLength;q<t;){var u=F.getUint16(q),J=F.getUint16(q+2);if(u===65505){q+=4;u=F.getUint32(q);J=F.getUint16(q+4);if(u!==1165519206||J!==0)break;q+=6;u=F.getUint16(q)===18761;q+=F.getUint32(q+4,u);J=F.getUint16(q,u);q+=2;for(var g=0;g<J;g++){if(F.getUint16(q,u)===274){q+=8;F=F.getUint16(q,u);break a}q+=12}}else if(u>>8!==255)break;
else q+=J+2}F=-1}switch(F){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&H7z(this)};
Rl.prototype.readError_=function(){this.JSC$12465_reject_()};
var H7z=function(F){P9(F.JSC$12465_image_,IBn,F.completeTransform_,!1,F);F.JSC$12465_image_.src=_.d$(F.dataUrl_).toString();F.JSC$12465_image_.src!=Cl.toString()&&F.JSC$12465_image_.src.substr(0,11)==="data:image/"||F.JSC$12465_reject_()};
Rl.prototype.completeTransform_=function(){if(this.JSC$12465_image_.src!=Cl.toString()){var F=_.d$(this.dataUrl_),q=this.JSC$12465_image_.naturalHeight?this.JSC$12465_image_.naturalWidth/this.JSC$12465_image_.naturalHeight:null;this.invalidAspectRatio=q>this.JSC$12465_maxAspectRatio_||q<1/this.JSC$12465_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var t=this.JSC$12465_image_.naturalWidth,u=this.JSC$12465_image_.naturalHeight,J=q=0,g=this.JSC$12465_image_.naturalHeight?this.JSC$12465_image_.naturalWidth/
this.JSC$12465_image_.naturalHeight:null;g>this.JSC$12465_maxAspectRatio_?(t=this.JSC$12465_maxAspectRatio_*u,q=(t-this.JSC$12465_image_.naturalWidth)/2,this.cropped=!0):g<1/this.JSC$12465_maxAspectRatio_?(u=this.JSC$12465_maxAspectRatio_*t,J=(u-this.JSC$12465_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)g=t,t=u,u=g,g=q,q=J,J=g;switch(this.angle_){case 90:J-=t;break;case 180:q-=t;J-=u;break;case 270:q-=
u}this.cropped||this.angle_%360!==0?(F=document.createElement("canvas"),F.width=t||1,F.height=u||1,this.JSC$12465_image_.naturalWidth&&this.JSC$12465_image_.naturalHeight&&(t=F.getContext("2d"),t.rotate(Math.PI/180*this.angle_),t.drawImage(this.JSC$12465_image_,q,J,this.JSC$12465_image_.naturalWidth,this.JSC$12465_image_.naturalHeight)),this.transformedData=_.d$(F.toDataURL(this.mime_))):this.transformedData=F}else this.transformedData=F;this.resolve_(this)}};var rX=function(F,q){_.Gw.call(this,F);this.value=q};
_.M(rX,_.Gw);
var NC=function(F,q,t,u,J,g,Y){Y=Y===void 0?!1:Y;_.xD.call(this);var Q=this;this.JSC$12470_url_=F;this.channelId_=q;this.maxFileSizeMb_=t;this.JSC$12470_maxAspectRatio_=u;this.dropZoneEl_=J;this.rejectInvalidAspectRatio_=Y;this.selectButtonEl_=g;this.JSC$12470_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new MX(this.dropZoneEl_);this.selectOverlay_=new TY(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12470_image_=this.transfer_=null;this.handler_=new _.Qb(this);_.kW(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(g,"click",function(){Q.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.M(NC,_.xD);NC.prototype.disposeInternal=function(){for(var F=this.selectButtonEl_.nextSibling;F&&F.parentNode&&F.tagName=="INPUT";)F.parentNode.removeChild(F),F=this.selectButtonEl_.nextSibling;this.cancel();_.xD.prototype.disposeInternal.call(this)};
NC.prototype.uploadPromise=function(){if(this.JSC$12470_image_==null)return null;this.uploadPromise_||mTj(this);return this.uploadPromise_};
NC.prototype.cancel=function(){$T1(this);this.JSC$12470_image_=null};
var $T1=function(F){F.transfer_&&F.transfer_.cancel();F.transfer_=null;F.uploadPromise_=null;F.resolve_=null;F.JSC$12470_reject_=null},mTj=function(F){$T1(F);
F.transfer_=_.oVO(F.JSC$12470_url_,{"X-YouTube-ChannelId":F.channelId_},F.JSC$12470_image_);F.handler_.listenOnce(F.transfer_,"l",F.JSC$12472_onUploadComplete_);F.handler_.listenOnce(F.transfer_,"n",F.onUploadError_);F.transfer_.run();F.uploadPromise_=new Promise(function(q,t){F.resolve_=q;F.JSC$12470_reject_=t})};
_.l=NC.prototype;_.l.onChange_=function(F){F.files.length&&(this.JSC$12470_image_=F.files[0],this.JSC$12470_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12470_image_=null,this.dispatchEvent(new rX("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(mTj(this),(new Rl(this.JSC$12470_maxAspectRatio_)).transform(this.JSC$12470_image_).then((0,_.Pd)(this.onPreview_,this),(0,_.Pd)(this.onPreviewError_,this))))};
_.l.onPreview_=function(F){if(F.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12470_image_=null),this.dispatchEvent(new rX("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;F.cropped&&this.dispatchEvent(new rX("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new rX("yt.comments.ImageUploadOverlay.CHANGE_EVENT",F.transformedData))};
_.l.onPreviewError_=function(){this.JSC$12470_image_=null;this.dispatchEvent(new rX("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.l.onHover_=function(F){F.stopPropagation();F.preventDefault();if(F.type==="dragover")F=!0;else if(F.type==="dragleave")F=!1;else return;this.dispatchEvent(new rX("yt.comments.ImageUploadOverlay.HOVER_EVENT",F))};
_.l.JSC$12472_onUploadComplete_=function(){var F=(0,_.zhE)(this.transfer_.getResponseText());this.resolve_(F.encryptedBlobId)};
_.l.onUploadError_=function(){this.JSC$12470_reject_();$T1(this)};var b7n=function(F){F=F||{};var q={},t={};this.url=F.url||"";this.args=F.args||_.m7.clone(q);this.assets=F.assets||{};this.attrs=F.attrs||_.m7.clone(t);this.fallback=F.fallback||null;this.fallbackMessage=F.fallbackMessage||null;this.html5=!!F.html5;this.disable=F.disable||{};this.loaded=!!F.loaded;this.messages=F.messages||{}};
b7n.prototype.clone=function(){var F=new b7n,q;for(q in this)if(this.hasOwnProperty(q)){var t=this[q];_.Ke(t)=="object"?F[q]=_.m7.clone(t):F[q]=t}return F};var ytL,CYE,dTJ,fw,UTv,Snz,hsv,Kej,Btn,LeC,fBC,aBr,jAr,ctf,Fnf,q9w,tef,u7e,JFf,spC,gTj,lOd,Xez,Y9r,peC,QpC,eD1,Z_j,RDz,fgy,rFe,N8f,weC,i_1,kKJ,ETz,zDf,oTz,nTv,MeC,Lk_,T8L,GKe,D$x,Wnv,O_x,PrE,x$f,AFf,vTf,IOv,H_C,m$r,$$O,b_j,yFf,wX,Cr1,d$r,Vev,U$C,S91,hDw,Kne,B8n,Lnn,fOO,aOw,jpE,cFf,Fmr,qlL,t2L,uOO,JpC,snj,Kko,gGx,lE1,XBv,Ylv,pBJ,QnL,erw,ZNC,RrE,rpe,Nuj,wBJ,iNJ,kuJ,EGj,zrL,oGv,nGr,M2r,Tuw,Guf,D7n,Wmr,ONC,PjC;ytL=["account/accounts_list"];CYE=["acknowledge_channel_tou_strike"];dTJ=["notification/add_upcoming_event_reminder"];
_.VDd=["att/get"];fw=["browse","music/browse","unplugged/browse"];UTv=["channel/claim_legacy_youtube_channel"];Snz=["history/clear_search_history"];hsv=["history/clear_watch_history"];Kej=["comment/perform_comment_action"];Btn=["comment/get_comment_replies"];LeC=["ypc/commerce_action"];fBC=["backstage/create_post"];aBr=["live/create_broadcast"];jAr=["channel/create_channel"];ctf=["comment/create_comment_reply"];Fnf=["comment/create_comment"];q9w=["live_chat/create_poll"];tef=["playlist/create"];
u7e=["decorate_message"];JFf=["live_chat/delete_message"];spC=["playlist/delete"];gTj=["video/delete"];lOd=["like/dislike"];Xez=["dismissal/dismiss"];Y9r=["flag/flag"];peC=["flow"];QpC=["account/account_menu"];eD1=["playlist/get_add_to_playlist"];Z_j=["get_answer"];RDz=["channel/get_channel_creation_form"];fgy=["offline/get_download_action"];rFe=["kids/get_kids_blocklist_picker"];N8f=["live_chat/get_item_context_menu"];weC=["live_chat/get_live_chat_message_buy_flow"];i_1=["live_chat/get_live_chat_replay"];
kKJ=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];ETz=["live_chat/get_live_chat_super_sticker_buy_flow"];zDf=["notification/get_notification_menu"];oTz=["playlist/get_settings_editor"];nTv=["backstage/get_post_video_preview"];MeC=["account/get_profile_card"];Lk_=["share/get_share_panel"];T8L=["share/get_sharing_provider_data"];GKe=["get_survey"];D$x=["notification/get_unseen_count"];Wnv=["get_user_mention_suggestions"];O_x=["get_watch"];PrE=["guide"];
x$f=["feedback"];AFf=["kids/update_blacklist"];vTf=["like/like"];IOv=["live_chat/live_chat_action"];H_C=["live_chat/manage_user"];m$r=["video_manager/metadata_update"];$$O=["live_chat/moderate"];b_j=["notification/modify_channel_preference"];yFf=["notification/opt_out"];wX=["get_panel","get_posts_by_host_panel"];Cr1=["player"];d$r=["browse/edit_playlist"];Vev=["notification/record_interactions"];U$C=["reel/reel_item_watch"];S91=["reel/reel_watch_sequence"];hDw=["like/removelike"];Kne=["notification/remove_upcoming_event_reminder"];
B8n=["flag/get_form"];Lnn=["miniapp/report_value"];fOO=["navigation/resolve_url"];aOw=["channel/reveal_business_email"];jpE=["in_video/search"];cFf=["search","sfv/search","unplugged/search"];Fmr=["live_chat/send_message"];qlL=["live_chat/send_live_chat_vote"];t2L=["account/set_setting"];uOO=["submit_caption_correction"];JpC=["submit_form"];snj=["subscription/subscribe"];Kko=["get_transcript"];gGx=["resolve_location","unplugged/resolve_location"];lE1=["subscription/unsubscribe"];XBv=["backstage/update_post"];
Ylv=["channel_edit/update_channel_page_settings"];pBJ=["comment/update_comment_reply"];QnL=["comment/update_comment"];erw=["comment/update_comments_settings"];ZNC=["creator/update_creator_channel"];RrE=["pdg/update_enablement"];rpe=["updated_metadata"];Nuj=["channel_edit/validate_channel_handle"];wBJ=["verify_age"];iNJ=["next","unplugged/watch_next"];kuJ=["whitelist/edit"];EGj=["ypc/cancel_recurrence"];zrL=["ypc/complete_transaction"];oGv=["ypc/get_cart"];nGr=["ypc/get_fix_instrument_params"];
M2r=["ypc/get_offers"];Tuw=["ypc/get_payment_instruments_params"];Guf=["ypc/handle_transaction"];D7n=["ypc/log_payment_server_analytics"];Wmr=["ypc/pause_subscription"];ONC=["ypc/redeem_code"];PjC=["ypc/resume_subscription"];var x7e=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,
21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,
166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,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,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,
221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,
149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,
195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,
27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,
247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,
203649,47896,122629,186204,222824,271673,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,
134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,
234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var zV=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.uo("yt.msgs_",zV);var iv=new _.pg("ACTION_ROUTER_TOKEN");_.kA=function(){this.autonavState_=_.E("kevlar_is_pupi_enabled")?2:$KP()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.kA.prototype.getState=function(){return this.autonavState_};
_.kA.prototype.pause=function(F){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=F):this.autonavState_==1&&(this.disabledAutonavPauseReason_=F)};
_.kA.prototype.setState=function(F,q,t){q&&(this.autoplayChangedByUser=!0);q=this.autonavState_===3||F===3;this.autonavState_!=F&&(this.autonavState_=F,F!=3&&_.bVA(F==2),F=_.E("kevlar_is_pupi_enabled")?t||q:!0,_.B2.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,F,t))};
_.kA.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Ja(_.kA);var EX=function(){this.hasRun=!1};var zT={},fCM=(zT.auto_search="LATENCY_ACTION_AUTO_SEARCH",zT.ad_to_ad="LATENCY_ACTION_AD_TO_AD",zT.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",zT.app_startup="LATENCY_ACTION_APP_STARTUP",zT.browse="LATENCY_ACTION_BROWSE",zT.cast_splash="LATENCY_ACTION_CAST_SPLASH",zT.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",zT.channels="LATENCY_ACTION_CHANNELS",zT.chips="LATENCY_ACTION_CHIPS",zT.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",zT.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
zT.editor="LATENCY_ACTION_EDITOR",zT.embed="LATENCY_ACTION_EMBED",zT.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",zT.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",zT.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",zT.explore="LATENCY_ACTION_EXPLORE",zT.favorites="LATENCY_ACTION_FAVORITES",zT.home="LATENCY_ACTION_HOME",zT.inboarding="LATENCY_ACTION_INBOARDING",zT.landing="LATENCY_ACTION_LANDING",zT.learning="LATENCY_ACTION_LEARNING",
zT.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",zT.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",zT.library="LATENCY_ACTION_LIBRARY",zT.live="LATENCY_ACTION_LIVE",zT.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",zT.management="LATENCY_ACTION_MANAGEMENT",zT.mini_app="LATENCY_ACTION_MINI_APP_PLAY",zT.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",zT.onboarding="LATENCY_ACTION_ONBOARDING",zT.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
zT.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",zT.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",zT.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",zT.prebuffer="LATENCY_ACTION_PREBUFFER",zT.prefetch="LATENCY_ACTION_PREFETCH",zT.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",zT.profile_switcher="LATENCY_ACTION_LOGIN",zT.projects="LATENCY_ACTION_PROJECTS",zT.reel_watch="LATENCY_ACTION_REEL_WATCH",zT.results="LATENCY_ACTION_RESULTS",zT.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
zT.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",zT.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",zT.review="LATENCY_ACTION_REVIEW",zT.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",zT.search_ui="LATENCY_ACTION_SEARCH_UI",zT.search_suggest="LATENCY_ACTION_SUGGEST",zT.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",zT.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",zT.seek="LATENCY_ACTION_PLAYER_SEEK",zT.settings="LATENCY_ACTION_SETTINGS",zT.store="LATENCY_ACTION_STORE",
zT.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",zT.tenx="LATENCY_ACTION_TENX",zT.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",zT.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",zT.watch="LATENCY_ACTION_WATCH",zT.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",zT["watch,watch7"]="LATENCY_ACTION_WATCH",zT["watch,watch7_html5"]="LATENCY_ACTION_WATCH",zT["watch,watch7ad"]="LATENCY_ACTION_WATCH",zT["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",zT.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
zT.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",zT.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",zT.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",zT.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",zT.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",zT.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",zT.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",zT),Q$P=0;var w63=function(F,q){mE.call(this,1,arguments);this.timer=q};
_.M(w63,mE);var Nzf=new kao("aft-recorded",w63);var Fyq=_.uu.ytLoggingGelSequenceIdObj_||{};_.uo("ytLoggingGelSequenceIdObj_",Fyq);var ol=_.uu.ytLoggingLatencyUsageStats_||{};_.uo("ytLoggingLatencyUsageStats_",ol);var nC=function(){this.cleanupJob=0},uPf=function(){nC.instance||(nC.instance=new nC);
return nC.instance};
_.l=nC.prototype;_.l.baseline=function(F,q,t){MC(this,"baseline_"+F)||_.IJ("latencyActionBaselined",{clientActionNonce:F},{timestamp:q,cttAuthInfo:t})};
_.l.tick=function(F,q,t,u){MC(this,"tick_"+F+"_"+q)||_.IJ("latencyActionTicked",{tickName:F,clientActionNonce:q},{timestamp:t,cttAuthInfo:u})};
_.l.info=function(F,q,t){var u=Object.keys(F).join("");MC(this,"info_"+u+"_"+q)||(F=Object.assign({},F),F.clientActionNonce=q,_.IJ("latencyActionInfo",F,{cttAuthInfo:t}))};
_.l.jspbInfo=function(F,q,t){for(var u="",J=0;J<Hs(F).length;J++)Hs(F)[J]!==void 0&&(u=J===0?u.concat(""+J):u.concat("_"+J));MC(this,"info_"+u+"_"+q)||(_.OF(F,2,q),q={cttAuthInfo:t},t=_.E("jspb_sparse_encoded_pivot")?new D_([{}]):new D_,_.T9(t,7,kWw,F),qw3("latencyActionInfo",t,q))};
_.l.span=function(F,q,t){var u=Object.keys(F).join("");MC(this,"span_"+u+"_"+q)||(F.clientActionNonce=q,_.IJ("latencyActionSpan",F,{cttAuthInfo:t}))};
var MC=function(F,q){ol[q]=ol[q]||{count:0};var t=ol[q];t.count++;t.time=(0,_.gB)();F.cleanupJob||(F.cleanupJob=_.W2(_.mI,function(){var u=(0,_.gB)(),J;for(J in ol)ol[J]&&u-ol[J].time>6E4&&delete ol[J];F&&(F.cleanupJob=0)},5E3));
return t.count>5?(t.count===6&&Math.random()*1E5<1&&(t=new _.D0("CSI data exceeded logging limit with key",q.split("_")),q.indexOf("plev")>=0||_.bz(t)),!0):!1};var Apz,vGC;Apz=window;vGC=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Po=Apz.performance||Apz.mozPerformance||Apz.msPerformance||Apz.webkitPerformance||new vGC;var r3y=!1,s$P=!1,iiu=(0,_.Pd)(_.Po.clearResourceTimings||_.Po.webkitClearResourceTimings||_.Po.mozClearResourceTimings||_.Po.msClearResourceTimings||_.Po.oClearResourceTimings||_.DH,_.Po);var IEd=window;IEd.ytcsi&&(IEd.ytcsi.infoGel=_.mj,IEd.ytcsi.tick=_.y0);var Oiu=function(F){mE.call(this,1,arguments);this.csn=F};
_.M(Oiu,mE);var Mp_=new kao("screen-created",Oiu),hQu=[],WyC=Swq,Kyf=0,Sc=new Map,PSP=new Map,xk3=new Map;var OTt=Symbol("vf"),tx=new WeakMap;var TT=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Ok=function(){TT.instance||(TT.instance=new TT);
return TT.instance};
_.l=TT.prototype;_.l.setClient=function(F){this.client=F};
_.l.JSC$12551_newScreen=function(){this.clear();this.csn=_.yb()};
_.l.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.l.reportShown=function(F,q,t){var u=this.JSC$12551_getTrackingParams(F),J=F.visualElement?F.visualElement:u;q=this.shownElements.has(J);var g=this.visibleState.get(J);this.shownElements.add(J);this.visibleState.set(J,!0);F.impressionLog&&!q&&F.impressionLog();if(u||F.visualElement)if(t=HNf(this,F,t))if(J=m7j(this,F),GT(this,F)||J){u=F.visualElement?F.visualElement:_.Av(u);var Y=F.interactionLoggingClientData;J||q?GT(this,F)&4?g||y3f(this.client,t,u,Y):GT(this,F)&1&&!q&&mkq(this.client,t,u,Y):mkq(this.client,
t,u,Y)}};
_.l.reportHidden=function(F,q,t){var u=this.JSC$12551_getTrackingParams(F),J=F.visualElement?F.visualElement:u;q=this.hiddenElements.has(J);var g=this.visibleState.get(J);this.hiddenElements.add(J);this.visibleState.set(J,!1);if(g===!1)return!0;if(!u&&!F.visualElement)return!1;t=HNf(this,F,t);if(!t||!GT(this,F)&&m7j(this,F))return!1;u=F.visualElement?F.visualElement:_.Av(u);GT(this,F)&8?CSC(this.client,t,u):GT(this,F)&2&&!q&&(F=this.client,q=UH({cttAuthInfo:CB(t)||void 0},t),u={csn:t,ve:u.getAsJson(),
eventType:2},t==="UNDEFINED_CSN"?KJ("visualElementHidden",q,u):F?Af("visualElementHidden",u,F,q):_.IJ("visualElementHidden",u,q));return!0};
_.l.JSC$12551_getTrackingParams=function(F){var q=this.getData(F),t,u;if(_.E("il_use_view_model_logging_context")&&(q==null?0:(t=q.context)==null?0:(u=t.loggingContext)==null?0:u.loggingDirectives))return q.context.loggingContext.loggingDirectives.trackingParams||"";var J,g;if(q==null?0:(J=q.rendererContext)==null?0:(g=J.loggingContext)==null?0:g.loggingDirectives)return q.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(q==null?0:q.loggingDirectives)return q.loggingDirectives.trackingParams||
"";var Y;return((Y=F.veContainer)==null?0:Y.trackingParams)?F.veContainer.trackingParams:(q==null?void 0:q.trackingParams)||""};
_.l.JSC$12551_elementShouldLogGesture=function(F,q){F=this.getData(F);return!!((Math.floor(Number(F&&F.loggingDirectives&&F.loggingDirectives.gestures&&F.loggingDirectives.gestures.types||""))||0)&q)};
_.l.JSC$12551_getNearestParentVe=function(F){var q=this.JSC$12551_getTrackingParams(F);return F.visualElement?F.visualElement:q?_.Av(q):F.parentElement?this.JSC$12551_getNearestParentVe(F.parentElement):null};
var HNf=function(F,q,t){var u=_.yb(t);return F.csn===null||u===F.csn||t?u:(F=new _.D0("VisibilityLogger called before newScreen",{caller:q.tagName,previous_csn:F.csn,current_csn:u}),_.bz(F),null)};
TT.prototype.getData=function(F){var q,t=F.data||((q=F.props)==null?void 0:q.data);if(!t||F.isWebComponentWrapper){var u;t=(u=tx.get(F))==null?void 0:u[OTt]}return t};
var m7j=function(F,q){var t;return!((t=F.getData(q))==null||!t.loggingDirectives)},GT=function(F,q){F=F.getData(q);
return Math.floor(Number(F&&F.loggingDirectives&&F.loggingDirectives.visibility&&F.loggingDirectives.visibility.types||""))||1};var D2;D2=function(){};
_.TC=function(){D2.instance||(D2.instance=new D2);return D2.instance};
D2.prototype.setClient=function(F){_.UK(Ok().setClient).bind(Ok())(F)};
_.$7n=function(){_.TC();_.UK(Ok().JSC$12551_newScreen).bind(Ok())()};
D2.prototype.clear=function(){_.UK(Ok().clear).bind(Ok())()};
D2.prototype.reportShown=function(F,q,t){_.UK(Ok().reportShown).bind(Ok())(F,q,t)};
D2.prototype.reportHidden=function(F,q,t){return _.UK(Ok().reportHidden).bind(Ok())(F,q,t)};
var QFM=function(F,q){return _.UK(Ok().JSC$12551_getTrackingParams).bind(Ok())(q)},Pcf=function(F,q){return _.UK(Ok().JSC$12551_getNearestParentVe).bind(Ok())(q)};var WQ,bNC;WQ=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};
_.DP=function(){WQ.instance||(WQ.instance=new WQ);return WQ.instance};
WQ.prototype.setClient=function(F){this.client=F};
bNC=function(F,q,t){t=t===void 0?{}:t;_.UK(function(){var u,J,g,Y=((u=_.n(q==null?void 0:q.commandMetadata,_.EH))==null?void 0:u.rootVe)||((J=_.n(q==null?void 0:q.commandMetadata,DKz))==null?void 0:(g=J.screenVisualElement)==null?void 0:g.uiType);if(Y){u=_.n(q==null?void 0:q.commandMetadata,iCx);if(u==null?0:u.parentTrackingParams){var Q=_.Av(u.parentTrackingParams);if(u.parentCsn)var e=u.parentCsn}else t.clickedVisualElement?Q=t.clickedVisualElement:q.clickTrackingParams&&(Q=_.Av(q.clickTrackingParams));
a:{u=_.n(q,_.Fw);J=_.n(q,MeW);if(u){if(J=yM$(u,"VIDEO")){u={token:J,videoId:u.videoId};break a}}else if(J&&(u=yM$(J,"PLAYLIST"))){u={token:u,playlistId:J.playlistId};break a}u=void 0}t=Object.assign({},{cttAuthInfo:u,parentCsn:e},t);if(_.E("expectation_logging")){var r;t.loggingExpectations=((r=_.n(q==null?void 0:q.commandMetadata,DKz))==null?void 0:r.loggingExpectations)||void 0}_.OX(F,Y,Q,t)}else _.bz(new _.D0("Error: Trying to create a new screen without a rootVeType",q))})()};
_.OX=function(F,q,t,u){u=u===void 0?{}:u;_.UK(function(){x7e.includes(q)||(_.bz(new _.D0("createClientScreen() called with a non-page VE",q)),q=83769);u.isHistoryNavigation||(F.forwardHistoryStack=[],F.backHistoryStack.push({rootVe:q,key:u.key||""}));F.graftQueue=[];F.stateChangedQueue=[];u.dataPromises?yp1(F,q,t,u):CjO(F,q,t,u)})()};
_.d7J=function(F,q,t){t=t===void 0?0:t;_.UK(function(){q.then(function(u){F.pendingScreenCreation.has(t)&&F.pendingScreenFn&&F.pendingScreenFn();var J=_.yb(t),g=_.b7(t);if(J&&g){var Y={automatedLogEventSource:3},Q;(u==null?0:(Q=u.response)==null?0:Q.trackingParams)&&hV(F.client,J,g,_.Av(u.response.trackingParams),!1,Y);var e;(u==null?0:(e=u.playerResponse)==null?0:e.trackingParams)&&hV(F.client,J,g,_.Av(u.playerResponse.trackingParams),!1,Y)}})})()};
WQ.prototype.graftServerVe=function(F,q,t){var u=this;return _.UK(function(){var J=_.Av(F);_.PQ(u,J,q,t);return J})()};
_.xmP=function(F,q,t,u){return _.E("enable_client_ve_spec")&&q.clientVeSpec?(q=_.r0(q.clientVeSpec.uiType,void 0,q.clientVeSpec.elementIndex,q.clientVeSpec.clientYoutubeData,void 0,q),_.PQ(F,q,t,u)?q:null):q.trackingParams?F.graftServerVe(q.trackingParams,t,u):null};
_.GC=function(F,q,t,u){return _.UK(function(){if(!q.veType)return _.$e(new _.D0("Error: Trying to graft a client VE without a veType.")),null;if(q.visibilityTypes){var J=q.visibilityTypes.reduce(function(g,Y){return g|Y});
J={visibility:{types:String(J)}}}J=_.r0(q.veType,q.visualElement,q.elementIndex,q.clientYouTubeData,void 0,J);return _.PQ(F,J,t,u)?J:null})()};
_.PQ=function(F,q,t,u){u=u===void 0?0:u;return _.UK(function(){if(F.pendingScreenCreation.has(u))return F.graftQueue.push([q,t]),!0;var J=_.yb(u),g=t||_.b7(u);if(J&&g){if(_.E("combine_ve_grafts")){var Y=F.cachedVisualElements.get(g.toString());Y?Y.push(q):(F.cachedRootVisualElements.set(g.toString(),g),F.cachedVisualElements.set(g.toString(),[q]));F.attachTimeout||(F.attachTimeout=_.W2(_.mI,function(){V2J(F,J)},1200))}else hV(F.client,J,g,q);
return!0}return!1})()};
_.xA=function(F,q,t){t=t===void 0?0:t;var u=F.recurringGrafts.get(t)||new Map;if(_.E("smarter_ve_dedupping"))for(var J=Array.from(u.keys()),g=0;g<J.length;g++){var Y=void 0,Q=void 0;var e=q;var r=J[g];r.isClientVe()&&e.isClientVe()?(Y=e.getAsJson(),Q=r.getAsJson(),e=Y.veType!==Q.veType||Y.elementIndex!==Q.elementIndex||Y.dataElement!==Q.dataElement||e.getLoggingDirectives()!==r.getLoggingDirectives()?!1:!0):e=r.veData.trackingParams!==void 0&&e.veData.trackingParams!==void 0?((Q=e.veData)==null?void 0:
Q.trackingParams)===((Y=r.veData)==null?void 0:Y.trackingParams):!1;if(e)return}else if(u.has(q))return;u.set(q,void 0);F.recurringGrafts.set(t,u);_.yb(t)==="UNDEFINED_CSN"||F.pendingScreenCreation.has(t)||_.PQ(F,q,void 0,t)};
_.Ah=function(F,q,t,u){u=_.yb(u===void 0?0:u);if(!u)return!1;Vqo(F.client,u,q,t);return!0};
_.vQ=function(F,q,t,u){if(!q)return!1;u=_.yb(u===void 0?0:u);if(!u)return!1;Vqo(F.client,u,_.Av(q),t);return!0};
_.BT=function(F,q){var t=q.getScreenLayer&&q.getScreenLayer();if(q.visualElement)return _.Ah(F,q.visualElement,void 0,t);q=QFM(_.TC(),q);return _.vQ(F,q,void 0,t)};
WQ.prototype.clickCommand=function(F,q,t){return _.vQ(this,F.clickTrackingParams,q,t===void 0?0:t)};
WQ.prototype.stateChanged=function(F,q,t){this.visualElementStateChanged(_.Av(F),q,t===void 0?0:t)};
WQ.prototype.visualElementStateChanged=function(F,q,t){t=t===void 0?0:t;t===0&&this.pendingScreenCreation.has(t)?this.stateChangedQueue.push([F,q]):this.logStateChanged(F,q,t)};
WQ.prototype.logStateChanged=function(F,q,t){t=t===void 0?0:t;var u=_.yb(t);F=F||_.b7(t);return u&&F?(Ukf(this.client,u,F,q),!0):!1};
var yp1=function(F,q,t,u){u=u===void 0?{}:u;F.pendingScreenCreation.add(u.layer||0);F.pendingScreenFn=function(){CjO(F,q,t,u);var Y=_.b7(u.layer);if(Y){for(var Q=_.X(F.graftQueue),e=Q.next();!e.done;e=Q.next())e=e.value,_.PQ(F,e[0],e[1]||Y,u.layer);Y=_.X(F.stateChangedQueue);for(Q=Y.next();!Q.done;Q=Y.next())Q=Q.value,F.logStateChanged(Q[0],Q[1])}};
t||_.yb(u.layer)||F.pendingScreenFn();if(u.dataPromises)for(var J=_.X(u.dataPromises),g=J.next();!g.done;g=J.next())_.d7J(F,g.value,u.layer);else _.mH(Error("wf"))},CjO=function(F,q,t,u){u=u===void 0?{}:u;
var J=void 0;u.layer||(u.layer=0);J=u.parentLayer!==void 0?u.parentLayer:u.layer;var g=_.yb(J);J=_.b7(J);var Y=t||J,Q;Y&&(u.parentCsn!==void 0?Q={clientScreenNonce:u.parentCsn,visualElement:Y}:g&&g!=="UNDEFINED_CSN"&&(Q={clientScreenNonce:g,visualElement:Y}));var e,r=_.bn("EVENT_ID");g==="UNDEFINED_CSN"&&r&&(e={servletData:{serializedServletEventId:r}});_.E("combine_ve_grafts")&&g&&V2J(F,g);_.E("no_client_ve_attach_unless_shown")&&Y&&g&&HiM(Y,g);try{var N=_.A3C(F.client,q,Q,u.csnToClone,u.cttAuthInfo,
e,u.implicitGestureType,void 0,u.loggingExpectations)}catch(z){_.yw(z,{rootVeType:q,rootVe:J,parentVisualElement:t,currentCsn:g,parentEl:Q,csnToClone:u.csnToClone});_.mH(z);return}_.dQ(N,q,u.layer,u.cttAuthInfo);g&&g!=="UNDEFINED_CSN"&&J&&!VhW(g)&&CSC(F.client,g,J,!0);F.backHistoryStack[F.backHistoryStack.length-1]&&!F.backHistoryStack[F.backHistoryStack.length-1].csn&&(F.backHistoryStack[F.backHistoryStack.length-1].csn=N||"");_.mj({clientScreenNonce:N});_.$7n();var w=_.b7(u.layer);g&&g!=="UNDEFINED_CSN"&&
w&&(_.E("web_mark_root_visible")||_.E("music_web_mark_root_visible"))&&_.fJ(N,w);F.pendingScreenCreation.delete(u.layer||0);F.pendingScreenFn=void 0;var k;(k=F.recurringGrafts.get(u.layer))==null||k.forEach(function(z,T){z?_.PQ(F,T,z,u.layer):w&&_.PQ(F,T,w,u.layer)});
U7r(F)},U7r=function(F){for(var q=0;q<F.afterNewScreenOneOffJobs.length;q++){var t=F.afterNewScreenOneOffJobs[q];
try{t()}catch(u){_.mH(u)}}for(q=F.afterNewScreenOneOffJobs.length=0;q<F.afterNewScreenRecurringJobs.length;q++){t=F.afterNewScreenRecurringJobs[q];try{t()}catch(u){_.mH(u)}}},V2J=function(F,q){if(q===void 0)for(var t=Clv(),u=0;u<t.length;u++)t[u]!==void 0&&V2J(F,t[u]);
else F.cachedVisualElements.forEach(function(J,g){(g=F.cachedRootVisualElements.get(g))&&vxu(F.client,q,g,J)}),F.cachedVisualElements.clear(),F.cachedRootVisualElements.clear(),F.attachTimeout=void 0};var Il=function(F){F=F===void 0?{layer:0}:F;this.hasRun=!1;this.createScreenConfig=F;F={};this.dJM=(F.response=!1,F.playerResponse=!1,F)};
_.M(Il,EX);Il.prototype.validate=function(F){return!(!F.data||!F.data.response&&!F.data.playerResponse)};
Il.prototype.handle=function(F){var q=_.DP(),t=this.createScreenConfig.layer;F.data.response&&F.data.response.trackingParams&&!this.dJM.response&&(q.graftServerVe(F.data.response.trackingParams,void 0,t),this.dJM.response=!0);F.data.playerResponse&&F.data.playerResponse.trackingParams&&!this.dJM.playerResponse&&(q.graftServerVe(F.data.playerResponse.trackingParams,void 0,t),this.dJM.playerResponse=!0)};var HQ=function(){this.gA=_.ji();this.sP=[];this.tlI=0};
HQ.prototype.processChunk=function(F){if(F){for(var q=_.X(this.sP),t=q.next();!t.done;t=q.next())t=t.value,t.validate(F)&&(t.handle(F),t.hasRun=!0);_.y0("np"+this.tlI);this.tlI++}};var uC={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[]};var Sld=function(){var F={traceAllComponents:_.E("web_tracing_all_components"),exportToCsi:_.E("web_tracing_export_to_csi"),exportBreadcrumbs:_.E("web_enable_tracing"),bufferSize:_.YE("web_max_tracing_events"),enabledSpansArray:_.ev("web_tracing_enabled_spans"),exportToDevTools:_.E("web_tracing_export_to_devtools")};this.observers=[];this.value=F};
_.l=Sld.prototype;_.l.subscribe=function(F){var q=this;if(F.idx!=null)throw Error("yf");F.idx=this.observers.length;this.observers.push(F);return function(){var t=q.observers[q.observers.length-1];q.observers[F.idx]=t;t.idx=F.idx;q.observers.pop()}};
_.l.update=function(F){this.value=F(this.value);this.notify()};
_.l.mutate=function(F){F(this.value);this.notify()};
_.l.set=function(F){this.value=F;this.notify()};
_.l.notify=function(){for(var F=_.X(this.observers),q=F.next();!q.done;q=F.next()){q=q.value;try{q(this.value)}catch(t){}}};var FiC,hrO,Lmd;_.oc=function(F,q,t,u,J,g,Y){Y=Y===void 0?[]:Y;this.buildCommandPayload=F;this.navigate=q;this.handleServiceRequest=t;this.sendAction=u;this.JSC$12597_screenManager=J;this.commandResolverMap=g;this.autoLogResolverAllowlist=Y;this.pendingCommands=new Set;this.isTracingEnabled=!1;hrO(this)};
FiC=function(F,q,t){var u=y7o,J=Ccq,g=_.DP(),Y=Kmw;t=t===void 0?[]:t;_.oc.instance=new _.oc(F,q,u,J,g,Y,t)};
hrO=function(F){if(!F.isTracingEnabled&&Lyo("command")){var q=F.resolveCommand;F.resolveCommand=function(t,u){a:{for(J in t)if(Object.prototype.hasOwnProperty.call(t,J)){var J={commandType:J};break a}J={}}return aX_("command",J,q.bind(this,t,u))};
F.isTracingEnabled=!0}};
Lmd=function(F,q,t){if(!F.commandResolverMap)return!1;var u=tG3(q,F.commandResolverMap);return u?((F.autoLogResolverAllowlist.some(function(J){return!!_.n(q,J)})||(t==null?0:t.forceClickLogging))&&Buz(F,q,t),u instanceof Promise?u.then(function(J){J.resolve(q,t)}):u.resolve(q,t),!0):!1};
_.oc.prototype.resolveCommand=function(F,q){var t=this,u=fEr(F);if(Lmd(this,F,q))return!0;if(u)return aEv(this,F,q);if(!this.buildCommandPayload)return c3q(F,"Unhandled command by buildCommandPayload"),!1;var J=this.buildCommandPayload(F,q);if(q==null?0:q.commandController)J.commandController=q.commandController;if(J.type===0){if(!this.navigate)return Flu(F,"navigate"),!1;if(!jnx(J.command))return c3q(F,"Page requests need to specify a url"),!1;_.E("logging_avoid_blocking_during_navigation")&&_.lzt().transition("application_navigating");
F=this.navigate(J)||[];JWn(F).then(function(){t.pendingCommands.delete(J.command)});
return!0}if(J.type===1){if(!this.handleServiceRequest)return Flu(F,"handleServiceRequest"),!1;(q==null?0:q.forceClickLogging)&&Buz(this,J.command,q);F=this.handleServiceRequest(J);JWn(F).then(function(){t.pendingCommands.delete(J.command)});
return!0}if(J.type===2){if(!this.sendAction)return Flu(F,"sendAction"),!1;Buz(this,J.command,q);this.sendAction(J);return!0}return!1};
var Buz=function(F,q,t){if((t==null||!t.disableClickTracking)&&F.JSC$12597_screenManager)if(q.clickTrackingParams&&_.E("log_click_with_layer_from_element_in_command_handler")){var u;t=t==null?void 0:(u=t.form)==null?void 0:u.element;F.JSC$12597_screenManager.clickCommand(q,null,t&&t.getScreenLayer&&t.getScreenLayer())}else q.clickTrackingParams?F.JSC$12597_screenManager.clickCommand(q):!_.E("disable_clicked_visual_element_in_command_handler")&&(t==null?0:t.clickedVisualElement)&&_.Ah(F.JSC$12597_screenManager,
t.clickedVisualElement)},fEr=function(F){var q=!!_.n(F,_.wY),t;
F=((t=_.n(F,_.ko))==null?void 0:t.signal)==="CLIENT_SIGNAL";return q||F},aEv=function(F,q,t){var u=_.n(q,_.wY);
if(u)var J=(u==null?void 0:u.commands)||[];else{var g;if(((g=_.n(q,_.ko))==null?void 0:g.signal)==="CLIENT_SIGNAL"){var Y;J=((Y=_.n(q,_.ko))==null?void 0:Y.actions)||[]}}if(J){q=_.X(J);for(J=q.next();!J.done;J=q.next()){J=J.value;try{F.resolveCommand(J,t)}catch(Q){Q instanceof Error&&_.mH(Q)}}return!0}c3q(q,"Could not handle the meta command");return!1},jnx=function(F){var q;
return!((q=_.n(F==null?void 0:F.commandMetadata,_.EH))==null||!q.url)};var mL=function(){EX.apply(this,arguments)};
_.M(mL,EX);mL.prototype.validate=function(F){var q,t;return!this.hasRun&&!!((q=F.data.response)==null?0:(t=q.onResponseReceivedEndpoints)==null?0:t.length)};
mL.prototype.handle=function(F){var q=_.oc.instance;F=_.X(F.data.response.onResponseReceivedEndpoints);for(var t=F.next();!t.done;t=F.next())q.resolveCommand(t.value)};var cpe,Fad,qiJ;
cpe=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=_.NU();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.$A=function(){Fad||(Fad=new cpe);return Fad};
qiJ=function(){var F=_.$A();F.miniplayerButtonActivation=!1;F.userActivation=!1;F.playlistWatchPageActivation=!1;F.productDetailsPageActivation=!1;F.miniAppPageActivation=!1;F.playablesDestPageActivation=!1;F.lockupActivation=!1;F.showMiniplayerCommandActivation=!1;F.playlistSuggestionsShelfActivation=!1;F.mediaSessionPipActivation=!1;F.watchPipActivation=!1;F.watchWhileActivation=!1;F.shortsPipActivation=!1};
_.tfn=function(){var F=_.$A(),q=F.mediaSessionPipActivation,t=F.watchPipActivation,u=F.watchWhileActivation,J=F.playlistWatchPageActivation,g=F.lockupActivation,Y=F.showMiniplayerCommandActivation,Q=F.navigatingAwayFromWatchDeletedVideo,e=F.shortsPipActivation,r=F.playlistSuggestionsShelfActivation,N=F.productDetailsPageActivation,w=F.miniAppPageActivation,k=F.playablesDestPageActivation;return!F.miniplayerButtonActivation&&!J&&!r&&!N&&!w&&!k&&!g&&!Y&&!q&&!t&&!u&&!e||Q};var q2_;_.bv=_.sf("FEwhat_to_watch","/",3854);_.t0$=_.sf("FEdownloads","/feed/downloads",42352);q2_=_.sf("FEmusic_offline","browse/FEmusic_offline",42352);var tn=function(F,q){q=q===void 0?[]:q;var t=t===void 0?[]:t;q=oDt.apply(null,[nDC.apply(null,_.mZ(q))].concat(_.mZ(t)));this.store=Dzv(F,void 0,q)};
tn.prototype.getState=function(){return this.store.getState()};
tn.prototype.dispatch=function(F){return this.store.dispatch(F)};
tn.prototype.subscribe=function(F){return this.store.subscribe(F)};
tn.prototype.replaceReducer=function(F){return this.store.replaceReducer(F)};
tn.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.yL=function(F,q,t){var u=q(F.getState());return F.subscribe(function(){var J=q(F.getState());if(J!==u){var g=u;u=J;t(J,g)}})};var Klo;_.Gl=function(F,q,t){return _.pj({type:"REPLACE_ENTITY",payload:{entityPayload:t,entityType:F,key:q}})};
Klo=function(F){return _.pj({type:"REPLACE_ENTITIES",payload:F})};
_.I4=function(F,q,t,u){return _.pj({type:"UPDATE_ENTITY",payload:{entityPayload:t,entityType:F,key:q,mergeOption:u}})};var r1f=function(F){var q=this;F=F===void 0?[]:F;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;F.forEach(function(t){q.append(t)})};
_.l=r1f.prototype;_.l.getLength=function(){return this.totalLength};
_.l.append=function(F){var q=this.arrays.length===0?!1:(q=this.arrays[this.arrays.length-1])&&q.buffer===F.buffer&&q.byteOffset+q.length===F.byteOffset;q?(q=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(q.buffer,q.byteOffset,q.length+F.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(F);this.totalLength+=F.length};
_.l.split=function(F){for(var q=new r1f,t=new r1f,u=_.X(this.arrays),J=u.next();!J.done;J=u.next())J=J.value,F>=J.length?(q.append(J),F-=J.length):F?(q.append(new Uint8Array(J.buffer,J.byteOffset,F)),t.append(new Uint8Array(J.buffer,J.byteOffset+F,J.length-F)),F=0):t.append(J);return{headView:q,tailView:t}};
_.l.extract=function(F,q){return this.split(F).tailView.split(q).headView};
_.l.isFocused=function(F){return F>=this.arrayPos&&F<this.arrayPos+this.arrays[this.arrayIdx].length};
_.l.focus=function(F){if(!this.isFocused(F))for(F<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=F&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var uJx=function(F,q){F.focus(q);return F.arrays[F.arrayIdx][q-F.arrayPos]};(function(){var F=function(u){return new Uint8Array(u)},q=function(u){for(var J=new Uint8Array(u.length),g=0;g<u.length;g++)J[g]=u[g];
return J},t=new Uint8Array([1]);
return t.length===1&&t[0]===1?F:q})();
var YqC=Array(1024),XXq=window.TextDecoder?new TextDecoder:void 0,Qtt=window.TextEncoder?new TextEncoder:void 0;var ROv=function(F){this.arrayView=F;this.pos=0;this.pendingTagAndType=-1},QX=function(F){var q=uJx(F.arrayView,F.pos);
++F.pos;if(q<128)return q;for(var t=q&127,u=1;q>=128;)q=uJx(F.arrayView,F.pos),++F.pos,u*=128,t+=(q&127)*u;return t},NRv=function(F,q){var t=F.pendingTagAndType;
for(F.pendingTagAndType=-1;F.pos+1<=F.arrayView.totalLength;){t<0&&(t=QX(F));var u=t>>3,J=t&7;if(u===q)return!0;if(u>q){F.pendingTagAndType=t;break}t=-1;switch(J){case 0:QX(F);break;case 1:F.pos+=8;break;case 2:u=QX(F);F.pos+=u;break;case 5:F.pos+=4}}return!1};var iut=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=Zu3(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Np=function(F,q){q=F.pos+q;
if(!(F.buf.length>=q)){for(var t=F.buf.length*2;t<q;)t*=2;F.buf=Zu3(t,F.wasm,F.buf.subarray(0,F.pos));F.view=new DataView(F.buf.buffer,F.buf.byteOffset,F.buf.byteLength)}},Zx=function(F,q){if(q>268435455){Np(F,4);
for(var t=q&1073741823,u=0;u<4;u++)F.view.setUint8(F.pos,t&127|128),t>>=7,F.pos+=1;q=Math.floor(q/268435456)}for(Np(F,4);q>127;)F.view.setUint8(F.pos,q&127|128),q>>=7,F.pos+=1;F.view.setUint8(F.pos,q);F.pos+=1};for(var kYC={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},wXo={},JPd=_.X(Object.entries(kYC)),sMO=JPd.next();!sMO.done;sMO=JPd.next()){var g5L=_.X(sMO.value),lNJ=g5L.next().value,XE1=g5L.next().value,Yiz=lNJ,pEj=XE1;pEj&&(wXo[pEj]=Yiz)};var zOM=function(F,q){F=F===void 0?{}:F;switch(q.type){case "ENTITY_LOADED":return q.payload.reduce(function(u,J){var g,Y=(g=J.options)==null?void 0:g.persistenceOption;if(Y&&Y!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Y!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return u;if(!J.entityKey)return _.mH(Error("Af")),u;if(J.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!J.payload)return J=new _.D0("REPLACE entity mutation is missing a payload",{entityKey:J.entityKey}),_.mH(J),u;var Q=(0,_.m7.getAnyKey)(J.payload);
return nHu(u,Q,J.entityKey,J.payload[Q])}if(J.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{J=J.entityKey;try{var e=_.ez(J).entityType;Q=nHu(u,e,J);break a}catch(w){if(w instanceof Error){J=new _.D0("Failed to deserialize entity key",{entityKey:J,originalMessage:w.message});_.mH(J);Q=u;break a}throw w;}Q=void 0}return Q}if(J.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!J.payload)return J=new _.D0("UPDATE entity mutation is missing a payload",{entityKey:J.entityKey}),_.mH(J),u;Q=(0,_.m7.getAnyKey)(J.payload);
var r,N;return MG$(u,Q,J.entityKey,J.payload[Q],(r=J.fieldMask)==null?void 0:(N=r.mergeOptions)==null?void 0:N.repeatedFieldsMergeOption)}return u},F);
case "REPLACE_ENTITY":var t=q.payload;return nHu(F,t.entityType,t.key,t.entityPayload);case "REPLACE_ENTITIES":return Object.keys(q.payload).reduce(function(u,J){var g=q.payload[J];return Object.keys(g).reduce(function(Y,Q){return nHu(Y,J,Q,g[Q])},u)},F);
case "UPDATE_ENTITY":return t=q.payload,MG$(F,t.entityType,t.key,t.entityPayload,t.mergeOption);default:return F}};var TR3;var QMC=!1,CC,dX,VL,UX,SR,eaC=function(F){_.OP.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!QMC){var q,t=new Uint8Array(256),u=new Uint8Array(256);var J=1;for(q=0;q<256;q++)t[J]=q,u[q]=J,J^=J<<1^(J>>7&&283);CC=new Uint8Array(256);dX=kv(256);VL=kv(256);UX=kv(256);SR=kv(256);for(var g=0;g<256;g++){J=g?u[255^t[g]]:0;J^=J<<1^J<<2^J<<3^J<<4;J=J&255^J>>>8^99;CC[g]=J;q=J<<1^(J>>7&&283);var Y=q^J;dX[g]=q<<24|J<<16|J<<8|Y;VL[g]=Y<<24|dX[g]>>>8;UX[g]=J<<24|VL[g]>>>
8;SR[g]=J<<24|UX[g]>>>8}QMC=!0}J=kv(44);for(t=0;t<4;t++)J[t]=F[4*t]<<24|F[4*t+1]<<16|F[4*t+2]<<8|F[4*t+3];for(u=1;t<44;t++)F=J[t-1],t%4||(F=(CC[F>>16&255]^u)<<24|CC[F>>8&255]<<16|CC[F&255]<<8|CC[F>>>24],u=u<<1^(u>>7&&283)),J[t]=J[t-4]^F;this.key=J};
_.M(eaC,_.OP);
eaC.prototype.encrypt=function(F){var q=F.length;F=new Uint8Array(F.buffer.slice(F.byteOffset,F.byteOffset+q));for(var t=this.cipherBlock,u=0;u<q&&this.blockOffset<16;)F[u++]^=t[this.blockOffset++];for(var J=q-(q-u)%16;u<J;)Z2v(this),F[u++]^=t[0],F[u++]^=t[1],F[u++]^=t[2],F[u++]^=t[3],F[u++]^=t[4],F[u++]^=t[5],F[u++]^=t[6],F[u++]^=t[7],F[u++]^=t[8],F[u++]^=t[9],F[u++]^=t[10],F[u++]^=t[11],F[u++]^=t[12],F[u++]^=t[13],F[u++]^=t[14],F[u++]^=t[15];if(u<q)for(Z2v(this),this.blockOffset=0;u<q;)F[u++]^=
t[this.blockOffset++];return F};
var Z2v=function(F){for(var q=F.key,t=F.counter[0]^q[0],u=F.counter[1]^q[1],J=F.counter[2]^q[2],g=F.counter[3]^q[3],Y=3;Y>=0&&!(F.counter[Y]=-~F.counter[Y]);Y--);for(var Q,e,r=4;r<40;)Y=dX[t>>>24]^VL[u>>16&255]^UX[J>>8&255]^SR[g&255]^q[r++],Q=dX[u>>>24]^VL[J>>16&255]^UX[g>>8&255]^SR[t&255]^q[r++],e=dX[J>>>24]^VL[g>>16&255]^UX[t>>8&255]^SR[u&255]^q[r++],g=dX[g>>>24]^VL[t>>16&255]^UX[u>>8&255]^SR[J&255]^q[r++],t=Y,u=Q,J=e;F=F.cipherBlock;Y=q[40];F[0]=CC[t>>>24]^Y>>>24;F[1]=CC[u>>16&255]^Y>>16&255;F[2]=
CC[J>>8&255]^Y>>8&255;F[3]=CC[g&255]^Y&255;Y=q[41];F[4]=CC[u>>>24]^Y>>>24;F[5]=CC[J>>16&255]^Y>>16&255;F[6]=CC[g>>8&255]^Y>>8&255;F[7]=CC[t&255]^Y&255;Y=q[42];F[8]=CC[J>>>24]^Y>>>24;F[9]=CC[g>>16&255]^Y>>16&255;F[10]=CC[t>>8&255]^Y>>8&255;F[11]=CC[u&255]^Y&255;Y=q[43];F[12]=CC[g>>>24]^Y>>>24;F[13]=CC[t>>16&255]^Y>>16&255;F[14]=CC[u>>8&255]^Y>>8&255;F[15]=CC[J&255]^Y&255};var Rar=!1;(function(){var F=function(u){return new Uint8Array(u)},q=function(u){for(var J=new Uint8Array(u.length),g=0;g<u.length;g++)J[g]=u[g];
return J},t=new Uint8Array([1]);
return t.length===1&&t[0]===1?F:q})();
var hh;var wEd=function(F){a:{if(!Rar&&!qE){if(hh){var q=hh;break a}hh=(q=window.crypto)==null?void 0:q.subtle;var t,u,J;if(((t=hh)==null?0:t.importKey)&&((u=hh)==null?0:u.sign)&&((J=hh)==null?0:J.encrypt)){q=hh;break a}hh=void 0}q=void 0}q&&(this.nativeEncryptor=new rPL(F,q));this.encryptorPolyfill=new N_L(F)};
wEd.prototype.encrypt=function(F,q){var t=this,u;return _.p(function(J){switch(J.nextAddress){case 1:if(!t.nativeEncryptor){J.jumpTo(2);break}_.zg(J,3);return J.yield(t.nativeEncryptor.encrypt(F,q),5);case 5:return J.return(J.yieldResult);case 3:u=_.Gg(J),_.bz(u),Rar=!0,t.nativeEncryptor=void 0;case 2:return J.return(t.encryptorPolyfill.encrypt(F,q))}})};
wEd.prototype.decrypt=function(F,q){return this.encrypt(F,q)};
var rPL=function(F,q){this.JSC$12670_aesKey=F;this.subtleCrypto=q};
rPL.prototype.encrypt=function(F,q){var t=this,u;return _.p(function(J){if(J.nextAddress==1)return _.zg(J,2),J.yield(i2L(t,F,q),4);if(J.nextAddress!=2)return J.return(J.yieldResult);u=_.Gg(J);_.bz(u);Rar=!0;throw u;})};
var i2L=function(F,q,t){var u,J;return _.p(function(g){switch(g.nextAddress){case 1:if(F.cryptoKey){g.jumpTo(2);break}return g.yield(F.subtleCrypto.importKey("raw",F.JSC$12670_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:F.cryptoKey=g.yieldResult;case 2:return u={name:"AES-CTR",counter:t,length:128},g.yield(F.subtleCrypto.encrypt(u,F.cryptoKey,q),4);case 4:return J=g.yieldResult,g.return(new Uint8Array(J))}})},N_L=function(F){this.JSC$12673_aesKey=F};
N_L.prototype.encrypt=function(F,q){this.encryptor||(this.encryptor=new eaC(this.JSC$12673_aesKey));for(var t=this.encryptor,u=0;u<4;u++)t.counter[u]=q[u*4]<<24|q[u*4+1]<<16|q[u*4+2]<<8|q[u*4+3];t.blockOffset=16;return this.encryptor.encrypt(F)};
N_L.prototype.decrypt=function(F,q){return this.encrypt(F,q)};var kjd={},Wl3=sI("yt-idb-pref-storage",{objectStores:(kjd.prefs={addedAtVersion:1},kjd),shared:!1,upgrade:function(F,q){q(1)&&S1(UI(F,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.KC=function(F){this.token=F};
_.KC.getInstance=function(){return _.p(function(F){return F.return(new Promise(function(q){_.JD().then(function(t){t?(_.KC.instance||(_.KC.instance=new _.KC(t)),q(_.KC.instance)):q(void 0)})}))})};
_.KC.prototype.get=function(F){var q=this,t,u,J;return _.p(function(g){if(g.nextAddress==1)return g.yield(Ouf(q.token),2);if(g.nextAddress!=3)return t=g.yieldResult,g.yield(t.get("prefs",F),3);u=g.yieldResult;if(!u)return g.return();J=(0,_.gB)();return u.expirationTimestampMs<=J?g.return():g.return(u.value)})};
_.KC.prototype.set=function(F,q,t){t=t===void 0?31536E3:t;var u=this,J,g,Y;return _.p(function(Q){if(Q.nextAddress==1)return J=(0,_.gB)(),g={key:F,value:q,expirationTimestampMs:J+t*1E3},Q.yield(Ouf(u.token),2);Y=Q.yieldResult;return Q.yield(Y.put("prefs",g),0)})};
_.KC.prototype.remove=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(Ouf(q.token),2);t=u.yieldResult;return u.yield(t.delete("prefs",F),0)})};var BQ={},E5C=(BQ.INVALID_ENCODER_VERSION="Invalid encoder version",BQ.KEY_CREATION_FAILED="Failed to create encoder key",BQ.UNKNOWN_DECODE_ERROR="Failed to decode PES data",BQ.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",BQ.WRONG_DATA_TYPE="Encoder cannot process the data type",BQ),Ef=function(F,q){q=q===void 0?{}:q;_.D0.call(this,E5C[F],Object.assign({},{name:"PESEncoderError",type:F},q));this.type=F;this.level="WARNING";Object.setPrototypeOf(this,Ef.prototype)};
_.M(Ef,_.D0);var LC=function(){};
LC.prototype.encode=function(F,q){try{return this.encodeImpl(F,q)}catch(t){vHt(t,xX_)}};
LC.prototype.decode=function(F,q){try{return this.decodeImpl(F,q)}catch(t){vHt(t,A1v)}};
var zaE=function(F,q,t){var u;return _.p(function(J){if(J.nextAddress==1)return _.zg(J,2),J.yield(F.decodeAsyncImpl(q,t),4);if(J.nextAddress!=2)return J.return(J.yieldResult);u=_.Gg(J);vHt(u,A1v);_.WA(J)})};
LC.prototype.decodeAsyncImpl=function(F,q){return Promise.resolve(this.decodeImpl(F,q))};var fC=function(F,q){this.aesEncryptor=F;this.aesEncryptorAsync=q};
_.M(fC,LC);fC.prototype.encodeImpl=function(F,q){q=I1o(q);F=(new TextEncoder).encode(JSON.stringify(F));return this.aesEncryptor.encrypt(F,q)};
fC.prototype.decodeImpl=function(F,q){if(!(F instanceof Uint8Array))throw P4o(1);var t=new TextDecoder;q=I1o(q);F=this.aesEncryptor.decrypt(F,q);return JSON.parse(t.decode(F))};
fC.prototype.decodeAsyncImpl=function(F,q){var t=this,u,J,g;return _.p(function(Y){if(Y.nextAddress==1){if(!(F instanceof Uint8Array))throw P4o(1);u=new TextDecoder;J=I1o(q);return Y.yield(t.aesEncryptorAsync.decrypt(F,J),2)}g=Y.yieldResult;return Y.return(JSON.parse(u.decode(g)))})};var Hut={accountLinkStatusEntity:wbr,booleanEntity:B3J,buttonEntity:Isx,captionTrack:kYz,channelHandle:nDz,chipEntity:pPz,commerceAcquisitionClientPayloadEntity:sAw,commerceCartListEntity:gpv,contextNoteFeedEntityPayload:mz1,contextNoteUserRatingEntityPayload:$zO,continuationTokenEntity:qwe,downloadQualityPickerEntity:UKJ,downloadsPageRefreshTokenEntity:hnC,downloadsPageViewConfigurationEntity:p6d,downloadStatusEntity:SuJ,dismissState:Qwn,sfvAudioItemCurrentlyPlayingEntity:jtn,emojiFountainDataEntity:xHd,
emojiCustomizationSetEntity:PTJ,fakeChannel:aJv,fakePlaylist:jaw,fakePlaylistEntryCollection:ckz,fakeVideo:qYr,fakeVideoDescription:thd,featuredProductsEntity:PSO,flowStateEntity:Zgd,iconBadgeEntity:lBx,interstitialInteractionStateEntity:vcr,likeButtonAnimationEntity:Q$O,liveChatPollStateEntity:dgv,dataFreshnessEntity:OAz,liveViewerLeaderboardChatEntryPointStateEntity:vH1,liveViewerLeaderboardPointsEntity:I1E,liveReactionsDataEntity:AB1,logoEntity:xgf,macroMarkerEntity:eQz,mainDownloadsLibraryEntity:KYJ,
mainDownloadsListEntity:B5r,mainPlaylistDownloadStateEntity:fCv,mainPlaylistEntity:tqe,mainPlaylistVideoEntity:uPx,mainVideoDownloadStateEntity:aCz,mainVideoEntity:lXx,markersEngagementPanelSyncEntity:ZiJ,markersVisibilityOverrideEntity:RQC,musicAlbumReleaseDetail:dke,musicAlbumReleaseDownloadMetadataEntity:mkL,musicAlbumRelease:CSz,musicAlbumReleaseUserDetail:Vqd,musicArtistDetail:SwL,musicArtist:Ukx,musicArtistUserDetail:hQJ,musicDownloadsLibraryEntity:$k1,musicLibraryEdit:Kyx,musicLibraryStatusEntity:BzE,
musicPlaylist:LyE,musicPlaylistDownloadMetadataEntity:biC,musicShare:aXj,musicTrackDetail:c3L,musicTrackDownloadMetadataEntity:y3x,musicTrack:j$J,musicTrackUserDetail:FlJ,offlineOrchestrationActionWrapperEntity:EHL,offlineVideoPolicy:zOv,offlineVideoStreams:oHf,offlineabilityEntity:jzf,orchestrationWebSamplingEntity:cMw,pageHeaderEntity:zpE,pdpStateEntity:X8O,pinnedProductEntity:xke,playbackData:nHJ,playerStateEntity:r3f,quantityIncrementerEntity:Ynd,refresh:MGr,saveToPlaylistListEntity:kT1,selectedChipIndexEntityPayload:Nzx,
settingEntity:CvJ,stringEntity:L_n,suggestedFeedbackChipStateEntity:w6e,transfer:TRe,trendingOfferEntity:A3z,videoDownloadContextEntity:GYw,videoOverviewAsyncDataEntity:Atd,videoPlaybackPositionEntity:$He,votingEntity:TvJ,ytMainChannelEntity:X6d,youchatPendingResponseEntity:iiJ,ytMainDownloadedVideoEntity:FyL,ytMainVideoEntity:Ywn};var o5v,Mfn,T5,UXy,Sqo,DiJ,O2e,Wav,Gjw;o5v=function(F,q){this.JSC$12692_wrapped=F;this.JSC$12692_encoderRegistry=q;this.changedKeys={}};
Mfn=function(F,q){return n5z(F.JSC$12692_encoderRegistry,q.version).decode(q.data,q.key)};
_.T_j=function(F,q,t){return F.JSC$12692_wrapped.objectStore("EntityStore").get(q).then(function(u){if(u){if(t&&u.entityType!==t)throw Error("Bf");return Mfn(F,u)}})};
T5=function(F,q,t){return t?(t=t.map(function(u){return _.T_j(F,u,q)}),UV.all(t)):F.JSC$12692_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(q)).then(function(u){return u.map(function(J){return Mfn(F,J)})})};
_.VGq=function(F,q,t){var u=EHq(q),J=n5z(F.JSC$12692_encoderRegistry,1),g=Object.assign({},q);return F.JSC$12692_wrapped.objectStore("EntityStore").get(u).then(function(Y){if(Y){if(Y.entityType!==t)throw Error("Bf");g.entityMetadata||(Y=Mfn(F,Y),g.entityMetadata=Y.entityMetadata)}}).then(function(){var Y={key:u,
entityType:t,data:J.encode(g,u),version:1};return UV.all([F.JSC$12692_wrapped.objectStore("EntityStore").put(Y),Gjw(F,g,t)])}).then(function(){DiJ(F,u,t);
return u})};
UXy=function(F,q){var t=_.ez(q).entityType;return UV.all([F.JSC$12692_wrapped.objectStore("EntityStore").delete(q),Wav(F,q)]).then(function(){DiJ(F,q,t)})};
Sqo=function(F,q,t,u){var J=n5z(F.JSC$12692_encoderRegistry,1);return _.T_j(F,q,u).then(function(g){if(g){g=l1P(g,t);var Y={key:q,entityType:u,data:J.encode(g,q),version:1};return UV.all([F.JSC$12692_wrapped.objectStore("EntityStore").put(Y),Gjw(F,g,u)])}}).then(function(){DiJ(F,q,u);
return q})};
DiJ=function(F,q,t){var u=F.changedKeys[t];u||(u=new Set,F.changedKeys[t]=u);u.add(q)};
O2e=function(F,q,t){var u=EHq(q);t=mXt(t);if(!t)return UV.resolve([]);t=new t(q);F=F.JSC$12692_wrapped.objectStore("EntityAssociationStore");q=[];t=_.X(t.getAssociations());for(var J=t.next();!J.done;J=t.next())q.push(F.put({parentEntityKey:u,childEntityKey:J.value}));return UV.all(q).then(function(g){return g.map(function(Y){return Y[1]})})};
Wav=function(F,q){return F.JSC$12692_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(q))};
Gjw=function(F,q,t){var u=EHq(q);return Wav(F,u).then(function(){return O2e(F,q,t)})};var PPw=function(){};
_.M(PPw,LC);PPw.prototype.encodeImpl=function(F){return F};
PPw.prototype.decodeImpl=function(F){if(F instanceof Uint8Array)throw P4o(0);return F};var y1q=function(){this.cacheMap={};this.cacheMap[0]=new PPw;if(!_.E("aes_pes_encoder_killswitch")){var F=this.cacheMap;try{var q=_.TQ();var t=I1o(q);var u=new fC(new N_L(t),new wEd(t))}catch(J){throw F=J instanceof Error?new Ef("KEY_CREATION_FAILED",{originalMessage:J.message}):new Ef("KEY_CREATION_FAILED"),_.mH(F),F;}F[1]=u}},n5z=function(F,q){q=q===void 0?0:q;
F=F.cacheMap[q];if(!F)throw q=new Ef("INVALID_ENCODER_VERSION",{encoderVersion:q}),_.mH(q),q;return F};var oY=function(F,q){_.OP.call(this);this.token=F;this.JSC$12706_encoderRegistry=q;this.observers=[];F=new _.uu.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.TQ());F.onmessage=this.handleMessage.bind(this);this.channel=F};
_.M(oY,_.OP);_.Mp=function(F,q,t){var u,J,g,Y;return _.p(function(Q){if(Q.nextAddress==1)return Q.yield(DXP(F.token),2);if(Q.nextAddress!=3)return u=Q.yieldResult,Q.yield(_.jv(u,["EntityStore","EntityAssociationStore"],q,function(e){J=new o5v(e,F.JSC$12706_encoderRegistry);return t(J)}),3);
g=Q.yieldResult;J&&(Y=J.changedKeys,Object.keys(Y).length>0&&(F.channel.postMessage(Y),xid(F,Y)));return Q.return(g)})};
oY.prototype.observe=function(F){var q=this;this.observers.push(F);return function(){var t=q.observers.indexOf(F);t>=0&&q.observers.splice(t,1)}};
var p4o=function(F){var q;return _.p(function(t){if(t.nextAddress==1)return t.yield(_.Mp(F,{mode:"readonly",enableRetries:!0},function(u){return u.JSC$12692_wrapped.objectStore("EntityStore").getAll()}),2);
q=t.yieldResult;return t.return(Promise.all(q.filter(function(u){return!!u}).map(function(u){var J,g;
return _.p(function(Y){if(Y.nextAddress==1){J=u.key;g=u.entityType;var Q=Y.yield;var e=zaE(n5z(F.JSC$12706_encoderRegistry,u.version),u.data,u.key);return Q.call(Y,e,2)}return Y.return({key:J,entityType:g,data:Y.yieldResult})})})))})};
oY.prototype.handleMessage=function(F){xid(this,F.data)};
var xid=function(F,q){F=_.X(F.observers);for(var t=F.next();!t.done;t=F.next())t=t.value,t(q)};
oY.prototype.disposeInternal=function(){this.channel.close()};
var $Xv;var al,v5n,pQC;al={};_.APO=(al.mainVideoEntity="mainVideoEntityActionMetadata",al.mainPlaylistEntity="mainPlaylistEntityActionMetadata",al.musicTrack="musicTrackEntityActionMetadata",al.musicPlaylist="musicPlaylistEntityActionMetadata",al);v5n=new _.pg("DOWNLOADS_ENTITY_TYPE_MAP");_.v5=_.wj("","downloadsPageViewConfigurationEntity");pQC=_.wj("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.UC3=_.wj("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.wj("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.wj("SMART_DOWNLOADS_ENABLED","settingEntity");_.wj("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var f1$=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var uZt=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var xCu={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var jR,x4C,Avz,gYy;jR=window;_.Kj=jR.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.V$C=jR.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.c5;x4C=jR.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Eo;Avz=jR.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||xc1;_.INr=jR.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.L6d;gYy=jR.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||jEe;aY({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 hzC=A8W(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(F){return F}}}),VYu=A8W(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(F){return F}}}),m4y=new Map;var B7t=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],d4q;var H2x=function(F){return _.pj({type:"SET_EPHEMERAL_ACTION",payload:F})};var miw={ephemeralAction:null};var $iJ={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var Luv={sharedUi:function(F,q){F=F===void 0?$iJ:F;switch(q.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},F,{animatedThumbnailEnabled:q.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},F,{inlinePreviewEnabled:q.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},F,{currentPageType:q.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},F,{currentPageSubType:q.payload});default:return F}},
a11y:zW({ephemeralAction:function(F,q){F=F===void 0?miw.ephemeralAction:F;switch(q.type){case "SET_EPHEMERAL_ACTION":return q.payload;default:return F}}}),
entities:oHy};var Fuo={playlistId:"",inviteLinkURL:""};var b2E={continuationCommand:{}};var CTM=zW({continuationCommand:function(F,q){F=F===void 0?b2E.continuationCommand:F;switch(q.type){case "SET_CONTINUATION_COMMAND":return q.payload.continuationCommand;default:return F}}});var t9q={currentFormId:"",commandsMap:{}};var dHC=zW({isLeaderTab:function(F,q){F=F===void 0?!0:F;switch(q.type){case "SET_IS_LEADER_TAB":var t,u;return(u=q==null?void 0:(t=q.payload)==null?void 0:t.isLeaderTab)!=null?u:F;default:return F}}});var CPv;_.yPz=function(F){return _.pj({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:F}})};
CPv=function(F){return _.pj({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:F}})};var Bv3=zW({isDesktopSmallWidth:function(F,q){switch(q.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return q.payload.isDesktopSmallWidth;default:return F===void 0?!1:F}},
isShortsActive:function(F,q){switch(q.type){case "SET_IS_SHORTS_ACTIVE":return q.payload.isShortsActive;default:return F===void 0?!1:F}},
isWatchWhileMode:function(F,q){switch(q.type){case "SET_IS_WATCH_WHILE_MODE":return q.payload.isWatchWhileMode;default:return F===void 0?!1:F}},
playerState:function(F,q){switch(q.type){case "SET_PLAYER_STATE":return q.payload.playerState;default:return F===void 0?-1:F}},
isFullscreen:function(F,q){switch(q.type){case "SET_IS_FULLSCREEN":return q.payload.isFullscreen;default:return F===void 0?!1:F}},
isSmallScreenSqueezeback:function(F,q){switch(q.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return q.payload.isSmallScreenSqueezeback;default:return F===void 0?!1:F}},
isShortsPipActive:function(F,q){switch(q.type){case "SET_IS_SHORTS_PIP_ACTIVE":return q.payload.isShortsPipActive;default:return F===void 0?!1:F}},
isPlaybackStarted:function(F,q){switch(q.type){case "SET_IS_PLAYBACK_STARTED":return q.payload.isPlaybackStarted;default:return F===void 0?!1:F}}});var JB3={currentMode:"canvas-hidden"};var asy=function(){return function(F){return function(q){var t=F(q);_.ec(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[q],!0);return t}}};var diC,JRv;diC=new _.i1;_.Qg=new _.pg("WATCH_PLAYER_PROMISE_TOKEN");_.VfE=new _.i1;_.Uiv=new _.pg("SHORTS_PLAYER_PROMISE_TOKEN");JRv=new _.pg("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var jwC=function(){return function(F){return function(q){q.type==="ENTITY_LOADED"&&_.sV().resolve(_.Qg).then(function(t){var u;(u=t.dispatchReduxAction)==null||u.call(t,q)});
return F(q)}}};var SiL={};var V9o=zW({additionalContext:function(F,q){switch(q.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var t;return(t=q.payload)!=null?t:"";default:return F===void 0?"":F}},
impersonatedChannelUrl:function(F,q){switch(q.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var t;return(t=q.payload)!=null?t:"";default:return F===void 0?"":F}},
selectedVideoIds:function(F,q){F=F===void 0?SiL:F;switch(q.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var t={};return Object.assign({},F,(t[q.payload]=!0,t));case "VIDEO_UNSELECTED":return q=q.payload,F=Object.assign({},F),delete F[q],F;default:return F}}});var UHo=zW({parentClickTrackingParams:function(F,q){switch(q.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return q.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return F===void 0?"":F}}});var hav=function(F){return _.pj({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:F})};var KaO={};var Sbv=zW({stepStates:function(F,q){F=F===void 0?KaO:F;switch(q.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var t=F,u=q.payload,J,g,Y;F={};q={selectionStates:Object.assign({},(Y=(J=t[u.stepId])==null?void 0:J.selectionStates)!=null?Y:{},(F[u.token]={isSelected:u.isSelected},F)),userQuery:(g=t[u.stepId])==null?void 0:g.userQuery};J={};return Object.assign({},t,(J[u.stepId]=q,J));case "TALK_TO_RECS_UPDATE_USER_QUERY":return J=F,g=q.payload,Y={selectionStates:Object.assign({},
(u=(t=J[g.stepId])==null?void 0:t.selectionStates)!=null?u:{}),userQuery:{userQuery:g.userQuery,token:g.userQueryToken}},t={},Object.assign({},J,(t[g.stepId]=Y,t));default:return F}}});var B_j,LaJ,aNf;B_j=function(F){return _.pj({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:F})};
LaJ=function(F){return _.pj({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:F})};
_.De=function(F){return _.pj({type:"SET_CURRENT_PAGE_TYPE",payload:F})};
_.fNO=function(F){return _.pj({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:F})};
aNf=function(F){return _.pj({type:"SET_CHIP_BAR_IS_STICKY",payload:F})};var mHv={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"};_.jML=function(F){return _.pj({type:"SET_PLAYER_STATE",payload:{playerState:F}})};var cP1=[],F2f={width:0,height:0};var hp$=zW({isTheaterMode:function(F,q){F=F===void 0?_.E("kevlar_disable_theater_mode_persistence")?!1:_.yG("START_IN_THEATER_MODE"):F;switch(q.type){case "SET_IS_THEATER_MODE":return q.payload.isTheaterMode;default:return F}},
isWatchActive:function(F,q){switch(q.type){case "SET_IS_WATCH_ACTIVE":return q.payload.isWatchActive;default:return F===void 0?!1:F}},
isLearningJourneyActive:function(F,q){switch(q.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return q.payload.isLearningJourneyActive;default:return F===void 0?!1:F}},
isWatchFullscreen:function(F,q){switch(q.type){case "SET_IS_WATCH_FULLSCREEN":return q.payload.isWatchFullscreen;default:return F===void 0?!1:F}},
isWatchNarrowWidth:function(F,q){switch(q.type){case "SET_IS_WATCH_NARROW_WIDTH":return q.payload.isWatchNarrowWidth;default:return F===void 0?!1:F}},
isWatchRetroMode:function(F,q){switch(q.type){case "SET_IS_WATCH_RETRO_MODE":return q.payload.isWatchRetroMode;default:return F===void 0?!1:F}},
isLiveChatCollapsed:function(F,q){switch(q.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return q.payload.isLiveChatCollapsed;default:return F===void 0?!1:F}},
openEngagementPanels:function(F,q){F=F===void 0?cP1:F;var t=[].concat(_.mZ(F));switch(q.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return t.push(q.payload.panelToAdd),t;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return t.splice(t.indexOf(q.payload.panelToRemove),1),t;default:return F}},
playerState:function(F,q){switch(q.type){case "SET_PLAYER_STATE":return q.payload.playerState;default:return F===void 0?-1:F}},
watchScrollTop:function(F,q){switch(q.type){case "SET_WATCH_SCROLL_TOP":return q.payload.watchScrollTop;default:return F===void 0?0:F}},
watchWindowSize:function(F,q){F=F===void 0?F2f:F;switch(q.type){case "SET_WATCH_WINDOW_SIZE":return q.payload.watchWindowSize;default:return F}}});var qmz={feedbackTokens:[]};var KuC=zW({surveyFeedbackData:function(F,q){F=F===void 0?qmz:F;switch(q.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return q.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},F,q.payload);default:return F}}});var bA_={};var Feu=void 0;_.E("web_enable_redux_store_on_demand")||(Feu=cBA());var tHL=function(F,q,t){var u=this;this.listId=F;this.JSC$12843_updateCallback=q;this.isOfflineVideoCallback=t;_.u1().subscribe(function(){u.handleUpdate()})};
tHL.prototype.getPlaylistData=function(){var F=_.u1().getState().entities;if(this.listId&&this.listId!=="PPSV"){var q=EA_(F,this.listId,!0),t=_.wj(this.listId,"mainPlaylistEntity"),u,J;F=F==null?void 0:(u=F.mainPlaylistEntity)==null?void 0:(J=u[t])==null?void 0:J.title;return qno(q,F,this.listId)}q=_.Jhf(f2C(F));F=_.Jhf(_.IY(F));F=q.concat(F);return qno(F)};
tHL.prototype.getPlaylistId=function(){return this.listId};
tHL.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12843_updateCallback(this.listId,this.getPlaylistData(),{})};var cQ=function(F,q,t,u){u=u===void 0?[]:u;this.JSC$12846_playlistNetworkManager=F;this.listId=q;this.JSC$12846_updateCallback=t;this.videoIds=u;this.pendingUpdates=[];this.currentIndex=0};
cQ.prototype.JSC$12846_setCurrentIndex=function(F){this.currentIndex=F};
cQ.prototype.setListId=function(F){this.listId=F};
var uu1=function(F,q){F.currentCreateRequest&&F.currentCreateRequest.cancel(q);F.currentUpdateRequest&&F.currentUpdateRequest.cancel(q);F.currentRefreshRequest&&F.currentRefreshRequest.cancel(q)};
cQ.prototype.delete=function(){uu1(this,"PROXY DELETED")};
cQ.prototype.addVideos=function(F,q,t){var u=this;t!==void 0?this.videoIds.splice.apply(this.videoIds,[t,0].concat(_.mZ(F))):this.videoIds.push.apply(this.videoIds,_.mZ(F));this.listId||this.currentCreateRequest?(F.forEach(function(J,g){J={addedVideoId:J,action:"ACTION_ADD_VIDEO"};t&&(J.addedVideoPosition=t+g);u.pendingUpdates.push(J)}),FD(this)):Jrv(this,q.onCreateListCommand)};
var so1=function(F,q,t,u,J){Pu_(F.videoIds,q,t);q>F.currentIndex&&t<=F.currentIndex?F.JSC$12846_setCurrentIndex(F.currentIndex+1):q===F.currentIndex?F.JSC$12846_setCurrentIndex(t):q<F.currentIndex&&t>=F.currentIndex&&F.JSC$12846_setCurrentIndex(F.currentIndex-1);F.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:u,movedSetVideoIdPredecessor:J});FD(F)},Jrv=function(F,q){uu1(F,"OBSOLETE");
F.currentCreateRequest=g1w(F.JSC$12846_playlistNetworkManager,q,F.videoIds);_.Hr(F.currentCreateRequest,function(){F.currentCreateRequest=void 0}).then(function(t){F.setListId(t.playlistId);
F.pendingUpdates.length>0?FD(F):lLL(F)})},FD=function(F){if(F.pendingUpdates.length!==0&&(F.currentRefreshRequest&&F.currentRefreshRequest.cancel("OBSOLETE"),!F.currentUpdateRequest&&!F.currentCreateRequest)){var q=F.pendingUpdates.splice(0,F.pendingUpdates.length);
F.currentUpdateRequest=F.JSC$12846_playlistNetworkManager.updatePlaylist(F.listId,q);_.Hr(F.currentUpdateRequest,function(){F.currentUpdateRequest=void 0}).then(function(){F.pendingUpdates.length>0?FD(F):lLL(F)}).thenCatch(function(){F.pendingUpdates.unshift.apply(F.pendingUpdates,_.mZ(q))})}},lLL=function(F){F.currentRefreshRequest=_.XYL(F.JSC$12846_playlistNetworkManager,F.listId,F.currentIndex,F.videoIds[F.currentIndex]);
_.Hr(F.currentRefreshRequest,function(){F.currentRefreshRequest=void 0}).then(function(q){F.JSC$12846_updateCallback(q.playlistId,q.playlistPanelRenderer,q.autoplayRenderer)})};
cQ.prototype.size=function(){return this.videoIds.length};var Ymj=function(F,q,t,u){u=u===void 0?[]:u;cQ.call(this,F,q,t,u);this.JSC$12846_playlistNetworkManager=F;this.listId=q;this.JSC$12846_updateCallback=t;this.videoIds=u};
_.M(Ymj,cQ);_.q4=function(F,q,t,u,J,g,Y){J=J===void 0?[]:J;Y=Y===void 0?rU:Y;cQ.call(this,F,q,t,J);this.JSC$12846_playlistNetworkManager=F;this.listId=q;this.JSC$12846_updateCallback=t;this.onAuthChange=u;this.videoIds=J;this.storage=g;this.cookieReader=Y;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.wC(_.mI,this.checkLoggedInStatusChange.bind(this),1E3)};
_.M(_.q4,cQ);_.l=_.q4.prototype;_.l.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.wC(_.mI,this.checkLoggedInStatusChange.bind(this),1E3)};
_.l.JSC$12846_setCurrentIndex=function(F){cQ.prototype.JSC$12846_setCurrentIndex.call(this,F);this.store()};
_.l.delete=function(){_.mI.cancelJob(this.queueSapisIdJob);cQ.prototype.delete.call(this)};
_.l.setListId=function(F){cQ.prototype.setListId.call(this,F);this.store()};
_.l.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var pYf=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Qod=["playerResponse","videoDetails"],e0j=["response","currentVideoEndpoint","watchEndpoint","videoId"],Zyr=["response","currentVideoEndpoint","watchEndpoint","playlistId"],R0n=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],rrf=["response","contents","twoColumnWatchNextResults","playlist","playlist"],Npz=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
wYf=["response","contents","twoColumnWatchNextResults"];var t8={},gpM=(t8.WEB_UNPLUGGED="^unplugged/",t8.WEB_UNPLUGGED_ONBOARDING="^unplugged/",t8.WEB_UNPLUGGED_OPS="^unplugged/",t8.WEB_UNPLUGGED_PUBLIC="^unplugged/",t8.WEB_CREATOR="^creator/",t8.WEB_KIDS="^kids/",t8.WEB_EXPERIMENTS="^experiments/",t8.WEB_MUSIC="^music/",t8.WEB_REMIX="^music/",t8.WEB_MUSIC_EMBEDDED_PLAYER="^music/",t8.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",t8);var VeM,g1w;VeM=function(F,q){this.networkManager=F;this.innertubeTransportService=q};
g1w=function(F,q,t){if(!_.n(q,_.sX))return _.mW(Error("Ff"));_.n(q,_.sX).videoIds=t;t={create_playlist_title:_.oD("QUEUE",void 0,"Queue")};return JtC(_.aI(F.innertubeTransportService,q,t),tDo)};
_.XYL=function(F,q,t,u){q={videoId:u,playlistId:q,playlistIndex:t};t=_.Jn(iNJ);return JtC(_.uW(F.innertubeTransportService,q,t),sAv)};
VeM.prototype.updatePlaylist=function(F,q){return JtC(_.aI(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:F,actions:q}}),uXt)};var iyn=function(F){this.storage=F},k2v;
iyn.prototype.store=function(F,q){q=q===void 0?0:q;if(this.storage&&F.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",F),this.storage.set("TLPQindex",String(q)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(t){}};
iyn.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
iyn.prototype.getPlaylistId=function(){if(!this.storage)return null;var F=null;try{F=this.storage.get("TLPQplaylist")}catch(q){}return F};var p8M=["navigationEndpoint","watchEndpoint","videoId"],Yno=["nextButtonVideo","watchEndpoint","videoId"];_.CG=new _.pg("NETWORK_TOKEN");_.JC=new _.pg("PAGE_TOKEN");_.J8=new _.pg("PLAYLIST_TOKEN");var E1z;E1z=new _.pg("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.da=new _.pg("INNERTUBE_TRANSPORT_TOKEN");var z0n,sh,n1f,MHf,G2w,Dxr;z0n=new Set(["ci","cr","carml"]);sh=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12893_parkedJobs=new Map;this.parkedProcessors=new Map};
_.g7=function(){sh.instance||(sh.instance=new sh);return sh.instance};
sh.prototype.onAny=function(F){return _.o1z(this,F,2)};
sh.prototype.parkOrScheduleJob=function(F,q,t,u,J){_.lW(this,t)?_.Gx().addJob(F,q,u):(J&&(F=n1f(F),MHf(this,F,q,t,J)),J=this.JSC$12893_parkedJobs.get(t),J||(this.JSC$12893_parkedJobs.set(t,[]),J=this.JSC$12893_parkedJobs.get(t)),J.push({job:F,priority:q,delay:u}))};
sh.prototype.addListener=function(F,q,t){t&&(q=n1f(q),MHf(this,q,0,F,t));t=this.parkedProcessors.get(F);t||(this.parkedProcessors.set(F,[]),t=this.parkedProcessors.get(F));t.push(q)};
sh.prototype.processSignal=function(F){if(!_.lW(this,F)){this.inProgressSignals.add(F);var q=this.JSC$12893_parkedJobs.get(F);if(q){q=_.X(q);for(var t=q.next();!t.done;t=q.next())t=t.value,_.Gx().addJob(t.job,t.priority,t.delay);this.JSC$12893_parkedJobs.delete(F)}if(q=this.parkedProcessors.get(F)){q=_.X(q);for(t=q.next();!t.done;t=q.next())t=t.value,t();this.parkedProcessors.delete(F)}this.signals.push(F);this.inProgressSignals.delete(F)}};
_.lW=function(F,q){return z0n.has(q)||_.yG("IS_HOMEPAGE_COLD")||_.yG("IS_RESULTS_PAGE_COLD")||_.yG("IS_WATCH_PAGE_COLD")?F.signals.indexOf(q)>=0:!0};
n1f=function(F){var q=!1;return function(){q||(q=!0,F())}};
MHf=function(F,q,t,u,J){if(Tp1.has(u))_.Gx().addJob(q,t,J);else{var g=F.compoundSignals.get(u);g&&_.Gx().addJob(function(){_.lW(F,u)||(g.isTimeoutConditionSatisfied?_.Gx().addJob(q,t):g.timeoutConditionObservers.push(function(){_.Gx().addJob(q,t)}))},t,J)}};
_.o1z=function(F,q,t){if(q.length>1){var u=[],J=Object.create(null);q=_.X(q);for(var g=q.next();!g.done;g=q.next())g=g.value,J[g]||(u.push(g),J[g]=!0);q=u}if(q.length===1)return q[0];g=q;u="";J=t===2?"|":"&";g.sort();g=_.X(g);for(var Y=g.next();!Y.done;Y=g.next())u+=Y.value+J;if(!F.compoundSignals.get(u)){J=0;g=[];Y=_.X(q);for(var Q=Y.next();!Q.done;Q=Y.next())Q=Q.value,J++,_.lW(F,Q)||g.push(Q);(t=t===2)&&J>g.length||!t&&!g.length?F.signals.push(u):G2w(F,u,t,q,g)}return u};
G2w=function(F,q,t,u,J){var g=J.length,Y=function(){t||--g===0?F.processSignal(q):Dxr(F,q)};
J=_.X(J);for(var Q=J.next();!Q.done;Q=J.next())F.addListener(Q.value,Y);F.compoundSignals.set(q,{signals:u,isOnAny:t,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Dxr(F,q)};
Dxr=function(F,q){if(!_.lW(F,q)){var t=F.compoundSignals.get(q);if(t&&!t.isTimeoutConditionSatisfied){for(var u=!1,J=0,g=0,Y=_.X(t.signals),Q=Y.next();!Q.done;Q=Y.next()){var e=Q.value;Q=!_.lW(F,e);Tp1.has(e)?u=!0:(e=F.compoundSignals.get(e))?Q&&!e.isTimeoutConditionSatisfied&&(g++,t.isInitialized||e.timeoutConditionObservers.push(function(){Dxr(F,q)})):Q&&J++}t.isInitialized=!0;
t.isOnAny?u&&(t.isTimeoutConditionSatisfied=!0):J===0&&g===0&&(t.isTimeoutConditionSatisfied=!0);if(t.isTimeoutConditionSatisfied)for(t=_.X(t.timeoutConditionObservers),u=t.next();!u.done;u=t.next())u=u.value,u()}}};
sh.prototype.processSignal=sh.prototype.processSignal;sh.prototype.parkOrScheduleJob=sh.prototype.parkOrScheduleJob;sh.prototype.onAny=sh.prototype.onAny;_.uo("ytsignals.getInstance",_.g7);sh.prototype.onAny=sh.prototype.onAny;sh.prototype.parkOrScheduleJob=sh.prototype.parkOrScheduleJob;sh.prototype.processSignal=sh.prototype.processSignal;var Tp1=new Set(["eop","eocs","dl","pcl"]);_.m4=new _.pg("MINIPLAYER_SERVICE");var XD,W2v,Oyf;XD=function(F,q,t){var u=_.B2.getInstance();if(!k2v){var J=new Mzo;var g=void 0,Y=_.bn("ID_TOKEN");Y&&J.isAvailable()&&(g=new xE(J,"yt-queue"+Y));k2v=new iyn(g)}J=k2v;g=_.g7();this.JSC$12900_actionRouter=u;this.pageManager=F;this.playlistManager=q;this.JSC$12900_playlistNetworkManager=t;this.storage=J;this.signals=g;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.YQ=function(){if(!W2v){var F=_.sV(),q=F.resolve(_.JU(_.JC)),t=F.resolve(_.JU(_.CG)),u=F.resolve(_.JU(_.J8));F=F.resolve(_.da);W2v=new XD(q,u,new VeM(t,F))}return W2v};
Oyf=function(F,q,t){if(t){var u;if(((u=F.responsePlaylistData)==null?void 0:u.playlistId)!==t)return}F.responsePlaylistData&&(t=Nto(q,F.responsePlaylistData),F.responsePlaylistData=(0,_.m7.unsafeClone)(F.responsePlaylistData),i7_(F.responsePlaylistData,t));t=F.temporaryItems.findIndex(function(J){return J.videoId===q});
t>-1&&F.temporaryItems.splice(t,1);_.p8(F,_.QY(F,F.response?F.response.autoplayRenderer:void 0))};
_.P9C=function(F,q){if(F.responsePlaylistData){var t=w8_(q,F.responsePlaylistData);i7_(F.responsePlaylistData,t);if(F.queueProxy){var u=F.queueProxy;t<0||(u.videoIds.splice(t,1),t<u.currentIndex&&u.JSC$12846_setCurrentIndex(u.currentIndex-1),u.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:q}),FD(u))}}_.p8(F,_.QY(F,F.response?F.response.autoplayRenderer:void 0))};
XD.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.p8(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
XD.prototype.setPlaylistData=function(F,q,t){this.temporaryItems=[];this.listId=F;this.responsePlaylistData=q;_.p8(this,_.QY(this,t))};
var xxz=function(F){return(F==null?0:F.playlistId)?F.playlistId:"PPSV"},Ar1=function(F){return F&&F.playlistId?F.playlistId==="PPSV"?!0:iCf(_.u1().getState().entities,F.playlistId):!1};
XD.prototype.isPlayingOfflineVideo=function(){return this.response?Ar1(this.response):!1};
XD.prototype.closeMiniplayer=function(F){var q=this.queueProxy&&this.queueProxy.size()<=1,t=_.sV().resolve(_.m4);if(!this.queueProxy||q)this.queueProxy&&this.clearQueue(),t.close(!0);else{t.pipController.getWindow()&&window.focus();q=this.responsePlaylistData;var u=this.temporaryItems.length+(q&&q.contents?q.contents.length:0);q=_.oD("QUEUE_CLEARED_UNPLURALIZED")||_.nJ("QUEUE_CLEARED",u);q=_.l1(q);t=_.oD("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");u=_.oD("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.nJ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",u);var J=_.oD("MINIPLAYER_CLOSE",void 0,"Close"),g=_.oD("CANCEL",void 0,"Cancel");_.Kg(this.JSC$12900_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.FK(t),dialogMessages:[_.FK(u)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.FK(J),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
q]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.FK(g)}}}}}}],F)}};
_.QY=function(F,q){var t={},u=F.response;t.autoplayRenderer=q;if(!F.responsePlaylistData&&!F.temporaryItems.length)return!u||!u.hasRelatedVideoData&&_.E("kevlar_prefetch_data_augments_network_data")||(t.playerData={rvs:u.relatedVideoArgs,endScreenRenderer:u.endScreenRenderer}),t;t.playerData={};if(F.index===void 0)return _.mH(Error("Hf")),t;t.panel=F.responsePlaylistData?(0,_.m7.unsafeClone)(F.responsePlaylistData):{titleText:_.FK(_.oD("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
q=t.panel;if(q.contents)for(var J=_.X(F.temporaryItems),g=J.next();!g.done;g=J.next())q.contents.push({playlistPanelVideoRenderer:g.value});F.queueProxy&&u&&u.playingVideo&&u.playingVideoId&&!rtW(u.playingVideoId,t.panel)&&(q=u.playingVideo,J=t.panel,g=F.index,J.contents&&J.contents.splice(g===void 0?0:g,0,{playlistPanelVideoRenderer:q}));u&&u.playingVideoId&&(q=F.index,J=t.panel,q=!J.contents||q>=J.contents.length?void 0:J.contents[q].playlistPanelVideoRenderer,q&&q.videoId===u.playingVideoId||(q=
Nto(u.playingVideoId,t.panel),F.index=q!==-1?q:F.index?F.index-1:0));q=Rsu(F.index+1,t.panel);J=void 0;F.index>0&&(J=Rsu(F.index-1,t.panel));if(J||q)t.autoplayRenderer=QAW(q,J,t.autoplayRenderer);!q&&(u==null?0:u.relatedVideoArgs)&&(t.playerData.rvs=u.relatedVideoArgs);u=u?u.playlistIndexOffset:0;F.queueProxy?zsv(t.panel,F.index,u,Z7W,!0,!0,!0):zsv(t.panel,F.index,u);t.playerData.playlistPanelRenderer=t.panel;return t};
XD.prototype.openToast=function(F){_.sV().resolve(_.m4).openToast(F,_.oD("ADDED_TO_QUEUE",void 0,"Added to queue"))};
XD.prototype.isMiniplayerActive=function(){return _.sV().resolve(_.m4).isMiniplayerActive()};
_.p8=function(F,q){F.playlistManager.setAutoplayRenderer(q.autoplayRenderer||null);F.playlistManager.setPlaylistData(q.panel||null);q.playerData&&F.playlistManager.setPlayerPlaybackControlData(q.playerData)};var npP="#";var v1r={},ILn={},HyC={},mxz={},$xL={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:(v1r.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",v1r),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:(ILn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",ILn),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:(HyC.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",HyC),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:(mxz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",mxz),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 spW=[{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:$xL},{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:$xL}}];var LeW;_.wa=[[["NzZxY2tpbmQjbHZsdWoxOHA=","dmFsdWUjZWc5MjF1Mm9haGpy"],"QURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjY2FvdXZlbWZvbXdx"]];
LeW=[[["YTBsOTVmNHAyeWJzcHJpbWFyeSM=",null,null],[null,["cmVuZGVyZXIjOW5oYjloZjhkZWxjeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMt","c3R5bGUtc2NvcGUjZTMzdm9ram5jc3k5"],null],["bWFzdGhlYWQtYWQjaXh0N2dwZmtqZjR4",["OHB5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2JiZDAza3owNHA="],null],[null,["a215dGQtcmljaC1ncmlkLXJlbmRlcmVyIzN4bG4xNDJib2c=","MThtc3R5bGUtc2NvcGUjOWV2MW5xaHM="],null],[null,["YmFubmVyLXByb21vLXJlbmRlcmVyI3Y4anIyZzRwaTR0M3l0ZC0=","c3R5bGUtc2NvcGUjaHB6eDdhYzBwc202"],null],[null,["Y2p5enIzeXRkLWFkLXNsb3QtcmVuZGVyZXIjZWR4OW5y"],
null]],[["M2l1cGxheWVyLWFkcyNuY2dobm01d2k=",null,null]]];_.N1=["Y2tzIzgydmpiZnNkOGwwOWdsb2JhbENhbGxiYQ==","NGt3b29uQWJub3JtYWxpdHlEZXRlY3RlZCNyOXpoM3ZzYw==","czIycnEyOTl3b25BZFNraXAjZXlr","aW5hbXJ5eGZyYXdfcGxheWVyX3Jlc3BvbnNlIzFlZzM=","b3RzIzFkM2lzNG91Y2tyYWRTbA=="];_.e$="Y2tzIzgydmpiZnNkOGwwOWdsb2JhbENhbGxiYQ== NGt3b29uQWJub3JtYWxpdHlEZXRlY3RlZCNyOXpoM3ZzYw== czIycnEyOTl3b25BZFNraXAjZXlr aW5hbXJ5eGZyYXdfcGxheWVyX3Jlc3BvbnNlIzFlZzM= ZV9za2lwc19rcyM4Y3Uyb2o2enI2Zm13ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbA== d3VhM2ZoMXN0YWJfc2FfZWYjZTF6 b3RzIzFkM2lzNG91Y2tyYWRTbA==".split(" ");var ZD;ZD=function(F,q,t){this.ovb=F;this.isAsync=q;this.t9p=t};
_.weW=[new ZD("b.f_",!1,0),new ZD("j.s_",!1,2),new ZD("r.s_",!1,4),new ZD("e.h_",!1,6),new ZD("i.s_",!0,8),new ZD("s.t_",!1,10),new ZD("p.h_",!1,12),new ZD("s.i_",!1,14),new ZD("f.i_",!1,16),new ZD("a.b_",!1,18),new ZD("a.o_",!1),new ZD("g.o_",!1,22),new ZD("p.i_",!1,24),new ZD("p.m_",!1),new ZD("n.k_",!0,20),new ZD("i.f_",!1),new ZD("a.s_",!0),new ZD("m.c_",!1),new ZD("n.h_",!1,26),new ZD("o.p_",!1),new ZD("m.p_",!0,28),new ZD("o.a_",!1),new ZD("d.p_",!1),new ZD("e.i_",!1)].reduce(function(F,q){F[q.ovb]=
q;return F},{});var byf=function(){};
byf.prototype.flush=function(F,q){F=F===void 0?[]:F;q=q===void 0?!1:q;if(_.E("enable_client_streamz_web")){F=_.X(F);for(var t=F.next();!t.done;t=F.next())t=B$J(t.value),this.rootSpec&&_.My(t,2,this.rootSpec),t={serializedIncrementBatch:_.A9(t.JSC$9600_serializeBinary())},_.IJ("streamzIncremented",t,{sendIsolatedPayload:q})}};
var DTP=function(){};
_.M(DTP,byf);var yrL=function(F){var q=new CeC;var t=new $yr;t=_.OF(t,1,"botguard");F=_.OF(t,2,F);this.rootSpec=_.T9(q,1,dyn,F)};
_.M(yrL,byf);var Zn,C9J=new Map;var cty,O7v,b7A,Ato,H7C,Ke_,q9v,SnC;cty=2;O7v=2;b7A=2;Ato=2;H7C=2;Ke_=2;q9v=2;SnC=new dqe;var VHJ,Uxz,Smd;VHJ=function(){this.ongoingFlowNonces=new Map};
_.zr=function(){Uxz||(Uxz=new VHJ);return Uxz};
_.kh=function(F,q,t){return{eventType:{flowEventNamespace:F,flowEventType:q},metadata:t,statusCode:void 0,csn:void 0,can:void 0}};
_.kKu=function(F,q){var t=_.zr(),u=Smd(t,q,!0);_.Ey(t,F,q,u)};
_.Ey=function(F,q,t,u){F={flowNonce:u||Smd(F,t),flowType:t,flowEventType:q.eventType};q.metadata&&(F.flowMetadata=q.metadata);q.statusCode!==void 0&&(F.flowEventStatus=q.statusCode);q.csn&&(F.csn=q.csn);q.can&&(F.can=q.can);_.IJ("flowEvent",F,void 0)};
Smd=function(F,q,t){t=t===void 0?!1:t;var u=F.ongoingFlowNonces.get(q);if(!u||t)u=mO(16),F.ongoingFlowNonces.set(q,u);return u};_.h0f=new CaC;var nTM={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var Rg=function(F,q,t,u,J,g,Y){t=t===void 0?!1:t;u=u===void 0?!1:u;g=g===void 0?_.YQ():g;this.hasRun=!1;this.spM=F;this.sw2=q;this.aWp=t;this.fromHistory=u;this.previousVideoId=J;this.hc7=g;this.tempData=Y;this.nPg=new _.Vrr};
_.M(Rg,EX);Rg.prototype.validate=function(F){return!(!F.data.playerResponse||F.data.page!=="watch"&&F.data.page!=="learning_journey_watch"&&F.data.page!=="shorts"||this.hasRun)};
Rg.prototype.handle=function(F){var q=this,t=_.n(F.endpoint,_.Fw),u=_.n(F.endpoint,_.Px);if(_.E("kevlar_continue_playback_without_player_response")&&(t==null?0:t.videoId)&&this.previousVideoId&&(t==null?void 0:t.videoId)===this.previousVideoId&&(t==null?0:t.continuePlayback)&&!this.fromHistory)this.spM.resolve();else{var J={};t?J.watch_endpoint=t:u&&(J.watch_endpoint=u,u.endTimeSeconds&&(J.end=u.endTimeSeconds));F.data.page==="watch"?(F.data.filler||this.aWp||(_.CJ("cfg"),_.B2.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(J,K2C(this,F.endpoint)),_.E("enable_masthead_quartile_ping_fix")&&Object.assign(J,Bpe(this)),Object.assign(J,void 0),F.data.forceExternalPlaylist&&(J.external_list=!0)):F.data.page==="shorts"?_.B2.getInstance().triggerAction("yt-start-loading-shorts"):F.data.page==="learning_journey_watch"&&_.B2.getInstance().triggerAction("yt-start-loading-learning-journey");if(t=this.sw2()){try{t.loadVideoWithPlayerResponse(F.data.playerResponse,J),t.getPlayerPromise().then(this.spM.resolve)}catch(g){_.mH(g),
this.spM.resolve()}this.hasRun=!0;t.getPlayerPromise().then(function(g){g.addEventListener("onAbnormalityDetected",function(){var Y=F.data.playerResponse,Q=g.getVideoData().cpn;q9v=0;_.dxn=Q;if(Q=N8y(Y))q.nPg.increment("IN_PLAYER"),_.nG(5),_.E("ab_st_vid_ks")?g.pauseVideo(!0):g.stopVideo(),Y.playabilityStatus=Object.assign({},Y.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:Q}}),Y.videoDetails=void 0,_.B2.getInstance().triggerOptionalAction("yt-updated-playability-status",
Y.playabilityStatus)})})}else _.bz(Error("Kf"))}};
var K2C=function(F,q){var t=_.n(q,_.Fw);if(q&&t&&t.playlistId&&t.videoId&&(F=F.hc7,F.queueProxy?(F=F.queueProxy,t=F.listId===t.playlistId?F.attributionData.get(t.videoId):void 0):t=void 0,t))return{queue_info:t}},Bpe=function(F){var q;
if((q=F.tempData)==null?0:q.adpings)return{adpings:F.tempData.adpings}};var r7=function(F,q,t){this.hasRun=!1;this.ecg=F;this.g8y=q;this.mwp=t};
_.M(r7,EX);r7.prototype.validate=function(F){return!!_.m7.getValueByKeys.apply(null,[F.data].concat(_.mZ(wYf)))};
r7.prototype.handle=function(F){var q=this;this.ecg.promise.then(function(){var t=F.data;var u=_.m7.getValueByKeys.apply(null,[t].concat(_.mZ(pYf))),J=_.m7.getValueByKeys.apply(null,[t].concat(_.mZ(rrf))),g=_.m7.getValueByKeys.apply(null,[t].concat(_.mZ(e0j)));var Y=(Y=_.m7.getValueByKeys.apply(null,[t].concat(_.mZ(Qod))))?{videoId:Y.videoId,thumbnail:Y.thumbnail,title:Y.title?_.FK(Y.title):void 0,shortBylineText:Y.author?_.FK(Y.author):void 0}:void 0;var Q=void 0;_.E("web_get_playlist_id_from_current_endpoint_ks")||
(Q=_.m7.getValueByKeys.apply(null,[t].concat(_.mZ(Zyr))));var e=_.m7.getValueByKeys.apply(null,[t].concat(_.mZ(Npz))),r=_.m7.getValueByKeys.apply(null,[t].concat(_.mZ(R0n))),N=!!e||!!r&&!!r.results&&r.results.length>0,w=0;J&&J.currentIndex&&J.localCurrentIndex&&(w=J.currentIndex-J.localCurrentIndex);J&&J.playlistId&&(Q=J.playlistId);t={rawResponse:t,autoplayRenderer:u,hasRelatedVideoData:N,playingVideo:Y,playingVideoId:g,playlistPanelRenderer:J,playlistId:Q,playlistIndex:J&&J.currentIndex,relatedVideoArgs:e,
endScreenRenderer:r,playlistIndexOffset:w};a:{u=q.mwp;J=q.g8y;u.response=t;if(Ar1(t))u.downloadPlaylistProxy&&u.downloadPlaylistProxy.getPlaylistId()===xxz(t)||(u.downloadPlaylistProxy=new tHL(xxz(t),u.setPlaylistData.bind(u),u.isPlayingOfflineVideo.bind(u))),u.responsePlaylistData=u.downloadPlaylistProxy.getPlaylistData(),u.listId=xxz(t),u.index=0;else if(t.playlistPanelRenderer&&t.playlistId&&t.autoplayRenderer)t.playlistId.startsWith("TLPQ")?u.queueProxy?u.listId===t.playlistId?(u.index=t.playlistIndex,
u.responsePlaylistData=t.playlistPanelRenderer,u.queueProxy.JSC$12846_setCurrentIndex(u.index)):t.playingVideoId&&u.index!==void 0&&J.clientParams.autoSaveToQueue&&(u.index+=1,u.queueProxy.JSC$12846_setCurrentIndex(u.index),u.queueProxy.addVideos([t.playingVideoId],{},u.index)):(u.queueProxy=new _.q4(u.JSC$12900_playlistNetworkManager,t.playlistId,u.setPlaylistData.bind(u),u.clearQueue.bind(u),_.kkM(t.playlistPanelRenderer),u.storage),u.responsePlaylistData=t.playlistPanelRenderer,u.listId=t.playlistId,
u.index=t.playlistIndex):(u.index=t.playlistIndex,u.listId!==t.playlistId&&u.clearQueue(),u.responsePlaylistData=t.playlistPanelRenderer,u.listId=t.playlistId,u.playlistProxy=new Ymj(u.JSC$12900_playlistNetworkManager,t.playlistId,u.setPlaylistData.bind(u),_.kkM(t.playlistPanelRenderer)));else if(!u.queueProxy)u.responsePlaylistData=void 0;else if(t.playingVideoId&&J.clientParams.autoSaveToQueue){if(u.index===void 0){_.mH(Error("Gf"));u.clearQueue();break a}u.queueProxy.videoIds.includes(t.playingVideoId)||
(u.index+=1,u.queueProxy.JSC$12846_setCurrentIndex(u.index),u.queueProxy.addVideos([t.playingVideoId],{},u.index))}_.p8(u,_.QY(u,u.response.autoplayRenderer))}})};var L2d=function(F,q){q=q===void 0?_.YQ():q;HQ.call(this);this.sP.push(new r7(this.gA,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},q));this.sP.push(new Rg(this.gA,F,!1,!1));_.E("web_response_commands_chunk_processor")&&this.sP.push(new mL)};
_.M(L2d,HQ);L2d.prototype.processChunk=function(F){F&&F.data.player===void 0&&this.gA.resolve();HQ.prototype.processChunk.call(this,F)};var N4=function(F,q){F=F===void 0?{layer:0}:F;this.hasRun=!1;this.createScreenConfig=F;this.f54=q};
_.M(N4,EX);N4.prototype.validate=function(F){return!(this.hasRun||!F.endpoint)};
N4.prototype.handle=function(F){var q=_.DP(),t,u,J=(u=_.n((t=F.endpoint)==null?void 0:t.commandMetadata,_.EH))==null?void 0:u.rootVe;this.f54&&J?_.OX(q,J,this.f54,this.createScreenConfig):bNC(q,F.endpoint,this.createScreenConfig);this.hasRun=!0};var w7=function(F,q){this.hasRun=!1;this.gP4=F;this.previousVideoId=q};
_.M(w7,EX);w7.prototype.validate=function(F){return _.E("kevlar_continue_playback_without_player_response")&&(F=_.n(F.endpoint,_.Fw),(F==null?0:F.videoId)&&this.previousVideoId&&(F==null?void 0:F.videoId)===this.previousVideoId&&(F==null?0:F.continuePlayback))?!1:this.gP4.tlI===0};
w7.prototype.handle=function(F){_.B2.getInstance().triggerAction("yt-stop-old-player",F.data,!0)};var fLd=function(F){F=F===void 0?{layer:0}:F;HQ.call(this);this.sP.push(new w7(this));this.sP.push(new N4(F));this.sP.push(new Il(F))};
_.M(fLd,HQ);var iW=function(){EX.apply(this,arguments)};
_.M(iW,EX);iW.prototype.validate=function(F){return!!F.data.preconnect};
iW.prototype.handle=function(F){_.y0("bc");F=_.X(F.data.preconnect);for(var q=F.next();!q.done;q=F.next())q=q.value,(new Image).src=q};var aLr=function(F,q,t,u,J,g,Y){t=t===void 0?{layer:0}:t;g=g===void 0?_.YQ():g;HQ.call(this);if(u)if(J){J=g;this.sP.push(new r7(this.gA,q,J));this.sP.push(new iW);var Q,e;this.sP.push(new Rg(this.gA,F,!1,!((Q=q.clientParams)==null||!Q.fromHistory),(e=q.clientParams)==null?void 0:e.previousVideoId,J,q.tempData));var r;this.sP.push(new w7(this,(r=q.clientParams)==null?void 0:r.previousVideoId));var N;(N=q.clientParams)!=null&&N.fromHistory||(t.layer||(t=Object.assign({},t,{layer:0})),this.sP.push(new N4(t,
Y)),this.sP.push(new Il(t)))}else this.sP.push(new r7(this.gA,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},g)),this.sP.push(new Rg(this.gA,F,!1,!1));else this.sP.push(new w7(this)),this.sP.push(new N4(t)),this.sP.push(new Il(t));_.E("web_response_commands_chunk_processor")&&u&&this.sP.push(new mL)};
_.M(aLr,HQ);aLr.prototype.processChunk=function(F){F&&F.data.player===void 0&&this.gA.resolve();HQ.prototype.processChunk.call(this,F)};var joE=function(){this.hasRun=this.hasRun=!1};
_.M(joE,EX);joE.prototype.validate=function(F){return!this.hasRun&&!(!F.data.csn||!F.data.rootVe)};
joE.prototype.handle=function(F){this.hasRun=!0;_.dQ(F.data.csn,F.data.rootVe,3)};var crL=function(F,q,t){t=t===void 0?{layer:0}:t;HQ.call(this);this.sP.push(new Rg(this.gA,F));this.sP.push(new N4(t));this.sP.push(new Il(t))};
_.M(crL,HQ);var FFn=function(F,q,t,u,J){t=t===void 0?{layer:0}:t;u=u===void 0?_.YQ():u;HQ.call(this);var g=!!q&&!!q.clientParams&&!!q.clientParams.miniplayer;g&&this.sP.push(new joE);this.sP.push(new r7(this.gA,q,u));this.sP.push(new iW);var Y,Q;this.sP.push(new Rg(this.gA,F,g,!((Y=q.clientParams)==null||!Y.fromHistory),(Q=q.clientParams)==null?void 0:Q.previousVideoId,u,q.tempData));var e;this.sP.push(new w7(this,(e=q.clientParams)==null?void 0:e.previousVideoId));var r;(r=q.clientParams)!=null&&r.fromHistory||
(t.layer||(t=Object.assign({},t,{layer:g?3:0})),this.sP.push(new N4(t,J)),this.sP.push(new Il(t)));_.E("web_response_commands_chunk_processor")&&this.sP.push(new mL)};
_.M(FFn,HQ);var kQ,uWx;kQ={};
_.q6J=(kQ["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},kQ["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},kQ["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},kQ["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},kQ["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},kQ["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},kQ["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},kQ);_.Eh=new _.dB("yt-edu");_.tkw=function(){this.JSC$13004_eduDisplayedThisLoad_={}};
uWx=function(F){var q=_.tkw.getInstance();var t=_.YE("kevlar_tooltip_impression_cap");q=t&&parseInt(_.Eh.get(F+"-impression")||0,10)>=t||_.Eh.get(F+"-dismissed")?!1:(t=_.q6J[F])&&!q.JSC$13004_eduDisplayedThisLoad_[t.setKey||F]&&(t.titleText&&_.oD(t.titleText)||t.bodyText&&_.oD(t.bodyText))?!0:!1;if(!q)return null;q=_.q6J[F];if(!q)return null;t=q.bodyText?_.oD(q.bodyText):void 0;var u=q.titleText?_.oD(q.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:q.position,popup:{bubbleHintRenderer:{text:u?
_.FK(u):void 0,detailsText:t?_.FK(t):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.FK(_.oD("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:F}}]}}}}}}}},{eduImpressionAction:{key:F}}]};
_.Ja(_.tkw);var ETC=!1;for(var J0j="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),sHL=[],z_=6;z_>=1;z_--)sHL.push({columnCount:z_,query:z_==1?0:z_*2*107-4+32,className:"grid-"+z_+"-columns",width:z_*2*107+"px"});_.lYL=function(F){this.actionRouter_=F=F===void 0?_.B2.getInstance():F;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.guj(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.guj=function(F){var q=F.miniGuideVisible_?72:0,t=F.documentWidth_-(F.guidePersistentAndVisible_?240:q);return sHL.find(function(u){return t>u.query})};
_.Ja(_.lYL);var XJE=function(){var F=this;this.JSC$13016_keyboardInUse=!1;document.addEventListener("keydown",function(){F.onKeydown()});
document.addEventListener("mousedown",function(){F.JSC$13016_keyboardInUse=!1})},Y6O;
XJE.prototype.isKeyBoardInUse=function(){return this.JSC$13016_keyboardInUse};
XJE.prototype.onKeydown=function(){this.JSC$13016_keyboardInUse=!0};var pJ1,M4;_.og=new _.dB("yt-mentions");_.n8=function(){};
pJ1=function(F,q){return M4(q,"drag-to-reorder-edu-displayed")};
M4=function(F,q,t,u,J,g){t=t===void 0?"OPEN_POPUP_POSITION_TOP":t;if(q){if(_.og.get(q))return;_.og.set(q,!0,u)}if(J&&g!==void 0){q=Number(_.og.get(J)||0);if(q>=g)return;_.og.set(J,q+1)}return[{openPopupAction:{popupType:"HINT",position:t,popup:{bubbleHintRenderer:{detailsText:F,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Ja(_.n8);var QHL,eej,ZbL;QHL=function(F,q,t,u){this.JSC$13026_taskManager_=F;this.onFulfilled_=typeof q==="function"?q:null;this.onRejected_=typeof t==="function"?t:null;this.JSC$13026_context_=u};
eej=function(F,q){F.onFulfilled_&&_.AC(F.JSC$13026_taskManager_,function(){F.onFulfilled_.call(F.JSC$13026_context_,q)})};
ZbL=function(F,q){F.onRejected_&&_.AC(F.JSC$13026_taskManager_,function(){F.onRejected_.call(F.JSC$13026_context_,q)})};
_.T_=function(F){this.JSC$13029_taskManager_=F;this.callbacks_=[]};
_.T_.prototype.then=function(F,q,t){this.callbacks_.push(new QHL(this.JSC$13029_taskManager_,F,q,t));return this};
_.T_.prototype.onSuccess=function(F){this.callbacks_.forEach(function(q){eej(q,F)})};
_.T_.prototype.onFailure=function(F){this.callbacks_.forEach(function(q){ZbL(q,F)})};
_.T_.prototype.cancel=function(){this.callbacks_.length=0};
aoC(_.T_);_.T8q=null;_.PT=new _.pg("ACTIVITY_TOKEN");var G_=function(F,q){this.serviceId=new aAv(F,q)};
G_.prototype.toString=function(){return this.serviceId.toString()};var ReL=function(){this.internalMap={}};
_.l=ReL.prototype;_.l.contains=function(F){return Object.prototype.hasOwnProperty.call(this.internalMap,F)};
_.l.get=function(F){if(this.contains(F))return this.internalMap[F]};
_.l.set=function(F,q){this.internalMap[F]=q};
_.l.getKeys=function(){return Object.keys(this.internalMap)};
_.l.remove=function(F){delete this.internalMap[F]};var DD=function(){this.mappings=new ReL;this.errorCallbacks=new Set};
DD.prototype.getModuleId=function(F){return F.serviceId.getModuleId()};
DD.prototype.get=function(F){var q=this.mappings.get(F.toString());return r0O(this,q,F)};
DD.prototype.getMultipleAsync=function(){var F=_.US.apply(0,arguments),q=this,t=F.map(function(e){return q.getModuleId(e)}),u=F.map(function(e){return q.mappings.get(e.toString())}).filter(function(e){return e});
if(u.length===F.length)return _.NU(u.map(function(e,r){return r0O(q,e,F[r])}));
var J=Hd().loadMultiple(t);u=_.IR(t.map(function(e){return J[e]}));
var g=document.hidden,Y=-1,Q=_.YE("get_async_timeout_ms",-1);Q>-1&&(Y=setTimeout(function(){_.bz(new _.D0("Module timeout.",t,g,document.hidden))},Q));
return _.Hr(u.then(function(){return F.map(function(e){return r0O(q,q.mappings.get(e.toString()),e)})}).thenCatch(function(e){for(var r=_.X(q.errorCallbacks),N=r.next();!N.done;N=r.next())N=N.value,N(e);
throw e;}),function(){clearTimeout(Y)})};
DD.prototype.registerService=function(F,q){this.mappings.set(F.toString(),{type:"mapping",value:q});return F};
var r0O=function(F,q,t){switch(q.type){case "mapping":return q.value;case "factory":return q=q.value(),F.mappings.set(t.toString(),{type:"mapping",value:q}),q;default:return _.Uv(q)}};
DD.prototype.onLoadError=function(F){var q=this;this.errorCallbacks.add(F);return function(){q.errorCallbacks.delete(F)}};
_.WG=new DD;var Pro=/^[a-zA-Z0-9_\-]{11}$/;var x$y=_.Wk(function(){var F,q;return(q=(F=window).matchMedia)==null?void 0:q.call(F,"(prefers-reduced-motion: reduce)").matches});var NDr=_.Wk(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var F=_.S6("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");F||(F=_.nr("VIDEO"),_.uo("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
F));return!!(F&&F.canPlayType&&F.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var $$P=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Oh;Oh=function(){this.tokenJars={};if(this.cookiesEnabled=_.Mh()){var F=_.om.get("CONSISTENCY",void 0);F&&wJJ(this,{encryptedTokenJarContents:F})}};
_.yFy=function(){Oh.instance||(Oh.instance=new Oh);return Oh.instance};
Oh.prototype.handleResponse=function(F,q){if(!q)throw Error("Qf");var t,u;q=((t=q.innerTubeRequest.context)==null?void 0:(u=t.request)==null?void 0:u.consistencyTokenJars)||[];var J;(F=(J=F.responseContext)==null?void 0:J.consistencyTokenJar)&&this.replace(q,F)};
Oh.prototype.replace=function(F,q){F=_.X(F);for(var t=F.next();!t.done;t=F.next())delete this.tokenJars[t.value.encryptedTokenJarContents];wJJ(this,q)};
var wJJ=function(F,q){if(q.encryptedTokenJarContents&&(F.tokenJars[q.encryptedTokenJarContents]=q,typeof q.expirationSeconds==="string")){var t=Number(q.expirationSeconds);setTimeout(function(){delete F.tokenJars[q.encryptedTokenJarContents]},t*1E3);
F.cookiesEnabled&&_.nE("CONSISTENCY",q.encryptedTokenJarContents,t,void 0,!0)}};var ibC,PG;ibC=window.location.hostname.split(".").slice(-2).join(".");_.b1=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var F=_.bn("LOCATION_PLAYABILITY_TOKEN");_.bn("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=kOn(this))&&(F=this.localStorage.get("yt-location-playability-token"));F&&(this.locationPlayabilityToken=F,this.mostRecentPosition=void 0)};
_.b1.getInstance=function(){PG=_.S6("yt.clientLocationService.instance");PG||(PG=new _.b1,_.uo("yt.clientLocationService.instance",PG));return PG};
_.b1.prototype.setLocationOnInnerTubeContext=function(F){F.client||(F.client={});if(this.mostRecentPosition)F.client.locationInfo||(F.client.locationInfo={}),F.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),F.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),F.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),F.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)F.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.b1.prototype.handleResponse=function(F){var q;F=(q=F.responseContext)==null?void 0:q.locationPlayabilityToken;F!==void 0&&(this.locationPlayabilityToken=F,this.mostRecentPosition=void 0,_.bn("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=kOn(this))&&this.localStorage.set("yt-location-playability-token",F,15552E3):_.nE("YT_CL",JSON.stringify({loctok:F}),15552E3,ibC,!0))};
var kOn=function(F){return F.localStorage===void 0?new _.dB("yt-client-location"):F.localStorage};
_.b1.prototype.clearLocationPlayabilityToken=function(F){F==="TVHTML5"?(this.localStorage=kOn(this))&&this.localStorage.remove("yt-location-playability-token"):_.Nj3("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.b1.prototype.getCurrentPositionFromGeolocation=function(){var F=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Rf"));var q=!1,t=1E4;_.bn("INNERTUBE_CLIENT_NAME")==="MWEB"&&(q=!0,t=15E3);return new Promise(function(u,J){navigator.geolocation.getCurrentPosition(function(g){F.mostRecentPosition=g;u(g)},function(g){J(g)},{enableHighAccuracy:q,
maximumAge:0,timeout:t})})};
_.b1.prototype.createUnpluggedLocationInfo=function(F){var q={};F=F.coords;if(F==null?0:F.latitude)q.latitudeE7=Math.floor(F.latitude*1E7);if(F==null?0:F.longitude)q.longitudeE7=Math.floor(F.longitude*1E7);if(F==null?0:F.accuracy)q.locationRadiusMeters=Math.round(F.accuracy);return q};
_.b1.prototype.createLocationInfo=function(F){var q={};F=F.coords;if(F==null?0:F.latitude)q.latitudeE7=Math.floor(F.latitude*1E7);if(F==null?0:F.longitude)q.longitudeE7=Math.floor(F.longitude*1E7);return q};var Eue=function(){};
_.l=Eue.prototype;
_.l.JSC$13096_getRequest=function(F,q,t){q=q===void 0?{}:q;t=t===void 0?s0x:t;var u=q;if(this.isNavigationCommand()){var J,g=(J=_.n(F==null?void 0:F.commandMetadata,_.EH))==null?void 0:J.url;u=_.Crt(F.clickTrackingParams,!0,!1,g,this.JSC$13096_getClientScreen(u))}else u=_.Crt(F.clickTrackingParams,!1,this.includeCsn);u={context:u};if(J=this.getExtension(F))return this.JSC$13096_buildRequest(u,J,q),J=this.getApiUrl(F),g=Object.assign({},{command:F},this.getRequestConfig(F,q)),u={input:J,requestShell:jd(J),
innerTubeRequest:u,config:g},u.config.authStrategy?u.config.authStrategy.identity=t:u.config.authStrategy={identity:t},(F=this.JSC$13096_getRequestKey(F,q))&&!u.config.requestKey&&(u.config.requestKey=F),u;F=new _.D0("Error: Failed to create Request from Command.",F);_.mH(F)};
_.l.getApiUrl=function(F){var q=_.Jn(this.getApiPaths(F)),t;(F=(t=_.n(F.commandMetadata,_.EH))==null?void 0:t.apiUrl)&&(q=F);return rMv(Rno(q))};
_.l.isNavigationCommand=function(){return!1};
_.l.JSC$13096_getClientScreen=function(){};
_.l.JSC$13096_getRequestKey=function(){};
_.l.getRequestConfig=function(){};
_.JJ.Object.defineProperties(Eue.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var xQ=function(){};
_.M(xQ,Eue);xQ.prototype.JSC$13103_getStoreKey=function(){};
xQ.prototype.JSC$13096_getRequestKey=function(F,q){q=q===void 0?{}:q;return this.JSC$13103_getStoreKey(F,q)};var ouO;_.A8=function(F,q,t){var u=t&&t>0?t:0;t=u?Date.now()+u*1E3:0;if((u=u?(0,_.zeJ)():ouO())&&window.JSON){typeof q!=="string"&&(q=JSON.stringify(q,void 0));try{u.set(F,q,t)}catch(J){u.remove(F)}}};
_.vG=function(F){var q=ouO(),t=(0,_.zeJ)();if(!q&&!t||!window.JSON)return null;try{var u=q.get(F)}catch(J){}if(typeof u!=="string")try{u=t.get(F)}catch(J){}if(typeof u!=="string")return null;try{u=JSON.parse(u,void 0)}catch(J){}return u};
_.Ig=function(F){try{var q=ouO(),t=(0,_.zeJ)();q&&q.remove(F);t&&t.remove(F)}catch(u){}};
_.zeJ=_.Wk(function(){try{var F=new nvP;var q=F.isAvailable()?F:null}catch(t){return null}return q?new _.Zt(q):null});
ouO=_.Wk(function(){var F=new Mzo;return F.isAvailable()?new _.Zt(F):null});var sL=new _.pg("ENTITY_STATE_TOKEN"),HG=new _.pg("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var nuw=XMLHttpRequest.prototype.fetch,Mkd=nuw&&nuw.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!qE?!0:!1;var mS=function(F){this.JSC$13108_storeWithEntities=F};
_.M(mS,xQ);_.l=mS.prototype;_.l.getApiPaths=function(){return Cr1};
_.l.getExtension=function(F){return _.n(F,_.Fw)||_.n(F,_.Px)||_.n(F,buz)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$13103_getStoreKey=function(F){if((_.E("kevlar_cache_on_ttl_player")||_.E("mweb_enable_shorts_innertube_player_prefetch")||_.E("mweb_use_new_history_manager")||_.E("web_shorts_prefetch_service_enabled"))&&(F=this.getExtension(F))&&F.videoId){var q={videoId:F.videoId};F.playlistId&&(q.playlistId=F.playlistId);F.playerParams&&(q.params=F.playerParams);return _.cW("player",q)}};
_.l.JSC$13096_getClientScreen=function(F){var q;return((q=F.contentPlaybackContext)==null?void 0:q.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.l.JSC$13096_buildRequest=function(F,q,t){if(_.E("enable_interstitial_entity_check")){var u=this.JSC$13108_storeWithEntities;if(q.videoId)for(var J=_.X(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),g=J.next();!g.done;g=J.next()){g=g.value;var Y;var Q=void 0,e=void 0,r=q.videoId,N=g;(Y=u)?(r=_.wj(r+N,"interstitialInteractionStateEntity"),Y=(Q=(e=_.iC(Y.getState().entities,"interstitialInteractionStateEntity",r))==null?void 0:e.primaryButtonClicked)!=null?Q:!1):Y=!1;if(Y)switch(g){case "CONTENT_CHECK_REQUIRED":q.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":q.racyCheckOk=!0}}}q.videoId&&(F.videoId=q.videoId);q.playlistId&&(F.playlistId=q.playlistId);q.index!==void 0&&(F.playlistIndex=q.index+1);q.playerParams&&(F.params=q.playerParams);"startTimeSeconds"in q&&q.startTimeSeconds&&(_.E("enable_player_request_builder_start_time_floor")?F.startTimeSecs=Math.floor(q.startTimeSeconds):F.startTimeSecs=q.startTimeSeconds);t.contentPlaybackContext&&(F.playbackContext={contentPlaybackContext:t.contentPlaybackContext});t.prefetchPlaybackContext&&
(F.playbackContext=Object.assign({},F.playbackContext,{prefetchPlaybackContext:t.prefetchPlaybackContext}),F.context.request||(F.context.request={}),F.context.request.isPrefetch=!0);F.playbackContext||(F.playbackContext={});u=NDr();F.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!u,supportXhr:Mkd};t.overrideMutedAtStart&&(F.overrideMutedAtStart=t.overrideMutedAtStart);F.racyCheckOk=!!q.racyCheckOk;F.contentCheckOk=!!q.contentCheckOk;!_.E("captions_prefs_killswitch")&&(t=(t=_.vG("yt-player-caption-language-preferences"))?
t:[],t==null?0:t.length)&&(F.captionParams={viewerSelectedCaptionLangs:t})};
_.l.getRequestConfig=function(F){F=this.JSC$13103_getStoreKey(F);var q;F&&(q={storeStrategy:{storeKey:F}});_.E("web_log_player_watch_next_ticks")&&(q=q||{},q.requestTick="ps_s",q.responseTick="ps_r");return q};
mS[Yc]=[sL];var $Q=function(){};
_.M($Q,xQ);_.l=$Q.prototype;_.l.getApiPaths=function(){return iNJ};
_.l.getExtension=function(F){return _.n(F,_.Fw)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$13103_getStoreKey=function(F){if((F=this.getExtension(F))&&F.videoId){var q={videoId:F.videoId};F.playlistId&&(q.playlistId=F.playlistId);F.index&&(q.index=F.index);F.params&&(q.params=F.params);return _.cW("next",q)}};
_.l.JSC$13096_getClientScreen=function(F){var q;return((q=F.contentPlaybackContext)==null?void 0:q.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.l.JSC$13096_buildRequest=function(F,q,t){q.videoId&&(F.videoId=q.videoId);q.playlistId&&(F.playlistId=q.playlistId);q.params&&(F.params=q.params);q.index!==void 0&&(F.playlistIndex=q.index);F.racyCheckOk=!(!t.racyCheckOk&&!q.racyCheckOk);F.contentCheckOk=!!q.contentCheckOk;t.contentPlaybackContext&&(F.autonavState=t.contentPlaybackContext.autonavState,F.playbackContext={vis:t.contentPlaybackContext.vis,lactMilliseconds:t.contentPlaybackContext.lactMilliseconds});t.prefetchPlaybackContext&&(F.context.request||
(F.context.request={}),F.context.request.isPrefetch=!0);_.E("captions_hats_killswitch")||(q=_.TV().getFlag(65),q=q!=null?!q:!1,t=!!_.vG("yt-player-sticky-caption"),F.captionsRequested=q&&t)};
_.l.getRequestConfig=function(F){F=this.JSC$13103_getStoreKey(F);var q;F&&(q={storeStrategy:{storeKey:F}});_.E("web_log_player_watch_next_ticks")&&(q=q||{},q.requestTick="wn_s",q.responseTick="wn_r");return q};
var bW=function(){};
_.M(bW,xQ);bW.prototype.getApiPaths=function(){return iNJ};
bW.prototype.getExtension=function(F){return _.n(F,_.Si)};
bW.prototype.JSC$13096_buildRequest=function(F,q){q.token&&(F.continuation=q.token)};var yY=function(F,q){this.playerRequestBuilder=F;this.watchNextRequestBuilder=q};
_.M(yY,xQ);yY.prototype.getApiPaths=function(){return O_x};
yY.prototype.getExtension=function(F){return _.n(F,_.Fw)};
yY.prototype.isNavigationCommand=function(){return!0};
yY.prototype.JSC$13096_buildRequest=function(F,q,t){F.playerRequest={};this.playerRequestBuilder.JSC$13096_buildRequest(F.playerRequest,q,t);_.E("web_streaming_watch")&&(F.watchNextRequest={},this.watchNextRequestBuilder.JSC$13096_buildRequest(F.watchNextRequest,q,t))};
yY[Yc]=[mS,$Q];var TDw;_.C8=new _.pg("SHORTS_CONTROLLER_TOKEN");TDw=new _.pg("SHORTS_STATE_STORE_TOKEN");var d7=function(F,q){var t=_.US.apply(2,arguments);F=F===void 0?0:F;_.D0.call(this,q,t);this.errorType=F;Object.setPrototypeOf(this,this.constructor.prototype)};
_.M(d7,_.D0);var GO1,DBn,Obw,Umu,VI,X1A,vud,A0z,y0L,mB1,Hbr;GO1=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(F){return F+"="}).join("|"));
DBn=RegExp(".*\\?.*playnext=1.*");_.VY=function(F,q,t,u){this.watchEndpointMap=F;this.reelWatchEndpointMap=q;this.innerTubeTransportService=t;this.fetchPbj=u};
Obw=function(F,q,t){var u=_.sV().resolve(_.JU(WFr));_.VY.instance=new _.VY(F,q,t,u)};
_.Psd=function(F,q){var t=_.YE("web_pbj_log_warning_rate",0);t=t>0&&Math.random()<t;var u;if((u=_.n(q.commandMetadata,_.EH))==null||!u.rootVe)return t&&_.bz(Error("Tf")),!1;var J;u=(J=_.n(q.commandMetadata,_.EH))==null?void 0:J.url;if(!u)return t&&_.bz(Error("Uf")),!1;if(DBn.test(u))return!0;if(GO1.test(u))return t&&_.bz(Error("Vf`"+u)),!1;if(_.n(q,_.Fw)){if(!(F.watchEndpointMap.watchNext&&F.watchEndpointMap.player||_.E("kevlar_fetch_initial_data_op_watch_client")))return t&&_.bz(Error("Mf")),!1;
F=_.YE("web_pbj_log_warning_rate",0);F=F>0&&Math.random()<F;_.n(q,_.Fw)?WnM(q)?q=!0:(F&&_.bz(Error("Nf")),q=!1):(F&&_.bz(Error("Mf")),q=!1);return q}if(_.n(q,_.Px))return O_f(q);if(_.n(q,_.FZ))return!0;F=_.fp(F.innerTubeTransportService,q);!F&&t&&_.mH(Error("Wf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(q)});return F};
Umu=function(F,q,t,u,J,g){q={url:q};if(t==null?0:t.itct)q.parentTrackingParams=t.itct;var Y=_.Jn(fOO);return _.uW(F.innerTubeTransportService,q,Y).then(function(Q){(Q=Q.endpoint)||(Q=_.bv);(t==null?0:t.itct)&&Q&&!Q.trackingParams&&(Q.trackingParams=t.itct);var e=Wx(Q);return VI(F,Q,t,u,e,J,g)})};
VI=function(F,q,t,u,J,g,Y,Q){Q=Q===void 0?{}:Q;if(F.fetchPbj&&!_.Psd(F,q)&&!_.E("force_one_platform")){Q=F.fetchPbj(q);var e=_.NU(Q.then(function(S){if(!S)throw Error("Xf");Y(e)||g(q,S);return S}));
return e}var r,N,w={rootVe:(r=_.n(q.commandMetadata,_.EH))==null?void 0:r.rootVe,url:(N=_.n(q.commandMetadata,_.EH))==null?void 0:N.url,endpoint:q,page:J};if(_.n(q,_.Fw)){var k,z={contentPlaybackContext:_.vx(t,(k=_.n(q.commandMetadata,_.EH))==null?void 0:k.url,u)},T=_.ji();_.E("web_streaming_watch")&&window.TextDecoderStream?(Q=xBL(F.innerTubeTransportService,q,z,function(S){!w.response&&S.content&&(w.response=S.content);!w.playerResponse&&S.player&&(w.playerResponse=S.player);g(q,w)}),r=N5_(q),r.length&&
(w.preconnect=r,g(q,w)),A0z(Q,T,w).catch(function(S){S instanceof d7&&S.errorType===2&&_.E("web_streaming_watch_fallback")&&vud(F,q,z,w,g,Y,T)})):vud(F,q,z,w,g,Y,T);
return T.promise}if(_.n(q,_.Px)){var P;if(((P=_.n(q,_.Px))==null?void 0:P.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var v=_.ji();_.IYE(_.sV().resolve(_.C8),q).then(function(S){Hbr(F,t,u,J,g,v,S)});
return v.promise}Q=_.NU();var H;r={contentPlaybackContext:_.vx(t,(H=_.n(q.commandMetadata,_.EH))==null?void 0:H.url,u)};(H=F.reelWatchEndpointMap.player)&&(H=H().JSC$13096_getRequest(q,r))&&(Q=_.uW(F.innerTubeTransportService,H.innerTubeRequest,H.input,q.clickTrackingParams,H.config));H=_.NU();(N=F.reelWatchEndpointMap.reelItemWatch)&&(N=N().JSC$13096_getRequest(q))&&(H=_.uW(F.innerTubeTransportService,N.innerTubeRequest,N.input,q.clickTrackingParams,N.config));N=_.NU();_.E("web_enable_delay_shorts_sequence_call_new")||
(k=F.reelWatchEndpointMap.reelWatchSequence)&&_.n(q,_.Px).sequenceParams&&(r=k().JSC$13096_getRequest(q,r))&&(N=_.uW(F.innerTubeTransportService,r.innerTubeRequest,r.input,q.clickTrackingParams,r.config));r=_.NU(w);k=_.ji();mB1(q,r,Q,H,N,g,Y,k);return k.promise}var d;if(_.n(q,MeW)&&((d=_.n(q.commandMetadata,_.EH))==null?0:d.url))return Q=b__(_.Lr(yp().location.href),_.Lr(_.n(q.commandMetadata,_.EH).url)).toString(),Umu(F,Q,t,u,g,function(){return!1});
if(_.n(q,_.FZ))return g(q,w),_.NU(w);if(_.fp(F.innerTubeTransportService,q)){Q=Object.assign({},{tempData:t,disableCache:t.disableCache},Q);var a=_.aI(F.innerTubeTransportService,q,Q).then(function(S){w.response=S;Y(a)||g(q,w);return w});
return a}return _.NU(w)};
_.bbf=function(F,q,t,u){if(_.n(q,_.Fw)||_.n(q,_.Px)&&(_.E("mweb_enable_shorts_innertube_player_prefetch")||_.E("kevlar_enable_shorts_prefetch_in_sequence"))||_.n(q,buz)&&_.E("web_enable_prefetching_videos_on_home")){var J,g={contentPlaybackContext:_.vx(t,(J=_.n(q.commandMetadata,_.EH))==null?void 0:J.url,u),prefetchPlaybackContext:vTy(t)},Y,Q,e;if(((Y=_.n(q,_.Fw))==null?void 0:(Q=Y.watchEndpointSupportedPrefetchConfig)==null?void 0:(e=Q.prefetchHintConfig)==null?void 0:e.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(t=
F.watchEndpointMap.watchNext)if(g=t().JSC$13096_getRequest(q,g))return Promise.resolve(_.uW(F.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(w){return w}))}else if(t=F.watchEndpointMap.player)if(g=t().JSC$13096_getRequest(q,g))return Promise.resolve(_.uW(F.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(w){return w}))}else if(_.fp(F.innerTubeTransportService,q)){var r={tempData:t},N=$BE(F.innerTubeTransportService,q);
return N?new Promise(function(w,k){var z,T;return _.p(function(P){if(P.nextAddress==1)return P.yield(N,2);if(P.nextAddress!=4)return z=P.yieldResult,z.JSC$13103_getStoreKey(q,r)?P.yield(_.aI(F.innerTubeTransportService,q,r),4):(k(new _.D0("Prefetching request builder with no store key.",q)),P.jumpTo(0));T=P.yieldResult;w(T);_.WA(P)})}):Promise.reject(new _.D0("Prefetching unregistered request builder.",q))}return Promise.reject(new _.D0("No request builder available to prefetch endpoint.",q))};
X1A=function(F,q){var t,u,J;if(_.n(q,_.Fw)){var g=F.watchEndpointMap.watchNext;g&&(t=g());(F=F.watchEndpointMap.player)&&(u=F())}else if(_.n(q,_.Px))(g=F.reelWatchEndpointMap.reelItemWatch)&&(t=g()),(g=F.reelWatchEndpointMap.player)&&(u=g()),(F=F.reelWatchEndpointMap.reelWatchSequence)&&(J=F());else{a:{F=DlW(q,F.innerTubeTransportService.endpointMap);if(F!==void 0)if(typeof F.then==="function")_.mH(new _.D0("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",q));else break a;
F=void 0}F&&(t=F)}var Y,Q,e;return{content:(Y=t)==null?void 0:Y.JSC$13103_getStoreKey(q),player:(Q=u)==null?void 0:Q.JSC$13103_getStoreKey(q),reelSequence:(e=J)==null?void 0:e.JSC$13103_getStoreKey(q)}};
vud=function(F,q,t,u,J,g,Y){var Q=_.NU(),e=F.watchEndpointMap.player;_.E("web_streaming_player")&&(e=An(yY));e&&(e=e().JSC$13096_getRequest(q,t))&&(Q=_.uW(F.innerTubeTransportService,e.innerTubeRequest,e.input,q.clickTrackingParams,e.config));e=_.NU();var r=F.watchEndpointMap.watchNext;r&&(t=r().JSC$13096_getRequest(q,t))&&(e=_.uW(F.innerTubeTransportService,t.innerTubeRequest,t.input,q.clickTrackingParams,t.config));F=_.NU(u);y0L(q,F,Q,e,J,g,Y)};
A0z=function(F,q,t){return _.p(function(u){if(u.nextAddress==1)return u.yield(F,2);q.resolve(t);_.WA(u)})};
y0L=function(F,q,t,u,J,g,Y){var Q,e,r,N,w;_.p(function(k){switch(k.nextAddress){case 1:return k.yield(q,2);case 2:Q=k.yieldResult;if(g(Y.promise))return Y.resolve(Q),k.return();J(F,Q);e=N5_(F);if(!e.length){k.jumpTo(3);break}return k.yield(q,4);case 4:Q.preconnect=e,J(F,Q);case 3:return _.zg(k,5),k.yield(t,7);case 7:r=k.yieldResult;_.LE(k,6);break;case 5:return N=_.Gg(k),Y.reject(N),k.return();case 6:if(r===void 0)return Q.reload=!0,J(F,Q),Y.resolve(Q),k.return();if(g(Y.promise))return Y.resolve(Q),
k.return();Q.playerResponse=r;J(F,Q);_.zg(k,8);return k.yield(u,10);case 10:w=k.yieldResult;_.LE(k,9);break;case 8:_.Gg(k);case 9:if(w===void 0)return Q.response={responseContext:{}},Y.resolve(Q),k.return();if(g(Y.promise))return Y.resolve(Q),k.return();Q.response=w;J(F,Q);Y.resolve(Q);_.WA(k)}})};
mB1=function(F,q,t,u,J,g,Y,Q){var e,r,N,w,k,z;_.p(function(T){switch(T.nextAddress){case 1:return T.yield(q,2);case 2:e=T.yieldResult;if(Y(Q.promise))return Q.resolve(e),T.return();g(F,e);r=N5_(F);if(!r.length){T.jumpTo(3);break}return T.yield(q,4);case 4:e.preconnect=r,g(F,e);case 3:return _.zg(T,5),T.yield(t,7);case 7:N=T.yieldResult;_.LE(T,6);break;case 5:return w=_.Gg(T),Q.reject(w),T.return();case 6:if(N===void 0)return e.reload=!0,g(F,e),Q.resolve(e),T.return();if(Y(Q.promise))return Q.resolve(e),
T.return();e.playerResponse=N;g(F,e);_.zg(T,8);return T.yield(u,10);case 10:k=T.yieldResult;_.LE(T,9);break;case 8:_.Gg(T);case 9:if(k===void 0)return e.response={responseContext:{}},Q.resolve(e),T.return();if(Y(Q.promise))return Q.resolve(e),T.return();e.response=k;g(F,e);_.zg(T,11);return T.yield(J,13);case 13:z=T.yieldResult;_.LE(T,12);break;case 11:_.Gg(T);case 12:if(Y(Q.promise))return Q.resolve(e),T.return();z&&(e.reelWatchSequenceResponse=z);g(F,e);Q.resolve(e);_.WA(T)}})};
Hbr=function(F,q,t,u,J,g,Y){var Q,e,r,N,w,k;_.p(function(z){if((Q=Y)==null||!Q.replacementEndpoint)return g.reject(),z.return();e=Y.replacementEndpoint;(r=_.n(e,_.Px))?(Y.sequenceContinuation&&(r.sequenceParams=Y.sequenceContinuation),N=_.sV().resolve(_.C8),w=r.sequenceParams,Csj(N,e)&&delete r.sequenceParams,k=VI(F,e,q,t,u,J,function(){return!1}),k.then(function(T){return _.p(function(P){if(P.nextAddress==1)return dBL(N,{reelWatchEndpoint:{sequenceParams:w}},T),P.yield(0,2);
g.resolve(T);_.WA(P)})})):g.reject();
_.WA(z)})};_.Vkv=function(F){if(F.validatedFragments_.length==0)return null;if(!F.mergedPrefetchedData_){for(var q=[],t=_.X(F.validatedFragments_),u=t.next();!u.done;u=t.next()){u=_.X(F.fragmentConfiguration_[u.value].graftedKeys);for(var J=u.next();!J.done;J=u.next())(J=F.prefetchedData_[J.value].trackingParams)&&q.push(J)}F.mergedPrefetchedData_={};Object.assign(F.mergedPrefetchedData_,F.prefetchedData_,{clientSideGrafts:q})}return F.mergedPrefetchedData_};var UB1;_.Uh=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
UB1=function(F,q,t){if(_.GK3(q))return F.prefetchCache_.get(_.D$f(q,t))};_.S$=new _.pg("NAVIGATION_TOKEN");var S6C=function(F){var q=this;var t=t===void 0?U$W():t;var u=u===void 0?_.sV().resolve(_.S$):u;this.onePickCommand=F;this.JSC$13206_playlistNetworkManager=t;this.navigationManager=u;this.videoPickerBuilder=_.d$$("yt-addtoplaylist");_.wcj(p2z(QJv(YDf(this.videoPickerBuilder.setTitle(F.modalTitle).setSize(1E3).addView(ZEw()).addView(eTL())).addView("youtube"),F.selectButtonLabel)),function(J){q.handleAction(J)})};
S6C.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
S6C.prototype.handleAction=function(F){var q=this;if(F&&this.onePickCommand.listId&&F.action==="picked"&&F.docs){var t=[];F.docs.forEach(function(u){t.push({addedVideoId:u.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13206_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,t).then(function(){_.E("playlist_add_video_hard_reload_killswitch")?q.navigationManager.reload():hej(q.navigationManager)})}};var KFx=function(){if(this.constructor===KFx)throw new TypeError("Yf");};
_.l=KFx.prototype;_.l.dispose=function(){};
_.l.disconnect=function(){};
_.l.reconnect=function(){};
_.l.observe=function(F,q,t){return{element:F,option:t}};
_.l.unobserveByKey=function(){};var S9t=function(F,q){q=q===void 0?0:q;KFx.call(this);this.viewroot=F;this.defaultPrescanHeight=q;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),F?{root:F,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.M(S9t,KFx);_.l=S9t.prototype;_.l.dispose=function(){this.disconnect();this.handlers.clear()};
_.l.disconnect=function(F){this.isConnected=!1;this.pauseObservingUntilReconnect=F===void 0?!1:F;this.observer.disconnect();F=_.X(this.prescanObservers.values());for(var q=F.next();!q.done;q=F.next())q.value.disconnect()};
_.l.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var F=_.X(this.handlers),q=F.next();!q.done;q=F.next()){var t=_.X(q.value);q=t.next().value;var u=t.next().value;t=!1;u=_.X(u.keys());for(var J=u.next();!J.done;J=u.next())if((J=J.value)&&J.state==="prescan"){t=!0;break}t&&BDz(this,q).observe(q);this.observer.observe(q)}}};
_.l.handleObserveEvent=function(F){F=_.X(F);for(var q=F.next();!q.done;q=F.next()){q=q.value;var t=this.handlers.get(q.target);if(t){var u=q.isIntersecting;t=_.X(t);for(var J=t.next();!J.done;J=t.next()){var g=_.X(J.value);J=g.next().value;g=g.next().value;J&&(J.state==="visible"&&u||J.state==="hidden"&&!u)&&(g(q.target,J.state),J.calledOnce&&this.unobserveByKey({element:q.target,option:J}))}}}};
_.l.handlePrescanEvent=function(F){F=_.X(F);for(var q=F.next();!q.done;q=F.next()){q=q.value;var t=this.handlers.get(q.target);if(t&&q.isIntersecting){t=_.X(t);for(var u=t.next();!u.done;u=t.next()){var J=_.X(u.value);u=J.next().value;J=J.next().value;u&&u.state==="prescan"&&(J(q.target,u.state),u.calledOnce&&this.unobserveByKey({element:q.target,option:u}))}}}};
_.l.observe=function(F,q,t){var u=(u=this.handlers.get(F))&&u.has(t)?{element:F,option:t}:void 0;if(u)return u;u={element:F,option:t};this.handlers.has(F)||this.handlers.set(F,new Map);var J=this.handlers.get(F);J&&!J.has(t)&&J.set(t,q);this.pauseObservingUntilReconnect||(t.state==="prescan"&&BDz(this,F).observe(F),this.observer.observe(F));return u};
_.l.unobserveByKey=function(F){var q=this.handlers.get(F.element);if(q&&q.has(F.option)){q.delete(F.option);if(F&&F.option.state==="prescan")for(var t=_.X(this.prescanObservers.values()),u=t.next();!u.done;u=t.next())u.value.unobserve(F.element);q.size===0&&(this.handlers.delete(F.element),this.observer.unobserve(F.element))}};
var BDz=function(F,q){var t=F.defaultPrescanHeight;q.hasAttribute("prescan-height")&&(q=Number(q.getAttribute("prescan-height")),isNaN(q)||(t=q));if(F.prescanObservers.has(t))return F.prescanObservers.get(t);q="-0.1px -0.1px "+t+"px -0.1px";q=new IntersectionObserver(F.handlePrescanEvent.bind(F),F.viewroot?{root:F.viewroot,rootMargin:q}:{rootMargin:q});F.prescanObservers.set(t,q);return q};var LFn=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],fYL=function(){var F,q=this;this.JSC$13223_actionRouter=F=F===void 0?_.B2.getInstance():F;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return q.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return q.visibilityObservedElementHandlerKeys}}},aYJ,c01,t4d;
fYL.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.E("kevlar_use_vimio_behavior")&&_.bn("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=hDv())};
fYL.prototype.dispose=function(){this.visibilityMonitor&&_.Pr(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
fYL.prototype.handleVisibilityRefreshed=function(){for(var F=_.X(this.targetMap.entries()),q=F.next();!q.done;q=F.next()){var t=_.X(q.value);q=t.next().value;t=t.next().value;_.jHE(this,q,t)}};
_.qEJ=function(F,q,t){c01(F,t);var u=_.FJv(F,q);u.element=t;F.targetedElements.set(t,q);_.jHE(F,q,u)};
c01=function(F,q){var t=F.targetedElements.get(q);if(t){var u=F.targetMap.get(t);u&&(delete u.element,F.targetMap.set(t,u));F.targetedElements.delete(q);F.visibilityObserver&&F.visibilityObservedElementHandlerKeys&&(t=F.visibilityObservedElementHandlerKeys.get(q))&&(F.visibilityObserver.unobserveByKey(t),F.visibilityObservedElementHandlerKeys.delete(q))}};
_.jHE=function(F,q,t){var u=t.action,J=t.element;J&&u&&(LFn.includes(q)||_.bn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||F.visibilityMonitor&&F.visibilityMonitor.isNodeVisible(J)?t4d(F,q,t):F.visibilityObserver&&(F.visibilityObservedElementHandlerKeys||(F.visibilityObservedElementHandlerKeys=new WeakMap),u=F.visibilityObserver.observe(J,function(){t4d(F,q,t);F.visibilityObservedElementHandlerKeys.delete(J)},{calledOnce:!0,
state:"visible"}),F.visibilityObservedElementHandlerKeys.set(J,u)))};
t4d=function(F,q,t){var u=t.action;(t=t.element)&&u&&(_.Kg(F.JSC$13223_actionRouter,[u],t),F.targetMap.delete(q),F.targetedElements.delete(t),F.triggeredTargets.add(q))};
_.FJv=function(F,q){var t=F.targetMap.get(q);t||(t={},F.targetMap.set(q,t));return t};
_.h8=function(){aYJ||(aYJ=new fYL);return aYJ};var u81=document.createElement("div");u81.style.touchAction="pan-down";var Kn3=u81.style.touchAction==="pan-down";var J4x,sfO;J4x=function(){this.hammerFn=R7C();this.JSC$13231_screenManager=_.DP();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.r0(83615);_.xA(this.JSC$13231_screenManager,this.ve);B8A()};
_.K8=function(){sfO||(sfO=new J4x);return sfO};
J4x.prototype.registerTouchEvents=function(F,q,t){var u=_.US.apply(3,arguments),J=this.hammerFn(F,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});t&&J.set({touchAction:t});this.nodeManagerMapping.set(F,J);var g=
LnA(q);u=_.X(u);for(var Y=u.next();!Y.done;Y=u.next()){Y=Y.value;if(Y.includes("swipe")||Y.includes("pinch")||Y.includes("pan"))Y.includes("swipe")?J.get("swipe").set({enable:!0,direction:g,velocity:.2}):Y.includes("pinch")?J.get("pinch").set({enable:!0}):Y.includes("pan")&&(J.get("pan").set({enable:!0,direction:g}),J.get("swipe").set({enable:!0,direction:g,velocity:.2}),J.get("swipe").recognizeWith("pan"));g4z(this,F,J,Y)}};
var g4z=function(F,q,t,u){t.on(u,function(J){if(u.includes("pinch"))F.lastPinchTime=Date.now();else if(u.includes("swipe")&&Date.now()-F.lastPinchTime<400)return;J.pointerType!=="mouse"&&(J=u==="doubletap"?{coordinates:J.center}:u.includes("pan")?J:u.includes("swipe")?{target:J.target}:{},q.dispatchEvent(new CustomEvent(u,{bubbles:!0,composed:!0,detail:J})))})};
J4x.prototype.unregisterTouchEvents=function(F){var q=_.US.apply(1,arguments),t=this.nodeManagerMapping.get(F);if(t){q=_.X(q);for(var u=q.next();!u.done;u=q.next())t.off(u.value);this.nodeManagerMapping.delete(F);F.style.touchAction="unset"}};var lTz=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var fOP=null;var XgL=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},Rro=function(){XgL.instance||(XgL.instance=new XgL);
return XgL.instance},rp3=function(F){var q=F.networkEvents;
F.networkEvents=[];return _.E("enable_network_monitoring")?q:[]};var YEz;YEz={};_.pgj=sI("yt-serviceworker-metadata",{objectStores:(YEz.auth={addedAtVersion:1},YEz["resource-manifest-assets"]={addedAtVersion:2},YEz),shared:!0,upgrade:function(F,q){q(1)&&UI(F,"resource-manifest-assets");q(2)&&UI(F,"auth")},
version:2});var t2q=self.location.origin+"/";uOP([/\.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\//]);uOP([/purge_shell=1/]);var Qfw=void 0;Qfw=Qfw===void 0?[]:Qfw;for(var eve=[],ZOw=_.X(jJf),Rvf=ZOw.next();!Rvf.done;Rvf=ZOw.next())eve.push({key:Rvf.value});for(var r4O=_.X(Qfw),NrL=r4O.next();!NrL.done;NrL=r4O.next())eve.push(NrL.value);var wgd,V8=_.uu==null?void 0:(wgd=_.uu.performance)==null?void 0:wgd.memory,gGf=!1,Nu_={},YlM={},Uy={},ST=navigator;var BG=function(F){this.JSC$13275_expiringStorage=new OV(F)};
BG.prototype.set=function(F,q,t){t=t!==void 0?Date.now()+t:void 0;this.JSC$13275_expiringStorage.set(F,q,t)};
BG.prototype.get=function(F){return this.JSC$13275_expiringStorage.get(F)};
BG.prototype.remove=function(F){this.JSC$13275_expiringStorage.remove(F)};var M2$=_.LZ(["https://www.youtube.com/",""]),Tuv=_.LZ(["https://studio.youtube.com/",""]),PjW="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",D7A=null,HNy;var iOw=_.LZ(["https://www.youtube.com/iframe_api"]),L8=function(){this.playerResolver_=_.ji();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.DH;this.playbackDurationSeconds_=0},khr=function(F){var q=function(){return window.YT&&typeof window.YT.ready==="function"};
if(q())return _.NU(window.YT);var t=_.ji(),u=_.nr("SCRIPT");u.onload=u.onreadystatechange=function(){u.readyState&&u.readyState!="loaded"&&u.readyState!="complete"||(u.onload=_.DH,u.onreadystatechange=_.DH,u.onerror=_.DH,q()?t.resolve(window.YT):t.reject(new _.D0("Failed to load the iframe player library","script.onload",u.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
u.onerror=function(J){u.onload=_.DH;u.onreadystatechange=_.DH;u.onerror=_.DH;t.reject(new _.D0("Failed to load the iframe player library","script.onerror",J&&J.target&&J.target.src))};
_.uF(u,_.RV(iOw));F.insertBefore(u,F.firstChild);return t.promise},E41=function(F,q,t){var u,J;
_.p(function(g){switch(g.nextAddress){case 1:return F.playbackEndedCallback_=t,_.zg(g,2),g.yield(khr(q.parentElement||null),4);case 4:u=g.yieldResult;_.LE(g,3);break;case 2:return J=_.Gg(g),J instanceof _.D0&&J.args&&J.args[0]=="script.onerror"?_.bz(J):_.mH(J),g.return();case 3:u.ready(function(){return new u.Player(q,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:F.onPlayerReady_.bind(F),onStateChange:F.onPlayerStateChange_.bind(F),
onCueRangeExit:F.onCueRangeExit_.bind(F)}})}),_.WA(g)}})};
_.l=L8.prototype;_.l.getPlayerPromise=function(){return this.playerPromise_};
_.l.onPlayerReady_=function(F){this.playerResolver_.resolve(F.target)};
_.l.onPlayerStateChange_=function(F){if(F.data==YT.PlayerState.PLAYING){F=F.target;var q=F.getCurrentTime();F.addCueRange("playback",q,q+this.playbackDurationSeconds_)}};
_.l.onCueRangeExit_=function(F){F.data=="playback"&&(F.target.stopVideo(),this.playbackEndedCallback_())};
_.l.stopVideo=function(){this.playerPromise_.then(function(F){F.stopVideo()})};
var zvO=function(F){F.playerVars_&&F.playerPromise_.then(function(q){typeof q.cueVideoByPlayerVars!="function"?_.bz(new _.D0("vmh: player API not ready","cueVideoByPlayerVars",typeof q.cueVideoByPlayerVars)):q.cueVideoByPlayerVars(F.playerVars_)})};
L8.prototype.playVideo=function(){var F=this;this.playerVars_&&this.playerPromise_.then(function(q){typeof q.loadVideoByPlayerVars!="function"?(q=new _.D0("vmh: player API not ready","loadVideoByPlayerVars",typeof q.loadVideoByPlayerVars),_.mH(q)):q.loadVideoByPlayerVars(F.playerVars_)})};
var o4r=function(F,q,t,u,J){q&&(t===void 0&&(t=0),u===void 0&&(u=0),F.playbackDurationSeconds_=u/1E3,F.playerVars_={adformat:"17_8",videoId:q,suggestedQuality:"hd720",startSeconds:t/1E3,player_params:J})};
L8.prototype.mute=function(){this.playerPromise_.then(function(F){F.mute()})};
L8.prototype.unMute=function(){this.playerPromise_.then(function(F){F.unMute()})};var n4e=function(F,q){var t=hJ();F||(F="unknown");q||(q="unknown");F="MAIN_APP_WEB_PAGE_TYPE_"+F.toUpperCase();F in vZd||(F="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");q="MAIN_APP_WEB_REQUEST_TYPE_"+q.toUpperCase();q in ICL||(q="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.pZ(t,{mainAppWeb:{pageType:F,requestType:q,isShellLoad:_.yG("IS_SHELL_LOAD",!1)}})},M4r={start:function(){_.pZ(FY_(),{mainAppWeb:_.jT()})},
success:function(){_.QI(FY_(),"SUCCESS")},
failure:function(){_.QI(FY_(),"FAILURE")},
cancelled:function(){_.QI(FY_(),"CANCELLED")}};var Trv,Ghn,U7$;Trv=_.LZ(["/sw.js"]);Ghn=_.LZ(["/sw.js?0"]);_.DPw=_.RV(Trv);U7$=_.RV(Ghn);var WJr=function(){var F=Error.apply(this,arguments);this.message=F.message;"stack"in F&&(this.stack=F.stack)};
_.M(WJr,Error);_.qs.prototype.load=function(F){this.megabloxUrl_=_.bn("YPC_MB_URL");_.KB(this.megabloxUrl_,(0,_.Pd)(function(){F&&F()},this))};
_.bS$=function(F,q,t,u,J,g,Y,Q,e,r,N){_.hrP(e);F.load((0,_.Pd)(function(){try{var w=g?g:_.bn("HL"),k=_.bn("SESSION_INDEX");_.AMu("client",function(){qdj("59",{helpCenterPath:"/youtube",locale:w,window:window}).JSC$9968_loadChatSupport({authuser:String(k)})})}catch(z){throw cx(10,N,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),J&&J(z),_.mH(z),z;
}OOe(this,q,t,u,J,g,Y,Q,e,r,N)},F))};
_.qs.prototype.openFixFlowDialog=function(F,q,t,u){this.load((0,_.Pd)(function(){try{P8v(this,_.S6("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(F).withIntegratorCallback(q).load(t,u)}catch(J){throw _.mH(J),J;}},this))};
var P8v=function(F,q,t,u){var J=q.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.E("enable_window_constrained_buy_flow_dialog")&&(J=J.usingPopupStyle(_.S6("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));u&&(J=J.usingCloseCallback(u));q.bootstrap.fromPaymentsUrl(F.megabloxUrl_);F=q.bootstrap.asMashupMode(J);t=t?t:_.bn("HL");F.usingGaiaIndex(_.bn("SESSION_INDEX")).usingLocale(t).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.E("enable_google_payments_buyflow_material2_style_web")?
F.usingStyle(":m2;pc=#444;ac=#065fd4"):F.usingStyle(":md;pc=#444;ac=#065fd4");return F},OOe=function(F,q,t,u,J,g,Y,Q,e,r,N){try{var w=_.S6("payments.business.integration");
if(!w)throw new WJr("payments.business.integration is undefined");var k=w.standaloneContextAuthId.forUserId(),z=P8v(F,w,g,function(){BuC(!1);Q&&Q()});
Y&&z.usingServerAnalyticsEventHandler(Y);var T=z.inStandaloneContext(k).buyFlow(function(P){if(P&&(!P.integratorData||P.integratorData===""||P.error))if(P.error!=null)if(String(P.error)==="-1")_.Kmv(e);else{var v=String(P.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";cx(10,N,v,P.debugCode);_.Fe(v,e,P.debugCode);v=new _.D0("PAYMENT_ERROR_MESSAGE::"+P.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+P.internalErrorDetails);
_.mH(v)}else cx(10,N,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Fe("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",e,"EMPTY_INTEGRATOR_DATA"),_.mH(Error("cg"));t&&(BuC(!1),t(P))}).withEncryptedParameters(q);
r&&T.withClientParameters(cby(_.mf$(r)));T.load(function(){cx(24,N);_.dY("ttc",void 0,"commerce_transaction");$o("commerce_transaction");u&&(u(),BuC(!0))},function(P){if(P==null?0:P.debugCode)var v=P==null?void 0:P.debugCode;
else if(!P||(P==null?0:P.debugCode))v="EMPTY_LOAD_FAILURE_ERROR",_.mH(Error(v));else{v="EMPTY_LOAD_FAILURE_DEBUG_CODE";var H=new _.D0("LOAD_FAILURE:"+P.message," DEBUG_CODE:"+v);_.mH(H)}cx(10,N,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",v);_.Fe("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",e,v);_.mH(P);J&&J(P)})}catch(P){throw P instanceof WJr&&(cx(10,N,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),J&&J(P)),_.mH(P),P;
}};var xPO;xPO=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.HS_=function(F,q){q=q===void 0?!1:q;F=xPO.test(F)?_.OS(F):null;!q&&window.payments||!F?(F=_.ji(),q=F.promise,F.resolve()):q=_.dhf(F,{attributes:{"data-payments-main":"",id:"payment-lib"}});return q};var A4J;A4J=_.LZ(["//www.googletagmanager.com/gtm.js?id=",""]);_.f8=function(F,q){_.Xp(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:q}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.bn("GL")}),q=_.nr("SCRIPT"),q.async=!0,_.uF(q,_.RV(A4J,F)),q.id="gtm",F=document.getElementsByTagName("script"),F.length==0?document.head.appendChild(q):(F=F[0],F.parentNode.insertBefore(q,F)))};
_.ag=function(F){if(F=JSON.parse(F))window.dataLayer=window.dataLayer||[],window.dataLayer.push(F)};var v4J,ITe;v4J=_.LZ(["https://clients2.google.com/gr/gr_sync.js"]);_.vaP=function(){};
_.vaP.prototype.init=function(){if(ITe()){var F=_.ji();F.resolve();return F.promise}return _.dhf(_.RV(v4J)).then(function(){if(!ITe())throw Error("dg");},function(){throw Error("eg");
})};
_.Iit=function(){if(!ITe())return"";var F=window.google.gr;F.init({async:{schedule:"sync"},merchantId:"youtube"});F.start();F=F.finish();return F==null?"":F};
ITe=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.x=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.M(_.x,PolymerFakeBaseClassWithoutHtml);_.Ga=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.M(_.Ga,PolymerFakeBaseClassWithoutHtml);var Lmo=window.ShadyDOM;var O23,Diu,xio,APP,IN$,H2f,j$,Qu;O23=_.E("enable_shadydom_free_scoped_query_methods");Diu=_.E("enable_shadydom_free_scoped_node_methods");xio=_.E("enable_shadydom_free_scoped_readonly_properties_batch_one");APP=_.E("enable_shadydom_free_parent_node");IN$=_.E("enable_shadydom_free_children");H2f=_.E("enable_shadydom_free_last_child");j$=window.ShadyDOM;_.Ns=j$&&j$.noPatch&&j$.wrap?j$.wrap:j$?function(F){return j$.patch(F)}:function(F){return F};
Qu=function(F){if(F instanceof ShadowRoot)this.host=(0,_.Ns)(F.host),this.root=F;else if(F.$$){this.host=(0,_.Ns)(F);var q;this.root=(q=F.root)!=null?q:this.host}else if(F.polymerController){this.host=(0,_.Ns)(F);var t;this.root=(t=this.host.shadowRoot)!=null?t:this.host}else this.root=this.host=(0,_.Ns)(F)};
WaM();PPv();miv();$iu();v5A();var HOx={querySelector:function(F,q){q=aEM(q,sB(F));F=_.gs(F);return lL(F).prototype.querySelector.call(F,q)},
querySelectorAll:function(F,q){q=aEM(q,sB(F));F=_.gs(F);return lL(F).prototype.querySelectorAll.call(F,q)}},mPO={appendChild:function(F,q){var t=sB(F),u=_.JY(q);
return _.T__(_.gs(F),t?_.YM(q,t,u):q)},
cloneNode:function(F,q){var t=_.JY(F);F=_.gs(F);q=lL(F).prototype.cloneNode.call(F,q);return t?p1(q,t):q},
contains:function(F,q){var t=sB(F),u=_.JY(q);return t!==u?!1:Gjv(F,q)},
insertBefore:function(F,q,t){var u=sB(F),J=_.JY(q);F=_.gs(F);q=u?_.YM(q,u,J):q;return lL(F).prototype.insertBefore.call(F,q,t)},
removeChild:function(F,q){var t=sB(F);F=_.gs(F);q=t?p1(q,t):q;return lL(F).prototype.removeChild.call(F,q)},
replaceChild:function(F,q,t){var u=sB(F),J=_.JY(q);q=u?_.YM(q,u,J):J?p1(q,J):q;t=u?p1(t,u):t;F=_.gs(F);return lL(F).prototype.replaceChild.call(F,q,t)},
getRootNode:function(F,q){q=q===void 0?{composed:!0}:q;var t;if(((t=q)!=null?t:{}).composed)F=XEt(F);else{q=F;for(F=cp3(F);F;)q=F,F=qiu(F);F=q}return F}},yPC=xio?{firstChild:kjo,
nextSibling:N_q,previousSibling:i2q,firstElementChild:E5W,lastElementChild:o5M,nextElementSibling:rPq,previousElementSibling:wEo,childNodes:n5C}:{};APP&&(yPC.parentNode=Ra$);IN$&&(yPC.children=MfA);H2f&&(yPC.lastChild=zao);O23&&b2o(HOx);Diu&&b2o(mPO);CPM();var diW=function(F){this.node=F instanceof ShadowRoot?F.host:F};
Vfo();UiM();var KaP=new WeakMap;var Lau=Symbol("wd");var F2y=new Set(["tap","track","down","up"]),qmC=_.E("pbcm_fi_query_decorators");var cG=function(){return _.Ga.apply(this,arguments)||this};
_.M(cG,_.Ga);_.l=cG.prototype;_.l.getState=function(){return this.store.getState()};
_.l.dispatch=function(F){this.store.dispatch(F)};
_.l.beforeRegister=function(){if(this&&typeof this==="object"){var F;var q=!!this.useSignals||!((F=this.polymerController)==null||!F.useSignals)}else q=!1;if(!q&&this.properties)for(q=_.X(Object.keys(this.properties)),F=q.next();!F.done;F=q.next()){var t=F.value;F=this.properties[t];if(F.selector){if(F.computed)throw Error("kg");t=["reduxPropertiesRecomputeTrigger",'"'+t+'"'].concat(_.mZ(F.selectorArgs||[])).join(",");F.computed="recomputeReduxSelector("+t+")"}}};
_.l.attached=function(){var F=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){F.reduxPropertiesRecomputeTrigger++}));
_.E("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.l.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.l.recomputeReduxSelector=function(F,q){var t=_.US.apply(2,arguments),u=this.properties[q].selector;if(!u)throw Error("ig`"+q);return u.apply(null,[this.store.getState()].concat(_.mZ(t)))};
_.l.select=function(F){var q=_.US.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return F.apply(null,[this.store.getState()].concat(_.mZ(q)))};
_.JJ.Object.defineProperties(cG.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
cG.prototype.recomputeReduxSelector=cG.prototype.recomputeReduxSelector;_.C([_.O(),_.V("design:type",Number)],cG.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.C([_.Dj()],cG);var FV=[],sot={},ds=function(){return gQ.apply(this,arguments)||this};
_.M(ds,gQ);ds.prototype._addPropertyEffect=function(F,q,t){if(q==="__observeEffects"&&t){var u,J=(u=t.info.method)!=null?u:t.info.methodName;if(J){var g=this[J];this[J]=function(){FV.push(J);try{g==null||g.apply(this,arguments)}finally{FV.pop()}}}}_.HN._addPropertyEffect.apply(this,[F,
q,t])};
ds.prototype._setPendingProperty=function(F,q,t){if(FV.length){var u=FV[FV.length-1],J;(J=sot[this.is])!=null&&J.has(u)||(g1v(this.is,u),_.IJ("polymerPropertyChangedInObserver",{componentName:this.is,observerName:u}))}return _.HN._setPendingProperty.apply(this,[F,q,t])};
_.C([IHo()],ds);var lLq=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Ym_,Ph={};_.E("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Ph);var vh=function(){return _.Ga.apply(this,arguments)||this};
_.M(vh,_.Ga);vh.prototype._setUnmanagedPropertyToNode=function(F,q,t){F.loggingStatus&&(F.loggingStatus.isDeclarativeExternal=!0);if(t!==F[q]||typeof t==="object")F[q]=t;F.is&&F.polymerController&&F.polymerController!==F&&xM(F.is,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");F.loggingStatus&&(F.loggingStatus.isDeclarativeExternal=!1)};
_.C([_.Dj()],vh);XYq()&&(hg.prototype._setUnmanagedPropertyToNode=(new vh)._setUnmanagedPropertyToNode);_.n1y={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(F){},set polymerController(F){}}]};var C1=function(){var F=gQ.apply(this,arguments)||this;F.json=function(){};
return F};
_.M(C1,gQ);C1.prototype.equals=function(F,q){return F===q};
C1.prototype.isEmpty=function(F){var q;(q=!F)||(q=_.VC(F)&&F.length===0);return q};
_.C([IHo()],C1);var $Px=function(F){F=xVo(F);fi.call(this,F)};
_.M($Px,fi);$Px.prototype.addProvider=function(F){F=F.key?F:xVo([F])[0];var q=this.keyIdToIndex.get(F.key.id);if(q){if(R0A(F,this.providers[q]))throw Error("lg`"+F.key.displayName);}else fi.prototype.addProvider.call(this,F)};
var bOj=new $Px([]);var y4O=!1;var E1C={};y4O||(k2M(),y4O=!0);
E1C.InjectBehavior={initializeInjection:function(){var F=this.provide;try{if((F=F!=null?F:[])&&F.length>0)for(var q=xVo(F),t=_.X(q),u=t.next();!u.done;u=t.next())bOj.addProvider(u.value);var J=new Set;rry(this.behaviors||[],J);q={};for(var g=_.X(J),Y=g.next();!Y.done;Y=g.next()){var Q=Y.value;Q.inject&&Object.assign(q,Q.inject)}this.inject&&Object.assign(q,this.inject);for(var e=_.X(Object.keys(q)),r=e.next();!r.done;r=e.next()){var N=r.value,w=q[N];try{this[N]=bOj.resolve(w)}catch(k){throw k;}}}catch(k){throw Error(k.message);
}}};var o1C;var MHy=/\bclass\b/.test(function(){}.toString()),Dx$=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var C81=function(F){this.wasDefined=!0;Array.isArray(F)||F instanceof Array?(this.JSC$13404_getImpl=F[0],this.JSC$13404_setImpl=F[1]):this.JSC$13404_getImpl=F};
_.l=C81.prototype;_.l.getWithPath=function(F){return P9W(this.JSC$13404_getImpl(),F)};
_.l.setWithPath=function(F,q){var t=this;if(F.length)throw Error("mg");if(!this.JSC$13404_setImpl)throw Error("ng");ov(function(){t.JSC$13404_setImpl(q)})};
_.l.notifyPath=function(){throw Error("og");};
_.l.notifySplices=function(){throw Error("pg");};
_.l.getChangeRecordSignal=function(F,q){var t=this;if(F.length)throw Error("qg");return function(){var u=t.getWithPath(F);return{path:q!=null?q:"",base:u,value:u}}};
_.l.getSplicesSignal=function(){throw Error("rg");};
_.l.getPathMutationSignal=function(){throw Error("sg");};
_.l.pop=function(){throw Error("tg");};
_.l.push=function(){throw Error("ug");};
_.l.splice=function(){throw Error("vg");};
_.l.unshift=function(){throw Error("wg");};var qH=function(F){var q=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(F)||F instanceof Array?(this.JSC$13409_getImpl=F[0],this.JSC$13409_setImpl=F[1]):this.JSC$13409_getImpl=F;this.wasDefined=!1;rP(function(){q.wasDefined=q.JSC$13409_getImpl()!==void 0})};
qH.prototype.getWithPath=function(F){return P9W(this.JSC$13409_getImpl(),F)};
qH.prototype.setWithPath=function(F,q){var t=this;if(F[F.length-1]!=="*"&&F[F.length-1]!=="splices"){var u=rP(function(){return t.getWithPath([])});
if(F.length===0){if(!this.JSC$13409_setImpl)throw Error("xg");if(u===q)return;this.wasDefined||(this.wasDefined=q!==void 0);ov(function(){t.JSC$13409_setImpl(q)})}else{for(var J=0;J<F.length-1;J++){if(!u)return;
u=u[F[J]]}J=F[F.length-1];u&&(u[J]=q);this.wasDefined||(this.wasDefined=F.length>1||q!==void 0)}dPJ(this,F,{pathComponents:F,value:q})}};
qH.prototype.notifyPath=function(F,q){F.length===0?q&&this.setWithPath(F,q.value):dPJ(this,F,{pathComponents:F,value:q==null?void 0:q.value,fallbackWhenUndefined:q==null?void 0:q.value})};
var dPJ=function(F,q,t,u){if(F.setMutationSignal){var J=++F.mutationIndex,g=[F.observedPath],Y=F.observedPath,Q;q.length===0&&(Q=Y);for(var e=0;e<q.length;e++){var r=Y.subPaths[q[e]];if(!r)break;g.push(r);Y=r;e===q.length-1&&(Q=r)}for(q=!1;g.length;)Y=g.shift(),Y.data={index:J,mutation:t,spliceMutationIndex:u},q||(q=Y===Q),q&&g.push.apply(g,_.mZ(Object.values(Y.subPaths)));ov(function(){F.setMutationSignal(J)})}};
qH.prototype.notifySplices=function(F,q){var t=this,u=rP(function(){return t.getWithPath(F)}),J=[].concat(_.mZ(F),["splices"]);
dPJ(this,J,{pathComponents:J,value:{indexSplices:q}});if(u==null?0:u.length)q=this.mutationIndex,J=[].concat(_.mZ(F),["length"]),dPJ(this,J,{pathComponents:J,value:u.length},q)};
var V4n=function(F,q,t,u,J,g){F.notifySplices(t,[{index:u,addedCount:J,removed:g,object:q,type:"splice"}])},UPf=function(F,q){F=F.observedPath;
for(var t=0;t<q.length;t++){var u=q[t],J=F.subPaths[u];J||(J={pathComponents:q.slice(0,t+1),subPaths:{}},F.subPaths[u]=J);F=J}},hvx=function(F,q,t){UPf(F,q);
if(!F.getMutationSignal){var u=_.X(_.N3(F.mutationIndex,void 0,"sNBMCd"));F.getMutationSignal=u.next().value;F.setMutationSignal=u.next().value}var J=F.getMutationSignal;return _.zy(function(){J();return t(SEv(F,q))},void 0,"zvsXEd")};
qH.prototype.getChangeRecordSignal=function(F,q){var t=this,u=this.mutationIndex,J;return hvx(this,F,function(g){if(g&&g.index>u){var Y=g.mutation;u=g.index;J=void 0}g=rP(function(){return t.getWithPath(F)});
if(Y){var Q=Y.pathComponents[Y.pathComponents.length-1],e=[].concat(_.mZ(Y.pathComponents));if(Q==="splices"||Q==="length")return{base:g,path:(q?[q].concat(_.mZ(e)):e).join("."),value:Y.value};var r=F.length>e.length?F:e,N;return{base:g!=null?g:Y.fallbackWhenUndefined,path:(q?[q].concat(_.mZ(r)):r).join("."),value:(N=rP(function(){return t.getWithPath(r)}))!=null?N:Y.fallbackWhenUndefined}}J||(J={base:g,
path:(q?[q].concat(_.mZ(F)):F).join("."),value:g});return J})};
qH.prototype.getSplicesSignal=function(F){var q=this.mutationIndex,t;return hvx(this,F,function(u){if(u&&u.index>q&&u.spliceMutationIndex!==q){var J=u.mutation;q=u.index;t=void 0}return J&&J.pathComponents[J.pathComponents.length-1]==="splices"?t=u=J.value:t})};
qH.prototype.getPathMutationSignal=function(F){var q=this;UPf(this,F);if(!this.getMutationSignal){var t=_.X(_.N3(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=t.next().value;this.setMutationSignal=t.next().value}var u=this.getMutationSignal,J=this.mutationIndex,g;return _.zy(function(){u();var Y=SEv(q,F);if(Y&&Y.index>J&&Y.mutation&&xxC(Y.mutation.pathComponents,F)){var Q=Y.mutation;J=Y.index}if(!g||J!==g.index){var e,r;Y=(r=rP(function(){return q.getWithPath(F)}))!=null?r:(e=Q)==null?
void 0:e.fallbackWhenUndefined;
g={index:J,value:Y}}return g},void 0,"RXYC9b")};
var SEv=function(F,q){F=F.observedPath;q=_.X(q);for(var t=q.next();!t.done;t=q.next())F=F.subPaths[t.value];return F.data};
qH.prototype.pop=function(F){var q=this,t=rP(function(){return q.getWithPath(F)});
if(!(t instanceof Array))throw Error("yg");var u=t.length>0,J=t.pop();u&&V4n(this,t,F,t.length,0,[J]);return J};
qH.prototype.push=function(F){var q=_.US.apply(1,arguments),t=this,u=rP(function(){return t.getWithPath(F)});
if(!(u instanceof Array))throw Error("zg");var J=u.length,g=u.push.apply(u,_.mZ(q));q.length&&V4n(this,u,F,J,q.length,[]);return g};
qH.prototype.splice=function(F,q,t){var u=_.US.apply(3,arguments),J=this,g=rP(function(){return J.getWithPath(F)});
if(!(g instanceof Array))throw Error("Ag");q<0?q=g.length-Math.floor(-q):q&&(q=Math.floor(q));var Y=g.splice.apply(g,[q,t].concat(_.mZ(u)));(u.length||Y.length)&&V4n(this,g,F,q,u.length,Y);return Y};
qH.prototype.unshift=function(F){var q=_.US.apply(1,arguments),t=this,u=rP(function(){return t.getWithPath(F)});
if(!(u instanceof Array))throw Error("Bg");var J=u.unshift.apply(u,_.mZ(q));q.length&&V4n(this,u,F,0,q.length,[]);return J};var tB=function(F,q,t){this.model=F;this.unknownSignalResolver=q;this.options=t;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];q=_.X(C9u());F=q.next().value;q=q.next().value;this.owner=F;this.disposeImpl=q};
tB.prototype.dispose=function(){if(!this.isDisposed){for(var F=_.X(this.childSignalProxies),q=F.next();!q.done;q=F.next())q.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var KJJ=function(F,q){F=_.u5(F.owner);try{q()}finally{_.u5(F)}};
tB.prototype.effect=function(F){KJJ(this,function(){_.m1(F)})};
var BrL=function(F,q){F.options!=null||(F.options={});var t;(t=F.options).immutableProps!=null||(t.immutableProps=new Set);F.options.immutableProps.add(q)},ee_=function(F,q){q=""+q;
LJd(F,q);var t,u;if((t=F.options)==null?0:(u=t.immutableProps)==null?0:u.has(q))return!0;var J;if((J=F.model.__signalCache)==null?0:J.has(q))t=F.model.__signalCache.get(q),Array.isArray(t)&&BrL(F,q);var g,Y,Q;return(Q=(g=F.options)==null?void 0:(Y=g.immutableProps)==null?void 0:Y.has(q))!=null?Q:!1},fTe=function(F,q){var t;
F.unknownSignalResolver&&(t=F.unknownSignalResolver(q));var u,J;((u=F.options)==null?0:(J=u.immutableProps)==null?0:J.has(q))?t!=null||(t=new C81(_.N3(F.model[q],void 0,"By5iP"))):t!=null||(t=new qH(_.N3(F.model[q],void 0,"CXghNc")));var g=F.model.hostElement;Object.defineProperty(F.model,q,{get:function(){Qoo(g,q);return t.getWithPath([])},
set:function(Y){AY(g,q);F.setWithPath([q],Y)},
configurable:!0});return t},LJd=function(F,q){var t,u,J;
((t=F.model.__signalCache)==null||!t.has(q))&&((u=F.options)==null?0:(J=u.externalSignalProps)==null?0:J.has(q))&&F.model[q]},hY=function(F,q){q=""+q;
var t=F.signalCache[q];if(t!==void 0)return t;t=!1;LJd(F,q);var u;if((u=F.model.__signalCache)==null?0:u.has(q))if(t=F.model.__signalCache.get(q),Array.isArray(t))t=!0,BrL(F,q);else return F.signalCache[q]=F.model.__signalCache.get(q).signal,F.signalCache[q];var J,g;u=(g=(J=F.options)==null?void 0:J.reactivityMode)!=null?g:0;var Y,Q;if(!((Y=F.options)==null?0:(Q=Y.reactiveProps)==null?0:Q.has(q))&&!t&&u===1)throw Error("Cg`"+q);J=t?aTO(F,q):fTe(F,q);return F.signalCache[q]=J},aTO=function(F,q){var t=
Object.getOwnPropertyDescriptor(F.model.constructor.prototype,q),u=function(){return F.model[q]};
return new C81(t&&t.get&&!t.set?u:[u,function(J){F.model[q]=J}])};
tB.prototype.getWithPath=function(F){var q=_.X(F);F=q.next().value;q=F6(q);Qoo(this.model.hostElement,""+F);return hY(this,F).getWithPath(q)};
tB.prototype.setWithPath=function(F,q){if(F.length){AY(this.model.hostElement,F.join("."));var t=_.X(F);F=t.next().value;t=F6(t);hY(this,F).setWithPath(t,q)}};
tB.prototype.getPathMutationSignal=function(F){var q=_.X(F);F=q.next().value;q=F6(q);return hY(this,F).getPathMutationSignal(q)};
tB.prototype.notifyPath=function(F,q){var t=_.X(F);F=t.next().value;t=F6(t);hY(this,F).notifyPath(t,q)};
var jfv=function(F,q){if(q.type==="literal")return function(){return{rootWasDefined:!0,value:q.value}};
var t=UB(q.path),u=_.X(t),J=u.next().value;u=F6(u);var g,Y;if(q.type==="path"&&(t.length===1||((g=F.options)==null?0:(Y=g.immutableProps)==null?0:Y.has(J))))return function(){var w=F.getWithPath(t.slice(0,1));w=P9W(w,t.slice(1));return{rootWasDefined:hY(F,t[0]).wasDefined,value:w}};
var Q=hY(F,J);if(q.type==="path"){var e=Q.getPathMutationSignal(u);return function(){var w,k=(w=e())==null?void 0:w.value;return{rootWasDefined:Q.wasDefined,value:k}}}if(q.type==="splices"){var r=Q.getSplicesSignal(u);
return function(){var w=r();return{rootWasDefined:Q.wasDefined,value:w}}}var N=Q.getChangeRecordSignal(u,""+J);
return function(){var w=N();return{rootWasDefined:Q.wasDefined,value:w}}},$xq=function(F,q,t){var u=t.map(function(Q){return jfv(F,Q)}),J=t.length===0,g=[],Y=t.length!==1||t[0].type!=="path"?!1:!0;
F.effect(function(){for(var Q=u.length,e=[],r=!!g.length,N=0;N<Q;N++){var w=u[N](),k=w.rootWasDefined;w=w.value;J||(J=k);e[N]=w;Y&&(e[N+Q]=r?g[N]:e[N],g[N]=w)}J&&$R(F.owner,function(){return void q.apply(null,_.mZ(e))})})},Art=function(F,q,t,u,J){var g=hY(F,q);
J!==void 0&&g.setWithPath([],J);$xq(F,function(){var Y=_.US.apply(0,arguments);AY(F.model.hostElement,q,!0);g.setWithPath([],t.apply(null,_.mZ(Y)))},u)};
tB.prototype.arrayPush=function(F){var q=_.US.apply(1,arguments),t=_.X(F),u=t.next().value;t=F6(t);u=hY(this,u);return u.push.apply(u,[t].concat(_.mZ(q)))};
tB.prototype.arraySplice=function(F,q,t){var u=_.US.apply(3,arguments),J=_.X(F),g=J.next().value;J=F6(J);g=hY(this,g);return g.splice.apply(g,[J,q,t].concat(_.mZ(u)))};
tB.prototype.arrayUnshift=function(F){var q=_.US.apply(1,arguments),t=_.X(F),u=t.next().value;t=F6(t);u=hY(this,u);return u.unshift.apply(u,[t].concat(_.mZ(q)))};
tB.prototype.notifySplices=function(F,q){var t=_.X(F);F=t.next().value;t=F6(t);hY(this,F).notifySplices(t,q)};var c4C=!0,FMv=!1,ZOv=!1,qWC=!1,tnx=0;qWC=!1;tnx=0;c4C=!0;FMv=ZOv=!1;var K2W=/([^\s]+?)\(([\s\S]*)\)/,UxC=/\.([^.]+)$/,L2o=/\\,/g,dxA=/&comma;/g,VHu=/\\(.)/g,Bp3=[],Smo={"*":"wildcard",splices:"splices"};var sHq=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"),q6u=/[A-Z]/,uyn=["class","hidden","id","on-dom-change"],lYq=new Set([].concat(_.mZ(uyn),
["if","notify-dom-change","restamp"])),XJo=new Set([].concat(_.mZ(uyn),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),Y6P=new Set(["restamp"]);var YW_=new Set(["className","id"]);var Req=Symbol(),zeu=window;var Obv=window;var mBt=0,A0C=0,K1=[],Hb$=0,xBq=!1,IYo=document.createTextNode("");(new window.MutationObserver(vuo)).observe(IYo,{characterData:!0});var L1=new Map,Bh=0,Jew=function(F){this.mappedHandleId=F},bby=function(F,q,t,u){this.mappedHandleId=F;
var J=this;this.mappedHandleId=F;this.callback=q;this.waitTime=t;this.schedulerPriority=u;this.handleId=_.mI.addJob(function(){J.callback();L1.delete(J.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.M(bby,Jew);bby.prototype.cancel=function(){_.mI.cancelJob(this.handleId);L1.delete(this.mappedHandleId)};
var y0q=function(F,q){this.mappedHandleId=F;var t=this;this.mappedHandleId=F;this.callback=q;this.handleId=$Bo(function(){t.callback();L1.delete(t.mappedHandleId)})};
_.M(y0q,Jew);y0q.prototype.cancel=function(){var F=this.handleId-A0C;F<0||K1.length<=F||(K1[F]=null);L1.delete(this.mappedHandleId)};var UBt=function(){};
UBt.prototype.cancel=function(){this.jobHandle!==void 0&&(Cs_(this.jobHandle),this.jobHandle=void 0)};
UBt.prototype.run=function(F,q,t){var u=this;this.cancel();this.callback=F;this.jobHandle=_.f1(function(){F();u.callback=void 0},q,t)};
UBt.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var dBq=new WeakMap;var sNf=YZ(function(F){for(var q=F,t=0;t<3;t++)q=Object.getPrototypeOf(q);delete q.prototype.connectedCallback;var u=function(){return F.apply(this,arguments)||this};
_.M(u,F);u.prototype._attachDom=function(J){if(!J)return null;var g=(0,_.Ns)(this.hostElement);g.attachShadow({mode:"open",shadyUpgradeFragment:J});g.shadowRoot.appendChild(J);return g.shadowRoot};
u.prototype._takeAttributes=function(){for(var J=this.hostElement.attributes,g=0;g<J.length;g++){var Y=J[g],Q=void 0,e=void 0;(e=(Q=this).__attributeReaction)==null||e.call(Q,Y.name,null,Y.value)}};
u.prototype._readyClients=function(){F.prototype._readyClients.call(this);this.root=this};
u.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);F.prototype.connectedCallback.call(this)};
_.JJ.Object.defineProperties(u,{template:{configurable:!0,enumerable:!0,get:function(){return u.prototype._template}}});
return u}),gkd=YZ(function(F){var q=function(){return F.apply(this,arguments)||this};
_.M(q,F);q.prototype.created=function(){if(this.__notifyEffects)for(var t=_.X(Object.values(this.__notifyEffects)),u=t.next();!u.done;u=t.next()){u=_.X(u.value);for(var J=u.next();!J.done;J=u.next())J.value.fn=BDC}if(this.__reflectEffects)for(t=_.X(Object.values(this.__reflectEffects)),u=t.next();!u.done;u=t.next())for(u=_.X(u.value),J=u.next();!J.done;J=u.next())J.value.fn=LFA};
q.prototype._addEventListenerToNode=function(t,u,J){t=jp(t);m0(t,u,J)||F.prototype._addEventListenerToNode.call(this,t,u,J)};
q.prototype._removeEventListenerFromNode=function(t,u,J){t=jp(t);yn(t,u,J)||F.prototype._removeEventListenerFromNode.call(this,t,u,J)};
q.prototype._propertiesChanged=function(t,u,J){if(this.__dataToNotify&&this.__notifyEffects)for(var g=_.X(Object.keys(this.__dataToNotify)),Y=g.next();!Y.done;Y=g.next()){Y=Y.value;var Q=KFf(Y);this.__notifyEffects[Q]||delete this.__dataToNotify[Y]}else this.__dataToNotify=null;F.prototype._propertiesChanged.call(this,t,u,J)};
q.prototype.fire=function(t,u,J){u=u===void 0?{}:u;var g;return _.Q0(jp((g=J==null?void 0:J.node)!=null?g:this),t,u,J)};
q.prototype._ensureAttribute=function(t,u){var J=jp(this);J.hasAttribute(t)||Sp(J,u,t)};
q.prototype.isLightDescendant=function(t){var u=jp(this);return jp(u)!==t&&_.ep(u).contains(t)&&_.ep(u).getRootNode()===_.ep(t).getRootNode()};
return q});
_.I$.ready=function(){var F;((F=this.hostElement)!=null?F:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var q;((q=this.hostElement)!=null?q:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Vl._subscribeIronResize=function(F){var q;((q=F.hostElement)!=null?q:F).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Vl._unsubscribeIronResize=function(F){var q;((q=F.hostElement)!=null?q:F).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var jHo=[Array,Boolean,Date,Number,Object,String],Ft=function(F,q,t,u){this.polySiInfo=F;this.polySiParams=q;this.polySiContext=t;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;u||this instanceof HTMLElement&&(u=this);if(!u)throw Error("Jg");this.allowedProps=q.allowedProps;this.hostElement=u;this.is=F.is;this.upgradeDisabled=!!q.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");F=new Set(q.reactiveSchemas.filter(function(J){return J.type!==
"observe"}).map(function(J){return J.propertyKey}));
this.signalProxy=new tB(this,void 0,{reactiveProps:F,reactivityMode:q.reactivityMode});this.__dataHasAccessor={};q=_.X(q.reactiveSchemas);for(F=q.next();!F.done;F=q.next())F=F.value,F.type==="signal"&&(this.__dataHasAccessor[F.propertyKey]=!0);this.upgradeDisabled||l8e(this)};
Ft.prototype.getExtraMethodsToForward=function(){return[]};
var l8e=function(F){F.polySiContext.didRegister||(F.registered(),F.polySiContext.didRegister=!0);F.polySiContext.finalizedTemplate||(F.polySiContext.finalizedTemplate={},F.polySiParams.templateGetter&&(F.polySiContext.finalizedTemplate.processedTemplate=Pso(F.polySiParams.templateGetter,F.polySiParams.is)));XFe(F);var q=F.hostElement;q.loggingStatus!=null||(q.loggingStatus={});q.loggingStatus.isInitializing=!0;rP(function(){return void F.created()});
q.loggingStatus.isInitializing=!1;F.isPolySiElementConnected&&YWj(F)},YWj=function(F){F.didCallReady||(rP(function(){return void F.ready()}),F.didCallReady=!0);
F.isAttached=!0;F.attached()};
_.l=Ft.prototype;_.l.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||YWj(this)};
_.l.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.l.attributeChangedCallback=function(F,q,t){if(this.upgradeDisabled)F==="disable-upgrade"&&t===null&&(this.upgradeDisabled=!1,l8e(this));else if(q!==t){var u=_.Md(F),J=this.polySiContext.typesForSignals[u];if(J&&(!this.reflecting||_.E("polysi_attribute_changed_serializing_killswitch"))){switch(J){case Object:try{var g=JSON.parse(t)}catch(Q){g=t}break;case Array:try{g=JSON.parse(t)}catch(Q){g=null}break;case Date:g=isNaN(t)?String(t):Number(t);g=new Date(g);break;case Boolean:g=t!==null;break;case Number:g=
Number(t);break;default:g=t}this[u]=g}u=_.X(this.polySiParams.behaviors);for(J=u.next();!J.done;J=u.next())g=void 0,(g=J.value.attributeChanged)==null||g.call(this,F,q,t);var Y;(Y=this.attributeChanged)==null||Y.call(this,F,q,t)}};
_.l.attributeChangedCallbackWrapper=function(F,q,t){this.attributeChangedCallback(F,q,t)};
_.l.setPropertiesFromInitialAttributeValues=function(){for(var F=0;F<this.hostElement.attributes.length;F++){var q=this.hostElement.attributes[F];(q.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(q.name))&&this.attributeChangedCallback(q.name,null,q.value)}};
_.l.created=function(){this.provide=this.polySiParams.provide;var F;(F=this.initializeInjection)==null||F.call(this);F=_.X(this.polySiParams.reactiveSchemas);for(var q=F.next();!q.done;q=F.next())q=q.value,q.type==="signal"&&(this.mutablePropNames.add(q.propertyKey),hY(this.signalProxy,q.propertyKey));aYu(this,this.polySiInfo,this.polySiParams.behaviors);F=_.X(this.polySiParams.reactiveSchemas);for(q=F.next();!q.done;q=F.next())q=q.value,q.type==="signal"&&q.value!==void 0&&(this.signalProxy.model[q.propertyKey]=
typeof q.value==="function"?q.value.call(this):q.value);if(this.polySiParams.signalProperties)for(F=_.X(this.polySiParams.signalProperties),q=F.next();!q.done;q=F.next()){q=q.value;var t=void 0;((t=this.__signalCache)==null?0:t.has(q))||(this.signalProxy.model[q]=void 0)}qWC||pFE(this);fYq(this);F=_.X(this.polySiParams.behaviors);for(q=F.next();!q.done;q=F.next())t=void 0,(t=q.value.created)==null||t.call(this);var u;(u=this.polySiInfo.created)==null||u.call(this)};
_.l.registered=function(){var F=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var q=Object.getPrototypeOf(this);q.addReactiveSchema=function(Q){F.polySiParams.reactiveSchemas.push(Q)};
for(var t=_.X(this.polySiParams.behaviors),u=t.next();!u.done;u=t.next()){var J=void 0;(J=u.value.beforeRegister)==null||J.call(q)}var g;(g=this.polySiInfo.beforeRegister)==null||g.call(q);q.addReactiveSchema=FJM;t=_.X(this.polySiParams.behaviors);for(u=t.next();!u.done;u=t.next())J=void 0,(J=u.value.registered)==null||J.call(q);var Y;(Y=this.polySiInfo.registered)==null||Y.call(q)};
_.l.ready=function(){var F;(F=this.beforeReady)==null||F.call(this);qWC&&pFE(this);var q;if(F=(q=this.polySiContext.finalizedTemplate)==null?void 0:q.processedTemplate){F=WF$(F.template,F.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:F.hasInsertionPoint,thisCtx:this});q=F.nodesById;F=F.root;var t=this.hostElement;var u=u===void 0?!1:u;t=(0,_.Ns)(t);if(!t.attachShadow)throw Error("Cd");if(!t.shadowRoot||u)t.attachShadow({mode:"open",shadyUpgradeFragment:F}),t.shadowRoot.appendChild(F);
this.root=t.shadowRoot;this.$=q}QNj(this);u=_.X(this.polySiParams.behaviors);for(q=u.next();!q.done;q=u.next())F=void 0,(F=q.value.ready)==null||F.call(this);var J;(J=this.polySiInfo.ready)==null||J.call(this)};
_.l.attached=function(){for(var F=_.X(this.polySiParams.behaviors),q=F.next();!q.done;q=F.next()){var t=void 0;(t=q.value.attached)==null||t.call(this)}var u;(u=this.polySiInfo.attached)==null||u.call(this)};
_.l.detached=function(){for(var F=_.X(this.polySiParams.behaviors),q=F.next();!q.done;q=F.next()){var t=void 0;(t=q.value.detached)==null||t.call(this)}var u;(u=this.polySiInfo.detached)==null||u.call(this)};
var XFe=function(F){for(var q=_.X(F.polySiParams.behaviors),t=q.next();!t.done;t=q.next())if(t=t.value,t.listeners)for(var u in t.listeners)DBA(F,F.hostElement,u,t.listeners[u]);if(F.polySiInfo.listeners)for(var J in F.polySiInfo.listeners)DBA(F,F.hostElement,J,F.polySiInfo.listeners[J])},DBA=function(F,q,t,u,J){F=Oyy(F,u,J);
m0(q,t,F)||q.addEventListener(t,F);return F},pFE=function(F){for(var q=_.X(F.polySiParams.reactiveSchemas),t=q.next();!t.done;t=q.next())t=t.value,t.type==="compute"||t.type==="computeWithMethod"?v1$(F.signalProxy,t,F):t.type==="redux"?mxC(F.signalProxy,t,F.store):t.type==="signal"&&t.readOnly&&HyW(F.signalProxy,t)},QNj=function(F){for(var q=_.X(F.polySiParams.reactiveSchemas),t=q.next(),u={};!t.done;u={schema$jscomp$12:void 0},t=q.next())u.schema$jscomp$12=t.value,u.schema$jscomp$12.type==="notify"?
byy(F.signalProxy,u.schema$jscomp$12,F.hostElement):u.schema$jscomp$12.type==="observe"?yrq(F.signalProxy,u.schema$jscomp$12,F):u.schema$jscomp$12.type==="reflect"&&F.signalProxy.effect(function(g){return function(){var Y=F.signalProxy.getWithPath([g.schema$jscomp$12.propertyKey]);
F.reflecting=!0;aL$(F.hostElement,g.schema$jscomp$12.propertyKey,Y,!0);F.reflecting=!1}}(u));
if(F.reflectedAttributes)for(q=_.X(Object.entries(F.reflectedAttributes)),u=q.next(),t={};!u.done;t={key$jscomp$933:void 0,value$jscomp$9706:void 0},u=q.next()){var J=_.X(u.value);u=J.next().value;J=J.next().value;t.key$jscomp$933=u;t.value$jscomp$9706=J;F.signalProxy.effect(function(g){return function(){F.reflecting=!0;aL$(F.hostElement,g.key$jscomp$933,(0,g.value$jscomp$9706)(),!0);F.reflecting=!1}}(t))}};
_.l=Ft.prototype;_.l._setPendingProperty=function(F,q){this.set(F,q);return!1};
_.l._enableProperties=function(){};
_.l._setPendingPropertyOrPath=function(F,q){this.notifyPath(F,q);return!1};
_.l._addPropertyEffect=function(){};
_.l._stampTemplate=function(){throw Error("Kg");};
_.l.fire=function(F,q,t){q=q===void 0?{}:q;t=t===void 0?{}:t;var u,J,g={bubbles:(u=t.bubbles)!=null?u:!0,cancelable:!!t.cancelable,composed:(J=t.composed)!=null?J:!0},Y;return _.Q0(qEu((Y=t.node)!=null?Y:this.hostElement),F,q,g)};
_.l.get=function(F,q){var t=UB(F);return q?P9W(q,t):F==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(t)};
_.l.linkPaths=function(){};
_.l.listen=function(F,q,t){F=qEu(F);this.boundListeners!=null||(this.boundListeners=new WeakMap);var u=this.boundListeners.get(F);u||(u={},this.boundListeners.set(F,u));var J=q+t;u[J]||(u[J]=DBA(this,F,q,t))};
_.l.notifyPath=function(F,q){this.signalProxy.notifyPath(UB(F),arguments.length===2?{value:q}:void 0)};
_.l.canNotifyPath=function(F){return this.mutablePropNames.has(F)&&!ee_(this.signalProxy,F)};
_.l.notifySplices=function(F,q){this.signalProxy.notifySplices(UB(F),q)};
_.l.pop=function(F){var q=this.signalProxy;F=UB(F);var t=_.X(F);F=t.next().value;t=F6(t);return hY(q,F).pop(t)};
_.l.push=function(F){var q=_.US.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[UB(F)].concat(_.mZ(q)))};
_.l.set=function(F,q,t){if(t)throw Error("Lg");F==="hidden"?this.hostElement.hidden=!!q:this.signalProxy.setWithPath(UB(F),q)};
_.l.setProperties=function(F){F=_.X(Object.entries(F));for(var q=F.next();!q.done;q=F.next()){var t=_.X(q.value);q=t.next().value;t=t.next().value;this[q]=t}};
_.l.splice=function(F,q,t){var u=_.US.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[UB(F),q,t].concat(_.mZ(u)))};
_.l.unlinkPaths=function(){};
_.l.unlisten=function(F,q,t){F=qEu(F);if(this.boundListeners){var u=this.boundListeners.get(F);if(u){t=q+t;var J=u[t];J&&(yn(F,q,J)||F.removeEventListener(q,J),delete u[t])}}};
_.l.unshift=function(F){var q=_.US.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[UB(F)].concat(_.mZ(q)))};
_.JJ.Object.defineProperties(Ft.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 ev3=[Array,Boolean,Date,Number,Object,String];var r4P=!1;var uT=function(){var F=HTMLElement.apply(this,arguments)||this;F.restamp=!1;F.notifyDomChange=!1;F.JSC$13517_didCallConnected=!1;F.JSC$13517_renderDebouncer=null;F.disableTemplateUpdateSignalImpl=qc()?void 0:_.N3(!1,void 0,"Ofhkwb");var q;F.getDisableTemplateUpdate=(q=F.disableTemplateUpdateSignalImpl)==null?void 0:q[0];var t;F.setDisableTemplateUpdate=(t=F.disableTemplateUpdateSignalImpl)==null?void 0:t[1];return F};
_.M(uT,HTMLElement);var emr=function(F){F.conditionSignalImpl!=null||(F.conditionSignalImpl=new qH(_.N3(!1,void 0,"gE52Fb")));return F.conditionSignalImpl};
_.l=uT.prototype;_.l.showHideChildren=function(F){ZKf(this,F,this.if)};
_.l.attributeChangedCallback=function(F,q,t){if(this.JSC$13517_didCallConnected)throw Error("Pg`"+F);F==="notify-dom-change"?this.notifyDomChange=t!==null:F==="restamp"&&(this.restamp=t!==null)};
_.l.debounceRender=function(){this.JSC$13517_renderDebouncer=_.Eu(this.JSC$13517_renderDebouncer,dZ,this.JSC$13517_renderImpl.bind(this));_.zs(this.JSC$13517_renderDebouncer)};
_.l.disconnectedCallback=function(){var F=(0,_.Ns)(this).parentNode;(!F||F.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in F&&!F.host)&&Rmz(this)};
_.l.connectedCallback=function(){var F=this;this.JSC$13517_didCallConnected=!0;c4C?Nrq():this.style.display="none";this.parentSignalProxy.effect(function(){emr(F).getWithPath([]);F.debounceRender()})};
_.l.render=function(){_.Ts()};
_.l.JSC$13517_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var F=this.if,q=!1;if(F){this.hasInstance()||(rer(this),q=!0);a:{var t=(0,_.Ns)(this).parentNode;if(this.hasInstance()){var u=this.instance.children;if((u==null?0:u.length)&&(0,_.Ns)(this).previousSibling!==u[u.length-1])for(var J=0;J<u.length;J++)(0,_.Ns)(t).insertBefore(u[J],this)}else{if(!t){t=!1;break a}NSd(this,t)}t=!0}if(!t)return}else this.restamp&&Rmz(this);ZKf(this,!1,F);F&&!q&&rer(this);FMv&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.l.hasInstance=function(){return!!this.instance};
var NSd=function(F,q){var t=F.parentSignalProxy;if(qc()){var u=_.X(_.N3(!0,void 0,"yf4Yhf"));var J=u.next().value;u=u.next().value;t=F.parentSignalProxy}else{var g;var Y=new tB((g=wFf(F))!=null?g:{},function(e){var r=hY(F.parentSignalProxy,e).getChangeRecordSignal([]);e=_.N3(void 0,void 0,"oT9mkc");var N=new qH(e);Y.effect(function(){if(F.getDisableTemplateUpdate&&!F.getDisableTemplateUpdate()){var w=r();N.notifyPath(UB(w.path),{value:w.value})}});
return N});
F.parentSignalProxy.childSignalProxies.push(Y);var Q=t=Y}t=WF$(F.templateInfo,F.templateInfo.nodeInfoList,t,{eventListenerHost:F.eventListenerHost,hasInsertionPoint:F.templateInfo.hasInsertionPoint,thisCtx:F.eventListenerHost,enabledSignal:qc()?J:void 0,getModel:function(){return wFf(F)}}).root;
F.instance={root:t,children:[],hidden:!1,signalProxy:Q,getTemplateUpdatesEnabled:J,setTemplateUpdatesEnabled:u};Q=_.X(t.childNodes);for(J=Q.next();!J.done;J=Q.next())F.instance.children.push(J.value);(0,_.Ns)(q).insertBefore(F.instance.root,F)},wFf=function(F){if((F=F.parentSignalProxy.model)&&!F.hostElement){var q={},t;
for(t in F)F.hasOwnProperty(t)&&(q[t]=F[t]);return q}},Rmz=function(F){if(F.instance){var q=F.instance.children;
if(q.length){var t=(0,_.Ns)(q[0]).parentNode;if(t){t=(0,_.Ns)(t);for(var u=0;u<q.length;u++)t.removeChild(q[u])}}qc()?F.instance.setTemplateUpdatesEnabled(!1):F.instance.signalProxy.dispose();F.instance=void 0}},ZKf=function(F,q,t){q=q||!t;
F.instance&&F.instance.hidden!==q&&(F.instance.hidden=q,Rvy(q,F.instance.children))},rer=function(F){if(qc()){var q=F.instance;
q&&$R(F.parentSignalProxy.owner,function(){return!q.getTemplateUpdatesEnabled()})&&q.setTemplateUpdatesEnabled(!0)}else F.setDisableTemplateUpdate(!1)};
_.JJ.Object.defineProperties(uT.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var F=this;return $R(this.parentSignalProxy.owner,function(){return emr(F).getWithPath([])})},
set:function(F){F||(qc()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));emr(this).setWithPath([],!!F)}}});
_.JJ.Object.defineProperties(uT,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",uT);var iKC=[],JB=function(){var F=HTMLElement.apply(this,arguments)||this;F.as="item";F.indexAs="index";F.itemsIndexAs="itemsIndex";F.targetFramerate=20;F.notifyDomChange=!1;F.isDetached=!1;F.JSC$13524_renderDebouncer=null;F.instances=[];F.chunkingId=null;F.chunkCount=null;F.shouldMeasureChunk=!1;F.shouldContinueChunking=!1;F.renderStartTime=null;F.JSC$13524_didCallConnected=!1;return F};
_.M(JB,HTMLElement);var k6v=function(F){F.itemSignalImpl!=null||(F.itemSignalImpl=new qH(_.N3(iKC,void 0,"YBrqgf")));return F.itemSignalImpl},Eke=function(F,q){Array.isArray(q)||(q=iKC);
k6v(F).setWithPath([],q)};
_.l=JB.prototype;_.l.showHideChildren=function(F){for(var q=_.X(this.instances),t=q.next();!t.done;t=q.next())Rvy(F,t.value.children)};
_.l.notifyPath=function(F,q){F=UB(F);F[0]==="items"&&(F.length===1?Eke(this,q):k6v(this).setWithPath(F.slice(1),q))};
_.l.canNotifyPath=function(F){return F==="items"};
_.l.attributeChangedCallback=function(F,q,t){if(this.JSC$13524_didCallConnected)throw Error("Qg`"+F);F==="as"?this.as=t:F==="index-as"?this.indexAs=t:F==="items-index-as"?this.itemsIndexAs=t:F==="initial-count"?this.initialCount=Number(t):F==="notify-dom-change"?this.notifyDomChange=t!==null:F==="target-framerate"&&(this.targetFramerate=Number(t))};
_.l.disconnectedCallback=function(){this.isDetached=!0;for(var F=0;F<this.instances.length;F++)zmx(this,F);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.l.connectedCallback=function(){var F=this,q=k6v(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var J=q(),g=UB(J.path);if(g[0]===void 0||g[0]==="splices"||g[0]==="length")F.debounceRender();else{var Y=g[0];if(Y=F.instances[typeof Y==="string"?Math.floor(Number(Y)):Y])g=[F.as].concat(_.mZ(g.slice(1))),Y.signalProxy.notifyPath(g,J)}});
this.JSC$13524_didCallConnected=!0;c4C?Nrq():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var t=(0,_.Ns)((0,_.Ns)(this).parentNode),u=0;u<this.instances.length;u++)t.insertBefore(this.instances[u].root,this);this.chunkingId&&this.render()}};
_.l.debounceRender=function(){this.JSC$13524_renderDebouncer=_.Eu(this.JSC$13524_renderDebouncer,dZ,this.JSC$13524_renderImpl.bind(this));_.zs(this.JSC$13524_renderDebouncer)};
_.l.render=function(){this.debounceRender();_.Ts()};
_.l.JSC$13524_renderImpl=function(){var F=this;if(!this.parentSignalProxy.isDisposed){var q=this.items,t=okO(this,q.length);nkx(this,q,t);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){F.chunkingId=null;if(F.shouldMeasureChunk){var u=performance.now()-F.renderStartTime;F.chunkCount=Math.round(Math.ceil(1E3/F.targetFramerate)/u*F.chunkCount)||1}F.shouldContinueChunking&&F.debounceRender()}));
FMv&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var okO=function(F,q){var t=q,u=F.instances.length;if(F.initialCount){if(F.chunkCount){var J=Math.min(Math.max(q-u,0),F.chunkCount);t=Math.min(u+J,q)}else t=Math.min(q,F.initialCount),J=Math.max(t-u,0),F.chunkCount=J||1;F.shouldMeasureChunk=J===F.chunkCount;F.shouldContinueChunking=t<q;F.renderStartTime=performance.now()}return t},nkx=function(F,q,t){for(var u=0;u<t;u++){var J=F.instances[u],g=q[u];
J?(J.signalProxy.setWithPath([F.as],g),J.signalProxy.setWithPath([F.indexAs],u)):MnL(F,g,u)}for(q=F.instances.length-1;q>=u;q--)t=F,J=q,zmx(t,J),_.X(t.instances.splice(J,1)).next().value.signalProxy.dispose()},zmx=function(F,q){F=F.instances[q];
q=(0,_.Ns)(F.root);for(var t=0;t<F.children.length;t++)q.appendChild(F.children[t])},MnL=function(F,q,t){var u={};
q=Object.assign({},TSv(F),(u[F.as]=q,u[F.indexAs]=t,u[F.itemsIndexAs]=t,u));var J=new tB(q,function(Y){if(Y!==F.as&&Y!==F.indexAs){if(Y===F.itemsIndexAs)return hY(J,F.indexAs);var Q=hY(F.parentSignalProxy,Y).getChangeRecordSignal([]);Y=_.N3(void 0,void 0,"T21Pqc");var e=new qH(Y);J.effect(function(){var r=Q();e.notifyPath(UB(r.path),{value:r.value})});
return e}});
F.parentSignalProxy.childSignalProxies.push(J);u=WF$(F.templateInfo,F.templateInfo.nodeInfoList,J,{eventListenerHost:F.eventListenerHost,getModel:function(){var Y={};return Object.assign({},TSv(F),(Y[F.as]=J.model[F.as],Y[F.indexAs]=J.model[F.indexAs],Y[F.itemsIndexAs]=J.model[F.indexAs],Y))},
hasInsertionPoint:F.templateInfo.hasInsertionPoint,thisCtx:F.eventListenerHost,methodInvocationRequirement:tnx,enabledSignal:F.stampingEnabled}).root;q={root:u,children:[],signalProxy:J};u=_.X(u.childNodes);for(var g=u.next();!g.done;g=u.next())q.children.push(g.value);u=(u=F.instances[t+1])?u.children[0]:F;(0,_.Ns)((0,_.Ns)(F).parentNode).insertBefore(q.root,u);F.instances[t]=q},TSv=function(F){if((F=F.parentSignalProxy.model)&&!F.hostElement){var q={},t;
for(t in F)F.hasOwnProperty(t)&&(q[t]=F[t]);return q}};
JB.prototype.itemForElement=function(F){var q=this,t=this.instances.find(function(u){return u.children.includes(F)});
if(t)return $R(this.parentSignalProxy.owner,function(){return t.signalProxy.getWithPath([q.as])})};
JB.prototype.indexForElement=function(F){var q=this.instances.findIndex(function(t){return t.children.includes(F)});
return q>=0?q:void 0};
_.JJ.Object.defineProperties(JB.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var F=this;return $R(this.parentSignalProxy.owner,function(){return k6v(F).getWithPath([])})},
set:function(F){Eke(this,F)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.JJ.Object.defineProperties(JB,{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",JB);var G6O,DuL;_.sb=new _.pg("STATE_STORE_TOKEN");G6O=new _.pg("SELECT_TOKEN");DuL=new _.pg("DISPATCH_TOKEN");var o4$={getSelectFn:function(){var F;return(F=_.sV().resolve(_.JU(G6O)))!=null?F:wgo},
getDispatchFn:function(){var F;return(F=_.sV().resolve(_.JU(DuL)))!=null?F:_.tv().dispatch.bind(_.tv())},
getAppStore:function(){return _.sV().resolve(_.sb)}},iOv,zvP=!1;var GhA=new Sld;var xPP=function(){};var WJ$=void 0;var WMf=function(){};
WMf.prototype.hasAttribute=function(F){if(F==="dir")return!1;if(F==="disable-upgrade"){var q,t;return(t=(q=this.hostElement)==null?void 0:q.hasAttribute("disable-upgrade"))!=null?t:!1}throw Error("Rg`"+F);};
WMf.prototype.attributeChangedCallbackWrapper=function(F,q,t){if(F==="disable-upgrade"&&this.__isUpgradeDisabled&&t===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var u;((u=this.hostElement)!=null?u:this).isConnected&&this.connectedCallback()}else q===t||this.__isReflecting||this.attributeChangedCallback(F,q,t)};
WMf.prototype.getExtraMethodsToForward=function(){for(var F=this,q=[],t=_.X(OKe),u=t.next(),J={};!u.done;J={tagName$jscomp$54:void 0,name$jscomp$598:void 0},u=t.next())J.name$jscomp$598=u.value,u=void 0,J.name$jscomp$598==="_setPendingProperty"?(J.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),u=function(g){return function(Y,Q,e){xM(g.tagName$jscomp$54,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return F._setPendingProperty(Y,Q,e)}}(J)):u=function(g){return function(){return F[g.name$jscomp$598].apply(F,
_.mZ(_.US.apply(0,arguments)))}}(J),q.push([J.name$jscomp$598,
u]);return q};
for(var IT3=gkd(sNf((0,_.Iz)(WMf))),bO_=["disabled","disable-upgrade"],PGJ=(0,_.Iz)(function(){}),xun=new Set(Object.getOwnPropertyNames(PGJ.prototype)),UPy=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.mZ(xun))),C8t=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),OKe=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),Aee=new Set([].concat(_.mZ(C8t),_.mZ(OKe),_.mZ(xun))),vkv=_.X(Aee),I8z=vkv.next();!I8z.done;I8z=vkv.next())lLq.add(I8z.value);var V4A={created:function(){fYq(this);this.initializeInjection()}};var c4W=!1,Qj=window.ShadyDOM,l83=["appendChild","insertBefore","removeChild","replaceChild"],gko=[Node];Qj&&gko.push(Qj.Wrapper);var ZKy,RmC,wFy={};_.ZP=new Set;_.Qh="";_.k6M="";var eg,Rc=new Set;var G6P=new Set("context didCallReady is info params signalProxy".split(" ")),WMy="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),OK3="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var HKE=zW({entities:oHy}),muj=new tn(HKE);var $uL=function(){return _.Ga.apply(this,arguments)||this};
_.M($uL,_.Ga);_.JJ.Object.defineProperties($uL.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return muj}}});
_.C([_.Dj()],$uL);_.gv=[cG.prototype,$uL.prototype];_.lT={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var F=this,q={};setTimeout(function(){var t;return _.Q0((t=F.hostElement)!=null?t:F,"yt-live-chat-add-tooltip-target",q)},0);
this.handler_=q.handler},
detached:function(){if(this.handler_){var F;this.handler_.removeElementFromSupportingTooltips((F=this.hostElement)!=null?F:this)}this.handler_=null}}};_.zC=new _.pg("ICON_MANAGER_TOKEN");var bKf=[48,20,18,16,15,13,12],jNC=new Map,hm$=new Set,VnA=new Set,SWq=new Set,duu=new Set,Uuq=new Set,BSv=new Promise(function(F){var q=!1,t=!1,u=!1,J=[],g=function(Y){if("detail"in Y)if(Y=Y.detail,Y.name==="yt-icons")KMM(Y),q=!0;else if(Y.name==="yt-sys-icons")KMM(Y),t=!0;else{var Q;((Q=Y.name)==null?0:Q.includes("yt-sys-icons"))&&Y.size!==24&&(KMM(Y,!0),J.push(Y.size),J.length===bKf.length&&(u=!0))}q&&t&&u&&(window.removeEventListener("iron-iconset-added",g),F())};
window.addEventListener("iron-iconset-added",g)}),f8_=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"]]);_.XV={};_.XV.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.q1,computeHref_:function(F,q){q=q===void 0?!1:q;if(!F||F.commandExecutorCommand)return null;var t=B0C(F,q);return q||t!==null?t?_.E("enable_polymer_resin")?_.d$(t).toString():t:null:(_.bz(new _.D0("computeHref was null",this.is,F)),null)},
computeOptionalHref_:function(F){return this.computeHref_(F,!0)},
computeNofollow_:function(F){return F?bHo(F)?"nofollow":null:null},
computeIcon_:function(F){return F&&F.iconType?_.Ek(F.iconType):""},
resolveCommand:function(F,q,t){q=q===void 0?{}:q;return _.n9(F,this.hostElement,q,t===void 0?!1:t)}};var CG1,Y9;_.yeE={};CG1=null;
Y9={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_=hDv(this.viewroot));_.f1(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var F=this;this.unobserve_();if(_.E("kevlar_vimio_use_shared_monitor"))u_3(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 q=[];this.visibilityOptionVisible_&&q.push(this.visibilityObserver.observe(this.hostElement,function(){return F.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&q.push(this.visibilityObserver.observe(this.hostElement,function(){return F.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&q.push(this.visibilityObserver.observe(this.hostElement,function(){return F.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=q}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){cet(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var F=_.Vp(this.parentNode,function(t){var u,J=(u=t.polymerController)!=null?u:t;return!!J.getVisibilityObserverForChild&&J.getVisibilityObserverForChild()},!0);
if(F){var q;this.localVisibilityObserver_=((q=F.polymerController)!=null?q:F).getVisibilityObserverForChild()}else CG1||(CG1=hDv()),this.localVisibilityObserver_=CG1;return this.localVisibilityObserver_},visibilityCallback:function(F){F?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.E("kevlar_use_vimio_behavior")||(Y9={});Y9&&!_.E("kevlar_use_vimio_behavior")&&(delete Y9.attached,delete Y9.detached);_.yeE.YtVisibilityObserverBehavior=[Y9];var duJ={};duJ.YtVisualElementBehavior=[_.yeE.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.E("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.E("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var F=this.getScreenLayer&&this.getScreenLayer(),q=this.getVisibilityLogger();q&&q.reportShown(this,void 0,F)}},
onHidden:function(){if(_.E("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.E("kevlar_vimio_use_shared_monitor")){var F=this.getScreenLayer&&this.getScreenLayer(),q=this.getVisibilityLogger();q&&q.reportHidden(this,void 0,F)}},
getVisibilityLogger:function(){return _.E("kevlar_use_vimio_behavior")?_.TC():null},
shouldSkipLogging:function(){if(_.bn("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var F=this.getParentRenderer&&this.getParentRenderer();if(!F)return!1;var q,t=(q=F.polymerController)!=null?q:F;if(!t.data)return!1;F=this.data.trackingParams;F=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:F;var u;q=(u=t.data)==null?void 0:u.trackingParams;var J,g;q=((J=t.data)==null?0:J.loggingDirectives)?(g=t.data)==null?void 0:g.loggingDirectives.trackingParams:q;return F&&q&&F===
q}}];var gr_=new Map,v9;var WCv=function(F){this.layer=F},eN=function(F){return F.layer!==void 0?F.layer:F.parent?eN(F.parent):F.layer=0};var e8M;_.B={};e8M=0;_.B.YtRendererBehavior=[_.XV.YtComponentBehavior,duJ.YtVisualElementBehavior,{_noAccessors:!0,properties:{data:Object},observers:["ytRendererBehaviorDataObserver_(data)","ytRendererBehaviorTargetIdObserver_(data.targetId)"],childCache_:null,parentComponent:null,wasVisible:!1,wasPrescan:!1,lastHandledScroll_:0,isRenderer_:!0,screenLayer:null,veFromLoggingDirective_:!1,useVimio_:_.E("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var F,q;(q=(F=this.monitorScrollElement)!=null?F:this.hostElement)==null||q.removeEventListener("scroll",_.kM(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();J_P(this.hostElement);c01(_.h8(),this.hostElement);tx.delete(this.hostElement)},
registerRenderer:function(F){var q;((q=F.polymerController)!=null?q:F).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(F),this.markDirty())},
unregisterRenderer_:function(F){this.useVimio_||(this.childCache_.delete(F),this.markDirty())},
attached:function(){var F=this,q=this.getParentRenderer();if(q){var t,u,J;(u=(t=(J=q.polymerController)!=null?J:q).registerRenderer)==null||u.call(t,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var g,Y;(Y=(g=this.monitorScrollElement)!=null?g:this.hostElement)==null||Y.addEventListener("scroll",_.kM(this,this.onScroll))}_.mI.addJob(function(){lmW(F.hostElement)},8);
t=new WCv(this.screenLayer||void 0);(q=tx.get(q))&&q.layerNode&&(t.parent=q.layerNode);q={};Bzo(this.hostElement,(q.isRenderer=!0,q.layerNode=t,q[OTt]=this.data,q))},
getParentRenderer:function(){for(var F=this.hostElement.parentNode,q,t;F&&((q=tx.get(F))==null||!q.isRenderer)&&!((t=F.polymerController)!=null?t:F).isRenderer_;)F=F.parentNode||F.host;return F},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.E("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.yG("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.E("debug_web_ve_data")&&this.data.trackingParams){var F="";try{F=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(t){_.mH(t)}if(F){var q=elC(F,1);q!==void 0&&(this.hostElement.dataset.veIndex=String(q));F=elC(F,2);
F!==void 0&&(this.hostElement.dataset.ve=String(F))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.E("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Av(this.data.loggingDirectives.trackingParams)),this.visualElement=_.GC(_.DP(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var F=this.data.targetId;_.qEJ(_.h8(),F,this.hostElement)}else c01(_.h8(),this.hostElement)},
onScroll:function(){var F=Date.now();F-this.lastHandledScroll_<50||(this.lastHandledScroll_=F,this.markDirty())},
markDirty:function(){_.E("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Zvq(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var F=this.getParentRenderer();if(F&&(F=tx.get(F))&&F.layerNode)return eN(F.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.mZ(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var F=0;F<this.data.impressionEndpoints.length;F++)this.sendImpression(this.data.impressionEndpoints[F]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(F){F.clickTrackingParams&&delete F.clickTrackingParams;var q,t;(F==null?0:(q=F.commandMetadata)==null?0:(t=q.webCommandMetadata)==null?0:t.sendPost)?_.RD(this.hostElement,[F,{impression:!0}]):_.rY(this.hostElement,[F],this.hostElement)},
logExplicitClick:function(F){var q=_.yb(this.getScreenLayer());if(q){var t,u=(t=F.polymerController)!=null?t:F;F=u.visualElement;u=u.trackingParams||u.clickTrackingParams;!F&&u&&(F=_.Av(u));F&&_.co(q,F)}}}];var Vnn={},pA=function(){return _.Ga.apply(this,arguments)||this};
_.M(pA,_.Ga);pA.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
pA.prototype.onPdgItemBehaviorClick=pA.prototype.onPdgItemBehaviorClick;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],pA.prototype,"data",void 0);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],pA.prototype,"onPdgItemBehaviorClick",null);_.C([_.Dj()],pA);Vnn.YtPdgLiveChatItemBehavior=[pA.prototype,_.B.YtRendererBehavior];var UuL;var SWL;_.QP={};_.QP.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var e9=function(){var F=gQ.apply(this,arguments)||this;F.switchTemplateAtRegistration=!1;return F};
_.M(e9,gQ);e9.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||wH_(this),_.S6W(this,"doRender"),this.doRender())};
e9.prototype.debounceRender=function(){this.templatingFn&&_.aE(this,"doRender",this.doRender)};
e9.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.mH(Error("ah"))};
e9.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.C([IHo()],e9);var hmr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Zs={},z8P=(Zs[1]={filterString:null,isUnwrappable:null,unwrap:null},Zs[2]={filterString:function(F,q,t){return Rs(t)},
isUnwrappable:function(F){return F instanceof BS},
unwrap:function(F){return fl(F)}},Zs[3]={filterString:function(F,q,t){return hmr.test(t)?t:Cl.toString()},
isUnwrappable:function(F){return HS(F)},
unwrap:function(F){return _.mt(F)}},Zs[4]={filterString:function(){return Cl.toString()},
isUnwrappable:function(F){return F instanceof WS},
unwrap:function(F){return _.PS(F).toString()}},Zs[5]={filterString:function(F,q,t){return t},
isUnwrappable:function(F){return typeof F==="string"},
unwrap:function(F){return F.toString()}},Zs[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(F){return F instanceof _.FY},
unwrap:function(F){return XAo(F)}},Zs[8]={filterString:function(F,q,t){t=String(t).toLowerCase();
return pUC(F,q,t)?t:"zClosurez"},
isUnwrappable:null,unwrap:null},Zs[10]={filterString:null,isUnwrappable:null,unwrap:null},Zs);Jg[Ud["default"]]=nr_;var MUA=[];(function(){var F=tN;tN=function(q){F==null||F(q);$b(function(){for(var t=0;t<q.length;t++)TKM(q[t])})}})();var KMv=function(){var F=_.Ga.apply(this,arguments)||this;F.hasUnmounted=!1;return F};
_.M(KMv,_.Ga);_.l=KMv.prototype;_.l.beforeRegister=function(){var F=this.doIdomRender;this.templatingFn?_.mH(Error("$g")):(this.templatingFn=F,this.switchTemplateAtRegistration=!0,Ero(this))};
_.l.attached=function(){};
_.l.detached=function(){TKM(this.hostElement)};
_.l.renderIdom=function(){throw Error("ch");};
_.l.doIdomRender=function(){var F=this;gi3(this.hostElement,function(){F.renderIdom()})};
_.C([_.Dj()],KMv);var BSw=[e9.prototype,KMv.prototype];var LMv,f8j=function(){return LMv!==void 0?LMv:LMv=document.createElement("template")};
document.head.appendChild(f8j().content);var a8O;var jNz,ce1=function(){return jNz!==void 0?jNz:jNz=document.createElement("template")};
document.head.appendChild(ce1().content);var F31;var qAe=document.head,tUL=qAe.appendChild,u_e;if(F31===void 0){var J_O=document.createElement("template");_.G(J_O,"\x3c!--css-build:shady--\x3e");J_O.content.insertBefore(ce1().content.cloneNode(!0),J_O.content.firstChild);F31=J_O}u_e=F31;tUL.call(qAe,u_e.content);var sFd,grj=function(){return sFd!==void 0?sFd:sFd=document.createElement("template")};
document.head.appendChild(grj().content);var lmC;var XHv=document.head,YAw=XHv.appendChild,pHx;if(lmC===void 0){var QFv=document.createElement("template");_.G(QFv,"\x3c!--css-build:shady--\x3e");QFv.content.insertBefore(grj().content.cloneNode(!0),QFv.content.firstChild);lmC=QFv}pHx=lmC;YAw.call(XHv,pHx.content);var e8v=document.head,ZvL=e8v.appendChild,R8j;if(a8O===void 0){var r_z=document.createElement("template");_.G(r_z,"\x3c!--css-build:shady--\x3e");r_z.content.insertBefore(f8j().content.cloneNode(!0),r_z.content.firstChild);a8O=r_z}R8j=a8O;ZvL.call(e8v,R8j.content);var NKJ,wHj=function(){return NKJ!==void 0?NKJ:NKJ=document.createElement("template")};
document.head.appendChild(wHj().content);var ivw;_.qo=new _.pg("DARK_THEME_TOKEN");var RHo=new _.Xk("accessibilityProperties");var Z$o=new _.Xk("layoutProperties");var rqy=new _.Xk("imageType");var kXf={};if("ytAttributedStringLinkHoverColor"in kXf)throw Error("fh`ytAttributedStringLinkHoverColor");(function(F,q){kXf[F]="value"in q&&"unit"in q?xOo(F,q):function(t){try{return q(t)}catch(u){throw Error("dh`"+F+"`"+u.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var ErE=function(F){var q=this;this.holdTime=F===void 0?500:F;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(t){var u=new CustomEvent("LONG_PRESS"),J;(J=t.changedTouches[0].target)==null||J.dispatchEvent(u)};
this.ontouchstart=function(t){q.longPressTimeout=_.Ze(_.mI,function(){q.onlongpress(t);q.longPressOccurred=!0},q.holdTime)};
this.ontouchmove=function(){_.mI.cancelJob(q.longPressTimeout);q.longPressTimeout=NaN;q.longPressOccurred=!1;q.moveOccurred=!0};
this.ontouchend=function(t){if(q.longPressTimeout&&!q.longPressOccurred&&!q.moveOccurred){var u;(u=t.changedTouches[0].target)==null||u.dispatchEvent(new Event("click"))}_.mI.cancelJob(q.longPressTimeout);q.longPressTimeout=NaN;q.longPressOccurred=!1;q.moveOccurred=!1}};var fmu=function(F,q){ErE.call(this,q);var t=this;this.callback=F;this.onlongpress=function(u){var J;(J=t.callback)==null||J.call(t,u)}};
_.M(fmu,ErE);var amf=function(F,q){var t=Object.assign({},q);F=_.X(new Map([["ontouchstart",F.ontouchstart],["ontouchend",F.ontouchend],["ontouchmove",F.ontouchmove]]));for(var u=F.next(),J={};!u.done;J={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},u=F.next()){var g=_.X(u.value);u=g.next().value;g=g.next().value;J.eventName$jscomp$101=u;J.eventHandler$jscomp$1=g;q[J.eventName$jscomp$101]=function(Y){return function(Q){var e;(e=t[Y.eventName$jscomp$101])==null||e.call(t,Q);(0,Y.eventHandler$jscomp$1)(Q)}}(J)}};_.gN=new _.pg("COMMAND_HANDLER_TOKEN");var vr$=new _.Xk("parallelCommand");var mO3=new _.Xk("performOnceCommand");var Hvv=new _.Xk("serialCommand");var $Oy=void 0;var z8O=function(){this.data=[];this.consumer=null};
z8O.prototype.push=function(F){this.consumer?this.consumer(F):this.data.push(F)};var Ff={};_.N3(Ff,void 0,"sgPmTd");_.N3(null,void 0,"jypsq");_.N3(null,void 0,"mWiOof");var $Gv=new z8O;var h8o=[MWv,Tfj,Gtn,W$z,DAw,nPC,O3d,Puj];var QSu=new _.Xk("bracketTextDecorator");var c9=new _.Xk("highlightTextDecorator");_.u_=new _.pg("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var gJv=function(){},orx;
(orx=window.requestIdleCallback)==null||orx.bind(window);var XR$={calledOnce:!1,state:"visible"},lGM={calledOnce:!1,state:"hidden"};var nrj=new _.pg("ICON_WIZ_COMPONENT_TOKEN");_.Tq=_.ld(function(F){var q=F.icon;var t=F.active;var u=F.className;var J=F.style;var g=F.dataSelected;var Y=F.dataDisabled;var Q=F.role;var e=F.animateIcon;var r=F.themeOverride;var N=F.ariaHidden;var w=F.ariaExpanded;var k=F.ariaLabel;var z=F.tabindex;var T=F.id;var P=F.size;var v=F.iconFilter;var H=F.onKeydown;return _.Z(_.R,{cond:q,then:function(){var d=_.sV().resolve(nrj);return _.Z(d,{icon:q,dataSelected:g,dataDisabled:Y,animateIcon:e,themeOverride:r,ariaExpanded:w,tabindex:z,id:T,active:t,
size:P,role:Q,className:u,ariaHidden:N,ariaLabel:k,style:function(){return J!=null&&J()||P==null||!P()?J==null?void 0:J():"width: "+(P==null?void 0:P())+"px;height: "+((P==null?void 0:P())+"px;")},
iconFilter:v,onKeydown:H})}})},"b");
_.Tq.idomCompat={callbacks:{onKeydown:!0}};var xr3=window.devicePixelRatio||1;var H$q=new Map([["yt_outline_bag_black_24","bag"]]);var Rw=function(F){var q=this;this.margin=.1;this.whenInViewportWithMargin=F;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){q.requestScan()});
window.addEventListener("touchend",function(){q.requestScan()});
window.addEventListener("updateui",function(){q.requestScan()});
var t=new _.LH((0,_.Pd)(this.requestScan,this),100);window.addEventListener("scroll",function(){t.fire()},!0);
window.addEventListener("resize",(0,_.Pd)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){q.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Pd)(this.requestScan,this))};
Rw.prototype.observe=function(F){this.observationTargets.includes(F)||this.observationTargets.push(F)};
Rw.prototype.unobserve=function(F){this.observationTargets=this.observationTargets.filter(function(q){return q!==F})};
Rw.prototype.requestScan=function(){var F=this;this.scanRequested||($b(function(){MUn(F)}),this.scanRequested=!0)};
var MUn=function(F){var q=(1+F.margin)*(document.documentElement.clientHeight||window.innerHeight);F.observationTargets=F.observationTargets.filter(function(t){var u=t.getBoundingClientRect();(u=q>u.top&&!!u.height)&&F.whenInViewportWithMargin(t);return!u&&t.parentNode});
F.scanRequested=!1};
Rw.prototype.disconnect=function(){this.observationTargets=[]};var TKv,DOn;TKv=_.X(_.N3(C0u(),void 0,"O3X2wd"));_.GXC=TKv.next().value;DOn=TKv.next().value;window.addEventListener("resize",function(){DOn(C0u())});var W3f={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},Ovz=void 0,PEe=window.innerWidth,xOE=window.innerHeight;window.addEventListener("resize",function(){Ovz=void 0});var A_x;if("IntersectionObserver"in window)A_x=UrM();else{if(Ovz===void 0){var vrr;vrr="matchMedia"in window?window.matchMedia(W3f.landscape+","+W3f.portrait).matches:void 0;Ovz=vrr!==void 0?vrr:PEe>=930&&xOE>=550||PEe>=550&&xOE>=930}A_x=Ovz?{observe:function(F){$b(function(){var q;(q=F.onViewportEntered)==null||q.call(F)})},
unobserve:function(){}}:new Rw(function(F){$b(function(){var q;
(q=F.onViewportEntered)==null||q.call(F)})})}var dro=A_x;var Imn=_.ld(function(F){var q=!1,t=_.FG("img",function(u){_.vj(function(){q=!0;u.onload=null})});
_.AO(function(){var u,J=(u=F.data)==null?void 0:u.call(F),g,Y=(g=F.getSrc)==null?void 0:g.call(F).cb,Q;u=(Q=F.config)==null?void 0:Q.call(F);if(Q=t.value)if(g=function(r,N){if(!q)return Y?Y(r,N):r},KbM(Q,u),_.E("web_image_dont_reload_same_src")&&hH$(Q,J,g))_.E("web_image_dont_reload_same_src_simulate_load")&&Q.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var e;S0M(Q,J||null,g,u,(e=F.lazy)==null?void 0:e.call(F))}},"zS0jKb");
return _.Z("img",{el:t})},"c");
Imn.idomCompat=!0;_.sc=_.ld(function(F){var q=function(){var t,u=F.data(),J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S,K,h,c,rf,Zv,kP,n3,o_,df,m$,gx,Hf;var Zw={contentMode:(J=F.contentMode)==null?void 0:J.call(F),loadedClass:(g=F.loadedClass)==null?void 0:g.call(F),isPreloaded:(Y=F.isPreloaded)==null?void 0:Y.call(F),notifyOnLoaded:(Q=F.notifyOnLoaded)==null?void 0:Q.call(F),notifyOnUnloaded:(e=F.notifyOnUnloaded)==null?void 0:e.call(F),preferredThumbnail:(r=F.preferredThumbnail)==null?void 0:r.call(F),preserveHeight:(N=F.preserveHeight)==
null?void 0:N.call(F),preserveWidth:(w=F.preserveWidth)==null?void 0:w.call(F),objectPosition:(k=F.objectPosition)==null?void 0:k.call(F),targetWidth:(z=F.targetWidth)==null?void 0:z.call(F),targetHeight:(T=F.targetHeight)==null?void 0:T.call(F),shouldShowPlaceholder:(P=F.shouldShowPlaceholder)==null?void 0:P.call(F),useWidth:(v=F.useWidth)==null?void 0:v.call(F),isToggled:(H=F.isToggled)==null?void 0:H.call(F),alt:(d=F.alt)==null?void 0:d.call(F),className:(a=F.className)==null?void 0:a.call(F),
onerror:F.onerror,onload:F.onload,style$:((S=F.style$)==null?void 0:S.call(F))||((K=F.style)==null?void 0:K.call(F)),color:(h=F.color)==null?void 0:h.call(F),width:(c=F.width)==null?void 0:c.call(F),height:(rf=F.height)==null?void 0:rf.call(F),"aria-hidden$":(gx=(Zv=F["aria-hidden$"])==null?void 0:Zv.call(F))!=null?gx:(kP=F.ariaHidden)==null?void 0:kP.call(F),draggable:(n3=F.draggable)==null?void 0:n3.call(F),"data-disabled$":(Hf=(o_=F["data-disabled$"])==null?void 0:o_.call(F))!=null?Hf:(df=F.dataDisabled)==
null?void 0:df.call(F),size:(m$=F.size)==null?void 0:m$.call(F)};return fG$(u,Zw,(t=F.hideOn404)==null?void 0:t.call(F))};
return _.Z(_.OK,null,_.Z(_.DA,{when:function(){var t;return((t=q())==null?void 0:t.type)==="image"}},function(){return _.Z(Imn,{data:function(){return q().image},
getSrc:{cb:function(t,u){var J=q().image.sources,g=q().config.isPreloaded,Y=q().config.useWidth,Q=q().config.targetWidth,e=q().config.targetHeight,r=q().config.preferredThumbnail;return _.Aqv(u,J,g,Y,Q,e,r)||""}},
config:function(){var t=q().config,u;for(u in t)t[u]===void 0&&delete t[u];return t},
lazy:F.renderLazy})}),_.Z(_.DA,{when:function(){var t;
return((t=q())==null?void 0:t.type)==="icon"}},function(){return _.Z(_.Tq,{icon:function(){return q().iconName},
role:function(){return q().config.role},
className:function(){return q().config.className},
style:function(){return q().config.style$+";width: "+(q().config.width+"px;height: ")+(q().config.height+"px;color: ")+(q().config.color+";")},
ariaLabel:function(){return q().config["aria-label$"]},
ariaHidden:function(){return q().config["aria-hidden$"]},
dataDisabled:function(){return q().config["data-disabled$"]},
active:function(){return q().config.isToggled},
size:function(){return q().config.size}})}))},"d");
_.sc.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Hvw=function(F){return function(q){return _.Z(oiu,null,function(){var t=q.data(),u=_.Hj(q.config);return _.Z(tg,null,function(){return void F(t,u)})})}}(qRf),cqu=_.ld(function(F){var q=function(u){var J,g=_.l_(function(k){J=Iv(function(){for(var z=_.X(N()),T=z.next();!T.done;T=z.next()){T=t7$(T.value);
T=typeof T==="string"?document.createTextNode(T):T;if(!(T instanceof Node)){z=new _.D0("Part is not a node",T,typeof T);_.mH(z);break}k.appendChild(T)}})}),Y=X0(function(){return wRo(u())},{isEqual:jSy}),Q=_.Jv(F.config),e=function(){var k,z=Y();
return!((k=Q())==null||!k.ariaLabel)||!(z.commandRuns&&z.commandRuns.length!==0||z.paragraphStyleRuns&&z.paragraphStyleRuns.length!==0)},r=X0(Q,{isEqual:JLM}),N=function(){var k=N9_(Y(),r());
kfM(k,r());return Y().content?T9M(Y().content,k).parts:[]},w=!0;
_.AO(function(){Y();r();if(w)w=!1;else{var k=N();Promise.resolve().then(function(){var z=g.value;if(z){z.innerText="";var T;(T=J)==null||T();J=_.xI(z,function(){return _.Z(uju,{parts:k})},"e")}})}},"YlhjWd");
return _.Z("span",{el:g,class:function(){return Y()&&tEu(Y(),Q())},
dir:function(){var k;return((k=Q())==null?0:k.userInput)?"auto":void 0},
"aria-label":function(){var k;return e()?(k=Q())==null?void 0:k.ariaLabel:void 0},
role:function(){return e()?"text":void 0}})},t;
return((t=F.config)==null?0:t.renderedFromFormattedString)?q(F.text):_.Z(_.R,{cond:F.text,then:q})},"f");
cqu.idomCompat=!0;_.rv=_.ld(function(F){var q=_.Jv(F.text),t=sWt(F);F.renderedFromFormattedString!==void 0&&(t.renderedFromFormattedString=!0);return _.E("attr_string_reactive")?_.Z(cqu,{text:q,config:t}):_.Z(_.R,{cond:function(){var u;return q()&&((u=wRo(q()))==null?void 0:u.content)},
then:function(){return _.Z(Hvw,{data:F.text,config:t})},
debugInstance:"Apcuac"})},"g");
_.rv.idomCompat=!0;var l5W=function(F,q,t){q=q===void 0?"unknown":q;t=t===void 0?{}:t;_.D0.call(this,F+" ("+q+")",Object.assign({},{name:"YtWcwError",tagName:q},t));Object.setPrototypeOf(this,this.constructor.prototype)};
_.M(l5W,_.D0);_.Zoq=new WeakMap;_.eWM=!1;var QWo,RWf,pp$;_.NH=Symbol("hh");_.pp=Symbol("ih");QWo=Symbol("jh");RWf=new Set(Object.getOwnPropertyNames(Element.prototype));pp$=Symbol("kh");var mOe=_.ld(function(F){return _.Z("yt-attributed-string",{"aria-label":F.ariaLabel,hidden:F.hidden,id:F.id,class:F.className,"force-default-style":F.forceDefaultStyle},_.Z(_.rv,{text:F.data,ariaLabel:F.ariaLabel,ellipsisTruncate:F.ellipsisTruncate,isOverlay:F.isOverlay,linkInheritColor:F.linkInheritColor,noPreWrap:F.noPreWrap,noWrap:F.noWrap,userInput:F.userInput,noEndpoints:F.noEndpoints,headerRuns:F.headerRuns,isHeadline:F.isHeadline}))},"h");
_.E("web_wiz_attributed_string")&&_.ei(mOe,"yt-attributed-string",{props:{ariaHidden:_.NH,ariaLabel:_.NH,className:_.NH,ellipsisTruncate:_.NH,isOverlay:_.NH,linkInheritColor:_.NH,noEndpoints:_.NH,noStyleRuns:_.NH,noLinkColor:_.NH,noPreWrap:_.NH,noWrap:_.NH,skipOnClick:_.NH,userInput:_.NH,headerRuns:_.NH,isHeadline:_.NH,id:_.NH,data:_.NH,hidden:_.NH,forceDefaultStyle:_.NH,text:_.pp,disableUpgrade:_.pp,disable:_.pp,slot:_.pp}});var wv=function(){return _.x.apply(this,arguments)||this};
_.M(wv,_.x);wv.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},qRf(this.data,this.config))};
_.C([_.D(BSw),_.V("design:type",Object)],wv.prototype,"ytIdomTemplatingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],wv.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],wv.prototype,"ariaLabel",void 0);_.C([_.O(),_.V("design:type",Boolean)],wv.prototype,"disable",void 0);_.C([_.O(),_.V("design:type",Boolean)],wv.prototype,"ellipsisTruncate",void 0);_.C([_.O(),_.V("design:type",Boolean)],wv.prototype,"isOverlay",void 0);
_.C([_.O(),_.V("design:type",Boolean)],wv.prototype,"linkInheritColor",void 0);_.C([_.O(),_.V("design:type",Boolean)],wv.prototype,"noPreWrap",void 0);_.C([_.O(),_.V("design:type",Boolean)],wv.prototype,"noWrap",void 0);_.C([_.O(),_.V("design:type",Boolean)],wv.prototype,"userInput",void 0);_.C([_.O(),_.V("design:type",Boolean)],wv.prototype,"noEndpoints",void 0);_.C([_.O(),_.V("design:type",Array)],wv.prototype,"headerRuns",void 0);
_.C([_.Vu({is:"yt-attributed-string",disableElementRegistration:!0})],wv);
_.E("web_wiz_attributed_string")||_.b(wv,"yt-attributed-string",function(){if(ivw===void 0){var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
F.content.insertBefore(wHj().content.cloneNode(!0),F.content.firstChild);ivw=F}F=ivw;return F},{mode:2});var $Of,bvz,zWv;$Of=function(){this.firstThumbnailLoaded=!1};
_.y_x=function(){bvz||(bvz=new $Of);return bvz};
zWv=function(F){var q=_.y_x();q.firstThumbnailLoaded||(q.firstThumbnailLoaded=!0,_.y0("ftl",F))};
$Of.prototype.reset=function(){this.firstThumbnailLoaded=!1};var NWq=0,ELq=new WeakMap,ioo=0,rC=new Set;var CEd,dOz=function(){return CEd!==void 0?CEd:CEd=document.createElement("template")};
document.head.appendChild(dOz().content);var VUr;var TWP,Det,iT;_.i_=_.uu.caches;iT=function(){};
iT.prototype.open=function(F){return _.i_.open(UOE(F))};
iT.prototype.has=function(F){return _.i_.has(UOE(F))};
iT.prototype.delete=function(F){return _.i_.delete(UOE(F))};
iT.prototype.match=function(F,q){var t=this,u,J,g,Y,Q,e;return _.p(function(r){switch(r.nextAddress){case 1:return r.yield(t.keys(),2);case 2:u=r.yieldResult,J=_.X(u),g=J.next();case 3:if(g.done){r.jumpTo(5);break}Y=g.value;return r.yield(t.open(Y),6);case 6:return Q=r.yieldResult,r.yield(Q.match(F,q),7);case 7:if(e=r.yieldResult)return r.return(e);g=J.next();r.jumpTo(3);break;case 5:return r.return()}})};
var WKM=function(){};
_.M(WKM,iT);var UOE=function(F){if(F.includes(":"))throw Error("nh`"+F);return F+":"+_.TQ("CacheStorage get")};
WKM.prototype.keys=function(){var F,q,t,u,J,g,Y,Q,e;return _.p(function(r){if(r.nextAddress==1)return F=[],q=_.TQ("CacheStorage keys"),r.yield(_.i_.keys(),2);t=r.yieldResult;u=_.X(t);for(J=u.next();!J.done;J=u.next())g=J.value,Y=_.M73(g),Q=Y.originalName,e=Y.datasyncId,e===q&&F.push(Q);return r.return(F)})};var k9=function(){var F=_.x.apply(this,arguments)||this;F.objectURL=null;F.loadTime=Infinity;return F};
_.M(k9,_.x);_.l=k9.prototype;_.l.renderIdom=function(){nLo(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&B9t(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.l.objectFitToContentMode=function(F){switch(F){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.l.logThumbnailFailureVe=function(){var F=_.r0(197497);_.PQ(_.DP(),F);var q=_.yb();q&&F&&q&&_.aD(q,[F])};
_.l.loadImageFromCacheIfExists=function(F){var q=this,t=F.target;(t==null?0:t.src)&&Py_(t.src).then(function(u){q.objectURL=_.Vy(u).toString();q.setSrc(t,q.objectURL)}).catch(function(){})};
_.l.onError=function(F){var q=this;if(_.E("web_use_cache_for_image_fallback")){var t=F.target;t&&Py_(t.src).then(function(u){q.objectURL=_.Vy(u).toString();q.setSrc(t,q.objectURL)}).catch(function(){_.E("kevlar_woffle_log_thumbnail_failure_ve")&&q.logThumbnailFailureVe();
_.E("kevlar_woffle_fallback_image")&&q.setSrc(t,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.l.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.l.setConfig=function(){var F=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(q){F.loadImageFromCacheIfExists(q);F.revokeObjectURL();oL_(F.hostElement)},
onerror:function(q){F.onError(q)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.E("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.l.setSrc=function(F,q){q&&(F.src=q)};
_.C([_.D(BSw),_.V("design:type",Object)],k9.prototype,"ytIdomTemplatingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],k9.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],k9.prototype,"alt",void 0);_.C([_.O(),_.V("design:type",Boolean)],k9.prototype,"ftlEligible",void 0);_.C([_.O(),_.V("design:type",Number)],k9.prototype,"height",void 0);_.C([_.O(),_.V("design:type",Boolean)],k9.prototype,"notifyOnLoaded",void 0);
_.C([_.O(),_.V("design:type",Boolean)],k9.prototype,"notifyOnUnloaded",void 0);_.C([_.O(),_.V("design:type",String)],k9.prototype,"objectFit",void 0);_.C([_.O(),_.V("design:type",String)],k9.prototype,"objectPosition",void 0);_.C([_.O(),_.V("design:type",String)],k9.prototype,"preferredThumbnail",void 0);_.C([_.O(),_.V("design:type",Boolean)],k9.prototype,"preserveHeight",void 0);_.C([_.O(),_.V("design:type",Boolean)],k9.prototype,"preserveWidth",void 0);
_.C([_.O({value:!0}),_.V("design:type",Boolean)],k9.prototype,"useWidth",void 0);_.C([_.O({value:function(){return!_.yG("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.V("design:type",Boolean)],k9.prototype,"shouldRenderLazy",void 0);_.C([_.O(),_.V("design:type",Number)],k9.prototype,"width",void 0);_.C([_.Vu({is:"yt-image",disableElementRegistration:!0})],k9);
_.b(k9,"yt-image",function(){if(VUr===void 0){var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);F.content.insertBefore(dOz().content.cloneNode(!0),F.content.firstChild);
VUr=F}F=VUr;return F},{mode:2});var Eb=function(){return _.x.apply(this,arguments)||this};
_.M(Eb,_.x);Eb.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var F=_.Sg(this.data.onVisibleCommand);F&&this.ytComponentBehavior.resolveCommand(F)}};
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Eb.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.QP.YtVisibilityBehavior),_.V("design:type",Object)],Eb.prototype,"ytVisibilityBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Eb.prototype,"data",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Eb);
_.b(Eb,"yt-bumper-user-edu-content-view-model",function(){if(SWL===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;UuL===void 0&&(UuL=document.createElement("template"));var u=UuL;t.call(q,u.content.cloneNode(!0),F.content.firstChild);SWL=F}F=SWL;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var SAw;var h8d,K3C=function(){if(h8d!==void 0)return h8d;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;SAw===void 0&&(SAw=document.createElement("template"));var u=SAw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return h8d=F};var BKj;_.zD={};BKj=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"]);_.zD.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var F=this.getContext_();return F?F.getTaskManager():_.mI},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var F=_.Q0(this.hostElement,"yt-get-context-provider",{});F.detail&&F.detail.contextProvider?this.cachedProviderNode_=F.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return BKj.has(this.hostElement.localName)},
getNetworkManager:function(){var F=this.getContext_();if(F)return F.getNetworkManager()}};var meW,L3J,amx,fmJ;_.ow=function(F){var q=L3J.get(F);if(q&&(q=q.pop()))return fmJ++,q;amx++;try{var t=document.createElement(F)}catch(u){throw new _.D0("ElementPool failed to create element",F,u.message);}return t};
meW=function(F){var q=F.is;if(q){var t=L3J.get(q);t||(t=[],L3J.set(q,t));var u=_.bn("ELEMENT_POOL_CONFIG")||{};t.length>=(u[q]!==void 0?u[q]:_.bn("ELEMENT_POOL_DEFAULT_CAP",0))||t.push(F)}else _.bz(new _.D0("Element pool should only handle custom elements:",F.nodeName))};
L3J=new Map;amx=0;fmJ=0;var km=new WeakMap,Ho$=new WeakMap;var c_f;_.nA=function(F,q,t){t=t===void 0?_.Gx():t;this.JSC$13790_defaultPriority=F;this.signal=q;this.scheduler=t;this.nextJobDescriptor=0;this.JSC$13790_parkedJobs=[];this.scheduledJobs=new Map};
_.MH=function(F,q){if(q){var t=_.g7();F.signal&&!_.lW(t,F.signal)?(t.addListener(F.signal,function(){F.processSignal()}),F.JSC$13790_parkedJobs.push({job:q,
priority:void 0})):jFd(F,q)}};
c_f=function(F,q){if(q!==F.JSC$13790_defaultPriority){F.JSC$13790_defaultPriority=q;for(var t=_.X(F.scheduledJobs.values()),u=t.next();!u.done;u=t.next())u=u.value,F.scheduler.cancelJob(u.jobId),u.jobId=F.scheduler.addJob(u.jobWrapper,q)}};
_.nA.prototype.flushJobs=function(){c_f(this,10);this.processSignal()};
_.nA.prototype.cancel=function(){for(var F=_.X(this.scheduledJobs),q=F.next();!q.done;q=F.next()){var t=_.X(q.value);q=t.next().value;t=t.next().value;this.scheduler.cancelJob(t.jobId);this.scheduledJobs.delete(q)}this.JSC$13790_parkedJobs=[]};
_.nA.prototype.processSignal=function(){for(var F=_.X(this.JSC$13790_parkedJobs),q=F.next();!q.done;q=F.next())q=q.value,jFd(this,q.job,q.priority);this.JSC$13790_parkedJobs=[]};
var jFd=function(F,q,t){t=t||F.JSC$13790_defaultPriority;if(t===10)No(q);else{var u=F.nextJobDescriptor++,J=function(){q();F.scheduledJobs.delete(u)},g=F.scheduler.addJob(J,t);
F.scheduledJobs.set(u,{jobWrapper:J,jobId:g,priority:t})}};ozo({beforeVisit:function(F){if(_.ZP.has(F.type)){var q;(q=F.props).idomKey!=null||(q.idomKey=F.type)}else F.type.TAG_NAME&&(_.Qh=F.type.TAG_NAME)},
afterRender:function(F,q){var t;_.Qh=(t=q==null?void 0:q.type)!=null?t:""},
didPatch:function(){_.Qh=""}});var Fb1;_.TD={};Fb1={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.TD.YtRendererstamperBehavior=[_.zD.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var F in this.stampDom){var q=this.stampDom[F];q&&q.id&&this.addReactiveSchema({type:"observe",method:{methodName:AL_(q.id),args:[{type:"wildcard",path:F}]}})}else{(F=(this.constructor.generatedFrom||this).observers)||(F=[]);for(q in this.stampDom){var t=this.stampDom[q];t&&t.id&&F.push(AL_(t.id)+"("+q+".*)")}this.constructor.generatedFrom.observers=F}},
addStampDomObserverFns_:function(){for(var F in this.stampDom){var q=this.stampDom[F];q.id?(this[AL_(q.id)]=this.rendererStamperObserver_.bind(this,F,q.id),this.hasDataPath_[F]=!1):(q=new _.D0("Bad rendererstamper config",this.is+":"+F),_.mH(q))}},
rendererStamperObserver_:function(F,q,t){if(t.path==F){if(t.value===void 0&&!this.hasDataPath_[F])return;this.hasDataPath_[F]=t.value!==void 0}this.rendererStamperApplyChangeRecord_(F,q,t)},
rendererStamperApplyChangeRecord_:function(F,q,t){var u=this.renderJobsMap_[q],J=null;F==t.path?(t=t.value,_.VC(t)||(t=t===void 0||t===null?[]:[t]),F=this.stampDom[F],F.mapping&&(J=this.stampDomArray_.bind(this,t,q,F.mapping,F.reuseComponents,F.events,F.stamperStableList)),u&&u.cancel(),t=F.usePageScheduler?this.getTaskManager():void 0,u||F.initialRenderPriority==void 0)?F.renderPriority==void 0||u||(u=new _.nA(F.renderPriority,F.waitForSignal,t),this.renderJobsMap_[q]=u):(u=new _.nA(F.initialRenderPriority,
F.waitForSignal,t),this.renderJobsMap_[q]=u,J=function(g,Y){g();c_f(Y,10)}.bind(this,J,u)):J=F+".splices"==t.path?this.stampDomArraySplices_.bind(this,F,q,t.value):this.forwardRendererStamperChanges_.bind(this,F,q,t);
u?_.MH(u,J):J()},
forwardRendererStamperChanges_:function(F,q,t){var u=t.path.slice(F.length+1),J=this.getStampContainer_(q),g=u.indexOf("."),Y=u.substring(0,g),Q=!1,e=0,r=parseInt(Y,0);if(Y[0]=="#"){Q=parseInt(Y.substring(1),0);r=this.get(F);var N=this.get([F,Y]);r[Q]==N?e=Q:e=r.indexOf(N);Q=!0}else isNaN(r)||(e=r,Q=!0);Q&&(u=u.substring(Y.length+1),g=u.indexOf("."));Y=_.xz(J).children[e];var w;if(J=(w=Y==null?void 0:Y.polymerController)!=null?w:Y)u="data"+u.slice(g),typeof J.notifyPath!=="function"?_.bz(new _.D0("notifyPath missing",
this.is+": "+F+", "+q)):t.value?J.notifyPath(u,t.value):J.notifyPath(u)},
stampDomArraySplices_:function(F,q,t){if(t&&t.indexSplices){var u=this.getStampContainer_(q);if(u){for(var J=_.xz(u),g=I5P(this.stampDom[F].reuseComponents),Y=t.indexSplices.length,Q=0;Q<Y;Q++){for(var e=t.indexSplices[Q],r=J.children[e.index],N=e.removed.length;N>0;N--)r&&r.parentElement&&(_.xz(r.parentElement).removeChild(r),g&&meW(r),r=J.children[e.index]);N=this.stampDom[F].mapping;for(var w=e.index+e.addedCount,k=document.createDocumentFragment(),z=g,T=e.index;T<w;T++){var P=e.object[T],v=xef(N,
P);if(v){var H=N[v];P=P[v];v=this.getComponentName_(H,P);var d=r?km.has(r):!1;z&&r&&r.is==v&&d?(v=r,this.telemetry_.reuse++,r=r.nextElementSibling):z&&r&&d?(v=this.createComponent_(H,P,g),d=_.xz(r).nextElementSibling,J.insertBefore(v,d),boq(this.is,J,r,g),r=d):(z=!1,v=this.createComponent_(H,P,g),k.appendChild(v));this.deferRenderStamperBinding_(v,H,P)}else H=new _.D0("Unimplemented type",F,q,u.tagName,Object.keys(P)[0]),_.mH(H)}J.insertBefore(k,r)}this.flushRenderStamperComponentBindings_();this.stampDom[F].events&&
_.Q0(this.hostElement,"yt-rendererstamper-finished",{container:u})}else F=new _.D0("Container object not found",q,this.hostElement?this.hostElement.is:""),_.mH(F)}},
stampDomArray_:function(F,q,t,u,J,g){var Y=this.getStampContainer_(q);if(Y)if(q=_.xz(Y),u=I5P(u),F){var Q=0,e=0,r;if(g=g===void 0?_.yG("STAMPER_STABLE_LIST",!1):g||!1)for(r=q.firstElementChild;r&&!km.has(r)&&F.length>e;){g=F[e];var N=xef(t,g);if(N){if(this.getComponentName_(t[N],g[N])!=r.is){var w=this.createComponent_(t[N],g[N],u),k=_.xz(r).nextElementSibling;k?q.insertBefore(w,k):q.appendChild(w);boq(this.is,q,r,u);r=w}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(r,t[N],g[N]);Q++;
e++;r=_.xz(r).nextElementSibling}else e++}yLv(this.is,q,Q,u);Q=r;if(F.length>e){g=document.createDocumentFragment();for(N=F.length;e<N;e++)if(w=F[e],k=xef(t,w))r=this.createComponent_(t[k],w[k],u),this.deferRenderStamperBinding_(r,t[k],w[k]),g.appendChild(r);Q&&_.xz(Q).parentNode&&r&&!km.has(r)?q.insertBefore(g,Q):q.appendChild(g)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();J&&_.Q0(this.hostElement,"yt-rendererstamper-finished",{container:Y})}else yLv(this.is,q,0,
u);else F=new _.D0("Container object not found",q,this.hostElement?this.hostElement.is:""),_.mH(F)},
getStampContainer_:function(F){return this.$&&this.$[F]||_.ep(this.hostElement).querySelector("#"+F)},
getComponentName_:function(F,q){return typeof F==="string"?F:F.matcher?F.matcher.call(this,q):F.component},
createComponent_:function(F,q,t){F=this.getComponentName_(F,q);try{var u=Rc.has(F)||_.ZP.has(F);if(t&&!u){var J=_.ow(F);try{_.ws(J)}catch(g){t="Failed to clear styles for "+F+".",g.message&&(t+=" Original error: "+g.message),_.bz(new _.D0(t))}}else J=document.createElement(F)}catch(g){return J="YtRendererStamperBehavior failed to create "+F+".",g.message&&(J+=" Original description: "+g.message),g.message="YtRendererStamperBehavior failed to create element",_.yw(g,J),Fb1.hasOwnProperty(F)?_.bz(g):
_.mH(g),document.createElement("SPAN")}this.telemetry_.create++;return J},
deferRenderStamperBinding_:function(F,q,t){this.deferredBindingTasks_.push({component:F,typeOrConfig:q,data:t})},
flushRenderStamperComponentBindings_:function(){for(var F=0,q=this.deferredBindingTasks_.length;F<q;F++){var t=this.deferredBindingTasks_[F];if(!t)break;var u=void 0,J=void 0,g=void 0,Y=void 0,Q=t.component,e=t.typeOrConfig;t=t.data;var r=(Y=Q.polymerController)!=null?Y:Q;Y=Q.loggingStatus;try{Y&&(Y.isRendererStamper=!0);if(typeof e!=="string"){for(g in e.attributes)e.attributes[g]===!0?Q.setAttribute(g,""):e.attributes[g]===!1?Q.removeAttribute(g):Q.setAttribute(g,e.attributes[g]);for(J in e.params)r[J]=
e.params[J],Q!==r&&xM(Q.localName,J,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(u in e.properties){var N=e.properties[u];if(N){var w=vL$(N);r[u]=this.get(w);Q!==r&&xM(Q.localName,u,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(u==="on-tap"||u==="on-click"){var k=this.get(w);Q.addEventListener("click",k);Ho$.set(Q,{property:u,listener:{type:"element",eventName:"click",handler:k}})}}else{var z=new _.D0("Undefined property binding",u);_.mH(z)}}}if(e.classListBinding){var T=vL$(e.classListBinding),
P=T?this[T]:null;if(P)for(u=0;u<P.length;u++)_.RE(Q,P[u],!0)}r.data=t}finally{Y&&(Y.isRendererStamper=!1)}if(u=km.get(Q))Q.hidden=!1,km.delete(Q),_.mI.cancelJob(u)}this.deferredBindingTasks_.length=0}}];_.ei(_.ld(function(F){function q(){t().seconds&&g(G_f({seconds:Number(t().seconds)-Date.now()/1E3}))}
var t=F.targetTimestamp;F=F.className;var u=_.X(_.N3("",void 0,"TM9kjd")),J=u.next().value,g=u.next().value;_.AN(function(){q();var Y=setInterval(function(){q()},1E3);
_.vj(function(){clearInterval(Y)})});
return _.Z("yt-countdown",{class:_.Ec("ytCountDownHost",F)},_.Z("div",null,J))},"i"),"yt-countdown",{props:{targetTimestamp:_.NH,
className:_.pp}});_.GD=new _.pg("KEY_MANAGER_TOKEN");var Cyy={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.Ds=_.ld(function(F){var q=_.FG("a",F.ref),t=F.aTagConfig?F.aTagConfig:_.zy(function(){var u,J,g,Y,Q;var e=(Q=_.Sg((g=F.command)==null?void 0:g.call(F)))!=null?Q:(Y=F.command)==null?void 0:Y.call(F);return _.K9({innertubeCommand:e,skipOnClick:(u=F.skipOnClick)==null?void 0:u.call(F),defaultTarget:(J=F.target)==null?void 0:J.call(F)})||{}},void 0,"gnrRge");
_.AO(function(){q.value._data=t()._data;q.value.params=t().params},"t2c7fe");
return _.Z("a",{el:q,href:function(){return t().href$},
rel:function(){return t().rel$},
class:function(){var u,J;return(J=t().className)!=null?J:(u=F.className)==null?void 0:u.call(F)},
style:function(){var u;if((u=F.style)==null?0:u.call(F))return F.style();var J;return((J=F.disabled)==null?0:J.call(F))?"pointer-events:none":""},
"aria-haspopup":function(){return!!t()["aria-haspopup$"]},
"force-new-state":oI(function(){return t()["force-new-state$"]}),
title:oI(function(){var u,J;return(J=t().title$)!=null?J:(u=F.title)==null?void 0:u.call(F)}),
role:oI(function(){var u;return((u=F.role)==null?void 0:u.call(F))||t().role$}),
target:oI(function(){return t().target$}),
dir:oI(function(){var u;return((u=F.dir)==null?void 0:u.call(F))||t().dir}),
tabindex:function(){var u;return t().tabindex$?Number(t().tabindex$):(u=F.tabIndex)==null?void 0:u.call(F)},
"aria-hidden":function(){var u,J;return(J=t()["aria-hidden$"])!=null?J:(u=F.ariaHidden)==null?void 0:u.call(F)},
"aria-label":function(){var u,J;return(J=t()["aria-label$"])!=null?J:(u=F.ariaLabel)==null?void 0:u.call(F)},
"aria-current":F.ariaCurrent,"aria-disabled":F.disabled,"aria-labelledby":F.ariaLabelledby,"aria-describedby":F.ariaDescribedby,"aria-selected":F.ariaSelected,"tab-identifier":F.tabIdentifier,"on:pointerdown":_.zq(function(u){var J,g;return void((g=(J=t()).onpointerdown)==null?void 0:g.call(J,u))}),
"on:click":_.zq(function(u){var J,g;(g=(J=t()).onclick)==null||g.call(J,u);var Y;(Y=F.onClick)==null||Y.call(F,u)}),
"on:focusin":_.zq(function(u){var J;(J=F.onFocusin)==null||J.call(F,u)}),
"on:focusout":_.zq(function(u){var J;(J=F.onFocusout)==null||J.call(F,u)})},F.children)},"j");var LKW={duration:1E3,easing:"ease",fill:"forwards"};BWC.componentType=_.Wj;var jW$={duration:1E3,easing:"ease",fill:"forwards"},unC=_.ld(function(F){var q=_.FG("animated-rolling-character"),t=void 0,u=function(){var J,g;return tV((J=F.character)==null?void 0:J.call(F))||tV((g=F.previousCharacter)==null?void 0:g.call(F))};
_.AO(function(){if(F.marginMultiplier()){var J;(J=t)==null||J.cancel();if(u()){var g;J=((g=F.previousCharacter)==null?0:g.call(F))?Number(F.previousCharacter())+10:F.rollUp()?0:30;var Y;if((Y=F.shouldAnimate)==null||!Y.call(F)){var Q,e;J-=a5f((Q=F.character)==null?void 0:Q.call(F),(e=F.previousCharacter)==null?void 0:e.call(F),F.rollUp(),J)}}else{J=F.rollUp()?0:2;var r;(r=F.shouldAnimate)!=null&&r.call(F)||(g=J,Y=F.rollUp()?-1:1,J=g-Y)}q.value.style.marginTop="-"+J*F.marginMultiplier()+"px";var N;
if((N=F.shouldAnimate)==null?0:N.call(F)){var w,k;t=cLA(q.value,(w=F.character)==null?void 0:w.call(F),(k=F.previousCharacter)==null?void 0:k.call(F),F.rollUp(),J,u(),F.marginMultiplier())}else{var z;q.value.style.display=((z=F.character)==null?0:z.call(F))?"":"none"}}},"EgLkAe");
return _.Z("animated-rolling-character",{el:q,class:"animatedRollingCharacterHost"},_.Z(_.R,{cond:u,then:function(){return _.Z(q01,null)},
else:function(){return _.Z(tEJ,{character:F.character})}}))},"k");
unC.idomCompat=!0;var FNu=_.E("web_enable_sink_animated_rolling_character_and_number")?unC:BWC,Jqf=_.E("web_enable_sink_animated_rolling_character_and_number")?unC:f5u(BWC),q01=_.ld(function(){for(var F=[],q=1;q<30;q++)F.push(_.Z("div",null,q%10));return _.Z(_.ln,null,_.Z("div",null,"\u00a0"),F,_.Z("div",null,"\u00a0"))},"l"),tEJ=_.ld(function(F){var q=F.character;
return _.Z(_.ln,null,_.Z("div",null,"\u00a0"),_.Z(_.R,{cond:function(){return!(q==null?0:q())||_.YP(q==null?void 0:q())},
then:function(){return _.Z("div",null,"\u00a0")},
else:function(){return _.Z("div",null,q)}}),_.Z("div",null,"\u00a0"))},"m");q3y.componentType=_.Wj;var sSv=_.ld(function(F){var q=void 0,t=void 0,u=function(){var g;return((g=F.fontSizeMultiplier)==null?0:g.call(F))?F.heightPx()*F.fontSizeMultiplier():F.heightPx()},J=_.zy(function(){if(!F.numberText())return[];
var g,Y,Q=((g=F.forceRollUp)==null?void 0:g.call(F))||!t||!((Y=F.numberValue)==null?0:Y.call(F))||t<F.numberValue(),e,r=F.numberText();g=u();Y=!((e=F.shouldAnimate)==null||!e.call(F));e=[];var N=0,w=0,k=(q?q.replace(/\D/g,"").length:0)-(r?r.replace(/\D/g,"").length:0),z=q?q.split(/(\d)/).filter(Boolean):[];for(r=r.split(/(\d)/).filter(Boolean);k<0;){var T=r[w];e.push({character:T,rollUp:Q,marginMultiplier:g,shouldAnimate:Y});w++;tV(T)&&k++}for(;N<k;)T=z[N],e.push({previousCharacter:T,rollUp:Q,marginMultiplier:g,
shouldAnimate:Y}),N++,tV(T)||k++;for(;w<r.length;)k=r[w],T=z[N],tV(k)===tV(T)?(w++,N++):tV(k)?(N++,k=void 0):tV(T)&&(w++,T=void 0),e.push({character:k,previousCharacter:T,rollUp:Q,marginMultiplier:g,shouldAnimate:Y});q=F.numberText();var P;t=(P=F.numberValue)==null?void 0:P.call(F);return e},void 0,"kWiBv");
return _.Z("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return F.numberText()?["height: "+u()+"px;","line-height: "+F.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.Z(_.Gn,{each:J,keyBy:"INDEX"},function(g){return _.Z(Jqf,{character:function(){return g().character},
previousCharacter:function(){return g().previousCharacter},
marginMultiplier:function(){return g().marginMultiplier},
rollUp:function(){return g().rollUp},
shouldAnimate:function(){return g().shouldAnimate}})}))},"n");
sSv.idomCompat=!0;_.gJw=_.E("web_enable_sink_animated_rolling_character_and_number")?sSv:q3y;_.lGv=_.E("web_enable_sink_animated_rolling_character_and_number")?sSv:f5u(q3y);var XRr=function(F,q){this.fillAnimation=new Animation(tyP(F),document.timeline);this.strokeAnimation=new Animation(uUA(q),document.timeline)};
XRr.prototype.play=function(){var F,q;(q=(F=this.fillAnimation).play)==null||q.call(F);var t,u;(u=(t=this.strokeAnimation).play)==null||u.call(t)};
XRr.prototype.cancel=function(){var F,q;(q=(F=this.fillAnimation).cancel)==null||q.call(F);var t,u;(u=(t=this.strokeAnimation).cancel)==null||u.call(t)};_.WP=_.ld(function(F){var q=F.model;var t=F.pointerDownEvent;var u=F.pointerUpEvent;var J=F.pointerLeaveEvent;F=_.FG("div");var g=_.Mo({"border-radius":function(){return q().borderRadius}}),Y=_.FG("div"),Q=_.FG("div"),e=_.X(_.np(function(){return(u==null?0:u())||(J==null?0:J())?!1:!(t==null||!t())||!1})),r=e.next().value,N=e.next().value,w=void 0,k=function(){!w&&Q.value&&Y.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(w=new XRr(Q.value,Y.value));
var d;(d=w)==null||d.play()},z=function(){var d;
(d=w)==null||d.cancel()},T=function(){var d;
(d=w)==null||d.cancel()};
_.AO(function(){(u==null?0:u())&&k()},"T3bfE");
_.AO(function(){(t==null?0:t())&&z()},"C4C6ld");
_.AO(function(){(J==null?0:J())&&T()},"xSCnVb");
e=_.zq(function(){k();N(!1)});
var P=_.zq(function(){z();N(!0)}),v=_.zq(function(){T();
N(!1)});
_.vj(function(){if(w){var d;(d=w)==null||d.cancel();w=void 0}});
var H={};r=_.Ec("yt-spec-touch-feedback-shape",function(){return Jmu(q().color)},(H["yt-spec-touch-feedback-shape--focused"]=function(){return!!q().focused&&!q().disabled},H["yt-spec-touch-feedback-shape--circular"]=function(){return!!q().circular},H["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!q().isExtended},H["yt-spec-touch-feedback-shape--down"]=r,H["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!q().triggerEvents},H));
return _.Z("yt-touch-feedback-shape",{style:_.Mo({"border-radius":"inherit"})},_.Z("div",{el:F,class:r,style:_.Mo({"margin-top":function(){return q().customTopExtend?"-"+q().customTopExtend+"px":void 0}}),
"on:mousedown":P,"on:mouseup":e,"on:pointerleave":v,"on:touchstart":P,"on:touchend":e,"aria-hidden":!0},_.Z("div",{class:"yt-spec-touch-feedback-shape__stroke",style:g,el:Y}),_.Z("div",{class:"yt-spec-touch-feedback-shape__fill",style:g,el:Q})))},"o");
_.WP.idomCompat=!0;var Y0C={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 Ob=_.NA();Ob=Ob.toLowerCase();if(_.p3(Ob,"android")){var pRe=Ob.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);pRe&&parseFloat(pRe[1])<100||Ob.match("("+Object.keys(Y0C).join("|")+")")};var QSJ=_.ld(function(F){return _.Z(_.R,{cond:F.aTagConfig,then:function(q){return _.Z(_.Ds,{aTagConfig:q,disabled:F.disabled,className:F.className,style:F.style,title:F.title,ariaLabel:F.ariaLabel,ariaCurrent:function(){var t,u;return((t=F.toggleable)==null?void 0:t.call(F))&&((u=F.toggled)==null?void 0:u.call(F))},
ref:F.ref},F.children)},
else:function(){return _.Z("button",{el:_.l_(F.ref),"on:click":_.zq(function(q){var t;return(t=F.onClick)==null?void 0:t.call(F,q)}),
class:F.className,title:F.title,style:F.style,disabled:F.disabled,"aria-pressed":function(){var q,t;return((q=F.toggleable)==null?0:q.call(F))?!((t=F.toggled)==null||!t.call(F)):void 0},
"aria-label":F.ariaLabel,"aria-disabled":F.visiblyDisabled,"aria-hidden":F.ariaHidden,tabindex:F.tabIndex},F.children)}})},"p"),Z$E=_.ld(function(F){var q=F.data;
var t=F.hasIconLeading;var u=F.hasIconLeadingTrailing;var J=F.hasIconTrailing;var g=F.iconButton;var Y=F.iconClassName;var Q=F.secondaryIconClassName;var e=F.icon;var r=F.secondaryIcon;var N=F.textContentClassName;return _.Z(PP,{className:"",style:"display: inherit; justify-content: center"},_.Z(_.R,{debugInstance:"V4z1Uc",cond:function(){return e&&(t()||u()||(g==null?void 0:g()))},
then:function(){return _.Z(PP,null,_.Z("div",{class:Y,"aria-hidden":"true"},e==null?void 0:e()))}}),_.Z(_.R,{debugInstance:"ok3btb",
cond:function(){return(q().buttonText||q().animatedTextProps||q().formattedButtonText)&&!(g==null?0:g())},
then:function(){return _.Z(PP,null,_.Z(eHL,{className:N,iconPosition:function(){return q().iconPosition},
text:function(){return q().buttonText},
oneOffCustomTextWrap:function(){return q().oneOffCustomTextWrap},
formattedButtonText:function(){return q().formattedButtonText},
animatedTextProps:function(){return q().animatedTextProps}}))}}),_.Z(_.R,{debugInstance:"DO5Rz",
cond:J,then:function(){return _.Z(PP,null,_.Z("div",{class:Y},e==null?void 0:e()))}}),_.Z(_.R,{debugInstance:"bnojSc",
cond:u,then:function(){return _.Z(PP,null,_.Z("div",{class:Q},r==null?void 0:r()))}}),_.Z(_.R,{debugInstance:"HN3kad",
cond:function(){return!q().disabled&&!0},
then:function(){return _.Z(_.WP,{model:function(){var w=q();return{color:w.style==="overlay-dark"?4:w.style==="overlay"?w.type==="filled"?4:3:w.type==="filled"||w.style==="call-to-action-inverse"||w.style==="mono-inverse"?2:1}}})}}))},"q"),eHL=_.ld(function(F){var q=function(){var t,u;
return((t=F.iconPosition)==null?void 0:t.call(F))==="icon-with-label"||((u=F.oneOffCustomTextWrap)==null?void 0:u.call(F))};
return _.Z("div",{class:F.className,"aria-hidden":function(){var t,u,J;return((t=F.ariaHidden)==null?void 0:t.call(F))&&(!((u=F.animatedTextProps)==null||!u.call(F))||!((J=F.formattedButtonText)==null||!J.call(F)))}},_.Z(_.OK,null,_.Z(_.DA,{when:function(){var t;
return(t=F.animatedTextProps)==null?void 0:t.call(F)}},function(){return _.Z(_.lGv,{numberText:function(){return F.animatedTextProps().numberText},
numberValue:function(){return F.animatedTextProps().numberValue},
heightPx:function(){return F.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return F.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return F.animatedTextProps().shouldAnimate},
forceRollUp:function(){return F.animatedTextProps().forceRollUp}})}),_.Z(_.DA,{when:function(){var t;
return(t=F.formattedButtonText)==null?void 0:t.call(F)}},function(){return _.Z(_.rv,{text:function(){return Object.assign({},F.formattedButtonText(),{lineBreakMode:q()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":F.formattedButtonText().lineBreakMode,
alignment:q()?"TEXT_ALIGNMENT_CENTER":F.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!q()}})}),_.Z(_.DA,{when:function(){var t,u;
return((t=F.iconPosition)==null?void 0:t.call(F))==="icon-with-label"&&((u=F.text)==null?void 0:u.call(F))}},function(){return _.Z(_.rv,{text:function(){return{content:F.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.Z(_.W_,null,function(){return F.text})))},"r"),RHE=_.ld(function(F){return _.Z(_.R,{debugInstance:"kM7Sgc",
cond:F.hasLabel,then:function(){var q;return _.Z("label",{class:F.className},F.children,(q=F.textContent)==null?void 0:q.call(F))},
else:function(){return F.children}})},"s"),PP=_.ld(function(F){return F.children},"t");var rqf=_.ld(function(F){var q=_.l_(),t=_.X(_.N3(void 0,void 0,"Ug77pc")),u=t.next().value,J=t.next().value;t=_.X(_.N3(void 0,void 0,"XGf7Zb"));var g=t.next().value,Y=t.next().value;t=_.X(_.N3(0,void 0,"Ygnx7b"));var Q=t.next().value,e=t.next().value;t=_.zq(function(){switch(Q()){case 1:e(2);break;case 3:var N,w;(w=(N=q.value).hidePopover)==null||w.call(N);e(0);J(void 0);Y(void 0)}});
_.AO(function(){if(F.show()){var N;J((N=F.children)==null?void 0:N.call(F));var w;Y((w=F.location)==null?void 0:w.call(F));switch(Q()){case 0:var k,z;(z=(k=q.value).showPopover)==null||z.call(k);e(1);break;case 3:e(1);var T,P;(P=(T=q.value).hidePopover)==null||P.call(T);var v,H;(H=(v=q.value).showPopover)==null||H.call(v)}}else switch(Q()){case 2:e(3);break;case 1:var d,a;(a=(d=q.value).hidePopover)==null||a.call(d);J(void 0);Y(void 0);e(0)}},"lOyibf");
_.v_(function(){});
var r={};return _.Z("yt-popover",{popover:"manual",el:q,style:_.Mo({left:function(){var N;return(N=g())==null?void 0:N.left},
top:function(){var N;return(N=g())==null?void 0:N.top},
bottom:function(){var N;return(N=g())==null?void 0:N.bottom},
right:function(){var N;return(N=g())==null?void 0:N.right}}),
class:_.Ec("ytPopoverComponentHost",F.classNames,(r.ytPopoverComponentHostClosing=function(){return Q()===3},r.ytPopoverComponentHostSeeThrough=function(){var N;
return((N=F.seeThrough)==null?void 0:N.call(F))===!0},r)),
"on:animationend":t},u)},"u");var N9j={left:"0px",right:"auto",top:"0px",bottom:"auto"},wRd=function(){var F=this;this.registerTooltipElement=function(t){var u;F.tooltipElement=(u=t.querySelector("yt-popover"))!=null?u:void 0};
var q=_.X(_.N3(void 0,void 0,"z4iHWd"));this.state=q.next().value;this.setState=q.next().value;q=_.X(_.N3(void 0,void 0,"uKDcaf"));this.schedulerJobID=q.next().value;this.setSchedulerJobID=q.next().value},Zaf=function(F,q){var t=DR,u=_.mI.addJob(function(){var J=i$r(t,F,q);
t.setState({text:q.text,location:J,anchor:F,offset:q.offset})},4,q.delay);
t.setSchedulerJobID(u)},RgW=function(){var F=DR,q=F.schedulerJobID();
q&&(_.mI.cancelJob(q),F.setSchedulerJobID(void 0));F.setState(void 0)};
wRd.prototype.notify=function(F,q){var t;((t=this.state())==null?void 0:t.anchor)===F&&(t=i$r(this,F,q),this.setState({text:q.text,location:t,anchor:F,offset:q.offset}))};
var i$r=function(F,q,t){var u=q.getBoundingClientRect();q=window.innerWidth;var J=window.innerHeight,g=t.location,Y=t.offset;t=t.text;if(F=F.tooltipElement){var Q=getComputedStyle(F);F=Q.font;var e=Gq(Q.lineHeight),r=Gq(Q.paddingLeft),N=Gq(Q.paddingRight),w=Gq(Q.paddingTop);Q=Gq(Q.paddingBottom);var k=document.createElement("canvas").getContext("2d");k.font=F;t={width:k.measureText(t).width+r+N,height:e+w+Q}}else t=void 0;F=t;if(!F)return N9j;t=F.width;F=F.height;r=Y+F;w=Y+t;e=u.top>=r;r=J-u.bottom>=
r;N=u.left>=w;w=q-u.right>=w;Q=g;switch(g){case "top":!e&&r&&(Q="bottom");break;case "bottom":!r&&e&&(Q="top");break;case "left":!N&&w&&(Q="right");break;case "right":!w&&N&&(Q="left")}switch(Q){case "top":g=u.left+u.width/2-t/2;u=u.top-F-Y;break;case "bottom":g=u.left+u.width/2-t/2;u=u.bottom+Y;break;case "left":g=u.left-t-Y;u=u.top+u.height/2-F/2;break;case "right":g=u.right+Y;u=u.top+u.height/2-F/2;break;default:g=u.left+u.width/2-t/2,u=u.bottom+Y}Y=Object.assign({},N9j);g+t>q?(Y.right="0px",Y.left=
"auto"):(Y.left=Math.round(Math.max(0,g)+window.scrollX)+"px",Y.right="auto");u+F>J?(Y.bottom="0px",Y.top="auto"):(Y.top=Math.round(Math.max(0,u)+window.scrollY)+"px",Y.bottom="auto");return Y};var DR;DR=new wRd;_.kfv=_.ld(function(){var F=_.zy(function(){var t;return(t=DR.state())==null?void 0:t.text},void 0,"jgLmfd"),q=_.zy(function(){var t;
return(t=DR.state())==null?void 0:t.location},void 0,"zV1Udb");
return _.Z("yt-tooltip",{class:"ytTooltipContainerHost",el:_.l_(DR.registerTooltipElement),"aria-hidden":"true"},_.Z(rqf,{classNames:"ytTooltipContainerContent",location:q,show:function(){return!!F()},
seeThrough:!0},F))},"v");var wZ_=sd("stamper-context");_.x9=_.ld(function(F){var q=F.data;var t=F.icon;var u=F.iconName;var J=F.animateIcon;var g=F.secondaryIcon;var Y=F.secondaryIconName;var Q=F.focusedOverride;var e=F.clientOnlyWizTooltipsEnabled;Nno();var r=skM(q),N=r.size,w=r.style;F=r.disabled;var k=r.onTap,z=r.alignByText,T=r.aTagConfig,P=r.customColors,v=r.segmentedPosition,H=r.toggled,d=r.toggleable,a=r.accessibilityLabel,S=r.onToggle,K=r.iconPosition,h=r.oneOffCustomTextWrap,c=r.disableTextEllipsis,rf=r.disableBackdropFilter,Zv=r.tooltipText,
kP=r.ariaHidden,n3=r.tabIndex,o_=r.buttonText,df=r.formattedButtonText,m$=r.animatedTextProps,gx=Y3_(q,t,g,u,Y,Q,J),Hf=gx.type;t=gx.shouldFocus;u=gx.hasIconLeading;J=gx.hasIconTrailing;var Zw=gx.hasIconLeadingTrailing,cy=gx.hasIconOnly;g=gx.hasIconOnly40;var wx=gx.hasIconWithLabel;Y=gx.iconButton;var Rj=gx.visiblyDisabled;Q=gx.overrideSmallSizeIcon;r=gx.iconToRender;gx=gx.secondaryIconToRender;var xO=_.X(rmo(Zv)).next().value,DQ={},fe={};return _.Z(RHE,{className:_.Ec("yt-spec-button-shape-with-label",
(DQ["yt-spec-button-shape-with-label--is-overlay"]=function(){return w()==="overlay"||w()==="overlay-dark"},DQ)),
hasLabel:wx,textContent:function(){return _.Z(eHL,{text:o_,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:h,iconPosition:K,formattedButtonText:df,animatedTextProps:m$})}},_.Z(QSJ,{aTagConfig:T,
className:_.Ec("yt-spec-button-shape-next",function(){return p3o(Hf())},function(){return Rj()?void 0:Qkt(w())},function(){return egv(N())},(fe["yt-spec-button-shape-next--disabled"]=Rj,fe["yt-spec-button-shape-next--focused"]=t,fe["yt-spec-button-shape-next--icon-trailing"]=J,fe["yt-spec-button-shape-next--icon-leading"]=u,fe["yt-spec-button-shape-next--icon-leading-trailing"]=Zw,fe["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Zw()&&!(o_()||df())},fe["yt-spec-button-shape-next--icon-button"]=
function(){return cy()||wx()},fe["yt-spec-button-shape-next--icon-only-default"]=g,fe["yt-spec-button-shape-next--align-by-text"]=z,fe["yt-spec-button-shape-next--segmented-start"]=function(){return v()==="start"},fe["yt-spec-button-shape-next--segmented-end"]=function(){return v()==="end"},fe["yt-spec-button-shape-next--override-small-size-icon"]=Q,fe["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=h,fe["yt-spec-button-shape-next--disable-text-ellipsis"]=c,fe["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!rf()&&!_.E("web_disable_backdrop_filter")},fe)),
style:function(){var sM=P();if(sM){var FL=sM.color;var Ev=sM.backgroundColor;sM=sM.borderColor;var e5="";FL&&(e5+="color: "+FL+";");Ev&&(e5+="background-color: "+Ev+";");sM&&(e5+="border-color: "+sM+";");FL={style:e5}}else FL={};return FL.style},
onClick:function(sM){k==null||k(sM);d()&&(S==null||S(sM))},
disabled:F,ariaLabel:a,toggleable:d,toggled:H,title:function(){return(e==null?0:e())||!Zv()?"":Zv()},
visiblyDisabled:Rj,ariaHidden:kP,tabIndex:n3,ref:function(sM){(e==null?0:e())&&xO(sM)}},_.Z(Z$E,{data:q,
hasIconLeading:u,hasIconLeadingTrailing:Zw,hasIconTrailing:J,iconButton:Y,icon:r,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:gx})))},"w");
_.x9.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.AB=_.ld(function(F){var q=F.data;var t=F.className;var u=F.style;var J=F.useOutlinedIcon;var g=F.buttonOverrides;var Y=F.animatedTextProps;var Q=F.onClick;var e=F.target;var r=_.FG("button-view-model",function(d){d.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var a=q().targetId;a&&_.qEJ(_.h8(),a,d);return function(){c01(_.h8(),d)}}),N=function(){return q().iconName},w,k=(w=_.sV().resolve(_.JU(_.qo)))==null?void 0:w(),z=function(){var d=q();
var a=g==null?void 0:g(),S=Y==null?void 0:Y(),K=e==null?void 0:e();if(d){var h=nSf(d.type);var c=!!d.title||!!d.titleFormatted;var rf=!(!d.iconName&&!d.iconImage);c=rf&&!c?"icon-only":rf?d.iconTrailing||d.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;c==="icon-only-40"&&(h="text");var Zv,kP=(Zv=a==null?void 0:a.disabled)!=null?Zv:d.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||d.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";S=S&&S.numberText&&!isNaN(Number(S.numberValue))?
S:void 0;Zv=Object;rf=Zv.assign;var n3=d.title,o_=d.titleFormatted,df=d.accessibilityText,m$=oSq(d.style),gx=Myu(d.state),Hf=TnA(d.buttonSize);K=zgP(d,r,kP,Q,K);kP=kP&&!d.onDisabledTap;var Zw=k7f(d,r),cy=d.customFontColor,wx=d.customBackgroundColor;var Rj=d.customBorderColor;var xO=d.customDarkThemeFontColor,DQ=d.customDarkThemeBackgroundColor,fe=d.customDarkThemeBorderColor;cy=k&&xO?xO:cy;wx=k&&DQ?DQ:wx;Rj=k&&fe?fe:Rj;Rj={color:cy?_.KG(cy):void 0,backgroundColor:wx?_.KG(wx):void 0,borderColor:Rj?
_.KG(Rj):void 0};d=rf.call(Zv,{},{buttonText:n3,formattedButtonText:o_,animatedTextProps:S,accessibilityLabel:df,style:m$,type:h,state:gx,size:Hf,iconPosition:c,onTap:K,disabled:kP,aTagConfig:Zw,customColors:Rj,tooltipText:d.tooltip},a)}else d={style:"mono",type:"text",state:"active",size:"M"};d.focused=v();return d},T=function(){return l$W(z(),!!q().iconName)};
F=_.X(_.N3(!1,void 0,"WVXhrd"));w=F.next().value;var P=F.next().value,v=w;F=_.zq(function(){var d=_.sV().resolve(_.JU(_.GD));d&&P(d.isKeyBoardInUse());return!1});
w=_.zq(function(){P(!1);return!1});
_.AO(function(){var d,a=_.n(q==null?void 0:(d=q())==null?void 0:d.onVisible,_.Uk);a&&_.hv(a,{disableClickTracking:!0})},"w0lGYc");
var H=_.E("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.Z("button-view-model",{el:r,class:_.Ec("ytSpecButtonViewModelHost",t),"on:focusin":F,"on:focusout":w},_.Z(_.R,{cond:function(){var d;return(q==null?0:(d=q())==null?0:d.iconImage)?{sources:[q().iconImage]}:void 0},
then:function(d){return _.Z(_.x9,{data:z,icon:function(){return _.Z(_.sc,{data:d,alt:"",targetWidth:T,targetHeight:T,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:H})},
else:function(){return _.Z(_.x9,{data:z,icon:function(){return _.Z(_.Tq,{icon:N,active:function(){return(J==null?0:J())?!1:z().toggled},
animateIcon:function(){var d;return!!(u==null?0:(d=u())==null?0:d.animateIcon)},
size:T})},
clientOnlyWizTooltipsEnabled:H})}}))},"x");
_.AB.idomCompat={callbacks:{onClick:!0}};_.ei(_.ld(function(F){return _.Z("yt-button-view-model",{id:F.id,class:_.Ec(F.scopingClassName,F.classes),icon:function(){var q;return(q=F.icon)==null?void 0:q.call(F)},
"dialog-dismiss":function(){var q;return((q=F.dialogDismiss)==null?0:q.call(F))?"":void 0}},_.Z(_.AB,{data:function(){var q;
return(q=F.data)==null?void 0:q.call(F)},
className:function(){var q;return(q=F.className)==null?void 0:q.call(F)},
style:function(){var q;return(q=F.style)==null?void 0:q.call(F)},
useOutlinedIcon:function(){var q;return(q=F.useOutlinedIcon)==null?void 0:q.call(F)},
buttonOverrides:function(){var q;return(q=F.buttonOverrides)==null?void 0:q.call(F)},
animatedTextProps:function(){var q;return(q=F.animatedTextProps)==null?void 0:q.call(F)},
onClick:function(q){var t;return(t=F.onClick)==null?void 0:t.call(F,q)}}))},"y"),"yt-button-view-model",{props:{data:_.NH,
className:_.NH,style:_.NH,useOutlinedIcon:_.NH,buttonOverrides:_.NH,animatedTextProps:_.NH,onClick:_.pp,scopingClassName:_.NH,id:_.NH,icon:_.NH,dialogDismiss:_.NH,classes:_.NH,target:_.pp}});_.ei(_.ld(function(F){var q=F.data;var t=F.id;var u=F.className;var J=F.iconName;var g=F.animateIcon;var Y=F.secondaryIconName;F=_.X(_.N3(!1,void 0,"TtJl8"));var Q=F.next().value,e=F.next().value,r=function(){var w=_.sV().resolve(_.JU(_.GD));w&&e(w.isKeyBoardInUse())},N=function(){e(!1)};
F=_.FG("yt-button-shape",function(w){if(_.sV().resolve(_.JU(_.GD)))return w.addEventListener("focusin",r),w.addEventListener("focusout",N),function(){w.removeEventListener("focusin",r);w.removeEventListener("focusout",N)}});
return _.Z("yt-button-shape",{el:F,id:t,class:u},_.Z(_.R,{cond:q,then:function(){return _.Z(_.x9,{data:q,iconName:J,secondaryIconName:Y,focusedOverride:Q,animateIcon:g})}}))},"z"),"yt-button-shape",{props:{data:_.NH,
id:_.NH,className:_.NH,iconName:_.NH,animateIcon:_.NH,secondaryIconName:_.NH,clientOnlyWizTooltipsEnabled:_.NH,disableUpgrade:_.NH},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var vP=function(){var F=_.x.apply(this,arguments)||this;F.isGoalActive=!0;return F};
_.M(vP,_.x);vP.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
vP.prototype.progressBarChanged=function(){var F=_.ep(this.hostElement).querySelector("#progress-bar-progress"),q,t,u,J=(u=Number((q=this.creatorGoalState)==null?void 0:q.currentGoalCount)/Number((t=this.creatorGoalState)==null?void 0:t.totalGoalCount)*100)!=null?u:0,g;F.style.width=((g=Math.min(J,100))!=null?g:0)+"%"};
vP.prototype.goalStateChanged=function(){var F;this.isGoalActive=((F=this.creatorGoalState)==null?void 0:F.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var q;F={"--yt-progress-bar-color":R8_((q=this.creatorGoalState)==null?void 0:q.progressBarColor)};_.ws(this.hostElement,F)};
vP.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.JJ.Object.defineProperties(vP.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var F;return this.isGoalActive&&!((F=this.creatorGoalState)==null||!F.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.creatorGoalState)==null?0:F.endTimestampMs){var q;F=Number((q=this.creatorGoalState)==null?void 0:q.endTimestampMs)/1E3;return{seconds:String(F)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.creatorGoalState)==null?0:F.themedTargetImage){var q;F=_.n((q=this.creatorGoalState)==null?void 0:q.themedTargetImage,rtC);return this.isAppDarkTheme()?F==null?void 0:F.imageDark:F==null?void 0:F.imageLight}}}});
_.JJ.Object.defineProperties(vP,{template:{configurable:!0,enumerable:!0,get:function(){return K3C()}}});
vP.prototype.goalStateChanged=vP.prototype.goalStateChanged;vP.prototype.progressBarChanged=vP.prototype.progressBarChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.gv),_.V("design:type",Object)],vP.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);
_.C([_.O({selectorArgs:["data.creatorGoalEntityKey"],selector:function(F,q){return _.iC(F.entities,"creatorGoalEntity",q)}}),
_.V("design:type",Object)],vP.prototype,"creatorGoalState",void 0);_.C([_.O(),_.V("design:type",Object)],vP.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],vP.prototype,"isGoalActive",void 0);_.C([_.W("creatorGoalState","isGoalActive"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],vP.prototype,"shouldShowCountdown",null);_.C([_.W("creatorGoalState"),_.V("design:type",Object),_.V("design:paramtypes",[])],vP.prototype,"endTimestamp",null);
_.C([_.W("creatorGoalState"),_.V("design:type",Object),_.V("design:paramtypes",[])],vP.prototype,"targetIconThemedImage",null);_.C([_.za("creatorGoalState.currentGoalCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vP.prototype,"progressBarChanged",null);_.C([_.za("creatorGoalState.creatorGoalState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vP.prototype,"goalStateChanged",null);
_.C([_.Vu({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],vP);_.b(vP,"yt-creator-goal-progress-flow-view-model",function(){return K3C()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var EJd;var zHE;var Iw=function(){return _.x.apply(this,arguments)||this};
_.M(Iw,_.x);Iw.prototype.attached=function(){var F,q,t;if(this==null?0:(F=this.data)==null?0:(q=F.pdgPurchasedBumperLoggingDirectives)==null?0:(t=q.loggingDirectives)==null?0:t.trackingParams){var u,J,g;WNW(this==null?void 0:(u=this.data)==null?void 0:(J=u.pdgPurchasedBumperLoggingDirectives)==null?void 0:(g=J.loggingDirectives)==null?void 0:g.trackingParams)}};
Iw.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Iw.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Iw.prototype,"data",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Iw);
_.b(Iw,"yt-live-chat-item-bumper-view-model",function(){if(zHE===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;EJd===void 0&&(EJd=document.createElement("template"));var u=EJd;t.call(q,u.content.cloneNode(!0),F.content.firstChild);zHE=F}F=zHE;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var oJC;var nJE;_.qZ=function(F,q){this.data=F;this.actions=q;this.data=F;this.actions=q};
_.Kp=function(){};_.HP={};_.HP.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(F,q){Oa3(this.hostElement,F,q)},
getNavigationEndpointPopupAction:function(F){return PDA(F,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(F,q){x__(this.hostElement,F,q,this.openPopupConfig)}};var d_o=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.mu={};
_.mu.YtEndpointBehavior=[_.HP.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.bn("openPopupConfig");(this.useClickHandler=_.yG("useClickHandler",!1))?this.hostElement.addEventListener("click",iL(this,this.onEndpointClick_)):(m0(this.hostElement,"tap",iL(this,this.onEndpointTap_)),m0(this.hostElement,"touchend",iL(this,this.onEndpointTouchEnd_)));m0(this.hostElement,"touchstart",iL(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
iL(this,this.onEndpointTapStart_))},
onEndpointClick_:function(F){I$M(this.hostElement,F,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(F){var q=this.hostElement,t=this.openPopupConfig,u=this.disableCommandHandlerOverride;u=u===void 0?!1:u;var J=Am3(F);if(J){J.href&&fG(J.href);var g=F.detail;var Y=g.sourceEvent;g=g.preventer;Y=Y.button!==void 0?Y.button===0&&!Oc(Y):g?!Oc(g):!0;J.data&&Y&&vS3(q,J,F,t,u)}},
onEndpointTouchEnd_:function(F){Oc(F)||Am3(F)&&F.preventDefault()},
onEndpointTapStart_:function(F){ymA(F)}}];_.$9={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(F){for(var q=_.B2.getInstance(),t=_.X(Object.keys(F)),u=t.next();!u.done;u=t.next()){var J=u.value;u=F[J];if(this&&this[u]){var g=q.actionRoutingMap.get(J);g||(g=new Map,q.actionRoutingMap.set(J,g));q.registerActionHandler(this,J,this[u].bind(this),g)}else J=Error("jd"),J.params=u,_.CI(J)}},
unregisterActionMap:function(F){_.jJ(_.B2.getInstance(),F,this)}}]};var AT=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_"+(_.E("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.E("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.E("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.E("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.E("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.E("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var xm;var vT=new Map;var qzq=window.matchMedia("(forced-colors: active)").matches;var MEv;var T9v;var GfC=new _.pg("LOTTIE_LOADER_TOKEN");_.bT=_.ld(function(F){var q=F.data;var t=F.className;var u=F.animationName;var J=F.animationRef;var g=F.elRefForInterop;var Y=_.qL("lottie-component"),Q;_.vj(function(){var r;return void((r=Q)==null?void 0:r.destroy())});
var e;_.AO(function(){var r=_.Hj(u);if(r!==e){e=r;var N=Object.assign({},{animationName:r,animationRef:_.Hj(J)},_.Hj(q));try{_.sV().resolve(GfC)().then(function(z){var T;(T=Q)==null||T.destroy();var P,v;T=(v=g==null?void 0:(P=g())==null?void 0:P.value)!=null?v:Y.value;P=N.animationRef;v=N.listeners;z=z.loadAnimation(Object.assign({},{container:T},N.animationConfig));P&&(P.lottieEl=z);if(v)for(T=_.X(Object.entries(v)),P=T.next();!P.done;P=T.next())v=_.X(P.value),P=v.next().value,(v=v.next().value)&&
z.addEventListener(P,v);Q=z})}catch(z){r=z;
var w="LottieComponent error.";r.message&&(w+=" Original description: "+r.message);_.yw(r,w);_.bz(r);var k;((k=N.listeners)==null?0:k.error)&&N.listeners.error(r)}}},"nrJISd");
return _.Z(Sev,{cond:function(){return!(g==null?0:g())},
then:function(){return _.Z("lottie-component",{class:_.Ec("ytLottieComponentHost",t),el:Y})}})},"A");_.ei(_.ld(function(F){return _.Z("ytd-lottie-player",{id:F.id,hidden:F.hidden,class:F.className,"aria-label":F.ariaLabel,style:"display: block;"},_.Z(_.bT,{data:F.data,animationName:function(){var q;return((q=F.data().animationConfig)==null?void 0:q.name)||""},
animationRef:function(){return F.data().animationRef}}))},"B"),"ytd-lottie-player",{props:{data:_.NH,
id:_.NH,hidden:_.NH,className:_.NH,ariaLabel:_.NH}});var yP=function(){var F=_.x.apply(this,arguments)||this;F.animationRef={};F.delhiIconsEnabled=_.E("enable_web_delhi_icons");return F};
_.M(yP,_.x);_.l=yP.prototype;
_.l.handlePropertyChange=function(){var F=this.animatedIcon,q=this.active,t=this.isDarkTheme;if(F){var u=this.previousActive!==q;this.previousActive=q;this.animationRef.lottieEl?u&&this.toggleAnimation(q,F.totalFrames):q?this.initializeAnimationAsToggled(F.lottiePlayerProps,F.totalFrames):this.initializeAnimationAsUntoggled(F.lottiePlayerProps);F.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=F.type;this.lottiePlayerProps=this.computeLottiePlayerProps(F,t)}};
_.l.computeLottiePlayerProps=function(F,q){var t=this.deepCloneLottiePlayerProps(F);q?(q=F.nameDarkTheme,F=F.pathDarkTheme):(q=F.name,F=F.path);t.animationConfig.name=q;(q=vT.get(F))?t.animationConfig.animationData=q:t.animationConfig.path=F;return t};
_.l.initializeAnimationAsToggled=function(F,q){F.animationConfig.initialSegment=[q-1,q]};
_.l.initializeAnimationAsUntoggled=function(F){F.animationConfig.initialSegment=void 0};
_.l.toggleAnimation=function(F,q){if(F){var t;(t=this.animationRef.lottieEl)==null||t.playSegments([0,q],!0)}else{var u;(u=this.animationRef.lottieEl)==null||u.playSegments([0,1],!0)}};
_.l.deepCloneLottiePlayerProps=function(F){var q=Object.assign({},F.lottiePlayerProps.animationConfig);F=Object.assign({},F.lottiePlayerProps);F.animationConfig=q;return F};
yP.prototype.handlePropertyChange=yP.prototype.handlePropertyChange;_.C([_.O(),_.V("design:type",Object)],yP.prototype,"animatedIcon",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],yP.prototype,"active",void 0);_.C([_.O(),_.V("design:type",Boolean)],yP.prototype,"isDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],yP.prototype,"animatedIconType",void 0);_.C([_.O(),_.V("design:type",Boolean)],yP.prototype,"previousActive",void 0);
_.C([_.O(),_.V("design:type",Object)],yP.prototype,"lottiePlayerProps",void 0);_.C([_.O(),_.V("design:type",Object)],yP.prototype,"animationRef",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],yP.prototype,"delhiIconsEnabled",void 0);_.C([_.za("animatedIcon","active","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yP.prototype,"handlePropertyChange",null);_.C([_.Vu({is:"yt-animated-icon",disableElementRegistration:!0})],yP);
_.b(yP,"yt-animated-icon",function(){if(T9v===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;MEv===void 0&&(MEv=document.createElement("template"));var u=MEv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);T9v=F}F=T9v;return F},{mode:2});var Drf;var Wbd;var lyP=_.ld(function(F){var q=_.qL("span"),t=I5(function(){return{value:null}});
_.vj(function(){var J;(J=t.value)==null||J.cancel()});
var u=_.zy(F.data,{equals:function(J,g){return J.iconName===g.iconName&&J.iconStyle===g.iconStyle&&J.iconSize===g.iconSize&&J.iconSetName===g.iconSetName&&J.iconSelected===g.iconSelected}},"AoOoyf");
_.AO(function(){var J,g=(J=F.options)==null?void 0:J.call(F);g0q(q,t,u(),g)},"Tie9e");
return _.Z("span",{class:"yt-icon-shape",el:q})},"C");
lyP.idomCompat=!0;var J6f=["youtube_fill","youtube_outline"];var O$n=new _.bS({type:"iconset",value:void 0}),CA=function(){var F=_.x.apply(this,arguments)||this;F.isDarkTheme=document.documentElement.hasAttribute("dark");F.iconName="";F.iconsetName="yt-icons";F.iconset=null;F.missingIconSet=!1;F.iconType=null;F.iconShapeDataSignal=_.N3(void 0,void 0,"b0v7Ac");F.renderingOptionsSignal=_.N3({iconWidth:"100%",iconHeight:"100%",iconFilter:F.iconFilter},void 0,"Ls6l3e");F.wizHasRendered=!1;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(CA,_.x);CA.prototype.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.isDarkTheme=F)};
CA.prototype.handlePropertyChange=function(){var F=this,q,t,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H;return _.p(function(d){switch(d.nextAddress){case 1:if(q=!F.icon&&!F.iconName||!F.isAttached)return d.return();t=F;u=t.icon;J=t.size;g=t.defaultToFilled;Y=t.active;Q=t.targetContainer;F.toggleContainerClass(Q);_.E("kevlar_use_wil_icons")&&u&&(e=CGt(u),F.iconType=e.length?e[1]:null);if(u){d.jumpTo(2);break}F.iconsetName="";F.iconName="";return d.yield(F.renderIcon(Q,u),3);case 3:return d.return();case 2:r=P0e(u);
N=CGt(r);N.length&&(F.iconsetName=N[0],F.iconName=N[1]);if(!_.E("kevlar_use_wil_icons")){d.jumpTo(4);break}w=CA;k=xre;z=F.iconType;T=F.active;P=F.defaultToFilled;v=F.size;H=F.iconsetName;return d.yield(Aqw(),6);case 6:return d.yield(k.call(w,z,T,P,v,H,d.yieldResult),5);case 5:F.iconShapeData=d.yieldResult;case 4:if(F.shouldRenderIconShape(Q)){d.jumpTo(7);break}return d.yield(F.determineIconSet(r,Y,g,J,Q),7);case 7:return d.yield(F.renderIcon(Q,u),0)}})};
CA.prototype.toggleContainerClass=function(F){F?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var P0e=function(F){return!_.E("default_to_innertube_icon")||F.indexOf(":")>0?F:_.Ek(F)};
_.l=CA.prototype;_.l.determineIconSet=function(F,q,t,u){var J=this;return _.p(function(g){return g.nextAddress==1?_.E("kevlar_system_icons")||_.bn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.bn("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?g.yield(J.switchToYtSysIconset(F,q,t,u),3):g.jumpTo(2):g.nextAddress!=2?g.return():g.yield(J.useYtSysIconsetForMissingIcons(F,q,t,u),0)})};
_.l.switchToYtSysIconset=function(F,q,t,u){var J=this,g,Y,Q,e,r,N,w;return _.p(function(k){switch(k.nextAddress){case 1:if(!F||J.iconsetName!=="yt-icons"&&J.iconsetName!=="yt-sys-icons"){k.jumpTo(0);break}g=CGt(F);Y=g[1];Y=_.a8P(Y);_.E("enable_polymer_icons_replace_underscores_dash")&&Y.includes("_filled")&&(Y=Y.replace(/_filled/g,"-filled"));return k.yield(kb(Y,!0),3);case 3:return Q=k.yieldResult,k.yield(kb(Y,!1),4);case 4:if((e=k.yieldResult)||q&&Q)J.iconsetName="yt-sys-icons";J.iconName=J.getIconName(Y,
q,t,e,Q);if(u===24){k.jumpTo(0);break}r="yt-sys-icons"+u+":"+J.iconName;return k.yield(kb(r,!1,!0),6);case 6:return N=k.yieldResult,k.yield(kb(r,!0,!0),7);case 7:w=k.yieldResult;J.iconName=J.getIconName(Y,q,t,N,w);if(!q&&N||q&&w)J.iconsetName="yt-sys-icons"+u;_.WA(k)}})};
_.l.getIconName=function(F,q,t,u,J){F.includes("-filled")&&(F=F.replace("-filled",""));return J&&(q||t)?F+"-filled":F};
_.l.useYtSysIconsetForMissingIcons=function(F,q,t,u){var J=this,g,Y;return _.p(function(Q){if(Q.nextAddress==1)return J.iconsetName!=="yt-icons"?Q.jumpTo(0):Q.yield(kb(J.iconName,!1,!1,!0),3);if(Q.nextAddress!=4)return g=Q.yieldResult,Q.yield(kb(J.iconName,!1),4);Y=Q.yieldResult;if(g||!Y)return Q.jumpTo(0);J.iconsetName="yt-sys-icons";return Q.yield(J.switchToYtSysIconset(F,q,t,u),0)})};
_.l.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var Aqw=function(){return _.p(function(F){try{return F.return(_.sV().resolve(_.zC))}catch(q){return F.return(new Promise(function(t){_.g7().parkOrScheduleJob(function(){t(_.sV().resolve(_.zC))},2,"ci")}))}})},xre=function(F,q,t,u,J,g){u=u===void 0?24:u;
if(F){F=F.toLowerCase();var Y=F.endsWith("_filled")||F.endsWith("-filled");q={iconName:F,iconStyle:(q===void 0?0:q)||(t===void 0?0:t)||Y?"youtube_fill":"youtube_outline",iconSize:u,iconSetName:J===void 0?"yt-icons":J};t=!!g.resolveIcon(q);t||(q.iconSize=void 0,t=!!g.resolveIcon(q));!t&&Y&&(q.iconName=F.substring(0,F.length-7),q.iconSize=u,t=!!g.resolveIcon(q),t||(q.iconSize=void 0,t=!!g.resolveIcon(q)));t||(q.iconStyle=void 0,t=!!g.resolveIcon(q));t||_.bz(new _.D0("Icon not supported",{iconName:q.iconName,
iconStyle:q.iconStyle,iconSize:q.iconSize,iconType:F}));return t?q:void 0}};
_.l=CA.prototype;_.l.shouldRenderIconShape=function(F){if(!_.E("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;F=this.getContainer(F);return!two(F,this.icon)};
_.l.renderIcon=function(F,q){var t=this,u,J,g,Y,Q,e,r,N;return _.p(function(w){switch(w.nextAddress){case 1:if(q&&t.icon!==q)return w.return();u=t.getContainer(F);J=two(u,t.icon);if(t.shouldRenderIconShape(F)&&t.iconType)return t.applyIconShape(J,u),w.return();t.removeIconShape();if(!u)return w.return();t.iconName===""&&t.iconset&&u&&(t.removeStaticIcon(t.iconset,u),J&&t.removeAnimatedIcon(u));if(t.iconName===""&&t.iconset||!t.iconsetName||!O$n)return w.return();t.iconset=O$n.byKey(t.iconsetName);
if(!t.iconset)return t.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.kM(t,t.onIconsetAdded)),w.return();t.missingIconSet&&(t.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.kM(t,t.onIconsetAdded)));Y=(g=J||t.isAnimatedIcon?cmt(t.icon):void 0)&&!g.lazyLoad;e=g&&((Q=g)==null?void 0:Q.lazyLoad)&&(g.lottiePlayerProps.animationConfig.animationData?!0:vT.get(t.isDarkTheme?g.pathDarkTheme:g.path)?!0:!1);if(Y||e)return t.applyAnimatedIcon(u,g,t.iconset),w.return();if(e||
(r=g)==null||!r.lazyLoad){w.jumpTo(2);break}N=JSf(g,t.isDarkTheme);t.applyStaticIcon(t.iconset,u,t.iconName,F,J);return w.yield(N,3);case 3:return w.yield(t.renderIcon(t.targetContainer,t.icon),4);case 4:return w.return();case 2:t.applyStaticIcon(t.iconset,u,t.iconName,F,J),_.WA(w)}})};
_.l.getContainer=function(F){var q,t=(q=XEt(this.hostElement))==null?void 0:q.host;q=!!t&&!!t.polymerController;if(!F||q)return F?this.getTargetContainer(F,t):this.hostElement};
_.l.getTargetContainer=function(F,q){var t=_.ep(q).querySelector("#"+F);t||(F=new _.D0("yt-icon container missing",q.is,F),_.mH(F));return t};
_.l.applyStaticIcon=function(F,q,t,u,J){J&&this.removeAnimatedIcon(q);this.removeIconShape();J=J&&!!this.iconType&&!!this.iconShapeData&&_.E("kevlar_use_wil_icons");try{J?this.applyIconShape(!1,q):F.applyIcon(q,t)}catch(g){this.handleError(g,u,q)}};
_.l.applyIconShape=function(F,q){this.iconset&&q&&(this.removeStaticIcon(this.iconset,q),F&&this.removeAnimatedIcon(q));F={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var t=_.X(this.iconShapeDataSignal);q=t.next().value;t=t.next().value;var u=_.X(this.renderingOptionsSignal),J=u.next().value;u=u.next().value;t(this.iconShapeData);u(F);if(!this.wizHasRendered)for(this.wizHasRendered=!0,F=_.X(XuC(q,J)).next().value;F.firstChild;)_.ep(this.hostElement).appendChild(F.firstChild)};
_.l.removeIconShape=function(){if(_.E("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.l.removeStaticIcon=function(F,q){F.removeIcon(q)};
_.l.applyAnimatedIcon=function(F,q,t){this.removeStaticIcon(t,F);this.removeIconShape();var u;t=this.animatedIconElement&&((u=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:u.type)===q.type;if(this.animatedIconElement&&t){this.animatedIconElement.polymerController.animatedIcon=q;var J;((J=this.animatedIconElement)==null?void 0:J.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(F),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=q,this.animatedIconElement.polymerController.active=this.active,_.E("delhi_modern_web_player_icons")?(q=FGu(F,this.icon)&&F.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=q?q.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.E("kevlar_use_wil_icons")?
F.insertBefore(this.animatedIconElement,F.childNodes[0]):(F=_.ep(F),F.insertBefore(this.animatedIconElement,F.childNodes[0]))};
_.l.removeAnimatedIcon=function(F){_.E("kevlar_use_wil_icons")?this.animatedIconElement&&F.contains(this.animatedIconElement)&&F.removeChild(this.animatedIconElement):(F=_.ep(F),this.animatedIconElement&&F.contains(this.animatedIconElement)&&F.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.l.handleError=function(F,q,t){_.yw(F,this.iconName,q,t);q=two(t,this.icon);var u=!1;window.location.href.includes("JpymaW6Lh2w")?u=!0:t._svgIcon&&(t=(t=t._svgIcon.parentNode)?t.tagName:"unknown",_.yw(F,t),t==="YT-ICON"&&F.name==="NotFoundError"?u=!0:F.name==="NotFoundError"&&q&&(u=!0));u?_.bz(F):_.mH(F)};
_.JJ.Object.defineProperties(CA,{template:{configurable:!0,enumerable:!0,get:function(){if(Wbd===void 0){var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;
Drf===void 0&&(Drf=document.createElement("template"));var u=Drf;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Wbd=F}F=Wbd;return F}}});
CA.prototype.handlePropertyChange=CA.prototype.handlePropertyChange;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],CA.prototype,"actionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",String)],CA.prototype,"icon",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],CA.prototype,"active",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],CA.prototype,"defaultToFilled",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],CA.prototype,"isAnimatedIcon",void 0);
_.C([_.O({value:24}),_.V("design:type",Number)],CA.prototype,"size",void 0);_.C([_.O({value:""}),_.V("design:type",String)],CA.prototype,"targetContainer",void 0);_.C([_.O(),_.V("design:type",Object)],CA.prototype,"animatedIconElement",void 0);_.C([_.O(),_.V("design:type",Object)],CA.prototype,"isDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],CA.prototype,"ariaHidden",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],CA.prototype,"ariaLabel",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],CA.prototype,"role",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],CA.prototype,"tabindex",void 0);_.C([_.O(),_.V("design:type",String)],CA.prototype,"style",void 0);_.C([_.O(),_.V("design:type",String)],CA.prototype,"iconFilter",void 0);
_.C([_.za("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],CA.prototype,"handlePropertyChange",null);_.C([_.Vu({is:"yt-icon",noInjection:!0})],CA);var YzA="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),QTq=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var vJj={};vJj.YtPlaintextBehavior=[_.v6,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(F){F.preventDefault();F=F.clipboardData.getData("text/plain");document.execCommand("insertText",!1,F)},
preventRichTextFormatting_:function(F){_.rd&&(F=F.detail.keyboardEvent,F.stopImmediatePropagation(),F.preventDefault())}}];var IGv;var H$L;var dv=function(){var F=_.x.apply(this,arguments)||this;F.ignoreShadyDom=!1;F.hasChange_=!1;F.hasSetTitle_=!1;F.useIOObserverForVisibilityLogging_=_.E("kevlar_use_vimio_behavior")&&_.bn("INNERTUBE_CLIENT_NAME")==="WEB";F.ytFormattedStringObserverHandlerKeys_=void 0;return F};
_.M(dv,_.x);_.l=dv.prototype;_.l.created=function(){this.useIOObserverForVisibilityLogging_=_.E("kevlar_use_vimio_behavior")&&_.bn("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.l.ready=function(){_.bn("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_()};
_.l.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.l.detached=function(){this.unobserveIOObservers_()};
_.l.clearContents_=function(){for(var F=this.getRoot(),q=F.lastChild;q&&q.tagName!=="STYLE";){try{F.removeChild(q)}catch(t){break}q=F.lastChild}};
_.l.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var F=_.X(this.ytFormattedStringObserverHandlerKeys_),q=F.next();!q.done;q=F.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(q.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.l.resetForAttributedString=function(){var F=this.getRoot();!F.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),F.appendChild(this.ytAttributedStringElementRef))};
_.l.resetForFormattedString=function(){var F=this.getRoot(),q=F.querySelector("yt-attributed-string");q&&(this.ytAttributedStringElementRef=F.removeChild(q))};
_.l.textChanged=function(){this.textChanged_(this.text)};
_.l.textChanged_=function(F){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!F||!F.runs&&!F.simpleText;if(_.E("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var q=this.hostElement.firstChild;q&&q.nodeName==="FONT";){var t=q;q=q.nextSibling;this.hostElement.removeChild(t)}q=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
t=F.simpleText;var u;!t&&((u=F.runs)==null?void 0:u.length)===1&&this.isSimpleString_(F.runs[0])&&(t=F.runs[0].text);t!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.bn("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(t!==void 0){try{q.textContent=t}catch(J){}q.textContent||(this.isEmpty=!0)}else F=F.runs,t!==void 0&&(F=[{text:t}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),F&&this.updateText_(F),
q.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.l.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)};
_.l.computeAriaLabel_=function(F){return F};
_.l.computeEllipsisTruncateStyling=function(F,q){return F&&!q};
_.l.computeUseAttributedString=function(F){return _.E("web_replace_formatted_with_attributed_string")&&PE3(F)&&!this.disableAttributedString&&!this.enableContentEditable};
_.l.setNodeStyle_=function(F,q){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.E("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?q.removeAttribute("dir"):q.setAttribute("dir","auto");q.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");q.style.color="";var t=null;this.noStyles||(F.bold&&(q.classList.add("bold"),t="bold"),F.deemphasize&&(q.classList.add("deemphasize"),t="deemphasize"),F.italics&&q.classList.add("italic"),
F.strikethrough&&q.classList.add("strikethrough"),F.errorUnderline&&(q.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),F.bracket&&q.classList.add("bracket"),F.textColor&&(q.style.color=_.hn(F.textColor)));t!==q.getAttribute("style-target")&&(t?q.setAttribute("style-target",t):q.removeAttribute("style-target"))};
_.l.setUpVisibilityLogging_=function(F,q){var t=this;this.setNodeTrackingParams_(F,q);var u;((u=q.data)==null?0:u.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(F=this.ytRendererBehavior.visibilityObserver.observe(q,function(J){var g=t.ytRendererBehavior.getVisibilityLogger();g&&g.reportShown(J)},this.ytRendererBehavior.visibilityOptionVisible_),q=this.ytRendererBehavior.visibilityObserver.observe(q,function(J){var g=t.ytRendererBehavior.getVisibilityLogger();
g&&g.reportHidden(J)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(F),this.ytFormattedStringObserverHandlerKeys_.push(q))};
_.l.setNodeTrackingParams_=function(F,q){q.data||(q.data={});if((F=F.loggingDirectives?F.loggingDirectives.trackingParams:null)||q.data.trackingParams)q.data.trackingParams=F};
_.l.computeHasLinkOnly_=function(F){return!(!F||F.length!==1||this.noEndpoints||!F[0].navigationEndpoint)};
_.l.getRoot=function(){var F=this.buildScopeDomOptions();return this.enableContentEditable?_.ep(_.ep(this.hostElement,F).querySelector("[contenteditable]")):_.ep(this.hostElement,F)};
_.l.fixContenteditableScope=function(){var F=function(q){q&&(q.nodeType===1&&q.classList&&(q.classList.add("style-scope"),q.classList.add("yt-formatted-string")),q.childNodes&&q.childNodes.forEach(function(t){F(t)}))};
F(this.getRoot())};
_.l.updateText_=function(F){for(var q=F.length,t=this.getRoot(),u=t.firstChild;u&&u.nodeName==="STYLE";)u=u.nextSibling;for(var J=0;J<q&&u;){var g=F[J],Y=_.E("remove_cr_char")&&g.text?g.text.replace("\r",""):g.text;if(this.isSimpleString_(g)&&!this.useMixedDirectionFormattedStrings)if(u.nodeName==="#text"){u.textContent!=Y&&(u.textContent=Y);J++;u=u.nextSibling;continue}else break;if(_.n(g,dc))break;else if(!this.noEndpoints&&g.navigationEndpoint){if(u.nodeName!=="A")break;this.setDataOnAnchor_(u,
g.navigationEndpoint)}else if(u.nodeName!=="SPAN")break;this.setNodeStyle_(g,u);this.setUpVisibilityLogging_(g,u);u.textContent!=Y&&(u.textContent=Y);J++;u=u.nextSibling}if(u)for(g=t.lastChild,u=J?u.previousSibling:null;g&&g!=u;){try{t.removeChild(g)}catch(Q){break}g=t.lastChild}J!==q&&this.addTextNodes_(F,J)};
_.l.addTextNodes_=function(F,q){for(var t=document.createDocumentFragment(),u=F.length;q<u;q++){var J=F[q],g=_.E("remove_cr_char")&&J.text?J.text.replace("\r",""):J.text;if(this.isSimpleString_(J)&&!this.useMixedDirectionFormattedStrings)t.appendChild(document.createTextNode(g));else{var Y=_.n(J,dc);if(Y){if(Y.image){var Q=document.createElement("img");Y.isCustomEmoji||Q.classList.add("small-emoji");Q.classList.add("emoji");Y.isCustomEmoji&&(Q.dataset.emojiId=Y.emojiId);Q.src=_.ZR(Y.image.thumbnails,
this.emojiSize);(J=this.get("image.accessibility.accessibilityData.label",Y))?Q.alt=J:Y.shortcuts&&Y.shortcuts.length>0?Q.alt=Y.shortcuts[0]:Y.emojiId&&(Q.alt=Y.emojiId);t.appendChild(Q);this.hasEmoji=!0}}else!this.noEndpoints&&J.navigationEndpoint?(Q=document.createElement("a"),Q.classList.add("yt-simple-endpoint"),Q.setAttribute("spellcheck","false"),this.setDataOnAnchor_(Q,J.navigationEndpoint)):Q=document.createElement("span"),this.setNodeStyle_(J,Q),this.setUpVisibilityLogging_(J,Q),Q.appendChild(document.createTextNode(g)),
t.appendChild(Q)}}this.getRoot().appendChild(t)};
_.l.isSimpleString_=function(F){return(this.noEndpoints||!F.navigationEndpoint)&&!_.n(F,dc)&&(this.noStyles||!(F.bold||F.deemphasize||F.italics||F.strikethrough||F.errorUnderline||F.bracket||F.textColor))&&!F.loggingDirectives};
_.l.getRawText=function(){return _.q1(this.text)};
_.l.getFirstRunText=function(){var F;if(((F=this.text)==null?0:F.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.l.setFirstRunText=function(F){var q;((q=this.text)==null?0:q.runs)&&this.text.runs[0]&&(this.text.runs[0].text=F,this.textChanged_(this.text))};
_.l.setDataOnAnchor_=function(F,q){var t=this;!_.E("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(q)||this.isSignalServiceEndpoint_(q)?(F.onclick=this.serviceEndpointHandler_(q),Kl(F,"#")):mZt({text:this.text,command:q},function(){LpC(F,q,t.target)})};
_.l.isServiceEndpoint_=function(F){var q;return!((q=_.n(F==null?void 0:F.commandMetadata,_.EH))==null||!q.sendPost)};
_.l.isSignalServiceEndpoint_=function(F){return!!_.n(F,_.ko)};
_.l.serviceEndpointHandler_=function(F){var q=this;return function(t){_.RD(q.hostElement,[F]);t.preventDefault()}};
_.l.overrideAriaLabelChanged_=function(){var F=this.getRoot();this.enableContentEditable&&F&&F.setAttribute("aria-label",this.overrideAriaLabel)};
_.l.enableContentEditableChanged_=function(){var F=this,q=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),q=_.ep(this.hostElement,q),!q.lastChild||q.lastChild instanceof HTMLElement&&q.lastChild.id!=="contenteditable-root"){var t=document.createElement("div");t.id="contenteditable-root";t.setAttribute("contenteditable","true");t.setAttribute("dir","auto");t.onfocus=function(){F.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
q.appendChild(t);this.overrideAriaLabel&&t.setAttribute("aria-label",this.overrideAriaLabel)}}else t=_.Zj(this.hostElement).firstChild,t instanceof HTMLElement&&t.id==="contenteditable-root"&&_.ep(this.hostElement,q).removeChild(t)};
_.l.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.l.getNodesForVisibilityLogging_=function(){return _.Xr(this.getRoot().childNodes,function(F){var q;return!((q=F.data)==null||!q.trackingParams)})};
_.l.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.l.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var F=this.ytRendererBehavior.getVisibilityLogger();F&&this.getNodesForVisibilityLogging_().forEach(function(q){F.reportShown(q)})}};
_.l.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var F=this.ytRendererBehavior.getVisibilityLogger();F&&this.getNodesForVisibilityLogging_().forEach(function(q){F.reportHidden(q)})}};
_.JJ.Object.defineProperties(dv.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.E("enable_mixed_direction_formatted_strings")}}});
dv.prototype.enableContentEditableChanged_=dv.prototype.enableContentEditableChanged_;dv.prototype.overrideAriaLabelChanged_=dv.prototype.overrideAriaLabelChanged_;dv.prototype.ellipsisTruncateChanged_=dv.prototype.ellipsisTruncateChanged_;dv.prototype.textChanged=dv.prototype.textChanged;_.C([_.D(vJj.YtPlaintextBehavior),_.V("design:type",Object)],dv.prototype,"ytPlaintextBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],dv.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],dv.prototype,"text",void 0);_.C([_.O(),_.V("design:type",Boolean)],dv.prototype,"noEndpoints",void 0);_.C([_.O(),_.V("design:type",Boolean)],dv.prototype,"noStyles",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],dv.prototype,"isDarkTheme",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],dv.prototype,"splitLines",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],dv.prototype,"forceDefaultStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],dv.prototype,"ellipsisTruncate",void 0);_.C([_.O(),_.V("design:type",Object)],dv.prototype,"ignoreShadyDom",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.V("design:type",Boolean)],dv.prototype,"ellipsisTruncateStyling",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.V("design:type",String)],dv.prototype,"ariaLabel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],dv.prototype,"isEmpty",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.V("design:type",Boolean)],dv.prototype,"hasLinkOnly_",void 0);_.C([_.O(),_.V("design:type",Boolean)],dv.prototype,"hasEmoji",void 0);_.C([_.O(),_.V("design:type",Boolean)],dv.prototype,"disableAttributedString",void 0);_.C([_.O(),_.V("design:type",Boolean)],dv.prototype,"isOverlay",void 0);_.C([_.O(),_.V("design:type",Boolean)],dv.prototype,"linkInheritColor",void 0);
_.C([_.O(),_.V("design:type",Boolean)],dv.prototype,"noPreWrap",void 0);_.C([_.O(),_.V("design:type",Boolean)],dv.prototype,"userInput",void 0);_.C([_.O({value:16}),_.V("design:type",Number)],dv.prototype,"emojiSize",void 0);_.C([_.O(),_.V("design:type",String)],dv.prototype,"target",void 0);_.C([_.O(),_.V("design:type",Boolean)],dv.prototype,"enableContentEditable",void 0);_.C([_.O(),_.V("design:type",String)],dv.prototype,"overrideAriaLabel",void 0);
_.C([_.O(),_.V("design:type",Boolean)],dv.prototype,"respectHtmlDir",void 0);_.C([_.O(),_.V("design:type",Boolean)],dv.prototype,"respectLangDir",void 0);_.C([_.W("plaintextOnly"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dv.prototype,"useMixedDirectionFormattedStrings",null);_.C([_.O({computed:"computeUseAttributedString(text)"}),_.V("design:type",Boolean)],dv.prototype,"useYtAttributedString",void 0);
_.C([_.za("text"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dv.prototype,"textChanged",null);_.C([_.za("ellipsisTruncate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dv.prototype,"ellipsisTruncateChanged_",null);_.C([_.za("overrideAriaLabel"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dv.prototype,"overrideAriaLabelChanged_",null);
_.C([_.za("enableContentEditable"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dv.prototype,"enableContentEditableChanged_",null);_.C([_.Vu({is:"yt-formatted-string",disableElementRegistration:!0})],dv);
_.b(dv,"yt-formatted-string",function(){if(H$L===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;IGv===void 0&&(IGv=document.createElement("template"));var u=IGv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);H$L=F}F=H$L;return F});var mrz;var $rd;var b$j;var yqw;var VP=function(){var F=_.x.apply(this,arguments)||this;F.focused=!1;F.disabled=!1;F.isOverlay=!1;return F};
_.M(VP,_.x);VP.prototype.triggerDown=function(){if(!this.disabled){_.RE(this.hostElement,"down",!0);var F;(F=this.currentAnimation)==null||F.cancel()}};
VP.prototype.triggerUp=function(){if(!this.disabled){_.RE(this.hostElement,"down",!1);var F=this.fillElement;var q=this.strokeElement;typeof GroupEffect==="function"?(F=new GroupEffect([tyP(F),uUA(q)]),F=new Animation(F,document.timeline)):F=new XRr(F,q);this.currentAnimation=F;var t;(t=this.currentAnimation)==null||t.play()}};
_.C([_.Ms(".stroke"),_.V("design:type",HTMLElement)],VP.prototype,"strokeElement",void 0);_.C([_.Ms(".fill"),_.V("design:type",HTMLElement)],VP.prototype,"fillElement",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],VP.prototype,"focused",void 0);_.C([_.O(),_.V("design:type",Object)],VP.prototype,"disabled",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],VP.prototype,"isOverlay",void 0);_.C([_.Vu({is:"yt-interaction",disableElementRegistration:!0})],VP);
_.b(VP,"yt-interaction",function(){if(yqw===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;b$j===void 0&&(b$j=document.createElement("template"));var u=b$j;t.call(q,u.content.cloneNode(!0),F.content.firstChild);yqw=F}F=yqw;return F},{mode:2});var Ub=function(){return _.x.apply(this,arguments)||this};
_.M(Ub,_.x);_.l=Ub.prototype;_.l.ready=function(){var F=this,q=_.ep(this.hostElement).querySelector("#button");q.addEventListener("focus",function(){Y6O||(Y6O=new XJE);F.keyboardFocused=Y6O.isKeyBoardInUse()});
q.addEventListener("blur",function(){F.keyboardFocused=!1;F.rippleUp_()})};
_.l.computeTabIndex_=function(F){return F?-1:0};
_.l.computeButtonAriaPressed_=function(F){if(this.toggleable)return F?"true":"false"};
_.l.rippleDown_=function(){_.ep(this.hostElement).querySelector("#interaction").triggerDown()};
_.l.rippleUp_=function(){_.ep(this.hostElement).querySelector("#interaction").triggerUp()};
_.l.onPressedChanged_=function(){var F=_.Zj(_.ep(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Zj(_.ep(this.hostElement).querySelector("#button")).children[0];F&&(F.active=this.pressed)};
Ub.prototype.onPressedChanged_=Ub.prototype.onPressedChanged_;Ub.prototype.rippleUp_=Ub.prototype.rippleUp_;Ub.prototype.rippleDown_=Ub.prototype.rippleDown_;_.C([_.O(),_.V("design:type",String)],Ub.prototype,"label",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ub.prototype,"disabled",void 0);_.C([_.O(),_.V("design:type",Boolean)],Ub.prototype,"pressed",void 0);_.C([_.O(),_.V("design:type",Object)],Ub.prototype,"toggleable",void 0);
_.C([_.O(),_.V("design:type",Boolean)],Ub.prototype,"untabbable",void 0);_.C([_.O(),_.V("design:type",Boolean)],Ub.prototype,"keyboardFocused",void 0);_.C([_.EB("down"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ub.prototype,"rippleDown_",null);_.C([_.EB("up"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ub.prototype,"rippleUp_",null);
_.C([_.za("pressed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ub.prototype,"onPressedChanged_",null);_.C([_.Vu({is:"yt-icon-button",disableElementRegistration:!0})],Ub);
_.b(Ub,"yt-icon-button",function(){if($rd===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;mrz===void 0&&(mrz=document.createElement("template"));var u=mrz;t.call(q,u.content.cloneNode(!0),F.content.firstChild);$rd=F}F=$rd;return F},{mode:2});var C0J;var drd=function(){var F=document.body,q=F.appendChild;if(C0J===void 0){var t=document.createElement("template");_.G(t,'\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>');
C0J=t}t=C0J;q.call(F,t.content)};
document.body?drd():window.addEventListener("DOMContentLoaded",drd);var VEO=_.LZ(["aria-"]),S9={};S9.YtRenderButtonBehavior=[_.B.YtRendererBehavior,_.mu.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!!_.sV().resolve(_.JU(_.GD))&&_.E("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var F=this.computeHref_(this.endpoint,!0);F?Kl(this.elements_.endpoint,F):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){F=this.buttonClass.split(" ");F=_.X(F);for(var q=F.next();!q.done;q=F.next())q=q.value,_.RE(this.hostElement,q,!0),this.elements_.button&&_.RE(this.elements_.button,q,!0),this.elements_.text&&_.RE(this.elements_.text,q,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(F=null,this.buttonAccessibility&&(F=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=F:F?_.ss([_.Qp(VEO)],this.elements_.button,"aria-label",F):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var F=_.sV().resolve(_.JU(_.GD));F&&(this.keyboardFocused=F.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.ow("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,_.xz(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.xz(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(F,q){if(q)for(F=q.split(" "),F=_.X(F),q=F.next();!q.done;q=F.next())q=q.value,_.RE(this.hostElement,q,!1),this.elements_.button&&_.RE(this.elements_.button,q,!1),this.elements_.text&&_.RE(this.elements_.text,q,!1)},
buttonIconChanged_:function(F){this.elements_.icon?F?(this.elements_.icon.icon=F,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.xz(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.rs(this.hostElement,"is-paper-button-with-icon",!1)):F&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.xz(this.elements_.button).appendChild(this.elements_.icon):_.xz(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.rs(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(F){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,F){var q=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(F){case "yt_icon_button_with_label":q=!0;_.RE(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();F=_.xz(this.elements_.button).firstElementChild;
this.elements_.icon=F;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.xz(this.elements_.endpoint).appendChild(this.elements_.button);_.xz(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.ow("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;_.xz(this.elements_.button).appendChild(this.elements_.text);_.xz(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":q=!0,this.elements_.button=this.getYtIconButton_(),F=_.xz(this.elements_.button).firstElementChild,this.elements_.icon=F,this.setIconActive_(this.elements_.icon),
_.xz(this.elements_.endpoint).appendChild(this.elements_.button)}_.rs(this.hostElement,"is-icon-button",q);_.rs(this.hostElement,"is-paper-button",!q);_.rs(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 t;_.ep((t=this.container.hostElement)!=null?t:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.xz(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(F){if(F!=void 0||this.disabled)this.disabled=F,this.elements_.button&&(this.elements_.button.disabled=F)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(F){_.E("kevlar_system_icons")&&F&&this.data&&(this.data.isSelected!==void 0?F.active=this.data.isSelected:this.data.isToggled!==void 0&&(F.active=this.data.isToggled))},
observeBasicPalette_:function(F){_.II(this.hostElement,F)},
disabledChanged_:function(F){this.data&&this.set("data.isDisabled",F)},
onYtButtonTap_:function(F){if(this.disabled)F.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.RD(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(F=this.disableCommandHandlerOverride,!this.data||!this.data.command||F||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.E("handle_service_request_actions")||_.RD(this.hostElement,[this.serviceEndpoint]),
_.Q0(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.E("handle_service_request_actions")?(F=[],this.serviceEndpoint&&F.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&F.push(this.data.command),F.length&&_.rY(this.hostElement,F,this.hostElement)):this.data&&this.data.command&&(F=this.data.command,F.accountUnlinkCommand||F.accountLinkCommand||F.insertAdCommand||F.insertHighlightMarkerCommand||
F.createLivestreamHighlightClipCommand||F.getVideoUploadFeedbackCommand||F.musicDeletePrivatelyOwnedEntityCommand||F.ypcCancelRecurrenceEndpoint||F.getMultiSelectCommandEndpoint?_.RD(this.hostElement,[F]):_.rY(this.hostElement,[F],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var F,q=_.ep((F=this.container.hostElement)!=null?F:this.container);q.lastChild&&q.lastChild.tagName!="STYLE";)try{q.removeChild(q.lastChild)}catch(t){break}},
getYtIconButton_:function(){var F=this.reuseEnabled_()?_.ow("yt-icon-button"):document.createElement("yt-icon-button"),q=_.xz(F).firstElementChild;if(q&&q.is!="yt-icon"){for(q=_.xz(F);q.lastChild;)q.removeChild(q.lastChild);q=null}q||(q=this.getIcon_(),this.setIconActive_(q),_.xz(F).appendChild(q));return F},
reuseEnabled_:function(){return _.E("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.ow("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.ow("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Urv={};
_.Urv.YtButtonBehavior=[S9.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var F=this.data;F&&(this._setEndpoint(this.computeEndpoint_(F)),this._setServiceEndpoint(this.computeServiceEndpoint_(F)),this._setCommand(this.computeCommand_(F)),this._setButtonIcon(this.computeButtonIcon_(F)),this._setButtonText(this.computeButtonText_(F,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(F)),this._setButtonTooltip(this.computeTooltip_(F)),this._setButtonClass(this.computeButtonClass_(F)),this._setIconPositionType(this.computeIconPositionType_(F)),this.updateRenderedElements())},
setPressedState:function(F){var q;if((q=this.elements_)==null?0:q.button)this.elements_.button.pressed=!!F},
computeIconPositionType_:function(F){return F&&F.iconPosition||null},
computeEndpoint_:function(F){var q=F&&F.navigationEndpoint,t=this.get("data.command.commandMetadata.webCommandMetadata.url"),u=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return q?q:F&&F.command&&F.command.modalEndpoint?F.command:t&&!u&&F.command?F.command:null},
computeServiceEndpoint_:function(F){var q=F&&F.serviceEndpoint,t=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return q?q:t&&F.command?F.command:null},
computeCommand_:function(F){return F&&F.command||null},
computeButtonIcon_:function(F){return F&&F.icon&&F.icon.iconType?_.Ek(F.icon.iconType):null},
computeButtonText_:function(F,q){return!q&&F&&F.text||null},
computeAccessibility_:function(F){return this.get("accessibilityData.accessibilityData",F)||F&&F.accessibility||(F&&F.text?{label:this.getSimpleString(F.text)}:null)},
computeTooltip_:function(F){return F?F.isDisabled&&F.disabledTooltip||F.tooltip||null:null},
computeButtonClass_:function(F){var q=F&&F.style?F.style.toLowerCase().replace(/_/g,"-")+" ":"";q+=F&&F.size?F.size.toLowerCase().replace(/_/g,"-")+" ":"";F.colorData&&F.colorData.basicColorPaletteData&&F.colorData.basicColorPaletteData.borderColor&&(q+="palette-with-border");return q.trim()}}];var HT={};var S0v;var hHr;var Kbv,B91=function(){return Kbv!==void 0?Kbv:Kbv=document.createElement("template")};
document.head.appendChild(B91().content);var Lbv;var fGr,aGw=function(){return fGr!==void 0?fGr:fGr=document.createElement("template")};
document.head.appendChild(aGw().content);var jSf;var cqJ,FKj=function(){return cqJ!==void 0?cqJ:cqJ=document.createElement("template")};
document.head.appendChild(FKj().content);var qRx;var t7r=document.head,ujJ=t7r.appendChild,JLv;if(qRx===void 0){var sW1=document.createElement("template");_.G(sW1,"\x3c!--css-build:shady--\x3e");sW1.content.insertBefore(FKj().content.cloneNode(!0),sW1.content.firstChild);qRx=sW1}JLv=qRx;ujJ.call(t7r,JLv.content);var gLf=document.head,l5C=gLf.appendChild,XpL;if(jSf===void 0){var YRv=document.createElement("template");_.G(YRv,"\x3c!--css-build:shady--\x3e");YRv.content.insertBefore(aGw().content.cloneNode(!0),YRv.content.firstChild);jSf=YRv}XpL=jSf;l5C.call(gLf,XpL.content);var ppr=document.head,QWd=ppr.appendChild,eWv;if(Lbv===void 0){var ZoL=document.createElement("template");_.G(ZoL,"\x3c!--css-build:shady--\x3e");ZoL.content.insertBefore(B91().content.cloneNode(!0),ZoL.content.firstChild);Lbv=ZoL}eWv=Lbv;QWd.call(ppr,eWv.content);var RWx;_.mo("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");RWx=_.E("web_button_rework")&&_.yG("BUTTON_REWORK")||_.E("web_button_rework_with_live");_.hB=function(){return _.x.apply(this,arguments)||this};
_.M(_.hB,_.x);_.hB.prototype.created=function(){this.openPopupConfig=_.bn("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.hB.prototype.onYtNavigate_=function(F){var q=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(F.detail.endpoint);q&&(this.ytOpenPopupBehavior.openPopup(q),F.stopPropagation(),F.preventDefault())};
_.JJ.Object.defineProperties(_.hB,{template:{configurable:!0,enumerable:!0,get:function(){if(hHr===void 0){var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
var q=F.content,t=q.insertBefore;S0v===void 0&&(S0v=document.createElement("template"));var u=S0v;t.call(q,u.content.cloneNode(!0),F.content.firstChild);hHr=F}F=hHr;return F}}});
_.hB.prototype.onYtNavigate_=_.hB.prototype.onYtNavigate_;_.C([_.D(_.HP.YtOpenPopupBehavior),_.V("design:type",Object)],_.hB.prototype,"ytOpenPopupBehavior",void 0);_.C([_.D(_.Urv.YtButtonBehavior),_.V("design:type",Object)],_.hB.prototype,"ytButtonBehavior",void 0);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],_.hB.prototype,"onYtNavigate_",null);
_.C([_.Vu({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:RWx})],_.hB);var rLv;var NWL=_.E("web_button_rework")&&_.yG("BUTTON_REWORK")||_.E("web_button_rework_with_live"),KA=function(){var F=_.x.apply(this,arguments)||this;F.isPressed=!1;F.forceIconButton=!1;F.forceIconOnly=!1;F.forceModernIconButton=!1;F.skipCommandHandling=!1;F.alignByText=!1;F.fitToVisibleBounds=!0;F.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};F.onTap=function(q){_.Q0(F.hostElement,"yt-service-request-sent-button-renderer",q)};
return F};
_.M(KA,_.x);_.l=KA.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.l.onClick=function(F){var q,t=this.disabled||((q=this.data)==null?void 0:q.isDisabled);q=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");t&&q&&F.stopPropagation()};
_.l.computeIcon=function(){var F,q,t=(F=this.data)==null?void 0:(q=F.icon)==null?void 0:q.iconType;if(t)return _.Ek(t)};
_.l.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.l.handleUpdateButtonAction=function(F){F=_.n(F,Y5f);var q=_.n(F==null?void 0:F.updatedButton,_.th);if(this.data&&F&&q){var t=this.data;t.targetId&&F.targetId&&t.targetId===F.targetId&&(this.data=q)}};
_.JJ.Object.defineProperties(KA.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var F=this;if(this.data){var q=wuu({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Q0(F.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Q0(F.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});q.alignByText=this.alignByText;return q}}}});
_.JJ.Object.defineProperties(KA,{template:{configurable:!0,enumerable:!0,get:function(){if(rLv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');rLv=F}F=rLv;return F}}});
KA.prototype.onClick=KA.prototype.onClick;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],KA.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],KA.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],KA.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],KA.prototype,"isPressed",void 0);
_.C([_.O(),_.V("design:type",Object)],KA.prototype,"forceIconButton",void 0);_.C([_.O(),_.V("design:type",Object)],KA.prototype,"forceIconOnly",void 0);_.C([_.O(),_.V("design:type",Object)],KA.prototype,"forceModernIconButton",void 0);_.C([_.O(),_.V("design:type",Object)],KA.prototype,"skipCommandHandling",void 0);_.C([_.O(),_.V("design:type",Object)],KA.prototype,"alignByText",void 0);_.C([_.O(),_.V("design:type",Object)],KA.prototype,"buttonTooltipPosition",void 0);
_.C([_.O(),_.V("design:type",Object)],KA.prototype,"fitToVisibleBounds",void 0);_.C([_.O({computed:"computeTooltip(data)"}),_.V("design:type",Object)],KA.prototype,"tooltip",void 0);_.C([_.O(),_.V("design:type",Object)],KA.prototype,"overrides",void 0);_.C([_.O(),_.V("design:type",Boolean)],KA.prototype,"disabled",void 0);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],KA.prototype,"onClick",null);
_.C([_.W("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.V("design:type",Object),_.V("design:paramtypes",[])],KA.prototype,"computedButtonShape",null);_.C([_.Vu({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!NWL,cssBuildOptOut:!0}),_.Vu({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!NWL,cssBuildOptOut:!0})],KA);var wpw;var iod;var BP=function(){var F=_.x.apply(this,arguments)||this;F.empty_=!0;F.loadTime=Infinity;F.pendingPaint=!1;F.hasChange_=!1;F.oldThumbnail_=null;F.oldDelayedSrc_="";F.objectURL_=null;return F};
_.M(BP,_.x);_.l=BP.prototype;_.l.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.l.ready=function(){var F=this.shouldShowPlaceholder_();_.RE(this.hostElement,"no-transition",!0);F&&this.hostElement.classList.add("with-placeholder")};
_.l.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.l.isThumbPreloaded_=function(F){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",F)};
_.l.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||kox};
_.l.computeThumbnailSrc_=function(F){return F&&F.thumbnails?_.ZR(F.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.l.computeAlt_=function(){var F=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&F||""};
_.l.thumbnailChanged_=function(){var F=_.X([this.thumbnail,this.oldThumbnail_]),q=F.next().value;F=F.next().value;this.oldThumbnail_=q;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(F=this.computeThumbnailSrc_(F),this.computeThumbnailSrc_(q)===F))return;_.E("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(q)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):q&&_.yG("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.tJ(this,this.onReload_):_.tJ(this,this.onShow_):this.resetImage_();q&&(this.hostElement.style.opacity=""+q.opacity)}};
_.l.delayedSrcChanged_=function(){var F=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===F||this.resetImage_()};
_.l.setSrc_=function(F){F?(_.ep(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.ep(this.hostElement).querySelector("#img").src=F):(_.ep(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.l.resetImage_=function(){nLo(this.hostElement);this.empty_=!0;this.setSrc_(kox);this.ytRendererBehavior.invalidate(!1)};
_.l.observePlaceholderColor_=function(){var F=this.thumbnail&&this.thumbnail.placeholderColor;F?this.hostElement.style.backgroundColor=_.hn(F):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.l.onLoad_=function(){_.ep(this.hostElement).querySelector("#img").src&&_.ep(this.hostElement).querySelector("#img").src!==kox&&(oL_(this.hostElement),this.notifyOnLoaded&&_.Q0(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.l.onError_=function(){var F=this;if(_.E("web_use_cache_for_image_fallback"))Py_(_.ep(this.hostElement).querySelector("#img").src).then(function(q){F.objectURL_=_.Vy(q).toString();F.setSrc_(F.objectURL_)}).catch(function(){_.E("kevlar_woffle_fallback_image")&&F.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.l.onPrescanVisible=function(){this.onShow_()};
_.l.onVisible=function(){if(_.E("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.l.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var F=this.computeSrc_();F!==_.ep(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(F))}};
_.l.onReload_=function(){this.empty_=!1;var F=this.computeSrc_();F!==_.ep(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(F))};
_.l.shouldShowPlaceholder_=function(){return _.E("kevlar_thumbnail_bg")};
BP.prototype.observePlaceholderColor_=BP.prototype.observePlaceholderColor_;BP.prototype.delayedSrcChanged_=BP.prototype.delayedSrcChanged_;BP.prototype.thumbnailChanged_=BP.prototype.thumbnailChanged_;_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],BP.prototype,"alt",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],BP.prototype,"ariaHidden",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],BP.prototype,"ariaLabel",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],BP.prototype,"hidden",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],BP.prototype,"id",void 0);_.C([_.D(_.QP.YtVisibilityBehavior),_.V("design:type",Object)],BP.prototype,"ytVisibilityBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",String)],BP.prototype,"delayedSrc",void 0);
_.C([_.O(),_.V("design:type",Object)],BP.prototype,"thumbnail",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],BP.prototype,"loaded",void 0);_.C([_.O(),_.V("design:type",Boolean)],BP.prototype,"notifyOnLoaded",void 0);_.C([_.O(),_.V("design:type",Number)],BP.prototype,"height",void 0);_.C([_.O(),_.V("design:type",Number)],BP.prototype,"width",void 0);_.C([_.O({value:function(){return"width"}}),
_.V("design:type",String)],BP.prototype,"dimension",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],BP.prototype,"fit",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],BP.prototype,"fitHeight",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],BP.prototype,"fitWidth",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],BP.prototype,"objectFit",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],BP.prototype,"objectPosition",void 0);_.C([_.O(),_.V("design:type",String)],BP.prototype,"preferredThumbnail",void 0);_.C([_.O({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.V("design:type",String)],BP.prototype,"alt_",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],BP.prototype,"sharedTooltipText",void 0);
_.C([_.O(),_.V("design:type",Boolean)],BP.prototype,"ftlEligible",void 0);_.C([_.O({value:void 0}),_.V("design:type",String)],BP.prototype,"observeHiddenOption",void 0);_.C([_.O({value:"observe_once"}),_.V("design:type",String)],BP.prototype,"observePrescanOption",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],BP.prototype,"roundedContainer",void 0);
_.C([_.Wh("thumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BP.prototype,"thumbnailChanged_",null);_.C([_.Wh("delayedSrc"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BP.prototype,"delayedSrcChanged_",null);_.C([_.za("thumbnail.placeholderColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BP.prototype,"observePlaceholderColor_",null);
_.C([_.Vu({is:"yt-img-shadow",disableElementRegistration:!0})],BP);var kox=_.yG("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.rc()(BP,"yt-img-shadow",function(){if(iod===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;wpw===void 0&&(wpw=document.createElement("template"));var u=wpw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);iod=F}F=iod;return F},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var hxM;_.LA=new _.pg("SCREEN_MANAGER_TOKEN");hxM=new _.pg("LOG_INITIAL_SCREEN_TOKEN");var ELL=kR$({entities:{}});var zWw=zjv(ELL)(ELL.entities,{selectSfvAudioItemPlaybackState:function(F,q){var t,u;F=(u=_.iC(F,"sfvAudioItemCurrentlyPlayingEntity",q))!=null?u:void 0;return(t=F==null?void 0:F.sfvAudioItemPlaybackState)!=null?t:void 0},
playlistLoopStateEntitySelector:function(F,q){var t;return(t=_.iC(F,"playlistLoopStateEntity",q))!=null?t:void 0}});_.j9=_.ld(function(F){function q(c){return _.n(c,_.gX)}
function t(){var c=u().isTogglingDisabled||P()&&u().toggledIsTogglingDisabled,rf=c||k()?P():!P();v(rf);d(!1);if(!c){var Zv;(Zv=Y)==null||Zv(!!rf)}var kP;((kP=g)==null?0:kP())||_.vQ(_.sV().resolve(_.LA),u().trackingParams);var n3;if(!rf||!q(u().defaultButtonViewModel)||(n3=g)!=null&&n3()){var o_;!q(u().toggledButtonViewModel)||((o_=g)==null?0:o_())||_.vQ(_.sV().resolve(_.LA),q(u().toggledButtonViewModel).trackingParams)}else _.vQ(_.sV().resolve(_.LA),q(u().defaultButtonViewModel).trackingParams)}
var u=F.data,J=F.buttonShapeOverrides,g=F.disableExplicitClickLogging,Y=F.onToggle,Q=F.style,e=F.useOutlinedIcon,r=F.className,N=function(){var c,rf;return P()?(c=F.animatedTextPropsToggled)==null?void 0:c.call(F):(rf=F.animatedTextPropsDefault)==null?void 0:rf.call(F)},w=_.zy(function(){return N()?Object.assign({},N(),{shouldAnimate:H()}):void 0},void 0,"Zp4uoe"),k=function(){var c;
return((c=K())==null?void 0:c.isToggled)!==void 0},z=_.X(_.np(function(){var c,rf,Zv;
return k()?(c=K())==null?void 0:c.isToggled:(Zv=J==null?void 0:(rf=J())==null?void 0:rf.toggled)!=null?Zv:u().isToggled})),T=z.next().value;
z=z.next().value;var P=T,v=z;z=_.X(_.np(function(){var c,rf;return(c=F.animatedTextPropsToggled)==null?void 0:(rf=c.call(F))==null?void 0:rf.shouldAnimate}));
T=z.next().value;z=z.next().value;var H=T,d=z;T=_.X(_.N3(!1,void 0,"mq3Zfe"));var a=T.next().value,S=T.next().value,K=_.dC(function(c){a:{var rf=u().entityKey,Zv=u().toggledStateEntitySelectorType;if(Zv)switch(Zv){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!rf)break;c=zWw.selectSfvAudioItemPlaybackState(c,rf);if(c==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){c={isToggled:!0};break a}if(c){c={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":c={isToggled:_.n0u(c).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":c={isToggled:_.n0u(c).includes("engagement-panel-live-chat-item-section")};break a;default:_.bz(new _.D0("Error: entitySelectorType defined but not matched in selector.",c,Zv))}c=void 0}return c}),h=function(){return Object.assign({},J==null?void 0:J(),{onToggle:t,
toggleable:!0,toggled:P(),focused:a()})};
return _.Z("toggle-button-view-model",{"on:focusin":_.zq(function(){var c=_.sV().resolve(_.JU(_.GD));c&&S(c.isKeyBoardInUse());return!1}),
"on:focusout":_.zq(function(){S(!1);return!1})},_.Z(_.R,{cond:function(){return P()?q(u().toggledButtonViewModel):q(u().defaultButtonViewModel)},
then:function(c){return _.Z(_.AB,{data:c,className:r,style:Q,useOutlinedIcon:e,buttonOverrides:h,animatedTextProps:w})}}))},"E");
_.j9.idomCompat={callbacks:{onToggle:!0}};_.ei(_.ld(function(F){return _.Z("yt-toggle-button-view-model",{class:function(){var q;return(q=F.scopingClassName)==null?void 0:q.call(F)}},_.Z(_.j9,{data:function(){var q;
return(q=F.data)==null?void 0:q.call(F)},
buttonShapeOverrides:function(){var q;return(q=F.overrides)==null?void 0:q.call(F)},
animatedTextPropsDefault:function(){var q;return(q=F.animatedTextPropsDefault)==null?void 0:q.call(F)},
animatedTextPropsToggled:function(){var q;return(q=F.animatedTextPropsToggled)==null?void 0:q.call(F)},
disableExplicitClickLogging:function(){var q;return(q=F.disableExplicitClickLogging)==null?void 0:q.call(F)},
onToggle:function(q){var t;return(t=F.onToggle)==null?void 0:t.call(F,q)},
style:function(){var q;return(q=F.style)==null?void 0:q.call(F)},
useOutlinedIcon:function(){var q;return(q=F.useOutlinedIcon)==null?void 0:q.call(F)},
className:function(){var q;return(q=F.className)==null?void 0:q.call(F)}}))},"F"),"yt-toggle-button-view-model",{props:{data:_.NH,
buttonShapeOverrides:_.NH,overrides:_.NH,animatedTextPropsDefault:_.NH,animatedTextPropsToggled:_.NH,disableExplicitClickLogging:_.NH,onToggle:_.pp,style:_.NH,useOutlinedIcon:_.NH,className:_.NH,scopingClassName:_.NH}});var cP=function(){return _.x.apply(this,arguments)||this};
_.M(cP,_.x);cP.prototype.onTap=function(F){F.stopPropagation();F=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.I4("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:F})):this.ytLiveChatReduxBehavior.dispatch(_.Gl("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:F}))};
_.JJ.Object.defineProperties(cP.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.engagementState)==null?void 0:F.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F=_.n(this.data.toggleButton,_.XZ),q;if(Number(((q=this.likeCountState)==null?void 0:q.likeCountIfIndifferentNumber)||"0")===0){var t;q=((t=this.data.likeCountPlaceholder)==null?void 0:t.content)||""}else{var u,J,g;q=((u=this.likeCountState)==null?void 0:(J=u.likeCountIfIndifferent)==null?void 0:J.content)||((g=this.data.likeCountPlaceholder)==null?void 0:g.content)||""}var Y,Q;t=((Y=this.likeCountState)==null?void 0:(Q=
Y.likeCountIfLiked)==null?void 0:Q.content)||"1";Y=_.n(F.toggledButtonViewModel,_.gX);return Object.assign({},F,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.n(F.defaultButtonViewModel,_.gX),{title:q})},toggledButtonViewModel:{buttonViewModel:Object.assign({},Y,{title:t})}})}}}});
cP.prototype.onTap=cP.prototype.onTap;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],cP.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.gv),_.V("design:type",Object)],cP.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],cP.prototype,"data",void 0);
_.C([_.O({selectorArgs:["data.likeCountEntityKey"],selector:Mwq}),_.V("design:type",Object)],cP.prototype,"likeCountState",void 0);_.C([_.O({selectorArgs:["data.engagementStateKey"],selector:G7W}),_.V("design:type",Object)],cP.prototype,"engagementState",void 0);_.C([_.W("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],cP.prototype,"isLiked",null);
_.C([_.W("data","likeCountState","isLiked"),_.V("design:type",Object),_.V("design:paramtypes",[])],cP.prototype,"toggleButton",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],cP.prototype,"onTap",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],cP);
_.b(cP,"yt-live-chat-like-button-view-model",function(){if(nJE===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;oJC===void 0&&(oJC=document.createElement("template"));var u=oJC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);nJE=F}F=nJE;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var oLj;var nLE;var FX=function(){return _.x.apply(this,arguments)||this};
_.M(FX,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],FX.prototype,"data",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],FX);
_.b(FX,"yt-live-chat-paid-message-footer-renderer",function(){if(nLE===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;oLj===void 0&&(oLj=document.createElement("template"));var u=oLj;t.call(q,u.content.cloneNode(!0),F.content.firstChild);nLE=F}F=nLE;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var M7e;var TWO;var God;var De1,WKv=function(){if(De1!==void 0)return De1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;God===void 0&&(God=document.createElement("template"));var u=God;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return De1=F};var qT=function(){return _.x.apply(this,arguments)||this};
_.M(qT,_.x);qT.prototype.onTap=function(F){F.stopPropagation()};
_.JJ.Object.defineProperties(qT.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F=_.n(this.data.replyButton,_.gX),q,t,u,J,g,Y,Q,e=Number(((q=this.replyCountState)==null?void 0:q.replyCountNumber)||"0")===0?(t=this.data)==null?void 0:(u=t.replyCountPlaceholder)==null?void 0:u.content:((J=this.replyCountState)==null?void 0:(g=J.replyCount)==null?void 0:g.content)||((Y=this.data)==null?void 0:(Q=Y.replyCountPlaceholder)==null?void 0:Q.content)||"",r;return Object.assign({},
F,{title:e,accessibilityText:(r=this.replyCountState)==null?void 0:r.replyButtonAccessibilityText})}}}});
_.JJ.Object.defineProperties(qT,{template:{configurable:!0,enumerable:!0,get:function(){return WKv()}}});
qT.prototype.onTap=qT.prototype.onTap;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],qT.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.gv),_.V("design:type",Object)],qT.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],qT.prototype,"data",void 0);
_.C([_.O({selectorArgs:["data.replyCountEntityKey"],selector:function(F,q){return _.iC(F.entities,"replyCountEntity",q)}}),
_.V("design:type",Object)],qT.prototype,"replyCountState",void 0);_.C([_.W("data","replyCountState"),_.V("design:type",Object),_.V("design:paramtypes",[])],qT.prototype,"buttonViewModel",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],qT.prototype,"onTap",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],qT);
_.b(qT,"yt-live-chat-reply-button-view-model",function(){return WKv()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Ooj;var Pyj;var tt=function(){var F=_.x.apply(this,arguments)||this;F.ariaLabel="";return F};
_.M(tt,_.x);
tt.prototype.dataChanged=function(){for(var F=(0,_.Ns)(_.ep(this.hostElement).querySelector("#image"));F.firstChild;)F.removeChild(F.firstChild);if(this.data)if(this.data.icon){var q=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(q.polymerController.icon="yt-sys-icons:shield-filled",q.polymerController.defaultToFilled=!0):q.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();F.appendChild(q)}else if(this.data.customThumbnail){q=document.createElement("img");
var t=_.rLM(this.data.customThumbnail.thumbnails,16);t?(q.src=t,F.appendChild(q),q.setAttribute("alt",this.hostElement.ariaLabel||"")):_.bz(new _.D0("Could not compute URL for thumbnail",this.data.customThumbnail))}};
tt.prototype.identity=function(F){return F};
tt.prototype.computeType=function(F){return wc(F||void 0)};
tt.prototype.dataChanged=tt.prototype.dataChanged;_.C([_.O(),_.V("design:type",Object)],tt.prototype,"data",void 0);_.C([_.O({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.V("design:type",Object)],tt.prototype,"ariaLabel",void 0);_.C([_.O({computed:"computeType(data)",reflectToAttribute:!0}),_.V("design:type",String)],tt.prototype,"type",void 0);
_.C([_.O({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.V("design:type",String)],tt.prototype,"sharedTooltipText",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("live_chat_enable_new_moderator_badge")}}),
_.V("design:type",Boolean)],tt.prototype,"enableNewModeratorBadge",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tt.prototype,"dataChanged",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],tt);
_.b(tt,"yt-live-chat-author-badge-renderer",function(){if(Pyj===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Ooj===void 0&&(Ooj=document.createElement("template"));var u=Ooj;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Pyj=F}F=Pyj;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var xex;var ALj;var uY=function(){return _.x.apply(this,arguments)||this};
_.M(uY,_.x);_.l=uY.prototype;_.l.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"}}}}};
_.l.computeBadgesInsideChip=function(F){return F?F.filter(function(q){return wc(q.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.l.computeBadgesOutsideChip=function(F){return this.prependChatBadges||!F?[]:F.filter(function(q){q=wc(q.liveChatAuthorBadgeRenderer);return q!=="verified"&&q!=="owner"})};
_.l.computeBadgesBeforeChip=function(F){return this.prependChatBadges&&F?F.filter(function(q){q=wc(q.liveChatAuthorBadgeRenderer);return q!=="verified"&&q!=="owner"}):[]};
_.l.computeIsHighlighted=function(F,q){var t=!!Ae3(F,"owner"),u=!!Ae3(F,"verified");F=!!Ae3(F,"moderator");return(t||u&&!F)&&!q};
_.l.computeAuthorType=function(F){return xuA(F)};
_.l.computeAuthorClass=function(F,q){return q?(F?F+" ":"")+"single-line":F};
_.l.onSeedColorChanged=function(){_.E("live_chat_author_name_color_usernames")||_.E("live_chat_seed_color_usernames")||_.E("live_chat_colored_usernames")?!this.authorNameColor||this.authorType||this.isHighlighted||this.hostElement.classList.contains("yt-live-chat-paid-message-renderer")||this.hostElement.classList.contains("yt-live-chat-paid-sticker-renderer")||(this.username.style.color=this.authorNameColor):_.E("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
uY.prototype.onSeedColorChanged=uY.prototype.onSeedColorChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],uY.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],uY.prototype,"authorName",void 0);_.C([_.O(),_.V("design:type",Array)],uY.prototype,"authorBadges",void 0);
_.C([_.O({computed:"computeAuthorType(authorBadges)"}),_.V("design:type",String)],uY.prototype,"authorType",void 0);_.C([_.O({computed:"computeAuthorClass(authorType, singleLine)"}),_.V("design:type",String)],uY.prototype,"authorClass",void 0);_.C([_.O({computed:"computeBadgesInsideChip(authorBadges)"}),_.V("design:type",Array)],uY.prototype,"badgesInsideChip",void 0);_.C([_.O({computed:"computeBadgesOutsideChip(authorBadges)"}),_.V("design:type",Array)],uY.prototype,"badgesOutsideChip",void 0);
_.C([_.O({computed:"computeBadgesBeforeChip(authorBadges)"}),_.V("design:type",Array)],uY.prototype,"badgesBeforeChip",void 0);_.C([_.O({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.V("design:type",Boolean)],uY.prototype,"isHighlighted",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],uY.prototype,"singleLine",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],uY.prototype,"disableHighlighting",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],uY.prototype,"dashboardMoneyFeed",void 0);_.C([_.O({value:_.E("live_chat_prepend_badges"),reflectToAttribute:!0}),_.V("design:type",Boolean)],uY.prototype,"prependChatBadges",void 0);_.C([_.O(),_.V("design:type",String)],uY.prototype,"authorNameColor",void 0);_.C([_.Ms("#author-name"),_.V("design:type",HTMLDivElement)],uY.prototype,"username",void 0);
_.C([_.za("authorNameColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uY.prototype,"onSeedColorChanged",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],uY);
_.b(uY,"yt-live-chat-author-chip",function(){if(ALj===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;xex===void 0&&(xex=document.createElement("template"));var u=xex;t.call(q,u.content.cloneNode(!0),F.content.firstChild);ALj=F}F=ALj;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var vLr;var I5O;var Jt=function(){var F=_.x.apply(this,arguments)||this;F.debounceCommand=_.ON(function(q){F.ytComponentBehavior.resolveCommand(q)},1500);
return F};
_.M(Jt,_.x);Jt.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var F=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",q,t,u=this.isHearted?(q=this.data)==null?void 0:q.unheartCommand:(t=this.data)==null?void 0:t.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.I4("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:F}));(F=_.Sg(u))&&this.debounceCommand(F)}};
_.JJ.Object.defineProperties(Jt.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var F,q;if(!((F=this.data)==null?0:(q=F.creatorThumbnail)==null?0:q.sources))return{};F={thumbnails:[]};q={};q.url=this.data.creatorThumbnail.sources[0].url;F.thumbnails.push(q);return F}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((t=this.engagementState)==null?void 0:t.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}}});
Jt.prototype.onTap=Jt.prototype.onTap;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Jt.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.gv),_.V("design:type",Object)],Jt.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Jt.prototype,"data",void 0);
_.C([_.O({selectorArgs:["data.engagementStateKey"],selector:G7W}),_.V("design:type",Object)],Jt.prototype,"engagementState",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Jt.prototype,"thumbnailDetails",null);_.C([_.W("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Jt.prototype,"isHearted",null);_.C([_.W("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Jt.prototype,"isEditable",null);
_.C([_.W("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Jt.prototype,"showCreatorView",null);_.C([_.W("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Jt.prototype,"showButton",null);_.C([_.W("data","isHearted"),_.V("design:type",String),_.V("design:paramtypes",[])],Jt.prototype,"label",null);_.C([_.W("data","isHearted"),_.V("design:type",Object),_.V("design:paramtypes",[])],Jt.prototype,"heartHoverText",null);
_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jt.prototype,"onTap",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Jt);
_.b(Jt,"yt-live-chat-creator-heart-view-model",function(){if(I5O===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;vLr===void 0&&(vLr=document.createElement("template"));var u=vLr;t.call(q,u.content.cloneNode(!0),F.content.firstChild);I5O=F}F=I5O;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var sn=function(){};
_.M(sn,xQ);sn.prototype.JSC$13096_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:jd("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
sn.prototype.getApiPaths=function(){return[]};
sn.prototype.getExtension=function(){};
sn.prototype.JSC$13096_buildRequest=function(){};var Hor={},meC=(Hor.GET_DATASYNC_IDS=xh(sn),Hor);var $eC,boL,yLw,xBL,gt,V7r,$BE,deJ,Cyf;$eC="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");boL=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Lp=function(F,q,t,u,J,g,Y,Q,e){this.endpointMap=F;this.networkManager=q;this.authService=t;this.responseProcessorMap=u;this.innertubeResponseStore=J;this.contextProcessors=g;this.asyncContextProcessors=Y;this.localInnertubeRouter=Q;this.requestSequencer=e;this.inflightRequests=new Map;F.signalEndpointMap||(F.signalEndpointMap={});F.signalEndpointMap=Object.assign({},meC,F.signalEndpointMap)};
yLw=function(F,q,t,u,J,g,Y,Q,e){if(_.Lp.instance!==void 0){if(u=_.Lp.instance,F=[F!==u.endpointMap,q!==u.networkManager,t!==u.authService,J!==u.innertubeResponseStore,g!==u.contextProcessors,Y!==u.asyncContextProcessors,Q!==u.localInnertubeRouter],F.some(function(r){return r}))throw new _.D0("InnerTubeTransportService is already initialized",F);
}else _.Lp.instance=new _.Lp(F,q,t,u,J,g,Y,Q,e)};
_.aI=function(F,q,t){var u=u===void 0?s0x:u;var J=$BE(F,q);return J?new _.iz(function(g,Y){var Q,e,r,N,w;return _.p(function(k){switch(k.nextAddress){case 1:return k.yield(J,2);case 2:Q=k.yieldResult;e=Q.JSC$13096_getRequest(q,t,u);if(!e){Y(new _.D0("Error: Failed to build request for command.",q));k.jumpTo(0);break}fG(e.input);N=((r=e.requestShell)==null?void 0:r.mode)==="cors"?"cors":void 0;if(F.authService.syncHeaders){w=Cyf(e.config,N);k.jumpTo(4);break}return k.yield(deJ(e.config,N),5);case 5:w=
k.yieldResult;case 4:g(V7r(F,e,w)),_.WA(k)}})}):_.mW(new _.D0("Error: No request builder found for command.",q))};
xBL=function(F,q,t,u){var J=J===void 0?s0x:J;var g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S,K,h;return _.p(function(c){switch(c.nextAddress){case 1:g=GR_(q,F.endpointMap);if(!g)throw new _.D0("Error: No streaming request builder found for command",q);Y=g.JSC$13096_getRequest(q,t,J);if(!Y)throw new _.D0("Failed to build YtRequest for streaming Command",q);if((Q=F.localInnertubeRouter)==null||!Q.shouldPreferLocalResponse(Y.input,Y.innerTubeRequest)){c.jumpTo(2);break}return c.yield(F.localInnertubeRouter.localInnertubeResponse(Y.input,
Y.innerTubeRequest),3);case 3:return e=c.yieldResult,r={},e.playerResponse&&(gt(F,e.playerResponse,Y),r.player=e.playerResponse,(N=u)==null||N(r,e)),e.watchNextResponse&&(gt(F,e.watchNextResponse,Y),r.content=e.watchNextResponse,(w=u)==null||w(r,e)),c.return(r);case 2:z=((k=Y.requestShell)==null?void 0:k.mode)==="cors"?"cors":void 0;if(F.authService.syncHeaders){T=Cyf(Y.config,z);c.jumpTo(4);break}return c.yield(deJ(Y.config,z),5);case 5:T=c.yieldResult;case 4:return H=(v=(P=Y.requestShell)==null?
void 0:P.headers)!=null?v:{},Y.requestShell=Object.assign({},Y.requestShell,{headers:Object.assign({},H,T)}),d=Object.assign({},Y.requestShell),a=JSON.stringify(Y.innerTubeRequest),Y.requestShell.method==="POST"&&(d=Object.assign({},d,{body:a})),S=function(rf,Zv){gt(F,Zv.playerResponse||Zv.watchNextResponse||Zv.reelItemWatchResponse||Zv.reelWatchSequenceResponse,Y);u==null||u(rf,Zv)},K={},c.yield(Uez(F.networkManager,Y.input,d,S),6);
case 6:return K=c.yieldResult,((h=Y.config)==null?0:h.responseTick)&&_.y0(Y.config.responseTick),c.return(K)}})};
_.uW=function(F,q,t,u,J){J=J===void 0?{authStrategy:{identity:s0x}}:J;var g=g===void 0?!0:g;var Y=function(){};
Y=Dky(Tzf(t));q.context||(q.context=_.Crt(u,g));return new _.iz(function(Q){var e,r,N,w,k;return _.p(function(z){if(z.nextAddress==1)return e=Rno(t),r=_.au(e),F.authService.syncHeaders?(N=Cyf(J,r),z.jumpTo(2)):z.yield(deJ(J,r),3);z.nextAddress!=2&&(N=z.yieldResult);w=rMv(Rno(t));k={input:w,requestShell:jd(w),innerTubeRequest:q,config:J};Q(V7r(F,k,N,Y));_.WA(z)})})};
gt=function(F,q,t){var u;if(q&&!(q==null?0:(u=q.sequenceMetaData)==null?0:u.skipProcessing)&&F.responseProcessorMap){u=_.X($eC);for(var J=u.next();!J.done;J=u.next())J=J.value,F.responseProcessorMap[J]&&F.responseProcessorMap[J].handleResponse(q,t)}};
V7r=function(F,q,t,u){u=u===void 0?function(){}:u;
var J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S,K,h,c,rf,Zv,kP,n3,o_,df,m$,gx,Hf,Zw,cy,wx,Rj,xO,DQ,fe,sM,FL,Ev,e5;return _.p(function(z1){switch(z1.nextAddress){case 1:Y=(J=q.config)==null?void 0:(g=J.storeStrategy)==null?void 0:g.storeKey;if(!(Y&&F.innertubeResponseStore&&F.innertubeResponseStore.has(Y))||((Q=q.config)==null?0:(e=Q.storeStrategy)==null?0:e.disableCache)){z1.jumpTo(2);break}return z1.yield(F.innertubeResponseStore.get(Y),3);case 3:if((r=z1.yieldResult)&&!r.isExpired())return z1.return(Promise.resolve(_.uZ(r)));
case 2:if(!((N=q)==null?0:(w=N.innerTubeRequest)==null?0:w.context)){z1.jumpTo(4);break}k=q.innerTubeRequest.context;if(!(F.asyncContextProcessors&&F.asyncContextProcessors.length>0)){z1.jumpTo(5);break}z=[];T=_.X(F.asyncContextProcessors);for(P=T.next();!P.done;P=T.next())v=P.value,H=v.processContext(q),H.wrappedPromise_&&z.push(H.wrappedPromise_);if(!(z.length>0)){z1.jumpTo(5);break}return z1.yield(Promise.all(z),5);case 5:d=_.X(F.contextProcessors||[]),a=d.next();case 8:if(a.done){z1.jumpTo(4);
break}S=a.value;return z1.yield(S.processContext(k),9);case 9:a=d.next();z1.jumpTo(8);break;case 4:if((K=F.localInnertubeRouter)==null||!K.shouldPreferLocalResponse(q.input,q.innerTubeRequest)){z1.jumpTo(12);break}return z1.yield(F.localInnertubeRouter.localInnertubeResponse(q.input,q.innerTubeRequest),13);case 13:return h=z1.yieldResult,gt(F,h,q),z1.return(h);case 12:return(Zv=(rf=q.config)==null?void 0:rf.requestKey)&&F.inflightRequests.has(Zv)?c=F.inflightRequests.get(Zv):(kP=JSON.stringify(q.innerTubeRequest),
df=(o_=(n3=q.requestShell)==null?void 0:n3.headers)!=null?o_:{},q.requestShell=Object.assign({},q.requestShell,{headers:Object.assign({},df,t)}),m$=Object.assign({},q.requestShell),q.requestShell.method==="POST"&&(m$=Object.assign({},m$,{body:kP})),((gx=q.config)==null?0:gx.requestTick)&&_.y0(q.config.requestTick),Hf=function(){return F.networkManager.fetch(q.input,m$,q.config)},c=F.requestSequencer?SRe(F.requestSequencer,q,Hf):Hf(),Zv&&F.inflightRequests.set(Zv,c)),z1.yield(c,14);
case 14:(Zw=z1.yieldResult)&&_.E("web_streaming_player")&&Array.isArray(Zw)&&(Zw=Zw[0].playerResponse);if(Zw&&"error"in Zw&&((cy=Zw)==null?0:(wx=cy.error)==null?0:wx.details))for(Rj=Zw.error.details,xO=_.X(Rj),DQ=xO.next();!DQ.done;DQ=xO.next())fe=DQ.value,(sM=fe["@type"])&&boL.indexOf(sM)>-1&&(delete fe["@type"],Zw=fe);Zv&&F.inflightRequests.has(Zv)&&F.inflightRequests.delete(Zv);((FL=q.config)==null?0:FL.responseTick)&&_.y0(q.config.responseTick);if(Zw||(Ev=F.localInnertubeRouter)==null||!Ev.canProvideFallbackResponse(q.input,
q.innerTubeRequest)){z1.jumpTo(15);break}return z1.yield(F.localInnertubeRouter.localFallbackInnertubeResponse(q.input,q.innerTubeRequest),16);case 16:Zw=z1.yieldResult;case 15:return gt(F,Zw,q),((e5=q.config)==null?0:e5.processorTick)&&_.y0(q.config.processorTick),u(),z1.return(Zw||void 0)}})};
_.fp=function(F,q){return TAv(q,F.endpointMap)};
$BE=function(F,q){F=DlW(q,F.endpointMap);if(F!==void 0)return Promise.resolve(F)};
deJ=function(F,q){var t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1){J=(t=F)==null?void 0:(u=t.authStrategy)==null?void 0:u.sessionIndex;var Q=Y.yield;var e=_.NU(P1u({sessionIndex:J}));return Q.call(Y,e,2)}g=Y.yieldResult;return Y.return(Promise.resolve(Object.assign({},WGo(q),g)))})};
Cyf=function(F,q){var t;F=F==null?void 0:(t=F.authStrategy)==null?void 0:t.sessionIndex;t=P1u({sessionIndex:F});return Object.assign({},WGo(q),t)};var hW1,KKe,BWz,LKC,f5J,a5x,FNJ,q3f,Yp,tyO,uUn,cLn,JmJ;hW1=0;KKe=/tone[1-5]/;BWz=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");LKC="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
f5J=Number.MAX_SAFE_INTEGER;a5x=RegExp("\ufe0f","g");_.lY=function(F){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;F&&_.jWr(this,F)};
_.jWr=function(F,q){try{_.iK(q,{context:F,onSuccess:function(u,J){Array.isArray(J)?F.load(J):(u=new _.D0("Emoji manager JSON response was not an array!",{response:J}),_.mH(u))},
onError:function(u){u=new _.D0("Failed to retrieve emoji manager initial JSON data!",{url:q,statusCode:_.Z0(u).toString()});_.bz(u)}})}catch(u){var t=new _.D0("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:q});
_.bz(t)}};
_.lY.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.lY.prototype.load=function(F,q){if(q)if(F.length)F=F.concat(q.emojis);else{this.emojis=q.emojis;this.emojiMap=q.emojiMap;this.emojiShortcutMap=q.emojiShortcutMap;this.emojiShortcutCharMap=cLn(q);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=q.emojiRegex;return}this.emojis=[].concat(_.mZ(new Set(this.emojis.concat(F))));this.hasInitializedShortcutCharMap=!1;F=Array(this.emojis.length);for(q=0;q<this.emojis.length;q++){var t=this.emojis[q];if(t.emojiId){this.emojiMap[t.emojiId]=t;this.emojiMap[t.emojiId].index=
q;for(var u=0;t.shortcuts&&u<t.shortcuts.length;u++)this.emojiShortcutMap[t.shortcuts[u].toLocaleLowerCase()]=t;F[q]=t.isCustomEmoji&&t.shortcuts?t.shortcuts[0]:t.emojiId}}F.sort(function(J,g){return g.length-J.length});
if(F.length)try{this.emojiRegex=new RegExp(F.join("|").replace("*","\\*"),"gi")}catch(J){this.emojiRegex=/$./}else this.emojiRegex=/$./};
FNJ=function(F,q){q=_.X(q);for(var t=q.next();!t.done;t=q.next()){var u=t.value;if(u.emojiId&&F.emojiMap[u.emojiId]){t=Object.assign({},F.emojiMap[u.emojiId],u);F.emojiMap[u.emojiId]=t;var J=void 0;t.index&&((J=F.emojis[t.index])==null?void 0:J.emojiId)===u.emojiId&&(F.emojis[t.index]=t);u=void 0;if((u=t.shortcuts)==null?0:u.length)for(F.hasInitializedShortcutCharMap=!1,u=_.X(t.shortcuts),J=u.next();!J.done;J=u.next())F.emojiShortcutMap[J.value.toLocaleLowerCase()]=t}}};
q3f=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return u.yield(_.KC.getInstance(),2);if(u.nextAddress!=3)return(q=u.yieldResult)?u.yield(q.get("ytlc-emoji-pref"),3):u.return();(t=u.yieldResult)&&FNJ(F,Object.keys(t).map(function(J){return{emojiId:J,stickyPrefId:t[J]}}).filter(function(J){return!!J.emojiId&&!!J.stickyPrefId}));
_.WA(u)})};
_.XX=function(F,q,t){return(F=F.emojiMap[q])&&(!F.isLocked||t!==void 0&&t)?F:void 0};
Yp=function(F,q,t){t=_.XX(F,q,t===void 0?!1:t);var u=q.match("\u200d");t&&F.skinTone!==0&&(F=(u==null?void 0:u.length)===1?_.XX(F,q.replace("\u200d",BWz[F.skinTone]+"\u200d")):_.XX(F,q+BWz[F.skinTone]))&&(t=F);return t};
tyO=function(F,q){var t=F.emojiMap[q];return(t==null?0:t.stickyPrefId)?F.emojiMap[t.stickyPrefId]:Yp(F,q)};
_.ZM=function(F,q){F=F.emojiShortcutMap[q.toLocaleLowerCase()];return!F||F.isLocked?null:F};
uUn=function(F,q,t){return cLn(F,t===void 0?!1:t)[q]||{}};
cLn=function(F,q){q=q===void 0?!1:q;if(!F.hasInitializedShortcutCharMap){F.hasInitializedShortcutCharMap=!0;for(var t=0;t<F.emojis.length;t++){var u=F.emojis[t];if(!(u.isLocked||q&&u.isCustomEmoji&&u.emojiId&&!F.pickerCustomEmojiIds.includes(u.emojiId)))for(var J=0;u.shortcuts&&J<u.shortcuts.length;J++){var g=u.shortcuts[J];g.startsWith(":_")&&u.isCustomEmoji&&(F.emojiShortcutCharMap[":_"]==null&&(F.emojiShortcutCharMap[":_"]=Object.create(null)),F.emojiShortcutCharMap[":_"][g]=u);if(!(g.length<3||
!u.isCustomEmoji&&KKe.test(g))){var Y=g.substr(0,3).toLocaleLowerCase();F.emojiShortcutCharMap[Y]==null&&(F.emojiShortcutCharMap[Y]=Object.create(null));F.emojiShortcutCharMap[Y][g]=u}}}}return F.emojiShortcutCharMap};
_.lY.prototype.createEmoji=function(F,q){q=q===void 0?!0:q;var t=document.createElement("img");F.isCustomEmoji||t.classList.add("small-emoji");t.classList.add("emoji");t.classList.add("yt-formatted-string");t.src=F.image?_.ZR(F.image.thumbnails,this.emojiSize)||"":"";var u=void 0;F.image&&F.image.accessibility&&F.image.accessibility.accessibilityData&&(u=F.image.accessibility.accessibilityData.label);t.alt=u?u:(F.isCustomEmoji&&F.shortcuts?F.shortcuts[0]:F.emojiId)||"";F.isCustomEmoji&&(t.dataset.emojiId=
F.emojiId);_.p4&&(t.setAttribute("contenteditable","false"),t.setAttribute("unselectable","on"));q&&(F.shortcuts&&F.shortcuts.length&&t.setAttribute("shared-tooltip-text",F.shortcuts[0]),t.id="emoji-"+hW1++);return t};
_.lY.prototype.createDocumentFragment=function(F,q,t,u){q=q===void 0?!1:q;t=t===void 0?!0:t;u=u===void 0?!1:u;F=F.replace(a5x,"");for(var J=document.createDocumentFragment(),g=0,Y,Q=0;(Y=this.emojiRegex.exec(F))!=null;){var e=_.XX(this,Y[0])||_.ZM(this,Y[0]);!e||e.isCustomEmoji&&!q||(e=this.createEmoji(e,t),g!==Y.index&&J.appendChild(document.createTextNode(F.substring(g,Y.index))),J.appendChild(e),g=Y.index+Y[0].length,Q++)}if(!u||Q)return J.appendChild(document.createTextNode(F.substr(g))),J};
JmJ=function(F,q,t){var u,J,g,Y,Q,e,r,N,w;return _.p(function(k){if(k.nextAddress==1){if(!q.emojiId||!F.emojiMap[q.emojiId])return k.return();u=Object.assign({},F.emojiMap[q.emojiId],{stickyPrefId:t});F.emojiMap[q.emojiId]=u;q.index&&((J=F.emojis[q.index])==null?void 0:J.emojiId)===q.emojiId&&(F.emojis[q.index]=u);if((g=q.shortcuts)==null?0:g.length)for(F.hasInitializedShortcutCharMap=!1,Y=_.X(q.shortcuts),Q=Y.next();!Q.done;Q=Y.next())e=Q.value,F.emojiShortcutMap[e.toLocaleLowerCase()]=u;return k.yield(_.KC.getInstance(),
2)}if(k.nextAddress!=4)return(r=k.yieldResult)?k.yield(r.get("ytlc-emoji-pref"),4):k.jumpTo(0);w=(N=k.yieldResult)!=null?N:{};w[q.emojiId]=t;return k.yield(r.set("ytlc-emoji-pref",w,f5J),0)})};
_.p7=new _.lY;var l$C;_.QA={};
l$C={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.E("web_context_menu_a11y_opacity_visibility"),reflectToAttribute:!0},timestampString:{type:String,computed:"computeTimestampString(data)"},popupPositionTarget:{type:Object,computed:"identity(menuButton)"},menuButton:Object,menuVisible:{type:Boolean,
computed:"computeMenuVisible_(menuOpen, menuFocused)",reflectToAttribute:!0},menuOpen:{type:Boolean,value:!1},menuFocused:{type:Boolean,value:!1},emojiManager:Object,participantsManager:Object,isDeleted:{type:Boolean,value:!1,computed:"truthy(data.deletedStateMessage)",reflectToAttribute:!0},hasOriginalContent:{type:Boolean,value:!1,computed:"truthy(data.showOriginalContentMessage)"},hasInlineActionButtons:{type:Boolean,computed:"computeHasInlineActionButtons(data)",reflectToAttribute:!0},modern:{type:Boolean,
reflectToAttribute:!0,value:_.E("web_button_rework_with_live")},filledButtonOverrides:{type:Object,value:{type:"filled",style:"overlay"}}},supportsInlineActionButtons:!1,listeners:{"yt-popup-opened":"onYtPopupOpened_","yt-popup-closed":"onYtPopupClosedOrCanceled_","yt-popup-canceled":"onYtPopupClosedOrCanceled_",tap:"onItemTap"},TIME_FORMATTER:new jz(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var F=_.ep(this.hostElement||this).querySelector("#inline-action-button-container");F&&F.setAttribute("aria-hidden","true");this.menuButton=_.ep(this.hostElement).querySelector("#menu-button")},
attached:function(){var F=this.menuButton;F&&(F.addEventListener("focusin",_.kM(this,this.onMenuButtonFocus_)),F.addEventListener("focusout",_.kM(this,this.onMenuButtonBlur_)))},
detached:function(){var F=this.menuButton;F&&(F.removeEventListener("focusin",_.kM(this,this.onMenuButtonFocus_)),F.removeEventListener("focusout",_.kM(this,this.onMenuButtonBlur_)))},
identity:_.I_,truthy:function(F){return!!F},
computeTimestampString:function(F){return F?F.timestampText?this.getSimpleString(F.timestampText):this.TIME_FORMATTER.format(new Date(F.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(F){return F},
computeMenuVisible_:function(F,q){return F||q},
computeHasInlineActionButtons:function(F){if(!F)return!1;var q,t;return!((q=F.inlineActionButtons)==null||!q.length)||!((t=F.additionalInlineActionButtons)==null||!t.length)},
createDocumentFragmentFromString:function(F){var q=_.p7.createDocumentFragment.bind(_.p7),t;if((t=this.participantsManager)==null||!t.viewerRegex)return q(F);t=document.createDocumentFragment();for(var u=0,J;(J=this.participantsManager.viewerRegex.exec(F))!=null;){if(J.index>0){var g=":"+J[0]+":";if((_.XX(_.p7,g)||_.ZM(_.p7,g))&&F.indexOf(g)===J.index-1)continue}t.appendChild(q(F.substring(u,J.index)));u=document.createElement("span");u.appendChild(q(J[0]));u.classList.add("mention");t.appendChild(u);
u=J.index+J[0].length}t.appendChild(q(F.substring(u)));return t},
createDocumentFragment:function(F){var q=document.createDocumentFragment();if(F.simpleText)return q.appendChild(this.createDocumentFragmentFromString(F.simpleText)),q;if(!F.runs)return q;for(var t=0;t<F.runs.length;t++){var u=F.runs[t];if(u.emoji)q.appendChild(_.p7.createEmoji(u.emoji));else if(u.text)if(u.navigationEndpoint){var J=document.createElement("a");J.classList.add("yt-simple-endpoint");LpC(J,u.navigationEndpoint);_.ep(J).appendChild(this.createDocumentFragmentFromString(u.text));q.appendChild(J)}else q.appendChild(this.createDocumentFragmentFromString(u.text))}return q},
hasModerationOverlayVisible:function(){var F;return((F=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:F.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(F){F.composedPath().some(function(q){return(q=q instanceof Element?q:null)?q.tagName&&(q.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||q.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.E("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(F)},
colorFromDecimal:function(F){return R8_(F)},
markAsDeleted:function(F,q){this.set("data.deletedStateMessage",F);this.set("data.showOriginalContentMessage",q)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(F){if(this.data.contextMenuEndpoint){var q=_.sV().resolve(_.CG),t=this.data.contextMenuEndpoint,u;(u=_.Lp.instance)&&_.fp(u,t)?(q=skv(q,t),u=_.uW(u,{},q)):u=_.gSv(q,t);u.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);F&&F.stopPropagation()}},
handleGetContextMenuResponse_:function(F){var q=_.Lp.instance;q&&_.fp(q,{liveChatEndpoint:{}})||(F=F.response);F.liveChatItemContextMenuSupportedRenderers&&F.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(F.liveChatItemContextMenuSupportedRenderers.menuRenderer);F.actions&&_.ec(this.hostElement,"yt-live-chat-actions",[F.actions])},
handleGetContextMenuError:function(F){if(F instanceof Error||F instanceof Object||F instanceof String)var q=F;_.mH(new _.D0("Error encountered calling GetLiveChatItemContextMenu",q))},
showContextMenu_:function(F){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:F}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Q0(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Q0(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.QA.YtLiveChatItemBehavior=[l$C,_.XV.YtComponentBehavior,_.HP.YtOpenPopupBehavior];_.eD=function(){};var X3r;var Y3j;var p3d;var Qk1;var ZB=function(){var F=_.x.apply(this,arguments)||this;F.active=!1;F.identity=_.I_;return F};
_.M(ZB,_.x);ZB.prototype.dataChanged=function(){this.active=!1};
ZB.prototype.onClick=function(){_.Q0(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
ZB.prototype.dataChanged=ZB.prototype.dataChanged;_.C([_.O(),_.V("design:type",Object)],ZB.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],ZB.prototype,"active",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZB.prototype,"dataChanged",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],ZB);
_.b(ZB,"yt-live-chat-text-input-field-suggestion",function(){if(Qk1===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;p3d===void 0&&(p3d=document.createElement("template"));var u=p3d;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Qk1=F}F=Qk1;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});_.RA=function(F,q,t){return CustomEvent.call(this,F,{detail:{value:q,path:t}})||this};
_.M(_.RA,CustomEvent);_.rt=function(){var F=_.x.apply(this,arguments)||this;F.viewerName=null;F.actionMap={"yt-live-chat-actions":"onChatMessage_"};F.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];F.PARTICIPANT_TIME_USEC_=3E8;return F};
_.M(_.rt,_.x);_.l=_.rt.prototype;_.l.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.l.addParticipant=function(F){var q=_.W$C(this.participants,F,function(u,J){u=u[Object.keys(u)[0]];J=J[Object.keys(J)[0]];u=String(_.q1(u.authorName)).toLowerCase();J=String(_.q1(J.authorName)).toLowerCase();return u<J?-1:u==J?0:1}.bind(this));
if(q>=0){var t=this.participants[q];t[Object.keys(t)[0]].timestampUsec&&this.splice("participants",q,1,F)}else this.splice("participants",-q-1,0,F);F=F[Object.keys(F)[0]];q=_.q1(F.authorName).toLocaleLowerCase();t=q.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(t)||(this.allParticipantsCharMap_[t]={});this.allParticipantsCharMap_[t][q]=F};
_.l.getAuthorsFromPrefix=function(F){return this.allParticipantsCharMap_.hasOwnProperty(F)?this.allParticipantsCharMap_[F]:null};
_.l.computeViewerRegex_=function(F){if(!F)return null;F=F.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var q=F.indexOf("@")===0&&_.E("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(q+F.replace(/ /g,"\\s*")+"|^"+F.replace(/ /g,"\\s*")+"$|^"+F.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+F.replace(/ /g,"\\s*")+"$|(?<=\\s)"+F.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.l.checkForStaleParticipants_=function(){var F=this;this.trimOldParticipants_();this.asyncHandle_&&Cs_(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.f1(function(){F.checkForStaleParticipants_()},3E4))};
_.l.onChatMessage_=function(F){var q=this,t=Date.now()*1E3;F.forEach(function(u){if(u=_.n(u,$gj)){u=u.item;var J=Object.keys(u)[0];q.SUPPORTED_ITEM_TYPES_.indexOf(J)!=-1&&u[J].timestampUsec>=t-q.PARTICIPANT_TIME_USEC_&&q.addParticipant(u)}},this);
this.checkForStaleParticipants_()};
_.l.trimOldParticipants_=function(){for(var F=Date.now()*1E3,q=this.participants.length-1;q>=0;q--){var t=this.participants[q];t=t[Object.keys(t)[0]];t.timestampUsec&&t.timestampUsec<F-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",q,1)}};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],_.rt.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],_.rt.prototype,"viewerName",void 0);_.C([_.O({computed:"computeViewerRegex_(viewerName)"}),_.V("design:type",Object)],_.rt.prototype,"viewerRegex",void 0);_.C([_.O({value:function(){return[]},
notify:!0}),_.V("design:type",Array)],_.rt.prototype,"participants",void 0);_.C([_.Vu({is:"yt-live-chat-participants-manager",noInjection:!0})],_.rt);var egw=/.*([:@#].*?)$/,NT=/\u00a0/g,Zax=String.fromCharCode(160),RgC={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"},wt=function(){var F=_.x.apply(this,arguments)||this;F.disabled=!1;F.liveChatRichMessageInput=null;F.messageInput=null;F.isValidWithNoInputText=!1;F.suggestions=[];F.emojiManager=_.p7;F.inputMethodEditorActive=
!1;F.suggestionIndex=-1;F.JSC$14101_lastSuggestionRange=null;return F};
_.M(wt,_.x);_.l=wt.prototype;_.l.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.l.attached=function(){_.QZ&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.l.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.l.dataChanged=function(){if(!this.ignoreColorMapping){var F=!1,q={},t;for(t in RgC)this.data&&this.data.hasOwnProperty(t)&&(q[RgC[t]]=this.colorFromDecimal(this.data[t]),F=!0);F&&_.ws(this.hostElement,q)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.l.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.l.colorFromDecimal=function(F){F=Math.floor(Number(F));return"rgba("+[F>>16&255,F>>8&255,F&255,(F>>24&255)/255].join()+")"};
_.l.preventDrag=function(F){F.dataTransfer&&(F.dataTransfer.dropEffect="none");F.preventDefault()};
_.l.preventResize=function(F){F.returnValue=!1};
_.l.onInputChange=function(){var F=this.characterCount,q=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&q&&q.remove();if(!q&&this.characterCount>this.maxCharacterLimit){var t=window.getSelection();if(t){var u=t.getRangeAt(0);t.removeAllRanges();t.addRange(u)}}if(t=this.getCurrentRange())u=this.calculateTextBeforeRange(t),this.completeEmojisInRange(t,u,!0)||this.updateSuggestions(t,u);u=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(u);
_.Q0(this.hostElement,"yt-live-chat-message-input-change",u);q&&this.characterCount===0&&q.remove();t&&t.commonAncestorContainer.parentElement.id==="input"&&t.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>F):t&&!t.collapsed&&t.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(F=this.input.childNodes.length-1;F>=0;F--)this.input.childNodes[F].nodeName==="BR"&&this.input.childNodes[F].remove()};
_.l.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.l.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var F=this.getCurrentRange();F&&F.commonAncestorContainer.parentElement.id==="input"&&F.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.l.mergeOverflowText=function(F){if(F){var q=document.createRange();q.selectNodeContents(F);q=q.extractContents();this.input.insertBefore(q,F)}};
_.l.checkRangeAtEndOfInput=function(){var F=this.getCurrentRange();if(F){var q=_.ep(this.hostElement).querySelector("#overflow-text"),t=document.createRange();q&&q.previousSibling?q.previousSibling instanceof HTMLImageElement?t.selectNode(q.previousSibling):t.selectNodeContents(q.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?t.selectNode(this.input.lastChild):t.selectNodeContents(this.input.lastChild));t.collapse(!1);return t.isPointInRange(F.startContainer,
F.startOffset)}return!1};
_.l.handleOverflowText=function(F){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var q=_.ep(this.hostElement).querySelector("#overflow-text"),t=this.getCurrentRange();this.input.normalize();F=this.checkRangeAtEndOfInput()&&F;this.mergeOverflowText(q);for(var u,J=0,g=0,Y,Q=this.input.childNodes,e=0;e<Q.length;e++){var r=Q[e];r instanceof Text?(g+=r.textContent.length,g>this.maxCharacterLimit&&(u=r,J=this.maxCharacterLimit+r.textContent.length-g)):r instanceof HTMLImageElement&&
(u=void 0,g=r.dataset.emojiId&&((u=this.data)==null?0:u.emojiCharacterCount)?g+this.data.emojiCharacterCount:g+r.alt.length,u=this.input,J=e);if(g>this.maxCharacterLimit&&u){Y=document.createRange();Y.collapse(!1);q?(g=this.input.lastChild.previousSibling,g instanceof Text?Y.setEnd(this.input.lastChild.previousSibling,g.textContent.length):g instanceof HTMLImageElement&&Y.setEnd(this.input,this.input.childNodes.length-1)):Y.selectNodeContents(this.input);Y.setStart(u,J);break}}Y&&(u=!1,t&&(F=Y.isPointInRange(t.startContainer,
t.startOffset-1)),q||(q=document.createElement("span"),q.id="overflow-text",q.textContent="",q.setAttribute("contenteditable","true"),_.ep(_.ep(this.hostElement).querySelector("#input")).appendChild(q),u=!0),q&&(t=Y.extractContents(),q.insertBefore(t,q.firstChild),F&&q.firstChild&&(t=document.createRange(),u?t.setStartAfter(q.lastChild):t.setStartAfter(q.firstChild),t.collapse(!0),q=window.getSelection(),q.removeAllRanges(),q.addRange(t))))}};
_.l.checkForDuplicateSpans=function(){for(var F=0;F<this.input.childNodes.length;F++){var q=this.input.childNodes[F];if(q.nodeName==="SPAN"){var t=document.createRange();t.selectNodeContents(q);t=t.extractContents();this.input.insertBefore(t,q);q.remove()}}this.handleOverflowText(!0)};
_.l.getCurrentRange=function(){var F=window.getSelection();return F&&F.rangeCount?F.getRangeAt(0).cloneRange():null};
_.l.getInputRange=function(){var F=this.getCurrentRange();if(F){for(var q=F.commonAncestorContainer,t=!1,u=_.ep(this.hostElement).querySelector("#input");q;){if(q===u){t=!0;break}q=q.parentNode}t||(F=null)}F||(F=this.getRangeAtEnd());return F};
_.l.getRangeAtEnd=function(){var F=document.createRange(),q=_.ep(this.hostElement).querySelector("#input").lastChild;!q||q.nodeName!=="#text"&&q.nodeName!=="SPAN"?(F.selectNodeContents(_.ep(this.hostElement).querySelector("#input")),F.collapse(!1)):q.nodeName==="#text"?F.setStart(q,q.textContent.length):F.setStart(q,q.childNodes.length);return F};
_.l.getChatParticipantSuggestions=function(F,q,t,u){var J=_.E("live_chat_enable_handles_web_text_input_update");if(q)for(var g in q)if(g.indexOf(F)===0||J&&g.indexOf(t+F)===0){var Y=q[g],Q=_.q1(Y.authorName);u.push({suggestion:{author:!0,authorType:t,image:Y.authorPhoto,alt:Q,text:Q}});if(u.length>=64)break}};
_.l.getSuggestions=function(F){var q=[],t=F.substring(0,3),u=uUn(_.p7,t,!0);if(u)for(var J in u)if(J.toLocaleLowerCase().indexOf(F)===0){var g=u[J];if(g&&g.emojiId){if(g=tyO(_.p7,g.emojiId)){var Y=void 0,Q=void 0,e=void 0,r=void 0,N=((Y=g.image)==null?0:(Q=Y.accessibility)==null?0:(e=Q.accessibilityData)==null?0:e.label)||g.isCustomEmoji?(r=g.shortcuts)==null?void 0:r[0]:g.emojiId;q.push({suggestion:{emoji:!0,image:g.image,alt:N,text:J,textToInsertWhenSelected:g.isCustomEmoji?J:N}})}if(q.length>=
64)break}}if(!this.participantsManager)return null;if(t.indexOf("@")===0||t.indexOf("#")===0)u=t.charAt(0),F=F.substring(1),J=_.E("live_chat_enable_handles_web_text_input_update"),t.indexOf("@")===0&&J&&(J=this.participantsManager.getAuthorsFromPrefix(t.substring(0,2)),this.getChatParticipantSuggestions(F,J,u,q)),t=t.substring(1),t=this.participantsManager.getAuthorsFromPrefix(t),this.getChatParticipantSuggestions(F,t,u,q);return q?q.sort(function(w,k){return k.suggestion.text<w.suggestion.text?-1:
k.suggestion.text===w.suggestion.text?0:1}):null};
_.l.insertSuggestion=function(F){var q=_.E("live_chat_enable_handles_web_text_input_update"),t=F.authorType;q=F.text.indexOf(t)===0&&q?F.text+Zax:t+F.text+Zax;F.emoji?this.insertTextAtRange(this.JSC$14101_lastSuggestionRange,F.textToInsertWhenSelected||""):F.author&&this.insertTextAtRange(this.JSC$14101_lastSuggestionRange,q)};
_.l.updateSuggestionsAtCaret=function(){var F=this.getCurrentRange();F&&this.updateSuggestions(F,this.calculateTextBeforeRange(F))};
_.l.offsetStartOfRangeBy=function(F,q){for(;q>0;)if(F.startOffset-q>=0){F.setStart(F.startContainer,F.startOffset-q);break}else{q=F.startContainer instanceof HTMLImageElement?q-F.startContainer.alt.length:q-F.startOffset;var t=F.startContainer.previousSibling;if(!t){F.setStart(F.startContainer,0);break}if(_.E("live_chat_require_space_for_autocomplete_emoji")){var u=void 0,J=void 0;F.setStart(t,((u=t)==null?void 0:(J=u.textContent)==null?void 0:J.length)||0)}else F.setStart(t,t.childNodes.length||
0)}};
_.l.updateSuggestions=function(F,q){var t=this;this.JSC$14101_lastSuggestionRange&&(this.JSC$14101_lastSuggestionRange.detach(),this.JSC$14101_lastSuggestionRange=null);if((q=egw.exec(q))&&q.length&&(q=q[q.length-1].toLocaleLowerCase(),q.length>2&&(this.offsetStartOfRangeBy(F,q.length),this.JSC$14101_lastSuggestionRange=F,(F=this.getSuggestions(q))&&F.length))){this.suggestions=F;_.tJ(this,function(){_.ep(t.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(F.length-1);return}this.dropdown.opened=!1};
_.l.completeEmojisInRange=function(F,q,t){var u=q.replace(/[\s\xa0]+$/,"");q=q.length-u.length;u=u.split(" ");u=u[u.length-1].trim().toLocaleLowerCase();var J=u.lastIndexOf(":");if(t&&!q&&J!==u.length-1)return!1;J!==-1&&(t=u.lastIndexOf(":",J-1),t!==-1&&(u=u.substring(t)));if((t=_.ZM(_.p7,u))&&t.emojiId){t=tyO(_.p7,t.emojiId)||null;this.offsetStartOfRangeBy(F,u.length+q);var g,Y,Q,e;u=(((g=t)==null?0:g.isCustomEmoji)?(Y=t)==null?void 0:(Q=Y.shortcuts)==null?void 0:Q[0]:(e=t)==null?void 0:e.emojiId)||
"";q&&(u+=Zax);this.insertTextAtRange(F,u);this.dropdown.opened=!1;return!0}return!1};
_.l.onSuggestion=function(F){this.insertSuggestion(F.detail);this.dropdown.opened=!1};
_.l.onKeyPress=function(F){F.keyCode===13&&(F.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Q0(this.hostElement,"yt-live-chat-send-message"))};
_.l.completeEmojis=function(){var F=document.createRange(),q=_.ep(this.hostElement).querySelector("#input").lastChild;q?F.setStart(q,q.childNodes.length):(F.selectNodeContents(_.ep(this.hostElement).querySelector("#input")),F.collapse(!1));this.completeEmojisInRange(F,this.calculateTextBeforeRange(F),_.E("live_chat_require_space_for_autocomplete_emoji"))};
_.l.maybePreventTextFormatting=function(F){!_.rd||!F.ctrlKey&&!F.metaKey||F.keyCode!==66&&F.keyCode!==73||(F.stopImmediatePropagation(),F.preventDefault())};
_.l.onKeyDown=function(F){this.maybePreventTextFormatting(F);if(this.dropdown.opened)switch(F.keyCode){case 27:this.dropdown.opened=!1;F.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;F.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);F.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),F.preventDefault()}};
_.l.onKeyUp=function(F){switch(F.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.p4)this.onInputChange()};
_.l.changeSuggestionIndex=function(F){if(this.dropdown.opened){var q=_.ep(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<q.children.length&&(q.children[this.suggestionIndex].active=!1);var t=this.suggestions.length;this.suggestionIndex=(F+t)%t;F=q.children[this.suggestionIndex];F.active=!0;q.scrollTop=F.offsetTop}};
_.l.onInputPaste=function(F){F.preventDefault();(F=F.clipboardData)&&F.types&&(F=F.getData("text/plain")||"",F=F.replace(/\n/g,""),this.insertText(F));(F=this.getCurrentRange())&&F.commonAncestorContainer.parentElement.id==="input"&&F.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.l.onFocus=function(){this._setFocused(!0)};
_.l.onBlur=function(){this._setFocused(!1)};
_.l.insertText=function(F){this.insertTextAtRange(this.getInputRange(),F)};
_.l.insertTextAtRange=function(F,q){if(F&&(F.collapsed||F.deleteContents(),q=_.p7.createDocumentFragment(q,!0,!1))){for(var t=_.X((q==null?void 0:q.childNodes)||[]),u=t.next();!u.done;u=t.next()){u=u.value;var J=void 0,g=void 0,Y=void 0,Q=void 0,e=void 0;(Y=(J=window)==null?void 0:(g=J.ShadyCSS)==null?void 0:g.ScopingShim)==null||(e=(Q=Y).scopeNode)==null||e.call(Q,u,this.hostElement.localName)}t=q.lastChild;F.insertNode(q);this.focused||this.input.focus();if(this.focused){F=F.cloneRange();F.selectNodeContents(t);
F.collapse(!1);if(q=window.getSelection())q.removeAllRanges(),q.addRange(F);F.commonAncestorContainer.parentElement.id==="input"&&F.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}F=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(F);_.Q0(this.hostElement,"yt-live-chat-message-input-change",F)}};
_.l.setLiveChatRichMessageInput=function(F){_.ep(_.ep(this.hostElement).querySelector("#input")).textContent="";if(F&&F.textSegments){for(var q=0;q<F.textSegments.length;q++){var t=F.textSegments[q];t.text?_.ep(_.ep(this.hostElement).querySelector("#input")).appendChild(_.p7.createDocumentFragment(t.text,!0,!1)):t.emojiId&&(t=_.XX(_.p7,t.emojiId))&&_.ep(_.ep(this.hostElement).querySelector("#input")).appendChild(_.p7.createEmoji(t,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.l.setText=function(F){this.setLiveChatRichMessageInput(F?{textSegments:[{text:F}]}:null)};
_.l.calculateTextBeforeRange=function(F){var q="",t=F.startContainer;if(t&&t instanceof Text){var u;q=((u=t.textContent)==null?void 0:u.substring(0,F.startOffset))||"";t=t.previousSibling}for(;t&&t instanceof Text;)q=t.textContent+q,t=t.previousSibling;return q.replace(NT," ")};
_.l.calculateLiveChatRichMessageInput=function(){for(var F=[],q="",t=_.ep(_.ep(this.hostElement).querySelector("#input")).childNodes,u=0;u<t.length;u++){var J=t[u];J instanceof Text?q+=J.textContent:J instanceof HTMLImageElement&&(J.dataset.emojiId?(q&&(F.push({text:q.replace(NT," ")}),q=""),F.push({emojiId:J.dataset.emojiId})):q+=J.alt)}q&&F.push({text:q.replace(NT," ")});if(t=_.ep(this.hostElement).querySelector("#overflow-text")){q="";t=t.childNodes;for(u=0;u<t.length;u++)J=t[u],J instanceof Text?
q+=J.textContent:J instanceof HTMLImageElement&&(J.dataset.emojiId?(q&&(F.push({text:q.replace(NT," ")}),q=""),F.push({emojiId:J.dataset.emojiId})):q+=J.alt);q&&F.push({text:q.replace(NT," ")})}return{textSegments:F}};
_.l.computeCharacterCount=function(F){if(!F||!F.textSegments)return 0;for(var q=0,t=0;t<F.textSegments.length;t++){var u=F.textSegments[t];if(u.text)q+=u.text.length;else if(u.emojiId){var J=void 0;if((J=this.data)==null?0:J.emojiCharacterCount)q+=this.data.emojiCharacterCount;else{var g=J=void 0,Y=void 0;q+=((g=_.XX(_.p7,(J=u)==null?void 0:J.emojiId))==null?void 0:(Y=g.shortcuts)==null?void 0:Y[0].length)||0}}}return q};
_.l.characterCountChanged=function(){_.Q0(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.l.focusedChanged=function(){this.hostElement.dispatchEvent(new _.RA("focused-changed",this.focused))};
_.l.focus=function(){this.setFocus(!1)};
_.l.focusAtEnd=function(){this.setFocus(!0)};
_.l.setFocus=function(F){F=F?this.getRangeAtEnd():this.getInputRange();_.ep(this.hostElement).querySelector("#input").focus();var q=window.getSelection();q&&(q.removeAllRanges(),q.addRange(F))};
_.l.insertEmoji=function(F){var q,t=((F==null?0:F.isCustomEmoji)?(q=F.shortcuts)==null?void 0:q[0]:F==null?void 0:F.emojiId)||"";this.insertText(t)};
_.l.computeText=function(F){if(!F||!F.textSegments)return"";for(var q="",t=0;t<F.textSegments.length;t++){var u=F.textSegments[t];if(u.text)q+=u.text;else if(u.emojiId){var J=void 0,g=void 0,Y=void 0;q+=((g=_.XX(_.p7,(J=u)==null?void 0:J.emojiId))==null?void 0:(Y=g.shortcuts)==null?void 0:Y[0])||""}}return q};
_.l.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.JJ.Object.defineProperties(wt.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
wt.prototype.focusedChanged=wt.prototype.focusedChanged;wt.prototype.characterCountChanged=wt.prototype.characterCountChanged;wt.prototype.onSuggestion=wt.prototype.onSuggestion;wt.prototype.onMessageSet=wt.prototype.onMessageSet;wt.prototype.dataChanged=wt.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],wt.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],wt.prototype,"disabled",void 0);_.C([_.W("disabled"),_.V("design:type",Number),_.V("design:paramtypes",[])],wt.prototype,"inputTabIndex",null);_.C([_.W("data.maxCharacterLimit"),_.O({readOnly:!0,notify:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],wt.prototype,"maxCharacterLimit",null);
_.C([_.W("liveChatRichMessageInput"),_.O({readOnly:!0,notify:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],wt.prototype,"characterCount",null);_.C([_.W("maxCharacterLimit, characterCount"),_.O({readOnly:!0,notify:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],wt.prototype,"remainingCharacterCount",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],wt.prototype,"isChatMessageInput",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],wt.prototype,"inputExpanded",void 0);_.C([_.O({readOnly:!0,notify:!0}),_.V("design:type",Object)],wt.prototype,"liveChatRichMessageInput",void 0);_.C([_.O(),_.V("design:type",Object)],wt.prototype,"messageInput",void 0);_.C([_.O(),_.V("design:type",Boolean)],wt.prototype,"ignoreColorMapping",void 0);_.C([_.W("characterCount"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wt.prototype,"hasText",null);
_.C([_.O(),_.V("design:type",Object)],wt.prototype,"isValidWithNoInputText",void 0);_.C([_.W("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.O(),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wt.prototype,"isInputValid",null);_.C([_.O({readOnly:!0,value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],wt.prototype,"focused",void 0);_.C([_.O(),_.V("design:type",Array)],wt.prototype,"suggestions",void 0);
_.C([_.O(),_.V("design:type",_.lY)],wt.prototype,"emojiManager",void 0);_.C([_.O(),_.V("design:type",_.rt)],wt.prototype,"participantsManager",void 0);_.C([_.O(),_.V("design:type",Boolean)],wt.prototype,"noUnderline",void 0);_.C([_.O(),_.V("design:type",Object)],wt.prototype,"inputMethodEditorActive",void 0);_.C([_.Ms("#dropdown"),_.V("design:type",Object)],wt.prototype,"dropdown",void 0);_.C([_.Ms("#input"),_.V("design:type",HTMLElement)],wt.prototype,"input",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wt.prototype,"dataChanged",null);_.C([_.za("messageInput"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wt.prototype,"onMessageSet",null);_.C([_.EB("yt-live-chat-select-suggestion"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],wt.prototype,"onSuggestion",null);
_.C([_.za("characterCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wt.prototype,"characterCountChanged",null);_.C([_.za("focused"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wt.prototype,"focusedChanged",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],wt);
_.rmd=_.b(wt,"yt-live-chat-text-input-field-renderer",function(){if(Y3j===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;X3r===void 0&&(X3r=document.createElement("template"));var u=X3r;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Y3j=F}F=Y3j;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var iY=function(){var F=_.x.apply(this,arguments)||this;F.buttonOverrides={style:"overlay",type:"filled"};F.allowAnimations=!1;F.modern=_.E("web_button_rework_with_live");F.noPadding=!1;return F};
_.M(iY,_.x);_.l=iY.prototype;_.l.shouldSupportInlineActionButtons=function(){return!0};
_.l.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"}}}}};
_.l.ready=function(){var F=document.querySelector("yt-live-chat-app");F&&F.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.l.attached=function(){this.allowAnimations=!1};
_.l.dataChanged=function(){if(this.data){var F={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.ws(this.hostElement,F);this.allowAnimations=!0}};
_.l.messageChanged=function(){var F,q=(F=this.data)==null?void 0:F.message;F=_.ep(_.ep(this.hostElement).querySelector("#message"));F.textContent="";q&&F.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(q))};
_.l.computeShowOnlyHeader=function(F,q){return!F||F.pdgLikeButton||F.replyButton||F.buyFlowButton?!1:this.isEmpty(F,q)&&!F.footer};
_.l.computeShowFooterDivider=function(F,q,t){return F?!!F.footer&&!this.isEmpty(F,q)&&!t:!1};
_.l.computeIsUserEditable=function(F){return!!F.inputField};
_.l.computeHasHeartButton=function(F){return(F==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(F==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(F==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.l.computeNoveltyImage=function(F){if(F.headerOverlayImage&&F.headerOverlayImage.thumbnails.length){var q=F.headerOverlayImage.thumbnails[0],t,u;if((t=F.pdgPurchasedNoveltyLoggingDirectives)==null?0:(u=t.loggingDirectives)==null?0:u.trackingParams){var J,g;WNW((J=F.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(g=J.loggingDirectives)==null?void 0:g.trackingParams)}return q.width||0}return 0};
_.l.computeAuthorPhotoSize=function(F){return(F==null?0:F.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.l.inputFocus=function(){var F=_.ep(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");F&&F.focus()};
_.l.inputInsertEmoji=function(F){var q=_.ep(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");q&&q.insertEmoji(F)};
_.l.inputMessage=function(){var F=_.ep(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),q;return F&&((q=this.data)==null?0:q.inputField)?(F.completeEmojis(),_.hT(F.liveChatRichMessageInput)):null};
_.l.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.l.isEmpty=function(F,q){return F?F.empty||!(F.message||F.inputField||q):!0};
_.l.onLowerBuyButtonClick=function(){var F,q=_.n((F=this.data)==null?void 0:F.buyButton,_.th);q&&q.trackingParams&&!NKu(q.command)&&(F=_.Av(q.trackingParams))&&(q=_.yb())&&_.co(q,F)};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.JJ.Object.defineProperties(iY.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
iY.prototype.isDeletedChanged=iY.prototype.isDeletedChanged;iY.prototype.messageChanged=iY.prototype.messageChanged;iY.prototype.dataChanged=iY.prototype.dataChanged;_.C([_.D(Vnn.YtPdgLiveChatItemBehavior),_.V("design:type",Object)],iY.prototype,"ytPdgLiveChatItemBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.gv),_.V("design:type",Object)],iY.prototype,"ytLiveChatReduxBehavior",void 0);
_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],iY.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],iY.prototype,"data",void 0);_.C([_.O({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:G7W}),_.V("design:type",Object)],iY.prototype,"engagementState",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.V("design:type",Boolean)],iY.prototype,"isUserEditable",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.V("design:type",Boolean)],iY.prototype,"hasHeartButton",void 0);_.C([_.O({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.V("design:type",Boolean)],iY.prototype,"showOnlyHeader",void 0);
_.C([_.O({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.V("design:type",Boolean)],iY.prototype,"showFooterDivider",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Object)],iY.prototype,"allowAnimations",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],iY.prototype,"dashboardMoneyFeed",void 0);_.C([_.O({computed:"computeNoveltyImage(data)"}),_.V("design:type",Number)],iY.prototype,"noveltyWidth",void 0);
_.C([_.O({computed:"computeAuthorPhotoSize(data)"}),_.V("design:type",Number)],iY.prototype,"authorPhotoSize",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],iY.prototype,"modern",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],iY.prototype,"noPadding",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iY.prototype,"dataChanged",null);
_.C([_.za("data.message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iY.prototype,"messageChanged",null);_.C([_.W("data","dashboardMoneyFeed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],iY.prototype,"hideLowerBumper",null);_.C([_.za("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iY.prototype,"isDeletedChanged",null);
_.C([_.m({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],iY);
_.b(iY,"yt-live-chat-paid-message-renderer",function(){if(TWO===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;M7e===void 0&&(M7e=document.createElement("template"));var u=M7e;t.call(q,u.content.cloneNode(!0),F.content.firstChild);TWO=F}F=TWO;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var NnE;var w3n;var kp=function(){var F=_.Ga.apply(this,arguments)||this;F._noAccessors=!0;return F};
_.M(kp,_.Ga);kp.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.bn("openPopupConfig")};
_.C([_.D(_.HP.YtOpenPopupBehavior),_.V("design:type",Object)],kp.prototype,"ytOpenPopupBehavior",void 0);_.C([_.Dj()],kp);_.En=[_.HP.YtOpenPopupBehavior,kp.prototype];var iax;var cT=[_.Gr,iQO,_.cX,_.Dn,_.Fw,_.ykx,_.Px,_.EAj,_.PO,LGv];_.E("web_watch_get_updated_metadata_response_processing")&&cT.push(_.yhE);_.E("web_continuation_response_processing")&&cT.push(_.Si);var RRf=new _.pg("RESPONSE_RECEIVED_COMMANDS"),Szo=new _.pg("RESPONSE_RECEIVED_COMMANDS");var $lC="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),mlA=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],Hfu=["GET_UNSEEN_NOTIFICATION_COUNT"];var zk=function(){var F=_.Ga.apply(this,arguments)||this;F._noAccessors=!0;F.serviceEndpointHandlers=[];return F};
_.M(zk,_.Ga);zk.prototype.created=function(){var F=this;this.endpointHandlerActionMap={"yt-service-request":function(q,t,u,J){var g;return IyM(F.hostElement,q,t,u,J,F.serviceEndpointHandlers,(g=F.onEntitiesUpdated)==null?void 0:g.bind(F))}}};
zk.prototype.attached=function(){_.aJ(_.B2.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
zk.prototype.detached=function(){_.jJ(_.B2.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.C([_.Dj()],zk);_.k7x=[zk.prototype];var ESz,zgO=function(){return ESz!==void 0?ESz:ESz=document.createElement("template")};
document.head.appendChild(zgO().content);var oSL;var nSx=document.head,MyJ=nSx.appendChild,Tnn;if(oSL===void 0){var G7C=document.createElement("template");_.G(G7C,"\x3c!--css-build:shady--\x3e");G7C.content.insertBefore(zgO().content.cloneNode(!0),G7C.content.firstChild);oSL=G7C}Tnn=oSL;MyJ.call(nSx,Tnn.content);var D_v,WNC=function(){return D_v!==void 0?D_v:D_v=document.createElement("template")};
document.head.appendChild(WNC().content);var Oae;var PDn=document.head,x_j=PDn.appendChild,Ame;if(Oae===void 0){var vSe=document.createElement("template");_.G(vSe,"\x3c!--css-build:shady--\x3e");vSe.content.insertBefore(WNC().content.cloneNode(!0),vSe.content.firstChild);Oae=vSe}Ame=Oae;x_j.call(PDn,Ame.content);var I$v;_.mo("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.mo("sharingRendererButtons","buttonRenderer","ytd-button-renderer");I$v=_.E("web_button_rework")&&_.yG("BUTTON_REWORK")||_.E("web_button_rework_with_live");_.oA=function(){var F=_.x.apply(this,arguments)||this;F.isPressed=!1;F.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return F};
_.M(_.oA,_.x);_.l=_.oA.prototype;_.l.created=function(){this.showTooltips=!0};
_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.onHintIdChanged=function(){var F=this,q,t,u=(q=this.ytButtonBehavior.data)==null?void 0:(t=q.hint)==null?void 0:t.hintRenderer;if(u&&u.hintId){q=_.Zl(this.hostElement,"yt-get-opened-popups-action");q=(q&&q.length===1?q[0]:[]).length>0;var J=null;u.hintId!=="sponsor-pre-purchase"||q?u.hintId.startsWith("sponsor-post-purchase")&&!q?J=uWx("membership-manage"):u.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!q&&(J=uWx("membership-freebie-join")):J=uWx("membership-join");J&&_.mI.addLowPriorityJob(function(){for(var g=
_.X(J),Y=g.next();!Y.done;Y=g.next())F.ytComponentBehavior.resolveCommand(Y.value)})}};
_.l.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.l.onYtNavigate=function(F){var q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(F.detail.endpoint);q&&(F.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(q))};
_.l.onYtServiceRequestSent=function(F,q){this.handleServiceRequestActions(q);_.Q0(this.hostElement,"yt-service-request-sent-button-renderer")};
_.l.onServiceRequestCompleted=function(F,q){this.handleServiceRequestActions(q);_.Q0(this.hostElement,"yt-service-request-completed-button-renderer")};
_.l.updateButton=function(F){var q;if(F=(q=_.n(F,Y5f))==null?void 0:q.updatedButton)this.ytButtonBehavior.data=_.n(F,_.th)};
_.l.handleUpdateButtonAction=function(F){var q=this.ytButtonBehavior.data;q.targetId&&F.updateButtonAction.targetId&&q.targetId===F.updateButtonAction.targetId&&this.updateButton(F)};
_.l.handleServiceRequestActions=function(F){if(F=F.actions)for(var q=0;q<F.length;q++)this.updateButton(F[q])};
_.JJ.Object.defineProperties(_.oA,{template:{configurable:!0,enumerable:!0,get:function(){if(iax===void 0){var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);iax=F}F=iax;return F}}});
_.oA.prototype.onServiceRequestCompleted=_.oA.prototype.onServiceRequestCompleted;_.oA.prototype.onYtServiceRequestSent=_.oA.prototype.onYtServiceRequestSent;_.oA.prototype.onYtNavigate=_.oA.prototype.onYtNavigate;_.oA.prototype.onPressedStateChanged=_.oA.prototype.onPressedStateChanged;_.oA.prototype.onHintIdChanged=_.oA.prototype.onHintIdChanged;_.C([_.O(),_.V("design:type",Object)],_.oA.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],_.oA.prototype,"isPressed",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],_.oA.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.Urv.YtButtonBehavior),_.V("design:type",Object)],_.oA.prototype,"ytButtonBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],_.oA.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],_.oA.prototype,"ytComponentBehavior",void 0);
_.C([_.D(S9.YtRenderButtonBehavior),_.V("design:type",Object)],_.oA.prototype,"ytRenderButtonBehavior",void 0);_.C([_.za("data.hint.hintRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],_.oA.prototype,"onHintIdChanged",null);_.C([_.za("isPressed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],_.oA.prototype,"onPressedStateChanged",null);
_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],_.oA.prototype,"onYtNavigate",null);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],_.oA.prototype,"onYtServiceRequestSent",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],_.oA.prototype,"onServiceRequestCompleted",null);_.C([_.m({is:"ytd-button-renderer",disableElementRegistration:I$v})],_.oA);var n7=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("web_button_rework_with_live");F.buttonOverrides={style:"overlay",type:"filled"};return F};
_.M(n7,_.x);_.l=n7.prototype;_.l.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"}}}}};
_.l.ready=function(){var F=document.querySelector("yt-live-chat-app");F&&F.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.l.dataChanged=function(){if(this.data&&this.data.sticker){var F=_.ZR(this.data.sticker.thumbnails,this.stickerWidth);F||_.jT$(F).thenCatch(function(){_.bz(new _.D0("Failed to load Super Sticker with url",F))})}};
_.l.computeAuthorPhotoSize=function(F){return(F==null?0:F.isV2Style)?32:40};
_.l.computeIsV2Style=function(F){return(F==null?0:F.isV2Style)?!0:!1};
_.l.onStickerLoaded=function(F){var q,t,u;(q=_.uL(F))==null||(t=q.parentNode)==null||(u=t.classList)==null||u.add("sticker-loaded")};
_.l.computeNoveltyImageWidth=function(F){var q,t;if(F==null?0:(q=F.headerOverlayImage)==null?0:(t=q.thumbnails)==null?0:t.length){q=F.headerOverlayImage.thumbnails[0];var u,J;if((u=F.pdgPurchasedNoveltyLoggingDirectives)==null?0:(J=u.loggingDirectives)==null?0:J.trackingParams){var g,Y;WNW((g=F.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Y=g.loggingDirectives)==null?void 0:Y.trackingParams)}return q.width||0}return 0};
_.l.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.l.updateStickerStyles=function(){var F=this.data;F&&(F={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(F.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(F.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(F.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(F.authorNameTextColor)},
_.ws(this.hostElement,F))};
_.l.onBuyButtonClick=function(){var F,q=_.n((F=this.data)==null?void 0:F.buyButton,_.th);q&&!NKu(q.command)&&this.ytRendererBehavior.logExplicitClick(q)};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.JJ.Object.defineProperties(n7.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
n7.prototype.updateStickerStyles=n7.prototype.updateStickerStyles;n7.prototype.isDeletedChanged=n7.prototype.isDeletedChanged;n7.prototype.onStickerLoaded=n7.prototype.onStickerLoaded;n7.prototype.dataChanged=n7.prototype.dataChanged;_.C([_.D(Vnn.YtPdgLiveChatItemBehavior),_.V("design:type",Object)],n7.prototype,"ytPdgLiveChatItemBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],n7.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],n7.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],n7.prototype,"data",void 0);
_.C([_.O({computed:"computeAuthorPhotoSize(data)"}),_.V("design:type",Number)],n7.prototype,"authorPhotoSize",void 0);_.C([_.O(),_.V("design:type",Boolean)],n7.prototype,"isDeleted",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],n7.prototype,"dashboardMoneyFeed",void 0);_.C([_.O({computed:"computeNoveltyImageWidth(data)"}),_.V("design:type",Number)],n7.prototype,"noveltyWidth",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],n7.prototype,"modern",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.V("design:type",Boolean)],n7.prototype,"isV2Style",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n7.prototype,"dataChanged",null);_.C([_.EB("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],n7.prototype,"onStickerLoaded",null);
_.C([_.W("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],n7.prototype,"stickerWidth",null);_.C([_.W("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],n7.prototype,"stickerHeight",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],n7.prototype,"hasHeartButton",null);_.C([_.W("data","dashboardMoneyFeed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],n7.prototype,"hideLowerBumper",null);
_.C([_.za("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n7.prototype,"isDeletedChanged",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n7.prototype,"updateStickerStyles",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],n7);
_.b(n7,"yt-live-chat-paid-sticker-renderer",function(){if(w3n===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;NnE===void 0&&(NnE=document.createElement("template"));var u=NnE;t.call(q,u.content.cloneNode(!0),F.content.firstChild);w3n=F}F=w3n;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var HaJ;var m_E;var $_d,bar=function(){return $_d!==void 0?$_d:$_d=document.createElement("template")};
document.head.appendChild(bar().content);var ymn,CDx=function(){return ymn!==void 0?ymn:ymn=document.createElement("template")};
document.head.appendChild(CDx().content);var d_d;var VyC,U_J=function(){return VyC!==void 0?VyC:VyC=document.createElement("template")};
document.head.appendChild(U_J().content);var S3w;var hgr=document.head,KNe=hgr.appendChild,BnO;if(S3w===void 0){var LNj=document.createElement("template");_.G(LNj,"\x3c!--css-build:shady--\x3e");LNj.content.insertBefore(U_J().content.cloneNode(!0),LNj.content.firstChild);S3w=LNj}BnO=S3w;KNe.call(hgr,BnO.content);var f$x=document.head,a$n=f$x.appendChild,jkL;if(d_d===void 0){var MT=document.createElement("template");_.G(MT,"\x3c!--css-build:shady--\x3e");MT.content.insertBefore(CDx().content.cloneNode(!0),MT.content.firstChild);MT.content.insertBefore(bar().content.cloneNode(!0),MT.content.firstChild);d_d=MT}jkL=d_d;a$n.call(f$x,jkL.content);var Tk=function(){var F=_.Ga.apply(this,arguments)||this;F.focusedIndex=0;F.verticalOffset=0;F.verticalAlign="top";F.dynamicAlign=!0;return F};
_.M(Tk,_.Ga);Tk.prototype.emojiUrl=function(F){F=_.XX(this.emojiManager,F);if(!F)return"";var q;F=(q=F.image)==null?void 0:q.thumbnails;return _.ZR(F,24)||""};
var cm1=function(F){var q;F.emojiVariants&&(q=F.data)!=null&&q.target&&_.tJ(F,function(){F.set("verticalOffset",-1*F.hostElement.clientHeight);var t=_.ep(F.hostElement).querySelector("img");t&&t.focus()})};
_.l=Tk.prototype;_.l.onKeyboardEnter=function(){};
_.l.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.l.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.l.onKeyDown=function(F){switch(F.keyCode){case 13:this.onKeyboardEnter();F.preventDefault();break;case 40:this.changeFocus(1);F.preventDefault();break;case 38:this.changeFocus(-1);F.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.l.onYtEmojiSelect=function(F){var q=this,t,u,J,g,Y,Q,e,r;return _.p(function(N){if(N.nextAddress==1)return u=(t=q.data)==null?void 0:t.emoji,Y=((J=u)==null?void 0:J.stickyPrefId)||((g=u)==null?void 0:g.emojiId),e=(Q=F.detail)==null?void 0:Q.emojiId,Y&&e&&Y!==e?N.yield((r=q.emojiManager)==null?void 0:JmJ(r,u,e),2):N.return();_.ec(q.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[u,e]);_.WA(N)})};
_.l.changeFocus=function(F){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+F+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(F=_.ep(this.hostElement).querySelector("#variants"))&&F.children[this.focusedIndex].focus())};
_.JJ.Object.defineProperties(Tk.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Tk.prototype.onYtEmojiSelect=Tk.prototype.onYtEmojiSelect;Tk.prototype.onKeyDown=Tk.prototype.onKeyDown;Tk.prototype.onEmojiVariantsChanged=Tk.prototype.onEmojiVariantsChanged;Tk.prototype.onVerticalOffsetOrPositionTargetChanged=Tk.prototype.onVerticalOffsetOrPositionTargetChanged;_.C([_.D(_.u4),_.V("design:type",Object)],Tk.prototype,"ironOverlayBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Tk.prototype,"data",void 0);_.C([_.O(),_.V("design:type",_.lY)],Tk.prototype,"emojiManager",void 0);
_.C([_.O(),_.V("design:type",Object)],Tk.prototype,"emojiVariants",void 0);_.C([_.O(),_.V("design:type",Object)],Tk.prototype,"focusedIndex",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tk.prototype,"positionTarget",null);_.C([_.O({reflectToAttribute:!0}),_.W("verticalOffset","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"isPositioned",null);_.C([_.O(),_.V("design:type",Object)],Tk.prototype,"verticalOffset",void 0);
_.C([_.O(),_.V("design:type",Object)],Tk.prototype,"verticalAlign",void 0);_.C([_.O(),_.V("design:type",Object)],Tk.prototype,"dynamicAlign",void 0);_.C([_.za("verticalOffset","positionTarget"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tk.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.C([_.za("emojiVariants"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tk.prototype,"onEmojiVariantsChanged",null);
_.C([_.EB("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],Tk.prototype,"onKeyDown",null);_.C([_.EB("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype",Promise)],Tk.prototype,"onYtEmojiSelect",null);_.C([_.Dj()],Tk);var FGJ=[Tk.prototype];var qzL;var twd;var uTE=/medium-light|medium-dark|light|medium|dark/,JSx=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,sT1=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Gk=function(){var F=_.x.apply(this,arguments)||this;F.userSelection={left:null,right:null};F.scrollAction="lock";F.isEmojiDraftInProgress=!1;return F};
_.M(Gk,_.x);_.l=Gk.prototype;_.l.onClick=function(F){F=_.uL(F);F instanceof HTMLImageElement&&this.selectOrUpdateEmoji(F)};
_.l.selectOrUpdateEmoji=function(F){var q=F.getAttribute("selection");q&&(q==="default"?_.Q0(this.hostElement,"yt-emoji-select",_.XX(this.emojiManager,F.id)):q==="left"?this.userSelection=Object.assign({},this.userSelection,{left:F.src}):q==="right"?this.userSelection=Object.assign({},this.userSelection,{right:F.src}):q==="user"&&this.userSelection.left&&this.userSelection.right&&_.Q0(this.hostElement,"yt-emoji-select",_.XX(this.emojiManager,F.id)))};
_.l.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.l.onMultiSelectorThumbnailRowChanged=function(){var F,q,t;((F=this.data)==null?0:(q=F.emoji)==null?0:(t=q.multiSelectorThumbnailRow)==null?0:t.length)&&this.openSelector()};
_.l.getThumbnailFromEmojiRow=function(F){var q,t;return(F==null?void 0:(q=F.thumbnails)==null?void 0:(t=q[0])==null?void 0:t.url)||""};
_.l.getEmojiAltTextForPartialSelector=function(F){var q;return((q=this.getThumbnailFromEmojiRow(F).match(JSx))==null?void 0:q[0])||""};
_.l.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.l.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.l.getRowSelection=function(F){return["left","right"][F]};
_.l.getIdFromComposedEmoji=function(F){return(F==null?void 0:F.emojiId)||""};
_.l.getEmojiFromPartialSelections=function(F,q){if(!F&&!q)return null;var t,u,J=(t=this.data)==null?void 0:(u=t.emoji)==null?void 0:u.variantIds;if(!J||!J.length)return null;var g;F=(g=F.match(uTE))==null?void 0:g[0];var Y;q=(Y=q.match(uTE))==null?void 0:Y[0];if(!F||!q)return null;var Q=sT1.get(F);Y=sT1.get(q);if(Q===Y){Y=Array.from(sT1.values()).filter(function(r){return r!==Q}).join("|");
var e=new RegExp("^((?!("+Y+")).)*"+Q+"$")}else e=new RegExp(Q+".*"+Y);return(J=J.find(function(r){return e.test(r)}))&&_.XX(this.emojiManager,J)||null};
_.l.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var F,q=this.ytEmojiSelectorBehavior.emojiUrl(((F=this.data.emoji)==null?void 0:F.emojiId)||"");_.ep(this.hostElement).querySelector('[selection="user"]').src.includes(q)||(this.isEmojiDraftInProgress=!0)}};
_.l.onDomChange=function(){cm1(this.ytEmojiSelectorBehavior)};
_.l.getFocusableElements=function(){return _.ep(this.hostElement).querySelectorAll("img").filter(function(F){return F.getAttribute("role")==="option"})};
_.l.changeFocus=function(F){var q=this.getFocusableElements();q!=null&&q.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+F+q.length)%q.length,this.ytEmojiSelectorBehavior.focusedIndex<q.length&&(F=q[this.ytEmojiSelectorBehavior.focusedIndex])&&F.focus())};
_.l.onKeyboardEnter=function(){var F=this.getFocusableElements();F!=null&&F.length&&(F=F[this.ytEmojiSelectorBehavior.focusedIndex])&&F instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(F),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.JJ.Object.defineProperties(Gk.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var F=this,q,t,u;return this.emojiManager&&((q=this.data)==null?0:(t=q.emoji)==null?0:(u=t.variantIds)==null?0:u.length)?this.data.emoji.variantIds.map(function(J){return!!J&&_.XX(F.emojiManager,J)}).filter(function(J){return!!J}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var F,q=(F=this.userSelection)==null?void 0:F.left,t;F=(t=this.userSelection)==null?void 0:t.right;return q&&F?this.getEmojiFromPartialSelections(q,F):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.composedEmojiSelection)==null?0:F.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var q;F=(q=this.userSelection)==null?void 0:q.left;var t;q=(t=this.userSelection)==null?void 0:t.right;if(!F&&!q){var u;return this.ytEmojiSelectorBehavior.emojiUrl(((u=this.data.emoji)==null?void 0:u.emojiId)||"")}return F&&!q?F:!F&&q?q:""}}});
Gk.prototype.onMultiSelectorThumbnailRowChanged=Gk.prototype.onMultiSelectorThumbnailRowChanged;Gk.prototype.onClick=Gk.prototype.onClick;_.C([_.D(_.u4),_.V("design:type",Object)],Gk.prototype,"ironOverlayBehavior",void 0);_.C([_.D(FGJ),_.V("design:type",Object)],Gk.prototype,"ytEmojiSelectorBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Gk.prototype,"data",void 0);_.C([_.O(),_.V("design:type",_.lY)],Gk.prototype,"emojiManager",void 0);
_.C([_.O(),_.V("design:type",Object)],Gk.prototype,"userSelection",void 0);_.C([_.O(),_.V("design:type",Object)],Gk.prototype,"scrollAction",void 0);_.C([_.O(),_.V("design:type",Object)],Gk.prototype,"isEmojiDraftInProgress",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Gk.prototype,"emojiVariants",null);_.C([_.W("data","userSelection"),_.V("design:type",Object),_.V("design:paramtypes",[])],Gk.prototype,"composedEmojiSelection",null);
_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[MouseEvent]),_.V("design:returntype")],Gk.prototype,"onClick",null);_.C([_.za("data.emoji.multiSelectorThumbnailRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Gk.prototype,"onMultiSelectorThumbnailRowChanged",null);_.C([_.W("data","userSelection","composedEmojiSelection"),_.V("design:type",String),_.V("design:paramtypes",[])],Gk.prototype,"draftEmojiUrl",null);
_.C([_.Vu({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Gk);
_.b(Gk,"yt-emoji-multi-person-selector",function(){if(twd===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;qzL===void 0&&(qzL=document.createElement("template"));var u=qzL;t.call(q,u.content.cloneNode(!0),F.content.firstChild);twd=F}F=twd;return F},{mode:2});var g0L;var lyO;var DB=function(){var F=_.x.apply(this,arguments)||this;F.tooltip_=null;return F};
_.M(DB,_.x);_.l=DB.prototype;_.l.dataChanged_=function(){var F;if((F=this.data)==null?0:F.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.ep(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Ns)(this.tooltip_).textContent=this.data.tooltip};
_.l.computeTargetId=function(){var F;return((F=this.data)==null?void 0:F.targetId)||""};
_.l.computeId_=function(F){return F};
_.l.computeIcon_=function(F){return _.Ek(F)};
_.l.onTap_=function(){this.active=!this.active;_.Q0(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.l.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("active-changed",this.active))};
_.JJ.Object.defineProperties(DB.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var F,q;if((F=this.data)==null?0:(q=F.icon)==null?0:q.iconType)return this.data.icon.iconType==="SUPER_STICKER";var t,u;return((t=this.data)==null?void 0:(u=t.icon)==null?void 0:u.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
DB.prototype.activeChangedForBinding=DB.prototype.activeChangedForBinding;DB.prototype.dataChanged_=DB.prototype.dataChanged_;_.C([_.D(_.lT.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],DB.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],DB.prototype,"data",void 0);_.C([_.O({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.V("design:type",String)],DB.prototype,"id",void 0);
_.C([_.O({computed:"computeTargetId(data.targetId)"}),_.V("design:type",String)],DB.prototype,"targetId",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],DB.prototype,"active",void 0);_.C([_.O({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.V("design:type",String)],DB.prototype,"icon",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DB.prototype,"dataChanged_",null);
_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],DB.prototype,"iconFilled",null);_.C([_.za("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DB.prototype,"activeChangedForBinding",null);_.C([_.Vu({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],DB);
_.b(DB,"yt-emoji-picker-category-button-renderer",function(){if(lyO===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;g0L===void 0&&(g0L=document.createElement("template"));var u=g0L;t.call(q,u.content.cloneNode(!0),F.content.firstChild);lyO=F}F=lyO;return F},{mode:2});var Xuz;var Yzn;var W8=function(){var F=_.x.apply(this,arguments)||this;F.ariaLabel=null;F.ariaActivedescendant=null;F.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};F.JSC$14166_ignoreNextFocus_=!1;F.longPressTimeoutId=-1;return F};
_.M(W8,_.x);_.l=W8.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.l.emojiChanged_=function(){this.changeFocus_(0,!1);for(var F=_.DP(),q=0;q<this.emoji.length;q++){var t={veType:88013,elementIndex:q},u=this.emoji[q];u.isCustomEmoji&&(u=document.querySelector(("#"+u.emojiId).replace("/","\\/")))&&(t=_.GC(F,t))&&(u.visualElement=t)}};
_.l.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.l.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.l.emojiSkinToneChanged_=function(F){this.skinTone=F};
_.l.dataChanged=function(){this.data&&this.data.emojiData&&FNJ(this.emojiManager,this.data.emojiData)};
_.l.emojiUrl=function(F){F=this.getEmoji(F);if(!F)return"";var q;F=(q=F.image)==null?void 0:q.thumbnails;return _.ZR(F,24)||""};
_.l.emojiAlt=function(F){var q=this.get("image.accessibility.accessibilityData.label",F);return q?q:F.isCustomEmoji?F.shortcuts[0]:F.emojiId};
_.l.emojiAriaLabel=function(F){return F.shortcuts?F.shortcuts[0]:""};
_.l.emojiAriaSelected=function(F,q,t){return F&&t==q?"true":"false"};
_.l.getEmoji=function(F){if(this.emojiManager)return this.shouldUseStickyPreferences?tyO(this.emojiManager,F):Yp(this.emojiManager,F)};
_.l.computeId_=function(F){return F.categoryId||""};
_.l.computeEmoji=function(F){var q=this;return this.emojiManager?F.emojiIds?F.emojiIds.map(function(t){return t?_.XX(q.emojiManager,t):null}).filter(cSP):F.emojiData?F.emojiData.map(function(t){var u=!!t.emojiId&&_.XX(q.emojiManager,t.emojiId);
return u?Object.assign({},u,t):null}).filter(cSP):[]:[]};
_.l.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.l.computeAriaLabel_=function(F){return _.q1(F)};
_.l.computeAriaActivedescendant_=function(F,q){return F&&F[q]?F[q].emojiId||"":""};
_.l.handleLongPressEmojiWithVariants=function(F,q){this.changeFocusToEmoji(F.emojiId,!1);this.openVariantSelector(F,q)};
_.l.onMouseDown=function(F){var q=this;this.hostElement!==document.activeElement&&(this.JSC$14166_ignoreNextFocus_=!0);if(F.button===0){var t=_.uL(F);if(t instanceof HTMLImageElement){var u=_.ep(this.hostElement).querySelector("#repeat").itemForElement(t);this.emojiContainsVariants(u)&&(this.longPressTimeoutId=setTimeout(function(){q.handleLongPressEmojiWithVariants(u,t)},500))}}};
_.l.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.l.onFocus=function(){this.JSC$14166_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14166_ignoreNextFocus_=!1};
_.l.onBlur_=function(){this.showFocus=!1};
_.l.emojiContainsVariants=function(F){return!!(F&&F.variantIds&&F.variantIds.length)};
_.l.onClick=function(F){clearTimeout(this.longPressTimeoutId);F=_.uL(F);if(F instanceof HTMLImageElement){var q=F.id;this.changeFocusToEmoji(q,!1);var t=this.getEmoji(q),u;if(u=this.shouldUseStickyPreferences&&this.emojiContainsVariants(t)){var J;u=!((J=this.emojiManager.emojiMap[q])!=null&&J.stickyPrefId)}u?(J=_.ep(this.hostElement).querySelector("#repeat").itemForElement(F),this.openVariantSelector(J,F)):_.Q0(this.hostElement,"yt-emoji-select",t)}};
_.l.isActiveEmojiWithVariants=function(F,q){return F&&q?q.stickyPrefId?F===q.stickyPrefId:F===q.emojiId:!1};
_.l.onCloseEmojiVariantSelector=function(F){this.activeEmojiWithVariantsId===F&&(this.activeEmojiWithVariantsId="")};
_.l.onMouseOver_=function(F){F=_.uL(F);F instanceof HTMLImageElement&&_.Q0(this.hostElement,"yt-emoji-hover",_.XX(this.emojiManager,F.id))};
_.l.changeFocus_=function(F,q){this.focusedIndex=(this.focusedIndex+F+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(F=this.emoji[this.focusedIndex],q&&(this.showFocus=!0,_.ep(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Q0(this.hostElement,"yt-emoji-hover",F)))};
_.l.changeFocusToEmoji=function(F,q){if(F){var t=this.emoji.findIndex(function(u){return u.emojiId===F});
t!==-1&&this.changeFocus_(t-this.focusedIndex,q)}};
_.l.onKeyDown_=function(F){switch(F.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var q=this.emoji[this.focusedIndex];if(q&&q.emojiId){if(this.emojiContainsVariants(q)){var t=_.ep(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(q,t)}else _.Q0(this.hostElement,"yt-emoji-select",Yp(this.emojiManager,q.emojiId)),this.hostElement.focus();F.preventDefault()}}break;case 40:this.changeFocus_(1,!0);F.preventDefault();break;case 38:this.changeFocus_(-1,!0),
F.preventDefault()}};
_.l.onEmojiStickyPreferenceChanged=function(F,q){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&F.emojiId&&F.variantIds&&F.variantIds.includes(q)&&this.activeEmojiWithVariantsId!==q&&this.setStickyEmojiPreference(F.emojiId,q)};
_.l.openVariantSelector=function(F,q){this.activeEmojiWithVariantsId=F.stickyPrefId||F.emojiId||"";_.Q0(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:F,target:q})};
_.l.setStickyEmojiPreference=function(F,q){if(this.data){var t=this.emoji.findIndex(function(J){return J.emojiId===F});
if(t!==-1){var u=this.emoji[t];u.stickyPrefId=q;this.set("emoji."+t,Object.assign({},u));this.activeEmojiWithVariantsId=q}}};
W8.prototype.onKeyDown_=W8.prototype.onKeyDown_;W8.prototype.onMouseOver_=W8.prototype.onMouseOver_;W8.prototype.onClick=W8.prototype.onClick;W8.prototype.onBlur_=W8.prototype.onBlur_;W8.prototype.onFocus=W8.prototype.onFocus;W8.prototype.onMouseUp=W8.prototype.onMouseUp;W8.prototype.onMouseDown=W8.prototype.onMouseDown;W8.prototype.dataChanged=W8.prototype.dataChanged;W8.prototype.disableIncrementalLoadingChanged_=W8.prototype.disableIncrementalLoadingChanged_;W8.prototype.emojiManagerChanged_=W8.prototype.emojiManagerChanged_;
W8.prototype.emojiChanged_=W8.prototype.emojiChanged_;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],W8.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],W8.prototype,"data",void 0);_.C([_.O({computed:"computeId_(data)"}),_.V("design:type",String)],W8.prototype,"id",void 0);_.C([_.O({computed:"computeEmoji(data)"}),_.V("design:type",Array)],W8.prototype,"emoji",void 0);_.C([_.O(),_.V("design:type",Number)],W8.prototype,"skinTone",void 0);
_.C([_.O(),_.V("design:type",_.lY)],W8.prototype,"emojiManager",void 0);_.C([_.O(),_.V("design:type",Boolean)],W8.prototype,"disableIncrementalLoading",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],W8.prototype,"focusedIndex",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],W8.prototype,"showFocus",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.V("design:type",Object)],W8.prototype,"ariaLabel",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.V("design:type",Object)],W8.prototype,"ariaActivedescendant",void 0);_.C([_.O({value:60}),_.V("design:type",Number)],W8.prototype,"domRepeatTargetFramerate",void 0);_.C([_.O({value:1}),_.V("design:type",Number)],W8.prototype,"domRepeatInitialCount",void 0);_.C([_.O({value:""}),_.V("design:type",String)],W8.prototype,"activeEmojiWithVariantsId",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],W8.prototype,"shouldUseStickyPreferences",void 0);_.C([_.za("emoji"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W8.prototype,"emojiChanged_",null);_.C([_.za("emojiManager"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W8.prototype,"emojiManagerChanged_",null);
_.C([_.za("disableIncrementalLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W8.prototype,"disableIncrementalLoadingChanged_",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W8.prototype,"dataChanged",null);_.C([_.EB("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],W8.prototype,"onMouseDown",null);
_.C([_.EB("mouseup"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W8.prototype,"onMouseUp",null);_.C([_.EB("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W8.prototype,"onFocus",null);_.C([_.EB("blur"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W8.prototype,"onBlur_",null);
_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],W8.prototype,"onClick",null);_.C([_.EB("mouseover"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],W8.prototype,"onMouseOver_",null);_.C([_.EB("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],W8.prototype,"onKeyDown_",null);
_.C([_.Vu({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],W8);
_.b(W8,"yt-emoji-picker-category-renderer",function(){if(Yzn===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Xuz===void 0&&(Xuz=document.createElement("template"));var u=Xuz;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Yzn=F}F=Yzn;return F},{mode:2});var puz;var QTL;var ejv;var Zfv;var On=function(){var F=_.x.apply(this,arguments)||this;F.ariaLabel=null;F.ariaActivedescendant=null;F.getFormattedStringRawText=_.q1;F.JSC$14172_ignoreNextFocus_=!1;return F};
_.M(On,_.x);_.l=On.prototype;_.l.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")};
_.l.emojiUrl=function(F){var q,t;F=(q=Yp(this.emojiManager,F,!0))==null?void 0:(t=q.image)==null?void 0:t.thumbnails;return _.ZR(F,24)||""};
_.l.emojiAlt=function(F){var q=this.get("image.accessibility.accessibilityData.label",F);return q?q:F.isCustomEmoji?F.shortcuts[0]:F.emojiId};
_.l.emojiId=function(F){return"emoji"+F};
_.l.computeId_=function(F){return F.categoryId||""};
_.l.computeAriaActivedescendant_=function(F){return this.emoji&&F<this.emoji.length?this.emojiId(F):""};
_.l.emojiChanged_=function(){this.changeFocus_(0,!1);for(var F=_.DP(),q=0;q<this.emoji.length;q++){var t={veType:88013,elementIndex:q},u=this.emoji[q];u.isCustomEmoji&&(u=document.querySelector(("#"+u.emojiId).replace("/","\\/")))&&(t=_.GC(F,t))&&(u.visualElement=t)}};
_.l.computeEmoji_=function(F){var q=this;return this.emojiManager?F.emojiIds.map(function(t){return _.XX(q.emojiManager,t,!0)}).filter(FUC):[]};
_.l.titleOffsetChanged_=function(){var F=this.hostElement.getBoundingClientRect(),q=_.ep(this.hostElement).querySelector("#title").getBoundingClientRect();F=Math.max(0,Math.min(this.titleOffset,F.height-q.height));_.ep(this.hostElement).querySelector("#title").style.top=F+"px"};
_.l.onEmojiMouseOver_=function(F){_.Q0(this.hostElement,"yt-emoji-hover",F.model.item)};
_.l.onEmojiTap_=function(F){this.data.command&&(F=m_o(_.sV().resolve(_.JU(hf)),this.data.command,F),_.Q0(this.hostElement,"yt-navigate",F))};
_.l.emojiAriaLabel=function(F){return F.shortcuts[0]};
_.l.emojiAriaSelected=function(F,q,t){return F&&t==q?"true":"false"};
_.l.changeFocus_=function(F,q){var t=this.emoji.length;this.focusedIndex=(this.focusedIndex+F+t)%t;F=this.emoji[this.focusedIndex];if(q){var u;(u=_.ep(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||u.scrollIntoView(!1);_.Q0(this.hostElement,"yt-emoji-hover",F)}};
_.l.onMouseDown_=function(){this.JSC$14172_ignoreNextFocus_=!0};
_.l.onFocus_=function(){this.JSC$14172_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14172_ignoreNextFocus_=!1};
_.l.onBlur_=function(){this.showFocus=!1};
_.l.onKeyDown_=function(F){switch(F.keyCode){case 13:this.onEmojiTap_(F);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);F.preventDefault();break;case 38:this.changeFocus_(-1,!0),F.preventDefault()}};
On.prototype.onKeyDown_=On.prototype.onKeyDown_;On.prototype.onBlur_=On.prototype.onBlur_;On.prototype.onFocus_=On.prototype.onFocus_;On.prototype.onMouseDown_=On.prototype.onMouseDown_;On.prototype.onEmojiTap_=On.prototype.onEmojiTap_;On.prototype.titleOffsetChanged_=On.prototype.titleOffsetChanged_;On.prototype.emojiChanged_=On.prototype.emojiChanged_;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],On.prototype,"ytComponentBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],On.prototype,"data",void 0);_.C([_.O({computed:"computeId_(data)"}),_.V("design:type",String)],On.prototype,"id",void 0);_.C([_.O({computed:"computeEmoji_(data)"}),_.V("design:type",Array)],On.prototype,"emoji",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],On.prototype,"titleOffset",void 0);_.C([_.O({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.V("design:type",Object)],On.prototype,"ariaLabel",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.V("design:type",Object)],On.prototype,"ariaActivedescendant",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],On.prototype,"showFocus",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],On.prototype,"focusedIndex",void 0);_.C([_.O(),_.V("design:type",_.lY)],On.prototype,"emojiManager",void 0);
_.C([_.za("emoji"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],On.prototype,"emojiChanged_",null);_.C([_.za("titleOffset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],On.prototype,"titleOffsetChanged_",null);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],On.prototype,"onEmojiTap_",null);
_.C([_.EB("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],On.prototype,"onMouseDown_",null);_.C([_.EB("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],On.prototype,"onFocus_",null);_.C([_.EB("blur"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],On.prototype,"onBlur_",null);
_.C([_.EB("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],On.prototype,"onKeyDown_",null);_.C([_.Vu({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],On);
_.b(On,"yt-emoji-picker-upsell-category-renderer",function(){if(Zfv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;ejv===void 0&&(ejv=document.createElement("template"));var u=ejv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Zfv=F}F=Zfv;return F},{mode:2});var RjC;var rSL;var P8=function(){var F=_.x.apply(this,arguments)||this;F.scrollAction="lock";F.verticalAlign="top";return F};
_.M(P8,_.x);_.l=P8.prototype;_.l.onClick=function(F){F=_.uL(F);F instanceof HTMLImageElement&&_.Q0(this.hostElement,"yt-emoji-select",_.XX(this.emojiManager,F.id))};
_.l.openSelector=function(){this.ironOverlayBehavior.open()};
_.l.onDomChange=function(){cm1(this.ytEmojiSelectorBehavior)};
_.l.computeIsFamilySelector=function(F){var q;return(F==null?void 0:(q=F.emoji)==null?void 0:q.emojiId)==="\ud83d\udc6a"};
_.l.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var F=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];F&&F.emojiId&&(_.Q0(this.hostElement,"yt-emoji-select",_.XX(this.emojiManager,F.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.JJ.Object.defineProperties(P8.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var F=this,q,t,u;return this.emojiManager&&((q=this.data)==null?0:(t=q.emoji)==null?0:(u=t.variantIds)==null?0:u.length)?this.data.emoji.variantIds.map(function(J){return!!J&&_.XX(F.emojiManager,J)}).filter(function(J){return!!J}):[]}}});
P8.prototype.onClick=P8.prototype.onClick;_.C([_.D(_.u4),_.V("design:type",Object)],P8.prototype,"ironOverlayBehavior",void 0);_.C([_.D(FGJ),_.V("design:type",Object)],P8.prototype,"ytEmojiSelectorBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],P8.prototype,"data",void 0);_.C([_.O(),_.V("design:type",_.lY)],P8.prototype,"emojiManager",void 0);_.C([_.O(),_.V("design:type",Object)],P8.prototype,"scrollAction",void 0);_.C([_.O(),_.V("design:type",Object)],P8.prototype,"verticalAlign",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.V("design:type",Boolean)],P8.prototype,"isFamilySelector",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],P8.prototype,"emojiVariants",null);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[MouseEvent]),_.V("design:returntype")],P8.prototype,"onClick",null);_.C([_.Vu({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],P8);
_.b(P8,"yt-emoji-variant-selector",function(){if(rSL===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;RjC===void 0&&(RjC=document.createElement("template"));var u=RjC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);rSL=F}F=rSL;return F},{mode:2});var NAO=/:/g,wuJ=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],xp=function(){var F=_.x.apply(this,arguments)||this;F.emojiVariantSelector=null;F.emojiMultiPersonSelector=null;F.identity=_.I_;F.lastAnimationTime_=0;F.animationStart_=null;F.animationEnd_=null;return F};
_.M(xp,_.x);_.l=xp.prototype;
_.l.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}}};
_.l.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.p7)};
_.l.attached=function(){_.p4&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&q3f(this.emojiManager)};
_.l.dataChanged=function(){var F;if((F=this.data)==null?0:F.categories){F=this.emojiManager;var q=this.getCustomEmojiIds();F.pickerCustomEmojiIds=[].concat(_.mZ(LKC),_.mZ(q))}};
_.l.getCustomEmojiIds=function(){var F,q=(F=this.data.categories)==null?void 0:F.find(function(g){var Y;return((Y=g.emojiPickerCategoryRenderer)==null?void 0:Y.categoryId)&&wuJ.includes(g.emojiPickerCategoryRenderer.categoryId)}),t;
F=(t=this.data.categories)==null?void 0:t.find(function(g){return g.emojiPickerUpsellCategoryRenderer});
var u,J;return[q==null?void 0:(u=q.emojiPickerCategoryRenderer)==null?void 0:u.emojiIds,F==null?void 0:(J=F.emojiPickerUpsellCategoryRenderer)==null?void 0:J.emojiIds].flat().filter(function(g){return!!g})};
_.l.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.l.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.l.updateCategoriesAndPlaceholderInternal=function(F,q){var t=this;F&&q&&(this.categories=F.categories||[],this.categoryButtons=F.categoryButtons||[],this.resetPlaceholder(),this.search="",_.f1(function(){t.updateButtons_()}))};
_.l.computeId_=function(F){return F.id||""};
_.l.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(F){return F.emojiPickerCategoryRenderer&&F.emojiPickerCategoryRenderer.emojiData}):!1};
_.l.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.l.onShowEmojiVariantSelector=function(F){var q=F.detail.emojiData;q.variantIds&&q.variantIds.length&&(q.multiSelectorThumbnailRow&&q.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:q,target:F.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:q,target:F.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.l.onIronOverlayClosed=function(F){var q=tyO(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");q&&F.composedPath&&(F.composedPath().includes(_.ep(this.hostElement).querySelector("#emoji-variant-selector"))||F.composedPath().includes(_.ep(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.ec(this.hostElement,"yt-close-emoji-variant-selector",[q.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.l.onEmojiVariantSelectorMouseup=function(F){var q=F.target.firstChild;this.variantSelectorOpened&&q&&_.f1(function(){q.noCancelOnOutsideClick=!1},100)};
_.l.onEmojiVariantSelectorMousedown=function(F){F=F.target.firstChild;this.variantSelectorOpened&&F&&(F.noCancelOnOutsideClick=!1)};
_.l.onSelectCategory_=function(F){var q=this.search!="";this.search="";for(var t=_.ep(this.hostElement).querySelector("#categories").children,u=0;u<t.length;u++){var J=t[u];if(J.id==F.detail.categoryId){q?(_.ep(this.hostElement).querySelector("#categories").scrollTop=J.offsetTop,this.updateButtons_()):(this.animationStart_=_.ep(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=J.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.l.onEmojiHover_=function(F){this.placeholder=F.detail.shortcuts?F.detail.shortcuts[0]:""};
_.l.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.l.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.l.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.l.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.l.computeSearchCategory_=function(F){F=F.replace(NAO,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();F=F.split(" ");for(var q=[],t=this.emojiManager.emojis,u=0;u<t.length;u++){var J=t[u];if(J.searchTerms)for(var g=0;g<J.searchTerms.length;g++){for(var Y=J.searchTerms[g].toLocaleLowerCase(),Q=!1,e=0;e<F.length;e++)if(Y.indexOf(F[e])!=-1){Q=!0;break}if(Q&&(!J.isCustomEmoji||!J.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(J.emojiId))){q.push(J.emojiId);
break}}}return{categoryId:-1,emojiIds:q}};
_.l.computeSearchEmptyMessage_=function(F,q){return F&&q&&q.emojiIds&&q.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.l.computeSearching_=function(F){return this.emojiManager&&F.replace(NAO,"").length>1};
_.l.computeSkinToneHidden=function(){var F;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((F=this.data)==null||!F.hideSkinTonePicker)};
_.l.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.l.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.l.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.l.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.l.selectSkinTone_=function(F){F=Number(F.target.getAttribute("tone"));this.set("emojiManager.skinTone",F);_.ec(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[F]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.l.skinToneChanged_=function(){_.ep(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var F=_.ep(this.hostElement).querySelector("#dropdown-content").children,q=0;q<F.length;q++)q===this.skinTone?F[q].setAttribute("selected",""):F[q].removeAttribute("selected")};
_.l.animateScroll_=function(F){this.lastAnimationTime_||(this.lastAnimationTime_=F);F-=this.lastAnimationTime_;F<200?(_.ep(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*F/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.ep(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.l.searchChanged_=function(){this.updateButtons_()};
_.l.updateButtons_=function(){var F=null;if(!this.search)for(var q=_.ep(this.hostElement).querySelector("#categories").scrollTop,t=_.ep(this.hostElement).querySelector("#categories").children,u=0;u<t.length;u++){var J=t[u];J.offsetTop<=q&&(F=J.id)}q=_.ep(this.hostElement).querySelector("#category-buttons").children;for(t=0;t<q.length;t++)u=q[t],u.active=u.id===F};
xp.prototype.searchChanged_=xp.prototype.searchChanged_;xp.prototype.skinToneChanged_=xp.prototype.skinToneChanged_;xp.prototype.onEmojiHover_=xp.prototype.onEmojiHover_;xp.prototype.onSelectCategory_=xp.prototype.onSelectCategory_;xp.prototype.onShowEmojiVariantSelector=xp.prototype.onShowEmojiVariantSelector;xp.prototype.updateCategoriesAndPlaceholder_=xp.prototype.updateCategoriesAndPlaceholder_;xp.prototype.dataChanged=xp.prototype.dataChanged;
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],xp.prototype,"data",void 0);_.C([_.O({value:function(){return[]}}),
_.V("design:type",Array)],xp.prototype,"categories",void 0);_.C([_.O({value:function(){return[]}}),
_.V("design:type",Array)],xp.prototype,"categoryButtons",void 0);_.C([_.O({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.V("design:type",Boolean)],xp.prototype,"disableScroll",void 0);_.C([_.O({computed:"computeId_(data)",reflectToAttribute:!0}),_.V("design:type",String)],xp.prototype,"id",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],xp.prototype,"selected",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],xp.prototype,"disableIncrementalLoading",void 0);_.C([_.O(),_.V("design:type",String)],xp.prototype,"placeholder",void 0);_.C([_.O({value:""}),_.V("design:type",String)],xp.prototype,"search",void 0);_.C([_.O({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.V("design:type",Boolean)],xp.prototype,"searching",void 0);_.C([_.O({computed:"computeSearchCategory_(search)"}),_.V("design:type",Object)],xp.prototype,"searchCategory",void 0);
_.C([_.O({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.V("design:type",Object)],xp.prototype,"searchEmptyMessage",void 0);_.C([_.O({computed:"identity(emojiManager.skinTone)"}),_.V("design:type",Number)],xp.prototype,"skinTone",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],xp.prototype,"skinToneOpened",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],xp.prototype,"variantSelectorOpened",void 0);
_.C([_.O({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.V("design:type",Boolean)],xp.prototype,"skinToneHidden",void 0);_.C([_.O(),_.V("design:type",_.lY)],xp.prototype,"emojiManager",void 0);_.C([_.O(),_.V("design:type",Object)],xp.prototype,"emojiVariantSelector",void 0);_.C([_.O(),_.V("design:type",Object)],xp.prototype,"emojiMultiPersonSelector",void 0);
_.C([_.O({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.V("design:type",Boolean)],xp.prototype,"shouldUseStickyPreferences",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xp.prototype,"dataChanged",null);_.C([_.za("data","selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xp.prototype,"updateCategoriesAndPlaceholder_",null);
_.C([_.EB("yt-show-emoji-variant-selector"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],xp.prototype,"onShowEmojiVariantSelector",null);_.C([_.EB("yt-emoji-picker-select-category"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],xp.prototype,"onSelectCategory_",null);_.C([_.EB("yt-emoji-hover"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],xp.prototype,"onEmojiHover_",null);
_.C([_.za("skinTone"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xp.prototype,"skinToneChanged_",null);_.C([_.za("search"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xp.prototype,"searchChanged_",null);_.C([_.Vu({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],xp);
_.b(xp,"yt-emoji-picker-renderer",function(){if(QTL===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;puz===void 0&&(puz=document.createElement("template"));var u=puz;t.call(q,u.content.cloneNode(!0),F.content.firstChild);QTL=F}F=QTL;return F},{mode:2});var At=function(){var F=_.x.apply(this,arguments)||this;F.emojiManager=_.p7;F.isDarkTheme=document.documentElement.hasAttribute("dark");F.selectedIndex=1;F.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return F};
_.M(At,_.x);_.l=At.prototype;_.l.handleEmojiCustomizationVisible=function(F){this.emojiPickerRenderer.selected=F;this.selectedIndex=1;F?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.l.emojiCustomizationSetChanged=function(){var F;(F=this.data)!=null&&F.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.By(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.l.updateSaveButtonState=function(F){var q;(q=this.data)!=null&&q.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Gl("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:F}))};
_.l.emojiUrl=function(F){F=_.XX(this.emojiManager,F);if(!F)return"";var q;F=(q=F.image)==null?void 0:q.thumbnails;return _.ZR(F,24)||""};
_.l.emojiAlt=function(F){var q=_.XX(this.emojiManager,F);if(!q)return F;var t,u,J,g=(q==null?void 0:(t=q.image)==null?void 0:(u=t.accessibility)==null?void 0:(J=u.accessibilityData)==null?void 0:J.label)||"";return g?g:q.isCustomEmoji?q.shortcuts[0]:q.emojiId||F};
_.l.emojiAriaLabel=function(F){var q,t;return((q=_.XX(this.emojiManager,F))==null?void 0:(t=q.shortcuts)==null?void 0:t[0])||F};
_.l.onEmojiClick=function(F){F.model.index!==0&&(this.selectedIndex=F.model.index)};
_.l.onEmojiSelect=function(F){F=F.detail;var q,t;((q=this.data)==null?0:q.emojiCustomizationSetEntityKey)&&((t=this.emojiCustomizationSet)==null?0:t.emojiId)&&F.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,F.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Gl("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,F.emojiId,this.selectedIndex)}))};
_.l.canEditEmoji=function(F,q,t){F=F.indexOf(q);return F===t||F===0||t===0?!1:!0};
_.l.getUpdatedEmojiIdList=function(F,q,t){var u=F.indexOf(q);F=[].concat(_.mZ(F));u>=0&&(F[u]=F[t]);F[t]=q;return F};
_.JJ.Object.defineProperties(At,{template:{configurable:!0,enumerable:!0,get:function(){if(m_E===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;HaJ===void 0&&(HaJ=document.createElement("template"));var u=HaJ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);m_E=F}F=m_E;return F}}});
At.prototype.onEmojiSelect=At.prototype.onEmojiSelect;_.C([_.D(_.gv),_.V("design:type",Object)],At.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],At.prototype,"ytActionHandlerBehavior",void 0);_.C([_.Ms("yt-emoji-picker-renderer"),_.V("design:type",Object)],At.prototype,"emojiPickerRenderer",void 0);
_.C([_.O({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(F,q){return _.iC(F.entities,"emojiCustomizationSetEntity",q)},
observer:"emojiCustomizationSetChanged"}),_.V("design:type",Object)],At.prototype,"emojiCustomizationSet",void 0);_.C([_.O(),_.V("design:type",Object)],At.prototype,"originalEmojiSet",void 0);_.C([_.O(),_.V("design:type",_.lY)],At.prototype,"emojiManager",void 0);_.C([_.O(),_.V("design:type",Object)],At.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],At.prototype,"isDarkTheme",void 0);_.C([_.O(),_.V("design:type",Object)],At.prototype,"selectedIndex",void 0);
_.C([_.EB("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],At.prototype,"onEmojiSelect",null);_.C([_.Vu({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],At);var ifj;var kRr;var E0L;var zjw;var IA=function(){var F=_.x.apply(this,arguments)||this;F.authorBadges=[];return F};
_.M(IA,_.x);_.l=IA.prototype;_.l.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.l.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]]"}}}}}};
_.l.dataChanged=function(){var F=xuA(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",F)};
_.l.updateMessage=function(){var F=this.data.message,q=_.ep(_.ep(this.hostElement).querySelector("#message"));q.textContent="";F&&q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(F))};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.l.onShowOriginalClick=function(F){F.preventDefault();this.showOriginal=!0};
_.l.computeShowBar=function(F,q,t){return F&&q||t};
_.l.computeAuthorBadges=function(F){return F.authorBadges||[]};
_.l.computeAuthorIsOwner=function(F){return!!Ae3(F.authorBadges,"owner")};
_.l.computeAuthorNameColor=function(F){var q;if(_.E("live_chat_author_name_color_usernames")&&(F==null?0:(q=F.authorName)==null?0:q.simpleText))return _.bKy(_.yeo(F.authorName.simpleText));if(_.E("live_chat_seed_color_usernames")&&(F==null?0:F.authorSeedColorArgb))return _.bKy(_.id(F.authorSeedColorArgb));if(_.E("live_chat_colored_usernames"))return"#cc0000";var t;return _.E("live_chat_simple_color_usernames")&&(F==null?0:(t=F.authorName)==null?0:t.simpleText)&&(F==null?0:F.authorUsernameColorLight)&&
(F==null?0:F.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.id(F.authorUsernameColorDark):_.id(F.authorUsernameColorLight):""};
IA.prototype.updateMessage=IA.prototype.updateMessage;IA.prototype.dataChanged=IA.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],IA.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],IA.prototype,"data",void 0);
_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],IA.prototype,"showOriginal",void 0);_.C([_.O({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.V("design:type",Boolean)],IA.prototype,"isDimmed",void 0);_.C([_.O({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.V("design:type",Boolean)],IA.prototype,"showBar",void 0);
_.C([_.O({computed:"computeAuthorBadges(data)"}),_.V("design:type",Array)],IA.prototype,"authorBadges",void 0);_.C([_.O({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],IA.prototype,"authorIsOwner",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],IA.prototype,"inCollapsedBanner",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],IA.prototype,"inBanner",void 0);
_.C([_.O({value:_.E("live_chat_hide_avatars"),reflectToAttribute:!0}),_.V("design:type",Boolean)],IA.prototype,"avatarHidden",void 0);_.C([_.O({computed:"computeAuthorNameColor(data)"}),_.V("design:type",String)],IA.prototype,"authorNameColor",void 0);_.C([_.O(),_.V("design:type",_.rt)],IA.prototype,"participantsManager",void 0);_.C([_.O({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.V("design:type",Object)],IA.prototype,"filledButtonOverrides",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IA.prototype,"dataChanged",null);_.C([_.za("data.message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IA.prototype,"updateMessage",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],IA);
_.b(IA,"yt-live-chat-text-message-renderer",function(){if(zjw===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;E0L===void 0&&(E0L=document.createElement("template"));var u=E0L;t.call(q,u.content.cloneNode(!0),F.content.firstChild);zjw=F}F=zjw;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var H8=function(){var F=_.x.apply(this,arguments)||this;F.tonalButtonOverrides={type:"tonal",style:"overlay"};return F};
_.M(H8,_.x);
H8.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]]"}}}}}};
H8.prototype.shouldSupportInlineActionButtons=function(){return!0};
H8.prototype.shouldSupportWholeItemClick=function(){return!0};
_.JJ.Object.defineProperties(H8.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],H8.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],H8.prototype,"data",void 0);_.C([_.O(),_.V("design:type",_.rt)],H8.prototype,"participantsManager",void 0);
_.C([_.O(),_.V("design:type",Object)],H8.prototype,"tonalButtonOverrides",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data.infoDialogButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],H8.prototype,"hasInfoDialogButton",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],H8);
_.b(H8,"yt-live-chat-auto-mod-message-renderer",function(){if(kRr===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;ifj===void 0&&(ifj=document.createElement("template"));var u=ifj;t.call(q,u.content.cloneNode(!0),F.content.firstChild);kRr=F}F=kRr;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var o0E;var n0J;var MwL;var TAw=function(){return _.x.apply(this,arguments)||this};
_.M(TAw,_.x);_.C([_.O(),_.V("design:type",Object)],TAw.prototype,"data",void 0);_.C([_.m({is:"ytd-factoid-renderer",disableElementRegistration:!0})],TAw);
_.b(TAw,"ytd-factoid-renderer",function(){if(MwL!==void 0)return MwL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return MwL=F},{mode:1});var me=function(){return _.x.apply(this,arguments)||this};
_.M(me,_.x);me.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.C([_.O(),_.V("design:type",Object)],me.prototype,"data",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],me);
_.b(me,"yt-live-chat-channel-activity-reputation-renderer",function(){if(n0J===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;o0E===void 0&&(o0E=document.createElement("template"));var u=o0E;t.call(q,u.content.cloneNode(!0),F.content.firstChild);n0J=F}F=n0J;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var GRj;var DlC;var $p=function(){return _.x.apply(this,arguments)||this};
_.M($p,_.x);$p.prototype.ready=function(){var F=document.querySelector("yt-live-chat-app");F&&F.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Boolean)],$p.prototype,"menuFocused",void 0);_.C([_.O(),_.V("design:type",Object)],$p.prototype,"data",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],$p.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],$p);
_.b($p,"yt-live-chat-donation-announcement-renderer",function(){if(DlC===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;GRj===void 0&&(GRj=document.createElement("template"));var u=GRj;t.call(q,u.content.cloneNode(!0),F.content.firstChild);DlC=F}F=DlC;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var WGE;var Ofe,PUE=function(){if(Ofe!==void 0)return Ofe;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;WGE===void 0&&(WGE=document.createElement("template"));var u=WGE;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return Ofe=F};var bY=function(){return _.x.apply(this,arguments)||this};
_.M(bY,_.x);_.JJ.Object.defineProperties(bY,{template:{configurable:!0,enumerable:!0,get:function(){return PUE()}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],bY.prototype,"data",void 0);_.C([_.Vu({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],bY);_.b(bY,"yt-live-chat-empty-feed-view-model",function(){return PUE()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var xld;var ASJ;var yA=function(){return _.x.apply(this,arguments)||this};
_.M(yA,_.x);yA.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"}}}}}};
_.JJ.Object.defineProperties(yA.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var F,q;return{runs:[{text:(F=this.data)==null?void 0:(q=F.channelName)==null?void 0:q.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var F=[],q;if((q=this.data)==null||!q.channelBadges)return F;var t;q=_.X((t=this.data)==null?void 0:t.channelBadges);for(t=q.next();!t.done;t=q.next()){t=_.n(t.value,wNO);var u=void 0,J=void 0;if((u=t)==null?0:(J=u.badgeImage)==null?0:J.sources)u=void 0,J={liveChatAuthorBadgeRenderer:{tooltip:t.tooltip,accessibility:{accessibilityData:{label:(u=_.n(t.rendererContext,_.vX))==null?void 0:u.label}}}},t.badgeImage.sources[0].clientResource?J.liveChatAuthorBadgeRenderer.icon=
{iconType:t.badgeImage.sources[0].clientResource.imageName}:J.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:t.badgeImage.sources},F.push(J)}return F}}});
_.C([_.O(),_.V("design:type",Object)],yA.prototype,"data",void 0);_.C([_.W("data.channelName"),_.V("design:type",Object),_.V("design:paramtypes",[])],yA.prototype,"channelName",null);_.C([_.W("data.channelBadges"),_.V("design:type",Array),_.V("design:paramtypes",[])],yA.prototype,"channelBadges",null);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],yA);
_.b(yA,"yt-live-chat-identity-view-model",function(){if(ASJ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;xld===void 0&&(xld=document.createElement("template"));var u=xld;t.call(q,u.content.cloneNode(!0),F.content.firstChild);ASJ=F}F=ASJ;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var v0w;var Iyv;var HfJ;var mln;var C7=function(){var F=_.x.apply(this,arguments)||this;F.hidden=!1;F.supportsInlineActionButtons=!0;return F};
_.M(C7,_.x);C7.prototype.ready=function(){var F;((F=document.querySelector("yt-live-chat-app"))==null?0:F.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
C7.prototype.dataChanged=function(F){var q=(0,_.Ns)(_.ep(this.hostElement).querySelector("#detail-text"));q.textContent="";(F==null?0:F.detailText)&&q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(F.detailText))};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],C7.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O({observer:"dataChanged"}),_.V("design:type",Object)],C7.prototype,"data",void 0);
_.C([_.O({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.V("design:type",Object)],C7.prototype,"hidden",void 0);_.C([_.m({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],C7);
_.b(C7,"yt-live-chat-legacy-paid-message-renderer",function(){if(mln===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;HfJ===void 0&&(HfJ=document.createElement("template"));var u=HfJ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);mln=F}F=mln;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var $lz;var bfJ;var ySL={},dt=function(){return _.Ga.apply(this,arguments)||this};
_.M(dt,_.Ga);dt.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
dt.prototype.onLiveChatMembershipItemBehaviorClick=dt.prototype.onLiveChatMembershipItemBehaviorClick;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],dt.prototype,"data",void 0);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],dt.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.C([_.Dj()],dt);
ySL.YtLiveChatMembershipItemBehavior=[dt.prototype,_.B.YtRendererBehavior];var VA=function(){var F=_.x.apply(this,arguments)||this;F.supportsInlineActionButtons=!0;F.hasPrimaryHeaderText=!1;F.showOnlyHeader=!1;F.authorBadges=[];F.modern=_.E("web_button_rework_with_live");F.buttonOverrides={style:"overlay",type:"filled"};return F};
_.M(VA,_.x);_.l=VA.prototype;_.l.shouldSupportInlineActionButtons=function(){return!0};
_.l.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.l.ready=function(){var F=document.querySelector("yt-live-chat-app");F&&F.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.l.messageChanged=function(){var F=this.data.message,q=(0,_.Ns)(_.ep(this.hostElement).querySelector("#message"));q.textContent="";F&&q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(F))};
_.l.computeHasPrimaryHeaderText=function(F){return!(!F||!F.headerPrimaryText)};
_.l.computeShowOnlyHeader=function(F,q){return this.isMessageEmpty(F,q)};
_.l.computeAuthorBadges=function(F){return F.authorBadges||[]};
_.l.isMessageEmpty=function(F,q){return!F||F.empty?!0:!F.message&&!F.inputField&&!q};
_.l.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.l.getInputElement=function(){return _.ep(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.l.inputFocus=function(){var F=this.getInputElement();F&&F.focus()};
_.l.inputInsertEmoji=function(F){var q=this.getInputElement();q&&q.insertEmoji(F)};
_.l.inputMessage=function(){var F=this.getInputElement();return F&&this.data.inputField?(F.completeEmojis(),_.hT(F.liveChatRichMessageInput)):null};
_.l.onFooterButtonClick=function(){this.data.footerButton&&_.Q0(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.l.shouldSupportWholeItemClick=function(){return!0};
VA.prototype.isDeletedChanged=VA.prototype.isDeletedChanged;VA.prototype.messageChanged=VA.prototype.messageChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],VA.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.D(ySL.YtLiveChatMembershipItemBehavior),_.V("design:type",Object)],VA.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],VA.prototype,"data",void 0);_.C([_.O({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.V("design:type",Object)],VA.prototype,"hasPrimaryHeaderText",void 0);_.C([_.O({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.V("design:type",Object)],VA.prototype,"showOnlyHeader",void 0);
_.C([_.O({computed:"computeAuthorBadges(data)"}),_.V("design:type",Array)],VA.prototype,"authorBadges",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],VA.prototype,"modern",void 0);_.C([_.za("data.message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],VA.prototype,"messageChanged",null);_.C([_.za("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],VA.prototype,"isDeletedChanged",null);
_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],VA);
_.b(VA,"yt-live-chat-membership-item-renderer",function(){if(bfJ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;$lz===void 0&&($lz=document.createElement("template"));var u=$lz;t.call(q,u.content.cloneNode(!0),F.content.firstChild);bfJ=F}F=bfJ;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var CUO;var dlf;var Un=function(){return _.x.apply(this,arguments)||this};
_.M(Un,_.x);Un.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Un.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Un.prototype,"data",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Un);
_.b(Un,"yt-live-chat-mode-change-message-renderer",function(){if(dlf===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;CUO===void 0&&(CUO=document.createElement("template"));var u=CUO;t.call(q,u.content.cloneNode(!0),F.content.firstChild);dlf=F}F=dlf;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Vwd;var Ulj;var SD=function(){return _.x.apply(this,arguments)||this};
_.M(SD,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],SD.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],SD.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],SD.prototype,"data",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],SD);
_.b(SD,"yt-live-chat-moderation-message-renderer",function(){if(Ulj===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Vwd===void 0&&(Vwd=document.createElement("template"));var u=Vwd;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Ulj=F}F=Ulj;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Szd;var hje;var ht=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("web_button_rework");return F};
_.M(ht,_.x);ht.prototype.onClick=function(){var F;if((F=this.data)!=null&&F.onClickCommand){var q;_.oc.instance.resolveCommand((q=this.data)==null?void 0:q.onClickCommand)}};
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],ht.prototype,"modern",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.gv),_.V("design:type",Object)],ht.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],ht.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],ht.prototype,"data",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],ht);
_.b(ht,"yt-live-chat-offer-click-count-message-renderer",function(){if(hje===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Szd===void 0&&(Szd=document.createElement("template"));var u=Szd;t.call(q,u.content.cloneNode(!0),F.content.firstChild);hje=F}F=hje;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var KGe;var BAC=function(){return _.x.apply(this,arguments)||this};
_.M(BAC,_.x);_.C([_.O(),_.V("design:type",Object)],BAC.prototype,"data",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],BAC);
_.b(BAC,"yt-live-chat-placeholder-item-renderer",function(){if(KGe===void 0){var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);KGe=F}F=KGe;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var LGw;var fyC;var ayf=new jz(7),K7=function(){var F=_.x.apply(this,arguments)||this;F.data={};return F};
_.M(K7,_.x);K7.prototype.dataChanged=function(){var F;((F=this.data)==null?0:F.class)&&_.RE(this.hostElement,this.data.class,!0);var q;((q=this.oldData)==null?0:q.class)&&_.RE(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
K7.prototype.computeTimestampString=function(F){return ayf.format(new Date(F/1E3))};
K7.prototype.dataChanged=K7.prototype.dataChanged;_.C([_.O(),_.V("design:type",Object)],K7.prototype,"data",void 0);_.C([_.O({computed:"computeTimestampString(data.timestampUsec)"}),_.V("design:type",String)],K7.prototype,"timestampString",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],K7.prototype,"dataChanged",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],K7);
_.b(K7,"yt-live-chat-server-error-message",function(){if(fyC===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;LGw===void 0&&(LGw=document.createElement("template"));var u=LGw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);fyC=F}F=fyC;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var jTr;var cSO;var B8=function(){var F=_.x.apply(this,arguments)||this;F.defaultToFilledIcon=!1;return F};
_.M(B8,_.x);B8.prototype.computeHasPrimaryColorIcon=function(F){return F==="SPARK"||F==="SPONSORSHIP_STAR"};
B8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],B8.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],B8.prototype,"defaultToFilledIcon",void 0);_.C([_.O(),_.V("design:type",Object)],B8.prototype,"data",void 0);
_.C([_.O({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.V("design:type",Boolean)],B8.prototype,"hasPrimaryColorIcon",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],B8);
_.b(B8,"yt-live-chat-viewer-engagement-message-renderer",function(){if(cSO===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;jTr===void 0&&(jTr=document.createElement("template"));var u=jTr;t.call(q,u.content.cloneNode(!0),F.content.firstChild);cSO=F}F=cSO;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var FUz;var L7=function(){var F=_.x.apply(this,arguments)||this;F.modernUpdate=!1;F.buttonStyle="overlay";F.buttonType="filled";return F};
_.M(L7,_.x);L7.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
L7.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],L7.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],L7.prototype,"modernUpdate",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],L7.prototype,"buttonStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],L7.prototype,"buttonType",void 0);
_.C([_.m({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],L7);
_.b(L7,"ytd-ad-hover-text-button-renderer",function(){if(FUz!==void 0)return FUz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return FUz=F},{mode:1});var qZe;var f7=function(){var F=_.x.apply(this,arguments)||this;F.buttonOverrides={size:"XS"};F.modern=_.E("web_button_rework");return F};
_.M(f7,_.x);f7.prototype.onHelpTap=function(F){this.data&&this.data.informationDialog&&(_.Q0(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),F.preventDefault(),F.stopPropagation())};
_.C([_.O(),_.V("design:type",Object)],f7.prototype,"buttonOverrides",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],f7.prototype,"modern",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],f7.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],f7);
_.b(f7,"ytd-live-chat-purchased-product-message-renderer",function(){if(qZe!==void 0)return qZe;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return qZe=F},{mode:1});var tIe;var uBE;var aA=function(){var F=_.x.apply(this,arguments)||this;F.isContainerDeleted=!1;return F};
_.M(aA,_.x);aA.prototype.onContextMenuClick=function(F){this.ytLiveChatItemBehavior.showContextMenu(F)};
aA.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))};
aA.prototype.isContainerDeletedChanged=aA.prototype.isContainerDeletedChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],aA.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],aA.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],aA.prototype,"isContainerDeleted",void 0);
_.C([_.O(),_.V("design:type",String)],aA.prototype,"deletedStateMessage",void 0);_.C([_.za("isContainerDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aA.prototype,"isContainerDeletedChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],aA);
_.b(aA,"ytd-sponsorships-live-chat-header-renderer",function(){if(uBE!==void 0)return uBE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return uBE=F},{mode:1});var jD=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("web_button_rework_with_live");F.buttonOverrides={style:"overlay",type:"filled"};return F};
_.M(jD,_.x);jD.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]]"}}}}}};
jD.prototype.onCtaButtonClick=function(){var F,q=_.n((F=this.data)==null?void 0:F.optInPrompt,_.th);if(F=this.maybeGetButtonCommand(q)){var t;(t=_.DP())==null||t.clickCommand(F)}};
jD.prototype.maybeGetButtonCommand=function(F){return!F||!F.command||_.n(F.command,qbj)===void 0&&_.n(F.command,Fud)===void 0?null:F.command};
jD.prototype.shouldHideOptinPrompt=function(F,q){return!F||q};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],jD.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],jD.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jD.prototype,"modern",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],jD);
_.b(jD,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(tIe!==void 0)return tIe;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return tIe=F},{mode:1});var J51;var c8=function(){return _.x.apply(this,arguments)||this};
_.M(c8,_.x);c8.prototype.onContextMenuClick=function(F){this.ytLiveChatItemBehavior.showContextMenu(F)};
c8.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))};
c8.prototype.isDeletedChanged=c8.prototype.isDeletedChanged;_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],c8.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],c8.prototype,"data",void 0);_.C([_.za("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c8.prototype,"isDeletedChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],c8);
_.b(c8,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(J51!==void 0)return J51;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return J51=F},{mode:1});var F7=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return F};
_.M(F7,_.x);_.l=F7.prototype;
_.l.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"}}}};
_.l.handleLiveChatAction=function(F){_.n(F,yd1)?this.handleMarkChatItemAsDeletedAction(_.n(F,yd1)):_.n(F,bgn)&&this.handleRemoveChatItemAction(_.n(F,bgn))};
_.l.handleLiveChatActions=function(F){F.forEach(this.handleLiveChatAction,this)};
_.l.handleMarkChatItemAsDeletedAction=function(F){var q=this,t;((t=this.data)==null?0:t.items)&&this.data.items.forEach(function(u,J){var g=Object.keys(u)[0];Object.values(u)[0].id===F.targetItemId&&q.markAsDeleted("data.items",J,g,F.deletedStateMessage,F.showOriginalContentMessage)})};
_.l.handleRemoveChatItemAction=function(F){var q=this,t;((t=this.data)==null?0:t.items)&&this.data.items.forEach(function(u,J){Object.values(u)[0].id===F.targetItemId&&q.splice("data.items",J,1)})};
_.l.markAsDeleted=function(F,q,t,u,J){F=[F,q,t].join(".");this.set(F+".deletedStateMessage",u);this.set(F+".showOriginalContentMessage",J)};
_.C([_.O(),_.V("design:type",Object)],F7.prototype,"data",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],F7.prototype,"ytActionHandlerBehavior",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],F7);
_.b(F7,"yt-live-chat-item-display-list-renderer",function(){if(Iyv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;v0w===void 0&&(v0w=document.createElement("template"));var u=v0w;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Iyv=F}F=Iyv;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var s7x;var g3C,lKx=function(){if(g3C!==void 0)return g3C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;s7x===void 0&&(s7x=document.createElement("template"));var u=s7x;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return g3C=F};var q$=function(){var F=_.x.apply(this,arguments)||this;F.isHeader=!1;return F};
_.M(q$,_.x);q$.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.JJ.Object.defineProperties(q$,{template:{configurable:!0,enumerable:!0,get:function(){return lKx()}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],q$.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],q$.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],q$.prototype,"isHeader",void 0);_.C([_.Vu({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],q$);_.b(q$,"yt-live-chat-item-display-renderer",function(){return lKx()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var XqO,YZw,R6J,Zxz;
XqO={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}};YZw={home:"eohps",search:"eosps",watch:"eowps"};_.pqe=["watch","search","home"];
_.tF=function(){this.JSC$14283_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14283_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.bn("PRECONSTRUCTION_DELAY",0);this.signals_=_.g7();this.targetPage_=""};
_.tF.prototype.init=function(F,q){F=F===void 0?"":F;q=q===void 0?null:q;if(this.JSC$14283_isInitialized_)this.abort();else if(this.JSC$14283_isInitialized_=!0,F&&_.Q7O(this,F),q){var t=_.lW(this.signals_,"pcl")?0:10,u=function(){for(var J=0,g;g=_.pqe[J++];)g!=F&&g!=q&&this.pendingPages_.push(g);_.e6n(this)}.bind(this);
this.signals_.parkOrScheduleJob(u,t,"pcl")}};
_.tF.prototype.abort=function(){this.fragmentJobId_&&(_.mI.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Zxz(this)};
_.Q7O=function(F,q){F.JSC$14283_isInitialized_&&!F.targetPage_&&(F.targetPage_=q,R6J(F,q),F.isInitialPass_=!1,R6J(F,q),F.signals_.processSignal(YZw[F.targetPage_]),Zxz(F),_.e6n(F))};
_.e6n=function(F){F.pendingPages_.length&&!F.pagePreparerJobId_&&(F.pagePreparerJobId_=_.W2(_.mI,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.Q7O(this,this.pendingPages_.shift())}.bind(F),F.DEFAULT_DELAY_))};
R6J=function(F,q){if(q=XqO[q])for(var t in q){var u=!1,J=t;t.charAt(0)=="~"&&(u=!0,J=t.substring(1));var g=q[t];g=typeof g=="object"?g:{count:g};q[t]=g;g.componentName=J;g.count>0&&(F.isInitialPass_?u||F.isSeenDuringInitialPass_[J]||(F.JSC$14283_queue_.push({componentName:J,count:1,signals:g.signals}),F.isSeenDuringInitialPass_[J]=!0,g.count--):F.JSC$14283_queue_.push(g))}};
Zxz=function(F){F.JSC$14283_queue_.length=0;F.targetPage_="";F.isInitialPass_=!0;F.signals_.processSignal("eop")};
_.tF.getInstance=function(){return _.qF(_.tF)};var r5J=function(){this.signals=_.g7();this.init()};
r5J.prototype.startPreconstruction=function(){_.tF.getInstance().init(_.yG("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
r5J.prototype.init=function(){Nkr(this);window.Polymer&&Ubr&&zDy();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var F=_.uu.ytcsi;if(F&&F.gt&&(F=F.gt())&&F.tick&&(F.tick.aft>0||F.tick.pbs>0)&&(_.yG("IS_HOMEPAGE_COLD")||_.yG("IS_RESULTS_PAGE_COLD")||_.yG("IS_WATCH_PAGE_COLD"))){wqJ(this);break a}oMq(Nzf,this.onNotifications,this)}};
var Nkr=function(F){var q=function(){F.signals.processSignal("dl")};
document.readyState==="complete"?(_.hN(Error("th"),"WARNING"),q()):_.jco(window,"load",q)};
r5J.prototype.onNotifications=function(F){F.timer||(_.yG("IS_HOMEPAGE_COLD")||_.yG("IS_RESULTS_PAGE_COLD")||_.yG("IS_WATCH_PAGE_COLD"))&&wqJ(this)};
var wqJ=function(F){F.signals.parkOrScheduleJob(function(){F.signals.processSignal("eocs")},10,"eor")};
new r5J;var ur,ixx=function(){return _.Ga.apply(this,arguments)||this};
_.M(ixx,_.Ga);_.l=ixx.prototype;_.l.enableActiveViewMeasurement=function(F){if(this.isActiveViewEnabled(F)){var q=this.getUrlPrefixesFromCommand(F.viewableCommands);F=this.getUrlPrefixesFromCommand(F.endOfSessionCommands);if(!ur){var t=_.YE("custom_active_view_tos_timeout_ms");ur=t>0&&t!==36E5?new fuP(this.getVersion(),t):new fuP(this.getVersion())}jiW(ur,this.hostElement);csf(ur,this.hostElement,q,F)}};
_.l.stopActiveViewMeasurement=function(){ur&&jiW(ur,this.hostElement)};
_.l.isActiveViewEnabled=function(F){return!!F&&(this.hasAtLeastOneUrl(F.viewableCommands)||this.hasAtLeastOneUrl(F.endOfSessionCommands))};
_.l.hasAtLeastOneUrl=function(F){return!!F&&F.length>0&&F[0].loggingUrls!=null&&F[0].loggingUrls.length>0};
_.l.getVersion=function(){var F=_.bn("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(F==null?void 0:F.length)===2?F[1]:null};
_.l.getUrlPrefixesFromCommand=function(F){if(!F)return[];var q=[];F=_.X(F);for(var t=F.next();!t.done;t=F.next())if(t=t.value,t.loggingUrls){t=_.X(t.loggingUrls);for(var u=t.next();!u.done;u=t.next())u=u.value,u.baseUrl&&q.push(u.baseUrl)}return q};
_.C([_.Dj()],ixx);var JF=[ixx.prototype];var kcL=function(){return _.Ga.apply(this,arguments)||this};
_.M(kcL,_.Ga);_.JJ.Object.defineProperties(kcL.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_entity_store_from_dependency_injection")?_.tv():_.u1()}}});
_.C([_.Dj()],kcL);_.s9=[cG.prototype,kcL.prototype];var E3e=["ytd-rich-shelf-renderer"],g8=function(){var F=_.Ga.apply(this,arguments)||this;F._noAccessors=!0;F.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";F.followUpDialogPromise=null;F.followUpDialogPromiseResolve=null;F.followUpDialogPromiseReject=null;return F};
_.M(g8,_.Ga);_.l=g8.prototype;_.l.dismissibleItemIsDismissedChanged_=function(F){_.E("kevlar_fluid_dismiss")&&(F?_.Q0(this.hostElement,"yt-dismissible-item-dismissed"):_.Q0(this.hostElement,"yt-dismissible-item-undismissed"))};
_.l.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.l.dismissibleItemReset_=function(){var F=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.iz(function(q,t){F.followUpDialogPromiseResolve=q;F.followUpDialogPromiseReject=t});
_.Q0(this.hostElement,"yt-enable-lockup-interaction")};
_.l.dismissibleItemOnYtServiceRequestSent_=function(F,q){q.actions&&this.dismissibleItemProcessActions(q.actions,F)};
_.l.dismissibleItemOnRequestSent=function(F){if(_.E("web_button_rework"))for(var q=_.X(F.detail),t=q.next();!t.done;t=q.next()){var u=void 0;(t=(u=_.n(t.value,_.ko))==null?void 0:u.actions)&&this.dismissibleItemProcessActions(t,F)}};
_.l.dismissibleItemOnCommandSent=function(F,q){q&&this.dismissibleItemProcessActions(q,F)};
_.l.setAndGetDismissedContentId=function(F){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+F};
_.l.replayDismissAction=function(F){this.dismissibleItemProcessActions([F])};
_.l.dismissibleItemProcessActions=function(F,q){for(var t=0;t<F.length;t++){var u=F[t],J=void 0;((J=_.n(u,_.wY))==null?0:J.commands)&&this.dismissibleItemProcessActions(_.n(u,_.wY).commands,q);if(_.n(u,_.HX)){if(J=_.n(u,_.HX),!J.replaceParentSection||E3e.includes(this.hostElement.nodeName.toLowerCase()))J.groupDismissal&&qZ3(this,J.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(J),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Gl("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:u})),u=void 0,(u=q)==null||u.stopPropagation()}else if(_.n(u,bRv))this.dismissibleItemHandleHideEnclosingAction_(),u=void 0,(u=q)==null||u.stopPropagation();else if(_.n(u,XLr))u=_.n(u,XLr),J=void 0,((J=u)==null?0:J.targetGroupId)&&qZ3(this,{targetGroupId:u.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Gl("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
u=void 0,(u=q)==null||u.stopPropagation();else if(_.n(u,_.ko))(u=_.n(u,_.ko).actions)&&_.rY(this.hostElement,u,this.hostElement),u=void 0,(u=q)==null||u.stopPropagation();else{var g=J=void 0;((J=_.n(u,_.UD))==null?void 0:J.signal)!=="TELL_US_WHY"||((g=_.n(u,_.UD))==null?0:g.targetId)&&_.E("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),u=void 0,(u=q)==null||u.stopPropagation())}}};
_.l.dismissibleItemOnYtServiceRequestCompleted_=function(F,q){var t=this.get("feedbackResponses.0.followUpDialog",q.data);t?this.followUpDialogPromiseResolve(t):q.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(q.actions,F)};
_.l.dismissibleItemHandleReplaceEnclosingAction_=function(F){this.dismissedRenderer=F.item;this.isDismissed=!0;var q=null;(q=_.ep(this.hostElement).querySelector("#dismissed"))&&_.tJ(this,function(){_.ct(q)});
_.Q0(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.l.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.l.dismissibleItemHandleUndoFeedbackAction_=function(){_.Q0(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.l.dismissibleItemHandleTellUsWhySignalAction_=function(){var F=this;this.followUpDialogPromise.then(function(q){F.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:q}})})};
g8.prototype.dismissibleItemOnYtServiceRequestCompleted_=g8.prototype.dismissibleItemOnYtServiceRequestCompleted_;g8.prototype.dismissibleItemOnCommandSent=g8.prototype.dismissibleItemOnCommandSent;g8.prototype.dismissibleItemOnRequestSent=g8.prototype.dismissibleItemOnRequestSent;g8.prototype.dismissibleItemOnYtServiceRequestSent_=g8.prototype.dismissibleItemOnYtServiceRequestSent_;g8.prototype.dismissibleItemDataChanged_=g8.prototype.dismissibleItemDataChanged_;
g8.prototype.dismissibleItemIsDismissedChanged_=g8.prototype.dismissibleItemIsDismissedChanged_;_.C([_.D(_.En),_.V("design:type",Object)],g8.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],g8.prototype,"ytdReduxBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],g8.prototype,"isDismissed",void 0);_.C([_.O(),_.V("design:type",Object)],g8.prototype,"dismissedRenderer",void 0);
_.C([_.za("isDismissed"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean]),_.V("design:returntype")],g8.prototype,"dismissibleItemIsDismissedChanged_",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g8.prototype,"dismissibleItemDataChanged_",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],g8.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.C([_.EB("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],g8.prototype,"dismissibleItemOnRequestSent",null);
_.C([_.EB("yt-dismissible-item-action"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Array]),_.V("design:returntype")],g8.prototype,"dismissibleItemOnCommandSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],g8.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.C([_.Dj()],g8);_.lr=[_.En,_.s9,g8.prototype];var X7=function(){var F=_.Ga.apply(this,arguments)||this;F.disableGridStateAware=!1;F.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};F.currentGridClass="";return F};
_.M(X7,_.Ga);X7.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.tJ(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var F=this.gridStateAwareGetElement();_.RE(F,"grid",!0)}};
X7.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
X7.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.ep(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
X7.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var F="grid-disabled";else{F=_.lYL.getInstance();var q=this.get("pageSubtype");F=q&&J0j.includes(q)?"grid-disabled":F.currentSnapState_?F.currentSnapState_.className:null}(q=this.gridStateAwareGetElement())&&F!==this.currentGridClass&&(F&&_.RE(q,F,!0),this.currentGridClass&&_.RE(q,this.currentGridClass,!1),this.currentGridClass=F)};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],X7.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",String)],X7.prototype,"gridStateAwareSizingElementSelector",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],X7.prototype,"disableGridStateAware",void 0);_.C([_.Dj()],X7);_.p_=[X7.prototype,_.$9.YtActionHandlerBehavior];_.QE=new _.pg("GUIDE_TOKEN");var ZO;_.ee={};ZO=function(){var F=_.Ga.apply(this,arguments)||this;F.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return F};
_.M(ZO,_.Ga);_.l=ZO.prototype;_.l.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.l.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var F=_.sV().resolve(_.JU(_.QE));F&&(this.guidePersistentAndVisible=F.getGuidePersistentAndVisible(),this.activeEndpoint=F.getActiveEndpoint(),this.guideOpened=F.getGuideOpened(),this.miniGuideVisible=F.getMiniGuideVisible())};
_.l.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.l.handleGuideStateAction=function(F){this.guidePersistentAndVisible=F};
_.l.handleMiniGuideStateAction=function(F){this.miniGuideVisible=F};
_.l.handleGuideOpenedAction=function(F){this.guideOpened=F};
_.l.handleActiveEndpointAction=function(F){this.activeEndpoint=F};
ZO.prototype.onActiveEndpointChange=ZO.prototype.onActiveEndpointChange;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],ZO.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],ZO.prototype,"guidePersistentAndVisible",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],ZO.prototype,"miniGuideVisible",void 0);_.C([_.O(),_.V("design:type",Object)],ZO.prototype,"activeEndpoint",void 0);
_.C([_.za("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZO.prototype,"onActiveEndpointChange",null);_.C([_.O(),_.V("design:type",Boolean)],ZO.prototype,"guideOpened",void 0);_.C([_.Dj()],ZO);_.ee.YtdGuideStateAwareBehavior=[];_.ee.YtdGuideStateAwareBehavior.push(ZO.prototype,_.$9.YtActionHandlerBehavior);var z6v=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Rp=function(){var F=_.Ga.apply(this,arguments)||this;F.hoverJobId=0;F.JSC$14314_touched=!1;return F};
_.M(Rp,_.Ga);_.l=Rp.prototype;_.l.created=function(){this.useExpandableTooltip=!z6v.includes(this.is)};
_.l.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.l.detached=function(){this.useExpandableTooltip=!1};
_.l.lockupOnDown=function(F){this.interactionElement&&!_.tC(_.tY(F),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.l.lockupOnUp=function(F){this.interactionElement&&!_.tC(_.tY(F),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.l.onTouchStart=function(){this.JSC$14314_touched=!0};
_.l.lockupOnMouseEnter=function(){var F=this,q=_.YE("kevlar_lockup_hover_delay",-1);this.JSC$14314_touched&&q>=0?(_.mI.cancelJob(this.hoverJobId),this.hoverJobId=_.mI.addJob(function(){F.lockupIsHovered=!0},8,q),this.JSC$14314_touched=!1):this.lockupIsHovered=!0};
_.l.lockupOnMouseLeave=function(){this.hoverJobId&&(_.mI.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.l.lockupOnPopupClosed=function(F,q){var t;((t=q.popupRenderer)==null?void 0:t.is)==="ytd-menu-popup-renderer"&&(F=q.popupRenderer.veData,q=_.yb(),F&&q&&_.jc(q,[F]))};
_.l.lockupOnLockupRequested=function(F){var q=F.detail.videoIds[0],t;F.detail&&q===((t=this.data)==null?void 0:t.videoId)&&(F.detail.returnValue=[this.data])};
_.l.lockupOnYtServiceRequestSent=function(F,q){if(F=q.actions)for(var t=0;t<F.length;t++){var u=F[t];if(u.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&q.ajaxPromise){var J=void 0,g=(J=_.n(q.endpoint,_.cX))==null?void 0:J.playlistId;J=void 0;u=(J=u.removedVideoId)!=null?J:"";Oyf(_.YQ(),u,g)}else u.action==="ACTION_REMOVE_VIDEO"&&q.ajaxPromise&&(g=void 0,u=(g=u.setVideoId)!=null?g:"",_.P9C(_.YQ(),u))}};
_.l.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.l.lockupOnLockupEnabled=function(){if(!this.$){var F=_.sV().resolve(_.JC).getCurrentPage(),q=this.getParentRenderer?this.getParentRenderer():void 0;_.bz(new _.D0("component not ready",this.is,this.isAttached,F==null?void 0:F.is,q==null?void 0:q.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Rp.prototype.lockupOnLockupEnabled=Rp.prototype.lockupOnLockupEnabled;Rp.prototype.lockupOnLockupDisabled=Rp.prototype.lockupOnLockupDisabled;Rp.prototype.lockupOnYtServiceRequestSent=Rp.prototype.lockupOnYtServiceRequestSent;Rp.prototype.lockupOnLockupRequested=Rp.prototype.lockupOnLockupRequested;Rp.prototype.lockupOnPopupClosed=Rp.prototype.lockupOnPopupClosed;Rp.prototype.lockupOnMouseLeave=Rp.prototype.lockupOnMouseLeave;Rp.prototype.lockupOnMouseEnter=Rp.prototype.lockupOnMouseEnter;
Rp.prototype.onTouchStart=Rp.prototype.onTouchStart;Rp.prototype.lockupOnUp=Rp.prototype.lockupOnUp;Rp.prototype.lockupOnDown=Rp.prototype.lockupOnDown;_.C([_.O(),_.V("design:type",Object)],Rp.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],Rp.prototype,"lockupIsHovered",void 0);_.C([_.O(),_.V("design:type",Boolean)],Rp.prototype,"lockupTouchTriggered",void 0);_.C([_.O(),_.V("design:type",Boolean)],Rp.prototype,"useExpandableTooltip",void 0);
_.C([_.Ms("#interaction"),_.V("design:type",Object)],Rp.prototype,"interactionElement",void 0);_.C([_.EB("down"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Rp.prototype,"lockupOnDown",null);_.C([_.EB("up"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Rp.prototype,"lockupOnUp",null);
_.C([_.EB("touchstart"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rp.prototype,"onTouchStart",null);_.C([_.EB("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rp.prototype,"lockupOnMouseEnter",null);_.C([_.EB("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rp.prototype,"lockupOnMouseLeave",null);
_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Rp.prototype,"lockupOnPopupClosed",null);_.C([_.EB("yt-lockup-requested"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Rp.prototype,"lockupOnLockupRequested",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],Rp.prototype,"lockupOnYtServiceRequestSent",null);_.C([_.EB("yt-disable-lockup-interaction"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rp.prototype,"lockupOnLockupDisabled",null);
_.C([_.EB("yt-enable-lockup-interaction"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rp.prototype,"lockupOnLockupEnabled",null);_.C([_.Dj()],Rp);_.r8=[Rp.prototype];_.o31={YtdReduxBehavior:[]};_.o31.YtdReduxBehavior.push.apply(_.o31.YtdReduxBehavior,_.s9);var N$=function(){var F=_.Ga.apply(this,arguments)||this;F._noAccessors=!0;F.disableNowPlaying=!1;F.disableTooltips=!1;F.useHoveredProperty=!1;F.hovered=!1;F.isThumbnailHovered_=!1;F.addBackground=_.E("kevlar_thumbnail_bg");F.nowPlaying=!1;F.disableRounding=!1;F.size="small";return F};
_.M(N$,_.Ga);_.l=N$.prototype;_.l.computeThumbnailOverlaySidePanelWidth_=function(F,q){return F-q};
_.l.computeSize=function(F,q){if(!this.disableRounding){if(!F&&!q)return"small";F=Math.max(F||0,q||0);return F>=256?"large":F>=96?"medium":"small"}};
_.l.computeFinalHoveredState_=function(F,q,t){return this.nowPlaying?!1:_.E("kevlar_thumbnail_fluid")&&F?q:t};
_.l.computeHoverOverlays_=function(F,q){return F&&q?q:void 0};
_.l.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.l.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.l.checkMiniplayer_=function(){var F;if(((F=this.data)==null?0:F.playlistSetVideoId)&&_.E("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{F=_.$A();var q=F.currentEndpoint;!this.disableNowPlaying&&q&&_.n(q,_.Fw)&&this.data?(q=_.n(q,_.Fw),this.nowPlaying=this.data.playlistId?q.playlistId===this.data.playlistId:q.videoId===this.data.videoId,this.isVideoPlaying=F==null?void 0:F.isVideoPlaying):this.nowPlaying=!1}};
N$.prototype.checkMiniplayer_=N$.prototype.checkMiniplayer_;N$.prototype.onMouseLeave_=N$.prototype.onMouseLeave_;N$.prototype.onMouseEnter_=N$.prototype.onMouseEnter_;N$.prototype.computeHoverOverlays_=N$.prototype.computeHoverOverlays_;N$.prototype.computeFinalHoveredState_=N$.prototype.computeFinalHoveredState_;N$.prototype.computeSize=N$.prototype.computeSize;N$.prototype.computeThumbnailOverlaySidePanelWidth_=N$.prototype.computeThumbnailOverlaySidePanelWidth_;
_.C([_.D(_.s9),_.V("design:type",Object)],N$.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],N$.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Number)],N$.prototype,"height",void 0);_.C([_.O(),_.V("design:type",Boolean)],N$.prototype,"bottomSidePanel",void 0);_.C([_.O(),_.V("design:type",Number)],N$.prototype,"width",void 0);_.C([_.O(),_.V("design:type",Object)],N$.prototype,"disableNowPlaying",void 0);
_.C([_.O({selector:_.yX}),_.V("design:type",Boolean)],N$.prototype,"miniplayerIsActive",void 0);_.C([_.O(),_.V("design:type",Object)],N$.prototype,"disableTooltips",void 0);_.C([_.O(),_.V("design:type",Object)],N$.prototype,"useHoveredProperty",void 0);_.C([_.O(),_.V("design:type",Object)],N$.prototype,"hovered",void 0);_.C([_.O(),_.V("design:type",Object)],N$.prototype,"isThumbnailHovered_",void 0);
_.C([_.O({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.V("design:type",Boolean)],N$.prototype,"finalHoveredState_",void 0);_.C([_.O({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.V("design:type",Number)],N$.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],N$.prototype,"addBackground",void 0);
_.C([_.O({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.V("design:type",Object)],N$.prototype,"hoverOverlays_",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],N$.prototype,"nowPlaying",void 0);_.C([_.O(),_.V("design:type",Boolean)],N$.prototype,"isVideoPlaying",void 0);_.C([_.O(),_.V("design:type",Object)],N$.prototype,"disableRounding",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.V("design:type",Object)],N$.prototype,"size",void 0);_.C([_.EB("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],N$.prototype,"onMouseEnter_",null);_.C([_.EB("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],N$.prototype,"onMouseLeave_",null);
_.C([_.za("data","disableNowPlaying","miniplayerIsActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],N$.prototype,"checkMiniplayer_",null);_.C([_.Dj()],N$);var n3O=[N$.prototype];_.w8={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(F,q){return F+":"+_.K3(q)},
getPlayerListener_:function(F,q,t){F=this.getPlayerListenerKey_(F,q);q=this.playerListeners_.get(F);t&&this.playerListeners_.delete(F);return q},
savePlayerListener_:function(F,q){var t=q.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(F,q),t);return t},
listenToPlayerEvent:function(F,q,t){t=this.savePlayerListener_(q,t);F.addEventListener(q,t)},
listenToPlayerEvents:function(F,q){q.forEach(function(t,u){this.listenToPlayerEvent(F,u,t)}.bind(this))},
unlistenFromPlayerEvent:function(F,q,t){t=this.getPlayerListener_(q,t,!0);F.removeEventListener(q,t)},
unlistenFromPlayerEvents:function(F,q){q.forEach(function(t,u){this.unlistenFromPlayerEvent(F,u,t)}.bind(this))}}};
_.ir=function(){};_.MIJ=new _.pg("PLAYER_API_TOKEN");var XqP=!1,e6A,pq3=!1,R6u;var YC=function(F,q,t,u,J){_.OP.call(this);var g=this;this.playerId=q;this.webPlayerContextConfig=u;this.kl7=J;this.d1q=!1;this.api={};this.v6O=this.hw9=null;this.nNE=new _.EV;this.ny={};this.bcO=this.xJF=this.elementId=this.gHb=this.config=null;this.c4M=!1;this.aK=this.t1M=null;this.zSE={};this.wjw=["onReady"];this.lastError=null;this.tZw=NaN;this.kRO={};this.yEE=0;this.wa=this.targetElement=F;_.kW(this,this.nNE);Tkv(this);t?this.yEE=setTimeout(function(){g.loadNewVideoConfig(t)},0):u&&(Gcj(this),
DW1(this))};
_.M(YC,_.OP);YC.prototype.getId=function(){return this.playerId};
YC.prototype.loadNewVideoConfig=function(F){if(!this.isDisposed()){this.yEE&&(clearTimeout(this.yEE),this.yEE=0);var q=F||{};q instanceof b7n||(q=new b7n(q));this.config=q;this.setConfig(F);DW1(this);this.isReady()&&WUf(this)}};
var Gcj=function(F){var q;F.webPlayerContextConfig?q=F.webPlayerContextConfig.rootElementId:q=F.config.attrs.id;F.elementId=q||F.elementId;F.elementId==="video-player"&&(F.elementId=F.playerId,F.webPlayerContextConfig?F.webPlayerContextConfig.rootElementId=F.playerId:F.config.attrs.id=F.playerId);var t;((t=F.wa)==null?void 0:t.id)===F.elementId&&(F.elementId+="-player",F.webPlayerContextConfig?F.webPlayerContextConfig.rootElementId=F.elementId:F.config.attrs.id=F.elementId)};
YC.prototype.setConfig=function(F){this.gHb=F;this.config=Ox1(F);Gcj(this);if(!this.xJF){var q;this.xJF=P$j(this,((q=this.config.args)==null?void 0:q.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var t;if((t=this.config)==null?0:t.attrs)F=this.config.attrs,(q=F.width)&&this.wa&&(this.wa.style.width=h$(Number(q)||q,!0)),(F=F.height)&&this.wa&&(this.wa.style.height=h$(Number(F)||F,!0))};
var WUf=function(F){if(F.config&&F.config.loaded!==!0)if(F.config.loaded=!0,!F.config.args||F.config.args.autoplay!=="0"&&F.config.args.autoplay!==0&&F.config.args.autoplay!==!1){var q;F.api.loadVideoByPlayerVars((q=F.config.args)!=null?q:null)}else F.api.cueVideoByPlayerVars(F.config.args)},A5J=function(F){var q=!0,t=F.getPlayerElement();
t&&F.config&&(q=t.dataset.version===xWn(F));return q&&!!_.S6("yt.player.Application.create")},DW1=function(F){if(!F.isDisposed()&&!F.c4M){var q=A5J(F);
if(q&&(F.getPlayerElement()?"html5":null)==="html5")F.bcO="html5",F.isReady()||v3E(F);else if(IKO(F),F.bcO="html5",q&&F.aK&&F.targetElement)F.targetElement.appendChild(F.aK),v3E(F);else{F.config&&(F.config.loaded=!0);var t=!1;F.t1M=function(){t=!0;var u=Hxx(F,"player_bootstrap_method")?_.S6("yt.player.Application.createAlternate")||_.S6("yt.player.Application.create"):_.S6("yt.player.Application.create");var J=F.config?Ox1(F.config):void 0;u&&u(F.targetElement,J,F.webPlayerContextConfig,F.kl7);v3E(F)};
F.c4M=!0;q?F.t1M():(_.KB(xWn(F),F.t1M),(q=mWz(F))&&mKo(q||""),$Ww(F)&&!t&&_.uo("yt.player.Application.create",null))}}};
YC.prototype.getPlayerElement=function(){var F=_.Xp(document,this.elementId);!F&&this.wa&&this.wa.querySelector&&(F=this.wa.querySelector("#"+this.elementId));return F};
var v3E=function(F){if(!F.isDisposed()){var q=F.getPlayerElement(),t=!1;q&&q.getApiInterface&&q.getApiInterface()&&(t=!0);if(t){F.c4M=!1;if(!Hxx(F,"html5_remove_not_servable_check_killswitch")){var u;if((q==null?0:q.isNotServable)&&F.config&&(q==null?0:q.isNotServable((u=F.config.args)==null?void 0:u.video_id)))return}bxr(F)}else F.tZw=setTimeout(function(){v3E(F)},50)}},bxr=function(F){Tkv(F);
F.d1q=!0;var q=F.getPlayerElement();if(q){F.hw9=y5e(F,q,"addEventListener");F.v6O=y5e(F,q,"removeEventListener");var t=q.getApiInterface();t=t.concat(q.getInternalApiInterface());for(var u=F.api,J=0;J<t.length;J++){var g=t[J];u[g]||(u[g]=y5e(F,q,g))}}for(var Y in F.ny)F.ny.hasOwnProperty(Y)&&F.hw9&&F.hw9(Y,F.ny[Y]);WUf(F);F.xJF&&F.xJF(F.api);F.nNE.publish("onReady",F.api)},y5e=function(F,q,t){var u=q[t];
return function(){var J=_.US.apply(0,arguments);try{return F.lastError=null,u.apply(q,J)}catch(g){if(t!=="sendAbandonmentPing")throw g.params=t,F.lastError=g,J=new _.D0("PlayerProxy error in method call",{error:g,method:t,playerId:F.playerId}),J.level="WARNING",J;}}},Tkv=function(F){F.d1q=!1;
if(F.v6O)for(var q in F.ny)F.ny.hasOwnProperty(q)&&F.v6O(q,F.ny[q]);for(var t in F.kRO)F.kRO.hasOwnProperty(t)&&clearTimeout(Number(t));F.kRO={};F.hw9=null;F.v6O=null;q=F.api;for(var u in q)q.hasOwnProperty(u)&&(q[u]=null);q.addEventListener=function(J,g){F.addEventListener(J,g)};
q.removeEventListener=function(J,g){F.removeEventListener(J,g)};
q.destroy=function(){F.dispose()};
q.getLastError=function(){return F.getLastError()};
q.getPlayerType=function(){return F.getPlayerType()};
q.getCurrentVideoConfig=function(){return F.gHb};
q.loadNewVideoConfig=function(J){F.loadNewVideoConfig(J)};
q.isReady=function(){return F.isReady()}};
YC.prototype.isReady=function(){return this.d1q};
YC.prototype.addEventListener=function(F,q){var t=this;this.isDisposed();var u=P$j(this,q);u&&(_.bu(this.wjw,F)||this.ny[F]||(q=C$v(this,F),this.hw9&&this.hw9(F,q)),this.nNE.subscribe(F,u),F==="onReady"&&this.isReady()&&setTimeout(function(){u(t.api)},0))};
YC.prototype.removeEventListener=function(F,q){this.isDisposed()||(q=P$j(this,q))&&this.nNE.unsubscribe(F,q)};
var P$j=function(F,q){var t=q;if(typeof q==="string"){if(F.zSE[q])return F.zSE[q];t=function(){var u=_.US.apply(0,arguments),J=_.S6(q);if(J)try{J.apply(_.uu,u)}catch(g){throw u=new _.D0("PlayerProxy error when executing callback",{error:g}),u.level="ERROR",u;}};
F.zSE[q]=t}return t?t:null},C$v=function(F,q){var t=function(u){var J=function(){F.isDisposed();
if(!F.isDisposed())try{F.nNE.publish(q,u!=null?u:void 0)}catch(Q){var Y=new _.D0("PlayerProxy error when creating global callback",{error:Q.message,event:q,playerId:F.playerId,data:u,originalStack:Q.stack,componentStack:Q.componentStack});Y.level="WARNING";throw Y;}};
if(Hxx(F,"web_player_publish_events_immediately"))J();else{var g=setTimeout(function(){J();_.m7.remove(F.kRO,String(g))},0);
_.m7.add(F.kRO,String(g),!0)}};
return F.ny[q]=t};
YC.prototype.getPlayerType=function(){return this.bcO||(this.getPlayerElement()?"html5":null)};
YC.prototype.getLastError=function(){return this.lastError};
var IKO=function(F){F.cancel();Tkv(F);F.bcO=null;F.config&&(F.config.loaded=!1);var q=F.getPlayerElement();q&&(A5J(F)||!$Ww(F)?F.aK=q:(q&&q.destroy&&q.destroy(),F.aK=null));F.targetElement&&_.bX(F.targetElement)};
YC.prototype.cancel=function(){this.t1M&&_.Qzv(xWn(this),this.t1M);clearTimeout(this.tZw);this.c4M=!1};
YC.prototype.disposeInternal=function(){IKO(this);if(this.aK&&this.config&&this.aK.destroy)try{this.aK.destroy()}catch(q){var F=new _.D0("PlayerProxy error during disposal",{error:q});F.level="ERROR";throw F;}this.zSE=null;for(F in this.ny)this.ny.hasOwnProperty(F)&&delete this.ny[F];this.gHb=this.config=this.api=null;delete this.targetElement;delete this.wa;_.OP.prototype.disposeInternal.call(this)};
var $Ww=function(F){var q,t;F=(q=F.config)==null?void 0:(t=q.args)==null?void 0:t.fflags;return!!F&&F.indexOf("player_destroy_old_version=true")!==-1},xWn=function(F){return F.webPlayerContextConfig?F.webPlayerContextConfig.jsUrl:(F=F.config.assets)?F.js:""},mWz=function(F){return F.webPlayerContextConfig?F.webPlayerContextConfig.cssUrl:(F=F.config.assets)?F.css:""},Hxx=function(F,q){if(F.webPlayerContextConfig)var t=F.webPlayerContextConfig.serializedExperimentFlags;
else{var u;if((u=F.config)==null?0:u.args)t=F.config.args.fflags}return(t||"").split("&").includes(q+"=true")},Ox1=function(F){for(var q={},t=_.X(Object.keys(F)),u=t.next();!u.done;u=t.next()){u=u.value;
var J=F[u];q[u]=typeof J==="object"?_.m7.clone(J):J}return q};var kcq={},ixf="player_uid_"+(Math.random()*1E9>>>0);var kT=function(F,q,t,u,J,g){q=q===void 0?document.createElement("div"):q;this.webPlayerContextConfig=F;this.container=q;this.commandResolver=t;this.apiResolver=o3t();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.i1;u||g?dWd(this):VIz(this);this.pendingPlayerResponse=u;this.pendingWatchNextResponse=J;this.pendingPlayerVars=g;UWL(this)};
kT.prototype.loadVideoWithPlayerResponse=function(F,q,t){this.loadVideo(F,q,t)};
kT.prototype.loadVideoWithPlayerVars=function(F){return this.loadVideo(void 0,void 0,F)};
kT.prototype.destroy=function(F){if(F=_.Xp(document,F))F=ixf+"_"+_.K3(F),(F=kcq[F])&&F.dispose()};
var h6J=function(F,q){var t;_.p(function(u){if(u.nextAddress==1)return F.pendingWatchNextResponse=q,F.synchronousApi?(t=F.synchronousApi,u.jumpTo(2)):u.yield(F.api,3);u.nextAddress!=2&&(t=u.yieldResult);if(!SZv(F,t))return u.return();F.pendingWatchNextResponse&&(t.updateVideoData({raw_watch_next_response:F.pendingWatchNextResponse}),F.pendingWatchNextResponse=void 0);_.WA(u)})},SZv=function(F,q){var t;
if(!(q==null?0:(t=q.isReady)==null?0:t.call(q))){var u;_.bz(new _.D0("playerApi is falsey",{synchronousApi:F.synchronousApi,apiResolved:F.apiResolver.resolved,playerApiUndefined:q===void 0,playerApiNull:q===null,playerApiReady:(q==null?void 0:(u=q.isReady)==null?void 0:u.call(q))===!0,playerApiMethods:q?Object.keys(q):[]}));return!1}return!0},KUj=function(F,q){if(typeof F[q]==="function")return F[q]()},Bkv=function(F){var q=window,t,u=(t=q.ytplayer)==null?void 0:t.bootstrapPlayerContainer;
if((t=u==null?void 0:u.firstElementChild)&&_.ju(t,"html5-video-player")){var J,g,Y=(J=q.ytplayer)==null?void 0:(g=J.bootstrapWebPlayerContextConfig)==null?void 0:g.contextId;J=F.webPlayerContextConfig.contextId;if(Y&&Y===J){u!==F.container&&(u=!1,KUj(t,"getPlayerState")===2&&(u=!0),F.container.appendChild(t),u||KUj(t,"playVideo"));var Q;if((Q=q.ytplayer)==null?0:Q.bootstrapPlayerResponse)F.bootstrapPlayerResponse=q.ytplayer.bootstrapPlayerResponse}}},UWL=function(F){var q,t,u,J,g;
_.p(function(Y){if(Y.nextAddress==1)return F.pageReadyOrDataAvailable?Y.jumpTo(2):Y.yield(F.pageReadyOrDataAvailableResolver.promise,2);if(Y.nextAddress!=4)return!_.E("kevlar_player_unified_player_loading")||YZv()&&Q7P()?Y.jumpTo(4):Y.yield(Nk$(),4);Bkv(F);if(F.pendingPlayerResponse||F.pendingPlayerVars)q=wqu(F.pendingPlayerResponse,F.pendingWatchNextResponse,F.pendingPlayerVars),F.pendingPlayerResponse&&F.pendingPlayerResponse===F.bootstrapPlayerResponse&&(q.loaded=!0),F.bootstrapPlayerResponse=
void 0;t=z6M(F.container,q,F.webPlayerContextConfig);((u=q)==null?0:u.loaded)&&F.pendingWatchNextResponse?(h6J(F,F.pendingWatchNextResponse),F.pendingPlayerResponse=void 0,F.pendingPlayerVars=void 0):LUx(F);J=function(Q){t.removeEventListener("onReady",J);F.synchronousApi=Q;F.apiResolver.resolve(Q)};
t.addEventListener("onReady",J);F.commandResolver!==void 0&&(g=F.commandResolver,t.addEventListener("innertubeCommand",function(Q){g(Q)}));
_.WA(Y)})};
kT.prototype.loadVideo=function(F,q,t){var u=this,J,g,Y,Q,e,r,N,w,k;return _.p(function(z){if(z.nextAddress==1)return u.pendingPlayerResponse=F,u.pendingWatchNextResponse=q,u.pendingPlayerVars=t,dWd(u),u.synchronousApi?(J=u.synchronousApi,z.jumpTo(2)):z.yield(u.api,3);z.nextAddress!=2&&(J=z.yieldResult);if(!SZv(u,J))return z.return(new Promise(function(){}));
Y=new Promise(function(T){g=T});
Q=function(){var T=J.getPlayerResponse();T&&(J.removeEventListener("onVideoDataChange",Q),g(T))};
J.addEventListener("onVideoDataChange",Q);if(u.pendingPlayerResponse||u.pendingPlayerVars)u.pendingPlayerResponse&&u.pendingPlayerResponse===u.bootstrapPlayerResponse?(g(u.pendingPlayerResponse),u.pendingWatchNextResponse&&h6J(u,u.pendingWatchNextResponse)):(e=wqu(u.pendingPlayerResponse,u.pendingWatchNextResponse,u.pendingPlayerVars),(k=(r=u.pendingPlayerResponse)==null?void 0:(N=r.playerConfig)==null?void 0:(w=N.playbackStartConfig)==null?void 0:w.startPaused)?J.cueVideoByPlayerVars(e.args):J.loadVideoByPlayerVars(e.args)),
LUx(u),u.bootstrapPlayerResponse=void 0;return z.return(Y)})};
var VIz=function(F){if(document.readyState==="complete"||document.readyState==="interactive")dWd(F);else{var q=function(){document.removeEventListener("DOMContentLoaded",q);dWd(F)};
document.addEventListener("DOMContentLoaded",q)}},dWd=function(F){F.pageReadyOrDataAvailable=!0;
F.pageReadyOrDataAvailableResolver.resolve()},LUx=function(F){F.pendingPlayerResponse=void 0;
F.pendingWatchNextResponse=void 0;F.pendingPlayerVars=void 0};
_.JJ.Object.defineProperties(kT.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var E9=function(F){Sh.call(this,F===void 0?"document_active":F);var q=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(t){q.transition("document_disposed",{event:t})});
window.addEventListener("beforeunload",function(t){q.transition("document_disposed_preventable",{event:t})});
window.addEventListener("unload",function(t){q.transition("document_disposed",{event:t});q.hasRun=new Map})};
_.M(E9,Sh);
E9.prototype.runPreventableDispose=function(F,q){if(!this.hasRun.get("document_disposed_preventable")){F(q==null?void 0:q.event);var t,u;if((q==null?0:(t=q.event)==null?0:t.defaultPrevented)||(q==null?0:(u=q.event)==null?0:u.returnValue)){q.event.returnValue||(q.event.returnValue=!0);q.event.defaultPrevented||q.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")};
E9.prototype.runDispose=function(F,q){this.hasRun.get("document_disposed")?this.transition("document_active"):(F(q==null?void 0:q.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
E9.prototype.runFlush=function(F,q){F(q==null?void 0:q.event);this.transition("document_active")};
E9.prototype.runActive=function(){};var zK=function(F){Sh.call(this,F===void 0?"document_visibility_unknown":F);var q=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(t){document.visibilityState==="visible"?q.transition("document_visible",{event:t}):q.transition("document_hidden",
{event:t})});
_.E("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(t){q.transition("document_backgrounded",{event:t})}),window.addEventListener("focus",function(t){q.transition("document_foregrounded",{event:t})}))};
_.M(zK,Sh);zK.prototype.runVisible=function(F,q){F(q==null?void 0:q.event);_.E("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
zK.prototype.runHidden=function(F,q){F(q==null?void 0:q.event);_.E("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
zK.prototype.runBackgrounded=function(F,q){F(q==null?void 0:q.event)};
zK.prototype.runForegrounded=function(F,q){F(q==null?void 0:q.event)};var op=function(){this.teardownLifecycle=new E9;this.visibilityLifecycle=new zK};
op.prototype.install=function(){var F=_.US.apply(0,arguments),q=this;F.forEach(function(t){q.teardownLifecycle.install(t)});
F.forEach(function(t){q.visibilityLifecycle.install(t)})};var n_=function(){op.call(this);var F={};this.install((F.document_disposed={callback:this.abortSlisAndFlush},F));_.E("combine_ve_grafts")&&(F={},this.install((F.document_disposed={callback:this.flushInteractionLoggingAttachVes},F)));F={};this.install((F.flush_logs={callback:this.logFinalPayload},F));_.E("web_log_cfg_cee_ks")||_.W2(_.mI,fKn)};
_.M(n_,op);var n3P=function(){n_.loggingInstance||(n_.loggingInstance=new n_);return n_.loggingInstance};
n_.prototype.logFinalPayload=function(){if(_.E("web_fp_via_jspb")){var F=new iBr,q=_.yb();q&&_.OF(F,1,q);q=_.E("jspb_sparse_encoded_pivot")?new D_([{}]):new D_;_.T9(q,380,kWw,F);qw3("finalPayload",q);_.E("web_fp_via_jspb_and_json")&&_.IJ("finalPayload",{csn:_.yb()})}else _.IJ("finalPayload",{csn:_.yb()})};
n_.prototype.abortSlisAndFlush=function(){npO(pC);QL!=null&&QL.flush()};
n_.prototype.flushInteractionLoggingAttachVes=function(){V2J(_.DP())};
var fKn=function(){var F=_.bn("CLIENT_EXPERIMENT_EVENTS");if(F){var q=L$P();F=_.X(F);for(var t=F.next();!t.done;t=F.next())t=t.value,q(t)&&_.IJ("genericClientExperimentEvent",{eventType:t});delete _.m8.CLIENT_EXPERIMENT_EVENTS}};var aKC={};
aKC.YtPlayerBehavior=[_.w8.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var F=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.i1;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;MIu(function(){F.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.CW(this,"pan-down"),_.E("kevlar_pinch_fullscreen")&&_.K8().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.E("kevlar_pinch_fullscreen")&&_.K8().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(F,q,t){var u=this;pH(this.useUnifiedPlayer_());if(this.mainAppPlayer_)pH(!1,"MainAppPlayer already created.");else{var J=_.E("kevlar_player_container_query_killswitch")?this.$.container:_.ep(this.hostElement).querySelector("#container");this.mainAppPlayer_=new kT(this.getWebPlayerContextConfig_(),J,function(g){return _.n9(g,u.hostElement)},F,q,t);
this.mainAppPlayer_.api.then(function(g){u.player_=g;u.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&diC.resolve(g)})}},
loadVideoWithPlayerResponse:function(F,q){var t=this;if(this.useUnifiedPlayer_()){var u=this.watchNextData,J,g=(J=F.videoDetails)==null?void 0:J.videoId,Y,Q,e;(J=(Y=this.watchNextData)==null?void 0:(Q=Y.currentVideoEndpoint)==null?void 0:(e=Q.watchEndpoint)==null?void 0:e.videoId)&&g!=J&&(u=void 0,_.E("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(F,u,q):this.createMainAppPlayer_(F,u,q);this.mainAppPlayer_.api.then(function(){_.Q0(t.hostElement,
"yt-player-updated")})}else this.update(s7f(F,q))},
loadVideoWithPlayerVars:function(F){var q=this;this.useUnifiedPlayer_()?(_.E("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(F):this.createMainAppPlayer_(void 0,void 0,F),this.mainAppPlayer_.api.then(function(){_.Q0(q.hostElement,"yt-player-updated")})):this.update({args:F})},
update:function(F){var q=this;if(this.useUnifiedPlayer_())pH(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(F);var t=EZC(F.args);t&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==t&&Object.assign(F.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(F).then(function(u){_.Q0(q.hostElement,"yt-player-updated",_.E("kevlar_player_updated_obsolete_player_killswitch")?
u:void 0)})}_.$e(new _.D0("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(q.getPlayerPromise(),2);t=u.yieldResult;if(!t)throw Error("vh");F&&q.updatePlayerPlaylist_(F);_.WA(u)})},
acquireApi_:function(F){var q=this;if(this.useUnifiedPlayer_())pH(!1,"Invalid method call in kevlar_unified_player.");else return _.mI.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(pH(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(t){q.shouldAutoplay_(F)?t.loadVideoByPlayerVars(F.args):t.cueVideoByPlayerVars(F.args)})):this.initPlayerPromise_=this.initPlayerContainer_(F),this.initPlayerPromise_},
initPlayerContainer_:function(F){var q=this;if(this.useUnifiedPlayer_())pH(!1,"Invalid method call in kevlar_unified_player.");else return pH(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.bz(Error("wh")),pH(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.E("kevlar_player_container_query_killswitch")?this.$.container:_.ep(this.hostElement).querySelector("#container"),Nk$().then(function(){var t=q.initPlayer_(F);q.playerResolver_.resolve(t);
return t})},
onPlayerReady_:function(F,q){this.useUnifiedPlayer_()?pH(!1,"Invalid method call in kevlar_unified_player."):(F.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&diC.resolve(F),q(F))},
maybeCallApiMethodOnElement_:function(F,q){if(typeof F[q]==="function")return F[q]()},
maybeAdoptBootstrapPlayer_:function(){var F=window,q,t=(q=F.ytplayer)==null?void 0:q.bootstrapPlayerContainer;if((q=t==null?void 0:t.firstElementChild)&&q.classList.contains("html5-video-player")){var u,J,g=(u=F.ytplayer)==null?void 0:(J=u.bootstrapWebPlayerContextConfig)==null?void 0:J.contextId;u=this.getWebPlayerContextConfig_().contextId;if(g&&g===u){t!==this.playerContainer_&&(t=!1,this.maybeCallApiMethodOnElement_(q,"getPlayerState")===2&&(t=!0),this.playerContainer_.appendChild(q),t||this.maybeCallApiMethodOnElement_(q,
"playVideo"));var Y;if((Y=F.ytplayer)==null?0:Y.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=F.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(F){var q=this;if(this.useUnifiedPlayer_())pH(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(t){q.maybeAdoptBootstrapPlayer_();var u=F?g3W(F):void 0;u&&u==q.bootstrapPlayerResponse_&&(F.loaded=!0);u=q.playerContainer_;var J=q.getWebPlayerContextConfig_();u=z6M(u,F,J);q.player_=u;q.onPlayerReadyEvent_=q.onPlayerReady_.bind(q,q.player_,t);q.player_.addEventListener("onReady",q.onPlayerReadyEvent_);q.player_.addEventListener("innertubeCommand",
q.onPlayerInnerTubeCommand_.bind(q))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(F){F.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(F){F.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var F=_.sV().resolve(_.JC).getCurrentPage();F&&F.getScrollTop()<=0?_.CW(this,"pan-down"):_.CW(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(F){F.isFullscreen()||F.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(F){F.isFullscreen()&&F.toggleFullscreen()})},
updatePlayerPlaylist_:function(F){var q=this,t,u,J;return _.p(function(g){if(g.nextAddress==1)return t=_.sV().resolve(_.JU(_.J8)),u=!!(t&&t.playlistComponent&&t.playlistComponent.loopOn),g.yield(q.getPlayerPromise(),2);var Y=J=g.yieldResult,Q=Y.updatePlaylist,e=[];if(_.E("kevlar_player_playlist_use_local_index")){var r,N;var w=(N=(r=F.localCurrentIndex)!=null?r:F.currentIndex)!=null?N:0}else{var k;w=(k=F.currentIndex)!=null?k:0}if(F.contents)for(r=0;r<F.contents.length;r++)if((N=F.contents[r])&&N.playlistPanelVideoRenderer)if(esC(N)){N=
N.playlistPanelVideoRenderer;k="";N.shortBylineText&&(k=_.q1(N.shortBylineText));var z="";N.title?z=_.q1(N.title):N.unplayableText&&(z=_.q1(N.unplayableText));e.push({author:k,title:z,encrypted_id:N.videoId})}else r<w&&--w;Q.call(Y,{index:w,list:F.playlistId?F.playlistId:"",loop:u,playlist_title:F.title,playlist_length:e.length,video:e,fetch:0,external_list:"1",title:F.title?F.title:"",playlist_author:F.ownerName?_.q1(F.ownerName):void 0});_.WA(g)})},
focusOnPlayer:function(){_.tJ(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var F=this.playerContainer_.querySelector(".html5-video-player");F&&(_.M$(_.sV().resolve(_.PT)),F.focus())}})},
preparePlayer:function(){var F=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(q){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")q();else{var t=function(){document.removeEventListener("DOMContentLoaded",t);q()};
document.addEventListener("DOMContentLoaded",t)}})).then(function(){return Nk$()}).then(function(){F.initPlayerPromise_||F.preparePlayerJobId_||(F.preparePlayerJobId_=_.W2(_.mI,function(){F.initPlayerPromise_||(F.initPlayerPromise_=F.initPlayerContainer_())}))}):_.$e(new _.D0("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(F){this.useUnifiedPlayer_()?pH(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(F)||(F.args.autoplay="0")},
shouldAutoplay_:function(F){if(this.useUnifiedPlayer_())pH(!1,"Invalid method call in kevlar_unified_player.");else{var q=this.get("args.el",F);return q&&q!="detailpage"&&this.isMiniplayerActive_()||q&&(q=="sponsorshipsoffer"||q=="handlesclaiming")&&this.get("args.autoplay",F)=="0"?!1:(F=g3W(F))&&this.get("playerConfig.playbackStartConfig.startPaused",F)?!1:!0}},
isMiniplayerActive_:function(){return _.sV().resolve(_.m4).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var F=this.getPlayer();if(F){var q=F.getPlayerState();_.E("kevlar_player_check_ad_state_on_stop")&&(q=F.getPlayerState(F.getPresentingPlayerType()));q!=5&&F.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(F,q,t){t=t===void 0?!1:t;var u=this,J,g,Y,Q;return _.p(function(e){if(e.nextAddress==1)return q||(q=u.hostElement),J=u.useUnifiedPlayer_()?!!u.mainAppPlayer_:!!u.initPlayerPromise_,J?e.yield(u.getPlayerPromise(),2):(t?F.insertBefore(q,F.firstChild):F.appendChild(q),e.return());g=e.yieldResult;Y=g.getPlayerState(g.getPresentingPlayerType());Q=!1;if(Y==-1||Y==1||Y==3)Q=!0;t?F.insertBefore(q,F.firstChild):F.appendChild(q);Q&&g.playVideo();g.setSize(NaN,NaN);_.WA(e)})},
watchNextDataChanged_:function(F){var q=this;F&&(this.useUnifiedPlayer_()&&_.E("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&h6J(this.mainAppPlayer_,F):this.getPlayerPromise().then(function(t){t.updateVideoData(q.computeWatchNextPlayerVars_(F))}))},
computeWatchNextPlayerVars_:function(F){if(this.useUnifiedPlayer_()&&_.E("kevlar_unified_player_update_watch_next_killswitch"))pH(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:F}},
maybeSendAbandonmentPing_:function(){var F=this.getPlayer();F&&F.getPlayerState()!=5&&F.getPlayerState()!=0&&F.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var F=_.bn("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(F=Object.assign({},F),F.rootElementId=this.playerId);F.serializedExperimentIds&&F.serializedExperimentFlags||_.bz(Error("xh"));return F},
hasWebPlayerContextConfig_:function(){return!!_.bn("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(F){this.useUnifiedPlayer_()?pH(!1,"Invalid method call in kevlar_unified_player."):_.n9(F,this.hostElement)},
useUnifiedPlayer_:function(){var F=_.E("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.E("kevlar_unified_player")||F}}];var j7z={};j7z.YtPlaylistPanelBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(F){F=F.detail;if(F.actions.loop!=void 0||F.actions["yt-icons:loop"]!=void 0)this.loopOn=F.actions.loop||F.actions["yt-icons:loop"];if(F.actions.shuffle!=void 0||F.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=F.actions.shuffle||F.actions["yt-icons:shuffle"]},
setMenuData_:function(F){if(!F||!F.playlistButtons||F.isInfinite)return null;for(var q=F.playlistButtons.menuRenderer.topLevelButtons,t=q.length,u=0;u<t;u++)if(q[u].toggleButtonRenderer){var J=q[u].toggleButtonRenderer;J.defaultIcon.iconType=="LOOP"&&this.loopOn?J.isToggled=this.loopOn:J.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(J.isToggled=this.shuffleOn)}return F.playlistButtons}}];var c5f=function(F){ed.call(this,F,132);this.isDocument=F===document.documentElement};
_.M(c5f,ed);c5f.prototype.calculateScrollDelta=function(F,q,t){var u=0;F<q?u=F<q-100?-48:-8:F>q+t&&(u=F>q+t+100?48:8);return u};
c5f.prototype.JSC$11379_onMouseMove=function(F){this.isDocument||(F.clientX=F.event_.pageX,F.clientY=F.event_.pageY);ed.prototype.JSC$11379_onMouseMove.call(this,F)};var TK=function(){var F=_.Ga.apply(this,arguments)||this;F._noAccessors=!0;F.scrollElement=document.documentElement;F.JSC$14373_dragListGroup=null;F.dragScrollSupport=null;F.onDraggerCreated=function(q){var t=q.JSC$11375_dragger;t.scrollTarget_=F.scrollElement;q=q.draggerEl;t&&q.menuOpened&&t.setEnabled(!1)};
F.onDragStart=function(q){var t=q.draggerEl;q=q.currDragItem;var u=Object.assign({},q==null?void 0:q.data);u.trackingParams=void 0;t.data=u;t.style.position="absolute";t.style.width=(q==null?void 0:q.clientWidth)+"px";t.style.zIndex="2030";t.onDrag&&t.onDrag();_.E("web_owner_document_fallback_killswitch")?(q=document.querySelector("ytd-app"))&&_.ep(q).appendChild(t):(q=_.Cs(t),(u=q.querySelector("ytd-app"))?_.ep(u).appendChild(t):q.body.appendChild(t));F.dragScrollSupport=new c5f(F.scrollElement);
F.dragScrollSupport.horizontalScrolling_=!1;t=F.dragScrollSupport;t.constrainScroll_=!!t.margin_&&!1};
F.onDrop=function(q){F.handleDrop(q);F.dragScrollSupport&&(_.sP(F.dragScrollSupport),F.dragScrollSupport=null)};
F.onReorderableScroll=function(){if(F.JSC$14373_dragListGroup){var q=F.JSC$14373_dragListGroup;whC(q,q.currDragItem_)}};
return F};
_.M(TK,_.Ga);TK.prototype.detached=function(){_.Fzx(this)};
_.Fzx=function(F){F.JSC$14373_dragListGroup&&(_.Pr(F.JSC$14373_dragListGroup,Xhr,F.onDragStart),_.Pr(F.JSC$14373_dragListGroup,eie,F.onDragStart),F.JSC$14373_dragListGroup.dispose(),F.JSC$14373_dragListGroup=null);F.dragScrollSupport&&(_.sP(F.dragScrollSupport),F.dragScrollSupport=null);F.scrollElement.removeEventListener("scroll",F.onReorderableScroll)};
_.qpj=function(F,q,t,u){u=u===void 0?"":u;_.Fzx(F);t&&(F.scrollElement=t);F.JSC$14373_dragListGroup=new jZ;F.JSC$14373_dragListGroup.hysteresisDistance_=2;RiC(F.JSC$14373_dragListGroup,q);F.JSC$14373_dragListGroup.draggerElClasses_=eW("dragging").split(" ");u&&rYx(F.JSC$14373_dragListGroup,function(J){var g=J||document,Y=null;g.getElementsByClassName?Y=g.getElementsByClassName(u)[0]:Y=Svf("*",u,J);return Y||J});
_.Ic(F.JSC$14373_dragListGroup,gMJ,F.onDraggerCreated);_.Ic(F.JSC$14373_dragListGroup,Xhr,F.onDragStart);_.Ic(F.JSC$14373_dragListGroup,eie,F.onDrop);F.JSC$14373_dragListGroup.init();F.scrollElement.addEventListener("scroll",F.onReorderableScroll,{passive:!0})};
TK.prototype.handleDrop=function(){};
_.JJ.Object.defineProperties(TK.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.C([_.O({value:100}),_.V("design:type",Number)],TK.prototype,"scrollMargin",void 0);_.C([_.Dj()],TK);_.tFJ=[TK.prototype];_.GK={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(F,q,t){var u=this.getClickTarget_(q);if(u&&this.isClickAllowed_(u)){q.preventDefault();F=(0,_.m7.unsafeClone)(F);var J=this.getContainerBoundingRect();q=this.getRelativeClickXy_(q,J);this.expandEndpointUrlMacros_(F,{NX:q[0],NY:q[1],NB:u.code});t&&this.truncateWebCommendMetadataUrl_(F);_.Q0(this.hostElement,"yt-navigate",{endpoint:F})}},
getClickTarget_:function(F){if(!this.clickTargetMap)return null;F=_.tY(F)||[];F=_.X(F);for(var q=F.next();!q.done;q=F.next()){q=q.value;if(q===_.ep(this.hostElement).querySelector("#menu"))break;if(q=this.clickTargetMap.get(q.id))return q}return null},
getRelativeClickXy_:function(F,q){var t=F.detail.x,u=F.detail.y;_.E("use_on_click_for_desktop_display_ad")&&F.clientX!=null&&F.clientY!=null&&(t=F.clientX,u=F.clientY);F=Math.round(t-q.left);q=Math.round(u-q.top);return F<0||q<0?[null,null]:[F,q]},
getContainerBoundingRect:function(){return _.ep(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(F,q){for(var t=_.X(F.loggingUrls||[]),u=t.next();!u.done;u=t.next())u=u.value,u.baseUrl&&(u.baseUrl=qd_(u.baseUrl,q));F.urlEndpoint&&F.urlEndpoint.url&&(F.urlEndpoint.url=qd_(F.urlEndpoint.url,q));F.commandMetadata&&F.commandMetadata.webCommandMetadata&&F.commandMetadata.webCommandMetadata.url&&(F.commandMetadata.webCommandMetadata.url=qd_(F.commandMetadata.webCommandMetadata.url,q))},
truncateWebCommendMetadataUrl_:function(F){if(F.commandMetadata&&F.commandMetadata.webCommandMetadata&&F.commandMetadata.webCommandMetadata.url){var q=F.commandMetadata.webCommandMetadata.url,t=q.indexOf("&pp=");if(t>0){var u=q.indexOf("&",t+1);F.commandMetadata.webCommandMetadata.url=u>t&&u<q.length?q.slice(0,t)+q.slice(u):q.slice(0,t)}}},
configureClickTargets:function(F,q,t){this.containerId=F;this.clickTargetMap=new Map;F=_.X(q);for(q=F.next();!q.done;q=F.next())if(q=q.value,q.location){var u=t.get(q.location);u&&(_.RE(_.ep(this.hostElement).querySelector("#"+u),"yt-simple-endpoint",this.isClickAllowed_(q)),this.clickTargetMap.set(u,q))}},
isClickAllowed_:function(F){return F.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||F.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||F.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||F.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.DO={};
_.DO.YtLazyListBehavior=[_.zD.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var F=(this.constructor.generatedFrom||this).observers;F||(F=[]);F.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
F}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var F=this.renderElementsOutsideVisibleArea_;F&&(c_f(F,4),F.processSignal())},
deepLazyListObserver_:function(F){var q=this;if(F){var t=F.value||[];if(this.itemsPath==F.path){var u=this.nonDeferredItemCount;F=0;u>-1&&t.length>u&&(F=_.bn("REMAINING_DOVA_DEFERRED_CHUNKS",-1));F>0?(u>0&&(u=t.slice(0,u),this.setInitialItemsOnDataChanged(u)),(u=this.renderElementsOutsideVisibleArea_)?u.cancel():(u=this.renderElementsOutsideVisibleArea_=new _.nA(2,"eocs"),_.jco(window,"scroll",function(){return q.renderDeferredElements()})),_.MH(u,function(){q.setInitialItemsOnDataChanged(t)}),_.$I("REMAINING_DOVA_DEFERRED_CHUNKS",
F-1)):this.setInitialItemsOnDataChanged(t)}else if(this.itemsPath+".splices"==F.path)this.onItemsUpdated_(t);
else u="shownItems"+F.path.substr(this.itemsPath.length),this.useSignals&&u==="shownItems.length"||this.notifyPath(u,F.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(F){F&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(F),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(F){F=F.indexSplices;for(var q=0,t=F.length;q<t;q++){var u=F[q];if(u.index<this.shownCount&&(u.removed&&this.splice("shownItems",u.index,u.removed.length),u.addedCount)){var J=u.object.slice(u.index,u.index+u.addedCount);u=["shownItems",u.index,0];u.push.apply(u,J);this.splice.apply(this,u)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(F){this.cancelPendingTasks_();F||(F=[]);this.items_=F;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.yG("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.tJ(this,this.tryRenderChunk_)))},
fillRange_:function(F,q){this.canShowMore&&this.items_&&(F=this.items_.slice(F,q),F.unshift("shownItems"),this.push.apply(this,F),this.shownCount=q,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var F=this;this.canShowMore&&_.aE(this,"renderChunk",function(){F.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.yG("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.AC(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var F=this.renderElementsOutsideVisibleArea_;F&&(F.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var F=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(F-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=F;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(F){return Math.ceil(1E3/F)},
onCanShowMoreUpdated_:function(F){this.data&&this.items_!==null&&(F?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(F){!this.shouldUseTaskManager()&&this.data&&(!F&&this.canShowMore?(_.S6W(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):F&&this.partiallyRenderedItems_.has(this.items_)&&(_.E("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Pe;_.We={};
Pe=function(){var F=_.Ga.apply(this,arguments)||this;F.atStart=!0;F.atEnd=!0;F.startIndex=0;F.endIndex=0;F.scrollCount=0;F.initialStartIndex=0;F.disableScrollEventListener=!1;F.useFloorScrolling=!1;F.isSearch=!1;F.dragging=!1;F.dragMouseStart=0;F.dragOffsetStart=0;F.disableWheelScroll=!1;F.centerListItems=!1;F.offset=0;F.minComponentWidth=0;F.marginWidthRight=0;F.marginWidthLeft=0;F.setButtonsStateRequested=!1;F.itemsVisibilityObserver=null;F.fullyVisibleItemsIndices=[];F.JSC$14384_onWheelScroll=function(q){if(F.isSearch&&
!F.disableWheelScroll&&_.E("desktop_enable_dmpanel_wheel_scroll")){var t=q.shiftKey?Math.abs(q.deltaY)>Math.abs(q.deltaX)?q.deltaY:q.deltaX:q.deltaX;t!==0&&(q.preventDefault(),F.ytLazyListBehavior.fillRemainingListItems(),F.offset+=t,O9(F),F.reposition_())}};
F.onPointerDown=function(q){JRw(F)&&(F.dragMouseStart=q.clientX,F.dragOffsetStart=F.offset,F.dragging=!0)};
F.onPointerMove=function(q){JRw(F)&&F.dragging&&(F.ytLazyListBehavior.fillRemainingListItems(),F.offset=F.dragOffsetStart-(q.clientX-F.dragMouseStart),O9(F),F.reposition_())};
F.onPointerUp=function(){JRw(F)&&(F.dragging=!1)};
return F};
_.M(Pe,_.Ga);var s6O=function(F){var q=_.ep(F.hostElement).querySelector("#items").children;if(!q)return 0;var t=0;F=_.X(F.fullyVisibleItemsIndices);for(var u=F.next();!u.done;u=F.next())t+=q[u.value].clientWidth;return t},JRw=function(F){return F.isSearch&&_.E("desktop_enable_dmpanel_click_drag_scroll")};
Pe.prototype.created=function(){this.cachedViewportWidth=_.bn("initialInnerWidth")||window.innerWidth;this.JSC$14384_cachedViewportHeight=_.bn("initialInnerHeight")||window.innerHeight;_.bn("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.$I("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Pe.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.E("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();gKe(this)};
Pe.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.E("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var F;(F=this.itemsVisibilityObserver)==null||F.disconnect();this.itemsVisibilityObserver=null;var q;(q=this.itemsObserver)==null||q.disconnect()};
var gKe=function(F){var q=_.ep(F.hostElement).querySelector("#scroll-container");if(q){if(!F.itemsVisibilityObserver){var t=window.getComputedStyle(q).marginRight;F.itemsVisibilityObserver=new IntersectionObserver(function(u){l3O(F,u)},{root:q,
rootMargin:t,threshold:.98})}if(q=_.ep(F.hostElement).querySelector("#items"))F.itemsObserver=new LVL(q,function(u){Xlv(F,u)})}},Xlv=function(F,q){Ypv(F)&&(Array.from(q.addedNodes).filter(function(t){return t.nodeType===Node.ELEMENT_NODE}).forEach(function(t){F.itemsVisibilityObserver&&F.itemsVisibilityObserver.observe(t)}),Array.from(q.removedNodes).filter(function(t){return t.nodeType===Node.ELEMENT_NODE}).forEach(function(t){F.itemsVisibilityObserver&&F.itemsVisibilityObserver.unobserve(t)}))},
l3O=function(F,q){var t=new Set(F.fullyVisibleItemsIndices);
q=_.X(q);for(var u=q.next();!u.done;u=q.next()){u=u.value;var J=u.target.parentElement;J?(J=Array.from(J.children).indexOf(u.target),u.isIntersecting?t.add(J):t.has(J)&&t.delete(J)):_.bz(new _.D0("Parent element not found",u.target.nodeName))}F.fullyVisibleItemsIndices=Array.from(t).sort(function(g,Y){return g-Y});
t.size===0?_.bz(new _.D0("No visible entries in horizontal list")):(F.startIndex=F.fullyVisibleItemsIndices[0],F.endIndex=F.fullyVisibleItemsIndices[F.fullyVisibleItemsIndices.length-1])},Ypv=function(F){F.data?F=(F=F.data)&&F.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===F.itemSizeConstraint:!1:F=!1;
return F};
_.l=Pe.prototype;_.l.addScrollEventListeners=function(){var F=_.ep(this.hostElement).querySelector("#scroll-container");F.style.touchAction="pan-y";F.addEventListener("wheel",this.JSC$14384_onWheelScroll);F.addEventListener("pointerdown",this.onPointerDown);F.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.l.removeScrollEventListeners=function(){var F=_.ep(this.hostElement).querySelector("#scroll-container");F.removeEventListener("wheel",this.JSC$14384_onWheelScroll);F.removeEventListener("pointerdown",this.onPointerDown);F.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.l.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.tJ(this,this.setStartIndex,[this.initialStartIndex])};
_.l.reposition_=function(){var F=_.bn("HTML_DIR")=="rtl"?"":"-",q=_.ep(this.hostElement).querySelector("#items");q&&(q.style.transform="translateX("+F+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.l.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.tJ(this,this.setButtonsState_))};
_.l.setButtonsState_=function(){this.setButtonsStateRequested=!1;var F=_.ep(this.hostElement).querySelector("#items").firstElementChild;if(F){this.minComponentWidth||(this.minComponentWidth=pln(this,F));F=_.ep(this.hostElement).querySelector("#scroll-container").clientWidth;var q=_.ep(this.hostElement).querySelector("#items");q=_.E("kevlar_horizontal_list_scroll_width_killswitch")?q.clientWidth:q.scrollWidth;var t=this.get(this.ytLazyListBehavior.itemsPath,this);if(t){var u=Math.round(F/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+u,t.length)-1)}this.ytLazyListBehavior.canShowMore?q+this.minComponentWidth>=this.offset+F&&(this.atEnd=!1):this.atEnd=this.offset+F>=q-20?!0:!1;this.atStart=this.offset<=20}};
_.l.setStartIndex=function(F){if(!this.minComponentWidth){var q=_.ep(this.hostElement).querySelector("#items").firstElementChild;if(!q)return;this.minComponentWidth=pln(this,q)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*F;O9(this);this.reposition_()};
_.l.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Ts();var F=_.ep(this.hostElement).querySelector("#scroll-container").clientWidth;_.E("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=pln(this,_.ep(this.hostElement).querySelector("#items").firstElementChild));F=this.useFloorScrolling?Math.floor(F/this.minComponentWidth)||1:Math.round(F/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&Q6r(this);this.offset+=Ypv(this)?
s6O(this):F*this.minComponentWidth;O9(this);this.reposition_();this.scrollCount++};
_.l.prevClick_=function(){var F=_.ep(this.hostElement).querySelector("#scroll-container").clientWidth;F=this.useFloorScrolling?Math.floor(F/this.minComponentWidth)||1:Math.round(F/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=Ypv(this)?s6O(this):this.minComponentWidth*this.scrollCount-1):this.offset-=Ypv(this)?s6O(this):F*this.minComponentWidth;this.centerListItems&&Q6r(this);O9(this);this.reposition_()};
_.l.onIronResize_=function(){this.resizeSupportEnabled&&_.tJ(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.l.onItemsTransitionEnd_=function(F){_.uL(F)===_.ep(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.l.onChildElementFocus_=function(F){F=F.target.closest("#items > *");var q=_.ep(this.hostElement).querySelector("#scroll-container");if(q.contains(F)){if(_.E("web_horizontal_list_behavior_focus_killswitch"))if(F.offsetLeft<this.offset)this.offset=Math.abs(F.offsetLeft)<F.clientWidth?0:F.offsetLeft;else if(F.offsetLeft+F.clientWidth>this.offset+q.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Ts(),this.offset=F.offsetLeft+F.clientWidth-q.clientWidth;else return;else{var t=_.ep(this.hostElement).querySelector("#items"),
u=_.bn("HTML_DIR")==="rtl",J=u?t.clientWidth-F.offsetLeft:F.offsetLeft;t=u?t.clientWidth-(F.offsetLeft+F.clientWidth):F.offsetLeft+F.clientWidth;var g=u?J>this.offset+q.clientWidth:J<this.offset,Y=u?t<this.offset:t>this.offset+q.clientWidth,Q=u?g:Y;if(u?Y:g)q=u?t:J,this.offset=Math.abs(q)<F.clientWidth?0:q;else if(Q)this.ytLazyListBehavior.fillRemainingListItems(),_.Ts(),this.offset=(u?J:t)-q.clientWidth;else return}O9(this);this.reposition_()}};
_.l.observeShownItems_=function(){this.reset()};
_.l.checkComponentWidthResize=function(){var F=_.ep(this.hostElement).querySelector("#items").firstElementChild;F&&(F=pln(this,F),this.centerListItems||F!==this.minComponentWidth)&&(this.minComponentWidth=F,this.offset=F*this.scrollCount,this.centerListItems&&Q6r(this),O9(this),this.reposition_())};
var pln=function(F,q){var t=window.getComputedStyle(q).marginRight;t=Math.floor(Number(t.replace("px","")));var u=window.getComputedStyle(q).marginLeft;u=Math.floor(Number(u.replace("px","")));F.centerListItems&&!F.marginWidthRight&&(F.marginWidthRight=t,F.marginWidthLeft=u);return F.resizeSupportEnabled?q.getBoundingClientRect().width+t:q.offsetWidth+t},O9=function(F){var q=_.ep(F.hostElement).querySelector("#scroll-container").clientWidth,t=_.ep(F.hostElement).querySelector("#items").clientWidth;
F.offset<0?F.offset=0:F.offset+q>=t&&(F.offset=t-q)},Q6r=function(F){F.offset-=(_.ep(F.hostElement).querySelector("#scroll-container").clientWidth+F.marginWidthRight-F.minComponentWidth)/2-F.marginWidthLeft};
_.JJ.Object.defineProperties(Pe.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var F=_.bn("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(F==-1)F=this.JSC$14384_cachedViewportHeight,F=F>1320?5:F>1020?4:F>730?3:F>430?2:1;else if(F==0)return 0;_.$I("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",F-1);F=_.bn("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(F>-1)return F;F=this.cachedViewportWidth;F=F>1600?6:F>1400?5:F>1300?4:F>1090?5:F>870?4:F>660?3:2;_.$I("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
F);return F},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.E("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Pe.prototype.observeShownItems_=Pe.prototype.observeShownItems_;Pe.prototype.onChildElementFocus_=Pe.prototype.onChildElementFocus_;Pe.prototype.onItemsTransitionEnd_=Pe.prototype.onItemsTransitionEnd_;Pe.prototype.onIronResize_=Pe.prototype.onIronResize_;Pe.prototype.prevClick_=Pe.prototype.prevClick_;Pe.prototype.nextClick_=Pe.prototype.nextClick_;Pe.prototype.setButtonsState_=Pe.prototype.setButtonsState_;Pe.prototype.requestButtonsStateUpdate_=Pe.prototype.requestButtonsStateUpdate_;
Pe.prototype.reposition_=Pe.prototype.reposition_;Pe.prototype.reset=Pe.prototype.reset;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.DO.YtLazyListBehavior),_.V("design:type",Object)],Pe.prototype,"ytLazyListBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Pe.prototype,"atStart",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Pe.prototype,"atEnd",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"startIndex",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"endIndex",void 0);_.C([_.O({value:6}),_.V("design:type",Number)],Pe.prototype,"initialCount",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"scrollCount",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"initialStartIndex",void 0);
_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"disableScrollEventListener",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"supportComponentResize",void 0);_.C([_.O({value:function(){var F=this;return function(){return F.prevClick_()}}}),
_.V("design:type",Function)],Pe.prototype,"boundPrevClick",void 0);_.C([_.O({value:function(){var F=this;return function(){return F.nextClick_()}}}),
_.V("design:type",Function)],Pe.prototype,"boundNextClick",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"useFloorScrolling",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"isSearch",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"dragging",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"dragMouseStart",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"dragOffsetStart",void 0);
_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"disableWheelScroll",void 0);_.C([_.O(),_.V("design:type",Object)],Pe.prototype,"centerListItems",void 0);_.C([_.EB("iron-resize"),_.za("guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pe.prototype,"onIronResize_",null);_.C([_.EB("transitionend"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Pe.prototype,"onItemsTransitionEnd_",null);
_.C([_.EB("focusin"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Pe.prototype,"onChildElementFocus_",null);_.C([_.za("shownItems"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pe.prototype,"observeShownItems_",null);_.C([_.Dj()],Pe);_.We.YtdHorizontalListBehavior=[];_.We.YtdHorizontalListBehavior.push(_.Vl,_.B.YtRendererBehavior,_.DO.YtLazyListBehavior,_.ee.YtdGuideStateAwareBehavior,Pe.prototype);var Gc_=["APP_STATE","PI"];var eJL=_.LZ(["about:blank"]),ZLx={pushState:window.history.pushState,replaceState:window.history.replaceState};var xT=function(F){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=F;this.internalPushState=F.pushState.bind(F);this.internalReplaceState=F.replaceState.bind(F)};
xT.prototype.init=function(){this.initialized=!0};
xT.prototype.pushState=function(F,q){this.initialized||this.init();this.internalPushState&&this.internalPushState(F,"",q)};
xT.prototype.replaceState=function(F,q){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(F,"",q)};
xT.prototype.getState=function(){return this.history&&this.history.state};var RJj=function(F){var q=function(){var t=F.apply(this,arguments)||this;t.boundHistoryPushState=!1;t.boundHistoryReplaceState=!1;t.debugInfo={};return t};
_.M(q,F);q.prototype.init=function(){var t=_.nr("IFRAME");_.aK(t,_.RV(eJL));t.sandbox="allow-same-origin";t.style.display="none";this.iframe=t;document.body.appendChild(t);this.bindHistoryStateFunctions();F.prototype.init.call(this)};
q.prototype.bindHistoryStateFunctions=function(){var t=this,u=[],J;this.iframe&&((J=this.iframe.contentWindow)==null?0:J.history)&&(J=this.iframe.contentWindow.history)&&(u.push(J),Object.getPrototypeOf(J)&&u.push(Object.getPrototypeOf(J)));window.history&&u.push(window.history);J=window.history;Object.getPrototypeOf(J)&&u.push(Object.getPrototypeOf(J));u.push(ZLx);J=function(Y){for(var Q=null,e=0;e<u.length;e++){var r=u[e][Y];if(typeof r==="function"){Q=r.bind(window.history);t.debugInfo[Y]=e;break}}return Q};
if(!this.boundHistoryReplaceState){var g=J("replaceState");g&&(this.internalReplaceState=g,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(J=J("pushState"))&&(this.internalPushState=J,this.boundHistoryPushState=!0)};
return q}(xT),rRE=function(){return RJj.call(this,window.history)||this};
_.M(rRE,RJj);rRE.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var AF=function(F){this.browserHistory=F;this.initialized=!1};
AF.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
AF.prototype.pushState=function(F,q){this.initialized||this.init();this.browserHistory.pushState(F,q)};
AF.prototype.replaceState=function(F,q){this.initialized||this.init();this.browserHistory.replaceState(F,q)};
AF.prototype.handlePopstate=function(F){return F.state};_.NEx=function(F,q,t,u,J){this.endpoint=F;this.forward=q;this.historyEntry=t;this.JSC$30134_savedComponentState=u;this.legacyBorder=J===void 0?!1:J};var wld=function(F,q){this.rootData=F;this.scrollTop=q};var nZ=new _.pg("PAGE_REQUEST_TOKEN"),WFr=new _.pg("FETCH_PBJ_TOKEN");_.ve=new _.pg("EPHEMERAL_STORE_TOKEN");_.Ip=function(F){this.data=Object.assign({},F);var q;(q=this.data.innertubeResponse)==null||delete q.frameworkUpdates};
_.Ip.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.gB)()};
_.uZ=function(F){return Object.assign({},F.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var iLJ=function(){this.maxSize=100;this.timeToDataCache=new Map};
iLJ.prototype.get=function(F){var q=this.timeToDataCache.get(F);q&&(this.timeToDataCache.delete(F),this.timeToDataCache.set(F,q));if(q&&q.rootData&&(_.E("web_use_response_store_for_history_cache")||_.E("mweb_use_new_history_manager"))){var t=_.sV().resolve(_.ve),u=kHx(q),J=!!u;if(u){if(u.content){var g=He(t,u.content);J&&g?q.rootData.response=_.uZ(g):J=!1}u.player&&(g=He(t,u.player),J&&g?q.rootData.playerResponse=_.uZ(g):J=!1);u.reelSequence&&(t=He(t,u.reelSequence),J&&t?q.rootData.reelWatchSequenceResponse=
_.uZ(t):J=!1)}J||(this.timeToDataCache.delete(F),q=void 0)}return q};
iLJ.prototype.set=function(F,q){if(q.rootData&&(_.E("web_use_response_store_for_history_cache")||_.E("mweb_use_new_history_manager"))){var t=kHx(q),u=Object.assign({},q.rootData);t&&(t.content&&q.rootData.response&&(EKj(this,t.content,q.rootData.response),u.response=null),t.player&&q.rootData.playerResponse&&(EKj(this,t.player,q.rootData.playerResponse),u.playerResponse=null),t.reelSequence&&q.rootData.reelWatchSequenceResponse&&(EKj(this,t.reelSequence,q.rootData.reelWatchSequenceResponse),u.reelWatchSequenceResponse=
null));q=new wld(u,q.scrollTop)}this.timeToDataCache.has(F)?this.timeToDataCache.delete(F):this.timeToDataCache.size>=this.maxSize&&(t=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(t.value));this.maxSize!==0&&this.timeToDataCache.set(F,q)};
iLJ.prototype.clear=function(){this.timeToDataCache.clear()};
var kHx=function(F){var q=_.sV().resolve(_.JU(nZ)),t;if((t=F.rootData)==null?0:t.endpoint)return q==null?void 0:X1A(q,F.rootData.endpoint);var u;_.bz(new _.D0("History snapshot response data does not contain endpoint",(u=F.rootData)==null?void 0:u.url));return null},EKj=function(F,q,t){if(F.maxSize>0){var u;
(F=(u=t.responseContext)==null?void 0:u.maxAgeSeconds)&&Number(F)>0&&(u=_.sV().resolve(_.ve),t=Zz(t,F),u.put(q,new _.Ip(t)))}};var zJ1=function(F,q,t){this.endpoint=q;this.JSC$30139_savedComponentState=t===void 0?null:t;this.entryTime=F};var A5u=1;var mn=function(F){var q=function(){var t=F.apply(this,[].concat(_.mZ(_.US.apply(0,arguments))))||this;t.historyEntryTime=0;t.historySnapshotCache=t.createHistoryCache();return t};
_.M(q,F);q.prototype.createHistoryCache=function(){return new iLJ};
q.prototype.saveAndReplace=function(t,u,J){var g=window.location.href;var Y=Y===void 0?{}:Y;var Q=(Q=this.browserHistory.getState())&&Q.entryTime?Q.entryTime:v3o();t=this.createNewHistoryEntry(t,Y,Q);this.saveSnapshot(Q,u,J);this.replaceState(t,g||window.location.href)};
q.prototype.saveAndPush=function(t,u,J,g,Y){Y=Y===void 0?{}:Y;this.saveSnapshot(this.historyEntryTime,J,g);J=this.historySnapshotCache;g=this.historyEntryTime;var Q=J.timeToDataCache.keys();Q=_.X(Q);for(var e=Q.next();!e.done;e=Q.next())e=e.value,e>g&&J.timeToDataCache.delete(e);u=this.createNewHistoryEntry(u,Y);this.pushState(u,t)};
q.prototype.saveSnapshot=function(t,u,J){this.historySnapshotCache.set(t,new wld(u,J))};
q.prototype.createNewHistoryEntry=function(t,u,J){J=J===void 0?v3o():J;return new zJ1(J,t,u)};
q.prototype.handlePopstate=function(t){var u=F.prototype.handlePopstate.call(this,t),J=null,g=null,Y=!1,Q=null;u&&u.entryTime&&(Q=this.historySnapshotCache.get(u.entryTime)||null,Y=u.entryTime>this.historyEntryTime,this.historyEntryTime=u.entryTime,J=u.endpoint,g=u.JSC$30139_savedComponentState);this.handleHistoryCacheLoad(new _.NEx(J,Y,Q,g),t);return u};
q.prototype.pushState=function(t,u){Number(t==null?void 0:t.entryTime)>=0&&(this.historyEntryTime=t.entryTime);F.prototype.pushState.call(this,t,u)};
q.prototype.replaceState=function(t,u){Number(t==null?void 0:t.entryTime)>=0&&(this.historyEntryTime=t.entryTime);F.prototype.replaceState.call(this,t,u)};
q.prototype.handleHistoryCacheLoad=function(){};
return q}(AF),oKn=function(){var F=mn.call(this,new rRE)||this;
F.dispatchElement=null;F.entryIndex=0;return F};
_.M(oKn,mn);_.l=oKn.prototype;_.l.init=function(F){F=F===void 0?!0:F;mn.prototype.init.call(this);this.initialized||(F||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.l.handlePopstate=function(F){var q=null;F.state||(q="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return mn.prototype.handlePopstate.call(this,F);var t=new CustomEvent("yt-history-pop",{cancelable:!0});_.ec(this.dispatchElement,"yt-history-pop",[t,{errorMsg:q}]);_.Zl(this.dispatchElement,"yt-close-all-popups-action");if(!t.defaultPrevented){t=_.sV().resolve(_.JC);q=t.getCurrentData();var u=t.getCurrentPage();t=0;u?(u=_.ec(this.dispatchElement,"yt-get-page-offset",
[u]),u.length>0&&(t=u[0])):_.bz(new _.D0("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:q?q.page:"undefined"}));q&&(q.csn=_.yb());this.saveSnapshot(this.historyEntryTime,q,t)}return mn.prototype.handlePopstate.call(this,F)};
_.l.handleHistoryCacheLoad=function(F,q){F.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.X(_.Zl(this.dispatchElement,"yt-history-will-navigate",[q])).next().value||_.ec(this.dispatchElement,"yt-history-load",[q,F]))};
_.l.pushState=function(F,q){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var t=new _.D0("history.pushState is not a function",this.getDebugString());_.mH(t)}mn.prototype.pushState.call(this,F,q)};
_.l.replaceState=function(F,q){if(!this.browserHistory.boundHistoryReplaceState){var t=new _.D0("history.replaceState is not a function",this.getDebugString());_.mH(t)}mn.prototype.replaceState.call(this,F,q)};
_.l.saveAndPush=function(F,q,t,u,J){J=J===void 0?{}:J;t&&(t.csn=_.yb());mn.prototype.saveAndPush.call(this,F,q,t,u,J)};
_.l.getDebugString=function(){var F=[];this.initialized&&F.push("i");this.browserHistory.boundHistoryReplaceState&&F.push("bhr");this.browserHistory.boundHistoryPushState&&F.push("bhs");"replaceState"in this.browserHistory.debugInfo&&F.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&F.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&F.push("ei:"+String(this.entryIndex));return F.join(",")};
_.$T=function(F,q){F.init(!0);var t=F.browserHistory.getState();F.replaceState(t,ea(q))};
oKn.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.br=new _.pg("DESKTOP_HISTORY_MANAGER_TOKEN");var nKn=[10,20,30,40,50,60],yE=function(){this.currentPartitionIndex=0},MFJ=function(F){xTx({mainAppWeb:_.jT(),
survivalSli:{partitionMinute:F,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},TEO=function(F){xTx({mainAppWeb:_.jT(),
survivalSli:{partitionMinute:F,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},GHe=function(F){return F.currentPartitionIndex>=0&&F.currentPartitionIndex<nKn.length?nKn[F.currentPartitionIndex]:-1},D6J=function(F){return F.currentPartitionIndex>0&&F.currentPartitionIndex-1<nKn.length?nKn[F.currentPartitionIndex-1]:-1};
yE.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var F=D6J(this);F>0&&TEO(F);F=GHe(this);F>0&&MFJ(F);Wz1(this)}};
var Wz1=function(F){var q=GHe(F);if(q>0){var t=D6J(F);t<0&&(t=0);F.intervalId=_.mI.addJob(function(){var u=D6J(F);u>0&&TEO(u);u=GHe(F);u>0&&MFJ(u);Wz1(F)},3,(q-t)*6E4);
F.currentPartitionIndex+=1}else F.currentPartitionIndex=-1};var OLe=function(){this.skipNextNavigation=!1},PHz=function(F,q,t){if(!q)return!1;
if(F.skipNextNavigation)return F.skipNextNavigation=!1;if(_.n(t,_.KM))return!1;var u,J,g;if((u=_.n(t,_.Gr))==null?0:(J=u.browseEndpointContextSupportedConfigs)==null?0:(g=J.browseEndpointContextMainConfig)==null?0:g.skipConfirmation)return!1;var Y;return((Y=_.n(q.commandMetadata,_.EH))==null?void 0:Y.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
OLe.prototype.showConfirmationDialog=function(F,q){this.navigateParams=q;this.customConfirmationCommand?_.sV().resolve(_.gN).resolveCommand(this.customConfirmationCommand):(q={openPopupAction:{popup:{confirmDialogRenderer:{title:_.FK(_.oD("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.FK(_.oD("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.FK(_.oD("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.FK(_.oD("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.B2.getInstance().triggerAction("yt-open-popup-action",q,F))};
OLe.prototype.cancelPendingNavigation=function(){var F;((F=this.navigateParams)==null?void 0:F.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var x6v=function(){},vK1=function(F,q,t,u,J,g,Y){t=t===void 0?{}:t;
Y=Y===void 0?{}:Y;var Q=_.VY.instance,e,r=(e=_.n(q,_.KM))==null?void 0:e.url;return r?Umu(Q,r,t,window.location.href,function(N,w){ARd(F,N,w,!1,!0,t,g,u)},function(){return!1}):VI(Q,q,t,window.location.href,Wx(q),function(N,w){ARd(F,N,w,!1,!0,t,g,u)},J,Y)},ARd=function(F,q,t,u,J,g,Y,Q){if(!F.JSC$14442_chunkHandler)if(t.page==="learning_journey_watch"&&_.E("web_enable_canvas_on_learning_journey")){var e=!_.n(Q,_.Gr);
J=J||u;if(e)if(J){if(_.E("kevlar_continue_playback_without_player_response")){var r;var N=(r=_.n(Q,_.Fw))==null?void 0:r.videoId}u={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:u,previousVideoId:N},tempData:g}}else u={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else u={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};F.JSC$14442_chunkHandler=new aLr(_.g0,u,Y,e,J)}else if(t.page==="watch"||t.page==="learning_journey_watch")if(J||u){if(_.E("kevlar_continue_playback_without_player_response")){var w;
e=(w=_.n(Q,_.Fw))==null?void 0:w.videoId}F.JSC$14442_chunkHandler=new FFn(_.g0,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:u,previousVideoId:e},tempData:g},Y)}else F.JSC$14442_chunkHandler=new L2d(_.g0);else t.page==="shorts"&&J&&!u?F.JSC$14442_chunkHandler=new crL(_.g0,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:g},Y):F.JSC$14442_chunkHandler=new fLd(Y);F.JSC$14442_chunkHandler.processChunk({endpoint:q,data:t});return F.JSC$14442_chunkHandler.gA.promise},
I3x=function(F,q,t,u,J){(t=_.Vkv(t))&&ARd(F,q,t,!1,!0,u,void 0,J)};var HLv=function(){this.pendingNavigationPromise=null};
_.l=HLv.prototype;_.l.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.l.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.l.addEventListener=function(){throw Error("yh");};
_.l.dispatchEvent=function(){throw Error("yh");};
_.l.removeEventListener=function(){throw Error("yh");};var m6v=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],C_=function(){_.xD.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];$6L(this)};
_.M(C_,_.xD);C_.prototype.verifyUser=function(){var F=$6L(this),q=F.logout;if(!F.sessionChange)return!0;this.dispatchEvent("ytsessionchange");q&&this.dispatchEvent("ytuserinvalid");return!1};
var $6L=function(F){var q=m6v.map(function(J){var g;return(g=_.om.get(J))!=null?g:""}),t=q.some(function(J,g){return F.sessionCookies&&F.sessionCookies[g]!==""&&J===""}),u=q.some(function(J,g){return F.sessionCookies&&F.sessionCookies[g]!==J});
F.sessionCookies=q;return{logout:t,sessionChange:u}};
C_.prototype.clearTimeout=function(){this.scheduledJobId&&(_.mI.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var bx$=new _.pg("POSTMESSAGE_TUNNEL_TOKEN");var Hxf=["/parent_tools","/file_download","/artist_roster"],dWo=[MWv,Tfj,Gtn,W$z,DAw,nPC,O3d,Puj];var bLr=new _.pg("APP_ROOT");var d8=new _.pg("NAVIGATION_CONFIRMATION_SERVICE");var yRw="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),CHL=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],VE=function(F,q){this.pendingNavigationPromise=null;this.JSC$14460_clientRoot=F;this.historyManager=q;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 x6v;this.debugString=F.is;F={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,
"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.aJ(_.B2.getInstance(),F,this.JSC$14460_clientRoot)},hJe,Kzj,BE1,Lzn,Spz;
_.M(VE,HLv);VE.prototype.reload=function(){_.ab(window.location.href)};
var hej=function(F){F.currentEndpoint&&_.n(F.currentEndpoint,_.Px)?F.reload():F.currentEndpoint&&F.navigate(F.currentEndpoint,!0,void 0,{disableCache:!0})};
VE.prototype.navigate=function(F,q,t,u,J,g,Y,Q){q=q===void 0?!1:q;t=t===void 0?{}:t;u=u===void 0?{}:u;var e=_.sV().resolve(d8),r;if(!Y&&PHz(e,(r=this.currentEndpoint)!=null?r:void 0,F))return e.showConfirmationDialog(this.JSC$14460_clientRoot.parentElement,{endpoint:F,reload:q,params:t,tempData:u,requestType:J,createScreenConfig:g}),!1;var N=_.g7();_.lW(N,"eocs")||N.parkOrScheduleJob(function(){N.processSignal("eocs")},10,"eor");
Y=Wx(F);e=u.autonav==="1";r=_.yb();C_.instance||(C_.instance=new C_);var w=C_.instance.verifyUser(),k;if(_.E("enable_dark_theme_only_on_shorts")){var z=document.documentElement.hasAttribute("dark"),T=_.Hx(!0)==="USER_INTERFACE_THEME_DARK";if(Y==="shorts"){if(!z)if(_.E("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var P;_.ab((P=_.n(F==null?void 0:F.commandMetadata,_.EH))==null?void 0:P.url,void 0,void 0,window.top)}}else{var v;_.ab(_.a5((v=_.n(F==null?
void 0:F.commandMetadata,_.EH))==null?void 0:v.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.E("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!z){var H;_.ab(_.a5((H=_.n(F==null?void 0:F.commandMetadata,_.EH))==null?void 0:H.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(T!==z){var d;_.ab(_.a5((d=_.n(F==null?void 0:F.commandMetadata,_.EH))==null?void 0:d.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(Y==="watch"){if(d6x(_.sV().resolve(_.m4),
F)&&(w||_.E("fix_miniplayer_navigation_killswitch")))return!1;_.E("block_all_player_prefetch_requests")||(k=UB1(_.qF(_.Uh),F,e))}else{var a,S=(a=_.n(this.currentEndpoint,_.Fw))==null?void 0:a.videoId;S&&_.KC.getInstance().then(function(n3){n3&&n3.set("yt-miniplayer-shown-video-id",S)})}k&&(t.frags=k.missingFragments_.join(","));
P=null;var K;v=(K=_.n(F==null?void 0:F.commandMetadata,_.EH))==null?void 0:K.ignoreNavigation;if(!v)if(_.E("kevlar_command_url")){var h;P=(h=_.n(F==null?void 0:F.commandMetadata,_.EH))==null?void 0:h.url}else P=_.$Zo(F,t);if(P&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&P==this.lastNavigationUrl)return _.mj({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.QI(hJ(),"CANCELLED")}P&&(this.lastNavigationUrl=P);i_t();_.$I("IS_HOMEPAGE_COLD",
!1);_.$I("IS_RESULTS_PAGE_COLD",!1);_.$I("IS_WATCH_PAGE_COLD",!1);F.loggingUrls&&F.loggingUrls.forEach(function(n3){n3.baseUrl&&_.Kt(n3.baseUrl)});
_.h6u(F,g?g.layer:0)&&_.E("kevlar_flush_logs_on_away_navigation")&&_.H2();if(VIC(F))return!1;n4e(Y,J);if(!P)return v||_.bz(new _.D0("Can't construct url for endpoint",F)),_.QI(hJ(),"FAILURE"),!1;_.IKP();K=F&&_.n(F,_.Gr)&&_.n(F,_.Gr).browseId.startsWith("UC");t=(h=_.E("enable_dark_theme_only_on_shorts")&&Y==="shorts"?!1:_.mB()&&document.documentElement.hasAttribute("dark")!==_.Ib())?{themeRefresh:1}:{};h&&!_.Mh()&&_.Hx()==="USER_INTERFACE_THEME_DARK"&&(t.theme="dark");K=h||VFr(P)&&!K&&!_.E("kevlar_disable_url_allowlist");
w||(K=!0);if(K||_.bn("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var c;var rf=(c=window.top)==null?void 0:c.location.href}catch(n3){var Zv;rf=(Zv=n3)==null?void 0:Zv.message}_.bz(new _.D0("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:rf}))}F=_.E("kevlar_redirect_on_window_killswitch")?window.top:window;fG(P);_.ab(_.a5(P,t),void 0,void 0,F);_.QI(hJ(),"ABORTED");return!1}_.E("kevlar_early_popup_close")&&_.ec(this.JSC$14460_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14442_chunkHandler=void 0;var kP;rf=Wx((kP=this.currentEndpoint)!=null?kP:void 0);(kP=Y==="shorts"&&rf==="shorts")||_.Exo();_.UK(gx3)("nr",void 0);e&&_.mj({webInfo:{navigationReason:"an"}});F.clickTrackingParams&&(u.itct=F.clickTrackingParams,u.csn=r);ONW(u);u.endpoint=JSON.stringify(F);_.E("enable_unknown_lact_fix_on_html5")&&(_.sV().resolve(_.PT),u.lact=_.X1());_.m7.isEmpty(u)||_.JV(P,u);!_.E("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(g=Object.assign({},{layer:0},g,{parentLayer:3}));this.pendingNavigationPromise=g=vK1(this.pageFetcher,F,u,this.currentEndpoint,this.JSC$14460_isNetworkPromiseStale.bind(this),g,Q);g=g.then(this.handleNavigateSuccess.bind(this,g,F,k,u),this.handleNavigateFail.bind(this,g,F));_.$A().navigationFinishPromise=g;q={endpoint:F,pageType:Y,url:ea(P),reload:!!q,noProgressBar:kP};J&&(q.type=J);this.fireEvent("yt-navigate-start",q);k&&I3x(this.pageFetcher,F,k,u,this.currentEndpoint);return!0};
VE.prototype.JSC$14460_isNetworkPromiseStale=function(F){return F!=this.pendingNavigationPromise};
var U6j=function(F,q,t,u,J){var g=Wx(q);q={endpoint:q,pageType:g};J&&(q.errorMessage=J);_.bz(t);q.navigationDoneMs=_.y0("nd");q.navigationErrorReason=u;F.fireEvent("yt-navigate-error",q)};
VE.prototype.handleNavigateFail=function(F,q,t){var u=void 0;t instanceof _.dI&&(u=t,HHt(t));if(this.JSC$14460_isNetworkPromiseStale(F))return _.mW(u);_.QI(hJ(),"FAILURE");U6j(this,q,t,"101");return _.mW(t)};
VE.prototype.handleNavigateSuccess=function(F,q,t,u,J){if(this.JSC$14460_isNetworkPromiseStale(F))return _.NU();this.pendingNavigationPromise=null;if(!J)return q=new _.D0("Missing data in response for navigation endpoint",q),_.mW(q);if(J.reload)return window.location.reload(!0),_.NU();t&&(F={},_.m7.extend(F,_.Vkv(t),J),J=F);var g,Y;t=(g=J)==null?void 0:(Y=g.timing)==null?void 0:Y.responseStart;t!=null&&_.y0("srt",t);_.y0("pdc");var Q,e;g=(Q=J)==null?void 0:(e=Q.timing)==null?void 0:e.info;g!=null&&
(Q=_.UK(_.p6o)(g),_.mj(Q));_.QI(hJ(),"SUCCESS");Spz(this,q,J,1,u);return _.NU()};
var VFr=function(F){var q=F;_.E("kevlar_no_redirect_to_classic_2_ks")||(q=(new _.qU(F)).getPath());if(q==="/"||q==="/red")return!1;var t=!0;yRw.forEach(function(u){F.indexOf(u)===0&&(t=!1)});
CHL.forEach(function(u){var J=u.url;_.E(u.expFlag)&&F.indexOf(J)===0&&(t=!1)});
return t};
VE.prototype.publishPageData=function(F){this.fireEvent("yt-page-data-fetched",{pageData:F})};
hJe=function(F,q,t,u,J,g){var Y=null;q.page!=="watch"&&q.page!=="learning_journey_watch"||u?q.filler||_.ec(F.JSC$14460_clientRoot,"yt-stop-old-player",[q]):Y=ARd(F.pageFetcher,J,q,t,!1,g,void 0,F.currentEndpoint);if(Y)return Y.then(F.publishPageData.bind(F,q));F.publishPageData(q);return _.NU()};
Kzj=function(F,q,t){var u=null;if(!t)return u=new _.D0("Empty data",F.debugString,q);var J=t.response;if(!J)return u;var g={endpointType:Wx(q)||"unknown"};J.responseContext?(J=J.responseContext.errors)&&(u=new _.D0("Errors in response context",F.debugString,q,J,g)):u=J.error||J.errorMetadata?new _.D0("Errors in response",F.debugString,q,J.error,J.errorMetadata,g):new _.D0("responseContext missing",F.debugString,q,Object.keys(J).sort().join(","),g);var Y,Q,e,r;if(F=t==null?void 0:(Y=t.response)==null?
void 0:(Q=Y.responseContext)==null?void 0:(e=Q.webResponseContextExtensionData)==null?void 0:(r=e.webResponseContextDebugData)==null?void 0:r.debugErrorMessages)for(Y=0;Y<F.length;Y++);return u};
BE1=function(F){var q,t,u,J;return F==null?void 0:(q=F.response)==null?void 0:(t=q.responseContext)==null?void 0:(u=t.errors)==null?void 0:(J=u.error)==null?void 0:J["0"]};
Lzn=function(F,q){var t;if(t=q.url&&!q.url.startsWith("/clip"))t=q.url,t=!_.E("webfe_parse_debug_param_in_resolveurl_service")&&F.searchDebugUrlMatcher.test(t)||SHA(t)?!0:!1;if(t)SHA(q.url)&&_.fI(window.location.href).themeRefresh?(q=_.sH(q.url,"themeRefresh"),_.$T(F.historyManager,q)):q.url&&!P$_(q.url)&&_.$T(F.historyManager,q.url);else if(q.endpoint){var u,J,g;(t=(u=q.endpoint)==null?void 0:(J=u.commandMetadata)==null?void 0:(g=J.webCommandMetadata)==null?void 0:g.url)&&!P$_(t)&&_.$T(F.historyManager,
t);t&&q.url&&t!=q.url&&!q.url.match("playnext=1")&&new _.D0("Response url mismatch in response data",F.debugString,t,q.url)}};
_.f3v=function(F,q,t,u,J,g,Y,Q){g=g===void 0?!1:g;var e=_.sV().resolve(d8),r;if(!Q&&PHz(e,(r=F.currentEndpoint)!=null?r:void 0,q))return e.showConfirmationDialog(F.JSC$14460_clientRoot.parentElement,{endpoint:q,data:t,navigationType:u,tempData:J,isMiniplayer:g,isForwardHistoryNavigation:Y==null?void 0:Y.forward}),_.NU();F.pageFetcher.JSC$14442_chunkHandler=void 0;return Spz(F,q,t,u,J,g)};
Spz=function(F,q,t,u,J,g){g=g===void 0?!1:g;F.isMiniplayerExpansion=g;var Y=u===2;F.currentEndpoint=q;F.numNavigations++;F.numNavigations&&(Nu_.navigationCount=F.numNavigations);_.$I("NUM_NAV",F.numNavigations);var Q=Kzj(F,q,t);if(Q)return U6j(F,q,Q,"102",BE1(t)),_.mW(Q);var e,r,N,w;Q=t.rootVe||(t==null?void 0:(e=t.response)==null?void 0:(r=e.responseContext)==null?void 0:(N=r.webResponseContextExtensionData)==null?void 0:(w=N.ytConfigData)==null?void 0:w.rootVisualElementType);!Y&&t&&Lzn(F,t);var k,
z;e=t==null?void 0:(k=t.response)==null?void 0:(z=k.responseContext)==null?void 0:z.maxAgeSeconds;if(!Y&&!isNaN(e)){var T;_.E("kevlar_use_response_ttl_to_invalidate_cache")?T=(0,_.gB)()+1E3*e:_.E("kevlar_always_invalidate_cache")&&(T=0);isNaN(T)||(t.expirationTime=T)}_.qF(_.Uh).prefetchCache_.clear();Y||t.page!=="watch"||t.type!=="reduced"&&u!==1?u=hJe(F,t,Y,!!g,q,J):(F.publishPageData(t),u=_.NU());J=u.then(function(){var P=Wx(q);P={endpoint:q,pageType:P,fromHistory:Y,response:t};P.navigationDoneMs=
_.y0("nd");F.fireEvent("yt-navigate-finish",P)});
t.csn&&Q&&t.clientSideGrafts&&u.then(F.attachClientSideGrafts.bind(F,t,_.b7()));return J};
_.l=VE.prototype;_.l.attachClientSideGrafts=function(F,q){F.clientSideGrafts&&q&&F.clientSideGrafts.forEach(function(t){if(q&&t){var u=_.Av(t);_.E("combine_ve_grafts")?_.DP().graftServerVe(t,q):_.Bo(F.csn,q,u)}})};
_.l.handleSignalActionHistoryBack=function(){window.history.back()};
_.l.handleSignalActionCloseWindow=function(){window.close()};
_.l.handleSignalActionReloadPage=function(){this.reload()};
_.l.handleSignalActionSoftReloadPage=function(){hej(this)};
_.l.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.l.fireEvent=function(F,q){F=new CustomEvent(F,{bubbles:!0,cancelable:!1,composed:!0,detail:q});this.dispatchEvent(F)};
_.l.addEventListener=function(F,q){this.JSC$14460_clientRoot.addEventListener(F,q)};
_.l.dispatchEvent=function(F){return this.JSC$14460_clientRoot.dispatchEvent(F)};
_.l.removeEventListener=function(F,q){this.JSC$14460_clientRoot.removeEventListener(F,q)};
VE[Yc]=[bLr,_.br];_.KiC=new G_("browse","h8y2qb");_.Byo=new G_("search","JzFVk");_.LiW=new G_("shorts","xwEKAe");_.fr_=new G_("watchFixie","nmfa2d");_.aru=new G_("watchFlexy","CF909");_.jZC=new G_("watchGrid","Tm0L3c");_.cZ$=new G_("watchLearningJourney","L3n37");var a3v;var j6J=function(){return _.x.apply(this,arguments)||this};
_.M(j6J,_.x);_.JJ.Object.defineProperties(j6J,{template:{configurable:!0,enumerable:!0,get:function(){if(a3v===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);a3v=F}F=a3v;return F}}});
_.C([_.D(aKC.YtPlayerBehavior),_.V("design:type",Object)],j6J.prototype,"ytPlayerBehavior",void 0);_.C([_.m({is:"ytd-player"})],j6J);var cR1;var Fxw;var q1C;var U9=function(){var F=_.x.apply(this,arguments)||this;F.forceModernIconButton=!1;F.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return F};
_.M(U9,_.x);U9.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]]"}}}}}};
U9.prototype.handleAccountLinkingStateChangedCommand=function(F){if(F=_.n(F,Ngv)){var q,t=(q=this.data)==null?void 0:q.providerKey;q=F.providerKey;t&&q&&t.id===q.id&&t.subject===q.subject&&(F=F.linked,F!==void 0&&(this.set("data.linked",F),this.notifyPath("data.linked"),_.E("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(F)))}};
U9.prototype.setPlayerAccountLinkState=function(F){var q=new xKw;AMJ(q,OVJ(new WYL,F));var t=_.g0();t&&t.getPlayerPromise().then(function(u){u.setAccountLinkState(_.A9(q.JSC$12153_serializeBinary(),4));u.updateAccountLinkingConfig(F)})};
U9.prototype.handleShowAccountLinkDialog=function(){var F=this.get("button.buttonRenderer.command");F&&_.iN([F],this.hostElement)};
_.JJ.Object.defineProperties(U9.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}}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],U9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.C([_.D([_.$9.YtActionHandlerBehavior]),_.V("design:type",Object)],U9.prototype,"actionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],U9.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],U9.prototype,"overrides",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],U9.prototype,"forceModernIconButton",void 0);_.C([_.O({value:"bottom"}),_.V("design:type",String)],U9.prototype,"buttonTooltipPosition",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],U9.prototype,"forceIconButton",void 0);_.C([_.O(),_.V("design:type",Boolean)],U9.prototype,"disableTextTransform",void 0);
_.C([_.W("data","data.linked","data.isWarning"),_.V("design:type",Object),_.V("design:paramtypes",[])],U9.prototype,"button",null);_.C([_.m({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],U9);
_.b(U9,"ytd-account-link-button-renderer",function(){if(q1C!==void 0)return q1C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return q1C=F},{mode:1});var tYE;var uMf=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Se=function(){return _.x.apply(this,arguments)||this};
_.M(Se,_.x);Se.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Se.prototype.updateButtonActiveState=function(){var F=this,q=!!uMf.find(function(t){return F.currentState===t});
this.button&&(this.button.isPressed=q)};
_.JJ.Object.defineProperties(Se.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.playlistLoopStateEntity)==null?void 0:F.state)||((q=this.data)==null?void 0:q.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var F=void 0,q;if(this.currentState&&((q=this.data)==null?0:q.states)){q=_.X(this.data.states);for(var t=q.next();!t.done;t=q.next()){t=_.n(t.value,_.Hnx);var u=void 0;if(((u=t)==null?void 0:u.state)===this.currentState){F=t;break}}}return F}}});
Se.prototype.updateButtonActiveState=Se.prototype.updateButtonActiveState;_.C([_.D(_.s9),_.V("design:type",Object)],Se.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.c5y}),_.V("design:type",Object)],Se.prototype,"playlistLoopStateEntity",void 0);_.C([_.O(),_.V("design:type",Object)],Se.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],Se.prototype,"forceIconOnly",void 0);_.C([_.Ms("ytd-button-renderer"),_.V("design:type",_.oA)],Se.prototype,"button",void 0);
_.C([_.W("data","playlistLoopStateEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],Se.prototype,"currentState",null);_.C([_.za("currentButtonStateRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Se.prototype,"updateButtonActiveState",null);_.C([_.W("currentState"),_.V("design:type",Object),_.V("design:paramtypes",[])],Se.prototype,"currentButtonStateRenderer",null);
_.C([_.m({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Se);
_.b(Se,"ytd-playlist-loop-button-renderer",function(){if(tYE!==void 0)return tYE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return tYE=F},
{mode:1});var JI1;var sGE=_.oD("DOWNLOAD",{},"Download"),gyw=_.oD("DOWNLOADING",{},"Downloading"),lcx=_.oD("DOWNLOADED",{},"Downloaded"),Xvd=_.oD("RETRY",{},"Retry"),hF=function(){var F=_.x.apply(this,arguments)||this;F.forceIconButton=!1;F.forceIconOnly=!1;F.overrides=!1;F.buttonTooltipPosition=!1;F.styleActionButton=!1;F.disableTextTransform=!1;F.downloadProgress=0;F.isDownloadComplete=!1;F.isHidden=!0;F.transferState="TRANSFER_STATE_UNKNOWN";F.isVideoDeletedByUser=!1;F.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return F};
_.M(hF,_.x);_.l=hF.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.dataChanged=function(){var F;(F=this.data)!=null&&F.text||(F=_.VX(_.u1().getState(),this.videoId),this.updateButtonState(F))};
_.l.computeVideoId=function(F){return F};
_.l.showHideButton=function(){this.updateButtonVisibility()};
_.l.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};
_.l.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.l.updateButtonState=function(F){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==gyw||!_.Dx(F))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(F){case "TRANSFER_STATE_UNKNOWN":F=sGE;var q="OFFLINE_DOWNLOAD";var t="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":F=Xvd;q="OFFLINE_DOWNLOAD";t="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":F=lcx;q="OFFLINE_PIN";t="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":F=
gyw;q="OFFLINE_DOWNLOADING_ZERO";t="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":F=Xvd;q="OFFLINE_DOWNLOAD";t="ACTION_RETRY";break;default:F=sGE,q="OFFLINE_DOWNLOAD",t="ACTION_ADD"}this.isVideoDeletedByUser&&(F=sGE,q="OFFLINE_DOWNLOAD",t="ACTION_ADD");var u=Object.assign({},this.data);u.text=_.FK(F);u.tooltip=F;u.icon={iconType:q};u.size="SIZE_DEFAULT";u.style="STYLE_DEFAULT";_.n(u.command,_.EO)&&(_.n(u.command,_.EO).action=t);this.set("data",u)}};
_.l.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var F="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?F="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?F="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?F="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?F="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?F="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(F="OFFLINE_PIN",this.isDownloadComplete=!0);var q;F!==((q=this.data.icon)==null?void 0:q.iconType)&&(q=Object.assign({},this.data),q.text=_.FK(gyw),q.tooltip=gyw,q.icon={iconType:F},_.n(q.command,_.EO)&&(_.n(q.command,_.EO).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",q))}};
hF.prototype.updateProgress=hF.prototype.updateProgress;hF.prototype.onTransferStateChanged=hF.prototype.onTransferStateChanged;hF.prototype.showHideButton=hF.prototype.showHideButton;hF.prototype.dataChanged=hF.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],hF.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],hF.prototype,"forceIconButton",void 0);
_.C([_.O(),_.V("design:type",Object)],hF.prototype,"forceIconOnly",void 0);_.C([_.O(),_.V("design:type",Object)],hF.prototype,"overrides",void 0);_.C([_.O(),_.V("design:type",Object)],hF.prototype,"buttonTooltipPosition",void 0);_.C([_.O(),_.V("design:type",Object)],hF.prototype,"styleActionButton",void 0);_.C([_.O(),_.V("design:type",Object)],hF.prototype,"disableTextTransform",void 0);
_.C([_.O({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.V("design:type",String)],hF.prototype,"videoId",void 0);_.C([_.O(),_.V("design:type",Object)],hF.prototype,"data",void 0);_.C([_.O({selector:Sz,selectorArgs:["videoId"]}),_.V("design:type",Object)],hF.prototype,"downloadProgress",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],hF.prototype,"isDownloadComplete",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],hF.prototype,"isHidden",void 0);_.C([_.O({selector:_.VX,selectorArgs:["videoId"]}),_.V("design:type",String)],hF.prototype,"transferState",void 0);_.C([_.O({selector:_.zzo,selectorArgs:["videoId"]}),_.V("design:type",Object)],hF.prototype,"isVideoDeletedByUser",void 0);_.C([_.O({selector:r83,selectorArgs:["videoId"]}),_.V("design:type",Object)],hF.prototype,"offlineabilityState",void 0);
_.C([_.O({value:!0}),_.V("design:type",Boolean)],hF.prototype,"showTooltips",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],hF.prototype,"sendCommandWhenDisabled",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],hF.prototype,"disabled",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hF.prototype,"dataChanged",null);
_.C([_.Wh("offlineabilityState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hF.prototype,"showHideButton",null);_.C([_.Wh("transferState","isVideoDeletedByUser"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hF.prototype,"onTransferStateChanged",null);_.C([_.Wh("downloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hF.prototype,"updateProgress",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],hF);
_.b(hF,"ytd-download-button-renderer",function(){if(JI1!==void 0)return JI1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return JI1=F},{mode:2});var Y1C;var pvn,QGf=function(){if(pvn!==void 0)return pvn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return pvn=F};var eyz=_.E("web_button_rework")&&_.yG("BUTTON_REWORK")||_.E("web_button_rework_with_live"),Z5j=_.YE("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,K_=function(){var F=_.x.apply(this,arguments)||this;F.isPressed=!1;F.forceIconButton=!1;F.forceIconOnly=!1;F.forceModernIconButton=!1;F.alignByText=!1;F.isShorts=!1;F.animatedText=!1;F.shouldAnimate=!1;F.JSC$14497_browserSupportsAnimation=_.E("web_supports_animations_api");F.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};F.onTap=function(){var q;if((q=F.data)==null||!q.defaultNavigationEndpoint){var t;q=!((t=F.data)==null?0:t.isToggled);var u;if((u=F.data)==null||!u.preventAutoToggle){F.shouldAnimate=!1;F.disableTextUpdateJobId&&_.mI.cancelJob(F.disableTextUpdateJobId);F.disableTextUpdateJobId=_.mI.addLowPriorityJob(function(){F.disableTextUpdateJobId=void 0},Z5j);
var J;F.set("data.isToggled",!((J=F.data)==null?0:J.isToggled));t=F.getInnertubeIcon();u={toggled:q,actions:{}};t&&(u.actions[t.toLowerCase()]=q);_.Q0(F.hostElement,"yt-toggle-button",u)}}};
return F};
_.M(K_,_.x);_.l=K_.prototype;_.l.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.mI.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.toggle=function(F){var q;this.set("data.isToggled",F!==void 0?F:!((q=this.data)==null?0:q.isToggled))};
_.l.handleUpdateToggleButtonStateCommand=function(F){if(this.data){F=_.n(F,GSv);var q,t,u,J=(q=this.data)==null?void 0:(t=q.toggleButtonSupportedData)==null?void 0:(u=t.toggleButtonIdData)==null?void 0:u.id;J&&F&&J===(F==null?void 0:F.buttonId)&&this.set("data.isToggled",F.toggled)}};
_.l.handleUpdateToggleButtonTextAction=function(F){if(this.data){F=_.n(F,yBz);var q,t,u,J=(q=this.data)==null?void 0:(t=q.toggleButtonSupportedData)==null?void 0:(u=t.toggleButtonIdData)==null?void 0:u.id;J&&F&&J===(F==null?void 0:F.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=F.defaultNumericalValue,this.set("data.defaultText",F.defaultText),this.set("data.toggledText",F.toggledText),this.shouldAnimate=!1)}};
_.l.getInnertubeIcon=function(){var F=this.data;if(F){var q,t,u=((q=F.defaultIcon)==null?0:q.iconType)?(t=F.defaultIcon)==null?void 0:t.iconType:null,J,g;q=((J=F.toggledIcon)==null?0:J.iconType)?(g=F.toggledIcon)==null?void 0:g.iconType:u;return F.isToggled?q:u}};
_.l.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.JJ.Object.defineProperties(K_.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$14497_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var q=F.renderer;var t=F.element;var u=F.toggled;var J=F.onTapCallback;var g=F.commandClientArgs;var Y=F.overrides;var Q=F.forceIcon;var e=F.forceModernIconButton;var r=F.forceDisabled;var N=F.useAnimatedText;var w=F.animatedTextProps;F=u2y(q,u);Q=!q.defaultIcon||!Q&&q.defaultText?q.defaultIcon?"leading":void 0:e?"icon-only":"icon-only-40";Q==="icon-only-40"&&(F.type="text");var k;e=Object;var z=e.assign,T;a:switch((T=
q.style)==null?void 0:T.styleType){case "STYLE_COMPACT_GRAY":T={size:"S"};break a;default:T={size:"M"}}var P=!!u;var v=(v=u&&q.toggledText||q.defaultText)?_.C9(v):void 0;N?(N=_.q1(u&&q.toggledText||q.defaultText))&&w&&!isNaN(Number(w.numberValue))?(w.numberText=N,u&&(w.numberValue+=1),N=w):N=void 0:N=void 0;var H,d,a,S;var K=(w=((d=u?q.toggledAccessibilityData||((K=q.toggledText)==null?void 0:K.accessibility):q.accessibilityData||((H=q.defaultText)==null?void 0:H.accessibility))==null?void 0:(a=d.accessibilityData)==
null?void 0:a.label)||((S=q.accessibility)==null?void 0:S.label))?w:_.q1(u&&q.toggledText||q.defaultText);r=r===void 0?q.isDisabled:r;t=tFu(q,u,J,t,g);u=qp_(q,u);u!=null&&u.length?(u=_.K9({innertubeCommand:UOo(u),forceNewState:!0}),u=B9(u)?u:void 0):u=void 0;q=z.call(e,{},F,T,{iconPosition:Q},Y,{focused:!1,toggled:P,toggleable:!0,formattedButtonText:v,animatedTextProps:N,accessibilityLabel:K,disabled:r,onTap:t,aTagConfig:u},ejM((k=q.colorData)==null?void 0:k.basicColorPaletteData));q.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(q.type="filled");return q}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var F=this.getInnertubeIcon();if(F)return _.Ek(F)}}});
K_.prototype.resetAnimation=K_.prototype.resetAnimation;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],K_.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],K_.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],K_.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],K_.prototype,"isPressed",void 0);_.C([_.O(),_.V("design:type",Object)],K_.prototype,"forceIconButton",void 0);_.C([_.O(),_.V("design:type",Object)],K_.prototype,"forceIconOnly",void 0);_.C([_.O(),_.V("design:type",Object)],K_.prototype,"forceModernIconButton",void 0);_.C([_.O(),_.V("design:type",Object)],K_.prototype,"alignByText",void 0);_.C([_.O(),_.V("design:type",Object)],K_.prototype,"overrides",void 0);
_.C([_.O(),_.V("design:type",Boolean)],K_.prototype,"disabled",void 0);_.C([_.O(),_.V("design:type",Object)],K_.prototype,"isShorts",void 0);_.C([_.O(),_.V("design:type",Object)],K_.prototype,"buttonTooltipPosition",void 0);_.C([_.O(),_.V("design:type",Object)],K_.prototype,"animatedText",void 0);_.C([_.O(),_.V("design:type",String)],K_.prototype,"textNumberValue",void 0);_.C([_.O({computed:"computeTooltip(data, data.isToggled)"}),_.V("design:type",Object)],K_.prototype,"tooltip",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],K_.prototype,"resetAnimation",null);_.C([_.W("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.V("design:type",Object),_.V("design:paramtypes",[])],K_.prototype,"computedButtonShape",null);_.C([_.W("data.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],K_.prototype,"computedIcon",null);
_.C([_.m({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],K_);eyz&&_.b(K_,"ytd-toggle-button-renderer",QGf,{mode:_.Nc("kevlar_poly_si_batch_j081")?1:2});var RyE=_.ld(function(F){function q(r){var N;return _.p(function(w){if(w.nextAddress==1)return(N=!s6P(r,Q())||!Q().enabled)?w.jumpTo(2):w.yield(plA(),3);w.nextAddress!=2&&(N=w.yieldResult);if(N)return w.return();t();setTimeout(function(){Y(!1)},1500);
_.WA(w)})}
function t(){setTimeout(function(){Y(!0);var r;(r=u.lottieEl)==null||r.goToAndPlay(0)},150)}
var u=_.i6(),J=_.X(_.N3(!1,void 0,"UfUosc")),g=J.next().value,Y=J.next().value,Q=_.Jv(F.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.v_(function(){var r,N;((r=F.settings)==null?void 0:(N=r.call(F))==null?void 0:N.uniqueId)==="this is not intended behavior"&&_.bz(new _.D0("Smartimation Settings is undefined"))});
_.AO(function(){Q().experimentEnabled&&(Q().enabled?gK3(q):(Y(!1),l3P(q)),_.vj(function(){l3P(q)}))},"IHhVmc");
_.AO(function(){Q().timings.join("");Q().experimentEnabled&&(XlM(Q()),_.vj(function(){YpM(Q())}))},"fsfhOe");
var e=_.zy(function(){var r=u,N=Q().uniqueId+"-border",w,k;var z="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((k=(w=_.sV().resolve(_.JU(_.qo)))==null?void 0:w())!=null&&k?"dark":"light")+"_v2.json";return{animationRef:r,animationConfig:{name:N,autoplay:!1,loop:!1,path:z}}},void 0,"UWvUGe");
J={};return _.Z("yt-smartimation",{class:_.Ec(F.className,"smartimation",(J["smartimation--experiment-enabled"]=function(){return Q().experimentEnabled},J["smartimation--active-border"]=g,J["smartimation--enable-masking"]=Q6$(),J))},_.Z(_.R,{cond:function(){return Q().experimentEnabled},
then:function(){return _.Z("div",{class:"smartimation__border"},_.Z(_.bT,{className:"smartimation__border-gradient",data:e,animationName:function(){return e().animationConfig.name}}))}}),_.Z("div",{class:"smartimation__content"},F.children))},"G");
RyE.idomCompat=!0;_.ei(RyE,"yt-smartimation",{props:{className:_.NH,settings:_.NH}});var Be=function(){var F=_.x.apply(this,arguments)||this;F.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};F.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};F.shouldEnableSmartimation=!1;return F};
_.M(Be,_.x);Be.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Be.prototype.onDataChanged=function(){var F,q;this.shouldEnableSmartimation=(((F=this.data)==null?void 0:(q=F.timedAnimationData)==null?void 0:q.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Be.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var F=_.n(this.data.likeButton,_.uv),q=_.n(this.data.dislikeButton,_.uv);return!!((F==null?0:F.isToggled)||(q==null?0:q.isToggled))};
Be.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]]"}}}}}};
_.JJ.Object.defineProperties(Be.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var F,q,t=((F=this.data)==null?void 0:(q=F.timedAnimationData)==null?void 0:q.animationTiming)||[];return{uniqueId:"like-dislike",timings:t,enabled:this.shouldEnableSmartimation,experimentEnabled:t.length>0}}}});
Be.prototype.onDataChanged=Be.prototype.onDataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Be.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Be.prototype,"likeButtonOverride",void 0);_.C([_.O(),_.V("design:type",Object)],Be.prototype,"dislikeButtonOverride",void 0);
_.C([_.W("shouldEnableSmartimation"),_.V("design:type",Object),_.V("design:paramtypes",[])],Be.prototype,"smartimationSettings",null);_.C([_.za("data"),_.EB("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Be.prototype,"onDataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Be);
_.b(Be,"ytd-segmented-like-dislike-button-renderer",function(){if(Y1C!==void 0)return Y1C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Y1C=F},{mode:1});var rIw;var NGv;(NGv=document.body)==null||NGv.setAttribute("rounded-container","");var wvL={};wvL.YtToggleButtonBehavior=[_.$9.YtActionHandlerBehavior,S9.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var F=this.data.isToggled;if(!this.isModal_(F)){if(!this.data.preventAutoToggle){this.toggle();var q={toggled:this.data.isToggled,actions:{}};q.actions[this.buttonIcon]=this.data.isToggled;_.Q0(this.hostElement,"yt-toggle-button",q)}q=this.data.defaultServiceEndpoint||null;var t=this.data.toggledServiceEndpoint||null;if(q&&t||q&&this.data.preventAutoToggle)F=F?t:q,q=this.disableCommandHandlerOverride,_.E("killswitch_toggle_button_behavior_resolve_command")||q?_.RD(this.hostElement,
[F]):_.n9(F,this.hostElement),_.Q0(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:F})}},
stateChanged_:function(){var F=this.data;if(F){var q=F.isToggled;this._setEndpoint(this.computeEndpoint_(F));this._setServiceEndpoint(this.computeServiceEndpoint_(F));this._setButtonIcon(this.computeButtonIcon_(F,q));this._setButtonText(this.computeButtonText_(F,q));this._setButtonAccessibility(this.computeAccessibility_(F,q));this._setButtonTooltip(this.computeTooltip_(F,q));this._setButtonClass(this.computeButtonClass_(F,q));this._setIconPositionType(this.computeIconPositionType_(F));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=q):this.elements_.button.setAttribute("aria-pressed",q));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=q)}},
shouldSetIconActiveState_:function(){return _.E("kevlar_system_icons")},
toggle:function(F){this.set("data.isToggled",F!==void 0?F:!this.data.isToggled);_.E("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(F){if(F){var q,t;return!!((q=this.data)==null?0:(t=q.toggledServiceEndpoint)==null?0:t.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(F){return F&&F.defaultNavigationEndpoint||null},
computeButtonIcon_:function(F,q){var t=F&&F.defaultIcon?_.Ek(F.defaultIcon.iconType):null;F=F&&F.toggledIcon?_.Ek(F.toggledIcon.iconType):t;return q?F:t},
handleUpdateToggleButtonStateCommand_:function(F){F=F.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==F.buttonId&&this.toggle(F.toggled)},
computeButtonText_:function(F,q){return F?q&&F.toggledText||F.defaultText||null:null},
computeAccessibility_:function(F,q){return F?(q?this.get("toggledAccessibilityData.accessibilityData",F):this.get("accessibilityData.accessibilityData",F))||F.accessibility||null:null},
computeTooltip_:function(F,q){return F?q&&F.toggledTooltip||F.defaultTooltip||null:null},
computeButtonClass_:function(F,q){if(!F)return"";var t="",u=F.toggledStyle||F.style;if(q=q?u:F.style){q.styleType&&(q=q.styleType);try{t+=q.toLowerCase().replace(/_/g,"-")+" "}catch(J){_.yw(J,q,typeof q),_.bz(J)}}if(F=F.size){F.sizeType&&(F=F.sizeType);try{t+=F.toLowerCase().replace(/_/g,"-")+" "}catch(J){_.yw(J,F,typeof F),_.bz(J)}}return t.trim()},
computeIconPositionType_:function(F){return F&&F.iconPosition||null},
computeServiceEndpoint_:function(F){var q=F&&F.serviceEndpoint,t=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return q?q:t&&F.command?F.command:null},
handleUpdateToggleButtonTextAction_:function(F){F=F.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==F.buttonId&&(this.set("data.defaultText",F.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",F.toggledText),this.notifyPath("data.toggledText"))}}];_.mo("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var i5L=_.E("web_button_rework")&&_.yG("BUTTON_REWORK")||_.E("web_button_rework_with_live"),L_=function(){var F=_.x.apply(this,arguments)||this;F.systemIcons=_.E("kevlar_system_icons");F.roundedContainer=!0;return F};
_.M(L_,_.x);L_.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
L_.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var F=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var q={toggled:!!this.data.isToggled,actions:{}};q.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var t,u;q.actions.playlistId=(t=this.data.defaultServiceEndpoint)==null?void 0:(u=t.playlistEditEndpoint)==null?void 0:u.playlistId;_.Q0(this.hostElement,"yt-toggle-button",q)}(F=F?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(F)}};
L_.prototype.onYtNavigate=function(F){var q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(F.detail.endpoint);q&&(F.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(q))};
_.JJ.Object.defineProperties(L_,{template:{configurable:!0,enumerable:!0,get:function(){if(rIw===void 0){var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);rIw=F}F=rIw;return F}}});
L_.prototype.onYtNavigate=L_.prototype.onYtNavigate;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],L_.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],L_.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(wvL.YtToggleButtonBehavior),_.V("design:type",Object)],L_.prototype,"ytToggleButtonBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],L_.prototype,"data",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],L_.prototype,"showTooltips",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],L_.prototype,"systemIcons",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],L_.prototype,"roundedContainer",void 0);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],L_.prototype,"onYtNavigate",null);
_.C([_.m({is:"ytd-toggle-button-renderer",disableElementRegistration:i5L})],L_);var kZz;_.f_=new _.pg("PANEL_CONTROLLER_TOKEN");_.ap=new _.pg("SHEET_CONTROLLER_TOKEN");_.je=new _.pg("DIALOG_CONTROLLER_TOKEN");kZz=new _.pg("DIALOG_CONTAINER_TOKEN");var EK_=_.oD("DOWNLOAD",{},"Download"),zJt=_.oD("DOWNLOADING",{},"Downloading"),oKA=_.oD("DOWNLOADED",{},"Downloaded"),nKA=_.oD("RETRY",{},"Retry");var EyO=_.ld(function(F){var q=Wzt,t=function(){return""},u=MFu(F.data),J=TEP(F.data),g=GH3(F.data),Y=D6u(F.data);
q=function(){var Q=F.data(),e=iLu(Q,u(),J(),g(),Y()),r=!!Q.videoId,N=e.text;return{title:r?N:void 0,tooltip:r?void 0:N,accessibilityText:N,onTap:e.onTap,iconName:e.iconType,style:Q.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:e.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:Q.buttonSize}};
t={};t=_.Ec("ytDownloadButtonViewModelHost",(t.ytDownloadButtonViewModelIsHidden=function(){var Q=F.data(),e=Y();return Q.playlistId||e()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||e()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},t));
return _.Z("download-button-view-model",{class:t},_.Z(_.AB,{data:q}))},"H");
EyO.idomCompat=!0;var bL$=new _.pg("SUBMIT_API_SERVICE_TOKEN");var I3f,HLM,yRv={submitAction:"SUBMIT_ACTION_SUBMISSION"};var q1W=new _.pg("RENDERER_LOGGER_TOKEN");var a3M=new _.pg("RENDERER_STAMPER_OPTIONS_TOKEN");var CHq;_.MZ=new Bcw;CHq=new Map;var j6u="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),Fxv=["notificationTextRenderer","notificationMultiActionRenderer"],
cRt="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),f3M=d6f(function(F){return _.Hj(F==null?void 0:F.targetId)}).useUpdatableData;var LzA=0;_.Tl.debugName="EjJbCe";var zyw=_.ld(function(F){var q=F.data;F=F.className;_.AN(function(){q().formId||_.mH(Error("Ah"))});
var t=_.vKt(function(){return q().formId},function(){return q().beforeSubmitCommand},function(){return q().afterSubmitCommand}),u=t.submitForm,J=t.isValid,g=t.isSubmitting,Y=function(){return{state:q().isDisabled||!J()||g()?"disabled":"active"}};
return _.Z("yt-submit-button-view-model",{class:_.Ec("ytSubmitButtonViewModelHost",F)},_.Z(_.Tl,{data:function(){return q().button}},{buttonViewModel:function(Q){return _.Z(_.AB,{data:Q.data,
buttonOverrides:Y,onClick:u})}}))},"I");var nyv=_.ld(function(F){var q=F.backgroundLottieRef;var t=F.foregroundLottieRef;var u=F.children;var J=F.wrapperClass;var g=F.disableAnimation;F=function(){return(_.E("web_animated_actions")||_.E("web_animated_actions_v2"))&&!(g==null?0:g())};
return _.Z("yt-animated-action",{class:_.Ec("ytAnimatedActionHost",J)},_.Z("div",{class:"ytAnimatedActionContentWithBackground"},_.Z(_.R,{cond:F,then:function(){return _.Z(oyL,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:q==null?void 0:q(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(tYo()?"dark":"light")+"_v5.json"}}}})}}),u),_.Z(_.R,{cond:F,
then:function(){return _.Z(oyL,{lottiePlayerProps:function(){return{animationRef:t==null?void 0:t(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(tYo()?"dark":"light")+"_v4.json"}}}})}}))},"J");
nyv.idomCompat=!0;var oyL=_.ld(function(F){var q=F.wrapperClass;var t=F.lottieClass;var u=F.lottiePlayerProps;return _.Z("div",{class:_.Ec("ytAnimatedActionLottie",q),"aria-hidden":"true"},_.Z(_.bT,{className:t,data:u,animationName:function(){return u().animationConfig.name}}))},"K");var uMy={isOpen:!1};var sGo={isAllowed:!1};var lcf={errorMessage:"",title:"",privacy:"",isDisabled:!0};var Y1W={isOpen:!1};var QGy={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var MYd={response:void 0};var Z5_=function(F,q){F=F===void 0?MYd:F;switch(q.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},F,{response:q.payload});default:return F}};var TGL={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Ryo=function(F,q){F=F===void 0?TGL:F;switch(q.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},F,{nextDisabled:q.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},F,{nextCommand:q.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},F,{footerSubmissionData:q.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},F,{isImpersonationValid:q.payload});default:return F}};var GZJ={reportFormData:void 0,reportDetailsFormData:void 0};var rIv=function(F,q){F=F===void 0?GZJ:F;switch(q.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},F,{reportFormData:q.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},F,{reportDetailsFormData:q.payload});default:return F}};var DNw=void 0;_.E("mweb_enable_redux_store_on_demand")||(DNw=new tn(NGM()));var ce=_.E("enable_web_delhi_icons");var WxL=_.ld(function(F){F=_.sk(F,{themeOverride:void 0,animationRef:{}});var q=F.animatedIconType,t=F.active,u=F.themeOverride,J=F.animationRef;F=F.staticIconFn;var g=_.X(_.N3(void 0,void 0,"l48agc")),Y=g.next().value,Q=g.next().value,e=function(){a:{var v=q();var H=u==null?void 0:u();var d;H=(H==null?void 0:H.useDarkTheme)||((d=_.sV().resolve(_.JU(_.qo)))==null?void 0:d());switch(v){case "LIKE":DNw||(DNw=new tn(NGM()));v=(v=LN_(DNw.getState()))&&v.animationLightUrl&&v.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:H?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:H?v.animationDarkUrl:v.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(v){H=v;break a}H="animated_like_icon_"+(H?"dark":"light")+"_"+(ce?"v5":"v4");H={lottiePlayerProps:{animationConfig:{name:H,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+H+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(ce?" animated-like-icon-delhi":"")}}},totalFrames:ce?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":H={lottiePlayerProps:{animationConfig:{name:H?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(H?"dark":"light")+(ce?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(ce?" animated-subscribe-icon-delhi":"")}}},totalFrames:ce?120:79,lazyLoad:!1};break a}H=
void 0}return H},r=function(){var v,H;
return(H=(v=e())==null?void 0:v.lottiePlayerProps.animationConfig.name)!=null?H:""},N=function(){if(e()){var v=e().lottiePlayerProps.animationConfig.path;
return vT.get(v)||Y()}};
g=_.X(_.N3(!1,void 0,"sDrGId"));var w=g.next().value;g=g.next().value;var k=i5q(g),z=function(){var v=e(),H,d,a;return(a=v==null?void 0:(H=v.lottiePlayerProps.animationConfig)==null?void 0:(d=H.rendererSettings)==null?void 0:d.className)!=null?a:""},T=void 0,P=void 0;
_.AO(function(){var v=e(),H=r(),d=N(),a=w(),S=t();if(v&&(P!==H&&(P=H,T=S,H=J(),k.animationConfig=v.lottiePlayerProps.animationConfig,k.animationRef=H,d&&(k.animationConfig.animationData=d,k.animationConfig.path=void 0),H=v.lottiePlayerProps.animationConfig.path,!vT.get(H)&&v.lazyLoad&&H&&wvq(H,Q)),!(a||v.lazyLoad&&!d))){if(d=!J().lottieEl)S?(a=v.totalFrames,k.animationConfig.initialSegment=[a-1,a]):k.animationConfig.initialSegment=void 0;if(T!==S&&!d)if(d=J(),S){var K;(K=d.lottieEl)==null||K.playSegments([0,
v.totalFrames],!0)}else{var h;(h=d.lottieEl)==null||h.playSegments([0,1],!0)}T=S}},"RQVZ1d");
return _.Z("animated-icon",{class:"ytAnimatedIconHost"},_.Z(_.R,{cond:function(){var v,H;return!((v=e())==null||!v.lottiePlayerProps.animationConfig.path||((H=e())==null?0:H.lazyLoad)&&!N()||w())},
then:function(){return _.Z(_.bT,{data:k,animationName:r,className:z,animationRef:J})},
else:F}))},"L");_.FO=_.ld(function(F){var q=_.FG("yt-subscribe-button-view-model"),t=_.FG("div"),u=_.FG("div"),J=_.i6(),g=_.i6(),Y=_.i6(),Q=_.nH(KU_,function(){return F.data().stateEntityStoreKey}),e=_.nH(BkM,function(){var cy,wx;
return(wx=(cy=F.data().notificationStateEntityStoreKeys)==null?void 0:cy.subsNotificationStateKey)!=null?wx:""}),r=function(){return!F.data().enableSubscribeButtonPostClickAnimation},N=_.X(_.N3(0,void 0,"YtsSKb")),w=N.next().value,k=N.next().value;
N=_.X(_.N3(0,void 0,"V6JxRe"));var z=N.next().value,T=N.next().value;N=_.X(_.N3(!1,void 0,"JUCSZ"));var P=N.next().value,v=N.next().value;N=_.X(_.N3(!1,void 0,"oV6jwf"));var H=N.next().value,d=N.next().value;N=_.X(_.N3(!1,void 0,"hK1Whe"));var a=N.next().value,S=N.next().value,K;N=_.X(_.N3(!1,void 0,"Asaolf"));var h=N.next().value,c=N.next().value,rf=function(){d(!0);_.AC(_.mI,function(){d(!1)},1500)};
_.AO(function(){var cy=H();rP(function(){cy&&!r()&&Q()&&Wxq(J,g,Y)})},"Qq6Hsf");
_.AO(function(){var cy=Q();rP(function(){if(!r()&&cy){var wx;((wx=F.animateWidth)==null?0:wx.call(F))&&DNv(q.value,!!cy.subscribed,w(),z());var Rj,xO;((Rj=K)==null?0:Rj.subscribed)||!cy.subscribed||cy.key!==((xO=K)==null?void 0:xO.key)||rf();K=cy}})},"hog8te");
N=_.zy(function(){var cy,wx,Rj,xO=F.data(),DQ=!((cy=Q())==null||!cy.subscribed);cy=!((wx=F.isOverlay)==null||!wx.call(F));wx=P()?q:void 0;var fe=(Rj=e())==null?void 0:Rj.state;Rj=h();GZu(xO,fe);return zyv({model:xO,subscribed:DQ,isOverlay:cy,element:wx,notificationState:fe,disableTextEllipsis:!0,focused:Rj})},void 0,"hc1PRd");
var Zv=function(){var cy;if(!r()&&((cy=F.animateWidth)==null?0:cy.call(F))&&(t==null?0:t.value)&&(u==null?0:u.value)&&!a()){cy=Q();var wx=_.X((cy==null?0:cy.subscribed)?[t,u]:[u,t]),Rj=wx.next().value;wx=wx.next().value;Rj=Math.ceil(Rj.value.getBoundingClientRect().width);wx=Math.ceil(wx.value.getBoundingClientRect().width);k(Rj);T(wx);DNv(q.value,!(cy==null||!cy.subscribed),Rj,wx);S(!0)}},kP=_.zq(function(cy){Zv();
var wx=Q();wx&&(cy.detail.endpoint.subscribeEndpoint||cy.detail.endpoint.unsubscribeEndpoint)&&nyM(q.value,!wx.subscribed,wx)}),n3=function(){var cy=_.sV().resolve(_.JU(_.GD));
cy&&c(cy.isKeyBoardInUse())},o_=function(){c(!1)};
_.c2("yt-player-subscribe",function(cy){var wx=Q();wx&&cy===F.data().channelId&&nyM(q.value,!0,wx)});
_.c2("yt-player-unsubscribe",function(cy){var wx=Q();wx&&cy===F.data().channelId&&nyM(q.value,!1,wx)});
_.c2("yt-update-subscribe-button-action",function(cy){cy=_.n(cy,pLz);var wx=Q();wx&&cy&&cy.channelId===F.data().channelId&&nyM(q.value,!!cy.subscribed,wx)});
_.v_(function(){q.value&&(q.value.addEventListener("focusin",n3),q.value.addEventListener("focusout",o_));var cy=_.W2(_.mI,function(){Zv()});
v(!0);_.vj(function(){_.mI.cancelJob(cy);q.value&&(q.value.removeEventListener("focusin",n3),q.value.removeEventListener("focusout",o_))})});
var df=function(){var cy,wx,Rj;if(Rj=!((cy=Q())==null||!cy.subscribed))cy=!!F.data().disableNotificationBell,Rj=(wx=e())==null?void 0:wx.state,Rj=!cy&&!!Rj;return Rj},m$=function(){var cy;
return!((cy=Q())==null?0:cy.subscribed)},gx=function(){var cy,wx;
if(wx=m$()){wx=!!F.data().disableNotificationBell;var Rj=(cy=e())==null?void 0:cy.state;wx=!wx&&!!Rj}return wx},Hf={},Zw={};
return _.Z("yt-subscribe-button-view-model",{class:_.Ec(F.className,"ytSubscribeButtonViewModelHost",(Hf.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var cy,wx;return!((cy=Q())==null||!cy.subscribed)&&((wx=F.animateWidth)==null?void 0:wx.call(F))&&H()},Hf.ytSubscribeButtonViewModelHostHidden=function(){var cy;
return!((cy=Q())==null?0:cy.subscribed)&&F.data().hideWhenUnsubscribed},Hf)),
el:q,"on:yt-service-request-sent":kP},_.Z(nyv,{backgroundLottieRef:J,foregroundLottieRef:g,wrapperClass:_.Ec("ytSubscribeButtonViewModelAnimatedActionWrapper",(Zw.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var cy;return((cy=F.animateWidth)==null?void 0:cy.call(F))&&H()},Zw.ytSubscribeButtonViewModelStaticWidth=function(){var cy;
return!((cy=F.animateWidth)==null?0:cy.call(F))},Zw)),
disableAnimation:r},_.Z("div",{el:t,class:"ytSubscribeButtonViewModelContainer"},_.Z(_.x9,{data:N,icon:function(){return _.Z(_.R,{cond:df,then:function(){var cy=function(){var wx;return oyq((wx=e())==null?void 0:wx.state)};
return _.Z(_.R,{cond:function(){return r()||cy()!=="NOTIFICATIONS_NONE"},
then:function(){return _.Z(_.Tq,{icon:cy})},
else:function(){return _.Z(WxL,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:Y})}})}})},
secondaryIconName:function(){return df()?"EXPAND":void 0}}))),_.Z("div",{el:u,
class:"ytSubscribeButtonViewModelInvisible"},_.Z(_.R,{cond:function(){var cy;return((cy=F.animateWidth)==null?void 0:cy.call(F))&&!r()&&!a()},
then:function(){return _.Z(_.x9,{data:_.zy(function(){var cy;return zyv({model:F.data(),subscribed:m$(),isOverlay:!((cy=F.isOverlay)==null||!cy.call(F)),element:q,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var cy;return gx()?oyq((cy=e())==null?void 0:cy.state):void 0},
secondaryIconName:function(){return gx()?"EXPAND":void 0}})}})))},"M");
_.FO.idomCompat=!0;var O5e=_.ld(function(F){var q=F.data;var t=_.nH(KU_,function(){return q().subscriptionStateEntityKey});
return _.Z(_.R,{cond:function(){var u=q(),J=t();return!u.hideWhenUnsubscribed||(J==null?0:J.subscribed)?_.n(q().button,_.gX):void 0},
then:function(u){return _.Z("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.Z(_.AB,{data:u,buttonOverrides:function(){return{toggled:!0}}}))}})},"N");
O5e.idomCompat=!0;var PVv,q7;PVv=_.ld(function(F){return _.Z(_.Tl,{data:function(){return F.actionRow().actions}},{buttonViewModel:function(q){var t=q.data;
return _.Z(q7,{isRow:F.isRow,isIconOnlyButton:function(){return O53(t())},
useIntrinsicWidth:F.useIntrinsicWidth},_.Z(_.AB,{data:t}))},
subscribeButtonViewModel:function(q){return _.Z(q7,{isRow:F.isRow},_.Z(_.FO,{data:q.data,isOverlay:!1,animateWidth:function(){return!F.isRow()}}))},
downloadButtonViewModel:function(q){var t=q.data;return _.Z(q7,{isRow:F.isRow,isIconOnlyButton:function(){return!!t().playlistId}},_.Z(EyO,{data:t}))},
submitButtonViewModel:function(q){var t=q.data;return _.Z(q7,{isRow:F.isRow,isIconOnlyButton:function(){var u=t();return O53(_.n(u==null?void 0:u.button,_.gX))}},_.Z(zyw,{data:t}))},
toggleButtonViewModel:function(q){var t=q.data;return _.Z(q7,{isRow:F.isRow,isIconOnlyButton:function(){var u=t();return O53(_.n(u.isToggled?u.toggledButtonViewModel:u.defaultButtonViewModel,_.gX))}},_.Z(_.j9,{data:t}))},
subscribePlusButtonViewModel:function(q){return _.Z(q7,{isRow:F.isRow},_.Z(O5e,{data:q.data}))}})},"O");
q7=_.ld(function(F){var q={};return _.Z("div",{class:_.Ec("yt-flexible-actions-view-model-wiz__action",(q["yt-flexible-actions-view-model-wiz__action--row-action"]=F.isRow,q["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=F.useIntrinsicWidth,q["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,q["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=F.isIconOnlyButton,q))},F.children)},"P");
_.tp=_.ld(function(F){var q=function(){var u;return((u=F.layout)==null?void 0:u.call(F))===1},t={};
return _.Z("yt-flexible-actions-view-model",{class:_.Ec("yt-flexible-actions-view-model-wiz",F.className,(t["yt-flexible-actions-view-model-wiz--inline"]=function(){return!q()},t["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return F.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},t))},_.Z(_.Gn,{each:function(){return F.data().actionsRows||[]}},function(u){return _.Z(_.R,{cond:q,
then:function(){return _.Z("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.Z(PVv,{actionRow:u,isRow:q,useIntrinsicWidth:function(){return!!F.data().respectActionIntrinsicWidth}}))},
else:function(){return _.Z(PVv,{actionRow:u,isRow:q})}})}))},"Q");_.ei(_.tp,"yt-flexible-actions-view-model",{props:{data:_.NH,layout:_.NH,justifyContentOverride:_.NH,className:_.NH}});_.uj=_.ld(function(F){var q=_.nH(Vh,function(){var J;return(J=F.data().dislikeEntityKey)!=null?J:""}),t=_.zy(function(){var J=q();
return J?J.likeStatus==="DISLIKE":_.n(F.data().toggleButtonViewModel,_.XZ).isToggled},void 0,"fNr9he"),u=_.zy(function(){return Object.assign({},_.n(F.data().toggleButtonViewModel,_.XZ),{isToggled:t()})},void 0,"AezoCc");
return _.Z("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.Z(_.j9,{data:u,buttonShapeOverrides:F.buttonShapeOverrideables,onToggle:function(J){var g=q();g&&J!==(g.likeStatus==="DISLIKE")&&g.key&&_.ud(_.I4("likeStatusEntity",g.key,{likeStatus:J?"DISLIKE":"INDIFFERENT",hadUserInteraction:J}))}}))},"R");
_.uj.idomCompat=!0;_.Jp=_.ld(function(F){var q=_.E("web_supports_animations_api"),t=X0(function(k){var z=r();if(!k){var T,P;return{numberText:(P=z==null?void 0:(T=z.likeCountIfIndifferent)==null?void 0:T.content)!=null?P:"",numberValue:Number(z==null?void 0:z.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var v;T=(z==null?void 0:(v=z.likeCountIfIndifferent)==null?void 0:v.content)!==k.numberText;if(Q()||!T)return k;var H;return{numberText:(z==null?void 0:(H=z.likeCountIfIndifferent)==null?void 0:H.content)||
"",numberValue:Number(z==null?void 0:z.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!z}}),u=X0(function(k){var z=r();
if(!k){var T,P;return{numberText:(P=z==null?void 0:(T=z.likeCountIfLiked)==null?void 0:T.content)!=null?P:"",numberValue:Number(z==null?void 0:z.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var v;T=(z==null?void 0:(v=z.likeCountIfIndifferent)==null?void 0:v.content)!==k.numberText;if(Q()||!T)return k;var H;return{numberText:(z==null?void 0:(H=z.likeCountIfLiked)==null?void 0:H.content)||"",numberValue:Number(z==null?void 0:z.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!z}}),J=_.X(_.N3(void 0,
void 0,"xldjge")),g=J.next().value,Y=J.next().value,Q=g,e=_.nH(Vh,function(){var k,z;
return(z=(k=F.data())==null?void 0:k.likeStatusEntityKey)!=null?z:""}),r=_.nH(Mwq,function(){var k,z;
return((k=F.likeCountEntity)==null?void 0:(z=k.call(F))==null?void 0:z.key)||""}),N=_.zy(function(){var k;
return((k=e())==null?void 0:k.likeStatus)==="LIKE"},void 0,"B3od5e"),w=function(){var k;
return q&&!((k=F.likeCountEntity)==null||!k.call(F))};
return _.Z("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.Z(_.j9,{data:function(){var k=Object,z=k.assign,T;var P=_.n((T=F.data())==null?void 0:T.toggleButtonViewModel,_.XZ);return z.call(k,{},P||{},{isToggled:N()})},
buttonShapeOverrides:F.buttonShapeOverrideables,animatedTextPropsDefault:function(){return w()?t():void 0},
animatedTextPropsToggled:function(){return w()?u():void 0},
onToggle:function(k){PVM(k,e(),Q(),Y)},
style:function(){var k;return((k=F.disableIconAnimation)==null?0:k.call(F))?void 0:{animateIcon:"true"}}}))},"S");
_.Jp.idomCompat=!0;var xNe=_.ld(function(F){var q=function(){return _.n(F.data().likeButtonViewModel,_.at)},t=function(){var J;
return((J=q())==null?void 0:J.likeStatusEntityKey)||""},u=_.zy(function(){var J,g;
var Y=(g=_.nH(Vh,t)())!=null?g:(J=q())==null?void 0:J.likeStatusEntity;J=F.data();var Q;J=(J==null?void 0:(Q=J.timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:"like-dislike",timings:J,enabled:(Y==null?void 0:Y.likeStatus)==="INDIFFERENT"&&J.length>0,experimentEnabled:J.length>0}},void 0,"wEl1fe");
return _.Z("segmented-like-dislike-button-view-model",{class:_.Ec("ytSegmentedLikeDislikeButtonViewModelHost",F.className),"button-renderer":!0},_.Z(RyE,{settings:u},_.Z("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.Z(_.R,{cond:q,then:function(J){return _.Z(_.Jp,{data:J,likeCountEntity:function(){return F.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.Z(_.R,{cond:function(){return _.n(F.data().dislikeButtonViewModel,_.fu)},
then:function(J){return _.Z(_.uj,{data:J,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"T");
xNe.idomCompat=!0;_.ei(xNe,"segmented-like-dislike-button-view-model",{props:{data:_.NH,className:_.NH}});var AId=_.ld(function(F){var q=F.data;var t=F.className;var u=F.setMinWidth;var J=F.forceIconOnly;var g=_.FG("account-link-button-view-model"),Y=_.nH(_.xN3,function(){var k;return(k=q().accountLinkStatusEntityKey)!=null?k:""}),Q=_.nH(_.xN3,function(){var k;
return(k=q().accountLinkStatusSecondaryEntityKey)!=null?k:""}),e=function(){if(!_.E("web_account_link_secondary_killswitch")){var k,z;
return((k=Y())==null?void 0:k.linked)||((z=Q())==null?void 0:z.linked)}var T;return(T=Y())==null?void 0:T.linked};
_.AO(function(){var k=Y();if(k){var z=AMJ(new xKw,OVJ(new WYL,!!k.linked));_.NZ().then(function(T){T&&(T.setAccountLinkState(_.A9(z.JSC$12153_serializeBinary(),4)),T.updateAccountLinkingConfig(!!k.linked))})}},"IvZF7");
var r=function(){return _.n(q().toggleButtonViewModel,_.XZ)};
_.c2("yt-signal-action-show-account-link-dialog",function(){if(r()){var k=e()?r().toggledButtonViewModel:r().defaultButtonViewModel;k=_.n(k,_.gX);var z;if((z=Y())==null?0:z.isWarning){z=_.n(q().warningButtonViewModel,_.gX);if(!z){_.hN(Error("Bh"));return}k=z}var T;(z=_.Sg((T=k)==null?void 0:T.onTap))&&_.iN([z],g.value)}else _.hN(Error("Ch"))});
var N=function(){var k=r();return Object.assign({},k,{isToggled:e()})},w=function(){return(J==null?0:J())?{iconPosition:"icon-only"}:{}};
return _.Z("account-link-button-view-model",{class:_.Ec("ytwAccountLinkButtonViewModelHost",t,function(){return(u==null?0:u())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:g,"button-renderer":!0},_.Z("div",null,_.Z(_.R,{cond:function(){var k;if((k=Y())==null?0:k.isWarning)return(k=_.n(q().warningButtonViewModel,_.gX))||_.hN(Error("Bh")),k},
then:function(k){return _.Z(_.AB,{data:k,buttonOverrides:w})},
else:function(){return _.Z(_.j9,{data:N,buttonShapeOverrides:w})}})))},"U");_.ei(AId,"account-link-button-view-model",{props:{data:_.NH,className:_.pp,setMinWidth:_.pp,forceIconOnly:_.pp}});_.mo("menuRenderer","menuRenderer","ytd-menu-renderer");
var vyd={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"}},
IcE=_.E("web_fix_missing_action_buttons")?100:200,sl=function(){var F=_.x.apply(this,arguments)||this;F.safeArea=!_.E("kevlar_flex_menu_safe_area_killswitch");F.tonalOverride=!1;F.threeDotSize="M";F.isOverlay=!1;F.useOverlayDark=!1;F.topLevelIconsOnly=!1;F.JSC$14628_lastWidth=0;F.maybeUpdateFlexibleMenu=function(){_.E("web_fix_missing_action_buttons")?requestAnimationFrame(F.maybeUpdateFlexibleMenuImpl):F.maybeUpdateFlexibleMenuImpl()};
F.maybeUpdateFlexibleMenuImpl=function(){var q;if((q=F.data)!=null&&q.flexibleItems){F.maybeFlushDebouncer();q=F.hostElement.clientWidth;var t=q>F.JSC$14628_lastWidth,u,J=((u=F.topLevelButtonsContainer)==null?void 0:u.scrollHeight)||0,g;u=((g=F.flexibleItemButtonsContainer)==null?void 0:g.scrollHeight)||0;g=F.hostElement.scrollHeight>Math.max(J,u)+8;t?(F.resetFlexibleItems(),F.JSC$14628_lastWidth=F.hostElement.clientWidth,F.maybeUpdateFlexibleMenu()):g&&(F.shrinkFlexibleMenu(),F.JSC$14628_lastWidth=
q)}};
F.computeThreeDotButtonShape=function(){if(F.tonalOverride)return Object.assign({},{onTap:function(){F.onOverflowTap()},
iconPosition:"icon-only",style:F.isOverlay?F.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:F.threeDotSize,state:"active",accessibilityLabel:F.computeAccessibilityLabel(F.data)},F.threeDotButtonOverride)};
F.onOverflowTap=function(){if(F.data.fetchMenuCommand)_.sV().resolve(_.gN).resolveCommand(F.data.fetchMenuCommand,{form:{element:F.hostElement}});else if(F.data.isDisabled&&F.data.disabledCommand)_.n9(F.data.disabledCommand,F.hostElement);else{var q=F.createMenuRendererVe(),t={items:F.items};F.data.menuPopupAccessibility&&(t.menuPopupAccessibility=F.data.menuPopupAccessibility);F.data.footer&&(t.footer=F.data.footer);q={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:t},veData:q}};
_.sV().resolve(_.ap).openSheet({openPopupActionCommand:q},F.hostElement)}};
return F};
_.M(sl,_.x);_.l=sl.prototype;_.l.updateButtonOverrides=function(){if(!_.E("menu_renderer_label_update_upkillswitch")){var F=_.ep(this.hostElement).querySelector("yt-button-view-model");F&&(F.buttonOverrides=this.buttonOverrides)}};
_.l.computeHasItems=function(){var F;return((F=this.topLevelButtonData)==null?void 0:F.length)||this.hasFlexibleItems};
_.l.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.l.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.ws(this.hostElement,{"--ytd-menu-renderer-button-color":_.hn(this.data.iconColor)}))};
_.l.onStamperFinished=function(){this.JSC$14628_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.l.setupFlexibleMenu=function(){var F=this,q;(q=this.data)!=null&&q.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.LH(this.maybeUpdateFlexibleMenu,IcE,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){F.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.l.maybeFlushDebouncer=function(){if(_.E("web_replace_formatted_with_attributed_string")){var F;(F=this.topLevelButtons)==null||F.forEach(function(t){var u;(t=(u=t.getElementsByTagName("yt-attributed-string"))==null?void 0:u[0])&&he_(t)});
var q;(q=this.flexibleItemButtons)==null||q.forEach(function(t){var u;(t=(u=t.getElementsByTagName("yt-attributed-string"))==null?void 0:u[0])&&he_(t)})}};
_.l.resetFlexibleItems=function(){var F;if((F=this.data)!=null&&F.flexibleItems){_.E("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var q;this.flexAsTopLevelButtons=(q=this.data.flexibleItems)==null?void 0:q.map(function(t){return _.n(t,_.XQJ).topLevelButton});
_.E("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.l.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.l.shrinkFlexibleMenu=function(){var F;(F=this.flexAsTopLevelButtons)!=null&&F.length&&(this.flexAsTopLevelButtons=[].concat(_.mZ(this.flexAsTopLevelButtons.slice(0,-1))))};
_.l.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:vyd,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:vyd,events:!0}}};
_.l.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.l.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.l.detached=function(){this.icon="MORE_VERT"};
_.l.computeTopLevelButtonData=function(F){if(!F)return[];var q;F=(q=F==null?void 0:F.topLevelButtons)!=null?q:[];return _.m7.unsafeClone([].concat(_.mZ(F)))};
_.l.computeItems=function(F,q){if(!F)return[];var t=[];if(q){var u=(F.flexibleItems||[]).map(function(Y){return _.n(Y,_.XQJ)});
u=_.X(u);for(var J=u.next();!J.done;J=u.next())J=J.value,q.includes(J.topLevelButton)||(J=J.menuItem)&&t.push(J)}var g;F=(g=F==null?void 0:F.items)!=null?g:[];return[].concat(_.mZ(t),_.mZ(F))};
_.l.computeMenuActive=function(F,q){return F||q};
_.l.onPopupOpened=function(){this.overlayOpen=!0;_.Q0(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.l.onPopupClosed=function(){this.overlayOpen=!1;_.Q0(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.l.onPopupCanceled=function(){this.overlayOpen=!1;_.Q0(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.l.computeAccessibilityLabel=function(F){return this.get("accessibility.accessibilityData.label",F)};
_.l.isHidden=function(F,q){return this.tonalOverride||!F?!0:F.fetchMenuCommand||F.isDisabled&&F.disabledCommand?!1:!(q==null?0:q.length)};
_.l.isModernOverflowHidden=function(F,q){return this.tonalOverride&&F?F.fetchMenuCommand?!1:!(q==null?0:q.length):!0};
_.l.createMenuRendererVe=function(){var F=this.data.trackingParams,q=_.yb(),t=_.b7();return F&&q&&t?(F=_.Av(F),t=_.r0(7591),_.E("combine_ve_grafts")?_.PQ(_.DP(),t,F):_.Bo(q,F,t),t):null};
_.JJ.Object.defineProperties(sl.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.flexAsTopLevelButtons)==null||!F.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
sl.prototype.onPopupCanceled=sl.prototype.onPopupCanceled;sl.prototype.onPopupClosed=sl.prototype.onPopupClosed;sl.prototype.onPopupOpened=sl.prototype.onPopupOpened;sl.prototype.tonalOverrideChanged=sl.prototype.tonalOverrideChanged;sl.prototype.resetFlexibleItems=sl.prototype.resetFlexibleItems;sl.prototype.setupFlexibleMenu=sl.prototype.setupFlexibleMenu;sl.prototype.iconButtonColorChanged=sl.prototype.iconButtonColorChanged;sl.prototype.updateButtonOverrides=sl.prototype.updateButtonOverrides;
_.C([_.D(_.En),_.V("design:type",Object)],sl.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.Ms("#button-shape"),_.V("design:type",HTMLElement)],sl.prototype,"buttonShape",void 0);_.C([_.Ms("#button"),_.V("design:type",Object)],sl.prototype,"button",void 0);
_.C([_.O(),_.V("design:type",Object)],sl.prototype,"data",void 0);_.C([_.O({computed:"computeTopLevelButtonData(data)"}),_.V("design:type",Array)],sl.prototype,"topLevelButtonData",void 0);_.C([_.O(),_.V("design:type",Array)],sl.prototype,"flexAsTopLevelButtons",void 0);_.C([_.O({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.V("design:type",Array)],sl.prototype,"items",void 0);_.C([_.O({value:"MORE_VERT"}),_.V("design:type",String)],sl.prototype,"icon",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],sl.prototype,"safeArea",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.V("design:type",Boolean)],sl.prototype,"menuActive",void 0);_.C([_.O(),_.V("design:type",Boolean)],sl.prototype,"menuFocused",void 0);_.C([_.O({value:"bottom"}),_.V("design:type",String)],sl.prototype,"buttonTooltipPosition",void 0);_.C([_.O(),_.V("design:type",Boolean)],sl.prototype,"overlayOpen",void 0);
_.C([_.O({value:!0}),_.V("design:type",Boolean)],sl.prototype,"forceIconButton",void 0);_.C([_.O(),_.V("design:type",Boolean)],sl.prototype,"styleActionButton",void 0);_.C([_.O(),_.V("design:type",Boolean)],sl.prototype,"disableTextTransformOnButtons",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],sl.prototype,"tonalOverride",void 0);_.C([_.O(),_.V("design:type",Object)],sl.prototype,"threeDotSize",void 0);
_.C([_.O(),_.V("design:type",Object)],sl.prototype,"threeDotButtonOverride",void 0);_.C([_.O(),_.V("design:type",Object)],sl.prototype,"isOverlay",void 0);_.C([_.O(),_.V("design:type",Object)],sl.prototype,"useOverlayDark",void 0);_.C([_.O({computed:"computeButtonOverride(tonalOverride)"}),_.V("design:type",Object)],sl.prototype,"buttonOverride",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],sl.prototype,"hasCustomIconColor",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("flexAsTopLevelButtons"),_.V("design:type",Object),_.V("design:paramtypes",[])],sl.prototype,"hasFlexibleItems",null);_.C([_.O({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.V("design:type",Boolean)],sl.prototype,"hasItems",void 0);_.C([_.O(),_.V("design:type",Object)],sl.prototype,"topLevelIconsOnly",void 0);
_.C([_.za("topLevelIconsOnly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sl.prototype,"updateButtonOverrides",null);_.C([_.W("topLevelIconsOnly"),_.V("design:type",Object),_.V("design:paramtypes",[])],sl.prototype,"buttonOverrides",null);_.C([_.Ms("#top-level-buttons-computed"),_.V("design:type",HTMLElement)],sl.prototype,"topLevelButtonsContainer",void 0);_.C([_.Ta(".top-level-buttons > *"),_.V("design:type",Array)],sl.prototype,"topLevelButtons",void 0);
_.C([_.Ms("#flexible-item-buttons"),_.V("design:type",HTMLElement)],sl.prototype,"flexibleItemButtonsContainer",void 0);_.C([_.Ta("#flexible-item-buttons > *"),_.V("design:type",Array)],sl.prototype,"flexibleItemButtons",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sl.prototype,"iconButtonColorChanged",null);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sl.prototype,"setupFlexibleMenu",null);_.C([_.Wh("topLevelIconsOnly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sl.prototype,"resetFlexibleItems",null);_.C([_.za("tonalOverride"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sl.prototype,"tonalOverrideChanged",null);
_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sl.prototype,"onPopupOpened",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sl.prototype,"onPopupClosed",null);_.C([_.EB("yt-popup-canceled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sl.prototype,"onPopupCanceled",null);
_.b(sl,"ytd-menu-renderer",function(){if(Fxw===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);Fxw=F}F=Fxw;return F},{mode:2});var H5J;var mNx;_.gu=_.ld(function(F){var q=F.data;var t=function(){if(q().icon)a:{var u={iconName:q().icon};for(var J=_.sV().resolve(_.zC),g=_.X([12,24]),Y=g.next();!Y.done;Y=g.next()){var Q=Y.value;Y=Object.assign({},u,{iconStyle:"youtube_fill",iconSize:Q});Q=Object.assign({},u,{iconStyle:"youtube_outline",iconSize:Q});if(J.resolveIcon(Y)){u=Y;break a}if(J.resolveIcon(Q)){u=Q;break a}}u=void 0}else u=void 0;return u};
F={};return _.Z("badge-shape",{class:_.Ec("badge-shape-wiz",function(){return $NC(q().type)},(F["badge-shape-wiz--overlay"]=function(){return q().isOverlay},F["badge-shape-wiz--ads-include-dot"]=function(){return q().adsIncludeDot},F["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(q().type){case 17:case 18:case 19:var u=!0;
break a;default:u=!1}return u},F["badge-shape-wiz--status-badge"]=function(){a:switch(q().type){case 12:case 13:case 14:case 15:case 16:var u=!0;
break a;default:u=!1}return u},F["badge-shape-wiz--no-text"]=function(){return!q().text},F["badge-shape-wiz--modern"]=function(){return q().modern||_.E("web_modern_badge_shape")},F)),
style:_.Mo({"background-color":function(){var u;return(u=q().customColors)==null?void 0:u.backgroundColor}}),
role:function(){return q().accessibilityText?"img":void 0},
"aria-label":function(){return q().accessibilityText}},_.Z(_.R,{cond:function(){return q().animation},
then:function(u){return _.Z(_.bT,{className:"badge-shape-wiz__icon",data:u,animationName:function(){return u().animationConfig.name||""}})}}),_.Z(_.R,{cond:function(){var u;
return t()&&!((u=q())==null?0:u.animation)},
then:function(){return _.Z("div",{class:"badge-shape-wiz__icon"},_.Z(lyP,{data:function(){return t()}}))}}),_.Z("div",{class:"badge-shape-wiz__text"},function(){var u;
return(u=q())==null?void 0:u.text}))},"V");
_.gu.idomCompat=!0;_.ei(_.gu,"badge-shape",{props:{data:_.NH}});var lj=function(){var F=_.x.apply(this,arguments)||this;F.systemIcons=_.E("kevlar_system_icons");F.animated=_.E("animated_live_badge_icon");F.useBadgeShape=_.E("web_badge_shape_defrag");return F};
_.M(lj,_.x);_.l=lj.prototype;_.l.addTooltips=function(){for(var F=_.ep(this.hostElement).querySelectorAll(".badge"),q=0,t;t=F[q++];){var u=this.repeatElement.itemForElement(t);t=_.ep(t);t.lastChild&&t.lastChild.is==="tp-yt-paper-tooltip"&&t.removeChild(t.lastChild);if(u=u.metadataBadgeRenderer&&u.metadataBadgeRenderer.tooltip){var J=_.ow("tp-yt-paper-tooltip");(0,_.Ns)(J).textContent=u;J.setAttribute("position","top");J.setAttribute("aria-hidden","true");t.appendChild(J)}}};
_.l.badgesChanged=function(){var F=this;_.g7().parkOrScheduleJob(function(){F.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.l.standaloneRoundedBadgeChanged=function(){var F=this.useRoundedBadge?this.useRoundedBadge:void 0;F&&(this.useRoundedBadge=F)};
_.l.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.l.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.l.computeStyle=function(F){_.E("enable_html5_teal_ad_badge")&&F==="BADGE_STYLE_TYPE_AD"&&(F="badge-style-type-ad-alternate");_.E("kevlar_ytb_live_badges")&&F==="BADGE_STYLE_TYPE_LIVE_NOW"&&(F="badge-style-type-live-now-alternate");return F?F.toLowerCase().replace(/_/g,"-"):""};
_.l.computeRole=function(F){return this.computeAriaLabel(F)?"img":"status"};
_.l.computeAriaLabel=function(F){var q;return(F==null?void 0:(q=F.accessibilityData)==null?void 0:q.label)||(F==null?void 0:F.label)};
_.l.computeBadgeShape=function(F){if(F){var q,t;var u=H5u(F.style);var J=mNf(F.style),g=F.label,Y=((q=F.accessibilityData)==null?void 0:q.label)||F.label;a:switch(F.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":q=!0;break a;default:q=!1}var Q=(t=F.icon)==null?void 0:t.iconType;a:switch(F.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":F=!0;break a;default:F=!1}u={type:u,brNzRatingBadgeType:J,text:g,accessibilityText:Y,
isOverlay:q,icon:Q!=="PREMIUM"?Q:void 0,modern:_.E("web_modern_badge_view_model"),adsIncludeDot:F}}else u={};return u};
_.l.updateComputedBadges=function(F,q,t){var u=this;(q=q?[q]:t?[t]:void 0)?this.computedBadges=q:this.computedBadges=F==null?void 0:F.filter(function(J){var g;if((g=J.metadataBadgeRenderer)==null?0:g.groups){g=!1;J=_.X(J.metadataBadgeRenderer.groups);for(var Y=J.next();!Y.done;Y=J.next()){Y=Y.value;var Q=void 0;g=g||((Q=u.hiddenBadgeGroups)==null?void 0:Q.includes(Y))}return!g}return!0})};
_.l.useFilledIcons=function(F){return _.E("kevlar_system_icons")&&(F==="AUDIO_BADGE"||F==="CHECK_CIRCLE_THICK"||F==="OFFICIAL_ARTIST_BADGE"||F==="SPONSORSHIP_STAR"||F==="PERSON_RADAR_FILLED"||F==="PERSON_RADAR")};
_.l.computeBadgeShapeStyle=function(F){return this.useBadgeShape?F==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||F==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.l.computeIcon=function(F){var q,t;F=F==null?void 0:(q=F.metadataBadgeRenderer)==null?void 0:(t=q.icon)==null?void 0:t.iconType;if(F!=="PREMIUM"&&F)return _.Ek(F)};
_.l.computeStandaloneBadge=function(F){var q;F=F==null?void 0:(q=F.icon)==null?void 0:q.iconType;return F==="PREMIUM_STANDALONE"||F==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
lj.prototype.hiddenBadgeGroupsChanged=lj.prototype.hiddenBadgeGroupsChanged;lj.prototype.standaloneBadgeChanged=lj.prototype.standaloneBadgeChanged;lj.prototype.standaloneRoundedBadgeChanged=lj.prototype.standaloneRoundedBadgeChanged;lj.prototype.badgesChanged=lj.prototype.badgesChanged;_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"hidden",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],lj.prototype,"componentBehavior",void 0);
_.C([_.O(),_.V("design:type",Array)],lj.prototype,"badges",void 0);_.C([_.O(),_.V("design:type",Object)],lj.prototype,"topStandaloneBadge",void 0);_.C([_.O(),_.V("design:type",Object)],lj.prototype,"bottomStandaloneBadge",void 0);_.C([_.O(),_.V("design:type",Object)],lj.prototype,"computedBadges",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"mediumFontAdBadge",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"useRoundedBadge",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"largeFontAdBadge",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"overlayAd",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"overlayPremium",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"noDotAdBadge",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"collectionTruncate",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"isThumbnailBadge",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"wrapBadges",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"systemIcons",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"animated",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"useBadgeShape",void 0);_.C([_.O({value:[]}),_.V("design:type",Array)],lj.prototype,"hiddenBadgeGroups",void 0);_.C([_.Ms("#repeat"),_.V("design:type",m6)],lj.prototype,"repeatElement",void 0);_.C([_.Wh("badges"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lj.prototype,"badgesChanged",null);
_.C([_.Wh("useRoundedBadge"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lj.prototype,"standaloneRoundedBadgeChanged",null);_.C([_.Wh("topStandaloneBadge","bottomStandaloneBadge"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lj.prototype,"standaloneBadgeChanged",null);_.C([_.Wh("hiddenBadgeGroups"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lj.prototype,"hiddenBadgeGroupsChanged",null);
_.C([_.m({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],lj);
var $Nz=_.rc()(lj,"ytd-badge-supported-renderer",function(){if(mNx===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);mNx=F}F=mNx;return F},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Nc("kevlar_poly_si_batch_j053")?1:2});var XO=function(){var F=_.x.apply(this,arguments)||this;F.iconType="STAR";F.standardizeIconSize=_.E("kevlar_system_icons");F.mediaHoverOverlayInitialVisibility=_.E("enable_top_landscape_image_button_command_web");F.noBottomMargin=!1;F.thumbnailObjectFit="CONTAIN";F.thumbnailFitHeight=!0;F.actionMap={"yt-mute-ad-action":"handleMuteAd"};return F};
_.M(XO,_.x);_.l=XO.prototype;
_.l.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"}}}};
_.l.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",XO.JSC$14640_DEFAULT_CLICK_LOCATION_BEHAVIOR,XO.JSC$14640_CLICK_LOCATION_ID_MAP))};
_.l.onTap=function(F){if(!_.E("use_on_click_for_desktop_display_ad"))this.onTapOrClick(F)};
_.l.onClick=function(F){if(_.E("use_on_click_for_desktop_display_ad"))this.onTapOrClick(F)};
_.l.onTapOrClick=function(F){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,F,!1)};
_.l.updateMediaBackgroundImage=function(){var F=this.get("data.image.thumbnail.thumbnails");F&&(F=_.ZR(F,0))&&_.ws(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+F+")"})};
_.l.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var F=0;F<this.data.impressionEndpoints.length;F++){var q=this.data.impressionEndpoints[F];q.clickTrackingParams&&delete q.clickTrackingParams;_.sV().resolve(_.gN).resolveCommand(q,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var t;((t=this.data)==null?0:t.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.l.handleMuteAd=function(){};
_.l.attached=function(){var F=this;_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.JJ.Object.defineProperties(XO.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.titleText)return"";var q;return _.oD("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((q=this.data)==null?void 0:q.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
XO.prototype.onClick=XO.prototype.onClick;XO.prototype.onTap=XO.prototype.onTap;XO.prototype.dataChanged=XO.prototype.dataChanged;
XO.JSC$14640_CLICK_LOCATION_ID_MAP=_.E("enable_web_home_top_landscape_image_layout_click_location")?new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","body-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","secondary-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","media-hover-overlay"],["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",
"media"],["PROMOTED_SPARKLES_CLICK_LOCATION_BORDER","media-background"]]):new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"]]);
XO.JSC$14640_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.E("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.lr),_.V("design:type",Object)],XO.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],XO.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.GK.YtSparklesClickLocationBehavior),_.V("design:type",Object)],XO.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.D(JF),_.V("design:type",Object)],XO.prototype,"ytdActiveViewBehavior",void 0);_.C([_.D([_.$9.YtActionHandlerBehavior]),_.V("design:type",Object)],XO.prototype,"actionHandlerBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],XO.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],XO.prototype,"clickCommand",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],XO.prototype,"miniMode",void 0);_.C([_.O(),_.V("design:type",String)],XO.prototype,"iconType",void 0);_.C([_.W("data.titleText"),_.V("design:type",String),_.V("design:paramtypes",[])],XO.prototype,"titleAriaLabel",null);
_.C([_.W("data.rating"),_.V("design:type",Object),_.V("design:paramtypes",[])],XO.prototype,"getRating",null);_.C([_.W("data.price"),_.V("design:type",Object),_.V("design:paramtypes",[])],XO.prototype,"getPrice",null);_.C([_.W("data.thirdLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],XO.prototype,"getThirdLine",null);_.C([_.W("data.fourthLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],XO.prototype,"getFourthLine",null);
_.C([_.W("data.fifthLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],XO.prototype,"getFifthLine",null);_.C([_.W("getRating"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],XO.prototype,"computeRatingHidden",null);_.C([_.W("getPrice"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],XO.prototype,"computePriceHidden",null);_.C([_.W("getThirdLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],XO.prototype,"computeThirdLineHidden",null);
_.C([_.W("getFourthLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],XO.prototype,"computeFourthLineHidden",null);_.C([_.W("getFifthLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],XO.prototype,"computeFifthLineHidden",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.energyIcon"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],XO.prototype,"hasEnergyIcon",null);
_.C([_.W("computePriceHidden","computeRatingHidden"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],XO.prototype,"computeSecondaryTextHidden",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],XO.prototype,"standardizeIconSize",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],XO.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],XO.prototype,"noBottomMargin",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data.layout"),_.V("design:type",String),_.V("design:paramtypes",[])],XO.prototype,"layout",null);_.C([_.W("data.layout"),_.V("design:type",Object),_.V("design:paramtypes",[])],XO.prototype,"mediaThumbnailWidth",null);_.C([_.W("layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],XO.prototype,"useRoundedBadge",null);_.C([_.O(),_.V("design:type",String)],XO.prototype,"thumbnailObjectFit",void 0);
_.C([_.O(),_.V("design:type",Object)],XO.prototype,"thumbnailFitHeight",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XO.prototype,"dataChanged",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],XO.prototype,"onTap",null);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],XO.prototype,"onClick",null);
_.C([_.m({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],XO);
_.b(XO,"ytd-display-ad-renderer",function(){if(H5J!==void 0)return H5J;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return H5J=F},{mode:1});var b5e;var yIx;var CVf;var b53=new Map;var dNL=!1;var YG=function(){var F=_.x.apply(this,arguments)||this;F.DEFAULT_TOOLTIP_OFFSET="10";F.TOOLTIP_OFFSET_NO_BANNER="-8";F.badges=null;F.noEndpoints=!1;F.wrapText=!1;F.forceVerified=!1;F.tooltipPosition="top";F.compactStyle=!1;F.height=0;F.lineHeight=0;return F};
_.M(YG,_.x);_.l=YG.prototype;_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.l.attached=function(){var F=this;this.observer=new MutationObserver(function(q,t){F.handleResized();t.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.l.detached=function(){this.observer&&this.observer.disconnect()};
_.l.logTooltipEvent=function(){_.E("kevlar_wiz_tooltip_event_killswitch")||dNL||(_.yIf("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),dNL=!0)};
_.l.handleWindowResized=function(){this.handleResized()};
_.l.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")))};
_.l.onHeightChanged=function(){if(this.verified){var F=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.bn("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=F:this.textContainerEl.style.marginRight=F}};
_.l.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.bn("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.l.handleResized=function(){var F=this;this.verified&&_.mI.addLowPriorityJob(function(){F.fitBackgroundToText();var q=getComputedStyle(F.hostElement).lineHeight;q&&(q=q.match(/\d+/))&&q.length&&(F.lineHeight=Number(q[0]));F.height=F.lineHeight&&!F.wrapText?F.lineHeight:F.textEl.offsetHeight})};
_.l.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var F=document.createRange(),q=_.ep(this.textEl).children;q.length>0?F.selectNodeContents(q[0]):F.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(F.getBoundingClientRect().width)+"px"}};
_.l.computeChannelBadgeStyle=function(F){var q;if((F==null?0:(q=F.runs)==null?0:q.length)&&F.runs[0].textColor)return"--ytd-badge-icon-color:"+_.hn(F.runs[0].textColor)+";"};
_.JJ.Object.defineProperties(YG.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"?_.FK(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var F=this.get("badges.0.metadataBadgeRenderer.tooltip");if(F)return F}return _.q1(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
YG.prototype.onLineHeightChanged=YG.prototype.onLineHeightChanged;YG.prototype.onHeightChanged=YG.prototype.onHeightChanged;YG.prototype.onChannelNameChanged=YG.prototype.onChannelNameChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],YG.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],YG.prototype,"badges",void 0);_.C([_.O(),_.V("design:type",Object)],YG.prototype,"channelName",void 0);
_.C([_.O(),_.V("design:type",Object)],YG.prototype,"noEndpoints",void 0);_.C([_.O(),_.V("design:type",Object)],YG.prototype,"wrapText",void 0);_.C([_.O(),_.V("design:type",Object)],YG.prototype,"forceVerified",void 0);_.C([_.O(),_.V("design:type",Object)],YG.prototype,"tooltipPosition",void 0);_.C([_.O(),_.V("design:type",String)],YG.prototype,"tooltip",void 0);_.C([_.O(),_.V("design:type",Boolean)],YG.prototype,"hasChannelArt",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],YG.prototype,"compactStyle",void 0);_.C([_.Ms("#text-container"),_.V("design:type",HTMLElement)],YG.prototype,"textContainerEl",void 0);_.C([_.Ms("#text"),_.V("design:type",Object)],YG.prototype,"textEl",void 0);_.C([_.Ms("#verified-tooltip"),_.V("design:type",HTMLElement)],YG.prototype,"verifiedTooltip",void 0);_.C([_.O(),_.V("design:type",Object)],YG.prototype,"height",void 0);
_.C([_.O(),_.V("design:type",Object)],YG.prototype,"lineHeight",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("badges","forceVerified"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],YG.prototype,"verified",null);_.C([_.W("badges","verified"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],YG.prototype,"hideBadges",null);_.C([_.W("channelName"),_.V("design:type",Object),_.V("design:paramtypes",[])],YG.prototype,"formattedName",null);
_.C([_.W("badges","verified","formattedName"),_.V("design:type",String),_.V("design:paramtypes",[])],YG.prototype,"tooltipText",null);_.C([_.W("hasChannelArt"),_.V("design:type",String),_.V("design:paramtypes",[])],YG.prototype,"tooltipOffset",null);_.C([_.za("channelName"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YG.prototype,"onChannelNameChanged",null);
_.C([_.za("height"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YG.prototype,"onHeightChanged",null);_.C([_.za("lineHeight","height"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YG.prototype,"onLineHeightChanged",null);_.C([_.m({is:"ytd-channel-name",disableElementRegistration:!0})],YG);
_.b(YG,"ytd-channel-name",function(){if(CVf!==void 0)return CVf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return CVf=F},{mode:_.Nc("kevlar_poly_si_batch_j036")?1:2});var pN=function(){var F=_.x.apply(this,arguments)||this;F.standardizeIconSize=_.E("kevlar_system_icons");return F};
_.M(pN,_.x);pN.prototype.basicPaletteChanged=function(){var F;(F=this.data.color)!=null&&F.basicColorPaletteData&&_.II(this.hostElement,this.data.color.basicColorPaletteData)};
pN.prototype.useFilledIcons=function(F){return _.E("kevlar_system_icons")&&(F==="CHECK_CIRCLE_THICK"||F==="OFFICIAL_ARTIST_BADGE")};
_.JJ.Object.defineProperties(pN.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return this.data.authorCreator||((F=this.data)==null?void 0:(q=F.color)==null?void 0:(t=q.basicColorPaletteData)==null?void 0:t.backgroundColor)}}});
pN.prototype.basicPaletteChanged=pN.prototype.basicPaletteChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],pN.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],pN.prototype,"standardizeIconSize",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data.authorUnifiedVerified"),_.V("design:type",Object),_.V("design:paramtypes",[])],pN.prototype,"verified",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],pN.prototype,"creator",null);_.C([_.za("data.color.basicColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pN.prototype,"basicPaletteChanged",null);_.C([_.m({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],pN);
_.b(pN,"ytd-author-comment-badge-renderer",function(){if(yIx!==void 0)return yIx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return yIx=F},{mode:1});var VYJ;var Q6=function(){return _.x.apply(this,arguments)||this};
_.M(Q6,_.x);Q6.prototype.computeThumbnailWidth=function(F){if(F==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Q6.prototype,"data",void 0);_.C([_.O({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],Q6.prototype,"icon",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],Q6.prototype,"surface",void 0);
_.C([_.O({reflectToAttribute:!0,value:_.E("enable_shrink_image_size_on_web_posts_singleton")}),_.V("design:type",Boolean)],Q6.prototype,"searchSxsUx",void 0);_.C([_.m({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Q6);
_.b(Q6,"ytd-backstage-image-renderer",function(){if(VYJ!==void 0)return VYJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return VYJ=F},{mode:1});var UNL;var e2=function(){var F=_.x.apply(this,arguments)||this;F.isLoading=!1;F.selectedItemIndex=-1;return F};
_.M(e2,_.x);_.l=e2.prototype;_.l.computeIsChannelOwner=function(F){if(!F)return!0;F=F[0];return!(F&&(F.signinEndpoint||F.selectServiceEndpoint))};
_.l.computeIsImagePoll=function(F){return(F==null?void 0:F.type)==="POLL_TYPE_IMAGE"};
_.l.computeIsTotalVotesDisabled=function(F){return!(F==null?0:F.totalVotes)};
_.l.thumbnailSrc=function(F){var q,t,u,J;return(F==null?0:(q=F.thumbnails)==null?0:(t=q[0])==null?0:t.url)?_.d$((u=F.thumbnails)==null?void 0:(J=u[0])==null?void 0:J.url):void 0};
_.l.progressWidth=function(F){return"width:"+(F?F*100:0)+"%;"};
_.l.textAreaWidth=function(F){return this.isImagePoll?null:"width:"+(F?F*100:0)+"%;"};
_.l.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.l.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var F=this.data.choices,q=0;q<F.length;q++)if(F[q].selected){this.selectedItemIndex=q;break}};
_.l.onPopupClosed=function(F,q){F=Number(this.pollVotes.selected);q.confirmed&&(this.selectChoice(F,!1),_.ec(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.l.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.l.onYtCommentPollRevert=function(F,q){q&&(this.selectChoice(q.selectedChoiceIndex,!0),this.set("data.totalVotes",q.totalVotes))};
_.l.onYtServiceRequestSent=function(F,q){if(q.actions)for(F=0;F<q.actions.length;F++){var t=q.actions[F];_.n(t,b4)&&this.set("data.totalVotes",_.n(t,b4).totalVotes)}};
_.l.onYtServiceRequestCompleted=function(F){var q=this.get("detail.data.actionResults.0.feedback",F);F=this.get("detail.data.actionResults.0.status",F);if(q==="FEEDBACK_DESELECT"||q==="FEEDBACK_SELECT")this.isLoading=!1,F==="STATUS_FAILED"?_.Q0(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.l.getEndpoint=function(F,q){return q===F?this.data.choices[q].deselectServiceEndpoint||null:this.data.choices[F].selectServiceEndpoint||null};
_.l.selectChoice=function(F,q){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var t=0;t<this.data.choices.length;t++){var u;if(F===this.selectedItemIndex){var J=!1;var g=u=null}else u=(J=t===F)?this.data.choices[t].voteRatioIfSelected:this.data.choices[t].voteRatioIfNotSelected,g=J?this.data.choices[t].votePercentageIfSelected:this.data.choices[t].votePercentageIfNotSelected;this.set("data.choices."+t+".voteRatio",u);
this.set("data.choices."+t+".votePercentage",g);this.set("data.choices."+t+".selected",J)}q||(this.isLoading=!0,(q=this.getEndpoint(F,this.selectedItemIndex))&&_.sV().resolve(_.gN).resolveCommand(q,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===F?-1:F};
_.JJ.Object.defineProperties(e2.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
e2.prototype.onYtServiceRequestCompleted=e2.prototype.onYtServiceRequestCompleted;e2.prototype.onYtServiceRequestSent=e2.prototype.onYtServiceRequestSent;e2.prototype.onYtCommentPollRevert=e2.prototype.onYtCommentPollRevert;e2.prototype.onPopupClosed=e2.prototype.onPopupClosed;e2.prototype.dataChanged=e2.prototype.dataChanged;_.C([_.D(_.l4),_.V("design:type",Object)],e2.prototype,"paperItemBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],e2.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],e2.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],e2.prototype,"isLoading",void 0);_.C([_.O({computed:"computeIsChannelOwner(data.choices)"}),_.V("design:type",Boolean)],e2.prototype,"isChannelOwner",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.V("design:type",Boolean)],e2.prototype,"isImagePoll",void 0);_.C([_.O({computed:"computeIsTotalVotesDisabled(data)"}),_.V("design:type",Boolean)],e2.prototype,"isTotalVotesDisabled",void 0);_.C([_.O(),_.V("design:type",Object)],e2.prototype,"previousPollInfo",void 0);_.C([_.O(),_.V("design:type",Object)],e2.prototype,"selectedItemIndex",void 0);_.C([_.Ms("#poll-votes"),_.V("design:type",Object)],e2.prototype,"pollVotes",void 0);
_.C([_.W("isChannelOwner"),_.V("design:type",Object),_.V("design:paramtypes",[])],e2.prototype,"endpointStyle",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],e2.prototype,"dataChanged",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],e2.prototype,"onPopupClosed",null);
_.C([_.EB("yt-comment-poll-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],e2.prototype,"onYtCommentPollRevert",null);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],e2.prototype,"onYtServiceRequestSent",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],e2.prototype,"onYtServiceRequestCompleted",null);_.C([_.m({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],e2);
_.b(e2,"ytd-backstage-poll-renderer",function(){if(UNL!==void 0)return UNL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return UNL=F},{mode:2});var S1d;var hyE={autoplay:!1,loop:!1},KxC={simpleText:""},ZE=function(){var F=_.x.apply(this,arguments)||this;F.isLoading=!1;F.usesPanelLockup=!1;F.selectedItemIndex=-1;F.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},hyE,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});F.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},hyE,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});F.correctnessAnimationProps=[];F.correctnessAnimationRefs=[];return F};
_.M(ZE,_.x);_.l=ZE.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.l.computeIsChannelOwner=function(F){if(!F)return!0;F=F[0];return!(F&&(F.signinEndpoint||F.selectServiceEndpoint))};
_.l.computeIsTotalVotesDisabled=function(F){return!(F==null?0:F.totalVotes)};
_.l.computeIsImageQuiz=function(F){return(F==null?void 0:F.type)==="POLL_TYPE_IMAGE"};
_.l.onExplanationChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var F=this.data.choices;if(F){this.maybeInitializeQuizLotties(F);for(var q=0;q<F.length;q++)if(F[q].isSelected||this.isChannelOwner&&F[q].isCorrect){this.selectedItemIndex=q;return}this.selectedItemIndex=-1}}};
_.l.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var F=this.selectedItemIndex,q=Number(this.quizVotes.selected);this.selectChoice(q);this.sendVoteAction(q,F);this.quizVotes.selected=-1;var t;F=!((t=this.data)==null?0:t.enableAnimation);this.maybePlayAnswerAnimations(F)}};
_.l.onYtCommentPollRevert=function(F,q){q&&(this.selectChoice(q.selectedChoiceIndex),this.set("data.totalVotes",q.totalVotes))};
_.l.onYtServiceRequestSent=function(F,q){if(q.actions)for(F=_.X(q.actions),q=F.next();!q.done;q=F.next())(q=_.n(q.value,b4))&&this.set("data.totalVotes",q.totalVotes)};
_.l.onYtServiceRequestCompleted=function(F){var q=this.get("detail.data.actionResults.0.feedback",F);F=this.get("detail.data.actionResults.0.status",F);if(q==="FEEDBACK_DESELECT"||q==="FEEDBACK_SELECT")this.isLoading=!1,F==="STATUS_FAILED"?_.Q0(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.l.getAnimationPropsForChoiceIndex=function(F,q){return q[F]};
_.l.maybePlayAnswerAnimations=function(F){F=F===void 0?!1:F;var q;if((q=this.data)!=null&&q.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){q=_.X(this.correctnessAnimationRefs);for(var t=q.next();!t.done;t=q.next()){var u=void 0,J=void 0;(u=t.value)==null||(J=u.lottieEl)==null||J.stop()}if(!(this.selectedItemIndex<0)){q=0;F&&(q=this.isCorrect?37:25);var g,Y;(g=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(Y=g.lottieEl)==null||Y.goToAndPlay(F?q:0,!0);if(!(this.isCorrect||
(g=this.data.choices.findIndex(function(N){return N.isCorrect}),g<0))){var Q,e;
(e=(Q=this.correctnessAnimationRefs[g])==null?void 0:Q.lottieEl)==null||e.goToAndPlay(37,!0);var r;Q=(r=this.fadeContainers)==null?void 0:r.item(g);!F&&Q&&this.fadeIn(Q)}}}};
_.l.thumbnailSrc=function(F){var q,t,u,J;return(F==null?0:(q=F.thumbnails)==null?0:(t=q[0])==null?0:t.url)?_.d$((u=F.thumbnails)==null?void 0:(J=u[0])==null?void 0:J.url):void 0};
_.l.a11yVotedText=function(F,q){var t,u,J=((t=this.data)==null?void 0:(u=t.correctVotedText)==null?void 0:u.simpleText)||"",g,Y;t=((g=this.data)==null?void 0:(Y=g.votedText)==null?void 0:Y.simpleText)||"";if(!q)return"";var Q,e;if((Q=this.data)==null?0:(e=Q.choices)==null?0:e[F].isCorrect)return J;var r,N;return((r=this.data)==null?0:(N=r.choices)==null?0:N[F].isSelected)?t:""};
_.l.getEndpoint=function(F,q){return q===F?this.data.choices[F].deselectServiceEndpoint||null:this.data.choices[F].selectServiceEndpoint||null};
_.l.sendVoteAction=function(F,q){if(F=this.getEndpoint(F,q))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(F)};
_.l.selectChoice=function(F){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var q=0;q<this.data.choices.length;q++)this.set("data.choices."+q+".isSelected",F===this.selectedItemIndex?!1:q===F);this.selectedItemIndex=this.selectedItemIndex===F?-1:F};
_.l.maybeInitializeQuizLotties=function(F){var q=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=F.map(function(t){return{animationConfig:t.isCorrect?q.baseCorrectLottiePlayerAnimationConfig:q.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){q.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(t){return t.animationRef||{}})};
_.l.fadeIn=function(F){F.classList.add("fade-in");_.wC(_.mI,function(){F.classList.remove("fade-in")},900)};
_.JJ.Object.defineProperties(ZE.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.q1(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:(q=F.choices)==null?void 0:q.some(function(t){return t.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null||!F.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?KxC:this.data.choices[this.selectedItemIndex].explanation||KxC}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null||!F.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
ZE.prototype.onYtServiceRequestCompleted=ZE.prototype.onYtServiceRequestCompleted;ZE.prototype.onYtServiceRequestSent=ZE.prototype.onYtServiceRequestSent;ZE.prototype.onYtCommentPollRevert=ZE.prototype.onYtCommentPollRevert;ZE.prototype.dataChanged=ZE.prototype.dataChanged;ZE.prototype.onExplanationChanged=ZE.prototype.onExplanationChanged;_.C([_.D(_.l4),_.V("design:type",Object)],ZE.prototype,"paperItemBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],ZE.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.zD.YtTaskEmitterBehavior),_.V("design:type",Object)],ZE.prototype,"ytTaskEmitterBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],ZE.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ZE.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],ZE.prototype,"isLoading",void 0);_.C([_.O(),_.V("design:type",Object)],ZE.prototype,"usesPanelLockup",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.V("design:type",Boolean)],ZE.prototype,"isChannelOwner",void 0);_.C([_.O({computed:"computeIsTotalVotesDisabled(data)"}),_.V("design:type",Boolean)],ZE.prototype,"isTotalVotesDisabled",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.V("design:type",Boolean)],ZE.prototype,"isImageQuiz",void 0);_.C([_.O(),_.V("design:type",Object)],ZE.prototype,"previousQuizInfo",void 0);_.C([_.O(),_.V("design:type",Object)],ZE.prototype,"selectedItemIndex",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data","usesPanelLockup"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ZE.prototype,"shouldUseModernUi",null);
_.C([_.Ta(".fade-container"),_.V("design:type",Object)],ZE.prototype,"fadeContainers",void 0);_.C([_.O(),_.V("design:type",Array)],ZE.prototype,"correctnessAnimationProps",void 0);_.C([_.W("explanation","showCorrectAnswer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ZE.prototype,"showExplanation",null);_.C([_.W("isChannelOwner","isAttempted"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ZE.prototype,"showCorrectAnswer",null);
_.C([_.W("isChannelOwner","isAttempted","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ZE.prototype,"isQuizAnsweringDisabled",null);_.C([_.W("isQuizAnsweringDisabled"),_.V("design:type",Object),_.V("design:paramtypes",[])],ZE.prototype,"endpointStyle",null);_.C([_.W("data","selectedItemIndex"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ZE.prototype,"isAttempted",null);
_.C([_.W("data","selectedItemIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],ZE.prototype,"explanation",null);_.C([_.W("data","selectedItemIndex"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ZE.prototype,"isCorrect",null);_.C([_.Ms("ytd-expander"),_.V("design:type",Object)],ZE.prototype,"expander",void 0);_.C([_.Ms("#quiz-votes"),_.V("design:type",Object)],ZE.prototype,"quizVotes",void 0);
_.C([_.za("explanation"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZE.prototype,"onExplanationChanged",null);_.C([_.za("data","isChannelOwner"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZE.prototype,"dataChanged",null);_.C([_.EB("yt-comment-quiz-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],ZE.prototype,"onYtCommentPollRevert",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],ZE.prototype,"onYtServiceRequestSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ZE.prototype,"onYtServiceRequestCompleted",null);_.C([_.m({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],ZE);
_.b(ZE,"ytd-backstage-quiz-renderer",function(){if(S1d!==void 0)return S1d;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return S1d=F},{mode:1});var BGd;var Rn=function(){return _.x.apply(this,arguments)||this};
_.M(Rn,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Rn.prototype,"data",void 0);_.C([_.m({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],Rn);
_.b(Rn,"ytd-post-uploaded-video-renderer",function(){if(BGd!==void 0)return BGd;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return BGd=F},{mode:1});var Lxn;var ru=function(){return _.x.apply(this,arguments)||this};
_.M(ru,_.x);ru.prototype.useFilledIcons=function(F){return F==="SPONSORSHIP_STAR"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ru.prototype,"data",void 0);_.C([_.m({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],ru);
var fce=_.rc()(ru,"ytd-sponsors-only-badge-renderer",function(){if(Lxn===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);Lxn=F}F=Lxn;return F},{allowedProps:["data"],
mode:1});var acj;var N7=function(){return _.x.apply(this,arguments)||this};
_.M(N7,_.x);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],N7.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],N7.prototype,"data",void 0);_.C([_.m({is:"ytd-child-video-renderer",disableElementRegistration:!0})],N7);
_.b(N7,"ytd-child-video-renderer",function(){if(acj!==void 0)return acj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return acj=F},{mode:1});var jGf;var cIz;var wu=function(){var F=_.x.apply(this,arguments)||this;F.size=0;F.enableWebModernCollectionsV2=_.E("web_modern_collections_v2");F.fallbackImageSize={height:void 0,width:9999};F.webModernCollections=!1;return F};
_.M(wu,_.x);_.l=wu.prototype;_.l.computeBlurredImageSize=function(F){return F?{height:F*2,width:F*2}:this.fallbackImageSize};
_.l.computeImageSize=function(F){return F?{height:F,width:F}:this.fallbackImageSize};
_.l.computeObjectFit=function(F){return F?"FILL":"CONTAIN"};
_.l.computePreserve=function(F){return F?!0:!1};
_.l.setBackground=function(){var F,q;_.E("web_modern_collections_v2")&&((F=this.data)==null?0:(q=F.thumbnail)==null?0:q.sampledThumbnailColor)&&(F=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+F.red+","+F.green+","+F.blue+",1)")};
wu.prototype.setBackground=wu.prototype.setBackground;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],wu.prototype,"watchFeedThumbnail",void 0);_.C([_.O(),_.V("design:type",Object)],wu.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],wu.prototype,"size",void 0);
_.C([_.O({computed:"computeBlurredImageSize(size)"}),_.V("design:type",Object)],wu.prototype,"blurredImageSize",void 0);_.C([_.O({computed:"computeImageSize(size)"}),_.V("design:type",Object)],wu.prototype,"imageSize",void 0);_.C([_.O({computed:"computePreserve(size)"}),_.V("design:type",String)],wu.prototype,"preserve",void 0);_.C([_.O({computed:"computeObjectFit(size)"}),_.V("design:type",String)],wu.prototype,"objectFit",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],wu.prototype,"enableWebModernCollectionsV2",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],wu.prototype,"webModernCollections",void 0);_.C([_.za("data.thumbnail.sampledThumbnailColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wu.prototype,"setBackground",null);_.C([_.m({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],wu);
_.b(wu,"ytd-playlist-custom-thumbnail-renderer",function(){if(cIz!==void 0)return cIz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return cIz=F},{mode:1});var F9C;var ij=function(){return _.x.apply(this,arguments)||this};
_.M(ij,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ij.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Number)],ij.prototype,"width",void 0);_.C([_.m({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],ij);
_.b(ij,"ytd-playlist-video-thumbnail-renderer",function(){if(F9C!==void 0)return F9C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return F9C=F},{mode:1});var q71;var kG=function(){return _.x.apply(this,arguments)||this};
_.M(kG,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],kG.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Number)],kG.prototype,"width",void 0);_.C([_.m({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],kG);
_.b(kG,"ytd-show-custom-thumbnail-renderer",function(){if(q71!==void 0)return q71;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return q71=F},{mode:1});var tlw;var El=function(){return _.x.apply(this,arguments)||this};
_.M(El,_.x);El.prototype.useFilledIcons=function(F){return F==="MUSIC"||F==="COURSE"};
El.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Bx(this.overlayColor,"0.8");else if(this.overlayColor){var F=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+F.red+","+F.green+","+F.blue+",0.8)"}};
_.JJ.Object.defineProperties(El.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)}}});
El.prototype.overlayColorChanged=El.prototype.overlayColorChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],El.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],El.prototype,"overlayColor",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data.icon","data.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],El.prototype,"overlayStyle",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data.icon","data.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],El.prototype,"overlayTextStyle",null);_.C([_.za("overlayColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],El.prototype,"overlayColorChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],El);
_.b(El,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(tlw!==void 0)return tlw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return tlw=F},{mode:1});var ucj;var zu=function(){var F=_.x.apply(this,arguments)||this;F.active=!1;return F};
_.M(zu,_.x);zu.prototype.computeIsSpinnerHidden=function(F){return(F==null?void 0:F.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
zu.prototype.computeOverlayIcon=function(F){return(F==null?void 0:F.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(F==null?void 0:F.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zu.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],zu.prototype,"active",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],zu);
_.b(zu,"ytd-thumbnail-overlay-downloading-renderer",function(){if(ucj!==void 0)return ucj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ucj=F},{mode:1});var JuJ;var on=function(){return _.x.apply(this,arguments)||this};
_.M(on,_.x);_.JJ.Object.defineProperties(on.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],on.prototype,"data",void 0);_.C([_.W("data.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],on.prototype,"text",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],on);
_.b(on,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(JuJ!==void 0)return JuJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return JuJ=F},{mode:1});var srO,gtz=function(){if(srO!==void 0)return srO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return srO=F};var nN=function(){return _.x.apply(this,arguments)||this};
_.M(nN,_.x);_.JJ.Object.defineProperties(nN,{template:{configurable:!0,enumerable:!0,get:function(){return gtz()}}});
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],nN.prototype,"animateEqualizer",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],nN);_.rc()(nN,"ytd-thumbnail-overlay-equalizer",function(){return gtz()},{allowedProps:["animateEqualizer"],
mode:1});var lFz;var M7=function(){var F=_.x.apply(this,arguments)||this;F.nowPlayingBadge=_.E("web_now_playing_badge");F.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return F};
_.M(M7,_.x);M7.prototype.activeChanged=function(){var F=this;_.E("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.tJ(this,function(){_.Q0(F.hostElement,"yt-playlist-lockup-now-playing-active",F)})};
M7.prototype.onMiniplayerPlayStateChanged=function(F){var q,t=(q=_.n(_.$A().currentEndpoint,_.Fw))==null?void 0:q.videoId;this.isVideoPlaying=F&&(_.E("web_limit_now_playing_animation_killswitch")||this.videoId===t)};
M7.prototype.activeChanged=M7.prototype.activeChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],M7.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],M7.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],M7.prototype,"isVideoPlaying",void 0);_.C([_.O(),_.V("design:type",String)],M7.prototype,"videoId",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],M7.prototype,"equalizerOnly",void 0);_.C([_.O(),_.V("design:type",Boolean)],M7.prototype,"isActive",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],M7.prototype,"nowPlayingBadge",void 0);_.C([_.za("isActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],M7.prototype,"activeChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],M7);
_.b(M7,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(lFz!==void 0)return lFz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return lFz=F},{mode:1});var XCr;var Tu=function(){return _.x.apply(this,arguments)||this};
_.M(Tu,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Tu.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Tu);
_.b(Tu,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(XCr!==void 0)return XCr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return XCr=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var Y7n;var Gu=function(){return _.x.apply(this,arguments)||this};
_.M(Gu,_.x);Gu.prototype.onDurationChanged=function(){var F,q;_.ep(this.hostElement).querySelector("#progress").style.width=((q=(F=this.data)==null?void 0:F.percentDurationWatched)!=null?q:0)+"%"};
Gu.prototype.onDurationChanged=Gu.prototype.onDurationChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Gu.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Gu.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Gu.prototype,"isLive",void 0);_.C([_.za("data.percentDurationWatched"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Gu.prototype,"onDurationChanged",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Gu);
_.b(Gu,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(Y7n!==void 0)return Y7n;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Y7n=F},{mode:1});var pC1;var DE=function(){var F=_.x.apply(this,arguments)||this;F.bottomPanel=!1;F.richGridOverlay=!1;F.watchFeedOverlay=!1;F.isCompact=!1;return F};
_.M(DE,_.x);DE.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.JJ.Object.defineProperties(DE.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:(q=F.icon)==null?void 0:q.iconType)==="PLAY_ALL"&&_.E("kevlar_system_icons")}}});
DE.prototype.widthChanged=DE.prototype.widthChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],DE.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Number)],DE.prototype,"width",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],DE.prototype,"bottomPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],DE.prototype,"richGridOverlay",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],DE.prototype,"watchFeedOverlay",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],DE.prototype,"isCompact",void 0);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],DE.prototype,"isIconFilled",null);_.C([_.za("width","watchFeedOverlay"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DE.prototype,"widthChanged",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],DE);
_.b(DE,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(pC1!==void 0)return pC1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return pC1=F},{mode:1});var QrL;var e2J=["CLIP","SHORTS"],WB=function(){var F=_.x.apply(this,arguments)||this;F.animated=_.E("animated_live_badge_icon");F.hasIcon=!1;F.updateTimerIntervalId=0;F.timeSinceLive=0;return F};
_.M(WB,_.x);_.l=WB.prototype;_.l.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.l.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.l.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.l.hasIconOrText=function(){var F,q;return!!(((F=this.data)==null?0:F.icon)||((q=this.data)==null?0:q.text))};
_.l.initializeLiveBadgeTimer=function(){var F=this,q,t=(q=this.liveBadgeData)==null?void 0:q.startTimestampSec;if(t&&this.canShowLiveBadgeTimer()){var u;q=Number((u=this.liveBadgeData)==null?void 0:u.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(t);this.updateTimerIntervalId=_.rN(function(){F.canShowLiveBadgeTimer()?F.timeSinceLive++:(F.timeSinceLive=0,window.clearInterval(F.updateTimerIntervalId))},q)}else this.timeSinceLive=0};
_.l.canShowLiveBadgeTimer=function(){var F=Date.now(),q,t;return F<(Number((q=this.liveBadgeData)==null?void 0:q.endTimestampSec)-1)*1E3&&F>Number((t=this.liveBadgeData)==null?void 0:t.startTimestampSec)*1E3};
_.JJ.Object.defineProperties(WB.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F=this.data;var q=this.timeSinceLive;var t,u,J,g;a:{var Y=F.style;if(Y===void 0)Y=17;else switch(Y){case "LIVE":Y=18;break a;default:Y=17}}q={type:Y,text:q?G_f({seconds:q}):_.q1(F.text),accessibilityText:(t=F.text)==null?void 0:(u=t.accessibility)==null?void 0:(J=u.accessibilityData)==null?void 0:J.label,icon:(g=F.icon)==null?void 0:g.iconType}}else q={};return q}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return e2J.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
WB.prototype.initializeLiveBadgeTimer=WB.prototype.initializeLiveBadgeTimer;WB.prototype.dataChanged=WB.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],WB.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],WB.prototype,"data",void 0);_.C([_.O({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],WB.prototype,"icon",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],WB.prototype,"animated",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.V("design:type",Boolean)],WB.prototype,"hideTimeStatus",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],WB.prototype,"hasIcon",void 0);_.C([_.O(),_.V("design:type",Object)],WB.prototype,"timeSinceLive",void 0);_.C([_.W("data","timeSinceLive"),_.V("design:type",Object),_.V("design:paramtypes",[])],WB.prototype,"badgeShapeData",null);
_.C([_.W("data","overlayType"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],WB.prototype,"hideBadgeShape",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WB.prototype,"dataChanged",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.style"),_.V("design:type",Object),_.V("design:paramtypes",[])],WB.prototype,"overlayStyle",null);
_.C([_.W("data.liveBadgeData"),_.V("design:type",Object),_.V("design:paramtypes",[])],WB.prototype,"liveBadgeData",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.type"),_.V("design:type",Object),_.V("design:paramtypes",[])],WB.prototype,"overlayType",null);_.C([_.W("overlayType","overlayStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],WB.prototype,"useFilledIcon",null);
_.C([_.Wh("liveBadgeData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WB.prototype,"initializeLiveBadgeTimer",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],WB);
_.b(WB,"ytd-thumbnail-overlay-time-status-renderer",function(){if(QrL!==void 0)return QrL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return QrL=F},{mode:_.Nc("kevlar_poly_si_batch_j035")?1:2});var ZUx;var Ol=function(){return _.x.apply(this,arguments)||this};
_.M(Ol,_.x);Ol.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"}}}}};
Ol.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(F){if(this.hasPlaybackProgressBar)return{percentDurationWatched:F.percentDurationWatched}};
Ol.prototype.computeHasPlaybackProgressBar=function(F){return!!F.percentDurationWatched&&F.percentDurationWatched>0};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ol.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ol.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.V("design:type",Boolean)],Ol.prototype,"hasPlaybackProgressBar",void 0);
_.C([_.m({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Ol);
_.b(Ol,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(ZUx!==void 0)return ZUx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ZUx=F},{mode:1});var R2v;var run=_.ld(function(F){var q=F.data;var t=F.children;var u=function(){return!!q().doubleStack},J=function(){return!!q().includeStackHeight};
return _.Z("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!q().experimentEnabled}},_.Z(_.R,{cond:q,
then:function(){var g={};return _.Z(_.ln,null,_.Z(_.R,{cond:J,then:function(){var Y={};return _.Z("div",{class:_.Ec("collections-stack-wiz__spacer",(Y["collections-stack-wiz__spacer--double-stack"]=u,Y))})}}),_.Z("div",{class:_.Ec((g["collections-stack-wiz__relative-stack"]=J,g))},_.Z(_.R,{cond:u,
then:function(){var Y={};return _.Z("div",{class:_.Ec("collections-stack-wiz__collection-stack2",function(){return q().customClassName2ndStack},(Y["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return q().enableResponsiveMode},Y)),
style:_.Mo({"background-color":function(){return dNq(q())}})})}}),_.Z("div",{class:_.Ec("collections-stack-wiz__collection-stack1",function(){return q().customClassName1stStack},function(){return CVy(q().thumbnailSize?q().thumbnailSize:"medium")}),
style:_.Mo({"background-color":function(){return dNq(q())}})}),t))}}))},"W");_.ei(run,"yt-collections-stack",{props:{data:_.NH}});var PB=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};F.webModernCollections=!1;F.isSearch=!1;F.isDoubleStack=!1;F.thumbnailSize="medium";F.enableWebModernCollectionsV2=_.E("web_modern_collections_v2");return F};
_.M(PB,_.x);_.l=PB.prototype;
_.l.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]]"}}}}}};
_.l.getThumbnailDetails=function(F){if(F!=null&&F.thumbnailRenderer){var q=F.thumbnailRenderer,t;if((t=q.playlistVideoThumbnailRenderer)==null?0:t.thumbnail)return q.playlistVideoThumbnailRenderer.thumbnail;var u;if((u=q.playlistCustomThumbnailRenderer)==null?0:u.thumbnail)return q.playlistCustomThumbnailRenderer.thumbnail;F=F.thumbnailRenderer;var J;if((J=F.showCustomThumbnailRenderer)==null?0:J.thumbnail)return F.showCustomThumbnailRenderer.thumbnail}};
_.l.computeOverlayColor=function(F){var q,t;if((q=this.getThumbnailDetails(F))==null?0:(t=q.darkColorPalette)==null?0:t.section2Color)return this.getThumbnailDetails(F).darkColorPalette.section2Color;var u;return(u=this.getThumbnailDetails(F))==null?void 0:u.sampledThumbnailColor};
_.l.computeWebModernCollections=function(F){if(F==null||!F.thumbnailOverlays)return!1;F=_.X(F.thumbnailOverlays);for(var q=F.next();!q.done;q=F.next()){var t=void 0;if((t=q.value)==null?0:t.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.l.computeNavigationEndpoint=function(F){return stu(F==null?void 0:F.navigationEndpoint)};
_.JJ.Object.defineProperties(PB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var F=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:F==null?void 0:F.sampledThumbnailColor,vibrantColorPalette:F==null?void 0:F.vibrantColorPalette,darkColorPalette:F==null?void 0:F.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],PB.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(n3O),_.V("design:type",Object)],PB.prototype,"ytdThumbnailBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],PB.prototype,"componentBehavior",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],PB.prototype,"watchFeedThumbnail",void 0);_.C([_.O(),_.V("design:type",Number)],PB.prototype,"customThumbnailSize",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],PB.prototype,"hideAria",void 0);_.C([_.O(),_.V("design:type",Object)],PB.prototype,"data",void 0);_.C([_.O({computed:"computeOverlayColor(data)"}),_.V("design:type",Object)],PB.prototype,"overlayColor",void 0);
_.C([_.O({computed:"computeWebModernCollections(data)"}),_.V("design:type",Object)],PB.prototype,"webModernCollections",void 0);_.C([_.O({computed:"computeNavigationEndpoint(data)"}),_.V("design:type",Object)],PB.prototype,"computedNavigationEndpoint",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],PB.prototype,"isSearch",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],PB.prototype,"isDoubleStack",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],PB.prototype,"thumbnailSize",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],PB.prototype,"enableWebModernCollectionsV2",void 0);_.C([_.W("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.V("design:type",Object),_.V("design:paramtypes",[])],PB.prototype,"collectionStack",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],PB);
_.b(PB,"ytd-playlist-thumbnail",function(){if(R2v!==void 0)return R2v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return R2v=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var NeO;var xG=function(){var F=_.x.apply(this,arguments)||this;F.noEndpoints=!1;F.amsterdamPostMvp=_.E("web_amsterdam_post_mvp_playlists");F.badges=[];F.transferState="TRANSFER_STATE_UNKNOWN";return F};
_.M(xG,_.x);_.l=xG.prototype;_.l.getMetadata=function(F){if(!F)return[];var q=[],t=F.shortViewCountText||F.viewCountText;t&&q.push(_.q1(t));F.publishedTimeText&&q.push(_.q1(F.publishedTimeText));F.upcomingEventData&&F.upcomingEventData.upcomingEventText&&q.push(_.vD(_.q1(F.upcomingEventData.upcomingEventText),Number(F.upcomingEventData.startTime)));return q};
_.l.observeDataForBylineSeparator=function(){this.data&&_.RE(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.l.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.hn(this.metadataColor)};
_.l.getSimpleString=function(F){return _.q1(F)};
_.l.isBylineHidden=function(F){return this.noByline||!((F==null?0:F.longBylineText)||(F==null?0:F.shortBylineText))};
_.l.isMetadataHidden=function(F){var q;return((q=this.getMetadata(F))==null?void 0:q.length)===0};
_.l.isBylineMetadataSeparatorHidden=function(F){return this.isMetadataHidden(F)||!this.shouldShowVideoInfo};
_.l.isLongByline=function(F,q){return q&&!(F==null||!F.longBylineText)};
_.JJ.Object.defineProperties(xG.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var F;return this.amsterdamPostMvp&&!((F=this.data)==null||!F.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
xG.prototype.metadataColorChanged=xG.prototype.metadataColorChanged;xG.prototype.observeDataForBylineSeparator=xG.prototype.observeDataForBylineSeparator;_.C([_.D(_.s9),_.V("design:type",Object)],xG.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],xG.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],xG.prototype,"noEndpoints",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],xG.prototype,"isSlimShort",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],xG.prototype,"radioMeta",void 0);_.C([_.O({selector:_.Cp}),_.V("design:type",Object)],xG.prototype,"isGridViewEnabled",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],xG.prototype,"richMeta",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],xG.prototype,"amsterdamPostMvp",void 0);_.C([_.O(),_.V("design:type",Boolean)],xG.prototype,"noByline",void 0);
_.C([_.O({computed:"isLongByline(data, radioMeta)"}),_.V("design:type",Boolean)],xG.prototype,"longByline",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],xG.prototype,"truncateMetadataLine",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],xG.prototype,"miniMode",void 0);_.C([_.O(),_.V("design:type",Number)],xG.prototype,"metadataColor",void 0);_.C([_.O(),_.V("design:type",Array)],xG.prototype,"badges",void 0);
_.C([_.O({selector:_.VX,selectorArgs:["data.videoId"]}),_.V("design:type",String)],xG.prototype,"transferState",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],xG.prototype,"isDownloading",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],xG.prototype,"typographyBump",void 0);_.C([_.Ms("#metadata-line"),_.V("design:type",HTMLElement)],xG.prototype,"metadataLine",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xG.prototype,"observeDataForBylineSeparator",null);_.C([_.za("metadataColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xG.prototype,"metadataColorChanged",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],xG.prototype,"shouldShowVideoInfo",null);
_.C([_.W("badges"),_.V("design:type",String),_.V("design:paramtypes",[])],xG.prototype,"inlineBadgeClass",null);_.C([_.W("longByline"),_.V("design:type",String),_.V("design:paramtypes",[])],xG.prototype,"longBylineClass",null);_.C([_.W("data","longByline"),_.V("design:type",Object),_.V("design:paramtypes",[])],xG.prototype,"bylineText",null);_.C([_.W("isGridViewEnabled","data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],xG.prototype,"watchFeedBigThumbs",null);
_.C([_.m({is:"ytd-video-meta-block",disableElementRegistration:!0})],xG);
_.b(xG,"ytd-video-meta-block",function(){if(NeO!==void 0)return NeO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return NeO=F},{mode:_.Nc("kevlar_poly_si_batch_j080")?1:2});_.mo("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Ap=function(){var F=_.x.apply(this,arguments)||this;F.displayItemCount=2;F.isBackstagePlaylist=!1;F.isPostCompactPlaylist=!1;F.shouldShowChannelThumbnail=!1;F.useModernCollectionsV2=_.E("web_modern_collections_v2");return F};
_.M(Ap,_.x);_.l=Ap.prototype;_.l.computeFirstVideos=function(F,q){return F===void 0||q===void 0?[]:F.slice(0,q)};
_.l.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var F=this.data.thumbnailRenderer;F.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",F.playlistVideoThumbnailRenderer.thumbnail);F.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",F.playlistCustomThumbnailRenderer.thumbnail)}};
_.l.computeThumbnailHeight=function(F,q,t,u,J){return u?J==="BIG"?280:J==="MASSIVE"?337:234:t?240:q?72:F?118:138};
_.l.computeThumbnailWidth=function(F,q,t,u,J){return u?J==="MEDIUM"?450:J==="BIG"?500:J==="MASSIVE"?600:420:t?360:q?128:F?210:246};
_.l.computeUseBiggerThumbs=function(F){return F&&_.E("enable_desktop_search_bigger_thumbs")};
_.l.computeShouldShowChannelThumbnail=function(F,q){return F&&!(q==null||!q.channelThumbnail)};
_.JJ.Object.defineProperties(Ap.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Ap.prototype.dataChanged=Ap.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],Ap.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Ap.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ap.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Ap.prototype,"displayItemCount",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ap.prototype,"isBackstagePlaylist",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ap.prototype,"isPostCompactPlaylist",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ap.prototype,"isSearch",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.V("design:type",Boolean)],Ap.prototype,"useBiggerThumbs",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.pE("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],Ap.prototype,"biggerThumbsStyle",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ap.prototype,"isDownloads",void 0);_.C([_.O({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.V("design:type",Object)],Ap.prototype,"shouldShowChannelThumbnail",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ap.prototype,"useModernCollectionsV2",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ap.prototype,"dataChanged",null);_.C([_.W("isSearch"),_.V("design:type",String),_.V("design:paramtypes",[])],Ap.prototype,"stackThumbnailSize",null);_.C([_.m({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Ap);
_.b(Ap,"ytd-playlist-renderer",function(){if(jGf===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);jGf=F}F=jGf;return F},{mode:1});var wCE;var iUe;var vB=function(){var F=_.x.apply(this,arguments)||this;F.collections=!!_.E("web_modern_collections_v2");F.startX=0;return F};
_.M(vB,_.x);vB.prototype.onEndpointMouseDown=function(F){this.startX=F.clientX};
vB.prototype.onEndpointClick=function(F){this.startX!==F.clientX&&(F.preventDefault(),F.stopPropagation())};
vB.prototype.computeObjectFit=function(F){return F==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||F==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||F==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
vB.prototype.computeCardStyle=function(F){return F?F.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.JJ.Object.defineProperties(vB.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var F,q;return this.collections&&((F=this.data)==null?void 0:(q=F.searchRefinementCardRendererStyle)==null?void 0:q.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}}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],vB.prototype,"data",void 0);_.C([_.O({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.V("design:type",Number)],vB.prototype,"objectFit",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.V("design:type",String)],vB.prototype,"cardStyle",void 0);
_.C([_.O({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],vB.prototype,"roundContainer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],vB.prototype,"collections",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],vB.prototype,"isAlbumCard",null);_.C([_.W("data","collections","isAlbumCard"),_.V("design:type",Object),_.V("design:paramtypes",[])],vB.prototype,"collectionStack",null);
_.C([_.m({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],vB);
_.b(vB,"ytd-search-refinement-card-renderer",function(){if(iUe!==void 0)return iUe;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return iUe=F},{mode:1});var kNz;var In=function(){var F=_.x.apply(this,arguments)||this;F.isRichGrid=!1;return F};
_.M(In,_.x);_.C([_.O(),_.V("design:type",Object)],In.prototype,"data",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],In.prototype,"componentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],In.prototype,"ytdReduxBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],In.prototype,"isRichGrid",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],In.prototype,"miniMode",void 0);
_.C([_.m({is:"ytd-game-details-renderer",disableElementRegistration:!0})],In);
_.b(In,"ytd-game-details-renderer",function(){if(kNz!==void 0)return kNz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return kNz=F},{mode:1});var Etz;var z2d;var HB=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return F};
_.M(HB,_.x);_.l=HB.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.currentStateData=function(F){var q=F||this.data;return q&&q.states&&q.currentStateId!=null?q.states.find(function(t){return t.stateId===q.currentStateId})||null:null};
_.l.currentStateRendererData=function(F){return(F=this.currentStateData(F))&&F.state&&F.state.buttonRenderer?F.state.buttonRenderer:null};
_.l.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())};
_.l.computeButtonIcon=function(F){F=this.currentStateRendererData(F);var q;return(F==null?0:(q=F.icon)==null?0:q.iconType)?F.icon.iconType.toLowerCase():null};
_.l.computeAccessibility=function(F){return(F=this.currentStateRendererData(F))&&F.accessibilityData?F.accessibilityData.accessibilityData||null:null};
_.l.computeButtonClass=function(F){var q=this.currentStateRendererData(F);if(!q)return"";F="";var t=q.style;t&&(F+=t.toLowerCase().replace(/_/g,"-")+" ");(q=q.size)&&(F+=q.toLowerCase().replace(/_/g,"-")+" ");return F.trim()};
_.l.computeServiceEndpoint=function(F){if(!F)return null;var q=F&&F.serviceEndpoint,t=this.get("command.commandMetadata.webCommandMetadata.sendPost",F);return q?q:t&&F.command?F.command:null};
_.l.computeBellMenuItemParams=function(F){var q;F=(q=_.n(F==null?void 0:F.command,_.wY))==null?void 0:q.commands;if(!F||F.length===0)return null;q=_.n(F[0],_.y5);var t,u;return(q==null?0:(t=q.popup)==null?0:(u=t.menuPopupRenderer)==null?0:u.items)?q.popup.menuPopupRenderer.items.map(function(J){return J.menuServiceItemRenderer.trackingParams}):null};
_.l.handleBellMenuOpenSelectedAction=function(F){var q=F.trackingParams,t=this.computeBellMenuItemParams(this.data);this.data&&q&&t&&t.includes(q)&&this.ytRenderButtonBehavior._setButtonIcon(F.icon.iconType.toLowerCase())};
_.l.onYtServiceRequestCompleted=function(F,q){(F=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",q))&&this.set("data",F)};
_.l.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.l.resetState=function(){this.set("data.currentStateId",3)};
_.l.onYtButtonTapHandler=function(){if(this.data){var F=this.currentStateRendererData(this.data);F&&this.ytRendererBehavior.logExplicitClick(F)}};
HB.prototype.onYtServiceRequestError=HB.prototype.onYtServiceRequestError;HB.prototype.onYtServiceRequestCompleted=HB.prototype.onYtServiceRequestCompleted;HB.prototype.stateChanged=HB.prototype.stateChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],HB.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(S9.YtRenderButtonBehavior),_.V("design:type",Object)],HB.prototype,"ytRenderButtonBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],HB.prototype,"data",void 0);_.C([_.Wh("data","data.currentStateId"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HB.prototype,"stateChanged",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],HB.prototype,"onYtServiceRequestCompleted",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],HB.prototype,"onYtServiceRequestError",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],HB);
_.b(HB,"ytd-subscription-notification-toggle-button-renderer",function(){if(z2d!==void 0)return z2d;var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return z2d=F},{mode:1});var ote;var mm=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};F.tapHandler=function(){if(F.data){var q=F.currentStateRendererData();q&&F.ytRendererBehavior.logExplicitClick(q)}};
return F};
_.M(mm,_.x);_.l=mm.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.currentStateData=function(){var F=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(q){return q.stateId===F.data.currentStateId})||null:null};
_.l.currentStateRendererData=function(){var F=this.currentStateData();return F&&F.state&&F.state.buttonRenderer?F.state.buttonRenderer:null};
_.l.computeAccessibilityLabel=function(){var F,q,t;return(F=this.currentStateRendererData())==null?void 0:(q=F.accessibilityData)==null?void 0:(t=q.accessibilityData)==null?void 0:t.label};
_.l.computeBellMenuItemParams=function(){var F,q,t=(q=_.n((F=this.data)==null?void 0:F.command,_.wY))==null?void 0:q.commands;if(!t||t.length===0)return null;F=_.n(t[0],_.y5);var u,J;return(F==null?0:(u=F.popup)==null?0:(J=u.menuPopupRenderer)==null?0:J.items)?F.popup.menuPopupRenderer.items.map(function(g){return g.menuServiceItemRenderer.trackingParams}):null};
_.l.handleBellMenuOpenSelectedAction=function(F){var q=F.trackingParams,t=this.computeBellMenuItemParams();if(this.data&&q&&t&&t.includes(q)&&(F==null||!F.isDisabled)){var u;((u=_.n(F.serviceEndpoint,_.ko))==null?void 0:u.signal)!=="CLIENT_SIGNAL"&&(this.icon=F.icon.iconType)}};
_.l.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.l.onYtServiceRequestCompleted=function(F,q){if(F=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",q))this.icon=void 0,this.set("data",F)};
_.l.onYtServiceRequestError=function(){this.icon=void 0};
_.JJ.Object.defineProperties(mm.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F=this.data,q=this.textLabel,t=this.hostElement,u=this.computeAccessibilityLabel(),J=this.tapHandler,g=this.isOverlay?"overlay":"mono",Y=(F==null?0:F.disableButton)?"disabled":"active";q=q?_.C9(q):void 0;return{style:g,type:"tonal",state:Y,size:"M",focused:!1,formattedButtonText:q,iconPosition:"leading-trailing",onTap:UNq(F,J,t),accessibilityLabel:u}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var F=this.currentStateRendererData(),q,t,u=(t=this.icon)!=null?t:F==null?void 0:(q=F.icon)==null?void 0:q.iconType;if(u)return _.Ek(u)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(F=this.data)==null?void 0:(q=F.secondaryIcon)==null?void 0:q.iconType;if(t)return _.Ek(t)}}});
mm.prototype.onYtServiceRequestError=mm.prototype.onYtServiceRequestError;mm.prototype.onYtServiceRequestCompleted=mm.prototype.onYtServiceRequestCompleted;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],mm.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],mm.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],mm.prototype,"textLabel",void 0);
_.C([_.O(),_.V("design:type",String)],mm.prototype,"icon",void 0);_.C([_.O(),_.V("design:type",Boolean)],mm.prototype,"isOverlay",void 0);_.C([_.W("data.*","textLabel"),_.V("design:type",Object),_.V("design:paramtypes",[])],mm.prototype,"computedButtonShape",null);_.C([_.W("data.*","icon"),_.V("design:type",Object),_.V("design:paramtypes",[])],mm.prototype,"computedIcon",null);_.C([_.W("computedIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],mm.prototype,"computedAnimateIcon",null);
_.C([_.W("data.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],mm.prototype,"computedSecondaryIcon",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],mm.prototype,"onYtServiceRequestCompleted",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mm.prototype,"onYtServiceRequestError",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],mm);
_.b(mm,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(ote!==void 0)return ote;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return ote=F},{mode:_.Nc("kevlar_poly_si_batch_j081")?1:2});var ntO;_.ei(nyv,"yt-animated-action",{props:{backgroundLottieRef:_.NH,foregroundLottieRef:_.NH,wrapperClass:_.NH,disableAnimation:_.NH},unsafeExternallySettableAttributes:new Set(["key"])});var $G=function(){var F=_.x.apply(this,arguments)||this;F.animatedActionEnabled=_.E("web_animated_actions");F.foregroundLottieRef={};F.backgroundLottieRef={};F.forceIconOnly=!1;F.showTextWhileAnimating=!1;F.keyboardFocused=!1;F.isAnimating=!1;F.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return F};
_.M($G,_.x);_.l=$G.prototype;_.l.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.l.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]]"}}}}}};
_.l.attached=function(){this.keyboardFocused=!1};
_.l.onYtServiceRequestSent=function(F,q){(this.get("endpoint.subscribeEndpoint",q)||this.get("endpoint.unsubscribeEndpoint",q))&&this.updateSubscriptionState(!this.subscribed)};
_.l.onYtServiceRequestCompleted=function(F,q){(F=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",q.data))&&this.bellButton&&(this.bellButton.data=F)};
_.l.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.ws(this.hostElement)};
_.l.onPlayerSubscribe=function(F){this.isCompactRed()||F!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.l.onPlayerUnsubscribe=function(F){this.isCompactRed()||F!==this.data.channelId||this.updateSubscriptionState(!1)};
_.l.handleUpdateSubscribeButtonAction=function(F){F=_.n(F,pLz);var q;F&&F.channelId===((q=this.data)==null?void 0:q.channelId)&&this.updateSubscriptionState(!!F.subscribed)};
_.l.computeButtonStyle=function(F){return this.get("style.styleType",F)||null};
_.l.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.l.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.l.updateSubscriptionState=function(F){if(F!==this.subscribed){this.set("data.subscribed",F);var q,t=(q=this.data)==null?void 0:q.subscribedEntityKey;t&&this.ytdReduxBehavior.dispatch(_.Gl("subscriptionStateEntity",t,{key:t,subscribed:F}));this.isCompactRed()||_.Q0(this.hostElement,"yt-subscription-changed",F);F||(_.ec(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!F),F&&this.hasBellButton&&this.startAnimation())}};
_.l.startAnimation=function(){var F=this;if(!this.isAnimating){var q=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var t;(t=this.backgroundLottieRef.lottieEl)==null||t.goToAndPlay(0);var u;(u=this.foregroundLottieRef.lottieEl)==null||u.goToAndPlay(0);_.mI.addJob(function(){F.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.mI.addJob(function(){F.updateContainerToFitContent(!!F.subscribed,!0)},2,1500);
_.mI.addJob(function(){F.isAnimating=!1},2,q)}};
_.l.maybeAnimateBellIcon=function(){var F=_.Zj(this.hostElement).querySelector("yt-animated-icon");if(F){var q;(q=F.animationRef.lottieEl)==null||q.goToAndPlay(0)}};
_.l.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.l.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.l.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var F;this.unsubscribedWidth=(F=this.subscribeButtonShape)==null?void 0:F.getBoundingClientRect().width}var q;this.subscribedWidth=(q=this.bellButton)==null?void 0:q.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.l.updateContainerToFitContent=function(F,q){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(F?(F=this.subscribedWidth,q=this.isAnimating&&!q,this.subscribedIconOnlyWidth===void 0||q||(F=this.subscribedIconOnlyWidth),this.hostElement.style.width=F+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.l.clearContainerSize=function(){this.hostElement.style.width=""};
_.l.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.l.maybeSetSubscribedButtonIconOnlyWidth=function(){var F=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var q;F.subscribedIconOnlyWidth=(q=F.bellButton)==null?void 0:q.getBoundingClientRect().width;requestAnimationFrame(function(){if(F.bellButton){var t;F.bellButton.textLabel=
(t=F.data)==null?void 0:t.subscribedButtonText}})})))};
_.JJ.Object.defineProperties($G.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var F;return(F=this.data)==null?void 0:F.subscribedButtonText}var q;return this.forceIconOnly?void 0:(q=this.data)==null?void 0:q.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var F,q,t=((F=this.data)==null?void 0:(q=F.timedAnimationData)==null?void 0:q.animationTiming)||[];return{uniqueId:"subscribe",timings:t,enabled:t.length>0&&!this.subscribed,experimentEnabled:t.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var F;return!this.subscribed&&((F=this.data)==null?void 0:F.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var q=F.renderer;var t=F.element;var u=F.subscribed;var J=F.commandController;var g=F.isOverlay;F=F.stopPropagation;var Y=BGo(q,u);g&&(Y.style="overlay");g=Object;var Q=g.assign,e;a:switch((e=q.style)==null?void 0:e.styleType){case "COMPACT_GRAY":case "COMPACT_RED":e={size:"S"};break a;default:e={size:"M"}}var r=KxW(q,
u);var N=(N=u?q.subscribedButtonText:q.unsubscribedButtonText)?_.C9(N):void 0;return Q.call(g,{},Y,e,{focused:!1,toggled:u,accessibilityLabel:r,formattedButtonText:N,onTap:hyo(q,u,t,J,F)})}}}});
$G.prototype.onMouseDown=$G.prototype.onMouseDown;$G.prototype.onDataChanged=$G.prototype.onDataChanged;$G.prototype.observedSubscribed=$G.prototype.observedSubscribed;$G.prototype.onYtServiceRequestCompleted=$G.prototype.onYtServiceRequestCompleted;$G.prototype.onYtServiceRequestSent=$G.prototype.onYtServiceRequestSent;$G.prototype.maybeUpdateBellButtonText=$G.prototype.maybeUpdateBellButtonText;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],$G.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],$G.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],$G.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$G.prototype,"data",void 0);
_.C([_.O({selectorArgs:["data.subscribedEntityKey"],selector:KU_}),_.V("design:type",Object)],$G.prototype,"subscriptionStateEntity",void 0);_.C([_.O({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.V("design:type",Boolean)],$G.prototype,"subscribed",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],$G.prototype,"branded",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],$G.prototype,"animatedActionEnabled",void 0);
_.C([_.O(),_.V("design:type",Object)],$G.prototype,"foregroundLottieRef",void 0);_.C([_.O(),_.V("design:type",Object)],$G.prototype,"backgroundLottieRef",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],$G.prototype,"overlayButton",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.V("design:type",Object)],$G.prototype,"buttonStyle",void 0);_.C([_.O(),_.V("design:type",Object)],$G.prototype,"forceIconOnly",void 0);
_.C([_.O(),_.V("design:type",Object)],$G.prototype,"showTextWhileAnimating",void 0);_.C([_.O({value:function(){return!!_.sV().resolve(_.JU(_.GD))&&_.E("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.V("design:type",Boolean)],$G.prototype,"useKeyboardFocused",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],$G.prototype,"keyboardFocused",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],$G.prototype,"isAnimating",void 0);_.C([_.W("data.notificationPreferenceButton.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],$G.prototype,"hasBellButton",null);
_.C([_.za("subscribedButtonText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$G.prototype,"maybeUpdateBellButtonText",null);_.C([_.W("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],$G.prototype,"subscribedButtonText",null);_.C([_.W("data.timedAnimationData.animationTiming","subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],$G.prototype,"smartimationSettings",null);
_.C([_.O({reflectToAttribute:!0}),_.W("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],$G.prototype,"subscribeButtonHidden",null);_.C([_.O({reflectToAttribute:!0}),_.W("subscribed","hasBellButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],$G.prototype,"subscribeButtonInvisible",null);
_.C([_.O({reflectToAttribute:!0}),_.W("subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],$G.prototype,"unsubscribeButtonHidden",null);_.C([_.Ms("ytd-subscription-notification-toggle-button-renderer-next"),_.V("design:type",Object)],$G.prototype,"bellButton",void 0);_.C([_.Ms("#subscribe-button-shape"),_.V("design:type",HTMLElement)],$G.prototype,"subscribeButtonShape",void 0);
_.C([_.W("overlayButton","subscribed","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],$G.prototype,"buttonShape",null);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],$G.prototype,"onYtServiceRequestSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],$G.prototype,"onYtServiceRequestCompleted",null);
_.C([_.za("subscribed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$G.prototype,"observedSubscribed",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$G.prototype,"onDataChanged",null);_.C([_.EB("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],$G.prototype,"onMouseDown",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],$G);
_.b($G,"ytd-subscribe-button-renderer",function(){if(ntO!==void 0)return ntO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden$="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ntO=F},{mode:1});var bj=function(){var F=_.x.apply(this,arguments)||this;F.isRichGrid=!1;return F};
_.M(bj,_.x);bj.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],bj.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],bj.prototype,"isRichGrid",void 0);_.C([_.m({is:"ytd-game-card-renderer",disableElementRegistration:!0})],bj);
_.b(bj,"ytd-game-card-renderer",function(){if(Etz!==void 0)return Etz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Etz=F},{mode:1});var y6={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.E("defer_menus")&&!lTz?0:void 0,waitForSignal:"eocs"};var MlL;var Te1;var CN=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return F};
_.M(CN,_.x);_.l=CN.prototype;_.l.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.l.onSeriesReminderStateEntityChange=function(){var F,q,t;((F=this.eventReminderStateEntity)==null?0:F.key)&&((q=this.seriesReminderStateEntity)==null?void 0:q.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((t=this.eventReminderStateEntity)==null?void 0:t.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Gl("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.l.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.l.onYtServiceRequestError=function(){var F;this.updateReminderStateEntitiesFromButtonState((F=this.data)==null?void 0:F.currentState)};
_.l.handleUpdateUpcomingEventReminderButtonStateCommand=function(F){if(F=_.n(F,uVx)){var q,t=(q=this.data)==null?void 0:q.targetId;t&&F.targetId===t&&_.f1(this.updateReminderStateEntitiesFromButtonState.bind(this,F.state))}};
_.l.getButtonStateFromReminderState=function(){var F;if(((F=this.seriesReminderStateEntity)==null?void 0:F.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var q;if(((q=this.eventReminderStateEntity)==null?void 0:q.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var t,u;if(((t=this.seriesReminderStateEntity)==null?void 0:t.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((u=this.eventReminderStateEntity)==
null?void 0:u.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var J;return(J=this.data)==null?void 0:J.currentState};
_.l.updateReminderStateEntitiesFromButtonState=function(F){if(F){switch(F){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":F="UPCOMING_EVENT_REMINDER_STATE_NONE";var q="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":F="UPCOMING_EVENT_REMINDER_STATE_SINGLE";q="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":F="UPCOMING_EVENT_REMINDER_STATE_NONE";q="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var t;
((t=this.eventReminderStateEntity)==null?0:t.key)&&this.ytdReduxBehavior.dispatch(_.Gl("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:F})));var u;((u=this.seriesReminderStateEntity)==null?0:u.key)&&this.ytdReduxBehavior.dispatch(_.Gl("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:q})))}};
_.JJ.Object.defineProperties(CN.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var F=this.getButtonStateFromReminderState(),q,t;if(F&&((q=this.data)==null?0:(t=q.states)==null?0:t.length))for(q=_.X(this.data.states),t=q.next();!t.done;t=q.next()){t=t.value;var u=void 0;if(((u=_.n(t,JBe))==null?void 0:u.state)===F)return _.n(t,JBe)}}}});
CN.prototype.onYtServiceRequestError=CN.prototype.onYtServiceRequestError;CN.prototype.onYtServiceRequestCompleted=CN.prototype.onYtServiceRequestCompleted;CN.prototype.onSeriesReminderStateEntityChange=CN.prototype.onSeriesReminderStateEntityChange;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],CN.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],CN.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],CN.prototype,"data",void 0);_.C([_.O({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:LUf}),_.V("design:type",Object)],CN.prototype,"eventReminderStateEntity",void 0);
_.C([_.O({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(F,q){return _.iC(F.entities,"sportsSeriesReminderStateEntity",q)}}),
_.V("design:type",Object)],CN.prototype,"seriesReminderStateEntity",void 0);_.C([_.W("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],CN.prototype,"currentButtonStateRenderer",null);_.C([_.za("seriesReminderStateEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CN.prototype,"onSeriesReminderStateEntityChange",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CN.prototype,"onYtServiceRequestCompleted",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CN.prototype,"onYtServiceRequestError",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],CN);
_.b(CN,"ytd-upcoming-event-reminder-button-renderer",function(){if(Te1!==void 0)return Te1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
return Te1=F},{mode:1});var GNL;var du=function(){return _.x.apply(this,arguments)||this};
_.M(du,_.x);du.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.JJ.Object.defineProperties(du.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.E("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],du.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],du.prototype,"shelfDismissal",void 0);_.C([_.W("data.responseText"),_.V("design:type",Object),_.V("design:paramtypes",[])],du.prototype,"text",null);
_.C([_.W("data.responseText"),_.V("design:type",Object),_.V("design:paramtypes",[])],du.prototype,"textAriaLabel",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],du);
_.b(du,"ytd-notification-multi-action-renderer",function(){if(GNL!==void 0)return GNL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return GNL=F},{mode:1});var D8O;var V6=function(){return _.x.apply(this,arguments)||this};
_.M(V6,_.x);V6.prototype.ready=function(){var F=this;_.ep(this.hostElement).querySelector("#undo").addEventListener("tap",function(){F.onUndoTap()})};
V6.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.sV().resolve(_.gN).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],V6.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],V6);
_.b(V6,"ytd-notification-text-renderer",function(){if(D8O!==void 0)return D8O;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return D8O=F},{mode:1});var W9f;var Ul=function(){var F=_.x.apply(this,arguments)||this;F.mouseOverDelayJobId=0;F.fadeInImageDelayJobId=0;F.startTimeMs=-1;F.loadingStartTimeMs=-1;F.loadingEndTimeMs=-1;F.hasVideoPreview=!1;return F};
_.M(Ul,_.x);_.l=Ul.prototype;_.l.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.l.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.l.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.l.showThumbnail=function(){var F=this;this.csn=_.yb();_.CJ("fmth");_.mI.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.wC(_.mI,function(){F.loadingStartTimeMs=(0,_.gB)();var q=_.ep(F.hostElement).querySelector("#thumbnail");q.complete?F.displayMouseOverImage():q.addEventListener("load",_.kM(F,F.displayMouseOverImage))},150):_.RE(_.ep(this.hostElement).querySelector("#play"),"show",!0)};
_.l.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.l.onTap=function(){this.removeVideoPreview()};
_.l.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var F=this.videoId,q=this.csn,t=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,u=this.startTimeMs,J=this.hasVideoPreview,g=_.Av(this.trackingParams),Y={isMovingThumbnail:J};J&&u>0&&(t>0&&(Y.movingThumbnailLoadingDurationMs=Math.round(t)),Y.durationHoveredMs=Math.round((0,_.gB)()-u));F&&(Y.videoId=F);_.FE(q,g,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:Y});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.l.removeVideoPreview=function(){_.mI.cancelJob(this.mouseOverDelayJobId);_.mI.cancelJob(this.fadeInImageDelayJobId);var F=_.ep(this.hostElement).querySelector("#thumbnail");_.RE(F,"fade-in",!1);F.removeEventListener("load",_.kM(this,this.displayMouseOverImage));F=_.ep(this.hostElement).querySelector("#play");_.RE(F,"fade-in",!1);_.RE(F,"show",!1)};
_.l.displayMouseOverImage=function(){var F=_.ep(this.hostElement).querySelector("#thumbnail"),q=_.ep(this.hostElement).querySelector("#play");this.isImageAvailable(F)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.gB)(),this.startTimeMs=(0,_.gB)(),this.fadeInImageDelayJobId=_.wC(_.mI,function(){_.RE(F,"fade-in",!0)},50)):_.RE(q,"fade-in",!0)};
_.l.computeThumbnail=function(F,q){var t;F&&F.movingThumbnailDetails&&F.movingThumbnailDetails.thumbnails&&q?t=_.ZR(F.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):t=q?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(t)return _.d$(t)};
_.l.isImageAvailable=function(F){return!(!F.src||F.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||F.naturalWidth===120)};
Ul.prototype.onTap=Ul.prototype.onTap;Ul.prototype.dataChanged=Ul.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Ul.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ul.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Ul.prototype,"csn",void 0);_.C([_.O(),_.V("design:type",Object)],Ul.prototype,"trackingParams",void 0);
_.C([_.O(),_.V("design:type",String)],Ul.prototype,"videoId",void 0);_.C([_.O(),_.V("design:type",Boolean)],Ul.prototype,"isAttachedAndDataSet",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ul.prototype,"dataChanged",null);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ul.prototype,"onTap",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Ul);
_.b(Ul,"ytd-moving-thumbnail-renderer",function(){if(W9f!==void 0)return W9f;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return W9f=F},{mode:1});var OUL;_.lZ=function(F){this.hostElement=F;this.eventSink=null;this.eventList=[]};
_.lZ.prototype.shouldForward=function(){var F,q;return(q=(F=this.eventSink)==null?void 0:F.isConnected)!=null?q:document.body.contains(this.eventSink)};
_.lZ.prototype.start=function(F,q){this.eventSink&&this.stop();for(var t=0;t<F.length;t++)this.hostElement.addEventListener(F[t],_.kM(this,this.forwardEvent));var u;this.eventSink=(u=q.hostElement)!=null?u:q;this.eventList=F};
_.lZ.prototype.stop=function(){for(var F=0;F<this.eventList.length;F++)this.hostElement.removeEventListener(this.eventList[F],_.kM(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.lZ.prototype.forwardEvent=function(F,q){this.shouldForward()&&(F.stopPropagation(),this.eventSink instanceof Element?_.Q0(this.eventSink,F.type,q):_.bz(new _.D0("eventSink is not an element")))};_.S2={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.lZ(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(F,q){this.forwarder_.start(F,q)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var hp=function(){return _.x.apply(this,arguments)||this};
_.M(hp,_.x);_.l=hp.prototype;_.l.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=_.bn("HTML_DIR")==="rtl"?"right":"left"};
_.l.dataChanged=function(){this.popupOpen=!1};
_.l.computeAriaLabel=function(F){return _.n(F,xtd).label};
_.l.onTap=function(F){F.stopPropagation();F.preventDefault();this.data.command&&_.sV().resolve(_.gN).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.l.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.l.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
hp.prototype.onPopupClosed=hp.prototype.onPopupClosed;hp.prototype.onPopupOpened=hp.prototype.onPopupOpened;hp.prototype.onTap=hp.prototype.onTap;hp.prototype.dataChanged=hp.prototype.dataChanged;_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],hp.prototype,"eventForwardingBehavior",void 0);_.C([_.D(_.Sq),_.V("design:type",Object)],hp.prototype,"ironButtonState",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],hp.prototype,"componentBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],hp.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:-1}),_.V("design:type",Number)],hp.prototype,"tabindex",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.V("design:type",Object)],hp.prototype,"ariaLabel",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],hp.prototype,"disableTooltips",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],hp.prototype,"popupOpen",void 0);
_.C([_.O(),_.V("design:type",Element)],hp.prototype,"eventSink",void 0);_.C([_.Ms("#tooltip"),_.V("design:type",Object)],hp.prototype,"tooltip",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hp.prototype,"dataChanged",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],hp.prototype,"onTap",null);
_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hp.prototype,"onPopupOpened",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hp.prototype,"onPopupClosed",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],hp);
_.b(hp,"ytd-thumbnail-overlay-button-renderer",function(){if(OUL!==void 0)return OUL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return OUL=F},{mode:1});var PIj;var KN=function(){return _.x.apply(this,arguments)||this};
_.M(KN,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],KN.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],KN.prototype,"disableAnimation",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],KN.prototype,"rounded",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],KN.prototype,"transparentBackground",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],KN.prototype,"noPadding",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],KN);
_.b(KN,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(PIj!==void 0)return PIj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return PIj=F},{mode:1});var x8z;var BB=function(){return _.x.apply(this,arguments)||this};
_.M(BB,_.x);BB.prototype.computeIconPosition=function(F){return this.get("iconPosition",F)||null};
BB.prototype.computeIconStyle=function(F){return this.get("iconStyle",F)||null};
BB.prototype.computeIsIconStyleFilled=function(F){if(!F)return!1;var q;return F.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((q=F.icon)==null?void 0:q.iconType)==="ERROR_BLACK"};
_.C([_.O(),_.V("design:type",Object)],BB.prototype,"data",void 0);_.C([_.O({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.V("design:type",Object)],BB.prototype,"iconPosition",void 0);_.C([_.O({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.V("design:type",Object)],BB.prototype,"iconStyle",void 0);_.C([_.O({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],BB.prototype,"iconStyleFilled",void 0);
_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],BB);
_.b(BB,"ytd-thumbnail-overlay-icon-renderer",function(){if(x8z!==void 0)return x8z;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return x8z=F},{mode:1});var Aur;var LN=function(){return _.x.apply(this,arguments)||this};
_.M(LN,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],LN.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],LN);
_.b(LN,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(Aur!==void 0)return Aur;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Aur=F},{mode:1});var vtj;var fN=function(){var F=_.x.apply(this,arguments)||this;F.isPreviewLoading=!1;return F};
_.M(fN,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],fN.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],fN.prototype,"isPreviewLoading",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],fN);
_.b(fN,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(vtj!==void 0)return vtj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return vtj=F},{mode:1});var IFv;var an=function(){return _.x.apply(this,arguments)||this};
_.M(an,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],an.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],an);
_.b(an,"ytd-thumbnail-overlay-pinking-renderer",function(){if(IFv!==void 0)return IFv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return IFv=F},{mode:1});var HUE;var j2=function(){var F=_.x.apply(this,arguments)||this;F.disableTooltips=!1;F.isLoading=!1;F.useExpandableTooltip=!1;F.toggled=!1;F.hovered=!1;F.mouseoverDelayJobId=0;F.toggleDelayJobId=0;F.expandAnimationDelayJobId=0;return F};
_.M(j2,_.x);_.l=j2.prototype;_.l.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");_.ep(this.hostElement).querySelector("#tooltip").position=_.bn("HTML_DIR")==="rtl"?"right":"left"};
_.l.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.mI.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.mI.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.mI.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.l.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.mI.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.mI.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.mI.cancelJob(this.expandAnimationDelayJobId)};
_.l.computeIcon=function(F,q,t){return(F=t?q:F)&&F.iconType?_.Ek(F.iconType):void 0};
_.l.computeAriaLabel=function(F,q,t){return _.n(t?q:F,xtd).label};
_.l.computeTooltip=function(F,q,t){return t?q:F};
_.l.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.l.computeIconOnHover=function(F,q){if((F==null?0:F.iconType)&&!q)return _.Ek(F.iconType)};
_.l.onTap=function(F){var q=this;F.stopPropagation();F.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(F=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(F),this.useExpandableTooltip&&(this.toggleDelayJobId=_.wC(_.mI,function(){q.hovered=!1;q.data&&!q.data.toggledServiceEndpoint&&(q.expandAnimationDelayJobId=_.wC(_.mI,function(){q.set("data.isToggled",
!1)},200))},2E3))};
_.l.onMouseenter=function(){var F=this;this.mouseoverDelayJobId=_.wC(_.mI,function(){F.hovered=!0},300)};
_.l.onMouseleave=function(){_.mI.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.l.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.l.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.l.onServiceRequestCompleted=function(F,q){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(q)||this.set("data.isToggled",!this.data.isToggled)};
_.l.serviceRequestWasSuccessful=function(F){return _.n(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.cX)?F.data.status==="STATUS_SUCCEEDED":!0};
j2.prototype.onServiceRequestCompleted=j2.prototype.onServiceRequestCompleted;j2.prototype.onPopupClosed=j2.prototype.onPopupClosed;j2.prototype.onPopupOpened=j2.prototype.onPopupOpened;j2.prototype.onMouseleave=j2.prototype.onMouseleave;j2.prototype.dataChanged=j2.prototype.dataChanged;_.C([_.D(_.Sq),_.V("design:type",Object)],j2.prototype,"ironButtonState",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],j2.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],j2.prototype,"ytEventForwardingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],j2.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.V("design:type",Object)],j2.prototype,"ariaLabel",void 0);_.C([_.O(),_.V("design:type",Object)],j2.prototype,"disableTooltips",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],j2.prototype,"popupOpen",void 0);_.C([_.O(),_.V("design:type",Object)],j2.prototype,"isLoading",void 0);_.C([_.O(),_.V("design:type",Element)],j2.prototype,"eventSink",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],j2.prototype,"useExpandableTooltip",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.V("design:type",Object)],j2.prototype,"toggled",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],j2.prototype,"hovered",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.V("design:type",Object)],j2.prototype,"iconOnHover",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j2.prototype,"dataChanged",null);
_.C([_.EB("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j2.prototype,"onMouseleave",null);_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j2.prototype,"onPopupOpened",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j2.prototype,"onPopupClosed",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],j2.prototype,"onServiceRequestCompleted",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],j2);
_.b(j2,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(HUE!==void 0)return HUE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return HUE=F},{mode:_.Nc("kevlar_poly_si_batch_j053")?1:2});var m8e;var $8J=_.ld(function(F){var q=F.data;var t=F.thumbnailSize;var u=function(){return q().enableSegmentView};
return _.Z("yt-thumbnail-overlay-progress-bar-view-model",{class:_.Ec("ytThumbnailOverlayProgressBarHost",function(){return LxA(t==null?void 0:t())})},_.Z(_.R,{cond:u,
then:function(){return _.Z("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.Z("div",{class:_.HD("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+q().startPercent+"%"}}),_.Z("div",{class:_.HD("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+q().segmentDurationPercent+"%"}},_.Z("div",{class:_.HD("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.Z("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.Z("div",null," ",function(){return q().segmentLabel})),_.Z("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.Z("div",{class:_.HD("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.Z(_.R,{cond:function(){return!u()&&q().startPercent},
then:function(){var J={};return _.Z("div",{class:_.HD("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(J.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.E("web_enable_modern_progress_bar_overlay"),J))},_.Z("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+q().startPercent+"%"}}))}}))},"X");
$8J.idomCompat=!0;var bUC=_.ld(function(F){var q=_.i6(),t=_.dC(function(J){var g,Y,Q;a:{var e=(g=F.data())==null?void 0:g.animationActivationTargetId;g=((Y=F.data())==null?void 0:Y.animationActivationEntityKey)||"";Y=(Q=F.data())==null?void 0:Q.animationActivationEntitySelectorType;if(g&&e)switch(Y){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":J=_.iC(J.entities,"playerStateEntity",g);Q=_.sV().resolve(_.JU(_.m4));e=!!(J&&J.videoId===e&&(Q==null?0:Q.isMiniplayerActive()));e={activated:e,playAnimation:e&&
J.playerState==="PLAYER_STATE_PLAYING"};break a}e=void 0}return e});
_.AO(function(){var J;if((J=t())==null?0:J.activated){var g;if((g=t())==null?0:g.playAnimation){var Y;(Y=q.lottieEl)==null||Y.goToAndPlay(0)}else{var Q;(Q=q.lottieEl)==null||Q.goToAndStop(0)}}},"DbQiXd");
var u=function(){var J,g=!((J=t())==null||!J.activated);if(F.data()){J=F.data();var Y=void 0;J.icon&&(Y=_.O$A(J.icon),Y=mrC(Y));var Q=void 0,e;if((e=J.backgroundColor)==null?0:e.lightTheme){var r;Q={backgroundColor:Bx((r=J.backgroundColor)==null?void 0:r.lightTheme,"0.8")}}if(J.text||Y||g){if(g&&J.lottieData&&q){r=J.lottieData;var N,w,k;e={animationConfig:{name:r.url,path:r.url,autoplay:(N=r.settings)==null?void 0:N.autoplay,loop:(k=(w=r.settings)==null?void 0:w.loop)!=null?k:!0},animationRef:q}}else e=
void 0;if(g)N=17;else b:switch(J.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":N=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":N=19;break b;default:N=17}g={type:N,text:g&&J.animatedText?J.animatedText:J.text,icon:Y,customColors:Q,animation:e}}else g=void 0}else g=void 0;return g};
return _.Z("yt-thumbnail-badge-view-model",{class:_.Ec("ytThumbnailBadgeViewModelHost",F.class)},_.Z(_.R,{cond:u,then:function(){return _.Z(_.gu,{data:function(){return u()}})}}))},"Y");var yuE=_.ld(function(F){var q={},t={};return _.Z("yt-thumbnail-bottom-overlay-view-model",{class:_.Ec("ytThumbnailBottomOverlayViewModelHost",(q.ytThumbnailBottomOverlayViewModelHostBackground=function(){return F.data().enableGradientBackground},q))},_.Z(_.Tl,{data:function(){return F.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(u){return _.Z($8J,{data:u.data,
thumbnailSize:F.thumbnailSize})}}),_.Z("div",{class:_.Ec("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var u;
return fc3((u=F.thumbnailSize)==null?void 0:u.call(F))},(t.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var u;
return(u=F.isClip)==null?void 0:u.call(F)},t.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var u;
return!_.E("web_enable_modern_progress_bar_overlay")&&((u=F.thumbnailSize)==null?void 0:u.call(F))==="small"},t))},_.Z(_.Tl,{data:function(){return F.data().badge}},{thumbnailBadgeViewModel:function(u){return _.Z(bUC,{data:u.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.Z(_.Tl,{data:function(){return F.data().badges}},{thumbnailBadgeViewModel:function(u){return _.Z(bUC,{data:u.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Z");
yuE.idomCompat=!0;_.ei(yuE,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.pp,thumbnailSize:_.pp,isClip:_.pp}});var gtC={calledOnce:!1,state:"visible"},lFC={calledOnce:!1,state:"hidden"};var cB=_.ld(function(F){var q=F.data;var t=F.className;F=F.alwaysShow;var u=_.cIC(),J={};return _.Z("thumbnail-hover-overlay-view-model",{el:_.l_(_.CH(function(){return q().rendererContext})),
class:_.Ec("ytThumbnailHoverOverlayViewModelHost",t,(J.ytThumbnailHoverOverlayViewModelHostForceHover=F,J)),"aria-label":function(){var g;return(g=_.n(q().rendererContext,_.vX))==null?void 0:g.label},
role:function(){return _.b6(q().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.b6(q().rendererContext)!==void 0?0:void 0},
"on:keypress":u},_.Z("div",{class:_.Ec("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(q().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var g="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:g="ytThumbnailHoverOverlayViewModelStyleCover"}return g})},_.Z(_.R,{cond:function(){return q().icon},
then:function(g){return _.Z(_.sc,{data:g,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.Z(_.R,{cond:function(){return q().text},
then:function(g){return _.Z(_.rv,{text:g,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"$");
cB.idomCompat=!0;var CIf=_.ld(function(F){var q=F.data;return _.Z(_.Tl,{data:function(){return q==null?void 0:q().overlays}},{thumbnailHoverOverlayViewModel:cB})},"aa");
CIf.idomCompat=!0;var d8E={};var VlC=_.ld(function(F){var q=F.data;var t=F.image;var u=F.state;var J=F.iconType;var g=F.overlays;var Y=F.isOverlay;var Q=_.qL("div");F=_.X(_.N3(!0,void 0,"AA4e7b"));var e=F.next().value,r=F.next().value,N=function(){return!!q().onTap},w=_.Jv(J,"LIVE");
_.AO(function(){var z=q();requestAnimationFrame(function(){if(Q.value===null)var T=!0;else{var P=Q.value;T=z.badgeText;var v=pCt(z.size);T in d8E?P=d8E[T]:(P=P.clientWidth,d8E[T]=P);(T=P>v)?Q.value.style.display="none":Q.value.style.visibility="visible"}r(T)})},"vNdN8b");
var k=function(){var z={};return z["yt-spec-avatar-shape__image"]=!0,z["yt-spec-avatar-shape__image--ads-app"]=q().type===1,z["yt-spec-avatar-shape__image--square"]=q().type===2,z};
return _.Z("yt-avatar-shape",null,_.Z("div",{el:_.l_(e2u(N,{keydown:function(z){if(z.key==="Enter"){var T;(T=z.currentTarget)==null||T.click()}},
click:function(z){var T,P;return void((P=(T=q()).onTap)==null?void 0:P.call(T,z))}})),
class:function(){var z={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},T=q();z=(z[T.clusterLayoutConfig?ruA(T.clusterLayoutConfig):NeP(T.size)]=!0,z["yt-spec-avatar-shape__button--tappable"]=N(),z);(T=q().avatarButtonCustomClassName)&&(z[T]=!0);return _.HD(z)},
"aria-label":function(){return N()?q().accessibilityText:""},
role:function(){return N()?"button":void 0},
tabindex:function(){return N()?0:void 0}},_.Z("div",{class:function(){var z,T=q(),P=u==null?void 0:u(),v=Y==null?void 0:Y(),H=!((z=T.decorations)==null||!z.includes(2)||T.size!=="medium"&&T.size!=="large"),d=T.size==="tiny"||T.size==="extra-small",a,S,K,h,c={};
z=(c["yt-spec-avatar-shape--live-ring"]=!!(((a=T.decorations)==null?0:a.includes(0))&&iU3(T.size)),c["yt-spec-avatar-shape--stories-watched"]=H&&!(P==null||!P.storiesWatched),c["yt-spec-avatar-shape--stories-unwatched"]=H&&!(P==null?0:P.storiesWatched),c["yt-spec-avatar-shape--background-border"]=kNC(T.decorations)&&!d,c["yt-spec-avatar-shape--background-border-thin"]=kNC(T.decorations)&&d,c["yt-spec-avatar-shape__on-select-border"]=!((S=T.decorations)==null||!S.includes(4)),c["yt-spec-avatar-shape__white-border"]=
!((K=T.decorations)==null||!K.includes(5)),c["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((h=T.decorations)==null?0:h.includes(5))&&d),c["yt-spec-avatar-shape--is-overlay"]=!!v,c);return _.HD(z)},
style:function(){a:{var z=q().clusterLayoutConfig;if(z){b:{var T=z.numAvatarsInCluster;var P=z.avatarIndex;if(P!==T-1){switch(z.clusterSize){case "small":z="32";break;case "medium":z="36";break;case "40":z="40";break;default:T=void 0;break b}T="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+z+"x"+z+"_avatars_"+T+"_index_"+P+".svg"}else T=void 0}if(T){T=_.Mo({"-webkit-mask-image":"url("+T+")","mask-image":"url("+T+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}T=void 0}return T}},_.Z("div",{class:function(){var z={};
var T=q();z=(z[T.clusterLayoutConfig?ZUf(T.clusterLayoutConfig):R2M(T.size)]=!0,z["yt-spec-avatar-shape--no-margin"]=kNC(q().decorations),z);return _.HD(z)}},_.Z(_.sc,{data:t,
alt:function(){return!N()&&q().accessibilityText?q().accessibilityText:""},
targetWidth:function(){return wCo(q().size)},
targetHeight:function(){return wCo(q().size)},
className:function(){return _.HD(k())}}),_.Z(_.R,{cond:function(){var z;
return((z=q().decorations)==null?void 0:z.includes(0))&&iU3(q().size)},
then:function(){return _.Z("div",{class:function(){var z={};z=(z["yt-spec-avatar-shape__live-badge"]=!0,z["yt-spec-avatar-shape__live-badge--badge-small"]=q().size==="small",z["yt-spec-avatar-shape__live-badge--badge-medium"]=q().size==="medium"||q().size==="48",z["yt-spec-avatar-shape__live-badge--badge-large"]=q().size==="large",z["yt-spec-avatar-shape__live-badge--badge-extra-large"]=q().size==="extra-large"||q().size==="extra-extra-large"||q().size==="giant",z);return _.HD(z)}},_.Z(_.R,{cond:function(){return q().badgeText},
then:function(z){return _.Z("div",{class:"yt-spec-avatar-shape__badge-text",el:Q},z)}}),_.Z(_.R,{cond:e,
then:function(){return _.Z("div",{class:"yt-spec-avatar-shape__badge-icon"},_.Z(_.Tq,{icon:w,size:function(){a:switch(q().size){case "extra-large":var z=16;break a;default:z=13}return z}}))}}))}}),_.Z(_.R,{cond:function(){var z,T;
return((z=q().decorations)==null?void 0:z.includes(1))||((T=q().decorations)==null?void 0:T.includes(0))&&!iU3(q().size)},
then:function(){return _.Z("div",{class:function(){var z=q(),T,P,v={};var H=(v["yt-spec-avatar-shape__live-dot"]=!((T=z.decorations)==null||!T.includes(0)||iU3(z.size)),v["yt-spec-avatar-shape__new-content"]=!((P=z.decorations)==null||!P.includes(1)),v);return _.HD(H)}})}}),_.Z(_.R,{cond:function(){return!!g},
then:function(){return _.Z("div",{class:function(){var z={};z=Object.assign((z["yt-spec-avatar-shape__image-overlays"]=!0,z),k());return _.HD(z)}},g==null?void 0:g())}})))))},"ba");
VlC.idomCompat={callbacks:{overlays:!0}};_.FJ=_.ld(function(F){function q(){t().endpoint&&_.L9(t().endpoint)}
var t=F.data;var u=F.decorations;var J=F.avatarButtonCustomClassName;var g=F.isOverlay;var Y=F.clusterLayoutConfig;return _.Z("avatar-view-model",null,_.Z(_.R,{cond:function(){return t().image},
then:function(Q){return _.Z(VlC,{data:function(){return z2o({data:t(),onTap:t().endpoint?q:void 0,decorations:u==null?void 0:u(),badgeText:void 0,accessibilityText:t().accessibilityText,avatarButtonCustomClassName:J==null?void 0:J(),clusterLayoutConfig:Y==null?void 0:Y()})},
image:Q,iconType:"RADAR_LIVE",overlays:function(){return _.Z(CIf,{data:t})},
isOverlay:g})}}))},"ca");
_.FJ.idomCompat=!0;_.qi=_.ld(function(F){var q=F.data;F=F.className;var t=_.qL("yt-decorated-avatar-view-model"),u=function(){return _.n(q().avatar,_.d0)},J=_.zy(function(){var g,Y=q(),Q=u(),e=_.b6(q().rendererContext),r=(g=t.value)!=null?g:void 0,N;
if(Q){r={data:Y,avatar:Q,onTap:e,element:r};g=r.data;Y=r.avatar;Q=r.onTap;e=r.element;r=r.commandController;Q=Q?Tet(Q,e,r):void 0;e=[];g.liveData&&e.push(0);var w;r=(w=g.liveData)==null?void 0:w.liveBadgeText;w=(N=_.n(g.rendererContext,_.vX))==null?void 0:N.label;N=z2o({data:Y,onTap:Q,decorations:e,badgeText:r,accessibilityText:w?w:g.a11yLabel})}else N={size:"medium"};return N},void 0,"c00kWd");
return _.Z("yt-decorated-avatar-view-model",{class:_.Ec("ytDecoratedAvatarViewModelHost",F),el:t},_.Z(_.R,{cond:function(){var g;return(g=u())==null?void 0:g.image},
then:function(g){return _.Z(VlC,{data:J,image:g,iconType:"RADAR_LIVE",overlays:function(){return _.Z(CIf,{data:u})}})}}))},"da");
_.qi.idomCompat=!0;_.tP=_.ld(function(F){var q=function(){var Q;return Object.assign({},F.data(),(Q=F.overrides)==null?void 0:Q.call(F))},t=function(){return _.yg(q().rendererContext)},u=function(){var Q=q().avatars,e,r;
return(r=(e=(Q==null?0:Q[0])?_.n(Q[0],_.d0):void 0)==null?void 0:e.avatarImageSize)!=null?r:"AVATAR_SIZE_UNKNOWN"},J=function(){return Mlq(q())},g=function(){if(q().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var Q=void 0;
else if((Q=F.decorations)==null?0:Q.call(F))Q=F.decorations();else{Q=q();var e=0;Q.avatars&&(e+=Q.avatars.length);Q.decoratedText&&(e+=1);Q=e>1?[3]:[]}return Q},Y={};
return _.Z("yt-avatar-stack-view-model",{el:_.l_(_.CH(function(){return q().rendererContext})),
class:_.Ec("yt-avatar-stack-view-model-wiz",F.className,(Y["yt-avatar-stack-view-model-wiz--tappable"]=t,Y["yt-avatar-stack-view-model-wiz--is-overlay"]=F.isOverlay,Y["yt-avatar-stack-view-model-wiz--medium-text"]=F.useMediumText,Y)),tabindex:function(){return t()?0:void 0},
role:function(){return t()?"link":void 0},
"aria-label":function(){var Q,e;return(e=(Q=_.n(q().rendererContext,_.vX))==null?void 0:Q.label)!=null?e:""}},_.Z(_.R,{cond:function(){var Q;
return q().avatars&&!((Q=F.hideAvatar)==null?0:Q.call(F))},
then:function(){return _.Z("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.Z(_.R,{cond:function(){return q().decoratedText},
then:function(Q){var e={};return _.Z("div",{class:_.Ec("yt-avatar-stack-view-model-wiz__text-container",(e["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return u()==="AVATAR_SIZE_XXS"||u()==="AVATAR_SIZE_XS"},e["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var r;
return((r=F.isOverlay)==null?void 0:r.call(F))&&(u()==="AVATAR_SIZE_XXS"||u()==="AVATAR_SIZE_XS")},e)),
style:_.Mo({width:function(){return J().avatarSizeInPx+"px"},
height:function(){return J().avatarSizeInPx+"px"}})},_.Z(_.rv,{text:Q,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.Z("div",{style:function(){return _.Mo(J().avatarStackStyle)()},
class:function(){return J().avatarStackClass}},_.Z(_.Tl,{data:function(){return J().avatars.reverse()}},{avatarViewModel:function(Q,e){return _.Z("div",{style:function(){var r,N;
return _.Mo((N=(r=J()).avatarStyle)==null?void 0:N.call(r,e()))()},
class:function(){return J().avatarClass}},_.Z(_.FJ,{data:Q.data,
decorations:g,avatarButtonCustomClassName:function(){return J().avatarButtonCustomClassName},
isOverlay:F.isOverlay,clusterLayoutConfig:function(){var r,N;return(N=(r=J()).clusterLayoutConfig)==null?void 0:N.call(r,e())}}))},
decoratedAvatarViewModel:function(Q,e){return _.Z("div",{style:function(){var r,N;return _.Mo((N=(r=J()).avatarStyle)==null?void 0:N.call(r,e()))()},
class:function(){return J().avatarClass}},_.Z(_.qi,{data:Q.data}))}})))}}),_.Z(_.R,{cond:function(){return q().text},
then:function(Q){return _.Z(_.rv,{text:Q,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ea");
_.tP.idomCompat=!0;_.ei(_.ld(function(F){var q=F.data;var t=F.thumbnailSize;return _.Z("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.Z("div",{class:_.Ec("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return GNq(t==null?void 0:t())})},_.Z(_.Tl,{data:function(){return q().avatarStack}},{avatarStackViewModel:function(u){return _.Z(_.tP,{data:u.data,
decorations:[5]})}})))},"fa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.NH,
thumbnailSize:_.NH}});var U8f=_.ld(function(F){F=_.sk(F,{hidden:!1});var q=F.data;return _.Z("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:F.hidden},_.Z(_.rv,{text:function(){return q().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.Z(_.R,{cond:function(){return q().subtitle},
then:function(){return _.Z(_.rv,{text:function(){return q().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"ga");
U8f.idomCompat=!0;_.ei(U8f,"yt-thumbnail-overlay-title-view-model",{props:{data:_.NH,hidden:_.NH}});var S7z=_.ld(function(F){F=_.sk(F,{isClip:!1});var q=F.data,t=F.thumbnailSize,u={};return _.Z("yt-thumbnail-overlay-badge-view-model",{class:_.Ec("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(q().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var J="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:J="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return J},function(){return D8P(t==null?void 0:t())},(u["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
F.isClip,u))},_.Z(_.Tl,{data:function(){return q().thumbnailBadges}},{thumbnailBadgeViewModel:function(J){return _.Z(bUC,{data:J.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"ha");
S7z.idomCompat=!0;_.ei(S7z,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.NH,thumbnailSize:_.NH,isClip:_.NH}});var h2r=_.ld(function(F){var q=F.data;F=F.hidden;var t=_.zy(function(){return q().indicatorCount||0},void 0,"PLMSud"),u={};
return _.Z("yt-page-indicator-view-model",{class:_.Ec("yt-page-indicator-view-model",(u["yt-page-indicator-view-model__indicator--hidden"]=function(){return!q().indicatorCount},u)),
hidden:F},_.Z(_.Gn,{each:function(){return Array(t())}},function(J,g){var Y={};
return _.Z("div",{class:_.Ec("yt-page-indicator-view-model__indicator",(Y["yt-page-indicator-view-model__indicator--selected"]=function(){return q().selectedIndex===g()},Y))})}))},"ia");
h2r.idomCompat=!0;_.ei(h2r,"yt-page-indicator-view-model",{props:{data:_.NH,hidden:_.NH}});var uP=function(){var F=_.x.apply(this,arguments)||this;F.eventSink=function(){return F};
F.disableInteraction=!1;F.noRoundedCorners=!1;F.isPreviewLoading=!1;F.isOriginalAspectRatio=!1;F.computedObjectFit=!1;F.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return F};
_.M(uP,_.x);_.l=uP.prototype;
_.l.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.E("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.l.onImageLoaded=function(){this.loaded=!0};
_.l.onImageUnloaded=function(){this.loaded=!1};
_.l.computeRichThumbnail=function(F,q,t,u){if(F&&q&&!u&&!_.E("disable_moving_thumbs_handling")&&!t)return q};
_.l.computeImageWidth=function(F,q){return q||9999};
_.l.computeIsOriginalAspectRatio=function(F){return F};
_.l.computeIsLive=function(F){if(F==null?0:F.badges)for(var q=0;q<F.badges.length;q++){var t=F.badges[q];if(t.metadataBadgeRenderer&&t.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(F==null?0:F.thumbnailOverlays)for(q=0;q<F.thumbnailOverlays.length;q++)if(t=F.thumbnailOverlays[q],t.thumbnailOverlayTimeStatusRenderer&&t.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.l.computeObjectFit=function(F,q){return q||(F?"CONTAIN":"")};
_.l.computeNavigationEndpoint=function(F,q,t){return F?q:t};
_.l.computeHasClip=function(F){F=_.X(F||[]);for(var q=F.next();!q.done;q=F.next())if(q.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.l.computeOverlayColor=function(F){var q;return(F==null?0:(q=F.darkColorPalette)==null?0:q.section2Color)?F.darkColorPalette.section2Color:F==null?void 0:F.sampledThumbnailColor};
_.JJ.Object.defineProperties(uP.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return uBo(this.width)}}});
uP.prototype.onImageUnloaded=uP.prototype.onImageUnloaded;uP.prototype.onImageLoaded=uP.prototype.onImageLoaded;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],uP.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(n3O),_.V("design:type",Object)],uP.prototype,"ytdThumbnailBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],uP.prototype,"componentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],uP.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],uP.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],uP.prototype,"circular",void 0);
_.C([_.O({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.V("design:type",Object)],uP.prototype,"richThumbnail",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.V("design:type",Boolean)],uP.prototype,"hasClip",void 0);_.C([_.O(),_.V("design:type",Object)],uP.prototype,"eventSink",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],uP.prototype,"queued",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],uP.prototype,"richGridThumbnail",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],uP.prototype,"useExpandableTooltip",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],uP.prototype,"useUntranslatedNavigationEndpoint",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],uP.prototype,"disableInteraction",void 0);
_.C([_.O({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.V("design:type",Object)],uP.prototype,"computedNavigationEndpoint",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],uP.prototype,"nowPlayingEqualizerOnly",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],uP.prototype,"hidePlaybackStatus",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],uP.prototype,"objectFit",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],uP.prototype,"noRoundedCorners",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],uP.prototype,"watchFeedThumbnail",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],uP.prototype,"isPreviewLoading",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.V("design:type",Object)],uP.prototype,"isOriginalAspectRatio",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.V("design:type",Object)],uP.prototype,"computedObjectFit",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.V("design:type",Boolean)],uP.prototype,"isLiveVideo",void 0);
_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],uP.prototype,"loaded",void 0);_.C([_.O({computed:"computeOverlayColor(data.thumbnail)"}),_.V("design:type",Object)],uP.prototype,"overlayColor",void 0);_.C([_.O({selector:_.J8C}),_.V("design:type",Boolean)],uP.prototype,"inlinePreviewIsEnabled",void 0);_.C([_.O(),_.V("design:type",Number)],uP.prototype,"width",void 0);
_.C([_.W("inlinePreviewIsEnabled"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],uP.prototype,"isPreviewDisabled",null);_.C([_.W("width"),_.V("design:type",String),_.V("design:paramtypes",[])],uP.prototype,"thumbnailSize",null);_.C([_.EB("image-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uP.prototype,"onImageLoaded",null);
_.C([_.EB("image-unloaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uP.prototype,"onImageUnloaded",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-thumbnail"})],uP);
var K9x=_.rc()(uP,"ytd-thumbnail",function(){if(m8e===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);m8e=F}F=m8e;return F},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var PI_=function(F){var q=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14901_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14901_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(t){Ber(q,t)};
this.onLockupMouseLeaveFn=function(t){t=t.relatedTarget;var u,J;((u=document.getElementsByTagName("ytd-video-preview"))==null?0:(J=u.item(0))==null?0:J.contains(t))||(q.terminateVideoPreview(),JP(q))};
this.onThumbnailMouseDownFn=function(){q.terminateVideoPreview();JP(q)};
this.onTouchStart=function(){q.JSC$14901_touched=!0};
this.mediaRenderer=F.mediaRenderer;this.thumbnailElement=F.thumbnailElement;this.lockupElement=F.lockupElement;this.videoPreviewOptsInput=F.videoPreviewOpts;L9J(this);si(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)):
_.bz(Error("Dh")):_.bz(Error("Eh")):fFn(this)},cZ=function(F){fFn(F);
var q;(q=F.lockupElement)==null||q.removeEventListener("mouseenter",F.onMouseMoveFn);var t;(t=F.lockupElement)==null||t.removeEventListener("mouseleave",F.onLockupMouseLeaveFn);var u;(u=F.lockupElement)==null||u.removeEventListener("touchstart",F.onTouchStart);var J;(J=F.thumbnailElement)==null||J.removeEventListener("mousedown",F.onThumbnailMouseDownFn);JP(F)},L9J=function(F){F.inlinePreviewIsEnabledForUser=_.u1().getState().ui.inlinePreviewIsEnabled;
F.unsubscribeFromInlinePreviewIsEnabled=_.yL(_.u1(),_.J8C,function(q){(F.inlinePreviewIsEnabledForUser=q)||JP(F)});
F.JSC$14901_unsubscribeFromInlinePreviewIsActive=_.yL(_.u1(),_.uDu,function(q){(F.inlinePreviewIsActive=q)||JP(F)})},fFn=function(F){F.unsubscribeFromInlinePreviewIsEnabled();
F.unsubscribeFromInlinePreviewIsEnabled=function(){};
F.JSC$14901_unsubscribeFromInlinePreviewIsActive();F.JSC$14901_unsubscribeFromInlinePreviewIsActive=function(){}},Ber=function(F,q){q.buttons>0||(q=_.YE("kevlar_lockup_hover_delay",-1),F.JSC$14901_touched&&q>=0?(_.mI.cancelJob(F.videoPreviewJobId),F.videoPreviewJobId=_.wC(_.mI,function(){aF1(F)},q),F.JSC$14901_touched=!1):aF1(F))},QUy=function(F){F.videoPreviewJobId=_.wC(_.mI,function(){return _.p(function(q){return q.yield(jrO(F,{isAutoplay:!0}),0)})})},aF1=function(F){!F.previewTriggered&&si(F)&&
(F.inlinePreviewIsActive&&F.terminateVideoPreview(),F.previewTriggered=!0,F.mediaRenderer.isInlinePreviewTriggered=!0,_.mI.cancelJob(F.videoPreviewJobId),F.videoPreviewJobId=_.wC(_.mI,function(){return _.p(function(q){return q.yield(jrO(F),0)})}))},jrO=function(F,q){q=q===void 0?{}:q;
var t=q.isAutoplay===void 0?!1:q.isAutoplay;var u,J,g,Y;return _.p(function(Q){if(Q.nextAddress==1){if(!si(F))return Q.return();u=F.getVideoPreviewOpts();if(!u)return Q.return();t&&(u.isAutoplay=!0);return(g=(J=_.Zl(F.mediaRenderer.hostElement,"yt-open-video-preview-action",[u]))&&J[0])?Q.yield(J[0],3):Q.jumpTo(2)}Q.nextAddress!=2&&(g=Q.yieldResult===1);if(g){var e=(Y=F.mediaRenderer)==null?void 0:Y.data;e&&(OUq(e)?delete e.inlinePlayerData:"inlinePlaybackEndpoint"in e&&delete e.inlinePlaybackEndpoint)}_.WA(Q)})};
PI_.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var F,q;if((q=(F=this.videoPreviewOptsInput)==null?void 0:F.videoPreviewData)!=null)F=q;else if(F=this.mediaRenderer.data)if(OUq(F))F={inlinePlaybackEndpoint:_.Sg(F.inlinePlayerData.onVisible),navigationEndpoint:_.Sg(F.onTap),thumbnail:"image"in F?F.image:F.thumbnail,thumbnailOverlays:void 0,accessibilityText:W9y(F)};else if("multipleInlinePlaybackEndpoint"in F){var t=_.n(_.n(F.multipleInlinePlaybackEndpoint,S5O),hYf);if(t!=
null&&t.playerDescriptors){q=[];t=_.X(t.playerDescriptors);for(var u=t.next();!u.done;u=t.next())u=u.value,q.push({inlinePlaybackEndpoint:u.inlinePlaybackEndpoint,navigationEndpoint:u.navigationEndpoint,thumbnail:u.thumbnail,thumbnailOverlays:u.thumbnailOverlays,accessibilityText:W9y(F)});F=q}else F=void 0}else F={inlinePlaybackEndpoint:F.inlinePlaybackEndpoint,navigationEndpoint:F.navigationEndpoint,thumbnail:F.thumbnail,thumbnailOverlays:F.thumbnailOverlays,accessibilityText:W9y(F)};else F=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:F,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var si=function(F){var q;if(q=F.inlinePreviewIsEnabledForUser)q=(F=F.mediaRenderer.data)?"inlinePlaybackEndpoint"in F&&F.inlinePlaybackEndpoint||OUq(F)&&F.inlinePlayerData||"multipleInlinePlaybackEndpoint"in F&&F.multipleInlinePlaybackEndpoint?!0:!1:!1;return q};
PI_.prototype.terminateVideoPreview=function(){_.ec(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var JP=function(F){_.mI.cancelJob(F.videoPreviewJobId);F.inlinePreviewIsActive=!1;F.previewTriggered=!1;F.mediaRenderer.isInlinePreviewTriggered=!1};var cuJ=_.LZ(["#"]),g_=function(){var F=_.x.apply(this,arguments)||this;F.isDisabled=!1;return F};
_.M(g_,_.x);_.l=g_.prototype;_.l.configureRendererStamper=function(){return{"data.menu":y6,"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"}}}};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.getMetadata=function(F){var q=[];if(F.metadataText&&Object.keys(F.metadataText).length>0){var t=this.ytRendererBehavior.getSimpleString(F.metadataText);F.upcomingEventData&&F.upcomingEventData.upcomingEventText&&(t=_.vD(t,Number(F.upcomingEventData.startTime)));q.push(t)}else F.shortViewCountText&&q.push(this.ytRendererBehavior.getSimpleString(F.shortViewCountText)),F.publishedTimeText&&q.push(this.ytRendererBehavior.getSimpleString(F.publishedTimeText)),F.upcomingEventData&&F.upcomingEventData.upcomingEventText&&
(t=this.ytRendererBehavior.getSimpleString(F.upcomingEventData.upcomingEventText),q.push(_.vD(t,Number(F.upcomingEventData.startTime))));return q};
_.l.calculateBylineText=function(F){return F.shortBylineText?F.shortBylineText:F.bylineText?F.bylineText:null};
_.l.calculateIsDisabled=function(F){return!!F.isDisabled};
_.l.computeHrefWithDefault=function(F){return this.ytComponentBehavior.computeHref_(F)||_.qsW(cuJ)};
_.l.onDetailsTap=function(F){var q=this.data&&this.data.navigationEndpoint;q&&!_.tC(_.tY(F)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.E("kevlar_grid_video_renderer_killswitch")?_.Q0(this.hostElement,"yt-navigate",{endpoint:q}):this.ytComponentBehavior.resolveCommand(q))};
_.l.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14908_inlinePreviewHoverListener=Vg({mediaRenderer:this,lockupElement:_.ep(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.ep(this.hostElement).querySelector("ytd-thumbnail")})};
_.l.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$14908_inlinePreviewHoverListener)==null||cZ(F)};
_.l.computeThumbnailWidth=function(F,q){return q&&q>0?q:F?360:210};
_.l.computeShowChannelThumbnail=function(F,q){var t;return q&&!!(F==null?0:(t=F.channelThumbnailSupportedRenderers)==null?0:t.channelThumbnailWithLinkRenderer)};
_.JJ.Object.defineProperties(g_.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$14908_inlinePreviewHoverListener)==null?0:si(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
g_.prototype.dataChanged=g_.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],g_.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],g_.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.D(_.r8),_.V("design:type",Object)],g_.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],g_.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],g_.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],g_.prototype,"noEndpoints",void 0);_.C([_.O({computed:"calculateBylineText(data)"}),_.V("design:type",Object)],g_.prototype,"bylineText",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],g_.prototype,"isSearch",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],g_.prototype,"isDownloading",void 0);_.C([_.O({reflectToAttribute:!0,value:0}),_.V("design:type",Number)],g_.prototype,"width",void 0);_.C([_.O({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.V("design:type",Object)],g_.prototype,"isDisabled",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g_.prototype,"dataChanged",null);_.C([_.W("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],g_.prototype,"isHovered",null);_.C([_.m({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],g_);
_.b(g_,"ytd-grid-video-renderer",function(){if(MlL!==void 0)return MlL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return MlL=F},{mode:_.Nc("kevlar_poly_si_batch_j047")?1:2});var FsL;var lP=function(){var F=_.x.apply(this,arguments)||this;F.roundedContainer=!0;F.skipRoundingTop=!1;F.disableTopPadding=!1;F.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");return F};
_.M(lP,_.x);lP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
lP.prototype.onClick=function(F){var q,t=(q=this.data)==null?void 0:q.sourceEndpoint;!_.tC(_.tY(F),this.hostElement,["A".toString()])&&t&&_.Q0(this.hostElement,"yt-navigate",{endpoint:t})};
_.JJ.Object.defineProperties(lP.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var F,q;return(q=(F=this.data)==null?void 0:F.paragraphMaxLines)!=null?q:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],lP.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lP.prototype,"showVerticalDividers",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lP.prototype,"roundedContainer",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lP.prototype,"skipRoundingTop",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lP.prototype,"disableTopPadding",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lP.prototype,"amsterdamEnabled",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],lP.prototype,"showMetadataAtTop",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],lP.prototype,"showMetadataBelowTitle",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.menu"),_.V("design:type",Object),_.V("design:paramtypes",[])],lP.prototype,"hasMenu",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.truncateParagraphs"),_.V("design:type",Object),_.V("design:paramtypes",[])],lP.prototype,"truncateParagraphs",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data.paragraphMaxLines"),_.V("design:type",Number),_.V("design:paramtypes",[])],lP.prototype,"paragraphMaxLines",null);_.C([_.O({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.background"),_.V("design:type",Object),_.V("design:paramtypes",[])],lP.prototype,"background",null);_.C([_.m({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],lP);
_.b(lP,"ytd-info-panel-content-renderer",function(){if(FsL!==void 0)return FsL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return FsL=F},{mode:_.Nc("kevlar_poly_si_batch_j076")?1:2});var qJO;var tBx;var usr;var Jsz;var XJ=function(){return _.x.apply(this,arguments)||this};
_.M(XJ,_.x);XJ.prototype.computeStyle=function(F){return F};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],XJ.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],XJ.prototype,"style_",void 0);_.C([_.Vu({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],XJ);
_.b(XJ,"yt-channel-thumbnail-with-link-renderer",function(){if(Jsz===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;usr===void 0&&(usr=document.createElement("template"));var u=usr;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Jsz=F}F=Jsz;return F},{mode:2});var Y5=function(){var F=_.x.apply(this,arguments)||this;F.modernTypography=_.E("web_modern_typography");return F};
_.M(Y5,_.x);Y5.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"}}}};
Y5.prototype.computeTitleStyle=function(F){return F||null};
Y5.prototype.computeAvatarStyle=function(F){return F||null};
Y5.prototype.computeShowNavigationButton=function(F,q){return!(F==null||!F.navigationButton||q)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Y5.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.V("design:type",String)],Y5.prototype,"titleStyle",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.V("design:type",String)],Y5.prototype,"avatarStyle",void 0);_.C([_.O(),_.V("design:type",Boolean)],Y5.prototype,"hideNavigationButton",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Y5.prototype,"isModernSd",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Y5.prototype,"modernTypography",void 0);
_.C([_.m({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Y5);
_.b(Y5,"ytd-rich-list-header-renderer",function(){if(tBx!==void 0)return tBx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return tBx=F},{mode:_.Nc("kevlar_poly_si_batch_j058")?1:2});var p2=function(){return _.x.apply(this,arguments)||this};
_.M(p2,_.x);p2.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]]"}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],p2.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],p2.prototype,"isSearch",void 0);_.C([_.m({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],p2);
_.b(p2,"ytd-preview-card-renderer",function(){if(qJO!==void 0)return qJO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return qJO=F},{mode:1});var six;var QK=function(){return _.x.apply(this,arguments)||this};
_.M(QK,_.x);QK.prototype.configureRendererStamper=function(){return{"data.menu":y6}};
QK.prototype.dataChanged=function(){var F=this.get("colorExtractionPalette.section1Color",this.data);F=_.hn(F);_.ws(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":F})};
QK.prototype.computeCardStyle=function(F){return this.get("style.value",F)||null};
QK.prototype.dataChanged=QK.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],QK.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],QK.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.V("design:type",String)],QK.prototype,"cardStyle",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],QK.prototype,"dataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],QK);
_.b(QK,"ytd-compact-channel-recommendation-card-renderer",function(){if(six!==void 0)return six;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return six=F},{mode:1});var gUx;var luw;var ef=function(){var F=_.x.apply(this,arguments)||this;F.alignAuto=!1;F.collapsed=!0;F.isToggled=!1;F.alwaysCollapsed=!1;F.canToggle=!0;F.collapsedHeight=80;F.disableToggle=!1;F.alwaysToggleable=!1;F.reversed=!1;F.shouldUseNumberOfLines=!1;F.recomputeOnResize=!1;F.canToggleJobId=0;F.lastReversed=!1;return F};
_.M(ef,_.x);_.l=ef.prototype;_.l.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.l.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.l.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var F=_.ep(this.hostElement),q=F.childNodes,t=document.createDocumentFragment(),u=F.childNodes.length-1;u>=0;u--)_.ep(t).appendChild(q[u]);_.E("enable_shadydom_free_scoped_node_methods")?_.Zj(this.hostElement).appendChild(t):F.appendChild(t)}};
_.l.ready=function(){var F=this;_.f1(function(){F.initChildrenObserver()},1)};
_.l.attached=function(){var F;(F=this.resizeObserver)==null||F.observe(this.content)};
_.l.detached=function(){this.detachObserver()};
_.l.toggle=function(F,q){this.canToggle&&(this.isToggled=q,_.Q0(this.hostElement,"yt-refit"),F&&F.stopPropagation())};
_.l.reset=function(){this.childrenChanged()};
_.l.onIronResize=function(){this.recomputeOnResize&&!_.E("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.l.computeIsMoreVisible=function(F,q){return F&&!q};
_.l.computeShouldUseNumberOfLines=function(F){try{return!!F&&window.CSS.supports("-webkit-line-clamp","1")}catch(q){}return!1};
_.l.computeIsLessVisible=function(F,q){return F&&q};
_.l.observeCollapsedHeightAndMaxLines=function(){var F=this.collapsedHeight,q=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.ws(this.hostElement,{"--ytd-expander-max-lines":""+q,"--ytd-expander-collapsed-height":""}):_.ws(this.hostElement,{"--ytd-expander-collapsed-height":F+"px","--ytd-expander-max-lines":""})};
_.l.handleMoreTap=function(F){this.disableToggle||(_.Q0(this.hostElement,"yt-expander-more-tapped"),this.toggle(F,!0))};
_.l.handleLessTap=function(F){_.Q0(this.hostElement,"yt-expander-less-tapped");this.toggle(F,!1)};
_.l.initChildrenObserver=function(){var F=this;this.observer=new MutationObserver(function(){F.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.E("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.LH(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var q;(q=F.resizeThrottle)==null||q.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.l.childrenChanged=function(){var F=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){No(function(){F.canToggleJobId=0;F.calculateCanCollapse()})}))};
_.l.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};
_.l.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.l.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("collapsed-changed",this.collapsed))};
_.l.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("is-toggled-changed",this.isToggled))};
_.l.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("can-toggle-changed",this.canToggle))};
_.JJ.Object.defineProperties(ef.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
ef.prototype.canToggleChangedForBinding=ef.prototype.canToggleChangedForBinding;ef.prototype.isToggledChangedForBinding=ef.prototype.isToggledChangedForBinding;ef.prototype.collapsedChangedForBinding=ef.prototype.collapsedChangedForBinding;ef.prototype.observeCollapsedHeightAndMaxLines=ef.prototype.observeCollapsedHeightAndMaxLines;ef.prototype.onIronResize=ef.prototype.onIronResize;ef.prototype.reversedChanged=ef.prototype.reversedChanged;ef.prototype.toggledChanged=ef.prototype.toggledChanged;
ef.prototype.alwaysToggleableChanged=ef.prototype.alwaysToggleableChanged;_.C([_.D(_.Vl),_.V("design:type",Object)],ef.prototype,"ironResizableBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],ef.prototype,"alignAuto",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],ef.prototype,"collapsed",void 0);_.C([_.O(),_.V("design:type",Object)],ef.prototype,"isToggled",void 0);_.C([_.O(),_.V("design:type",Object)],ef.prototype,"alwaysCollapsed",void 0);
_.C([_.O(),_.V("design:type",Object)],ef.prototype,"canToggle",void 0);_.C([_.O(),_.V("design:type",Object)],ef.prototype,"collapsedHeight",void 0);_.C([_.O(),_.V("design:type",Object)],ef.prototype,"disableToggle",void 0);_.C([_.O(),_.V("design:type",Object)],ef.prototype,"alwaysToggleable",void 0);_.C([_.O(),_.V("design:type",Object)],ef.prototype,"reversed",void 0);_.C([_.O(),_.V("design:type",Number)],ef.prototype,"maxNumberOfLines",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.V("design:type",Object)],ef.prototype,"shouldUseNumberOfLines",void 0);_.C([_.O(),_.V("design:type",Object)],ef.prototype,"recomputeOnResize",void 0);_.C([_.Ms("#content"),_.V("design:type",HTMLDivElement)],ef.prototype,"content",void 0);_.C([_.Wh("alwaysToggleable"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ef.prototype,"alwaysToggleableChanged",null);
_.C([_.Wh("isToggled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ef.prototype,"toggledChanged",null);_.C([_.W("canToggleJobId"),_.V("design:type",Object),_.V("design:paramtypes",[])],ef.prototype,"isResetting",null);_.C([_.za("reversed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ef.prototype,"reversedChanged",null);
_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ef.prototype,"onIronResize",null);_.C([_.za("maxNumberOfLines","collapsedHeight"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ef.prototype,"observeCollapsedHeightAndMaxLines",null);_.C([_.za("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ef.prototype,"collapsedChangedForBinding",null);
_.C([_.za("isToggled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ef.prototype,"isToggledChangedForBinding",null);_.C([_.za("canToggle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ef.prototype,"canToggleChangedForBinding",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-expander"})],ef);
_.b(ef,"ytd-expander",function(){if(luw!==void 0)return luw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return luw=F},{mode:1});var ZN=function(){return _.x.apply(this,arguments)||this};
_.M(ZN,_.x);ZN.prototype.computeIsCarousel=function(F){return!!F.isCarousel};
ZN.prototype.observeLightsourcePalette=function(){var F,q=(F=this.data)==null?void 0:F.vibrantsourceColorPaletteData;q&&_.II(this.hostElement,q)};
ZN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
ZN.prototype.observeLightsourcePalette=ZN.prototype.observeLightsourcePalette;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ZN.prototype,"data",void 0);_.C([_.O({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],ZN.prototype,"isCarousel",void 0);
_.C([_.za("data.vibrantsourceColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZN.prototype,"observeLightsourcePalette",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],ZN);
_.b(ZN,"ytd-media-upsell-renderer",function(){if(gUx!==void 0)return gUx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return gUx=F},{mode:2});var XME;var RM=function(){var F=_.x.apply(this,arguments)||this;F.JSC$14936_playerEvents=new Map;F.listeningToPlayer=!1;F.startX=0;F.active=!1;F.shouldShowButtons=_.E("web_buttons_hidden_killswitch");F.isHighlighted=!1;F.useHighlightStyling=_.E("web_enable_deeper_metadata_highlight_styling");F.modern=_.E("kevlar_modern_sd");F.enableProblemWalkthrough=_.E("problem_walkthrough_sd");return F};
_.M(RM,_.x);_.l=RM.prototype;
_.l.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}}}}}};
_.l.created=function(){this.JSC$14936_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.l.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.kM(this,this.onRepeatButtonToggle));_.E("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.kM(this,this.onActiveUpdate))};
_.l.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.kM(this,this.onRepeatButtonToggle));_.E("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.kM(this,this.onActiveUpdate))};
_.l.onDataChanged=function(){this.removePlayerListeners()};
_.l.onColorPaletteChange=function(){var F={},q;if(_.Hx()==="USER_INTERFACE_THEME_DARK"&&((q=this.data)==null?0:q.darkColorPalette)){var t=this.data.darkColorPalette;F["--ytd-macro-markers-list-item-background-color"]=_.KG(this.get("section2Color",t))}else{var u;_.Hx()==="USER_INTERFACE_THEME_LIGHT"&&((u=this.data)==null?0:u.lightColorPalette)&&(t=this.data.lightColorPalette,F["--ytd-macro-markers-list-item-background-color"]=_.KG(this.get("section3Color",t)))}t?(F["--ytd-macro-markers-list-item-title-color"]=
_.KG(this.get("primaryTitleColor",t)),F["--ytd-macro-markers-list-item-secondary-color"]=_.KG(this.get("secondaryTitleColor",t)),F["--ytd-macro-markers-list-item-timestamp-background-color"]=_.KG(this.get("section1Color",t)),this.customButtonProperties={customColors:{color:_.KG(this.get("primaryTitleColor",t))}},this.useColorSampling=!0):(F["--ytd-macro-markers-list-item-background-color"]="initial",F["--ytd-macro-markers-list-item-title-color"]="initial",F["--ytd-macro-markers-list-item-secondary-color"]=
"initial",F["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.ws(this.hostElement,F)};
_.l.onEndpointMouseDown=function(F){this.startX=F.clientX};
_.l.onEndpointClick=function(F){var q=this,t,u,J;return _.p(function(g){if(g.nextAddress==1){if(q.startX!==F.clientX)return F.preventDefault(),g.return();q.data&&q.ytRendererBehavior.logExplicitClick(q.data);if(!q.seekWithAnimationOnClick)return g.jumpTo(0);if(F.button!==0||F.shiftKey||F.altKey||F.metaKey||F.ctrlKey||_.tC(_.tY(F),q.hostElement,["BUTTON".toString()]))return g.return();F.stopPropagation();F.preventDefault();return q.data?g.yield(_.l6().getPlayerPromise(),3):g.return()}t=g.yieldResult;
J=(u=_.n(q.data.onTap,_.Fw))==null?void 0:u.startTimeSeconds;J!==void 0&&t.seekToTimeWithAnimation(J*1E3,_.q1(q.data.title));_.WA(g)})};
_.l.computeLayout=function(F){return F};
_.l.computeIsHighlighted=function(F){return!!F};
_.l.computeCarouselType=function(F){return F};
_.l.hideModernCarousel=function(F){return this.modern&&this.hideThumbnail(F)};
_.l.hideThumbnail=function(F){return this.enableProblemWalkthrough&&F!==null&&F==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.l.onRepeatButtonToggle=function(F){var q=this;F.detail.toggled&&_.l6().getPlayerPromise().then(function(t){q.ytPlayerListenerBehavior.listenToPlayerEvents(t,q.JSC$14936_playerEvents);q.listeningToPlayer=!0})};
_.l.onLoopRangeChange=function(F){var q=_.ep(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(q){var t=q.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",q.polymerController.data);if(t){var u=Number(t.endTimeMs);if(Number(t.startTimeMs)!==(F==null?void 0:F.startTimeMs)||u!==(F==null?void 0:F.endTimeMs))q.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.l.removePlayerListeners=function(){var F=this;this.listeningToPlayer&&_.l6().getPlayerPromise().then(function(q){F.ytPlayerListenerBehavior.unlistenFromPlayerEvents(q,F.JSC$14936_playerEvents);F.listeningToPlayer=!1})};
_.l.onActiveUpdate=function(F){this.active=F.detail.active};
RM.prototype.onColorPaletteChange=RM.prototype.onColorPaletteChange;RM.prototype.onDataChanged=RM.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],RM.prototype,"ytPlayerListenerBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],RM.prototype,"data",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],RM.prototype,"useCustomColors",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],RM.prototype,"active",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],RM.prototype,"shouldShowButtons",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.V("design:type",String)],RM.prototype,"layout",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.V("design:type",Object)],RM.prototype,"isHighlighted",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],RM.prototype,"useHighlightStyling",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],RM.prototype,"modern",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],RM.prototype,"enableProblemWalkthrough",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.V("design:type",String)],RM.prototype,"carouselType",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],RM.prototype,"useColorSampling",void 0);_.C([_.O(),_.V("design:type",Boolean)],RM.prototype,"seekWithAnimationOnClick",void 0);_.C([_.O(),_.V("design:type",Object)],RM.prototype,"customButtonProperties",void 0);
_.C([_.Ms("#repeat-button"),_.V("design:type",HTMLElement)],RM.prototype,"repeatButton",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RM.prototype,"onDataChanged",null);_.C([_.za("data.lightColorPalette","data.darkColorPalette"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RM.prototype,"onColorPaletteChange",null);_.C([_.m({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],RM);
_.b(RM,"ytd-macro-markers-list-item-renderer",function(){if(XME!==void 0)return XME;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return XME=F},{mode:1});var YJ1;var pMJ;var r_=function(){var F=_.x.apply(this,arguments)||this;F.modernTypography=_.E("web_modern_typography");return F};
_.M(r_,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],r_.prototype,"modernTypography",void 0);_.C([_.O(),_.V("design:type",Object)],r_.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],r_);
_.b(r_,"ytd-title-and-button-list-header-renderer",function(){if(pMJ!==void 0)return pMJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return pMJ=F},{mode:1});var QiO;var ewe=new _.pg("BUTTON_RENDERER_WIZ_TOKEN"),ZFe=new _.pg("BUTTON_RENDERER_TOKEN");_.Ni=_.ld(function(F){var q=_.sV().resolve(_.JU(ewe));if(q)return _.Z(q,Object.assign({},F));var t=_.sV().resolve(ZFe);return t?_.Z(oiu,null,function(){return _.Z(tg,null,function(){var u,J,g,Y,Q,e,r,N,w,k,z,T;return void t(F.data(),{onButtonClickCallback:F.onButtonClickCallback,shouldShowIcons:(u=F.shouldShowIcons)==null?void 0:u.call(F),icon:(J=F.icon)==null?void 0:J.call(F),processAllEndpoints:(g=F.processAllEndpoints)==null?void 0:g.call(F),preventDefault:(Y=F.preventDefault)==null?void 0:Y.call(F),
stopPropagation:(Q=F.stopPropagation)==null?void 0:Q.call(F),disableButtonRendererClickHandling:(e=F.disableButtonRendererClickHandling)==null?void 0:e.call(F),className:(r=F.className)==null?void 0:r.call(F),buttonOverrides:(N=F.buttonOverrides)==null?void 0:N.call(F),forceModernIconButton:(w=F.forceModernIconButton)==null?void 0:w.call(F),isSubscribe:(k=F.isSubscribe)==null?void 0:k.call(F),alignByText:(z=F.alignByText)==null?void 0:z.call(F),forceDisabled:(T=F.forceDisabled)==null?void 0:T.call(F)})})}):
_.Z(_.ln,null)},"ja");
_.Ni.idomCompat=!0;var Rwn=_.ld(function(F){var q=F.data,t=_.Jv(F.useSquareAspectRatio,!1);return _.Z("dismissed-mini-game-card-view-model",null,_.Z(_.R,{cond:function(){var u,J;return(u=q().responseText)==null?void 0:(J=u.runs)==null?void 0:J.length},
then:function(){var u={};return _.Z("div",{class:_.Ec("yt-mini-game-card-view-model__dismissed-card",(u["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!t()},u["yt-mini-game-card-view-model--dismissed-square-card"]=t,u))},_.Z("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.Z(_.R,{cond:function(){return q().responseText.runs[0].text},
then:function(J){return _.Z("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:J},J)}}),_.Z(_.Tl,{data:function(){return q().buttons}},{buttonRenderer:_.Ni,
buttonViewModel:_.AB})))}}))},"ka");var zwd=_.ld(function(F){F=_.sk(F,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var q=F.data,t=F.useFullWidth,u=F.isDesktopWeb,J=F.addSearchResultTopMargin,g=function(){return q().layout},Y=function(){return q().title},Q=function(){return q().metadataText?q().metadataText:q().genre},e=function(){return q().channelName},r=function(){return q().image},N=function(){return q().colorPalette},w=function(){return q().actionButton},k=function(){return q().overflowButton},
z=function(){return q().avatar},T=function(){var d={};
d=_.Ec("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(d["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return u()},d));
return _.Z("div",{class:d},_.Z(rsv,{imageData:r,colorPalette:N}),_.Z(N4L,{onTap:function(){return q().onTap},
imageData:r,accessibilityText:function(){return q().accessibilityText},
overlayBadgeText:function(){return q().overlayBadgeText},
iconName:function(){return q().iconName},
unplayableInlinePlaybackIconName:function(){return q().unplayableInlinePlaybackIconName},
isDesktopWeb:u}),_.Z(_.R,{cond:function(){return!u()},
then:function(){return _.Z(_.ln,null,_.Z(wMr,{layout:g,colorPalette:N,isDesktopWeb:u,overflowButton:k,avatar:z,onTap:function(){return q().onTap},
genre:Q,title:Y,channelName:e}),_.Z(iFC,{actionButton:w}))}}))},P=function(){var d={};
d=_.Ec((d["yt-mini-game-card-view-model--search-result-desktop"]=function(){return u()},d["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!u()},d["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return J()},d));
return _.Z("div",{class:d},T(),_.Z(k8n,{description:function(){return q().description},
isDesktopWeb:u,title:Y,genre:Q,onTap:function(){return q().onTap},
actionButton:w,overflowButton:k,avatar:z,channelName:e}))},v=function(){var d={};
d=_.Ec("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(d["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return u()},d["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return u()&&q().width===135},d["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return u()},d["yt-mini-game-card-view-model--big-metadata-font"]=function(){return q().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},d["yt-mini-game-card-view-model--use-full-width"]=
function(){return t()},d["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!w()},d));
return _.Z("div",{class:d},_.Z(EUr,{colorPalette:N,isDesktopWeb:u,onTap:function(){return q().onTap},
accessibilityText:function(){return q().accessibilityText},
overlayBadgeText:function(){return q().overlayBadgeText},
iconName:function(){return q().iconName},
unplayableInlinePlaybackIconName:function(){return q().unplayableInlinePlaybackIconName},
actionButton:w,imageData:r}),_.Z(wMr,{layout:g,colorPalette:N,isDesktopWeb:u,overflowButton:k,avatar:z,onTap:function(){return q().onTap},
genre:Q,title:Y,channelName:e}))},H=function(){var d={};
d=_.Ec("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(d["yt-mini-game-card-view-model--square-card-desktop"]=function(){return u()},d["yt-mini-game-card-view-model--use-full-width"]=function(){return t()},d));
return _.Z("div",{class:d},_.Z(N4L,{onTap:function(){return q().onTap},
imageData:r,accessibilityText:function(){return q().accessibilityText},
overlayBadgeText:function(){return q().overlayBadgeText},
iconName:function(){return q().iconName},
unplayableInlinePlaybackIconName:function(){return q().unplayableInlinePlaybackIconName},
isDesktopWeb:u}),_.Z(wMr,{layout:g,colorPalette:N,isDesktopWeb:u,overflowButton:k,avatar:z,onTap:function(){return q().onTap},
genre:Q,title:Y,channelName:e}))};
return _.Z("mini-game-card-view-model",{class:F.className},_.Z(_.OK,null,_.Z(_.DA,{when:function(){return g()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return v()}),_.Z(_.DA,{when:function(){return g()==="MINI_APP_LAYOUT_SQUARE"}},function(){return H()}),_.Z(_.DA,{when:function(){return g()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return P()})))},"la");
zwd.idomCompat=!0;var iFC=_.ld(function(F){var q=_.Jv(F.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.Z(_.Tl,{data:F.actionButton},{buttonViewModel:function(t){return _.Z("div",{class:q},_.Z(_.AB,{data:t.data}))}})},"ma"),N4L=_.ld(function(F){var q=F.onTap;
var t=F.imageData;var u=F.accessibilityText;var J=F.overlayBadgeText;var g=F.iconName;var Y=F.unplayableInlinePlaybackIconName;F=F.isDesktopWeb;return _.Z(_.Ds,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:q},_.Z(_.sc,{data:t,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(u==null?void 0:u())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.Z(oUz,{overlayBadgeText:J,iconName:g,unplayableInlinePlaybackIconName:Y,isDesktopWeb:F}))},"na"),oUz=_.ld(function(F){var q=F.overlayBadgeText;
var t=F.iconName;var u=F.unplayableInlinePlaybackIconName;var J=F.isDesktopWeb;return _.Z("div",{class:"yt-mini-game-card-view-model__badge-container"},_.Z(_.R,{cond:t,then:function(g){return _.Z("div",{class:"yt-mini-game-card-view-model__badge"},_.Z("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.Z(_.Tq,{icon:g,className:"yt-mini-game-card-view-model__icon",size:12}),_.Z("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},q)))}}),_.Z(_.R,{cond:function(){return!t()&&
q()},
then:function(){return _.Z("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},q)}}),_.Z(_.R,{cond:function(){return u()&&J()},
then:function(){return _.Z("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.Z(_.Tq,{icon:u,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"oa"),rsv=_.ld(function(F){var q=F.colorPalette;
var t=F.imageData;var u=function(){return q().vibrantColorPalette?q().vibrantColorPalette.section2Color:q().sectionTwoColor};
return _.Z(_.ln,null,_.Z("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Mo({"background-color":function(){return Bx(u(),"1")}})}),_.Z("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Mo({"background-image":function(){return"url("+t().sources[0].url+")"}})}),_.Z("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Mo({background:function(){return"linear-gradient(180deg,\n    "+Bx(u(),".8")+" 0%,\n    "+Bx(u(),".4")+" 25%,\n    "+Bx(q().vibrantColorPalette?q().vibrantColorPalette.section4Color:q().sectionFourColor,".8")+" 100%)"}})}))},"pa"),wMr=_.ld(function(F){var q=F.layout;
var t=F.colorPalette;var u=F.overflowButton;var J=F.avatar;var g=F.onTap;var Y=F.title;var Q=F.channelName;var e=F.genre;var r=function(){var N;return q()!=="MINI_APP_LAYOUT_SQUARE"&&((N=t())==null?0:N.textPrimaryColor)?"color: "+Bx(t().textPrimaryColor,".7"):""};
return _.Z("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.Z(_.R,{cond:J,then:function(){return _.Z("div",{class:"yt-mini-game-card-view-model__avatar"},_.Z(_.Tl,{data:J},{avatarViewModel:_.FJ}))}}),_.Z(_.Ds,{command:g,
className:"yt-mini-game-card-view-model__metadata-details"},_.Z("h3",{class:"yt-mini-game-card-view-model__title",title:Y},Y),_.Z(_.R,{cond:J,then:function(){return _.Z("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.Z("span",{class:"yt-mini-game-card-view-model__genre",title:Q,style:r},Q),_.Z("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:r},e))},
else:function(){return _.Z("span",{class:"yt-mini-game-card-view-model__genre",title:e},e)}})),_.Z("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Z(_.Tl,{data:u},{buttonViewModel:function(N){var w=N.data;
return _.Z(_.AB,{data:function(){return Object.assign({},w(),{customFontColor:q()==="MINI_APP_LAYOUT_SINGLETON"?w().customFontColor:void 0})}})}})))},"qa"),EUr=_.ld(function(F){var q=F.colorPalette;
var t=F.isDesktopWeb;var u=F.onTap;var J=F.accessibilityText;var g=F.overlayBadgeText;var Y=F.iconName;var Q=F.unplayableInlinePlaybackIconName;var e=F.actionButton;F=F.imageData;return _.Z("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.Z(rsv,{imageData:F,colorPalette:q}),_.Z(N4L,{onTap:u,imageData:F,accessibilityText:J,overlayBadgeText:g,iconName:Y,unplayableInlinePlaybackIconName:Q,isDesktopWeb:t}),_.Z(_.R,{cond:function(){return e==null?void 0:e()},
then:function(){return _.Z(iFC,{actionButton:e})}}))},"ra"),k8n=_.ld(function(F){var q=F.description;
var t=F.isDesktopWeb;var u=F.title;var J=F.genre;var g=F.onTap;var Y=F.actionButton;var Q=F.overflowButton;var e=F.avatar;F=F.channelName;var r={};r=_.Ec("yt-mini-game-card-view-model--search-result-metadata-wrapper",(r["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=t,r["yt-mini-game-card-view-model--show-unplayable-on-hover"]=t,r["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!t()},r));
var N={};N=_.Ec("yt-mini-game-card-view-model__search-result-info-row",(N["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!t()},N));
return _.Z("div",{class:r},_.Z("div",{class:N},_.Z(_.Ds,{command:g,className:"yt-mini-game-card-view-model__metadata-details"},_.Z("h3",{class:"yt-mini-game-card-view-model__title",title:u},u),_.Z("span",{class:"yt-mini-game-card-view-model__genre",title:J},J)),_.Z(iFC,{actionButton:Y,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.Z("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Z(_.Tl,{data:Q},{buttonViewModel:_.AB}))),_.Z("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.Z("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.Z("div",{class:"yt-mini-game-card-view-model__avatar"},_.Z(_.Tl,{data:e},{avatarViewModel:function(w){var k=w.data;return _.Z(_.FJ,{data:function(){return Object.assign({},k(),{avatarImageSize:t()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.Z(_.Ds,{command:g,
className:"yt-mini-game-card-view-model__description"},_.Z("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},F)),_.Z(_.Ds,{command:g,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.Z("div",null)))),_.Z(_.R,{cond:t,then:function(){return _.Z(_.Ds,{command:g,className:"yt-mini-game-card-view-model__description"},q)}}))},"sa");_.ei(zwd,"mini-game-card-view-model",{props:{data:_.NH,className:_.NH,useFullWidth:_.NH,isDesktopWeb:_.NH,addSearchResultTopMargin:_.NH}});_.ei(Rwn,"dismissed-mini-game-card-view-model",{props:{data:_.NH,useSquareAspectRatio:_.NH}});var w_=function(){var F=_.x.apply(this,arguments)||this;F.isSearch=!1;F.isRichGrid=!1;return F};
_.M(w_,_.x);_.l=w_.prototype;_.l.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.l.dismissibleItemOnYtServiceRequestSent=function(F,q){q.actions&&this.dismissibleItemProcessActions(F,q.actions)};
_.l.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.l.dataChanged=function(){this.dismissibleItemReset()};
_.l.dismissibleItemProcessActions=function(F,q){for(var t=0;t<q.length;t++){var u=q[t];_.n(u,_.HX)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.n(u,_.HX)),F.stopPropagation())}};
_.l.dismissibleItemHandleReplaceEnclosingAction=function(F){this.dismissedRenderer=F.item;this.isDismissed=!0};
_.JJ.Object.defineProperties(w_.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var F;return!!this.data&&!((F=this.dismissedRenderer)==null?0:F.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.dismissedRenderer)==null||!F.notificationMultiActionRenderer)}}});
w_.prototype.dataChanged=w_.prototype.dataChanged;w_.prototype.dismissibleItemOnRequestSent=w_.prototype.dismissibleItemOnRequestSent;w_.prototype.dismissibleItemOnYtServiceRequestSent=w_.prototype.dismissibleItemOnYtServiceRequestSent;_.C([_.O(),_.V("design:type",Object)],w_.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],w_.prototype,"isSearch",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],w_.prototype,"isDismissed",void 0);
_.C([_.O(),_.V("design:type",Object)],w_.prototype,"dismissedRenderer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],w_.prototype,"isRichGrid",void 0);_.C([_.W("data.layout"),_.V("design:type",Object),_.V("design:paramtypes",[])],w_.prototype,"useSquareAspectRatio",null);_.C([_.W("data","dismissedRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],w_.prototype,"showCard",null);
_.C([_.W("data","dismissedRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],w_.prototype,"showDismissed",null);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],w_.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.C([_.EB("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],w_.prototype,"dismissibleItemOnRequestSent",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],w_.prototype,"dataChanged",null);_.C([_.Vu({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],w_);
_.b(w_,"ytd-mini-game-card-view-model",function(){if(QiO!==void 0)return QiO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return QiO=F},{mode:_.Nc("kevlar_poly_si_batch_j081")?1:2});var nUv;var MBv;var iP=function(){return _.se.apply(this,arguments)||this};
_.M(iP,_.se);iP.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
iP.prototype.getContinuationUrl=function(F){var q={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(q.itct=this.data.clickTrackingParams);return _.j6(F,q)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],iP.prototype,"data",void 0);_.C([_.Vu({is:"yt-reload-continuation",noInjection:!0})],iP);var T4O;var G8L;var k5=function(){var F=_.x.apply(this,arguments)||this;F.notificationData={};return F};
_.M(k5,_.x);_.l=k5.prototype;_.l.isMenuExpanded=function(F){return F&&F.length<=1?"undefined":"false"};
_.l.dataChanged_=function(){this.selected=void 0;var F=this.computeSelectedIndex_(this.data);F>=0&&(this.selected=F);F=this.data&&this.data.length>1;_.RE(this.hostElement,"has-items",F);_.ep(this.hostElement).querySelector("#label").tabIndex=F?0:-1};
_.l.onDropdownOpen=function(){var F=_.yb();if(this.parentTrackingParams&&this.data){var q=_.Av(this.parentTrackingParams);this.data.forEach(function(t){F&&q&&t.trackingParams&&(t=_.Av(t.trackingParams),_.Bo(F,q,t),_.aD(F,[t]))})}else this.parentTrackingParams||_.bz(new _.D0("No parent tracking params passed in for yt-dropdown-menu."))};
_.l.hasNotification=function(F){var q;if(F.targetId&&((q=this.notificationData)==null?0:q.targetId)){var t;return F.targetId===((t=this.notificationData)==null?void 0:t.targetId)}};
_.l.computeSelectedIndex_=function(F){if(F)for(var q=0,t=F.length;q<t;q++)if(F[q].selected)return q;return-1};
_.l.computeLabel_=function(F){return this.data&&F!=void 0?this.data[F].title:""};
_.l.computeShowIcon_=function(F,q){return!q&&!!F};
_.l.computeVerticalOffset_=function(F){return F?36:0};
_.l.computeEndpoint_=function(F){return F.endpoint||F.navigationEndpoint};
_.l.onLabelClick_=function(F){this.data&&this.data.length<=1?F.stopPropagation():this.menuExpanded="true"};
_.l.onIronActivate_=function(F){F=F.detail.item;var q=_.ep(this.hostElement).querySelector("#repeat").itemForElement(F);if(q&&q.trackingParams){var t=_.yb(),u=_.Av(q.trackingParams);t&&_.co(t,u)}if(q&&q.serviceEndpoint)_.E("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(q.serviceEndpoint):_.RD(this.hostElement,[q.serviceEndpoint]),_.Q0(this.hostElement,"yt-playlist-reloading");else a:{if((q=F.querySelector("yt-supported-renderers"))&&
(q=q.rendererElement)&&q.is=="yt-reload-continuation"){q.trigger();break a}(F=F.querySelector("yt-reload-continuation"))&&F.trigger()}};
_.l.onTap_=function(F){F.preventDefault()};
_.l.onItemTap_=function(F){this.ytEndpointBehavior.onEndpointTap_(F)};
_.l.onLinkFocus_=function(F){try{var q=F.target}catch(u){}if(q){var t=q.querySelector("tp-yt-paper-item");t&&_.aE(this,"focus",function(){t.focus()})}};
_.l.onMenuClose_=function(){this.menuExpanded="false"};
_.l.isLabelIconActive_=function(F){return F==="true"};
_.l.computeHasSubtitle_=function(F){return!!F};
_.l.computeHrefForItem_=function(F){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(F))};
_.l.updateSelectedFromBinding=function(F){this.selected=F.detail.value};
_.JJ.Object.defineProperties(k5.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
k5.prototype.onMenuClose_=k5.prototype.onMenuClose_;k5.prototype.onTap_=k5.prototype.onTap_;k5.prototype.onIronActivate_=k5.prototype.onIronActivate_;k5.prototype.onDropdownOpen=k5.prototype.onDropdownOpen;k5.prototype.dataChanged_=k5.prototype.dataChanged_;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],k5.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.mu.YtEndpointBehavior),_.V("design:type",Object)],k5.prototype,"ytEndpointBehavior",void 0);
_.C([_.O(),_.V("design:type",Array)],k5.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],k5.prototype,"parentTrackingParams",void 0);_.C([_.O(),_.V("design:type",Object)],k5.prototype,"selected",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],k5.prototype,"useLabel",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],k5.prototype,"useComputedAriaLabel",void 0);_.C([_.O(),_.V("design:type",String)],k5.prototype,"icon",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],k5.prototype,"iconLabel",void 0);_.C([_.O(),_.V("design:type",String)],k5.prototype,"ariaLabel",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],k5.prototype,"disabled",void 0);_.C([_.O({computed:"isMenuExpanded(data)"}),_.V("design:type",String)],k5.prototype,"menuExpanded",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],k5.prototype,"closeOnActivate",void 0);
_.C([_.O({reflectToAttribute:!0,value:_.E("web_modern_buttons")}),_.V("design:type",Boolean)],k5.prototype,"modernButtons",void 0);_.C([_.O(),_.V("design:type",Object)],k5.prototype,"notificationData",void 0);_.C([_.W("ariaLabel, selected"),_.O(),_.V("design:type",String),_.V("design:paramtypes",[])],k5.prototype,"computedAriaLabel",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k5.prototype,"dataChanged_",null);
_.C([_.EB("paper-dropdown-open"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],k5.prototype,"onDropdownOpen",null);_.C([_.EB("iron-activate"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],k5.prototype,"onIronActivate_",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],k5.prototype,"onTap_",null);
_.C([_.EB("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],k5.prototype,"onMenuClose_",null);_.C([_.Vu({is:"yt-dropdown-menu",disableElementRegistration:!0})],k5);
_.b(k5,"yt-dropdown-menu",function(){if(G8L===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;T4O===void 0&&(T4O=document.createElement("template"));var u=T4O;t.call(q,u.content.cloneNode(!0),F.content.firstChild);G8L=F}F=G8L;return F},{mode:2});var Ei=function(){var F=_.x.apply(this,arguments)||this;F.hasNotification=!1;return F};
_.M(Ei,_.x);Ei.prototype.computeId=function(F){return F};
Ei.prototype.computeHorizontalAlign=function(F){return F?"right":"left"};
Ei.prototype.computeAccessibilityLabel=function(F){var q,t;return((q=F.accessibility)==null?void 0:(t=q.accessibilityData)==null?void 0:t.label)||null};
Ei.prototype.notificationDataChanged=function(){var F;this.hasNotification=!!this.notificationData&&!((F=this.data)==null?0:F.icon)};
Ei.prototype.notificationDataChanged=Ei.prototype.notificationDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.lT.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],Ei.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ei.prototype,"data",void 0);_.C([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",String)],Ei.prototype,"id",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],Ei.prototype,"isRightAligned",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ei.prototype,"disabled",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],Ei.prototype,"closeOnActivate",void 0);_.C([_.O(),_.V("design:type",Object)],Ei.prototype,"notificationData",void 0);_.C([_.O(),_.V("design:type",Object)],Ei.prototype,"hasNotification",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],Ei.prototype,"useComputedAriaLabel",void 0);_.C([_.za("notificationData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ei.prototype,"notificationDataChanged",null);_.C([_.Vu({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Ei);
_.b(Ei,"yt-sort-filter-sub-menu-renderer",function(){if(MBv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;nUv===void 0&&(nUv=document.createElement("template"));var u=nUv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);MBv=F}F=MBv;return F},{mode:2});var DQd=_.ld(function(F){var q=F.data;var t=_.zq(function(){var g=q().onTap;(g=_.n(g,_.Uk))&&_.sV().resolve(_.gN).resolveCommand(g);return!1}),u=function(){return{sources:[{url:q().thumbnailUrl,
width:120,height:90}]}},J=function(){return q().rating&&q().ratingA11yLabel&&q().reviewsCount&&q().reviewsCountA11yLabel};
return _.Z("place-data-view-model",null,_.Z(_.R,{cond:function(){return q().placeName&&q().placeCategory},
then:function(){return _.Z("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":t},_.Z(_.sc,{data:u,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.Z(_.Ds,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return q().onTap}},_.Z("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return q().placeName}},function(){return q().placeName})),_.Z("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.Z(_.R,{cond:J,
then:function(){return _.Z("div",{class:_.Ec("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.Z("span",{class:"score",title:function(){return q().ratingA11yLabel}},function(){return q().rating}),_.Z("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.Z(_.Tq,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.Z("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return q().reviewsCountA11yLabel}},function(){return q().reviewsCount}))},
else:function(){return _.Z("div",{class:_.Ec("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.Z("div",{class:_.Ec("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.Z("span",{class:"category",
title:function(){return q().placeCategory}},function(){return q().placeCategory}))))}}))},"ta");
DQd.idomCompat=!0;_.ei(DQd,"place-data-view-model",{props:{data:_.NH}});var Wsr=new _.pg("INLINE_PLAYBACK_HOOK_TOKEN");var OFj=kR$({sharedUi:$iJ});_.BD=zjv(OFj)(OFj.sharedUi,{animatedThumbnailEnabledSelector:function(F){return F.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(F){return F.inlinePreviewEnabled},
currentPageTypeSelector:function(F){return F.currentPageType},
currentPageSubTypeSelector:function(F){return F.currentPageSubType}});var Phz=function(F){this.setActiveSlideIndex=F;this.jobIds=[];this.isSlideshowPlaying=!1},vUw=function(F,q){F.isSlideshowPlaying||(F.isSlideshowPlaying=!0,xQv(F),AsC(F,q,0))},xQv=function(F){_.wC(_.mI,function(){F.setActiveSlideIndex(0)},1)},AsC=function(F,q,t){F.jobIds.push(_.wC(_.mI,function(){var u=t<q-1?t+1:0;
F.setActiveSlideIndex(u);AsC(F,q,u)},1800))};var Iuj=new _.pg("IMAGE_ON_LOAD_HANDLER_TOKEN");var HFf=_.ld(function(F){return _.Z("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.Z(_.R,{cond:function(){var q;return(q=F.data())==null?void 0:q.thumbnail},
then:function(q){return _.Z(_.sc,{data:q,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ua");_.mQr=_.ld(function(F){var q=F.data;var t=F.lockupExperiments;F={};return _.Z("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.Z("div",{class:_.Ec("ytThumbnailOverlayButtonViewModelButton",(F.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var u;return t&&((u=t())==null?void 0:u.useLegacySizedIconButton)},F))},_.Z(_.Tl,{data:function(){return q().overlayButton}},{buttonViewModel:function(u){return _.Z(_.AB,{data:u.data,
buttonOverrides:function(){var J;return t&&((J=t())==null?0:J.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"va");
_.mQr.idomCompat=!0;var $QJ=_.ld(function(F){return _.Z("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.zq(function(q){q.preventDefault();return!1})},_.Z(_.Tl,{data:function(){return F.data().buttons}},{toggleButtonViewModel:function(q){return _.Z("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.Z(_.j9,{data:q.data}))}}))},"wa");
$QJ.idomCompat=!0;var bFz=_.ld(function(F){var q=function(){var t;return((t=_.n(F.data().rendererContext,_.vX))==null?void 0:t.label)||""};
return _.Z("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.Z(_.R,{cond:function(){return F.data().image},
then:function(){return _.Z("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.Z(_.sc,{data:function(){return F.data().image},
alt:q}))}}),_.Z(_.R,{cond:function(){return F.data().text},
then:function(){return _.Z("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return F.data().text})}}))},"xa");var ysJ;ysJ=_.BD.animatedThumbnailEnabledSelector;_.zj=_.ld(function(F){var q=[],t=function(){var k,z;return uBo((k=F.width)==null?void 0:k.call(F),(z=F.height)==null?void 0:z.call(F))},u=_.sV().resolve(_.JU(Iuj)),J=_.FG("yt-thumbnail-view-model",function(){q.push("elRef.value set");
var k;(k=F.playbackRef)==null||k.call(F,{thumbnailElRef:J,thumbnail:F.data().image,thumbnailOverlays:F.data().overlays,thumbnailSize:t()})});
_.v_(function(){q.push("onInit");_.vj(function(){q.push("onCleanup")})});
var g=_.dC(ysJ),Y=function(){var k,z;return(z=(k=F.aspectRatio)==null?void 0:k.call(F))!=null?z:0},Q=function(){return(F.data().image?_.Wbo(F.data().image):Y())<=1&&Y()===0},e=function(){return Q()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},r=function(){J.value||_.bz(new _.D0("Thumbnail elRef.value is null",q.join("\n")));
u&&J.value&&u(J.value)},N=function(){var k,z;
return((k=F.hovered)==null?void 0:k.call(F))&&t()!=="large"&&((z=F.data().overlays)==null?void 0:z.some(function(T){return _.n(T,M91)}))},w={};
return _.Z("yt-thumbnail-view-model",{class:_.Ec("ytThumbnailViewModelHost",F.className,function(){return Au$(Y())},function(){var k,z;
a:{var T=t(),P=(k=F.disableRounding)==null?void 0:k.call(F);k=(z=F.isClip)==null?void 0:z.call(F);if(!P&&!k)switch(T){case "large":z="ytThumbnailViewModelLarge";break a;case "small":z="ytThumbnailViewModelSmall";break a;default:z="ytThumbnailViewModelMedium";break a}z=void 0}return z},(w.ytThumbnailViewModelCinematic=Q,w)),
style:_.Mo({"background-color":function(){var k,z=Q()?(k=F.data().backgroundColor)==null?void 0:k.lightTheme:void 0;return z?Bx(z,"1"):void 0}}),
el:J},_.Z(_.R,{cond:Q,then:function(){return _.Z("div",{class:"ytThumbnailViewModelBlurredImage"},_.Z(_.sc,{data:function(){return F.data().image},
alt:"",contentMode:e,targetWidth:F.width,onload:r}))}}),_.Z("div",{class:"ytThumbnailViewModelImage"},_.Z(_.sc,{data:function(){return F.data().image},
alt:"",contentMode:e,targetWidth:F.width,onload:r}),null),_.Z(_.Tl,{data:function(){return N()?void 0:F.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:U8f,thumbnailOverlayBadgeViewModel:function(k){return _.Z(S7z,{data:k.data,thumbnailSize:t,isClip:F.isClip})},
thumbnailBottomOverlayViewModel:function(k){return _.Z(yuE,{data:k.data,thumbnailSize:t,isClip:F.isClip})},
thumbnailOverlayFullViewModel:bFz,thumbnailOverlayButtonViewModel:function(k){return _.Z(_.mQr,{data:k.data,lockupExperiments:F.lockupExperiments})}}),_.Z(_.Tl,{data:function(){var k;
return((k=F.hovered)==null?0:k.call(F))?F.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(k){return _.Z(cB,{data:k.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:$QJ}),_.Z(_.Tl,{data:function(){var k;return((k=F.hovered)==null?0:k.call(F))&&g()?F.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:HFf}),_.Z(_.R,{cond:F.isClip,then:function(){return _.Z("div",{class:"ytPinkingNsHost"},_.Z("svg",{class:"ytPinkingNsPinkingLeft"},_.Z("defs",null,_.Z("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Z("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.Z("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.Z("svg",{class:"ytPinkingNsPinkingRight"},_.Z("defs",null,_.Z("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Z("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.Z("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ya");
_.zj.idomCompat={callbacks:{playbackRef:!0}};var Chw=_.ld(function(F){var q=_.X(_.N3(-1,void 0,"RW2Ole")),t=q.next().value,u=q.next().value;_.v_(function(){var J=new Phz(u);vUw(J,F.data().thumbnails.length);_.vj(function(){if(J.isSlideshowPlaying){J.isSlideshowPlaying=!1;for(var g=J.jobIds,Y=0,Q=g.length;Y<Q;Y++)_.mI.cancelJob(g[Y]);J.jobIds.length=0}})});
return _.Z("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.Z(_.Tl,{data:function(){return F.data().thumbnails}},{thumbnailViewModel:function(J,g){return _.Z("div",{class:function(){var Y=!F.data().primaryThumbnail,Q=g(),e=t(),r=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
Y&&Q===0&&r.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");Q<=e&&r.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return r.join(" ")}},_.Z(_.zj,{data:J.data,
disableRounding:F.disableRounding}))}}))},"za");
Chw.idomCompat=!0;var vt_=new _.pg("DWELL_DETECTOR_REGISTRY_TOKEN");var VBz=_.ld(function(F){var q=IFM(F.triggeringElement),t=function(){return!!F.data().primaryThumbnail},u=function(){var g,Y=(g=F.data())==null?void 0:g.maxHeight,Q;
g=(Q=F.maxHeight)==null?void 0:Q.call(F);return Y!=null&&g!=null?Math.min(Y,g):g!=null?g:Y},J=function(){var g=u();
if(g){var Y;if(t()&&(Y=F.includeStackHeight)!=null&&Y.call(F)){var Q;Y=((Q=F.doubleStack)==null?0:Q.call(F))?8:4}else Y=0;g=g-Y-1;if(!(g<0)){Q=Math;Y=Q.ceil;var e,r;var N=tI3((r=(e=F.aspectRatio)==null?void 0:e.call(F))!=null?r:0);return Y.call(Q,g*N)}}};
return _.Z("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.Mo({height:function(){return u()?u()+"px":void 0},
width:function(){return J()?J()+"px":void 0}})},_.Z(dQf,{stackEnabled:t,
thumbnailSize:function(){var g,Y;return uBo((g=F.width)==null?void 0:g.call(F),(Y=F.height)==null?void 0:Y.call(F))},
doubleStack:F.doubleStack,stackColor:function(){return F.data().stackColor},
includeStackHeight:F.includeStackHeight},_.Z(_.Tl,{data:function(){return F.data().primaryThumbnail}},{thumbnailViewModel:function(g){var Y={};
return _.Z(_.zj,{data:g.data,width:F.width,height:F.height,aspectRatio:F.aspectRatio,disableRounding:F.disableRounding,className:_.Ec((Y.ytCollectionThumbnailViewModelHostHasStacks=t,Y)),hovered:F.hovered,playbackRef:F.playbackRef})}}),_.Z(_.R,{cond:function(){var g;
return q()&&((g=F.data().thumbnails)==null?void 0:g.length)},
then:function(){return _.Z("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.Z(Chw,{data:F.data,disableRounding:function(){return!t()}}))}})))},"Aa");
VBz.idomCompat={callbacks:{playbackRef:!0}};
var dQf=_.ld(function(F){var q=F.children;var t=F.stackEnabled;var u=F.thumbnailSize;var J=F.doubleStack;var g=F.stackColor;var Y=F.includeStackHeight;var Q,e=(Q=_.sV().resolve(_.JU(_.qo)))==null?void 0:Q();return _.Z(_.R,{cond:t,then:function(){return _.Z(run,{data:function(){var r,N;return{experimentEnabled:!0,thumbnailSize:u(),doubleStack:J==null?void 0:J(),color:e?g==null?void 0:(r=g())==null?void 0:r.darkTheme:g==null?void 0:(N=g())==null?void 0:N.lightTheme,enableResponsiveMode:!1,includeStackHeight:Y==
null?void 0:Y()}}},q)},
else:function(){return q}})},"Ba");var UQn=new _.pg("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var n2;_.oM={calledOnce:!0,state:"visible"};n2={calledOnce:!0,state:"hidden"};_.Mi=_.ld(function(F){var q=F.data;var t=F.customCommandResolver;var u=F.className;var J=F.delayedClassName;var g=F.animationEntityKey;var Y=F.isCompactWidth;F=_.X(_.N3(!1,void 0,"Mp955c"));var Q=F.next().value,e=F.next().value,r=_.Jv(g,""),N=_.nH(KN3,r),w=function(){var kP,n3;return(n3=(kP=N())==null?void 0:kP.value)!=null?n3:!1},k=function(){_.ud(_.Gl("booleanEntity",r(),{key:r(),
value:!0}));S=void 0};
g=_.X(_.np(w));var z=g.next().value,T=g.next().value;g=_.X(_.np(w));var P=g.next().value,v=g.next().value;g=_.X(_.np(function(){var kP;return w()?(kP=q().styleTransitionConfig)==null?void 0:kP.destinationStyle:void 0}));
var H=g.next().value,d=g.next().value,a=function(){var kP=Object.assign({},q(),H()&&{style:H()});var n3,o_,df=kP.label,m$=(n3=kP.interaction)==null?void 0:(o_=n3.accessibility)==null?void 0:o_.label;n3=kP.iconImage?kP.label&&kP.label.content?kP.iconLeading?"leading":"trailing":"icon-only":void 0;kP={formattedButtonText:df,accessibilityLabel:m$,style:bUW(kP.style),type:yuo(kP.style),state:"active",size:$8u(kP.size),iconPosition:n3,disabled:!1,aTagConfig:m83(kP,t)};_.E("enable_desktop_vdcbg_components")&&
(kP.focused=Q());return kP},S;
g=_.lR({visibilityCallback:function(kP){var n3,o_=(n3=q().interaction)==null?void 0:n3.onFirstVisible;kP&&o_&&_.L9(o_)},
showOption:_.oM});var K=function(){return l$W(a(),!!q().iconImage)};
F={};u=_.Ec(function(){return"ytwAdButtonViewModelHost"},function(){return q().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var kP=!!q().delayedAppearanceConfig,n3=z();
return kP?n3?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var kP=!!q().delayedAppearanceConfig,n3=P();
return kP?n3?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!q().delayedAppearanceConfig||z()?J==null?void 0:J():""},(F.ytwAdButtonViewModelHostCompactWidth=function(){return Y==null?void 0:Y()},F),u!=null?u:"");
var h=function(){var kP,n3=(kP=q().delayedAppearanceConfig)==null?void 0:kP.delayedInvisibleSeconds;n3&&(S=_.AC(_.mI,function(){T(!0);c()},n3*1E3))},c=function(){var kP,n3=(kP=q().delayedAppearanceConfig)==null?void 0:kP.delayedVisibleSeconds;
n3&&(S=_.AC(_.mI,function(){v(!0);rf()},n3*1E3))},rf=function(){var kP,n3=(kP=q().styleTransitionConfig)==null?void 0:kP.styleTransitionSeconds,o_,df=(o_=q().styleTransitionConfig)==null?void 0:o_.destinationStyle;
n3&&df?S=_.AC(_.mI,function(){d(df);k()},n3*1E3):k()},Zv=function(){var kP;
return(kP=q().delayedAppearanceConfig)==null?void 0:kP.transitionDurationSeconds};
_.v_(function(){h()});
_.vj(function(){S&&_.mI.cancelJob(S)});
return _.Z("ad-button-view-model",{"on:focusin":_.zq(_.E("enable_desktop_vdcbg_components")?function(){var kP=_.sV().resolve(_.JU(_.GD));kP&&e(kP.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.zq(_.E("enable_desktop_vdcbg_components")?function(){e(!1);return!1}:void 0),
class:u,el:_.l_(g),style:_.Mo({"transition-duration":function(){return Zv()?Zv()+"s":void 0}})},_.Z(_.R,{cond:a,
then:function(){return _.Z(_.x9,{data:a,icon:function(){return _.Z(_.R,{cond:function(){return q().iconImage},
then:function(kP){return _.Z(_.sc,{data:kP,alt:"",targetWidth:K,targetHeight:K,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Ca");var SJf=_.ld(function(F){var q=F.data;F=function(){return q().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var t=_.lR({visibilityCallback:function(g){var Y,Q=(Y=q().interaction)==null?void 0:Y.onFirstVisible;g&&Q&&_.L9(Q)},
showOption:_.oM}),u={},J={};return _.Z("ad-button-group-view-model",{class:_.Ec("ytwAdButtonGroupViewModelHost",(u.ytwAdButtonGroupViewModelHostCompactWidth=F,u)),el:_.l_(t)},_.Z("div",{class:_.Ec("ytwAdButtonGroupViewModelHostSecondaryButton",(J.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=F,J))},_.Z(_.Tl,{data:function(){return q().secondaryAdButton}},{adButtonViewModel:function(g){return _.Z(_.Mi,{data:g.data})}})),_.Z("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.Z(_.Tl,
{data:function(){return q().primaryAdButton}},{adButtonViewModel:function(g){return _.Z(_.Mi,{data:g.data})}})))},"Da");var hwv=_.ld(function(F){var q=function(){var t;return((t=F.data())==null?void 0:t.answers)||[]};
return _.Z("yt-survey-icons",{class:"ytSurveyIconsHost"},_.Z("div",{class:"ytSurveyIconsHeader"},_.Z("div",{class:"ytSurveyIconsTitle"},function(){var t;return(t=F.data())==null?void 0:t.text}),_.Z("div",null,_.Z(_.x9,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var t;(t=F.onDismiss)==null||t.call(F)}}},
iconName:"DISMISSAL"}))),_.Z("div",null,_.Z("div",{class:"ytSurveyIconsAnswers"},_.Z(_.Gn,{each:function(){return q()},
keyBy:"INDEX"},function(t,u){return _.Z("div",null,_.Z(_.x9,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var J;(J=F.onSelect)==null||J.call(F,t(),u)}}},
icon:function(){return _.Z(_.Tq,{icon:function(){var J,g;return(J=t())==null?void 0:(g=J.icon)==null?void 0:g.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.Z("div",{class:"ytSurveyIconsAnswersText"},_.Z("div",null,function(){return q().length?q()[0].text:""}),_.Z("div",null,function(){return q().length?q()[q().length-1].text:""}))))},"Ea");var Ks1=_.ld(function(F){var q=_.l_(_.CH(function(){var e;return(e=F.data())==null?void 0:e.rendererContext},void 0,void 0,void 0,!0)),t=_.X(_.N3(!1,void 0,"GW0yjf")),u=t.next().value,J=t.next().value,g=_.nH(AIo,function(){var e;
return(e=F.data().keys)==null?void 0:e.surveyEntityKey}),Y=_.nH(vyo,function(){var e;
return(e=F.data().keys)==null?void 0:e.surveyStateEntityKey});
_.c2("ytd-slimline-survey-show-action",function(){J(!1)});
var Q=function(){var e,r;var N=(e=Y())==null?void 0:(r=e.questionStack)==null?void 0:r[0];if(N!==void 0){var w,k;return(w=g())==null?void 0:(k=w.questions)==null?void 0:k[N]}};
t={};return _.Z("yt-slimline-survey-view-model",{el:q,class:_.Ec("ytSlimlineSurveyViewModelHost",(t.ytSlimlineSurveyViewModelCollapsed=function(){return u()},t))},_.Z("div",{class:"ytSlimlineSurveyViewModelContainer"},_.Z(_.R,{cond:function(){var e;
return((e=Q())==null?void 0:e.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.Z(hwv,{data:function(){return Q()},
onSelect:function(e,r){var N,w;return _.p(function(k){J(!0);if(w=(N=F.data())==null?void 0:N.onSelectRating)_.L9(w),_.ud(B_j(r));_.WA(k)})},
onDismiss:function(){J(!0);var e;var r=(e=g())==null?void 0:e.dismissalFeedbackToken;e=r?{feedbackEndpoint:{feedbackToken:r}}:void 0;e&&_.hv(e,{form:{element:q.value}})}})}})))},"Fa");var B4C=_.ld(function(F){return _.Z("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.Z(_.Tl,{data:function(){var q;return(q=F.data())==null?void 0:q.attachments}},{flexibleActionsViewModel:function(q){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(_.tp,{data:q.data,
layout:function(){var t;return((t=F.lockupStyle())==null?void 0:t.arrangement)===1?0:1},
justifyContentOverride:function(){var t;return((t=F.lockupStyle())==null?void 0:t.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(q){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(Ks1,{data:q.data}))},
expandableMetadataViewModel:function(q){q=q.data;var t;return _.Z("div",{class:_.Ec("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(t=_.sV().resolve(_.JU(UQn)))==null?void 0:t({data:q}))},
adButtonGroupViewModel:function(q){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(SJf,{data:q.data}))},
adButtonViewModel:function(q){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(_.Mi,{data:q.data,isCompactWidth:!0}))}}))},"Ga");var h2$=_.YE("rich_grid_min_item_width",310),U8y=_.YE("rich_grid_max_item_width",500);var LsL=_.ld(function(F){var q=F.data;return _.Z("br-nz-badge-shape",{class:_.Ec(function(){return Fsq(q().brNzRatingBadgeType)}),
role:function(){return q().accessibilityText?"img":void 0},
"aria-label":function(){return q().accessibilityText}},function(){var t;
return(t=q())==null?void 0:t.text})},"Ha");_.Tj=_.ld(function(F){var q=function(){var t=F.data(),u,J;if(t){var g=!((u=F.workaroundShortsIsThumbnailBadge)==null||!u.call(F));u=(J=F.modern)==null?void 0:J.call(F);var Y;a:switch(t.badgeStyle){case "BADGE_OVERLAY":J=!0;break a;default:J=!1}t={type:g?17:qJP(t.badgeStyle),brNzRatingBadgeType:tBf(t.badgeStyle),text:t.badgeText,icon:t.iconName,isOverlay:J,modern:u||_.E("web_modern_badge_view_model"),accessibilityText:t.accessibilityLabel||((Y=_.n(t.rendererContext,_.vX))==null?void 0:Y.label)}}else t=
void 0;return t};
return _.Z("yt-badge-view-model",{class:_.Ec("ytBadgeViewModelHost",F.class)},_.Z(_.OK,null,_.Z(_.DA,{when:function(){var t;return!((t=q())==null||!t.brNzRatingBadgeType)}},function(){return _.Z(LsL,{data:function(){return q()}})}),_.Z(_.DA,{when:function(){return!!q()&&!q().brNzRatingBadgeType}},function(){return _.Z(_.gu,{data:function(){return q()}})})))},"Ia");
_.Tj.idomCompat=!0;var JsC,us$;JsC=16/9;us$=2/3;_.Gj=_.ld(function(F){var q=F.data;var t=F.className;var u=F.imageSizeConfig;var J=F.notifyOnLoaded;var g=function(){return q().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Y=function(){var k;
return _.yg((k=q())==null?void 0:k.rendererContext)};
F={};F=(F.ytContentPreviewImageViewModelHost=!0,F.ytContentPreviewImageViewModelCircleImage=function(){return g()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},F.ytContentPreviewImageViewModelTappable=function(){return Y()},F);
var Q=function(){var k,z;return(z=(k=_.n(q().rendererContext,_.vX))==null?void 0:k.label)!=null?z:""},e=function(){return gUf(q())},r=function(){var k=sif(g(),q().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",u==null?void 0:u(),luv(e()),q().layoutWidth,q().layoutHeight),z=Object.assign({},k);
k.width&&(z.width=Math.round(k.width));k.height&&(z.height=Math.round(k.height));k.maxWidth&&(z.maxWidth=Math.round(k.maxWidth));k.maxHeight&&(z.maxHeight=Math.round(k.maxHeight));return z},N=_.zy(function(){return r().height},void 0,"CxFlJb"),w=_.zy(function(){return r().width},void 0,"lb8Jhd");
return _.Z("yt-content-preview-image-view-model",{el:_.l_(_.CH(function(){var k;return(k=q())==null?void 0:k.rendererContext})),
role:function(){return Y()?"link":void 0},
tabindex:function(){return Y()?0:void 0},
class:_.Ec(t,F,function(){var k=g();var z=u==null?void 0:u();k=k==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||k==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||k==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||k==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(z==null?void 0:z.size)!=null&&z.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(z==null?void 0:z.size)!=null&&z.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return k}),
style:function(){var k=r(),z=[];k.width&&z.push("width: "+k.width+"px");k.height&&z.push("height: "+k.height+"px");k.maxWidth&&z.push("max-width: "+k.maxWidth+"px");k.maxHeight&&z.push("max-height: "+k.maxHeight+"px");k.fullWidth&&z.push("width: 100%");return z.join(";")}},_.Z(_.R,{cond:e,
then:function(k){return _.Z(_.sc,{data:k,alt:Q,"data-disabled$":function(){return!Q()},
notifyOnLoaded:J,targetWidth:w,targetHeight:N,preserveWidth:function(){return!!w()},
preserveHeight:function(){return!!N()}})}}),_.Z(_.Tl,{data:function(){var k;
return(k=q())==null?void 0:k.overlays}},{thumbnailHoverOverlayViewModel:cB,
thumbnailOverlayButtonViewModel:_.mQr}))},"Ja");
_.Gj.idomCompat=!0;var auC=_.ld(function(F){var q=F.data;var t=F.className;var u=F.useSmallLayout;F=F.useMediumText;var J={};F=(J["yt-attribution-view-model-wiz"]=!0,J["yt-attribution-view-model-wiz--medium-text"]=F,J);return _.Z("yt-attribution-view-model",{el:_.l_(_.CH(function(){var g;return(g=q())==null?void 0:g.rendererContext})),
class:_.Ec(t,F)},_.Z(_.R,{cond:function(){return _.yg(q().rendererContext)},
then:function(){return _.Z("button",{class:"yt-attribution-view-model-wiz--tappable"},_.Z(fuO,{data:q,useSmallLayout:u}))},
else:function(){return _.Z(fuO,{data:q,useSmallLayout:u})}}))},"Ka"),fuO=_.ld(function(F){var q=F.data;
var t=F.useSmallLayout;var u=function(){return{size:(t==null?0:t())?16:24}};
return _.Z(_.ln,null,_.Z(_.Tl,{data:function(){return q().contentPreviewImage}},{contentPreviewImageViewModel:function(J){return _.Z(_.Gj,{data:J.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:u})}}),_.Z(_.Tl,{data:function(){return q().badge}},{badgeViewModel:function(J){return _.Z(_.Tj,{data:J.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.Z(_.R,{cond:function(){return q().text},
then:function(){return _.Z(_.rv,{text:function(){return q().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.Z(_.R,{cond:function(){return q().suffix},
then:function(){return _.Z(_.rv,{text:function(){return q().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"La");
auC.idomCompat=!0;var jiC,csx,Fqd,q_O,tVd;jiC=_.ld(function(F){var q=F.delimiter;var t=F.max;var u=F.index;var J=F.isStandalone;return _.Z(_.R,{cond:function(){return t()-1>u()},
then:function(){var g={};return _.Z("span",{class:_.Ec("yt-content-metadata-view-model-wiz__delimiter",(g["yt-content-metadata-view-model-wiz__delimiter--standalone"]=J,g)),"aria-hidden":!0},q)}})},"Ma");
csx=_.ld(function(F){var q=F.metadataPart;var t=F.maxLines;return _.Z(_.rv,{text:function(){return q().text},
linkInheritColor:!0,className:function(){return XMo(t())},
userInput:!0})},"Na");
Fqd=_.ld(function(F){var q=F.metadataPart;var t=F.maxLines;return _.Z(_.R,{cond:function(){return q().tooltip},
then:function(u){return _.Z("span",{title:u,role:"tooltip"},_.Z(csx,{metadataPart:q,maxLines:t}))},
else:function(){return _.Z(csx,{metadataPart:q,maxLines:t})}})},"Oa");
q_O=_.ld(function(F){var q=F.metadataPart;var t=F.isOverlay;var u=F.useMediumText;var J=F.hideAvatar;var g=function(){return q().maxLines!==void 0?q().maxLines:1};
return _.Z(_.ln,null,_.Z(_.Tl,{data:function(){return q().avatarStack}},{avatarStackViewModel:function(Y){return _.Z(_.tP,{data:Y.data,
isOverlay:t,useMediumText:u,hideAvatar:J})},
badgeViewModel:_.Tj}),_.Z(_.R,{cond:function(){return q().leadingIcon},
then:function(Y){return _.Z(_.Tq,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return Y().name},
size:function(){return Y().width}})}}),_.Z(_.R,{cond:function(){return q().text},
then:function(){return _.Z(Fqd,{metadataPart:q,maxLines:g})}}),_.Z(_.R,{cond:function(){return q().icon},
then:function(Y){return _.Z(_.Tq,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return Y().name},
size:function(){return Y().width}})}}))},"Pa");
tVd=_.ld(function(F){var q=F.metadataRow;var t=F.isInline;var u=F.delimiter;var J=F.isOverlay;var g=F.useMediumText;var Y=F.extensions;var Q=function(){var r,N=Y==null?void 0:(r=Y())==null?void 0:r.lockupMetadata;r=q();var w,k;return!!((N==null?0:(w=N.byline)==null?0:w.hideAvatar)&&((k=_.n(r,Nvw))==null?void 0:k.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},e=function(){return q().metadataParts||[]};
F={};return _.Z("div",{class:_.Ec("yt-content-metadata-view-model-wiz__metadata-row",(F["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=t,F["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var r,N=Y==null?void 0:(r=Y())==null?void 0:r.lockupMetadata;r=q();var w,k;return!!((N==null?0:(w=N.byline)==null?0:w.addPadding)&&((k=_.n(r,Nvw))==null?void 0:k.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},F["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var r;
return!!(Y==null?0:(r=Y())==null?0:r.lockupMetadata)&&q().badges&&!q().metadataParts},F))},_.Z(_.Tl,{data:function(){return q().badges}},{badgeViewModel:function(r){return _.Z("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.Z(_.Tj,{data:r.data}))}}),_.Z(_.Gn,{each:e},function(r,N){return _.Z(_.ln,null,_.Z(q_O,{metadataPart:r,
isOverlay:J,useMediumText:g,hideAvatar:Q}),_.Z(jiC,{delimiter:u,max:function(){return e().length},
index:N,isStandalone:!1}))}),_.Z(_.R,{cond:function(){return q().isSpacerRow&&!t()},
then:function(){return _.Z("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Qa");
_.DN=_.ld(function(F){F=_.sk(F,{layout:0,isOverlay:!1});var q=F.data,t=F.layout,u=F.isOverlay,J=F.useMediumText,g=F.extensions,Y=function(){return t()===0},Q=function(){var r;
return((r=q().metadataRows)==null?void 0:r.filter(function(N){var w,k=g==null?void 0:(w=g())==null?void 0:w.lockupMetadata,z,T;w=!!((k==null?0:(z=k.description)==null?0:z.hideDescription)&&((T=_.n(N,Nvw))==null?void 0:T.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var P,v;return!((k==null?0:(P=k.spacer)==null?0:P.hideSpacer)&&((v=_.n(N,Nvw))==null?void 0:v.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||w)}))||[]},e={};
return _.Z("yt-content-metadata-view-model",{class:_.Ec(F.className,"yt-content-metadata-view-model-wiz",(e["yt-content-metadata-view-model-wiz--inline"]=Y,e["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.yg(q().rendererContext)},e["yt-content-metadata-view-model-wiz--medium-text"]=J,e)),
el:_.l_(_.CH(function(){return q().rendererContext}))},_.Z(_.Gn,{each:Q},function(r,N){return _.Z(_.ln,null,_.Z(tVd,{metadataRow:r,
isInline:Y,delimiter:function(){return q().delimiter},
isOverlay:u,useMediumText:J,extensions:g}),_.Z(_.R,{cond:function(){return Y()&&!r.isSpacerRow},
then:function(){return _.Z(jiC,{delimiter:function(){return q().delimiter},
max:function(){return Q().length},
index:N,isStandalone:!0})}}))}))},"Ra");
_.DN.idomCompat=!0;var udf=_.ld(function(F){var q={};return _.Z("yt-lockup-metadata-view-model",{class:_.Ec("yt-lockup-metadata-view-model-wiz",function(){a:{var t=F.lockupStyle();if(t==null?0:t.isOverlay)t="yt-lockup-metadata-view-model-wiz--overlay";else switch(t==null?void 0:t.arrangement){case 1:t="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:t="yt-lockup-metadata-view-model-wiz--vertical"}}return t},function(){a:{var t=F.lockupStyle();
if(t==null?0:t.isTiny)t="yt-lockup-metadata-view-model-wiz--tiny";else switch(t==null?void 0:t.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":t="yt-lockup-metadata-view-model-wiz--compact";break a;default:t="yt-lockup-metadata-view-model-wiz--standard"}}return t},(q["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var t;
return(t=F.lockupStyle())==null?void 0:t.isOverlay},q["yt-lockup-metadata-view-model-wiz--card"]=function(){var t;
return(t=F.lockupStyle())==null?void 0:t.isCard},q["yt-lockup-metadata-view-model-wiz--centered"]=function(){var t;
return(t=F.lockupStyle())==null?void 0:t.isCentered},q["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var t;
return(t=F.lockupStyle())==null?void 0:t.typographyBump},q["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var t;
return(t=F.lockupStyle())==null?void 0:t.useLegacyTypography},q["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var t;
return(t=F.lockupStyle())==null?void 0:t.useRichGridLegacyTypography},q))},_.Z(_.Tl,{data:function(){return F.data().image}},{avatarStackViewModel:function(t){return _.Z("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Z(_.tP,{data:t.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(t){return _.Z("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Z(_.FJ,{data:t.data}))},
decoratedAvatarViewModel:function(t){return _.Z("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Z(_.qi,{data:t.data}))}}),_.Z("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.Z("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var t;return(t=F.data().title)==null?void 0:t.content}},_.Z(_.R,{cond:function(){return F.data().title},
then:function(t){return _.Z(_.Ds,{command:F.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:F.lockupAccessibilityLabel},_.Z(_.rv,{text:t,userInput:!0}))}})),_.Z("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.Z(_.Tl,{data:function(){return F.data().metadata}},{contentMetadataViewModel:function(t){return _.Z(_.DN,{data:t.data,
layout:1,useMediumText:function(){var u,J;return((u=F.lockupStyle())==null?void 0:u.typographyBump)||((J=F.lockupStyle())==null?void 0:J.useRichGridLegacyTypography)},
extensions:function(){var u,J,g,Y;return{lockupMetadata:{byline:{hideAvatar:((u=F.lockupStyle())==null?void 0:u.arrangement)===0,addPadding:((J=F.lockupStyle())==null?void 0:J.arrangement)===1},description:{hideDescription:!((g=F.lockupStyle())==null||!g.compactMetadata)},spacer:{hideSpacer:!((Y=F.lockupStyle())==null||!Y.compactMetadata)}}}}})}})),_.Z(_.Tl,{data:function(){return F.data().attribution}},{attributionViewModel:function(t){return _.Z("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.Z(auC,{data:t.data,
useSmallLayout:!0}))}})),_.Z("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.Z(_.Tl,{data:function(){return F.data().menuButton}},{buttonViewModel:function(t){return _.Z(_.AB,{data:t.data,
buttonOverrides:function(){var u;return((u=F.lockupStyle())==null?0:u.isOverlay)?{style:"overlay"}:void 0}})}})))},"Sa");
udf.idomCompat=!0;var JHx=_.ld(function(F){var q=_.FG("notification-multi-action-renderer");_.AN(function(){requestAnimationFrame(function(){_.ct(q.value)})});
var t={},u={},J={};return _.Z("notification-multi-action-renderer",{class:_.Ec("ytNotificationMultiActionRendererHost",(t.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var g;return(g=F.useLegacyShelfStyle)==null?void 0:g.call(F)},t)),
el:q},_.Z("span",{"aria-live":"polite",class:_.Ec("ytNotificationMultiActionRendererTextContainer",(u.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var g;return(g=F.useLegacyShelfStyle)==null?void 0:g.call(F)},u))},_.Z(_.rv,{text:function(){return F.data().responseText}})),_.Z("div",{class:_.Ec("ytNotificationMultiActionRendererButtonContainer",(J.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var g;
return(g=F.useLegacyShelfStyle)==null?void 0:g.call(F)},J))},_.Z(_.Tl,{data:function(){var g;
return(g=F.data().buttons)==null?void 0:g.map(function(Y){if(Y=Y.buttonRenderer){var Q,e=Object,r=e.assign,N=(Q=Y.icon)==null?void 0:Q.iconType;Q=(Q=Y.command||Y.serviceEndpoint||Y.navigationEndpoint)?{innertubeCommand:Q}:void 0;Y={buttonViewModel:r.call(e,{},{iconName:N,onTap:Q,trackingParams:Y.trackingParams,titleFormatted:Y.text?_.C9(Y.text):void 0},pMu(Y))}}else Y=void 0;return Y}).filter(function(Y){return!!Y})}},{buttonViewModel:function(g,Y){return _.Z("div",null,_.Z(_.AB,{data:g.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var Q;return((Q=F.useModernStyles)==null?0:Q.call(F))?{type:Y()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ta");var sBJ=_.ld(function(F){var q=_.FG("notification-text-renderer");_.AN(function(){requestAnimationFrame(function(){_.ct(q.value)})});
return _.Z("notification-text-renderer",{el:q,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.Z(_.rv,{text:function(){return F.data().successResponseText}}))},"Ua");_.WE=_.ld(function(F){var q=_.nH(Fzf,function(){var u;return QiP((u=F.contentId)==null?void 0:u.call(F))}),t=function(){var u;
return _.n((u=q())==null?void 0:u.command,_.HX)};
return _.Z(_.R,{cond:function(){var u;if(!(u=t())){var J;u=_.n((J=q())==null?void 0:J.command,bRv)}return u},
then:function(){return _.Z(_.R,{cond:t,then:function(){var u={};return _.Z("div",{class:_.Ec("ytDismissibleItemReplacedContent",function(){var J;return ew3((J=F.aspectRatio)==null?void 0:J.call(F))})},_.Z("div",{class:_.Ec((u.ytDismissibleItemAspectRatioContainer=function(){var J;
return((J=F.aspectRatio)==null?void 0:J.call(F))!==void 0},u))},_.Z(_.Tl,{data:function(){var J;
return(J=t())==null?void 0:J.item}},{notificationMultiActionRenderer:function(J){return _.Z(JHx,{data:J.data,
useModernStyles:F.useModernStyle,useLegacyShelfStyle:F.useLegacyShelfStyle})},
notificationTextRenderer:sBJ})))}})},
else:F.children})},"Va");_.ggw=_.ld(function(F){var q=F.data;var t=F.customCommandResolver;F=_.l_(_.lR({visibilityCallback:function(g){var Y,Q=(Y=q().interaction)==null?void 0:Y.onFirstVisible;g&&Q&&_.L9(Q)},
showOption:_.oM}));var u=function(){var g;return((g=q().interaction)==null?0:g.onTap)?function(Y){var Q;HUo(Y,(Q=q().interaction)==null?void 0:Q.onTap,t)}:void 0},J=function(){var g,Y=q(),Q=u(),e=(g=_.n(q().rendererContext,_.vX))==null?void 0:g.label;
a:switch(Y.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":g=1;break a;default:g=0}return{size:rsM(Y.size),type:g,onTap:Q,accessibilityText:e}};
return _.Z("ad-avatar-view-model",{class:function(){var g;return((g=q().interaction)==null?0:g.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:F},_.Z(_.R,{cond:function(){return q().image},
then:function(g){return _.Z(VlC,{data:J,image:g})}}))},"Wa");_.Oi=_.ld(function(F){var q=_.sk(F,{hasDot:!1});F=Object.assign({},q);var t=q.data,u=q.hasDot;q=q.customCommandResolver;var J=(delete F.data,delete F.hasDot,delete F.customCommandResolver,F);F=function(){return t().style};
F!==void 0&&F!==null||_.hN(Error("Fh"));F=_.Sa(function(){return t().interaction},q);
return _.Z("ad-badge-view-model",{class:_.Ec(function(){var g;return((g=t().interaction)==null?0:g.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var g=J.adRenderingContextType();
t();return g==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.l_(F)},_.Z(_.gu,{data:function(){var g;t();return{type:2,text:(g=t().label)==null?void 0:g.content,adsIncludeDot:u(),isOverlay:t().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xa");var lZE;_.PE=_.ld(function(F){var q=F.data;var t=F.customCommandResolver;var u=F.adRenderingContextType;return _.Z("ad-details-line-view-model",{class:function(){var J;return((J=q().interaction)==null?0:J.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.l_(_.lR({visibilityCallback:function(J){var g,Y=(g=q().interaction)==null?void 0:g.onFirstVisible;J&&Y&&_.L9(Y)},
showOption:_.oM}),_.Sa(function(){return q().interaction},t))},_.Z(_.R,{cond:function(){return q().style},
then:function(J){return _.Z(_.Gn,{each:function(){var g;return((g=q())==null?void 0:g.attributes)||[]},
keyBy:"INDEX"},function(g){return _.Z(lZE,{attribute:g,style:J,adRenderingContextType:function(){return u()}})})}}))},"Ya");
lZE=_.ld(function(F){var q=F.attribute;var t=F.style;var u=F.adRenderingContextType;return _.Z(_.R,{cond:function(){return q().text},
then:function(J){return _.Z(_.rv,{text:J,className:function(){var g=u();t();return g==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Za");var X$O=_.ld(function(F){var q=F.data;var t=F.typographyBump;var u=function(){return q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
F={};return _.Z(_.ln,null,_.Z("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.Z(_.rv,{text:function(){return q().headline},
className:_.Ec("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(F.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return u==null?void 0:u()},F.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(t==null?void 0:t())&&!(u==null?0:u())},F)),
linkInheritColor:!0}),_.Z(_.R,{cond:function(){return q().description},
then:function(J){var g={};return _.Z(_.rv,{text:J,className:_.Ec("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(g.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return u==null?void 0:u()},g.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(t==null?void 0:t())&&!(u==null?0:u())},g)),
linkInheritColor:!0})}}),_.Z(_.R,{cond:function(){return q().secondaryDescription},
then:function(J){var g={};return _.Z(_.rv,{text:J,className:_.Ec("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(g.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return t==null?void 0:t()},g)),
linkInheritColor:!0})}}),_.Z("div",{class:function(){return u()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.Z(_.R,{cond:function(){return q().adAvatar},
then:function(){return _.Z("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.Z(_.Tl,{data:function(){return q().adAvatar}},{adAvatarViewModel:_.ggw}))}}),_.Z(_.Tl,{data:function(){return q().adBadge}},{adBadgeViewModel:function(J){return _.Z(_.Oi,{data:J.data,
hasDot:function(){return!!q().adDetailsLine},
adRenderingContextType:function(){return q().adRenderingContextType}})}}),_.Z(_.Tl,{data:function(){return q().adDetailsLine}},{adDetailsLineViewModel:function(J){return _.Z(_.PE,{data:J.data,
adRenderingContextType:function(){return q().adRenderingContextType}})}}))),_.Z("div",{class:function(){return u()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.Z(_.Tl,{data:function(){return q().menu}},{buttonViewModel:function(J){return _.Z(_.AB,{data:J.data,
buttonOverrides:function(){a:switch(q().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var g="S";break a;default:g="M"}return{size:g}}})}})))},"$a"),Y_x=_.ld(function(F){var q=F.data;
var t=F.noBottomMargin;var u=F.useVideoLockupTopPadding;var J=F.typographyBump;F={};F=_.Ec("ytwFeedAdMetadataViewModelHostMetadata",(F.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return t==null?void 0:t()},F.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return u==null?void 0:u()},F));
var g=function(){return q().adBadge};
g!==void 0&&g!==null||_.hN(Error("Gh"));g={};var Y={};return _.Z(_.ln,null,_.Z(_.R,{cond:function(){return q().adAvatar},
then:function(){return _.Z("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.Z(_.Tl,{data:function(){return q().adAvatar}},{adAvatarViewModel:function(Q){return _.Z(_.ggw,{data:Q.data})}}))}}),_.Z("div",{class:F},_.Z("div",{class:_.Ec("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(g.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return J==null?void 0:J()},g.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(J==
null?void 0:J())&&_.E("web_enable_typography_bump_v2")},g))},_.Z(_.rv,{text:function(){return q().headline},
linkInheritColor:!0})),_.Z(_.R,{cond:function(){return q().description},
then:function(Q){return _.Z(_.rv,{text:Q,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.Z("div",{class:function(){return q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.E("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.Z(_.Tl,{data:function(){return q().adBadge}},
{adBadgeViewModel:function(Q){return _.Z(_.Oi,{data:Q.data,
hasDot:function(){return!!q().adDetailsLine},
adRenderingContextType:function(){return q().adRenderingContextType}})}}),_.Z(_.Tl,{data:function(){return q().adDetailsLine}},{adDetailsLineViewModel:function(Q){return _.Z(_.PE,{data:Q.data,
adRenderingContextType:function(){return q().adRenderingContextType}})}})),_.Z(_.R,{cond:function(){return q().secondaryDescription},
then:function(Q){return _.Z(_.rv,{text:Q,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.Z("div",{class:_.Ec("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(Y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return u==null?void 0:u()},Y))},_.Z(_.Tl,{data:function(){return q().menu}},{buttonViewModel:_.AB})))},"ab"),p$C=_.ld(function(F){var q=F.data;
var t=F.noBottomMargin;var u=F.listenToTapEvent;var J=F.setTouchEndHandler;var g=F.useVideoLockupTopPadding;var Y=F.typographyBump;F=_.lR({visibilityCallback:function(w){var k,z=(k=q().interaction)==null?void 0:k.onFirstVisible;w&&z&&_.L9(z)},
showOption:_.oM});var Q=_.Sa(function(){return q().interaction},void 0,function(){return u==null?void 0:u()}),e=_.X(_.N3(!1,void 0,"a2FSrb")),r=e.next().value,N=e.next().value;
e=_.zq(function(w){(J==null?0:J())&&!r()&&(w.currentTarget.click(),N(!0),setTimeout(function(){N(!1)},100));
return!1});
return _.Z("feed-ad-metadata-view-model",{class:function(){var w;return((w=q().interaction)==null?0:w.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.l_(F,Q),"on:touchend":e},_.Z(_.OK,null,_.Z(_.DA,{when:function(){return q().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.Z(X$O,{data:q,
typographyBump:Y})}),_.Z(_.DA,{when:function(){return q().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.Z(Y_x,{data:q,
noBottomMargin:t,useVideoLockupTopPadding:g,typographyBump:Y})})))},"bb");var QBx,eGJ;QBx=_.BD.inlinePreviewEnabledSelector;_.x5=_.ld(function(F){return _.Z("yt-lockup-view-model",{class:_.Ec(F.className)},_.Z(_.WE,{contentId:function(){return F.data().contentId},
useModernStyle:!0,aspectRatio:function(){var q,t;return((q=F.containerType)==null?void 0:q.call(F))!==3?jrP(F.data().contentType,(t=F.force16By9ThumbnailAspectRatio)==null?void 0:t.call(F)):void 0}},function(){return _.Z(eGJ,Object.assign({},F))}))},"cb");
eGJ=_.ld(function(F){F=_.sk(F,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var q=F.data,t=F.containerLayoutConfig,u=F.containerType,J=F.sizing,g=F.protectBackground,Y=F.typographyBump,Q=F.force16By9ThumbnailAspectRatio,e=F.thumbnailFixedWidth,r=F.thumbnailTargetWidth,N=F.lockupExperiments,w=F.elementsPerRow;
F=_.l_(_.CH(function(){var o_;return(o_=q())==null?void 0:o_.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var k=_.dC(QBx),z=_.sV().resolve(_.JU(Wsr)),T=z?{}:void 0,P=function(){var o_,df,m$;return(m$=(df=_.n((o_=q())==null?void 0:o_.rendererContext,_.vX))==null?void 0:df.label)!=null?m$:void 0},v=function(){var o_=t==null?void 0:t(),df;
if(o_==null?0:o_.containerType){var m$=(df=q())==null?void 0:df.contentType;df=N();var gx=Y(),Hf=r(),Zw=g();o_=Object.assign({},cuu(L9u(o_),K9f(o_.responsiveSize),gx,m$,o_.force16By9ThumbnailAspectRatio,Hf,Zw,df),{thumbnailFixedWidth:o_.contentPreviewWidth})}else o_=cuu(u(),J(),Y(),(m$=q())==null?void 0:m$.contentType,Q(),r(),g(),N());return o_};
z&&T&&z({enabled:function(){return k()},
itemPlaybackModel:function(){return q().itemPlayback},
thumbnailElRef:function(){return T.thumbnailElRef},
containerElRef:F,options:function(){var o_,df=(o_=_.n(q().metadata,_.wPw))==null?void 0:o_.endorsement;o_=T.thumbnailOverlays||[];df&&o_.push(df);var m$,gx;return{thumbnail:T.thumbnail,thumbnailOverlays:o_,accessibilityText:P(),thumbnailSize:T.thumbnailSize,enableRounding:v().isCollection,containPlayerWithinThumbnail:v().isCollection,trackingParams:(m$=_.n(q().rendererContext,_.W9))==null?void 0:(gx=m$.loggingDirectives)==null?void 0:gx.trackingParams}}});
var H=0;z=_.X(_.N3(!1,void 0,"GH4i8d"));var d=z.next().value,a=z.next().value;z=_.X(_.N3(!1,void 0,"hS52Ob"));var S=z.next().value,K=z.next().value;z=_.zq(function(){var o_=k()&&q().itemPlayback;S()?(_.mI.cancelJob(H),H=_.mI.addJob(function(){a(!o_)},8,32)):a(!o_);
return!0});
var h=_.zq(function(){H&&(_.mI.cancelJob(H),H=0);a(!1)});
_.vj(function(){H&&(_.mI.cancelJob(H),H=0)});
var c=RwA(function(){K(!0)}),rf=c.touchFeedbackEvents,Zv=c.touchFeedbackOnPointerUp,kP=c.touchFeedbackOnPointerDown;
c=c.touchFeedbackOnPointerLeave;var n3={};return _.Z("div",{el:F,class:_.Ec("yt-lockup-view-model-wiz",function(){a:{var o_=v();if(o_.isOverlay)o_="yt-lockup-view-model-wiz--overlay";else switch(o_.arrangement){case 1:o_="yt-lockup-view-model-wiz--horizontal";break a;default:o_="yt-lockup-view-model-wiz--vertical"}}return o_},function(){a:{var o_=v();
if(o_.isOverlay)o_="yt-lockup-view-model-wiz--overlay";else{switch(o_.collectionStackNumber){case 1:o_="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:o_="yt-lockup-view-model-wiz--collection-stack-2";break a}o_=void 0}}return o_},function(){var o_;
return _.YJt((o_=q())==null?void 0:o_.contentId)},(n3["yt-lockup-view-model-wiz--card"]=function(){return v().isCard},n3["yt-lockup-view-model-wiz--compact"]=function(){return v().isTiny||v().sizing!=="STANDARD"},n3["yt-lockup-view-model-wiz--protect-background"]=g,n3["yt-lockup-view-model-wiz--add-margins"]=function(){return v().addMarginForFullbleed},n3["yt-lockup-view-model-wiz--centered"]=function(){return v().isCentered},n3["yt-lockup-view-model-wiz--fullbleed"]=function(){return v().fullbleed},
n3["yt-lockup-view-model-wiz--single-column-grid"]=function(){return w()===1&&u()===2},n3["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var o_;
return(o_=N())==null?void 0:o_.useRichGridLegacyMargin},n3)),
"on:mousedown":kP,"on:mouseleave":h,"on:mouseup":Zv,"on:mouseover":z,"on:touchstart":kP,"on:touchend":Zv,"on:pointerleave":c},_.Z(_.Ds,{command:function(){var o_;return _.b6((o_=q())==null?void 0:o_.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return e()&&v().arrangement===1?"width: "+e():""}},_.Z(_.Tl,{data:function(){var o_;
return(o_=q())==null?void 0:o_.contentImage}},{thumbnailViewModel:function(o_){return _.Z(_.zj,{data:o_.data,
aspectRatio:function(){return v().aspectRatio},
disableRounding:function(){return v().disableRounding},
width:r,hovered:d,isClip:function(){var df;return((df=q())==null?void 0:df.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:x8C(T),lockupExperiments:function(){return N()}})},
collectionThumbnailViewModel:function(o_){return _.Z(VBz,{data:o_.data,aspectRatio:function(){return v().aspectRatio},
disableRounding:function(){return v().disableRounding},
width:r,doubleStack:function(){return v().collectionStackNumber===2},
hovered:d,playbackRef:x8C(T)})},
decoratedAvatarViewModel:_.qi})),_.Z("div",{class:"yt-lockup-view-model-wiz__metadata"},_.Z(_.Tl,{data:function(){var o_;return(o_=q())==null?void 0:o_.metadata}},{lockupMetadataViewModel:function(o_){return _.Z(udf,{data:o_.data,
lockupStyle:v,lockupCommand:function(){var df;return _.b6((df=q())==null?void 0:df.rendererContext)},
lockupAccessibilityLabel:function(){return P()}})},
feedAdMetadataViewModel:function(o_){return _.Z(p$C,{data:o_.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:Y})}}),_.Z(_.Tl,{data:function(){var o_;
return(o_=q())==null?void 0:o_.attachmentSlot}},{lockupAttachmentsViewModel:function(o_){return _.Z(B4C,{data:o_.data,
lockupStyle:v})}})),_.Z(_.WP,{model:function(){a:{switch(v().collectionStackNumber){case 1:var o_=8;
break a;case 2:o_=12;break a}o_=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:o_}},
pointerDownEvent:rf.pointerDownEvent,pointerUpEvent:rf.pointerUpEvent,pointerLeaveEvent:rf.pointerLeaveEvent}))},"db");
_.x5.idomCompat=!0;_.ei(_.x5,"yt-lockup-view-model",{props:{data:_.NH,containerLayoutConfig:_.NH,containerType:_.NH,sizing:_.NH,protectBackground:_.NH,typographyBump:_.NH,thumbnailFixedWidth:_.NH,thumbnailTargetWidth:_.NH,force16By9ThumbnailAspectRatio:_.NH,className:_.NH,lockupExperiments:_.NH,elementsPerRow:_.NH}});var k8A,Zk1=_.ld(function(F){var q=_.sk(F,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),t=q.text,u=q.alwaysShowTruncationText;F=q.truncationText;var J=q.onTextClick,g=q.maxLines,Y=q.disableTextMask,Q=q.textStyle,e=q.accessibilityLabel,r=q.textSize,N=q.alwaysTruncateAtMaxLines,w=q.expandOnClick;q=_.X(_.N3(!1,void 0,"EzA1q"));var k=q.next().value,z=q.next().value;q=_.zq(function(){w()&&z(!k());J==null||J()});
var T=function(){a:switch(r()){case "medium":var h=2;break a;case "large":h=2.2;break a;default:h=1.8}return h},P=oUC(t,function(){return k()?Infinity:g()},T,Y,N,k),v=P.isTruncated;
t=P.displayText;N=P.contentRef;var H=P.hiddenRef,d=P.placeholderTruncationTextRef,a=P.hiddenTruncationTextRef;P=P.truncationTextRef;var S={},K={};return _.Z("truncated-text",{class:_.Ec((S["truncated-text-wiz"]=!0,S["truncated-text-wiz--overlay"]=function(){return Q()==="overlay"},S["truncated-text-wiz--medium-text"]=function(){return r()==="medium"},S["truncated-text-wiz--large-text"]=function(){return r()==="large"},S["truncated-text-wiz--primary-text"]=function(){return Q()==="primary-text"},S)),
"on:click":q,style:function(){return"line-height: "+T()+"rem;"}},_.Z("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:N,style:function(){return k()?"":"max-height: "+g()*T()+"rem;"}},_.Z(_.rv,{text:t}),_.Z("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:d,style:function(){return"line-height: "+T()+"rem;"}},_.Z(_.rv,{text:F}))),_.Z("truncated-text-content",{class:_.Ec("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:H,style:function(){return k()?"":"max-height: "+g()*T()+"rem;"},
"aria-hidden":"true"},_.Z(_.rv,{text:t}),_.Z("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:a,style:function(){return"line-height: "+T()+"rem;"}},_.Z(_.rv,{text:F}))),_.Z("button",{"aria-label":e,
class:_.Ec((K["truncated-text-wiz__absolute-button"]=function(){return!Y()},K["truncated-text-wiz__bottom-button"]=function(){return Y()},K["truncated-text-wiz--hidden"]=function(){return!(!k()&&(u!=null&&u()||v()))},K)),
el:P,style:function(){return"line-height: "+T()+"rem;"}},_.Z(_.rv,{text:F})))},"eb");
Zk1.idomCompat={callbacks:{onTextClick:!0}};var NFC=_.ld(function(F){var q=F.data;F=F.className;var t=_.zy(function(){return MBM(q())},void 0,"APjhDb");
return _.Z("yt-video-attribute-view-model",{class:F},_.Z("div",{class:function(){var u=q();a:switch(u.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var J="yt-video-attribute-view-model--vertical";break a;default:J="yt-video-attribute-view-model--horizontal"}a:switch(u.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var g="yt-video-attribute-view-model--image-small";break a;default:g="yt-video-attribute-view-model--image-large"}a:switch(u.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(u.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var Q="yt-video-attribute-view-model--metadata-header";break a;default:Q=""}a:switch(u.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var e="yt-video-attribute-view-model--container-card";break a;default:e=""}return["yt-video-attribute-view-model",J,g,
Y,Q,e,MBM(u)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Mo({"background-color":function(){var u=q();if(u.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var J="";else{J=u.lightColorPalette;u=u.darkColorPalette;var g,Y=((g=_.sV().resolve(_.JU(_.qo)))==null?0:g())&&u?u:J;J=(J=Y==null?void 0:Y.section2Color)?_.KG(J):""}return J}})},_.Z(_.R,{cond:function(){return t()||!_.E("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.Z(_.Ds,{className:"yt-video-attribute-view-model__content-container",command:t,role:"group",ariaLabel:function(){return q().title}},_.Z(_.R,{cond:function(){return q().heroText||q().image},
then:function(){return _.Z(RGC,{data:q})}}),_.Z(rHE,{data:q,
sizeSmall:function(){return q().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.Z("div",{class:"yt-video-attribute-view-model__content-container"},_.Z(_.R,{cond:function(){return q().heroText||q().image},
then:function(){return _.Z(RGC,{data:q})}}),_.Z(rHE,{data:q,
sizeSmall:function(){return q().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"fb");
NFC.idomCompat=!0;var RGC=_.ld(function(F){var q=F.data;var t,u=(t=_.sV().resolve(_.JU(_.qo)))==null?void 0:t(),J=function(){return u&&q().darkThemeImage?q().darkThemeImage:q().image},g=_.zy(function(){return T4P(q())},void 0,"w5yahc");
return _.Z("div",{class:"yt-video-attribute-view-model__hero-section"},_.Z(_.OK,null,_.Z(_.DA,{when:J},function(){return _.Z(_.sc,{data:function(){return J()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.Z(_.DA,{when:function(){return q().heroText}},function(){return _.Z("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.Z("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return q().heroText}))})),_.Z(_.R,{cond:function(){return q().overflowMenuOnTap},
then:function(){return _.Z("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.Z(_.x9,{data:g,iconName:"MORE_VERT"}))}}))},"gb");
RGC.idomCompat=!0;var rHE=_.ld(function(F){var q=F.data;F=F.sizeSmall;var t=function(){return q().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},u=_.zy(function(){return B9(_.K9({innertubeCommand:MBM(q())}))?"link":"group"},void 0,"SgcHod"),J={};
return _.Z("div",{class:_.Ec("yt-video-attribute-view-model__metadata",(J["yt-video-attribute-view-model--small-font"]=F,J)),role:u},_.Z("h1",{class:"yt-video-attribute-view-model__title"},function(){return q().title}),_.Z(_.R,{cond:function(){return q().subtitle},
then:function(){return _.Z("h4",{class:"yt-video-attribute-view-model__subtitle"},_.Z(_.R,{cond:t,then:function(){return _.Z(Zk1,{text:function(){return nUM(q().subtitle)},
truncationText:function(){return nUM(q().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.Z("span",null,function(){return q().subtitle})}}))}}),_.Z(_.R,{cond:function(){return q().secondarySubtitle},
then:function(g){return _.Z("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.Z(_.rv,{text:function(){var Y=g();if(Y!=null&&Y.attachmentRuns){for(var Q=[],e=_.X(Y.attachmentRuns),r=e.next();!r.done;r=e.next())r=r.value,r.element&&Q.push(Object.assign({},r,{element:Object.assign({},r.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));Y=Object.assign({},Y,{attachmentRuns:Q})}return Y}}))}}),_.Z(_.Tl,
{data:function(){return q().buttonViewModel}},{buttonViewModel:function(g){return _.Z(_.AB,{data:g.data,
className:"yt-video-attribute-view-model__button"})}}))},"hb");
rHE.idomCompat=!0;_.ei(NFC,"yt-video-attribute-view-model",{props:{data:_.NH,className:_.NH}});var AP=function(){var F=_.x.apply(this,arguments)||this;F.useHighlightStyling=_.E("web_enable_deeper_metadata_highlight_styling");F.isSearch=!1;F.JSC$15138_lastScrollContainerWidth=NaN;F.pageLoadingFromNavigation=!1;F.currentIndex=0;F.supportComponentResize=!1;return F};
_.M(AP,_.x);_.l=AP.prototype;
_.l.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}}}}}};
_.l.attached=function(){document.addEventListener("yt-page-type-changed",_.kM(this,this.onPageChange))};
_.l.detached=function(){document.removeEventListener("yt-page-type-changed",_.kM(this,this.onPageChange))};
_.l.getItemsPath=function(){return"data.cards"};
_.l.onIronResize=function(){this.updateListStyles()};
_.l.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var F;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(F=this.data)==null?void 0:F.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.E("problem_walkthrough_sd")&&!!this.centerItems};
_.l.computeCardListStyle=function(F){return F||null};
_.l.computeEmpty=function(F){return!this.get("cards.length",F)};
_.l.computeThumbnailStyle=function(F){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",F)||null};
_.l.computeHasSubtitle=function(F){return!!this.get("header.richListHeaderRenderer.subtitle",F)};
_.l.computeInitialCountNumber=function(F){return this.hasSquareMiniApp&&F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.l.computeUseFloorScrolling=function(F){return F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.l.computeHasGameCard=function(F){return(F=this.get("cards",F))?F.some(function(q){return q.gameCardRenderer}):!1};
_.l.computeCenterHeaderTitle=function(F){return!(F==null||!F.centerHeaderTitle)};
_.l.computeHasPortraitMiniApp=function(F){return(F=F==null?void 0:F.cards)?F.some(function(q){return q.miniGameCardViewModel&&q.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.l.computeHasSquareMiniApp=function(F){return(F=F==null?void 0:F.cards)?F.some(function(q){return q.miniGameCardViewModel&&q.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.l.computeHasSkinnyWidthPortraitMiniApp=function(F){return(F=F==null?void 0:F.cards)?F.some(function(q){return q.miniGameCardViewModel&&q.miniGameCardViewModel.width===135}):!1};
_.l.computeCenterItems=function(F){return!!F};
_.l.computeHasInfoPanel=function(F){var q;return F==null?void 0:(q=F.cards)==null?void 0:q.some(function(t){return t.infoPanelContentRenderer})};
_.l.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.l.getItemByIndex=function(F){var q=this.items.children;return q&&q.length>F?q[F]:void 0};
_.l.onPageChange=function(){var F=this;this.pageLoadingFromNavigation=!0;_.mI.addJob(function(){F.pageLoadingFromNavigation=!1;_.Zl(F.hostElement,"yt-terminate-video-preview-action")},8)};
_.l.updateListStyles=function(){if(_.E("problem_walkthrough_sd")&&this.JSC$15138_scrollContainer!==void 0){var F=this.JSC$15138_scrollContainer.clientWidth;F!==this.JSC$15138_lastScrollContainerWidth&&(this.JSC$15138_lastScrollContainerWidth=F,_.ws(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(F*.8,415)+"px"}),_.Q0(this.hostElement,"iron-resize"))}};
_.JJ.Object.defineProperties(AP.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.E("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return!!((F=this.data)==null?0:(q=F.cards)==null?0:(t=q[0])==null?0:t.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return!!((F=this.data)==null?0:(q=F.cards)==null?0:(t=q[0])==null?0:t.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return _.E("enable_desktop_amsterdam_info_panels")&&!!((F=this.data)==null?0:(q=F.cards)==null?0:(t=q[0])==null?0:t.infoPanelContentRenderer)}}});
AP.prototype.dataChanged=AP.prototype.dataChanged;AP.prototype.onIronResize=AP.prototype.onIronResize;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.We.YtdHorizontalListBehavior),_.V("design:type",Object)],AP.prototype,"ytdHorizontalListBehavior",void 0);
_.C([_.D(_.lr),_.V("design:type",Object)],AP.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],AP.prototype,"data",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],AP.prototype,"useCustomColors",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],AP.prototype,"useHighlightStyling",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.V("design:type",Object)],AP.prototype,"cardListStyle",void 0);_.C([_.O({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.V("design:type",Boolean)],AP.prototype,"empty",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.V("design:type",Boolean)],AP.prototype,"hasSubtitle",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.V("design:type",Boolean)],AP.prototype,"thumbnailStyle",void 0);_.C([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.V("design:type",Boolean)],AP.prototype,"hasGameCard",void 0);_.C([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.V("design:type",Boolean)],AP.prototype,"centerHeaderTitle",void 0);
_.C([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.V("design:type",Boolean)],AP.prototype,"hasPortraitMiniApp",void 0);_.C([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.V("design:type",Boolean)],AP.prototype,"hasSquareMiniApp",void 0);_.C([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.V("design:type",Boolean)],AP.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.C([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.V("design:type",Boolean)],AP.prototype,"hasInfoPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],AP.prototype,"isSearch",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],AP.prototype,"inlineStructuredDescription",void 0);_.C([_.Ms("#scroll-container"),_.V("design:type",HTMLDivElement)],AP.prototype,"JSC$15138_scrollContainer",void 0);
_.C([_.O({computed:"computeInitialCountNumber(data.style.type)"}),_.V("design:type",Number)],AP.prototype,"initialCount",void 0);_.C([_.O({computed:"computeUseFloorScrolling(data.style.type)"}),_.V("design:type",Boolean)],AP.prototype,"useFloorScrolling",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.V("design:type",Boolean)],AP.prototype,"centerItems",void 0);_.C([_.O(),_.V("design:type",Object)],AP.prototype,"pageLoadingFromNavigation",void 0);
_.C([_.O(),_.V("design:type",Object)],AP.prototype,"currentIndex",void 0);_.C([_.O(),_.V("design:type",Number)],AP.prototype,"scrollCount",void 0);_.C([_.O(),_.V("design:type",Object)],AP.prototype,"supportComponentResize",void 0);_.C([_.Ms("#items"),_.V("design:type",HTMLDivElement)],AP.prototype,"items",void 0);_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AP.prototype,"onIronResize",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AP.prototype,"dataChanged",null);_.C([_.O({reflectToAttribute:!0}),_.W("inlineStructuredDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],AP.prototype,"hideNavigationButton",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],AP.prototype,"modernChapters",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],AP.prototype,"hasVideoAttributeViewModels",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],AP.prototype,"modernInfoPanels",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],AP);
_.b(AP,"ytd-horizontal-card-list-renderer",function(){if(YJ1!==void 0)return YJ1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return YJ1=F},{mode:_.Nc("kevlar_poly_si_batch_j072")?1:2});var w$1=_.ld(function(F){var q=F.data;var t={};return _.Z("video-summary-content-view-model",{class:_.Ec("videoSummaryContentViewModelHost",F.className,(t.videoSummaryContentViewModelHostIsSearch=F.isSearch,t))},_.Z(_.Gn,{each:function(){var u=[],J=q().paragraphs;if(J==null||!J.length)return[];for(var g=0;g<J.length;g++){var Y=_.n(J[g],ExE),Q=void 0;g>0&&(Q=_.n(J[g-1],ExE));Q&&!!Q.marker===!!Y.marker?u[u.length-1].paragraphs.push(Y):u.push({isList:!!Y.marker,paragraphs:[Y]})}return u},
keyBy:"INDEX"},function(u){return _.Z(_.R,{cond:function(){return u().isList},
then:function(){return _.Z("ul",{class:"videoSummaryContentViewModelList"},_.Z(_.Gn,{each:function(){return u().paragraphs},
keyBy:"INDEX"},function(J){return _.Z("li",{class:"videoSummaryContentViewModelListItem"},_.Z(_.rv,{text:function(){return J().text}}))}))},
else:function(){return _.Z(_.Gn,{each:function(){return u().paragraphs},
keyBy:"INDEX"},function(J){return _.Z("p",{class:"videoSummaryContentViewModelParagraph"},_.Z(_.rv,{text:function(){return J().text}}))})}})}),_.Z(_.R,{cond:function(){return!!_.n(q().likeButtonViewModel,_.at)&&!!_.n(q().dislikeButtonViewModel,_.fu)},
then:function(){return _.Z("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.Z("div",{class:"videoSummaryContentViewModelLikeButton"},_.Z(_.Jp,{data:function(){return _.n(q().likeButtonViewModel,_.at)},
disableIconAnimation:!0})),_.Z(_.uj,{data:function(){return _.n(q().dislikeButtonViewModel,_.fu)}}))}}))},"ib");
w$1.idomCompat=!0;_.ei(w$1,"video-summary-content-view-model",{props:{data:_.NH,isSearch:_.NH,className:_.NH}});var vE=function(){var F=_.x.apply(this,arguments)||this;var q,t;F.isExpanded=(t=(q=F.data)==null?void 0:q.isExpanded)!=null?t:!1;F.disableExpand=!1;F.showProminentLabel=!1;F.showRightSideLabel=!0;F.toggleExpandableContent=function(u){F.disableExpand||(u.stopPropagation(),_.u6(_.tY(u),F.hostElement,["info","expanded-subtitle"])||(F.isExpanded=!F.isExpanded,F.ytRendererBehavior.logExplicitClick(F.data),F.JSC$15149_cardList&&!_.E("expandable_metadata_a11y_fix_ks")&&_.tJ(F,function(){_.j1(F.hostElement)})))};
F.useSquareThumbnail=!1;F.contentHiddenWithDisplayNone=_.E("web_expandable_metadata_content_hidden_with_display_none");F.startX=0;return F};
_.M(vE,_.x);_.l=vE.prototype;_.l.computeUseSquareThumbnail=function(){var F;return(F=this.data)==null?void 0:F.useSquareThumbnail};
_.l.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"}}}}};
_.l.dataChanged=function(){if(this.data){var F,q;this.isExpanded=(q=(F=this.data)==null?void 0:F.isExpanded)!=null?q:!1;var t,u,J,g;if(F=this.isDarkTheme()?(t=this.data)==null?void 0:(u=t.colorData)==null?void 0:u.darkColorPalette:(J=this.data)==null?void 0:(g=J.colorData)==null?void 0:g.lightColorPalette){var Y,Q;if((Y=this.data)==null?0:(Q=Y.colorData)==null?0:Q.vibrantColorPalette)F.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.II(this.hostElement,F)}}};
_.l.isExpandedChanged=function(){this.isExpanded&&this.JSC$15149_cardList&&_.Q0(this.JSC$15149_cardList,"iron-resize")};
_.l.computeIsExpanded=function(F){return!!F.isExpanded};
_.l.computeShowProminentLabel=function(F,q){var t;return!!(F==null?0:(t=F.header)==null?0:t.showLeadingCollapsedLabel)&&!q};
_.l.computeShowRightSideLabel=function(F,q){var t;return!(F==null?0:(t=F.header)==null?0:t.showLeadingCollapsedLabel)&&!q};
_.l.captureContentClick=function(F){if(!this.disableExpand)if(_.E("expandable_metadata_fix_killswitch")){var q=F.target;_.r9r(q,"ytd-macro-markers-list-item-renderer")||F.stopPropagation();(q==null?void 0:q.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.u6(_.tY(F),this.hostElement,["items"])||_.tC(_.tY(F),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.l.timestampClick=function(F){F.stopPropagation();var q,t;(F=(q=this.data)==null?void 0:(t=q.header)==null?void 0:t.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(F)};
_.l.onDown=function(F){F.stopPropagation();this.startX=F.detail?F.detail.x:0};
_.l.onUp=function(F){this.skipKeyInteraction(F)&&F.stopPropagation()};
_.l.skipKeyInteraction=function(F){var q=F.target;if((q==null?void 0:q.id)==="scroll-container"||(q==null?void 0:q.id)==="items"||F.detail&&F.detail.x!==this.startX)return!0;F=_.tY(F);F=_.X(F);for(q=F.next();!q.done;q=F.next()){q=q.value;if(q===this.hostElement)break;if(q.hasAttribute&&q.hasAttribute("skip-key-interaction"))return!0}return!1};
_.l.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.JJ.Object.defineProperties(vE.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var F;return!!_.n((F=this.data)==null?void 0:F.expandedContent,keJ)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var F;return!!_.n((F=this.data)==null?void 0:F.expandedContent,_.iAv)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var F,q;return!((F=this.data)==null||!F.useCustomColors)&&!((q=this.data)==null||!q.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var F,q;return!!((F=this.data)==null?0:(q=F.header)==null?0:q.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var F,q;return!!((F=this.data)==null?0:(q=F.header)==null?0:q.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var F,q;return!!((F=this.data)==null?0:(q=F.header)==null?0:q.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.E("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
vE.prototype.onUp=vE.prototype.onUp;vE.prototype.onDown=vE.prototype.onDown;vE.prototype.isExpandedChanged=vE.prototype.isExpandedChanged;vE.prototype.dataChanged=vE.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],vE.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],vE.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],vE.prototype,"isExpanded",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],vE.prototype,"disableExpand",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],vE.prototype,"isSearch",void 0);
_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],vE.prototype,"isWatch",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.V("design:type",Object)],vE.prototype,"showProminentLabel",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.V("design:type",Object)],vE.prototype,"showRightSideLabel",void 0);
_.C([_.O({value:!1,reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],vE.prototype,"hasVideoSummary",null);_.C([_.O({value:!1,reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],vE.prototype,"hasLockupViewModel",null);_.C([_.O({reflectToAttribute:!0}),_.W("data","isWatch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],vE.prototype,"useCustomColors",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],vE.prototype,"showInfoButton",null);_.C([_.W("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],vE.prototype,"showTimestamp",null);_.C([_.W("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],vE.prototype,"showExpandedSubtitle",null);
_.C([_.W("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],vE.prototype,"showThumbnail",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],vE.prototype,"useVppShoppingDestinationStyle",null);_.C([_.O(),_.V("design:type",Object)],vE.prototype,"toggleExpandableContent",void 0);_.C([_.Ms("ytd-horizontal-card-list-renderer"),_.V("design:type",Object)],vE.prototype,"JSC$15149_cardList",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.V("design:type",Object)],vE.prototype,"useSquareThumbnail",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],vE.prototype,"contentHiddenWithDisplayNone",void 0);_.C([_.W("isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],vE.prototype,"contentHidden",null);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vE.prototype,"dataChanged",null);_.C([_.za("isExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vE.prototype,"isExpandedChanged",null);_.C([_.EB("down"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],vE.prototype,"onDown",null);
_.C([_.EB("up"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],vE.prototype,"onUp",null);_.C([_.m({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],vE);
_.b(vE,"ytd-expandable-metadata-renderer",function(){if(wCE!==void 0)return wCE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return wCE=F},{mode:1});var ikf,kdC=function(){if(ikf!==void 0)return ikf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return ikf=F};_.ei(_.tP,"yt-avatar-stack-view-model",{props:{className:_.NH,data:_.NH,overrides:_.NH,isOverlay:_.NH,useMediumText:_.NH,decorations:_.NH,hideAvatar:_.NH}});_.mo("itemSectionRenderer","videoRenderer","ytd-video-renderer");var IM=function(){var F=_.x.apply(this,arguments)||this;F.disableExpand=!1;F.shouldShowChannelInfo=!1;F.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return F};
_.M(IM,_.x);_.l=IM.prototype;_.l.computeUseSearchUi=function(){var F,q;return this.isSearch||((F=this.data)==null?void 0:(q=F.style)==null?void 0:q.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.l.computeUseThreeLineTitle=function(){var F;return((F=this.data)==null?void 0:F.maxTitleLines)===3};
_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.E("polymer_video_renderer_defer_menu")&&!lTz?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"}}}};
_.l.attached=function(){_.RE(this.hostElement,"blue-links",_.E("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.rs(_.ep(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var F=this.get("data.buttons.buttonRenderer.serviceEndpoint"),q;F&&((q=_.n(F.commandMetadata,_.Cu))==null?0:q.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(F);this.updateInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15154_inlinePreviewHoverListener=Vg({mediaRenderer:this,lockupElement:this.JSC$15154_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.l.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$15154_inlinePreviewHoverListener)==null||cZ(F)};
_.l.onTextWrapperClick=function(F){var q,t,u=this.hideTranslation?(q=this.data)==null?void 0:q.untranslatedNavigationEndpoint:(t=this.data)==null?void 0:t.navigationEndpoint;q=_.u6(_.tY(F),this.hostElement,["expandable-metadata"]);!u||q&&!_.E("expandable_metadata_fix_killswitch")||_.tC(_.tY(F),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Q0(this.hostElement,"yt-navigate",{endpoint:u})};
_.l.computeThumbnailWidth=function(F,q,t,u,J){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:u?J==="MASSIVE"?600:J==="BIG"?500:J==="MEDIUM"?450:420:t?360:q?128:F?210:246};
_.l.computeUseBiggerThumbs=function(F){return F&&_.E("enable_desktop_search_bigger_thumbs")};
_.l.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.l.computeVideoStyle=function(){if(_.E("enable_video_style")){var F,q;return(F=this.data)==null?void 0:(q=F.style)==null?void 0:q.value}};
_.l.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.l.handleHideItemSectionVideosByIdCommand=function(F){var q;F=(q=_.n(F,dK1))==null?void 0:q.videoId;this.data&&this.data.videoId===F&&(this.isHidden=!0)};
_.l.getMetadataSnippetContainerClass=function(F){return F?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.l.computeTitleText=function(F,q,t){return F?t:q};
_.l.computeDescriptionSnippet=function(F,q,t){return F?t:q};
_.l.computeSnippetText=function(F,q,t){return F?t:q};
_.l.computeNavigationEndpoint=function(F,q){return F?q==null?void 0:q.untranslatedNavigationEndpoint:q==null?void 0:q.navigationEndpoint};
_.l.hideInlineTitleIcon=function(F,q){return F||!q};
_.JJ.Object.defineProperties(IM.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var F;return(F=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?F:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return!!(this==null?0:(F=this.data)==null?0:(q=F.channelThumbnailSupportedRenderers)==null?0:(t=q.channelThumbnailWithLinkRenderer)==null?0:t.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return!!_.n((F=this.data)==null?void 0:F.avatar,kDn)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$15154_inlinePreviewHoverListener)==null?0:si(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.JJ.Object.defineProperties(IM,{template:{configurable:!0,enumerable:!0,get:function(){return kdC()}}});
IM.prototype.dataChanged=IM.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],IM.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],IM.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.D(_.r8),_.V("design:type",Object)],IM.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],IM.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],IM.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],IM.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],IM.prototype,"isBackstageVideo",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],IM.prototype,"isPostCompactVideo",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],IM.prototype,"isHistory",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],IM.prototype,"isRichGridVideoPost",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],IM.prototype,"isHidden",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],IM.prototype,"isSearch",void 0);_.C([_.O({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.V("design:type",Boolean)],IM.prototype,"useSearchUi",void 0);_.C([_.O({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.V("design:type",Boolean)],IM.prototype,"useThreeLineTitle",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.V("design:type",Boolean)],IM.prototype,"useBiggerThumbs",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.V("design:type",Object)],IM.prototype,"videoStyle",void 0);_.C([_.O({computed:"computeDisableExpand(videoStyle)"}),_.V("design:type",Object)],IM.prototype,"disableExpand",void 0);
_.C([_.O({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.V("design:type",Object)],IM.prototype,"shouldShowChannelInfo",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.pE("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],IM.prototype,"biggerThumbsStyle",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.V("design:type",String)],IM.prototype,"inlineTitleIcon",void 0);_.C([_.O({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.V("design:type",Object)],IM.prototype,"computedNavigationEndpoint",void 0);_.C([_.O({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(F,q){return _.iC(F.entities,"searchVideoResultEntity",q)}}),
_.V("design:type",Object)],IM.prototype,"searchVideoResultEntity",void 0);_.C([_.Ms("ytd-thumbnail"),_.V("design:type",HTMLElement)],IM.prototype,"thumbnail",void 0);_.C([_.Ms("#dismissible"),_.V("design:type",HTMLElement)],IM.prototype,"JSC$15154_dismissibleMedia",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IM.prototype,"dataChanged",null);
_.C([_.W("searchVideoResultEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],IM.prototype,"hideTranslation",null);_.C([_.W("searchVideoResultEntity"),_.V("design:type",Array),_.V("design:paramtypes",[])],IM.prototype,"hiddenBadgeGroups",null);_.C([_.W("data","useAvatar"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],IM.prototype,"shouldShowChannelThumbnail",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],IM.prototype,"useAvatar",null);
_.C([_.W("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],IM.prototype,"isHovered",null);_.C([_.m({is:"ytd-video-renderer",disableElementRegistration:!0})],IM);_.b(IM,"ytd-video-renderer",function(){return kdC()},{mode:_.Nc("kevlar_poly_si_batch_j047")?1:2});var HE=function(){var F=_.x.apply(this,arguments)||this;F.editDialog=null;F.roundedContainer=!0;F.isLoading=!1;F.isRichGrid=!1;F.isRichGridRepost=!1;F.reduceSidePaddings=_.E("reduce_side_paddings_in_shelf");F.JSC$15161_spinnerEl=null;return F};
_.M(HE,_.x);_.l=HE.prototype;
_.l.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"}}}};
_.l.contentTextChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){var F=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var q=0,t=this.data.actions&&this.data.actions.length;q<t;q++)this.openEditDialog(_.n(this.data.actions[q],PbC));if((q=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(q=this.get("buttonRenderer.hint.hintRenderer.hintId",q))&&q.startsWith("share-post-hint")){var u=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(u){_.n8.getInstance();var J=M4(_.FK(_.oD("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.mI.addLowPriorityJob(function(){_.rY(F.hostElement,J,u)})}}}};
_.l.updatePoll=function(F){F>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.l.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15161_spinnerEl||(this.JSC$15161_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ep(this.hostElement).appendChild(this.JSC$15161_spinnerEl));this.JSC$15161_spinnerEl&&(this.JSC$15161_spinnerEl.active=this.isLoading)};
_.l.onYtNavigate=function(F){var q=this.get("updateCommentDialogEndpoint",F.detail.endpoint);q&&(this.openEditDialog(q),F.stopPropagation())};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.onYtCommentPollRevert=function(F,q){q&&this.updatePoll(q.selectedChoiceIndex)};
_.l.onYtServiceRequestSent=function(F,q){var t;q.endpoint&&(_.n(q.endpoint,Pvd)||_.n(q.endpoint,OCd)&&((t=_.n(q.endpoint,OCd))==null||!t.clientActions))&&(this.isLoading=!0);if(q.actions)for(F=0;F<q.actions.length;F++)t=q.actions[F],_.n(t,b4)&&(t=this.get("updateBackstagePollAction.selectedChoiceIndex",t),t==void 0&&(t=-1),this.updatePoll(t))};
_.l.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.l.openEditDialog=function(F){F&&F.dialog&&(this.editDialog=F.dialog,F=this.editDialogEl.firstElementChild)&&(F.focus(),F.openDialog&&F.openDialog())};
_.l.computeIsPostHidden=function(F,q){return!!F||q};
_.l.computeSurfaceType=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.l.computeUsesCompactLockup=function(F){return F==="BACKSTAGE_SURFACE_TYPE_HOME"||F==="BACKSTAGE_SURFACE_TYPE_SEARCH"||F==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||F==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||F==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||F==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.l.computeShowWithoutToolbar=function(F){return!F.actionButtons&&!F.actionMenu};
_.l.computePostAttachment=function(F){if(F.backstageAttachment){if(_.n(F.backstageAttachment,YXd))return"poll";if(_.n(F.backstageAttachment,KlE))return"quiz";if(_.n(F.backstageAttachment,_.Jh))return"video";if(_.n(F.backstageAttachment,BRn))return"uploaded-videos";if(_.n(F.backstageAttachment,qrv))return F.contentText?"image":"image-only";if(_.n(F.backstageAttachment,VGL))return"playlist"}return"none"};
_.l.computePostTabIndex=function(F){return F?0:-1};
_.l.computeButtonTooltipPosition=function(F){return this.computeUsesCompactLockup(F)?"top":"bottom"};
_.l.computeHasText=function(F){return!(F==null||!F.contentText)};
_.l.onTap=function(F){var q,t;if(((q=this.data)==null?0:q.navigationEndpoint)&&((t=this.data)==null?void 0:t.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var u;((u=this.data)==null?0:u.navigationEndpoint)&&!_.tC(_.tY(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.JJ.Object.defineProperties(HE.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.voteCount)||_.FK("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,YXd))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,BRn))}}});
HE.prototype.onYtServiceRequestCompleted=HE.prototype.onYtServiceRequestCompleted;HE.prototype.onYtServiceRequestSent=HE.prototype.onYtServiceRequestSent;HE.prototype.onYtCommentPollRevert=HE.prototype.onYtCommentPollRevert;HE.prototype.onYtCommentboxDismiss=HE.prototype.onYtCommentboxDismiss;HE.prototype.onYtNavigate=HE.prototype.onYtNavigate;HE.prototype.isLoadingChanged=HE.prototype.isLoadingChanged;HE.prototype.dataChanged=HE.prototype.dataChanged;HE.prototype.contentTextChanged=HE.prototype.contentTextChanged;
_.C([_.D(_.lr),_.V("design:type",Object)],HE.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],HE.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],HE.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],HE.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],HE.prototype,"editDialog",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],HE.prototype,"roundedContainer",void 0);_.C([_.O(),_.V("design:type",Object)],HE.prototype,"isLoading",void 0);_.C([_.O({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.V("design:type",String)],HE.prototype,"surface",void 0);
_.C([_.O({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.V("design:type",Boolean)],HE.prototype,"usesCompactLockup",void 0);_.C([_.O({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],HE.prototype,"showWithoutToolbar",void 0);_.C([_.O({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.V("design:type",String)],HE.prototype,"attachment",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],HE.prototype,"isRichGrid",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],HE.prototype,"isRichGridRepost",void 0);_.C([_.O({reflectToAttribute:!0,value:_.E("use_better_post_dismissals")}),_.V("design:type",Boolean)],HE.prototype,"useBetterPostDismissals",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],HE.prototype,"reduceSidePaddings",void 0);
_.C([_.O({computed:"computeHasText(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],HE.prototype,"hasText",void 0);_.C([_.Ms("#expander"),_.V("design:type",Object)],HE.prototype,"expander",void 0);_.C([_.Ms("#action-buttons"),_.V("design:type",Object)],HE.prototype,"actionButtons",void 0);_.C([_.Ms("#edit-dialog"),_.V("design:type",HTMLElement)],HE.prototype,"editDialogEl",void 0);
_.C([_.za("data.contentText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HE.prototype,"contentTextChanged",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HE.prototype,"dataChanged",null);_.C([_.za("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HE.prototype,"isLoadingChanged",null);
_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],HE.prototype,"onYtNavigate",null);_.C([_.EB("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HE.prototype,"onYtCommentboxDismiss",null);_.C([_.EB("yt-comment-poll-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],HE.prototype,"onYtCommentPollRevert",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],HE.prototype,"onYtServiceRequestSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],HE.prototype,"onYtServiceRequestCompleted",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],HE.prototype,"voteCount",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],HE.prototype,"commentCount",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],HE.prototype,"hasPoll",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],HE.prototype,"hasUploadedVideo",null);_.C([_.m({is:"ytd-post-renderer",disableElementRegistration:!0})],HE);
_.b(HE,"ytd-post-renderer",function(){if(b5e!==void 0)return b5e;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return b5e=F},{mode:1});var Eg1;var zGf;var ma=function(){return _.x.apply(this,arguments)||this};
_.M(ma,_.x);ma.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.We.YtdHorizontalListBehavior),_.V("design:type",Object)],ma.prototype,"ytdHorizontalListBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],ma.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ma.prototype,"data",void 0);
_.C([_.O({value:"$.items.children"}),_.V("design:type",String)],ma.prototype,"itemsPath",void 0);_.C([_.O({value:1}),_.V("design:type",Number)],ma.prototype,"initialCount",void 0);_.C([_.O(),_.V("design:type",String)],ma.prototype,"surface",void 0);_.C([_.m({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],ma);
_.b(ma,"ytd-post-multi-image-renderer",function(){if(zGf!==void 0)return zGf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return zGf=F},{mode:_.Nc("kevlar_poly_si_batch_j079")?1:2});var ogO={"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"}}},$5=function(){var F=_.x.apply(this,arguments)||this;F.hasInlineCommentSection=!1;F.editDialog=null;F.isLoading=!1;F.shouldHideAuthor=!1;F.shouldShowVideoTime=!1;
F.isInEngagementPanel=!1;F.hideBorder=!1;F.usesFullLockup=!1;F.shouldShowMenuInCompactView=!1;F.JSC$15177_spinnerEl=null;F.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return F};
_.M($5,_.x);_.l=$5.prototype;_.l.configureRendererStamper=function(){return ogO};
_.l.computeIsPollHeaderEnabled=function(F){return(F==null?void 0:F.pollMetadataIcon)!=null};
_.l.getPublishTimeStampString=function(F,q){q=new Date((Number(q)-60*((new Date).getTimezoneOffset()-(new Date(Number(q)*1E3)).getTimezoneOffset()))*1E3);q=(new jz(10)).format(q);if(F&&F.runs&&F.runs.length)for(var t=0;t<F.runs.length;t++)F.runs[t].text&&(F.runs[t].text=F.runs[t].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",q));return F};
_.l.created=function(){this.JSC$15177_spinnerEl=null};
_.l.contentTextChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var F;if((F=this.data)==null?0:F.actions){F=_.X(this.data.actions);for(var q=F.next();!q.done;q=F.next())this.openEditDialog(_.n(q.value,PbC))}};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){_.ep(this.hostElement).querySelector("#action-buttons").reply()};
_.l.updatePoll=function(F,q){q&&this.set("data.pollMetadataVoteCountText",q);this.hasInlineCommentSection&&(F=F>=0,q=_.ep(this.hostElement).querySelector("#action-buttons"),F?q.reply():q.hideReplyDialog())};
_.l.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15177_spinnerEl||(this.JSC$15177_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ep(this.hostElement).appendChild(this.JSC$15177_spinnerEl));this.JSC$15177_spinnerEl&&(this.JSC$15177_spinnerEl.active=this.isLoading)};
_.l.onYtNavigate=function(F){var q=this.get("updateCommentDialogEndpoint",F.detail.endpoint);q&&(this.openEditDialog(q),F.stopPropagation())};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.onYtCommentPollRevert=function(F,q){q&&this.updatePoll(q.selectedChoiceIndex,q.totalVotes)};
_.l.onYtServiceRequestSent=function(F,q){F.stopPropagation();F=_.n(q.endpoint,OCd);if(_.n(q.endpoint,Pvd)||F&&!F.clientActions)this.isLoading=!0;if(q.actions)for(F=0;F<q.actions.length;F++){var t=q.actions[F],u=_.n(t,b4);u&&(t=this.get("updateBackstagePollAction.selectedChoiceIndex",t),t===void 0&&(t=-1),this.updatePoll(t,u.totalVotes))}};
_.l.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.l.openEditDialog=function(F){F&&F.dialog&&(this.editDialog=F.dialog,F=this.editDialogElement.firstElementChild)&&(F.focus(),F.openDialog&&F.openDialog())};
_.l.computeIsBodyHidden=function(F,q){return!!F||q};
_.JJ.Object.defineProperties($5.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var F,q;if((F=this.data)==null?0:(q=F.pollMetadataIcon)==null?0:q.iconType)return _.Ek(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.voteCount)||_.FK("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,YXd))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,KlE))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,BRn))}}});
$5.prototype.onYtServiceRequestCompleted=$5.prototype.onYtServiceRequestCompleted;$5.prototype.onYtServiceRequestSent=$5.prototype.onYtServiceRequestSent;$5.prototype.onYtCommentPollRevert=$5.prototype.onYtCommentPollRevert;$5.prototype.onYtCommentboxDismiss=$5.prototype.onYtCommentboxDismiss;$5.prototype.onYtNavigate=$5.prototype.onYtNavigate;$5.prototype.isLoadingChanged=$5.prototype.isLoadingChanged;$5.prototype.dataChanged=$5.prototype.dataChanged;$5.prototype.contentTextChanged=$5.prototype.contentTextChanged;
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],$5.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$5.prototype,"rendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],$5.prototype,"rendererstamperBehavior",void 0);_.C([_.Ms("#contentTextExpander"),_.V("design:type",Object)],$5.prototype,"expander",void 0);
_.C([_.Ms("#edit-dialog"),_.V("design:type",Element)],$5.prototype,"editDialogElement",void 0);_.C([_.O(),_.V("design:type",Object)],$5.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],$5.prototype,"hasInlineCommentSection",void 0);_.C([_.O(),_.V("design:type",Object)],$5.prototype,"editDialog",void 0);_.C([_.O(),_.V("design:type",Object)],$5.prototype,"isLoading",void 0);
_.C([_.O({computed:"computeIsPollHeaderEnabled(data)"}),_.V("design:type",Boolean)],$5.prototype,"isPollHeaderEnabled",void 0);_.C([_.O(),_.V("design:type",Object)],$5.prototype,"shouldHideAuthor",void 0);_.C([_.O(),_.V("design:type",Object)],$5.prototype,"shouldShowVideoTime",void 0);_.C([_.O(),_.V("design:type",Object)],$5.prototype,"isInEngagementPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],$5.prototype,"hideBorder",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],$5.prototype,"usesFullLockup",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],$5.prototype,"shouldShowMenuInCompactView",void 0);_.C([_.W("isInEngagementPanel"),_.V("design:type",Number),_.V("design:paramtypes",[])],$5.prototype,"postTextMaxLines",null);_.C([_.W("data.icon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],$5.prototype,"pollIcon",null);
_.C([_.za("data.contentText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$5.prototype,"contentTextChanged",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$5.prototype,"dataChanged",null);_.C([_.za("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$5.prototype,"isLoadingChanged",null);
_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],$5.prototype,"onYtNavigate",null);_.C([_.EB("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$5.prototype,"onYtCommentboxDismiss",null);_.C([_.EB("yt-comment-poll-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],$5.prototype,"onYtCommentPollRevert",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],$5.prototype,"onYtServiceRequestSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],$5.prototype,"onYtServiceRequestCompleted",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],$5.prototype,"voteCount",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],$5.prototype,"commentCount",null);_.C([_.W("data.backstageAttachment"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$5.prototype,"hasPoll",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$5.prototype,"hasQuiz",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$5.prototype,"hasUploadedVideo",null);
_.C([_.m({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],$5);
_.b($5,"ytd-backstage-post-renderer",function(){if(Eg1!==void 0)return Eg1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Eg1=F},{mode:1});var ngL;var bP=function(){var F=_.x.apply(this,arguments)||this;F.editDialog=null;F.showExpandButton=!1;F.isRichGrid=!1;F.usesFullLockup=!1;return F};
_.M(bP,_.x);_.l=bP.prototype;_.l.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"}}}};
_.l.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.l.computeShowExpandButton=function(F){return this.usesCompactLockup||F&&F.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.l.computeUsesCompactLockup=function(F){return!!F.condensedContent};
_.l.computeShowFullContentText=function(F){return!F};
_.l.onYtNavigate=function(F){F=this.get("updateCommentDialogEndpoint",F.detail.endpoint);this.openEditDialog(F)};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.openEditDialog=function(F){F&&F.dialog&&(this.editDialog=F.dialog,F=this.repostEditDialogEl.firstElementChild)&&(F.focus(),F.openDialog&&F.openDialog())};
_.l.onTap=function(F){if(this.data){var q=null;this.usesCompactLockup&&!_.tC(_.tY(F)||[],this.hostElement,["YT-IMG-SHADOW"])?q=this.get("navigationEndpoint",this.data):F.target===this.moreButtonEl&&(q=this.get("navigationEndpoint",F.target.data));q&&_.Q0(this.hostElement,"yt-navigate",{endpoint:q})}};
bP.prototype.onYtCommentboxDismiss=bP.prototype.onYtCommentboxDismiss;bP.prototype.onYtNavigate=bP.prototype.onYtNavigate;bP.prototype.dataChanged=bP.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],bP.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],bP.prototype,"editDialog",void 0);_.C([_.O({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],bP.prototype,"usesCompactLockup",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],bP.prototype,"showExpandButton",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],bP.prototype,"isRichGrid",void 0);
_.C([_.O({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.V("design:type",Boolean)],bP.prototype,"showFullContentText",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],bP.prototype,"usesFullLockup",void 0);_.C([_.Ms("#more"),_.V("design:type",Object)],bP.prototype,"moreButtonEl",void 0);_.C([_.Ms("#repost-content-text"),_.V("design:type",HTMLElement)],bP.prototype,"repostContentTextEl",void 0);
_.C([_.Ms("#repost-edit-dialog"),_.V("design:type",HTMLElement)],bP.prototype,"repostEditDialogEl",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bP.prototype,"dataChanged",null);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bP.prototype,"onYtNavigate",null);
_.C([_.EB("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bP.prototype,"onYtCommentboxDismiss",null);_.C([_.m({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],bP);
_.b(bP,"ytd-shared-post-renderer",function(){if(ngL!==void 0)return ngL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ngL=F},{mode:1});var MVL;var TFx;var yK=function(){return _.x.apply(this,arguments)||this};
_.M(yK,_.x);yK.prototype.attached=function(){var F=this;this.networkStatusManager||(this.networkStatusManager=new _.Lt,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){F.onlineHandler()}))};
yK.prototype.detached=function(){var F=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){F.onlineHandler()}),delete this.networkStatusManager)};
yK.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],yK.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],yK.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],yK);
_.b(yK,"ytd-reload-page-button-renderer",function(){if(TFx!==void 0)return TFx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
return TFx=F},{mode:1});var Gdf={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"},C2=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(C2,_.x);_.l=C2.prototype;_.l.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.l.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.l.computeHasBodyText=function(F){return!!F.bodyText};
_.l.computeButtons=function(F){var q=[];F.ctaButton&&q.push(F.ctaButton);F.secondaryButton&&q.push(F.secondaryButton);return q};
_.l.computeRendererStyle=function(F){return F.style?F.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():F.icon?"":"no-icon"};
_.l.getIconName=function(F,q){q=q===void 0?!1:q;if(F===void 0)return"";F=this.get("icon.iconType",F);var t;_.E("enable_hlp_client_icon_pick")?t=this.getThemedIcon(F,q):t=F;(q=Gdf[t])||(q="yt-icons");return[q,t].join(":")};
_.l.getThemedIcon=function(F,q){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(F)?q?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(F)?q?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":F};
_.l.isThumbnail=function(F){return!!F.thumbnail};
_.l.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],C2.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],C2.prototype,"data",void 0);
_.C([_.O({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],C2.prototype,"rendererStyle",void 0);_.C([_.O({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.V("design:type",String)],C2.prototype,"iconName",void 0);_.C([_.O({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],C2.prototype,"thumbnail",void 0);_.C([_.O({computed:"computeButtons(data)"}),_.V("design:type",Array)],C2.prototype,"buttons",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],C2.prototype,"isDarkTheme",void 0);_.C([_.O({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],C2.prototype,"hasBodyText",void 0);_.C([_.m({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],C2);
_.b(C2,"ytd-background-promo-renderer",function(){if(MVL!==void 0)return MVL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return MVL=F},{mode:1});var D0x;var d_=function(){var F=_.x.apply(this,arguments)||this;F.collections=_.E("web_modern_collections_v2");return F};
_.M(d_,_.x);_.JJ.Object.defineProperties(d_.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u,J,g;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(F=this.data)==null?void 0:(q=F.thumbnail)==null?void 0:q.sampledThumbnailColor,vibrantColorPalette:(t=this.data)==null?void 0:(u=t.thumbnail)==null?void 0:u.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(g=J.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],d_.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],d_.prototype,"collections",void 0);_.C([_.W("data","collections"),_.V("design:type",Object),_.V("design:paramtypes",[])],d_.prototype,"collectionStack",null);_.C([_.m({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],d_);
_.b(d_,"ytd-compact-station-renderer",function(){if(D0x!==void 0)return D0x;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return D0x=F},{mode:1});var WqJ;var VK=function(){var F=_.x.apply(this,arguments)||this;F.isRichGrid=!1;return F};
_.M(VK,_.x);VK.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]]"}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],VK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],VK.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],VK.prototype,"isRichGrid",void 0);_.C([_.m({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],VK);
_.b(VK,"ytd-grid-channel-renderer",function(){if(WqJ!==void 0)return WqJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return WqJ=F},{mode:1});var OkC;var Ui=function(){return _.x.apply(this,arguments)||this};
_.M(Ui,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ui.prototype,"data",void 0);_.C([_.m({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Ui);
_.b(Ui,"ytd-grid-movie-playlist-renderer",function(){if(OkC!==void 0)return OkC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return OkC=F},{mode:1});var Ptr;var Sf=function(){var F=_.x.apply(this,arguments)||this;F.downloadProgress=0;F.transferState="TRANSFER_STATE_UNKNOWN";F.modernButtons=_.E("web_modern_buttons");F.useModernCollectionsV2=_.E("web_modern_collections_v2");return F};
_.M(Sf,_.x);Sf.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Sf.prototype.configureRendererStamper=function(){return{"data.menu":y6}};
Sf.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Sf.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.E("woffle_playlist_renderer_killswitch")){var F,q=jgq(this.entityInfo,this.transferState,this.downloadProgress,(F=this.data)==null?void 0:F.playlistId,this.isOnline);F=q.viewPlaylistText;var t=q.badges;q=q.thumbnailOverlays;this.isDownloads=!!F||!!t;this.set("data.viewPlaylistText",F);t&&t.length>0&&this.set("data.badges",t);q&&q.length>0&&this.set("data.thumbnailOverlays",
q)}};
_.JJ.Object.defineProperties(Sf.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null?0:F.menu)}}});
Sf.prototype.transferStateChanged=Sf.prototype.transferStateChanged;Sf.prototype.dataChanged=Sf.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],Sf.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Sf.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Sf.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O({selector:_.ezM,selectorArgs:["data.playlistId"]}),_.V("design:type",Object)],Sf.prototype,"downloadProgress",void 0);_.C([_.O({selector:_.Uf,selectorArgs:["data.playlistId"]}),_.V("design:type",Object)],Sf.prototype,"transferState",void 0);_.C([_.O({selector:QgA,selectorArgs:["data.playlistId"]}),_.V("design:type",Object)],Sf.prototype,"entityInfo",void 0);_.C([_.O({selector:_.dj}),_.V("design:type",Boolean)],Sf.prototype,"isOnline",void 0);
_.C([_.O(),_.V("design:type",Object)],Sf.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Sf.prototype,"downloadRenderData",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Sf.prototype,"modernButtons",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Sf.prototype,"isDownloads",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Sf.prototype,"useModernCollectionsV2",void 0);
_.C([_.W("transferState"),_.O({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],Sf.prototype,"downloadState",null);_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Sf.prototype,"menuHidden",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sf.prototype,"dataChanged",null);
_.C([_.Wh("transferState","downloadProgress","isOnline"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sf.prototype,"transferStateChanged",null);_.C([_.m({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Sf);
_.b(Sf,"ytd-grid-playlist-renderer",function(){if(Ptr!==void 0)return Ptr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Ptr=F},{mode:1});var x0j;var hP=function(){var F=_.x.apply(this,arguments)||this;F.collections=_.E("web_modern_collections_v2");return F};
_.M(hP,_.x);hP.prototype.configureRendererStamper=function(){return{"data.menu":y6,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.JJ.Object.defineProperties(hP.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u,J,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(F=this.data)==null?void 0:(q=F.thumbnail)==null?void 0:q.sampledThumbnailColor,vibrantColorPalette:(t=this.data)==null?void 0:(u=t.thumbnail)==null?void 0:u.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(g=J.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],hP.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],hP.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],hP.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],hP.prototype,"collections",void 0);_.C([_.W("data","collections"),_.V("design:type",Object),_.V("design:paramtypes",[])],hP.prototype,"collectionStack",null);_.C([_.m({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],hP);
_.b(hP,"ytd-grid-radio-renderer",function(){if(x0j!==void 0)return x0j;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return x0j=F},{mode:1});var AHr;var K2=function(){var F=_.x.apply(this,arguments)||this;F.useModernCollectionsV2=_.E("web_modern_collections_v2");return F};
_.M(K2,_.x);K2.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
K2.prototype.computeNavigationEndpoint=function(F){return stu(F==null?void 0:F.navigationEndpoint)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],K2.prototype,"ytdLockupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],K2.prototype,"data",void 0);_.C([_.O({computed:"computeNavigationEndpoint(data)"}),_.V("design:type",Object)],K2.prototype,"computedNavigationEndpoint",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],K2.prototype,"useModernCollectionsV2",void 0);_.C([_.m({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],K2);
_.b(K2,"ytd-grid-show-renderer",function(){if(AHr!==void 0)return AHr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return AHr=F},{mode:1});var vgv;_.BE=function(F){this.playerClient=F};
_.IZ1=function(F,q,t){t=t===void 0?{}:t;return F.playerClient.setOption("ad",q,t)};
_.BE.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.BE.prototype.executeCommand=function(F,q){this.getOptions().includes("executeCommand")?_.IZ1(this,"executeCommand",{command:F,layoutId:q}):_.fH("Calling executeCommand when adModule is not loaded")};var L2=function(){return _.x.apply(this,arguments)||this};
_.M(L2,_.x);L2.prototype.getLayoutId=function(){var F=_.S6("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.layoutId:null};
L2.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var F=_.g0(),q=this.getLayoutId(),t=this.data.clickthroughEndpoint;F&&q&&_.E("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?F.getPlayerPromise().then(function(u){(new _.BE(u)).executeCommand(t,q)}):_.Q0(this.hostElement,"yt-navigate",{endpoint:t})}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],L2.prototype,"data",void 0);_.C([_.m({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],L2);
_.b(L2,"ytd-shopping-companion-item-renderer",function(){if(vgv!==void 0)return vgv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return vgv=F},{mode:1});var Hkj;var f2=function(){var F=_.x.apply(this,arguments)||this;F.isExpandableContent=!1;return F};
_.M(f2,_.x);_.JJ.Object.defineProperties(f2.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((F=this.data)==null?void 0:F.price)||((q=this.data)==null?void 0:(t=q.dealsData)==null?void 0:t.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var F,q;if((F=this.data)!=null&&F.dealsData&&((q=this.data)==null||!q.priceReplacementText)){F=this.data.dealsData;var t,u,J;return((t=F.salesData)==null?void 0:t.originalPrice)||((u=F.priceDropData)==null?void 0:u.referencePrice)||((J=F.promotionData)==null?void 0:J.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var F,q;return(F=this.data)==null?void 0:(q=F.dealsData)==null?void 0:q.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],f2.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],f2.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],f2.prototype,"isExpandableContent",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"showCta",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"ctaText",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"hasPriceTopPosition",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"hasPriceBottomPosition",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"useNewStyle",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"showPriceReplacementText",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"priceValue",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"showDeal",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"showAffiliateDisclaimer",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"useSaleStyle",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"useFromBrandCtaStyle",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"useFromVendorCtaStyle",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],f2.prototype,"useShoppingCollectionCtaStyle",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],f2);
_.b(f2,"ytd-vertical-product-card-renderer",function(){if(Hkj!==void 0)return Hkj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Hkj=F},{mode:1});var m0d;var aM=function(){return _.x.apply(this,arguments)||this};
_.M(aM,_.x);aM.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],aM.prototype,"ytdLockupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],aM.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],aM);
_.b(aM,"ytd-grid-movie-renderer",function(){if(m0d!==void 0)return m0d;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return m0d=F},{mode:1});var $01;var jf=function(){var F=_.x.apply(this,arguments)||this;F.roundedFix=_.E("web_enable_merch_item_rounding_fix");F.itemStyle="small-item";return F};
_.M(jf,_.x);jf.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var F,q,t,u,J=(q=_.n((F=this.data)==null?void 0:F.buttonCommand,_.It))==null?void 0:(t=q.item)==null?void 0:(u=t.notificationTextRenderer)==null?void 0:u.successResponseText;J&&_.G8q(this.hostElement,J)}};
_.JJ.Object.defineProperties(jf.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:F.isProductPlaceholder)!==void 0&&((q=this.data)==null?void 0:q.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jf.prototype,"roundedFix",void 0);_.C([_.O(),_.V("design:type",Object)],jf.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],jf.prototype,"itemStyle",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jf.prototype,"hasPrice",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jf.prototype,"hasPriceReplacementText",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jf.prototype,"hasAdditionalFeesText",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jf.prototype,"hasAffiliateDisclaimer",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jf.prototype,"isProductPlaceholder",null);
_.C([_.O(),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jf.prototype,"hideOpenInNewIcon",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jf.prototype,"ariaLabel",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],jf);
_.b(jf,"ytd-merch-shelf-item-renderer",function(){if($01!==void 0)return $01;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return $01=F},{mode:1});var bkE=_.ld(function(F){return _.Z("button-card-view-model",{el:_.l_(_.CH(function(){return F.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return F.data().title},
role:"button"},_.Z(_.WP,{model:{}}),_.Z("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.Z("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.Z(_.R,{cond:function(){return F.data().image},
then:function(q){return _.Z(_.sc,{data:q,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.Z("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return F.data().title})))},"jb");_.E("web_button_view_model_wcw_registration_killswitch")||_.ei(bkE,"button-card-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){F=_.sk(F,{className:void 0});var q=F.data;F=F.className;var t=_.zy(function(){return q().onTapCommand},void 0,"NprDr");
return _.Z("ytd-shopping-item-card",{class:_.Ec("ytdShoppingItemCardHost",F)},_.Z(_.Ds,{command:t,className:"ytdShoppingItemCardHostLink"},_.Z("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.Z(_.Tl,{data:function(){return q().thumbnailViewModel}},{thumbnailViewModel:function(u){return _.Z(_.zj,{data:u.data,
aspectRatio:3})}})),_.Z("div",null,_.Z("p",{class:"ytdShoppingItemCardHostItemTitle"},_.Z(_.rv,{text:function(){return q().itemTitle}})),_.Z("p",{class:"ytdShoppingItemCardHostPrice"},_.Z(_.rv,{text:function(){return q().priceOrStatus}})))))},"kb"),"ytd-shopping-item-card",{props:{data:_.NH,
className:_.NH}});var yHx={isAdsVideo:!0},Ctz={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},d01={showPlayerControls:!1,videoPreviewDurationMs:15E3},VVL={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var cD=null,DQo={};var PhC="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(" "),cE={},xQM=(cE.FEwhat_to_watch="home",cE.FEhashtag="hashtag",cE.FEtrending="trending",cE.FEhistory="history",cE.SPunlimited="premium",cE.FEmemberships_and_purchases="paid_memberships",cE.SPredeem_code="redeem",cE.SPverify_location="locate",cE.SPminor_moment="minor_moment",
cE.FEmini_app_container="mini_app",cE.FEnews_destination="news",cE.SPopen_in_app="open_in_app",cE.FEexplore="explore",cE.FEsubscriptions="subscriptions",cE.FEsfv_audio_pivot="sfv_audio_pivot",cE.FEplaylist_aggregation="playlist_aggregation",cE);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");_.NU("init");var U0f=function(){},BFe=_.ld(function(F){var q=F.data;
var t=F.inlineMetadata;var u=F.aspectRatio;var J=F.scrimStyle;var g=F.className;var Y=F.useDefaultStyle;var Q=new U0f,e=_.E("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",r=_.zy(function(){return(Y==null?0:Y())?e==="SHORTS_LOCKUP_STYLE_SLIM":q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ibyPNe"),N=_.zy(function(){return _.Hj(t)||r()||!1},void 0,"F6KaVc"),w=function(){return(J==null?void 0:J())!==void 0?J==null?void 0:J():1},k=_.zy(function(){return q().belowThumbnailMetadata||
!N()},void 0,"t2xwLe");
F=_.lR({visibilityCallback:function(c){var rf=q().onFirstVisible;c&&rf&&_.L9(rf)},
showOption:{calledOnce:!0,state:"visible"}});var z=_.l_(),T={},P=_.Ec(function(){return r(),"shortsLockupViewModelHostThumbnailContainer"},(T.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Hj(u)===1},T.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Hj(u)===2},T.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.E("web_shorts_2_by_3_lockups_study")&&!_.E("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
T)),v=_.zy(function(){if(_.Hj(u)===1)return 1;
_.Hj(u);return 2},void 0,"LG7swb"),H,d=function(){if(Q){var c;
(c=H)==null||cZ(c);var rf;if(Q.hostElement&&((rf=Q.data)==null?0:rf.inlinePlayerData)){c=Object.assign({},VVL);var Zv,kP;((Zv=Q.data)==null?void 0:(kP=Zv.inlinePlayerData)==null?void 0:kP.maxPlaybackLengthSec)!==void 0&&(c.videoPreviewDurationMs=Q.data.inlinePlayerData.maxPlaybackLengthSec*1E3);H=Vg({mediaRenderer:Q,lockupElement:Q.hostElement,thumbnailElement:z.value,videoPreviewOpts:c})}}};
_.AO(function(){Q&&(Q.data=q(),d())},"adXpp");
var a=_.zy(function(){return q().thumbnail},void 0,"cFasFe");
T=_.zy(function(){return q().badge},void 0,"a2oavc");
var S=_.zy(function(){return q().onTap},void 0,"jb0oIf"),K={},h={};
return _.Z("ytm-shorts-lockup-view-model",{el:_.l_(function(c){Q&&(Q.hostElement=c)},d,F),
class:_.Ec("shortsLockupViewModelHost",g)},_.Z(_.ln,null,_.Z(_.Ds,{command:S,className:_.Ec("shortsLockupViewModelHostEndpoint",(K.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!k()},K),"reel-item-endpoint",""),
ariaHidden:function(){return!N()},
tabIndex:function(){return N()?0:-1}},_.Z("div",{el:z,
class:_.Ec("shortsLockupViewModelHostThumbnailParentContainer",(h.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!r()},h))},_.Z(_.R,{cond:a,
then:function(){return _.Z("div",{class:P},_.Z(_.sc,{data:function(){var c;return(c=a==null?void 0:a())!=null?c:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.Z(_.Tl,{data:function(){return q().thumbnailViewModel}},{thumbnailViewModel:function(c){return _.Z(_.zj,{data:c.data,
aspectRatio:function(){return v()},
disableRounding:function(){return r()}})}}),null),_.Z(_.R,{cond:N,
then:function(){return _.Z(S_f,{data:q,scrimStyle:w,useDefaultStyle:Y})}}),_.Z(_.Tl,{data:T},{badgeViewModel:function(c){return _.Z(_.Tj,{data:c.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.Z(_.R,{cond:function(){return N()&&q().menuOnTap},
then:function(){return _.Z(hGv,{data:q,inlineMetadata:!0})}}),_.Z(_.R,{cond:k,
then:function(){return _.Z(Kqx,{data:q,useDefaultStyle:Y,inlineMetadata:N})}})))},"lb"),S_f=_.ld(function(F){var q=F.data;
var t=F.scrimStyle;var u=F.useDefaultStyle;var J=_.E("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",g=u&&_.E("web_hide_primary_text_for_pivot_panel"),Y=_.zy(function(){return(u==null?0:u())?J==="SHORTS_LOCKUP_STYLE_SLIM":q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"o1uIvc");
F={};F=_.Ec("shortsLockupViewModelHostInlineMetadata",(F.shortsLockupViewModelHostMetadataRounded=function(){return!Y()},F.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(t==null?void 0:t())===3&&!_.E("enable_shorts_lockup_new_scrim")},F.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(t==null?void 0:t())===3&&_.E("enable_shorts_lockup_new_scrim")},F.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(t==null?void 0:t())===2||(t==null?void 0:
t())===4},F.shortsLockupViewModelHostShowOverPlayer=function(){return!0},F),"image-overlay-text");
var Q={};return _.Z("div",{class:F},_.Z("h3",{class:_.Ec("shortsLockupViewModelHostMetadataTitle",(Q.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(t==null?void 0:t())===4},Q.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return q().belowThumbnailMetadata},Q)),
"aria-label":function(){return q().accessibilityText}},_.Z(_.R,{cond:function(){var e;
return!((e=q().overlayMetadata)==null||!e.primaryText)&&!g},
then:function(){return _.Z(_.rv,{text:function(){var e;return(e=q().overlayMetadata)==null?void 0:e.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.Z(_.R,{cond:function(){var e;
return(e=q().overlayMetadata)==null?void 0:e.secondaryText},
then:function(){return _.Z(Lqj,{data:q,scrimStyle:t,className:void 0})}}))},"mb"),Kqx=_.ld(function(F){var q=F.data;
var t=F.useDefaultStyle;var u=F.inlineMetadata;var J=_.E("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",g=_.zy(function(){return(t==null?0:t())?J==="SHORTS_LOCKUP_STYLE_SLIM":q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c4LgDb"),Y=_.l_(),Q;
F=_.zq(function(z){if(_.$C(_.mp(z),Y.value,["AVATAR-VIEW-MODEL"]))return!1;var T;(T=Q)==null||T.click();return!1});
var e=_.zy(function(){return q().belowThumbnailMetadata||q().overlayMetadata},void 0,"YLe6Mc"),r=function(){return q().menuOnTap&&!u()},N=function(){var z;
return(z=e())==null?void 0:z.avatar},w={},k={};
return _.Z("div",{class:_.Ec(function(){return g()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(w.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!N()},w.shortsLockupViewModelHostOutsideMetadataHasMenu=r,w)),
"on:click":F,el:Y,role:"presentation"},_.Z(_.Tl,{data:N},{avatarViewModel:function(z){return _.Z("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.Z(_.FJ,{data:z.data}))}}),_.Z("div",null,_.Z("h3",{class:_.Ec("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(k.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var z,T;
return!((z=e())==null?0:(T=z.primaryText)==null?0:T.content)},k.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=u,k)),
role:"presentation"},_.Z(_.Ds,{ref:function(z){return void(Q=z)},
command:function(){return q().onTap},
className:_.Ec("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var z,T;return(z=e())==null?void 0:(T=z.primaryText)==null?void 0:T.content},
"aria-label":function(){return q().accessibilityText}},_.Z(_.R,{cond:function(){var z;
return(z=e())==null?void 0:z.primaryText},
then:function(z){return _.Z(_.rv,{text:z,noEndpoints:!0,noStyleRuns:!0})}}))),_.Z(_.R,{cond:function(){var z;
return(z=e())==null?void 0:z.secondaryText},
then:function(z){return _.Z("div",{class:_.Ec("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.Z(_.rv,{text:z,noStyleRuns:!0}))}})),_.Z(_.R,{cond:r,
then:function(){return _.Z(hGv,{data:q,inlineMetadata:!1})}}))},"nb"),Lqj=_.ld(function(F){var q=F.data;
var t=F.scrimStyle;F=F.className;var u={};return _.Z("div",{class:_.Ec((u.shortsLockupViewModelHostMetadataSubhead=function(){return(t==null?void 0:t())!==4},u.shortsLockupViewModelHostMetadataSubheadNew=_.E("enable_shorts_lockup_new_scrim"),u.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(t==null?void 0:t())===4},u),F),
"aria-hidden":"true"},_.Z(_.rv,{text:function(){var J;return(J=q().overlayMetadata)==null?void 0:J.secondaryText},
noStyleRuns:!0}))},"ob"),hGv=_.ld(function(F){var q=F.data;
var t=F.inlineMetadata;F={};F=_.Ec((F.shortsLockupViewModelHostInlineMetadataMenu=function(){return t()},F.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!t()},F.shortsLockupViewModelHostShowOverPlayer=function(){return!0},F),"image-overlay-text");
return _.Z("div",{class:F},_.Z(_.x9,{data:function(){return{style:t()?"overlay":"mono",accessibilityLabel:q().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(u){u.preventDefault();u.stopPropagation();var J=_.K9({elementsCommand:q().menuOnTap,forceNewState:!0});if(J==null?0:J.onclick)J.onclick(u)}}},
iconName:"MORE_VERT"}))},"pb");var fZ1=_.ld(function(F){var q=F.data;var t=F.inlineMetadata;var u=F.aspectRatio;var J=F.scrimStyle;var g=F.className;var Y=F.useDefaultStyle;F=_.zy(function(){var Q=q().entityId;return Q?Q.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.Z("ytm-shorts-lockup-view-model-v2",{class:_.Ec("shortsLockupViewModelHost",g)},_.Z(_.WE,{contentId:F,aspectRatio:function(){return(u==null?void 0:u())===1?1:(u==null?void 0:u())===2?2:4}},function(){return _.Z(BFe,{data:q,
inlineMetadata:t,aspectRatio:u,scrimStyle:J,className:g,useDefaultStyle:Y})}))},"qb");_.ei(fZ1,"ytm-shorts-lockup-view-model-v2",{props:{data:_.pp,inlineMetadata:_.pp,aspectRatio:_.pp,scrimStyle:_.pp,className:_.pp,useDefaultStyle:_.pp}});var aZJ=16/9*210,Fu=function(){var F=_.x.apply(this,arguments)||this;F.isExpandableContent=!1;F.hideShelfHeader=!1;F.engagementPanel=!1;F.buttonClasses=["arrow"];F.isSearch=!1;F.disableScrollEventListener=!1;F.containsLockup=!1;F.overrideArrowPositionForProductCard=!1;F.overrideArrowPositionForShoppingItemCard=!1;F.overrideArrowPositionForReelItems=!1;F.overrideArrowPositionForGridMovie=!1;F.overrideArrowPositionToCenter=!1;F.isSearchPostShelf=!1;F.overrideArrowPositionForMixedShelf=!1;F.overrideArrowPositionForMixedShelfShortsOnly=
!1;F.hasBigThumbsReelItems=!1;F.shouldUseMixedListHeight=!1;F.shouldUseShortsListHeight=!1;F.gridVideoWidth=0;F.isSearchVodShelf=!1;F.disableWheelScroll=!1;F.sizing="COMPACT";F.shortsLockupAspectRatio=0;return F};
_.M(Fu,_.x);_.l=Fu.prototype;
_.l.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]]"}}}}};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.E("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.l.computeInitialCountNumber=function(F){if(!F)return 6;var q=F.items.some(function(g){return!!g.topicRecommendationsChipRenderer}),t=F.items.some(function(g){return!!g.displayAdRenderer}),u=this.computeShouldListItemsHaveEqualHeight(F),J=F.items.some(function(g){return!!g.gridPlaylistRenderer});
F=F.items.some(function(g){return!!g.shoppingItemCardViewModel});
return q?9:t?8:J||u?10:F?7:6};
_.l.computeContainsPost=function(F){return!!F&&!!F.items&&F.items.some(function(q){return!!q.postRenderer})};
_.l.computeContainsLockup=function(){if(_.E("web_horizontal_list_lockup_arrow_killswitch"))return!1;var F,q;return(F=this.data)==null?void 0:(q=F.items)==null?void 0:q.some(function(t){return!!t.lockupViewModel})};
_.l.maybeUpdateLockupAspectRatio=function(){var F,q;if(this.computeContainsLockup()&&((F=this.data)==null?0:(q=F.items)==null?0:q.length)){var t;F=jrP((t=this.data.items[0].lockupViewModel)==null?void 0:t.contentType,this.data.force16By9ThumbnailAspectRatio);t=J5t(F);t=this.computeLockupWidth()/t;_.ws(this.hostElement,{"--yt-horizontal-list-content-height":t+"px"})}};
_.l.computeOverrideArrowPositionForProductCard=function(F){if(this.isExpandableContent)return!1;var q;return!!(F==null?0:(q=F.items)==null?0:q.some(function(t){return!!t.verticalProductCardRenderer}))};
_.l.computeOverrideArrowPositionForShoppingItemCard=function(F){var q;return!!(F==null?0:(q=F.items)==null?0:q.some(function(t){return!!t.shoppingItemCardViewModel}))};
_.l.computeOverrideArrowPositionForReelItemRenderer=function(F){return this.containsReelItemRenderer(F)};
_.l.computeHasBigThumbsReelItems=function(F,q){return F&&this.containsReelItemRenderer(q)};
_.l.computeShouldListItemsHaveEqualHeight=function(F){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(F==null?void 0:F.itemSizeConstraint)};
_.l.computeShouldListItemsHaveShortsHeight=function(F){return this.computeShouldListItemsHaveEqualHeight(F)&&!this.containsGridVideoRenderer(F)};
_.l.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.l.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.l.containsReelItemRenderer=function(F){var q;return!!(F==null?0:(q=F.items)==null?0:q.some(function(t){return!(!t.reelItemRenderer&&!t.shortsLockupViewModel)}))};
_.l.containsGridVideoRenderer=function(F){var q;return!!(F==null?0:(q=F.items)==null?0:q.some(function(t){return!!t.gridVideoRenderer||!!t.lockupViewModel}))};
_.l.computeContainsGridMovieRenderer=function(F){var q;return!!(F==null?0:(q=F.items)==null?0:q.some(function(t){return!!t.gridMovieRenderer}))};
_.l.computeOverrideArrowPositionToCenter=function(F){return this.computeIsSearchPostShelf(F)};
_.l.computeIsSearchPostShelf=function(F){var q;return!!(F==null?0:(q=F.items)==null?0:q.some(function(t){var u,J;return((J=(u=t.postRenderer)==null?void 0:u.surface)!=null?J:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.l.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(F){var q;return!!(F==null?0:(q=F.items)==null?0:q.some(function(t){var u,J,g;return((g=(u=t.backgroundPromoRenderer)==null?void 0:(J=u.style)==null?void 0:J.value)!=null?g:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.l.computeIsSearchVodShelf=function(F,q){return F&&this.containsGridVideoRenderer(q)};
_.l.computeDisableWheelScroll=function(F,q){return this.computeIsSearchVodShelf(F,q)};
_.l.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.l.computeShortsLockupAspectRatio=function(){return 1};
_.l.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.ws(this.hostElement,{"--ytd-reel-item-thumbnail-height":aZJ+"px"})};
Fu.prototype.dataChanged=Fu.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.We.YtdHorizontalListBehavior),_.V("design:type",Object)],Fu.prototype,"ytdHorizontalListBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Fu.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],Fu.prototype,"isExpandableContent",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"hideShelfHeader",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"engagementPanel",void 0);_.C([_.O(),_.V("design:type",Array)],Fu.prototype,"buttonClasses",void 0);_.C([_.O(),_.V("design:type",Object)],Fu.prototype,"isSearch",void 0);
_.C([_.O(),_.V("design:type",Object)],Fu.prototype,"disableScrollEventListener",void 0);_.C([_.O({computed:"computeInitialCountNumber(data)"}),_.V("design:type",Number)],Fu.prototype,"initialCount",void 0);_.C([_.O({computed:"computeContainsPost(data)"}),_.V("design:type",Boolean)],Fu.prototype,"supportComponentResize",void 0);_.C([_.O({computed:"computeContainsPost(data)"}),_.V("design:type",Boolean)],Fu.prototype,"containsPost",void 0);
_.C([_.O({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"containsLockup",void 0);_.C([_.O({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Fu.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.C([_.O({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"overrideArrowPositionForProductCard",void 0);_.C([_.O({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.C([_.O({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"overrideArrowPositionForReelItems",void 0);_.C([_.O({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"overrideArrowPositionForGridMovie",void 0);
_.C([_.O({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"overrideArrowPositionToCenter",void 0);_.C([_.O({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"isSearchPostShelf",void 0);_.C([_.O({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.C([_.O({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.C([_.O({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"hasBigThumbsReelItems",void 0);
_.C([_.O({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"shouldUseMixedListHeight",void 0);_.C([_.O({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"shouldUseShortsListHeight",void 0);_.C([_.O({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"gridVideoWidth",void 0);
_.C([_.O({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"isSearchVodShelf",void 0);_.C([_.O({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.V("design:type",Object)],Fu.prototype,"disableWheelScroll",void 0);_.C([_.O({computed:"computeSizing(isSearch)"}),_.V("design:type",Object)],Fu.prototype,"sizing",void 0);
_.C([_.O({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.V("design:type",Object)],Fu.prototype,"shortsLockupAspectRatio",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fu.prototype,"dataChanged",null);
_.b(Fu,"yt-horizontal-list-renderer",function(){if(cR1===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);cR1=F}F=cR1;return F},{mode:1});var jBE;var cHz=[10,12,14,16,18,20,24,28,32,36],FwC=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],qx=function(){var F=_.x.apply(this,arguments)||this;F.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";F.hideOverflow=!1;F.useRoboto=!1;F.fontClass="";F.overflown=!1;F.actionMap={"yt-window-resized":"resize"};return F};
_.M(qx,_.x);_.l=qx.prototype;
_.l.attached=function(){var F=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.tJ(this,function(){F.resize()});
if(!_.p4){var q,t,u;(q=document)==null||(t=q.fonts)==null||(u=t.ready)==null||u.then(function(){F.resize()})}};
_.l.dataChanged=function(){this.resize()};
_.l.guideIsExpandedChanged=function(){this.resize()};
_.l.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var F=this.getMaxNumLines(),q=this.getMinFont(),t=this.getMaxFont(),u=this.useRoboto?cHz:FwC;for(u=u.filter(function(g){return g<=t&&g>=q});u.length>1;){var J=Math.floor(u.length/2);
this.updateFontSize(u[J]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=F)u=u.slice(J,u.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>F)u=u.slice(0,J);else break}this.updateFontSize(u[u.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(F)}};
_.l.handleOverflow=function(F){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>F&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",F.toString()))};
_.l.updateFontSize=function(F){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+F;this.textNode.classList.add(this.fontClass)};
_.l.getMaxFont=function(){var F=this.useRoboto?cHz:FwC;F=F[F.length-1];return this.maxFontSize&&this.maxFontSize<=F?this.maxFontSize:F};
_.l.getMinFont=function(){var F=(this.useRoboto?cHz:FwC)[0];return this.minFontSize&&this.minFontSize>=F?this.minFontSize:F};
_.l.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.l.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.l.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.q1(this.text).split("\n").length-1:Infinity};
_.l.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Hh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
qx.prototype.guideIsExpandedChanged=qx.prototype.guideIsExpandedChanged;qx.prototype.dataChanged=qx.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],qx.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],qx.prototype,"actionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],qx.prototype,"text",void 0);
_.C([_.O(),_.V("design:type",String)],qx.prototype,"fontFamily",void 0);_.C([_.O(),_.V("design:type",Number)],qx.prototype,"maxWidth",void 0);_.C([_.O(),_.V("design:type",Number)],qx.prototype,"maxHeight",void 0);_.C([_.O(),_.V("design:type",Number)],qx.prototype,"maxFontSize",void 0);_.C([_.O(),_.V("design:type",Number)],qx.prototype,"minFontSize",void 0);_.C([_.O(),_.V("design:type",Number)],qx.prototype,"maxLines",void 0);_.C([_.O(),_.V("design:type",Object)],qx.prototype,"hideOverflow",void 0);
_.C([_.O({selector:_.cho}),_.V("design:type",Boolean)],qx.prototype,"guideIsExpanded",void 0);_.C([_.Ms("#container"),_.V("design:type",HTMLElement)],qx.prototype,"containerNode",void 0);_.C([_.Ms("#text"),_.V("design:type",HTMLElement)],qx.prototype,"textNode",void 0);_.C([_.Wh("text"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qx.prototype,"dataChanged",null);
_.C([_.Wh("guideIsExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qx.prototype,"guideIsExpandedChanged",null);_.C([_.m({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],qx);
_.b(qx,"yt-dynamic-sizing-formatted-string",function(){if(jBE!==void 0)return jBE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return jBE=F},{mode:1});var q2j;_.t0r=function(F){_.Fq.call(this,F)};
_.M(_.t0r,_.Fq);var uaC=function(F){_.Fq.call(this,F)};
_.M(uaC,_.t0r);var tr=function(){return _.x.apply(this,arguments)||this};
_.M(tr,_.x);tr.prototype.onTapSuspendedChannel=function(){var F;if((F=this.data)!=null&&F.serviceEndpoint){var q,t;(F=(t=_.n((q=this.data)==null?void 0:q.serviceEndpoint,_.KM))==null?void 0:t.url)?_.ab(F,void 0,void 0,window.top):(q=new uaC("Did not handle suspended account tap. No appealUrl."),_.mH(q))}else q=new uaC("Did not handle suspended account tap. No serviceEndpoint."),_.mH(q)};
tr.prototype.onTap=function(){var F=this,q=_.DP(),t,u=(t=_.GC(q,{veType:7116}))!=null?t:void 0;_.BT(q,{visualElement:u});_.LG();this.saveRoleText();var J;if((J=this.data)==null?0:J.youtubeSuspended)this.onTapSuspendedChannel();else{var g=!1,Y,Q;(q=(Q=_.n((Y=this.data)==null?void 0:Y.serviceEndpoint,_.mCn))==null?void 0:Q.supportedTokens)&&q.forEach(function(e){if(e.accountSigninToken)if(g=!0,F.onAccountItemTap)F.onAccountItemTap(e.accountSigninToken.signinUrl);else _.ab(e.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!g){if(Y=this.get("serviceEndpoint",this.data))g=!0,this.ytComponentBehavior.resolveCommand(Y);g||_.$e(new uaC("Did not handle account switch tap. No token."))}}};
tr.prototype.saveRoleText=function(){if(this.data){var F=this.data,q=F.channelDelegationRole;if(q){var t,u=(t=_.n(F==null?void 0:F.serviceEndpoint,_.mCn))==null?void 0:t.supportedTokens;if(!u){var J,g,Y,Q;u=(J=_.n(F==null?void 0:F.serviceEndpoint,_.y5))==null?void 0:(g=J.popup)==null?void 0:(Y=g.confirmDialogRenderer)==null?void 0:(Q=Y.confirmButton)==null?void 0:Q.buttonRenderer;var e;u=(e=_.n(u==null?void 0:u.command,_.wY))==null?void 0:e.commands;if(!u)return;var r;u=(r=_.n(u[1],_.mCn))==null?
void 0:r.supportedTokens}if(u){e=void 0;r=_.X(u);for(u=r.next();!u.done;u=r.next())if(u=u.value,u.datasyncIdToken){e=u.datasyncIdToken.datasyncIdToken;break}if(e){var N;a:{if(_.oGM()&&(r=_.Tj_(e+"::pom"))){r=new BG(r);break a}r=void 0}(N=r)==null||N.set("role_text",q);if((HNy?HNy:window.location).href.indexOf("studio")!==-1&&(N=nG$())){r=N.src?(new URL(N.src)).origin:"*";var w;(w=N.contentWindow)==null||w.postMessage({action:"save_pom_role",datasyncId:e,roleText:q},r)}}}}}};
_.JJ.Object.defineProperties(tr.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(F=this.data)==null?void 0:(q=F.accountPhoto)==null?void 0:q.thumbnails;return t&&t.length>0&&(t[0].height===36||t[0].height===48)?t[0].height:40}}});
tr.prototype.onTap=tr.prototype.onTap;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],tr.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],tr.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!1}),_.V("design:type",Function)],tr.prototype,"onAccountItemTap",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],tr.prototype,"enableRingForActiveAccount",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],tr.prototype,"thumbnailSize",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tr.prototype,"onTap",null);_.C([_.m({is:"ytd-account-item-renderer",disableElementRegistration:!0})],tr);
_.b(tr,"ytd-account-item-renderer",function(){if(q2j!==void 0)return q2j;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return q2j=F},{mode:1});var Jzj;var u9=function(){return _.x.apply(this,arguments)||this};
_.M(u9,_.x);u9.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.sV().resolve(_.gN).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],u9.prototype,"data",void 0);_.C([_.m({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],u9);
_.b(u9,"ytd-identity-chip-renderer",function(){if(Jzj!==void 0)return Jzj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Jzj=F},{mode:1});var s3e;var gXC;var lbr;var XIf;var Jr=function(){var F=_.x.apply(this,arguments)||this;F.richItemMinWidth=_.YE("wn_grid_min_item_width",310);F.isShorts=!1;F.isWatchNext=!1;F.isExploreHub=!1;return F};
_.M(Jr,_.x);_.JJ.Object.defineProperties(Jr.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var F=[],q=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.ws(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var t;if(((t=this.data)==null?0:t.rows)&&q)for(q*=this.data.rows,t=0;t<q;t++)F.push({});return F}}});
_.C([_.D(_.s9),_.V("design:type",Object)],Jr.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Jr.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.bC,value:3}),_.V("design:type",Number)],Jr.prototype,"itemsPerRow",void 0);_.C([_.O({selector:_.jl3,value:6}),_.V("design:type",Number)],Jr.prototype,"slimItemsPerRow",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Number)],Jr.prototype,"richItemMinWidth",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],Jr.prototype,"miniMode",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Jr.prototype,"isShorts",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Jr.prototype,"isWatchNext",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Jr.prototype,"isExploreHub",void 0);
_.C([_.W("isExploreHub"),_.O({reflectToAttribute:!0}),_.V("design:type",Object),_.V("design:paramtypes",[])],Jr.prototype,"shimmerAnimation",null);_.C([_.W("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.V("design:type",Array),_.V("design:paramtypes",[])],Jr.prototype,"cardItems",null);_.C([_.m({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Jr);
_.Y2r=_.rc()(Jr,"ytd-ghost-grid-renderer",function(){if(XIf===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);XIf=F}F=XIf;return F},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.ei(_.ld(function(F){var q=_.sk(F,{numberOfComments:3}).numberOfComments,t=_.sk(F,{isInitialLoad:!1}).isInitialLoad,u=_.sk(F,{engagementPanel:!1}).engagementPanel,J=function(){return Math.min(Number(q==null?void 0:q())||20,20)};
return _.Z("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.Z(_.R,{cond:function(){return!(u==null?0:u())&&(t==null?void 0:t())},
then:function(){return _.Z("div",{class:"ytGhostCommentsComments"},_.Z("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.Z("div",{class:_.Ec("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.Z("div",{class:_.Ec("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.Z("div",{class:"ytGhostCommentsGhostCard"},_.Z("div",{class:"ytGhostCommentsAvatar"},_.Z("div",{class:"ytGhostCommentsCircle"})),_.Z("div",{class:"ytGhostCommentsComments"},_.Z("div",{class:"ytGhostCommentsMeta"},
_.Z("div",{class:_.Ec("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.Z("div",{class:_.Ec("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.Z("div",{class:"ytGhostCommentsComments"},_.Z(_.Gn,{each:function(){return Array((J==null?void 0:J())||3)}},function(){return _.Z("div",{class:"ytGhostCommentsGhostCard"},_.Z("div",{class:"ytGhostCommentsAvatar"},_.Z("div",{class:"ytGhostCommentsCircle"})),_.Z("div",{class:"ytGhostCommentsHost"},_.Z("div",{class:"ytGhostCommentsMeta"},
_.Z("div",{class:_.Ec("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.Z("div",{class:_.Ec("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Z("div",{class:_.Ec("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Z("div",{class:"ytGhostCommentsGhostLikeDislike"},_.Z("div",{class:_.Ec("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Z("div",{class:_.Ec("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"rb"),"yt-ghost-comments",{props:{numberOfComments:_.NH,
isInitialLoad:_.NH,engagementPanel:_.NH}});_.mo("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var sm=function(){var F=_.x.apply(this,arguments)||this;F.isOverridable=!1;F.spinnerActive=!1;F.showButton=!1;F.isCommentsSection=!1;F.engagementPanel=!0;F.isShortsGrid=!1;F.isShortsPage=!1;F.isWatchPage=!1;F.ghostCardExperimentEnabled=_.E("show_ghost_comments_shorts_watch")||_.E("show_ghost_comments_desktop_watch");F.originalShowButton=!1;F.endOfList=!1;return F};
_.M(sm,_.x);_.l=sm.prototype;_.l.resetIntersectionObserver=function(){var F;(F=this.observer)==null||F.disconnect();this.observer=void 0};
_.l.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var F,q;((F=this.data)==null?void 0:F.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((q=this.data)==null?0:q.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.l.initializeIntersectionObserver=function(){var F=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(q){q=_.X(q);for(var t=q.next();!t.done;t=q.next())t.value.isIntersecting&&(F.triggerContinuation(),F.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.l.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]]"}}}}}};
_.l.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var F;((F=this.data)==null?0:F.continuationEndpoint)&&(F=_.n(this.data.continuationEndpoint,_.Si))&&this.ytdReduxBehavior.dispatch(_.pj({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:F}}))};
_.l.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.l.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.l.onServiceRequestCompleted=function(F,q){if(!_.E("kevlar_hide_spinner_on_empty_continuation_killswitch")){var t;(t=q.actions)!=null&&t.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.l.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.l.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.l.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.l.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var F=3;if(this.engagementPanel){var q,t,u;F=Math.floor(((((q=this.hostElement)==null?void 0:(t=q.parentElement)==null?void 0:(u=t.parentElement)==null?void 0:u.scrollHeight)||108)-108)/108);F=this.isInitialLoad?Math.max(F,3):3}q=[].concat(_.mZ(this.hostElement.querySelectorAll("yt-ghost-comments")));q=_.X(q);for(t=q.next();!t.done;t=q.next())t=t.value,t.numberOfComments=F,t.isInitialLoad=this.isInitialLoad,t.engagementPanel=
this.engagementPanel}};
_.l.detached=function(){this.resetIntersectionObserver()};
_.JJ.Object.defineProperties(sm.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.E("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.E("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
sm.prototype.numberOfGhostCommentsChanged=sm.prototype.numberOfGhostCommentsChanged;sm.prototype.continuationTriggerOffsetChanged=sm.prototype.continuationTriggerOffsetChanged;sm.prototype.showButtonChanged=sm.prototype.showButtonChanged;sm.prototype.onYtServiceRequestCompletedForButtonRenderer=sm.prototype.onYtServiceRequestCompletedForButtonRenderer;sm.prototype.onServiceRequestCompleted=sm.prototype.onServiceRequestCompleted;sm.prototype.onYtServiceRequestSentForButtonRenderer=sm.prototype.onYtServiceRequestSentForButtonRenderer;
sm.prototype.observeData=sm.prototype.observeData;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.QP.YtVisibilityBehavior),_.V("design:type",Object)],sm.prototype,"ytVisibilityBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],sm.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.s9),_.V("design:type",Object)],sm.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],sm.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],sm.prototype,"isOverridable",void 0);_.C([_.O(),_.V("design:type",Object)],sm.prototype,"spinnerActive",void 0);_.C([_.O(),_.V("design:type",Object)],sm.prototype,"showButton",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],sm.prototype,"isCommentsSection",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],sm.prototype,"engagementPanel",void 0);_.C([_.O(),_.V("design:type",Object)],sm.prototype,"isShortsGrid",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.t$t}),_.V("design:type",Object)],sm.prototype,"isShortsPage",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.qh$}),_.V("design:type",Object)],sm.prototype,"isWatchPage",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],sm.prototype,"ghostCardExperimentEnabled",void 0);
_.C([_.O(),_.V("design:type",Number)],sm.prototype,"continuationTriggerOffset",void 0);_.C([_.O(),_.V("design:type",Object)],sm.prototype,"endOfList",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],sm.prototype,"isInitialLoad",void 0);_.C([_.Ms("ytd-button-renderer"),_.V("design:type",_.oA)],sm.prototype,"buttonRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],sm.prototype,"buttonOverrides",void 0);
_.C([_.O(),_.W("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.V("design:type",Object),_.V("design:paramtypes",[])],sm.prototype,"isShortsCommentsSection",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sm.prototype,"observeData",null);
_.C([_.EB("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sm.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],sm.prototype,"onServiceRequestCompleted",null);
_.C([_.EB("yt-service-request-completed-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sm.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.C([_.Wh("showButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sm.prototype,"showButtonChanged",null);
_.C([_.Wh("continuationTriggerOffset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sm.prototype,"continuationTriggerOffsetChanged",null);_.C([_.za("isInitialLoad","engagementPanel"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sm.prototype,"numberOfGhostCommentsChanged",null);_.C([_.m({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],sm);
_.b(sm,"ytd-continuation-item-renderer",function(){if(lbr!==void 0)return lbr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return lbr=F},{mode:1});var pIO;var gp=function(){var F=_.x.apply(this,arguments)||this;F.downloadProgress=0;F.transferState="TRANSFER_STATE_UNKNOWN";F.downloadState="DOWNLOAD_STATE_UNKNOWN";F.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";F.offlineVideoPolicyExpirationTimestamp=0;F.downloadedVideoPlaybackPosition=0;return F};
_.M(gp,_.x);gp.prototype.dataChanged=function(){var F;this.videoData=_.n((F=this.data)==null?void 0:F.renderer,RM1);this.transferStateChanged()};
gp.prototype.downloadProgressChanged=function(){if(this.entityInfo){var F=Object.assign({},this.videoData),q=c8$(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),t=q.publishedTimeText,u=q.badges;F.shortViewCountText=q.shortViewCountText;F.publishedTimeText=t;F.badges=u;this.set("videoData",F)}};
gp.prototype.transferStateChanged=function(){if(this.entityInfo){var F=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",q=_.Dx(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!G5(this.entityInfo.policyEntity),t=Object.assign({},this.videoData),u=c8$(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),J=u.publishedTimeText,g=u.badges;t.shortViewCountText=
u.shortViewCountText;t.publishedTimeText=J;t.badges=g;t.isDisabled=q;t.isWatched=this.downloadedVideoPlaybackPosition>0;t.navigationEndpoint=q?void 0:uS3(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var Y;F&&((Y=this.videoData)==null?0:Y.videoId)&&!_.E("dl_resume_click_killswitch")&&(t.isDisabled=!1,t.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});t.thumbnailOverlays=aDW(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",t)}};
gp.prototype.transferStateChanged=gp.prototype.transferStateChanged;gp.prototype.downloadProgressChanged=gp.prototype.downloadProgressChanged;gp.prototype.dataChanged=gp.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],gp.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],gp.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],gp.prototype,"videoData",void 0);_.C([_.O({selector:Sz,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],gp.prototype,"downloadProgress",void 0);_.C([_.O(),_.V("design:type",Number)],gp.prototype,"relativeDateReference",void 0);_.C([_.O({selector:_.VX,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],gp.prototype,"transferState",void 0);
_.C([_.O({selector:oQP,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],gp.prototype,"downloadState",void 0);_.C([_.O({selector:lDu,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],gp.prototype,"offlinePolicyAction",void 0);_.C([_.O({selector:XGW,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],gp.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.C([_.O({selector:hx,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],gp.prototype,"downloadedVideoPlaybackPosition",void 0);_.C([_.O({selector:pGv,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],gp.prototype,"entityInfo",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],gp.prototype,"isDownloading",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gp.prototype,"dataChanged",null);
_.C([_.Wh("downloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gp.prototype,"downloadProgressChanged",null);_.C([_.Wh("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gp.prototype,"transferStateChanged",null);
_.C([_.m({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],gp);
_.b(gp,"ytd-downloaded-video-grid-video-renderer",function(){if(pIO!==void 0)return pIO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return pIO=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var Q3w;var l9=function(){};
l9.prototype.resolve=function(F,q){var t=this;return _.p(function(u){return u.yield(t.resolveCommand(F,q),0)})};var eIe,Xu;eIe=d6f(function(F){return F.targetId},{shouldPersist:!1});
Xu=eIe.updateData;_.ZmL=eIe.useUpdatableData;var RId,rzv;RId=d6f(function(F){return F.targetId});
rzv=RId.updateData;_.Nb1=RId.useUpdatableData;var wIw=HFy.bind(null,Xu),imx=HFy.bind(null,rzv);(function(F,q,t){var u=_.n(t==null?void 0:t.updatedRenderer,_.UXf);return u?F({targetId:q},function(){return u}):!1}).bind(null,Xu);var Y1=function(){};
_.M(Y1,l9);Y1.prototype.resolveCommand=function(F){var q;return _.p(function(t){q=_.n(F,_.KG3);if(!q)return t.return();wIw(q.targetId,q);_.WA(t)})};var py=function(){var F=_.Ga.apply(this,arguments)||this;F.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return F};
_.M(py,_.Ga);_.l=py.prototype;_.l.configureContinuationPathMap=function(){return{}};
_.l.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.l.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.l.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.l.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.l.handleAppendContinuationItemsAction=function(F){var q=_.n(F,_.hNe);if(this.data&&this.data.targetId&&q&&this.continuationPathMap&&q.targetId===this.data.targetId){var t=dZv(F),u=t&&this.continuationPathMap[t];if(u&&t)if(F=this.get(u,this.data)){a:{for(t=0;t<F.length;t++){var J=F[t],g=void 0,Y=!!_.n((g=_.n(J,xVE))==null?void 0:g.content,_.pQz);if(_.n(J,_.F9)||Y)break a}t=F.length}u="data."+u;q.continuationItems?t===F.length-1?(this.pop(u),this.push.apply(this,[u].concat(_.mZ(q.continuationItems)))):
t===F.length?this.push.apply(this,[u].concat(_.mZ(q.continuationItems))):this.splice.apply(this,[u,t,1].concat(_.mZ(q.continuationItems))):this.splice(u,t,1);(_.E("web_enable_voting_animation")||_.E("enable_music_web_cairo_voting_animation"))&&_.Q0(this.hostElement,"yt-append-continuation-items-action-finished");_.Q0(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.bz(new _.D0("append continuation items does not exist",t));else _.bz(new _.D0("append continuation path does not exist",
t))}};
_.l.handleReloadContinuationItemsCommand=function(F){var q=_.n(F,_.KG3);if(this.data&&q){if(_.E("web_client_explore_hub")||_.E("web_explore_hub_on_hover")||_.E("web_client_explore_hub_on_hover"))try{_.sV().resolve(Y1).resolveCommand(F)}catch(g){}if(this.data.targetId&&this.continuationPathMap&&q.targetId===this.data.targetId&&(!_.E("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||q.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var t,u=(t=q.slot)==null?void 0:
t.replace("RELOAD_CONTINUATION_SLOT_","");t=(F=dZv(F)+"-"+(u==null?void 0:u.toLowerCase()))&&this.continuationPathMap[F];if(!t||!F||!u)_.bz(new _.D0("reload continuation path does not exist",F));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(q)){if(q.replaceWithFirstItem){var J;this.set("data."+t,((J=q.continuationItems)==null?0:J.length)?q.continuationItems[0]:{})}else this.set("data."+t,q.continuationItems?q.continuationItems:[]);this.continuationIsReloading=
!1;_.Q0(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.l.handleShowReloadUiCommand=function(F){F=_.n(F,lJO);var q;((q=this.data)==null?0:q.targetId)&&(F==null?0:F.targetId)&&F.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
py.prototype.observeData=py.prototype.observeData;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],py.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],py.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],py.prototype,"data",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],py.prototype,"continuationIsReloading",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],py.prototype,"observeData",null);_.C([_.Dj()],py);_.Qd=[_.XV.YtComponentBehavior,_.$9.YtActionHandlerBehavior,py.prototype];_.eH={};_.eH.YtNextContinuationBehavior=[_.zD.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",_.kM(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.kM(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(F,q){F.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,q,{}):(F={locationRetrieved:function(t){this.makeNextContinuationRequest_(t,q,{})}.bind(this)},_.Q0(this.hostElement,"yt-retrieve-location",F))},
makeNextContinuationRequest_:function(F,q,t){_.CJ("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();F=q(F);var u;this.canUseContextualNetworkManager_()&&(u=this.getNetworkManager());u||(u=_.sV().resolve(_.CG));q=_.Lp.instance;if(_.bn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&q){u=_.Jn([F.startsWith("/")?F.substr(1):F]);var J,g;t=_.uW(q,{},u,t==null?void 0:(J=t.context)==null?void 0:(g=J.clickTracking)==null?void 0:g.clickTrackingParams).then(function(Y){return{response:Y}})}else t=
this.nextContinuation.usePost?u.postData(F,t):u.fetchData(F);
t.then(this.updateNextContinuationData_.bind(this,F));this.pendingContinuationRequest_=t;this.startListeningForNavigate_()},
updateNextContinuationData_:function(F,q){var t=this;_.CJ("ncl");this.pendingContinuationRequest_=void 0;if(q){var u={};this.nextContinuation&&(u=this.nextContinuation);if(q.response&&q.response.continuationContents&&q.response.continuationContents[u.continuationType]){F=q.response.continuationContents[u.continuationType];var J=u.header||"data.header",g=F[u.responseHeaderKey||"header"];g&&this.set(J,g);J=u.contentsArray||"data.contents";g=this.getContents_(F,u.responseContentsKey||"contents")||[];
this.pathExists_(J)?(g.unshift(J),this.push.apply(this,g)):this.set(J,g);g&&(mQ$(_.DP(),q.response,this.hostElement,function(Y){_.ec(t.hostElement,"yt-store-grafted-ve-action",[Y])}),_.Q0(this.hostElement,"yt-next-continuation-data-updated",{continuationData:q,
page:this,contentsArray:J}));this.set(u.continuationsArray||"data.continuations",F[u.responseContinuationsKey||"continuations"]||[])}else q.reload?_.bz(new _.D0("Reloading from continuation is unsupported")):q.responseContext&&q.responseContext.errors||(delete q.xsrf_token,delete q.timing,delete q.endpoint,delete q.csn,q.responseContext&&delete q.responseContext.serviceTrackingParams,J={request:_.a5(F,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(q).sort()},q.response&&(J.responseContentKeys=
Object.keys(q.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(J.continuationType=this.nextContinuation.continuationType.substr(0,256)),q=new _.D0("Malformed continuation",J),F.indexOf("/comment_service_ajax")==0?_.bz(q):_.mH(q)),this.set(u.continuationsArray||"data.continuations",[])}else _.$e(new _.D0("Missing continuation response",F))},
getContents_:function(F,q){q=q.split(".");return _.m7.getValueByKeys(F,q)},
pathExists_:function(F){var q=this;F=F.toString().split(".");for(var t=0;t<F.length;t++)if(q=q[F[t]],q===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var kFv;var EXL;var ZL=function(){var F=_.x.apply(this,arguments)||this;F.triggered_=!1;return F};
_.M(ZL,_.x);_.l=ZL.prototype;_.l.attached=function(){this.maybeTriggerAutoload()};
_.l.detached=function(){this.hasBeenTriggered_=!1};
_.l.onPrescanVisible=function(){this.onShow()};
_.l.onShow=function(){this.showButton||this.trigger()};
_.l.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Q0(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.l.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.l.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.l.computeLabel_=function(F,q){return F===void 0?null:F.label||!q?F.label:this.showMoreText_};
_.l.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.l.getContinuationUrl=function(F){var q={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(q.itct=this.data.clickTrackingParams);return _.j6(F,q)};
_.l.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
ZL.prototype.showButtonChanged_=ZL.prototype.showButtonChanged_;ZL.prototype.observeData_=ZL.prototype.observeData_;_.C([_.D(_.QP.YtVisibilityBehavior),_.V("design:type",Object)],ZL.prototype,"ytVisibilityBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ZL.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],ZL.prototype,"showButton",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],ZL.prototype,"showIcon",void 0);_.C([_.O({computed:"computeLabel_(data, showButton)"}),_.V("design:type",Object)],ZL.prototype,"label",void 0);_.C([_.O({value:_.FK(_.oD("SHOW_MORE",void 0,"Show More"))}),_.V("design:type",Object)],ZL.prototype,"showMoreText_",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],ZL.prototype,"spinnerActive_",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],ZL.prototype,"hasBeenTriggered_",void 0);
_.C([_.O({value:void 0}),_.V("design:type",String)],ZL.prototype,"observeVisibleOption",void 0);_.C([_.O({value:void 0}),_.V("design:type",String)],ZL.prototype,"observeHiddenOption",void 0);_.C([_.O({value:"observe_once"}),_.V("design:type",Object)],ZL.prototype,"observePrescanOption",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZL.prototype,"observeData_",null);
_.C([_.za("showButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZL.prototype,"showButtonChanged_",null);_.C([_.Vu({is:"yt-next-continuation",disableElementRegistration:!0})],ZL);
_.b(ZL,"yt-next-continuation",function(){if(EXL===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;kFv===void 0&&(kFv=document.createElement("template"));var u=kFv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);EXL=F}F=EXL;return F},{mode:2});var zIn;var oXL;var Ro=function(){return _.x.apply(this,arguments)||this};
_.M(Ro,_.x);Ro.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ro.prototype,"data",void 0);_.C([_.Vu({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Ro);
_.b(Ro,"yt-music-pass-small-feature-info-renderer",function(){if(oXL===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;zIn===void 0&&(zIn=document.createElement("template"));var u=zIn;t.call(q,u.content.cloneNode(!0),F.content.firstChild);oXL=F}F=oXL;return F},{mode:2});_.mo("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var rp=function(){var F=_.x.apply(this,arguments)||this;F.isCollapsible=!1;F.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return F};
_.M(rp,_.x);_.l=rp.prototype;_.l.computeIsCollapsible=function(F){return!!(((F==null?0:F.showMoreText)||(F==null?0:F.visibleRowCount))&&(F==null?0:F.isCollapsible))};
_.l.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"}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.l.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.l.onIronResize=function(){var F=this;_.aE(this,"updateGridInitItems",function(){F.maybeUpdateInitialItemsDisplayed()})};
_.l.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var F=this.getVisibleWidth();F!==0&&(F=Math.floor(F/214)*(this.data.visibleRowCount||2),F!==this.initialCount&&(this.initialCount=F,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.l.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.l.computeExpandVisible=function(F,q,t,u){return F&&q&&t&&!!u&&!!u.showMoreText};
_.l.computeShowMoreButton=function(F){return{text:F,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.l.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.l.initCollapsed=function(){var F=this;this.ytLazyListBehavior.canShowMore=!1;var q;(this.collapsed=!((q=this.data)==null||!q.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.tJ(this,function(){_.Zl(F.hostElement,"yt-refit-popups-action")})};
_.l.fillRestIfNotCollapsible=function(){var F=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!F||this.ytLazyListBehavior.fillRemainingListItems()};
_.l.computeViewAllHidden=function(F,q){return F||!q.viewAllEndpoint};
rp.prototype.fillRestIfNotCollapsible=rp.prototype.fillRestIfNotCollapsible;rp.prototype.initCollapsed=rp.prototype.initCollapsed;rp.prototype.onIronResize=rp.prototype.onIronResize;rp.prototype.persistentGuideChanged=rp.prototype.persistentGuideChanged;_.C([_.D(_.Vl),_.V("design:type",Object)],rp.prototype,"ironResizableBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],rp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.DO.YtLazyListBehavior),_.V("design:type",Object)],rp.prototype,"ytLazyListBehavior",void 0);_.C([_.D(_.eH.YtNextContinuationBehavior),_.V("design:type",Object)],rp.prototype,"ytNextContinuationBehavior",void 0);_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],rp.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.D(_.Qd),_.V("design:type",Object)],rp.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],rp.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],rp.prototype,"collapsed",void 0);_.C([_.O(),_.V("design:type",Number)],rp.prototype,"initialCount",void 0);_.C([_.O({computed:"computeShowMoreButton(data.showMoreText)"}),_.V("design:type",Object)],rp.prototype,"showMoreButton",void 0);
_.C([_.O({computed:"computeIsCollapsible(data)"}),_.V("design:type",Object)],rp.prototype,"isCollapsible",void 0);_.C([_.Ms("#items"),_.V("design:type",HTMLElement)],rp.prototype,"items",void 0);_.C([_.Wh("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rp.prototype,"persistentGuideChanged",null);_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rp.prototype,"onIronResize",null);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rp.prototype,"initCollapsed",null);_.C([_.Wh("canShowMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rp.prototype,"fillRestIfNotCollapsible",null);_.C([_.m({is:"ytd-grid-renderer",disableElementRegistration:!0})],rp);
_.b(rp,"ytd-grid-renderer",function(){if(Q3w!==void 0)return Q3w;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Q3w=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var Nx=function(){return _.x.apply(this,arguments)||this};
_.M(Nx,_.x);
Nx.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"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Nx.prototype,"data",void 0);_.C([_.m({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Nx);
_.b(Nx,"ytd-carousel-ad-renderer",function(){if(gXC!==void 0)return gXC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return gXC=F},{mode:1});var nXj;var wp=function(){return _.x.apply(this,arguments)||this};
_.M(wp,_.x);_.l=wp.prototype;_.l.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"}}}};
_.l.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,wp.JSC$15353_CLICK_LOCATION_ID_MAP))};
_.l.onSitelinkTap=function(F){F.stopPropagation();var q,t,u=F==null?void 0:(q=F.model)==null?void 0:(t=q.item)==null?void 0:t.onTap;u&&this.ytSparklesClickLocationBehavior.handleClick(u,F,!1)};
_.l.onTap=function(F){var q=this.data&&this.data.content&&this.data.content.navigationEndpoint;q&&this.ytSparklesClickLocationBehavior.handleClick(q,F,!1)};
_.l.sendImpression=function(){if(this.data&&this.data.content)for(var F=_.X(this.data.content.impressionEndpoints||[]),q=F.next();!q.done;q=F.next()){q=_.X(q.value.loggingUrls||[]);for(var t=q.next();!t.done;t=q.next())t=t.value,t.baseUrl&&Bt(t.baseUrl,t.attributionSrcMode)}};
wp.prototype.onTap=wp.prototype.onTap;wp.prototype.dataChanged=wp.prototype.dataChanged;wp.JSC$15353_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"]]);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],wp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.GK.YtSparklesClickLocationBehavior),_.V("design:type",Object)],wp.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],wp.prototype,"data",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wp.prototype,"dataChanged",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],wp.prototype,"onTap",null);_.C([_.m({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],wp);
_.b(wp,"ytd-promoted-sparkles-text-search-renderer",function(){if(nXj!==void 0)return nXj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return nXj=F},{mode:1});var M0w;var i9=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-mute-ad-action":"handleMuteAd"};return F};
_.M(i9,_.x);_.l=i9.prototype;
_.l.configureRendererStamper=function(){return{"data.menu":{id:_.E("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.l.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.l.computeHasAdBadge=function(F){return!(F==null||!F.adBadge)};
_.l.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",i9.JSC$15362_DEFAULT_AD_BADGE_RENDERER),_.RE(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,i9.JSC$15362_CLICK_LOCATION_ID_MAP))};
_.l.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var F;(((F=this.data)==null?void 0:F.impressionCommands)||[]).forEach(function(q){q=_.X(q.loggingUrls||[]);for(var t=q.next();!t.done;t=q.next())t=t.value,t.baseUrl&&Bt(t.baseUrl,t.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.l.onTap=function(F){var q,t=(q=this.data)==null?void 0:q.navigationEndpoint,u;(q=(u=this.data)==null?void 0:u.thumbnailNavigationEndpoint)&&_.u6(_.tY(F),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(q,F,!1):t&&this.ytSparklesClickLocationBehavior.handleClick(t,F,!1)};
_.l.handleMuteAd=function(){this.collapsed=!0};
_.l.attached=function(){var F=this;_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.JJ.Object.defineProperties(i9.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var F;return!(((F=this.data)==null?void 0:F.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var F;return!(((F=this.data)==null?void 0:F.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
i9.prototype.dataChanged=i9.prototype.dataChanged;
i9.JSC$15362_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"]]);
i9.JSC$15362_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.oD("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.C([_.D(JF),_.V("design:type",Object)],i9.prototype,"ytdActiveViewBehavior",void 0);
_.C([_.D([_.$9.YtActionHandlerBehavior]),_.V("design:type",Object)],i9.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.GK.YtSparklesClickLocationBehavior),_.V("design:type",Object)],i9.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],i9.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],i9.prototype,"collapsed",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],i9.prototype,"useBiggerThumbs",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.pE("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],i9.prototype,"biggerThumbsStyle",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.V("design:type",Boolean)],i9.prototype,"fixAlignmentSmallScreens",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs_square")}}),
_.V("design:type",Boolean)],i9.prototype,"useBiggerThumbsSquare",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data.mediaHoverOverlay"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],i9.prototype,"hideHoverOverlay",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],i9.prototype,"webSearchLayout",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],i9.prototype,"webSearchLayoutLandscape",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],i9.prototype,"webSearchLayoutSquare",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],i9.prototype,"sparklesCtaNoBackground",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.actionButton"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],i9.prototype,"hideActionButton",null);_.C([_.O({computed:"computeButtonOverride(uiUpdate)"}),_.V("design:type",Object)],i9.prototype,"buttonOverride",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.V("design:type",Boolean)],i9.prototype,"hasNewAdBadge",void 0);_.C([_.W("data.promotedSparklesWebStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],i9.prototype,"useRoundedBadge",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],i9.prototype,"dataChanged",null);_.C([_.m({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],i9);
_.b(i9,"ytd-promoted-sparkles-web-renderer",function(){if(M0w!==void 0)return M0w;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return M0w=F},{mode:1});var Tbn;var k1=function(){var F=_.x.apply(this,arguments)||this;F.isInlinePreviewTriggered=!1;F.enableMonoStyle=_.E("enable_default_mono_cta_migration_web_client");return F};
_.M(k1,_.x);_.l=k1.prototype;_.l.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]]"}}}}}};
_.l.computeShowCta=function(F){return!(F==null||!F.ctaRenderer)};
_.l.onCtaClick=function(){var F,q,t,u=(F=this.data)==null?void 0:(q=F.ctaRenderer)==null?void 0:(t=q.buttonRenderer)==null?void 0:t.command;u&&this.ytComponentBehavior.resolveCommand(u)};
_.l.onWatchButtonClick=function(){var F,q,t,u=(F=this.data)==null?void 0:(q=F.watchButtonRenderer)==null?void 0:(t=q.buttonRenderer)==null?void 0:t.command;u&&this.ytComponentBehavior.resolveCommand(u)};
_.l.onTap=function(){};
_.l.dataChanged=function(){if(this.data){var F;_.E("enable_inline_muted_playback_on_web_search")&&((F=this.data)==null?0:F.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",k1.JSC$15366_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",k1.JSC$15366_DEFAULT_CLICK_LOCATION_BEHAVIOR,k1.JSC$15366_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(F=this.thumbnail.getElementsByTagName("a"),F.length>0&&(F=F.namedItem("thumbnail"))&&F.removeAttribute("href"))}};
_.l.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var F=_.X(this.data.impressionUrls),q=F.next();!q.done;q=F.next())q=q.value,GCP(q,WWf(q));this.data.impressionsFired=!0}};
_.l.maybeComputeHref=function(){return null};
_.l.computeIsShortDR=function(F){return!(F==null||!F.watchButtonRenderer)&&!(F==null||!F.ctaRenderer)&&!!this.enableShortDR};
_.l.computeIsNewUiOrShortDr=function(F){return!!this.enableUiUpdate||this.computeIsShortDR(F)};
_.l.computeIsNewUiAndNotShortDr=function(F){return!!this.enableUiUpdate&&!this.computeIsShortDR(F)};
_.l.computeHideAvatar=function(F){return!((F==null?0:F.channelThumbnail)&&this.computeIsNewUiOrShortDr(F))};
_.l.onClick=function(F){var q,t=(q=this.data)==null?void 0:q.navigationEndpoint;if(this.enableShortDR&&t&&(_.n(t,_.Fw)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(t,F,!!_.n(t,_.Fw)),F.stopPropagation();else if(t&&_.n(t,_.Fw))this.ytSparklesClickLocationBehavior.handleClick(t,F,!0),F.stopPropagation();else if(t){var u,J;((u=this.data)==null?0:u.navigationEndpoint)&&((J=this.data)==null?0:J.adPlaybackContextParams)&&(q=this.data.navigationEndpoint,F=this.data.adPlaybackContextParams,
q.commandMetadata&&_.n(q.commandMetadata,_.EH)&&_.n(q.commandMetadata,_.EH).url&&(q=_.fI(_.n(q.commandMetadata,_.EH).url).adurl)&&_.Wjy(q)&&_.JV(_.LB(q),{encoded_ad_playback_context:F}));this.ytComponentBehavior.resolveCommand(t)}};
_.l.computeButtonOverride=function(F){if(this.computeIsNewUiOrShortDr(F))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.l.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.l.onThumbnailContainerClick=function(F){this.onClick(F)};
_.l.computeThumbnailWidth=function(F,q){return F?q==="MASSIVE"?600:q==="BIG"?500:q==="MEDIUM"?450:420:360};
_.l.attached=function(){var F=this,q;_.E("enable_inline_muted_playback_on_web_search")&&((q=this.data)==null?0:q.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){var F;_.E("enable_inline_muted_playback_on_web_search")&&((F=this.data)==null?0:F.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15367_inlinePreviewHoverListener=Vg({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:yHx})};
_.l.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$15367_inlinePreviewHoverListener)==null||cZ(F)};
k1.prototype.dataChanged=k1.prototype.dataChanged;k1.prototype.onTap=k1.prototype.onTap;k1.JSC$15366_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.oD("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};k1.JSC$15366_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
k1.JSC$15366_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"}];_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],k1.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.C([_.D(JF),_.V("design:type",Object)],k1.prototype,"ytdActiveViewBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],k1.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.GK.YtSparklesClickLocationBehavior),_.V("design:type",Object)],k1.prototype,"ytSparklesClickLocationBehavior",void 0);
_.C([_.Ms("#main-container"),_.V("design:type",HTMLElement)],k1.prototype,"mainContainer",void 0);_.C([_.O(),_.V("design:type",Object)],k1.prototype,"isInlinePreviewTriggered",void 0);_.C([_.O(),_.V("design:type",Object)],k1.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],k1.prototype,"useBiggerThumbs",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("enable_video_display_compact_button_group_for_desktop_search")}}),
_.V("design:type",Boolean)],k1.prototype,"enableShortDR",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("enable_vac_ui_update_for_desktop_search")}}),
_.V("design:type",Boolean)],k1.prototype,"enableUiUpdate",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.pE("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],k1.prototype,"biggerThumbsStyle",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.V("design:type",Boolean)],k1.prototype,"showCta",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.V("design:type",Boolean)],k1.prototype,"isShortDr",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.V("design:type",Boolean)],k1.prototype,"isShortDrOrNewUi",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.V("design:type",Boolean)],k1.prototype,"isNewUiAndNotShortDr",void 0);_.C([_.O({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],k1.prototype,"buttonOverride",void 0);_.C([_.O({computed:"computeSecondaryButtonOverride(data)"}),_.V("design:type",Object)],k1.prototype,"secondaryButtonOverride",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],k1.prototype,"enableMonoStyle",void 0);
_.C([_.Ms("ytd-thumbnail"),_.V("design:type",HTMLElement)],k1.prototype,"thumbnail",void 0);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k1.prototype,"onTap",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k1.prototype,"dataChanged",null);_.C([_.m({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],k1);
_.b(k1,"ytd-promoted-video-renderer",function(){if(Tbn!==void 0)return Tbn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Tbn=F},{mode:1});var GFj;var Em=function(){var F=_.x.apply(this,arguments)||this;F.useRoundedBadge=!0;F.sitelinkIds=[];return F};
_.M(Em,_.x);_.l=Em.prototype;
_.l.configureRendererStamper=function(){return{"data.menu":{id:_.E("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.l.dataChanged=function(){var F;(F=this.data)!=null&&F.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Em.JSC$15372_CLICK_LOCATION_ID_MAP)};
_.l.onTap=function(F){var q,t=(q=this.data)==null?void 0:q.navigationCommand;t&&!_.u6(_.tY(F),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(t,F,!1)};
_.l.onSitelinkTap=function(F){var q,t,u=F==null?void 0:(q=F.model)==null?void 0:(t=q.item)==null?void 0:t.onTap;u&&this.ytSparklesClickLocationBehavior.handleClick(u,F,!1)};
_.l.configureSitelinkClickTargets=function(){var F=this,q,t,u=(q=this.data)==null?void 0:(t=q.clickLocationTargets)==null?void 0:t.find(function(J){return J.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
u&&_.ep(this.hostElement).querySelectorAll(".sitelink").forEach(function(J){_.RE(J,"yt-simple-endpoint",!0);F.sitelinkIds.push(J.id);var g,Y;(g=F.ytSparklesClickLocationBehavior)==null||(Y=g.clickTargetMap)==null||Y.set(J.id,u)})};
_.l.sendImpression=function(){var F,q,t=((F=this.data)==null?void 0:(q=F.impressionCommand)==null?void 0:q.loggingUrls)||[];F=_.X(t);for(q=F.next();!q.done;q=F.next())q=q.value,q.baseUrl&&Bt(q.baseUrl,q.attributionSrcMode)};
_.l.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.JJ.Object.defineProperties(Em.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Em.prototype.onTap=Em.prototype.onTap;Em.prototype.dataChanged=Em.prototype.dataChanged;Em.JSC$15372_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"]]);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Em.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.GK.YtSparklesClickLocationBehavior),_.V("design:type",Object)],Em.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Em.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Em.prototype,"showFavicon",null);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],Em.prototype,"useBiggerThumbs",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.pE("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],Em.prototype,"biggerThumbsStyle",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.V("design:type",Boolean)],Em.prototype,"enableThumbnailScalingFix",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Em.prototype,"dataChanged",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Em.prototype,"onTap",null);_.C([_.m({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Em);
_.b(Em,"ytd-text-image-no-button-layout-renderer",function(){if(GFj!==void 0)return GFj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return GFj=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var D5C;var z2=function(){var F=_.x.apply(this,arguments)||this;F.isInlinePlaybackState=!1;F.uiUpdate=_.E("web_modern_buttons");F.hideCta=_.E("hide_cta_for_home_web_video_ads");F.noBottomMargin=!1;F.animateInTimeStamp=_.YE("hide_cta_for_home_web_video_ads_animate_in_time");F.animateInCta=!1;F.isHovered=!1;F.enableMonoStyle=_.E("enable_default_mono_cta_migration_web_client");F.player=null;F.JSC$15379_playerEvents=new Map;F.JSC$15379_preventProgressSaveTimer=null;F.delayedCtaJobId=null;return F};
_.M(z2,_.x);_.l=z2.prototype;_.l.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]]"}}}}}};
_.l.attached=function(){this.JSC$15379_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15379_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.E("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.l.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15379_playerEvents)};
_.l.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",z2.JSC$15378_DEFAULT_CLICK_LOCATION_BEHAVIOR,z2.JSC$15378_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.l.hoverChanged=function(){var F=this;this.delayedCtaJobId&&(_.mI.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.E("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.AC(_.mI,function(){F.buttonContainer.classList.add("show-delayed-buttons")},_.YE("delayed_cta_on_web_delay_milliseconds")))};
_.l.setPlayer=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return(q=_.Zl(F.hostElement,"yt-get-inline-preview-player-action"))&&q[0]?t.yield(q[0].getPlayerPromise(),3):t.jumpTo(0);F.player=t.yieldResult;F.ytPlayerListenerBehavior.listenToPlayerEvents(F.player,F.JSC$15379_playerEvents);_.WA(t)})};
_.l.onPlaybackStart=function(){var F=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15379_preventProgressSaveTimer=_.wC(_.mI,function(){F.JSC$15379_preventProgressSaveTimer=null},1E4))};
_.l.onVideoProgress=function(F){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&F>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.l.resetPreventProgressSaveTimer=function(){_.mI.cancelJob(this.JSC$15379_preventProgressSaveTimer);this.JSC$15379_preventProgressSaveTimer=null};
_.l.getSimpleString=function(F){return _.q1(F)};
_.l.onClick=function(F){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var q,t=(q=this.data)==null?void 0:q.navigationEndpoint,u;q=(u=this.data)==null?void 0:u.channelEndpoint;var J,g;(u=(g=_.n((J=this.data)==null?void 0:J.adCtaButton,_.th))==null?void 0:g.command)&&_.u6(_.tY(F),this.hostElement,["call-to-action"])?_.E("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(u,F,!1):q&&_.u6(_.tY(F),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(q,F,!1):!_.u6(_.tY(F),this.hostElement,["secondary-button"])&&t&&(_.E("enable_short_dr_for_desktop_launchable")?(J=!!_.n(t,_.Fw),this.isInlinePlaybackState&&J&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(t,F,J)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(t,F,!0)))}};
_.l.updateWatchEndpointStartTime=function(){var F,q;this.player&&((F=this.data)==null?0:F.inlinePlaybackEndpoint)&&((q=this.data)==null?0:q.navigationEndpoint)&&!this.JSC$15379_preventProgressSaveTimer&&(F=Math.floor(this.player.getCurrentTime()),_.n(this.data.navigationEndpoint,_.Fw).startTimeSeconds=F,_.n(this.data.inlinePlaybackEndpoint,_.Fw).startTimeSeconds=F)};
_.l.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.l.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.JJ.Object.defineProperties(z2.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.E("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var F,q;return!((F=this.data)==null||!F.watchButton)&&!((q=this.data)==null||!q.adCtaButton)}}});
z2.prototype.hoverChanged=z2.prototype.hoverChanged;z2.prototype.dataChanged=z2.prototype.dataChanged;
z2.JSC$15378_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"]]);
z2.JSC$15378_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"}];
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],z2.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.GK.YtSparklesClickLocationBehavior),_.V("design:type",Object)],z2.prototype,"ytSparklesClickLocationBehavior",void 0);
_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],z2.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],z2.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],z2.prototype,"isInlinePlaybackState",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],z2.prototype,"miniMode",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],z2.prototype,"uiUpdate",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],z2.prototype,"hideCta",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],z2.prototype,"noBottomMargin",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],z2.prototype,"animateInCta",void 0);_.C([_.O({computed:"computeButtonOverride(uiUpdate)"}),_.V("design:type",Object)],z2.prototype,"buttonOverride",void 0);
_.C([_.O({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.V("design:type",Object)],z2.prototype,"secondaryButtonOverride",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],z2.prototype,"isHovered",void 0);_.C([_.Ms("#button-container"),_.V("design:type",HTMLElement)],z2.prototype,"buttonContainer",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],z2.prototype,"typographyBump",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("typographyBump"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],z2.prototype,"typographyBumpV2",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],z2.prototype,"enableMonoStyle",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z2.prototype,"dataChanged",null);
_.C([_.za("isHovered"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z2.prototype,"hoverChanged",null);_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],z2.prototype,"isButtonGroup",null);_.C([_.m({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],z2);
_.b(z2,"ytd-ad-inline-playback-meta-block",function(){if(D5C!==void 0)return D5C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return D5C=F},{mode:_.Nc("kevlar_poly_si_batch_j065")?1:2});var Www;var oo=function(){var F=_.x.apply(this,arguments)||this;F.noBottomMargin=!1;F.isInlinePreviewTriggered=!1;F.JSC$15384_activeViewMeasurementDataResolver=_.ji();return F};
_.M(oo,_.x);_.l=oo.prototype;_.l.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.attached=function(){var F=this;this.updateInlinePreviewHoverListeners();this.JSC$15384_activeViewMeasurementDataResolver.promise.then(function(q){F.ytdActiveViewBehavior.enableActiveViewMeasurement(q,15)});
_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){this.clearInlinePreviewHoverListeners();_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15384_inlinePreviewHoverListener=Vg({mediaRenderer:this,lockupElement:this.JSC$15384_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:yHx})};
_.l.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$15384_inlinePreviewHoverListener)==null||cZ(F)};
_.l.onDataChanged=function(){var F;((F=this.data)==null?0:F.activeView)&&this.JSC$15384_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",oo.JSC$15383_DEFAULT_CLICK_LOCATION_BEHAVIOR,oo.JSC$15383_CLICK_LOCATION_ID_MAP);this.thumbnail&&(F=this.thumbnail.getElementsByTagName("a"),F.length>0&&(F=F.namedItem("thumbnail"))&&F.removeAttribute("href"));var q;if((q=this.data)==
null?0:q.forceImpAutoplay){var t;(t=this.JSC$15384_inlinePreviewHoverListener)==null||QUy(t)}};
_.l.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.l.onThumbnailContainerClick=function(F){if(this.data&&this.data.navigationEndpoint){var q,t=(q=this.data)==null?void 0:q.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(t,F,!!_.n(t,_.Fw));F.stopPropagation()}};
_.l.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.l.impressionLog=function(){var F=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var q,t,u=(t=_.n((q=this.data)==null?void 0:q.onImpression,_.wY))==null?void 0:t.commands;u&&(u.forEach(function(J){J.clickTrackingParams&&delete J.clickTrackingParams;F.ytComponentBehavior.resolveCommand(J)}),this.data.impressionsFired=!0)}};
_.JJ.Object.defineProperties(oo.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$15384_inlinePreviewHoverListener)==null?0:si(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
oo.prototype.onTypographyBumpChanged=oo.prototype.onTypographyBumpChanged;oo.prototype.onDataChanged=oo.prototype.onDataChanged;oo.JSC$15383_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);oo.JSC$15383_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"}];
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],oo.prototype,"ytComponentBehavior",void 0);_.C([_.D(JF),_.V("design:type",Object)],oo.prototype,"ytdActiveViewBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],oo.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.D(_.r8),_.V("design:type",Object)],oo.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],oo.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.GK.YtSparklesClickLocationBehavior),_.V("design:type",Object)],oo.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],oo.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],oo.prototype,"noBottomMargin",void 0);
_.C([_.O(),_.V("design:type",Object)],oo.prototype,"isInlinePreviewTriggered",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],oo.prototype,"miniMode",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],oo.prototype,"typographyBump",void 0);_.C([_.Ms("ytd-thumbnail"),_.V("design:type",HTMLElement)],oo.prototype,"thumbnail",void 0);_.C([_.Ms("#dismissible"),_.V("design:type",HTMLElement)],oo.prototype,"JSC$15384_dismissibleMedia",void 0);
_.C([_.Ms("ytd-ad-inline-playback-meta-block"),_.V("design:type",HTMLElement)],oo.prototype,"adInlinePlaybackMetaBlock",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oo.prototype,"onDataChanged",null);_.C([_.Wh("typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oo.prototype,"onTypographyBumpChanged",null);
_.C([_.W("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],oo.prototype,"isHovered",null);_.C([_.m({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],oo);
_.b(oo,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(Www!==void 0)return Www;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Www=F},{mode:1});var OmO;var ny=function(){var F=_.x.apply(this,arguments)||this;F.isInlinePreviewTriggered=!1;F.JSC$15387_activeViewMeasurementDataResolver=_.ji();return F};
_.M(ny,_.x);_.l=ny.prototype;_.l.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.attached=function(){var F=this;this.updateInlinePreviewHoverListeners();this.JSC$15387_activeViewMeasurementDataResolver.promise.then(function(q){F.ytdActiveViewBehavior.enableActiveViewMeasurement(q,15)})};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15387_inlinePreviewHoverListener=Vg({mediaRenderer:this,lockupElement:this.JSC$15387_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:yHx})};
_.l.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$15387_inlinePreviewHoverListener)==null||cZ(F)};
_.l.onDataChanged=function(){var F;((F=this.data)==null?0:F.activeView)&&this.JSC$15387_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",ny.JSC$15386_DEFAULT_CLICK_LOCATION_BEHAVIOR,ny.JSC$15386_CLICK_LOCATION_ID_MAP);this.thumbnail&&(F=this.thumbnail.getElementsByTagName("a"),F.length>0&&(F=F.namedItem("thumbnail"))&&F.removeAttribute("href"))};
_.l.onThumbnailContainerClick=function(F){if(this.data&&this.data.navigationEndpoint){var q,t=(q=this.data)==null?void 0:q.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(t,F,!0);F.stopPropagation()}};
_.l.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.l.impressionLog=function(){var F=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var q,t,u=(t=_.n((q=this.data)==null?void 0:q.onImpression,_.wY))==null?void 0:t.commands;u&&(u.forEach(function(J){J.clickTrackingParams&&delete J.clickTrackingParams;_.sV().resolve(_.gN).resolveCommand(J,{form:{element:F.hostElement}})}),this.data.impressionsFired=!0)}};
_.JJ.Object.defineProperties(ny.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$15387_inlinePreviewHoverListener)==null?0:si(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ny.prototype.onDataChanged=ny.prototype.onDataChanged;ny.JSC$15386_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);ny.JSC$15386_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"}];_.C([_.D(JF),_.V("design:type",Object)],ny.prototype,"ytdActiveViewBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ny.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],ny.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],ny.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],ny.prototype,"ytdReduxBehavior",void 0);
_.C([_.D(_.GK.YtSparklesClickLocationBehavior),_.V("design:type",Object)],ny.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ny.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],ny.prototype,"isInlinePreviewTriggered",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],ny.prototype,"miniMode",void 0);_.C([_.Ms("ytd-thumbnail"),_.V("design:type",HTMLElement)],ny.prototype,"thumbnail",void 0);
_.C([_.Ms("#dismissible"),_.V("design:type",HTMLElement)],ny.prototype,"JSC$15387_dismissibleMedia",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ny.prototype,"onDataChanged",null);_.C([_.W("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ny.prototype,"isHovered",null);_.C([_.m({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],ny);
_.b(ny,"ytd-video-display-full-buttoned-renderer",function(){if(OmO!==void 0)return OmO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return OmO=F},{mode:1});var gI=function(F,q,t,u){u=u===void 0?!1:u;_.Fq.call(this,F);this.adsClientErrorMessage=t;this.aggressivelySample=u;this.args=[];q&&this.args.push(q)};
_.M(gI,_.Fq);var Ji=function(F,q,t,u){u=u===void 0?!1:u;_.Fq.call(this,F);this.adsClientErrorMessage=t;this.aggressivelySample=u;this.args=[];q&&this.args.push(q)};
_.M(Ji,_.Fq);var PAd=function(F){_.OP.call(this);var q=this;this.initializationFunction=F;this.instance=null;this.addOnDisposeCallback(function(){_.sP(q.instance);q.instance=null})};
_.M(PAd,_.OP);PAd.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.fH("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var SJy=function(){var F=new Map;[].forEach(function(q){F.set(q.JSC$30434_getType(),q)});
this.getters=F};new Promise(function(){});var ysu=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"]]),$Qu=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"}]]),x5x=function(F){this.experimentApiProvider=F;F=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=F<.1};var Mx=function(F,q,t,u){_.OP.call(this);this.adsControlFlowEventListeners=q;this.adEventLogger=t;this.experimentApiProvider=u;this.adsControlFlowManagerHelper=F(this,this,this,this,this);_.kW(this,this.adsControlFlowManagerHelper);F=_.X(q);for(q=F.next();!q.done;q=F.next())_.kW(this,q.value)};
_.M(Mx,_.OP);var Azr=function(F,q,t,u){T2(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",q,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,u);F=_.X(F.adsControlFlowEventListeners);for(u=F.next();!u.done;u=F.next())Azr(u.value,q,t)};
_.l=Mx.prototype;_.l.onOpportunityProcessedExternallyManaged=function(F,q,t,u){T2(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",F,t,q,void 0,void 0,void 0,void 0,void 0,void 0,void 0,u)};
_.l.onSlotReceivedExternallyManaged=function(F,q){G2(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",F,q)};
_.l.onSlotEntered=function(F){if(DL(this.adsControlFlowManagerHelper,F)!=null){G2(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",F);this.adsControlFlowManagerHelper.onSlotEntered(F);for(var q=_.X(this.adsControlFlowEventListeners),t=q.next();!t.done;t=q.next())t.value.onSlotEntered(F);if(DL(this.adsControlFlowManagerHelper,F)!=null&&DL(this.adsControlFlowManagerHelper,F).isOccupyingSlotType()&&WY(this.adsControlFlowManagerHelper,F)&&!vXz(this.adsControlFlowManagerHelper,F)){var u;Om(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",F,(u=WY(this.adsControlFlowManagerHelper,F))!=null?u:void 0);F=DL(this.adsControlFlowManagerHelper,F);F.slotLifecycleStage!=="entered"&&PY(F.slot,F.slotLifecycleStage,"enterLayoutForSlot");F.slotLifecycleStage="rendering";F.registeredLayoutRenderingAdapter.startRendering(F.layout)}}};
_.l.onSlotExited=function(F){if(DL(this.adsControlFlowManagerHelper,F)!=null){G2(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",F);this.adsControlFlowManagerHelper.onSlotExited(F);for(var q=_.X(this.adsControlFlowEventListeners),t=q.next();!t.done;t=q.next())t.value.onSlotExited(F);DL(this.adsControlFlowManagerHelper,F)!=null&&DL(this.adsControlFlowManagerHelper,F).markedForUnscheduleAfterOutboundAdapterRequests&&Ibe(this,F)}};
_.l.onLayoutReceivedExternallyManaged=function(F,q,t){F.managerLayer!=="core"&&Om(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",F,q,t)};
var Hmr=function(F,q,t){if(DL(F.adsControlFlowManagerHelper,q)!=null){Om(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",q,t);F=_.X(F.adsControlFlowEventListeners);for(var u=F.next();!u.done;u=F.next())Hmr(u.value,q,t)}};
Mx.prototype.onLayoutExited=function(F,q,t){if(DL(this.adsControlFlowManagerHelper,F)!=null){Om(this.adEventLogger,bFC(t),F,q);this.adsControlFlowManagerHelper.onLayoutExited(F,q);for(var u=_.X(this.adsControlFlowEventListeners),J=u.next();!J.done;J=u.next())J.value.onLayoutExited(F,q,t);(t=WY(this.adsControlFlowManagerHelper,F))&&q.layoutId===t.layoutId&&m5z(this,F)}};
Mx.prototype.disposeInternal=function(){var F=$5x(this.adsControlFlowManagerHelper);F=_.X(F);for(var q=F.next();!q.done;q=F.next())Ibe(this,q.value);_.OP.prototype.disposeInternal.call(this)};
var Ibe=function(F,q){if(DL(F.adsControlFlowManagerHelper,q)!=null)if(DL(F.adsControlFlowManagerHelper,q).JSC$30464_isSlotExitRequested()||DL(F.adsControlFlowManagerHelper,q).JSC$30464_isLayoutExitRequested())DL(F.adsControlFlowManagerHelper,q).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(DL(F.adsControlFlowManagerHelper,q).isOccupyingSlotType())DL(F.adsControlFlowManagerHelper,q).markedForUnscheduleAfterOutboundAdapterRequests=!0,m5z(F,q);else if(DL(F.adsControlFlowManagerHelper,q).JSC$30464_isSlotFillRequested())DL(F.adsControlFlowManagerHelper,
q).markedForUnscheduleAfterOutboundAdapterRequests=!0,DL(F.adsControlFlowManagerHelper,q)!=null&&(G2(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",q),q=DL(F.adsControlFlowManagerHelper,q),q.fulfillmentLifecycleStage="fill_cancel_requested",q.registeredFulfillmentAdapter.cancelSlotFilling());else{var t=WY(F.adsControlFlowManagerHelper,q),u;F.experimentApiProvider.get();(u=_.E("h5_enable_layout_unscheduling_events"))&&(t?bmL(F,q,t):_.fH(Error("Jh"),q,t,void 0,!1));G2(F.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",q);var J=DL(F.adsControlFlowManagerHelper,q),g=q.slotEntryTrigger,Y=J.registeredSlotEntryTriggerAdapters.get(g.triggerId);Y&&(Y.unregisterTrigger(g),J.registeredSlotEntryTriggerAdapters.delete(g.triggerId));g=_.X(q.slotFulfillmentTriggers);for(Y=g.next();!Y.done;Y=g.next()){Y=Y.value;var Q=J.registeredFulfillmentTriggerAdapters.get(Y.triggerId);Q&&(Q.unregisterTrigger(Y),J.registeredFulfillmentTriggerAdapters.delete(Y.triggerId))}g=_.X(q.slotExpirationTriggers);
for(Y=g.next();!Y.done;Y=g.next())if(Y=Y.value,Q=J.registeredExpirationTriggerAdapters.get(Y.triggerId))Q.unregisterTrigger(Y),J.registeredExpirationTriggerAdapters.delete(Y.triggerId);J.hasLayout()&&(g=J.layout,x1(J,g.layoutExitNormalTriggers),x1(J,g.layoutExitSkipTriggers),x1(J,g.layoutExitMuteTriggers),x1(J,g.layoutExitUserInputSubmittedTriggers),x1(J,g.layoutExitUserCancelledTriggers));J.registeredFulfillmentAdapter=void 0;J.registeredSlotAdapter!=null&&(J.registeredSlotAdapter.release(),J.registeredSlotAdapter=
void 0);J.registeredLayoutRenderingAdapter!=null&&(J.registeredLayoutRenderingAdapter.release(),J.registeredLayoutRenderingAdapter=void 0);J=F.adsControlFlowManagerHelper;DL(J,q)&&(J=yz1(J,q.slotType+"_"+q.slotPhysicalPosition))&&J.delete(q.slotId);G2(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",q);F=_.X(F.adsControlFlowEventListeners);for(J=F.next();!J.done;J=F.next())J=J.value,J.onSlotUnscheduled(q),t&&!u&&bmL(J,q,t)}},bmL=function(F,q,t){Om(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
q,t);
Om(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",q,t);F=_.X(F.adsControlFlowEventListeners);for(var u=F.next();!u.done;u=F.next())u=u.value,t&&bmL(u,q,t)},m5z=function(F,q){if(DL(F.adsControlFlowManagerHelper,q)!=null&&DL(F.adsControlFlowManagerHelper,q).isOccupyingSlotType()){var t=WY(F.adsControlFlowManagerHelper,q);
if(t&&vXz(F.adsControlFlowManagerHelper,q)){if(DL(F.adsControlFlowManagerHelper,q)!=null){var u=F.adEventLogger,J;var g=((J=$Qu.get("abandoned"))==null?void 0:J.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Om(u,g,q,t);F=DL(F.adsControlFlowManagerHelper,q);F.slotLifecycleStage!=="rendering"&&PY(F.slot,F.slotLifecycleStage,"exitLayout");F.slotLifecycleStage="rendering_stop_requested";F.registeredLayoutRenderingAdapter.stopRendering(t,"abandoned")}}else{G2(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
q);try{u=DL(F.adsControlFlowManagerHelper,q);if(!u)throw new Ji("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");u.slotLifecycleStage!=="enter_requested"&&u.slotLifecycleStage!=="entered"&&u.slotLifecycleStage!=="rendering"&&PY(u.slot,u.slotLifecycleStage,"exitSlot");u.slotLifecycleStage="exit_requested";if(u.registeredSlotAdapter===void 0)throw u.slotLifecycleStage="scheduled",new Ji("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
u.registeredSlotAdapter.exit()}catch(Y){Y instanceof Ji&&Y.adsClientErrorMessage?(CA1(F.adEventLogger,Y.adsClientErrorMessage,q),_.fH(Y,q,void 0,void 0,Y.aggressivelySample)):(CA1(F.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",q),_.fH(Y,q))}}}};var Ar=function(F,q,t,u,J,g){_.OP.call(this);this.registry=F;this.experimentApiProvider=g;this.slotMap=new Map};
_.M(Ar,_.OP);var yz1=function(F,q){return(F=F.slotMap.get(q))?F:new Map},DL=function(F,q){return yz1(F,q.slotType+"_"+q.slotPhysicalPosition).get(q.slotId)},$5x=function(F){var q=[];
F.slotMap.forEach(function(t){t=_.X(t.values());for(var u=t.next();!u.done;u=t.next())q.push(u.value.slot)});
return q};
Ar.prototype.onSlotEntered=function(F){F=DL(this,F);F.slotLifecycleStage!=="enter_requested"&&PY(F.slot,F.slotLifecycleStage,"onSlotEntered");F.slotLifecycleStage="entered"};
var vXz=function(F,q){F=DL(F,q);return F.hasLayout()&&F.isRendering()},WY=function(F,q){(F=DL(F,q))?F.hasLayout()&&!F.layout&&_.fH("Unexpected empty layout",q):_.fH("Unexpected undefined slotState",q);
return(F==null?void 0:F.layout)||null};
Ar.prototype.onSlotExited=function(F){F=DL(this,F);F.slotLifecycleStage!=="exit_requested"&&PY(F.slot,F.slotLifecycleStage,"onSlotExited");F.slotLifecycleStage="scheduled"};
Ar.prototype.onLayoutExited=function(F,q){F=DL(this,F);F.isPrimaryLayout(q)&&(F.slotLifecycleStage!=="rendering_stop_requested"&&PY(F.slot,F.slotLifecycleStage,"onLayoutExited"),F.slotLifecycleStage="entered")};
var x1=function(F,q){q=_.X(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u=F.registeredLayoutExitTriggerAdapters.get(t.triggerId);u&&(u.unregisterTrigger(t),F.registeredLayoutExitTriggerAdapters.delete(t.triggerId))}},PY=function(F,q,t){_.fH("Slot stage was "+q+" when calling method "+t,F)};var V0C=function(F){_.OP.call(this);this.deps=F;this.JSC$15437_adsControlFlowManager=d5v(this)};
_.M(V0C,_.OP);var d5v=function(F){var q=new Mx(function(t,u,J,g){return new Ar(F.deps.registry,t,u,J,g,F.deps.experimentApiProvider)},new Set(UQA(F.deps.registry).concat(F.deps.listeners)),F.deps.adEventLogger,F.deps.experimentApiProvider);
_.kW(F,q);return q};var voC=function(){};var U5f=function(F,q){_.OP.call(this);this.experimentApiProvider=F;this.eventLoggingSettingsProvider=q;this.eventCount=0;this.premiumAdSeenEventLogger=IlC()()};
_.M(U5f,_.OP);U5f.prototype.logEvent=function(F){T2(this,F)};
var G2=function(F,q,t,u){T2(F,q,void 0,void 0,void 0,t,void 0,void 0,void 0,t.adSlotLoggingData,void 0,void 0,u)},Om=function(F,q,t,u,J){T2(F,q,void 0,void 0,void 0,t,u?u:void 0,void 0,void 0,t.adSlotLoggingData,u?u.adLayoutLoggingData:void 0,void 0,J);
t=_.sV().resolve(_.JU(OD))==null?void 0:P2();q=t==null?void 0:t.adsSeenHotConfig;t=t==null?void 0:t.adsHotConfig;(q==null?0:q.logOnAdsSeen)&&(t==null?0:t.webEnablePremiumAdsSeenLogging)&&S21(F,u?u:void 0,J)},CA1=function(F,q,t){T2(F,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,t,void 0,void 0,void 0,t.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:q})},T2=function(F,q,t,u,J,g,Y,Q,e,r,N,w,k){k=k===void 0?0:k;
hIJ(F.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+q,"slot:",g,"layout:",Y,"ping:",Q,"Opportunity:",{opportunityType:t,associatedSlotId:u,slotsFromOpportunity:J,triggerBundle:e,adSlotLoggingData:r,adLayoutLoggingData:N});try{var z=function(){F.experimentApiProvider.get();if(q!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){q||_.fH("Empty PACF event type",g,Y);var T=F.eventLoggingSettingsProvider.get();var P;(P=T.alwaysIncludeDebugData)||(T.experimentApiProvider.get(),P=
!1);T=P;P={eventType:q,eventOrder:++F.eventCount};var v={};g&&(v.slotData=dQy(T,g));if(Y){var H={type:Y.layoutType,controlFlowManagerLayer:ysu.get(Y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};T&&(H.debugData={layoutId:Y.layoutId});v.layoutData=H}Q&&(v.pingData={pingDispatchStatus:Q.dispatchStatus,serializedAdPingMetadata:Q.ping.serializedAdPingMetadata,pingIndex:Q.index});e&&(v.triggerData=Chv(e.trigger,e.category));t&&(v.opportunityData=VBC(T,t,u,J));P.adClientData=v;r&&(P.serializedSlotAdServingData=
r.serializedSlotAdServingDataEntry);N&&(P.serializedAdServingData=N.serializedAdServingDataEntry);w&&(P.errorInfo=w);_.IJ("adsClientStateChange",{adsClientEvent:P})}};
k&&k>0?_.W2(_.Gx(),function(){return z()},k):z()}catch(T){hIJ(F.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.W2(_.Gx(),function(){_.fH(T instanceof Error?T:String(T),g,Y,{pacf_message:"exception during pacf logging"})})}},S21=function(F,q,t){if(q){var u=q.adLayoutLoggingData;
_.W2(_.Gx(),function(){F.premiumAdSeenEventLogger!=null&&u&&_.IJ("adsSeenClientLogging",{serializedAdServingDataEntry:u.serializedAdServingDataEntry})},t!=null?t:0)}};var Kwv=function(F,q){U5f.call(this,F,q)};
_.M(Kwv,U5f);var BbL=function(){},hIJ=function(F,q){return _.E(q)};var fbv=function(){var F=new Lwf;this.JSC$15462_adsControlFlowManager=(new V0C(F)).JSC$15437_adsControlFlowManager},Lwf=function(){_.OP.call(this);
var F=this;this.experimentApiProvider=new PAd(function(){return new BbL});
var q=new PAd(function(){return new x5x(F.experimentApiProvider)});
this.adEventLogger=new Kwv(this.experimentApiProvider,q);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.M(Lwf,_.OP);var abr=function(){},j3x,vY=function(){j3x||(j3x=new abr);
return j3x},Io=function(F){if(!F.JSC$15473_externallyManagedSlotAdapterCallback){var q=(new fbv).JSC$15462_adsControlFlowManager;
F.JSC$15473_externallyManagedSlotAdapterCallback=q}return F.JSC$15473_externallyManagedSlotAdapterCallback},czJ=function(F,q,t){var u=q.opportunityType,J=Error("Kh");
if(u!==void 0){var g=Io(F);Azr(g,u,void 0,t)}else _.fH(J,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});g=[];if(q.adSlotAndLayoutMetadata!==void 0){q=_.X(q.adSlotAndLayoutMetadata);for(var Y=q.next();!Y.done;Y=q.next()){var Q=Y.value;if(Y=Q.adSlotMetadata)if(g.push(Y),F.onSlotReceivedExternallyManaged(Y,t),Q.adLayoutMetadata){Q=_.X(Q.adLayoutMetadata);for(var e=Q.next();!e.done;e=Q.next())F.onLayoutReceivedExternallyManaged(Y,e.value,t)}else t>0&&_.fH("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
u,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else t>0&&_.fH("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+u,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else t>0&&_.fH("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+u,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(u!==void 0)F.onOpportunityProcessedExternallyManaged(u,g,void 0,t);else _.fH(J,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
abr.prototype.onSlotReceivedExternallyManaged=function(F,q){F=so(F);if(F instanceof Ji)_.fH(F,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Io(this).onSlotReceivedExternallyManaged(F,q)};
abr.prototype.onLayoutReceivedExternallyManaged=function(F,q,t){F=so(F);q=hwM(q);if(F instanceof Ji)_.fH(F,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(q instanceof gI)_.fH(q,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Io(this).onLayoutReceivedExternallyManaged(F,q,t)};
abr.prototype.onOpportunityProcessedExternallyManaged=function(F,q,t,u){var J=[];q=_.X(q);for(var g=q.next();!g.done;g=q.next())g=so(g.value),g instanceof Ji?_.fH(g,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):J.push(g);Io(this).onOpportunityProcessedExternallyManaged(F,J,t,u)};
var FQ1=function(F,q){q=so(q);if(q instanceof Ji)_.fH(q,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var t=Io(F);G2(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",q);t=_.X(t.adsControlFlowEventListeners);for(var u=t.next();!u.done;u=t.next())u=DL(u.value,q),u.slotLifecycleStage!=="not_scheduled"&&PY(u.slot,u.slotLifecycleStage,"onSlotScheduled"),u.slotLifecycleStage="scheduled";F=Io(F);G2(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",q);F=_.X(F.adsControlFlowEventListeners);
for(t=F.next();!t.done;t=F.next())t.value.onSlotEntered(q)}},qGC=function(F,q){q=so(q);
if(q instanceof Ji)_.fH(q,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var t=Io(F);G2(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",q);t=_.X(t.adsControlFlowEventListeners);for(var u=t.next();!u.done;u=t.next())u.value.onSlotExited(q);F=Io(F);G2(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",q);F=_.X(F.adsControlFlowEventListeners);for(t=F.next();!t.done;t=F.next())t.value.onSlotUnscheduled(q)}},tPC=function(F,q,t){q=so(q);
t=hwM(t);if(q instanceof Ji)_.fH(q,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(t instanceof gI)_.fH(t,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var u=Io(F);Om(u.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",q,t);u=_.X(u.adsControlFlowEventListeners);for(var J=u.next();!J.done;J=u.next())J.value.onLayoutScheduled(q,t);F=Io(F);Om(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",q,t);F=_.X(F.adsControlFlowEventListeners);
for(u=F.next();!u.done;u=F.next())Hmr(u.value,q,t)}},HY=function(F,q,t){q=so(q);
t=hwM(t);if(q instanceof Ji)_.fH(q,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(t instanceof gI)_.fH(t,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var u=Io(F);Om(u.adEventLogger,bFC("normal"),q,t);u=_.X(u.adsControlFlowEventListeners);for(var J=u.next();!J.done;J=u.next())J.value.onLayoutExited(q,t,"normal");F=Io(F);F=_.X(F.adsControlFlowEventListeners);for(u=F.next();!u.done;u=F.next())bmL(u.value,q,t)}};_.m2=_.ld(function(F){var q=_.sk(F,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});F=Object.assign({},q);var t=q.data;q=q.customCommandResolver;var u=(delete F.data,delete F.customCommandResolver,F);F=_.lR({visibilityCallback:function(Q,e){var r,N=(r=t().interaction)==null?void 0:r.onFirstVisible;Q&&(N&&_.L9(N),u.setOnErrorHandler()&&Kst(e))},
showOption:_.oM});q=_.Sa(function(){return t().interaction},q,function(){var Q;
return(Q=u.listenToTapEvent)==null?void 0:Q.call(u)});
var J=_.X(_.N3(!1,void 0,"wAC0Lc")),g=J.next().value,Y=J.next().value;J=_.zq(function(Q){var e;((e=u.setTouchEndHandler)==null?0:e.call(u))&&!g()&&(Q.currentTarget.click(),Y(!0),setTimeout(function(){Y(!1)},100));
return!1});
return _.Z("ad-image-view-model",{class:function(){var Q,e=[((Q=t().interaction)==null?0:Q.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],r;((r=u.isGridViewEnabled)==null?0:r.call(u))&&e.push("ytwAdImageViewModelHostInGridView");return e.join(" ")},
el:_.l_(F,q),"on:touchend":J},_.Z("div",{class:"ytwAdImageViewModelHostImageContainer"},_.Z(_.sc,{data:function(){var Q;return{sources:t().imageSources,contentMode:(Q=t().imageProperties)==null?void 0:Q.contentMode}},
alt:function(){var Q,e;return((Q=t().interaction)==null?void 0:(e=Q.accessibility)==null?void 0:e.label)||""},
targetHeight:u.targetHeight,targetWidth:u.targetWidth,preserveHeight:u.preserveHeight,preserveWidth:u.preserveWidth,useWidth:u.useWidth,style:function(){var Q,e;return"vertical-align: bottom;"+(((Q=t().background)==null?0:Q.color)?"background-color:"+_.hn((e=t().background)==null?void 0:e.color)+";":"")},
className:function(){return u.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var Q,e;return(e=(Q=u.setDraggable)==null?void 0:Q.call(u))!=null?e:void 0}})))},"sb");var uCr=_.ld(function(F){var q=F.data,t=F.listenToTapEvent,u=function(){};
return _.Z("ad-button-hover-overlay-view-model",{"on:click":_.zq(function(J){if(_.E("enable_web_home_top_landscape_image_layout_legacy_click_command")){var g,Y=(g=q().interaction)==null?void 0:g.onTap;Y&&_.Q0(J.currentTarget,"yt-navigate",{endpoint:_.Sg(Y)})}}),
class:function(){var J;return((J=q().interaction)==null?0:J.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.l_(_.lR({visibilityCallback:function(J){var g,Y=(g=q().interaction)==null?void 0:g.onFirstVisible;J&&Y&&_.L9(Y)},
showOption:_.oM}),_.Sa(function(){return q().interaction},void 0,function(){return!_.E("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(t==null?void 0:t())}))},function(){return _.E("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.Z(_.Tl,{data:function(){return q().button}},{adButtonViewModel:function(J){return _.Z(_.Mi,{data:J.data,
customCommandResolver:u})}}):_.Z(_.Tl,{data:function(){return q().button}},{adButtonViewModel:_.Mi})}())},"tb");var lB;_.ei(_.ld(function(F){var q=F.data;F=_.lR({visibilityCallback:function(Q,e){if(Q){var r;(Q=(r=q().interaction)==null?void 0:r.onFirstVisible)&&_.L9(Q);var N;if(r=(N=q().adLayoutData)==null?void 0:N.activeViewData)Xf(e,r),_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Yi(e)})}else _.E("stop_av_measurement_on_detach")&&Yi(e)},
showOption:_.oM,hideOption:n2});var t=_.Sa(function(){return q().interaction},void 0,function(){return!0}),u=_.X(_.N3(!1,void 0,"VNDDT")),J=u.next().value,g=u.next().value;
u=_.zq(function(){g(!0)});
var Y=_.zq(function(){g(!1)});
return _.Z("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.l_(F,Fqo,t),"on:mouseenter":u,"on:mouseleave":Y},_.Z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Mo({"max-width":function(){return _.E("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.Z("div",{class:function(){var Q;
a:{var e;switch((Q=_.n(q().thumbnailImage,aHC))==null?void 0:(e=Q.imageProperties)==null?void 0:e.renderingAspect){case "RENDERING_ASPECT_SQUARE":Q="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":Q="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}Q=void 0}return Q}},_.Z(_.Tl,{data:function(){return q().thumbnailImage}},{adImageViewModel:function(Q){return _.Z(_.m2,
{data:Q.data,
listenToTapEvent:!0,setTouchEndHandler:_.E("enable_top_landscape_image_experiment_dom_id_web")})}})),_.Z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Z(_.R,{cond:function(){var Q,e,r;
return(Q=_.n(q().thumbnailImage,aHC))==null?void 0:(e=Q.imageProperties)==null?void 0:(r=e.overlayIcon)==null?void 0:r.iconImage},
then:function(Q){return _.Z(_.sc,{data:Q,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.Z("div",{class:function(){return J()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.Z(_.Tl,{data:function(){return q().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(Q){return _.Z(uCr,
{data:Q.data,
listenToTapEvent:!0})}}))),_.Z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.Z(_.Tl,{data:function(){return q().feedAdMetadata}},{feedAdMetadataViewModel:function(Q){return _.Z(p$C,{data:Q.data,
listenToTapEvent:!0,setTouchEndHandler:_.E("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ub"),"compact-landscape-no-button-layout-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=F.data;F=_.lR({visibilityCallback:function(Q,e){if(Q){var r;(Q=(r=q().interaction)==null?void 0:r.onFirstVisible)&&_.L9(Q);var N;if(r=(N=q().adLayoutData)==null?void 0:N.activeViewData)Xf(e,r),_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Yi(e)})}else _.E("stop_av_measurement_on_detach")&&Yi(e)},
showOption:_.oM,hideOption:n2});var t=_.dC(_.Cp),u=_.Sa(function(){return q().interaction}),J={},g={},Y={};
return _.Z("square-image-layout-view-model",{class:_.Ec("ytwSquareImageLayoutViewModelHost",(J.ytwSquareImageLayoutViewModelHostColumn=t,J)),el:_.l_(F,q_P,u)},_.Z("div",{class:_.Ec("ytwSquareImageLayoutViewModelHostImage",(g.ytwSquareImageLayoutViewModelHostColumnImage=t,g))},function(){return _.Z(_.Tl,{data:function(){return q().adImage}},{adImageViewModel:function(Q){return _.Z(_.m2,{data:Q.data,
isGridViewEnabled:t,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.Z("div",{class:_.Ec("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(Y.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=t,Y))},_.Z(_.Tl,{data:function(){return q().feedAdMetadata}},{feedAdMetadataViewModel:p$C}),function(){return _.Z(_.Tl,{data:function(){return q().adButton}},{adButtonViewModel:function(Q){var e={};
return _.Z(_.Mi,{data:Q.data,className:_.Ec((e.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,e.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=t,e))})}})}()))},"vb"),"square-image-layout-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=F.data;var t=F.noBottomMargin;var u=F.typographyBump;F=_.lR({visibilityCallback:function(w,k){if(w){var z;(w=(z=q().interaction)==null?void 0:z.onFirstVisible)&&_.L9(w);var T;if(z=(T=q().adLayoutData)==null?void 0:T.activeViewData)Xf(k,z),_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Yi(k)})}else _.E("stop_av_measurement_on_detach")&&Yi(k)},
showOption:_.oM,hideOption:n2});var J=_.Sa(function(){return q().interaction},void 0,function(){return _.E("enable_web_home_top_landscape_image_layout_level_click")}),g=function(){return q().interaction};
g!==void 0&&g!==null||_.hN(Error("Lh"));var Y=function(){var w,k,z;return(w=_.n(q().thumbnailImage,aHC))==null?void 0:(k=w.background)==null?void 0:(z=k.backgroundImageSource)==null?void 0:z.imageSources};
g=_.X(_.N3(!1,void 0,"NFjwje"));var Q=g.next().value,e=g.next().value;g=_.zq(function(){e(!0)});
var r=_.zq(function(){e(!1)}),N=function(){return Q()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.Z("top-landscape-image-layout-view-model",{class:function(){var w;return((w=q().interaction)==null?0:w.onTap)&&_.E("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.l_(F,tVo,J),"on:mouseenter":g,"on:mouseleave":r},_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.Z(_.R,{cond:function(){return Y()&&Y().length>0},
then:function(){return _.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Mo({top:"0","background-image":function(){return"url("+String(Y()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.Z(_.R,{cond:function(){return!!q().adButtonHoverOverlay},
then:function(){return _.Z("div",{class:N},_.Z(_.Tl,{data:function(){return q().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:uCr}))}}),_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.Z(_.Tl,{data:function(){return q().thumbnailImage}},{adImageViewModel:function(w){return _.Z(_.m2,{data:w.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.E("enable_web_home_top_landscape_image_layout_level_click")})}})),_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Z(_.sc,{data:{sources:[{clientResource:{imageName:_.E("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.Z(_.Tl,{data:function(){return q().feedAdMetadata}},{feedAdMetadataViewModel:function(w){return _.Z(p$C,{data:w.data,
noBottomMargin:function(){return t==null?void 0:t()},
listenToTapEvent:function(){return _.E("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return u==null?void 0:u()}})}})))},"wb"),"top-landscape-image-layout-view-model",{props:{data:_.NH,
noBottomMargin:_.NH,typographyBump:_.NH}});_.ei(_.ld(function(F){var q=F.data;var t=F.typographyBump;return _.Z("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.l_(_.lR({visibilityCallback:function(u,J){if(u){var g;(u=(g=q().interaction)==null?void 0:g.onFirstVisible)&&_.L9(u);var Y;(g=(Y=q().adLayoutData)==null?void 0:Y.activeViewData)&&Xf(J,g)}},
showOption:_.oM,hideOption:n2}))},_.Z("div",null,_.Z(_.Tl,{data:function(){return q().videoLockup}},{lockupViewModel:function(u){return _.Z(_.x5,{data:u.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:t})}})))},"xb"),"video-display-button-group-layout-view-model",{props:{data:_.NH,
noBottomMargin:_.NH,typographyBump:_.NH}});_.ei(_.ld(function(F){var q=F.data;var t=F.className;var u=F.typographyBump;return _.Z("video-display-compact-button-group-layout-view-model",{el:_.l_(_.lR({visibilityCallback:function(J,g){if(J){var Y;(J=(Y=q().interaction)==null?void 0:Y.onFirstVisible)&&_.L9(J);var Q;(Y=(Q=q().adLayoutData)==null?void 0:Q.activeViewData)&&Xf(g,Y)}},
showOption:_.oM})),class:_.Ec("videoDisplayCompactButtonGroupLayoutViewModelHost",t)},_.Z(_.Tl,{data:function(){return q().videoLockup}},{lockupViewModel:function(J){return _.Z(_.x5,{data:J.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:u})}}))},"yb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.NH,
className:_.NH,typographyBump:_.NH}});_.ei(_.ld(function(F){var q=F.data;var t=F.className;var u=F.typographyBump;return _.Z("video-display-compact-buttoned-layout-view-model",{el:_.l_(_.lR({visibilityCallback:function(J,g){if(J){var Y;(J=(Y=q().interaction)==null?void 0:Y.onFirstVisible)&&_.L9(J);var Q;(Y=(Q=q().adLayoutData)==null?void 0:Q.activeViewData)&&Xf(g,Y)}},
showOption:_.oM})),class:_.Ec("videoDisplayCompactButtonedLayoutViewModelHost",t)},_.Z(_.Tl,{data:function(){return q().videoLockup}},{lockupViewModel:function(J){return _.Z(_.x5,{data:J.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:u})}}))},"zb"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.NH,
className:_.NH,typographyBump:_.NH}});_.ei(_.ld(function(F){var q=F.data;var t=F.className;var u=F.typographyBump;var J=function(){return q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},g=_.dC(_.Cp);
F=_.lR({visibilityCallback:function(r,N){if(r){var w=q();r=w.adLayoutData;var k;(w=(k=w.interaction)==null?void 0:k.onFirstVisible)&&_.L9(w);(k=r==null?void 0:r.activeViewData)&&Xf(N,k)}},
showOption:_.oM});var Y=_.zy(function(){return{containerType:J()&&g()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),Q=_.zy(function(){return J()&&g()?"":J()?"168px":"50%"},void 0,"qNDzkb"),e=_.zy(function(){return J()&&g()?9999:void 0},void 0,"Ikn8Kb");
return _.Z("video-display-compact-layout-view-model",{el:_.l_(F),class:_.Ec("videoDisplayCompactLayoutViewModelHost",t)},_.Z(_.Tl,{data:function(){return q().videoLockup}},{lockupViewModel:function(r){return _.Z(_.x5,{data:r.data,
containerLayoutConfig:Y,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:Q,thumbnailTargetWidth:e,typographyBump:u})}}))},"Ab"),"video-display-compact-layout-view-model",{props:{data:_.NH,
className:_.NH,typographyBump:_.NH}});_.ei(_.ld(function(F){var q=F.data;var t=F.typographyBump;return _.Z("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.l_(_.lR({visibilityCallback:function(u,J){if(u){var g;(u=(g=q().interaction)==null?void 0:g.onFirstVisible)&&_.L9(u);var Y;(g=(Y=q().adLayoutData)==null?void 0:Y.activeViewData)&&Xf(J,g)}},
showOption:_.oM,hideOption:n2}))},_.Z("div",null,_.Z(_.Tl,{data:function(){return q().videoLockup}},{lockupViewModel:function(u){return _.Z(_.x5,{data:u.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:t})}})))},"Bb"),"video-display-full-layout-view-model",{props:{data:_.NH,
noBottomMargin:_.NH,typographyBump:_.NH}});_.Jyn=_.ld(function(F){var q=F.data;F=_.FG("ad-card-badge-view-model");return _.Z("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:F},_.Z(_.R,{cond:function(){return q().imageBadge},
then:function(t){return _.Z(_.sc,{data:t,alt:""})}}))},"Cb");var shf=_.ld(function(F){var q=F.data;var t=F.customCommandResolver;return _.Z("carousel-ad-card-image-view-model",{class:function(){var u;return((u=q().interaction)==null?0:u.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.l_(_.lR({visibilityCallback:function(u){var J,g=(J=q().interaction)==null?void 0:J.onFirstVisible;u&&g&&_.L9(g)},
showOption:_.oM}),_.Sa(function(){return q().interaction},t)),
"aria-label":function(){var u,J;return(u=q().interaction)==null?void 0:(J=u.accessibility)==null?void 0:J.label}},_.Z(_.Tl,{data:function(){return q().adImage}},{adImageViewModel:function(u){return _.Z(_.m2,{data:u.data,
customCommandResolver:t})}}),_.Z("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.Z(_.Tl,{data:function(){return q().badge}},{adCardBadgeViewModel:_.Jyn})),_.Z(_.WP,{model:{color:4}}))},"Db");var gNx=_.ld(function(F){var q=_.X(_.N3(0,void 0,"JJ0QQc")),t=q.next().value;q.next();var u=q.next().value,J=_.X(_.N3(!1,void 0,"f6YICe"));q=J.next().value;var g=J.next().value,Y;_.vj(function(){clearTimeout(Y)});
J=_.zq(function(){var r;((r=F.animate)==null?0:r.call(F))?(g(!0),Y=setTimeout(function(){g(!1);Q()},200)):Q();
return!1});
var Q=function(){u(function(r){return(r+F.numShownItems())%F.data().length})},e={};
return _.Z("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.Z("div",{class:_.Ec("ytwHorizontalCarouselCarouselWrapper")},_.Z("div",{class:_.Ec("ytwHorizontalCarouselCarouselInnerWrapper",(e.ytwHorizontalCarouselAnimating=q,e))},_.Z(_.Gn,{each:F.data,keyBy:"INDEX"},function(r,N){return _.Z("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Mo({"flex-basis":function(){return"calc((100% - (8px * "+(F.numShownItems()-1)+")) / "+F.numShownItems()+")"},
order:function(){var w=N-t();w<0&&(w+=F.data().length);return w}})},F.children(r,N))}))),_.Z("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":J},F.nextButton()))},"Eb");var lI1=_.ld(function(F){var q=F.data;var t=F.customCommandResolver;var u=F.expansive;return _.Z("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.l_(_.lR({visibilityCallback:function(J){var g,Y=(g=q().interaction)==null?void 0:g.onFirstVisible;J&&Y&&_.L9(Y)},
showOption:_.oM}))},_.Z(gNx,{data:function(){var J;return((J=q())==null?void 0:J.carouselAdCards)||[]},
nextButton:function(){return _.Z(_.Tl,{data:function(){return q().nextButton}},{buttonViewModel:function(J){var g=J.data;
return _.Z(_.AB,{data:function(){return(u==null?0:u())?Object.assign({},g(),{style:"mono"}):g()},
className:_.E("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(J){return _.Z(_.Tl,{data:J},{carouselAdCardImageViewModel:function(g){return _.Z(shf,{data:g.data,customCommandResolver:t})}})}))},"Fb");var XKO=_.ld(function(F){var q=F.data;var t=F.customCommandResolver;var u=F.className;var J=F.buttonClassName;var g=F.animationEntityKey;var Y=F.expansive;return _.Z("carousel-button-view-model",{class:_.Ec("ytwCarouselButtonViewModelHost",u)},_.Z(_.Tl,{data:function(){return q().carousel}},{carouselAdCardCollectionViewModel:function(Q){return _.Z(lI1,{data:Q.data,
customCommandResolver:t,expansive:Y})}}),_.Z(_.Tl,{data:function(){return q().button}},{adButtonViewModel:function(Q){var e=Q.data;
return _.Z(_.Mi,{data:function(){return(Y==null?0:Y())?Object.assign({},e(),{style:"AD_BUTTON_STYLE_TONAL"}):e()},
className:J,customCommandResolver:t,animationEntityKey:g})}}))},"Gb");_.YGO=_.ld(function(F){var q=F.data;F=F.className;var t=_.FG("pivot-button-view-model");_.v_(function(){var u;((u=q())==null?0:u.backgroundColor)&&t.value.setAttribute("data-background-color",String(q().backgroundColor))});
return _.Z("pivot-button-view-model",{el:t,class:_.Ec("ytwPivotButtonViewModelHost",F)},_.Z(_.Ds,{command:function(){var u=q();u=u.onClickCommand?_.Sg(u.onClickCommand):u.contentDescription?_.l1(u.contentDescription):void 0;return u},
ariaLabel:function(){return q().contentDescription}},_.Z(_.R,{cond:function(){return q().thumbnail},
then:function(u){return _.Z(_.sc,{data:u,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.Z(_.R,{cond:function(){return q().icon},
then:function(u){return _.Z(_.Tq,{icon:function(){return u().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Hb");_.pKx=_.ld(function(F){var q=F.data;var t=F.buttonShapeOverrideables;return _.Z("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.Z(_.Tl,{data:function(){return q().buttonViewModels}},{buttonViewModel:function(u){return _.Z(_.AB,{data:u.data,
buttonOverrides:t})},
likeButtonViewModel:function(u){return _.Z(_.Jp,{data:u.data,buttonShapeOverrideables:t})},
dislikeButtonViewModel:function(u){return _.Z(_.uj,{data:u.data,buttonShapeOverrideables:t})},
toggleButtonViewModel:function(u){return _.Z(_.j9,{data:u.data,buttonShapeOverrides:t})}}))},"Ib");var Qhv=_.ld(function(F){var q=F.avatar;var t=F.headline;var u=F.badge;var J=F.description;var g=F.expansive;F={};return _.Z("yt-ad-metadata-shape",{class:_.Ec("ytAdMetadataShapeHost",(F.ytAdMetadataShapeHostLarge=g,F))},_.Z("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.Z(_.R,{cond:q,then:function(Y){return _.Z(_.ggw,{data:function(){return(g==null?0:g())?Object.assign({},Y(),{size:"AD_AVATAR_SIZE_M"}):Y()}})}}),_.Z("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.Z(_.rv,{text:t,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.Z(_.R,{cond:u,then:function(Y){return _.Z(_.Oi,{data:function(){return(g==null?0:g())?Object.assign({},Y(),{style:"AD_BADGE_STYLE_STARK"}):Y()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.Z("h2",{class:"ytAdMetadataShapeHostDescription"},_.Z(_.rv,{text:J,
linkInheritColor:!0,isHeadline:function(){return g==null?void 0:g()}})))},"Jb");var eke=_.ld(function(F){var q=F.data;var t=F.onShow;var u=F.expansive;F=_.Sa(function(){return q().interaction});
_.v_(function(){var g,Y=(g=q().animatedRenderingConfig)==null?void 0:g.delayedSecondsToVisible;if(Y){var Q=setTimeout(t,Y*1E3);_.vj(function(){clearTimeout(Q)})}});
var J={};return _.Z("reels-ad-card-buttoned-view-model",{class:_.Ec(function(){var g;return((g=q().interaction)==null?0:g.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(J.ytwReelsAdCardButtonedViewModelHostExpansive=u,J)),
el:_.l_(F)},_.Z(Qhv,{avatar:function(){return _.n(q().avatar,B1O)},
headline:function(){return q().headline},
badge:function(){return _.n(q().adBadge,LRO)},
description:function(){return q().description},
expansive:u}),_.Z(_.Tl,{data:function(){return q().ctaButton}},{adButtonViewModel:function(g){var Y=g.data;
return _.Z(_.Mi,{data:function(){return(u==null?0:u())?Object.assign({},Y(),{style:"AD_BUTTON_STYLE_FILLED"}):Y()}})}}))},"Kb");var ZDd=_.ld(function(F){var q=F.data;F=F.expansive;var t=_.E("web_ad_metadata_clickable")?_.Sa(function(){return q().interaction},void 0,function(){return _.E("web_ad_metadata_clickable")}):void 0,u={};
u=_.HD("ytwReelsAdMetadataViewModelHost",(u.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.E("web_ad_metadata_clickable"),u));return _.Z("reels-ad-metadata-view-model",{class:u,el:_.l_(t)},_.Z(Qhv,{avatar:function(){return _.n(q().avatar,B1O)},
headline:function(){return q().headline},
badge:function(){return _.n(q().adBadge,LRO)},
description:function(){return q().description},
expansive:F}))},"Lb");var Rkf={iconPosition:"icon-with-label",size:"L"},ryj=_.ld(function(F){var q=F.data;var t=F.overlayDensity;F=_.FG("reels-player-overlay-layout-view-model");var u=_.Jv(t,0),J=function(){var w;return(w=q().reelsAdCardButtonedEntityKey)!=null?w:""},g=function(){return J()+"/ad_button"},Y=_.nH(KN3,J),Q=function(){var w,k;
return(k=(w=Y())==null?void 0:w.value)!=null?k:!1},e=_.dC(udy),r=function(){return Object.assign({},Rkf,(e()||u()===2)&&{style:"overlay-dark"})};
t={};var N={};return _.Z("reels-player-overlay-layout-view-model",{class:_.Ec("ytwReelsPlayerOverlayLayoutViewModelHost",(t.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!q().extension},t.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},t)),
"overlay-density":function(){return String(u())},
el:F},_.Z("div",{class:_.Ec("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(N.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},N))},_.Z("div",{"aria-hidden":function(){return Q()},
class:_.Ec("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return Q()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Mo({"transition-duration":function(){return lZo(q())}})},_.Z(_.Tl,{data:function(){return q().adMetadata}},{reelsAdMetadataViewModel:function(w){return _.Z(ZDd,{data:w.data,
expansive:function(){return u()===1}})}}),_.Z(_.R,{cond:function(){return q().extension},
then:function(w){return _.Z("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.Z(_.Tl,{data:w},{adButtonViewModel:function(k){return _.Z(_.Mi,{data:k.data,animationEntityKey:g,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(k){return _.Z(XKO,{data:k.data,animationEntityKey:g,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return u()===1}})}}))}})),_.Z("div",{"aria-hidden":function(){return!Q()},
class:_.Ec("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return Q()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Mo({"transition-duration":function(){return lZo(q())}})},_.Z(_.Tl,{data:function(){return q().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(w){return _.Z(eke,{data:w.data,
onShow:function(){_.ud(_.Gl("booleanEntity",J(),{key:J(),value:!0}))},
expansive:function(){return u()===1}})}}))),_.Z("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.Z(_.Tl,{data:function(){return q().actions}},{reelActionBarViewModel:function(w){return _.Z(_.pKx,{data:w.data,
buttonShapeOverrideables:r})}}),_.Z(_.Tl,{data:function(){return q().menu}},{buttonViewModel:function(w){return _.Z(_.AB,{data:w.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},r(),{type:"tonal"})}})}}),_.Z(_.Tl,{data:function(){return q().pivotButton}},{pivotButtonViewModel:function(w){return _.Z(_.YGO,{data:w.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Mb");_.ei(ryj,"reels-player-overlay-layout-view-model",{props:{data:_.NH,overlayDensity:_.NH}});var $1=function(){var F=_.x.apply(this,arguments)||this;F.noBottomMargin=!1;F.overlayDensity=0;return F};
_.M($1,_.x);_.l=$1.prototype;
_.l.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.E("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",
properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.l.ready=function(){var F=this;MIu(function(){F.isAttached&&ti(F.JSC$15518_storedAdSlotMetadata,F.JSC$15518_storedAdLayoutMetadata,F.adSlotMetadata,F.adLayoutMetadata)&&HY(vY(),F.JSC$15518_storedAdSlotMetadata,F.JSC$15518_storedAdLayoutMetadata)})};
_.l.attached=function(){ti(this.JSC$15518_storedAdSlotMetadata,this.JSC$15518_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&tPC(vY(),this.JSC$15518_storedAdSlotMetadata,this.JSC$15518_storedAdLayoutMetadata)};
_.l.detached=function(){ti(this.JSC$15518_storedAdSlotMetadata,this.JSC$15518_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&HY(vY(),this.JSC$15518_storedAdSlotMetadata,this.JSC$15518_storedAdLayoutMetadata)};
_.l.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.l.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15518_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15518_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15518_storedAdLayoutMetadata!==void 0&&this.JSC$15518_storedAdSlotMetadata!==void 0&&HY(vY(),this.JSC$15518_storedAdSlotMetadata,this.JSC$15518_storedAdLayoutMetadata),tPC(vY(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15518_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15518_storedAdSlotMetadata=this.adSlotMetadata)};
_.JJ.Object.defineProperties($1.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.adLayoutMetadata}}});
$1.prototype.onAdMetadataChanged=$1.prototype.onAdMetadataChanged;$1.prototype.onTypographyBumpChanged=$1.prototype.onTypographyBumpChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$1.prototype,"rendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],$1.prototype,"ytComponentBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],$1.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],$1.prototype,"noBottomMargin",void 0);_.C([_.O(),_.V("design:type",Object)],$1.prototype,"overlayDensity",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],$1.prototype,"typographyBump",void 0);_.C([_.W("data.adLayoutMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],$1.prototype,"adLayoutMetadata",null);_.C([_.O(),_.V("design:type",Object)],$1.prototype,"adSlotMetadata",void 0);
_.C([_.Ms("ytd-video-display-full-buttoned-and-button-group-renderer"),_.V("design:type",HTMLElement)],$1.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.C([_.za("typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$1.prototype,"onTypographyBumpChanged",null);_.C([_.za("adLayoutMetadata","adSlotMetadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$1.prototype,"onAdMetadataChanged",null);
_.C([_.m({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],$1);
_.b($1,"ytd-in-feed-ad-layout-renderer",function(){if(s3e!==void 0)return s3e;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return s3e=F},
{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var Nir;var wKz;_.ei(_.Oi,"ad-badge-view-model",{props:{data:_.NH,hasDot:_.NH,customCommandResolver:_.pp,adRenderingContextType:_.pp}});_.ei(_.Mi,"ad-button-view-model",{props:{data:_.NH,customCommandResolver:_.pp,className:_.pp,delayedClassName:_.pp,animationEntityKey:_.pp,isCompactWidth:_.pp}});var b9=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return F};
_.M(b9,_.x);_.l=b9.prototype;_.l.computeHasLiveDescription=function(F){return!(F==null||!F.liveDescription)};
_.l.computeHasByline=function(F){return!(F==null||!F.byline)};
_.l.computeUsesAdButtonViewModel=function(F){return!!_.n(F==null?void 0:F.cta,fH1)};
_.l.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isCompactWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.l.onYtToggleButton=function(F){var q,t=(q=this.data)==null?void 0:q.videoReminderEntityKey;t&&this.ytdReduxBehavior.dispatch(_.Gl("upcomingEventReminderStateEntity",t,{key:t,state:F.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.l.attached=function(){this.updateChannelBanner()};
_.l.dataChanged=function(){this.updateChannelBanner()};
_.l.videoReminderStateChanged=function(){var F;this.videoReminderState&&_.n((F=this.data)==null?void 0:F.cta,_.uv)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.l.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var F=_.ZR(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);F&&(F.startsWith("//")&&(F="https:"+F),this.hostElement.classList.add("channel-banner"),_.ws(this.hostElement,{"--ytvmh-channel-banner":"url("+F+")"}))}else _.E("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.l.onPlayerReady=function(){this.onIronResize()};
_.l.maybeFlushDebouncer=function(){_.E("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(F){var q;F=(q=F.getElementsByTagName("yt-attributed-string"))==null?void 0:q[0];he_(F==null?void 0:F.polymerController)})};
_.l.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var F=_.ep(this.hostElement).querySelector("#live-description"),q;F&&((q=this.data)==null?0:q.shortLiveDescription)&&F.clientWidth<F.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
b9.prototype.onIronResize=b9.prototype.onIronResize;b9.prototype.videoReminderStateChanged=b9.prototype.videoReminderStateChanged;b9.prototype.dataChanged=b9.prototype.dataChanged;b9.prototype.onYtToggleButton=b9.prototype.onYtToggleButton;_.C([_.D(_.Vl),_.V("design:type",Object)],b9.prototype,"ironResizableBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],b9.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],b9.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],b9.prototype,"data",void 0);_.C([_.O({selectorArgs:["data.videoReminderEntityKey"],selector:LUf}),_.V("design:type",Object)],b9.prototype,"videoReminderState",void 0);
_.C([_.O({reflectToAttribute:!0,value:_.E("web_modern_buttons")}),_.V("design:type",Boolean)],b9.prototype,"rounded",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.V("design:type",Boolean)],b9.prototype,"hasLiveDescription",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.V("design:type",Boolean)],b9.prototype,"hasByline",void 0);
_.C([_.O({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.V("design:type",String)],b9.prototype,"adRenderingContextType",void 0);_.C([_.O({computed:"computeUsesAdButtonViewModel(data)"}),_.V("design:type",Boolean)],b9.prototype,"usesAdButtonViewModel",void 0);_.C([_.O({reflectToAttribute:!0,value:_.E("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.V("design:type",Boolean)],b9.prototype,"resizableAdBannerSafariFix",void 0);
_.C([_.Ta("yt-formatted-string"),_.V("design:type",Array)],b9.prototype,"formattedStrings",void 0);_.C([_.Ms("#cta-button"),_.V("design:type",HTMLElement)],b9.prototype,"ctaButton",void 0);_.C([_.EB("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],b9.prototype,"onYtToggleButton",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b9.prototype,"dataChanged",null);
_.C([_.za("videoReminderState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b9.prototype,"videoReminderStateChanged",null);_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b9.prototype,"onIronResize",null);_.C([_.m({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],b9);
_.b(b9,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(wKz!==void 0)return wKz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return wKz=F},{mode:1});var iDr;var yd=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};F.isLocked=!1;return F};
_.M(yd,_.x);_.l=yd.prototype;_.l.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.l.onExpandedChanged=function(){this.expanded&&_.Zl(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.l.onMouseOver=function(){this.maybeExpand()};
_.l.onTap=function(){this.maybeExpand()};
_.l.onExpandableTileExpanding=function(F){F!==this&&(this.expanded=!1)};
_.l.onExpandableTileLockAndCollapse=function(F){this.isLocked=!0;F!==this&&(this.expanded=!1)};
_.l.onExpandableTileUnlock=function(){this.isLocked=!1};
yd.prototype.onTap=yd.prototype.onTap;yd.prototype.onMouseOver=yd.prototype.onMouseOver;yd.prototype.onExpandedChanged=yd.prototype.onExpandedChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],yd.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],yd.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],yd.prototype,"expanded",void 0);_.C([_.Wh("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yd.prototype,"onExpandedChanged",null);_.C([_.EB("mouseover"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yd.prototype,"onMouseOver",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yd.prototype,"onTap",null);
_.C([_.m({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],yd);
_.b(yd,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(iDr!==void 0)return iDr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return iDr=F},{mode:1});var kLj;var Cy=function(){var F=_.x.apply(this,arguments)||this;F.buttonOverrides={style:"overlay"};F.useYtdPlayer=_.E("use_ytd_player_for_desktop_masthead");F.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};F.playbackFinished=!1;F.JSC$15532_playerManager=null;F.JSC$15532_mastheadCounter=new brd;return F};
_.M(Cy,_.x);_.l=Cy.prototype;_.l.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"}}}};
_.l.created=function(){this.JSC$15532_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15532_playerManager=new L8)};
_.l.ready=function(){var F=this;this.JSC$15532_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var q=_.ep(this.hostElement).querySelector("#player");this.useYtdPlayer?q.style.display="none":(this.ytdPlayer.style.display="none",E41(this.JSC$15532_playerManager,q,function(){F.onPlaybackEnded()}),_.ep(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var t;
((t=F.data)==null?0:t.navigationEndpoint)&&_.Q0(F.hostElement,"yt-navigate",{endpoint:F.data.navigationEndpoint})}))};
_.l.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15532_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.l.attached=function(){var F=this;_.f1(function(){F.maybePlayVideo()})};
_.l.maybePlayVideo=function(){var F=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$15532_playerManager.playVideo(),this.getPlayerPromise().then(function(){F.JSC$15532_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.l.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15532_playerManager.stopVideo()};
_.l.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var F,q={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((F=this.data.playbackStartMs)!=null?F:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(q);this.setupYtdPlayer()}else o4r(this.JSC$15532_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(zvO(this.JSC$15532_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.l.getPlayerPromise=function(){return this.JSC$15532_playerManager.getPlayerPromise()};
_.l.onYtToggleButton=function(F){this.useYtdPlayer?this.toggleMute(F.detail.toggled):F.detail.toggled?this.JSC$15532_playerManager.mute():this.JSC$15532_playerManager.unMute()};
_.l.onYtNavigate=function(F){var q=bNW(F.detail.endpoint),t=ypt(this.data.clickthroughReportingData);q&&t&&(F.detail.endpoint.watchEndpoint?F.detail.tempData=t:_.JV(q,t,30))};
_.l.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.l.onExpandedChanged=function(){this.expanded?(_.Zl(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.l.onMouseOver=function(){this.maybeExpand()};
_.l.onTap=function(){this.maybeExpand()};
_.l.onExpandableTileExpanding=function(F){F!==this&&(this.stopVideo(),this.expanded=!1)};
_.l.onExpandableTileLockAndCollapse=function(F){F!==this&&(this.isLocked=!0,this.expanded=!1)};
_.l.onExpandableTileUnlock=function(){this.isLocked=!1};
_.l.lockAndCollapseExpandableTiles=function(){_.ec(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.l.unlockExpandableTiles=function(){_.ec(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.l.setupYtdPlayer=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return t.yield(F.ytdPlayer.getPlayerPromise(),2);q=t.yieldResult;q.addEventListener("onStateChange",function(u){F.onPlayerStateChange(u)});
q.addEventListener("onCueRangeExit",function(u){F.onCueRangeExit(u)});
_.WA(t)})};
_.l.onPlayerStateChange=function(F){if(F===1&&(F=this.ytdPlayer.getPlayer())){var q=F.getCurrentTime(),t,u,J=q+((u=(t=this.data)==null?void 0:t.playbackDurationMs)!=null?u:0)/1E3;F.addCueRange("playback",q,J);this.JSC$15532_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.l.onCueRangeExit=function(F){F==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.l.toggleMute=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(q.ytdPlayer.getPlayerPromise(),2);t=u.yieldResult;F?t.mute():t.unMute();_.WA(u)})};
Cy.prototype.onTap=Cy.prototype.onTap;Cy.prototype.onMouseOver=Cy.prototype.onMouseOver;Cy.prototype.onExpandedChanged=Cy.prototype.onExpandedChanged;Cy.prototype.onYtNavigate=Cy.prototype.onYtNavigate;Cy.prototype.onYtToggleButton=Cy.prototype.onYtToggleButton;Cy.prototype.dataChanged=Cy.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Cy.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Cy.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Cy.prototype,"expanded",void 0);_.C([_.O(),_.V("design:type",Object)],Cy.prototype,"buttonOverrides",void 0);
_.C([_.O(),_.V("design:type",Object)],Cy.prototype,"useYtdPlayer",void 0);_.C([_.Ms("#ytd-player"),_.V("design:type",Object)],Cy.prototype,"ytdPlayer",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cy.prototype,"dataChanged",null);_.C([_.EB("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Cy.prototype,"onYtToggleButton",null);
_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Cy.prototype,"onYtNavigate",null);_.C([_.Wh("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cy.prototype,"onExpandedChanged",null);_.C([_.EB("mouseover"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cy.prototype,"onMouseOver",null);
_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cy.prototype,"onTap",null);_.C([_.m({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Cy);
_.b(Cy,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(kLj!==void 0)return kLj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return kLj=F},{mode:1});var ENJ;var dp=function(){return _.x.apply(this,arguments)||this};
_.M(dp,_.x);dp.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
dp.prototype.onShow=function(){var F=_.ep(this.hostElement).querySelector("#live-description"),q;F&&((q=this.data)==null?0:q.shortLiveDescription)&&F.clientWidth<F.scrollWidth&&this.hostElement.classList.add("short-live-description")};
dp.prototype.onYtToggleButton=function(F){var q,t=(q=this.data)==null?void 0:q.videoReminderEntityKey;t&&this.ytdReduxBehavior.dispatch(_.Gl("upcomingEventReminderStateEntity",t,{key:t,state:F.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
dp.prototype.videoReminderStateChanged=function(){var F;this.videoReminderState&&_.n((F=this.data)==null?void 0:F.cta,_.uv)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
dp.prototype.videoReminderStateChanged=dp.prototype.videoReminderStateChanged;dp.prototype.onYtToggleButton=dp.prototype.onYtToggleButton;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],dp.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],dp.prototype,"data",void 0);
_.C([_.O({selectorArgs:["data.videoReminderEntityKey"],selector:LUf}),_.V("design:type",Object)],dp.prototype,"videoReminderState",void 0);_.C([_.EB("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],dp.prototype,"onYtToggleButton",null);_.C([_.za("videoReminderState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dp.prototype,"videoReminderStateChanged",null);
_.C([_.m({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],dp);
_.b(dp,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(ENJ!==void 0)return ENJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ENJ=F},{mode:_.Nc("kevlar_poly_si_batch_j065")?1:2});var zkC;var Vd=function(){var F=_.x.apply(this,arguments)||this;F.useYtdPlayer=_.E("use_ytd_player_for_desktop_masthead");F.buttonOverrides={style:"overlay"};F.JSC$15540_playerManager=null;F.JSC$15540_mastheadCounter=new brd;F.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return F};
_.M(Vd,_.x);_.l=Vd.prototype;_.l.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"}}}};
_.l.created=function(){this.JSC$15540_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15540_playerManager=new L8)};
_.l.ready=function(){var F=this;this.JSC$15540_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var q;(q=this.embeddedPlayer)==null||q.remove()}else{var t;(t=this.ytdPlayer)==null||t.remove();E41(this.JSC$15540_playerManager,this.embeddedPlayer,function(){F.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){F.data&&F.data.navigationEndpoint&&_.Q0(F.hostElement,"yt-navigate",{endpoint:F.data.navigationEndpoint})})}};
_.l.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15540_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.l.dataChanged=function(){var F=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var q=!this.data.disableAutoPlayback,t,u={autoplay:q,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((t=this.data.playbackStartMs)!=null?t:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(q?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(u);this.setupYtdPlayer()}else o4r(this.JSC$15540_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(zvO(this.JSC$15540_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15540_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.ec(F.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");F.JSC$15540_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.l.getPlayerPromise=function(){return this.JSC$15540_playerManager.getPlayerPromise()};
_.l.onYtToggleButton=function(F){this.useYtdPlayer?this.toggleMute(F.detail.toggled):F.detail.toggled?this.JSC$15540_playerManager.mute():this.JSC$15540_playerManager.unMute()};
_.l.onYtNavigate=function(F){var q=bNW(F.detail.endpoint),t=ypt(this.data.clickthroughReportingData);q&&t&&(F.detail.endpoint.watchEndpoint?F.detail.tempData=t:_.JV(q,t,30))};
_.l.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15540_playerManager.stopVideo()};
_.l.setupYtdPlayer=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return t.yield(F.ytdPlayer.getPlayerPromise(),2);q=t.yieldResult;q.addEventListener("onStateChange",function(u){F.onPlayerStateChange(u)});
q.addEventListener("onCueRangeExit",function(u){F.onCueRangeExit(u)});
_.WA(t)})};
_.l.onPlayerStateChange=function(F){if(F===1&&(F=this.ytdPlayer.getPlayer())){var q=F.getCurrentTime(),t,u,J=q+((u=(t=this.data)==null?void 0:t.playbackDurationMs)!=null?u:0)/1E3;F.addCueRange("playback",q,J);_.ec(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15540_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.l.onCueRangeExit=function(F){F==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.l.toggleMute=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(q.ytdPlayer.getPlayerPromise(),2);t=u.yieldResult;F?t.mute():t.unMute();_.WA(u)})};
_.JJ.Object.defineProperties(Vd.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var F,q;if(!((F=this.data)==null?0:(q=F.accessibilityData)==null?0:q.label))return"Ad primary link";var t,u;return _.oD("AD_TITLE",{title:(t=this.data)==null?void 0:(u=t.accessibilityData)==null?void 0:u.label})}}});
Vd.prototype.onYtMastheadHidden=Vd.prototype.onYtMastheadHidden;Vd.prototype.onYtNavigate=Vd.prototype.onYtNavigate;Vd.prototype.onYtToggleButton=Vd.prototype.onYtToggleButton;Vd.prototype.dataChanged=Vd.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Vd.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Vd.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Vd.prototype,"useYtdPlayer",void 0);_.C([_.Ms("ytd-toggle-button-renderer"),_.V("design:type",Object)],Vd.prototype,"muteButton",void 0);_.C([_.O(),_.V("design:type",Object)],Vd.prototype,"buttonOverrides",void 0);
_.C([_.W("data.accessibilityData.label"),_.V("design:type",String),_.V("design:paramtypes",[])],Vd.prototype,"titleAriaLabel",null);_.C([_.Ms("#replay-button"),_.V("design:type",Object)],Vd.prototype,"replayButton",void 0);_.C([_.Ms("#player-container"),_.V("design:type",Object)],Vd.prototype,"playerContainer",void 0);_.C([_.Ms("#player"),_.V("design:type",Object)],Vd.prototype,"embeddedPlayer",void 0);_.C([_.Ms("#ytd-player"),_.V("design:type",Object)],Vd.prototype,"ytdPlayer",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vd.prototype,"dataChanged",null);_.C([_.EB("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Vd.prototype,"onYtToggleButton",null);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Vd.prototype,"onYtNavigate",null);
_.C([_.EB("yt-masthead-hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vd.prototype,"onYtMastheadHidden",null);_.C([_.m({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Vd);
_.b(Vd,"ytd-video-masthead-ad-primary-video-renderer",function(){if(zkC!==void 0)return zkC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return zkC=F},{mode:2});var oNn;var Um=function(){var F=_.x.apply(this,arguments)||this;F.collapsed=!1;F.impressionResolver=_.ji();F.JSC$15544_activeViewMeasurementDataResolver=_.ji();F.actionMap={"yt-mute-ad-action":"handleMuteAd"};return F};
_.M(Um,_.x);_.l=Um.prototype;_.l.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"}}}};
_.l.ready=function(){var F=this;_.ep(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){F.expandAd()});
this.hostElement.addEventListener("yt-action",function(q){if(q.detail.actionName==="yt-service-request"){var t=q.detail.args[1];t.videoMastheadAdMuteCommand&&(F.collapseAd(t.videoMastheadAdMuteCommand.encryptedMastheadId),q.stopPropagation())}})};
_.l.attached=function(){var F=this;_.f1(function(){F.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(q){if(!F.collapsed){q=_.X(q);for(var t=q.next();!t.done;t=q.next())t=t.value,Bt(t.baseUrl,t.attributionSrcMode);F.data.impressionCommand=void 0}});
this.JSC$15544_activeViewMeasurementDataResolver.promise.then(function(q){F.ytdActiveViewBehavior.enableActiveViewMeasurement(q,15)});
_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.dataChanged=function(){var F;((F=this.data.impressionCommand)==null?0:F.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var q;((q=this.data)==null?0:q.activeView)&&this.JSC$15544_activeViewMeasurementDataResolver.resolve(this.data.activeView);(F=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(F.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.l.computeWidescreen=function(F){var q;return!!(F&&((q=_.n(F,VLd))==null?0:q.isWidescreen))};
_.l.computeExpandable=function(F){return!!(F&&F.length>0)};
_.l.onIronResize=function(){if(this.expandable){var F=_.ep(this.hostElement).querySelector("#expandable-tile-container :first-child");F&&!F.expanded&&(F.expanded=!0)}};
_.l.handleMuteAd=function(){this.collapseAd(null)};
_.l.restoreCollapsedState=function(F){this.collapsed=_.TV().get("HIDDEN_MASTHEAD_ID")===F};
_.l.collapseAd=function(F){if(F){var q=_.TV();q.set("HIDDEN_MASTHEAD_ID",F);q.save()}(F=_.ep(this.hostElement).querySelector("#video"))&&_.Q0(F,"yt-masthead-hidden");this.collapsed=!0};
_.l.expandAd=function(){var F=_.TV();F.set("HIDDEN_MASTHEAD_ID",!1);F.save();location.reload()};
_.l.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Um.prototype.onIronResize=Um.prototype.onIronResize;Um.prototype.dataChanged=Um.prototype.dataChanged;_.C([_.D(_.Vl),_.V("design:type",Object)],Um.prototype,"ironResizableBehavior",void 0);_.C([_.D(JF),_.V("design:type",Object)],Um.prototype,"ytdActiveViewBehavior",void 0);_.C([_.D(_.p_),_.V("design:type",Object)],Um.prototype,"ytdGridStateAwareBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Um.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Um.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.V("design:type",Boolean)],Um.prototype,"widescreen",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.V("design:type",Boolean)],Um.prototype,"expandable",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Um.prototype,"collapsed",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Um.prototype,"dataChanged",null);
_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Um.prototype,"onIronResize",null);_.C([_.m({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Um);
_.b(Um,"ytd-video-masthead-ad-v3-renderer",function(){if(oNn!==void 0)return oNn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return oNn=F},{mode:2});var SH=function(){return _.x.apply(this,arguments)||this};
_.M(SH,_.x);_.l=SH.prototype;_.l.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.l.ready=function(){var F=this;MIu(function(){F.isAttached&&ti(F.JSC$15549_storedAdSlotMetadata,F.JSC$15549_storedAdLayoutMetadata,F.adSlotMetadata,F.adLayoutMetadata)&&HY(vY(),F.JSC$15549_storedAdSlotMetadata,F.JSC$15549_storedAdLayoutMetadata)})};
_.l.attached=function(){ti(this.JSC$15549_storedAdSlotMetadata,this.JSC$15549_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&tPC(vY(),this.JSC$15549_storedAdSlotMetadata,this.JSC$15549_storedAdLayoutMetadata)};
_.l.detached=function(){ti(this.JSC$15549_storedAdSlotMetadata,this.JSC$15549_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&HY(vY(),this.JSC$15549_storedAdSlotMetadata,this.JSC$15549_storedAdLayoutMetadata)};
_.l.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15549_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15549_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15549_storedAdLayoutMetadata!==void 0&&this.JSC$15549_storedAdSlotMetadata!==void 0&&HY(vY(),this.JSC$15549_storedAdSlotMetadata,this.JSC$15549_storedAdLayoutMetadata),tPC(vY(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15549_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15549_storedAdSlotMetadata=this.adSlotMetadata)};
_.JJ.Object.defineProperties(SH.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.adLayoutMetadata}}});
SH.prototype.onAdMetadataChanged=SH.prototype.onAdMetadataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],SH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],SH.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],SH.prototype,"data",void 0);_.C([_.W("data.adLayoutMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],SH.prototype,"adLayoutMetadata",null);
_.C([_.O(),_.V("design:type",Object)],SH.prototype,"adSlotMetadata",void 0);_.C([_.za("adLayoutMetadata","adSlotMetadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SH.prototype,"onAdMetadataChanged",null);_.C([_.m({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],SH);
_.b(SH,"ytd-page-top-ad-layout-renderer",function(){if(Nir!==void 0)return Nir;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Nir=
F},{mode:_.Nc("kevlar_poly_si_batch_j070")?1:2});var nNO;var hr=function(){var F=_.x.apply(this,arguments)||this;F.noBottomMargin=!1;F.overlayDensity=0;F.typographyBump=!1;return F};
_.M(hr,_.x);_.l=hr.prototype;
_.l.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]]"}}}}}};
_.l.ready=function(){var F=this;MIu(function(){F.isAttached&&F.adSlotMetadata&&qGC(vY(),F.adSlotMetadata)})};
_.l.attached=function(){if(this.adSlotMetadata){var F;if(this.adSlotMetadata===((F=this.data)==null?void 0:F.adSlotMetadata))FQ1(vY(),this.adSlotMetadata);else{var q;_.bz(Error("Mh`"+this.adSlotMetadata+"`"+((q=this.data)==null?void 0:q.adSlotMetadata)))}}};
_.l.detached=function(){this.adSlotMetadata&&qGC(vY(),this.adSlotMetadata)};
_.l.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.l.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&qGC(vY(),this.adSlotMetadata),FQ1(vY(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.JJ.Object.defineProperties(hr.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var F,q,t=_.n((F=this.data)==null?void 0:(q=F.fulfillmentContent)==null?void 0:q.fulfilledLayout,_.SNJ),u;return(F=(u=_.n(t==null?void 0:t.renderingContent,Utd))==null?void 0:u.layout)?F.toLowerCase().replace(/_/g,"-"):""}}});
hr.prototype.onAdSlotMetadataChanged=hr.prototype.onAdSlotMetadataChanged;hr.prototype.onTypographyBumpChanged=hr.prototype.onTypographyBumpChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],hr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],hr.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],hr.prototype,"rendererBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],hr.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],hr.prototype,"noBottomMargin",void 0);_.C([_.O(),_.V("design:type",Object)],hr.prototype,"overlayDensity",void 0);_.C([_.O(),_.V("design:type",Object)],hr.prototype,"typographyBump",void 0);_.C([_.Ms("ytd-in-feed-ad-layout-renderer"),_.V("design:type",HTMLElement)],hr.prototype,"inFeedAdLayoutRenderer",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",String),_.V("design:paramtypes",[])],hr.prototype,"layout",null);_.C([_.za("typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hr.prototype,"onTypographyBumpChanged",null);_.C([_.za("data.adSlotMetadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hr.prototype,"onAdSlotMetadataChanged",null);
_.C([_.m({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],hr);
_.b(hr,"ytd-ad-slot-renderer",function(){if(nNO!==void 0)return nNO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return nNO=F},{mode:_.Nc("kevlar_poly_si_batch_j077")?
1:2});var MPv;var Ky=function(){return _.x.apply(this,arguments)||this};
_.M(Ky,_.x);_.l=Ky.prototype;_.l.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"}}}};
_.l.maybeComputeHref=function(){return null};
_.l.onTap=function(){};
_.l.onThumbnailContainerClick=function(F){this.onClick(F)};
_.l.onClick=function(F){var q,t=(q=this.data)==null?void 0:q.navigationEndpoint;t&&_.n(t,_.Fw)&&(this.ytSparklesClickLocationBehavior.handleClick(t,F,!1),F.stopPropagation())};
_.l.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var F=_.X(this.data.impressionUrls),q=F.next();!q.done;q=F.next())q=q.value,GCP(q,WWf(q));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Ky.JSC$15557_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ky.JSC$15557_CLICK_LOCATION_ID_MAP);this.thumbnail&&(F=this.thumbnail.getElementsByTagName("a"),F.length>0&&(F=F.namedItem("thumbnail"))&&
F.removeAttribute("href"))}};
_.l.attached=function(){var F=this;_.E("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.E("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.JJ.Object.defineProperties(Ky.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Ky.prototype.dataChanged=Ky.prototype.dataChanged;Ky.prototype.onTap=Ky.prototype.onTap;Ky.JSC$15557_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Ky.JSC$15557_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"}];_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.C([_.D(JF),_.V("design:type",Object)],Ky.prototype,"ytdActiveViewBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Ky.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Ky.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.GK.YtSparklesClickLocationBehavior),_.V("design:type",Object)],Ky.prototype,"ytSparklesClickLocationBehavior",void 0);
_.C([_.O({selector:_.Cp}),_.V("design:type",Object)],Ky.prototype,"isGridViewEnabled",void 0);_.C([_.W("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ky.prototype,"watchFeedBigThumbs",null);_.C([_.W("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],Ky.prototype,"thumbnailWidth",null);_.C([_.O(),_.V("design:type",Object)],Ky.prototype,"data",void 0);
_.C([_.Ms("ytd-thumbnail"),_.V("design:type",HTMLElement)],Ky.prototype,"thumbnail",void 0);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ky.prototype,"onTap",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ky.prototype,"dataChanged",null);_.C([_.m({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Ky);
_.b(Ky,"ytd-compact-promoted-video-renderer",function(){if(MPv!==void 0)return MPv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return MPv=F},{mode:1});var TiO;_.mo("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var BY=function(){return _.x.apply(this,arguments)||this};
_.M(BY,_.x);BY.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],BY.prototype,"data",void 0);_.C([_.m({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],BY);
_.b(BY,"ytd-search-pyv-renderer",function(){if(TiO!==void 0)return TiO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return TiO=F},{mode:1});var GLe;_.mo("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Ly=function(){var F=_.x.apply(this,arguments)||this;F.roundedContainer=!0;F.JSC$15565_handleOpenPostCommentDialogActionAfterStamp=!1;F.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return F};
_.M(Ly,_.x);_.l=Ly.prototype;
_.l.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}}};
_.l.onStampFinished=function(){this.JSC$15565_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){var F=_.ep(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");F?F.openDialog():this.JSC$15565_handleOpenPostCommentDialogActionAfterStamp=!0};
_.l.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.l.computeHideBorder=function(){return this.isInEngagementPanel};
_.l.computeIsCompact=function(){return this.isInEngagementPanel};
_.l.computeUsesCompactLockup=function(F){return F==="BACKSTAGE_SURFACE_TYPE_HOME"||F==="BACKSTAGE_SURFACE_TYPE_SEARCH"||F==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||F==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||F==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||F==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.l.computeUsesFullLockup=function(){var F,q=(F=this.data)==null?void 0:F.post,t;F=(t=_.n(q,tuw))==null?void 0:t.surface;var u;t=(u=_.n(q,sRC))==null?void 0:u.originalPost;var J;if(u=F||((J=_.n(t,tuw))==null?void 0:J.surface))return!this.computeUsesCompactLockup(u)&&this.useUpdatedRepostUi;var g;return((g=_.n(q,sRC))==null?void 0:g.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.JJ.Object.defineProperties(Ly.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var F,q;return((q=_.n((F=this.data)==null?void 0:F.post,tuw))==null?void 0:q.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.useUpdatedRepostUi}}});
Ly.prototype.onYtCommentModerationPanelEmpty=Ly.prototype.onYtCommentModerationPanelEmpty;Ly.prototype.onStampFinished=Ly.prototype.onStampFinished;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Ly.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],Ly.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ly.prototype,"roundedContainer",void 0);_.C([_.O({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Ly.prototype,"hideBorder",void 0);_.C([_.O({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Ly.prototype,"isCompact",void 0);
_.C([_.O({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Ly.prototype,"usesFullLockup",void 0);_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ly.prototype,"onStampFinished",null);
_.C([_.EB("ytd-comment-moderation-panel-empty"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Ly.prototype,"onYtCommentModerationPanelEmpty",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ly.prototype,"isInEngagementPanel",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ly.prototype,"useUpdatedRepostUi",null);
_.C([_.m({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Ly);
_.b(Ly,"ytd-backstage-post-thread-renderer",function(){if(GLe!==void 0)return GLe;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return GLe=F},{mode:1});var DGr;var qB=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(qB,_.x);qB.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
qB.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var F=this.data.thumbnail.thumbnails;this.isDarkTheme&&(F=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(F=_.ZR(F,24,void 0,"height"))?F:void 0}};
qB.prototype.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
qB.prototype.computeHasText=function(){var F;return!((F=this.data)==null||!F.text)};
_.JJ.Object.defineProperties(qB.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.d$(this.bannerImageUrl))+'");'}}});
qB.prototype.computeHasText=qB.prototype.computeHasText;qB.prototype.computeBannerImageUrl=qB.prototype.computeBannerImageUrl;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],qB.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],qB.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],qB.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],qB.prototype,"isDarkTheme",void 0);_.C([_.O(),_.V("design:type",String)],qB.prototype,"bannerImageUrl",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.V("design:type",Boolean)],qB.prototype,"hasText",void 0);_.C([_.za("data","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qB.prototype,"computeBannerImageUrl",null);
_.C([_.za("data.text"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qB.prototype,"computeHasText",null);_.C([_.W("bannerImageUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],qB.prototype,"bannerStyle",null);_.C([_.m({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],qB);
_.b(qB,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(DGr!==void 0)return DGr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return DGr=F},{mode:1});var WQw;var t0=function(){return _.x.apply(this,arguments)||this};
_.M(t0,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],t0.prototype,"data",void 0);_.C([_.m({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],t0);
_.b(t0,"ytd-backstage-zero-state-renderer",function(){if(WQw!==void 0)return WQw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return WQw=F},{mode:1});var ODJ;var us=function(){return _.x.apply(this,arguments)||this};
_.M(us,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],us.prototype,"data",void 0);_.C([_.O({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],us.prototype,"icon",void 0);_.C([_.m({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],us);
_.b(us,"ytd-post-filter-zero-state-renderer",function(){if(ODJ!==void 0)return ODJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ODJ=F},{mode:1});var Pxr;var xGz={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},J0=function(){return _.x.apply(this,arguments)||this};
_.M(J0,_.x);J0.prototype.configureRendererStamper=function(){return xGz};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],J0.prototype,"rendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],J0.prototype,"data",void 0);_.C([_.O({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],J0.prototype,"icon",void 0);_.C([_.m({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],J0);
_.b(J0,"ytd-post-scheduling-zero-state-renderer",function(){if(Pxr!==void 0)return Pxr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Pxr=F},{mode:1});var Ayf;var s6=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return F};
_.M(s6,_.x);s6.prototype.onTabsActivate=function(F){this.data&&this.data.tabs&&_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[F.detail.selected].navigationEndpoint})};
s6.prototype.shouldShowTotalCount=function(F){return F&&F.totalCount!==void 0};
s6.prototype.handleUpdatePostsTotalCountAction=function(F){var q=this.get(["data.tabs",1,"totalCount"]),t=this.get("updatePostsTotalCountAction.updateType",F);F=this.get("updatePostsTotalCountAction.number",F);q!==void 0&&t!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&F&&(t==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(q)+F):t==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(q)-F))};
_.JJ.Object.defineProperties(s6.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var F=0,q=this.data.tabs.length;F<q;F++)if(this.data.tabs[F].selected)return F;return 0}}});
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],s6.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],s6.prototype,"rendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],s6.prototype,"data",void 0);_.C([_.W("data.tabs"),_.V("design:type",Number),_.V("design:paramtypes",[])],s6.prototype,"selected",null);_.C([_.m({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],s6);
_.b(s6,"ytd-post-stream-filter-renderer",function(){if(Ayf!==void 0)return Ayf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Ayf=F},{mode:1});var vNe;var gD=function(){return _.x.apply(this,arguments)||this};
_.M(gD,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],gD.prototype,"kevlarBehaviors",void 0);_.C([_.O(),_.V("design:type",Object)],gD.prototype,"data",void 0);_.C([_.m({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],gD);
_.b(gD,"ytd-channel-age-gate-renderer",function(){if(vNe!==void 0)return vNe;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return vNe=F},{mode:1});var II1;_.mo("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var ls=function(){var F=_.x.apply(this,arguments)||this;F.data=null;return F};
_.M(ls,_.x);ls.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.JJ.Object.defineProperties(ls.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((F=this.data)==null?0:(q=F.title)==null?0:(t=q.runs)==null?0:t.length)?147:160}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ls.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],ls.prototype,"imageSizePx",null);_.C([_.m({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],ls);
_.b(ls,"ytd-channel-owner-empty-state-renderer",function(){if(II1!==void 0)return II1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return II1=F},{mode:1});var HDL;var mGf;var XW=function(){var F=_.x.apply(this,arguments)||this;F.boundSubmitSearch=function(){F.submitSearch()};
F.boundClearSearch=function(){F.clearSearch()};
return F};
_.M(XW,_.x);_.l=XW.prototype;_.l.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]]"}}}}}};
_.l.toggleClearButton=function(){this.hideClearButton=E8t||!this.input.value};
_.l.submitOnEnterKeyUp=function(F){F.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.l.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.l.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.l.submit=function(){_.Q0(this.hostElement,"search-query-changed",this.input.value)};
XW.prototype.toggleClearButton=XW.prototype.toggleClearButton;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],XW.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],XW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],XW.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],XW.prototype,"hideClearButton",void 0);_.C([_.O(),_.V("design:type",Object)],XW.prototype,"boundSubmitSearch",void 0);_.C([_.O(),_.V("design:type",Object)],XW.prototype,"boundClearSearch",void 0);_.C([_.Ms("#input"),_.V("design:type",Object)],XW.prototype,"input",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XW.prototype,"toggleClearButton",null);
_.C([_.m({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],XW);
_.b(XW,"ytd-channel-switcher-search-box-renderer",function(){if(mGf!==void 0)return mGf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return mGf=F},{mode:1});var $Gw;var Yu=function(){var F=_.x.apply(this,arguments)||this;F.boundSubmit=function(){F.submit()};
return F};
_.M(Yu,_.x);_.l=Yu.prototype;_.l.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"}}}}};
_.l.ready=function(){var F=this;this.form.addEventListener("submit",function(q){return F.onSubmit(q)})};
_.l.onSubmit=function(F){F.preventDefault();return!1};
_.l.toggleClearButton=function(){this.hideClearButton=E8t||!this.input.value};
_.l.submitOnEnterKeyUp=function(F){F.keyCode===13&&this.submit()};
_.l.submit=function(){var F=this.data.endpoint,q=(0,_.m7.unsafeClone)(F);_.n(q,_.Gr)?_.n(q,_.Gr).query=this.input.value:_.n(q,_.Dn)&&(_.n(q,_.Dn).query=this.input.value);var t=_.n(q.commandMetadata,_.EH);(t==null?0:t.url)?(t.url=_.dO(t.url,"query",this.input.value),_.Q0(this.hostElement,"yt-navigate",{endpoint:q})):_.n(q,$td)?(_.n(q,$td).channelSwitcherQuery=this.input.value,_.sV().resolve(_.gN).resolveCommand(q,{form:{element:this.hostElement}})):(F=Error("Nh`"+JSON.stringify(F)),_.mH(F))};
_.l.getUrl=function(F){return this.get("commandMetadata.webCommandMetadata.url",F)};
Yu.prototype.toggleClearButton=Yu.prototype.toggleClearButton;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Yu.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Yu.prototype,"hideClearButton",void 0);
_.C([_.O(),_.V("design:type",Object)],Yu.prototype,"boundSubmit",void 0);_.C([_.Ms("#form"),_.V("design:type",HTMLFormElement)],Yu.prototype,"form",void 0);_.C([_.Ms("#input"),_.V("design:type",Object)],Yu.prototype,"input",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yu.prototype,"toggleClearButton",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Yu);
_.b(Yu,"ytd-search-box-renderer",function(){if($Gw!==void 0)return $Gw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return $Gw=F},{mode:2});var pb=function(){var F=_.x.apply(this,arguments)||this;F.showSearchBox=!0;return F};
_.M(pb,_.x);pb.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],pb.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],pb.prototype,"showSearchBox",void 0);_.C([_.m({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],pb);
_.b(pb,"ytd-channel-switcher-header-renderer",function(){if(HDL!==void 0)return HDL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return HDL=F},{mode:1});var bDj;var yyJ;var Qo=function(){var F=_.x.apply(this,arguments)||this;F.isDisplayed=!0;return F};
_.M(Qo,_.x);_.l=Qo.prototype;_.l.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.dataChanged=function(){this.isDisplayed=!0};
_.l.computeType=function(F){return F||"UNKNOWN"};
_.l.onYtServiceRequestCompleted=function(F){F.stopPropagation();this.isDisplayed=!1};
_.l.onClose=function(){this.isDisplayed=!1};
Qo.prototype.onYtServiceRequestCompleted=Qo.prototype.onYtServiceRequestCompleted;Qo.prototype.dataChanged=Qo.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Qo.prototype,"data",void 0);
_.C([_.O({computed:"computeType(data.type)",reflectToAttribute:!0}),_.V("design:type",String)],Qo.prototype,"type",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Qo.prototype,"isDisplayed",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qo.prototype,"dataChanged",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Qo.prototype,"onYtServiceRequestCompleted",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Qo);
_.b(Qo,"ytd-alert-with-button-renderer",function(){if(yyJ!==void 0)return yyJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return yyJ=F},{mode:1});var ek=function(){var F=_.x.apply(this,arguments)||this;F.noResult=!1;F.enableAlertBanner=!1;F.dismissedAlertBanner=!1;F.hideCreateChannelButton=!1;F.boundDismissAlertBanner=function(){F.dismissAlertBanner()};
F.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return F};
_.M(ek,_.x);_.l=ek.prototype;_.l.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.l.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.l.updateChannelSwitcherAction=function(F){var q;F=(q=_.n(F,Piw))==null?void 0:q.page;_.n(F,One)!==void 0&&(this.data=_.n(F,One))};
_.l.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]]"}}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.l.searchQueryChanged=function(F,q){if(this.data&&this.data.contents&&this.data.contents.length){F=[];var t=[];this.hideCreateChannelButton=this.noResult=!1;for(var u=document.querySelectorAll("ytd-account-item-renderer"),J=_.X(u),g=J.next();!g.done;g=J.next())g=g.value,t.push(g),g.style.display="block";this.resetRightBorder(t);if(q){this.hideCreateChannelButton=!0;for(t=1;t<this.data.contents.length;t++)if(g=this.data.contents[t],_.n(g,IHE)){var Y=void 0,Q=void 0;J=(Y=_.n(g,IHE))==null?void 0:(Q=
Y.accountName)==null?void 0:Q.simpleText;Q=Y=void 0;g=(Y=_.n(g,IHE))==null?void 0:(Q=Y.channelHandle)==null?void 0:Q.simpleText;(Y=u[t-1])&&J&&_.QC(J,q)?F.push(Y):_.E("enable_handle_search_on_channel_switcher")&&Y&&g&&_.QC(g.toString(),q.toString())?F.push(Y):Y.style.display="none"}F.length===0&&(this.noResult=!0);this.resetRightBorder(F)}}};
_.l.resetRightBorder=function(F){for(var q=0;q<F.length;q++)F[q].style.borderRight=!this.hideCreateChannelButton&&(q+2)%3===0||this.hideCreateChannelButton&&(q+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.l.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.l.setShowSearchBox=function(F){if(F&&F.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var q=0;q<F.contents.length;q++)_.n(F.contents[q],_.F9)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.l.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.JJ.Object.defineProperties(ek.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null?0:F.contents)}}});
ek.prototype.onContinuationItemsUpdated=ek.prototype.onContinuationItemsUpdated;ek.prototype.searchQueryChanged=ek.prototype.searchQueryChanged;ek.prototype.onDataChanged=ek.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],ek.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.Qd),_.V("design:type",Object)],ek.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ek.prototype,"data",void 0);_.C([_.Ms("ytd-channel-switcher-header-renderer"),_.V("design:type",Object)],ek.prototype,"channelSwitcherHeaderRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],ek.prototype,"noResult",void 0);
_.C([_.O(),_.V("design:type",Object)],ek.prototype,"enableAlertBanner",void 0);_.C([_.O(),_.V("design:type",Object)],ek.prototype,"dismissedAlertBanner",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],ek.prototype,"hideCreateChannelButton",void 0);_.C([_.W("data.contents"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ek.prototype,"isLoading",null);_.C([_.O(),_.V("design:type",Object)],ek.prototype,"boundDismissAlertBanner",void 0);
_.C([_.O({computed:"computeButtonOverride()"}),_.V("design:type",Object)],ek.prototype,"buttonOverride",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ek.prototype,"onDataChanged",null);_.C([_.EB("search-query-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,String]),_.V("design:returntype")],ek.prototype,"searchQueryChanged",null);
_.C([_.EB("yt-next-continuation-data-updated"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ek.prototype,"onContinuationItemsUpdated",null);_.C([_.m({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],ek);
_.b(ek,"ytd-channel-switcher-page-renderer",function(){if(bDj!==void 0)return bDj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return bDj=F},{mode:1});var Cxd;var dGe;var ZY=function(){var F=_.x.apply(this,arguments)||this;F.images=[];F.selectedImageIndex=0;return F};
_.M(ZY,_.x);_.l=ZY.prototype;
_.l.ready=function(){_.Ic(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Ic(this.JSC$15610_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Ic(this.JSC$15610_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Ic(this.JSC$15610_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.l.onThumbnailClick=function(F){if(F=F.event_.detail)this.selectedImageIndex=this.images.indexOf(F)};
_.l.updateImageThumbnails=function(F){F=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:F.event_.detail});this.images.splice(this.selectedImageIndex,1,F);this.images=[].concat(_.mZ(this.images))};
_.l.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Q0(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.l.saveImageRepositions=function(){this.selectedImageIndex=0;_.Q0(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.JJ.Object.defineProperties(ZY.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var F=this;return(this.images||[]).map(function(q,t){return{image:q,selected:t===F.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ZY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.Ms("ytd-backstage-image-preview-renderer"),_.V("design:type",Object)],ZY.prototype,"JSC$15610_imagePreviewContainer",void 0);_.C([_.Ms(".thumbnail-images-container"),_.V("design:type",HTMLElement)],ZY.prototype,"thumbnailImagesContainer",void 0);_.C([_.O(),_.V("design:type",Array)],ZY.prototype,"images",void 0);
_.C([_.O(),_.V("design:type",Object)],ZY.prototype,"repositionInstructions",void 0);_.C([_.O(),_.V("design:type",Object)],ZY.prototype,"selectedImageIndex",void 0);_.C([_.W("images","selectedImageIndex"),_.V("design:type",Array),_.V("design:paramtypes",[])],ZY.prototype,"thumbnailRendererDatas",null);_.C([_.W("images","selectedImageIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],ZY.prototype,"selectedImageData",null);
_.C([_.m({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],ZY);
_.b(ZY,"ytd-backstage-multi-image-reposition-renderer",function(){if(dGe!==void 0)return dGe;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return dGe=F},{mode:1});var RH=function(F,q){_.xD.call(this);this.uploadUrl=F;this.channelId=q;this.imagesUploadData=[]};
_.M(RH,_.xD);RH.prototype.getAllUploadStatuses=function(){var F=this,q,t,u;return _.p(function(J){if(J.nextAddress==1)return J.yield(VPC(F),2);q=J.yieldResult;t=q.get("succeed");u=q.get("failed");return J.return(t.concat(u))})};
var SGw=function(F){var q,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(VPC(F),2);q=u.yieldResult;t=q.get("failed");t.length>0&&UGj(F,t);return u.return(F.getAllUploadStatuses())})},VPC=function(F){var q,t,u,J,g,Y,Q;
return _.p(function(e){if(e.nextAddress==1)return q=new Map,e.yield(Promise.allSettled(F.imagesUploadData.map(function(r){return r.uploadPromise})),2);
t=e.yieldResult;u=[];J=_.X(t);for(g=J.next();!g.done;g=J.next())Y=g.value,Y.status==="fulfilled"&&u.push(Y.value);Q=F.imagesUploadData.map(function(r){return r.image}).filter(function(r){return u.every(function(N){return N.id!==r.id})});
q.set("succeed",u);q.set("failed",Q);return e.return(q)})},UGj=function(F,q){q=_.X(q);
for(var t=q.next();!t.done;t=q.next()){var u=F;t=t.value;hkO(u,t.id)>=0&&u.cancel(t.id);var J=new KQO(t),g=_.oVO(u.uploadUrl,{"X-YouTube-ChannelId":u.channelId},t.imageBlob);J.transfer=g;J.uploadPromise=Bix(g,t);u.imagesUploadData.push(J);g.run()}};
RH.prototype.cancel=function(F){var q=hkO(this,F);q!==-1&&((q=this.imagesUploadData[q].transfer)&&q.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(t){return t.image.id!==F}))};
var hkO=function(F,q){return F.imagesUploadData.findIndex(function(t){return t.image.id===q})},Bix=function(F,q){return new Promise(function(t,u){F.listen("l",function(){var J=F.getResponseText();
J?(J=JSON.parse(J).encryptedBlobId,q.encryptedBlobId=J,t(q)):u("upload failed")});
F.listen("n",function(){u("upload failed")})})},KQO=function(F){this.image=F};var X$P=function(F,q,t,u,J){this.id=F;this.imageBlob=q;this.localImageSrc=t;this.naturalWidth=u;this.naturalHeight=J;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 LQO=[".jpeg",".jpg",".png"],rD=function(){var F=_.x.apply(this,arguments)||this;F.showImagesPreview=!1;F.pollOptions=[];F.errorMessage="";F.optionPlaceholderText="";F.optionDefaultText="";F.JSC$15621_imageId=0;F.maxFileSizeMb=0;F.maxAspectRatio=0;F.invalidFileSizeError="";F.invalidAspectRatioError="";F.invalidFileTypeError="";F.imageSelector=new TY(null,"single_file",LQO);return F};
_.M(rD,_.x);_.l=rD.prototype;_.l.ready=function(){_.Ic(this.imageSelector,"j",this.onImageSelect,!1,this);_.Ic(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Ic(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.l.dataChanged=function(){var F,q,t=_.n((F=this.data)==null?void 0:(q=F.cellTemplate)==null?void 0:q.onEmptyCellTap,uSe);if(t&&t.uploadUrl&&t.channelId){var u;this.maxFileSizeMb=((u=t.imageValidationInfo)==null?void 0:u.maxFileSizeMb)||0;var J;this.maxAspectRatio=((J=t.imageValidationInfo)==null?void 0:J.allowedMaxAspectRatio)||0;var g;this.invalidFileSizeError=this.getSimpleString((g=this.data)==null?void 0:g.invalidFileSizeError);var Y;this.invalidAspectRatioError=this.getSimpleString((Y=this.data)==
null?void 0:Y.invalidAspectRatioError);var Q;this.invalidFileTypeError=this.getSimpleString((Q=this.data)==null?void 0:Q.invalidFileTypeError);this.uploadManager=new RH(t.uploadUrl,t.channelId)}};
_.l.onEditorInfoChange=function(){this.optionPlaceholderText=_.q1(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.q1(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.l.observeAddImageError=function(){this.errorMessage!==""&&_.Q0(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.l.onPollOptionsChange=function(){for(var F=!1,q=[],t=0;t<this.pollOptions.length;t++){var u=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(t+1);this.pollOptions[t].placeholderText!==u?(F=!0,q.push(Object.assign({},this.pollOptions[t],{placeholderText:u}))):q.push(this.pollOptions[t])}F&&(this.pollOptions=q);this.isValid()?_.Q0(this.hostElement,"yt-commentbox-post-enable"):_.Q0(this.hostElement,"yt-commentbox-post-disable")};
_.l.createPollOptions=function(F){var q=[],t;F=(t=F==null?void 0:F.minPollOptions)!=null?t:0;for(t=0;t<F;t++)q.push(this.createPollOption());return q};
_.l.onImageSelect=function(F){var q=this,t,u,J,g,Y,Q;return _.p(function(e){if(e.nextAddress==1){if(q.selectedImageIndex===void 0)return e.jumpTo(0);t=F.files[0];q.errorMessage="";u=q.validateImage(t);if(u!=="")return q.errorMessage=u,e.return();J=new Rl(q.maxAspectRatio,!1,!0);return e.yield(J.transform(t),3)}if(e.nextAddress!=4)return g=e.yieldResult,g.transformedData?g.invalidAspectRatio?(q.errorMessage=q.invalidAspectRatioError,e.return()):e.yield(Y_f(q.JSC$15621_imageId,F.files[0],g.transformedData),
4):(q.errorMessage=q.invalidFileTypeError,e.return());Y=e.yieldResult;q.JSC$15621_imageId++;UGj(q.uploadManager,[Y]);Q=Object.assign({},q.pollOptions[q.selectedImageIndex],{image:Y});q.pollOptions.splice(q.selectedImageIndex,1,Q);q.refreshPollOptions();_.Q0(q.hostElement,"yt-backstage-poll-image-select");_.WA(e)})};
_.l.validateImage=function(F){return F.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.l.refreshPollOptions=function(){this.pollOptions=[].concat(_.mZ(this.pollOptions))};
_.l.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.mZ(this.pollOptions),[this.createPollOption()]))};
_.l.onRemovePollOption=function(F){var q=this.pollOptions[F.model.index];q&&q.image&&this.uploadManager.cancel(q.image.id);this.pollOptions.splice(F.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Q0(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.l.onTextInput=function(){this.refreshPollOptions()};
_.l.onImageButtonClick=function(F){this.selectedImageIndex=F.model.index;this.imageSelector.click()};
_.l.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.l.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.l.saveImageRepositions=function(F){F=F.event_.detail;for(var q=0,t=[],u=_.X(this.pollOptions),J=u.next();!J.done;J=u.next())J=J.value,J.image!==void 0?(J=Object.assign({},J,{image:F[q]}),t.push(J),q++):t.push(J);this.showImagesPreview=!1;this.pollOptions=[].concat(_.mZ(t))};
_.l.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var F=0,q=_.X(this.pollOptions),t=q.next();!t.done;t=q.next())if(t=t.value,t.optionText.trim()!==""||t.image!==void 0){if(!t.image||this.hasCustomOptionText&&t.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;F++}return F>=Number(this.editorInfo.minPollOptions)};
_.l.getAllUploadStatuses=function(){var F=this,q,t,u,J;return _.p(function(g){if(g.nextAddress==1)return g.yield(F.uploadManager.getAllUploadStatuses(),2);q=g.yieldResult;t=_.X(q);for(u=t.next();!u.done;u=t.next())if(J=u.value,J.encryptedBlobId===void 0)return g.return(SGw(F.uploadManager));return g.return(q)})};
_.l.getPostCreateOptions=function(){for(var F=[],q=_.X(this.pollOptions),t=q.next();!t.done;t=q.next())t=t.value,t.image!==void 0&&F.push({text:this.hasCustomOptionText?t.optionText:t.placeholderText,image:t.image});return F};
_.l.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.l.createButtonRenderer=function(F,q){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleString(F)}},isDisabled:q}};
_.l.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.l.computeThumbnailRendererData=function(F){return F?{image:F,selected:!1}:void 0};
_.l.getSimpleString=function(F){return _.q1(F)};
_.l.updateOptionTextFromBinding=function(F){if(F.target){var q=Array.from(_.ep(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(F.target);if(q>=0){var t;this.pollOptions[q].optionText=(t=F.detail.value)!=null?t:""}}};
_.JJ.Object.defineProperties(rD.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var F,q;return this.pollOptions.length<((q=(F=this.editorInfo)==null?void 0:F.maxPollOptions)!=null?q:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(F){return F.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(F){return F.image}).map(function(F){return F.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(F){return F.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var F,q=(F=this.data)==null?void 0:F.addOptionButtonText;return q?this.createButtonRenderer(q,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var F,q=(F=this.data)==null?void 0:F.repositionImagesButtonLabel;return q?this.createButtonRenderer(q,!this.hasImages):void 0}}});
rD.prototype.onPollOptionsChange=rD.prototype.onPollOptionsChange;rD.prototype.observeAddImageError=rD.prototype.observeAddImageError;rD.prototype.onEditorInfoChange=rD.prototype.onEditorInfoChange;rD.prototype.dataChanged=rD.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.C([_.Ms("ytd-backstage-multi-image-reposition-renderer"),_.V("design:type",Object)],rD.prototype,"imageRepositionContainer",void 0);
_.C([_.O(),_.V("design:type",Object)],rD.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],rD.prototype,"editorInfo",void 0);_.C([_.O(),_.V("design:type",RH)],rD.prototype,"uploadManager",void 0);_.C([_.O(),_.V("design:type",Object)],rD.prototype,"showImagesPreview",void 0);_.C([_.O(),_.V("design:type",Array)],rD.prototype,"pollOptions",void 0);_.C([_.O(),_.V("design:type",Object)],rD.prototype,"errorMessage",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rD.prototype,"dataChanged",null);_.C([_.Wh("editorInfo"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rD.prototype,"onEditorInfoChange",null);_.C([_.za("errorMessage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rD.prototype,"observeAddImageError",null);
_.C([_.Wh("pollOptions"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rD.prototype,"onPollOptionsChange",null);_.C([_.W("pollOptions","editorInfo"),_.V("design:type",Object),_.V("design:paramtypes",[])],rD.prototype,"isAllowedToAddOption",null);_.C([_.W("pollOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],rD.prototype,"hasImages",null);
_.C([_.W("pollOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],rD.prototype,"imagesToReposition",null);_.C([_.W("pollOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],rD.prototype,"hasCustomOptionText",null);_.C([_.W("data","isAllowedToAddOption"),_.V("design:type",Object),_.V("design:paramtypes",[])],rD.prototype,"addOptionButton",null);_.C([_.W("data","hasImages"),_.V("design:type",Object),_.V("design:paramtypes",[])],rD.prototype,"repositionImagesButton",null);
_.C([_.m({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],rD);
_.b(rD,"ytd-backstage-image-poll-editor-renderer",function(){if(Cxd!==void 0)return Cxd;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Cxd=F},{mode:2});var fIe={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 aIf;var NB=function(){var F=_.x.apply(this,arguments)||this;F.a11yConfig=fIe;F.imageDisplayOffsetTop=0;F.imageDisplayOffsetLeft=0;F.pickerDisplayOffsetTop=0;F.pickerDisplayOffsetLeft=0;F.showPreviewContainer=!0;F.startPicker=!1;F.repositionOptional=!1;F.editOnlyMode=!1;F.savedImageDisplayOffsetTop=0;F.savedImageDisplayOffsetLeft=0;return F};
_.M(NB,_.x);_.l=NB.prototype;_.l.created=function(){_.jq.requestAvailability()};
_.l.ready=function(){};
_.l.onArrowKeysDown=function(F){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){F.detail.keyboardEvent.preventDefault();var q=0,t=0,u="";switch(F.detail.keyboardEvent.key){case "ArrowUp":p$W(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?u=this.a11yConfig.reachBottomOfImage:q=this.imageHeight*.05*-1;break;case "ArrowDown":p$W(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?u=this.a11yConfig.reachTopOfImage:
q=this.imageHeight*.05;break;case "ArrowLeft":p$W(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?u=this.a11yConfig.reachRightOfImage:t=this.imageWidth*.05*-1;break;case "ArrowRight":p$W(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?u=this.a11yConfig.reachLeftOfImage:t=this.imageWidth*.05}u&&_.oD(u)&&_.Q0(this.hostElement,"iron-announce",{text:_.oD(u)});if(t||q)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+q)),F=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),F=_.oD(this.a11yConfig.imageVerticalPosition,{x_percent:""+F,y_percent:""+(100-F)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+t)),F=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),F=_.oD(this.a11yConfig.imageHorizontalPosition,{x_percent:""+F,y_percent:""+(100-F)})),F&&_.Q0(this.hostElement,"iron-announce",{text:F})}};
_.l.getPreviewPosition=function(F,q,t,u){return Math.round(100*(F+q*.5-t)/u)};
_.l.calculateDisplayPosition=function(){var F=this.imageData.naturalWidth,q=this.imageData.naturalHeight;this.displayScale=Math.max(200/F,200/q);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var t=F*this.displayScale*this.imageData.previewCoordinates.left,u=q*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=q>F?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-t;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=F>q?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-u;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=F*this.displayScale;this.imageHeight=q*this.displayScale};
_.l.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.l.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.l.getSignedPosition=function(F,q,t){return q==="X"&&_.bn("HTML_DIR")==="rtl"?t==="-"?F+"px":F*-1+"px":t==="-"?F*-1+"px":F+"px"};
_.l.pickerMove=function(F){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var q=this.pickerOffsetX-F.clientX,t=this.pickerOffsetY-F.clientY;this.pickerOffsetX=F.clientX;this.pickerOffsetY=F.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
t)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-q))}};
_.l.pickerMoveStart=function(F){this.startPicker=!0;this.pickerOffsetX=F.clientX;this.pickerOffsetY=F.clientY};
_.l.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var F=this.generateCropPreview();F&&_.Q0(this.hostElement,"ytd-backstage-image-preview-coordinates-update",F)};
_.l.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Q0(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.l.deleteImage=function(){_.Q0(this.hostElement,"ytd-backstage-image-preview-delete")};
_.l.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.l.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var F=this.generateCropPreview();F&&_.Q0(this.hostElement,"ytd-backstage-image-preview-coordinates-save",F)};
_.l.getPreviewOffset=function(F,q,t){return q&&F?(t==="X"&&_.bn("HTML_DIR")==="rtl"?300/q*F:300/q*F*-1)+"px":"0px"};
_.l.getSimpleText=function(F){return F?_.q1(F):""};
_.l.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}};
_.JJ.Object.defineProperties(NB.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var F=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.oD(this.a11yConfig.imageVerticalPosition,{x_percent:""+F,y_percent:""+(100-F)})+"\n"+_.oD(this.a11yConfig.verticalRepositionInstruction)}F=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.oD(this.a11yConfig.imageHorizontalPosition,{x_percent:""+F,y_percent:""+(100-F)})+"\n"+_.oD(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(F=this.instruction)==null?void 0:(q=F.previewInstruction)==null?void 0:q.editButtonLabel;return t?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleText(t)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u,J=this.editOnlyMode?(F=this.instruction)==null?void 0:(q=F.editInstruction)==null?void 0:q.saveImagesButtonLabel:(t=this.instruction)==null?void 0:(u=t.editInstruction)==null?void 0:u.saveButtonLabel;return J?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:J,accessibilityData:{accessibilityData:{label:this.getSimpleText(J)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(F=this.instruction)==null?void 0:(q=F.previewInstruction)==null?void 0:q.deleteButtonLabel;return t?{size:"SIZE_SMALL",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleText(t)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(F=this.instruction)==null?void 0:(q=F.editInstruction)==null?void 0:q.cancelButtonLabel;F=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return t?{style:F,size:"SIZE_SMALL",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleText(t)}}}: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"}}});
NB.prototype.onEditOnlyModeUpdate=NB.prototype.onEditOnlyModeUpdate;NB.prototype.onImageChange=NB.prototype.onImageChange;_.C([_.O(),_.V("design:type",X$P)],NB.prototype,"imageData",void 0);_.C([_.O(),_.V("design:type",Object)],NB.prototype,"instruction",void 0);_.C([_.O(),_.V("design:type",Object)],NB.prototype,"a11yConfig",void 0);_.C([_.O(),_.V("design:type",Number)],NB.prototype,"imageWidth",void 0);_.C([_.O(),_.V("design:type",Number)],NB.prototype,"imageHeight",void 0);
_.C([_.O(),_.V("design:type",Number)],NB.prototype,"displayScale",void 0);_.C([_.O(),_.V("design:type",Object)],NB.prototype,"imageDisplayOffsetTop",void 0);_.C([_.O(),_.V("design:type",Object)],NB.prototype,"imageDisplayOffsetLeft",void 0);_.C([_.O(),_.V("design:type",Object)],NB.prototype,"pickerDisplayOffsetTop",void 0);_.C([_.O(),_.V("design:type",Object)],NB.prototype,"pickerDisplayOffsetLeft",void 0);_.C([_.O(),_.V("design:type",Object)],NB.prototype,"showPreviewContainer",void 0);
_.C([_.O(),_.V("design:type",Object)],NB.prototype,"startPicker",void 0);_.C([_.O(),_.V("design:type",Number)],NB.prototype,"pickerOffsetX",void 0);_.C([_.O(),_.V("design:type",Number)],NB.prototype,"pickerOffsetY",void 0);_.C([_.O(),_.V("design:type",Object)],NB.prototype,"repositionOptional",void 0);_.C([_.O(),_.V("design:type",Object)],NB.prototype,"editOnlyMode",void 0);_.C([_.Ms("#picker-container"),_.V("design:type",HTMLElement)],NB.prototype,"JSC$15634_pickerContainer",void 0);
_.C([_.Ms("#picker"),_.V("design:type",HTMLElement)],NB.prototype,"picker",void 0);_.C([_.Ms("#preview-clipper"),_.V("design:type",HTMLElement)],NB.prototype,"previewClipper",void 0);_.C([_.Ms("#image-in-picker-background"),_.V("design:type",HTMLImageElement)],NB.prototype,"JSC$15634_imageInBackground",void 0);_.C([_.Ms("#image-in-picker"),_.V("design:type",HTMLImageElement)],NB.prototype,"JSC$15634_imageInPicker",void 0);
_.C([_.Ms("#image-in-preview-clipper"),_.V("design:type",HTMLImageElement)],NB.prototype,"JSC$15634_imageInPreviewClipper",void 0);_.C([_.W("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],NB.prototype,"altLabelForImage",null);_.C([_.W("imageHeight","imageWidth"),_.V("design:type",Number),_.V("design:paramtypes",[])],NB.prototype,"pickerSize",null);
_.C([_.W("imageHeight","imageWidth"),_.V("design:type",Object),_.V("design:paramtypes",[])],NB.prototype,"imageOrientationStyle",null);_.C([_.W("instruction"),_.V("design:type",Object),_.V("design:paramtypes",[])],NB.prototype,"editButton",null);_.C([_.W("instruction","editOnlyMode"),_.V("design:type",Object),_.V("design:paramtypes",[])],NB.prototype,"saveButton",null);_.C([_.W("instruction"),_.V("design:type",Object),_.V("design:paramtypes",[])],NB.prototype,"deleteButton",null);
_.C([_.W("instruction","editOnlyMode"),_.V("design:type",Object),_.V("design:paramtypes",[])],NB.prototype,"cancelButton",null);_.C([_.W("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.V("design:type",Number),_.V("design:paramtypes",[])],NB.prototype,"cropOffsetTop",null);_.C([_.W("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.V("design:type",Number),_.V("design:paramtypes",[])],NB.prototype,"cropOffsetLeft",null);
_.C([_.W("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],NB.prototype,"pickerBackgroundStyle",null);_.C([_.W("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],NB.prototype,"pickerDisplayStyle",null);_.C([_.W("cropOffsetLeft","cropOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],NB.prototype,"imageInPickerStyle",null);
_.C([_.W("cropOffsetLeft","cropOffsetTop","pickerSize"),_.V("design:type",String),_.V("design:paramtypes",[])],NB.prototype,"previewClipperStyle",null);_.C([_.Wh("imageData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NB.prototype,"onImageChange",null);_.C([_.Wh("editOnlyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NB.prototype,"onEditOnlyModeUpdate",null);
_.C([_.W("showPreviewContainer"),_.V("design:type",String),_.V("design:paramtypes",[])],NB.prototype,"pickerModeStyle",null);_.C([_.m({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],NB);
_.b(NB,"ytd-backstage-image-preview-renderer",function(){if(aIf!==void 0)return aIf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return aIf=F},{mode:1});var jhd;var cyf={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 Fkz;var q$O;var wD=function(){var F=_.x.apply(this,arguments)||this;F.a11yConfig=cyf;F.imageDisplayOffsetTop=0;F.imageDisplayOffsetLeft=0;F.pickerDisplayOffsetTop=0;F.pickerDisplayOffsetLeft=0;F.cropCoordinatesSaved=!1;F.previewSize=0;F.startPicker=!1;F.repositionOptional=!1;return F};
_.M(wD,_.x);_.l=wD.prototype;_.l.created=function(){_.jq.requestAvailability()};
_.l.ready=function(){};
_.l.onArrowKeysDown=function(F){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){F.detail.keyboardEvent.preventDefault();var q=0,t=0,u="";switch(F.detail.keyboardEvent.key){case "ArrowUp":QBf(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?u=this.a11yConfig.reachBottomOfImage:q=this.imageHeight*.05*-1;break;case "ArrowDown":QBf(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?u=this.a11yConfig.reachTopOfImage:
q=this.imageHeight*.05;break;case "ArrowLeft":QBf(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?u=this.a11yConfig.reachRightOfImage:t=this.imageWidth*.05*-1;break;case "ArrowRight":QBf(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?u=this.a11yConfig.reachLeftOfImage:t=this.imageWidth*.05}u&&_.oD(u)&&_.Q0(this.hostElement,"iron-announce",{text:_.oD(u)});if(t||q)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+q)),F=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),F=_.oD(this.a11yConfig.imageVerticalPosition,{x_percent:""+F,y_percent:""+(100-F)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+t)),F=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),F=_.oD(this.a11yConfig.imageHorizontalPosition,{x_percent:""+F,y_percent:""+(100-F)})),F&&_.Q0(this.hostElement,"iron-announce",{text:F})}};
_.l.getPreviewPosition=function(F,q,t,u){return Math.round(100*(F+q*.5-t)/u)};
_.l.displayImage=function(){var F=this.JSC$15645_pickerContainer.getBoundingClientRect().width,q=this.JSC$15645_pickerContainer.getBoundingClientRect().height,t=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),u=this.JSC$15645_imageInBackground.naturalWidth,J=this.JSC$15645_imageInBackground.naturalHeight;this.displayScale=Math.max(t/u,t/J);this.imageWidth=u*this.displayScale;this.imageHeight=J*this.displayScale;this.pickerDisplayOffsetLeft=(F-t)/2;this.pickerDisplayOffsetTop=
(q-t)/2;this.imageDisplayOffsetLeft=J>u?this.pickerDisplayOffsetLeft:(F-this.imageWidth)/2;this.imageDisplayOffsetTop=u>J?this.pickerDisplayOffsetTop:(q-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.l.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15645_imageInBackground.src=this.imageData.toString(),this.JSC$15645_imageInPicker.src=this.imageData.toString(),this.JSC$15645_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.l.getSignedPosition=function(F,q,t){return q==="X"&&_.bn("HTML_DIR")==="rtl"?t==="-"?F+"px":F*-1+"px":t==="-"?F*-1+"px":F+"px"};
_.l.pickerMove=function(F){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var q=this.pickerOffsetX-F.clientX,t=this.pickerOffsetY-F.clientY;this.pickerOffsetX=F.clientX;this.pickerOffsetY=F.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
t)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-q))}};
_.l.pickerMoveStart=function(F){this.startPicker=!0;this.pickerOffsetX=F.clientX;this.pickerOffsetY=F.clientY};
_.l.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.l.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Q0(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.l.getPreviewOffset=function(F,q,t,u){return q&&F&&t?(u==="X"&&_.bn("HTML_DIR")==="rtl"?t/q*F:t/q*F*-1)+"px":"0px"};
_.l.getSimpleText=function(F){return F?_.q1(F):""};
_.l.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var F=this.cropOffsetTop/this.imageHeight,q=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,t=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,u=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.ep(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Q0(this.hostElement,"yt-img-crop-coordinates-update",{top:F,right:q,bottom:t,left:u})}};
_.JJ.Object.defineProperties(wD.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var F=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.oD(this.a11yConfig.imageVerticalPosition,{x_percent:""+F,y_percent:""+(100-F)})+"\n"+_.oD(this.a11yConfig.verticalRepositionInstruction)}F=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.oD(this.a11yConfig.imageHorizontalPosition,{x_percent:""+F,y_percent:""+(100-F)})+"\n"+_.oD(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var F,q=(F=this.learnMore.runs[0])==null?void 0:F.navigationEndpoint,t;return((t=_.n(q,_.KM))==null?void 0:t.url)||void 0}}}});
wD.prototype.onImageDataChange=wD.prototype.onImageDataChange;_.C([_.O(),_.V("design:type",Object)],wD.prototype,"imageData",void 0);_.C([_.O(),_.V("design:type",Object)],wD.prototype,"instruction",void 0);_.C([_.O(),_.V("design:type",Object)],wD.prototype,"a11yConfig",void 0);_.C([_.O(),_.V("design:type",Number)],wD.prototype,"imageWidth",void 0);_.C([_.O(),_.V("design:type",Number)],wD.prototype,"imageHeight",void 0);_.C([_.O(),_.V("design:type",Number)],wD.prototype,"displayScale",void 0);
_.C([_.O(),_.V("design:type",Object)],wD.prototype,"imageDisplayOffsetTop",void 0);_.C([_.O(),_.V("design:type",Object)],wD.prototype,"imageDisplayOffsetLeft",void 0);_.C([_.O(),_.V("design:type",Object)],wD.prototype,"pickerDisplayOffsetTop",void 0);_.C([_.O(),_.V("design:type",Object)],wD.prototype,"pickerDisplayOffsetLeft",void 0);_.C([_.O(),_.V("design:type",Object)],wD.prototype,"cropCoordinatesSaved",void 0);_.C([_.O(),_.V("design:type",Object)],wD.prototype,"previewSize",void 0);
_.C([_.O(),_.V("design:type",Object)],wD.prototype,"startPicker",void 0);_.C([_.O(),_.V("design:type",Number)],wD.prototype,"pickerOffsetX",void 0);_.C([_.O(),_.V("design:type",Number)],wD.prototype,"pickerOffsetY",void 0);_.C([_.O(),_.V("design:type",Object)],wD.prototype,"repositionOptional",void 0);_.C([_.Ms("#picker-container"),_.V("design:type",HTMLElement)],wD.prototype,"JSC$15645_pickerContainer",void 0);_.C([_.Ms("#picker"),_.V("design:type",HTMLElement)],wD.prototype,"picker",void 0);
_.C([_.Ms("#image-in-picker-background"),_.V("design:type",HTMLImageElement)],wD.prototype,"JSC$15645_imageInBackground",void 0);_.C([_.Ms("#image-in-picker"),_.V("design:type",HTMLImageElement)],wD.prototype,"JSC$15645_imageInPicker",void 0);_.C([_.Ms("#image-in-preview-clipper"),_.V("design:type",HTMLImageElement)],wD.prototype,"JSC$15645_imageInPreviewClipper",void 0);_.C([_.Ms("#full-image-as-preview"),_.V("design:type",HTMLImageElement)],wD.prototype,"imageAsPreview",void 0);
_.C([_.W("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],wD.prototype,"altLabelForImage",null);_.C([_.W("imageHeight","imageWidth"),_.V("design:type",Number),_.V("design:paramtypes",[])],wD.prototype,"pickerSize",null);_.C([_.W("imageHeight","imageWidth"),_.V("design:type",Object),_.V("design:paramtypes",[])],wD.prototype,"imageOrientationStyle",null);
_.C([_.W("instruction.previewInstruction.editButtonLabel"),_.V("design:type",Object),_.V("design:paramtypes",[])],wD.prototype,"editButton",null);_.C([_.W("instruction.editInstruction.saveButtonLabel"),_.V("design:type",Object),_.V("design:paramtypes",[])],wD.prototype,"saveButton",null);_.C([_.W("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.V("design:type",Number),_.V("design:paramtypes",[])],wD.prototype,"cropOffsetTop",null);
_.C([_.W("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.V("design:type",Number),_.V("design:paramtypes",[])],wD.prototype,"cropOffsetLeft",null);_.C([_.W("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],wD.prototype,"pickerBackgroundStyle",null);_.C([_.W("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],wD.prototype,"pickerDisplayStyle",null);
_.C([_.W("cropOffsetLeft","cropOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],wD.prototype,"imageInPickerStyle",null);_.C([_.W("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.V("design:type",String),_.V("design:paramtypes",[])],wD.prototype,"previewClipperStyle",null);_.C([_.za("imageData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wD.prototype,"onImageDataChange",null);
_.C([_.W("cropCoordinatesSaved"),_.V("design:type",String),_.V("design:paramtypes",[])],wD.prototype,"pickerModeStyle",null);_.C([_.W("instruction.editInstruction.learnMore"),_.V("design:type",Object),_.V("design:paramtypes",[])],wD.prototype,"learnMore",null);_.C([_.W("learnMore"),_.V("design:type",Object),_.V("design:paramtypes",[])],wD.prototype,"learnMoreUrl",null);_.C([_.Vu({is:"yt-img-crop-picker",disableElementRegistration:!0})],wD);
_.b(wD,"yt-img-crop-picker",function(){if(q$O===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Fkz===void 0&&(Fkz=document.createElement("template"));var u=Fkz;t.call(q,u.content.cloneNode(!0),F.content.firstChild);q$O=F}F=q$O;return F},{mode:2});var is=function(){var F=_.x.apply(this,arguments)||this;F.errorMessage="";F.hasPreview=!1;F.isBackstagePost=!1;F.dismissButtonOverrides={size:"XS"};return F};
_.M(is,_.x);_.l=is.prototype;_.l.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"}}}};
_.l.detached=function(){this.removeOverlay()};
_.l.setPreview=function(F){_.ep(this.hostElement).querySelector("#preview-picker").imageData=F;this.hasPreview=!0;_.Q0(this.hostElement,"yt-backstage-image-select-preview")};
_.l.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var F=_.ep(this.hostElement).querySelector("#dropzone");F.classList.remove("dragover");F.classList.remove("error");_.Q0(this.hostElement,"yt-backstage-image-select-cancel")};
_.l.setupOverlay=function(){var F=this.imageUploadEndpoint;this.removeOverlay();if(F&&F.imageValidationInfo){var q=_.ep(this.hostElement).querySelector("#dropzone"),t=_.ep(this.hostElement).querySelector("#select");this.overlay=new NC(F.uploadUrl,F.channelId,F.imageValidationInfo.maxFileSizeMb,F.imageValidationInfo.allowedMaxAspectRatio,q,t,!0);_.Ic(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Ic(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Ic(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Ic(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Ic(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.l.removeOverlay=function(){this.overlay&&(_.Pr(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Pr(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Pr(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Pr(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Pr(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.l.onDragOver=function(F){var q=_.ep(this.hostElement).querySelector("#dropzone");_.RE(q,"dragover",F.value)};
_.l.onPreview=function(F){this.setPreview(F.value)};
_.l.onImageError=function(F){if(F.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var q;F=(q=this.data)==null?void 0:q.fileSizeError}else if(F.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var t;F=(t=this.data)==null?void 0:t.invalidError}else if(F.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var u;F=(u=this.data)==null?void 0:u.invalidAspectRatioError}else return;this.errorMessage=_.q1(F);_.ep(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.l.onImageAlert=function(F){this.onImageError(F)};
_.l.uploadPromise=function(){var F=this,q=this.overlay&&this.overlay.uploadPromise();if(q)return q.catch(function(){throw Error(F.data?_.q1(F.data.uploadFailureError):"");})};
_.JJ.Object.defineProperties(is.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var F,q;if((F=this.data)==null?0:(q=F.icon)==null?0:q.iconType)return _.Ek(this.data.icon.iconType)}}});
is.prototype.setupOverlay=is.prototype.setupOverlay;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],is.prototype,"rendererStamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],is.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],is.prototype,"imageUploadEndpoint",void 0);_.C([_.O(),_.V("design:type",Object)],is.prototype,"errorMessage",void 0);
_.C([_.O(),_.V("design:type",NC)],is.prototype,"overlay",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],is.prototype,"hasPreview",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],is.prototype,"isBackstagePost",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],is.prototype,"selectionCancel",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],is.prototype,"previewCancel",null);
_.C([_.W("data.icon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],is.prototype,"icon",null);_.C([_.O(),_.V("design:type",Object)],is.prototype,"dismissButtonOverrides",void 0);_.C([_.za("imageUploadEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],is.prototype,"setupOverlay",null);_.C([_.m({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],is);
_.b(is,"ytd-backstage-image-select-renderer",function(){if(jhd!==void 0)return jhd;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return jhd=F},{mode:1});var tof;var ulj;var ku=function(){var F=_.x.apply(this,arguments)||this;F.selected=!1;return F};
_.M(ku,_.x);_.l=ku.prototype;_.l.computeSelected=function(F){return F==null?void 0:F.selected};
_.l.computeTransform=function(F,q,t){var u,J,g=(J=(u=this.imageContainer)==null?void 0:u.getBoundingClientRect())!=null?J:{width:0,height:0};u=Math.max(g.width/q,g.height/t);t=t*u*F.top;return"translateX("+this.getSignedPosition(q*u*F.left,"X","-")+") translateY("+this.getSignedPosition(t,"Y","-")+")"};
_.l.getSignedPosition=function(F,q,t){return q==="X"&&_.bn("HTML_DIR")==="rtl"?t==="-"?F+"px":F*-1+"px":t==="-"?F*-1+"px":F+"px"};
_.l.onClick=function(){var F;_.Q0(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(F=this.data)==null?void 0:F.image)};
_.l.onKeyPress=function(F){if(F.keyCode===13)this.onClick()};
_.JJ.Object.defineProperties(ku.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:(q=F.image)==null?void 0:q.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)!=null&&F.image){var q;F=(q=this.data)==null?void 0:q.image;return F.previewCoordinates.top!==0||F.previewCoordinates.left!==0?(q=this.computeTransform(F.previewCoordinates,F.naturalWidth,F.naturalHeight),F.naturalHeight>=F.naturalWidth?"width:inherit;transform:"+q+";":"height:inherit;transform:"+q+";"):F.naturalHeight>=F.naturalWidth?"width:inherit;":"height:inherit;"}}}});
ku.prototype.onKeyPress=ku.prototype.onKeyPress;_.C([_.Ms(".image-container"),_.V("design:type",HTMLElement)],ku.prototype,"imageContainer",void 0);_.C([_.O(),_.V("design:type",Object)],ku.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.V("design:type",Object)],ku.prototype,"selected",void 0);_.C([_.W("data.image"),_.V("design:type",Object),_.V("design:paramtypes",[])],ku.prototype,"thumbnailUrl",null);
_.C([_.W("data.image","data.image.previewCoordinates"),_.V("design:type",Object),_.V("design:paramtypes",[])],ku.prototype,"thumbnailStyle",null);_.C([_.EB("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],ku.prototype,"onKeyPress",null);_.C([_.m({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],ku);
_.b(ku,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(ulj!==void 0)return ulj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return ulj=F},{mode:2});var E6=function(F,q,t){t=t===void 0?!1:t;_.xD.call(this);var u=this;this.dropZoneOverlay=new MX(F);this.selectOverlay=t?new TY(q,"multiple_file",["image/*"]):new TY(q,"single_file",["image/*"]);this.handler=new _.Qb(this);_.kW(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(q,"click",function(){u.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.M(E6,_.xD);E6.prototype.onChange=function(F){var q;(q=F.files)!=null&&q.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:F.files}))};var zO=function(){var F=_.x.apply(this,arguments)||this;F.addImageErrorMessage="";F.errorMessage="";F.images=[];F.selectedImageIndex=0;F.modern=_.E("web_modern_buttons");F.maxNumImagesPerPost=_.YE("max_num_images_per_post_web_ui");F.JSC$15660_imageId=0;return F};
_.M(zO,_.x);_.l=zO.prototype;_.l.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Q0(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.l.observeDragToReorder=function(){var F=this;if(this.showImagesPreview){var q,t=pJ1(_.n8.getInstance(),(q=this.data)==null?void 0:q.dragToReorderTooltip);_.mI.addLowPriorityJob(function(){_.rY(F.hostElement,t,F.thumbnailDragDropArea)})}};
_.l.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}}};
_.l.computeThumbnail=function(F){return(F==null?void 0:F.localImageSrc)||void 0};
_.l.onRendererstamperFinished=function(){_.qpj(this.ytReorderableBehavior,_.ep(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.ep(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.l.handleDrop=function(F){var q=F.currDragItem;if(q!=null&&q.data){F=this.images[this.selectedImageIndex];var t=q.data.image,u=this.images.indexOf(t)||0;q=_.Hy(q.parentNode.children,q);this.images.splice(u,1);this.images.splice(q,0,t);this.images=[].concat(_.mZ(this.images));this.selectedImageIndex=this.images.indexOf(F)}};
_.l.setUpImagePicker=function(){var F=this.imageUploadEndpoint;F&&F.imageValidationInfo&&(this.uploadManager=new RH(F.uploadUrl,F.channelId),this.initialPicker||(this.initialPicker=new E6(this.dropzone,this.selectLink,!0),_.Ic(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new E6(this.addImageButtonContainer,this.addImageSelectButton),_.Ic(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Ic(this.JSC$15660_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Ic(this.JSC$15660_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Ic(_.ep(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.l.detached=function(){this.initialPicker&&(_.Pr(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Pr(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.l.onInitialSelectImages=function(F){var q=this;return _.p(function(t){return t.yield(q.onSelectImages(F,!1),0)})};
_.l.onAddImage=function(F){var q=this;return _.p(function(t){return t.yield(q.onSelectImages(F,!0),0)})};
_.l.onSelectImages=function(F,q){var t=this,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S,K,h;return _.p(function(c){switch(c.nextAddress){case 1:q?t.addImageErrorMessage="":(t.images=[],t.errorMessage="");u=F.detail;J=t.validateImages([].concat(_.mZ(u)));if(J!=="")return q?t.addImageErrorMessage=J:t.errorMessage=J,c.return();g=[].concat(_.mZ(u)).map(function(rf){return(new Rl(t.maxAspectRatio,!1,!0)).transform(rf)});
return c.yield(Promise.allSettled(g),2);case 2:Y=c.yieldResult,Q=_.X(Y.entries()),e=Q.next();case 3:if(e.done){c.jumpTo(5);break}r=e.value;N=_.X(r);w=N.next().value;k=N.next().value;z=w;T=k;if(T.status!=="fulfilled"){H=v=P=void 0;q?t.addImageErrorMessage=_.q1((P=t.data)==null?void 0:P.invalidError):t.errorMessage=t.errorMessage===""?_.q1((v=t.data)==null?void 0:v.invalidError):_.q1((H=t.data)==null?void 0:H.multiFileError);c.jumpTo(4);break}d=T.value;d.cropped&&_.Q0(t.hostElement,"yt-backstage-multi-image-cropped");
if(d.invalidAspectRatio){K=S=a=void 0;q?t.addImageErrorMessage=_.q1((a=t.data)==null?void 0:a.invalidAspectRatioError):t.errorMessage=t.errorMessage===""?_.q1((S=t.data)==null?void 0:S.invalidAspectRatioError):_.q1((K=t.data)==null?void 0:K.multiFileError);c.jumpTo(4);break}return c.yield(Y_f(t.JSC$15660_imageId,F.detail[z],d.transformedData),8);case 8:h=c.yieldResult,t.images.push(h),t.JSC$15660_imageId++;case 4:e=Q.next();c.jumpTo(3);break;case 5:if(t.errorMessage!==""||t.addImageErrorMessage!==
"")return c.return();q?UGj(t.uploadManager,[t.images[t.images.length-1]]):UGj(t.uploadManager,t.images);t.images=[].concat(_.mZ(t.images));t.selectedImageIndex=q?Math.max(t.images.length-1,0):0;_.Q0(t.hostElement,"yt-backstage-multi-image-select");_.WA(c)}})};
_.l.onThumbnailClick=function(F){if(F=F.event_.detail)this.selectedImageIndex=this.images.indexOf(F)};
_.l.validateImages=function(F){if(F.length>this.maxNumImagesPerPost){var q;return _.q1((q=this.data)==null?void 0:q.multiImageExceedMaxImageCountError)}var t=1048576*this.maxFileSizeMb;F=F.filter(function(g){return g.size>t}).length;
if(F===0)return"";var u,J;F=F>1?(u=this.data)==null?void 0:u.multiFileError:(J=this.data)==null?void 0:J.fileSizeError;return _.q1(F)};
_.l.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.mZ(this.images));this.selectedImageIndex=0};
_.l.repositionImage=function(F){this.images[this.selectedImageIndex].previewCoordinates=F.event_.detail;this.images=[].concat(_.mZ(this.images))};
_.l.getAllUploadStatuses=function(){var F=this,q,t,u,J;return _.p(function(g){if(g.nextAddress==1)return g.yield(F.uploadManager.getAllUploadStatuses(),2);q=g.yieldResult;t=_.X(q);for(u=t.next();!u.done;u=t.next())if(J=u.value,J.encryptedBlobId===void 0)return g.return(SGw(F.uploadManager));return g.return(q)})};
_.l.hasImages=function(){return this.images.length>0};
_.l.cancel=function(){for(var F=this.uploadManager,q=_.X(F.imagesUploadData),t=q.next();!t.done;t=q.next())F.cancel(t.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Q0(this.hostElement,"yt-backstage-multi-image-cancel")};
_.JJ.Object.defineProperties(zO.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.imageUploadEndpoint)==null?void 0:(q=F.imageValidationInfo)==null?void 0:q.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.imageUploadEndpoint)==null?void 0:(q=F.imageValidationInfo)==null?void 0:q.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var F,q;if((F=this.data)==null?0:(q=F.icon)==null?0:q.iconType)return _.Ek(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var F=this;return(this.images||[]).map(function(q,t){return{renderer:{image:q,selected:t===F.selectedImageIndex}}})}}});
zO.prototype.setUpImagePicker=zO.prototype.setUpImagePicker;zO.prototype.onRendererstamperFinished=zO.prototype.onRendererstamperFinished;zO.prototype.observeDragToReorder=zO.prototype.observeDragToReorder;zO.prototype.observeAddImageError=zO.prototype.observeAddImageError;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],zO.prototype,"rendererStamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.tFJ),_.V("design:type",Object)],zO.prototype,"ytReorderableBehavior",void 0);_.C([_.Ms("#dropzone"),_.V("design:type",HTMLElement)],zO.prototype,"dropzone",void 0);_.C([_.Ms("#select-link"),_.V("design:type",HTMLElement)],zO.prototype,"selectLink",void 0);_.C([_.Ms("#thumbnail-drag-drop-area"),_.V("design:type",HTMLElement)],zO.prototype,"thumbnailDragDropArea",void 0);_.C([_.Ms("#add-image-button-container"),_.V("design:type",HTMLElement)],zO.prototype,"addImageButtonContainer",void 0);
_.C([_.Ms("#add-image-button"),_.V("design:type",HTMLElement)],zO.prototype,"addImageSelectButton",void 0);_.C([_.Ms("#image-preview-container"),_.V("design:type",Object)],zO.prototype,"JSC$15660_imagePreviewContainer",void 0);_.C([_.O(),_.V("design:type",Object)],zO.prototype,"addImageErrorMessage",void 0);_.C([_.O(),_.V("design:type",Object)],zO.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],zO.prototype,"errorMessage",void 0);
_.C([_.O(),_.V("design:type",Object)],zO.prototype,"imageUploadEndpoint",void 0);_.C([_.O(),_.V("design:type",Array)],zO.prototype,"images",void 0);_.C([_.O(),_.V("design:type",E6)],zO.prototype,"initialPicker",void 0);_.C([_.O(),_.V("design:type",E6)],zO.prototype,"addImagePicker",void 0);_.C([_.O(),_.V("design:type",RH)],zO.prototype,"uploadManager",void 0);_.C([_.O(),_.V("design:type",Object)],zO.prototype,"selectedImageIndex",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zO.prototype,"modern",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zO.prototype,"maxNumImagesPerPost",void 0);_.C([_.W("imageUploadEndpoint"),_.V("design:type",Number),_.V("design:paramtypes",[])],zO.prototype,"maxAspectRatio",null);_.C([_.W("imageUploadEndpoint"),_.V("design:type",Number),_.V("design:paramtypes",[])],zO.prototype,"maxFileSizeMb",null);
_.C([_.W("data.icon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],zO.prototype,"dropIcon",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],zO.prototype,"selectionCancel",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],zO.prototype,"previewCancel",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],zO.prototype,"dataForAddImageButton",null);
_.C([_.W("errorMessage"),_.V("design:type",String),_.V("design:paramtypes",[])],zO.prototype,"dropzoneClass",null);_.C([_.W("images"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],zO.prototype,"showImagesPreview",null);_.C([_.W("images"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],zO.prototype,"containMaxImages",null);_.C([_.za("addImageErrorMessage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zO.prototype,"observeAddImageError",null);
_.C([_.za("showImagesPreview"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zO.prototype,"observeDragToReorder",null);_.C([_.W("images","selectedImageIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],zO.prototype,"selectedImageData",null);_.C([_.W("images","selectedImageIndex"),_.V("design:type",Array),_.V("design:paramtypes",[])],zO.prototype,"thumbnailRenderers",null);
_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zO.prototype,"onRendererstamperFinished",null);_.C([_.za("imageUploadEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zO.prototype,"setUpImagePicker",null);_.C([_.m({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],zO);
_.b(zO,"ytd-backstage-multi-image-select-renderer",function(){if(tof!==void 0)return tof;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return tof=F},{mode:1});var JAv;var sPO;var gYf;var oH=function(){var F=_.x.apply(this,arguments)||this;F.boundCaptureFocus=function(q){F.onCaptureFocus(q)};
return F};
_.M(oH,_.x);_.l=oH.prototype;_.l.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.l.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.l.onCaptureFocus=function(F){_.tY(F).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.l.getIconType=function(F){return F?"yt-icons:"+F.toLowerCase():null};
_.l.onSelect=function(){var F;if((F=this.data)==null?0:F.onSelectCommand)if(_.E("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var q;((q=_.n(this.data.onSelectCommand.commandMetadata,_.EH))==null?0:q.url)?_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.sV().resolve(_.gN).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.JJ.Object.defineProperties(oH.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.q1(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}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],oH.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],oH.prototype,"data",void 0);_.C([_.Ms("#item"),_.V("design:type",HTMLElement)],oH.prototype,"item",void 0);_.C([_.W("data.label"),_.V("design:type",String),_.V("design:paramtypes",[])],oH.prototype,"label",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],oH.prototype,"value",null);_.C([_.m({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],oH);
_.b(oH,"ytd-privacy-dropdown-item-renderer",function(){if(gYf!==void 0)return gYf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return gYf=F},{mode:1});var nb=function(){var F=_.x.apply(this,arguments)||this;F.value="";F.label="";F.disabled=!1;return F};
_.M(nb,_.x);_.l=nb.prototype;_.l.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"}}}};
_.l.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.l.dataChanged=function(){this.reset()};
_.l.valueChanged=function(){var F;if(this.value&&(F=this.data)!=null&&F.entries){F=_.X(this.data.entries);for(var q=F.next();!q.done;q=F.next())if((q=this.getRendererForEntry(q.value))&&this.getItemRendererValue(q)===this.value){this.label=this.ytComponentBehavior.getSimpleString(q.label);break}}};
_.l.setInitialLabel=function(){if(this.data&&this.data.entries)for(var F=_.X(this.data.entries),q=F.next();!q.done;q=F.next())if(q=this.getRendererForEntry(q.value)){if(q.isSelected){this.label=this.ytComponentBehavior.getSimpleString(q.label);break}this.data.label&&(this.label=this.data.label)}};
_.l.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var F=_.X(this.data.entries),q=F.next();!q.done;q=F.next()){q=this.getRendererForEntry(q.value);var t=void 0;if((t=q)==null?0:t.isSelected)return this.getItemRendererValue(q)||-1}return-1};
_.l.getItemRendererValue=function(F){return"stringValue"in F||"int32Value"in F?F.stringValue||F.int32Value||null:null};
_.l.getRendererForEntry=function(F){return F.dropdownItemRenderer||F.privacyDropdownItemRenderer||F.navigationDropdownItemRenderer||null};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("value-changed",this.value))};
_.l.updateValueFromBinding=function(F){this.value=F.detail.value};
nb.prototype.valueChangedForBinding=nb.prototype.valueChangedForBinding;nb.prototype.valueChanged=nb.prototype.valueChanged;nb.prototype.dataChanged=nb.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],nb.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],nb.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],nb.prototype,"value",void 0);_.C([_.O(),_.V("design:type",Object)],nb.prototype,"label",void 0);_.C([_.Ms("#entries"),_.V("design:type",Object)],nb.prototype,"entries",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],nb.prototype,"disabled",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nb.prototype,"dataChanged",null);
_.C([_.Wh("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nb.prototype,"valueChanged",null);_.C([_.za("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nb.prototype,"valueChangedForBinding",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],nb);
_.b(nb,"ytd-flat-dropdown-renderer",function(){if(sPO!==void 0)return sPO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return sPO=F},{mode:1});var lg1;var MB=function(){var F=_.x.apply(this,arguments)||this;F.quizOptions=[];F.explanationPlaceholderText="";F.optionPlaceholderText="";F.correctAnswerIndex=-1;F.isMarkAnswerTooltipShown=!1;F.timer=0;return F};
_.M(MB,_.x);_.l=MB.prototype;_.l.dataChanged=function(){this.optionPlaceholderText=_.q1(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.q1(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.l.onMarkCorrectAnswer=function(F){var q,t=((q=this.quizOptions[this.correctAnswerIndex])==null?void 0:q.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[F.model.index]=Object.assign({},this.quizOptions[F.model.index],{explanationText:t,isCorrect:!0});this.correctAnswerIndex=F.model.index;this.quizOptions=[].concat(_.mZ(this.quizOptions))};
_.l.updatePlaceholderTexts=function(){for(var F=!1,q=[],t=0;t<this.quizOptions.length;t++){var u=this.optionPlaceholderText+" "+(t+1),J=void 0;((J=this.quizOptions[t])==null?void 0:J.placeholderText)!==u?(F=!0,q.push(Object.assign({},this.quizOptions[t],{placeholderText:u}))):q.push(this.quizOptions[t])}F&&(this.quizOptions=q);this.isValid()?_.Q0(this.hostElement,"yt-commentbox-post-enable"):_.Q0(this.hostElement,"yt-commentbox-post-disable")};
_.l.getSimpleString=function(F){return _.q1(F)};
_.l.createQuizOptions=function(F){var q=[],t;F=(t=F==null?void 0:F.minQuizOptions)!=null?t:0;for(t=0;t<F;t++)q.push(this.createQuizOption());return q};
_.l.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.mZ(this.quizOptions),[this.createQuizOption()]))};
_.l.onInput=function(){this.quizOptions=[].concat(_.mZ(this.quizOptions))};
_.l.onExplanationInput=function(){_.Q0(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.l.onRemoveQuizOption=function(F){this.quizOptions.splice(F.model.index,1);F.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:F.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.mZ(this.quizOptions));this.quizOptions.length===0&&_.Q0(this.hostElement,"yt-quiz-attachment-dismiss")};
_.l.updateHintRenderer=function(){var F=this;clearTimeout(this.timer);this.timer=setTimeout(function(){F.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.l.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var F=0,q=0,t=_.X(this.quizOptions),u=t.next();!u.done;u=t.next()){u=u.value;var J=void 0;if(((J=u.optionText)==null?void 0:J.trim())!==""||u.isCorrect){u.isCorrect&&q++;J=void 0;if(this.hasCustomOptionText&&((J=u.optionText)==null?void 0:J.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;F++}}return F>=
Number(this.editorInfo.minQuizOptions)&&q===1};
_.l.getPostCreateOptions=function(){for(var F=[],q=_.X(this.quizOptions),t=q.next();!t.done;t=q.next()){t=t.value;var u=void 0;((u=t.optionText)==null?void 0:u.trim())!==""&&F.push({pollOption:{text:t.optionText,explanation:t.explanationText},isCorrect:t.isCorrect})}return F};
_.l.getExplanationText=function(){var F;return((F=this.quizOptions[this.correctAnswerIndex])==null?void 0:F.explanationText)||""};
_.l.maybeDisplayMarkAnswerEduToolTip=function(){var F,q,t,u,J,g,Y;this.shouldShowMarkAnswerTooltip()&&((F=this.editorInfo)==null?0:(q=F.markAnswerButton)==null?0:(t=q.buttonRenderer)==null?0:(u=t.hint)==null?0:(J=u.hintRenderer)==null?0:(g=J.content)==null?0:(Y=g.bubbleHintRenderer)==null?0:Y.text)&&(_.n8.getInstance(),F=M4(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(F==null?void 0:F.length)>0&&this.optionSelectors&&_.n9(F[0],this.optionSelectors[0]))};
_.l.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var F=0,q=_.X(this.quizOptions),t=q.next();!t.done;t=q.next()){t=t.value;var u=void 0;((u=t.optionText)==null?void 0:u.trim())!==""&&F++;if(t.isCorrect)return!1}return F<2?!1:!0};
_.l.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.l.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.l.updateOptionTextFromBinding=function(F){if(F.target){var q=Array.from(_.ep(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(F.target);if(q>=0){var t;this.quizOptions[q].optionText=(t=F.detail.value)!=null?t:""}}};
_.JJ.Object.defineProperties(MB.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(F=this.editorInfo)==null?void 0:(q=F.addOptionButton)==null?void 0:q.buttonRenderer;t&&(t.style="STYLE_SUGGESTIVE",t.size="SIZE_SMALL",t.isDisabled=!this.isAllowedToAddOption);return(t==null?0:t.text)?t:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var F,q;return this.quizOptions.length<((q=(F=this.editorInfo)==null?void 0:F.maxQuizOptions)!=null?q:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(F){var q;return(q=F.optionText)==null?void 0:q.trim()})}}});
MB.prototype.updatePlaceholderTexts=MB.prototype.updatePlaceholderTexts;MB.prototype.dataChanged=MB.prototype.dataChanged;_.C([_.O(),_.V("design:type",Object)],MB.prototype,"editorInfo",void 0);_.C([_.O(),_.V("design:type",Array)],MB.prototype,"quizOptions",void 0);_.C([_.O(),_.V("design:type",Object)],MB.prototype,"explanationPlaceholderText",void 0);_.C([_.Ta(".option-selector-button"),_.V("design:type",Array)],MB.prototype,"optionSelectors",void 0);
_.C([_.Wh("editorInfo"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MB.prototype,"dataChanged",null);_.C([_.W("editorInfo","isAllowedToAddOption","quizOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],MB.prototype,"addAnswerButton",null);_.C([_.W("editorInfo","quizOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],MB.prototype,"isAllowedToAddOption",null);
_.C([_.Wh("quizOptions"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MB.prototype,"updatePlaceholderTexts",null);_.C([_.W("quizOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],MB.prototype,"hasCustomOptionText",null);_.C([_.m({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],MB);
_.b(MB,"ytd-backstage-quiz-editor-renderer",function(){if(lg1!==void 0)return lg1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return lg1=F},{mode:2});var XwC;var Y$j=(Eo.FIRSTDAYOFWEEK+1)%7;var pwj;var QPr=[],ecz=0,Zzn=0;ecz=0;Zzn=24;if(.25*(Zzn-ecz)<0)pwj=[];else{for(var RcE=ecz;RcE<Zzn;RcE+=.25)QPr.push(RcE);pwj=QPr}var rA1=pwj.map(function(F){F=F*60*60;return{secondsSinceMidnight:F,text:(new jz(7)).format(new Date(0,0,0,0,0,F))}});var NTe;var TO=function(){var F=_.x.apply(this,arguments)||this;F.skipNextOpenDialog=!1;F.errorMessage="";F.previousMonthLabel=_.oD("PREVIOUS_MONTH_LABEL");F.nextMonthLabel=_.oD("NEXT_MONTH_LABEL");return F};
_.M(TO,_.x);_.l=TO.prototype;_.l.attached=function(){var F=this,q=new MutationObserver(function(){F.JSC$15703_calendarMain.scrollHeight>0&&(q.disconnect(),F.calendarConfig&&F.calendarConfig.selectedDate&&F.scrollToDate())});
q.observe(this.JSC$15703_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){q.disconnect()},1E3)};
_.l.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.l.onDateTextChange=function(){if(this.calendarConfig){var F=this.validateDateText();F.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(F.details)):this.textbox.setAttribute("invalid","")}};
_.l.handleDayClick=function(F){F.model.day.date&&(this.commitDate(F.model.day.date),this.dialog.close())};
_.l.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var F=Egt(this.calendarConfig.selectedDate,this.renderData);F!==void 0&&this.JSC$15703_calendarMain.scrollToIndex(F)}};
_.l.scrollToNextMonth=function(){this.JSC$15703_calendarMain.scrollToIndex(this.JSC$15703_calendarMain.firstVisibleIndex+1)};
_.l.scrollToPrevMonth=function(){this.JSC$15703_calendarMain.firstVisibleIndex===0&&this.JSC$15703_calendarMain.scrollTo(0,0);this.JSC$15703_calendarMain.scrollToIndex(this.JSC$15703_calendarMain.firstVisibleIndex-1)};
_.l.onFormSubmit=function(F){F.preventDefault();this.calendarConfig&&(F=this.validateDateText(),F.isValid&&(this.commitDate(F.details),this.dialog.close()))};
_.l.onEscOrClickingOutside=function(F){F=F.detail.path&&!!F.detail.path.length&&F.detail.path[0];if(F.classList.contains("ytd-calendar-date-picker")){F===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var q=0;q<this.dropdownButton.children.length;q++)this.dropdownButton.children[q]===F&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}F=this.textbox.value!==this.dateText;q=this.validateDateText();F&&q.isValid&&this.commitDate(q.details);this.dialog.close();this.textbox.value=
this.dateText};
_.l.commitDate=function(F){this.calendarConfig&&(this.set("calendarConfig.selectedDate",F),_.Q0(this.hostElement,"ytd-calendar-date-selected",F))};
_.l.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var F=this.textbox.value;var q=new Date;F=(new yHf(2)).parse(F,q,{validate:!0})===F.length?iky(q):void 0;if(!F)return this.errorMessage=_.oD("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};q=this.calendarConfig.start;var t=this.calendarConfig.end;if(Zkt(F,q))return this.errorMessage=_.oD("ENTER_DATE_OR_LATER",{allowed_date:w$t(q)}),{isValid:!1,details:void 0};if(Zkt(t,F))return this.errorMessage=
_.oD("ENTER_DATE_OR_EARLIER",{allowed_date:w$t(t)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:F}};
_.JJ.Object.defineProperties(TO.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?w$t(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var F=this.calendarConfig,q=[],t=0;t<7;t++)q.push(Eo.NARROWWEEKDAYS[(t+Y$j)%7]);t=[];for(var u=new Date(F.start.year,F.start.month);u.getFullYear()<F.end.year||u.getFullYear()===F.end.year&&u.getMonth()<=F.end.month;){var J=t,g=J.push,Y=u.getFullYear(),Q=u.getMonth(),e=F,r=void 0,N=[],w=Object.freeze({extraCssClass:"invisible",debugClass:""}),k=new Date(Y,Q),z=iky(k);k=k.getDay();for(var T=iky(new Date);z.month===
Q;){k!==Y$j&&r||(r=Array.from({length:7}).fill(w),N.push(r));var P={date:{year:Y,month:Q,day:z.day},extraCssClass:"",debugClass:""};e.selectedDate&&P.date&&eGu(P.date,e.selectedDate)&&(P.extraCssClass+=" selected");if(Zkt(z,e.start)||Zkt(e.end,z))P.extraCssClass+=" disabled";eGu(z,T)&&(P.extraCssClass+=" today");P.extraCssClass=P.extraCssClass.trim();r[(k-Y$j+7)%7]=P;z=rHo(z);k=(k+1)%7}g.call(J,{weeks:N,monthLabel:Eo.SHORTMONTHS[Q]+" "+Y,year:Y,month:Q,monthLabelExtraCssClass:N[0][2]===w?"shift-down-label":
""});u.setMonth(u.getMonth()+1)}return{months:t,daysOfWeekLabel:q}}}}});
TO.prototype.onEscOrClickingOutside=TO.prototype.onEscOrClickingOutside;TO.prototype.scrollToDate=TO.prototype.scrollToDate;_.C([_.O(),_.V("design:type",Object)],TO.prototype,"calendarConfig",void 0);_.C([_.O(),_.V("design:type",Object)],TO.prototype,"skipNextOpenDialog",void 0);_.C([_.O(),_.V("design:type",Object)],TO.prototype,"errorMessage",void 0);_.C([_.O(),_.V("design:type",Object)],TO.prototype,"previousMonthLabel",void 0);
_.C([_.O(),_.V("design:type",Object)],TO.prototype,"nextMonthLabel",void 0);_.C([_.Ms("#textbox"),_.V("design:type",HTMLInputElement)],TO.prototype,"textbox",void 0);_.C([_.Ms("#calendar-dialog"),_.V("design:type",Object)],TO.prototype,"dialog",void 0);_.C([_.Ms("#calendar-main"),_.V("design:type",Object)],TO.prototype,"JSC$15703_calendarMain",void 0);_.C([_.Ms("#date-picker"),_.V("design:type",HTMLElement)],TO.prototype,"dropdownButton",void 0);
_.C([_.W("calendarConfig.selectedDate"),_.V("design:type",String),_.V("design:paramtypes",[])],TO.prototype,"dateText",null);_.C([_.W("calendarConfig","calendarConfig.selectedDate"),_.V("design:type",Object),_.V("design:paramtypes",[])],TO.prototype,"renderData",null);_.C([_.za("renderData","calendarConfig.selectedDate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TO.prototype,"scrollToDate",null);
_.C([_.EB("iron-overlay-canceled"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],TO.prototype,"onEscOrClickingOutside",null);_.C([_.Vu({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],TO);
_.b(TO,"ytd-calendar-date-picker",function(){if(NTe!==void 0)return NTe;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return NTe=F},{mode:2});var wwr=_.oD("UTC_OFFSET_FORMAT",{utc_offset:(new jz("Z")).format(new Date)}),izr=(new Date).getTimezoneOffset()*-60,kBL=new Date,EYw,zcd=aY(kBL.getTimezoneOffset());EYw=W6e(PLx(zcd,kBL));var oYd=_.oD("LOCAL_TIME_GMT_LABEL",{gmt_text:EYw.replace("+0","+").replace("-0","-").replace(":00","")}),GO=function(){var F=_.x.apply(this,arguments)||this;F.selectedTimeIndex=0;F.selectedTimezoneIndex=0;F.timeOfDayOptions=rA1;return F};
_.M(GO,_.x);_.l=GO.prototype;_.l.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var F=NFW();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=F,this.selectedTimeIndex=0;else{var q=kdW(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},F,{selectedDate:q.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(t){return t.secondsSinceMidnight===q.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.l.onDatePicked=function(F){this.selectedDate=F.detail};
_.l.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Q0(this.hostElement,"ytd-date-time-selection-cancelled")};
_.l.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var F=this.selectedDate;F=new Date(F.year,F.month,F.day);_.Q0(this.hostElement,"ytd-date-time-selection-update",Math.floor(F.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+F.getTimezoneOffset()*60))}};
_.l.getTimezoneFormat=function(F){return F.localizedDisplayText?F.localizedDisplayText:_.oD("TIMEZONE_FORMAT",{utc_offset_text:""+F.localizedUtcOffset,city_name:""+F.localizedName})};
_.l.updateSelectedTimeIndexFromBinding=function(F){this.selectedTimeIndex=F.detail.value};
_.l.updateSelectedTimezoneIndexFromBinding=function(F){this.selectedTimezoneIndex=F.detail.value};
_.JJ.Object.defineProperties(GO.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F=this.data.timezoneOptions;var q={name:"Etc/Unknown",localizedName:_.oD("LOCAL_TIME_LABEL"),localizedUtcOffset:wwr,utcOffsetSec:""+izr,localizedDisplayText:oYd};F?F.length&&F[0].name!==q.name&&(F[0].localizedDisplayText||(q.localizedDisplayText=""),F.unshift(q)):F=[q];return F}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
GO.prototype.onDateTimeTimezoneChange=GO.prototype.onDateTimeTimezoneChange;GO.prototype.onDatePicked=GO.prototype.onDatePicked;GO.prototype.updateDefaultSelectedValue=GO.prototype.updateDefaultSelectedValue;_.C([_.O(),_.V("design:type",Object)],GO.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],GO.prototype,"calendarConfig",void 0);_.C([_.O(),_.V("design:type",Object)],GO.prototype,"selectedDate",void 0);_.C([_.O(),_.V("design:type",Object)],GO.prototype,"selectedTimeIndex",void 0);
_.C([_.O(),_.V("design:type",Object)],GO.prototype,"selectedTimezoneIndex",void 0);_.C([_.Ms("#time-listbox"),_.V("design:type",Object)],GO.prototype,"timeListBox",void 0);_.C([_.Ms("#timezone-listbox"),_.V("design:type",Object)],GO.prototype,"timezoneListBox",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],GO.prototype,"rendererStamperBehavior",void 0);_.C([_.W("data.timezoneOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],GO.prototype,"timeZones",null);
_.C([_.Wh("data","timeZones"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GO.prototype,"updateDefaultSelectedValue",null);_.C([_.W("selectedTimezoneIndex","timeZones"),_.V("design:type",Object),_.V("design:paramtypes",[])],GO.prototype,"selectedTimezone",null);_.C([_.W("selectedTimeIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],GO.prototype,"selectedTime",null);
_.C([_.EB("ytd-calendar-date-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],GO.prototype,"onDatePicked",null);_.C([_.za("selectedTimezone","selectedTime","selectedDate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GO.prototype,"onDateTimeTimezoneChange",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],GO);
_.b(GO,"ytd-date-time-picker-renderer",function(){if(XwC!==void 0)return XwC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return XwC=F},{mode:1});var nYj;var DY=function(){var F=_.x.apply(this,arguments)||this;F.boundOnTapDismissButton=function(){F.dismissTapHandler()};
F.dismissButtonOverrides={size:"XS"};return F};
_.M(DY,_.x);DY.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}}}}}};
DY.prototype.dismissTapHandler=function(){_.Q0(this.hostElement,"yt-backstage-attachment-dismissed")};
DY.prototype.computeAttachmentType=function(F){return F?F.backstageImageRenderer?"image":F.videoRenderer?"video":"none":"none"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],DY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],DY.prototype,"attachmentPreview",void 0);_.C([_.O(),_.V("design:type",Object)],DY.prototype,"dismissButton",void 0);_.C([_.O(),_.V("design:type",Object)],DY.prototype,"boundOnTapDismissButton",void 0);
_.C([_.O(),_.V("design:type",Object)],DY.prototype,"dismissButtonOverrides",void 0);_.C([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.V("design:type",String)],DY.prototype,"attachmentType",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],DY);
_.b(DY,"ytd-backstage-dismissable-attachment",function(){if(nYj!==void 0)return nYj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return nYj=F},{mode:1});var Mod;var WJ=function(){var F=_.x.apply(this,arguments)||this;F.selectedVideoId=void 0;F.picker=void 0;F.dismissButtonOverrides={size:"XS"};F.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return F};
_.M(WJ,_.x);_.l=WJ.prototype;_.l.onServiceRequestCompleted=function(F){F.stopPropagation()};
_.l.handleAddVideoPreviewAction=function(F){F=this.get("addVideoPreviewAction",F);this.onGetVideoPreviewSuccess(F)};
_.l.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}}}}}};
_.l.onLaunchVideoPicker=function(F){var q=this,t=_.q1(this.get("addVideoLinkAction.title",F)),u=this.get("addVideoLinkAction.onePickHostId",F);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",F);u&&(this.picker||(t=_.wcj(_.d$$(u).setTitle(t).addView(ZEw()).addView(eTL()),function(J){q.onPickVideo(J)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",F)||t.addView("youtube"),this.picker=t.build()),this.picker.setVisible(!0))};
_.l.onPickVideo=function(F){if(F)if(F.action==="cancel")_.Q0(this.hostElement,"yt-video-link-button-cancel");else if(F.action==="picked"){F=F.docs;if(!F||F.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(F=(F==null?0:F.length)?F[0]:void 0)?F.id:void 0;this.setVideoPreview()}};
_.l.setVideoPreview=function(){var F=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){F.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.l.onGetVideoPreviewSuccess=function(F){if(F&&F.videoPreview&&F.cancelButton)this.videoPreview=F.videoPreview,this.cancelButton=F.cancelButton,_.Q0(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.l.onGetVideoPreviewError=function(){this.cancel()};
_.l.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Q0(this.hostElement,"yt-video-link-cancel")};
_.l.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
WJ.prototype.onServiceRequestCompleted=WJ.prototype.onServiceRequestCompleted;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],WJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],WJ.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],WJ.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],WJ.prototype,"videoPreview",void 0);_.C([_.O(),_.V("design:type",Object)],WJ.prototype,"cancelButton",void 0);_.C([_.O(),_.V("design:type",Object)],WJ.prototype,"getVideoPreviewCommand",void 0);_.C([_.O(),_.V("design:type",Object)],WJ.prototype,"dismissButtonOverrides",void 0);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],WJ.prototype,"onServiceRequestCompleted",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],WJ);
_.b(WJ,"ytd-backstage-video-link-attachment",function(){if(Mod!==void 0)return Mod;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Mod=F},{mode:1});var TTx;var GB1;var Dfr;var O6=function(){return _.x.apply(this,arguments)||this};
_.M(O6,_.x);O6.prototype.dataChanged=function(){this.active=!1};
O6.prototype.onTap=function(){_.Q0(this.hostElement,"yt-select-emoji-suggestion",this.data)};
O6.prototype.identity=function(F){return F};
_.JJ.Object.defineProperties(O6.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u;if((F=this.data)==null?0:(q=F.image)==null?0:(t=q.thumbnails)==null?0:(u=t[0])==null?0:u.url)return F=this.data.image.thumbnails[0].url,F.startsWith("data:image/svg+xml")?IK(F):_.d$(F)}}});
O6.prototype.dataChanged=O6.prototype.dataChanged;_.C([_.O(),_.V("design:type",Object)],O6.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],O6.prototype,"active",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],O6.prototype,"dataChanged",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],O6.prototype,"imageSrc",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],O6);
_.b(O6,"ytd-emoji-suggestion",function(){if(Dfr!==void 0)return Dfr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Dfr=F},{mode:1});var Wke=/.*([:@#].*?)$/,PJ=function(){var F=_.x.apply(this,arguments)||this;F.suggestions=[];F.suggestionIndex=-1;F.JSC$15731_lastSuggestionRange=null;return F};
_.M(PJ,_.x);_.l=PJ.prototype;_.l.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.l.getSuggestions=function(F){var q=[],t=uUn(this.emojiManager,F.substr(0,3));if(t)for(var u in t)if(u.toLocaleLowerCase().indexOf(F)===0){var J=t[u];if(J&&J.emojiId){J=Yp(this.emojiManager,J.emojiId);var g=void 0,Y=void 0,Q=void 0,e=void 0,r=((g=J)==null?0:g.isCustomEmoji)?(Y=J)==null?void 0:(Q=Y.shortcuts)==null?void 0:Q[0]:(e=J)==null?void 0:e.emojiId;g=void 0;q.push({suggestion:{image:(g=J)==null?void 0:g.image,alt:r,text:u}});if(q.length>=64)break}}return q?q.sort(function(N,w){return w.suggestion.text<
N.suggestion.text?-1:w.suggestion.text===N.suggestion.text?0:1}):null};
_.l.insertSuggestion=function(F){_.Q0(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15731_lastSuggestionRange,text:F.alt});this.dropdown.opened=!1};
_.l.updateSuggestionsAtCaret=function(F){this.updateSuggestions(F,this.retrieveTextBeforeRange(F))};
_.l.offsetStartOfRangeBy=function(F,q){F.startOffset>=q&&F.setStart(F.startContainer,F.startOffset-q)};
_.l.updateSuggestions=function(F,q){var t=this;this.JSC$15731_lastSuggestionRange&&(this.JSC$15731_lastSuggestionRange.detach(),this.JSC$15731_lastSuggestionRange=null);if((q=Wke.exec(q))&&q.length&&(q=q[q.length-1].toLocaleLowerCase(),q.length>2||q===":_")&&(this.offsetStartOfRangeBy(F,q.length),this.JSC$15731_lastSuggestionRange=F,(F=this.getSuggestions(q))&&F.length)){this.suggestions=F;_.tJ(this,function(){t.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(F.length-1);return}this.dropdown.opened=!1};
_.l.onKeyDown=function(F){if(this.dropdown.opened)switch(F.key){case "Escape":this.dropdown.opened=!1;F.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);F.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);F.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),F.preventDefault()}};
_.l.onKeyUp=function(F,q){switch(F.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(q);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(q)}};
_.l.onKeyPress=function(F){F.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),F.preventDefault())};
_.l.changeSuggestionIndex=function(F){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(F+this.suggestions.length)%this.suggestions.length,F=this.dropdownContent.children[this.suggestionIndex],F.active=!0,this.dropdownContent.scrollTop=F.offsetTop)};
_.l.retrieveTextBeforeRange=function(F){var q=F.startContainer;return q&&q.nodeType===Node.TEXT_NODE?q.textContent.substr(0,F.startOffset):""};
PJ.prototype.onKeyPress=PJ.prototype.onKeyPress;PJ.prototype.onKeyUp=PJ.prototype.onKeyUp;PJ.prototype.onKeyDown=PJ.prototype.onKeyDown;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Array)],PJ.prototype,"suggestions",void 0);_.C([_.O(),_.V("design:type",_.lY)],PJ.prototype,"emojiManager",void 0);_.C([_.O(),_.V("design:type",Number)],PJ.prototype,"verticalSuggestionsOffset",void 0);
_.C([_.Ms("#dropdown"),_.V("design:type",Object)],PJ.prototype,"dropdown",void 0);_.C([_.Ms("#dropdown-content"),_.V("design:type",HTMLDivElement)],PJ.prototype,"dropdownContent",void 0);_.C([_.EB("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],PJ.prototype,"onKeyDown",null);_.C([_.EB("keyup"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent,Range]),_.V("design:returntype")],PJ.prototype,"onKeyUp",null);
_.C([_.EB("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],PJ.prototype,"onKeyPress",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-emoji-input"})],PJ);
_.b(PJ,"ytd-emoji-input",function(){if(GB1!==void 0)return GB1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return GB1=F},{mode:2});var OzE;var xu=function(){var F=_.x.apply(this,arguments)||this;F.hasMaxOptions=!1;return F};
_.M(xu,_.x);_.l=xu.prototype;_.l.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.l.setPrefilledChoices=function(F){var q=this;this.set("pollOptions",[]);var t;for(t=0;t<Math.min(F.length,this.data.maxPollOptions);t++)this.push("pollOptions",F[t].substring(0,this.data.maxPollOptionChars));for(;t<this.data.minPollOptions;t++)this.push("pollOptions","");this.hasMaxOptions=t>=this.data.maxPollOptions;_.tJ(this,function(){for(var u=q.pollOptions,J=_.ep(q.hostElement).querySelectorAll(".poll-option-input"),g=0;g<J.length;g++)J[g].value=u[g]})};
_.l.focusChanged=function(){_.ws(this.hostElement)};
_.l.onInput=function(){var F=this;_.aE(this,"onInput",function(){F.isValid()?_.Q0(F.hostElement,"yt-commentbox-post-enable"):_.Q0(F.hostElement,"yt-commentbox-post-disable")},300)};
_.l.setPollOptions=function(){var F=[],q,t=((q=this.data)==null?0:q.minPollOptions)?this.data.minPollOptions:0;for(q=0;q<t;q++)F.push("");return F};
_.l.addPollOption=function(){var F=this;_.Q0(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.mI.addLowPriorityJob(function(){var q;(q=_.ep(F.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||q.focus()})};
_.l.onRemovePollOption=function(F){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Q0(this.hostElement,"yt-poll-attachment-dismiss")):(F=this.repeat.indexForElement(F.target.parentNode),F!==null&&(this.splice("pollOptions",F,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Q0(this.hostElement,"yt-commentbox-post-enable"))))};
_.l.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.l.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var F=0,q=this.pollOptions.length;F<q;F++)if(this.pollOptions[F].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.l.getPollOptions=function(){return this.pollOptions};
_.l.setPollOptionsFromInputs=function(){for(var F=_.ep(this.hostElement).querySelectorAll(".poll-option-input"),q=0;q<F.length;q++)this.pollOptions[q]=F[q].value.trim()};
_.l.clearPollOptions=function(){var F=_.ep(this.hostElement).querySelectorAll(".poll-option-input");F=_.X(F);for(var q=F.next();!q.done;q=F.next())q.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.l.getSimpleString=function(F){return _.q1(F)};
_.l.updateValueFromBinding=function(F){if(F.target&&this.pollOptions){var q=Array.from(_.ep(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(F.target);if(q>=0){var t;this.pollOptions[q]=(t=F.detail.value)!=null?t:"";this.notifyPath("pollOptions."+q)}}};
xu.prototype.dataChanged=xu.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],xu.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Array)],xu.prototype,"pollOptions",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],xu.prototype,"hasMaxOptions",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],xu.prototype,"enableCreationBox",void 0);
_.C([_.Ms("#repeat"),_.V("design:type",m6)],xu.prototype,"repeat",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xu.prototype,"dataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-poll-attachment"})],xu);
_.b(xu,"ytd-poll-attachment",function(){if(OzE!==void 0)return OzE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return OzE=F},{mode:2});var P3w;var xfr;var AAr;var vYz;var A0=function(){return _.x.apply(this,arguments)||this};
_.M(A0,_.x);_.JJ.Object.defineProperties(A0.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],A0.prototype,"rendererBehaviors",void 0);_.C([_.O(),_.V("design:type",Object)],A0.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],A0.prototype,"focused",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("focused"),_.V("design:type",Object),_.V("design:paramtypes",[])],A0.prototype,"ariaSelected",null);_.C([_.Vu({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],A0);
_.b(A0,"yt-user-mention-suggestion-renderer",function(){if(vYz===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;AAr===void 0&&(AAr=document.createElement("template"));var u=AAr;t.call(q,u.content.cloneNode(!0),F.content.firstChild);vYz=F}F=vYz;return F},{mode:2});var Igw;var HzE;var vJ=function(){var F=_.x.apply(this,arguments)||this;F.focusedSuggestionIndex=-1;return F};
_.M(vJ,_.x);_.l=vJ.prototype;_.l.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.l.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.l.setFocusedSuggestionIndex=function(F){!this.data||!this.data.suggestions||F<0||F>=this.data.suggestions.length||(this.focusedSuggestionIndex=F,F=this.getSuggestionId(F),this._setFocusedSuggestionId(F))};
_.l.advanceSuggestion=function(F){this.focusedSuggestionIndex===-1||F!==-1&&F!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+F),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.l.ensureSuggestionVisible=function(F){F=this.getSuggestionId(F);F=_.ep(this.hostElement).querySelector("[id="+F+"]");F!=null&&(F.offsetTop<this.hostElement.scrollTop?F.scrollIntoView(!0):F.offsetTop+F.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&F.scrollIntoView(!1))};
_.l.getSuggestionId=function(F){return"user-mention-suggestion-"+F};
_.l.onSuggestionTap=function(F){var q=_.n(F.model.item,LLO);this.ytRendererBehavior.logExplicitClick(q);_.Q0(this.hostElement,"yt-user-mention-suggestion-selected",{data:q,index:F.model.index})};
_.l.onSuggestionMouseMove=function(F){F.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(F.model.index)};
_.l.isSuggestionFocused=function(F,q){return F===q};
_.l.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.l.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("focused-suggestion-id-changed",this.focusedSuggestionId))};
vJ.prototype.focusedSuggestionIdChangedForBinding=vJ.prototype.focusedSuggestionIdChangedForBinding;vJ.prototype.onDomChange=vJ.prototype.onDomChange;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],vJ.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],vJ.prototype,"focusedSuggestionIndex",void 0);_.C([_.O({readOnly:!0}),_.V("design:type",String)],vJ.prototype,"focusedSuggestionId",void 0);
_.C([_.EB("dom-change"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],vJ.prototype,"onDomChange",null);_.C([_.za("focusedSuggestionId"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vJ.prototype,"focusedSuggestionIdChangedForBinding",null);_.C([_.Vu({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],vJ);
_.b(vJ,"yt-user-mention-suggestions-dropdown",function(){if(HzE===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Igw===void 0&&(Igw=document.createElement("template"));var u=Igw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);HzE=F}F=HzE;return F},{mode:2});var IH=function(){var F=_.x.apply(this,arguments)||this;F.suggestionsResponse=null;F.activeMention=null;F.selectionChangeListener=F.onSelectionChange.bind(F);F.handlesEnabled=_.E("enable_handles_in_mention_suggest_posts");F.handlesInMentionSuggestionsEnabled=_.E("handles_in_mention_suggest_posts");F.zeroPrefixMentionSuggestionEnabled=_.E("enable_zero_prefix_mention_suggestion_web");F.pendingQuery=null;F.flowNonce=null;return F};
_.M(IH,_.x);_.l=IH.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.l.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.l.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.l.hasSuggestions=function(F){return!!(F&&F.suggestions&&F.suggestions.length>0)};
_.l.onInput=function(){var F=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var q=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),t=this.activeMention.JSC$11331_getText().slice(-1)===" ",u=this.activeMention.JSC$11331_getText().slice(-2,-1)===" ",J="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11331_getText().slice(-2,
-1))>=0;J=this.zeroPrefixMentionSuggestionEnabled&&J;if(this.activeMention.isCollapsed()||(q||u||J)&&t)this.cancelActiveMention();else{var g=this.activeMention.JSC$11331_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.aE(this,"requestSuggestions",function(){F.requestSuggestions(g)},100)}}}};
_.l.onServiceRequestSent=function(F){F.stopPropagation()};
_.l.onServiceRequestCompleted=function(F){F.stopPropagation();F=F.detail.data;F.query&&(!this.pendingQuery||this.pendingQuery!==F.query)||!this.zeroPrefixMentionSuggestionEnabled&&F.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=F,this.hasSuggestions(F)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.l.onServiceRequestError=function(F){F.stopPropagation()};
_.l.onUserMentionSuggestionSelected=function(F){this.selectSuggestion(F.detail.data,F.detail.index)};
_.l.onSelectionChange=function(){if(this.activeMention){var F=_.rI(),q=this.activeMention.JSC$11331_containsRange(F);F=F&&this.containsHelper(this.dropdown,F.getContainer());q||F||this.cancelActiveMention()}};
_.l.containsHelper=function(F,q){var t;if(((t=window.ShadyDOM)==null?void 0:t.noPatch)===!0)return F.contains(q);for(;q;){if(q===F)return!0;q=q instanceof ShadowRoot?q.host:q.parentNode}return!1};
_.l.maybeStartSuggest=function(){var F=_.rI();if(F&&F.isCollapsed()){var q=F.JSC$11331_getStartNode(),t=F.JSC$11331_getStartOffset();if(q instanceof Text&&!(t<1)){var u=q.textContent;!(u=u&&u.charAt(t-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(u)<0||(this.activeMention=_.fV(q,t-1,F.JSC$11331_getEndNode(),F.JSC$11331_getEndOffset()),this.flowNonce=mO(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.l.updateActiveMention=function(){if(this.activeMention){var F=_.rI();F&&F.isCollapsed()&&(this.activeMention=_.fV(this.activeMention.JSC$11331_getStartNode(),this.activeMention.JSC$11331_getStartOffset(),F.JSC$11331_getEndNode(),F.JSC$11331_getEndOffset()))}};
_.l.requestSuggestions=function(F){if(this.activeMention){var q={suggestions_query:F};this.pendingQuery=F;_.RD(this.hostElement,[this.suggestionsEndpoint,q])}};
_.l.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()};
_.l.focusPreviousSuggestion=function(F){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),F.preventDefault())};
_.l.focusNextSuggestion=function(F){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),F.preventDefault())};
_.l.selectFocusedSuggestion=function(F){if(this.hasSuggestions(this.suggestionsResponse)){var q=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.n(q,LLO)&&(this.selectSuggestion(_.n(q,LLO),this.dropdown.focusedSuggestionIndex),F.preventDefault())}};
_.l.selectSuggestion=function(F,q){if(F){var t=this.activeMention;if(t){var u=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&F.handle?_.V2(u,"\u00a0\u2068@"+F.handle+"\u2069\u00a0"):this.handlesEnabled?_.V2(u,"\u00a0"+F.displayName+"\u00a0"):_.V2(u,"\u00a0@"+F.displayName+"\u00a0");Kl(u,"/channel/"+F.channelId);u.classList.add("yt-formatted-string","yt-simple-endpoint");u.setAttribute("spellcheck","false");t.isCollapsed()||t.JSC$11331_removeContents();t.insertNode(u,!0);F=document.createTextNode(" ");
u.parentNode.insertBefore(F,u.nextSibling);window.getSelection().collapse(F,1);q={suggestionSelected:{suggestionIndex:q}};if(this.zeroPrefixMentionSuggestionEnabled){var J;q.suggestionSelected.isZeroPrefix=((J=this.suggestionsResponse)==null?void 0:J.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",q);this.cancelActiveMention();_.Q0(this.hostElement,"yt-mention-inserted")}}};
_.l.getPositionTarget=function(F){return F&&F.getBrowserRangeObject()};
_.l.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.l.onFocusedSuggestionIdChanged=function(F){var q=_.haM(this.hostElement)[0];q&&(F.detail.value?q.setAttribute("aria-activedescendant",F.detail.value):q.removeAttribute("aria-activedescendant"))};
_.l.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.l.logGELEvent=function(F,q){F={eventType:F,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};q&&(F=Object.assign(F,q));_.IJ("userMentionAutoCompleteBoxEvent",F)};
IH.prototype.onDomChange=IH.prototype.onDomChange;IH.prototype.onUserMentionSuggestionSelected=IH.prototype.onUserMentionSuggestionSelected;IH.prototype.onServiceRequestError=IH.prototype.onServiceRequestError;IH.prototype.onServiceRequestCompleted=IH.prototype.onServiceRequestCompleted;IH.prototype.onServiceRequestSent=IH.prototype.onServiceRequestSent;IH.prototype.onInput=IH.prototype.onInput;_.C([_.D(_.v6),_.V("design:type",Object)],IH.prototype,"ironA11yKeysBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],IH.prototype,"suggestionsEndpoint",void 0);_.C([_.O(),_.V("design:type",Object)],IH.prototype,"suggestionsResponse",void 0);_.C([_.O(),_.V("design:type",Object)],IH.prototype,"activeMention",void 0);_.C([_.Ms("#dropdown"),_.V("design:type",Object)],IH.prototype,"dropdown",void 0);_.C([_.Ms("#iron-dropdown"),_.V("design:type",Object)],IH.prototype,"ironDropdown",void 0);
_.C([_.EB("input"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],IH.prototype,"onInput",null);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],IH.prototype,"onServiceRequestSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],IH.prototype,"onServiceRequestCompleted",null);
_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],IH.prototype,"onServiceRequestError",null);_.C([_.EB("yt-user-mention-suggestion-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],IH.prototype,"onUserMentionSuggestionSelected",null);
_.C([_.EB("dom-change"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],IH.prototype,"onDomChange",null);_.C([_.Vu({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],IH);
_.b(IH,"yt-user-mention-autosuggest-input",function(){if(xfr===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;P3w===void 0&&(P3w=document.createElement("template"));var u=P3w;t.call(q,u.content.cloneNode(!0),F.content.firstChild);xfr=F}F=xfr;return F},{mode:2});var HJ=null;
_.Hh({is:"ytd-commentbox",_template:function(){if(TTx!==void 0)return TTx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return TTx=F},
behaviors:[_.n1y.YtHostElementBehavior,_.v6,_.$9.YtActionHandlerBehavior,_.XV.YtComponentBehavior,_.TD.YtRendererstamperBehavior,_.o31.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(F,q){return _.iC(F.entities,"aadcGuidelinesStateEntityPayload",q)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(F,q){return _.iC(F.entities,"commentboxStateEntity",q)},
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 _.p7}},
isEmojiButtonDisplayed:{type:Boolean,computed:"computeIsEmojiButtonDisplayed_(data)",value:!1},isEmojiPickerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},hasExternalLinksAccess_:{type:Boolean,computed:"computeHasExternalLinksAccess_(data)",value:!0},isExternalLinksBannerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},isPostCreationDialogV2:{type:Boolean,reflectToAttribute:!0,value:!1},accessRestriction:{type:String},
charCount_:{type:Number,value:0},charLimit_:{type:Number,computed:"computeCharLimit_(data)"},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object,modern:{type:Boolean,reflectToAttribute:!0,value:_.E("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.E("kevlar_watch_grid")}},observers:["observePrefilledImage_(data.purpose, data.prefilledImageData, data.backstageAttachment)",
"observePrefilledVideo_(data.purpose, data.backstageAttachment)","observePrefilledPoll_(data.prefilledAttachment)"],listeners:{"yt-service-request-completed":"onYtServiceRequestCompleted_","yt-service-request-error":"onYtServiceRequestError_","yt-service-request-sent":"onYtServiceRequestSent_","yt-backstage-image-select-cancel":"onAttachmentDismiss_","yt-backstage-multi-image-cancel":"onAttachmentDismiss_","yt-backstage-image-select-alert":"onImageAlert_","yt-backstage-image-select-preview":"onImageSelected_",
"yt-backstage-multi-image-select":"onImagesSelected_","yt-backstage-poll-image-select":"onImagesSelected_","yt-img-crop-coordinates-update":"onImagePreviewCoordinatesUpdated_","yt-img-crop-reposition":"onImagePreviewReposition_","yt-poll-attachment-dismiss":"onAttachmentDismiss_","yt-image-poll-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-explanation-update":"onQuizExplanationUpdated_","yt-navigate":"onYtNavigate_","yt-video-link-selected":"onVideoLinkSelected_",
"yt-backstage-add-image-error":"onAddImageError_","yt-video-link-cancel":"onAttachmentDismiss_","yt-video-link-button-cancel":"onVideoLinkButtonCancel_","yt-commentbox-post-enable":"onSubmitButtonEnable_","yt-commentbox-post-disable":"onSubmitButtonDisable_","yt-backstage-attachment-dismissed":"onPrefilledContentDismissed_","yt-emoji-select":"onEmojiSelect_","yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","ytd-date-time-selection-update":"onDateTimeSelectionUpdate_",
"ytd-date-time-selection-cancelled":"onDateTimeSelectionCancelled_","yt-mention-inserted":"onInsertMention_"},actionMap:{"yt-signal-action-ack-post-aadc-notice":"onAadcNoticeConfirm_","yt-hide-identity-chip-action":"onHideIdentityChip"},stampDom:{editAttachment_:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isBackstageVideo:"[[isBackstagePost]]"}},playlistRenderer:{component:"ytd-playlist-renderer",
properties:{isBackstagePlaylist:"[[isBackstagePost]]"}},postMultiImageRenderer:"ytd-post-multi-image-renderer"}},"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:"ytd-flat-dropdown-renderer"}},"data.backstageAttachment":{id:"poll-preview",mapping:{pollRenderer:"ytd-backstage-poll-renderer",quizRenderer:"ytd-backstage-quiz-renderer"}},"imageUploadEndpoint_.imageEditor":{id:"image-select",mapping:{backstageImageSelectRenderer:{component:"ytd-backstage-image-select-renderer",
properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]",isBackstagePost:"[[isBackstagePost]]"}},backstageMultiImageSelectRenderer:{component:"ytd-backstage-multi-image-select-renderer",properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]"}}}},"data.emojiButton":{id:"emoji-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.emojiPicker":{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},dropdownSchedulePanel_:{id:"scheduling-panel",
mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},"zeroStepChannelCreationRenderer.identityChipRenderer":{id:"identity-chip",mapping:{identityChipRenderer:"ytd-identity-chip-renderer"}}},ready:function(){document.addEventListener("tap",_.kM(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(F){this.fire(F?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(F){this.set("submitButtonDisabled",void 0);this.clear();F&&this.computeIsEmojiButtonDisplayed_(F)&&(F=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&F.updateEmojiCategories()},
observePrefilledImage_:function(F,q,t){this.isValidPrefilledImage_(F,q,t)&&(this.prefilledAttachment_="image",this.prefilledImageData_=q,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(F,q){this.isValidPrefilledVideo_(F,q)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(F){F&&F.pollData&&F.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(F.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Ts();this.focus()},
detached:function(){document.removeEventListener("tap",_.kM(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(F){F=F.detail;F=F.isCustomEmoji?F.shortcuts[0]:F.emojiId;var q=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(q,F);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var F=_.rI();if(F){F=F.getBrowserRangeObject();for(var q=F.commonAncestorContainer;q;){if(q===this.getEditableTextArea_())return F;q=q.parentNode}}F=this.getEditableTextArea_();F=_.LV(F,F.childNodes.length);F.select();return F.getBrowserRangeObject()},
insertTextWithEmojis_:function(F,q,t){(q=this.emojiManager.createDocumentFragment(q,!0,!1,t===void 0?!0:t))&&q.childNodes.length!==0&&(F.collapsed||F.deleteContents(),t=q.lastChild,F.insertNode(q),_.fnz(t).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var F=_.rI();if(F){var q=F.JSC$11331_getStartNode(),t=F.JSC$11331_getEndNode();if(zGy(q)&&zGy(t)){var u=F.JSC$11331_getStartOffset(),J;if(_.RC&&q.nodeType===Node.ELEMENT_NODE&&(J=_.hdw(q)))_.LV(J,0).select();else{J=ex(q)?q:_.Vp(q,ex);var g=ex(t)?t:_.Vp(t,ex);if(J||g)if(F.isCollapsed()){if(q.nodeType===Node.TEXT_NODE){F=!0;u===q.length&&(F=!1);if(HJ==="end"||HJ==="right")F=!1;q=q.parentNode;F=[].concat(_.mZ(q.parentNode.childNodes)).indexOf(q)+(F?0:1);_.LV(q.parentNode,
F).select()}}else J?J.previousSibling&&J.previousSibling.length>0?_.fV(t,F.JSC$11331_getEndOffset(),J.previousSibling,J.previousSibling.length-1).select():(q=document.createTextNode("\u200b"),J.parentNode.insertBefore(q,J),_.fV(t,F.JSC$11331_getEndOffset(),q,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.fV(q,F.JSC$11331_getStartOffset(),g.nextSibling,1).select():(t=document.createTextNode("\u200b"),g.parentNode.insertBefore(t,g.nextSibling),_.fV(q,F.JSC$11331_getStartOffset(),t,t.length).select()));
HJ=null}}else HJ=null}else HJ=null},
leftKeyPressed_:function(){HJ="left"},
rightKeyPressed_:function(){HJ="right"},
endKeyPressed_:function(){HJ="end"},
maybeDeleteChip_:function(){var F=D0f(!0);if(F){var q=_.rI(),t=q.JSC$11331_getStartNode();q=q.JSC$11331_getStartOffset();_.Uu(t,q,F,F.childNodes.length).select()}},
maybeBackspaceChip_:function(){var F=D0f(!1);if(F){var q=_.rI(),t=q.JSC$11331_getStartNode();q=q.JSC$11331_getStartOffset();_.Uu(t,q,F,0).select()}},
maybeBackspaceChipWordMode_:function(F){var q=_.rI();if(q.isCollapsed()){var t=q.JSC$11331_getStartNode();q=q.JSC$11331_getStartOffset();var u=Wqu(t,q,!0);u&&(_.Uu(t,q,u,0).select(),document.execCommand("delete"),F.preventDefault(),F.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(F){var q=_.rI();if(q.isCollapsed()){var t=q.JSC$11331_getStartNode();q=q.JSC$11331_getStartOffset();var u=Wqu(t,q,!1);u&&(_.Uu(t,q,u,u.childNodes.length).select(),document.execCommand("delete"),F.preventDefault(),F.stopImmediatePropagation())}},
onTap_:function(F){if(!F.defaultPrevented&&(F.currentTarget.tagName==="YTD-COMMENTBOX"&&ex(F.target)&&F.preventDefault(),this.isEmojiPickerDisplayed)){var q=this.$$("#emojis"),t=this.$$("#emoji-button"),u=this.getEditableTextArea_();if((F=F.path?F.path:F.composedPath&&F.composedPath())&&!F.includes(q)&&!F.includes(u)&&!F.includes(t))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(F,q,t){return F==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&q!==void 0&&q.encryptedBlobId!==null&&q.sourceExternalVideoId!==null&&t!==void 0&&t.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(F,q){return F==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!q&&!!q.videoRenderer&&!!q.videoRenderer.videoId},
isValidPrefilledAttachment_:function(F,q,t){return this.isValidPrefilledImage_(F,q,t)||this.isValidPrefilledVideo_(F,t)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.E("enable_multi_image_post_creation")){var F=this.$$("ytd-backstage-multi-image-select-renderer");F&&F.hasImages()&&F.cancel()}else(F=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&F.cancel();(F=this.$["poll-attachment"])&&this.hasPoll_&&F.clearPollOptions();(F=this.$["image-poll-attachment"])&&this.hasImagePoll_&&F.resetPollOptions();(F=this.$["quiz-attachment"])&&this.hasQuiz_&&F.resetQuizOptions();
(F=this.$["video-link-attachment"])&&this.hasVideo_&&F.cancel();(F=this.$["access-restrictions-selector"].firstElementChild)&&F.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.ep(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ep(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(F,q){F=ngq(F,this.emojiManager,q).cloneNode(!0);for(q=F.firstChild;q;)if(q.nodeType!==1)q=q.nextSibling;else switch(q.tagName){case "BR":var t=_.mR();_.FvJ(t,q);q=t.nextSibling;break;case "DIV":(t=q.lastChild)&&q.nextSibling&&_.CR(_.mR(),t);q.previousSibling&&(q.previousSibling.nodeType===1||q.previousSibling.nodeType===3&&!q.previousSibling.textContent.endsWith("\n"))&&_.y2(_.mR(),q);t&&t.nodeName==="BR"&&_.Mq(t);t=q;q.hasChildNodes()?(q=q.firstChild,
_.qCx(t)):(q=q.nextSibling,_.Mq(t));break;default:q=q.nextSibling}return OkW(F)},
onAddImageError_:function(F){F.stopPropagation();this.errorMessage_=_.FK(F.detail)},
setTextAreaValue_:function(F){F||(F="");var q=this.getEditableFormattedString_();q.text="";this.getEditableTextArea_().innerText="";typeof F==="string"&&(F={runs:[{text:F}]});q.text=F},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();HJ=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var F=this.getEditableTextArea_();F&&(_.LV(F,F.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.bn("HTML_DIR")==="rtl"){var F=this.getEditableTextArea_(),q=this.getTextAreaValue()!==""?"auto":"rtl";F.setAttribute("dir",q)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var F;return Dg_((F=this.$["quiz-attachment"])==null?void 0:F.getExplanationText())||Dg_(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var F=null;if(this.isEmojiButtonDisplayed){var q=this.getInputRange_();q&&(F=this.emojiInput.retrieveTextBeforeRange(q))}this.insertText_(F,!0);this.updateCharCount_();this.setSubmitButton_();F=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=F.scrollHeight>F.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var F=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:F})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(F){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(F)},
onPasteEmoji_:function(F){F.preventDefault();F.stopImmediatePropagation();F=F.clipboardData.getData("text/plain");this.insertText_(F,!1,!1)},
insertText_:function(F,q,t){q=q===void 0?!1:q;t=t===void 0?!0:t;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&F){var u=this.getInputRange_().cloneRange();this.emojiManager&&u&&(q&&this.emojiInput.offsetStartOfRangeBy(u,F.length),this.insertTextWithEmojis_(u,F,t),ogP(this.getEditableTextArea_().lastChild)||(u=this.getInputRange_().cloneRange()),u&&(this.emojiInput.updateSuggestions(u,F),this.updateSuggestionOffset_(u)))}},
setSubmitButton_:function(){if(this.data){var F=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",q=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(F||q){var t=this.getTextAreaValue().trim();q=t===this.previousText_;t=!t||this.aboveCharLimit_;F&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(t=this.aboveCharLimit_);this.submitButtonDisabled=
q||t||!this.getTextLength();F&&_.E("enable_post_scheduling")&&(this.submitButtonDisabled=q&&!this.scheduledPublishTimeSec_||t)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.q1,computeCreationBoxClass_:function(F){return F?"focused":"not-focused"},
computeFooterMessageClass_:function(F,q){return q?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(F,q){return q?q:F},
computeFooterMessageHidden_:function(F,q){return!q&&!F},
computePlaceholderText_:function(F,q,t){return(t==="video"||t==="image")&&(F==null?0:F.prefilledPlaceholderText)?F==null?void 0:F.prefilledPlaceholderText:q==="poll"||q==="image-poll"?F==null?void 0:F.pollPostPlaceholderText:q==="quiz"?F==null?void 0:F.quizPostPlaceholderText:q==="image"?F==null?void 0:F.imagePostPlaceholderText:F==null?void 0:F.placeholderText},
computeHideAttachmentButtons_:function(F,q,t,u){return F===void 0?!1:u&&this.getSimpleString(u)===this.getSimpleString(F.rateLimitErrorMessage)?!0:q!=="none"||t!=="none"||!F.videoLinkButton&&!F.pollButton&&!F.imagePollButton&&!F.quizButton&&!F.imageButton},
computeHideDismissableAttachment_:function(F){return F!=="image"&&F!=="video"},
computeHasVideo_:function(F){return F==="video"},
computeHasImage_:function(F){return F==="image"},
computeHasPoll_:function(F){return F==="poll"},
computeHasImagePoll_:function(F){return F==="image-poll"},
computeHasQuiz_:function(F){return F==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(F){return F&&F.backstageAttachment?F.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!F.backstageAttachment.quizRenderer&&!F.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(F){if(this.isValidPrefilledAttachment_(F.purpose,F.prefilledImageData,F.backstageAttachment))return F.backstageAttachment},
computeEditAttachment_:function(F){if(this.computePrefilledContent_(F)===void 0)return F.backstageAttachment},
computeAuthorThumbnailDimension_:function(F,q){return F&&!q?24:40},
computeImageUploadEndpoint_:function(F){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",F)},
computeRateLimitErrorCommands_:function(F){var q,t;return F==null?void 0:(q=F.advancedTierFeatures)==null?void 0:(t=q.rateLimit)==null?void 0:t.rateLimitCommands},
computeIsBackstageComment_:function(F){return!(!F||F!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(F){return this.get("submitButton.buttonRenderer.serviceEndpoint",F)||this.get("replyButton.buttonRenderer.serviceEndpoint",F)||this.get("postButton.buttonRenderer.serviceEndpoint",F)},
computeSubmitButtonOverride:function(){if(_.E("web_modern_buttons")){var F,q;return{segmentedPosition:this.dropdownSchedulePanel_||!((F=this.data)==null?0:(q=F.postOptionsMenu)==null?0:q.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.E("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(F,q){F=this.get("submitButton.buttonRenderer",F)||this.get("replyButton.buttonRenderer",F)||this.get("postButton.buttonRenderer",F);q&&(F=q);F&&(F=Object.assign({},F),F.serviceEndpoint=void 0,F.isDisabled=this.submitButtonDisabled);return F},
computeHasExternalLinksAccess_:function(F){if(_.E("enable_rfa_external_links")){var q,t,u;return(u=F==null?void 0:(q=F.advancedTierFeatures)==null?void 0:(t=q.externalLinks)==null?void 0:t.allowExternalLinks)!=null?u:!0}return!0},
computeIsEmojiButtonDisplayed_:function(F){return F.emojiButton&&F.emojiPicker&&F.emojiPicker.emojiPickerRenderer&&F.emojiPicker.emojiPickerRenderer.categories?F.emojiPicker.emojiPickerRenderer.categories.find(function(q){return q.emojiPickerCategoryRenderer?q.emojiPickerCategoryRenderer.emojiIds&&q.emojiPickerCategoryRenderer.emojiIds.length>0:q.emojiPickerUpsellCategoryRenderer?q.emojiPickerUpsellCategoryRenderer.emojis&&q.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(F){return F.charLimit?F.charLimit:null},
computeDropdownSchedulingPanel_:function(F,q){if(F==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&q)return q},
computeInlineSchedulingPanel_:function(F,q){if(F==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&q)return q},
computeHideAuthorThumbnail_:function(F,q){return F||this.computeUseIdentityChip_(q)},
computeHideIdentityChipRenderer_:function(F,q){return F||!this.computeUseIdentityChip_(q)},
computeUseIdentityChip_:function(F){return!!F&&!!F.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(F){var q,t,u,J;(F==null?0:(q=F.detail)==null?0:(t=q.endpoint)==null?0:t.ypcGetOffersEndpoint)||(F==null?0:(u=F.detail)==null?0:(J=u.endpoint)==null?0:J.ypcOffersEndpoint)?(F.stopPropagation(),_.RD(this,[F.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",F)&&(F.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(F){this.addedAttachment="video";this.selectedVideoId_=F.detail.videoId},
commentboxStateEntityChanged_:function(F){var q=this;(F==null?void 0:F.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(F==null?void 0:F.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){q.focus()})},
onYtServiceRequestSent_:function(F,q){if(q.actions)for(F=_.X(q.actions),q=F.next();!q.done;q=F.next())q.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(F){this.isLoading=!1;var q=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",F),t,u,J,g=F==null?void 0:(t=F.detail)==null?void 0:(u=t.data)==null?void 0:(J=u.actionResult)==null?void 0:J.commentboxStateEntityKey;if(q)this.errorMessage_=q;else if(g){var Y;this.dismissData_=F==null?void 0:(Y=F.detail)==null?void 0:Y.data;this.commentboxStateKey_=g}else{this.clear();var Q;this.fire("yt-commentbox-dismiss",F==null?void 0:(Q=F.detail)==
null?void 0:Q.data)}},
onYtServiceRequestError_:function(F){F.stopPropagation();this.isLoading=!1;var q,t;if(((q=this.data)==null?void 0:q.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((t=this.data)==null?void 0:t.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(q=this.get("detail.error.args",F)||[],q.length>1&&q[1].message){this.handlePostsServiceRequestError_(q[1].message);return}(F=this.get("detail.error.message",F))?this.errorMessage_=this.data.errorMessage||_.FK(F):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(F){if(_.E("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var q=_.X(this.rateLimitErrorCommands),t=q.next();!t.done;t=q.next())if(t=t.value,t.errorLabel===F){_.n9(t.command,this.hostElement);return}this.errorMessage_=_.FK(F)},
submitIfNotBackstagePost_:function(F){if(!this.isBackstagePost)this.onSubmit_(F)},
onSubmit_:function(F){var q=this,t,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v;return _.p(function(H){switch(H.nextAddress){case 1:F.stopPropagation();if(!q.serviceEndpoint||!q.isValidInput_())return H.return();if(q.shouldShowPostAadcNotice_())return q.showPostAadcNotice_(),H.return();if(q.shouldShowCommentAadcNotice_())return q.showCommentAadcNotice_(),H.return();if(!(q.$$("ytd-backstage-multi-image-select-renderer")&&q.hasImage_&&_.E("enable_multi_image_post_creation"))){H.jumpTo(2);break}t=q.$$("ytd-backstage-multi-image-select-renderer");
return H.yield(t.getAllUploadStatuses(),3);case 3:u=H.yieldResult;if(!u)return H.return();J=_.X(u);for(g=J.next();!g.done;g=J.next())if(Y=g.value,Y.encryptedBlobId===void 0)return q.isLoading=!1,e=Q=void 0,q.errorMessage_=(e=(Q=q.imageUploadEndpoint_)==null?void 0:Q.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?e:null,H.return();return H.return(q.submitForm_(void 0,void 0,void 0,void 0,t.images,q.taggedVideoId_));case 2:if(!q.hasImagePoll_||!q.$["image-poll-attachment"]){H.jumpTo(4);
break}return H.yield(q.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:r=H.yieldResult;if(!r)return H.return();N=_.X(r);for(w=N.next();!w.done;w=N.next())if(k=w.value,!k.encryptedBlobId)return q.isLoading=!1,z=void 0,q.errorMessage_=(z=q.data.errorMessage)!=null?z:null,H.return();case 4:P=(T=q.$$("ytd-backstage-image-select-renderer"))&&T.uploadPromise(),v=q.getSharedPostId_(),P?P.then(function(){q.submitForm_.apply(q,_.mZ(_.US.apply(0,arguments)))}).catch(function(d){q.isLoading=!1;
q.errorMessage_=_.FK(d.message)}):q.selectedVideoId_?q.submitForm_(void 0,q.selectedVideoId_):q.prefilledAttachment_==="image"?q.submitForm_(q.prefilledImageData_.encryptedBlobId,void 0,void 0,q.prefilledImageData_.sourceExternalVideoId,void 0,q.taggedVideoId_):q.prefilledAttachment_==="video"?q.submitForm_(void 0,q.data.backstageAttachment.videoRenderer.videoId):v?q.submitForm_(void 0,void 0,v):q.taggedVideoId_!==void 0?q.submitForm_(void 0,void 0,void 0,void 0,void 0,q.taggedVideoId_):q.submitForm_(),
_.WA(H)}})},
openSchedulingPanel:function(F){F&&F.scheduleButton&&F.scheduleButton.buttonRenderer&&(this.scheduleButton_=F.scheduleButton.buttonRenderer);F&&F.dateTimePicker&&this.set("data.schedulingDateTimePicker",F.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(F){F.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(F){F.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(F){F.stopPropagation();F.detail.alertMessage&&(this.alertMessage_=F.detail.alertMessage)},
onImageSelected_:function(F){F.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(F){F.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(F){F.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(F.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(F){F.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(F){var q=this.$["video-link-attachment"];q&&q.onLaunchVideoPicker(F)},
onAttachmentDismiss_:function(F){F.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.E("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.E("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var F;if(this.addedAttachment==="image-poll"&&((F=this.$["image-poll-attachment"])==null||!F.isValid()))return!1;var q;if(this.addedAttachment==="quiz"&&((q=this.$["quiz-attachment"])==null||!q.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;F=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(F=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")F=!0;return F||!!this.getTextAreaValue().trim()},
submitForm_:function(F,q,t,u,J,g){var Y=this.getTextAreaValue().trim(),Q={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Y===this.previousText_&&(Y=void 0);Y!==void 0&&(Q.comment_text=Y);this.isLoading=!0;g!=void 0&&(Q.tagged_video_id=g);F?(Q.image_blob_id=F,this.imagePreviewCoordinates_&&(Q.image_preview_coordinates=this.imagePreviewCoordinates_)):q?Q.attached_video_id=q:t?Q.shared_post_id=t:J&&J.length>0&&(Q.images_data=J.map(function(e){return{encryptedBlobId:e.encryptedBlobId,
previewCoordinates:e.previewCoordinates}}));
u&&(Q.source_video_id=u);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(Q.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(Q.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(Q.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.E("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(Q.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.E("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(Q.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.RD(this,[this.serviceEndpoint,Q])},
onIsInputFocusChanged_:function(F,q){F?this.fire("yt-autonav-pause-focus"):q!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(F){var q=this.getEditableTextArea_();[].concat(_.mZ(F.dataTransfer.items)).forEach(function(t){t.kind==="string"&&t.type.match("^text/plain")&&t.getAsString(function(u){q.appendChild(document.createTextNode(u))})});
F.preventDefault()},
preventDefault_:function(F){F.preventDefault()},
onSuggestionInsert_:function(F){this.insertTextWithEmojis_(F.detail.range,F.detail.text)},
onEmojiSuggestionClick_:function(F){this.emojiInput.insertSuggestion(F.detail)},
computeSubmitButtonClass_:function(F,q){return!q||F?"":"with-options"},
updateSuggestionOffset_:function(F){if(this.emojiInput&&_.ep(this.emojiInput).querySelector("#dropdown")){var q=this.getEditableTextArea_().getBoundingClientRect().bottom,t=F.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(q-t)+5;q=this.getEditableTextArea_().getBoundingClientRect().left;F=F.getBoundingClientRect().left-q;_.ep(this.emojiInput).querySelector("#dropdown").style.marginLeft=F+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(F){if(_.E("enable_post_scheduling")&&this.data&&this.data.purpose){F=F.detail;if(Math.floor(Date.now()/1E3)>=F)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var q=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(q)||q!==F?this.scheduledPublishTimeSec_=F:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=F;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var F=["image-button","image-poll-button","poll-button"];_.E("enable_quiz_creation")&&F.push("quiz-button");_.E("auto_convert_posts_video_tag")||F.push("video-link-button");return F},
getButtonRenderer:function(F,q){if(F)switch(q){case "video-link-button":var t;return((t=F.videoLinkButton)==null?void 0:t.buttonRenderer)||void 0;case "image-button":var u;return((u=F.imageButton)==null?void 0:u.buttonRenderer)||void 0;case "poll-button":var J;return((J=F.pollButton)==null?void 0:J.buttonRenderer)||void 0;case "image-poll-button":var g;return((g=F.imagePollButton)==null?void 0:g.buttonRenderer)||void 0;case "quiz-button":var Y;return((Y=F.quizButton)==null?void 0:Y.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var F;return(F=this.data)==null||!F.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var F,q;return!((F=this.data)==null||!F.openAadcDialog)&&!((q=this.aadcGuidelinesState_)==null||!q.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.bn("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var F;((F=this.data)==null?0:F.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.dB("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(F){F.clickTrackingParams&&_.DP().clickCommand(F);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.ec(this,"yt-close-popup-action")},
onHideIdentityChip:function(F){var q;this.set("data.placeholderText",(q=F.hideIdentityChipAction)==null?void 0:q.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var mF=function(){var F=_.x.apply(this,arguments)||this;F.isOpen=!1;F.modern=_.E("web_modern_buttons");F.roundedContainer=!0;F.dropdownButtonOverride=_.E("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;F.inPopupContainer=!1;F.isCommentboxLoading=!1;var q=["image-button","image-poll-button","poll-button"];_.E("enable_quiz_creation")&&q.push("quiz-button");_.E("auto_convert_posts_video_tag")||q.push("video-link-button");F.attachmentButtonIds=q;F.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return F};
_.M(mF,_.x);_.l=mF.prototype;_.l.computeButtonOverride=function(){var F;return((F=this.data)==null?0:F.postOptionsMenu)&&_.E("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.l.configureRendererStamper=function(){var F={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.E("auto_convert_posts_video_tag")||(F["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return F};
_.l.ready=function(){var F=this,q=_.ep(this.hostElement).querySelector("#placeholder-area"),t=function(u){F.onOpen(u)};
q.addEventListener("tap",t);q.addEventListener("keypress",t)};
_.l.showButtonEduTooltip=function(){var F,q,t,u,J,g,Y;if(_.E("enable_quiz_creation")&&((F=this.data)==null?0:(q=F.quizButton)==null?0:(t=q.buttonRenderer)==null?0:(u=t.hint)==null?0:(J=u.hintRenderer)==null?0:(g=J.content)==null?0:(Y=g.bubbleHintRenderer)==null?0:Y.text)&&(_.n8.getInstance(),F=M4(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(F==null?void 0:
F.length)>0)){this.ytComponentBehavior.resolveCommand(F[0],{form:{element:this.quizButton}});return}var Q;if((Q=this.data)==null?0:Q.imagePollButtonTooltip)if(_.n8.getInstance(),Q=M4(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(Q==null?void 0:Q.length)>0){this.ytComponentBehavior.resolveCommand(Q[0],{form:{element:this.imagePollButton}});return}var e;_.E("enable_multi_image_post_creation")&&
((e=this.data)==null?0:e.multiImageButtonTooltip)&&(_.n8.getInstance(),e=M4(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(e==null?void 0:e.length)>0&&this.ytComponentBehavior.resolveCommand(e[0],{form:{element:this.imageButton}}))};
_.l.onCreatePollAction=function(F){_.n(F,WXL)&&(this.JSC$15786_commentbox.addedAttachment="poll",this.openDialog())};
_.l.onAddVideoLinkAction=function(F){if(_.n(F,Muj))this.JSC$15786_commentbox.onAddVideoLink(F)};
_.l.onShowSchedulingPanelCommand=function(F){(F=_.n(F,c$e))&&this.openSchedulingPanel(F)};
_.l.onCreateImagePollCommand=function(F){_.n(F,Sqd)&&(this.JSC$15786_commentbox.openImagePollComponent(),this.openDialog())};
_.l.onCreateQuizCommand=function(F){_.n(F,hOe)&&(this.JSC$15786_commentbox.openQuizComponent(),this.openDialog())};
_.l.openSchedulingPanel=function(F){_.E("enable_post_scheduling")&&(this.openDialog(),this.JSC$15786_commentbox.openSchedulingPanel(F))};
_.l.onCreateCommentAction=function(F){this.get("createCommentAction.contents",F)&&(this.JSC$15786_commentbox.clear(),this.closeDialog())};
_.l.onOpen=function(F){F instanceof KeyboardEvent&&F.type==="keypress"&&F.keyCode!==13&&F.keyCode!==32||(this.data.prepareAccountEndpoint?_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.l.onYtCommentboxDismiss=function(){this.closeDialog()};
_.l.onYtCommentboxLoadingStart=function(F){F.stopPropagation();this.isCommentboxLoading=!0};
_.l.onYtCommentboxLoadingEnd=function(F){F.stopPropagation();this.isCommentboxLoading=!1};
_.l.onYtVideoLinkButtonCancel=function(F){F.stopPropagation();this.onOpen(F)};
_.l.onYtVideoLinkSelected=function(F){F.stopPropagation();this.onOpen(F)};
_.l.onIronSelect=function(F){F.stopPropagation();F.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=F.detail.item.value&&(this.accessRestriction?(this.accessRestriction=F.detail.item.value,this.onOpen(F)):this.accessRestriction=F.detail.item.value)};
_.l.onYtNavigate=function(F){this.get("detail.endpoint.backstageImageUploadEndpoint",F)&&(this.JSC$15786_commentbox.addedAttachment="image",this.JSC$15786_commentbox.submitButtonDisabled=!0,this.onOpen(F))};
_.l.onRequestSent=function(F){if(_.E("web_button_rework"))for(var q=_.X(F.detail),t=q.next();!t.done;t=q.next())_.n(t.value,uSe)&&(this.JSC$15786_commentbox.addedAttachment="image",this.JSC$15786_commentbox.submitButtonDisabled=!0,this.onOpen(F))};
_.l.openDialog=function(){this.JSC$15786_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15786_commentbox.focus()};
_.l.onPopupClosed=function(){_.n8.getInstance()};
_.l.computeCreationDisabled=function(F){return!!F};
_.l.computeIsCreationDialog=function(F){return!!F&&F==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.l.computeDisabledPostButton=function(F){if(!F)return null;F.isDisabled=!0;return F};
_.l.computeIsCreationDialogWithHeader=function(F){return!this.inPopupContainer&&!!F&&!!F.authorText&&F.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.l.computeIsHeaderHidden=function(F,q){return!F||q};
_.l.computeDropdownRendererClasses=function(F){return F?["text-secondary-style"]:[]};
_.l.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var F=_.ep(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;F&&F.reset()};
mF.prototype.onPopupClosed=mF.prototype.onPopupClosed;mF.prototype.onRequestSent=mF.prototype.onRequestSent;mF.prototype.onYtNavigate=mF.prototype.onYtNavigate;mF.prototype.onIronSelect=mF.prototype.onIronSelect;mF.prototype.onYtVideoLinkSelected=mF.prototype.onYtVideoLinkSelected;mF.prototype.onYtVideoLinkButtonCancel=mF.prototype.onYtVideoLinkButtonCancel;mF.prototype.onYtCommentboxLoadingEnd=mF.prototype.onYtCommentboxLoadingEnd;mF.prototype.onYtCommentboxLoadingStart=mF.prototype.onYtCommentboxLoadingStart;
mF.prototype.onYtCommentboxDismiss=mF.prototype.onYtCommentboxDismiss;mF.prototype.showButtonEduTooltip=mF.prototype.showButtonEduTooltip;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],mF.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],mF.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],mF.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],mF.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mF.prototype,"isOpen",void 0);_.C([_.O({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],mF.prototype,"buttonOverride",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mF.prototype,"modern",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mF.prototype,"roundedContainer",void 0);_.C([_.O(),_.V("design:type",Object)],mF.prototype,"dropdownButtonOverride",void 0);_.C([_.O({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.V("design:type",Boolean)],mF.prototype,"creationDisabled",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],mF.prototype,"enableCreationBox",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.V("design:type",Boolean)],mF.prototype,"isCreationDialog",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mF.prototype,"inPopupContainer",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.V("design:type",Boolean)],mF.prototype,"isCreationDialogWithHeader",void 0);_.C([_.O(),_.V("design:type",Object)],mF.prototype,"accessRestriction",void 0);
_.C([_.O({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.V("design:type",Array)],mF.prototype,"dropdownRendererClasses",void 0);_.C([_.O(),_.V("design:type",Object)],mF.prototype,"isCommentboxLoading",void 0);_.C([_.O(),_.V("design:type",Array)],mF.prototype,"attachmentButtonIds",void 0);_.C([_.Ms("#image-button"),_.V("design:type",HTMLElement)],mF.prototype,"imageButton",void 0);
_.C([_.Ms("#image-poll-button"),_.V("design:type",HTMLElement)],mF.prototype,"imagePollButton",void 0);_.C([_.Ms("#quiz-button"),_.V("design:type",HTMLElement)],mF.prototype,"quizButton",void 0);_.C([_.Ms("#commentbox"),_.V("design:type",Object)],mF.prototype,"JSC$15786_commentbox",void 0);_.C([_.za("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mF.prototype,"showButtonEduTooltip",null);
_.C([_.EB("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mF.prototype,"onYtCommentboxDismiss",null);_.C([_.EB("yt-commentbox-loading-start"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mF.prototype,"onYtCommentboxLoadingStart",null);
_.C([_.EB("yt-commentbox-loading-end"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mF.prototype,"onYtCommentboxLoadingEnd",null);_.C([_.EB("yt-video-link-button-cancel"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mF.prototype,"onYtVideoLinkButtonCancel",null);
_.C([_.EB("yt-video-link-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mF.prototype,"onYtVideoLinkSelected",null);_.C([_.EB("iron-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mF.prototype,"onIronSelect",null);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mF.prototype,"onYtNavigate",null);
_.C([_.EB("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mF.prototype,"onRequestSent",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mF.prototype,"onPopupClosed",null);_.C([_.m({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],mF);
_.b(mF,"ytd-backstage-post-dialog-renderer",function(){if(JAv!==void 0)return JAv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return JAv=F},{mode:1});var mfr;var $fE;var $u=function(){return _.x.apply(this,arguments)||this};
_.M($u,_.x);_.l=$u.prototype;_.l.computeHeartButtonStyle=function(F){return(F==null?0:F.styleType)?F.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.l.onYtButtonTap=function(){if(this.data.isEnabled){var F=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(F=this.getEndpoint(F))&&_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}})}else(F=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(F)};
_.l.toggle=function(F){this.set("data.isHearted",F!==void 0?F:!this.data.isHearted)};
_.l.getEndpoint=function(F){var q,t=(q=this.data)==null?void 0:q.heartEndpoint,u;q=(u=this.data)==null?void 0:u.unheartEndpoint;if(t&&q)return F?q:t};
_.l.computeButtonAccessibility=function(F,q){var t,u,J=F==null?void 0:(t=F.heartedAccessibility)==null?void 0:(u=t.accessibilityData)==null?void 0:u.label,g,Y;F=F==null?void 0:(g=F.unheartedAccessibility)==null?void 0:(Y=g.accessibilityData)==null?void 0:Y.label;return q?J:F};
_.JJ.Object.defineProperties($u.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var F;return _.E("kevlar_system_icons")&&!((F=this.data)==null||!F.isHearted)}}});
$u.prototype.onYtButtonTap=$u.prototype.onYtButtonTap;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],$u.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$u.prototype,"data",void 0);_.C([_.W("data.isHearted"),_.V("design:type",Object),_.V("design:paramtypes",[])],$u.prototype,"heartTooltip",null);
_.C([_.W("data.isHearted"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$u.prototype,"iconFilled",null);_.C([_.O({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.V("design:type",String)],$u.prototype,"buttonAccessibility",void 0);_.C([_.O({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],$u.prototype,"heartButtonStyle",void 0);
_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$u.prototype,"onYtButtonTap",null);_.C([_.m({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],$u);
_.b($u,"ytd-creator-heart-renderer",function(){if($fE!==void 0)return $fE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return $fE=F},{mode:1});var bs=function(){var F=_.x.apply(this,arguments)||this;F.hasCreatorReply=!1;F.buttonOverrides={size:"S",iconPosition:"icon-only"};F.replyButtonOverrides={size:"S",type:"text"};F.forceIconButton=!_.E("web_modern_buttons");F.modern=_.E("web_modern_buttons");F.buttonTooltipPosition="bottom";F.systemIcons=_.E("kevlar_system_icons");F.replyDialog=null;return F};
_.M(bs,_.x);_.l=bs.prototype;
_.l.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]]"}}}}}};
_.l.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.l.dataChange=function(){this.replyDialog&&_.ep(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var F,q,t;this.isLiked=this.systemIcons&&!!((F=this.data)==null?0:(q=F.likeButton)==null?0:(t=q.toggleButtonRenderer)==null?0:t.isToggled)};
_.l.computeShowVoteCountBeginning=function(F,q){return F===void 0||q===void 0?!0:F.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!q&&this.ytRendererBehavior.getSimpleString(q)!=="0"};
_.l.computeShowVoteCountEnd=function(F,q){return F===void 0||q===void 0?!0:F.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!q&&this.ytRendererBehavior.getSimpleString(q)!=="0"};
_.l.computeShowCommentCount=function(F,q){return F===void 0||q===void 0?!0:F.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!q&&this.ytRendererBehavior.getSimpleString(q)!=="0"};
_.l.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.l.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.l.showReplyDialog=function(F){F&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.ep(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=F,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.l.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.l.onRequestSent=function(F){if(_.E("web_button_rework")){F=_.X(F.detail);for(var q=F.next();!q.done;q=F.next())(q=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",q.value))&&this.showReplyDialog(q)}};
_.l.onYtNavigate=function(F){var q,t;(F=(q=_.n(F.detail.endpoint,_.stJ))==null?void 0:(t=q.dialog)==null?void 0:t.commentReplyDialogRenderer)&&this.showReplyDialog(F)};
_.l.onYtServiceRequestSent=function(F,q){F.stopPropagation();if(q.actions)for(F=0;F<q.actions.length;F++){var t=_.n(q.actions[F],I6f);t&&this.handleUpdateCommentVoteAction(t)}};
_.l.handleUpdateCommentVoteAction=function(F){this.voteCount=F.voteCount||_.FK("0");F.voteStatus==="LIKE"?this.JSC$15797_ytdDislikeToggleButtonRenderer.toggle(!1):F.voteStatus==="DISLIKE"?this.JSC$15797_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15797_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15797_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.l.computeReplyButtonHidden=function(F){return F};
_.l.computeReplyButtonBeginning=function(F){return(F==null?0:F.replyButton)&&F.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?F.replyButton:void 0};
_.l.computeReplyButtonEnd=function(F){return(F==null?0:F.replyButton)&&F.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?F.replyButton:void 0};
_.l.computeActionButtonStyle=function(F){return(F==null?0:F.style)?F.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.l.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.l.onYtToggleButton=function(F){var q,t;this.isLiked=this.systemIcons&&!!((q=F.detail)==null?0:(t=q.actions)==null?0:t.like)};
bs.prototype.onYtToggleButton=bs.prototype.onYtToggleButton;bs.prototype.onButtonTooltipPositionChanged=bs.prototype.onButtonTooltipPositionChanged;bs.prototype.onYtServiceRequestSent=bs.prototype.onYtServiceRequestSent;bs.prototype.onYtNavigate=bs.prototype.onYtNavigate;bs.prototype.onRequestSent=bs.prototype.onRequestSent;bs.prototype.onYtCommentboxDismiss=bs.prototype.onYtCommentboxDismiss;bs.prototype.dataChange=bs.prototype.dataChange;
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],bs.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],bs.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],bs.prototype,"voteCount",void 0);_.C([_.O(),_.V("design:type",Object)],bs.prototype,"commentCount",void 0);_.C([_.O(),_.V("design:type",Object)],bs.prototype,"replyThumbnail",void 0);
_.C([_.O(),_.V("design:type",Object)],bs.prototype,"hasCreatorReply",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],bs.prototype,"enableCreationBox",void 0);_.C([_.O({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],bs.prototype,"actionButtonsStyle",void 0);_.C([_.O({computed:"computeReplyButtonBeginning(data)"}),_.V("design:type",Object)],bs.prototype,"replyButtonBeginning",void 0);
_.C([_.O({computed:"computeReplyButtonEnd(data)"}),_.V("design:type",Object)],bs.prototype,"replyButtonEnd",void 0);_.C([_.O(),_.V("design:type",Object)],bs.prototype,"buttonOverrides",void 0);_.C([_.O(),_.V("design:type",Object)],bs.prototype,"replyButtonOverrides",void 0);_.C([_.O(),_.V("design:type",Object)],bs.prototype,"forceIconButton",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],bs.prototype,"useCommentIcon",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],bs.prototype,"modern",void 0);_.C([_.O(),_.V("design:type",Object)],bs.prototype,"buttonTooltipPosition",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],bs.prototype,"systemIcons",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],bs.prototype,"isLiked",void 0);_.C([_.Ms("ytd-button-renderer"),_.V("design:type",Object)],bs.prototype,"ytdReplyButtonRenderer",void 0);
_.C([_.Ms("#like-button"),_.V("design:type",Object)],bs.prototype,"JSC$15797_ytdLikeToggleButtonRenderer",void 0);_.C([_.Ms("#dislike-button"),_.V("design:type",Object)],bs.prototype,"JSC$15797_ytdDislikeToggleButtonRenderer",void 0);_.C([_.Ms("#reply-dialog"),_.V("design:type",HTMLElement)],bs.prototype,"replyDialogElement",void 0);_.C([_.Ms("#reply-button"),_.V("design:type",HTMLElement)],bs.prototype,"replyButtonElement",void 0);
_.C([_.Ms("#reply-button-end"),_.V("design:type",HTMLElement)],bs.prototype,"replyButtonEndElement",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bs.prototype,"dataChange",null);_.C([_.EB("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bs.prototype,"onYtCommentboxDismiss",null);
_.C([_.EB("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bs.prototype,"onRequestSent",null);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bs.prototype,"onYtNavigate",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],bs.prototype,"onYtServiceRequestSent",null);_.C([_.za("buttonTooltipPosition"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bs.prototype,"onButtonTooltipPositionChanged",null);
_.C([_.EB("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bs.prototype,"onYtToggleButton",null);_.C([_.m({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],bs);
_.b(bs,"ytd-comment-action-buttons-renderer",function(){if(mfr!==void 0)return mfr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return mfr=F},{mode:1});var bze;var yo=function(){return _.x.apply(this,arguments)||this};
_.M(yo,_.x);yo.prototype.focus=function(){_.ep(this.hostElement).querySelector("#commentbox").focus()};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],yo.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],yo.prototype,"zeroStepChannelCreationRenderer",void 0);_.C([_.m({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],yo);
_.b(yo,"ytd-comment-dialog-renderer",function(){if(bze!==void 0)return bze;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return bze=F},{mode:1});var yAw;var Cb=function(){var F=_.x.apply(this,arguments)||this;F.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.E("enable_web_delhi_icons")};F.replyButtonOverrides={size:"S",type:"text"};return F};
_.M(Cb,_.x);_.l=Cb.prototype;_.l.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.l.detached=function(){this.replyBox&&this.replyBox.remove()};
_.l.showReplyDialog=function(F){if(F){var q=this.replyBox;q||(q=document.createElement("ytd-comment-reply-dialog-renderer"),q.id="replybox",_.ep(this.replyDialogDiv).appendChild(q));q.data=F;this.replyDialogDiv.hidden=!1;q.openDialog()}};
_.l.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.l.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var F,q=_.n((F=this.toolbarSurface)==null?void 0:F.subscribersOnlyDisclaimerSnackbarCommand,_.Uk);q&&_.Q0(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:q})}};
_.l.onYtServiceRequestSent=function(F,q){F.stopPropagation();if(q.actions)for(var t=0;t<q.actions.length;t++){var u=_.n(q.actions[t],I6f);u?this.handleUpdateCommentVoteAction(u):F.target===this.heartButton&&this.toggleHeartState()}};
_.l.handleUpdateCommentVoteAction=function(F){var q;(q=this.toolbarState)!=null&&q.key&&this.ytdReduxBehavior.dispatch(_.I4("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:F.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":F.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.l.toggleHeartState=function(){var F;(F=this.toolbarState)!=null&&F.key&&this.ytdReduxBehavior.dispatch(_.I4("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.JJ.Object.defineProperties(Cb.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return(((F=this.toolbarState)==null?void 0:F.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(q=this.toolbarData)==null?void 0:q.likeCountLiked:(t=this.toolbarData)==null?void 0:t.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.toolbarSurface)==null?void 0:F.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.toolbarSurface)==null?void 0:F.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.toolbarSurface)==null?void 0:F.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.toolbarSurface)==null?void 0:F.prepareAccountCommand)!==void 0&&!_.E("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var F,q=_.n((F=this.toolbarSurface)==null?void 0:F.prepareAccountCommand,_.Uk),t,u,J,g,Y,Q,e,r,N;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((t=this.toolbarSharedData)==null||!t.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((u=this.toolbarState)==null?void 0:u.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:q!=null?q:_.n((J=this.toolbarSurface)==null?void 0:J.likeCommand,_.Uk),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:q!=null?q:_.n((g=this.toolbarSurface)==null?void 0:g.unlikeCommand,_.Uk),defaultCommand:this.isVisiblyDisabled?_.n((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand,_.Uk):void 0,defaultTooltip:(Q=this.toolbarData)==null?void 0:Q.likeInactiveTooltip,toggledTooltip:(e=this.toolbarData)==null?void 0:e.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(r=this.toolbarData)==null?void 0:r.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(N=this.toolbarSharedData)==null?void 0:N.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var F,q=_.n((F=this.toolbarSurface)==null?void 0:F.prepareAccountCommand,_.Uk),t,u,J,g,Y,Q,e,r,N,w;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((t=this.toolbarSharedData)==null||!t.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((u=this.toolbarState)==null?void 0:u.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:q!=null?q:_.n((J=this.toolbarSurface)==null?void 0:J.dislikeCommand,_.Uk),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:q!=null?q:_.n((g=this.toolbarSurface)==null?void 0:g.undislikeCommand,_.Uk),defaultCommand:this.isVisiblyDisabled?_.n((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand,_.Uk):void 0,defaultTooltip:(Q=this.toolbarData)==null?void 0:Q.dislikeInactiveTooltip,toggledTooltip:(e=this.toolbarData)==null?void 0:
e.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(r=this.toolbarSharedData)==null?void 0:r.dislikeReplyButtonA11y:(N=this.toolbarSharedData)==null?void 0:N.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var F,q,t;if(((F=this.toolbarState)==null?void 0:F.heartState)!==void 0&&((q=this.toolbarState)==null?void 0:q.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((t=this.toolbarState)==null?void 0:t.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var u,J,g,Y,Q,e,r,N,w,k,z,T,P,v;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(u=this.toolbarData)==null?void 0:u.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((g=this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((Y=this.toolbarState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.n((e=this.toolbarSurface)==null?void 0:e.heartCommand,
_.Uk),unheartEndpoint:this.isVisiblyDisabled?void 0:_.n((r=this.toolbarSurface)==null?void 0:r.unheartCommand,_.Uk),disabledEndpoint:this.isVisiblyDisabled?_.n((N=this.toolbarSurface)==null?void 0:N.commentDisabledActionCommand,_.Uk):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(w=this.toolbarData)==null?void 0:w.heartActiveTooltip,unheartedTooltip:(k=this.toolbarData)==null?void 0:k.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((z=
this.toolbarState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(T=this.toolbarSharedData)==null?void 0:T.unheartButtonA11y:(P=this.toolbarSharedData)==null?void 0:P.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(v=this.toolbarSharedData)==null?void 0:v.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.toolbarSurface)==null||!F.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(F=this.commentStrings)==null?void 0:F.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.n((q=this.toolbarSurface)==null?void 0:q.replyCommand,_.Uk),command:this.isVisiblyDisabled?_.n((t=this.toolbarSurface)==null?
void 0:t.commentDisabledActionCommand,_.Uk):this.isSubsOnlyCommentsIneligibleUser?_.n((u=this.toolbarSurface)==null?void 0:u.subscribersOnlySnackbarCommand,_.Uk):void 0}}}});
Cb.prototype.onYtServiceRequestSent=Cb.prototype.onYtServiceRequestSent;Cb.prototype.hideReplyDialogDiv=Cb.prototype.hideReplyDialogDiv;_.C([_.O(),_.V("design:type",Object)],Cb.prototype,"commentStrings",void 0);_.C([_.O(),_.V("design:type",Boolean)],Cb.prototype,"isReply",void 0);_.C([_.O(),_.V("design:type",Object)],Cb.prototype,"toolbarData",void 0);_.C([_.O(),_.V("design:type",Object)],Cb.prototype,"toolbarSharedData",void 0);
_.C([_.O(),_.V("design:type",String)],Cb.prototype,"toolbarStateKey",void 0);_.C([_.O(),_.V("design:type",String)],Cb.prototype,"toolbarSurfaceKey",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Cb.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Cb.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.En),_.V("design:type",Object)],Cb.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.Ms("#reply-dialog"),_.V("design:type",HTMLElement)],Cb.prototype,"replyDialogDiv",void 0);_.C([_.Ms("#replybox"),_.V("design:type",Object)],Cb.prototype,"replyBox",void 0);_.C([_.Ms("ytd-creator-heart-renderer"),_.V("design:type",Object)],Cb.prototype,"heartButton",void 0);_.C([_.O({selector:function(F,q){return _.iC(F.entities,"engagementToolbarStateEntityPayload",q)},
selectorArgs:["toolbarStateKey"]}),_.V("design:type",Object)],Cb.prototype,"toolbarState",void 0);_.C([_.O({selector:fKA,selectorArgs:["toolbarSurfaceKey"]}),_.V("design:type",Object)],Cb.prototype,"toolbarSurface",void 0);_.C([_.O(),_.V("design:type",Object)],Cb.prototype,"buttonOverrides",void 0);_.C([_.EB("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cb.prototype,"hideReplyDialogDiv",null);
_.C([_.W("toolbarData","toolbarState"),_.V("design:type",String),_.V("design:paramtypes",[])],Cb.prototype,"likeCount",null);_.C([_.W("likeCount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Cb.prototype,"showLikeCount",null);_.C([_.W("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Cb.prototype,"isVisiblyDisabled",null);_.C([_.W("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Cb.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.C([_.W("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Cb.prototype,"isSubsOnlyCommentsEligibleUser",null);_.C([_.W("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Cb.prototype,"hasPrepareAccountCommand",null);_.C([_.W("toolbarData","toolbarState","toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],Cb.prototype,"likeToggleButtonRenderer",null);
_.C([_.W("isReply","toolbarData","toolbarState","toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],Cb.prototype,"dislikeToggleButtonRenderer",null);_.C([_.W("toolbarData","toolbarState","toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],Cb.prototype,"creatorHeartSupportedRenderer",null);_.C([_.W("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Cb.prototype,"hasReplyCommand",null);
_.C([_.W("toolbarSurface","commentStrings","isVisiblyDisabled"),_.V("design:type",Object),_.V("design:paramtypes",[])],Cb.prototype,"replyButtonRenderer",null);_.C([_.O(),_.V("design:type",Object)],Cb.prototype,"replyButtonOverrides",void 0);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],Cb.prototype,"onYtServiceRequestSent",null);_.C([_.m({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Cb);
_.b(Cb,"ytd-comment-engagement-bar",function(){if(yAw!==void 0)return yAw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return yAw=F},{mode:1});var C3x;var dD=function(){return _.x.apply(this,arguments)||this};
_.M(dD,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],dD.prototype,"data",void 0);_.C([_.m({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],dD);
_.b(dD,"ytd-comment-inline-thumbnail-renderer",function(){if(C3x!==void 0)return C3x;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return C3x=F},{mode:1});var dfO;var Vo=function(){return _.x.apply(this,arguments)||this};
_.M(Vo,_.x);Vo.prototype.onMessageTap=function(){if(this.onTapCommand){var F=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);F&&this.ytdOpenPopupBehavior.openPopup(F)}};
_.JJ.Object.defineProperties(Vo.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return(F=this.data)==null?void 0:(q=F.button)==null?void 0:(t=q.buttonRenderer)==null?void 0:t.command}}});
_.C([_.D(_.En),_.V("design:type",Object)],Vo.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Vo.prototype,"data",void 0);_.C([_.W("data.button.buttonRenderer.command"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vo.prototype,"onTapCommand",null);_.C([_.m({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Vo);
_.b(Vo,"ytd-comment-pause-composer-renderer",function(){if(dfO!==void 0)return dfO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return dfO=F},{mode:1});var Vor;var Uff;var U6=function(){var F=_.x.apply(this,arguments)||this;F.isOpen=!1;return F};
_.M(U6,_.x);_.l=U6.prototype;_.l.dataChanged=function(){this.isOpen=!1};
_.l.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.l.focus=function(){this.JSC$15827_commentbox.focus()};
_.l.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.l.openDialog=function(){this.isOpen=!0;this.JSC$15827_commentbox.focus();this.JSC$15827_commentbox.maybeHeightChanged()};
U6.prototype.onYtCommentboxDismiss=U6.prototype.onYtCommentboxDismiss;U6.prototype.dataChanged=U6.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],U6.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],U6.prototype,"isOpen",void 0);_.C([_.Ms("#commentbox"),_.V("design:type",Object)],U6.prototype,"JSC$15827_commentbox",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],U6.prototype,"dataChanged",null);_.C([_.EB("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],U6.prototype,"onYtCommentboxDismiss",null);_.C([_.m({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],U6);
_.b(U6,"ytd-comment-reply-dialog-renderer",function(){if(Uff!==void 0)return Uff;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Uff=F},{mode:1});var S$L;var Sk=function(){return _.x.apply(this,arguments)||this};
_.M(Sk,_.x);_.JJ.Object.defineProperties(Sk.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(F=this.data)==null?void 0:(q=F.icon)==null?void 0:q.iconType;return t?"yt-icons:"+t.toLowerCase():null}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Sk.prototype,"data",void 0);_.C([_.O(),_.W("data.icon"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sk.prototype,"icon",null);_.C([_.m({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Sk);
_.b(Sk,"ytd-pinned-comment-badge-renderer",function(){if(S$L!==void 0)return S$L;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return S$L=F},{mode:1});var hc1;var KkE={},BTe={input:!0,meta:!0,br:!0,link:!0,img:!0},h0=null;KkE.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(){h0==null&&(h0=document.createElement("tp-yt-paper-tooltip"),h0.offset=8,h0.fitToVisibleBounds=!0)},
onMouseOver_:function(F){if(F=_.Vp(F.target,function(J){return J==this||J.getAttribute&&J.getAttribute("shared-tooltip-text")}.bind(this),!0)){var q=F.getAttribute("shared-tooltip-text");
if(q){var t=this,u=null;F!=this&&(F.tagName.toLowerCase()in BTe?t=F.parentElement:t=F,F.id&&(u=F.id));this.polymerController.createTooltipIfRequired_();if(h0.parentElement!=t||h0.for!=u)(0,_.Ns)(h0).textContent=q,_.ep(t).appendChild(h0),h0.for=u,h0.animationDelay=this.polymerController.sharedTooltipAnimationDelay,h0.position=this.polymerController.sharedTooltipPosition}}}};var Kb=function(){return _.x.apply(this,arguments)||this};
_.M(Kb,_.x);Kb.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]]"}}}}}};
Kb.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var F;((F=this.data)==null?0:F.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Kb.prototype.colorChanged=function(){var F,q,t,u=(F=this.data)==null?void 0:(q=F.color)==null?void 0:(t=q.basicColorPaletteData)==null?void 0:t.foregroundBodyColor;u&&(this.rgbBadgeColor=_.hn(u));_.ep(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Kb.prototype.tooltipChanged=function(){var F;((F=this.data)==null?0:F.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Kb.prototype.tooltipChanged=Kb.prototype.tooltipChanged;Kb.prototype.colorChanged=Kb.prototype.colorChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(KkE.YtSharedTooltipBehavior),_.V("design:type",Object)],Kb.prototype,"ytSharedTooltipBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Kb.prototype,"data",void 0);
_.C([_.O({value:"#4285F4"}),_.V("design:type",String)],Kb.prototype,"rgbBadgeColor",void 0);_.C([_.za("data.color"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kb.prototype,"colorChanged",null);_.C([_.za("data.tooltip"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kb.prototype,"tooltipChanged",null);_.C([_.m({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Kb);
_.b(Kb,"ytd-sponsor-comment-badge-renderer",function(){if(hc1!==void 0)return hc1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return hc1=F},{mode:1});var Lkj;var fgf;var BJ=function(){return _.x.apply(this,arguments)||this};
_.M(BJ,_.x);BJ.prototype.computeState=function(F){switch(F==null?void 0:F.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
BJ.prototype.updateStateIdentifier=function(F){if(this.viewModel.triStateKey){var q=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.I4("triStateButtonStateEntityPayload",q,{key:q,stateIdentifier:F}))}};
BJ.prototype.onClick=function(){var F=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){F.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){F.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.JJ.Object.defineProperties(BJ.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.buttonText)||""}}});
_.C([_.O(),_.V("design:type",Object)],BJ.prototype,"viewModel",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],BJ.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],BJ.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.C([_.O({selector:aKW,selectorArgs:["viewModel.triStateKey"]}),_.V("design:type",Object)],BJ.prototype,"triStateButtonStateEntity",void 0);
_.C([_.O({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.V("design:type",String)],BJ.prototype,"state",void 0);_.C([_.W("viewModel","state"),_.V("design:type",Object),_.V("design:paramtypes",[])],BJ.prototype,"data",null);_.C([_.W("data"),_.V("design:type",String),_.V("design:paramtypes",[])],BJ.prototype,"buttonText",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],BJ);
_.b(BJ,"ytd-tri-state-button-view-model",function(){if(fgf!==void 0)return fgf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return fgf=F},{mode:1});var agO;var jPj;var Lb=function(){var F=_.x.apply(this,arguments)||this;F.defaultIconToFilled=!_.E("kevlar_fill_comment_chip_icon_killswitch");return F};
_.M(Lb,_.x);Lb.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Lb.prototype.dataChanged=function(){if(this.data){var F,q;((F=this.data.chipColorPalette)==null?0:F.backgroundColor)&&((q=this.data.chipColorPalette)==null?0:q.foregroundTitleColor)&&_.ws(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.KG(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.KG(this.data.chipColorPalette.foregroundTitleColor)});var t;((t=this.data)==null?0:t.command)?(_.ws(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.ws(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}};
Lb.prototype.onTap=function(){var F;if(this.data&&(F=this.data)!=null&&F.command){var q;this.ytComponentBehavior.resolveCommand((q=this.data)==null?void 0:q.command)}};
Lb.prototype.getIconSize=function(){return _.E("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Lb.prototype.onTap=Lb.prototype.onTap;Lb.prototype.dataChanged=Lb.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Lb.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.v6),_.V("design:type",Object)],Lb.prototype,"ironA11yKeysBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Lb.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],Lb.prototype,"basePriceText",void 0);_.C([_.O(),_.V("design:type",Object)],Lb.prototype,"chipIcon",void 0);_.C([_.O(),_.V("design:type",Object)],Lb.prototype,"defaultIconToFilled",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lb.prototype,"dataChanged",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lb.prototype,"onTap",null);
_.C([_.Vu({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Lb);
_.b(Lb,"yt-pdg-comment-chip-renderer",function(){if(jPj===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;agO===void 0&&(agO=document.createElement("template"));var u=agO;t.call(q,u.content.cloneNode(!0),F.content.firstChild);jPj=F}F=jPj;return F},{mode:2});var fb=function(){var F=_.x.apply(this,arguments)||this;F.useSmallAvatars=_.E("small_avatars_for_comments");F.webWatchCompactComments=_.E("web_watch_compact_comments");F.editDialog=null;return F};
_.M(fb,_.x);_.l=fb.prototype;_.l.onShow=function(){_.CJ("cmv",void 0,"wn_comments")};
_.l.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"}}}};
_.l.detached=function(){this.editDialog=null;this.expander.reset()};
_.l.updateBackgroundColor=function(){if(this.backgroundColor){var F={"--ytd-comment-paid-background-color":_.KG(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.ws(this.hostElement,F)}else _.ws(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.l.resetExpander=function(){var F;(F=this.expander)==null||F.reset()};
_.l.openEditDialog=function(F){F.dialog&&(this.editDialog=F.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.l.onYtNavigate=function(F){var q=F.detail.endpoint;if(q=_.n(q,_.gHe)||_.n(q,_.l1O))F.stopPropagation(),this.openEditDialog(q)};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null;_.ws(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.l.onAuthorThumbnailClicked=function(){_.E("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.l.onYtCommentboxResize=function(F){var q;(F==null?0:(q=F.detail)==null?0:q.height)&&_.ws(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":F.detail.height+"px"})};
_.JJ.Object.defineProperties(fb.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var F,q=(F=this.commentEntity)==null?void 0:F.author;return q&&(q.isCreator||q.isVerified||q.isArtist)?{renderer:{authorEndpoint:q.channelPageEndpoint?_.n(q.channelPageEndpoint,_.Uk):_.n(q.channelCommand,_.Uk),authorText:{runs:[{text:q.displayName}]},color:q.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:q.isArtist?{iconType:"AUDIO_BADGE"}:
q.isVerified?{iconType:q.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:q.isArtist||q.isVerified?q.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var F,q=(F=this.commentEntity)==null?void 0:F.author;return q!=null&&q.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:q.sponsorBadgeUrl}]},tooltip:q.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var F;return _.n((F=this.commentSurfaceEntity)==null?void 0:F.pdgCommentChip,_.Hu1)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var F;return this.voiceReplyContainerViewModel&&((F=this.voiceReplyContainerViewModel)==null?void 0:F.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var F;return _.n((F=this.commentSurfaceEntity)==null?void 0:F.voiceReplyContainerViewModel,UzJ)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var F;return this.voiceReplyContainerViewModel&&(F=this.voiceReplyContainerViewModel)!=null&&F.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var F,q;return(q=(F=this.commentSurfaceEntity)==null?void 0:F.commentBackgroundColor)!=null?q:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.E("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var F,q;return(((F=this.commentEntity)==null?void 0:(q=F.properties)==null?void 0:q.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var F,q;if(_.E("enable_profile_cards_on_comments")&&((F=this.commentEntity)==null?0:(q=F.author)==null?0:q.profileCardEndpoint)&&this.viewModel.allowProfileCard){var t,u;return _.n((t=this.commentEntity)==null?void 0:(u=t.author)==null?void 0:u.profileCardEndpoint,_.Uk)}var J,g;return _.n((J=this.commentEntity)==null?void 0:(g=J.avatar)==null?void 0:g.endpoint,_.Uk)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var F,q;if(_.E("enable_profile_cards_on_comments")&&((F=this.commentEntity)==null?0:(q=F.author)==null?0:q.channelPageEndpoint)){var t,u;return _.n((t=this.commentEntity)==null?void 0:(u=t.author)==null?void 0:u.channelPageEndpoint,_.Uk)}var J,g;return _.n((J=this.commentEntity)==null?void 0:(g=J.avatar)==null?void 0:g.endpoint,_.Uk)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u,J=(F=this.commentEntity)==null?void 0:(q=F.avatar)==null?void 0:(t=q.image)==null?void 0:(u=t.sources)==null?void 0:u[0];return J?{thumbnails:[{url:J.url,width:J.width,height:J.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.commentEntity)==null?0:(q=F.author)==null?0:q.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.commentEntity)==null?void 0:(q=F.author)==null?void 0:q.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.commentEntity)==null?void 0:(q=F.properties)==null?void 0:q.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var F;return _.n((F=this.commentSurfaceEntity)==null?void 0:F.publishedTimeCommand,_.Uk)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var F,q;if(((F=this.commentEntity)==null?0:F.translatedContent)&&((q=this.translateButtonState)==null?void 0:q.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var t;if((t=this.voiceReplyContainerViewModel)==null?0:t.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var u,J;return((u=this.commentEntity)==null?void 0:(J=u.properties)==null?void 0:J.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.commentSharedEntity)==null?void 0:(q=F.strings)==null?void 0:q.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.commentSharedEntity)==null?void 0:(q=F.strings)==null?void 0:q.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.commentEntity)==null||!F.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var F,q,t=(q=_.n((F=this.viewModel)==null?void 0:F.translateButton,Vu1))!=null?q:{},u,J,g,Y,Q,e,r,N,w,k,z;return Object.assign({},t,{untoggledStateData:Object.assign({},t.untoggledStateData,{buttonText:(u=this.commentEntity)==null?void 0:(J=u.translateData)==null?void 0:J.text}),togglingStateData:Object.assign({},t.togglingStateData,{buttonText:(g=this.commentSharedEntity)==null?
void 0:(Y=g.strings)==null?void 0:Y.translatingText}),toggledStateData:Object.assign({},t.toggledStateData,{buttonText:(Q=this.commentSharedEntity)==null?void 0:(e=Q.strings)==null?void 0:e.seeOriginalText}),transitionCommand:((r=this.commentEntity)==null?0:r.translatedContent)?void 0:_.n((N=this.commentEntity)==null?void 0:(w=N.translateData)==null?void 0:w.translateComment,_.Uk),triStateKey:(k=this.commentEntity)==null?void 0:(z=k.properties)==null?void 0:z.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((q=_.n(_.n((F=this.toolbarSurface)==null?void 0:F.menuCommand,_.Uk),XXL))==null?void 0:(t=q.menu)==null?void 0:t.menuRenderer)||null}}});
fb.prototype.onYtCommentboxResize=fb.prototype.onYtCommentboxResize;fb.prototype.onYtCommentboxDismiss=fb.prototype.onYtCommentboxDismiss;fb.prototype.onYtNavigate=fb.prototype.onYtNavigate;fb.prototype.resetExpander=fb.prototype.resetExpander;fb.prototype.updateBackgroundColor=fb.prototype.updateBackgroundColor;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],fb.prototype,"ytdReduxBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],fb.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.C([_.Ms("#author-thumbnail > button"),_.V("design:type",HTMLElement)],fb.prototype,"authorThumbnailAnchor",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("viewModel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fb.prototype,"linked",null);
_.C([_.W("viewModel","linked"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"linkedCommentBadge",null);_.C([_.O({reflectToAttribute:!0}),_.W("viewModel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fb.prototype,"pinned",null);_.C([_.W("viewModel","pinned"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"pinnedCommentBadge",null);
_.C([_.W("commentEntity","commentSharedEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"authorCommentBadge",null);_.C([_.O({reflectToAttribute:!0}),_.W("authorCommentBadge"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"hasAuthorBadge",null);_.C([_.W("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"sponsorCommentBadge",null);
_.C([_.O({reflectToAttribute:!0}),_.W("sponsorCommentBadge"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"hasSponsorBadge",null);_.C([_.W("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"pdgCommentChipRenderer",null);_.C([_.O({reflectToAttribute:!0}),_.W("voiceReplyContainerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"hasVoiceReply",null);
_.C([_.W("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"voiceReplyContainerViewModel",null);_.C([_.W("voiceReplyContainerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"voiceReplyUnavailableText",null);_.C([_.O(),_.V("design:type",Object)],fb.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"viewModel",null);
_.C([_.O({selector:function(F,q){return _.iC(F.entities,"commentSharedEntityPayload",q)},
selectorArgs:["viewModel.sharedKey"]}),_.V("design:type",Object)],fb.prototype,"commentSharedEntity",void 0);_.C([_.O({selector:function(F,q){return _.iC(F.entities,"commentEntityPayload",q)},
selectorArgs:["viewModel.commentKey"]}),_.V("design:type",Object)],fb.prototype,"commentEntity",void 0);_.C([_.O({selector:function(F,q){return _.iC(F.entities,"commentSurfaceEntityPayload",q)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.V("design:type",Object)],fb.prototype,"commentSurfaceEntity",void 0);_.C([_.O({selector:fKA,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.V("design:type",Object)],fb.prototype,"toolbarSurface",void 0);_.C([_.O({selector:aKW,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.V("design:type",Object)],fb.prototype,"translateButtonState",void 0);
_.C([_.W("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"backgroundColor",null);_.C([_.O({reflectToAttribute:!0}),_.W("viewModel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fb.prototype,"optimalReadingWidthComments",null);_.C([_.Ms("ytd-expander"),_.V("design:type",Object)],fb.prototype,"expander",void 0);
_.C([_.za("backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fb.prototype,"updateBackgroundColor",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],fb.prototype,"useSmallAvatars",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],fb.prototype,"webWatchCompactComments",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"isReply",null);
_.C([_.W("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"authorThumbnailEndpoint",null);_.C([_.W("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"authorNameEndpoint",null);_.C([_.W("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"authorThumbnail",null);_.C([_.W("commentEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],fb.prototype,"authorTextClass",null);
_.C([_.W("commentEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],fb.prototype,"authorChannelName",null);_.C([_.W("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"publishedTime",null);_.C([_.W("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"publishedTimeCommand",null);
_.C([_.W("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"contentText",null);_.C([_.za("contentText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fb.prototype,"resetExpander",null);_.C([_.W("commentEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fb.prototype,"shouldShowReadMoreInitially",null);
_.C([_.W("commentSharedEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],fb.prototype,"expandText",null);_.C([_.W("commentSharedEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],fb.prototype,"collapseText",null);_.C([_.W("commentEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fb.prototype,"shouldShowTranslateButton",null);
_.C([_.W("commentEntity","commentSharedEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"translateButton",null);_.C([_.W("toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],fb.prototype,"overflowMenuRenderer",null);_.C([_.O(),_.V("design:type",Object)],fb.prototype,"editDialog",void 0);_.C([_.Ms("ytd-comment-dialog-renderer"),_.V("design:type",Object)],fb.prototype,"editCommentDialogContainer",void 0);
_.C([_.Ms("ytd-comment-reply-dialog-renderer"),_.V("design:type",Object)],fb.prototype,"editReplyDialogContainer",void 0);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],fb.prototype,"onYtNavigate",null);_.C([_.EB("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],fb.prototype,"onYtCommentboxDismiss",null);
_.C([_.EB("yt-commentbox-resize"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],fb.prototype,"onYtCommentboxResize",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-comment-view-model"})],fb);
_.b(fb,"ytd-comment-view-model",function(){if(Lkj!==void 0)return Lkj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Lkj=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var aH=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("web_modern_buttons");F.commentThreadingEnabled=_.E("web_delhi_comment_threads");F.isWatchGrid=_.E("kevlar_watch_grid");F.buttonOverrides=F.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};F.JSC$15873_spinnerEl=null;return F};
_.M(aH,_.x);_.l=aH.prototype;_.l.configureContinuationPathMap=function(){return _.E("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.l.shouldShowExpandedThreads=function(F,q){return this.commentThreadingEnabled&&!q&&(F==null?void 0:F.length)>0};
_.l.shouldShowCollapsedThreads=function(F,q){return this.commentThreadingEnabled&&q&&F};
_.l.computeThreadRenderer=function(F){return _.n(F,HQv)};
_.l.computeIsContinuationItem=function(F){return!!this.computeContinuationItemRenderer(F)};
_.l.computeButtonRenderer=function(F){return _.n(F,_.th)};
_.l.computeContinuationItemRenderer=function(F){return _.n(F,_.F9)};
_.l.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]]"}}}}}};
_.l.attached=function(){this.isShowRepliesVisible=!0};
_.l.dataChanged=function(){var F=this.expanderContents;F&&(F.hidden=!0);this.isLoading=!1};
_.l.endsInContinuation=function(F){return!!F&&F.length>0&&!!this.computeContinuationItemRenderer(F[F.length-1])};
_.l.computeShouldShowHideRepliesButton=function(F,q){return!F&&q};
_.l.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.l.isLoadingChanged=function(){this.isLoading&&!this.JSC$15873_spinnerEl&&(this.JSC$15873_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ep(this.expanderContents).appendChild(this.JSC$15873_spinnerEl));this.JSC$15873_spinnerEl&&(this.JSC$15873_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var F;(F=this.contents)==null||F.classList.remove("reloading")}};
_.l.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var F=_.n(this.data.viewReplies,_.th);F&&this.ytRendererBehavior.logExplicitClick(F);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.l.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var F=_.n(this.data.hideReplies,_.th);F&&this.ytRendererBehavior.logExplicitClick(F);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.l.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var F=_.ep(this.hostElement).querySelector("#expander-contents");F&&(F.hidden=this.isShowRepliesVisible)}};
_.l.computeAlign=function(){if(this.modern){var F;return!((F=this.data)==null?0:F.viewRepliesCreatorThumbnail)}};
_.JJ.Object.defineProperties(aH.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var F,q;return this.endsInContinuation((F=this.data)==null?void 0:F.contents)||this.commentThreadingEnabled&&this.endsInContinuation((q=this.data)==null?void 0:q.subThreads)}}});
aH.prototype.isShowMoreChanged=aH.prototype.isShowMoreChanged;aH.prototype.isLoadingChanged=aH.prototype.isLoadingChanged;aH.prototype.triggerFirstContinuation=aH.prototype.triggerFirstContinuation;aH.prototype.dataChanged=aH.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.Qd),_.V("design:type",Object)],aH.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],aH.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aH.prototype,"modern",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aH.prototype,"commentThreadingEnabled",void 0);_.C([_.O(),_.V("design:type",Boolean)],aH.prototype,"collapsed",void 0);
_.C([_.O(),_.V("design:type",Function)],aH.prototype,"toggleCollapsed",void 0);_.C([_.O(),_.V("design:type",Boolean)],aH.prototype,"isLoading",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],aH.prototype,"isShowRepliesVisible",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],aH.prototype,"useNewFormatting",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aH.prototype,"isWatchGrid",void 0);_.C([_.O(),_.V("design:type",Object)],aH.prototype,"buttonOverrides",void 0);
_.C([_.Ms("#expander-contents"),_.V("design:type",HTMLElement)],aH.prototype,"expanderContents",void 0);_.C([_.Ms("ytd-continuation-item-renderer"),_.V("design:type",Object)],aH.prototype,"continuationItemRenderer",void 0);_.C([_.Ms("#contents"),_.V("design:type",HTMLElement)],aH.prototype,"contents",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aH.prototype,"dataChanged",null);
_.C([_.W("data.contents","data.subThreads.*"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],aH.prototype,"hasContinuation",null);_.C([_.EB("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aH.prototype,"triggerFirstContinuation",null);_.C([_.za("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aH.prototype,"isLoadingChanged",null);
_.C([_.za("isShowRepliesVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aH.prototype,"isShowMoreChanged",null);_.C([_.m({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],aH);
_.b(aH,"ytd-comment-replies-renderer",function(){if(Vor!==void 0)return Vor;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n          <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n          </div>\n          <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n        </template>\n        <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Vor=F},{mode:1});var cAC;var jk=function(){var F=_.x.apply(this,arguments)||this;F.isOpen=!1;F.commentDialog=null;F.useSmallAvatars=_.E("small_avatars_for_comments");F.useSmallAvatarsEngagementPanelOnly=_.E("small_avatars_for_comments_ep");F.placeholderFocusListener=null;F.hasOpenedDialog=!1;F.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return F};
_.M(jk,_.x);_.l=jk.prototype;_.l.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]]"}}}}}};
_.l.ready=function(){var F=this,q=_.ep(this.hostElement).querySelector("#placeholder-area"),t=_.ep(this.hostElement).querySelector("#simplebox-placeholder"),u=function(J){J.stopPropagation();J instanceof KeyboardEvent&&J.type==="keypress"&&J.keyCode!==13&&J.keyCode!==32||F.openDialog()};
this.placeholderFocusListener=u;t.addEventListener("focus",this.placeholderFocusListener);q.addEventListener("tap",u);q.addEventListener("keypress",u)};
_.l.maybeRemoveFocusEventListener=function(){var F;(F=this.data)!=null&&F.prepareAccountEndpoint&&!_.E("web_comments_simplebox_modal_focus_on_tap_ks")&&(F=_.ep(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(F.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.l.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.l.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.E("web_comment_simplebox_resolve_polymer_command_ks")?_.oc.instance.resolveCommand(this.data.prepareAccountEndpoint):_.n9(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var F=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);F&&this.ytdOpenPopupBehavior.openPopup(F);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.ep(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.l.onYtCommentboxDismiss=function(F){F.stopPropagation();this.isOpen=!1};
_.l.onCreateCommentAction=function(F){this.get("createCommentAction.contents",F)&&(this.isOpen=!1)};
_.l.computeCommentDialog=function(F){return{placeholderText:F.placeholderText,authorThumbnail:F.authorThumbnail,submitButton:F.submitButton,imageButton:F.imageButton,cancelButton:F.cancelButton,emojiButton:F.emojiButton,emojis:F.emojis,emojiPicker:F.emojiPicker,aadcGuidelinesStateEntityKey:F.aadcGuidelinesStateEntityKey,openAadcDialog:F.openAadcDialog,unicodeEmojisUrl:F.unicodeEmojisUrl}};
_.l.onHideIdentityChip=function(F){_.n(F,OQj)&&this.set("data.placeholderText",_.n(F,OQj).placeholderText)};
jk.prototype.onYtCommentboxDismiss=jk.prototype.onYtCommentboxDismiss;jk.prototype.dataChanged=jk.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],jk.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],jk.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],jk.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],jk.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],jk.prototype,"isOpen",void 0);_.C([_.O(),_.V("design:type",Object)],jk.prototype,"commentDialog",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],jk.prototype,"engagementPanel",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jk.prototype,"useSmallAvatars",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jk.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],jk.prototype,"enableCreationBox",void 0);_.C([_.O(),_.V("design:type",Boolean)],jk.prototype,"showCreateDialog",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jk.prototype,"dataChanged",null);_.C([_.EB("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],jk.prototype,"onYtCommentboxDismiss",null);_.C([_.m({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],jk);
_.b(jk,"ytd-comment-simplebox-renderer",function(){if(cAC!==void 0)return cAC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return cAC=F},{mode:1});var F5E;_.mo("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var cJ=function(){var F=_.x.apply(this,arguments)||this;F.addHoverEffect=_.E("swatcheroo_comments_hover_effect");F.useSmallAvatars=_.E("small_avatars_for_comments");F.threadHovered=!1;F.collapsed=!1;F.removed=!1;F.actionMap=F.configureActionMap();F.toggleCollapsed=function(){F.collapsed=!F.collapsed;F.collapsed&&_.E("web_comment_threading_scroll_on_collapse")&&_.ec(F.hostElement,"yt-scroll-to-watch-element",[F.commentElement])};
return F};
_.M(cJ,_.x);_.l=cJ.prototype;_.l.configureActionMap=function(){return _.E("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.l.createCommentReplyAction=function(F){F=_.n(F,Dzw);if(F!=null&&F.contents){var q=F.replyToCommentId,t=F.parentCommentId,u,J=(u=this.commentViewModel)==null?void 0:u.commentId;(J===q||J===t&&!q)&&this.attachReply(F.contents)}};
_.l.attachReply=function(F){var q;((q=this.data)==null?0:q.replies)?(q=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+q+".continuationItemRenderer")?this.splice("data.replies.commentRepliesRenderer.subThreads",q,0,F):this.push("data.replies.commentRepliesRenderer.subThreads",F)):this.set("data.replies",{commentRepliesRenderer:{subThreads:[F]}})};
_.l.removeCommentAction=function(F){F=_.n(F,Acf);var q=F==null?void 0:F.commentId,t;q&&((t=this.commentViewModel)==null?void 0:t.commentId)===q&&this.maybeRemoveComment(F.actionResult)};
_.l.banAuthorAction=function(F){F=_.n(F,TUC);var q=F==null?void 0:F.commentId,t;q&&((t=this.commentViewModel)==null?void 0:t.commentId)===q&&this.maybeRemoveComment(F.actionResult)};
_.l.hideReportedCommentAction=function(F){F=_.n(F,BUx);var q=F==null?void 0:F.commentId,t;q&&((t=this.commentViewModel)==null?void 0:t.commentId)===q&&this.maybeRemoveComment(F.actionResult)};
_.l.maybeRemoveComment=function(F){F&&F.status==="STATUS_SUCCEEDED"&&(this.feedbackText=F.feedbackText||_.lC("Comment removed"),this.removed=!0)};
_.l.onTap=function(F){if(this.addHoverEffect&&!this.engagementPanel&&!_.tC(_.tY(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var q;((q=window.getSelection())==null?0:q.toString().length)||_.n9({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.l.attached=function(){var F=this,q;(q=this.commentThreadHitbox)==null||q.addEventListener("mouseover",function(){F.threadHovered=!0});
var t;(t=this.commentThreadHitbox)==null||t.addEventListener("mouseout",function(){F.threadHovered=!1});
var u;(u=this.commentThreadHitbox)==null||u.addEventListener("click",function(){F.maybeToggleCollapsed()})};
_.l.maybeToggleCollapsed=function(){var F,q,t,u=(F=this.data)==null?void 0:(q=F.replies)==null?void 0:(t=q.commentRepliesRenderer)==null?void 0:t.subThreads;u&&(u.length===1&&_.n(u[0],_.F9)||this.toggleCollapsed())};
_.JJ.Object.defineProperties(cJ.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)!=null&&F.commentViewModel)return _.n(this.data.commentViewModel,dzE)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return _.E("web_delhi_comment_threads")&&!!((F=this.data)==null?0:(q=F.replies)==null?0:(t=q.commentRepliesRenderer)==null?0:t.subThreads)}}});
cJ.prototype.onTap=cJ.prototype.onTap;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],cJ.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],cJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],cJ.prototype,"addHoverEffect",void 0);
_.C([_.O(),_.V("design:type",Object)],cJ.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],cJ.prototype,"useSmallAvatars",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],cJ.prototype,"isSubThread",void 0);_.C([_.Ms(".thread-hitbox"),_.V("design:type",HTMLElement)],cJ.prototype,"commentThreadHitbox",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],cJ.prototype,"threadHovered",void 0);
_.C([_.Ms("#comment"),_.V("design:type",HTMLElement)],cJ.prototype,"commentElement",void 0);_.C([_.O(),_.V("design:type",Object)],cJ.prototype,"collapsed",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],cJ.prototype,"removed",void 0);_.C([_.O(),_.V("design:type",Object)],cJ.prototype,"feedbackText",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],cJ.prototype,"commentViewModel",null);
_.C([_.W("data.replies"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],cJ.prototype,"hasSubThreading",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],cJ.prototype,"engagementPanel",void 0);_.C([_.EB("tap"),_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],cJ.prototype,"onTap",null);_.C([_.m({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],cJ);
_.b(cJ,"ytd-comment-thread-renderer",function(){if(F5E!==void 0)return F5E;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return F5E=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var qgv;var F8=function(){var F=_.x.apply(this,arguments)||this;F.modernTypography=_.E("web_modern_typography");F.compactHeader=_.E("web_watch_compact_comments_header");F.hidePanelButton=!1;F.isPostSchedulingEnabled=_.E("enable_post_scheduling");F.hasFinishedStamping=!1;F.JSC$15896_handleOpenPostCommentDialogActionAfterStamp=!1;F.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return F};
_.M(F8,_.x);_.l=F8.prototype;
_.l.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"}}}};
_.l.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.l.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15896_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.l.onYtServiceRequestSent=function(F,q){if(!_.E("kevlar_command_handler")&&q.actions)for(F=0;F<q.actions.length;F++){var t=q.actions[F];_.n(t,c$e)&&_.ep(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.n(t,c$e))}};
_.l.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var F;if(this.getPrefilledBackstagePostDialog((F=this.data)==null?void 0:F.actions)){_.ep(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var q=_.ep(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;q&&_.tJ(this,function(){q.focus();q.openDialog&&q.openDialog()})}}else this.hasActionsChange=!0};
_.l.computeIsBackstage=function(F){return F};
_.l.onYtCommentboxDismiss=function(){_.ep(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.l.removePrefilledDialog=function(F){if(F==null?0:F.actions){for(var q=F.actions.length-1;q>=0;q--){var t=void 0;((t=_.n(F.actions[q],J1f))==null?0:t.dialog)&&delete F.actions[q]}this.set("data",void 0);this.set("data",F)}};
_.l.getPrefilledBackstagePostDialog=function(F){if(F)for(var q=0;q<F.length;q++){var t=F[q],u=void 0;if((u=_.n(t,J1f))==null?0:u.dialog)return _.n(t,J1f).dialog}return null};
_.l.computeBackstagePostDialog=function(F){return F&&(this.getPrefilledBackstagePostDialog(F.actions)||F.createRenderer)};
_.l.dataChanged=function(){if(this.data){var F=this.data.customEmojis,q=this.data.unicodeEmojisUrl;_.p7.clear();q&&_.jWr(_.p7,q);F&&_.p7.load(F)}};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){var F=_.ep(this.hostElement).querySelector("ytd-comment-simplebox-renderer");F?F.openDialog():this.JSC$15896_handleOpenPostCommentDialogActionAfterStamp=!0};
_.JJ.Object.defineProperties(F8.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.E("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u,J,g,Y;return!this.hidePanelButton&&_.E("kevlar_watch_comments_panel_button")&&((Y=_.n((F=this.data)==null?void 0:(q=F.sortMenu)==null?void 0:(t=q.sortFilterSubMenuRenderer)==null?void 0:(u=t.subMenuItems)==null?void 0:(J=u[0])==null?void 0:(g=J.serviceEndpoint)==null?void 0:g.commandMetadata,_.EH))==null?void 0:Y.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.oD("MINIPLAYER_EXPAND_LABEL"),text:_.FK(_.oD("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
F8.prototype.dataChanged=F8.prototype.dataChanged;F8.prototype.onYtCommentboxDismiss=F8.prototype.onYtCommentboxDismiss;F8.prototype.observePrefilledBackstagePostDialog=F8.prototype.observePrefilledBackstagePostDialog;F8.prototype.onYtServiceRequestSent=F8.prototype.onYtServiceRequestSent;F8.prototype.onStampFinished=F8.prototype.onStampFinished;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],F8.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],F8.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],F8.prototype,"modernTypography",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],F8.prototype,"compactHeader",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],F8.prototype,"engagementPanel",void 0);_.C([_.O(),_.V("design:type",Object)],F8.prototype,"hidePanelButton",void 0);_.C([_.O({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.V("design:type",Boolean)],F8.prototype,"isBackstage",void 0);_.C([_.O({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.V("design:type",Object)],F8.prototype,"backstagePostDialog",void 0);
_.C([_.O(),_.V("design:type",Object)],F8.prototype,"isPostSchedulingEnabled",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data","showCommentsPanelButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],F8.prototype,"useSpaceBetween",null);_.C([_.O({reflectToAttribute:!0}),_.W("data","hidePanelButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],F8.prototype,"showCommentsPanelButton",null);
_.C([_.W("data","showCommentsPanelButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],F8.prototype,"commentsPanelButtonData",null);_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],F8.prototype,"onStampFinished",null);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],F8.prototype,"onYtServiceRequestSent",null);
_.C([_.za("data.actions"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],F8.prototype,"observePrefilledBackstagePostDialog",null);_.C([_.EB("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],F8.prototype,"onYtCommentboxDismiss",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],F8.prototype,"dataChanged",null);
_.C([_.m({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],F8);
_.b(F8,"ytd-comments-header-renderer",function(){if(qgv!==void 0)return qgv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return qgv=F},{mode:1});var t_L;var qP=function(){return _.x.apply(this,arguments)||this};
_.M(qP,_.x);_.C([_.O(),_.V("design:type",Object)],qP.prototype,"data",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.C([_.m({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],qP);
_.b(qP,"ytd-destination-button-renderer",function(){if(t_L!==void 0)return t_L;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return t_L=F},{mode:1});var uxj;var t4=function(){var F=_.x.apply(this,arguments)||this;F.isRichGrid=!1;F.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};F.modernTypography=_.E("web_modern_typography");return F};
_.M(t4,_.x);_.l=t4.prototype;_.l.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.l.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.l.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.l.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var F;if((F=this.data)==null||!F.isExpanded){F=this.hostElement.clientWidth;var q;if(F&&(q=this.data)!=null&&q.destinationButtons){q=Math.floor((F+4)/214);F=this.data.destinationButtons.length;var t=Math.ceil(F/q);this.fullyVisibleRows=F%q===1&&t===2?1:Math.min(t,2);this.isShowMoreVisible=this.fullyVisibleRows<t}}}};
_.l.updateRichGridDestinationButtonsVisibility=function(){var F,q;if(this.isRichGrid&&((F=this.data)==null||!F.isExpanded)&&(q=this.data)!=null&&q.destinationButtons){F=this.richGridItemsPerRow+1;q=this.data.destinationButtons.length;var t=Math.ceil(q/F);this.fullyVisibleRows=q%F===1&&t===2?1:Math.min(t,2);this.isShowMoreVisible=this.fullyVisibleRows<t}};
_.l.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
t4.prototype.updateRichGridDestinationButtonsVisibility=t4.prototype.updateRichGridDestinationButtonsVisibility;_.C([_.O(),_.V("design:type",Object)],t4.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Number)],t4.prototype,"fullyVisibleRows",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],t4.prototype,"isShowMoreVisible",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],t4.prototype,"isRichGrid",void 0);
_.C([_.O({selector:_.bC,value:0}),_.V("design:type",Number)],t4.prototype,"richGridItemsPerRow",void 0);_.C([_.O(),_.V("design:type",Object)],t4.prototype,"gridStateActionMap",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],t4.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],t4.prototype,"ytdReduxBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],t4.prototype,"modernTypography",void 0);_.C([_.za("data","richGridItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t4.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.C([_.m({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],t4);
_.b(t4,"ytd-destination-shelf-renderer",function(){if(uxj!==void 0)return uxj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return uxj=F},{mode:1});var J6x;var u8=function(){return _.x.apply(this,arguments)||this};
_.M(u8,_.x);u8.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],u8.prototype,"data",void 0);_.C([_.m({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],u8);
_.b(u8,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(J6x!==void 0)return J6x;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return J6x=F},{mode:1});var sUr;var J4=function(){var F=_.x.apply(this,arguments)||this;F.disableAnimation=!1;F.isSlimlineSurvey=!1;F.isSlimlineSurveyFollowUp=!1;F.isShortsStyle=!1;return F};
_.M(J4,_.x);J4.prototype.onTap=function(F){F.preventDefault();this.data&&_.Q0(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.JJ.Object.defineProperties(J4.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u,J;return((F=this.data)==null?0:F.checked)?(q=this.data)==null?void 0:(t=q.onStateIcon)==null?void 0:t.iconType:(u=this.data)==null?void 0:(J=u.defaultStateIcon)==null?void 0:J.iconType}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],J4.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],J4.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],J4.prototype,"disableAnimation",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],J4.prototype,"isSlimlineSurvey",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],J4.prototype,"isSlimlineSurveyFollowUp",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],J4.prototype,"isShortsStyle",void 0);_.C([_.W("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],J4.prototype,"isAnimatedIcon",null);
_.C([_.W("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.V("design:type",Number),_.V("design:paramtypes",[])],J4.prototype,"iconSize",null);_.C([_.W("isShortsStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],J4.prototype,"isDarkTheme",null);_.C([_.W("data.checked"),_.V("design:type",Object),_.V("design:paramtypes",[])],J4.prototype,"icon",null);_.C([_.m({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],J4);
_.b(J4,"ytd-rating-survey-option-renderer",function(){if(sUr!==void 0)return sUr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return sUr=F},{mode:2});var gaO;var sE=function(){var F=_.x.apply(this,arguments)||this;F.firstResponseText=null;F.lastResponseText=null;F.selectedNonStarOption=null;F.hideOptions=!1;F.hideUndoButton=!0;F.disableAnimation=!1;F.showResponseRangeText=!1;F.selectedRatingIndex=-1;F.isSlimlineSurvey=!1;F.isSlimlineSurveyFollowUp=!1;F.isShortsStyle=!1;F.slimlineSurveyRatingSelectedIndex=-1;return F};
_.M(sE,_.x);_.l=sE.prototype;_.l.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.l.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.l.onOptionChange=function(F,q){var t=this;F=q.onStateIcon&&q.defaultStateIcon&&q.onStateIcon.iconType===q.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(Y,Q){Y.responseText===q.responseText?t.isSlimlineSurvey?(t.selectedRatingIndex=Q,t.ytdReduxBehavior.dispatch(B_j(Q))):(t.setSurveyOptionValue(Q,!0,"checked"),t.setSurveyOptionValue(Q,!0,"selected")):(t.setSurveyOptionValue(Q,!1,"checked"),t.setSurveyOptionValue(Q,
!1,"selected"))});
else if(F)this.selectedNonStarOption=q,this.hideOptions=!0;else{var u=this.ytRendererBehavior.getSimpleString(q.responseText),J=!0;this.getOptionRenderers().forEach(function(Y,Q){t.setSurveyOptionValue(Q,J,"checked");t.setSurveyOptionValue(Q,!1,"selected");t.ytRendererBehavior.getSimpleString(Y.responseText)===u&&(J=!1,t.setSurveyOptionValue(Q,!0,"selected"))})}F=q.responseEndpoint;
var g;q.followUpCommand&&(g=_.n(q.followUpCommand,Jd1));this.isSlimlineSurvey?(this.resetComponent(),_.ec(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.ec(this.hostElement,"ytd-inline-survey-rating-select-action",[F,g])};
_.l.showSelectedOption=function(){var F=this;_.mI.addJob(function(){var q=F.getOptionRenderers()[F.slimlineSurveyRatingSelectedIndex];F.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),q)},8,100)};
_.l.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(F){var q;return(q=_.n(F,gce))!=null?q:{}}):[]};
_.l.onUndoClick=function(){this.resetComponent();_.ec(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.l.setSurveyOptionValue=function(F,q,t){this.notifyPath("data.ratings."+F+".ratingSurveyOptionRenderer."+t);this.set("data.ratings."+F+".ratingSurveyOptionRenderer."+t,q)};
_.l.resetComponent=function(){var F=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var q=this.getOptionRenderers(),t,u;this.firstResponseText=(u=(t=q[0])==null?void 0:t.responseText)!=null?u:null;var J,g;this.lastResponseText=(g=(J=q[q.length-1])==null?void 0:J.responseText)!=null?g:null;q.forEach(function(Y,Q){F.setSurveyOptionValue(Q,!1,"checked");F.setSurveyOptionValue(Q,!1,"selected")})};
_.JJ.Object.defineProperties(sE.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
sE.prototype.onOptionChange=sE.prototype.onOptionChange;sE.prototype.dataChanged=sE.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],sE.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],sE.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],sE.prototype,"firstResponseText",void 0);_.C([_.O(),_.V("design:type",Object)],sE.prototype,"lastResponseText",void 0);_.C([_.O(),_.V("design:type",Object)],sE.prototype,"selectedNonStarOption",void 0);_.C([_.O(),_.V("design:type",Object)],sE.prototype,"hideOptions",void 0);_.C([_.O(),_.V("design:type",Object)],sE.prototype,"hideUndoButton",void 0);_.C([_.O(),_.V("design:type",Object)],sE.prototype,"disableAnimation",void 0);
_.C([_.O(),_.V("design:type",Object)],sE.prototype,"showResponseRangeText",void 0);_.C([_.O(),_.V("design:type",Object)],sE.prototype,"selectedRatingIndex",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],sE.prototype,"isSlimlineSurvey",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],sE.prototype,"isSlimlineSurveyFollowUp",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],sE.prototype,"isShortsStyle",void 0);_.C([_.O({selector:function(F){return F.ui.slimlineSurveyRatingSelectedIndex}}),
_.V("design:type",Object)],sE.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.C([_.W("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],sE.prototype,"isSingleSelect",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sE.prototype,"dataChanged",null);
_.C([_.EB("ytd-rating-survey-option-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],sE.prototype,"onOptionChange",null);_.C([_.m({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],sE);
_.b(sE,"ytd-rating-survey-renderer",function(){if(gaO!==void 0)return gaO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return gaO=F},{mode:1});var lif;var Xar;var Ygz;var m0o=(Eo.FIRSTDAYOFWEEK+1)%7,pad=function(F,q,t,u){var J="";if(u.selection&&AH$(u.selection))wI(F,u.selection)&&(J+=" selected");else if(u.selection&&vgM(u.selection)){var g=u.selection.selectionState||"START_DATE";wI(F,u.selection.start)&&(J+=" period-start ",g==="START_DATE"&&(J+="selected"));wI(F,u.selection.end)&&(J+=" period-end ",g==="END_DATE"&&(J+="selected"));iB(F,u.selection.start)||iB(u.selection.end,F)||(J+=" highlighted")}if(iB(q,u.start)||iB(u.end,q))J+=" disabled";u.circleToday&&
wI(q,t)&&(J+=" today");return J};var gr=function(){return _.x.apply(this,arguments)||this};
_.M(gr,_.x);_.l=gr.prototype;_.l.attached=function(){var F=this;_.tJ(this,function(){F.JSC$15930_calendarMain.scrollHeight>0&&(F.calendarConfig.selection?F.scrollToDate(IZt(F.calendarConfig.selection)):F.scrollToDate(F.calendarConfig.end))})};
_.l.updateSelection=function(F){F=$0t(Object.assign({},this.calendarConfig,{selection:F}),pad);this.splice.apply(this,["renderData.months",0,F.length].concat(_.mZ(F)))};
_.l.scrollToDate=function(F){this.renderData&&(F=bko(F,this.renderData),F!==void 0&&this.JSC$15930_calendarMain.scrollToIndex(F))};
_.l.scrollToNextMonth=function(){this.JSC$15930_calendarMain.scrollToIndex(this.JSC$15930_calendarMain.firstVisibleIndex+1)};
_.l.scrollToPrevMonth=function(){this.JSC$15930_calendarMain.firstVisibleIndex===0&&this.JSC$15930_calendarMain.scrollTo(0,0);this.JSC$15930_calendarMain.scrollToIndex(this.JSC$15930_calendarMain.firstVisibleIndex-1)};
_.l.handleDayClick=function(F){_.ec(this.hostElement,"ytd-calendar-date-clicked",[F.model.day.date])};
_.l.handleDayMouseDown=function(F){F.preventDefault();_.ec(this.hostElement,"ytd-calendar-date-mousedown",[F.model.day.date])};
_.l.handleDayMouseUp=function(F){_.ec(this.hostElement,"ytd-calendar-date-mouseup",[F.model.day.date])};
_.l.handleDayMouseEnter=function(F){F.preventDefault();_.ec(this.hostElement,"ytd-calendar-date-mouseenter",[F.model.day.date])};
_.l.handleDayMouseLeave=function(F){_.ec(this.hostElement,"ytd-calendar-date-mouseleave",[F.model.day.date])};
_.JJ.Object.defineProperties(gr.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var F=this.calendarConfig,q=pad;q=q===void 0?pad:q;for(var t=[],u=0;u<7;u++)t.push(Eo.NARROWWEEKDAYS[(u+m0o)%7]);return{months:$0t(F,q),daysOfWeekLabel:t}}}});
_.C([_.O(),_.V("design:type",Object)],gr.prototype,"calendarConfig",void 0);_.C([_.Ms("#calendar-main"),_.V("design:type",Object)],gr.prototype,"JSC$15930_calendarMain",void 0);_.C([_.W("calendarConfig"),_.V("design:type",Object),_.V("design:paramtypes",[])],gr.prototype,"renderData",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],gr);
_.b(gr,"ytd-scrollable-calendar",function(){if(Ygz!==void 0)return Ygz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Ygz=F},{mode:2});var QUf;var eVC;var l8=function(){var F=_.x.apply(this,arguments)||this;F.hideCharCounter=!1;F.hideLabel=!1;F.noLabelFloat=!1;F.autoValidate=!0;F.invalid=!1;F.disabled=!1;F.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return F};
_.M(l8,_.x);_.l=l8.prototype;_.l.reset=function(F){this.value=F&&this.data?this.data.value=F:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.l.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.l.focusTextInput=function(){this.input.focus()};
_.l.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()};
_.l.valueChanged=function(){var F,q;if(((F=this.data)==null?0:F.value)||((q=this.data)==null?void 0:q.value)==="")this.value=this.data.value;else{var t;((t=this.data)==null?void 0:t.value)!==void 0||this.value||(this.value="")}};
_.l.computeLabel=function(F,q){return q?"":_.q1(F)};
_.l.computeAriaLabel=function(F,q){return q?_.q1(F):""};
_.l.computeErrorMessage=function(F,q,t,u){!F&&q?F=t||this.strings.REQUIRED_LABEL:(F=_.q1(u),F=_.p3(F,"&")?"document"in _.uu?$Ae(F):b3d(F):F);return F};
_.l.computeType=function(F){return F==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.l.onTextValueChanged=function(F){this.value=F.detail.value;var q;(q=this.onValueChanged)==null||q.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.l.handleUpdateTextInputFormFieldRendererCommand=function(F){(F=_.n(F,T3L))&&this.data&&this.data.id===F.id&&(F.invalid!==void 0&&(this.invalid=F.invalid),F.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",F.invalidValueErrorMessage))};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("value-changed",this.value))};
_.l.updateInvalidFromBinding=function(F){this.invalid=F.detail.value};
_.JJ.Object.defineProperties(l8.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var F;return!((F=this.data)==null||!F.isMultiline)}}});
l8.prototype.valueChangedForBinding=l8.prototype.valueChangedForBinding;l8.prototype.valueChanged=l8.prototype.valueChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],l8.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],l8.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],l8.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],l8.prototype,"value",void 0);_.C([_.O(),_.V("design:type",String)],l8.prototype,"pattern",void 0);_.C([_.O(),_.V("design:type",String)],l8.prototype,"errorMessage",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],l8.prototype,"componentStyle",void 0);_.C([_.O(),_.V("design:type",Object)],l8.prototype,"hideCharCounter",void 0);
_.C([_.O(),_.V("design:type",Object)],l8.prototype,"hideLabel",void 0);_.C([_.O(),_.V("design:type",Object)],l8.prototype,"noLabelFloat",void 0);_.C([_.O(),_.V("design:type",Function)],l8.prototype,"onValueChanged",void 0);_.C([_.O(),_.V("design:type",Boolean)],l8.prototype,"isMultilineOverride",void 0);_.C([_.O(),_.V("design:type",Object)],l8.prototype,"autoValidate",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],l8.prototype,"invalid",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],l8.prototype,"disabled",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],l8.prototype,"enableOverlayTheme",void 0);_.C([_.O({value:{REQUIRED_LABEL:_.oD("REQUIRED_LABEL",void 0,"Required")}}),_.V("design:type",Object)],l8.prototype,"strings",void 0);_.C([_.Ms("#input"),_.V("design:type",Object)],l8.prototype,"input",void 0);
_.C([_.W("data","isMultilineOverride"),_.V("design:type",Object),_.V("design:paramtypes",[])],l8.prototype,"isMultiline",null);_.C([_.Wh("data.value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l8.prototype,"valueChanged",null);_.C([_.za("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l8.prototype,"valueChangedForBinding",null);_.C([_.Vu({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],l8);
_.b(l8,"yt-text-input-form-field-renderer",function(){if(eVC===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;QUf===void 0&&(QUf=document.createElement("template"));var u=QUf;t.call(q,u.content.cloneNode(!0),F.content.firstChild);eVC=F}F=eVC;return F},{mode:2});var X8=function(){var F=_.x.apply(this,arguments)||this;F.data=void 0;F.selectionState="START_DATE";F.isStartDateInvalid=!1;F.isEndDateInvalid=!1;F.autoapply=!1;F.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return F};
_.M(X8,_.x);_.l=X8.prototype;_.l.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"}}}}};
_.l.focus=function(){this.startDateInput.focus()};
_.l.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:ki(this.data.selection.start),end:ki(this.data.selection.end)})};
_.l.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.l.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Uv(this.selectionState)}};
_.l.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.l.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.l.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.l.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var F=this.calendar.calendarConfig,q=F.end;F=CtC({start:F.start,end:this.endDate||q},this.startDateInput.value||"");this.isStartDateInvalid=!F.isValid;F.isValid&&(F=F.value,this.selection=this.endDate?{start:F,end:this.endDate}:F,this.calendar.scrollToDate(F));this.updateInvalidState()}};
_.l.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var F=this.calendar.calendarConfig,q=F.start;F=CtC({start:this.startDate||q,end:F.end},this.endDateInput.value||"");this.isEndDateInvalid=!F.isValid;F.isValid&&(F=F.value,this.selection={start:this.startDate,end:F},this.calendar.scrollToDate(F));this.updateInvalidState()}};
_.l.handleCalendarDateClicked=function(F){var q=this.selection&&IZt(this.selection),t=this.selection&&Hk_(this.selection);q&&!iB(F,q)&&this.selectionState==="END_DATE"?(this.selection={start:q,end:F},this.selectionState="START_DATE"):(t&&!iB(t,F)?this.selection={start:F,end:t}:this.selection=F,this.selectionState="END_DATE")};
_.l.handleCalendarDateMouseDown=function(F){this.selection&&!AH$(this.selection)&&(this.dragPivot=wI(F,this.selection.start)?this.selection.end:wI(F,this.selection.end)?this.selection.start:F)};
_.l.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.l.handleCalendarDateMouseEnter=function(F){this.dragPivot&&(this.selection={start:function(q,t){return iB(q,t)?q:t}(this.dragPivot,F),
end:function(q,t){return iB(q,t)?t:q}(this.dragPivot,F)},this.dragPivot||(this.selectionState="START_DATE"))};
_.l.handleCalendarDateMouseLeave=function(){};
_.l.handleCalendarSubmitDateRange=function(){this.selection&&!AH$(this.selection)&&_.ec(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.l.updateInvalidState=function(){var F=function(q,t){t?q.setAttribute("invalid",""):q.removeAttribute("invalid")};
F(this.startDateInput,this.isStartDateInvalid);F(this.endDateInput,this.isEndDateInvalid)};
_.l.updateDateStrings=function(){this.selection&&(AH$(this.selection)?x0_(this.selection):(x0_(this.selection.start),x0_(this.selection.end)))};
_.l.updateCalendarSelection=function(F){this.calendar.updateSelection(Object.assign({},F,{selectionState:this.selectionState}))};
_.l.updateIsStartDateInvalidFromBinding=function(F){this.isStartDateInvalid=F.detail.value};
_.l.updateIsEndDateInvalidFromBinding=function(F){this.isEndDateInvalid=F.detail.value};
_.l.updateStartDateStringFromBinding=function(){};
_.l.updateEndDateStringFromBinding=function(){};
_.JJ.Object.defineProperties(X8.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:ki(this.data.dateRangeStart),end:ki(this.data.dateRangeEnd),selection:{start:ki(this.data.selection.start),end:ki(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&IZt(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Hk_(this.selection)}}});
X8.prototype.resetTextboxes=X8.prototype.resetTextboxes;X8.prototype.observeSelection=X8.prototype.observeSelection;X8.prototype.dataChanged=X8.prototype.dataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],X8.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],X8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.Ms("#calendar"),_.V("design:type",Object)],X8.prototype,"calendar",void 0);
_.C([_.Ms("#start-date"),_.V("design:type",Object)],X8.prototype,"startDateInput",void 0);_.C([_.Ms("#end-date"),_.V("design:type",Object)],X8.prototype,"endDateInput",void 0);_.C([_.O(),_.V("design:type",Object)],X8.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],X8.prototype,"selection",void 0);_.C([_.O(),_.V("design:type",String)],X8.prototype,"selectionState",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],X8.prototype,"calendarConfig",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],X8.prototype,"errorMessage",null);_.C([_.W("selection"),_.V("design:type",Object),_.V("design:paramtypes",[])],X8.prototype,"startDate",null);_.C([_.W("selection"),_.V("design:type",Object),_.V("design:paramtypes",[])],X8.prototype,"endDate",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],X8.prototype,"dataChanged",null);
_.C([_.za("selection","selectionState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],X8.prototype,"observeSelection",null);_.C([_.za("selectionState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],X8.prototype,"resetTextboxes",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],X8);
_.b(X8,"ytd-date-period-picker-renderer",function(){if(Xar!==void 0)return Xar;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Xar=F},{mode:1});var Y4=function(){var F=_.x.apply(this,arguments)||this;var q={};F.actionMap=(q["ytd-date-period-picker-apply"]="handleDateRangeUpdated",q);return F};
_.M(Y4,_.x);Y4.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Y4.prototype.handleDateRangeUpdated=function(){};
_.C([_.O(),_.V("design:type",Object)],Y4.prototype,"data",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Y4.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Y4.prototype,"rendererstamperBehavior",void 0);_.C([_.m({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Y4);
_.b(Y4,"ytd-report-history-section-header-renderer",function(){if(lif!==void 0)return lif;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return lif=F},{mode:1});var ZS1;var RVr;var r6v;var pO=function(){return _.x.apply(this,arguments)||this};
_.M(pO,_.x);_.JJ.Object.defineProperties(pO.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?0:(q=F.icon)==null?0:q.iconType)?_.Ek(this.data.icon.iconType):""}}});
_.C([_.O(),_.V("design:type",Object)],pO.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",String),_.V("design:paramtypes",[])],pO.prototype,"icon",null);_.C([_.m({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],pO);
_.b(pO,"ytd-report-history-table-text-cell-renderer",function(){if(r6v!==void 0)return r6v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return r6v=F},{mode:1});var Qf=function(){return _.x.apply(this,arguments)||this};
_.M(Qf,_.x);Qf.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Qf.prototype,"data",void 0);_.C([_.m({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Qf);
_.b(Qf,"ytd-report-history-table-reason-cell-renderer",function(){if(RVr!==void 0)return RVr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return RVr=F},{mode:1});var e4=function(){return _.x.apply(this,arguments)||this};
_.M(e4,_.x);e4.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"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],e4.prototype,"rendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],e4.prototype,"data",void 0);_.C([_.m({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],e4);
_.b(e4,"ytd-report-history-table-cell-renderer",function(){if(ZS1!==void 0)return ZS1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
return ZS1=F},{mode:1});var NHj;var ZT=function(){var F=_.x.apply(this,arguments)||this;F.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return F};
_.M(ZT,_.x);ZT.prototype.onDataChanged=function(){var F;if((F=this.data)==null?0:F.style)this.componentStyle=this.getStyleName(this.data.style)};
ZT.prototype.getCellForColumn=function(F){return this.cells.find(function(q){var t;return((t=_.n(q==null?void 0:q.cell,YYx)||_.n(q==null?void 0:q.cell,XbL))==null?void 0:t.columnId)===F.type})};
ZT.prototype.getClassForColumn=function(F){switch(F){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
ZT.prototype.getStyleName=function(F){switch(F){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.JJ.Object.defineProperties(ZT.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.cells)||[]).map(function(q){return _.n(q,ld1)})}}});
ZT.prototype.onDataChanged=ZT.prototype.onDataChanged;_.C([_.O(),_.V("design:type",Object)],ZT.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Array)],ZT.prototype,"columnRenderData",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],ZT.prototype,"componentStyle",void 0);_.C([_.W("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],ZT.prototype,"cells",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZT.prototype,"onDataChanged",null);_.C([_.m({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],ZT);
_.b(ZT,"ytd-report-history-table-row-renderer",function(){if(NHj!==void 0)return NHj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return NHj=F},{mode:1});var war;var iSE;var d0t={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},VVq={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Rf=function(){return _.x.apply(this,arguments)||this};
_.M(Rf,_.x);Rf.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"}}}}}};
Rf.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.JJ.Object.defineProperties(Rf.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.columns)?BF3(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return hGM(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var F=this.tableSpec,q=d0t;q=q===void 0?VVq:q;q=Kqf(F.columnDimensions,F.columnsToShow||[],q);F=0;q=_.X(q);for(var t=q.next();!t.done;t=q.next())t=t.value,F+=t.minWidth+t.paddingLeft+t.paddingRight;return F}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.C([_.D(_.Qd),_.V("design:type",Object)],Rf.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Rf.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Rf.prototype,"tableSpec",null);_.C([_.W("tableSpec"),_.V("design:type",Array),_.V("design:paramtypes",[])],Rf.prototype,"columnRenderData",null);
_.C([_.W("tableSpec"),_.V("design:type",Number),_.V("design:paramtypes",[])],Rf.prototype,"totalMinWidth",null);_.C([_.W("totalMinWidth"),_.V("design:type",String),_.V("design:paramtypes",[])],Rf.prototype,"tableWidthStyle",null);_.C([_.m({is:"ytd-table-renderer",disableElementRegistration:!0})],Rf);
_.b(Rf,"ytd-table-renderer",function(){if(iSE!==void 0)return iSE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return iSE=F},{mode:1});var rr=function(){return _.x.apply(this,arguments)||this};
_.M(rr,_.x);rr.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}}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],rr.prototype,"data",void 0);_.C([_.m({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],rr);
_.b(rr,"ytd-report-reason-history-modal-renderer",function(){if(war!==void 0)return war;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return war=F},{mode:1});var k$1;var Eae;var zVn;var NP=function(){return _.x.apply(this,arguments)||this};
_.M(NP,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],NP.prototype,"data",void 0);_.C([_.m({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],NP);
_.b(NP,"ytd-profile-column-stats-entry-renderer",function(){if(zVn!==void 0)return zVn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return zVn=F},{mode:1});var oae;var wr=function(){return _.x.apply(this,arguments)||this};
_.M(wr,_.x);wr.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],wr.prototype,"data",void 0);_.C([_.m({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],wr);
_.b(wr,"ytd-profile-column-stats-renderer",function(){if(oae!==void 0)return oae;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return oae=F},{mode:1});var naz;var i8=function(){return _.x.apply(this,arguments)||this};
_.M(i8,_.x);_.JJ.Object.defineProperties(i8.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.useThumbnailSize)return 80;var q,t;F=(q=this.data)==null?void 0:(t=q.thumbnail)==null?void 0:t.thumbnails;var u;return F&&((u=F[0])==null?void 0:u.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.useThumbnailSize)return 80;var q,t;F=(q=this.data)==null?void 0:(t=q.thumbnail)==null?void 0:t.thumbnails;var u;return F&&((u=F[0])==null?void 0:u.height)||80}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],i8.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],i8.prototype,"componentStyle",void 0);_.C([_.W("data.useThumbnailSize"),_.V("design:type",Object),_.V("design:paramtypes",[])],i8.prototype,"thumbnailWidth",null);
_.C([_.W("data.useThumbnailSize"),_.V("design:type",Object),_.V("design:paramtypes",[])],i8.prototype,"thumbnailHeight",null);_.C([_.m({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],i8);
_.b(i8,"ytd-profile-column-user-info-renderer",function(){if(naz!==void 0)return naz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return naz=F},{mode:1});var k4=function(){return _.x.apply(this,arguments)||this};
_.M(k4,_.x);k4.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]]"}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],k4.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],k4.prototype,"componentStyle",void 0);_.C([_.m({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],k4);
_.b(k4,"ytd-profile-column-renderer",function(){if(Eae!==void 0)return Eae;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Eae=F},{mode:1});var EE=function(){var F=_.x.apply(this,arguments)||this;F.componentStyle="NON_CENTERED_PROFILE";return F};
_.M(EE,_.x);EE.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
EE.prototype.getIcon=function(F){return F?"settings:"+F.toLowerCase():null};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],EE.prototype,"data",void 0);_.C([_.m({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],EE);
_.b(EE,"ytd-page-introduction-renderer",function(){if(k$1!==void 0)return k$1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return k$1=F},{mode:1});var M_v;var zh=function(){return _.x.apply(this,arguments)||this};
_.M(zh,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zh.prototype,"data",void 0);_.C([_.m({is:"ytd-report-description-renderer",disableElementRegistration:!0})],zh);
_.b(zh,"ytd-report-description-renderer",function(){if(M_v!==void 0)return M_v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return M_v=F},{mode:1});var THw;var G$z;var of=function(){return _.x.apply(this,arguments)||this};
_.M(of,_.x);of.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],of.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],of.prototype,"data",void 0);_.C([_.m({is:"ytd-video-report-renderer",disableElementRegistration:!0})],of);
_.b(of,"ytd-video-report-renderer",function(){if(G$z!==void 0)return G$z;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return G$z=F},{mode:1});var DYx;_.mo("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.mo("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var nO=function(){return _.x.apply(this,arguments)||this};
_.M(nO,_.x);nO.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
nO.prototype.computeMessageStyle=function(F){return F};
nO.prototype.computeButtonOverride=function(F){var q;if((F==null?0:(q=F.style)==null?0:q.value)&&F.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],nO.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],nO.prototype,"shelf",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],nO.prototype,"panel",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.V("design:type",Boolean)],nO.prototype,"componentStyle",void 0);_.C([_.O({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],nO.prototype,"buttonOverride",void 0);_.C([_.m({is:"ytd-message-renderer",disableElementRegistration:!0})],nO);
_.b(nO,"ytd-message-renderer",function(){if(DYx!==void 0)return DYx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return DYx=F},{mode:1});var MP=function(){return _.x.apply(this,arguments)||this};
_.M(MP,_.x);MP.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"}}}};
MP.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
MP.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.JJ.Object.defineProperties(MP.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var F,q;return!!(((F=this.data)==null?0:F.header)&&((q=this.data)==null?0:q.table))}}});
MP.prototype.onRequestError=MP.prototype.onRequestError;_.C([_.D(_.Qd),_.V("design:type",Object)],MP.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],MP.prototype,"data",void 0);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],MP.prototype,"isUnifiedReportHistory",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MP.prototype,"onRequestError",null);_.C([_.m({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],MP);
_.b(MP,"ytd-report-history-section-renderer",function(){if(THw!==void 0)return THw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return THw=F},{mode:1});var W5w;var Th=function(){var F=_.x.apply(this,arguments)||this;F.answerExpanded=!1;return F};
_.M(Th,_.x);Th.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Th.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Th.prototype,"answerExpanded",void 0);_.C([_.m({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Th);
_.b(Th,"ytd-handles-claiming-faq-renderer",function(){if(W5w!==void 0)return W5w;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return W5w=F},{mode:1});var OSv;var PMz=function(){return _.x.apply(this,arguments)||this};
_.M(PMz,_.x);_.C([_.O(),_.V("design:type",Object)],PMz.prototype,"data",void 0);_.C([_.m({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],PMz);
_.b(PMz,"ytd-handles-claiming-faq-section-renderer",function(){if(OSv!==void 0)return OSv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return OSv=F},{mode:1});var xY1;var Gh=function(){var F=_.x.apply(this,arguments)||this;F.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";F.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";F.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";F.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";F.leftSquiggly=F.leftSquigglyLight;F.rightSquiggly=F.rightSquigglyLight;
F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};F.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return F};
_.M(Gh,_.x);_.l=Gh.prototype;_.l.updateLeftSquigglyStyle=function(){_.ws(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.l.updateRightSquigglyStyle=function(){_.ws(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.l.ready=function(){var F=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(F)};
_.l.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.set("isDarkTheme",F),F?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Gh.prototype.updateRightSquigglyStyle=Gh.prototype.updateRightSquigglyStyle;Gh.prototype.updateLeftSquigglyStyle=Gh.prototype.updateLeftSquigglyStyle;_.C([_.O(),_.V("design:type",Object)],Gh.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],Gh.prototype,"isDarkTheme",void 0);_.C([_.O(),_.V("design:type",String)],Gh.prototype,"leftSquiggly",void 0);_.C([_.O(),_.V("design:type",String)],Gh.prototype,"rightSquiggly",void 0);
_.C([_.za("leftSquiggly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Gh.prototype,"updateLeftSquigglyStyle",null);_.C([_.za("rightSquiggly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Gh.prototype,"updateRightSquigglyStyle",null);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Gh.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Gh.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Gh.prototype,"actionButtonOverride",void 0);_.C([_.m({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Gh);
_.b(Gh,"ytd-handles-claiming-header-renderer",function(){if(xY1!==void 0)return xY1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return xY1=F},{mode:1});var A6z;var DT=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};F.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";F.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";F.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";F.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
F.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";F.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";F.image0SquigglyBackground=F.image0LightSquigglyBackground;F.image1SquigglyBackground=F.image1LightSquigglyBackground;F.image3SquigglyBackground=F.image3LightSquigglyBackground;return F};
_.M(DT,_.x);_.l=DT.prototype;_.l.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.l.onDataChanged=function(){this.updateTitleAndImages()};
_.l.onThemeChanged=function(){this.updateTitleAndImages()};
_.l.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.isDarkTheme=F)};
_.l.updateImage0SquigglyBackground=function(){_.ws(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.l.updateImage1SquigglyBackground=function(){_.ws(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.l.updateImage3SquigglyBackground=function(){_.ws(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.l.updateTitleAndImages=function(){var F,q;((F=this.data)==null?void 0:(q=F.titleImages)==null?void 0:q.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))};
DT.prototype.updateImage3SquigglyBackground=DT.prototype.updateImage3SquigglyBackground;DT.prototype.updateImage1SquigglyBackground=DT.prototype.updateImage1SquigglyBackground;DT.prototype.updateImage0SquigglyBackground=DT.prototype.updateImage0SquigglyBackground;DT.prototype.onThemeChanged=DT.prototype.onThemeChanged;DT.prototype.onDataChanged=DT.prototype.onDataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],DT.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],DT.prototype,"isDarkTheme",void 0);_.C([_.O(),_.V("design:type",Object)],DT.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],DT.prototype,"title0",void 0);_.C([_.O(),_.V("design:type",Object)],DT.prototype,"title1",void 0);_.C([_.O(),_.V("design:type",Object)],DT.prototype,"title2",void 0);_.C([_.O(),_.V("design:type",Object)],DT.prototype,"title3",void 0);
_.C([_.O(),_.V("design:type",Object)],DT.prototype,"title4",void 0);_.C([_.O(),_.V("design:type",Object)],DT.prototype,"image0",void 0);_.C([_.O(),_.V("design:type",Object)],DT.prototype,"image1",void 0);_.C([_.O(),_.V("design:type",Object)],DT.prototype,"image2",void 0);_.C([_.O(),_.V("design:type",Object)],DT.prototype,"image3",void 0);_.C([_.O(),_.V("design:type",Object)],DT.prototype,"image4",void 0);_.C([_.O(),_.V("design:type",String)],DT.prototype,"image0SquigglyBackground",void 0);
_.C([_.O(),_.V("design:type",String)],DT.prototype,"image1SquigglyBackground",void 0);_.C([_.O(),_.V("design:type",String)],DT.prototype,"image3SquigglyBackground",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DT.prototype,"onDataChanged",null);_.C([_.za("isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DT.prototype,"onThemeChanged",null);
_.C([_.za("image0SquigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DT.prototype,"updateImage0SquigglyBackground",null);_.C([_.za("image1SquigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DT.prototype,"updateImage1SquigglyBackground",null);
_.C([_.za("image3SquigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DT.prototype,"updateImage3SquigglyBackground",null);_.C([_.m({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],DT);
_.b(DT,"ytd-handles-claiming-title-images-section-renderer",function(){if(A6z!==void 0)return A6z;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return A6z=F},{mode:1});var vaO;var Wg=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(Wg,_.x);Wg.prototype.ready=function(){var F=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(F)};
Wg.prototype.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&this.set("isDarkTheme",F)};
Wg.prototype.onCopyButtonClick=function(){var F=this,q,t,u;return _.p(function(J){return(q=F.data)!=null&&q.primaryChannelUrl?J.yield(navigator.clipboard.writeText(((t=F.data)==null?0:t.encodedChannelUrl)?F.data.encodedChannelUrl:"https://"+_.q1((u=F.data)==null?void 0:u.primaryChannelUrl)),0):J.jumpTo(0)})};
_.C([_.O(),_.V("design:type",Object)],Wg.prototype,"data",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Wg.prototype,"ytComponentBehavior",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Wg.prototype,"isDarkTheme",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Wg.prototype,"ytActionHandlerBehavior",void 0);_.C([_.m({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Wg);
_.b(Wg,"ytd-handles-claiming-update-social-renderer",function(){if(vaO!==void 0)return vaO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return vaO=F},{mode:1});var Ii1;var OE=function(){var F=_.x.apply(this,arguments)||this;F.JSC$16024_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";F.JSC$16024_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};F.squigglyBackground=F.JSC$16024_squigglyBackgroundLight;return F};
_.M(OE,_.x);OE.prototype.updateSquigglyBackgroundStyle=function(){_.ws(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
OE.prototype.ready=function(){var F=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",F);this.squigglyBackground=F?this.JSC$16024_squigglyBackgroundDark:this.JSC$16024_squigglyBackgroundLight};
OE.prototype.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.set("isDarkTheme",F),this.squigglyBackground=F?this.JSC$16024_squigglyBackgroundDark:this.JSC$16024_squigglyBackgroundLight)};
OE.prototype.updateSquigglyBackgroundStyle=OE.prototype.updateSquigglyBackgroundStyle;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],OE.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],OE.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],OE.prototype,"isDarkTheme",void 0);_.C([_.O(),_.V("design:type",String)],OE.prototype,"squigglyBackground",void 0);_.C([_.za("squigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OE.prototype,"updateSquigglyBackgroundStyle",null);_.C([_.m({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],OE);
_.b(OE,"ytd-handles-claiming-vanity-info-renderer",function(){if(Ii1!==void 0)return Ii1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Ii1=F},{mode:1});var HSj;var Pg=function(){var F=_.x.apply(this,arguments)||this;F.JSC$16027_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";F.JSC$16027_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";F.squigglyBackground=F.JSC$16027_squigglyBackgroundLight;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(Pg,_.x);_.l=Pg.prototype;_.l.ready=function(){var F=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(F)};
_.l.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.set("isDarkTheme",F),this.squigglyBackground=F?this.JSC$16027_squigglyBackgroundDark:this.JSC$16027_squigglyBackgroundLight)};
_.l.updateSquigglyBackgroundStyle=function(){_.ws(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.l.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.l.detached=function(){this.stop()};
_.l.stop=function(){this.playerElement.stop()};
_.l.setupVideoPlayer=function(){var F=this,q,t;return _.p(function(u){q=F.data.videoId;t="http://i1.ytimg.com/vi/"+q+"/maxresdefault.jpg";F.playerElement.loadVideoWithPlayerVars({video_id:q,iurlhq:t});_.WA(u)})};
Pg.prototype.onDataChanged=Pg.prototype.onDataChanged;Pg.prototype.updateSquigglyBackgroundStyle=Pg.prototype.updateSquigglyBackgroundStyle;_.C([_.O({value:!1}),_.V("design:type",Boolean)],Pg.prototype,"isDarkTheme",void 0);_.C([_.O(),_.V("design:type",String)],Pg.prototype,"squigglyBackground",void 0);_.C([_.Ms("#player"),_.V("design:type",Object)],Pg.prototype,"playerElement",void 0);_.C([_.O(),_.V("design:type",Object)],Pg.prototype,"data",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Pg.prototype,"ytActionHandlerBehavior",void 0);_.C([_.za("squigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pg.prototype,"updateSquigglyBackgroundStyle",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pg.prototype,"onDataChanged",null);
_.C([_.m({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Pg);
_.b(Pg,"ytd-handles-claiming-video-item-renderer",function(){if(HSj!==void 0)return HSj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return HSj=F},{mode:1});var mYv;var A4=function(){var F=_.Ga.apply(this,arguments)||this;F.dragging=!1;F.dragMouseStart=0;F.dragOffsetStart=0;F.containerWidthDiff=0;F.boundPrevClick=function(){F.set("offset",x4(F,F.offset-(F.scrollDistance||320)))};
F.boundNextClick=function(){F.set("offset",x4(F,F.offset+(F.scrollDistance||320)))};
F.boundScrollContainerMouseDown=function(q){F.dragMouseStart=q.clientX;F.dragOffsetStart=F.offset;F.dragging=!0};
F.boundScrollContainerDrag=function(q){F.dragging&&F.set("offset",x4(F,F.dragOffsetStart-(q.clientX-F.dragMouseStart)))};
F.boundMouseUp=function(){F.onMouseUp()};
F.boundWheelScroll=function(q){var t=0;Math.abs(q.deltaX)>=Math.abs(q.deltaY)?t=q.deltaX:q.shiftKey&&(t=q.deltaY);t!==0&&(F.offset+=t,q.stopPropagation(),q.preventDefault())};
F.boundChipCloudChipScrollIntoView=function(q){(q=q.detail)&&F.scrollChipIntoView(q)};
return F};
_.M(A4,_.Ga);A4.prototype.attached=function(){var F=_.ep(this.hostElement).querySelector("#scroll-container");F.addEventListener("wheel",this.boundWheelScroll);F.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);F.style.touchAction="pan-y";F.addEventListener("pointerdown",this.boundScrollContainerMouseDown);F.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
A4.prototype.detached=function(){var F=_.ep(this.hostElement).querySelector("#scroll-container");F.removeEventListener("wheel",this.boundWheelScroll);F.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);F.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);F.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
A4.prototype.reset=function(){this.set("offset",0);_.tJ(this,this.setContainerWidthDiff);vg(this)};
var x4=function(F,q){return Math.min(Math.max(q,0),F.containerWidthDiff)};
A4.prototype.onMouseUp=function(){this.dragging=!1};
A4.prototype.transformContainer=function(){this.offset=x4(this,this.offset);var F=_.bn("HTML_DIR")==="rtl"?"":"-";_.ep(this.hostElement).querySelector("#chips").style.transform="translateX("+F+this.offset+"px)";vg(this)};
var vg=function(F){_.tJ(F,F.setButtonsState)};
A4.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=x4(this,this.offset));this.atStart=this.offset<=0};
A4.prototype.setContainerWidthDiff=function(){var F=_.ep(this.hostElement).querySelector("#scroll-container"),q=_.ep(this.hostElement).querySelector("#chips");F&&q&&(this.containerWidthDiff=q.clientWidth-F.clientWidth)};
A4.prototype.scrollChipIntoView=function(F){var q=_.ep(this.hostElement).querySelector("#scroll-container");if(q){var t=this.atStart?0:106,u=this.atEnd?0:106;F.offsetLeft<this.offset+t?this.offset=x4(this,F.offsetLeft-t):F.offsetLeft+F.clientWidth>this.offset+q.clientWidth-u&&(this.offset=x4(this,F.offsetLeft+F.clientWidth+u-q.clientWidth))}};
A4.prototype.transformContainer=A4.prototype.transformContainer;_.C([_.O({value:0}),_.V("design:type",Number)],A4.prototype,"offset",void 0);_.C([_.O({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],A4.prototype,"atStart",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],A4.prototype,"atEnd",void 0);_.C([_.O(),_.V("design:type",Number)],A4.prototype,"scrollDistance",void 0);
_.C([_.za("offset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],A4.prototype,"transformContainer",null);_.C([_.Dj()],A4);var $Yz;var bSr;var dYd=_.ld(function(F){var q=F.data;F=_.X(_.N3(!1,void 0,"icHmSe"));var t=F.next().value,u=F.next().value;F={};F=_.Ec("ytChipShapeChip",function(){a:switch(q==null?void 0:q().state){case 0:var g="ytChipShapeActive";break a;case 1:g="ytChipShapeDisabled";break a;default:g="ytChipShapeInactive"}return g},function(){var g=q().type===1||q().type===2,Y=q();
return g||Y!=null&&Y.startIcon?Y==null||!Y.startIcon||Y!=null&&Y.text?g?"ytChipShapeEndIconPadding":(Y==null?0:Y.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(F.ytChipShapeFocused=function(){var g;
return t()&&((g=q())==null?void 0:g.state)!==1},F));
var J=function(g){if((q==null?void 0:q().state)!==1){var Y,Q;(Q=(Y=q()).onTap)==null||Q.call(Y,g)}};
return _.Z("chip-shape",{class:"ytChipShapeHost","on:focusin":_.zq(function(){var g=_.sV().resolve(_.JU(_.GD));if(g){u(g.isKeyBoardInUse());var Y,Q;(Q=(Y=q()).onFocusIn)==null||Q.call(Y)}return!1}),
"on:focusout":_.zq(function(){u(!1);return!1})},_.Z(y6f,{shouldWrapInButton:function(){return q().type!==2},
selected:function(){return q().state===0},
onClick:J,isDropdown:function(){return q().type===1},
accessibilityLabel:function(){return q().type===1?void 0:q().accessibilityLabel}},_.Z("div",{class:F},_.Z(_.R,{cond:function(){return q().startIcon},
then:function(){return _.Z(_.Tq,{icon:function(){var g;return(g=q())==null?void 0:g.startIcon},
className:function(){return q().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return q().text},_.Z(CMJ,{shape:q,
onClick:J}),_.Z(_.WP,{model:{borderRadius:"8px"}}))))},"Nb");
dYd.idomCompat=!0;var y6f=_.ld(function(F){var q=_.zq(function(t){F.onClick(t);return!1});
return _.Z(_.R,{cond:F.shouldWrapInButton,then:function(){return _.Z("button",{class:"ytChipShapeButtonReset","on:click":q,role:function(){return F.isDropdown()?"combobox":"tab"},
"aria-label":F.accessibilityLabel,"aria-selected":F.selected},F.children)},
else:function(){return F.children}})},"Ob"),CMJ=_.ld(function(F){var q=F.shape;
var t=F.onClick;var u=_.zq(function(J){t(J);return!1});
return _.Z(_.OK,null,_.Z(_.DA,{when:function(){return q().type===1}},function(){return _.Z(_.Tq,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.Z(_.DA,{when:function(){return q().type===2}},function(){return _.Z("button",{class:"ytChipShapeButtonReset",
"on:click":u},_.Z(_.Tq,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.Z(_.DA,{when:function(){return q().type===0}},function(){return _.Z(_.ln,null)}))},"Pb");_.ei(dYd,"chip-shape",{props:{data:_.NH}});var If=function(){var F=_.x.apply(this,arguments)||this;F.disableDeselectEvent=!1;F.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return F};
_.M(If,_.x);_.l=If.prototype;_.l.onSelectChipCommand=function(F){if(!this.selected&&this.data&&(F=_.n(F,N3j),F.targetId&&F.targetId===this.data.targetId))this.onTap()};
_.l.onFilterChipTransformCommand=function(F){if(!this.selected&&this.data){var q;(F=(q=_.n(F,Yrx))==null?void 0:q.chipUniqueId)&&F===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.l.dataChanged=function(){var F=this;_.tJ(this,function(){F.data&&F.data.isSelected&&!F.selected&&(F.scrollChipIntoView(),F.onTap())})};
_.l.computeChipStyle=function(F){return F!=null?F:"STYLE_DEFAULT"};
_.l.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.ec(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.ec(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.l.onFocus=function(){var F=_.sV().resolve(_.JU(_.GD));F&&F.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.l.scrollChipIntoView=function(){_.Q0(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.JJ.Object.defineProperties(If.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return FwW({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
If.prototype.onFocus=If.prototype.onFocus;If.prototype.onTap=If.prototype.onTap;If.prototype.dataChanged=If.prototype.dataChanged;_.C([_.D(_.my),_.V("design:type",Object)],If.prototype,"ironButtonState",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],If.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],If.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.v6),_.V("design:type",Object)],If.prototype,"ironA11yKeysBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],If.prototype,"disableDeselectEvent",void 0);_.C([_.O(),_.V("design:type",Object)],If.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data.icon"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],If.prototype,"hasIcon",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data.uniqueId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],If.prototype,"isGnomeChip",null);_.C([_.O({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.V("design:type",String)],If.prototype,"chipStyle",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],If.prototype,"selected",void 0);
_.C([_.W("data","selected"),_.V("design:type",Object),_.V("design:paramtypes",[])],If.prototype,"chipShapeData",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],If.prototype,"dataChanged",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],If.prototype,"onTap",null);
_.C([_.EB("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],If.prototype,"onFocus",null);_.C([_.Vu({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],If);
_.b(If,"yt-chip-cloud-chip-renderer",function(){if(bSr===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;$Yz===void 0&&($Yz=document.createElement("template"));var u=$Yz;t.call(q,u.content.cloneNode(!0),F.content.firstChild);bSr=F}F=bSr;return F},{mode:2});var Hg=function(){var F=_.x.apply(this,arguments)||this;F.isDarkTheme=!1;F.notSticky=!1;F.transparentBackground=!1;F.shouldHide=!1;F.disableSticky=!1;F.fluidWidth=!1;F.isClipList=!1;F.defaultChipIndex=0;F.isPlaylist=!1;F.playlistVotingAnimationEnabled=_.E("web_enable_voting_animation");F.toolbarHeight=0;F.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return F};
_.M(Hg,_.x);_.l=Hg.prototype;
_.l.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}}}}}};
_.l.attached=function(){var F=this;document.addEventListener("scroll",_.kM(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var q;this.toolbarHeight=((q=document.querySelector("ytd-masthead"))==null?void 0:q.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(t){F.handleIntersect(t)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){F.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.l.detached=function(){var F;(F=this.intersectionObserver)==null||F.disconnect();var q;(q=this.resizeObserver)==null||q.disconnect();document.removeEventListener("scroll",_.kM(this,this.updateChipBarWidthAndTop))};
_.l.dataChanged=function(){var F=this,q,t,u;((u=_.n((q=this.data)==null?void 0:(t=q.contents)==null?void 0:t[0],eMx))==null?void 0:u.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var J=this.findSelectedChipIndex();this.selectedIndex!==J&&(this.selectedIndex=-1);_.tJ(this,function(){F.selectedIndex=J;F.updating=!1;F.ytScrollableChipCloudBehavior.reset()})};
_.l.findSelectedChipIndex=function(){var F;if((F=this.data)==null||!F.contents)return 0;F=this.data.contents;for(var q=0;q<F.length;q++){var t=void 0;if((t=_.n(F[q],eMx))==null?0:t.isSelected)return q}return 0};
_.l.computeStyle=function(F){return F};
_.l.handleChipCloudChipSelectAction=function(F){F=this.JSC$16048_chipsSelector.indexOf(F);F>-1&&this.JSC$16048_chipsSelector.selectIndex(F)};
_.l.handleChipCloudChipDeselectAction=function(){if(_.E("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var F,q,t,u=(t=_.n((F=this.data)==null?void 0:(q=F.contents)==null?void 0:q[0],eMx))==null?void 0:t.navigationEndpoint;u&&_.ec(this.hostElement,"yt-browse-section-list-reload-endpoint",[u]);this.JSC$16048_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.l.onGuideIsExpandedChanged=function(){var F=this.ytScrollableChipCloudBehavior;_.tJ(F,F.setContainerWidthDiff);vg(this.ytScrollableChipCloudBehavior)};
_.l.onResize=function(){var F=this.ytScrollableChipCloudBehavior;_.tJ(F,F.setContainerWidthDiff);vg(this.ytScrollableChipCloudBehavior)};
_.l.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.l.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.l.handleIntersect=function(F){this.notSticky=this.isChannelPageGrid||this.disableSticky||F[0].intersectionRatio===1};
_.l.updateDimensions=function(){var F=this.ytRendererBehavior.parentComponent;if(F){var q,t=(q=F.headerElement)!=null?q:F;_.ws(this.hostElement,{"--ytd-rich-grid-chips-bar-width":t.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.l.updateSelectedIndexFromBinding=function(F){this.selectedIndex=F.detail.value};
_.l.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var F;(F=this.sortFilterHeaderRendererElement)==null||F.setAttribute("is-playlist-page-with-filters","")}};
_.l.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(aNf(!this.notSticky))};
_.JJ.Object.defineProperties(Hg.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(F=this.data)==null?void 0:(q=F.contents)==null?void 0:q.find(function(u){return _.n(u,wQx)});
return{sortFilterHeaderRenderer:_.n(t,wQx)}}}});
Hg.prototype.dispatchChipBarIsSticky=Hg.prototype.dispatchChipBarIsSticky;Hg.prototype.isPlaylistPageChanged=Hg.prototype.isPlaylistPageChanged;Hg.prototype.updateChipBarWidthAndTop=Hg.prototype.updateChipBarWidthAndTop;Hg.prototype.onResize=Hg.prototype.onResize;Hg.prototype.onGuideIsExpandedChanged=Hg.prototype.onGuideIsExpandedChanged;Hg.prototype.dataChanged=Hg.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Hg.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.Vl),_.V("design:type",Object)],Hg.prototype,"ironResizableBehavior",void 0);_.C([_.D(),_.V("design:type",A4)],Hg.prototype,"ytScrollableChipCloudBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Hg.prototype,"ytdReduxBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],Hg.prototype,"data",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],Hg.prototype,"selectedIndex",void 0);_.C([_.O({value:320}),_.V("design:type",Number)],Hg.prototype,"scrollDistance",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Hg.prototype,"isDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Hg.prototype,"notSticky",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Hg.prototype,"transparentBackground",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.V("design:type",String)],Hg.prototype,"componentStyle",void 0);_.C([_.O({selector:_.cho}),_.V("design:type",Boolean)],Hg.prototype,"guideIsExpanded",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Hg.prototype,"shouldHide",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Hg.prototype,"disableSticky",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Hg.prototype,"fluidWidth",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Hg.prototype,"isClipList",void 0);_.C([_.O(),_.V("design:type",Object)],Hg.prototype,"defaultChipIndex",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Hg.prototype,"isPlaylist",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Hg.prototype,"playlistVotingAnimationEnabled",void 0);_.C([_.Ms("#chips"),_.V("design:type",Object)],Hg.prototype,"JSC$16048_chipsSelector",void 0);_.C([_.Ms("ytd-sort-filter-header-renderer"),_.V("design:type",HTMLElement)],Hg.prototype,"sortFilterHeaderRendererElement",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Hg.prototype,"updating",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Hg.prototype,"dataChanged",null);_.C([_.za("guideIsExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Hg.prototype,"onGuideIsExpandedChanged",null);_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Hg.prototype,"onResize",null);
_.C([_.Wh("isChannelPageGrid","disableSticky","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Hg.prototype,"updateChipBarWidthAndTop",null);_.C([_.W("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Hg.prototype,"isChannelPageGrid",null);_.C([_.W("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Hg.prototype,"isHashtagLandingPage",null);
_.C([_.za("isPlaylistPage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Hg.prototype,"isPlaylistPageChanged",null);_.C([_.W("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Hg.prototype,"isPlaylistPage",null);_.C([_.W("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Hg.prototype,"isDisableDeselectEvent",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Hg.prototype,"sortFilterHeaderRendererData",null);_.C([_.O({reflectToAttribute:!0,selector:_.gQM}),_.V("design:type",String)],Hg.prototype,"frostedGlassMode",void 0);_.C([_.za("notSticky"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Hg.prototype,"dispatchChipBarIsSticky",null);_.C([_.m({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Hg);
_.b(Hg,"ytd-feed-filter-chip-bar-renderer",function(){if(mYv!==void 0)return mYv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return mYv=F},{mode:1});var V_O;var UYL=_.ld(function(F){var q=F.data;var t=F.buttonIndex;var u=F.selectedIndex;var J=F.onSelect;var g=function(){return t()===u()},Y=function(){var Q,e;
return(e=(Q=q().text)==null?void 0:Q.content)!=null?e:""};
F=_.jGy();return _.Z("yt-toggleable-image-button-view-model",{class:function(){var Q={};Q=(Q.toggleableImageButtonViewModelHost=!0,Q[""]=!0,Q.toggleableImageButtonViewModelSemiTransparent=u()!==-1&&!g(),Q);return _.HD(Q)},
tabindex:0,"aria-label":Y,"aria-pressed":g,role:"button","on:keydown":F,"on:click":_.zq(function(){J(q().onSubmitCommand);return!1})},_.Z(_.R,{cond:function(){return q().logo},
then:function(Q){return _.Z(_.sc,{data:Q,className:function(){var e={};e=(e.toggleableImageButtonViewModelImage=!0,e.toggleableImageButtonViewModelCircularRadius=!(!q().backgroundColor||!q().backgroundColorDarkMode),e.toggleableImageButtonViewModelGradientRing=!!(g()&&q().backgroundColor&&q().backgroundColorDarkMode),e);return _.HD(e)},
alt:Y,useWidth:!1,style:function(){if(g()&&q().backgroundColor&&q().backgroundColorDarkMode){var e=Bx(Number(q().backgroundColorDarkMode),"1");var r=Bx(Number(q().backgroundColor),"1");e="background: linear-gradient(180deg,"+e+","+r+") border-box;"}else e="";return e}})}}),_.Z(_.WP,{model:{borderRadius:"16px"}}),_.Z("p",{class:function(){var Q={};
Q=(Q.toggleableImageButtonViewModelLabel=!0,Q.toggleableImageButtonViewModelBoldText=g(),Q);return _.HD(Q)}},_.Z(_.rv,{text:function(){return q().text}})))},"Qb");
UYL.idomCompat=!0;var hVj=_.ld(function(F){var q=F.data;F=_.X(_.N3({index:-1,command:{}},void 0,"GM3umb"));var t=F.next().value,u=F.next().value;return _.Z("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.Z("div",{class:"nudgeFormViewModelFormOptions"},_.Z(_.Tl,{data:function(){return q().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(J,g){return _.Z(UYL,{data:J.data,buttonIndex:g,selectedIndex:function(){return t().index},
onSelect:function(Y){u({index:g(),command:Y})}})}})),_.Z(_.rv,{text:function(){return q().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.Z("div",{class:"nudgeFormViewModelSubmit"},_.Z(_.Tl,{data:function(){return q().submitButton}},{buttonViewModel:function(J){return _.Z(SgO,{data:J.data,
isDisabled:function(){return t().index===-1},
onClick:function(){_.L9(t().command)}})}})))},"Rb");
hVj.idomCompat=!0;var SgO=_.ld(function(F){var q=_.zy(function(){return Object.assign({},F.data(),{state:F.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.Z(_.AB,{data:q,onClick:F.onClick})},"Sb");_.ei(hVj,"yt-nudge-form-view-model",{props:{data:_.NH}});var mJ=function(){var F=_.x.apply(this,arguments)||this;F.roundedContainer=!0;F.buttonUpdate=_.E("web_modern_buttons");F.isDarkMode=!1;F.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return F};
_.M(mJ,_.x);_.l=mJ.prototype;_.l.computeNudgeStyle=function(F){return F?"modernized-nudge":""};
_.l.handleDarkModeToggledAction=function(F){this.isDarkMode=F};
_.l.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.l.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"}}}};
_.l.computeIsHorizontalButtons=function(F){return F?!!F.applyModernizedStyle&&!!F.enableHorizontalButtons&&!!F.secondaryButton:!1};
_.JJ.Object.defineProperties(mJ.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var F,q;return(q=(F=this.data)==null?void 0:F.backgroundStyle)!=null?q:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var F,q;return(q=(F=this.data)==null?void 0:F.contentsLocation)!=null?q:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null?0:F.lightIconImage)}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],mJ.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],mJ.prototype,"actionHandlerBehavior",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("isHideEnclosingAction"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mJ.prototype,"isHidden",null);_.C([_.O(),_.V("design:type",Object)],mJ.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mJ.prototype,"roundedContainer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mJ.prototype,"buttonUpdate",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.V("design:type",String)],mJ.prototype,"nudgeStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data.trimStyle"),_.V("design:type",String),_.V("design:paramtypes",[])],mJ.prototype,"trimStyle",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.backgroundStyle"),_.V("design:type",String),_.V("design:paramtypes",[])],mJ.prototype,"backgroundStyle",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data.contentsLocation"),_.V("design:type",String),_.V("design:paramtypes",[])],mJ.prototype,"contentsLocation",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.disableDropShadow"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mJ.prototype,"noShadow",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.lightIconImage"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mJ.prototype,"noIcon",null);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.V("design:type",Boolean)],mJ.prototype,"isHorizontalButtons",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Object)],mJ.prototype,"isDarkMode",void 0);_.C([_.m({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],mJ);
_.b(mJ,"ytd-feed-nudge-renderer",function(){if(V_O!==void 0)return V_O;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return V_O=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var K5C;var BHL;var $4=function(){var F=_.x.apply(this,arguments)||this;F.collapsed=!1;F.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return F};
_.M($4,_.x);$4.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"}}}};
$4.prototype.handleRatingSelect=function(){var F;((F=this.data)==null?0:F.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
$4.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],$4.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],$4.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.lr),_.V("design:type",Object)],$4.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$4.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],$4.prototype,"collapsed",void 0);_.C([_.m({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],$4);
_.b($4,"ytd-slimline-survey-renderer",function(){if(BHL!==void 0)return BHL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return BHL=F},{mode:1});var L5r;var b8=function(){return _.x.apply(this,arguments)||this};
_.M(b8,_.x);b8.prototype.maybeGetBackgroundColor=function(F){return this.isDarkMode?F.section2Color:F.section3Color};
b8.prototype.colorPaletteChanged=function(){var F=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;F&&(F==null?0:F.secondaryTitleColor)&&this.maybeGetBackgroundColor(F)?(this.hostElement.style.backgroundColor=_.hn(this.maybeGetBackgroundColor(F)),this.hostElement.style.color=_.hn(F.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
b8.prototype.colorPaletteChanged=b8.prototype.colorPaletteChanged;_.C([_.D(_.s9),_.V("design:type",Object)],b8.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],b8.prototype,"data",void 0);_.C([_.O({selector:function(F){return F.ui.darkModeIsEnabled}}),
_.V("design:type",Boolean)],b8.prototype,"isDarkMode",void 0);_.C([_.O(),_.V("design:type",Object)],b8.prototype,"lightColorPalette",void 0);_.C([_.O(),_.V("design:type",Object)],b8.prototype,"darkColorPalette",void 0);_.C([_.za("darkColorPalette","lightColorPalette","data","isDarkMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b8.prototype,"colorPaletteChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],b8);
_.b(b8,"ytd-endorsement-header-renderer",function(){if(L5r!==void 0)return L5r;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return L5r=F},{mode:1});_.ei(_.qi,"yt-decorated-avatar-view-model",{props:{data:_.NH,className:_.NH}});_.yf=new _.pg("VIEW_TRANSITION_MANAGER_TOKEN");var CO=function(){var F=_.x.apply(this,arguments)||this;F.fullHeight=_.E("web_rich_grid_media_full_height");F.showChannelAvatar=!0;F.hasPlaylistThumbnail=!1;F.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};F.registerThumbnailForPageTransition=function(){_.E("web_thumbnail_to_watch_transition")&&_.fiJ(_.sV().resolve(_.yf),F.thumbnail)};
return F};
_.M(CO,_.x);_.l=CO.prototype;
_.l.configureRendererStamper=function(){return{lazyLoadMenu:y6,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"}}}};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.shouldLazyLoadMenu=function(){var F=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.E("kevlar_modern_downloads_page")||!F};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16073_inlinePreviewHoverListener=Vg({mediaRenderer:this,lockupElement:this.JSC$16073_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.l.getVideoPreviewOpts=function(){var F={},q;if((q=this.data)==null?0:q.multipleInlinePlaybackEndpoint)F=d01;this.isRadio&&(F=Ctz);return F};
_.l.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$16073_inlinePreviewHoverListener)==null||cZ(F)};
_.l.getOwner=function(){var F,q,t;return((F=this.data)==null?void 0:(q=F.channelThumbnailSupportedRenderers)==null?void 0:q.channelThumbnailWithLinkRenderer)||_.n((t=this.data)==null?void 0:t.showProviderChannelThumbnail,EDz)};
_.l.updateLockupSize=function(){var F;((F=this.getOwner())==null?0:F.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.l.getFeedbackEndpoint=function(F){if(_.n(F,_.PO))return F;var q,t;F=(t=(q=_.n(F,_.wY))==null?void 0:q.commands)!=null?t:[];q=_.X(F);for(t=q.next();!t.done;t=q.next())if(t=this.getFeedbackEndpoint(t.value))return t;return null};
_.l.computeNavigationEndpoint=function(F){return stu(F==null?void 0:F.navigationEndpoint)};
_.l.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var F=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(F)!==JSON.stringify(this.data)&&this.set("data",F)}};
_.l.onDataChanged=function(){var F=this,q=this.getOwner();if(q){this.set("data.owner",q);var t,u,J,g,Y,Q=((t=this.data)==null?void 0:(u=t.shortBylineText)==null?void 0:(J=u.runs)==null?void 0:(g=J[0])==null?void 0:g.text)||((Y=q.name)==null?void 0:Y.simpleText);this.set("data.owner.title",Q)}var e,r,N,w,k,z;q=((e=this.data)==null?void 0:(r=e.thumbnailRenderer)==null?void 0:r.playlistVideoThumbnailRenderer)||((N=this.data)==null?void 0:(w=N.thumbnailRenderer)==null?void 0:w.playlistCustomThumbnailRenderer)||
((k=this.data)==null?void 0:(z=k.thumbnailRenderer)==null?void 0:z.showCustomThumbnailRenderer);var T;((T=this.data)==null?0:T.thumbnail)||!q||this.set("data.thumbnail",q.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){F.updateLockupSize()});
var P;if(e=((P=this.data)==null?void 0:P.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(e);var v;((v=this.dismissActionToReplayEntity)==null?0:v.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.l.onHiddenChanged=function(){this.updateLockupSize()};
_.l.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.ec(this.hostElement,"yt-terminate-video-preview-action");else{var F;(F=this.videoTitleLink)==null||F.focus()}};
_.l.metadataColorChanged=function(){var F;if(this.metadataColor&&((F=this.videoTitle)==null?0:F.style))this.videoTitle.style.color=_.hn(this.metadataColor);else{var q,t;!this.metadataColor&&((q=this.videoTitle)==null?0:(t=q.style)==null?0:t.color)&&(this.videoTitle.style.color="")}};
_.l.onDetailsClick=function(F){var q=this.computedNavigationEndpoint;q&&(_.tC(_.tY(F),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Q0(this.hostElement,"yt-navigate",{endpoint:q}))};
_.l.onRendererTap=function(){this.registerThumbnailForPageTransition();var F,q,t=((F=this.data)==null?void 0:F.serviceEndpoint)||this.getFeedbackEndpoint((q=this.data)==null?void 0:q.navigationEndpoint);t&&_.n(t,_.PO)&&this.ytComponentBehavior.resolveCommand(t)};
_.l.onMouseDown=function(F){var q=F.target,t=this.computedNavigationEndpoint,u;F=q.href||((u=_.n(t==null?void 0:t.commandMetadata,_.EH))==null?void 0:u.url);u=q.data||t;F&&u&&CDf(F,u)};
_.l.computeVideoTitleText=function(){var F;if((F=this.data)==null?0:F.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.l.computeHasPlaylistThumbnail=function(F){var q,t,u,J,g;if((((q=F.thumbnailRenderer)==null?0:q.playlistVideoThumbnailRenderer)||((t=F.thumbnailRenderer)==null?0:t.playlistCustomThumbnailRenderer)||((u=F.thumbnailRenderer)==null?0:u.showCustomThumbnailRenderer)||((J=F.thumbnailRenderer)==null?0:J.playlistVideoThumbnailRenderer)||((g=F.thumbnailRenderer)==null?0:g.playlistCustomThumbnailRenderer))&&F.thumbnailOverlays)for(q=0;q<F.thumbnailOverlays.length;q++)if(t=void 0,(t=F.thumbnailOverlays[q])==
null?0:t.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.JJ.Object.defineProperties(CO.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.E("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var F;return(F=this.data)==null?void 0:F.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var F;return(F=this.data)==null?void 0:F.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$16073_inlinePreviewHoverListener)==null?0:si(F))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.M1(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:F.videoId)||((q=this.data)==null?void 0:q.playlistId)||""}}});
CO.prototype.onMouseDown=CO.prototype.onMouseDown;CO.prototype.metadataColorChanged=CO.prototype.metadataColorChanged;CO.prototype.onIsDismissedChanged=CO.prototype.onIsDismissedChanged;CO.prototype.onHiddenChanged=CO.prototype.onHiddenChanged;CO.prototype.onDataChanged=CO.prototype.onDataChanged;CO.prototype.handleReloadDownloadsInfo=CO.prototype.handleReloadDownloadsInfo;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],CO.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],CO.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],CO.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],CO.prototype,"ytdReduxBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],CO.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],CO.prototype,"entitySelectorType",void 0);_.C([_.O(),_.V("design:type",Boolean)],CO.prototype,"noEndpoints",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],CO.prototype,"isRadio",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],CO.prototype,"miniMode",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],CO.prototype,"fullHeight",void 0);
_.C([_.O(),_.V("design:type",Boolean)],CO.prototype,"showDarkVideoMetadata",void 0);_.C([_.O(),_.V("design:type",Boolean)],CO.prototype,"showLightVideoMetadata",void 0);_.C([_.O(),_.V("design:type",Number)],CO.prototype,"metadataColor",void 0);_.C([_.O(),_.V("design:type",Object)],CO.prototype,"showChannelAvatar",void 0);_.C([_.O(),_.V("design:type",Boolean)],CO.prototype,"hidden",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],CO.prototype,"showYtInteraction",void 0);
_.C([_.O(),_.V("design:type",String)],CO.prototype,"dismissedContentId",void 0);_.C([_.O({selectorArgs:["dismissedContentId"],selector:Fzf}),_.V("design:type",Object)],CO.prototype,"dismissActionToReplayEntity",void 0);
_.C([_.O({selectorArgs:["entitySelectorType","mediaId"],selector:function(F,q,t){if(_.E("kevlar_modern_downloads_page")&&t&&q&&q!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(q){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var u=pGv(F,t);if(u){q=_.VX(F,t);var J=Sz(F,t),g=oQP(F,t);F=hx(F,t);var Y=c8$(u,q,J,g);J=Y.shortViewCountText;var Q=Y.publishedTimeText;Y=Y.badges;var e=F>0;g=aDW(u,q,g,F);u=_.Dx(q)||q==="TRANSFER_STATE_FAILED"||q==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!G5(u.policyEntity)?
void 0:uS3(t,F,u.videoEntity.lengthSeconds);q==="TRANSFER_STATE_PAUSED_BY_USER"&&t&&!_.E("dl_resume_click_killswitch")&&(u={offlineVideoEndpoint:{videoId:t,action:"ACTION_RESUME"}});t={shortViewCountText:J,publishedTimeText:Q,badges:Y,isWatched:e,navigationEndpoint:u,thumbnailOverlays:g}}else t=void 0;return t;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(q=QgA(F,t))if(u=_.Uf(F,t),g=_.ezM(F,t),u!=="TRANSFER_STATE_UNKNOWN"){t=jgq(q,u,g,t,_.dj(F));break a}t=void 0}return t;default:_.bz(new _.D0("Error: entitySelectorType defined but not matched in selector.",
F,q))}}}),
_.V("design:type",Object)],CO.prototype,"entityDrivenState",void 0);_.C([_.O({computed:"computeVideoTitleText(data)"}),_.V("design:type",Object)],CO.prototype,"videoTitleText",void 0);_.C([_.O({computed:"computeHasPlaylistThumbnail(data)"}),_.V("design:type",Object)],CO.prototype,"hasPlaylistThumbnail",void 0);_.C([_.O({computed:"computeNavigationEndpoint(data)"}),_.V("design:type",Object)],CO.prototype,"computedNavigationEndpoint",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],CO.prototype,"typographyBump",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("typographyBump"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],CO.prototype,"typographyBumpV2",null);_.C([_.Ms("#video-title"),_.V("design:type",HTMLElement)],CO.prototype,"videoTitle",void 0);_.C([_.Ms("#video-title-link"),_.V("design:type",HTMLElement)],CO.prototype,"videoTitleLink",void 0);
_.C([_.Ms("#thumbnail"),_.V("design:type",HTMLElement)],CO.prototype,"thumbnail",void 0);_.C([_.Ms("#dismissible"),_.V("design:type",HTMLElement)],CO.prototype,"JSC$16073_dismissibleMedia",void 0);_.C([_.W("data.menu"),_.V("design:type",Object),_.V("design:paramtypes",[])],CO.prototype,"lazyLoadMenu",null);_.C([_.W("data.menu"),_.V("design:type",Object),_.V("design:paramtypes",[])],CO.prototype,"immediateLoadMenu",null);
_.C([_.Wh("entityDrivenState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CO.prototype,"handleReloadDownloadsInfo",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CO.prototype,"onDataChanged",null);_.C([_.Wh("hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CO.prototype,"onHiddenChanged",null);
_.C([_.za("isDismissed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CO.prototype,"onIsDismissedChanged",null);_.C([_.za("metadataColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CO.prototype,"metadataColorChanged",null);_.C([_.EB("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],CO.prototype,"onMouseDown",null);
_.C([_.W("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],CO.prototype,"isHovered",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],CO.prototype,"useAvatar",null);_.C([_.W("data","entitySelectorType"),_.V("design:type",String),_.V("design:paramtypes",[])],CO.prototype,"mediaId",null);_.C([_.m({is:"ytd-rich-grid-media",disableElementRegistration:!0})],CO);
var aid=_.rc()(CO,"ytd-rich-grid-media",function(){if(K5C!==void 0)return K5C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return K5C=F},{mode:_.Nc("kevlar_poly_si_batch_j072")?1:2});var jUC;var dr=function(){var F=_.x.apply(this,arguments)||this;F.removeMaxWidth=!0;F.insetMetadata=!1;return F};
_.M(dr,_.x);_.l=dr.prototype;_.l.configureRendererStamper=function(){return{innerMenu:y6,outerMenu:Object.assign({},y6,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.onDataChanged=function(){var F,q=((F=this.data)==null?void 0:F.trackingParams)||"";q&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(q));var t;((t=this.dismissActionToReplayEntity)==null?0:t.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16078_inlinePreviewHoverListener=Vg({mediaRenderer:this,lockupElement:this.JSC$16078_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:VVL})};
_.l.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$16078_inlinePreviewHoverListener)==null||cZ(F)};
_.l.onRendererTap=function(){var F,q,t=(F=this.data)==null?void 0:(q=F.serviceEndpoints)==null?void 0:q[0];_.n(t,_.PO)&&this.componentBehavior.resolveCommand(t)};
_.l.onDetailsClick=function(F){var q,t=(q=this.data)==null?void 0:q.navigationEndpoint;t&&(_.tC(_.tY(F),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(t))};
_.l.onShow=function(){var F=this.data;F.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(F.onFirstVisibleCommand),delete F.onFirstVisibleCommand)};
_.JJ.Object.defineProperties(dr.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var F;return this.insetMetadata?void 0:(F=this.data)==null?void 0:F.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var F;return this.insetMetadata?(F=this.data)==null?void 0:F.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var F=this.data;if(F!=null&&F.badge&&(F=_.n(F.badge,slO))){var q,t,u;return[{metadataBadgeRenderer:{label:((q=F.label)==null?void 0:(t=q.runs)==null?void 0:t[0].text)||((u=F.label)==null?void 0:u.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var F=this.data;return Object.assign({},F.headline,{accessibility:F.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return this.isSlimShort?(F=this.computedTitle)==null?void 0:(q=F.accessibility)==null?void 0:(t=q.accessibilityData)==null?void 0:t.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.E("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$16078_inlinePreviewHoverListener)==null?0:si(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
dr.prototype.onDataChanged=dr.prototype.onDataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],dr.prototype,"componentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],dr.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.lr),_.V("design:type",Object)],dr.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],dr.prototype,"ytdReduxBehavior",void 0);_.C([_.Ms("ytd-thumbnail"),_.V("design:type",HTMLElement)],dr.prototype,"thumbnail",void 0);_.C([_.Ms("#dismissible"),_.V("design:type",HTMLElement)],dr.prototype,"JSC$16078_dismissibleMedia",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],dr.prototype,"removeMaxWidth",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],dr.prototype,"insetMetadata",void 0);_.C([_.O(),_.V("design:type",String)],dr.prototype,"dismissedContentId",void 0);_.C([_.O({selectorArgs:["dismissedContentId"],selector:Fzf}),_.V("design:type",Object)],dr.prototype,"dismissActionToReplayEntity",void 0);_.C([_.W("insetMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],dr.prototype,"thumbnailObjectFit",null);
_.C([_.W("data","insetMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],dr.prototype,"innerMenu",null);_.C([_.W("data","insetMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],dr.prototype,"outerMenu",null);_.C([_.O(),_.V("design:type",Object)],dr.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],dr.prototype,"miniMode",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dr.prototype,"onDataChanged",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],dr.prototype,"shortsBadges",null);_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dr.prototype,"isShort",null);
_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dr.prototype,"isSlimShort",null);_.C([_.W("data","isShort"),_.V("design:type",Object),_.V("design:paramtypes",[])],dr.prototype,"computedTitle",null);_.C([_.W("isSlimShort","computedTitle"),_.V("design:type",Object),_.V("design:paramtypes",[])],dr.prototype,"computedAccessibilityLabel",null);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dr.prototype,"shouldForce2By3",null);_.C([_.W("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dr.prototype,"isHovered",null);_.C([_.m({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],dr);
_.b(dr,"ytd-rich-grid-slim-media",function(){if(jUC!==void 0)return jUC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return jUC=F},{mode:_.Nc("kevlar_poly_si_batch_j063")?1:2});var c6f;var Fdf;var Vf=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(Vf,_.x);Vf.prototype.computeIcon=function(F){return F&&F.iconType?"yt-sys-icons:"+F.iconType.toLowerCase():""};
Vf.prototype.onMouseEnter=function(){this.isHovered=!0};
Vf.prototype.onMouseLeave=function(){this.isHovered=!1};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Vf.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Vf.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Vf.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],Vf.prototype,"isHovered",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Vf.prototype,"darkerDarkTheme",void 0);_.C([_.m({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Vf);
_.b(Vf,"ytd-expand-on-hover-card-renderer",function(){if(Fdf!==void 0)return Fdf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Fdf=F},{mode:1});var qQz,tbf=function(){if(qQz!==void 0)return qQz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return qQz=F};_.mo("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var UE=function(){var F=_.x.apply(this,arguments)||this;F.compactStyle=!1;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(UE,_.x);_.l=UE.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.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"}}}};
_.l.computeHideDot=function(F){return!(F&&F.subscriberCountText&&F.videoCountText)||this.compactStyle};
_.l.hasDualButtons=function(F){return F&&F.purchaseButton&&F.subscribeButton};
_.l.backgroundColorChanged=function(){if(this.data!==void 0){var F=this.data.backgroundColor;this.isDarkTheme&&(F=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=F!=null?_.hn(F):"transparent"}};
_.l.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.l.onTap=function(F){var q,t,u=((q=this.data)==null?void 0:q.navigationEndpoint)||((t=this.data)==null?void 0:t.serviceEndpoint);_.n(u,_.qR)&&(u&&_.sV().resolve(_.gN).resolveCommand(u,{form:{element:this.hostElement}}),F.preventDefault())};
_.l.computeChannelEndpoint=function(F){return _.n(F,_.qR)?null:F};
_.l.computeHrefEndpoint=function(F){return _.n(F,_.qR)?null:this.componentBehavior.computeHref_(F)};
_.l.computeChannelRendererStyle=function(F){return F};
_.l.computeIconSize=function(F){return F?108:136};
_.JJ.Object.defineProperties(UE,{template:{configurable:!0,enumerable:!0,get:function(){return tbf()}}});
UE.prototype.backgroundColorChanged=UE.prototype.backgroundColorChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],UE.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],UE.prototype,"componentBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],UE.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],UE.prototype,"isDarkTheme",void 0);_.C([_.O({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.V("design:type",String)],UE.prototype,"channelRendererStyle",void 0);_.C([_.O({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],UE.prototype,"dualButtons",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],UE.prototype,"useBiggerThumbs",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.pE("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],UE.prototype,"biggerThumbStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],UE.prototype,"compactStyle",void 0);_.C([_.za("data","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UE.prototype,"backgroundColorChanged",null);_.C([_.m({is:"ytd-channel-renderer",disableElementRegistration:!0})],UE);_.b(UE,"ytd-channel-renderer",function(){return tbf()},{mode:1});var ugd;var J2v;_.mo("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var S4=function(){var F=_.x.apply(this,arguments)||this;F.displayItemCount=2;F.collections=_.E("web_modern_collections_v2");F.hasPlaylistThumbnail=!1;F.stackThumbnailSize="large";return F};
_.M(S4,_.x);_.l=S4.prototype;_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.l.computeFirstVideos=function(F,q){return F&&q?F.slice(0,q):[]};
_.l.computeThumbnailWidth=function(F,q){return F?q==="BIG"?500:q==="MASSIVE"?600:q==="MEDIUM"?450:420:360};
_.l.computeThumbnailHeight=function(F,q){return F?q==="BIG"?280:q==="MASSIVE"?337:234:202};
_.l.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$16091_inlinePreviewHoverListener)==null||cZ(F)};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16091_inlinePreviewHoverListener=Vg({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:d01,thumbnailElement:this.thumbnail})};
_.l.computeHasPlaylistThumbnail=function(F){var q,t;if((((q=F.thumbnailRenderer)==null?0:q.playlistVideoThumbnailRenderer)||((t=F.thumbnailRenderer)==null?0:t.playlistCustomThumbnailRenderer))&&F.thumbnailOverlays)for(q=0;q<F.thumbnailOverlays.length;q++)if(t=void 0,(t=F.thumbnailOverlays[q])==null?0:t.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.JJ.Object.defineProperties(S4.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$16091_inlinePreviewHoverListener)==null?0:si(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
S4.prototype.dataChanged=S4.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],S4.prototype,"ytdLockupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],S4.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],S4.prototype,"displayItemCount",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],S4.prototype,"useBiggerThumbs",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.pE("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],S4.prototype,"biggerThumbsStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],S4.prototype,"collections",void 0);_.C([_.O({computed:"computeHasPlaylistThumbnail(data)"}),_.V("design:type",Object)],S4.prototype,"hasPlaylistThumbnail",void 0);_.C([_.O(),_.V("design:type",String)],S4.prototype,"stackThumbnailSize",void 0);_.C([_.Ms("ytd-thumbnail"),_.V("design:type",HTMLElement)],S4.prototype,"thumbnail",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],S4.prototype,"dataChanged",null);_.C([_.W("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],S4.prototype,"isHovered",null);_.C([_.m({is:"ytd-radio-renderer",disableElementRegistration:!0})],S4);
_.b(S4,"ytd-radio-renderer",function(){if(J2v!==void 0)return J2v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return J2v=F},{mode:_.Nc("kevlar_poly_si_batch_j058")?1:2});var sdE;_.mo("itemSectionRenderer","showRenderer","ytd-show-renderer");var h4=function(){return _.x.apply(this,arguments)||this};
_.M(h4,_.x);h4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
h4.prototype.computeThumbnailWidth=function(F){return F?360:246};
h4.prototype.computeUseProminentThumbs=function(F){return F};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],h4.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],h4.prototype,"isSearch",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.V("design:type",Boolean)],h4.prototype,"useProminentThumbs",void 0);_.C([_.m({is:"ytd-show-renderer",disableElementRegistration:!0})],h4);
_.b(h4,"ytd-show-renderer",function(){if(sdE!==void 0)return sdE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return sdE=F},{mode:1});_.mo("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var KO=function(){var F=_.x.apply(this,arguments)||this;F.isRichGrid=!1;return F};
_.M(KO,_.x);KO.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"}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],KO.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],KO.prototype,"isRichGrid",void 0);_.C([_.m({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],KO);
_.b(KO,"ytd-feed-entry-renderer",function(){if(ugd!==void 0)return ugd;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return ugd=F},{mode:1});var g_L;var Bg=function(){return _.x.apply(this,arguments)||this};
_.M(Bg,_.x);Bg.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.C([_.D(_.s9),_.V("design:type",Object)],Bg.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Bg.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Bg.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.bC,value:3}),_.V("design:type",Number)],Bg.prototype,"itemsPerRow",void 0);
_.C([_.m({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Bg);
_.b(Bg,"ytd-link-card-renderer",function(){if(g_L!==void 0)return g_L;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return g_L=F},{mode:1});var lhx;var LO=function(){return _.x.apply(this,arguments)||this};
_.M(LO,_.x);_.l=LO.prototype;_.l.configureRendererStamper=function(){return{"data.menu":y6,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.onRendererTap=function(F){if(!this.ytdDismissibleItemBehavior.isDismissed){var q,t=(q=this.data)==null?void 0:q.navigationEndpoint;t&&!_.tC(_.tY(F),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(t)?_.tC(_.tY(F),this.hostElement,["A"])||_.Q0(this.hostElement,"yt-navigate",{endpoint:t}):this.ytComponentBehavior.resolveCommand(t,{}))}};
_.l.maybeComputeHref=function(F){return this.ytComponentBehavior.computeHref_(F,!0)};
_.l.getNavigationCommand=function(F){return this.isNavigationCommand(F)?F:null};
_.l.isNavigationCommand=function(F){return F?_.n(F,_.Gr)||_.n(F,_.Fw)||_.n(F,_.KM)?!0:!1:!1};
LO.prototype.onRendererTap=LO.prototype.onRendererTap;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],LO.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],LO.prototype,"ytComponentBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],LO.prototype,"data",void 0);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],LO.prototype,"onRendererTap",null);_.C([_.m({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],LO);
_.b(LO,"ytd-lumiere-promo-item-image-renderer",function(){if(lhx!==void 0)return lhx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return lhx=F},{mode:1});var X4f;var fO=function(){return _.x.apply(this,arguments)||this};
_.M(fO,_.x);fO.prototype.computeLandscapeThumbnail=function(){var F;return((F=this.data)==null?void 0:F.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],fO.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],fO.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],fO.prototype,"miniMode",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.bC}),_.V("design:type",Number)],fO.prototype,"itemsPerRow",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.V("design:type",Boolean)],fO.prototype,"landscapeThumbnail",void 0);_.C([_.m({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],fO);
_.b(fO,"ytd-lumiere-shelf-details-renderer",function(){if(X4f!==void 0)return X4f;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return X4f=F},{mode:_.Nc("kevlar_poly_si_batch_j076")?1:2});var YQz;var af=function(){return _.x.apply(this,arguments)||this};
_.M(af,_.x);af.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],af.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],af.prototype,"data",void 0);_.C([_.m({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],af);
_.b(af,"ytd-primetime-promo-details-renderer",function(){if(YQz!==void 0)return YQz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return YQz=F},{mode:1});var p4E;var j4=function(){return _.x.apply(this,arguments)||this};
_.M(j4,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],j4.prototype,"data",void 0);_.C([_.m({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],j4);
_.b(j4,"ytd-panel-show-style-metadata-renderer",function(){if(p4E!==void 0)return p4E;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return p4E=F},{mode:1});var Qdr;var cg=function(){return _.x.apply(this,arguments)||this};
_.M(cg,_.x);_.l=cg.prototype;_.l.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.l.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.l.computeThumbnail=function(F){if(F)return F.smallFormFactorBackgroundThumbnail||F.largeFormFactorBackgroundThumbnail};
_.l.maybeComputeHref=function(F){return this.ytComponentBehavior.computeHref_(F,!0)};
_.l.isNavigationCommand=function(F){return F?_.n(F,_.Gr)||_.n(F,_.Fw)||_.n(F,_.KM)?!0:!1:!1};
_.l.getNavigationCommand=function(F){return this.isNavigationCommand(F)?F:null};
cg.prototype.onPanelTap=cg.prototype.onPanelTap;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],cg.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],cg.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],cg.prototype,"roundedContainer",void 0);_.C([_.O({reflectToAttribute:!0,value:_.E("web_modern_buttons")}),_.V("design:type",Boolean)],cg.prototype,"modernButtons",void 0);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cg.prototype,"onPanelTap",null);_.C([_.m({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],cg);
_.b(cg,"ytd-primetime-promo-panel-renderer",function(){if(Qdr!==void 0)return Qdr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Qdr=F},{mode:1});_.ei(_.ld(function(F){F=_.sk(F,{data:{},useFullWidth:!1});var q=F.data,t=F.useFullWidth;F={};return _.Z("teaser-card-view-model",{class:_.Ec("ytTeaserCardViewModelHost",(F.ytTeaserCardViewModelUseFullWidth=function(){return t()},F))},_.Z(_.R,{cond:function(){return q().onTap},
then:function(u){return _.Z(_.Ds,{className:"ytTeaserCardViewModelLink",command:u},_.Z("div",{class:"ytTeaserCardViewModelImageContainer"},_.Z(_.R,{cond:function(){return q().image},
then:function(J){return _.Z(_.sc,{data:J,className:"ytTeaserCardViewModelImage",alt:""})}})),_.Z("p",{class:"ytTeaserCardViewModelCaption"},function(){return q().caption}))}}))},"Tb"),"teaser-card-view-model",{props:{data:_.NH,
useFullWidth:_.NH}});var e1j=new _.pg("RICH_GRID_VIDEO_RENDERER_TOKEN");_.ei(_.ld(function(F){var q=F.data;var t=F.showYtInteractionInContent;var u=function(){return!!q().selectableFeedback};
F=_.X(_.N3(!1,void 0,"qxtgaf"));var J=F.next().value,g=F.next().value;_.v_(function(){var k=_.n(q().primaryButton,_.XZ);(k==null?0:k.isToggled)&&g(k.isToggled)});
F=_.zq(function(k){if(!u())return!1;if(J()){var z;var T=(z=q().selectableFeedback)==null?void 0:z.onDeselect}else{var P;T=(P=q().selectableFeedback)==null?void 0:P.onSelect}T&&_.L9(T,{form:{element:k.target}});g(!J());if(k=_.n(q().primaryButton,_.XZ))k.isToggled=J();return!1});
var Y=function(){if(!u()){var k,z=(k=q().loggingDirectives)==null?void 0:k.trackingParams;z&&_.vQ(_.sV().resolve(_.LA),z)}},Q=_.cIC(),e=function(){var k;
return u()?(k=q().selectableFeedback)==null?void 0:k.a11yLabel:void 0},r=function(){return u()?{toggled:J()}:{}},N=_.sV().resolve(_.JU(e1j)),w={};
return _.Z("yt-feedback-item-renderer",{class:_.Ec("ytFeedbackItemRendererHost",(w.ytFeedbackItemRendererSelectableFeedback=u,w)),"on:click":F,"on:keydown":Q,title:e,"aria-label":e,"aria-pressed":function(){return u()?J():void 0},
tabindex:function(){return u()?0:void 0},
role:function(){return u()?"button":void 0}},_.Z("div",{class:"ytFeedbackItemRendererContentContainer"},_.Z(_.Tl,{data:function(){return q().content}},{videoRenderer:function(k){return _.Z(N,{data:k.data,
showYtInteraction:t})},
lockupViewModel:function(k){return _.Z(_.x5,{data:k.data,containerType:2})}})),_.Z("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.Z(_.Tl,{data:function(){return q().primaryButton}},{toggleButtonViewModel:function(k){return _.Z(_.j9,{data:k.data,
buttonShapeOverrides:r,disableExplicitClickLogging:!0,onToggle:Y})}})))},"Ub"),"yt-feedback-item-renderer",{props:{data:_.NH,
showYtInteractionInContent:_.NH}});var Fy=function(){var F=_.x.apply(this,arguments)||this;F.isShortsGrid=!1;F.isCompactGrid=!1;F.isShortsPanelGrid=!1;F.renderedFromRichGrid=!1;F.isInFirstColumn=!1;F.noGutterMargins=!1;F.noBottomMargin=!1;F.halfBottomMargin=!1;F.isInlineGroupItem=!1;F.insetMetadata=!1;F.noBottomMarginInAds=!0;F.force16By9ThumbnailAspectRatio=!1;F.useCompactList=!1;F.containerType=2;F.thumbnailTargetWidth=9999;F.isResponsiveGrid=!1;F.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};F.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};F.hoverListener=F.hover.bind(F);F.leaveListener=F.leave.bind(F);F.highlighted=!1;F.JSC$16126_unsubscribeFromInlinePreviewIsActive=function(){};
return F};
_.M(Fy,_.x);_.l=Fy.prototype;_.l.computeContainerType=function(){return this.useCompactList?3:2};
_.l.computeThumbnailTargetWidth=function(){var F;return(F=this.itemWidth)!=null?F:9999};
_.l.updateIsInFirstColumn=function(){var F;this.isInFirstColumn=((F=this.data)==null?void 0:F.colIndex)===0};
_.l.observerContainerType=function(){if(this.lockup){var F=this.lockup;F.containerType=this.containerType;F.sizing=this.sizing;F.typographyBump=this.typographyBump;F.itemWidth=this.itemWidth}this.richGridMedia&&_.E("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.E("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.l.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]]"}}}}}};
_.l.leave=function(F){F=F.relatedTarget;var q=document.querySelector("ytd-video-preview");F&&q&&_.Zj(q).contains(F)||this.removeAndCleanupHighlight()};
_.l.hover=function(){var F;if(!this.highlighted&&(!_.E("web_enable_rich_item_on_focus_effect_client")||(F=this.data)!=null&&F.onFocusEffect)){var q,t;((q=this.data)==null?void 0:(t=q.onFocusEffect)==null?void 0:t.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(F=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:F,boxShadow:"0 0 0 10px "+F}));var u,J;((u=this.data)==null?void 0:(J=u.onFocusEffect)==null?
void 0:J.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.l.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};
_.l.registerHoverHighlightListeners=function(){var F=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16126_unsubscribeFromInlinePreviewIsActive=_.yL(_.u1(),_.uDu,function(q){F.highlighted&&!q&&F.removeAndCleanupHighlight()})};
_.l.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16126_unsubscribeFromInlinePreviewIsActive()};
_.l.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.l.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.l.getBackgroundColor=function(){var F,q,t=(F=this.data)==null?void 0:(q=F.onFocusEffect)==null?void 0:q.onFocusColor;if(t){if(document.documentElement.hasAttribute("dark")&&(t==null?0:t.darkTheme))return _.hn(t==null?void 0:t.darkTheme);if(t==null?0:t.lightTheme)return _.hn(t==null?void 0:t.lightTheme)}};
_.l.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var F=_.yb(),q,t,u;F&&((q=this.data)==null?0:q.trackingParams)&&((t=this.data)==null?void 0:t.colIndex)!=null&&((u=this.data)==null?void 0:u.rowIndex)!=null&&_.qp(F,_.Av(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.l.isSlimMediaRenderer=function(F){return!!_.n(F==null?void 0:F.content,_.Hiv)||!!_.n(F==null?void 0:F.content,IXw)||!!_.n(F==null?void 0:F.content,_.qC)||!!_.n(F==null?void 0:F.content,tR1)};
_.l.isPostRenderer=function(){var F,q;return!!_.n((F=this.data)==null?void 0:F.content,Jc1)||!!_.n((q=this.data)==null?void 0:q.content,sRC)};
_.l.computeIsGameCardShelf=function(){var F;return!!_.n((F=this.data)==null?void 0:F.content,rdx)};
_.l.computeIsMiniGameCardShelf=function(){var F,q;return!!_.n((F=this.data)==null?void 0:F.content,OgO)||!!_.n((q=this.data)==null?void 0:q.content,Pl1)};
_.l.computeIsTeaserCard=function(){var F;return!!_.n((F=this.data)==null?void 0:F.content,Pl1)};
_.l.computeIsSelectableFeedbackItem=function(){var F,q;return!((q=_.n((F=this.data)==null?void 0:F.content,_.AdC))==null||!q.selectableFeedback)};
_.l.computeContainsLumierePosters=function(){var F,q;return((q=_.n((F=this.data)==null?void 0:F.content,rcO))==null?void 0:q.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.l.computeIsExpandOnHoverCardShelf=function(){var F;return!!_.n((F=this.data)==null?void 0:F.content,RN1)};
_.l.computeIsLinkCardShelf=function(){var F;return!!_.n((F=this.data)==null?void 0:F.content,Z7C)};
_.l.computeIsReelItemStyleAvatarCircle=function(F){var q;return((q=_.n(F==null?void 0:F.content,_.qC))==null?void 0:q.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.l.computeIsLinkCardFullWidth=function(F,q){var t;return((t=_.n(F==null?void 0:F.content,Z7C))==null?void 0:t.useFullWidth)||q<=2};
_.JJ.Object.defineProperties(Fy.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.E("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.E("web_enable_rich_item_on_focus_effect_client")||_.E("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
Fy.prototype.richGridHoverHighlightChanged=Fy.prototype.richGridHoverHighlightChanged;Fy.prototype.observerContainerType=Fy.prototype.observerContainerType;Fy.prototype.updateIsInFirstColumn=Fy.prototype.updateIsInFirstColumn;_.C([_.D(_.s9),_.V("design:type",Object)],Fy.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Fy.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],Fy.prototype,"ytdLockupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Fy.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.V("design:type",Boolean)],Fy.prototype,"isPost",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.V("design:type",Boolean)],Fy.prototype,"containsLumierePosters",void 0);_.C([_.O({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.V("design:type",Boolean)],Fy.prototype,"isSlimMedia",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.V("design:type",Boolean)],Fy.prototype,"isGameCardShelf",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.V("design:type",Boolean)],Fy.prototype,"isMiniGameCardShelf",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.V("design:type",Boolean)],Fy.prototype,"isTeaserCard",void 0);_.C([_.O({computed:"computeIsSelectableFeedbackItem(data)"}),_.V("design:type",Boolean)],Fy.prototype,"isSelectableFeedbackItem",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"isShortsGrid",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Fy.prototype,"isSlimGrid",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"isCompactGrid",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"isShortsPanelGrid",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.V("design:type",Boolean)],Fy.prototype,"isExpandOnHoverCardShelf",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.V("design:type",Boolean)],Fy.prototype,"isLinkCardShelf",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.bC,value:3}),_.V("design:type",Number)],Fy.prototype,"itemsPerRow",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"renderedFromRichGrid",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"isInFirstColumn",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"noGutterMargins",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"noBottomMargin",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"halfBottomMargin",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"isInlineGroupItem",void 0);_.C([_.O(),_.V("design:type",Object)],Fy.prototype,"insetMetadata",void 0);_.C([_.O(),_.V("design:type",Object)],Fy.prototype,"noBottomMarginInAds",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Fy.prototype,"isShelfItem",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.V("design:type",Boolean)],Fy.prototype,"isReelItemStyleAvatarCircle",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.V("design:type",Boolean)],Fy.prototype,"isLinkCardFullWidth",void 0);_.C([_.O(),_.V("design:type",Object)],Fy.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"useCompactList",void 0);_.C([_.O(),_.V("design:type",String)],Fy.prototype,"sizing",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],Fy.prototype,"typographyBump",void 0);_.C([_.O(),_.V("design:type",Number)],Fy.prototype,"itemWidth",void 0);_.C([_.O(),_.V("design:type",Boolean)],Fy.prototype,"isHomeShelf",void 0);_.C([_.O(),_.V("design:type",Boolean)],Fy.prototype,"isHomeGrid",void 0);
_.C([_.Ms("yt-lockup-view-model"),_.V("design:type",HTMLElement)],Fy.prototype,"lockup",void 0);_.C([_.Ms("ytd-rich-grid-media"),_.V("design:type",HTMLElement)],Fy.prototype,"richGridMedia",void 0);_.C([_.Ms("ytd-ad-slot-renderer"),_.V("design:type",HTMLElement)],Fy.prototype,"adSlotRenderer",void 0);_.C([_.O({computed:"computeContainerType(useCompactList)"}),_.V("design:type",Object)],Fy.prototype,"containerType",void 0);
_.C([_.O({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.V("design:type",Object)],Fy.prototype,"thumbnailTargetWidth",void 0);_.C([_.W("showYtInteractionOnRichItem"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Fy.prototype,"showYtInteractionOnRichGridMedia",null);_.C([_.W("isSelectableFeedbackItem","richGridHoverHighlight"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Fy.prototype,"showYtInteractionOnRichItem",null);
_.C([_.W("typographyBump","isHomeGrid"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Fy.prototype,"richTypographyBump",null);_.C([_.O({reflectToAttribute:!0}),_.W("isShortsGrid","isCompactGrid"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Fy.prototype,"richGridHoverHighlight",null);_.C([_.W("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.V("design:type",Number),_.V("design:paramtypes",[])],Fy.prototype,"shortsLockupViewModelAspectRatio",null);
_.C([_.W("isInlineGroupItem"),_.V("design:type",Number),_.V("design:paramtypes",[])],Fy.prototype,"shortsLockupViewModelScrimStyle",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fy.prototype,"updateIsInFirstColumn",null);_.C([_.za("containerType","sizing","typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fy.prototype,"observerContainerType",null);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fy.prototype,"isResponsiveGrid",void 0);_.C([_.O(),_.V("design:type",Object)],Fy.prototype,"lockupExperiments",void 0);_.C([_.za("richGridHoverHighlight"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fy.prototype,"richGridHoverHighlightChanged",null);_.C([_.m({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Fy);
_.Zdx=_.rc()(Fy,"ytd-rich-item-renderer",function(){if(c6f===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);c6f=F}F=c6f;return F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var XIy={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var zIA=_.FK(_.oD("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var pIP={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},eI3={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},Zmq={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var R1f;var qu=function(){var F=_.x.apply(this,arguments)||this;F.useResponsiveGrid=!1;F.hidden=!1;F.isShowMoreHidden=!1;F.isShowLessHidden=!0;F.hasExpansionButton=!1;F.isInnerShelf=!1;F.allVideosCount=0;F.allPlaylistCount=0;F.haveSmartDownloadsCompleted=!1;F.restrictContentsOverflow=!1;F.firstShownIndex=0;F.horizontalOffset=0;F.atEnd=!0;F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
F.nextClick=function(){var q;(q=F.data)!=null&&q.contents&&(F.firstShownIndex+=F.currentElementsPerRow,F.updateHorizontalOffset(),F.updateHorizontalItemVisibility())};
F.previousClick=function(){var q;(q=F.data)!=null&&q.contents&&(F.firstShownIndex-=F.currentElementsPerRow,F.updateHorizontalOffset(),F.updateHorizontalItemVisibility())};
return F};
_.M(qu,_.x);_.l=qu.prototype;
_.l.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.bn("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.l.attached=function(){this.requestElementsPerRow()};
_.l.refreshGridLayoutNew=function(){var F;if((F=this.data)!=null&&F.contents&&this.containerWidth){var q;((q=this.data.responsiveContainerConfiguration)==null?0:q.responsiveSize)?(F=_.M0v(this.data.responsiveContainerConfiguration,this.containerWidth),F=_.hC(Object.assign({},F,{standardUnitMinWidth:this.standardUnitMinWidth}))):F=_.hC({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=F.typographyBump;if(this.elementsPerRow!==
F.numItems||this.gutter!==F.gutter)this.elementsPerRow=F.numItems,this.gutter=F.gutter,this.itemWidth=F.itemWidth,_.ws(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":F.gutter+"px"})}};
_.l.computeSizing=function(){if(!this.isLumiere){var F=_.Be$(this.data);if(F)return F;if(_.E("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.l.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.l.computeButton=function(F){var q=_.n(F,_.th);F=Object.assign({},_.n(F,_.th));return q?(F.text||(F.text={simpleText:F.tooltip}),F.style="STYLE_MONO_OUTLINE",F.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",F):q};
_.l.onRowIndexChange=function(){var F=_.yb(),q,t;((q=this.data)==null?0:q.trackingParams)&&((t=this.data)==null?void 0:t.rowIndex)!=null&&F&&_.qp(F,_.Av(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.l.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var F,q=((F=this.getRichItemRenderers()[0])==null?void 0:F.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*q;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.l.requestElementsPerRow=function(){_.Q0(this.hostElement,"yt-request-elements-per-row")};
_.l.onUpdateElementsPerRowAction=function(F,q,t,u,J,g){if(this.containerWidth!==g&&(this.containerWidth=g,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&F&&q&&t&&u&&J&&(this.elementsPerRow!==F||this.postsPerRow!==q||this.slimItemsPerRow!==t||this.gameCardsPerRow!==u||this.miniGameCardsPerRow!==J)&&(this.elementsPerRow=F,this.postsPerRow=q,this.slimItemsPerRow=t,this.gameCardsPerRow=u,this.miniGameCardsPerRow=J,this.updateItemVisibility())};
_.l.getRichItemRenderers=function(){return _.ep(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.l.updateItemVisibility=function(){var F=this;if(this.data&&this.data.contents){var q=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(u,J){var g;((g=F.data)==null?0:g.isExpanded)?(u.hidden=J>q-1,u.ytRendererBehavior.markDirty()):u.hidden=J>F.currentElementsPerRow-1||J>q-1});
var t=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||t||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||t||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.l.setHeightToSingleRow=function(){var F=this.getRichItemRenderers(),q=Number.parseInt(getComputedStyle(F[0]).marginBottom,10)||0;F=F.slice(0,this.currentElementsPerRow).reduce(function(t,u){return Math.max(t,u.getBoundingClientRect().height+q)},0);
this.contents.style.height=F+"px"};
_.l.focusNextExpandedItem=function(){var F;((F=this.data)==null?0:F.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.l.focusItem=function(F,q){var t=this.getRichItemRenderers();if(t[F]&&(F=t[F].querySelector(".focus-on-expand"))){if(q){var u;(u=t[this.currentElementsPerRow])==null||u.scrollIntoView({behavior:"smooth",block:"center"})}F.focus({preventScroll:!0})}};
_.l.onDataChange=function(){var F=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var q;if((q=this.data)==null?0:q.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.tJ(this,function(){F.updateItemVisibility()});
var t;if((t=this.data)==null?0:t.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.ws(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),q=0;q<this.data.contents.length;q++)t=_.n(this.data.contents[q],_.dR)||{},t.colIndex=q,t.rowIndex=this.data.rowIndex};
_.l.handleRerenderDownloadsData=function(){_.E("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.l.blockInlinePreview=function(F){var q=this,t;return _.p(function(u){(t=q.inlinePreviewIsEnabled)&&q.ytdReduxBehavior.dispatch(_.fNO(!1));return u.return(new Promise(function(J){F(function(){t&&q.ytdReduxBehavior.dispatch(_.fNO(!0));J()})}))})};
_.l.expandShelf=function(){var F=this;if(this.data){var q,t=(q=_.n(this.data.showMoreButton,_.th))==null?void 0:q.trackingParams;t&&_.vQ(_.DP(),t);this.data.isExpanded=!0;this.blockInlinePreview(function(u){F.setHeightToSingleRow();F.updateItemVisibility();F.contents.style.height=F.contents.scrollHeight+"px";_.mI.addJob(function(){F.contents.style.height="auto";F.focusNextExpandedItem();u()},2,200)})}};
_.l.collapseShelf=function(){var F=this;return _.p(function(q){if(q.nextAddress==1){if(!F.data)return q.return();F.data.isExpanded=!1;return q.yield(F.blockInlinePreview(function(t){F.contents.style.height=F.contents.scrollHeight+"px";F.setHeightToSingleRow();_.mI.addJob(function(){F.updateItemVisibility();F.contents.style.height="auto";t()},2,200)}),2)}_.Q0(F.hostElement,"yt-rich-shelf-renderer-collapse",F.data.trackingParams);
F.focusItem(0,!1);_.WA(q)})};
_.l.updateArrowButtonStatus=function(){var F=this.getRichItemRenderers().length;if(!_.E("web_rich_shelf_renderer_use_data_contents_killswitch")){var q,t;F=((q=this.data)==null?void 0:(t=q.contents)==null?void 0:t.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=F};
_.l.onChildElementFocus=function(F){this.hasChevronButtons&&(F=F.target.closest("#contents > *"),this.contents.contains(F)&&(F.offsetLeft<this.horizontalOffset?this.previousClick():F.offsetLeft+F.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.l.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.bn("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.l.updateHorizontalOffset=function(){var F=this.getRichItemRenderers(),q=F.length;if(!_.E("web_rich_shelf_renderer_use_data_contents_killswitch")){var t,u;q=((t=this.data)==null?void 0:(u=t.contents)==null?void 0:u.length)||0}var J;F=((J=F[0])==null?void 0:J.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>q?this.firstShownIndex=q-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*F};
_.l.isSlimMediaShelfRenderer=function(){var F,q,t,u=(t=_.n((F=this.data)==null?void 0:(q=F.contents)==null?void 0:q[0],_.dR))==null?void 0:t.content;return!!(_.n(u,_.Hiv)||_.n(u,IXw)||_.n(u,_.qC)||_.n(u,tR1))};
_.l.isGameCardShelf=function(){var F,q,t,u=(t=_.n((F=this.data)==null?void 0:(q=F.contents)==null?void 0:q[0],_.dR))==null?void 0:t.content;return!!_.n(u,rdx)};
_.l.isGnomeShelf=function(){var F,q,t,u=(t=_.n((F=this.data)==null?void 0:(q=F.contents)==null?void 0:q[0],_.dR))==null?void 0:t.content;return!!_.n(u,_.AdC)};
_.l.isMiniGameCardShelf=function(){var F,q,t,u=(t=_.n((F=this.data)==null?void 0:(q=F.contents)==null?void 0:q[0],_.dR))==null?void 0:t.content;return!!_.n(u,OgO)||!!_.n(u,Pl1)};
_.l.hasGameBoxArtAvatarStyle=function(){var F;return((F=this.data)==null?void 0:F.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.l.hasRoundedGameBoxArtAvatarStyle=function(){var F;return((F=this.data)==null?void 0:F.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.l.isShortsShelf=function(){var F,q,t,u=(t=_.n((F=this.data)==null?void 0:(q=F.contents)==null?void 0:q[0],_.dR))==null?void 0:t.content;return!!_.n(u,_.qC)||!!_.n(u,tR1)};
_.l.isPostShelfRenderer=function(){var F,q,t,u=(t=_.n((F=this.data)==null?void 0:(q=F.contents)==null?void 0:q[0],_.dR))==null?void 0:t.content;return!(!_.n(u,Jc1)&&!_.n(u,sRC))};
_.l.isLumiereShelf=function(){var F,q,t=_.n((F=this.data)==null?void 0:(q=F.contents)==null?void 0:q[0],_.dR);return!!_.n(t==null?void 0:t.content,rcO)};
_.l.isLumiereShelfWithPosters=function(){var F,q,t=_.n((F=this.data)==null?void 0:(q=F.contents)==null?void 0:q[0],_.dR),u;return((u=_.n(t==null?void 0:t.content,rcO))==null?void 0:u.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.l.isExpandOnHoverCardShelf=function(){var F,q,t,u=(t=_.n((F=this.data)==null?void 0:(q=F.contents)==null?void 0:q[0],_.dR))==null?void 0:t.content;return!!_.n(u,RN1)};
_.l.computeHasFeaturedBadge=function(){var F,q,t=_.n((F=this.data)==null?void 0:(q=F.badges)==null?void 0:q[0],_.vd1);return t?t.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.l.computeHasPaygatedFeaturedBadge=function(){var F,q,t=_.n((F=this.data)==null?void 0:(q=F.badges)==null?void 0:q[0],_.vd1);return t?(t==null?void 0:t.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.l.computeHeaderHidden=function(){var F,q,t,u,J,g;return!((F=this.data)==null?0:F.icon)&&!((q=this.data)==null?0:q.title)&&!((t=this.data)==null?0:t.subtitle)&&!((u=this.data)==null?0:u.thumbnail)&&!((J=this.data)==null?0:J.badges)&&!((g=this.data)==null?0:g.menu)};
_.l.showCtaButton=function(){var F;return!((F=this.data)==null||!F.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.l.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.l.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.l.computeForce16By9ThumbnailAspectRatio=function(){var F,q;return((F=this.data)==null?void 0:(q=F.responsiveContainerConfiguration)==null?void 0:q.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.l.onSectionReactiveDismissal=function(F,q,t){var u,J;var g=(u=this.data)==null?void 0:(J=u.targetingContext)==null?void 0:J.targetGroupId;this&&g&&q.targetGroupId&&g.includes(q.targetGroupId)?(u=this.rowIndex,F=u===void 0?!1:!(q.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&u<=F)):F=!1;F&&(this.hidden=t)};
_.JJ.Object.defineProperties(qu.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null?0:F.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var F=this.elementsPerRow;this.isPostShelfRenderer()?F=this.postsPerRow:this.isSlimMediaShelfRenderer()?F=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?F=this.slimItemsPerRow-1:this.isGameCardShelf()?F=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(F=this.miniGameCardsPerRow);return F}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.E("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null?0:F.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var F,q;return!((F=this.data)==null||!F.previousButton)&&!((q=this.data)==null||!q.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var F;return((F=_.sV().resolve(_.JC).getCurrentPage())==null?void 0:F.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u;return!((F=this.data)==null?0:(q=F.thumbnail)==null?0:(t=q.accessibility)==null?0:(u=t.accessibilityData)==null?0:u.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
qu.prototype.onChildElementFocus=qu.prototype.onChildElementFocus;qu.prototype.handleRerenderDownloadsData=qu.prototype.handleRerenderDownloadsData;qu.prototype.onDataChange=qu.prototype.onDataChange;qu.prototype.onRowIndexChange=qu.prototype.onRowIndexChange;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.lr),_.V("design:type",Object)],qu.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],qu.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],qu.prototype,"ytdReduxBehavior",void 0);_.C([_.O({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.V("design:type",Object)],qu.prototype,"useResponsiveGrid",void 0);_.C([_.O(),_.V("design:type",Object)],qu.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Number)],qu.prototype,"standardUnitMinWidth",void 0);_.C([_.O({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],qu.prototype,"elementsPerRow",void 0);_.C([_.O({value:3}),_.V("design:type",Number)],qu.prototype,"postsPerRow",void 0);_.C([_.O({value:6}),_.V("design:type",Number)],qu.prototype,"slimItemsPerRow",void 0);_.C([_.O({value:6}),_.V("design:type",Number)],qu.prototype,"gameCardsPerRow",void 0);
_.C([_.O({value:6}),_.V("design:type",Number)],qu.prototype,"miniGameCardsPerRow",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],qu.prototype,"hidden",void 0);_.C([_.O(),_.V("design:type",Object)],qu.prototype,"isShowMoreHidden",void 0);_.C([_.O(),_.V("design:type",Object)],qu.prototype,"isShowLessHidden",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],qu.prototype,"hasExpansionButton",void 0);
_.C([_.W("data.isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],qu.prototype,"isExpanded",null);_.C([_.W("data.isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],qu.prototype,"isCollapsed",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],qu.prototype,"isInnerShelf",void 0);_.C([_.O({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.V("design:type",Boolean)],qu.prototype,"isShorts",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.V("design:type",Boolean)],qu.prototype,"isLumiere",void 0);_.C([_.O({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.V("design:type",Boolean)],qu.prototype,"hasBoxArtThumbnailStyle",void 0);_.C([_.O({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.V("design:type",Boolean)],qu.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.V("design:type",Boolean)],qu.prototype,"hasFeaturedBadge",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.V("design:type",Boolean)],qu.prototype,"hasPaygatedFeaturedBadge",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.V("design:type",Boolean)],qu.prototype,"isHeaderHidden",void 0);
_.C([_.O({selector:_.YhA}),_.V("design:type",Object)],qu.prototype,"allVideosCount",void 0);_.C([_.O({selector:nX_}),_.V("design:type",Object)],qu.prototype,"allPlaylistCount",void 0);_.C([_.O({selector:k_o}),_.V("design:type",Object)],qu.prototype,"haveSmartDownloadsCompleted",void 0);
_.C([_.O({selectorArgs:["entitySelectorType"],selector:function(F,q){if(_.E("kevlar_modern_downloads_page")&&q&&q!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var t=F.entities;switch(q){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":q=_.IY(t);F=o4(q);var u=_.W5(q);t=_.mV(t);t=_.lC(rzM(u,t,q.length));return{contents:F,subtitle:t};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return t=_.IY(t),{contents:o4(t)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return t=
_.H5(t),{contents:o4(t)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return t=_.yho(t),{contents:o4(t)};default:_.bz(new _.D0("Error: entitySelectorType defined but not matched in selector.",F,q))}}}}),
_.V("design:type",Object)],qu.prototype,"entityDrivenRichShelfData",void 0);_.C([_.O({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.V("design:type",Boolean)],qu.prototype,"hasTopCtaButton",void 0);_.C([_.O({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.V("design:type",Boolean)],qu.prototype,"hasBottomCtaButton",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.V("design:type",Boolean)],qu.prototype,"force16By9ThumbnailAspectRatio",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],qu.prototype,"restrictContentsOverflow",void 0);_.C([_.O({selector:_.J8C}),_.V("design:type",Boolean)],qu.prototype,"inlinePreviewIsEnabled",void 0);_.C([_.O({computed:"computeSizing(data)"}),_.V("design:type",String)],qu.prototype,"sizing",void 0);
_.C([_.O(),_.V("design:type",Boolean)],qu.prototype,"typographyBump",void 0);_.C([_.O(),_.V("design:type",Number)],qu.prototype,"itemWidth",void 0);_.C([_.O(),_.V("design:type",Object)],qu.prototype,"firstShownIndex",void 0);_.C([_.O(),_.V("design:type",Object)],qu.prototype,"horizontalOffset",void 0);_.C([_.O(),_.V("design:type",Object)],qu.prototype,"atEnd",void 0);_.C([_.Ms("#contents"),_.V("design:type",HTMLElement)],qu.prototype,"contents",void 0);
_.C([_.za("data.rowIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qu.prototype,"onRowIndexChange",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qu.prototype,"onDataChange",null);_.C([_.za("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qu.prototype,"handleRerenderDownloadsData",null);
_.C([_.EB("focusin"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],qu.prototype,"onChildElementFocus",null);_.C([_.O({reflectToAttribute:!0}),_.W("data","isHomePage"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],qu.prototype,"isTruncated",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],qu.prototype,"showBottomDivider",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],qu.prototype,"hasChevronButtons",null);_.C([_.W("firstShownIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],qu.prototype,"previousButtonOverride",null);_.C([_.W("atEnd"),_.V("design:type",Object),_.V("design:paramtypes",[])],qu.prototype,"nextButtonOverride",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],qu.prototype,"isHomePage",null);
_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],qu.prototype,"thumbnailAriaHidden",null);_.C([_.W("data"),_.V("design:type",String),_.V("design:paramtypes",[])],qu.prototype,"entitySelectorType",null);_.C([_.m({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],qu);
_.r2J=_.rc()(qu,"ytd-rich-shelf-renderer",function(){if(R1f===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);R1f=F}F=R1f;return F},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var Nwz;_.ei(_.Tj,"yt-badge-view-model",{props:{data:_.NH,class:_.NH,workaroundShortsIsThumbnailBadge:_.NH,modern:_.NH}});_.ei(Ks1,"yt-slimline-survey-view-model",{props:{data:_.NH}});var te=function(){var F=_.x.apply(this,arguments)||this;F.tileLottieAnimationRef={};F.backgroundLottieAnimationRef={};F.isOnHoverBehaviorForLottieEnabled=!0;F.useBiggerShowcaseImage=_.E("enable_desktop_search_bigger_thumbs");F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return F};
_.M(te,_.x);_.l=te.prototype;_.l.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.l.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.l.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var F=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);F!==this.hasTile&&this.set("hasTile",F);F=this.hasLogo(this.data)||!!this.data.badgeText;F!==this.hasMetadata&&this.set("hasMetadata",F);F=this.data.overflowButton?!1:F;F!==this.showLogoImage&&this.set("showLogoImage",F);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.l.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.l.currentColorChanged=function(){this.updateButtonPalette()};
_.l.computeBackgroundStyle=function(F){if(F&&this.data){var q=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var t=_.RI((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);t&&q.push('background-image: url("'+t+'");')}var u;((u=F.basicColorData)==null?void 0:u.backgroundColor)!==void 0&&q.push("background-color: "+_.KG(F.basicColorData.backgroundColor)+";");return q.join("")}};
_.l.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&this.set("isDarkTheme",F)};
_.l.getCurrentLogo=function(F,q){if(F)return q?F.darkLogoImage:F.lightLogoImage};
_.l.getCurrentStaticTileImage=function(F,q){if(this.hasStaticTile(F))return F.darkTileImage?q?F.darkTileImage:F.tileImage:F.tileImage};
_.l.computeTitleStyle=function(F){if(this.data&&this.data.title&&F&&F.basicColorData&&F.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.hn(F.basicColorData.foregroundTitleColor)+";"};
_.l.computeSubtitleStyle=function(F){if(this.data&&this.data.subtitle&&F&&F.basicColorData&&F.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.hn(F.basicColorData.foregroundBodyColor)+";"};
_.l.computeSupplementalStyle=function(F){if(this.data&&this.data.supplementalText&&F&&F.supplementalTextColor!==void 0)return F=_.hn(F.supplementalTextColor),"color:"+F+";--yt-endpoint-color:"+F+";--yt-endpoint-hover-color:"+F+";--yt-endpoint-visited-color:"+F+";--yt-formatted-string-bold-font-weight:700;"};
_.l.computeDismissIconStyle=function(F){var q,t;if((F==null?0:(q=F.dismissButtonColorData)==null?0:q.foregroundTitleColor)&&(F==null?0:(t=F.dismissButtonColorData)==null?0:t.backgroundColor))return"--yt-button-color:"+_.KG(F.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.KG(F.dismissButtonColorData.backgroundColor)+";"};
_.l.computeOverflowIconStyle=function(F){var q,t;if((F==null?0:(q=F.dismissButtonColorData)==null?0:q.foregroundTitleColor)&&(F==null?0:(t=F.dismissButtonColorData)==null?0:t.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.KG(F.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.KG(F.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.KG(F.dismissButtonColorData.foregroundTitleColor)+";"};
_.l.computeBannerStyle=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.l.computeLocation=function(F){switch(F==null?void 0:F.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.l.shouldShowTileSection=function(F,q,t){return!this.shouldExpandLogo(F,q,t)&&q};
_.l.shouldShowExpandedLogoSection=function(F,q,t){return this.shouldExpandLogo(F,q,t)&&F!==void 0&&this.hasLogo(F)};
_.l.shouldExpandLogo=function(F,q,t){return F&&q?!1:t>=2};
_.l.hasStaticTile=function(F){return!(F==null||!F.tileImage)};
_.l.hasTileLottie=function(F){var q;return!!(F==null?0:(q=F.tileLottie)==null?0:q.url)};
_.l.hasLogo=function(F){return this.getCurrentLogo(F,this.isDarkTheme)!==void 0};
_.l.getLogoHeight=function(F){return this.logoWithPadding(F)?"26":"20"};
_.l.getExpandedLogoHeight=function(F){return this.logoWithPadding(F)?"31":"24"};
_.l.getLogoImageId=function(F){return this.logoWithPadding(F)?"logo-image-with-padding":"logo-image"};
_.l.getMaxTitleFontSize=function(F){return F.overrideTitleMaxFontSize?String(F.overrideTitleMaxFontSize):"36"};
_.l.hasBackgroundLottie=function(F){var q;return!!(F==null?0:(q=F.backgroundLottie)==null?0:q.url)};
_.l.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var F,q;(F=this.tileLottieAnimationRef)==null||(q=F.lottieEl)==null||q.play();var t,u;(t=this.backgroundLottieAnimationRef)==null||(u=t.lottieEl)==null||u.play()}};
_.l.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var F,q;(F=this.tileLottieAnimationRef)==null||(q=F.lottieEl)==null||q.pause();var t,u;(t=this.backgroundLottieAnimationRef)==null||(u=t.lottieEl)==null||u.pause()}};
_.l.pauseLottie=function(){var F,q;(F=this.tileLottieAnimationRef)==null||(q=F.lottieEl)==null||q.pause();var t,u;(t=this.backgroundLottieAnimationRef)==null||(u=t.lottieEl)==null||u.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.l.performPrimaryButtonAction=function(){var F,q,t;((F=this.data)==null?0:(q=F.primaryButton)==null?0:(t=q.buttonRenderer)==null?0:t.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.l.requestElementsPerRow=function(){_.Q0(this.hostElement,"yt-request-elements-per-row")};
_.l.updateButtonPalette=function(){if(this.data&&this.currentColorData){var F;((F=this.data.dismissButton)==null?0:F.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var q;if((q=this.data.primaryButton)==null?0:q.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 t;if((t=this.data.secondaryButton)==
null?0:t.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 u;((u=this.data.primaryButton)==null?0:u.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var J;((J=this.data.secondaryButton)==null?0:J.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var g;((g=this.data.primaryButton)==null?0:g.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.l.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var F=this.getTileLottieDataBasedOnTheme(),q,t;if(F.url!==((q=this.tileLottiePlayerProps)==null?void 0:(t=q.animationConfig)==null?void 0:t.path)){var u,J;(u=this.tileLottieAnimationRef)==null||(J=u.lottieEl)==null||J.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=F.settings)==null?0:g.autoplay);var Y,Q;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(Q=(Y=F.settings)==null?void 0:Y.autoplay)!=null?Q:!1,loop:this.getLottieLoopValue(F.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof F.url==="string"?this.tileLottiePlayerProps.animationConfig.path=F.url:this.tileLottiePlayerProps.animationConfig.animationData=F.url}}};
_.l.getOverflowButton=function(F){return _.n(F.overflowButton,l2z)};
_.l.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var F=this.getBackgroundLottieDataBasedOnTheme(),q,t;if(F.url!==((q=this.backgroundLottiePlayerProps)==null?void 0:(t=q.animationConfig)==null?void 0:t.path)){var u,J;(u=this.backgroundLottieAnimationRef)==null||(J=u.lottieEl)==null||J.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=F.settings)==null?0:g.autoplay);var Y,Q;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(Q=(Y=F.settings)==null?void 0:Y.autoplay)!=null?Q:!1,loop:this.getLottieLoopValue(F.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof F.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=F.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
F.url}}};
_.l.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var F;((F=this.tileLottieAnimationRef)==null?void 0:F.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var q;((q=this.backgroundLottieAnimationRef)==null?void 0:q.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.l.getTileLottieDataBasedOnTheme=function(){var F;if(this.isDarkTheme&&((F=this.data)==null?0:F.darkThemeTileLottie))return this.data.darkThemeTileLottie;var q;return((q=this.data)==null?0:q.tileLottie)?this.data.tileLottie:{}};
_.l.getBackgroundLottieDataBasedOnTheme=function(){var F;if(this.isDarkTheme&&((F=this.data)==null?0:F.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var q;return((q=this.data)==null?0:q.backgroundLottie)?this.data.backgroundLottie:{}};
_.l.onUpdateElementsPerRowAction=function(F){F&&this.elementsPerRow!==F&&(this.elementsPerRow=F)};
_.l.getLottieLoopValue=function(F){return F?F.loop!==void 0?F.loop:F.loopCount?F.loopCount-1:!0:!0};
_.l.logoWithPadding=function(F){var q,t,u;return(F=(q=this.getCurrentLogo(F,this.isDarkTheme))==null?void 0:(t=q.thumbnails)==null?void 0:(u=t[0])==null?void 0:u.height)&&F%31===0?!0:!1};
te.prototype.currentColorChanged=te.prototype.currentColorChanged;te.prototype.themeChanged=te.prototype.themeChanged;te.prototype.dataChanged=te.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],te.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],te.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],te.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],te.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],te.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],te.prototype,"primaryButton",void 0);_.C([_.O(),_.V("design:type",Object)],te.prototype,"secondaryButton",void 0);
_.C([_.O({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],te.prototype,"elementsPerRow",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],te.prototype,"isDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],te.prototype,"hasTile",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],te.prototype,"hasMetadata",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],te.prototype,"showLogoImage",void 0);_.C([_.O(),_.V("design:type",Object)],te.prototype,"currentColorData",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.V("design:type",String)],te.prototype,"bannerStyle",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.V("design:type",String)],te.prototype,"location",void 0);
_.C([_.O(),_.V("design:type",Object)],te.prototype,"tileLottiePlayerProps",void 0);_.C([_.O(),_.V("design:type",Object)],te.prototype,"tileLottieAnimationRef",void 0);_.C([_.O(),_.V("design:type",Object)],te.prototype,"backgroundLottiePlayerProps",void 0);_.C([_.O(),_.V("design:type",Object)],te.prototype,"backgroundLottieAnimationRef",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],te.prototype,"useBiggerShowcaseImage",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],te.prototype,"isHideEnclosingAction",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],te.prototype,"dataChanged",null);_.C([_.Wh("isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],te.prototype,"themeChanged",null);
_.C([_.Wh("currentColorData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],te.prototype,"currentColorChanged",null);_.C([_.m({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],te);
_.b(te,"ytd-statement-banner-renderer",function(){if(Nwz!==void 0)return Nwz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Nwz=F},{mode:1});var w4x;var uG=function(){var F=_.x.apply(this,arguments)||this;F.isSearch=!1;F.hideShelfHeader=!1;F.engagementPanel=!1;F.disableMouseScroll=!0;F.useFloorScrolling=!0;F.modernTypography=_.E("web_modern_typography");return F};
_.M(uG,_.x);uG.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.oD("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.oD("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
uG.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
uG.prototype.onDataChanged=uG.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],uG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],uG.prototype,"isSearch",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],uG.prototype,"hideShelfHeader",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],uG.prototype,"engagementPanel",void 0);_.C([_.O(),_.V("design:type",Object)],uG.prototype,"disableMouseScroll",void 0);_.C([_.O(),_.V("design:type",Object)],uG.prototype,"useFloorScrolling",void 0);_.C([_.O(),_.V("design:type",Object)],uG.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],uG.prototype,"modernTypography",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uG.prototype,"onDataChanged",null);_.C([_.m({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],uG);
_.b(uG,"ytd-reel-shelf-renderer",function(){if(w4x!==void 0)return w4x;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return w4x=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var ide;var kIe;kIe=_.LZ(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.E_C=_.RV(kIe);var z1e=_.ld(function(F){var q=F.data;F=F.useSmallFont;var t={},u={};return _.Z("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.Z(_.R,{cond:function(){return q().favicon},
then:function(J){return _.Z(_.sc,{data:J,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.Z("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.Z(_.rv,{text:function(){return q().title},
className:_.Ec("yt-channel-external-link-view-model-wiz__title",(t["yt-channel-external-link-view-model-wiz__title--title-small-font"]=F,t)),ellipsisTruncate:!0,userInput:!0}),_.Z(_.rv,{text:function(){return q().link},
className:_.Ec("yt-channel-external-link-view-model-wiz__link",(u["yt-channel-external-link-view-model-wiz__link--link-small-font"]=F,u)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Vb");
z1e.idomCompat=!0;_.ei(z1e,"yt-channel-external-link-view-model",{props:{data:_.NH,useSmallFont:_.NH}});_.mo("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Je=function(){var F=_.x.apply(this,arguments)||this;F.revealButtonClass="button";F.businessEmailDisplayState="HIDE_SECTION";return F};
_.M(Je,_.x);_.l=Je.prototype;_.l.refit=function(){var F=this;_.f1(function(){_.Zl(F.hostElement,"yt-refit-popups-action")});
_.tJ(this,function(){_.Zl(F.hostElement,"yt-refit-popups-action")})};
_.l.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.KB(_.E_C),this.businessEmailDisplayState="CAPTCHA")};
_.l.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"};
_.l.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.l.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"}}}};
_.l.computeEmailHref=function(F){return"mailto:"+F};
_.l.computeSafeUrl=function(F){if(F)return _.d$(F)};
_.l.linkEndpoint=function(F){return _.n(F.onTap,_.Uk)};
_.l.linkEndpointToHref=function(F){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(F))};
_.l.onYtServiceRequestCompleted=function(F){var q;if((q=F.detail.data)==null?0:q.businessEmail)this.businessEmail=F.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var t;if((t=F.detail.data)==null?0:t.errorMessage)this.businessEmailErrorMessage=F.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.l.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var F=this.JSC$16239_captchaTextarea.value;if(F){F={recaptcha_response_token:F,channel_id:this.metadata.channelId};var q=_.n(this.metadata.onBusinessEmailRevealClickCommand,_.Uk);q&&this.ytComponentBehavior.resolveCommand(q,{form:F})}}};
_.l.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.JJ.Object.defineProperties(Je.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var F;return _.n((F=this.data)==null?void 0:F.metadata,kwv)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.n(this.metadata.businessEmailRevealButton,_.gX)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var F=new URL(this.metadata.canonicalChannelUrl);return F.host+F.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.n(this.metadata.learnMoreOnTap,_.Uk)}}});
Je.prototype.onYtServiceRequestCompleted=Je.prototype.onYtServiceRequestCompleted;Je.prototype.businessEmailMetadataChanged=Je.prototype.businessEmailMetadataChanged;Je.prototype.refit=Je.prototype.refit;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Je.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Je.prototype,"ytRendererstamperBehavior",void 0);_.C([_.Ms("#g-recaptcha-response"),_.V("design:type",HTMLTextAreaElement)],Je.prototype,"JSC$16239_captchaTextarea",void 0);_.C([_.O(),_.V("design:type",Object)],Je.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Je.prototype,"revealButtonClass",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Je.prototype,"metadata",null);
_.C([_.W("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],Je.prototype,"revealButton",null);_.C([_.W("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],Je.prototype,"channelDisplayUrl",null);_.C([_.Wh("metadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Je.prototype,"refit",null);_.C([_.W("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],Je.prototype,"formattedDescription",null);
_.C([_.W("metadata","learnMoreCommand"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Je.prototype,"shouldRendereVerifiedPhoneStatus",null);_.C([_.W("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],Je.prototype,"learnMoreCommand",null);_.C([_.O(),_.V("design:type",String)],Je.prototype,"businessEmailDisplayState",void 0);_.C([_.O(),_.V("design:type",String)],Je.prototype,"businessEmail",void 0);
_.C([_.O(),_.V("design:type",String)],Je.prototype,"businessEmailErrorMessage",void 0);_.C([_.Wh("metadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Je.prototype,"businessEmailMetadataChanged",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Je.prototype,"onYtServiceRequestCompleted",null);_.C([_.m({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Je);
_.b(Je,"ytd-about-channel-renderer",function(){if(ide!==void 0)return ide;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return ide=F},{mode:1});var o_L;var sW=function(){return _.x.apply(this,arguments)||this};
_.M(sW,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],sW.prototype,"data",void 0);_.C([_.m({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],sW);
_.b(sW,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(o_L!==void 0)return o_L;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return o_L=F},{mode:1});var n_z;var gS=function(){return _.x.apply(this,arguments)||this};
_.M(gS,_.x);gS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],gS.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],gS.prototype,"aligment",void 0);_.C([_.m({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],gS);
_.b(gS,"ytd-channel-list-sub-menu-renderer",function(){if(n_z!==void 0)return n_z;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return n_z=
F},{mode:1});var MbC;var lG=function(){return _.x.apply(this,arguments)||this};
_.M(lG,_.x);lG.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}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],lG.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],lG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],lG.prototype,"data",void 0);_.C([_.m({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],lG);
_.b(lG,"ytd-channel-sub-menu-renderer",function(){if(MbC!==void 0)return MbC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return MbC=F},{mode:1});var Twn;var GIj;var Xy=function(){var F=_.x.apply(this,arguments)||this;F.isCompact=!1;return F};
_.M(Xy,_.x);_.JJ.Object.defineProperties(Xy.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var F,q;return((q=_.n((F=this.data)==null?void 0:F.endpoint,_.KM))==null?void 0:q.target)==="TARGET_NEW_WINDOW"}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Xy.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Xy.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Xy.prototype,"isCompact",void 0);_.C([_.W("isCompact"),_.V("design:type",Number),_.V("design:paramtypes",[])],Xy.prototype,"thumbnailWidth",null);
_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Xy.prototype,"openNewWindow",null);_.C([_.m({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Xy);
_.b(Xy,"ytd-media-lockup-renderer",function(){if(GIj!==void 0)return GIj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return GIj=F},{mode:1});var D2f;var Yk=function(){return _.x.apply(this,arguments)||this};
_.M(Yk,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Yk.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Yk.prototype,"data",void 0);_.C([_.m({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],Yk);
_.b(Yk,"ytd-structured-description-channel-lockup-renderer",function(){if(D2f!==void 0)return D2f;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return D2f=F},{mode:1});var WdE;var pK=function(){var F=_.x.apply(this,arguments)||this;F.isCompact=!1;F.collections=_.E("web_modern_collections_v2");F.collectionsStackColor=_.E("modernize_structured_description_playlist_lockups_v2");return F};
_.M(pK,_.x);pK.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:_.E("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.JJ.Object.defineProperties(pK.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u,J,g;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(F=this.data)==null?void 0:(q=F.thumbnail)==null?void 0:q.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(t=this.data)==null?void 0:(u=t.thumbnail)==null?void 0:u.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(J=this.data)==null?void 0:(g=J.thumbnail)==
null?void 0:g.vibrantColorPalette:void 0}}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],pK.prototype,"componentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],pK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],pK.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],pK.prototype,"showSidePanelThumbnailOverlay",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],pK.prototype,"isCompact",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],pK.prototype,"collections",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],pK.prototype,"collectionsStackColor",void 0);_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pK.prototype,"twoLineTitle",null);
_.C([_.W("data","collections","collectionsStackColor"),_.V("design:type",Object),_.V("design:paramtypes",[])],pK.prototype,"collectionStack",null);_.C([_.m({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],pK);
_.b(pK,"ytd-structured-description-playlist-lockup-renderer",function(){if(WdE!==void 0)return WdE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return WdE=F},{mode:1});var Odw;var Qi=function(){return _.x.apply(this,arguments)||this};
_.M(Qi,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Qi.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Qi.prototype,"data",void 0);_.C([_.m({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Qi);
_.b(Qi,"ytd-structured-description-video-lockup-renderer",function(){if(Odw!==void 0)return Odw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Odw=F},{mode:2});var en=function(){return _.x.apply(this,arguments)||this};
_.M(en,_.x);
en.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}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],en.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],en.prototype,"data",void 0);_.C([_.m({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],en);
_.b(en,"ytd-compact-infocard-renderer",function(){if(Twn!==void 0)return Twn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Twn=F},{mode:1});var PqL;var Z8=function(){var F=_.x.apply(this,arguments)||this;F.useModernCollectionsV2=_.E("web_modern_collections_v2");return F};
_.M(Z8,_.x);Z8.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.JJ.Object.defineProperties(Z8.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Z8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],Z8.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Z8.prototype,"ytdReduxBehavior",void 0);_.C([_.O({selector:_.Cp}),_.V("design:type",Object)],Z8.prototype,"isGridViewEnabled",void 0);
_.C([_.W("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Z8.prototype,"watchFeedBigThumbs",null);_.C([_.W("isGridViewEnabled","data"),_.O({reflectToAttribute:!0,value:"168"}),_.V("design:type",String),_.V("design:paramtypes",[])],Z8.prototype,"thumbnailWidth",null);_.C([_.W("isGridViewEnabled","data"),_.O({reflectToAttribute:!0,value:"94"}),_.V("design:type",String),_.V("design:paramtypes",[])],Z8.prototype,"customThumbnailSize",null);
_.C([_.O(),_.V("design:type",Object)],Z8.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Z8.prototype,"useModernCollectionsV2",void 0);_.C([_.m({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Z8);
_.b(Z8,"ytd-compact-playlist-renderer",function(){if(PqL!==void 0)return PqL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return PqL=F},{mode:1});var x2v;var RN=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");F.roundedContainer=!0;F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return F};
_.M(RN,_.x);_.l=RN.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.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"}}}};
_.l.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.l.computeViewStyle=function(F){return F.style?F.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.l.onUpdateElementsPerRowAction=function(F){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&F===1};
_.l.requestElementsPerRow=function(){_.Q0(this.hostElement,"yt-request-elements-per-row")};
RN.prototype.dataChanged=RN.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],RN.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],RN.prototype,"actionHandlerBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],RN.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],RN.prototype,"hideThumbnail",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.V("design:type",String)],RN.prototype,"viewStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],RN.prototype,"darkerDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],RN.prototype,"roundedContainer",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RN.prototype,"dataChanged",null);_.C([_.m({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],RN);
_.b(RN,"ytd-compact-promoted-item-renderer",function(){if(x2v!==void 0)return x2v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return x2v=F},{mode:1});var A2x;var rS=function(){var F=_.x.apply(this,arguments)||this;F.collections=_.E("web_modern_collections_v2");return F};
_.M(rS,_.x);rS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
rS.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
rS.prototype.onYtNavigate=function(F,q){var t=this;if(q.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",q)){var u=this.get("watchEndpoint.videoId",q.endpoint),J=_.Zl(this.hostElement,"yt-get-current-video-id-action")[0];_.E("kevlar_mix_handle_first_endpoint_different")&&u&&J&&u!==J||(F.stopPropagation(),_.l6().getPlayerPromise().then(function(g){if(g.getPlayerState()===0&&t.data.secondaryNavigationEndpoint)var Y=t.data.secondaryNavigationEndpoint;else{Y=
Object.assign({},q.endpoint);var Q=_.n(Y.commandMetadata,_.EH);Q&&(g=Math.floor(g.getCurrentTime()),Q.url=_.j6(Q.url,{t:g}),!_.E("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(Q=_.n(Y,_.Fw)))&&(Q.startTimeSeconds=g)}_.Q0(t.hostElement,"yt-navigate",{endpoint:Y})}))}};
_.JJ.Object.defineProperties(rS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u,J,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(F=this.data)==null?void 0:(q=F.thumbnail)==null?void 0:q.sampledThumbnailColor,vibrantColorPalette:(t=this.data)==null?void 0:(u=t.thumbnail)==null?void 0:u.vibrantColorPalette,darkColorPalette:(J=this.data)==null?void 0:(g=J.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
rS.prototype.onYtNavigate=rS.prototype.onYtNavigate;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.mu.YtEndpointBehavior),_.V("design:type",Object)],rS.prototype,"ytEndpointBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],rS.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.D(_.r8),_.V("design:type",Object)],rS.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],rS.prototype,"ytdReduxBehavior",void 0);_.C([_.O({selector:_.Cp}),_.V("design:type",Object)],rS.prototype,"isGridViewEnabled",void 0);_.C([_.W("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],rS.prototype,"watchFeedBigThumbs",null);
_.C([_.W("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],rS.prototype,"thumbnailWidth",null);_.C([_.O(),_.V("design:type",Object)],rS.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],rS.prototype,"collections",void 0);_.C([_.W("data","collections"),_.V("design:type",Object),_.V("design:paramtypes",[])],rS.prototype,"collectionStack",null);
_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],rS.prototype,"onYtNavigate",null);_.C([_.m({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],rS);
_.b(rS,"ytd-compact-radio-renderer",function(){if(A2x!==void 0)return A2x;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return A2x=F},{mode:1});var v_w;var Nu=function(){return _.x.apply(this,arguments)||this};
_.M(Nu,_.x);Nu.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Nu.prototype.computeRendererStyle=function(F){return F.style?F.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.C([_.O(),_.V("design:type",Object)],Nu.prototype,"data",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Nu.prototype,"rendererBehavior",void 0);_.C([_.O({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],Nu.prototype,"rendererStyle",void 0);_.C([_.m({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Nu);
_.b(Nu,"ytd-compact-text-promo-renderer",function(){if(v_w!==void 0)return v_w;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return v_w=F},{mode:1});var Ihr;var wS=function(){var F=_.x.apply(this,arguments)||this;F.isShortsStyle=!1;return F};
_.M(wS,_.x);_.l=wS.prototype;_.l.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"}}}};
_.l.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Q0(this.hostElement,"yt-disable-lockup-interaction"):_.Q0(this.hostElement,"yt-enable-lockup-interaction"))};
_.l.isMetaBlockEmpty=function(F){return!F||!F.longBylineText&&!F.shortBylineText&&!F.shortViewCountText&&!F.viewCountText};
_.l.computeHasOneLineTitle=function(F){return this.forceOneLineTitle||!(F==null||!F.buttons)};
_.l.computeDisableInteraction=function(){var F;return!((F=this.data)==null?0:F.navigationEndpoint)};
_.l.hasSingularTopStandaloneBadge=function(){var F;return!((F=this.data)==null||!F.topStandaloneBadge)};
_.JJ.Object.defineProperties(wS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var F;return this.hasSingularTopStandaloneBadge()?[(F=this.data)==null?void 0:F.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var F;return this.shouldShowTopBadges?((F=this.data)==null?void 0:F.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
wS.prototype.disableInteractionChanged=wS.prototype.disableInteractionChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],wS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],wS.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],wS.prototype,"ytdLockupBehavior",void 0);
_.C([_.D(_.s9),_.V("design:type",Object)],wS.prototype,"ytdReduxBehavior",void 0);_.C([_.O({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.V("design:type",Boolean)],wS.prototype,"metaBlockEmpty",void 0);_.C([_.O({selector:_.Cp}),_.V("design:type",Object)],wS.prototype,"isGridViewEnabled",void 0);_.C([_.W("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wS.prototype,"watchFeedBigThumbs",null);
_.C([_.W("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],wS.prototype,"thumbnailWidth",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],wS.prototype,"isShortsStyle",void 0);_.C([_.O(),_.V("design:type",Object)],wS.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.V("design:type",Boolean)],wS.prototype,"hasOneLineTitle",void 0);
_.C([_.O(),_.V("design:type",Boolean)],wS.prototype,"hideThumbnail",void 0);_.C([_.O(),_.V("design:type",Boolean)],wS.prototype,"forceOneLineTitle",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.V("design:type",Boolean)],wS.prototype,"disableInteraction",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],wS.prototype,"musicMetadataVideoLockup",void 0);
_.C([_.za("disableInteraction"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wS.prototype,"disableInteractionChanged",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wS.prototype,"shouldShowTopBadges",null);_.C([_.W("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],wS.prototype,"topBadges",null);
_.C([_.W("shouldShowTopBadges","data"),_.V("design:type",Array),_.V("design:paramtypes",[])],wS.prototype,"inlineMetadataBadges",null);_.C([_.W("shouldShowTopBadges"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wS.prototype,"shouldShowBadgesBelowMetadata",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],wS.prototype,"compactTitleClass",null);_.C([_.m({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],wS);
_.b(wS,"ytd-compact-video-renderer",function(){if(Ihr!==void 0)return Ihr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Ihr=F},{mode:_.Nc("kevlar_poly_si_batch_j067")?1:2});var HdJ;_.mo("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var iG=function(){return _.x.apply(this,arguments)||this};
_.M(iG,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],iG.prototype,"data",void 0);_.C([_.m({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],iG);
_.b(iG,"ytd-counterfactual-renderer",function(){if(HdJ!==void 0)return HdJ;var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return HdJ=F},{mode:1});var m2n;var kk=function(){var F=_.x.apply(this,arguments)||this;F.hidden=!1;return F};
_.M(kk,_.x);kk.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.sV().resolve(_.gN).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
kk.prototype.computeHidden=function(F){return!!F};
_.JJ.Object.defineProperties(kk.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}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],kk.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.V("design:type",Object)],kk.prototype,"hidden",void 0);_.C([_.W("data.label"),_.V("design:type",String),_.V("design:paramtypes",[])],kk.prototype,"label",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],kk.prototype,"value",null);
_.C([_.m({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],kk);
_.b(kk,"ytd-dropdown-item-renderer",function(){if(m2n!==void 0)return m2n;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return m2n=F},{mode:1});var $2E;var bdz;var EW=function(){return _.x.apply(this,arguments)||this};
_.M(EW,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],EW.prototype,"data",void 0);_.C([_.O({computed:"getSimpleString(data.label)"}),_.V("design:type",String)],EW.prototype,"label",void 0);_.C([_.m({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],EW);
_.b(EW,"ytd-navigation-dropdown-item-renderer",function(){if(bdz!==void 0)return bdz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return bdz=F},{mode:1});var z6=function(){var F=_.x.apply(this,arguments)||this;F.disabled=!1;F.value="";F.noLabelFloat=!1;F.noUnderline=!1;F.usePrimaryColor=!1;F.hasBackground=!1;F.verticalAlign="top";F.autosize=!1;F.minAutosizeWidth=100;F.autosizeFont="14px Roboto";return F};
_.M(z6,_.x);_.l=z6.prototype;_.l.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"}}}};
_.l.open=function(){this.inputEl.open()};
_.l.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.l.dataChanged=function(){this.reset()};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("value-changed",this.value))};
_.l.stopPropagation=function(F){F.stopPropagation()};
_.l.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var F=this.canvas.getContext("2d");F&&(F.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(F.measureText(this.inputEl.value).width)+24)+"px")}};
_.l.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var F=0,q=this.data.entries.length;F<q;F++){var t=this.data.entries[F],u;for(u in t)if(t.hasOwnProperty(u)){var J=t[u];if("isSelected"in J&&J.isSelected)return"stringValue"in J?J.stringValue||"":"int32Value"in J?J.int32Value||0:0}}return null};
_.l.updateValueFromBinding=function(F){this.value=F.detail.value};
_.JJ.Object.defineProperties(z6.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var F=0,q=this.data.entries.length;F<q;F++){var t=this.data.entries[F],u;for(u in t)if(t.hasOwnProperty(u)){var J=t[u];if("isSelected"in J&&J.isSelected&&"label"in J)return this.ytRendererBehavior.getSimpleString(J.label)}}return null}}});
z6.prototype.autoSizeLabel=z6.prototype.autoSizeLabel;z6.prototype.stopPropagation=z6.prototype.stopPropagation;z6.prototype.valueChangedForBinding=z6.prototype.valueChangedForBinding;z6.prototype.dataChanged=z6.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],z6.prototype,"ytRendererStamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],z6.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],z6.prototype,"disabled",void 0);_.C([_.O(),_.V("design:type",Object)],z6.prototype,"value",void 0);_.C([_.O(),_.V("design:type",Object)],z6.prototype,"noLabelFloat",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],z6.prototype,"noUnderline",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],z6.prototype,"theme",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],z6.prototype,"usePrimaryColor",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],z6.prototype,"hasBackground",void 0);_.C([_.O(),_.V("design:type",Object)],z6.prototype,"verticalAlign",void 0);_.C([_.O(),_.V("design:type",Object)],z6.prototype,"autosize",void 0);_.C([_.O(),_.V("design:type",Object)],z6.prototype,"minAutosizeWidth",void 0);_.C([_.O(),_.V("design:type",Object)],z6.prototype,"autosizeFont",void 0);
_.C([_.Ms("#entries"),_.V("design:type",Object)],z6.prototype,"entries",void 0);_.C([_.Ms("#input"),_.V("design:type",Object)],z6.prototype,"inputEl",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z6.prototype,"dataChanged",null);_.C([_.Wh("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z6.prototype,"valueChangedForBinding",null);
_.C([_.EB("iron-overlay-opened"),_.EB("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],z6.prototype,"stopPropagation",null);_.C([_.EB("iron-select"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z6.prototype,"autoSizeLabel",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],z6.prototype,"label",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],z6);
_.b(z6,"ytd-dropdown-renderer",function(){if($2E!==void 0)return $2E;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return $2E=F},{mode:1});var y21;var oN=function(){var F=_.x.apply(this,arguments)||this;F.isConstrainedList=!1;return F};
_.M(oN,_.x);oN.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"}}}};
oN.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
oN.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
oN.prototype.computeViewAllHidden=function(F,q){return F||!q.viewAllEndpoint};
oN.prototype.fillRestIfNoShowMore=oN.prototype.fillRestIfNoShowMore;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.DO.YtLazyListBehavior),_.V("design:type",Object)],oN.prototype,"ytLazyListBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],oN.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],oN.prototype,"isConstrainedList",void 0);_.C([_.Wh("data","canShowMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oN.prototype,"fillRestIfNoShowMore",null);_.C([_.m({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],oN);
_.b(oN,"ytd-expanded-shelf-contents-renderer",function(){if(y21!==void 0)return y21;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return y21=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var CqL;var nK=function(){return _.x.apply(this,arguments)||this};
_.M(nK,_.x);nK.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}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],nK.prototype,"data",void 0);_.C([_.m({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],nK);
_.b(nK,"ytd-feed-channel-filter-header-renderer",function(){if(CqL!==void 0)return CqL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return CqL=F},{mode:1});var d2L;var VbL;var U2n;var Mu=function(){return _.x.apply(this,arguments)||this};
_.M(Mu,_.x);_.l=Mu.prototype;_.l.onClick=function(F){var q,t=(q=this.data)==null?void 0:q.sectionEndpoint;!_.tC(_.tY(F),this.hostElement,["A".toString()])&&t&&_.Q0(this.hostElement,"yt-navigate",{endpoint:t})};
_.l.computeHasSectionEndpoint=function(F){return(F==null?void 0:F.sectionEndpoint)!==void 0};
_.l.computeShowHeaderAsLink=function(F){return(F==null?void 0:F.header)!==void 0&&(F==null?void 0:F.sectionEndpoint)!==void 0};
_.l.computeShowSubheaderAsLink=function(F){return(F==null?void 0:F.subheader)!==void 0&&(F==null?void 0:F.sectionEndpoint)!==void 0&&(F==null?void 0:F.header)===void 0};
_.l.getHeaderAsLinkClass=function(F){var q=[],t;(F==null?0:(t=F.headerIcon)==null?0:t.iconType)&&q.push("header-link-active");return q.join(" ")};
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Mu.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Mu.prototype,"data",void 0);
_.C([_.O({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Mu.prototype,"hasSectionEndpoint",void 0);_.C([_.O({computed:"computeShowHeaderAsLink(data)"}),_.V("design:type",Boolean)],Mu.prototype,"showHeaderAsLink",void 0);_.C([_.O({computed:"computeShowSubheaderAsLink(data)"}),_.V("design:type",Boolean)],Mu.prototype,"showSubheaderAsLink",void 0);_.C([_.m({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Mu);
_.b(Mu,"ytd-medical-panel-section-renderer",function(){if(U2n!==void 0)return U2n;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return U2n=F},{mode:1});var T6=function(){var F=_.x.apply(this,arguments)||this;F.isExpanded=!1;F.roundedContainer=!0;F.skipRoundingTop=!1;F.toggleExpandableSection=function(){F.isExpanded=!F.isExpanded};
return F};
_.M(T6,_.x);
T6.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]]"}}}}}};
T6.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
T6.prototype.dataChanged=T6.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],T6.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],T6.prototype,"isExpanded",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],T6.prototype,"roundedContainer",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],T6.prototype,"skipRoundingTop",void 0);_.C([_.O(),_.V("design:type",Object)],T6.prototype,"toggleExpandableSection",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T6.prototype,"dataChanged",null);_.C([_.m({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],T6);
_.b(T6,"ytd-medical-panel-content-renderer",function(){if(VbL!==void 0)return VbL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return VbL=F},{mode:1});_.mo("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var G6=function(){var F=_.x.apply(this,arguments)||this;F.roundedContainer=!0;F.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");F.hasTitle=!1;F.linkIcon="OPEN_IN_NEW";F.isDismissed=!1;return F};
_.M(G6,_.x);
G6.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"}}}};
G6.prototype.computeHasTitle=function(F){return!(F==null||!F.title)};
G6.prototype.onClick=function(F){var q,t=(q=this.data)==null?void 0:q.headerEndpoint;!_.tC(_.tY(F),this.hostElement,["BUTTON".toString()])&&t&&this.ytComponentBehavior.resolveCommand(t)};
_.JJ.Object.defineProperties(G6.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:F.disableBottomDivider)||!((q=this.data)==null?0:q.title)}}});
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],G6.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],G6.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],G6.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],G6.prototype,"roundedContainer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],G6.prototype,"amsterdamEnabled",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.V("design:type",Object)],G6.prototype,"hasTitle",void 0);
_.C([_.O({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.background"),_.V("design:type",Object),_.V("design:paramtypes",[])],G6.prototype,"background",null);_.C([_.O({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.titleStyle"),_.V("design:type",Object),_.V("design:paramtypes",[])],G6.prototype,"titleStyle",null);
_.C([_.O({type:_.E("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.W("data.titleStyle"),_.V("design:type",Object),_.V("design:paramtypes",[])],G6.prototype,"showLinkIcon",null);_.C([_.O(),_.V("design:type",String)],G6.prototype,"linkIcon",void 0);_.C([_.O({type:_.E("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],G6.prototype,"hideDivider",null);
_.C([_.O({selectorArgs:["data.dismissStateEntityKey"],selector:function(F,q){F=_.iC(F.entities,"dismissState",q);return(F==null?void 0:F.isDismissed)||(F==null?void 0:F.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(F==null?void 0:F.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.V("design:type",Object)],G6.prototype,"isDismissed",void 0);_.C([_.m({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],G6);
_.b(G6,"ytd-info-panel-container-renderer",function(){if(d2L!==void 0)return d2L;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return d2L=F},{mode:1});var SQd;_.mo("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var D8=function(){var F=_.x.apply(this,arguments)||this;F.modernTypography=_.E("web_modern_typography");return F};
_.M(D8,_.x);D8.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
D8.prototype.computeStyle=function(F){return F?F:""};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],D8.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.V("design:type",String)],D8.prototype,"titleStyle",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],D8.prototype,"modernTypography",void 0);_.C([_.m({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],D8);
_.b(D8,"ytd-item-section-header-renderer",function(){if(SQd!==void 0)return SQd;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return SQd=F},{mode:1});var h1J;var KdO,Bwj=function(){return KdO!==void 0?KdO:KdO=document.createElement("template")};
document.head.appendChild(Bwj().content);var LdJ;_.WF=new _.pg("VOTING_ANIMATION_CONTROLLER_TOKEN");var ahO=_.ld(function(F){var q=F.data;var t=_.FG("div"),u=_.FG("div");F=_.X(_.N3("VOTE_STATUS_NONE",void 0,"YPH5mf"));var J=F.next().value,g=F.next().value,Y=_.nH(TbA,function(){var k;return(k=q())==null?void 0:k.entityKey}),Q=_.E("web_enable_voting_animation")||_.E("enable_music_web_cairo_voting_animation");
_.v_(function(){var k;((k=q().initialState)==null?0:k.status)&&g(q().initialState.status)});
var e=function(){var k,z,T=(z=(k=q().initialState)==null?void 0:k.votes)!=null?z:0,P;k=(P=q().initialState)==null?void 0:P.status;return k==="VOTE_STATUS_UPVOTED"?T-1:k==="VOTE_STATUS_DOWNVOTED"?T+1:T},r=function(){return J()==="VOTE_STATUS_UPVOTED"?e()+1:J()==="VOTE_STATUS_DOWNVOTED"?e()-1:e()},N=function(k){var z=k?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
g(z);var T=r(),P=_.sV().resolve(_.JU(_.WF)),v=Y();v&&(k&&(v==null?0:v.upvoteDefaultButtonOnTap)?_.L9(v.upvoteDefaultButtonOnTap,{form:{element:t.value},disableClickTracking:!0}):(v==null?0:v.upvoteToggledButtonOnTap)&&_.L9(v.upvoteToggledButtonOnTap,{form:{element:t.value},disableClickTracking:!0}));var H;k=(H=v==null?void 0:v.enableOptimisticReordering)!=null?H:q().enableOptimisticReordering;Q&&P&&q().itemId&&k&&fhf(P,q().itemId,T,z)},w=function(k){var z=k?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
g(z);var T=r(),P=_.sV().resolve(_.JU(_.WF)),v=Y();v&&(k&&(v==null?0:v.downvoteDefaultButtonOnTap)?_.L9(v.downvoteDefaultButtonOnTap,{form:{element:u.value},disableClickTracking:!0}):(v==null?0:v.downvoteToggledButtonOnTap)&&_.L9(v.downvoteToggledButtonOnTap,{form:{element:u.value},disableClickTracking:!0}));var H;k=(H=v==null?void 0:v.enableOptimisticReordering)!=null?H:q().enableOptimisticReordering;Q&&P&&q().itemId&&k&&fhf(P,q().itemId,T,z)};
F={};F=_.Ec("ytVotingViewModelVoteCount",(F.ytVotingViewModelVoteCountDisabled=function(){return q().isDisabled},F));
return _.Z("voting-view-model",{class:"ytVotingViewModelHost"},_.Z("div",{el:t},_.Z(_.Tl,{data:function(){var k=_.n(q().upvoteButton,_.XZ);return{toggleButtonViewModel:Object.assign({},k,{isToggled:J()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(k){return _.Z(_.j9,{data:k.data,
onToggle:N})}})),_.Z("div",{class:F},function(){var k,z,T;
return J()==="VOTE_STATUS_UPVOTED"?(k=q().initialState)==null?void 0:k.compactVotesUpvoted:J()==="VOTE_STATUS_DOWNVOTED"?(z=q().initialState)==null?void 0:z.compactVotesDownvoted:(T=q().initialState)==null?void 0:T.compactVotes}),_.Z("div",{el:u},_.Z(_.Tl,{data:function(){var k=_.n(q().downvoteButton,_.XZ);
return{toggleButtonViewModel:Object.assign({},k,{isToggled:J()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(k){return _.Z(_.j9,{data:k.data,
onToggle:w})}})))},"Wb");_.ei(_.ld(function(F){var q=F.data;return _.Z("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.Z("div",{class:_.Ec("ytEngagementBarViewModelEngagementBarWrapper",F.className)},_.Z(_.Tl,{data:function(){return q().actions}},{votingViewModel:ahO})))},"Xb"),"engagement-bar-view-model",{props:{data:_.NH,
className:_.NH}});var OW=function(){var F=_.x.apply(this,arguments)||this;F.playlistVotingAnimationEnabled=_.E("web_enable_voting_animation");F.downloadProgress=0;F.transferState="TRANSFER_STATE_UNKNOWN";F.downloadState="DOWNLOAD_STATE_UNKNOWN";F.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";F.offlineVideoPolicyExpirationTimestamp=0;return F};
_.M(OW,_.x);_.l=OW.prototype;_.l.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"}}}};
_.l.canReorderChanged=function(){this.persistentDragHandle=_.E("kevlar_playlist_drag_handles")&&this.canReorder};
_.l.onDrag=function(){if(this.thumbnail){var F=_.ep(this.thumbnail).querySelector("yt-image");F&&(F.shouldRenderLazy=!1)}};
_.l.onMenuOverlayChanged=function(F,q){this.menuOpened=q};
_.l.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.l.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.l.onContentsTap=function(F){var q,t=(q=this.data)==null?void 0:q.serviceEndpoints;if(t&&t.length===1&&_.n(t[0],AsW)&&!_.tC(_.tY(F),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(t[0]);else{var u;(q=(u=this.data)==null?void 0:u.navigationEndpoint)&&_.E("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?jdJ(_.sV().resolve(_.m4),q):(_.$A().playlistSuggestionsShelfActivation=
!0,_.c2C(_.sV().resolve(_.m4),q)):q&&!_.tC(_.tY(F),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.E("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Q0(this.hostElement,"yt-navigate",{endpoint:q}):this.ytComponentBehavior.resolveCommand(q))}};
_.l.computeStyle=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.l.computeThumbnailWidth=function(F){return F==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.l.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=c8$(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))}};
_.l.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.l.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.l.dataChanged=function(){if(this.data){var F,q,t,u=((F=this.downloadRenderData)==null?void 0:F.badges)&&((q=this.downloadRenderData)==null?void 0:q.badges)!==((t=this.data)==null?void 0:t.badges),J,g,Y;F=((J=this.downloadRenderData)==null?void 0:J.thumbnailOverlays)&&((g=this.downloadRenderData)==null?void 0:g.thumbnailOverlays)!==((Y=this.data)==null?void 0:Y.thumbnailOverlays);(!this.downloadRenderData||u||F)&&this.downloadStateChanged()}};
_.l.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var F,q,t=(F=this.data.menu)==null?void 0:(q=F.menuRenderer)==null?void 0:q.items;if(t)for(F=_.X(t),q=F.next();!q.done;q=F.next())if(q=q.value,t=void 0,_.n((t=q.menuServiceItemRenderer)==null?void 0:t.serviceEndpoint,_.cX)){var u=t=void 0,J=void 0;q=(t=q)==null?void 0:(u=t.menuServiceItemRenderer)==null?void 0:(J=u.serviceEndpoint)==null?void 0:J.playlistEditEndpoint;J=u=void 0;if(t=(u=q)==null?void 0:(J=u.actions)==null?void 0:
J[0])u=void 0,t.setVideoId=(u=this.data)==null?void 0:u.setVideoId;J=u=t=void 0;if(q=(t=q)==null?void 0:(u=t.clientActions)==null?void 0:(J=u[0])==null?void 0:J.playlistRemoveVideosAction)t=void 0,q.setVideoIds=[(t=this.data)==null?void 0:t.setVideoId]}}};
_.JJ.Object.defineProperties(OW.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
OW.prototype.setVideoIdChanged=OW.prototype.setVideoIdChanged;OW.prototype.dataChanged=OW.prototype.dataChanged;OW.prototype.downloadStateChanged=OW.prototype.downloadStateChanged;OW.prototype.onMenuOverlayChanged=OW.prototype.onMenuOverlayChanged;OW.prototype.canReorderChanged=OW.prototype.canReorderChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],OW.prototype,"ytdReduxBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],OW.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],OW.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],OW.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],OW.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],OW.prototype,"canReorder",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],OW.prototype,"menuOpened",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],OW.prototype,"handleIsHovered",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],OW.prototype,"persistentDragHandle",void 0);_.C([_.O(),_.V("design:type",Object)],OW.prototype,"downloadRenderData",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],OW.prototype,"styleType",void 0);_.C([_.O({computed:"computeThumbnailWidth(data.style)"}),_.V("design:type",Number)],OW.prototype,"thumbnailWidth",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],OW.prototype,"isDownloads",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],OW.prototype,"playlistVotingAnimationEnabled",void 0);
_.C([_.O({selector:Sz,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],OW.prototype,"downloadProgress",void 0);_.C([_.O(),_.V("design:type",Number)],OW.prototype,"relativeDateReference",void 0);_.C([_.O({selector:_.VX,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],OW.prototype,"transferState",void 0);_.C([_.O({selector:oQP,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],OW.prototype,"downloadState",void 0);
_.C([_.O({selector:lDu,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],OW.prototype,"offlinePolicyAction",void 0);_.C([_.O({selector:XGW,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],OW.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.C([_.O({selector:pGv,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],OW.prototype,"entityInfo",void 0);_.C([_.O({selector:_.yX}),_.V("design:type",Boolean)],OW.prototype,"miniplayerIsActive",void 0);
_.C([_.W("data"),_.V("design:type",String),_.V("design:paramtypes",[])],OW.prototype,"playlistVideoId",null);_.C([_.Ms("#thumbnail"),_.V("design:type",Object)],OW.prototype,"thumbnail",void 0);_.C([_.Wh("canReorder"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OW.prototype,"canReorderChanged",null);
_.C([_.EB("yt-menu-overlay-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Boolean]),_.V("design:returntype")],OW.prototype,"onMenuOverlayChanged",null);_.C([_.Wh("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OW.prototype,"downloadStateChanged",null);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OW.prototype,"dataChanged",null);_.C([_.Wh("data.setVideoId"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OW.prototype,"setVideoIdChanged",null);_.C([_.m({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],OW);
_.b(OW,"ytd-playlist-video-renderer",function(){if(LdJ!==void 0)return LdJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);F.content.insertBefore(Bwj().content.cloneNode(!0),F.content.firstChild);return LdJ=F},{mode:1});var FCn;var PF=function(){return _.x.apply(this,arguments)||this};
_.M(PF,_.x);_.C([_.O(),_.V("design:type",Object)],PF.prototype,"data",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],PF.prototype,"rendererBehavior",void 0);_.C([_.m({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],PF);
_.b(PF,"ytd-premium-browse-footer-renderer",function(){if(FCn!==void 0)return FCn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return FCn=F},{mode:1});var qt1;var xk=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return F};
_.M(xk,_.x);_.l=xk.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.handleDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.l.computeHeaderLogoThumbnail=function(F,q){if(F)return q?F.darkLogo:F.lightLogo};
_.l.computeHeaderLogoHeight=function(F,q){var t,u,J;return(F=(t=this.computeHeaderLogoThumbnail(F,q))==null?void 0:(u=t.thumbnails)==null?void 0:(J=u[0])==null?void 0:J.height)&&F%31===0?"31":"24"};
_.l.computeHeaderLogoMarginBottom=function(F,q){return this.computeHeaderLogoHeight(F,q)==="24"?"0":"-7"};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],xk.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],xk.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],xk.prototype,"isDarkTheme",void 0);_.C([_.O({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.V("design:type",Object)],xk.prototype,"themeLogo",void 0);
_.C([_.O({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.V("design:type",String)],xk.prototype,"logoHeight",void 0);_.C([_.O({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.V("design:type",String)],xk.prototype,"logoMarginBottom",void 0);_.C([_.m({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],xk);
_.b(xk,"ytd-primetime-promo-header-renderer",function(){if(qt1!==void 0)return qt1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return qt1=F},{mode:1});var t8L;var J7n=_.ld(function(F){var q=_.zq(function(J){var g;(g=F.onClick)==null||g.call(F,J)}),t={},u={};
return _.Z("yt-shelf-header-layout",{class:_.Ec("shelf-header-layout-wiz",(t["shelf-header-layout-wiz--disable-horizontal-padding"]=F.disableHorizontalPadding,t["shelf-header-layout-wiz--disable-vertical-padding"]=F.disableVerticalPadding,t["shelf-header-layout-wiz--responsive"]=F.useResponsiveLayout,t["shelf-header-layout-wiz--narrow"]=function(){var J,g;return((J=F.useResponsiveLayout)==null?void 0:J.call(F))&&((g=F.forceSmallLayout)==null?void 0:g.call(F))},t["shelf-header-layout-wiz--is-overlay"]=
F.isOverlay,t["shelf-header-layout-wiz--tappable"]=F.isInteractive,t)),
"on:click":q,tabindex:function(){var J;return((J=F.isInteractive)==null?0:J.call(F))?0:void 0}},_.Z(_.R,{cond:F.leadingIcon,
then:function(J){return _.Z("div",{class:"shelf-header-layout-wiz__leading-icon"},_.Z(_.Tq,{icon:J}))},
else:function(){return _.Z(_.R,{cond:F.hasLeadingImage,then:function(){var J,g={};return _.Z("div",{class:_.Ec("shelf-header-layout-wiz__leading-image",(g["shelf-header-layout-wiz__leading-image--circular-image"]=F.circularImage,g))},(J=F.leadingImage)==null?void 0:J.call(F))}})}}),_.Z("div",{class:"shelf-header-layout-wiz__label-container"},_.Z(_.R,{cond:F.hasSuperlabel,
then:function(){var J;return _.Z("div",{class:"shelf-header-layout-wiz__superlabel"},(J=F.superlabel)==null?void 0:J.call(F))}}),_.Z("div",{class:"shelf-header-layout-wiz__title-row"},_.Z(uQL,{text:F.title,
className:_.Ec("shelf-header-layout-wiz__title",(u["shelf-header-layout-wiz__title--small-title"]=F.forceSmallLayout,u)),tagLevel:F.tagLevel}),_.Z(_.R,{cond:F.hasDetail,then:function(){var J;return _.Z("div",{class:"shelf-header-layout-wiz__detail"},(J=F.detail)==null?void 0:J.call(F))}})),_.Z(_.R,{cond:F.hasSublabel,
then:function(){var J;return _.Z("div",{class:"shelf-header-layout-wiz__sublabel"},(J=F.sublabel)==null?void 0:J.call(F))}})),_.Z(_.R,{cond:F.hasTrailingActions,
then:function(){var J;return _.Z("div",{class:"shelf-header-layout-wiz__trailing-actions"},(J=F.trailingActions)==null?void 0:J.call(F))}}))},"Yb");
J7n.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var uQL=_.ld(function(F){var q=F.text;var t=F.className;var u=F.tagLevel;return _.Z(_.OK,null,_.Z(_.DA,{when:function(){return(u==null?void 0:u())===0}},function(){return _.Z("h2",{class:t},q())}),_.Z(_.DA,{when:function(){return(u==null?void 0:u())===1}},function(){return _.Z("h3",{class:t},q())}),_.Z(_.DA,{when:function(){return(u==null?void 0:u())===2}},function(){return _.Z("h4",{class:t},q())}),_.Z(_.W_,null,function(){return _.Z("h2",{class:t},q())}))},"Zb");var l9n,sQd,gjw;_.Ae=_.ld(function(F){var q=F.className;var t=F.data;var u=F.disableHorizontalPadding;var J=F.disableVerticalPadding;var g=F.forceSmallLayout;var Y=F.useResponsiveLayout;F=F.isOverlay;return _.Z("yt-section-header-view-model",{class:_.Ec("ytSectionHeaderViewModelHost",q),style:_.Mo({"background-color":function(){return nw(t().backgroundColor)?_.KG(nw(t().backgroundColor)):void 0}})},_.Z(J7n,{hasDetail:!1,
title:function(){return _.Z(_.rv,{text:function(){return t().headline}})},
hasTitle:!0,sublabel:function(){return _.Z(sQd,{data:t})},
hasSublabel:function(){return!!t().sublabel||!!t().bottomBadge},
superlabel:function(){return _.Z(gjw,{data:t})},
hasSuperlabel:function(){return!!t().superlabel||!!t().topBadge},
leadingImage:function(){return _.Z(l9n,{leadingAccessory:function(){return t().leadingAccessory}})},
hasLeadingImage:function(){return!!t().leadingAccessory},
trailingActions:function(){return _.Z(_.Tl,{data:function(){return t().trailingActions}},{flexibleActionsViewModel:_.tp})},
hasTrailingActions:function(){return!!t().trailingActions},
disableHorizontalPadding:u,disableVerticalPadding:J,forceSmallLayout:g,useResponsiveLayout:Y,isOverlay:F,isInteractive:function(){return!!_.b6(t().rendererContext)},
onClick:function(Q){if(_.yg(t().rendererContext)){var e=_.b6(t().rendererContext);e&&_.hv(e,{form:{element:Q.target,event:Q}})}}}))},"$b");
l9n=_.ld(function(F){var q=F.leadingAccessory;return _.Z(_.ln,null,_.Z(_.R,{cond:function(){var t;return(t=q().image)!=null?t:_.KH(q().themedImage)},
then:function(t){return _.Z(_.sc,{data:t,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.Z(_.R,{cond:function(){return _.n(q().avatar,_.d0)},
then:function(t){return _.Z(_.FJ,{data:t})}}))},"ac");
sQd=_.ld(function(F){var q=F.data;return _.Z(_.ln,null,_.Z(_.R,{cond:function(){return _.n(q().bottomBadge,epf)},
then:function(t){var u={};return _.Z(_.Tj,{data:t,class:_.Ec((u.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!t()&&!!q().sublabel},u))})}}),_.Z(_.R,{cond:function(){return q().sublabel},
then:function(t){return _.Z(_.rv,{text:t})}}))},"bc");
gjw=_.ld(function(F){var q=F.data;return _.Z(_.ln,null,_.Z(_.R,{cond:function(){return _.n(q().topBadge,epf)},
then:function(t){var u={};return _.Z(_.Tj,{data:t,class:_.Ec((u.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!t()&&!!q().superlabel},u))})}}),_.Z(_.R,{cond:function(){return q().superlabel},
then:function(t){return _.Z(_.rv,{text:t})}}))},"cc");_.ei(_.Ae,"yt-section-header-view-model",{props:{data:_.NH,className:_.NH,disableHorizontalPadding:_.NH,disableVerticalPadding:_.NH,forceSmallLayout:_.NH,useResponsiveLayout:_.NH,isOverlay:_.NH}});_.mo("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var vF=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return F};
_.M(vF,_.x);_.l=vF.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.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"}}}};
_.l.onDataChange=function(){var F=this;_.tJ(this,function(){F.updateItemVisibility()})};
_.l.onUpdateElementsPerRowAction=function(F){F&&this.elementsPerRow!==F&&(this.elementsPerRow=F,this.updateItemVisibility())};
_.l.updateItemVisibility=function(){var F=this;this.data&&this.data.panels&&_.ep(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(q,t){q.hidden=t>F.elementsPerRow-1})};
_.l.requestElementsPerRow=function(){_.Q0(this.hostElement,"yt-request-elements-per-row")};
vF.prototype.onDataChange=vF.prototype.onDataChange;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],vF.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],vF.prototype,"actionHandlerBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],vF.prototype,"data",void 0);_.C([_.O({value:3}),_.V("design:type",Number)],vF.prototype,"elementsPerRow",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vF.prototype,"onDataChange",null);_.C([_.m({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],vF);
_.b(vF,"ytd-primetime-promo-renderer",function(){if(t8L!==void 0)return t8L;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return t8L=F},{mode:1});var XzL;var IN=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return F};
_.M(IN,_.x);IN.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
IN.prototype.handleButtonRefreshAction=function(F){if(F=_.n(F,y$z))this.set("data.button",F.membershipButton),this.notifyPath("data.button")};
_.JJ.Object.defineProperties(IN.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:(q=F.avatars)==null?void 0:q.slice(0,8))||[]}}});
_.C([_.O(),_.V("design:type",Object)],IN.prototype,"data",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],IN.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],IN.prototype,"rendererBehavior",void 0);_.C([_.W("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],IN.prototype,"avatars",null);
_.C([_.m({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],IN);
_.b(IN,"ytd-recognition-shelf-renderer",function(){if(XzL!==void 0)return XzL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return XzL=F},{mode:1});var Ytx;var pzL;var HF=function(){var F=_.x.apply(this,arguments)||this;F.modernButtons=_.E("web_modern_buttons");return F};
_.M(HF,_.x);_.l=HF.prototype;
_.l.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.l.dataChanged=function(){this.collapsed=!0};
_.l.computeVisibleItems=function(F,q){return F!==void 0&&F.items?q?F.items.slice(0,this.data.collapsedItemCount):F.items:[]};
_.l.computeHideShowMore=function(F,q,t){return F>=q||!t};
_.l.computeHideShowAll=function(F,q,t){return!(F&&q)||t};
_.l.onMoreClick=function(){this.collapsed=!1};
_.JJ.Object.defineProperties(HF.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.E("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.pE("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.E("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
HF.prototype.dataChanged=HF.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],HF.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],HF.prototype,"isSearch",void 0);
_.C([_.O({computed:"computeVisibleItems(data,collapsed)"}),_.V("design:type",Array)],HF.prototype,"visibleItems",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],HF.prototype,"collapsed",void 0);_.C([_.O({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.V("design:type",Boolean)],HF.prototype,"hideShowMore",void 0);
_.C([_.O({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.V("design:type",Boolean)],HF.prototype,"hideShowAll",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],HF.prototype,"modernButtons",void 0);_.C([_.W("isSearch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],HF.prototype,"typographyBump",null);
_.C([_.W("isSearch"),_.V("design:type",Object),_.V("design:paramtypes",[])],HF.prototype,"lockupExperiments",null);_.C([_.W("isSearch"),_.V("design:type",String),_.V("design:paramtypes",[])],HF.prototype,"thumbnailWidth",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HF.prototype,"dataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],HF);
_.b(HF,"ytd-vertical-list-renderer",function(){if(pzL!==void 0)return pzL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return pzL=F},{mode:1});var QQE=_.LZ(["#"]);_.mo("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var mM=function(){var F=_.x.apply(this,arguments)||this;F.isConstrainedList=!1;F.modernTypography=_.E("web_modern_typography");return F};
_.M(mM,_.x);_.l=mM.prototype;
_.l.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"}}}};
_.l.computeThumbnailStyle=function(F){return F||""};
_.l.computePlaceAnnotationUnderTitle=function(){var F;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((F=this.data)==null?void 0:F.thumbnailStyle)||"")};
_.l.computeHrefWithDefault=function(F){return this.ytComponentBehavior.computeHref_(F)||_.qsW(QQE)};
_.l.computeIsPromoShelf=function(F){var q;return(F=F==null?void 0:(q=F[0])==null?void 0:q.metadataBadgeRenderer)?F.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.l.computePlaceBadgeBesideTitle=function(F){var q;return(F==null?0:(q=F[0])==null?0:q.metadataBadgeRenderer)?!this.computeIsPromoShelf(F):!1};
_.l.computeMenuIcon=function(F){return this.computeIsPromoShelf(F)?"yt-icons:more_vert":"yt-icons:more"};
_.l.onDataChange=function(){var F,q;((F=this.data)==null?0:(q=F.content)==null?0:q.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.l.onLockupRequested=function(F){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&F.detail&&F.detail.videoIds){for(var q=this.data.content.gridRenderer.items,t=new Set,u=_.X(F.detail.videoIds),J=u.next();!J.done;J=u.next())t.add(J.value);F.detail.returnValue=q.filter(function(g){return g.gridVideoRenderer&&g.gridVideoRenderer.videoId&&t.has(g.gridVideoRenderer.videoId)}).map(function(g){return g.gridVideoRenderer})}};
_.l.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
mM.prototype.onLockupRequested=mM.prototype.onLockupRequested;mM.prototype.onDataChange=mM.prototype.onDataChange;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],mM.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],mM.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.Vl),_.V("design:type",Object)],mM.prototype,"ironResizableBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],mM.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],mM.prototype,"isSearch",void 0);_.C([_.O(),_.V("design:type",Object)],mM.prototype,"isConstrainedList",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("kevlar_fluid_dismiss")}}),
_.V("design:type",Boolean)],mM.prototype,"enableFluidDismiss",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.V("design:type",String)],mM.prototype,"thumbnailStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mM.prototype,"modernTypography",void 0);_.C([_.O({computed:"computeMenuIcon(data.badges)"}),_.V("design:type",String)],mM.prototype,"menuIcon",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mM.prototype,"onDataChange",null);_.C([_.EB("yt-lockup-requested"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mM.prototype,"onLockupRequested",null);_.C([_.m({is:"ytd-shelf-renderer",disableElementRegistration:!0})],mM);
_.b(mM,"ytd-shelf-renderer",function(){if(Ytx!==void 0)return Ytx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Ytx=F},{mode:1});var exJ;var $k=function(){return _.x.apply(this,arguments)||this};
_.M($k,_.x);$k.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.JJ.Object.defineProperties($k.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$k.prototype,"data",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],$k.prototype,"isPlaylist",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],$k.prototype,"isClipList",void 0);
_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],$k.prototype,"isPlaylistPageWithFilters",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],$k.prototype,"hasTitle",null);_.C([_.O(),_.W("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.V("design:type",Object),_.V("design:paramtypes",[])],$k.prototype,"isRightAligned",null);
_.C([_.m({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],$k);
_.b($k,"ytd-sort-filter-header-renderer",function(){if(exJ!==void 0)return exJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return exJ=F},{mode:1});var ZTC;var bG=function(){var F=_.x.apply(this,arguments)||this;F.enableRightArrowHidden=_.E("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return F};
_.M(bG,_.x);bG.prototype.attached=function(){var F=this;this.enableRightArrowHidden&&(this.JSC$16368_throttledOnResize=new _.LH(function(){var q;(q=F.ytdHorizontalListBehavior)==null||q.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var q;
(q=F.JSC$16368_throttledOnResize)==null||q.fire()}),this.resizeObserver.observe(this.hostElement))};
bG.prototype.detached=function(){if(this.enableRightArrowHidden){var F;(F=this.resizeObserver)==null||F.disconnect();var q;(q=this.JSC$16368_throttledOnResize)==null||q.dispose()}};
bG.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]]"}}}}}};
bG.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.JJ.Object.defineProperties(bG.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.E("enable_creator_details_shelf_m2")){var F=[],q;((q=this.data)==null?0:q.creatorVideosButton)&&F.push(this.data.creatorVideosButton);var t;((t=this.data)==null?0:t.creatorAboutButton)&&F.push(this.data.creatorAboutButton);q=_.X(this.data.creatorCustomUrlButtons||[]);for(t=q.next();!t.done;t=q.next())F.push(t.value);return F}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.E("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bG.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],bG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.We.YtdHorizontalListBehavior),_.V("design:type",Object)],bG.prototype,"ytdHorizontalListBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],bG.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],bG.prototype,"engagementPanel",void 0);
_.C([_.O(),_.V("design:type",Object)],bG.prototype,"enableRightArrowHidden",void 0);_.C([_.W("enableRightArrowHidden","atEnd"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bG.prototype,"hideRightArrow",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],bG.prototype,"creatorCustomUrlButtons",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data","creatorCustomUrlButtons"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bG.prototype,"showCreatorCustomUrlButtons",null);_.C([_.W("showCreatorCustomUrlButtons"),_.V("design:type",Number),_.V("design:paramtypes",[])],bG.prototype,"channelAvatarSize",null);_.C([_.m({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],bG);
_.b(bG,"ytd-video-description-infocards-section-renderer",function(){if(ZTC!==void 0)return ZTC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return ZTC=F},{mode:_.Nc("kevlar_poly_si_batch_j067")?1:2});var Rxz;var yi=function(){return _.x.apply(this,arguments)||this};
_.M(yi,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],yi.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],yi.prototype,"data",void 0);_.C([_.O({computed:"computeIcon_(data.infoIcon)"}),_.V("design:type",Object)],yi.prototype,"infoIcon",void 0);_.C([_.m({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],yi);
_.b(yi,"ytd-eom-settings-disclaimer-renderer",function(){if(Rxz!==void 0)return Rxz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Rxz=F},{mode:1});var r7L;var CK=function(){return _.x.apply(this,arguments)||this};
_.M(CK,_.x);_.JJ.Object.defineProperties(CK.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.suppressPaddingDisclaimer)}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],CK.prototype,"componentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],CK.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],CK.prototype,"suppressPaddingDisclaimer",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],CK);
_.b(CK,"ytd-product-list-header-renderer",function(){if(r7L!==void 0)return r7L;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return r7L=F},{mode:1});var Nqj;var dS=function(){return _.x.apply(this,arguments)||this};
_.M(dS,_.x);dS.prototype.computeThumbnailStyle=function(F){if(F&&(F=_.hn(F)))return"background-color:"+F+";"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dS.prototype,"rendererBehaviors",void 0);_.C([_.O(),_.V("design:type",Object)],dS.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],dS);
_.b(dS,"ytd-hashtag-tile-renderer",function(){if(Nqj!==void 0)return Nqj;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Nqj=F},{mode:1});var wzx;var Vi=function(){return _.x.apply(this,arguments)||this};
_.M(Vi,_.x);Vi.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}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Vi.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Vi);
_.b(Vi,"ytd-sponsorships-alert-renderer",function(){if(wzx!==void 0)return wzx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return wzx=F},{mode:1});var iTJ;var UW=function(){return _.x.apply(this,arguments)||this};
_.M(UW,_.x);UW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.JJ.Object.defineProperties(UW.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.E("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.E("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.C([_.D(_.lr),_.V("design:type",Object)],UW.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],UW.prototype,"ytdLockupBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],UW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.C([_.O({selector:_.Cp}),_.V("design:type",Object)],UW.prototype,"isGridViewEnabled",void 0);
_.C([_.W("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],UW.prototype,"watchFeedBigThumbs",null);_.C([_.W("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],UW.prototype,"thumbnailWidth",null);_.C([_.O(),_.V("design:type",Object)],UW.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],UW);
_.b(UW,"ytd-compact-movie-renderer",function(){if(iTJ!==void 0)return iTJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return iTJ=F},{mode:1});var kPx;var Ejf;var zxr=_.bn("HTML_DIR")==="rtl",Sn=function(){var F=_.x.apply(this,arguments)||this;F.engagementPanel=!1;F.maxLines=2;F.expandButtonOffset=0;F.showExpandButton=!1;F.isTruncated=!1;F.isExpanded=!1;F.currentSnippetType=2;F.alwaysShowExpandButton=!1;F.JSC$16385_lastWidth=NaN;F.observer=null;F.left=0;F.right=0;F.mid=0;F.longestSnippetLength=0;F.isFinalSnippet=!1;F.isFirstMutation=!1;F.isResetMutation=!1;F.OVERFLOW_THRESHOLD=5;return F};
_.M(Sn,_.x);_.l=Sn.prototype;_.l.onClick=function(F){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.tC(_.tY(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var q;if((q=window.getSelection())==null||!q.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.l.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.l.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.l.updateTextOnSnippetTypeChange=function(){_.E("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.l.setUpBinarySearch=function(F){F=F*this.maxLines/8;this.left=0;var q,t;this.right=Math.min(F*2,(t=(q=this.simpleText)==null?void 0:q.length)!=null?t:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.l.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.l.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.bz(new _.D0("AttributedSnippet is empty when the description is not empty",this.text))};
_.l.mutationCallback=function(){if(this.observer!=null){var F=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var q=Math.floor(F*this.maxLines/8);this.setSnippetText(this.text,q);q!==0||this.attributedTextIsEmpty()||_.bz(new _.D0("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;F=F*this.maxLines/8;this.left=0;var t;this.right=Math.min(F*2,(t=(q=this.simpleText)==null?void 0:q.length)!=null?t: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)}}};
_.l.mutationObserve=function(F){var q=this;this.observer||(this.observer=new MutationObserver(function(){q.mutationCallback()}));
this.observer.observe(F,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.l.attached=function(){var F=this;_.tJ(this,function(){F.resize()})};
_.l.isExpandedChanged=function(){_.Q0(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.l.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)};
_.l.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var F="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((zxr?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",F);this.snippetContainer.style.setProperty("mask-image",
F)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(zxr?"right":"left",this.expandButtonOffset+"px")};
_.l.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.l.setSnippetText=function(F,q){F||(F={});if(_.tT(F)){var t=F0(F,q);t.attachmentRuns||t.commandRuns||t.decorationRuns||t.styleRuns||t.alignment||t.lineBreakMode?this.attributedSnippetTextEl?(_.E("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=F0(F,q),this.attributedSnippetTextEl.headerRuns=sSM(q,this.headerRuns)):this.attributedSnippetText={data:F0(F,q),headerRuns:sSM(q,this.headerRuns)},this.currentSnippetType=0):_.bz(new _.D0("Tried to set snippet text when HTML element was null",
F)):(this.plainSnippetText.textContent=ac(F.content||"",q),this.currentSnippetType=2)}else{a:{t=GF_(F,q);if(t.runs){t=_.X(t.runs);for(var u=t.next();!u.done;u=t.next())if(u=u.value,u.bold||u.deemphasize||u.italics||u.strikethrough||u.textColor||u.navigationEndpoint||_.n(u,dc)){t=!0;break a}}t=!1}t?this.formattedSnippetText?(this.formattedSnippetText.text=GF_(F,q),this.currentSnippetType=1):_.bz(new _.D0("Tried to set snippet text when HTML element was null",F)):(this.plainSnippetText.textContent=
ac(_.q1(F),q),this.currentSnippetType=2)}};
_.l.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.l.attributedTextIsEmpty=function(){var F=this.text;if(!_.tT(F))return!0;var q;return((q=F.content)==null?void 0:q.length)===0?!0:!1};
_.l.resize=function(F){if(this.snippetText){if(F===void 0?0:F)this.JSC$16385_lastWidth=NaN;var q=this.hostElement.offsetWidth;if(q!==this.JSC$16385_lastWidth&&!this.isExpanded)if(this.JSC$16385_lastWidth=q,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;F=0;var t,u;q=Math.min(q*this.maxLines/8*2,(u=(t=this.simpleText)==null?void 0:t.length)!=null?u:0)-1;for(t=0;F<=q;)u=Math.floor(F+(q-F)/2),this.setSnippetText(this.text,u),this.isOverflowing()?q=u-1:(F=u+1,t=u);this.setSnippetText(this.text,t);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.l.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.l.onExpandClick=function(){var F=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.E("inline_expander_reset_focus_killswitch")||_.tJ(this,function(){var q;((q=_.sV().resolve(_.JU(_.GD)))==null?0:q.isKeyBoardInUse())&&_.j1(F.hostElement)});
_.Q0(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.l.onCollapseClick=function(){this.collapse();_.Q0(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.l.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.l.computeExpandButtonOffset=function(){var F=this.expandSizer;return F?zxr?F.offsetParent?F.offsetParent.offsetWidth-F.offsetWidth-F.offsetLeft:0:F.offsetLeft:0};
_.JJ.Object.defineProperties(Sn.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.tT(this.text)?this.text.content||"":_.q1(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 _.tT(this.text)?!0:this.text&&_.E("web_replace_formatted_with_attributed_string")&&PE3(this.text)?(this.text=_.C9(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}}});
Sn.prototype.onTextChanged=Sn.prototype.onTextChanged;Sn.prototype.updateMaskAndExpandButtonOffset=Sn.prototype.updateMaskAndExpandButtonOffset;Sn.prototype.updateSnippetContainerMaxHeight=Sn.prototype.updateSnippetContainerMaxHeight;Sn.prototype.isExpandedChanged=Sn.prototype.isExpandedChanged;Sn.prototype.updateTextOnSnippetTypeChange=Sn.prototype.updateTextOnSnippetTypeChange;Sn.prototype.updateIsFormattedExpanded=Sn.prototype.updateIsFormattedExpanded;Sn.prototype.updateIsAttributedExpanded=Sn.prototype.updateIsAttributedExpanded;
Sn.prototype.onClick=Sn.prototype.onClick;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Sn.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Sn.prototype,"text",void 0);_.C([_.O(),_.V("design:type",Array)],Sn.prototype,"headerRuns",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Sn.prototype,"engagementPanel",void 0);_.C([_.O(),_.V("design:type",Object)],Sn.prototype,"maxLines",void 0);
_.C([_.O(),_.V("design:type",String)],Sn.prototype,"expandLabel",void 0);_.C([_.O(),_.V("design:type",String)],Sn.prototype,"collapseLabel",void 0);_.C([_.O(),_.V("design:type",Object)],Sn.prototype,"expandCommand",void 0);_.C([_.O(),_.V("design:type",Object)],Sn.prototype,"expandButtonOffset",void 0);_.C([_.W("text"),_.V("design:type",String),_.V("design:paramtypes",[])],Sn.prototype,"simpleText",null);
_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Sn.prototype,"onClick",null);_.C([_.W("text","isExpanded"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sn.prototype,"expandedText",null);_.C([_.W("headerRuns","isExpanded"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sn.prototype,"expandedHeaderRuns",null);
_.C([_.W("text"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Sn.prototype,"hasAttributedStringText",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Sn.prototype,"showExpandButton",void 0);_.C([_.W("collapseLabel","isExpanded"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sn.prototype,"showCollapseButton",null);_.C([_.O(),_.V("design:type",Object)],Sn.prototype,"isTruncated",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Sn.prototype,"isExpanded",void 0);_.C([_.O(),_.V("design:type",Boolean)],Sn.prototype,"isAttributedExpanded",void 0);_.C([_.za("isExpanded","hasAttributedStringText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sn.prototype,"updateIsAttributedExpanded",null);_.C([_.O(),_.V("design:type",Boolean)],Sn.prototype,"isFormattedExpanded",void 0);
_.C([_.za("isExpanded","hasAttributedStringText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sn.prototype,"updateIsFormattedExpanded",null);_.C([_.O(),_.V("design:type",Number)],Sn.prototype,"currentSnippetType",void 0);_.C([_.W("currentSnippetType"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sn.prototype,"useAttributedSnippet",null);
_.C([_.W("currentSnippetType"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sn.prototype,"useFormattedSnippet",null);_.C([_.W("currentSnippetType"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sn.prototype,"usePlainSnippet",null);_.C([_.O(),_.V("design:type",Object)],Sn.prototype,"alwaysShowExpandButton",void 0);_.C([_.za("currentSnippetType"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sn.prototype,"updateTextOnSnippetTypeChange",null);
_.C([_.O(),_.V("design:type",Object)],Sn.prototype,"attributedSnippetText",void 0);_.C([_.Ms("#snippet"),_.V("design:type",HTMLElement)],Sn.prototype,"snippetContainer",void 0);_.C([_.Ms("#snippet-text"),_.V("design:type",HTMLElement)],Sn.prototype,"snippetText",void 0);_.C([_.Ms("#plain-snippet-text"),_.V("design:type",HTMLElement)],Sn.prototype,"plainSnippetText",void 0);_.C([_.Ms("#formatted-snippet-text"),_.V("design:type",Object)],Sn.prototype,"formattedSnippetText",void 0);
_.C([_.Ms("#attributed-snippet-text"),_.V("design:type",Object)],Sn.prototype,"attributedSnippetTextEl",void 0);_.C([_.Ms("#expand"),_.V("design:type",HTMLElement)],Sn.prototype,"expandButton",void 0);_.C([_.Ms("#expand-sizer"),_.V("design:type",HTMLElement)],Sn.prototype,"expandSizer",void 0);_.C([_.Wh("isExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sn.prototype,"isExpandedChanged",null);
_.C([_.za("isExpanded","maxLines"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sn.prototype,"updateSnippetContainerMaxHeight",null);_.C([_.za("isTruncated","showExpandButton","expandButtonOffset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sn.prototype,"updateMaskAndExpandButtonOffset",null);
_.C([_.Wh("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sn.prototype,"onTextChanged",null);_.C([_.m({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Sn);
_.b(Sn,"ytd-text-inline-expander",function(){if(Ejf===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);Ejf=F}F=Ejf;return F},{mode:2});var he=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return F};
_.M(he,_.x);he.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
he.prototype.handleUpdateDescriptionAction=function(F){if(F=_.n(F,_.bAj))if(F.attributedDescription)this.set("data.attributedDescriptionBodyText",F.attributedDescription);else if(F.description){var q;((q=this.data)==null?0:q.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.C9(F.description)):this.set("data.descriptionBodyText",F.description)}};
_.JJ.Object.defineProperties(he.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var F,q;return!((F=this.data)==null||!F.attributedDescriptionBodyText)||!((q=this.data)==null||!q.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null?0:F.collapsedLineCount){var q;return(q=this.data)==null?void 0:q.collapsedLineCount}F=_.YE("web_watch_description_collapsed_default_lines",12);if(_.E("ww_desc_line_page_size_ks"))return F;q=Math.round(_.Oy().height*_.YE("web_watch_description_screen_height_percentage",.5)/20);return Math.max(q,F)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return(t=(F=this.data)==null?void 0:F.descriptionBodyText)!=null?t:(q=this.data)==null?void 0:q.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.sourceAttributions}}});
he.prototype.panelContentVisibleChanged=he.prototype.panelContentVisibleChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],he.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],he.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],he.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Boolean)],he.prototype,"panelContentVisible",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],he.prototype,"engagementPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],he.prototype,"shortsPanel",void 0);_.C([_.Ms("#inline-expander"),_.V("design:type",Object)],he.prototype,"inlineExpander",void 0);
_.C([_.za("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],he.prototype,"panelContentVisibleChanged",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],he.prototype,"hasDescriptionText",null);_.C([_.W("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],he.prototype,"collapsedLines",null);
_.C([_.W("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.V("design:type",Object),_.V("design:paramtypes",[])],he.prototype,"descriptionText",null);_.C([_.W("data","data.headerRuns"),_.V("design:type",Object),_.V("design:paramtypes",[])],he.prototype,"headerRuns",null);_.C([_.W("data","data.sourceAttributions"),_.V("design:type",Object),_.V("design:paramtypes",[])],he.prototype,"sourceAttributions",null);
_.C([_.m({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],he);
_.b(he,"ytd-expandable-video-description-body-renderer",function(){if(kPx!==void 0)return kPx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return kPx=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var ojv;var njw=_.ld(function(F){var q=F.data;return _.Z("factoid-renderer",{class:"ytwFactoidRendererHost"},_.Z("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return q().accessibilityText}},_.Z("span",{class:"ytwFactoidRendererValue"},_.Z(_.rv,{text:function(){return q().value}})),_.Z("span",{class:"ytwFactoidRendererLabel"},_.Z(_.rv,{text:function(){return q().label}}))))},"dc");_.ei(njw,"factoid-renderer",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=F.data;return _.Z("upload-time-factoid-renderer",null,_.Z(_.Tl,{data:function(){return q().factoid}},{factoidRenderer:njw}))},"ec"),"upload-time-factoid-renderer",{props:{data:_.pp}});_.ei(_.ld(function(F){var q=F.data;return _.Z("view-count-factoid-renderer",null,_.Z(_.Tl,{data:function(){return q().factoid}},{factoidRenderer:njw}))},"fc"),"view-count-factoid-renderer",{props:{data:_.pp}});var KK=function(){var F=_.x.apply(this,arguments)||this;F.shortsPanel=!1;F.engagementPanel=!1;F.watchWhileSdp=_.E("shorts_desktop_watch_while_sdp");return F};
_.M(KK,_.x);KK.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"}}}}};
_.JJ.Object.defineProperties(KK.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var F;return(F=this.data)==null?void 0:F.channel}}});
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],KK.prototype,"componentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],KK.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],KK.prototype,"shortsPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],KK.prototype,"engagementPanel",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],KK.prototype,"watchWhileSdp",void 0);_.C([_.W("shortsPanel","engagementPanel","data.channel"),_.V("design:type",Object),_.V("design:paramtypes",[])],KK.prototype,"showChannelInfo",null);_.C([_.m({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],KK);
_.b(KK,"ytd-video-description-header-renderer",function(){if(ojv!==void 0)return ojv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ojv=F},{mode:1});var M8v;var BF=function(){return _.x.apply(this,arguments)||this};
_.M(BF,_.x);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],BF.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],BF.prototype,"noPadding",void 0);_.C([_.O(),_.V("design:type",Object)],BF.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],BF);
_.b(BF,"ytd-list-item-view-model",function(){if(M8v!==void 0)return M8v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return M8v=F},{mode:1});var Tqf;var GPd;var Dmj;var WCw;var LK=function(){var F=_.x.apply(this,arguments)||this;F.adaptiveFullWidth=!1;F.modernButtons=_.E("web_modern_buttons");F.buttonOverrides={style:"call-to-action",type:"filled"};F.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return F};
_.M(LK,_.x);LK.prototype.handleSetTimestamp_=function(F){this.data&&this.data.shortUrl&&(_.ep(this.hostElement).querySelector("#share-url").value=F.isSet?_.a8(this.data.shortUrl,"t",F.timestamp):this.data.shortUrl)};
LK.prototype.handleSignalActionCopyShareUrl_=function(F,q){(_.E("killswitch_copy_link_target_check")||_.ep(this.hostElement).querySelector("#copy-button")===q)&&this.copyUrlToClipboard()};
LK.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.ep(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
LK.prototype.computeStyle_=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],LK.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],LK.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.V("design:type",String)],LK.prototype,"rendererStyle",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"adaptiveFullWidth",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"modernButtons",void 0);_.C([_.O(),_.V("design:type",Object)],LK.prototype,"buttonOverrides",void 0);_.C([_.Vu({is:"yt-copy-link-renderer",disableElementRegistration:!0})],LK);
_.b(LK,"yt-copy-link-renderer",function(){if(WCw===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Dmj===void 0&&(Dmj=document.createElement("template"));var u=Dmj;t.call(q,u.content.cloneNode(!0),F.content.firstChild);WCw=F}F=WCw;return F},{mode:2});_.mo("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var fK=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return F};
_.M(fK,_.x);_.l=fK.prototype;_.l.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.l.attached=function(){this.keyboardFocused=!1};
_.l.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var F=_.sV().resolve(_.JU(_.GD));F&&(this.keyboardFocused=F.isKeyBoardInUse())}};
_.l.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.l.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}};
_.l.onChange_=function(){if(this.data){var F=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;F&&this.ytComponentBehavior.resolveCommand(F);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.l.handleUpdateToggleAction_=function(F){(F=_.n(F,QaJ))&&this.data&&F.targetId==this.data.targetId&&this.set("data.toggled",F.toggled)};
_.l.toBoolean_=function(F){return!!F};
_.l.reset=function(){};
_.l.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("data-changed",this.data))};
_.l.updateDataToggledFromBinding=function(F){this.set("data.toggled",F.detail.value)};
fK.prototype.dataChangedForBinding=fK.prototype.dataChangedForBinding;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],fK.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],fK.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],fK.prototype,"data",void 0);_.C([_.O({computed:"computeDescription_(data.*)"}),_.V("design:type",Object)],fK.prototype,"description_",void 0);_.C([_.O({value:function(){return!!_.sV().resolve(_.JU(_.GD))&&_.E("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.V("design:type",Boolean)],fK.prototype,"useKeyboardFocused",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],fK.prototype,"keyboardFocused",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fK.prototype,"dataChangedForBinding",null);_.C([_.Vu({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],fK);
_.b(fK,"yt-toggle-form-field-renderer",function(){if(GPd===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Tqf===void 0&&(Tqf=document.createElement("template"));var u=Tqf;t.call(q,u.content.cloneNode(!0),F.content.firstChild);GPd=F}F=GPd;return F},{mode:2});var OT1;var Pcx;var aN=function(){var F=_.x.apply(this,arguments)||this;F.isDarkTheme=!1;F.isSearch=!1;F.darkerDarkTheme=_.E("web_darker_dark_theme");F.noTopMargin=_.E("kevlar_watch_no_top_margin");F.maskFade=_.E("web_watch_chips_mask_fade");F.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(aN,_.x);_.l=aN.prototype;_.l.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}}}}}};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.l.dataChanged=function(){var F=this.getSelectedIndex();if(F>0)this.selected=F;else{this.selected=0;var q,t;(q=this.ytScrollableChipCloudBehavior)==null||(t=q.reset)==null||t.call(q)}};
_.l.getSelectedIndex=function(){var F;if((F=this.data)==null||!F.chips)return-1;F=-1;for(var q,t=0;t<((q=this.data)==null?void 0:q.chips.length);t++){var u=void 0,J=void 0;if((u=this.data)==null?0:(J=u.chips[t].chipCloudChipRenderer)==null?0:J.isSelected){F=t;break}}return F};
_.l.onResize=function(){var F=this.ytScrollableChipCloudBehavior;_.tJ(F,F.setContainerWidthDiff);vg(this.ytScrollableChipCloudBehavior)};
_.l.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.l.handleRelatedChipCommand=function(F,q){F=this.JSC$16412_chipsSelector.indexOf(q);F!==-1&&this.JSC$16412_chipsSelector.selectIndex(F)};
_.l.handleChipCloudChipSelectAction=function(F){F=this.JSC$16412_chipsSelector.indexOf(F);F>-1&&this.JSC$16412_chipsSelector.selectIndex(F)};
_.l.handleChipCloudChipDeselectAction=function(){var F=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16412_chipsSelector&&((F==null?0:F.continuationCommand)?_.RD(this.hostElement,[F]):(F==null?0:F.searchEndpoint)?this.ytComponentBehavior.resolveCommand(F):F&&_.rY(this.hostElement,[F],this.hostElement),this.JSC$16412_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.l.updateSelectedFromBinding=function(F){this.selected=F.detail.value};
aN.prototype.onResize=aN.prototype.onResize;aN.prototype.dataChanged=aN.prototype.dataChanged;aN.prototype.isSearchChanged=aN.prototype.isSearchChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],aN.prototype,"actionHandlerBehavior",void 0);
_.C([_.D(_.Vl),_.V("design:type",Object)],aN.prototype,"ironResizableBehavior",void 0);_.C([_.D(),_.V("design:type",A4)],aN.prototype,"ytScrollableChipCloudBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],aN.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],aN.prototype,"data",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],aN.prototype,"selected",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aN.prototype,"isDarkTheme",void 0);_.C([_.O({value:160}),_.V("design:type",Number)],aN.prototype,"scrollDistance",void 0);_.C([_.O(),_.V("design:type",Object)],aN.prototype,"isSearch",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aN.prototype,"darkerDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aN.prototype,"noTopMargin",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aN.prototype,"maskFade",void 0);_.C([_.Ms("#chips"),_.V("design:type",Object)],aN.prototype,"JSC$16412_chipsSelector",void 0);_.C([_.za("isSearch"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aN.prototype,"isSearchChanged",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aN.prototype,"dataChanged",null);
_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aN.prototype,"onResize",null);_.C([_.Vu({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],aN);
_.b(aN,"yt-chip-cloud-renderer",function(){if(Pcx===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;OT1===void 0&&(OT1=document.createElement("template"));var u=OT1;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Pcx=F}F=Pcx;return F},{mode:2});var xmO,A7J=function(){return xmO!==void 0?xmO:xmO=document.createElement("template")};
document.head.appendChild(A7J().content);var vjv;var I9O=document.head,HTf=I9O.appendChild,mmC;if(vjv===void 0){var $mw=document.createElement("template");_.G($mw,"");$mw.content.insertBefore(A7J().content.cloneNode(!0),$mw.content.firstChild);vjv=$mw}mmC=vjv;HTf.call(I9O,mmC.content);var bTv=_.ld(function(F){var q=F.data;return _.Z("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.Z("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.Z("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.Z(_.R,{cond:function(){return _.KH(q().image)},
then:function(t){return _.Z("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.Z(_.sc,{data:t,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.Z("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.Z(_.rv,{text:function(){return q().title}})),_.Z("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.Z(_.rv,{text:function(){return q().subtitle}})))),_.Z(_.R,{cond:function(){var t;
return(t=q())==null?void 0:t.hasBottomDivider},
then:function(){return _.Z("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"gc");var y7E=_.ld(function(F){var q=F.data;return _.Z("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.Z(_.Tl,{data:function(){var t;return(t=q().offerPlanDetailsItem)!=null?t:[]}},{offerPlanDetailsItemViewModel:function(t){return _.Z("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.Z(bTv,{data:t.data}))}})),_.Z("div",null,_.Z(_.R,{cond:function(){return q().hasBottomDivider},
then:function(){return _.Z("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"hc");var CcL=_.ld(function(F){var q=F.data;F=_.X(_.N3(!1,void 0,"OHF6Ec"));var t=F.next().value,u=F.next().value,J=_.zq(function(){u(!t());return!1}),g=function(){var Y;
return(Y=q().offerPlanDetailsContainer)!=null?Y:[]};
return _.Z("lp-complex-offer-card-details-view-model",null,_.Z("div",null,_.Z(_.R,{cond:function(){return t()},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.Z("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":J,"aria-expanded":t},_.Z(_.rv,{text:function(){return q().expandedTitle}})),_.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.Z(_.Tl,{data:g},{offerPlanDetailsContainerViewModel:function(Y){return _.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.Z(y7E,{data:Y.data}))}})),_.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.Z(_.rv,{text:function(){return q().legalText}})))},
else:function(){return _.Z("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":J,"aria-expanded":t},_.Z(_.rv,{text:function(){return q().collapsedTitle}}),_.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.Z(_.Tq,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"ic");var dmL=_.ld(function(F){var q=F.data;return _.Z("lp-complex-offer-card-option-view-model",null,_.Z("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.Z(_.R,{cond:function(){return q().topDividerText},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.Z("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.Z("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.Z("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.Z(_.rv,{text:function(){return q().topDividerText}}))))}}),_.Z(_.R,{cond:function(){return q().description},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.Z(_.rv,{text:function(){return q().description}}))}}),_.Z(_.R,{cond:function(){return q().planPricingPrimary},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.Z(_.rv,{text:function(){return q().planPricingPrimary}}))}}),_.Z(_.R,{cond:function(){return q().planPricingSecondary},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.Z(_.rv,{text:function(){return q().planPricingSecondary}}))}}),_.Z(_.R,{cond:function(){return q().primaryButton},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.Z(_.Tl,{data:function(){return q().primaryButton}},{buttonViewModel:function(t){return _.Z(_.AB,{data:t.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"jc");var V8r=_.ld(function(F){var q=F.data;var t=function(){var g;return((g=q())==null?void 0:g.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
F={};var u={},J={};return _.Z("ytm-lp-complex-offer-card-view-model",null,_.Z("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.Z("div",{class:_.Ec((F.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=t,F),"ytmLpComplexOfferCardViewModelCardContainer")},_.Z(_.R,{cond:function(){var g;return(g=q())==null?void 0:g.bannerText},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.Z("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.Z(_.rv,{text:function(){return q().bannerText}})))}}),_.Z(_.R,{cond:function(){return _.KH(q().logo)},
then:function(g){var Y={};return _.Z("div",{class:_.Ec((Y.ytmLpComplexOfferCardViewModelLogoAlignLeft=t,Y),"ytmLpComplexOfferCardViewModelLogo")},_.Z(_.sc,{data:g,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.Z("div",{class:_.Ec((u.ytmLpComplexOfferCardViewModelTitleAlignLeft=t,u),"ytmLpComplexOfferCardViewModelTitle")},_.Z(_.rv,{text:function(){return q().title}})),_.Z(_.R,{cond:function(){var g;
return(g=q())==null?void 0:g.subtitle},
then:function(){var g={};return _.Z("div",{class:_.Ec((g.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=t,g),"ytmLpComplexOfferCardViewModelSubtitle")},_.Z(_.rv,{text:function(){return q().subtitle}}))}}),_.Z(_.R,{cond:function(){return q().planPricingPrimary},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.Z(_.rv,{text:function(){return q().planPricingPrimary}}))}}),_.Z(_.R,{cond:function(){return q().planPricingSecondary},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.Z(_.rv,{text:function(){return q().planPricingSecondary}}))}}),_.Z(_.R,{cond:function(){return q().purchaseButton},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.Z(_.Tl,{data:function(){return q().purchaseButton}},{buttonViewModel:function(g){return _.Z(_.AB,{data:g.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.Z(_.R,{cond:function(){var g;
return(g=q())==null?void 0:g.offerOptions},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.Z(_.Tl,{data:function(){return q().offerOptions}},{lpComplexOfferCardOptionViewModel:dmL}))}}),_.Z("div",{class:_.Ec((J.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=t,J),"ytmLpComplexOfferCardViewModelLegalText")},_.Z(_.rv,{text:function(){return q().legalText}})),_.Z(_.R,{cond:function(){var g;
return(g=q())==null?void 0:g.offerCardDetails},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.Z(_.Tl,{data:function(){return q().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:CcL}))}}))))},"kc");var UmJ=_.ld(function(F){var q=F.data;var t=function(){var Y;return((Y=q())==null?void 0:Y.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
F={};var u={},J={},g={};return _.Z("ytm-lp-complex-offer-card-section-view-model",null,_.Z("div",{class:_.Ec("ytmLpComplexOfferCardSectionViewModelHost")},_.Z("div",{class:_.Ec((F.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=t,F),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.Z("div",{class:_.Ec((u.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=t,u),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.Z("h2",{class:_.Ec((J.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
t,J),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.Z(_.rv,{text:function(){return q().title}}))),_.Z(_.R,{cond:function(){var Y;
return(Y=q())==null?void 0:Y.subtitle},
then:function(){var Y={},Q={};return _.Z("div",{class:_.Ec((Y.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=t,Y),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.Z("div",{class:_.Ec((Q.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=t,Q),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.Z(_.rv,{text:function(){return q().subtitle}})))}}),_.Z("div",{class:_.Ec((g.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=t,g),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.Z(_.Tl,{data:function(){var Y;
return(Y=q().offerPlans)!=null?Y:[]}},{lpComplexOfferCardViewModel:function(Y){return _.Z("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.Z(V8r,{data:Y.data}))}})))))},"lc");var Std=_.ld(function(F){return _.Z("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.Z("div",{class:"ytLpCouponBannerViewModelIcon"},_.Z(_.Tq,{icon:function(){return"price_tag"}})),_.Z("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.Z("div",{class:"ytLpCouponBannerViewModelContent"},_.Z("div",{class:"ytLpCouponBannerViewModelHeading"},_.Z(_.rv,{text:function(){var q;
return(q=F.data())==null?void 0:q.title}})),_.Z("div",{class:"ytLpCouponBannerViewModelBody"},_.Z(_.rv,{text:function(){var q;
return(q=F.data())==null?void 0:q.subtitle}})))))},"mc");
Std.idomCompat=!0;_.jn=gwC.getInstance();var hxv;hxv=_.ld(function(F){return _.Z("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":F.shouldAriaHideContent},_.Z("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:F.questionId},_.Z(_.rv,{text:F.question})))},"nc");
_.KCw=_.ld(function(F){var q=F.data;var t=F.themeOverride;F=_.X(_.N3(!1,void 0,"z5CHv"));var u=F.next().value,J=F.next().value;F=_.zq(function(){J(!u());return!1});
var g=function(){return u()?"EXPAND_LESS":"EXPAND_MORE"},Y=("faq-container"+_.VV(_.jn)).toString(),Q="faq-question-and-answers-section-question"+_.VV(_.jn),e={},r={};
return _.Z("faq-entry-view-model-c3",null,_.Z("div",{class:_.Ec("yt-lp-faq-entry-view-model",(e["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return t==null?void 0:t().useDarkTheme},e))},_.Z("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":F,role:"button","aria-expanded":u,"aria-labelledby":Q.toString(),"tab-index":"0"},_.Z(hxv,{question:function(){return q().question},
questionId:Q,shouldAriaHideContent:!0}),_.Z(_.R,{cond:function(){return u()!==void 0},
then:function(){return _.Z("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.Z(_.Tq,{icon:g,ariaHidden:!0}),_.Z("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.Z("div",{class:_.Ec("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(r["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!u()},r))},_.Z("div",{id:Y},_.Z(_.Gn,{each:function(){return q().answers||[]}},function(N){return _.Z("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.Z(_.rv,{text:N}))})))))},"oc");
_.KCw.idomCompat=!0;var Bqx=_.ld(function(F){var q=F.data;var t=F.themeOverride;F={};return _.Z("lp-faq-section-view-model-c3",null,_.Z("div",{class:_.Ec("yt-lp-faq-section-view-model",(F["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},F["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(t==null||!t().useDarkTheme)},F))},_.Z("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.Z(_.R,{cond:function(){return q().header},
then:function(u){return _.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.Z(_.rv,{text:u}))}}),_.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.Z(_.Tl,{data:function(){return q().faqs}},{faqEntryViewModel:function(u){return _.Z(_.KCw,{data:u.data,
themeOverride:t})}})),_.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.Z(_.Gn,{each:function(){return q().footers||[]}},function(u){return _.Z(_.rv,{text:u})})),_.Z(_.R,{cond:function(){return q().legal},
then:function(u){return _.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.Z(_.rv,{text:u}))}}))))},"pc");
Bqx.idomCompat=!0;var LCv=_.ld(function(F){var q=F.data;var t=F.themeOverride;_.v_(function(){var Y=q().gtmId;Y&&_.f8(Y,_.bn("GL",""))});
var u={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Y,Q,e;return(e=(Y=q().logo)==null?void 0:(Q=Y.accessibilityData)==null?void 0:Q.label)!=null?e:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},J=_.sV().resolve(_.JU(_.qo)),g=function(){return J&&J()||(t==null?void 0:t().useDarkTheme)};
return _.Z("lp-header-section-view-model",null,_.Z("div",{class:function(){var Y=q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",Q=q().marginType==="LP_SECTION_MARGIN_TYPE_TOP",e=t==null?void 0:t().useDarkTheme,r=["lp-header-section-view-model"];Y&&r.push("lp-header-section-view-model--ptc-layout-type");Q&&r.push("lp-header-section-view-model__lp-header-section-margin");e&&r.push("lp-header-section-view-model--premium-force-dark-mode");return r.join(" ")}},_.Z(_.R,{cond:function(){return q().logo},
then:function(){return _.Z("div",null,_.Z(_.R,{cond:g,then:function(){return _.Z(_.R,{cond:function(){var Y;return(Y=q().logo)==null?void 0:Y.imageDark},
then:function(Y){return _.Z(_.sc,Object.assign({},{data:Y},u))}})},
else:function(){return _.Z(_.R,{cond:function(){var Y;return(Y=q().logo)==null?void 0:Y.imageLight},
then:function(Y){return _.Z(_.sc,Object.assign({},{data:Y},u))}})}}))}}),_.Z(_.R,{cond:function(){return q().title},
then:function(Y){return _.Z("div",{class:"lp-header-section-view-model__lp-header-title"},_.Z(_.rv,{text:Y}))}}),_.Z("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.Z(_.R,{cond:function(){return q().subtitles},
then:function(Y){return _.Z(_.Gn,{each:Y},function(Q){return _.Z("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.Z(_.rv,{text:Q}))})}})),_.Z(_.R,{cond:function(){return q().additionalInfo},
then:function(Y){return _.Z("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.Z(_.rv,{text:Y}))}}),_.Z("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.Z(_.R,{cond:function(){return q().primaryButton},
then:function(Y){return _.Z("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.Z(_.Tl,{data:Y},{buttonViewModel:_.AB}))}}),_.Z(_.R,{cond:function(){return q().secondaryButton},
then:function(Y){return _.Z("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.Z(_.Tl,{data:Y},{buttonViewModel:_.AB}))}})),_.Z(_.R,{cond:function(){return q().otherOffersInfo},
then:function(Y){return _.Z("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.Z(_.rv,{text:Y}))}}),_.Z("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.Z(_.R,{cond:function(){return q().billingInfo},
then:function(Y){return _.Z(_.Gn,{each:Y},function(Q){return _.Z("div",null,_.Z(_.rv,{text:Q}))})}}))))},"qc");
LCv.idomCompat=!0;var f9E=_.ld(function(F){var q=F.data;var t=_.Jv(F.themeOverride,{useDarkTheme:!1});F={};F=_.Ec("ytmLpHeadlineSectionViewModelHost",(F.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return t().useDarkTheme},F));
return _.Z("lp-headline-section-view-model",null,_.Z("div",{class:F},_.Z("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.Z(_.rv,{text:function(){return q().title}})),_.Z(_.R,{cond:function(){return q().subtitle},
then:function(u){return _.Z("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.Z(_.rv,{text:u}))}})))},"rc");var a9x=_.ld(function(F){var q=F.data;var t=F.themeOverride;var u=_.sV().resolve(_.JU(_.qo)),J=function(){return u&&u()||(t==null?void 0:t().useDarkTheme)},g=function(){var r,N;
var w=J()?(r=q().textBackgroundImage)==null?void 0:r.imageDark:(N=q().textBackgroundImage)==null?void 0:N.imageLight;return Dry((w==null?void 0:w.sources)||[])},Y=function(){var r,N;
return J()?(r=q().featureImage)==null?void 0:r.imageDark:(N=q().featureImage)==null?void 0:N.imageLight},Q=function(){return q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},e=function(){var r,N;
return J()?(r=q().logo)==null?void 0:r.imageDark:(N=q().logo)==null?void 0:N.imageLight};
return _.Z("ytm-lp-large-feature-section-view-model",null,_.Z("div",{class:function(){var r=q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",N=q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",w=(q().index||0)%2===1,k=t==null?void 0:t().useDarkTheme,z=["yt-lp-large-feature-section-view-model"];r?z.push("yt-lp-large-feature-section-view-model--music-feature-type"):N?z.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):w||z.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
k&&z.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return z.join(" ")}},_.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.Z(_.R,{cond:Y,
then:function(){return _.Z(_.sc,{data:function(){return Y()},
alt:function(){var r,N,w;return(w=(r=q().featureImage)==null?void 0:(N=r.accessibilityData)==null?void 0:N.label)!=null?w:""},
contentMode:Q})}})),_.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var r;return((r=g())==null?0:r.url)?"background-image: url("+_.d$(g().url)+");":""}},_.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.Z(_.R,{cond:e,
then:function(){return _.Z(_.sc,{data:function(){return e()},
alt:function(){var r,N,w;return(w=(r=q().logo)==null?void 0:(N=r.accessibilityData)==null?void 0:N.label)!=null?w:""},
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"})}}),_.Z(_.R,{cond:function(){return q().eyebrowText},
then:function(){return _.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.Z(_.rv,{text:function(){return q().eyebrowText}}))}}),_.Z(_.R,{cond:function(){return q().title},
then:function(){return _.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.Z(_.rv,{text:function(){return q().title}}))}}),_.Z(_.R,{cond:function(){return q().subtitles},
then:function(){return _.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.Z(_.Gn,{each:function(){return q().subtitles||[]}},function(r){return _.Z(_.rv,{text:r})}))}})))))},"sc");
a9x.idomCompat=!0;var jQ1=_.ld(function(F){return _.Z("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.Z("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.Z(_.Tq,{icon:function(){var q;return(q=F.data())==null?void 0:q.iconType},
className:function(){var q;switch((q=F.data())==null?void 0:q.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var q;return((q=F.data())==null?void 0:q.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.Z("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.Z(_.rv,{text:function(){var q;
return(q=F.data())==null?void 0:q.text},
className:function(){var q;return((q=F.data())==null?void 0:q.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"tc");var c7x=_.ld(function(F){F=_.sk(F,{config:void 0,themeOverride:void 0});var q=F.data,t=F.config,u=F.themeOverride;F={};F=_.Ec("ytmLpOfferCardOptionViewModelHost",(F.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var Q;return(Q=u())==null?void 0:Q.useDarkTheme},F));
var J=_.zq(function(){var Q,e;(Q=t())==null||(e=Q.handleRadioButtonClick)==null||e.call(Q,q());return!1}),g=function(){var Q;
return(Q=t())==null?void 0:Q.shouldDisplayRadioButton},Y=function(){var Q;
return(Q=q().featureListItems)!=null?Q:[]};
return _.Z("ytm-lp-offer-card-option-view-model",null,_.Z("div",{class:F,"on:click":_.zq(function(){if(g()){var Q,e;(Q=t())==null||(e=Q.handleRadioButtonClick)==null||e.call(Q,q())}return!1})},_.Z(_.R,{cond:g,
then:function(){return _.Z("div",null,_.Z("input",{type:"radio","on:click":J,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var Q;return!((Q=t())==null||!Q.isOptionSelected)}}))}}),_.Z("div",null,_.Z("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.Z(_.rv,{text:function(){return q().eyebrowText}})),_.Z("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.Z(_.rv,{text:function(){return q().title}})),_.Z("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.Z(_.rv,
{text:function(){return q().subtitle}})),_.Z(_.R,{cond:function(){return Y().length>0},
then:function(){return _.Z("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.Z(_.Tl,{data:Y},{lpFeatureListItemViewModel:jQ1}))}}),_.Z("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.Z(_.rv,{text:function(){return q().description}})))))},"uc");
c7x.idomCompat=!0;var Fiz=_.ld(function(F){var q=F.data;var t=F.themeOverride;F=_.X(_.np(function(){var g,Y=(g=q().offerOptions)==null?void 0:g[0];return _.n(Y,f1r)||{}}));
var u=F.next().value,J=F.next().value;F={};return _.Z("ytm-lp-offer-card-view-model",null,_.Z("div",{class:_.Ec("ytmLpOfferCardViewModelHost",(F.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(t==null||!t().useDarkTheme)},F))},_.Z("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.Z(_.R,{cond:function(){return q().titleIconType},
then:function(){return _.Z("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.Z(_.Tq,{icon:function(){var g;return((g=q().titleIconType)==null?void 0:g.toString())||""}}))}}),_.Z("div",{class:"ytmLpOfferCardViewModelTitleText"},_.Z(_.rv,{text:function(){return q().title}})),_.Z(_.Tl,{data:function(){return q().titleBadge}},{badgeViewModel:function(g){return _.Z("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.Z(_.Tj,{data:g.data}))}})),_.Z("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.Z(_.Tl,{data:function(){return q().offerOptions}},{lpOfferCardOptionViewModel:function(g){var Y=g.data;
return _.Z(_.ln,null,_.Z("div",{class:"ytmLpOfferCardViewModelDivider"}),_.Z(c7x,{data:Y,config:function(){var Q;return{shouldDisplayRadioButton:(q().offerOptions||[]).length>1,isOptionSelected:Y().id===((Q=u())==null?void 0:Q.id),handleRadioButtonClick:function(e){return void J(e)}}},
themeOverride:t}))}})),_.Z("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.Z(_.Tl,{data:function(){var g;
return(g=u())==null?void 0:g.purchaseButtonOverride}},{buttonViewModel:_.AB}))))},"vc");
Fiz.idomCompat=!0;var q8j=_.ld(function(F){var q=F.data;var t=F.themeOverride;F={};F=_.Ec("ytmLpOfferCardSectionViewModelHost",(F.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var u;return t==null?void 0:(u=t())==null?void 0:u.useDarkTheme},F));
return _.Z("ytm-lp-offer-card-section-view-model",null,_.Z("div",{class:F},_.Z(_.R,{cond:function(){return q().title!==void 0},
then:function(){return _.Z("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.Z("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.Z(_.rv,{text:function(){return q().title}})),_.Z(_.R,{cond:function(){return q().subtitle},
then:function(){return _.Z("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.Z(_.rv,{text:function(){return q().subtitle}}))}}))}}),_.Z("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.Z(_.Tl,{data:function(){return q().offerCards}},{lpOfferCardViewModel:function(u){return _.Z("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.Z(Fiz,{data:u.data,
themeOverride:t}))}})),_.Z(_.R,{cond:function(){return q().footer},
then:function(){return _.Z("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.Z(_.rv,{text:function(){return q().footer}}))}})))},"wc");var tQE=_.ld(function(F){var q=F.data;return _.Z("lp-offer-table-cell-content-view-model",null,_.Z("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.Z(_.OK,null,_.Z(_.DA,{when:function(){return q().title}},function(){return _.Z(_.rv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return q().title}})}),_.Z(_.DA,{when:function(){return q().subTitle}},function(){return _.Z(_.rv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return q().subTitle}})}),_.Z(_.DA,{when:function(){return q().featureDescription}},function(){return _.Z(_.rv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return q().featureDescription}})}),_.Z(_.DA,{when:function(){return q().description}},function(){return _.Z(_.rv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return q().description}})}),_.Z(_.DA,{when:function(){return q().iconType}},function(){return _.Z("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.Z(_.Tq,{icon:function(){return q().iconType.toString()}}))}),_.Z(_.DA,{when:function(){return q().purchaseButton}},function(){return _.Z(_.Tl,{data:function(){return q().purchaseButton}},{buttonViewModel:function(t){return _.Z("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.Z(_.AB,
{data:t.data}))}})}),_.Z(_.DA,{when:function(){return q().note}},function(){return _.Z(_.rv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return q().note}})}),_.Z(_.DA,{when:function(){return q().featureDetail}},function(){return _.Z(_.rv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return q().featureDetail}})}),_.Z(_.DA,{when:function(){return q().badge}},function(){return _.Z(_.Tl,{data:function(){return q().badge}},{badgeViewModel:_.Tj})}))))},"xc");
tQE.idomCompat=!0;var uvd=_.ld(function(F){var q=F.data;return _.Z("lp-offer-table-cell-view-model",null,_.Z("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(q().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;"}}},_.Z(_.Tl,{data:function(){return q().contents}},{lpOfferTableCellContentViewModel:tQE})))},
"yc");
uvd.idomCompat=!0;var JZx=_.ld(function(F){var q=F.data;var t=F.lpTableIsFirstRow;var u=F.lpTableIsLastRow;var J=function(){return(t==null?0:t())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},g=function(){return(t==null?0:t())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(u==null?0:u())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.Z("ytm-lp-offer-table-row-view-model",null,_.Z("div",{class:"ytLpOfferTableRowViewModelHost"},_.Z(_.Tl,{data:function(){return q().rowHeaderCell}},{lpOfferTableCellViewModel:function(Y){return _.Z("div",{class:J},_.Z(uvd,{data:Y.data}))}}),_.Z(_.Tl,{data:function(){return q().contentCells}},{lpOfferTableCellViewModel:function(Y){return _.Z("div",{class:g},_.Z(uvd,{data:Y.data}))}})))},"zc");
JZx.idomCompat=!0;var sZJ=_.ld(function(F){var q=F.data;var t=F.themeOverride;var u=_.sV().resolve(_.JU(_.qo)),J=function(){return _.n(q().logo,rtC)||{}};
F={};return _.Z("ytm-lp-offer-table-section-view-model",null,_.Z("div",{class:"ytLpOfferTableViewModelHost"},_.Z(_.R,{cond:function(){var g,Y;return u&&u()||(t==null?0:t().useDarkTheme)?(g=J())==null?void 0:g.imageDark:(Y=J())==null?void 0:Y.imageLight},
then:function(g){return _.Z(_.sc,{data:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Y,Q,e;return(e=(Y=J())==null?void 0:(Q=Y.accessibilityData)==null?void 0:Q.label)!=null?e:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.Z(_.rv,{text:function(){return q().title}})),_.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.Z(_.rv,{text:function(){return q().subtitle}})),_.Z(_.R,{cond:function(){return q().disclaimers},
then:function(g){return _.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.Z(_.Gn,{each:g},function(Y){return _.Z("div",null,_.Z(_.rv,{text:Y}))}))}}),_.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.Z(_.Tl,{data:function(){return q().rows}},{lpOfferTableRowViewModel:function(g,Y){return _.Z(JZx,{data:g.data,
lpTableIsFirstRow:function(){return Y()===0},
lpTableIsLastRow:function(){return Y()===q().rows.length-1}})}})),_.Z("div",{class:_.Ec((F.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return q().hasFooterBackground},F))},_.Z(_.R,{cond:function(){return q().footer},
then:function(){return _.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.Z(_.rv,{text:function(){return q().footer}}))}}),_.Z(_.R,{cond:function(){return q().footerTitle},
then:function(){return _.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.Z(_.rv,{text:function(){return q().footerTitle}}))}}),_.Z(_.R,{cond:function(){return q().footerDescription},
then:function(){return _.Z("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.Z(_.rv,{text:function(){return q().footerDescription}}))}}))))},"Ac");
sZJ.idomCompat=!0;var g2z=_.ld(function(F){var q=F.data;var t=F.themeOverride;var u=_.sV().resolve(_.JU(_.qo)),J=function(){var Q;return t==null?void 0:(Q=t())==null?void 0:Q.useDarkTheme},g=function(){var Q,e;
return u&&u()||J()?(Q=q().image)==null?void 0:Q.imageDark:(e=q().image)==null?void 0:e.imageLight};
F={};F=_.Ec("ytmLpSmallFeatureSectionViewModelHost",(F.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=J,F));var Y=function(){var Q,e,r;return(r=(Q=q().image)==null?void 0:(e=Q.accessibilityData)==null?void 0:e.label)!=null?r:""};
return _.Z("ytm-lp-small-feature-section-view-model",{class:F},_.Z(_.R,{cond:function(){return g()&&!iFW},
then:function(){return _.Z("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.Z(_.sc,{data:function(){return g()},
alt:Y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.Z("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.Z("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.Z(_.R,{cond:function(){return q().title},
then:function(Q){return _.Z(_.rv,{text:Q})}})),_.Z("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.Z(_.rv,{text:function(){return q().description}}))))},"Bc");
g2z.idomCompat=!0;var lrO=_.ld(function(F){var q=F.data;var t=F.themeOverride;F={};return _.Z("ytm-lp-small-feature-section-group-view-model",null,_.Z("div",{class:_.Ec("ytmLpSmallFeatureSectionGroupViewModelHost",(F.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(t==null||!t().useDarkTheme)},F))},_.Z("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.Z(_.Tl,{data:function(){return q().smallFeatures}},{lpSmallFeatureSectionViewModel:function(u){return _.Z("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.Z(g2z,{data:u.data,
themeOverride:t}))}}))))},"Cc");
lrO.idomCompat=!0;_.ei(_.ld(function(F){var q=F.data;var t=function(){return q().forcedTheme==="USER_INTERFACE_THEME_DARK"},u=function(){return q().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},J=function(){var Y="",Q,e;
var r=_.sV().resolve(_.JU(_.qo));r=t()||(r==null?0:r())?(Q=q().themedImageViewModel)==null?void 0:Q.imageDark:(e=q().themedImageViewModel)==null?void 0:e.imageLight;(Q=Dry((r==null?void 0:r.sources)||[]))&&Q.url&&(Y=u()?"background-image: linear-gradient(to bottom, transparent, "+(q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.d$(Q.url)+");":"background-image: url("+_.d$(Q.url)+");");return Y},g=function(){return{useDarkTheme:t()}};
F={};return _.Z("yt-section-group-view-model",null,_.Z("div",{class:_.Ec("yt-lp-section-group-view-model",(F["yt-lp-section-group-view-model--premium-force-dark-mode"]=t,F["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},F))},_.Z(_.R,{cond:function(){return J().length},
then:function(){var Y={};return _.Z("div",{class:_.Ec("yt-lp-section-group-view-model__bg-image",(Y["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=u,Y)),style:J})}}),_.Z("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.Z(_.Tl,{data:function(){return q().sections}},{lpFaqSectionViewModel:function(Y){return _.Z(Bqx,{data:Y.data,
themeOverride:g})},
lpHeaderSectionViewModel:function(Y){return _.Z(LCv,{data:Y.data,themeOverride:g})},
lpHeadlineSectionViewModel:function(Y){return _.Z(f9E,{data:Y.data,themeOverride:g})},
lpLargeFeatureSectionViewModel:function(Y){return _.Z(a9x,{data:Y.data,themeOverride:g})},
lpOfferCardSectionViewModel:function(Y){return _.Z(q8j,{data:Y.data,themeOverride:g})},
lpComplexOfferCardSectionViewModel:function(Y){return _.Z(UmJ,{data:Y.data})},
lpOfferTableSectionViewModel:function(Y){return _.Z(sZJ,{data:Y.data,themeOverride:g})},
lpSmallFeatureSectionGroupViewModel:function(Y){return _.Z(lrO,{data:Y.data,themeOverride:g})},
lpCouponBannerViewModel:function(Y){return _.Z(Std,{data:Y.data})}}))))},"Dc"),"yt-section-group-view-model",{props:{data:_.NH}});var OmP=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.XVw=_.ld(function(F){function q(){if(OmP.has(F.data().displayType)){var r=!u(),N;if((N=F.disableDeselection)==null||!N.call(F)||r){F.data().selected=r;N=Object.assign({},Y(),{selected:r});Q(N);var w;(w=F.callback)==null||w.call(F,N,r)}}}
var t=_.FG("chip-view-model"),u=function(){var r,N;return!!(((r=F.selected)==null?void 0:r.call(F))!==void 0?(N=F.selected)==null?0:N.call(F):Y().selected)},J=_.X(_.np(F.data)),g=J.next().value;
J=J.next().value;var Y=g,Q=J,e=_.nH(Wwv,function(){return F.data().chipEntityKey||""});
return _.Z("chip-view-model",{class:"ytChipViewModelHost",el:t},_.Z(dYd,{data:function(){var r,N=Object.assign({},Y(),{selected:u()}),w=e(),k=(r=F.disableDeselection)==null?void 0:r.call(F);a:switch(N.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":r=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":r=3;break a;default:r=0}return{text:(w==null?void 0:w.text)||N.text,state:N.disabled?1:N.selected?0:2,type:r,onTap:PAo(N,t,q,k),
accessibilityLabel:N.accessibilityLabel||N.text}}}))},"Ec");
_.XVw.idomCompat={callbacks:{callback:!0}};_.Y8O=_.ld(function(F){var q=_.nH(D5W,function(){var Y;return(Y=F.data())==null?void 0:Y.chipBarStateEntityKey}),t=function(){return F.data().disableDeselection},u=_.X(_.np(function(){var Y;
if(((Y=q())==null?void 0:Y.selectedIndex)!=void 0)return q().selectedIndex;var Q,e;Y=_.X(((Q=F.data())==null?void 0:(e=Q.chips)==null?void 0:e.entries())||[]);for(Q=Y.next();!Q.done;Q=Y.next()){Q=_.X(Q.value);e=Q.next().value;Q=Q.next().value;var r=void 0;if((r=_.n(Q,_.lv))==null?0:r.selected)return e}return-1})),J=u.next().value,g=u.next().value;
return _.Z("chip-bar-view-model",{class:_.Ec("ytChipBarViewModelHost",F.className),role:"tablist"},_.Z(_.Tl,{data:function(){return F.data().chips}},{chipViewModel:function(Y,Q){return _.Z("div",{class:"ytChipBarViewModelChipWrapper"},_.Z(_.XVw,{data:Y.data,
selected:function(){return Q()===J()},
callback:function(e,r){e=!!r;r=Q();g(e?r:-1);var N,w=(N=F.data())==null?void 0:N.chipBarStateEntityKey;w&&e&&_.ud(_.Gl("chipBarStateEntity",w,{key:w,selectedIndex:r}))},
disableDeselection:F.disableDeselection||t}))}}))},"Fc");_.ei(_.Y8O,"chip-bar-view-model",{props:{data:_.pp,className:_.pp,disableDeselection:_.pp}});_.pVd=_.ld(function(F){var q=F.data;F={};return _.Z("divider-view-model",{class:_.Ec("dividerViewModelHost",(F.dividerViewModelInsetThinPadding=function(){return q().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},F))},_.Z("div",{class:_.Ec("dividerViewModelBaseDivider",function(){return x5f(q().dividerStyle)}),
style:_.Mo({"background-color":function(){return q().backgroundColor?_.hn(q().backgroundColor):void 0}})}))},"Gc");
_.pVd.idomCompat=!0;_.ei(_.pVd,"divider-view-model",{props:{data:_.NH}});var TJ=new Map,MR=new Map,Ib3=0,GJ;var d5M=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],S2t={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var QZL,eLL;QZL=function(F){return function(q){return function(){return(q==null?void 0:q())!==void 0?String(q())+F:void 0}}};
_.cF=QZL("px");eLL=QZL("s");var Z0v=d6f(function(F){return F.targetGroupId}).useUpdatableData;var rZL=_.ld(function(F){function q(c){return function(){var rf=P().numItemsPerGridRow,Zv=c()*rf;rf=Zv+rf;var kP,n3;return(n3=(kP=u().contents)==null?void 0:kP.slice(Zv,rf))!=null?n3:[]}}
var t=_.sk(F,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),u=t.data,J=t.layoutContainerWidth,g=t.shouldUseOwnContainerSize,Y=t.marginSettings,Q=Nno(),e=_.X(Z0v(function(){var c,rf;return{targetGroupId:(c=u().targetingContext)==null?void 0:(rf=c.targetGroupId)==null?void 0:rf[0]}})).next().value;
t=_.X(_.N3(!0,void 0,"R5Z1fd"));var r=t.next().value,N=t.next().value,w=function(){var c,rf=(c=_.n(u().showMoreButton,_.gX))==null?void 0:c.trackingParams;rf&&_.vQ(_.DP(),rf);N(!1)},k=function(){var c,rf=(c=_.n(u().showLessButton,_.gX))==null?void 0:c.trackingParams;
rf&&_.vQ(_.DP(),rf);N(!0)};
t=_.FG("grid-shelf-view-model");var z=_.KwM(t,{canHaveZeroSize:!1}),T=function(){var c;return(c=u().contentAspectRatio)!=null?c:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},P=_.zy(function(){var c=_.hC({containerWidth:g()&&z.width()>0?z.width()||J():J(),
sizing:"EXTRA_COMPACT",marginSettings:Y(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:c.maxContainerWidth,numItemsPerGridRow:c.numItems,contentPadding:g()?c.margin:c.contentMargin,itemWidth:c.itemWidth,itemMargin:c.gutter/2}},void 0,"q05H3c"),v=function(){if(u().enableVerticalExpansion){if(r())return H();
var c,rf,Zv=(rf=(c=u().contents)==null?void 0:c.length)!=null?rf:0;return Math.ceil(Zv/P().numItemsPerGridRow)}return P().numItemsPerGridRow<=2?2:1},H=function(){var c;
return Math.ceil(((c=u().minCollapsedItemCount)!=null?c:1)/P().numItemsPerGridRow)},d=function(){return u().enableVerticalExpansion&&u().showLessButton&&!r()&&v()>H()},a=function(){var c,rf;
return u().enableVerticalExpansion&&u().showMoreButton&&r()&&((rf=(c=u().contents)==null?void 0:c.length)!=null?rf:0)>P().numItemsPerGridRow*H()},S=function(){return!d()},K=function(){return!a()},h={};
return _.Z("grid-shelf-view-model",{class:_.Ec("ytGridShelfViewModelHost",F.className,(h.ytGridShelfViewModelHostHasBottomButton=function(){return d()||a()},h.ytGridShelfViewModelHostIsDismissed=function(){var c,rf=(c=e())!=null?c:{};
c=rf.behavior;var Zv=rf.isDismissed,kP=rf.stamperContextTargetId;rf=rf.stamperIndex;if(!(_.E("mweb_see_fewer_shorts_group_dismissal")&&Zv&&c&&kP))return!1;var n3;Zv=Q;for(var o_,df,m$=((o_=Zv)==null?0:o_.targetId)?_.Hj((df=Zv)==null?void 0:df.targetId):void 0;((n3=Zv)==null?0:n3.parent)&&m$!==kP;)Zv=Zv.parent,df=o_=void 0,m$=((o_=Zv)==null?0:o_.targetId)?_.Hj((df=Zv)==null?void 0:df.targetId):void 0;n3=m$===kP?Zv:void 0;if(!n3)return!1;var gx;kP=n3==null?void 0:(gx=n3.stamperIndex)==null?void 0:gx.call(n3);
return c==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||c==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&kP!=null&&rf!=null&&kP>rf},h)),
el:t,style:_.Mo({"margin-left":(0,_.cF)(function(){return P().contentPadding}),
"margin-right":(0,_.cF)(function(){return P().contentPadding})})},_.Z(_.R,{cond:function(){return _.n(u().header,GD1)},
then:function(c){return _.Z(_.Ae,{data:c,disableHorizontalPadding:!0})}}),_.Z("div",null,_.Z(_.Gn,{each:function(){return Array(v())}},function(c,rf){return _.Z(RLe,{className:F.className,
items:q(rf),responsiveGridShelfLayout:P,contentAspectRatio:T})})),_.Z("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.Z(_.Tl,{data:function(){return u().showMoreButton}},{buttonViewModel:function(c){return _.Z("div",{hidden:K},_.Z(_.AB,{data:c.data,
onClick:w}))}}),_.Z(_.Tl,{data:function(){return u().showLessButton}},{buttonViewModel:function(c){return _.Z("div",{hidden:S},_.Z(_.AB,{data:c.data,
onClick:k}))}})))},"Hc");
rZL.idomCompat=!0;var RLe=_.ld(function(F){var q=F.items;var t=F.responsiveGridShelfLayout;var u=F.contentAspectRatio;F=F.className;var J=_.FG("div");vXC(J,function(){a:{var Y=J.value;for(var Q=q(),e=[],r=0;r<Q.length;r++){var N=_.n(Q[r],tR1);if(!N||N==null||!N.inlinePlayerData){Y=null;break a}var w=Y.children.item(r);if(!w){Y=null;break a}e.push({thumbnailElement:w,videoData:N})}Y={gridVideoPreviewData:{gridItems:e}}}return Y});
var g=(0,_.cF)(function(){return-t().itemMargin});
return _.Z("div",{el:J,class:_.Ec("ytGridShelfViewModelGridShelfRow",F),style:_.Mo({"margin-left":g,"margin-right":g})},_.Z(_.Tl,{data:q,replacementWrapper:function(Y){return _.Z(Nyw,{responsiveGridShelfLayout:t},Y)}},{shortsLockupViewModel:function(Y){return _.Z(Nyw,{responsiveGridShelfLayout:t},_.Z(fZ1,{data:Y.data,
aspectRatio:function(){return u()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Ic"),Nyw=_.ld(function(F){return _.Z("div",{style:_.Mo({width:(0,_.cF)(function(){return F.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+F.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},F.children)},"Jc");
rZL.idomCompat=!0;_.ei(rZL,"grid-shelf-view-model",{props:{data:_.NH,layoutContainerWidth:_.NH,shouldUseOwnContainerSize:_.NH,marginSettings:_.NH,className:_.NH}});_.wVf=_.ld(function(F){var q=_.X(_.N3(!1,void 0,"FVl30c")),t=q.next().value,u=q.next().value;q={};return _.Z("yt-alert-banner-view-model",{class:_.Ec("ytAlertBannerViewModelHost",F.className,function(){var J;a:switch((J=F.data())==null?void 0:J.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":J="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":J="ytAlertBannerViewModelWarning";break a;default:J="ytAlertBannerViewModelInformational"}return J},(q.ytAlertBannerViewModelDismissed=
t,q.ytAlertBannerViewModelFullbleed=F.fullbleed,q.ytAlertBannerViewModelNarrow=F.narrow,q.ytAlertBannerViewModelIsInRichGrid=F.isInRichGrid,q))},_.Z(_.R,{cond:function(){var J;
return!((J=F.data())==null?0:J.hideIcon)},
then:function(){return _.Z("div",{class:"ytAlertBannerViewModelIcon"},_.Z(_.Tq,{icon:function(){return"info_circle"}}))}}),_.Z("div",{class:"ytAlertBannerViewModelOuterContainer"},_.Z("div",{class:"ytAlertBannerViewModelContainer"},_.Z("div",{class:"ytAlertBannerViewModelContent"},_.Z("div",{class:"ytAlertBannerViewModelHeading"},_.Z(_.rv,{text:function(){var J;
return(J=F.data())==null?void 0:J.heading}})),_.Z("div",{class:"ytAlertBannerViewModelBody"},_.Z(_.rv,{text:function(){var J;
return(J=F.data())==null?void 0:J.body}})))),_.Z(_.Tl,{data:function(){var J;
return(J=F.data())==null?void 0:J.actionButton}},{buttonViewModel:function(J){return _.Z(_.AB,{data:J.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.Z(_.Tl,{data:function(){var J;
return(J=F.data())==null?void 0:J.dismissButton}},{buttonViewModel:function(J){return _.Z(_.AB,{data:J.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var g;((g=F.data())==null?0:g.disableLocalDismissBehavior)||u(!0)}})}}))},"Kc");_.ei(_.wVf,"yt-alert-banner-view-model",{props:{data:_.NH,fullbleed:_.NH,narrow:_.NH,isInRichGrid:_.NH,className:_.NH}});_.F_=_.ld(function(F){var q=F.data;var t=F.callback;var u=F.selectionBehavior;var J=F.disableChipsScrollAnimation;var g=_.qL("div");F=_.X(_.N3(!0,void 0,"aUEsOc"));var Y=F.next().value,Q=F.next().value;F=_.X(_.N3(!1,void 0,"V0aKld"));var e=F.next().value,r=F.next().value,N=!1,w=0;_.AN(function(){Q(T());r(P())});
F=_.X(_.np(function(){var c={};return q().autoselectedChipIndex!=null?(c[q().autoselectedChipIndex]=!0,c):{}}));
var k=F.next().value,z=F.next().value,T=function(){var c=g.value;return c==null||c.scrollLeft-1<=0},P=function(){var c=g.value;
return c==null?!1:c.scrollLeft+1>=(c==null?NaN:c.scrollWidth)-(c==null?NaN:c.clientWidth)},v=function(){return q().isHorizontallyScrollable},H=function(c){g.value!=null&&(_.bn("HTML_DIR")==="rtl"&&(c=-c),g.value.scrollBy({left:c,
behavior:(J==null?0:J())?"instant":"smooth"}))},d=function(){H(-320)},a=function(){H(320)},S=_.zq(function(c){N=!0;
w=c.clientX}),K=_.zq(function(c){if(N){c=c.clientX;
var rf=c-w;w=c;var Zv;(Zv=g.value)==null||Zv.scrollBy({left:-rf})}}),h=_.zq(function(){var c=T(),rf=P();
c!==Y()&&Q(c);rf!==e()&&r(rf)});
sT("pointerup",function(){N&&(N=!1)});
return _.Z("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.Z(_.WE,{contentId:function(){return q().contentId},
useModernStyle:!0},function(){var c={},rf={};return _.Z("div",null,_.Z(_.R,{cond:function(){return q().title},
then:function(){return _.Z("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.Z("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return q().title}),_.Z(_.Tl,{data:function(){return q().overflowButton}},{buttonViewModel:_.AB}))}}),_.Z("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.Z(_.R,{cond:function(){return q().previousButton},
then:function(){var Zv={};return _.Z("div",{class:_.Ec("ytChipsShelfViewModelLeftArrowContainer",(Zv.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return Y()},Zv))},_.Z(_.Tl,{data:function(){return q().previousButton}},{buttonViewModel:function(kP){return _.Z(_.AB,{data:kP.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:d})}}))}}),_.Z("div",{el:g,
"on:pointerdown":S,"on:pointermove":K,"on:scroll":h,class:_.Ec("ytChipsShelfViewModelChipsScrollContainer",(c.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=v,c))},_.Z("div",{class:_.Ec("ytChipsShelfViewModelChipsContainer",(rf.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=v,rf.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,rf)),role:"tablist"},_.Z(_.Tl,{data:function(){return q().contents}},{chipViewModel:function(Zv,kP){return _.Z("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.Z(_.XVw,{data:Zv.data,
callback:function(n3,o_){var df=kP(),m$,gx=(m$=u==null?void 0:u())!=null?m$:0;gx===1||gx===2?(m$={},z((m$[df]=o_,m$))):(m$={},z(Object.assign({},k(),(m$[df]=o_,m$))));t==null||t(n3,o_,df)},
disableDeselection:function(){return(u==null?void 0:u())===1},
selected:function(){return!!k()[kP()]}}))}}))),_.Z(_.R,{cond:function(){return q().nextButton},
then:function(){var Zv={};return _.Z("div",{class:_.Ec("ytChipsShelfViewModelRightArrowContainer",(Zv.ytChipsShelfViewModelRightArrowContainerIsHidden=e,Zv))},_.Z(_.Tl,{data:function(){return q().nextButton}},{buttonViewModel:function(kP){return _.Z(_.AB,{data:kP.data,
className:"ytChipsShelfViewModelRightArrow",onClick:a})}}))}})))}))},"Lc");
_.F_.idomCompat={callbacks:{callback:!0}};_.ei(_.F_,"chips-shelf-view-model",{props:{data:_.NH,callback:_.pp,selectionBehavior:_.NH,disableChipsScrollAnimation:_.NH}});var i01=_.ld(function(F){F=_.sk(F,{disabled:!1});var q=F.active,t=F.disabled;F={};F=_.Ec("ytSwitchShapeTrack",(F.ytSwitchShapeTrackActive=function(){return q()},F.ytSwitchShapeTrackDisabled=function(){return t()},F));
var u={};u=_.Ec("ytSwitchShapeKnob",(u.ytSwitchShapeKnobActive=function(){return q()},u));
return _.Z("switch-shape",{class:"ytSwitchShapeHost"},_.Z("div",{class:F}),_.Z("div",{class:u}))},"Mc");var kEE=_.ld(function(F){var q=_.sk(F,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),t=q.data;F=q.className;var u=q.handleOnTapEventInParent,J=q.parentActive;q=_.X(_.np(function(){var w;return(w=J())!=null?w:t().switchedOnByDefault||!1}));
var g=q.next().value,Y=q.next().value,Q=function(){return t().isDisabled},e=_.FG("button");
q=_.zq(function(w){return w.key==="Enter"?(w.preventDefault(),e.value.click(),!1):!0});
var r=_.zq(function(w){if(t().handleOnTapEventInParent||u())return!0;if(Q())return!1;Lwy(t(),g(),w);Y(!g());return!1}),N={};
N=_.Ec("ytSwitchButtonViewModelButton",(N.ytSwitchButtonViewModelTappable=function(){return!Q()},N));
return _.Z("switch-button-view-model",{class:_.Ec("ytSwitchButtonViewModelHost",F)},_.Z("button",{el:e,class:N,"on:click":r,"on:keydown":q,"aria-label":function(){return g()?t().a11yLabelSwitchedOn:t().a11yLabelSwitchedOff},
"aria-checked":g,"aria-disabled":Q,role:"switch"},_.Z(i01,{active:g,disabled:Q})))},"Nc");var E2C=_.ld(function(F){var q=F.data;var t=F.isLeading;var u=F.hideSelectionTextChevron;var J=F.isToggled;var g=function(){return t()?q().leadingImage:q().trailingImage},Y=function(){a:switch(q().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var N="expand_more";
break a;default:N="chevron_right"}return N};
F={};var Q=_.Ec("yt-list-item-view-model-wiz__image-container",(F["yt-list-item-view-model-wiz__leading"]=t,F["yt-list-item-view-model-wiz__trailing"]=function(){return!t()},F)),e=_.Ec("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
F={};var r=_.Ec("yt-list-item-view-model-wiz__accessory",(F["yt-list-item-view-model-wiz__leading"]=t,F["yt-list-item-view-model-wiz__trailing"]=function(){return!t()},F));
return _.Z(_.R,{cond:function(){var N=q(),w=t();return!!(w&&(N.leadingImage||N.leadingAccessory)||!w&&(N.trailingImage||N.trailingButton||N.trailingButtons||N.selectionText))},
then:function(){return _.Z(_.ln,null,_.Z(_.R,{cond:g,then:function(N){return _.Z("div",{class:Q,"aria-hidden":"true"},_.Z(_.sc,{data:N,alt:"",preserveWidth:!0,preserveHeight:!0,className:e,isToggled:J}))}}),_.Z(_.R,{cond:function(){return t()&&q().leadingAccessory},
then:function(){return _.Z("div",{class:Q},_.Z(_.Tl,{data:function(){return q().leadingAccessory}},{avatarViewModel:function(N){return _.Z(_.FJ,{data:N.data,
avatarButtonCustomClassName:e})},
collectionThumbnailViewModel:function(N){return _.Z(VBz,{data:N.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.Z(_.R,{cond:function(){return!t()&&q().trailingButton},
then:function(){return _.Z("div",{class:"yt-list-item-view-model-wiz__button-container"},_.Z(_.Tl,{data:function(){return q().trailingButton}},{buttonViewModel:function(N){return _.Z(_.AB,{data:N.data,
className:r})}}))}}),_.Z(_.R,{cond:function(){var N;
return!t()&&((N=q().trailingButtons)==null?void 0:N.buttons)},
then:function(){return _.Z("div",{class:"yt-list-item-view-model-wiz__button-container"},_.Z(_.Tl,{data:function(){var N;return(N=q().trailingButtons)==null?void 0:N.buttons}},{buttonViewModel:function(N){return _.Z(_.AB,{data:N.data,
className:r})},
accountLinkButtonViewModel:function(N){return _.Z(AId,{data:N.data,className:r})},
switchButtonViewModel:function(N){return _.Z(kEE,{data:N.data,className:r})},
subscribeButtonViewModel:function(N){return _.Z(_.FO,{data:N.data,isOverlay:!1,animateWidth:!1,className:r})},
toggleButtonViewModel:function(N){return _.Z(_.j9,{data:N.data,className:r})}}))}}),_.Z(_.R,{cond:function(){return!t()&&!!q().selectionText},
then:function(){return _.Z(_.ln,null,_.Z(_.rv,{text:function(){return q().selectionText},
className:_.Ec("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.Z(_.R,{cond:function(){return!(u==null?0:u())},
then:function(){return _.Z(_.Tq,{icon:Y,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Oc");var zLf=_.ld(function(F){var q=F.data;return _.Z(_.R,{cond:function(){return q().title||q().subtitle},
then:function(){return _.Z("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.Z(_.R,{cond:function(){return q().title},
then:function(t){return _.Z("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.Z(_.rv,{text:t,className:"yt-list-item-view-model-wiz__title"}))}}),_.Z(_.R,{cond:function(){return q().subtitle},
then:function(t){return _.Z(_.rv,{text:t,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Pc");var qO=_.ld(function(F){var q=F.data;var t=F.hideSelectionTextChevron;var u=F.TrailingAccessory;var J=F.isToggled;var g=F.disabled;var Y=F.isSelectItem;var Q=F.isCompact;var e=F.inPopup;var r=F.disableHorizontalPadding;F=F.isTappableWithoutSelect;var N={};return _.Z("div",{class:_.Ec("yt-list-item-view-model-wiz__label",(N["yt-list-item-view-model-wiz__container"]=function(){return!(Y==null?0:Y())},N["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!q().isDisabled||!(g==null||
!g())},N["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!q().subtitle},N["yt-list-item-view-model-wiz__container--compact"]=Q,N["yt-list-item-view-model-wiz__container--tappable"]=F,N["yt-list-item-view-model-wiz__container--in-popup"]=e,N["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(r==null?void 0:r())&&!(Y==null?0:Y())},N))},_.Z(E2C,{data:q,
isLeading:!0,hideSelectionTextChevron:t,isToggled:J}),_.Z(zLf,{data:q}),_.Z(_.R,{cond:function(){return!!u},
then:function(){return _.Z("div",{class:"yt-list-item-view-model-wiz__trailing"},u&&_.Z(u,null))},
else:function(){return _.Z(E2C,{data:q,isLeading:!1,hideSelectionTextChevron:t,isToggled:J})}}))},"Qc");var n2v=_.ld(function(F){var q=_.sk(F,{checked:!1});F=q.name;var t=q.onChange,u=q.onClick,J=q.checked,g=q.labelRenderable,Y=q.hasLeadingLabel,Q=q.labelClass,e=q.isCompact,r=q.selectElementClass;q=q.disableHorizontalPadding;var N="checkbox"+_.VV(_.jn),w=_.zq(function(T){u==null||u(T);return!1}),k=_.zq(function(T){t==null||t(T);
return!1}),z={};
return _.Z("checkbox-shape",null,_.Z("label",{class:_.Ec("checkbox-shape-wiz",Q,(z["checkbox-shape-wiz--compact"]=e,z["checkbox-shape-wiz--disable-horizontal-padding"]=q,z))},_.Z("input",{class:"checkbox-shape-wiz__input",id:N,checked:J,name:F,type:"checkbox","prop:checked":J,"on:change":k,"on:click":w}),_.Z(_.R,{cond:function(){return!(Y==null?0:Y())},
then:function(){return _.Z(o2z,{isLeading:!0,selectElementClass:r})}}),_.Z(_.R,{cond:function(){return!!g},
then:function(){return _.Z("div",{class:"checkbox-shape-wiz__label"},g==null?void 0:g())}}),_.Z(_.R,{cond:Y,
then:function(){return _.Z(o2z,{isLeading:!1,selectElementClass:r})}})))},"Rc");
n2v.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var o2z=_.ld(function(F){var q=F.selectElementClass;F={};return _.Z("div",{class:_.Ec("checkbox-shape-wiz__checkbox",q,(F["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(q==null?0:q())},F)),
"aria-hidden":"true"},_.Z(_.Tq,{icon:_.E("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.Z(_.Tq,{icon:_.E("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Sc");_.t_=_.ld(function(F){var q=F.name;var t=F.onChange;var u=F.onClick;var J=F.checked;var g=F.labelRenderable;var Y=F.useCheckIcon;var Q=F.hasLeadingLabel;var e=F.labelClass;var r=F.isCompact;var N=F.selectElementClass;var w=F.ariaLabel;F=F.className;var k="radio"+_.VV(_.jn),z=_.FG("input"),T=_.zq(function(h){z.value.checked=!(J==null||!J());t==null||t(h);return!1}),P=_.zq(function(h){u==null||u(h);
return!1}),v=_.zq(function(h){_.E("enable_ios_webview_radio_button_responsiveness")&&(h.preventDefault(),z.value.click())}),H=_.X(_.N3(!1,void 0,"TcCZlf")),d=H.next().value,a=H.next().value;
H=_.zq(function(){var h;((h=_.sV().resolve(_.JU(_.GD)))==null?0:h.isKeyBoardInUse())&&a(!0)});
var S=_.zq(function(){a(!1)}),K={};
return _.Z("radio-shape",{class:_.Ec("radio-shape-wiz",F)},_.Z("input",{el:z,class:"radio-shape-wiz__input",id:k,"prop:checked":J,name:q,type:"radio","on:change":T,"on:click":P,"aria-label":w,"on:focusin":H,"on:focusout":S}),_.Z("label",{class:_.Ec("radio-shape-wiz__label-container",e,(K["radio-shape-wiz--compact"]=r,K["radio-shape-wiz__label-container--keyboard-focused"]=d,K)),for:k,"on:click":v},_.Z(_.R,{cond:function(){return!(Q==null?0:Q())},
then:function(){return _.Z(MQv,{checked:J,useCheckIcon:Y,isLeading:!0,selectElementClass:N})}}),_.Z(_.R,{cond:function(){return!!g},
then:function(){return _.Z("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(w==null?0:w())?"true":"false"}},g==null?void 0:g())}}),_.Z(_.R,{cond:Q,
then:function(){return _.Z(MQv,{checked:J,useCheckIcon:Y,isLeading:!1,selectElementClass:N})}})))},"Tc");
_.t_.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var MQv=_.ld(function(F){var q=F.useCheckIcon;var t=F.selectElementClass;F=function(){return(q==null?0:q())?"CHECK":_.E("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var u={};return _.Z("div",{class:_.Ec("radio-shape-wiz__radio",t,(u["radio-shape-wiz__radio--check-icon"]=q,u["radio-shape-wiz__radio--radio-default-style"]=function(){return!(t==null?0:t())},u)),
"aria-hidden":"true"},_.Z(_.Tq,{icon:F}),_.Z(_.Tq,{icon:F,active:function(){return!(q==null?0:q())}}))},"Uc");_.uE=_.ld(function(F){var q=F.data;var t=F.isMenuItem;var u=F.isCompact;var J=F.onTap;var g=F.trailingAccessory;var Y=F.hideSelectionTextChevron;var Q=F.disabled;var e=F.inPopup;var r=F.disableHorizontalPadding;var N=F.isOverlay;F=F.isToggled;var w=_.dC(function(rf){return j3f(rf,q())}),k=function(){return _.E("enable_web_shorts_captions_language_command")?Object.assign({},q(),w()):q()},z=function(){return!(k().isSelected===void 0||!k().selectionStyle||k().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
T=function(){return(_.yg(k().rendererContext)||J)&&!z()},P={},v=_.Ec("yt-list-item-view-model-wiz__container",(P["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.yg(k().rendererContext)||z()},P["yt-list-item-view-model-wiz__container--compact"]=u,P["yt-list-item-view-model-wiz__container--in-popup"]=e,P["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(r==null?void 0:r())&&z()},P)),H=function(){return k().leadingImage||k().leadingAccessory},
d=_.Ec("yt-list-item-view-model-wiz__image-container",function(){return H()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
P=_.zq(function(rf){return void(J==null?void 0:J(rf))});
var a=_.jGy(),S=_.X(_.N3(!1,void 0,"iQppzc")),K=S.next().value,h=S.next().value,c={data:k,hideSelectionTextChevron:Y,TrailingAccessory:g,isToggled:F,disabled:Q,isSelectItem:z,isCompact:u,inPopup:e,disableHorizontalPadding:r,isTappableWithoutSelect:T};g={};return _.Z("yt-list-item-view-model",{el:_.l_(_.CH(function(){return k().rendererContext}),e2u(function(){return T==null?void 0:T()},{focusin:function(){var rf;
((rf=_.sV().resolve(_.JU(_.GD)))==null?0:rf.isKeyBoardInUse())&&h(!0)},
focusout:function(){h(!1)}})),
class:_.Ec("yt-list-item-view-model-wiz",(g["yt-list-item-view-model-wiz--is-overlay"]=N,g["yt-list-item-view-model-wiz--keyboard-focused"]=K,g)),role:function(){return(t==null?0:t())?"menuitem":"listitem"},
tabindex:function(){var rf=T();return J||rf?0:void 0},
"on:keydown":a,"on:click":P},_.Z(_.R,{cond:z,then:function(){return _.Z(_.OK,null,_.Z(_.DA,{when:function(){return k().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.Z(n2v,{labelRenderable:function(){return _.Z(qO,Object.assign({},c))},
isCompact:u,checked:function(){return k().isSelected},
hasLeadingLabel:function(){return!!H()},
labelClass:v,selectElementClass:d,disableHorizontalPadding:r})}),_.Z(_.DA,{when:function(){return k().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.Z(_.t_,{labelRenderable:function(){return _.Z(qO,Object.assign({},c))},
isCompact:u,checked:function(){return k().isSelected},
hasLeadingLabel:function(){return!!H()},
labelClass:v,selectElementClass:d})}),_.Z(_.DA,{when:function(){return k().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.Z(_.t_,{labelRenderable:function(){return _.Z(qO,Object.assign({},c))},
isCompact:u,checked:function(){return k().isSelected},
hasLeadingLabel:function(){return!!H()},
labelClass:v,selectElementClass:d,useCheckIcon:!0})}),_.Z(_.W_,null,function(){return _.Z(qO,Object.assign({},c))}))},
else:function(){return _.Z(qO,Object.assign({},c))}}))},"Vc");
_.uE.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.Tyv=_.ld(function(F){var q=F.data;var t=F.onTap;var u=F.onSwitch;var J=F.overrideDisabled;F=F.disableHorizontalPadding;var g=_.X(_.np(function(){var w;return((w=ab$(N()))==null?void 0:w.switchedOnByDefault)||!1})),Y=g.next().value,Q=g.next().value;
g=_.X(_.N3(!1,void 0,"uRe0y"));var e=g.next().value,r=g.next().value,N=function(){var w;if(!(w=q().switchButton)){var k=q();w=J==null?void 0:J();k={switchOnCommand:k.switchOnCommand,switchOffCommand:k.switchOffCommand,switchedOnByDefault:k.switchedOnByDefault,isDisabled:k.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:k.a11yLabelSwitchedOn,a11yLabelSwitchedOff:k.a11yLabelSwitchedOff};w!==void 0&&(k.isDisabled=w);w={switchButtonViewModel:k}}return w};
return _.Z("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.Z(_.uE,{data:function(){return{title:q().title,subtitle:q().attributedSubtitle,leadingImage:q().leadingImage,leadingAccessory:q().leadingAccessory,isDisabled:q().isDisabled}},
onTap:function(w){var k=ab$(N());!k||k.isDisabled||q().ignoreTapUntilCommandCompletes&&e()||(t==null||t(w),Lwy(k,Y(),w,q().ignoreTapUntilCommandCompletes,r),Q(!Y()),u==null||u(Y()))},
trailingAccessory:function(){return _.Z(_.Tl,{data:N},{switchButtonViewModel:function(w){return _.Z(kEE,{data:w.data,parentActive:Y,handleOnTapEventInParent:!!t})}})},
disableHorizontalPadding:F}))},"Wc");var GEO=_.ld(function(F){var q=_.X(_.np(function(){var J,g;return!!((J=F.data())==null?0:(g=J.initialState)==null?0:g.isToggled)})),t=q.next().value,u=q.next().value;
q=_.zq(function(){u(!t())});
return _.Z("toggleable-list-item-view-model",{el:_.l_(_.CH(function(){return F.data().rendererContext})),
class:_.Ec("toggleableListItemViewModelHost",F.className),"on:click":q},_.Z(_.R,{cond:function(){if(t()){var J=F.data().toggledListItem;J=_.n(J,_.xC)}else J=F.data().defaultListItem,J=_.n(J,_.xC);return J},
then:function(J){return _.Z(_.uE,{data:J,isToggled:t,ariaLabel:function(){var g=t()?F.data().toggledListItem:F.data().defaultListItem,Y;g=(Y=_.n(g,_.xC))==null?void 0:Y.rendererContext;var Q;return(Q=_.n(g,_.vX))==null?void 0:Q.label},
ariaPressed:function(){return t()}})}}))},"Xc");var DSn=_.oD("DOWNLOAD",{},"Download"),Wif=_.oD("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),O0E=_.oD("RETRY",{},"Retry"),PgJ=_.oD("PAUSE_DOWNLOADING",{},"Pause downloading"),xSC=_.oD("RESUME_DOWNLOAD",{},"Resume download"),czu={text:DSn,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},DM={text:Wif,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},tPW={text:O0E,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
FQt={text:PgJ,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},qGW={text:xSC,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var AZf=_.ld(function(F){var q=function(){var Q=F.data();Q=_.b6(Q.rendererContext);var e;return(e=_.n(Q,_.EO))==null?void 0:e.videoId},t=_.dC(function(Q){var e=q(),r=shy(F.data());
return e?_.VX(Q,e):r?_.Uf(Q,r):"TRANSFER_STATE_UNKNOWN"}),u=_.nH(_.zzo,q),J=_.dC(function(Q){return _.RzM(Q,q(),shy(F.data()))}),g=function(){return JyA(t(),u(),_.b6(F.data().rendererContext),!!shy(F.data()))},Y=function(){return J()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.Z("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:Y},_.Z(_.R,{cond:function(){return!Y()},
then:function(){return _.Z(_.R,{cond:g,then:function(Q){return _.Z(_.Gn,{each:Q},function(e){return _.Z(_.uE,{data:e,isCompact:F.isCompact,isMenuItem:F.isMenuItem,inPopup:F.inPopup,disableHorizontalPadding:F.disableHorizontalPadding})})}})}}))},"Yc");
AZf.idomCompat=!0;_.v2j=_.ld(function(F){var q=F.data;var t=F.isCompact;var u=F.hideSelectionTextChevron;var J=F.inPopup;var g=F.isOverlay;var Y=F.disableHorizontalPadding;var Q=function(){return gNf(q())&&(J==null?void 0:J())};
F={};return _.Z("yt-list-view-model",{class:_.Ec("ytListViewModelHost",(F.ytListViewModelHostKaiosSpatNav=iFW&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",F.ytListViewModelCollectionThumbnailClass=function(){return YGP(q())},F)),
role:function(){return Q()?"menu":"list"},
style:_.Mo({"max-height":function(){var e,r=(e=q())==null?void 0:e.visibleElementCount;if(r)return YGP(q())?(r+.5)*48+"px":(r+.5)*40+"px"}})},_.Z(_.Tl,{data:function(){return q().listItems}},{listItemViewModel:function(e){return _.Z(_.uE,{data:e.data,
isMenuItem:Q,isCompact:t,hideSelectionTextChevron:u,inPopup:J,isOverlay:g,disableHorizontalPadding:Y})},
toggleableListItemViewModel:function(e){return _.Z(GEO,{data:e.data})},
downloadListItemViewModel:function(e){return _.Z(AZf,{data:e.data,isMenuItem:Q,isCompact:t,inPopup:J,disableHorizontalPadding:Y})},
switchListItemViewModel:function(e){return _.Z(_.Tyv,{data:e.data,disableHorizontalPadding:Y})}}))},"Zc");
_.v2j.idomCompat=!0;var Ir1=_.ld(function(F){var q=F.data;var t=F.isOverlay;F={};return _.Z("yt-course-perks-view-model",{class:_.Ec("ytwCoursePerksViewModelHost",(F.ytwCoursePerksViewModelHostOverlay=t,F))},_.Z("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.Z(_.rv,{text:function(){return q().title}})),_.Z("div",null,_.Z(_.R,{cond:function(){return q().perks},
then:function(u){return _.Z(_.v2j,{data:function(){return{listItems:u()}},
isCompact:!0,isOverlay:t})}})))},"$c");_.ei(Ir1,"yt-course-perks-view-model",{props:{data:_.pp,isOverlay:_.pp}});_.ei(_.ld(function(F){var q=F.data;return _.Z("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.Z("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.Z(_.rv,{text:function(){return q().title}})),_.Z("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.Z(_.rv,{text:function(){return q().progressSummary}})),_.Z("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.Z("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Mo({width:function(){return q().progressPercentage*100+"%"}})})))},"ad"),"yt-course-progress-view-model",{props:{data:_.NH}});var H0E=_.ld(function(F){var q={};return _.Z("yt-progress-view-model",{class:_.Ec("ytwProgressViewModelHost",(q.ytwProgressViewModelHostOverlay=_.Jv(F.isOverlay,!1),q))},_.Z(_.R,{cond:function(){return F.data().progressSummary},
then:function(t){return _.Z("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.Z(_.rv,{text:t}))}}),_.Z("div",{class:"ytwProgressViewModelHostProgressContainer"},_.Z(_.R,{cond:function(){return F.data().leadingLabel},
then:function(t){return _.Z("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.Z(_.rv,{text:t}))}}),_.Z("div",{class:"ytwProgressViewModelHostProgressBar"},_.Z("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(F.data().progressPercentage||0)*100+"%"}}))))},"bd");var J_=_.ld(function(F){var q=F.starNumber;var t=F.data;var u=function(){var J;return((J=t())==null?void 0:J.rating)||0};
return _.Z(_.R,{cond:function(){return q()},
then:function(J){return _.Z(_.OK,null,_.Z(_.DA,{when:function(){return u()>=J()-.25}},function(){return _.Z("div",{class:"ytStarRatingViewModelHostStar"},_.Z(_.Tq,{icon:"STAR_FILLED"}))}),_.Z(_.DA,{when:function(){return u()>=J()-.75}},function(){return _.Z("div",{class:"ytStarRatingViewModelHostStar"},_.Z(_.Tq,{icon:"STAR_HALF"}))}),_.Z(_.W_,null,function(){return _.Z("div",{class:"ytStarRatingViewModelHostStar"},_.Z(_.Tq,{icon:"STAR_BORDER"}))}))}})},"cd"),mSn=_.ld(function(F){F=F.data;
return _.Z("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.Z(J_,{starNumber:1,data:F}),_.Z(J_,{starNumber:2,data:F}),_.Z(J_,{starNumber:3,data:F}),_.Z(J_,{starNumber:4,data:F}),_.Z(J_,{starNumber:5,data:F}))},"dd");_.ei(_.ld(function(F){var q=_.sk(F,{}).data;return _.Z("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.Z("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.Z(_.rv,{text:function(){var t;return(t=q())==null?void 0:t.title}})),_.Z("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.Z(_.R,{cond:function(){return q().starProgressViewModels},
then:function(t){return _.Z("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.Z(_.Tl,{data:t},{progressViewModel:H0E}))}}),_.Z("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.Z("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.Z(_.rv,{text:function(){var t;
return(t=q())==null?void 0:t.averageRatingLabel}})),_.Z(_.R,{cond:function(){return q().zeroStateText},
then:function(t){return _.Z("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.Z(_.rv,{text:t}))}}),_.Z(_.R,{cond:function(){return q().starRatingViewModel},
then:function(t){return _.Z("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.Z(_.Tl,{data:t},{starRatingViewModel:mSn}))}}),_.Z("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.Z(_.rv,{text:function(){var t;
return(t=q())==null?void 0:t.totalRatingsCountLabel}})))))},"ed"),"yt-course-ratings-view-model",{props:{data:_.pp}});var $Sj;$Sj={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.b0J=_.ld(function(F){var q=_.FG("yt-learning-journey-loader-view-model"),t=_.i6();_.AN(function(){requestAnimationFrame(function(){var J;(J=t.lottieEl)==null||J.addEventListener("DOMLoaded",function(){var g;(g=F.onLottieLoaded)==null||g.call(F)})});
var u=F.data().browseEndpoint;u&&_.L9(u)});
return _.Z("yt-learning-journey-loader-view-model",{class:_.Ec("learningJourneyLoaderViewModelHost",F.className),"data-target-id":function(){var u;return((u=F.data)==null?void 0:u.call(F).targetId)||""},
el:q},_.Z(_.bT,{className:_.Ec("learningJourneyLoaderViewModelLoader",F.className),animationName:function(){return $Sj.animationConfig.name},
data:$Sj,animationRef:t}))},"fd");_.ei(_.b0J,"yt-learning-journey-loader-view-model",{props:{data:_.NH,className:_.pp,onLottieLoaded:_.pp}});var QhM=new Set,pKf=null;var Cge=_.ld(function(F){var q=null,t=null,u=function(){return F.data()},J=function(){var P=u();
var v=_.sV().resolve(_.JU(_.qo));P=v!=null&&v()?P.darkThemeColorPalette:P.lightThemeColorPalette;return{primaryTextColor:Oo(P,0),secondaryTextColor:Oo(P,1),optionColor:Oo(P,2),backgroundColor:Oo(P,3),videoBackgroundColor:Oo(P,4)}},g=function(){return!!J().optionColor},Y=_.X(_.N3(-1,void 0,"F20Hhb")),Q=Y.next().value,e=Y.next().value,r=function(P){return u().correctAnswerIndex===P},N=function(){return Q()!==-1};
Y=_.X(_.N3("",void 0,"ZztYo"));var w=Y.next().value,k=Y.next().value,z=function(){var P=N(),v=Q()===u().correctAnswerIndex;return P?v?264685:264684:264683},T=function(P){return Q()===u().correctAnswerIndex&&r(P)};
return _.Z("learning-journey-quiz-view-model",{class:_.Ec("learningJourneyQuizViewModelHost",F.className),style:_.Mo({background:function(){return J().backgroundColor}})},_.Z("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},w),_.Z(_.R,{cond:function(){return!!u().video},
then:function(){return _.Z("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Mo({background:function(){return J().videoBackgroundColor}})},_.Z(_.Tl,{data:function(){return u().video}},{lockupViewModel:function(P){return _.Z(_.x5,{data:P.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.Z("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.Z("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.Z("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.Z(_.R,{cond:function(){return!!u().aiGeneratedQuizLabel},
then:function(){return _.Z("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.Z(_.rv,{text:function(){return u().aiGeneratedQuizLabel}}))}}),_.Z("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Mo({"align-items":function(){return u().overflowMenu?"start":"center"}})},_.Z("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Mo({"min-height":function(){return u().overflowMenu?"48px":"26px"}})},_.Z("div",{class:"learningJourneyQuizYoututorText",
el:_.l_(function(P){_.WZ(z(),P,q,function(v){q=v})}),
style:_.Mo({color:function(){return J().primaryTextColor}}),
"client-ve-type":z},_.Z(_.rv,{text:function(){return u().questionHeaderText}})))),_.Z("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.l_(function(P){_.WZ(264688,P,t,function(v){t=v})}),
style:_.Mo({color:function(){return J().secondaryTextColor}}),
"client-ve-type":264688},_.Z(_.rv,{text:function(){var P=u();return N()?P.explanationText:P.questionSubheaderText}}))),_.Z("div",{role:"group",
class:_.Ec("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.Z(_.Gn,{each:function(){return u().optionsData||[]}},function(P,v){var H={};
return _.Z("button",{class:_.Ec("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(H.learningJourneyQuizViewModelHostQuizHover=function(){return!N()},H.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=g,H.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return N()&&r(v())},H.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var d;
if(d=Q()!==u().correctAnswerIndex)d=v(),d=Q()===d;return d},H)),
"on:click":_.zq(function(){if(N())return!1;e(v());var d,a;k(r(v())?((d=u().successTitle)==null?void 0:d.content)||"":((a=u().failureTitle)==null?void 0:a.content)||"");return!1}),
style:_.Mo({background:"transparent"}),"aria-description":function(){var d,a;return N()?r(v())?(d=u().successTitle)==null?void 0:d.content:(a=u().failureTitle)==null?void 0:a.content:""},
"aria-disabled":N,"client-ve-type":264686},_.Z("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.Z(_.rv,{text:P.optionText}),_.Z(_.R,{cond:function(){var d=v(),a;if(a=N())a=Q()===d||r(d);return a},
then:function(){return _.Z(yZL,{isOptionCorrect:r,optionIndex:v,isOptionSelectedAndCorrect:T,colors:J})}})))}),_.Z(_.R,{cond:N,
then:function(){return _.Z("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.Z("div",{class:"learningJourneyQuizYoututorExplanationText"},_.Z(_.rv,{text:function(){return u().explanationHeaderText}})),_.Z(_.rv,{text:function(){return u().optionsData[Q()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"gd"),yZL=_.ld(function(F){var q={};
return _.Z("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.Ec("learningJourneyQuizYoututorOptionIconTrailing",(q.learningJourneyQuizViewModelHostQuizPulse=function(){return F.isOptionSelectedAndCorrect(F.optionIndex())},q.learningJourneyQuizYoututorIconIncorrectFill=function(){return!F.isOptionSelectedAndCorrect(F.optionIndex())&&!F.isOptionCorrect(F.optionIndex())},q.learningJourneyQuizYoututorIconCorrectFill=function(){return F.isOptionCorrect(F.optionIndex())},
q))},_.Z("path",{d:function(){var t=F.optionIndex();
return F.isOptionCorrect(t)?"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":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"hd");
Cge.idomCompat=!0;var dSe;_.VQf=_.ld(function(F){var q=null,t=null,u=null,J=function(){return F.data()},g=function(){var S=J();
var K=_.sV().resolve(_.JU(_.qo));S=K!=null&&K()?S.darkThemeColorPalette:S.lightThemeColorPalette;return{primaryTextColor:PZ(S,0),secondaryTextColor:PZ(S,1),optionColor:PZ(S,2),backgroundColor:PZ(S,3),videoBackgroundColor:PZ(S,4)}},Y=function(){return!!g().optionColor},Q=_.X(_.N3(-1,void 0,"QDu8Oe")),e=Q.next().value,r=Q.next().value,N=function(S){return e()===S},w=function(S){return J().correctAnswerIndex===S},k=function(){return e()!==-1},z=function(){return e()===J().correctAnswerIndex},T=function(){var S=
J(),K=k(),h=z();
return K?h?S.successTitle:S.failureTitle:S.questionHeaderText},P=function(){var S=k(),K=z();
return S?K?264685:264684:264683},v=function(){var S=J();
return k()?S.explanationText:S.questionSubheaderText},H=function(){return!!J().video},d=function(S){return z()&&w(S)},a=_.zq(function(){r(-1);
return!1});
return _.Z(_.R,{cond:function(){return J().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.Z(Cge,{data:function(){return J()}})},
else:function(){return _.Z("learning-journey-quiz-view-model",{class:_.Ec("learningJourneyQuizViewModelHost",F.className),style:_.Mo({background:function(){return g().backgroundColor}})},_.Z(_.R,{cond:H,
then:function(){return _.Z("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Mo({background:function(){return g().videoBackgroundColor}})},_.Z(_.Tl,{data:function(){return J().video}},{lockupViewModel:function(S){return _.Z(_.x5,{data:S.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.Z("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.Z("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.Z("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.Z(_.R,{cond:function(){return!!J().aiGeneratedQuizLabel},
then:function(){return _.Z("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.Z(_.rv,{text:function(){return J().aiGeneratedQuizLabel}}))}}),_.Z("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Mo({"align-items":function(){return J().overflowMenu?"start":"center"}})},_.Z("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Mo({"min-height":function(){return J().overflowMenu?"48px":"26px"}})},_.Z("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.l_(function(S){_.WZ(P(),S,q,function(K){q=K})}),
style:_.Mo({color:function(){return g().primaryTextColor}}),
"client-ve-type":P},_.Z(_.rv,{text:T}))),_.Z("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.Z(_.R,{cond:k,then:function(){return _.Z("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.l_(function(S){_.WZ(264687,S,t,function(K){t=K})}),
"on:click":a,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.Z("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Mo({fill:function(){return g().primaryTextColor}})},_.Z("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"})))}}),
_.Z(_.Tl,{data:function(){return J().overflowMenu}},{buttonViewModel:function(S){return _.Z(_.AB,{data:S.data})}}))),_.Z("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.l_(function(S){_.WZ(264688,S,u,function(K){u=K})}),
style:_.Mo({color:function(){return g().secondaryTextColor}}),
"client-ve-type":264688},_.Z(_.rv,{text:v}))),_.Z("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.Z(_.Gn,{each:function(){return J().optionsData||[]}},function(S,K){var h={};
return _.Z("button",{class:_.Ec("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(h.learningJourneyQuizViewModelHostQuizHover=function(){return!k()},h.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=Y,h.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return d(K())},h.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!z()&&N(K())},h.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return k()&&
!N(K())},h)),
"on:click":_.zq(function(){if(k())return!1;r(K());return!1}),
style:_.Mo({background:function(){var c=K();return k()&&N(c)?"":Y()?g().optionColor:"transparent"}}),
"aria-disabled":k,"client-ve-type":264686},_.Z("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.Z(_.R,{cond:k,then:function(){return _.Z(dSe,{isOptionCorrect:w,optionIndex:K,isOptionSelectedAndCorrect:d,colors:g})}}),_.Z(_.rv,{text:S.optionText})))})))))}})},"id");
dSe=_.ld(function(F){var q={};return _.Z("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var t=F.optionIndex();return F.isOptionCorrect(t)?"0 0 24 24":"0 -960 960 960"},
class:_.Ec("learningJourneyQuizViewModelHostQuizOptionIconLeading",(q.learningJourneyQuizViewModelHostQuizPulse=function(){return F.isOptionSelectedAndCorrect(F.optionIndex())},q)),
style:_.Mo({fill:function(){return F.colors().primaryTextColor}})},_.Z("path",{d:function(){var t=F.optionIndex();
return F.isOptionCorrect(t)?"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"}}))},"jd");
_.VQf.idomCompat=!0;_.ei(_.VQf,"learning-journey-quiz-view-model",{props:{data:_.NH,className:_.NH}});var USL=_.ld(function(F){var q=_.X((0,_.ZmL)(function(){var t;return{targetId:(t=F.data().config)==null?void 0:t.suspenseKey,contents:[F.data()]}})).next().value;
return _.Z("yt-suspense-view-model",{class:_.Ec("ytSuspenseViewModelHost")},_.Z(_.Tl,{data:function(){if(q().contents.length>0){var t;return(t=q().contents[0].config)==null?void 0:t.contents}}},{lockupViewModel:_.x5}))},"kd");var S8n=_.ld(function(F){var q=_.sk(F,{palette:void 0,isLastItem:!1}),t=q.palette,u=q.isLastItem,J=function(){return F.data().isHighlighted},g=function(){var e;
return ZDo((e=t())==null?void 0:e.iconDisabledColor)},Y=function(){var e;
return ZDo((e=t())==null?void 0:e.primaryTitleColor)},Q=function(){var e;
return ZDo((e=t())==null?void 0:e.secondaryTitleColor)};
q={};return _.Z("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.l_(_.CH(function(){return F.data().rendererContext}))},_.Z(_.Tl,{data:function(){return F.data().thumbnail}},{thumbnailViewModel:_.zj}),_.Z("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.Z("div",{class:_.Ec("ytMacroMarkerListItemViewModelTimeDescription",(q.ytMacroMarkerListItemViewModelHighlighted=J,q)),
style:_.Mo({"background-color":function(){return J()?Y():g()},
color:function(){return J()?"":Q()}})},_.Z(_.rv,{text:function(){return F.data().timestamp}})),_.Z("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Mo({"background-color":function(){return u()?"transparent":g()}})}),_.Z("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(J()?Y():Q())}},_.Z(_.rv,{text:function(){return F.data().title}}))))},"ld");_.sA=_.ld(function(F){function q(sM){d("transform:translateX("+(_.bn("HTML_DIR")==="rtl"?"":"-")+sM+"px)")}
function t(sM){return Math.min(Math.max(sM,0),H()-c())}
function u(){var sM=K()+n3();return J()?(Math.round(c()/sM)||1)*sM:0}
var J=function(){return F.data().items||[]},g=function(){return F.data().previousButton},Y=function(){return F.data().nextButton},Q=function(){var sM,FL;
return(FL=(sM=F.disableArrows)==null?void 0:sM.call(F))!=null?FL:!1},e=function(){var sM;
return!((sM=F.forceNarrowLayout)==null||!sM.call(F))},r=_.zy(function(){var sM;
return!((sM=F.centerAlignItems)==null||!sM.call(F))&&H()<=c()},void 0,"Uto0kc"),N=_.FG("horizontal-shelf-view-model"),w=_.FG("div"),k=_.X(_.N3(0,void 0,"G0xZB")),z=k.next().value,T=k.next().value;
k=_.X(_.N3(0,void 0,"kqCYFf"));var P=k.next().value,v=k.next().value,H=P;P=_.X(_.N3("",void 0,"Hh6Uye"));k=P.next().value;var d=P.next().value;P=_.X(_.N3(0,void 0,"yMGBKb"));var a=P.next().value,S=P.next().value,K=a;P=_.X(_.N3(0,void 0,"VChthd"));a=P.next().value;var h=P.next().value,c=a;P=_.X(_.N3(!1,void 0,"qJlhhe"));var rf=P.next().value,Zv=P.next().value;P=_.X(_.N3(0,void 0,"x7H94"));a=P.next().value;var kP=P.next().value,n3=a;P=_.X(_.N3(0,void 0,"ksuUee"));var o_=P.next().value,df=P.next().value;
P=_.X(_.N3("50%",void 0,"uxCxde"));var m$=P.next().value,gx=P.next().value,Hf=function(){var sM,FL=(sM=F.data())==null?void 0:sM.responsiveContainerConfiguration,Ev,e5;return FL?K9f(FL==null?void 0:FL.responsiveSize):(e5=(Ev=F.sizing)==null?void 0:Ev.call(F))!=null?e5:"STANDARD"};
P=_.zy(function(){return!Q()&&z()>0},void 0,"XK60w");
a=_.zy(function(){return!Q()&&z()<H()-c()},void 0,"D22LVd");
var Zw=function(){T(t(z()-u()));q(z())},cy=function(){T(t(z()+u()));
q(z())},wx=function(){N.value!==null&&xO()},Rj;
_.v_(function(){xO();window.ResizeObserver?(Rj=new ResizeObserver(_.ON(wx,0)),Rj.observe(N.value)):window.addEventListener("resize",wx)});
_.vj(function(){if(window.ResizeObserver){var sM;(sM=Rj)==null||sM.disconnect()}else window.removeEventListener("resize",wx)});
var xO=function(){var sM=N.value.clientWidth,FL=F.includeMargin!==void 0?F.includeMargin():!1,Ev;var e5=F.hasPeek!==void 0?F.hasPeek():!((Ev=F.data())==null||!Ev.hasPeek);sM=_.hC({containerWidth:sM,hasPeek:e5,sizing:Hf(),marginSettings:FL?e()?4:1:0});kP(sM.gutter);df(sM.margin);S(sM.itemWidth);Zv(sM.maxContainerWidth<528||e());h(sM.maxContainerWidth);J()&&v((sM.itemWidth+sM.gutter)*J().length-sM.gutter);if(J()){var z1;if(((z1=F.thumbnailAspectRatio)==null?void 0:z1.call(F))!==void 0){var qD;gx(K()/
tI3((qD=F.thumbnailAspectRatio)==null?void 0:qD.call(F))/2+"px")}else gx("50%")}},DQ={},fe={};
return _.Z("horizontal-shelf-view-model",{class:_.Ec("ytwHorizontalShelfViewModelHost",F.className),el:N},_.Z(_.R,{cond:function(){var sM;return F.data().header&&!((sM=F.horizontalShelfExperiments)==null?0:sM.call(F).hideHeader)},
then:function(){return _.Z("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Mo({width:function(){return c()+"px"},
padding:function(){return"0 "+o_()+"px"}})},_.Z(_.Tl,{data:function(){return F.data().header}},{sectionHeaderViewModel:function(sM){return _.Z(_.Ae,{data:sM.data,
disableHorizontalPadding:!0,forceSmallLayout:rf,useResponsiveLayout:!0})}}))}}),_.Z("div",{class:_.Ec("ytwHorizontalShelfViewModelOuterContainer",(DQ.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return r()},DQ)),
style:_.Mo({"margin-top":function(){var sM,FL=F.data().header&&!((sM=F.horizontalShelfExperiments)==null?0:sM.call(F).hideHeader),Ev;return(((Ev=F.ensureMarginTop)==null?0:Ev.call(F))&&!FL?12:0)+"px"}})},_.Z("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Mo({width:function(){return c()+"px"},
padding:function(){return"0 "+o_()+"px"},
overflow:function(){return Q()?"auto":"hidden"}})},_.Z("div",{class:_.Ec("ytwHorizontalShelfViewModelItems",(fe.ytwHorizontalShelfViewModelCenterAlignItems=function(){return r()},fe)),
el:w,style:k},_.Z(_.Tl,{data:J},{macroMarkerListItemViewModel:function(sM,FL){return _.Z("div",{style:_.Mo({width:function(){return K()+"px"},
"margin-right":function(){return(FL()===J().length-1?0:n3())+"px"}})},_.Z(S8n,{data:sM.data,
palette:_.Jv(F.palette),isLastItem:function(){return FL()===J().length-1}}))},
lockupViewModel:function(sM,FL){var Ev=sM.data;return _.Z("div",{style:_.Mo({width:function(){return K()+"px"},
"margin-right":function(){return(FL()===J().length-1?0:n3())+"px"}})},_.Z(_.x5,{data:Ev,
containerType:4,sizing:Hf,protectBackground:F.protectBackground,thumbnailFixedWidth:function(){return Rky(Ev())+"px"},
thumbnailTargetWidth:function(){return Rky(Ev())}}))},
suspenseViewModel:function(sM,FL){return _.Z("div",{style:_.Mo({width:function(){return K()+"px"},
"margin-right":function(){return(FL()===J().length-1?0:n3())+"px"}})},_.Z(USL,{data:sM.data}))}}))),_.Z(_.R,{cond:P,
then:function(){return _.Z("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Mo({top:function(){return m$()}})},_.Z(_.Tl,{data:g},{buttonViewModel:function(sM){return _.Z(_.AB,{data:sM.data,
onClick:Zw})}}))}}),_.Z(_.R,{cond:a,
then:function(){return _.Z("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Mo({top:function(){return m$()}})},_.Z(_.Tl,{data:Y},{buttonViewModel:function(sM){return _.Z(_.AB,{data:sM.data,
onClick:cy})}}))}})))},"md");
_.sA.idomCompat=!0;var hLf=_.ld(function(F){var q=function(){return F.data().targetId||""},t=function(){var P;
return((P=F.data())==null?void 0:P.expansionEntityKey)||""},u=_.nH(_.Uc,t),J=!0,g=function(){var P;
return((P=u())==null?void 0:P.value)===q()},Y=function(P){_.ud(_.Gl("stringEntity",t(),{key:t(),
value:P?q():""}))};
_.AN(function(){J=!1;F.data().isExpanded&&Y(!0)});
var Q=function(){if(g()){var P=!0;F.onCollapse!==void 0&&(P=F.onCollapse());P&&Y(!1)}else Y(!0)},e=_.zq(Q),r=function(){var P;
return(((P=F.accordionStyle)==null?void 0:P.call(F))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},N=_.FG("div"),w=function(){var P,v;
return(v=(P=_.n(F.data().rendererContext,_.vX))==null?void 0:P.label)!=null?v:""},k=function(){var P,v;
return{disabled:(P=F.hideIfNotExpanded)==null?void 0:P.call(F),ariaHidden:(v=F.hideIfNotExpanded)==null?void 0:v.call(F)}},z={},T={};
return _.Z("yt-accordion-item-view-model",{class:_.Ec("ytAccordionItemViewModelHost",F.className,(z.ytAccordionItemViewModelExpanded=function(){return g()},z.ytAccordionItemViewModelHidden=function(){var P;
return(P=F.hideIfNotExpanded)==null?void 0:P.call(F)},z.ytAccordionItemViewModelMini=r,z)),
"data-target-id":q},_.Z("div",{class:"ytAccordionItemViewModelContainer"},_.Z("div",{class:"ytAccordionItemViewModelLeftSection","on:click":e,title:w,"aria-hidden":function(){var P;return(P=F.hideIfNotExpanded)==null?void 0:P.call(F)}},_.Z(_.rv,{text:function(){return F.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:w})),_.Z("div",{class:"ytAccordionItemViewModelRightSection"},_.Z(_.Tl,{data:function(){return g()?F.data().expandButton:F.data().collapseButton}},{buttonViewModel:function(P){return _.Z(_.AB,{data:P.data,
className:"ytAccordionItemViewModelToggleButton",onClick:Q,buttonOverrides:k})}}))),_.Z("div",{class:"ytAccordionItemViewModelContainer"},_.Z("div",{class:_.Ec("ytAccordionItemViewModelContent",(T.ytAccordionItemViewModelExpandedSubtitle=function(){return g()},T)),
el:N,style:_.Mo({"max-height":function(){return J?"auto":g()?N.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!g()}},_.Z(_.R,{cond:function(){return!r()},
then:function(){return _.Z(_.rv,{text:function(){return F.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.Z(_.Tl,{data:function(){return F.data().content}},{horizontalShelfViewModel:function(P){return _.Z(_.sA,{data:P.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"nd");_.Kiz=_.ld(function(F){var q=_.X((0,_.ZmL)(F.data)).next().value,t=function(){return F.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},u=function(){return t()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},J=_.X(_.N3(!0,void 0,"AbejLb")),g=J.next().value,Y=J.next().value,Q=function(){return u()&&g()},e=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){Y(!g())}}},r=_.zq(function(){q().onTitleTap&&_.L9(q().onTitleTap||{})});
J={};return _.Z("yt-accordion-view-model",{class:_.Ec("ytAccordionViewModelHost",(J.ytAccordionViewModelMinimized=function(){return Q()},J)),
"data-target-id":function(){return F.data().targetId||""}},_.Z(_.R,{cond:function(){return u()||!!q().title},
then:function(){return _.Z("div",{class:"ytAccordionViewModelHeader"},_.Z("div",{class:"ytAccordionViewModelTitleSection"},_.Z("div",{class:"ytAccordionViewModelTitleWrapper"},_.Z(_.R,{cond:function(){return!!F.data().headerIcon},
then:function(){return _.Z(_.Tq,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var N;return(N=F.data().headerIcon)==null?void 0:N.iconType}})}}),_.Z("div",{class:"ytAccordionViewModelTitle",
"on:click":r},_.Z(_.rv,{className:"ytAccordionViewModelTitleText",text:function(){return q().title}})))),_.Z("div",{class:"ytAccordionViewModelButtonSection"},_.Z(_.R,{cond:u,
then:function(){return _.Z(_.x9,{data:e,iconName:function(){return Q()?"chevron_down":"chevron_collapse"}})}})))}}),_.Z("div",{class:"ytAccordionViewModelContent"},_.Z(_.Tl,{data:function(){return q().contents}},{accordionItemViewModel:function(N){return _.Z(hLf,{data:N.data,
className:"ytAccordionViewModelRow",accordionStyle:t,hideIfNotExpanded:Q,onCollapse:function(){return u()?(Y(!0),!1):!0}})}})),_.Z("div",null,_.Z(_.R,{cond:function(){return!u()&&(!!q().disclaimerFooter||!!q().footer)},
then:function(){return _.Z("div",{class:"ytAccordionViewModelFooter"},_.Z(_.rv,{text:function(){return q().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.Z(_.Tl,{data:function(){return F.data().footer}},{flexibleActionsViewModel:function(N){return _.Z(_.tp,{data:N.data,
layout:0})}}))}})))},"od");_.ei(_.Kiz,"yt-accordion-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=null,t=null,u,J=(u=_.sV().resolve(_.JU(_.qo)))==null?void 0:u(),g=_.X(_.N3(!1,void 0,"h3atzd"));u=g.next().value;var Y=g.next().value;g=_.X(_.N3(!0,void 0,"UTh8db"));var Q=g.next().value,e=g.next().value,r=_.FG("textarea",function(v){_.WZ(264503,v,q,function(H){q=H})}),N=function(v){Y(!0);
v={learningJourneyFormData:{query:v}};_.L9(F.data().searchEndpoint||{},{form:{formData:v}});return!1},w=_.zq(function(v){v.target.closest("button-view-model")&&Y(!0)});
g=_.zq(function(){e(r.value.value.length===0)});
var k=_.zq(function(v){if(v.key==="Enter"&&!v.shiftKey&&!Q()){var H=v.target;v.preventDefault();N(H.value)}}),z={},T={},P={};
return _.Z("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.Z("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.Z(_.sc,{data:function(){return F.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.Z("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.Z("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.Z("div",{class:_.Ec("ytLearningJourneyZeroStateSearchBar",(z.ytLearningJourneyZeroStateSearchBarDark=J,z))},_.Z("textarea",{class:_.Ec("ytLearningJourneyZeroStateTextInput",(T.ytLearningJourneyZeroStateTextInputDark=J,T)),el:r,"on:keyup":g,"on:keydown":k,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.Z("div",{class:_.Ec("ytLearningJourneyZeroStateSearchButtonContainer",(P.ytLearningJourneyZeroStateSearchButtonContainerDark=J,P))},_.Z(_.AB,{data:function(){return _.n(F.data().searchButton,_.gX)},
className:"search-button",onClick:function(){return N(r.value.value)},
buttonOverrides:function(){return{disabled:Q(),style:J?"mono-inverse":"mono",size:"XL"}}}))),_.Z(_.R,{cond:function(){return!!F.data().errorBanner},
then:function(){return _.Z("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.l_(function(v){_.WZ(264617,v,t,function(H){t=H})})},_.Z(_.Tl,{data:function(){return F.data().errorBanner}},{alertBannerViewModel:function(v){return _.Z(_.wVf,{data:v.data,
"client-ve-type":264617})}}))}})),_.Z(_.R,{cond:u,
then:function(){return _.Z("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.Z(_.Tl,{data:function(){return F.data().loader}},{learningJourneyLoaderViewModel:function(v){return _.Z(_.b0J,{data:v.data})}}))},
else:function(){return _.Z("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.Z(_.R,{cond:function(){return!!F.data().learningJourneyShelf},
then:function(){return _.Z("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.Z("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return F.data().learningJourneySectionTitle}),_.Z(_.Tl,{data:function(){return F.data().learningJourneyShelf}},{horizontalShelfViewModel:function(v){return _.Z(_.sA,{data:v.data,
centerAlignItems:!0})}}))}}),_.Z("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.Z("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return F.data().suggestedJourneySectionTitle}),_.Z("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":w},_.Z(_.Tl,{data:function(){return F.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(v){return _.Z(_.tp,{data:v.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"pd"),"yt-learning-journey-zero-state",{props:{data:_.NH}});var ByE=_.ld(function(F){var q=F.data;return _.Z("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Ec("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.Z(_.rv,{text:function(){var t;return(t=q())==null?void 0:t.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.Z(_.Tl,{data:function(){return q().actionButton}},{buttonViewModel:function(t){return _.Z(_.AB,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:t.data})}}))},"qd");var LiC=_.ld(function(F){var q=F.data;return _.Z("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Ec("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.Z(_.rv,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var t;return(t=q())==null?void 0:t.displayName},
ellipsisTruncate:!0}),_.Z(_.Tl,{data:function(){return q().badge}},{buttonViewModel:function(t){return _.Z(_.AB,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:t.data})}}))},"rd");_.ei(_.ld(function(F){var q=F.data;return _.Z("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.Z("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.Z(_.rv,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var t;return(t=q())==null?void 0:t.rank}})),_.Z("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.Z(_.Tl,{data:function(){return q().avatar}},{avatarViewModel:_.FJ})),_.Z("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.Z(_.Tl,{data:function(){return q().content}},{liveLeaderboardItemChannelContentViewModel:LiC,
liveLeaderboardItemActionContentViewModel:ByE})),_.Z(_.rv,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var t;return(t=q())==null?void 0:t.points}}))},"sd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=F.data;return _.Z("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.Z(_.rv,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var t,u;return(t=q())==null?void 0:(u=t.ranking)==null?void 0:u.rank}}),_.Z("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.Z(_.Tl,{data:function(){return q().avatar}},{avatarViewModel:_.FJ})),_.Z(_.rv,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var t,u;return(t=q())==null?void 0:(u=t.channelContent)==null?void 0:u.channelName}}),_.Z(_.rv,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var t;return(t=q())==null?void 0:t.points}}))},"td"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.NH}});var frj=_.ld(function(F){F=_.sk(F,{wrapper:!1}).wrapper;return _.Z(_.R,{cond:F,then:function(){return _.Z("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.Z("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.Z("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"ud");
frj.idomCompat=!0;var arJ=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],jZz=_.ld(function(F){var q=F.data;var t=_.l_(),u=_.zy(function(){return q().command},void 0,"o6t5Yb");
_.AO(function(){u()&&_.hv(u(),{form:{element:t.value}})},"qIHWLc");
return _.Z("div",{el:t,class:"YtQrCodeRendererHostContainer"},_.Z(_.R,{cond:function(){return q().qrCodeImage},
then:function(J){return _.Z(_.sc,{data:J,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.Z(_.R,{cond:function(){return q().spinner},
then:function(){return _.Z(frj,null)}})}}),_.Z(_.R,{cond:function(){return q().label},
then:function(J){return _.Z(_.rv,{text:J,className:"YtQrCodeRendererHostLabel"})}}),_.Z(_.R,{cond:function(){return q().labels},
then:function(J){return _.Z("div",{class:"YtQrCodeRendererHostLabels"},_.Z(_.Gn,{each:J},function(g){return _.Z(_.rv,{text:g})}))}}))},"wd");_.ei(_.ld(function(F){var q=F.data;var t=_.zy(function(){return q().qrEntityKey},void 0,"joYCxd"),u=_.zy(function(){return q().deleteEntityOnDismiss},void 0,"x3yAde"),J=_.zy(function(){return q().command},void 0,"dJe1Re"),g=_.nH(BnP,t);
F=_.zy(function(){return q().qrCodeImage},void 0,"qM5dZe");
var Y=_.zy(function(){return q().style&&arJ.includes(q().style)},void 0,"CaNEkf"),Q=_.lR({visibilityCallback:function(e){e&&J()&&_.hv(J())},
showOption:{calledOnce:!0,state:"visible"}});_.v_(function(){_.vj(function(){u()&&t()&&_.tv().dispatch(_.Gl("qrCodeEntity",t()))})});
return _.Z("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.l_(Q)},_.Z(_.R,{cond:Y,then:function(){return _.Z(_.R,{cond:g,then:function(e){return _.Z(jZz,{data:e})}})}}),_.Z(_.R,{cond:F,
then:function(e){return _.Z(_.sc,{data:e,alt:""})}}))},"vd"),"yt-qr-code-renderer",{props:{data:_.NH}});var Ffj=_.ld(function(F){var q=function(){return _.KG(1728053247&(F.barColor!==void 0?nw(F.barColor()):4278190080))};
return _.Z("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.Z(cZr,{animationDelay:0,percentWidth:100,barColor:function(){return q()}}),_.Z("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.Z("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+q()}})),_.Z(cZr,{animationDelay:0,
percentWidth:100,barColor:function(){return q()}}),_.Z(cZr,{animationDelay:600,
percentWidth:60,barColor:function(){return q()}}))},"xd"),cZr=_.ld(function(F){return _.Z("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+F.percentWidth()+"%"}},_.Z("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var q=F.animationDelay(),t=F.barColor();return"animation-delay:"+q+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+t+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"yd");var q4x;_.tKd=_.ld(function(F){function q(v){Y(v)}
var t=F.data;var u=_.FG("yt-video-overview-view-model"),J=_.qL("div");F=_.X(_.N3(-1,void 0,"qaDSu"));var g=F.next().value,Y=F.next().value;F=_.X(_.N3(0,void 0,"Vz681c"));var Q=F.next().value,e=F.next().value,r={},N=_.nH(ry_,function(){return t().asyncDataEntityKey}),w=function(){var v;
if((v=N())==null?0:v.videoOverviewViewModel){var H;return _.n((H=N())==null?void 0:H.videoOverviewViewModel,oAe)}return t()};
_.v_(function(){e(Math.min((u.value.clientWidth-24)/4-8,72))});
var k=function(v){Y(v);(J==null?0:J.value)&&J.value.children[v]&&J.value.children[v].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
vXC(u,function(){var v;if((v=w())==null||!v.inlinePlaybackEndpoint)return null;var H;v=r==null?void 0:(H=r.thumbnailElRef)==null?void 0:H.value;if(!v)return null;var d;H=(d=w())==null?void 0:d.inlinePlaybackEndpoint;d=_.n(H,hYf);return{multipleVideoPreviewData:{data:(d==null?0:d.playerDescriptors)&&(d==null?0:d.playerDescriptors.length)?d.playerDescriptors:[],thumbnailElement:v,trackingParams:"test",callbacks:{onPlaybackStarted:k},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var z=function(){var v;return((v=w())==null?void 0:v.headerSubtext)!==void 0?!0:!1},T=function(){var v,H=nw((v=w())==null?void 0:v.titleColor);
return H?"color: "+_.KG(H)+";":void 0},P=function(){var v,H=nw((v=w())==null?void 0:v.subtextColor);
return H?"color: "+_.KG(H)+";":void 0};
return _.Z("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:u,style:function(){var v,H=nw((v=w())==null?void 0:v.backgroundColor);return H?"background-color: "+_.KG(H)+";":void 0}},_.Z(_.R,{cond:function(){var v;
return(v=w())==null?void 0:v.isLoading},
then:function(){return _.Z(Ffj,{barColor:function(){var v;return(v=w())==null?void 0:v.titleColor}})},
else:function(){return _.Z(_.ln,null,_.Z("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.Z("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return T()}},_.Z(_.rv,{text:function(){var v;
return(v=w())==null?void 0:v.headerText}})),_.Z(_.R,{cond:z,
then:function(){return _.Z("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.Z("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return P()}},_.Z(_.Tq,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.Z("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return P()}},_.Z(_.rv,{text:function(){var v;
return(v=w())==null?void 0:v.headerSubtext}})))}})),_.Z("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.Z(_.Tl,{data:function(){var v;
return(v=w())==null?void 0:v.thumbnail}},{thumbnailViewModel:function(v){return _.Z(_.zj,{data:v.data,
aspectRatio:0,playbackRef:x8C(r)})}})),_.Z(_.R,{cond:function(){var v,H,d,a;
return((v=w())==null?void 0:(H=v.listItems)==null?void 0:H.length)!==void 0&&((d=w())==null?void 0:(a=d.listItems)==null?void 0:a.length)>0?!0:!1},
then:function(){return _.Z("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:J},_.Z(_.Gn,{each:function(){var v;return(v=w())==null?void 0:v.listItems}},function(v,H){return _.Z(q4x,{image:v.image,
index:H,isSelected:function(){return H()===g()},
onClick:q,itemWidth:Q})}))}}),_.Z("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.Z("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return T()}},_.Z(_.rv,{text:function(){var v,H,d,a,S,K,h;
return(h=(v=w())==null?void 0:(H=v.listItems)==null?void 0:(d=H[g()])==null?void 0:d.headline)!=null?h:(a=w())==null?void 0:(S=a.listItems)==null?void 0:(K=S[0])==null?void 0:K.headline}})),_.Z("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return P()}},_.Z(_.rv,{text:function(){var v,H,d,a,S,K,h;
return(h=(v=w())==null?void 0:(H=v.listItems)==null?void 0:(d=H[g()])==null?void 0:d.subtext)!=null?h:(a=w())==null?void 0:(S=a.listItems)==null?void 0:(K=S[0])==null?void 0:K.subtext}}))))}}))},"zd");
q4x=_.ld(function(F){var q=F.image;var t=F.itemWidth;var u=F.index;var J=F.isSelected;var g=F.onClick;F=_.zq(function(){u!==void 0&&g!==void 0&&g(u());return!1});
var Y={};return _.Z("div",{class:_.Ec("ytGenAiVideoOverviewViewModelCarouselItem",(Y.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return J==null?void 0:J()},Y)),
style:function(){return"width: "+t()+"px;"},
"on:click":F},_.Z(_.sc,{data:q,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.Z(_.R,{cond:function(){return J==null?void 0:J()},
then:function(){return _.Z("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.Z("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ad");
_.tKd.idomCompat=!0;_.ei(_.tKd,"yt-video-overview-view-model",{props:{data:_.NH}});_.uAe=_.ld(function(F){var q=F.data;var t=F.topbarOffset;var u,J=((u=_.sV().resolve(_.JU(_.qo)))==null?void 0:u())||!1;return _.Z("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var g=q();var Y,Q,e=J?(Y=g.config)==null?void 0:Y.darkThemeBackgroundColor:(Q=g.config)==null?void 0:Q.lightThemeBackgroundColor;g=e?_.hn(e):void 0;g="background-color: "+g+";";t!==void 0&&(g+="top: -"+t()+"px;");return g},
"aria-hidden":!0},_.Z(_.R,{cond:function(){var g,Y,Q;return!!((g=q().backgroundImageConfig)==null?0:(Y=g.image)==null?0:(Q=Y.sources)==null?0:Q.length)},
then:function(){return _.Z(_.sc,{data:function(){var g;return(g=q().backgroundImageConfig)==null?void 0:g.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.Z("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+Ni$(J,q().gradientColorConfig)+";"}}))},"Bd");
_.uAe.idomCompat=!0;var gK=_.ld(function(F){var q=F.className;var t=F.data;var u=F.isOverlay;var J=F.maxLinesOverride;var g=F.useMediumText;var Y=function(){return t().alwaysShowTruncationText},Q=function(){return t().truncationText},e=function(){return g!==void 0&&g()?"medium":"small"},r=function(){return u!==void 0&&u()?"overlay":"default"},N=function(){var T,P;
return(P=(T=_.n(t().rendererContext,_.vX))==null?void 0:T.label)!=null?P:""};
F=_.X(_.N3(!1,void 0,"XAT3Fd"));var w=F.next().value,k=F.next().value;F=_.zq(function(){t().expandOnTap&&k(!w());return!1});
var z={};return _.Z("yt-description-preview-view-model",{el:_.l_(_.CH(function(){return t().rendererContext})),
class:_.Ec("yt-description-preview-view-model-wiz",q,(z["yt-description-preview-view-model-wiz--clickable"]=function(){var T;return!((T=_.n(t().rendererContext,Y7A))==null||!T.onTap)},z["yt-description-preview-view-model-wiz--is-overlay"]=u,z)),
"on:click":F},_.Z(_.R,{cond:function(){return t().description},
then:function(T){return _.Z(_.R,{cond:w,then:function(){var P={};return _.Z("div",{class:_.Ec("yt-description-preview-view-model-wiz__description",(P["yt-description-preview-view-model-wiz__description--medium-text"]=g,P))},_.Z(_.rv,{text:T}))},
else:function(){return _.Z(Zk1,{text:T,alwaysShowTruncationText:Y,truncationText:Q,maxLines:function(){var P;return(P=J==null?void 0:J())!=null?P:t().maxLines},
textStyle:r,accessibilityLabel:N,textSize:e})}})}}))},"Cd");
gK.idomCompat=!0;var JbJ=_.ld(function(F){var q=F.data;var t=F.isOverlay;return _.Z("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.Z("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.Z(_.Tl,{data:function(){return q().header}},{sectionHeaderViewModel:function(u){return _.Z(_.Ae,{data:u.data,
isOverlay:t})}})),_.Z("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.Z(_.Tl,{data:function(){return q().channelInfoButtons}},{flexibleActionsViewModel:_.tp})),_.Z("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.Z(_.Tl,{data:function(){return q().description}},{descriptionPreviewViewModel:function(u){return _.Z(gK,{data:u.data,
isOverlay:t})}})))},"Dd");
JbJ.idomCompat=!0;var s9j=_.ld(function(F){var q=F.data;var t={};return _.Z("factoid-view-model",{class:_.Ec("ytwFactoidViewModelHost",(t.ytwFactoidViewModelHostOverlay=F.isOverlay,t))},_.Z(_.rv,{text:function(){return q().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.Z(_.rv,{text:function(){return q().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ed");
s9j.idomCompat=!0;var gsr=_.ld(function(F){var q=F.data;var t=F.isOverlay;return _.Z("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.Z(_.Tl,{data:function(){return q().factoids}},{factoidViewModel:function(u){return _.Z(s9j,{data:u.data,
isOverlay:t})}}))},"Fd");
gsr.idomCompat=!0;_.lpO=_.ld(function(F){var q=F.data;var t=F.isOverlay;return _.Z("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.Z(_.Tl,{data:function(){return q().items}},{channelInfoViewModel:function(u){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(JbJ,{data:u.data,
isOverlay:t}))},
coursePerksViewModel:function(u){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(Ir1,{data:u.data,isOverlay:t}))},
descriptionPreviewViewModel:function(u){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(gK,{data:u.data,isOverlay:t}))},
factoidsRowViewModel:function(u){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(gsr,{data:u.data,isOverlay:t}))},
progressViewModel:function(u){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(H0E,{data:u.data,isOverlay:t}))}}))},"Gd");var X1n=_.ld(function(F){return _.Z("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.Z(_.Tl,{data:function(){return F.data().content}},{courseMetadataViewModel:function(q){return _.Z(_.lpO,{data:q.data,
isOverlay:F.isOverlay})},
progressViewModel:function(q){return _.Z(H0E,{data:q.data})}}))},"Hd");var Y4j=_.ld(function(F){var q=F.data;F=F.className;var t=function(){var J;return _.yg((J=q())==null?void 0:J.rendererContext)},u={};
u=(u.dynamicTextViewModelHost=!0,u.dynamicTextViewModelHostTappable=function(){return t()},u);
return _.Z("yt-dynamic-text-view-model",{el:_.l_(_.CH(function(){var J;return(J=q())==null?void 0:J.rendererContext})),
role:function(){return t()?"link":void 0},
tabindex:function(){return t()?0:void 0},
class:_.Ec(F,u)},_.Z("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var J,g,Y;return(Y=(g=_.n((J=q())==null?void 0:J.rendererContext,_.vX))==null?void 0:g.label)!=null?Y:""}},_.Z(_.rv,{text:function(){return q().text},
userInput:!0})))},"Id");
Y4j.idomCompat=!0;_.lE=_.ld(function(F){var q=F.data;var t=F.isPositionRelative;var u=_.iD$("(max-width: 527.9px)"),J=function(){var g,Y;return(Y=(g=q())==null?void 0:g.style)!=null?Y:"IMAGE_BANNER_STYLE_FULL_BLEED"};
F={};return _.Z("yt-image-banner-view-model",{el:_.l_(_.CH(function(){var g;return(g=q())==null?void 0:g.rendererContext})),
class:_.Ec((F.ytImageBannerViewModelHost=!0,F.ytImageBannerViewModelInset=function(){return kL_(J())},F.ytImageBannerViewModelPositionAbsolute=function(){return _.Hj(!0)&&!(t==null?0:t())},F.ytImageBannerViewModelSmallInset=function(){return kL_(J())&&u()},F.ytImageBannerViewModelTappable=function(){var g;
return _.yg((g=q())==null?void 0:g.rendererContext)},F))},_.Z(_.R,{cond:function(){var g;
return(g=q())==null?void 0:g.image},
then:function(){return _.Z(_.sc,{data:function(){return q().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.Z(_.Tl,{data:function(){var g;
return(g=q())==null?void 0:g.overlays}},{thumbnailHoverOverlayViewModel:cB}))},"Jd");
_.lE.idomCompat=!0;var p1n;p1n=_.ld(function(F){var q=F.condition;var t=F.content;return _.Z(_.R,{cond:q,then:function(){return _.Z("div",{class:"page-header-view-model-wiz__scroll-container"},t())},
else:function(){return t()}})},"Kd");
_.Q91=_.ld(function(F){var q=F.data;var t=F.noPadding;var u=F.enableBanner;var J=F.cinematicContainerTopbarOffset;var g=F.allowCinematicContainerOverflow;var Y=F.displayAsSidebar;var Q=F.displayAsPanel;var e=F.alwaysUseMediumTextDescription;var r=ENu(),N=function(){return!!q().image||!!q().animatedImage},w=function(){return!!q().background},k=function(){return(Y==null?0:Y())||(Q==null?0:Q())?1:r()},z=function(){return k()===1},T=function(){return z()||k()===2},P=function(){return k()===4},v=function(){var o_=
q();
var df=!!q().heroImage;var m$=k(),gx=zkW(q()),Hf=Y==null?void 0:Y(),Zw=!o_.metadata,cy;if(cy=df?_.n(o_.heroImage,ZAL):_.n(o_.animatedImage||o_.image,ZAL)){o_=cy.style;var wx=cy.layoutMode;if(wx!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(cy=luv(gUf(cy)),df)df=wKC(m$,o_,wx,cy,Hf);else b:if(Zw)df=m$===1?{size:48}:{size:72};else switch(m$){case 1:df={size:72};break b;case 2:df={size:120};break b;default:df=gx<4?{size:120}:{size:160}}else df=void 0}else df={size:0};return df};
F={};F=_.Ec((F["page-header-view-model-wiz"]=!0,F["page-header-view-model-wiz--no-padding"]=function(){return!(t==null||!t())},F["page-header-view-model-wiz--small-top-padding"]=function(){return z()&&!q().actions&&!(Q==null?0:Q())||k()===2&&!(N()||q().heroImage)},F["page-header-view-model-wiz--small-bottom-padding"]=function(){return T()&&!q().actions&&!(Q==null?0:Q())},F["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(g==null?0:g())},F["page-header-view-model-wiz--display-as-sidebar"]=
Y,F));
var H={},d=_.Ec((H["page-header-view-model-wiz__page-header-headline"]=!0,H["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var o_;return(o_=v())==null?void 0:o_.allowFullWidth},H)),a=function(){var o_;
return T()&&!((o_=v())==null?0:o_.allowFullWidth)},S=function(){return z()&&(!!q().heroImage||N())&&zkW(q())>0},K=function(){return S()&&(Q==null?void 0:Q())};
H={};var h=_.Ec((H["page-header-view-model-wiz__page-header-title"]=!0,H["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!S()},H["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return S()&&!K()},H["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=K,H["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=w,H));
H={};var c=_.Ec((H["page-header-view-model-wiz__page-header-headline-image"]=!0,H["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!q().heroImage&&T()},H));
H={};var rf=_.Ec((H["page-header-view-model-wiz__page-header-banner-container"]=u,H["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var o_;return(u==null?void 0:u())&&((o_=_.n(q().banner,_.rBx))==null?void 0:o_.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},H));
H={};var Zv=_.Ec((H["page-header-view-model-wiz__page-header-content-metadata"]=!0,H["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=w,H));H={};var kP=_.Ec((H["page-header-view-model-wiz__page-header-flexible-actions"]=!0,H["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!q().metadata||T()},H["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!T()},H));
H={};var n3=_.Ec((H["page-header-view-model-wiz__page-header-attribution"]=!0,H["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=w,H));return _.Z("yt-page-header-view-model",{class:F},_.Z(_.R,{cond:w,then:function(){return _.Z("div",{class:"page-header-view-model-wiz__page-header-background"},_.Z(_.Tl,{data:function(){return q().background}},{cinematicContainerViewModel:function(o_){return _.Z(_.uAe,{data:o_.data,
topbarOffset:J})}}))}}),_.Z(p1n,{condition:function(){return!(Y==null||!Y())},
content:function(){return _.Z("div",{class:"page-header-view-model-wiz__page-header-content"},_.Z(_.R,{cond:function(){return(u==null?void 0:u())&&q().banner},
then:function(){return _.Z("div",{class:rf},_.Z(_.Tl,{data:function(){return q().banner}},{imageBannerViewModel:_.lE}))}}),_.Z("div",{class:d},_.Z(_.R,{cond:N,
then:function(){return _.Z(_.Tl,{data:function(){var o_;if(!(o_=q().animatedImage)){o_=q();if(N()){var df=o_=Object.assign({},o_),m$=k(),gx=zkW(q()),Hf=df.image,Zw=_.n(Hf,RpC),cy=Zw==null?void 0:Zw.avatar,wx=_.n(cy,_.d0);if(Hf&&cy&&wx){switch(m$){case 1:wx.avatarImageSize="AVATAR_SIZE_XL";break;case 2:wx.avatarImageSize="AVATAR_SIZE_XXL";break;default:gx<4?wx.avatarImageSize="AVATAR_SIZE_XXL":wx.avatarImageSize="AVATAR_SIZE_XXXL"}_.yj(cy,_.d0,Object.assign({},wx));Zw.avatar=Object.assign({},cy);_.yj(Hf,
RpC,Object.assign({},Zw));df.image=Object.assign({},Hf)}}o_=o_.image}return o_}},{contentPreviewImageViewModel:function(o_){return _.Z(_.Gj,{data:o_.data,
className:c,imageSizeConfig:v})},
decoratedAvatarViewModel:function(o_){return _.Z(_.qi,{data:o_.data,className:c})}})}}),_.Z(_.R,{cond:function(){return!!q().heroImage&&!a()},
then:function(){return _.Z(_.Tl,{data:function(){return q().heroImage}},{contentPreviewImageViewModel:function(o_){return _.Z(_.Gj,{data:o_.data,
className:c,imageSizeConfig:v})}})}}),_.Z("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Z(_.R,{cond:function(){return!!q().heroImage&&a()},
then:function(){return _.Z("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.Z(_.Tl,{data:function(){return q().heroImage}},{contentPreviewImageViewModel:function(o_){return _.Z(_.Gj,{data:o_.data,
className:c,imageSizeConfig:v})}}))}}),_.Z(_.Tl,{data:function(){return q().title}},{dynamicTextViewModel:function(o_){return _.Z(Y4j,{data:o_.data,
className:h})}}),_.Z(_.Tl,{data:function(){return q().metadata}},{contentMetadataViewModel:function(o_){return _.Z(_.DN,{data:o_.data,
layout:function(){return z()?1:0},
className:Zv,isOverlay:w,useMediumText:P})}}),_.Z(_.R,{cond:function(){return q().description&&!z()},
then:function(){return _.Z(_.Tl,{data:function(){return q().description}},{descriptionPreviewViewModel:function(o_){return _.Z(gK,{data:o_.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:w,maxLinesOverride:function(){return z()?void 0:1},
useMediumText:function(){return(e==null?void 0:e())||P()}})}})}}),_.Z(_.R,{cond:function(){return q().attribution&&!T()},
then:function(){return _.Z(_.Tl,{data:function(){return q().attribution}},{attributionViewModel:function(o_){return _.Z(auC,{data:o_.data,
className:n3,useMediumText:P})}})}}),_.Z(_.R,{cond:function(){return q().actions&&!T()},
then:function(){return _.Z(_.Tl,{data:function(){return q().actions}},{flexibleActionsViewModel:function(o_){return _.Z(_.tp,{data:o_.data,
layout:function(){return oNA(k())},
className:kP})}})}}))),_.Z("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Z(_.R,{cond:function(){return q().description&&z()},
then:function(){return _.Z(_.Tl,{data:function(){return q().description}},{descriptionPreviewViewModel:function(o_){return _.Z(gK,{data:o_.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:w,maxLinesOverride:function(){return z()?void 0:1},
useMediumText:function(){return(e==null?void 0:e())||P()}})}})}}),_.Z(_.R,{cond:function(){return q().attribution&&T()},
then:function(){return _.Z(_.Tl,{data:function(){return q().attribution}},{attributionViewModel:function(o_){return _.Z(auC,{data:o_.data,
className:n3,useMediumText:P})}})}}),_.Z(_.R,{cond:function(){return q().actions&&T()},
then:function(){return _.Z(_.Tl,{data:function(){return q().actions}},{flexibleActionsViewModel:function(o_){return _.Z(_.tp,{data:o_.data,
layout:function(){return oNA(k())},
className:kP})}})}})),_.Z("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Z(_.Tl,{data:function(){return q().bottomMetadataFlexibleContainer}},{flexibleContainer:function(o_){return _.Z(X1n,{data:o_.data,
isOverlay:w})}})))}}))},"Ld");
_.Q91.idomCompat=!0;_.ei(_.ld(function(F){var q=_.X(_.N3(!1,void 0,"vvzTj")),t=q.next().value,u=q.next().value;return _.Z("yt-official-card-view-model",{class:_.Ec("ytOfficialCardViewModelHost",F.className),style:_.Mo({"background-color":function(){var J,g=nw((J=F.data())==null?void 0:J.backgroundColor);return g?_.KG(g):void 0}})},_.Z(_.Tl,{data:function(){return F.data().header}},{pageHeaderViewModel:function(J){return _.Z(_.Q91,{data:J.data,
noPadding:!0})}}),_.Z(_.Tl,{data:function(){return F.data().contents}},{horizontalShelfViewModel:function(J){return _.Z(_.sA,{data:J.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.Z(_.R,{cond:t,
then:function(){return _.Z("div",{class:"ytOfficialCardViewModelExpandedContent"},_.Z(_.Tl,{data:function(){return F.data().expandedContents}},{horizontalShelfViewModel:function(J){return _.Z(_.sA,{data:J.data,
sizing:"MINI"})}}),_.Z("div",{class:"ytOfficialCardViewModelCollapseButton"},_.Z(_.Tl,{data:function(){return F.data().collapseButton}},{buttonViewModel:function(J){return _.Z(_.AB,{data:J.data,
onClick:function(){u(!t())}})}})))},
else:function(){return _.Z("div",{class:"ytOfficialCardViewModelExpandButton"},_.Z(_.Tl,{data:function(){return F.data().expandButton}},{buttonViewModel:function(J){return _.Z(_.AB,{data:J.data,
onClick:function(){u(!t())}})}}))}}))},"Md"),"yt-official-card-view-model",{props:{data:_.NH,
className:_.NH}});var eRf=_.ld(function(F){var q,t=(q=_.sV().resolve(_.JU(_.qo)))==null?void 0:q();return _.Z("ytw-search-friction-view-model",{class:_.Ec("ytwSearchFrictionViewModelHost",F.className)},_.Z("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.Z("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.Z(_.R,{cond:function(){return t&&F.data().darkThemeImage?F.data().darkThemeImage:F.data().image},
then:function(u){return _.Z(_.sc,{data:u,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.Z(_.Tl,{data:function(){return F.data().overflowMenuButton}},{buttonViewModel:function(u){return _.Z(_.AB,{data:u.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.Z(_.rv,{text:function(){return F.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.Z(_.Gn,{each:function(){return F.data().bodyText||[]}},function(u){return _.Z(_.rv,{text:u,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.Z(_.Tl,{data:function(){return F.data().actions}},{buttonViewModel:function(u){return _.Z(_.AB,{data:u.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.Z(_.rv,{text:function(){return F.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.Z(_.rv,{text:function(){return F.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Nd");
eRf.idomCompat=!0;_.ei(eRf,"ytw-search-friction-view-model",{props:{data:_.NH,className:_.NH}});_.X_=_.ld(function(F){var q=_.FG("markdown-div"),t,u=(t=_.sV().resolve(_.JU(_.qo)))==null?void 0:t();_.AO(function(){var J=q.value;var g=new IwJ,Y=new Map(g.JSC$9294_sanitizerTable.globalAttributePolicies);Y.set("style",{policyAction:4});g.JSC$9294_sanitizerTable=new Pk(g.JSC$9294_sanitizerTable.allowedElements,g.JSC$9294_sanitizerTable.elementPolicies,g.JSC$9294_sanitizerTable.allowedGlobalAttributes,Y,g.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes);var Q=["data-time"];if(Q===void 0)Y=
new Set(g.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes),Y.add("data-"),g.JSC$9294_sanitizerTable=new Pk(g.JSC$9294_sanitizerTable.allowedElements,g.JSC$9294_sanitizerTable.elementPolicies,g.JSC$9294_sanitizerTable.allowedGlobalAttributes,g.JSC$9294_sanitizerTable.globalAttributePolicies,Y);else{Y=new Set(g.JSC$9294_sanitizerTable.allowedGlobalAttributes);Q=_.X(Q);for(var e=Q.next();!e.done;e=Q.next()){e=e.value;if(e.indexOf("data-")!==0)throw Error("ma`"+e);Y.add(e)}g.JSC$9294_sanitizerTable=
new Pk(g.JSC$9294_sanitizerTable.allowedElements,g.JSC$9294_sanitizerTable.elementPolicies,Y,g.JSC$9294_sanitizerTable.globalAttributePolicies,g.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes)}Y=new Set(g.JSC$9294_sanitizerTable.allowedGlobalAttributes);Y.add("class");g.JSC$9294_sanitizerTable=new Pk(g.JSC$9294_sanitizerTable.allowedElements,g.JSC$9294_sanitizerTable.elementPolicies,Y,g.JSC$9294_sanitizerTable.globalAttributePolicies,g.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes);
_.JK(J,_.Oen(g.build(),MPM(F.text())));TiP(q.value)},"OZ439c");
t={};return _.Z("div",null,_.Z("markdown-div",{class:_.Ec("ytwMarkdownDivHost",(t.ytwMarkdownDivDark=u,t.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var J;return((J=F.isSmallText)==null?void 0:J.call(F))||!1},t.ytwMarkdownDivHostWrapCodeBlocks=function(){var J;
return((J=F.wrapCodeBlocks)==null?void 0:J.call(F))||!1},t.ytwMarkdownDivHostEnableDefaultStyling=function(){var J;
return!((J=F.disableDefaultStyling)==null?0:J.call(F))},t)),
el:q}))},"Od");
_.X_.idomCompat=!0;var ZYj=_.ld(function(F){var q=F.imageData;var t=_.Jv(F.isInList,!1),u=function(){return t()?{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 _.Z("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.Z(_.R,{cond:function(){return q().image},
then:function(J){return _.Z(_.sc,{data:J,alt:function(){return u().alt},
contentMode:function(){return u().contentMode},
targetWidth:function(){return u().targetWidth},
targetHeight:function(){return u().targetHeight},
className:function(){return u().className}})}}),_.Z("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.Z("div",{class:_.Ec("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.Z(_.rv,{text:function(){return q().title}})),_.Z(_.Gn,{each:function(){var J;
return(J=q().description)!=null?J:[]}},function(J){return _.Z("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.Z(Yr,{content:J}))})))},"Pd"),RRx=_.ld(function(F){var q=F.list;
var t=function(){var u;return(u=q().items)!=null?u:[]};
return _.Z("div",{class:"ytwGenAiRichTextViewModelListContent"},_.Z(_.R,{cond:function(){return q().title},
then:function(u){return _.Z("div",{class:_.Ec("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.Z(_.rv,{text:u}))}}),_.Z(_.R,{cond:function(){return q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.Z("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.Z(_.Gn,{each:t},function(u){return _.Z("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.Z(Yr,{content:u,isInList:!0}))}))}}),_.Z(_.R,{cond:function(){return q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.Z("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.Z(_.Gn,{each:t},function(u){return _.Z("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.Z(Yr,{content:u,isInList:!0}))}))}}),_.Z(_.R,{cond:function(){return q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.Z("div",{class:"ytwGenAiRichTextViewModelImageList"},_.Z(_.Gn,{each:t},function(u){return _.Z("div",{class:"ytwGenAiRichTextViewModelListItem"},_.Z(Yr,{content:u,isInList:!0}))}))}}))},"Qd"),rbn=_.ld(function(F){var q=F.table;
return _.Z("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.Z("thead",null,_.Z("tr",null,_.Z(_.Gn,{each:function(){var t,u;return(u=(t=q().header)==null?void 0:t.cells)!=null?u:[]}},function(t){return _.Z("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.Z(_.Gn,{each:function(){return t.contents}},function(u){return _.Z(Yr,{content:u})}))}))),_.Z("tbody",null,_.Z(_.Gn,{each:function(){var t;
return(t=q().rows)!=null?t:[]}},function(t){return _.Z("tr",null,_.Z(_.Gn,{each:function(){return t.cells}},function(u){return _.Z("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.Z(_.Gn,{each:function(){return u.contents}},function(J){return _.Z(Yr,{content:J})}))}))})))},"Rd"),Yr=_.ld(function(F){var q=F.content;
var t=_.Jv(F.isInList,!1),u=function(){var J,g;return(g=(J=q().contentBlock)==null?void 0:J.contents)!=null?g:[]};
return _.Z("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.Z(_.R,{cond:function(){return q().text},
then:function(J){return _.Z(_.rv,{className:"ytwGenAiRichTextViewModelText",text:J})}}),_.Z(_.R,{cond:function(){return q().image},
then:function(J){return _.Z(ZYj,{imageData:J,isInList:t})}}),_.Z(_.R,{cond:function(){return q().list},
then:function(J){return _.Z(RRx,{list:J})}}),_.Z(_.R,{cond:function(){return q().contentBlock},
then:function(){return _.Z("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.Z(_.Gn,{each:u},function(J){return _.Z(Yr,{content:J,isInList:!1})}))}}),_.Z(_.R,{cond:function(){return q().table},
then:function(J){return _.Z(rbn,{table:J})}}))},"Sd"),NMC=_.ld(function(F){var q={};
q=_.HD("ytwGenAiRichTextViewModelHost",(q.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.pE("search_overview_link_style")),q));return _.Z("gen-ai-rich-text-view-model",{class:q},_.Z(Yr,{content:function(){return F.data().content}}))},"Td");_.w1r=_.ld(function(F){var q=F.data;var t=function(){var P;return((P=q().loadingUi)!=null?P:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},u=function(){return q().isLoading&&(t()==="UNSPECIFIED"||t()==="GHOST_CARD")},J=function(){return!q().isLoading},g=function(){return!!q().content&&!q().contents},Y=function(){return!!q().contents},Q=function(){return!!q().nextQueryButtons},e=function(){return q().isLoading&&t()==="INVISIBLE"},r=function(){var P,v;
return(v=(P=q().headerIcon)==null?void 0:P.iconType)!=null?v:""},N=function(){var P;
return(P=q().content)!=null?P:""},w=function(){return!!q().sourcesSection},k,z=!((k=_.sV().resolve(_.JU(_.qo)))==null||!k()),T=_.zy(function(){var P=[],v=q().contents;
if(v)for(var H=0;H<v.length;H++){var d=_.n(v&&v[H],zMO);d&&P.push(d)}return P},void 0,"ycU97e");
_.v_(function(){q().isLoading||_.y0("so_re",void 0,"search_overview_answer")});
return _.Z("ytd-overview-answer-view-model",{class:function(){var P={};P=(P.ytdOverviewAnswerViewModelHost=!0,P.ytdOverviewAnswerViewModelDarkBackground=z&&!e(),P.ytdOverviewAnswerViewModelLightBackground=!z&&!e(),P);return _.HD(P)}},_.Z(_.R,{cond:function(){return!e()},
then:function(){return _.Z(_.ln,null,_.Z("h2",null,_.Z("div",{class:"ytdOverviewAnswerViewModelHeader"},_.Z(_.R,{cond:r,then:function(P){return _.Z("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.Z(_.Tq,{icon:P}))}}),_.Z("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.Z("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return q().headerText}),_.Z("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.Z(_.rv,{text:function(){return q().headerSubtext}}))))),_.Z(_.R,{cond:u,
then:function(){return _.Z(GL3,null)}}),_.Z(_.R,{cond:J,
then:function(){return _.Z(_.ln,null,_.Z(_.R,{cond:g,then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelText"},_.Z(_.X_,{text:N,isSmallText:!0}))}}),_.Z(_.R,{cond:Y,
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelRichText"},_.Z(_.Gn,{each:T},function(P){return _.Z(NMC,{data:P})}))}}),_.Z(_.R,{cond:Q,
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.Z(_.Tl,{data:function(){return q().nextQueryButtons}},{buttonViewModel:function(P){return _.Z(_.AB,{data:P.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.sA}))}}),_.Z("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.Z("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.Z(_.R,{cond:function(){return!!_.n(q().likeButtonViewModel,_.at)&&!!_.n(q().dislikeButtonViewModel,_.fu)},
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.Z(_.Jp,{data:function(){return _.n(q().likeButtonViewModel,_.at)},
disableIconAnimation:!0}),_.Z(_.uj,{data:function(){return _.n(q().dislikeButtonViewModel,_.fu)}}))}})),_.Z(_.R,{cond:function(){var P;
return(P=q().sourcesSection)==null?void 0:P.headerText},
then:function(P){return _.Z("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.Z(_.rv,{text:P}))}})),_.Z(_.R,{cond:w,
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelSources"},_.Z(_.Tl,{data:function(){var P;return(P=q().sourcesSection)==null?void 0:P.sourcesShelf}},{buttonViewModel:_.AB,
horizontalShelfViewModel:function(P){return _.Z(_.sA,{data:P.data,includeMargin:!0,hasPeek:!0})}}))}}),_.Z(_.R,{cond:function(){return q().disclaimerText},
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.Z(_.rv,{text:function(){return q().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Ud");var iYf=_.ld(function(F){var q=F.data;var t=F.active;var u=_.FG("transcript-segment-view-model");_.AO(function(){var J,g,Y,Q=((J=_.sV().resolve(_.JU(_.qo)))==null?0:J())?(g=q())==null?void 0:g.darkThemeColorPalette:(Y=q())==null?void 0:Y.lightThemeColorPalette;Q&&(Q.additiveBackground&&u.value.style.setProperty("--timestamp-active-background-color",_.KG(Q.additiveBackground)),Q.textSecondary&&u.value.style.setProperty("--timestamp-active-color",_.hn(Q.textSecondary)))},"cQUAMd");
F={};return _.Z("transcript-segment-view-model",{class:_.Ec("ytwTranscriptSegmentViewModelHost",(F.ytwTranscriptSegmentViewModelHostActive=t,F.ytwTranscriptSegmentViewModelHostModern=_.E("enable_timeline_view_modern_transcript")||_.E("enable_timeline_view_modern_transcript_fe"),F)),el:u},_.Z(_.R,{cond:function(){var J;return(J=q())==null?void 0:J.timestamp},
then:function(J){var g={};return _.Z("div",{class:_.Ec("ytwTranscriptSegmentViewModelTimestamp",(g.ytwTranscriptSegmentViewModelTimestampActive=t,g))},J)}}),_.Z(_.rv,{text:function(){var J,g,Y;
return(Y=(J=q())==null?void 0:J.attributedText)!=null?Y:{content:(g=q())==null?void 0:g.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Vd");var kpn=_.ld(function(F){var q=F.data;return _.Z("div",{class:"videoAttributesSectionViewModelHeader"},_.Z("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.Z("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return q().headerTitle}),_.Z(_.R,{cond:function(){return q().headerInfoButton},
then:function(){return _.Z(_.Tl,{data:function(){return q().headerInfoButton}},{buttonViewModel:function(t){return _.Z(_.AB,{data:t.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.Z(_.R,{cond:function(){return q().headerSubtitle},
then:function(){return _.Z("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return q().headerSubtitle})}}))},"Wd"),Esf=_.ld(function(F){function q(P){return Math.max(Math.min(P,0),r()-Q())}
var t=F.data;var u;F=_.FG("div",function(P){var v=function(){N(P.clientWidth)};
v();window.ResizeObserver&&(u=new ResizeObserver(v),u.observe(P))});
var J=_.FG("div",function(P){e(P.scrollWidth)}),g=_.X(_.N3(0,void 0,"C3XQAe")),Y=g.next().value;
g=g.next().value;var Q=Y,e=g;g=_.X(_.N3(0,void 0,"db7y3"));Y=g.next().value;g=g.next().value;var r=Y,N=g;Y=_.X(_.N3(0,void 0,"RchC7"));var w=Y.next().value,k=Y.next().value;_.vj(function(){var P;(P=u)==null||P.disconnect()});
var z=function(){k(q(w()+r()))},T=function(){k(q(w()-r()))};
return _.Z("yt-video-attributes-section-view-model",null,_.Z("div",{class:"videoAttributesSectionViewModelHost"},_.Z(_.R,{cond:function(){return t().headerTitle},
then:function(){return _.Z(kpn,{data:t})}}),_.Z("div",{class:_.Ec("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:F},_.Z("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.Mo({transform:function(){var P=w();_.bn("HTML_DIR")==="rtl"&&(P*=-1);return"translateX("+P+"px)"}}),
el:J},_.Z(_.Tl,{data:function(){return t().videoAttributeViewModels}},{videoAttributeViewModel:NFC}))),_.Z(_.Tl,{data:function(){return t().footerButton}},{buttonViewModel:function(P){return _.Z(_.AB,{data:P.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.Z(_.R,{cond:function(){return w()<0&&t().previousButton},
then:function(){return _.Z("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.Z(_.Tl,{data:function(){return t().previousButton}},{buttonViewModel:function(P){return _.Z(_.AB,{data:P.data,
onClick:z})}}))}}),_.Z(_.R,{cond:function(){return w()>r()-Q()&&t().nextButton},
then:function(){return _.Z("div",{class:"videoAttributesSectionViewModelRightArrow"},_.Z(_.Tl,{data:function(){return t().nextButton}},{buttonViewModel:function(P){return _.Z(_.AB,{data:P.data,
onClick:T})}}))}})))},"Xd");
Esf.idomCompat=!0;var zRO=_.ld(function(F){var q=F.data;var t=F.active;var u={},J={};return _.Z("timeline-item-view-model",{class:_.Ec("ytwTimelineItemViewModelHost",(u.ytwTimelineItemViewModelHostChapterChild=F.chapterChild,u.ytwTimelineItemViewModelModern=_.E("enable_timeline_view_modern_transcript")||_.E("enable_timeline_view_modern_transcript_fe"),u))},_.Z("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.Z("div",{class:_.Ec("ytwTimelineItemViewModelTimestamp",(J.ytwTimelineItemViewModelTimestampActive=
t,J))},function(){return q().timestamp})),_.Z("div",{class:"ytwTimelineItemViewModelContentItems"},_.Z(_.Tl,{data:function(){return q().contentItems}},{transcriptSegmentViewModel:function(g){return _.Z(iYf,{data:g.data,
active:t})},
videoAttributesSectionViewModel:Esf})))},"Yd");var osE=_.ld(function(F){var q=F.data;F={};return _.Z("timeline-chapter-view-model",{class:_.Ec("ytwTimelineChapterViewModelHost")},_.Z("div",{class:_.Ec("ytwTimelineChapterViewModelTitle",(F.ytwTimelineChapterViewModelModern=_.E("enable_timeline_view_modern_transcript")||_.E("enable_timeline_view_modern_transcript_fe"),F))},function(){return q().title}),_.Z(_.Tl,{data:function(){return q().contents}},{timelineItemViewModel:function(t){return _.Z(zRO,{data:t.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(t){return _.Z(Esf,{data:t.data})}}))},"Zd");var ns1=_.ld(function(F){var q=F.data;var t=_.FG("macro-markers-panel-item-view-model"),u=_.nH(_.VyW,function(){var g;return(g=q().markersEngagementPanelSyncEntityKey)!=null?g:""}),J=function(){var g;
return((g=u())==null?void 0:g.activeItemIndex)===q().index};
F=_.zq(function(g){var Y,Q,e,r,N;return _.p(function(w){if(w.nextAddress==1)return g.stopPropagation(),_.$C(_.mp(g),t.value,["A".toString(),"BUTTON".toString()])?w.return():(Y=_.Sg(q().onTap))?w.yield(_.NZ(),2):w.return();Q=w.yieldResult;r=(e=_.n(Y,_.Fw))==null?void 0:e.startTimeSeconds;r===void 0||(N=Q)!=null&&N.seekTo(r,!0);_.WA(w)})});
return _.Z("macro-markers-panel-item-view-model",{class:_.Ec("ytwMacroMarkersPanelItemViewModelHost",{"is-active":J}),el:t,"on:click":F,tabindex:0},_.Z(_.Tl,{data:function(){var g;return(g=q())==null?void 0:g.item}},{timelineChapterViewModel:function(g){return _.Z(osE,{data:g.data,
active:J})},
timelineItemViewModel:function(g){return _.Z(zRO,{data:g.data,active:J})},
videoAttributeViewModel:NFC}))},"$d");
ns1.idomCompat=!0;_.ei(ns1,"macro-markers-panel-item-view-model",{props:{data:_.NH}});_.ei(Esf,"yt-video-attributes-section-view-model",{props:{data:_.NH}});var MKz=_.ld(function(F){var q=function(){var t,u,J;return(J=(t=F.data().leadingLogoAccessibility)==null?void 0:(u=t.accessibilityData)==null?void 0:u.label)!=null?J:""};
return _.Z("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.Z(_.R,{cond:function(){return F.data().leadingLogo},
then:function(t){return _.Z(_.sc,{className:"ytwFantasySectionHeaderViewModelLogo",data:t,alt:q})}}),_.Z("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.Z(_.rv,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return F.data().title}}),_.Z(_.rv,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return F.data().subtitle}})),_.Z(_.Tl,{data:function(){return F.data().trailingButton}},{buttonViewModel:function(t){return _.Z(_.AB,{data:t.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"ae");var TMj=_.ld(function(F){var q={};q=_.Ec("ytwFantasyTeamViewModelHost",(q.ytwFantasyTeamViewModelCompact=function(){var J;return!((J=F.compact)==null||!J.call(F))},q.ytwFantasyTeamViewModelUser=function(){return F.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},q.ytwFantasyTeamViewModelOpponent=function(){return F.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},q));
var t=function(){var J,g,Y;return(Y=(J=F.data().teamLogoAccessibility)==null?void 0:(g=J.accessibilityData)==null?void 0:g.label)!=null?Y:""},u=_.nH(S3v,function(){return F.data().teamEntityKey});
return _.Z("ytw-fantasy-team-view-model",{class:q},_.Z(_.R,{cond:function(){return F.data().teamLogo},
then:function(J){return _.Z(_.sc,{className:"ytwFantasyTeamViewModelLogo",data:J,alt:t})}}),_.Z("div",{class:"ytwFantasyTeamViewModelMetadata"},_.Z("div",{class:"ytwFantasyTeamViewModelHeader"},_.Z(_.rv,{className:"ytwFantasyTeamViewModelScore",
text:function(){var J;return(J=u())==null?void 0:J.score}}),_.Z(_.Tq,{icon:function(){var J;
return(J=u())==null?void 0:J.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.Z(_.rv,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var J;return(J=u())==null?void 0:J.projectedScore}})),_.Z(_.rv,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return F.data().primaryText}}),_.Z(_.rv,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return F.data().secondaryText}}),_.Z(_.rv,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return F.data().tertiaryText}})),_.Z(_.rv,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var J;return(J=u())==null?void 0:J.score}}))},"be");_.ei(_.ld(function(F){return _.Z("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.Z("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.Z(_.Tl,{data:function(){return F.data().summaryHeader}},{fantasySectionHeaderViewModel:MKz})),_.Z(_.Tl,{data:function(){return F.data().userTeam}},{fantasyTeamViewModel:TMj}),_.Z(_.Tl,{data:function(){return F.data().opponentTeam}},{fantasyTeamViewModel:TMj}))},"ce"),"fantasy-league-summary-view-model",{props:{data:_.NH}});var Gp1=_.ld(function(F){var q=_.sk(F,{shape:{},useCustomTabRenderable:!1}),t=q.shape;q=q.useCustomTabRenderable;var u=F.customTabRenderable,J=function(){return t().disabled},g=function(){return t().selected},Y=function(){return t().title},Q=function(){return t().icon},e=_.FG("yt-tab-shape");
F=_.zq(function(w){var k;if(!J()&&((k=t().aTagConfig)==null?0:k.onclick))t().aTagConfig.onclick(w);return!1});
var r=_.zq(function(w){if(w.key==="Enter"||w.key==="ArrowUp"||w.key==="ArrowDown")w.preventDefault(),e.value.click();return!1}),N={};
return _.Z("yt-tab-shape",{class:_.Ec("yt-tab-shape-wiz",function(){return t().className},(N["yt-tab-shape-wiz__tab--last-tab"]=function(){return t().isLastTab},N["yt-tab-shape-wiz--host-disabled"]=J,N["yt-tab-shape-wiz--host-clickable"]=!u,N)),
role:u?void 0:"tab","aria-selected":g!=null?g:!1,"aria-disabled":J,tabindex:u?void 0:0,"on:click":F,"on:keydown":r,el:e,"tab-identifier":function(){return t().identifier},
"tab-title":Y},_.Z(_.R,{cond:q,then:function(){return u()},
else:function(){var w={},k={};return _.Z(_.ln,null,_.Z("div",{class:_.Ec("yt-tab-shape-wiz__tab",(w["yt-tab-shape-wiz__tab--tab-selected"]=g,w))},_.Z(_.R,{cond:Q,then:function(z){return _.Z(_.Tq,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return z().iconType}})}}),Y),_.Z("div",{class:_.Ec("yt-tab-shape-wiz__tab-bar",(k["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=g,k))}))}}))},"de");
Gp1.idomCompat={callbacks:{customTabRenderable:!0}};_.Wfr=_.ld(function(F){var q=F.shape;F=_.X(_.N3(48,void 0,"rCewuf"));var t=F.next().value,u=F.next().value;F=_.X(_.N3(0,void 0,"aUUTWe"));var J=F.next().value,g=F.next().value,Y=function(){return q().tabs},Q=_.FG("yt-tab-group-shape"),e=function(){var r,N;
return(N=(r=Y())==null?void 0:r.findIndex(function(w){return w.selected}))!=null?N:-1};
_.v_(function(){var r=Q.value.querySelectorAll("yt-tab-shape"),N=e()>-1?r[e()]:void 0;_.mI.addJob(function(){u((N==null?void 0:N.getBoundingClientRect().width)||0)},8,0)});
_.AO(function(){var r=e(),N=_.mI.addJob(function(){var w,k=((w=Q.value)==null?void 0:w.querySelectorAll("yt-tab-shape"))||[],z;u(((z=r>-1?k[r]:void 0)==null?void 0:z.getBoundingClientRect().width)||0);for(z=w=0;z<r;z++)w+=k[z].offsetWidth+24;_.bn("HTML_DIR")==="rtl"&&(w=-w);g(w)},8,0);
_.vj(function(){_.mI.cancelJob(N)})},"DAb5Qb");
F={};return _.Z("yt-tab-group-shape",{class:_.Ec("tabGroupShapeHost",(F.tabGroupShapeOverflowHidden=function(){return q().isOverflowHidden},F)),
el:Q},_.Z(_.R,{cond:Y,then:function(r){return _.Z(_.ln,null,_.Z("div",{class:"tabGroupShapeTabs",role:"tablist"},_.Z(_.Gn,{each:r},function(N,w){return _.Z(Gp1,{shape:function(){return Object.assign({},N,{isLastTab:w()===r().length-1})},
customTabRenderable:N.customTabRenderable,useCustomTabRenderable:!!N.customTabRenderable})})),_.Z(DjO,{width:t,
sliderOffset:J}))}}))},"ee");
_.Wfr.idomCompat=!0;var DjO=_.ld(function(F){var q=_.Jv(F.sliderOffset,0),t=F.width;return _.Z("div",{class:"tabGroupShapeSlider",style:_.Mo({width:function(){return t()+"px"},
transform:function(){return"translateX("+q()+"px)"}})})},"fe");var OYz=_.ld(function(F){var q=function(){var g,Y,Q;return(Q=(g=F.data().playerLogoAccessibility)==null?void 0:(Y=g.accessibilityData)==null?void 0:Y.label)!=null?Q:""},t=_.nH(hg$,function(){return F.data().playerEntityKey}),u={};
u=_.Ec("ytwFantasyPlayerViewModelHost",(u.ytwFantasyPlayerViewModelPlaying=function(){var g;return!((g=t())==null||!g.isPlayerPlaying)},u.ytwFantasyPlayerViewModelOnField=function(){var g;
return((g=t())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},u.ytwFantasyPlayerViewModelRedZone=function(){var g;
return((g=t())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},u));
var J=function(){var g,Y,Q,e=((g=_.sV().resolve(_.JU(_.qo)))==null?0:g())?(Y=F.data().playerLogoBackgroundColor)==null?void 0:Y.darkTheme:(Q=F.data().playerLogoBackgroundColor)==null?void 0:Q.lightTheme;return e===void 0?"":_.KG(e)};
return _.Z("ytw-fantasy-player-view-model",{class:u},_.Z(_.R,{cond:function(){return F.data().playerLogo},
then:function(g){return _.Z("div",{class:"ytwFantasyPlayerViewModelLogo"},_.Z("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.Z(_.sc,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Mo({"background-color":J}),data:g,alt:q})),_.Z("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.Z(_.Tq,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.Z("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.Z("div",{class:"ytwFantasyPlayerViewModelHeader"},_.Z(_.rv,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var g;return(g=F.data())==null?void 0:g.playerNameText}}),_.Z(_.rv,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var g;return(g=F.data())==null?void 0:g.playerDescriptionText}})),_.Z("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Z(_.rv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=t())==null?void 0:g.gamePeriodText}}),_.Z(_.rv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=F.data())==null?void 0:g.opponentTeamText}}),_.Z(_.rv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=t())==null?void 0:g.gameStatusText}}),_.Z(_.rv,{className:_.Ec("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var g;return(g=t())==null?void 0:g.playerStatusText}})),_.Z("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Z(_.rv,{text:function(){var g;
return(g=t())==null?void 0:g.playerStatsText}}))),_.Z(_.rv,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var g;return(g=t())==null?void 0:g.fantasyScore}}))},"ge");var Pkj=_.ld(function(F){return _.Z("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.Z(_.R,{cond:function(){return F.data().players},
then:function(q){return _.Z(_.Tl,{data:q},{fantasyPlayerViewModel:OYz})}}))},"he");var xjz=_.ld(function(F){var q=_.X(_.np(function(){var J;return(J=F.data().selectedTabIdentifierKey)!=null?J:""})),t=q.next().value,u=q.next().value;
_.AN(function(){var J;(J=F.setSelectedTabSignal)==null||J.call(F,t)});
return _.Z("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.Z("div",{class:"ytTabbedViewModelTabGroup"},_.Z(_.Wfr,{shape:function(){var J=F.data(),g=[],Y={tabs:g};if(!J.tabs)return Y;J=_.X(J.tabs);for(var Q=J.next(),e={};!Q.done;e={tabViewModel:void 0},Q=J.next())if(e.tabViewModel=_.n(Q.value,HAe),e.tabViewModel){var r=Q=void 0;g.push({aTagConfig:{onclick:function(N){return function(){var w;u((w=N.tabViewModel.tabIdentifier)!=null?w:"")}}(e)},
identifier:e.tabViewModel.tabIdentifier,selected:t()===e.tabViewModel.tabIdentifier,title:(r=(Q=e.tabViewModel.title)==null?void 0:Q.content)!=null?r:""})}return Y}})),_.Z(_.Tl,{data:function(){var J,g=_.X((J=F.data().tabs)!=null?J:[]);
for(J=g.next();!J.done;J=g.next())if((J=_.n(J.value,HAe))&&J.tabIdentifier===t())return J.content}},{fantasyRosterViewModel:Pkj}))},"ie");_.ei(_.ld(function(F){var q=_.X(DG$()),t=q.next().value,u=q.next().value;return _.Z("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.Z(_.rv,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return F.data().title}}),_.Z(_.R,{cond:function(){return F.data().tabbedViewModel},
then:function(J){return _.Z(_.Tl,{data:J},{tabbedViewModel:function(g){return _.Z(xjz,{data:g.data,setSelectedTabSignal:u})}})}}),_.Z(_.R,{cond:function(){var J,g=(J=_.n(F.data().tabbedViewModel,mHw))==null?void 0:J.tabs;
J=_.n(g==null?void 0:g[0],HAe);g=_.n(g==null?void 0:g[1],HAe);var Y=J==null?void 0:J.tabIdentifier;if(t()===Y){var Q,e;if(!((Q=_.n(J==null?void 0:J.content,ukL))==null?0:(e=Q.players)==null?0:e.length))return F.data().noUserTeamPlayersText}else{var r,N;if(!((r=_.n(g==null?void 0:g.content,ukL))==null?0:(N=r.players)==null?0:N.length))return F.data().noOpponentTeamPlayersText}},
then:function(J){return _.Z(_.rv,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:J})}}))},"je"),"ytw-fantasy-matchup-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){return _.Z("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.Z(_.rv,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return F.data().title}}),_.Z(_.R,{cond:function(){return F.data().matchupTeamPairs},
then:function(q){return _.Z(_.Gn,{each:q,keyBy:"INDEX"},function(t){return _.Z("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.Z(_.Tl,{data:function(){return[t().firstTeam,t().secondTeam]}},{fantasyTeamViewModel:function(u){return _.Z(TMj,{data:u.data,
compact:!0})}}))})}}))},"ke"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=function(){var J,g,Y;return(Y=(J=F.data().userLogoAccessibility)==null?void 0:(g=J.accessibilityData)==null?void 0:g.label)!=null?Y:""},t=function(){var J,g,Y;
return(Y=(J=F.data().opponentLogoAccessibility)==null?void 0:(g=J.accessibilityData)==null?void 0:g.label)!=null?Y:""},u=_.nH(U_u,function(){return F.data().entityKey});
return _.Z("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.Z("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.Z(_.R,{cond:function(){return F.data().userLogo},
then:function(J){return _.Z(_.sc,{className:"ytwFantasyWinProbabilityViewModelLogo",data:J,alt:q})}}),_.Z("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.Z(_.rv,{text:function(){return F.data().title}})),_.Z(_.R,{cond:function(){return F.data().opponentLogo},
then:function(J){return _.Z(_.sc,{className:"ytwFantasyWinProbabilityViewModelLogo",data:J,alt:t})}})),_.Z("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.Z("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Z(_.rv,{text:function(){var J;
return(J=u())==null?void 0:J.userWinNumberLabel}})),_.Z("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.Z("div",{class:_.Ec("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Mo({flex:function(){var J,g;return(g=(J=u())==null?void 0:J.userWinNumber)!=null?g:50}})}),_.Z("div",{class:_.Ec("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Mo({flex:function(){var J,g;return(g=(J=u())==null?void 0:J.opponentWinNumber)!=null?g:50}})})),_.Z("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Z(_.rv,{text:function(){var J;
return(J=u())==null?void 0:J.opponentWinNumberLabel}}))))},"le"),"fantasy-win-probability-view-model",{props:{data:_.NH}});var Abr={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},vsz=_.ld(function(F){return _.Z(_.Tl,{data:F.button},{buttonViewModel:function(q){return _.Z(_.AB,{data:q.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"me"),Ipj=_.ld(function(F){return _.Z("ytd-backstage-locked-post-view-model",{class:_.Ec("ytdBackstageLockedPostViewModelHost",F.className)},_.Z("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.Z("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.Z(_.Tl,
{data:function(){return F.data().authorAvatar}},{decoratedAvatarViewModel:_.qi})),_.Z("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.Z("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.Z(_.rv,{text:function(){return F.data().authorText}})),_.Z("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.Z(_.rv,{text:function(){return F.data().publishedTimeText}}),_.Z(_.Tl,{data:function(){return F.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(q){return _.Z(fce,
{data:q.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.Z("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.Z(_.rv,{text:function(){return F.data().contentText}})),_.Z(_.OK,null,_.Z(_.DA,{when:function(){return F.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.Z("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.Z(_.sc,{data:Abr,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.Z(_.rv,{text:function(){return F.data().lockedText}}))}),_.Z(_.DA,{when:function(){return F.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.Z("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.Z("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.Z(_.sc,{data:Abr,
alt:""})),_.Z(_.rv,{text:function(){return F.data().lockedText}}))})),_.Z("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.Z(vsz,{button:function(){return F.data().likeButton}}),_.Z("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return F.data().voteCountA11y}},_.Z(_.rv,{text:function(){return F.data().voteCount}})),_.Z(vsz,{button:function(){return F.data().dislikeButton}}),_.Z(vsz,{button:function(){return F.data().commentButton}}),_.Z("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return F.data().commentCountA11y}},_.Z(_.rv,{text:function(){return F.data().commentCount}}))))},"ne");
Ipj.idomCompat=!0;_.ei(Ipj,"ytd-backstage-locked-post-view-model",{props:{data:_.NH,className:_.NH}});_.mo("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var pv=function(){var F=_.x.apply(this,arguments)||this;F.darkerPanels=_.E("web_watch_darker_panels");F.commentsHidePanelButton=!1;F.isWatchGrid=!1;F.continuationShowButton=!1;F.isSearch=!1;F.isConstrainedList=!1;F.isWatch=!1;F.eligibleToSwitchToGrid=!1;F.useBigThumbs=!1;F.notSticky=!1;F.epRestyle=!1;F.isCarouselInFeed=!0;F.topSpacingZero=!1;F.continuationIsInitialLoad=!0;F.enableSqueezebackPanels=_.E("web_shorts_enable_squeezeback_panels");F.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");
F.mastheadHeight=0;F.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};F.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return F};
_.M(pv,_.x);_.l=pv.prototype;_.l.updateLockupContainerTypes=function(F){if(this.eligibleToSwitchToGrid){var q;(q=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||q.forEach(function(t){t.containerType=F})}};
_.l.getItemsPath=function(){return"data.contents"};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",
compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",
fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",
handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",
horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",
messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",
offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",
premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",
redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",
searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.E("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.E("kevlar_low_priority_continuation")}}};
_.l.created=function(){};
_.l.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.l.handleIntersect=function(F){this.notSticky=F[0].intersectionRatio===1};
_.l.attached=function(){var F=this,q=_.E("web_item_section_sticky_header_use_scroll_as_fallback");q||document.addEventListener("scroll",_.kM(this,this.updateHeaderState));var t;this.mastheadHeight=((t=document.querySelector("ytd-masthead"))==null?void 0:t.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(u){F.handleIntersect(u)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):q&&document.addEventListener("scroll",_.kM(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){F.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.l.detached=function(){document.removeEventListener("scroll",_.kM(this,this.updateHeaderState));var F;(F=this.intersectionObserver)==null||F.disconnect();var q;(q=this.resizeObserver)==null||q.disconnect()};
_.l.updated=function(F){F.has("data")&&this.updateHeaderState()};
_.l.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(aNf(!this.notSticky))};
_.l.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var F=_.ep(this.hostElement).querySelector("ytd-comments-header-renderer");F&&(F.hidePanelButton=this.commentsHidePanelButton)}};
_.l.onRetrieveLocation=function(F,q){this.containsComments()&&(this.firstCommentsLoaded=q.hasComments=!0)};
_.l.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.l.onLoadReloadContinuation=function(F,q){var t=this;F.stopPropagation();this.isReloading=!0;_.Q0(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(u){var J=_.sV().resolve(_.CG);u=q(u);J.postData(u).then(function(g){t.onReloadContinuationData(g)})}})};
_.l.onReloadContinuationData=function(F){if(F=this.get("response.continuationContents.itemSectionContinuation",F)||this.get("response.contents.itemSectionRenderer",F)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",F)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",F))this.set("data.contents",F.contents||F.results),F.header&&this.set("data.header",F.header),this.set("data.continuations",
F.continuations||[]);this.isReloading=!1};
_.l.computeContentsClass=function(F){return F?"reloading":""};
_.l.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.l.computeSectionIdentifier=function(F){return F==null?void 0:F.sectionIdentifier};
_.l.computeFitContainer=function(F){return(F==null?void 0:F.sectionIdentifier)==="youchat-item-section"};
_.l.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.E("kevlar_disable_comments_auto_load")};
_.l.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.l.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.l.computeHasDestinationShelfRenderer=function(F){var q,t;return!!(F==null?0:(q=F.contents)==null?0:(t=q[0])==null?0:t.destinationShelfRenderer)};
_.l.computeHasSectionGroupViewModel=function(F){var q,t;return!!(F==null?0:(q=F.contents)==null?0:(t=q[0])==null?0:t.sectionGroupViewModel)};
_.l.computeHasQrCodeRenderer=function(F){var q,t;return!!(F==null?0:(q=F.contents)==null?0:(t=q[0])==null?0:t.qrCodeRenderer)};
_.l.computeStaticCommentsHeader=function(F){return F&&this.containsComments()};
_.l.computeEpRestyle=function(F){return _.E("web_ep_restyling")&&F&&this.containsComments()};
_.l.computeIsContinuationCommentSection=function(F){return(F==null?void 0:F.targetId)==="shorts-engagement-panel-comments-section"||(F==null?void 0:F.targetId)==="comments-section"||(F==null?void 0:F.targetId)==="engagement-panel-comments-section"};
_.l.computeSuppressPaddingDisclaimer=function(){var F,q,t,u;return!!((F=this.data)==null?0:(q=F.contents)==null?0:(t=q[0])==null?0:(u=t.productListHeaderRenderer)==null?0:u.suppressPaddingDisclaimer)};
_.l.computeHeaderStyle=function(F){switch(F==null?void 0:F.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.l.dataChanged=function(){this.firstCommentsLoaded=!1};
_.l.observeDataContentsLength=function(){var F,q;((F=this.data)==null?0:(q=F.contents)==null?0:q.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.l.onYtDismissibleItemDismissedChange=function(F){this._setItemDismissed(F.type==="yt-dismissible-item-dismissed")};
_.l.triggerContinuations=function(){for(var F=_.ep(this.hostElement).querySelector("#continuations").children,q=0;q<F.length;q++)F[q].trigger()};
_.l.triggerInitialContinuations=function(){for(var F=_.ep(this.hostElement).querySelector("#continuations").children,q=0;q<F.length;q++)F[q].triggerIfNotPreviouslyTriggered()};
_.l.handleYtItemSectionContinuation=function(F,q){var t;q&&((t=this.data)==null?void 0:t.sectionIdentifier)!==q||(this.set("data.continuations",[F]),this.triggerContinuations())};
_.l.handleYtItemSectionReplace=function(F,q){var t;q&&((t=this.data)==null?void 0:t.sectionIdentifier)!==q||(this.set("data.contents",F),this.set("data.continuations",[]))};
_.l.computeUseHeightHack=function(F){return F&&!_.E("kevlar_disable_height_hack")};
_.l.computeTopSpacingZero=function(F){return F};
_.l.continuationShowButtonChanged=function(){var F=_.ep(this.hostElement).querySelector("ytd-continuation-item-renderer");F&&(F.showButton=this.continuationShowButton)};
_.l.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("data-changed",this.data))};
_.JJ.Object.defineProperties(pv.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.E("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return!!((F=this.data)==null?0:(q=F.contents)==null?0:(t=q[0])==null?0:t.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u,J,g,Y;return!!((F=this.data)==null?0:(q=F.contents)==null?0:(t=q[0])==null?0:(u=t.shelfRenderer)==null?0:(J=u.content)==null?0:(g=J.gridRenderer)==null?0:(Y=g.targetId)==null?0:Y.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return!!((F=this.data)==null?0:(q=F.contents)==null?0:(t=q[0])==null?0:t.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return!!((F=this.data)==null?0:(q=F.contents)==null?0:(t=q[0])==null?0:t.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.pE("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.E("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.E("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
pv.prototype.dataChangedForBinding=pv.prototype.dataChangedForBinding;pv.prototype.continuationShowButtonChanged=pv.prototype.continuationShowButtonChanged;pv.prototype.onYtDismissibleItemDismissedChange=pv.prototype.onYtDismissibleItemDismissedChange;pv.prototype.observeDataContentsLength=pv.prototype.observeDataContentsLength;pv.prototype.dataChanged=pv.prototype.dataChanged;pv.prototype.onServiceRequestCompleted=pv.prototype.onServiceRequestCompleted;pv.prototype.onLoadReloadContinuation=pv.prototype.onLoadReloadContinuation;
pv.prototype.onRetrieveLocation=pv.prototype.onRetrieveLocation;pv.prototype.commentsHidePanelButtonChanged=pv.prototype.commentsHidePanelButtonChanged;pv.prototype.dispatchChipBarIsSticky=pv.prototype.dispatchChipBarIsSticky;pv.prototype.updateLockupContainerTypes=pv.prototype.updateLockupContainerTypes;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],pv.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.DO.YtLazyListBehavior),_.V("design:type",Object)],pv.prototype,"ytLazyListBehavior",void 0);_.C([_.D(_.eH.YtNextContinuationBehavior),_.V("design:type",Object)],pv.prototype,"ytNextContinuationBehavior",void 0);
_.C([_.D(_.Qd),_.V("design:type",Object)],pv.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],pv.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],pv.prototype,"ytdReduxBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],pv.prototype,"darkerPanels",void 0);_.C([_.O(),_.V("design:type",Object)],pv.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Boolean)],pv.prototype,"engagementPanel",void 0);_.C([_.O(),_.V("design:type",Object)],pv.prototype,"commentsHidePanelButton",void 0);_.C([_.O(),_.V("design:type",Object)],pv.prototype,"isWatchGrid",void 0);_.C([_.O(),_.V("design:type",Object)],pv.prototype,"continuationShowButton",void 0);_.C([_.O({computed:"computeIsContinuationCommentSection(data)"}),_.V("design:type",Boolean)],pv.prototype,"continuationIsCommentsSection",void 0);
_.C([_.O({value:!0}),_.V("design:type",Boolean)],pv.prototype,"autoFill",void 0);_.C([_.O(),_.V("design:type",Boolean)],pv.prototype,"continuationDisablePrescanVisibility",void 0);_.C([_.O(),_.V("design:type",Boolean)],pv.prototype,"isReloading",void 0);_.C([_.O(),_.V("design:type",Object)],pv.prototype,"isSearch",void 0);_.C([_.O(),_.V("design:type",Object)],pv.prototype,"isConstrainedList",void 0);_.C([_.O(),_.V("design:type",Object)],pv.prototype,"isWatch",void 0);
_.C([_.O(),_.V("design:type",Object)],pv.prototype,"eligibleToSwitchToGrid",void 0);_.C([_.O(),_.V("design:type",Object)],pv.prototype,"useBigThumbs",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],pv.prototype,"notSticky",void 0);_.C([_.O({selector:_.Cp}),_.V("design:type",Object)],pv.prototype,"isGridViewEnabled",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.V("design:type",Object)],pv.prototype,"epRestyle",void 0);_.C([_.W("isWatch"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pv.prototype,"hideShortsShelfHeader",null);_.C([_.W("isSearch","isWatch"),_.V("design:type",String),_.V("design:paramtypes",[])],pv.prototype,"thumbnailWidth",null);
_.C([_.W("isSearch","containerWidth"),_.V("design:type",Object),_.V("design:paramtypes",[])],pv.prototype,"thumbnailTargetWidth",null);_.C([_.W("isSearch","isWatch"),_.V("design:type",String),_.V("design:paramtypes",[])],pv.prototype,"sizing",null);_.C([_.W("isWatch","isGridViewEnabled","useBigThumbs","data"),_.O({reflectToAttribute:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],pv.prototype,"lockupContainerType",null);
_.C([_.za("lockupContainerType","data"),_.V("design:type",Function),_.V("design:paramtypes",[Number]),_.V("design:returntype")],pv.prototype,"updateLockupContainerTypes",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],pv.prototype,"pageSubtype",void 0);_.C([_.O({computed:"computeContainerWidth()"}),_.V("design:type",Number)],pv.prototype,"containerWidth",void 0);_.C([_.O(),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pv.prototype,"isPlaylist",null);
_.C([_.O(),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pv.prototype,"isClipList",null);_.C([_.O(),_.V("design:type",Object)],pv.prototype,"isCarouselInFeed",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pv.prototype,"isPlaylistVideoContainer",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pv.prototype,"isSearchFrictionPage",null);
_.C([_.O({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.V("design:type",Boolean)],pv.prototype,"useHeightHack",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.V("design:type",Object)],pv.prototype,"topSpacingZero",void 0);_.C([_.O({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.V("design:type",Boolean)],pv.prototype,"showButton",void 0);
_.C([_.O(),_.V("design:type",Boolean)],pv.prototype,"firstCommentsLoaded",void 0);_.C([_.O(),_.V("design:type",Object)],pv.prototype,"continuationIsInitialLoad",void 0);_.C([_.O({reflectToAttribute:!0,readOnly:!0}),_.V("design:type",Boolean)],pv.prototype,"itemDismissed",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.V("design:type",String)],pv.prototype,"sectionIdentifier",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.V("design:type",String)],pv.prototype,"fitContainer",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.V("design:type",Boolean)],pv.prototype,"hasDestinationShelfRenderer",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.V("design:type",Boolean)],pv.prototype,"staticCommentsHeader",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],pv.prototype,"enableSqueezebackPanels",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],pv.prototype,"enableAnchoredPanel",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.V("design:type",Boolean)],pv.prototype,"hasSectionGroupViewModel",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.V("design:type",Boolean)],pv.prototype,"hasQrCodeRenderer",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.V("design:type",Boolean)],pv.prototype,"suppressDisclaimerSeparator",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.V("design:type",String)],pv.prototype,"headerStyle",void 0);
_.C([_.W("isSearch"),_.V("design:type",Object),_.V("design:paramtypes",[])],pv.prototype,"lockupExperiments",null);_.C([_.W("isSearch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pv.prototype,"typographyBump",null);_.C([_.Ms("#header"),_.V("design:type",HTMLElement)],pv.prototype,"header",void 0);_.C([_.za("notSticky"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pv.prototype,"dispatchChipBarIsSticky",null);
_.C([_.za("commentsHidePanelButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pv.prototype,"commentsHidePanelButtonChanged",null);_.C([_.EB("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],pv.prototype,"onRetrieveLocation",null);
_.C([_.EB("yt-load-reload-continuation"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Function]),_.V("design:returntype")],pv.prototype,"onLoadReloadContinuation",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pv.prototype,"onServiceRequestCompleted",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pv.prototype,"dataChanged",null);
_.C([_.Wh("data.contents.length"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pv.prototype,"observeDataContentsLength",null);_.C([_.EB("yt-dismissible-item-dismissed"),_.EB("yt-dismissible-item-undismissed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],pv.prototype,"onYtDismissibleItemDismissedChange",null);
_.C([_.za("continuationShowButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pv.prototype,"continuationShowButtonChanged",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pv.prototype,"dataChangedForBinding",null);_.C([_.m({is:"ytd-item-section-renderer",disableElementRegistration:!0})],pv);
_.b(pv,"ytd-item-section-renderer",function(){if(h1J!==void 0)return h1J;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return h1J=F},{mode:1});var HYJ;var Px$=_.FK(_.oD("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var mje={},ODu=(mje[0]={title:_.lC(_.oD("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lC(_.oD("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.sf("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},mje[1]={title:_.lC(_.oD("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.sf("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},mje);_.mo("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Qt=function(){var F=_.x.apply(this,arguments)||this;F.allVideosCount=0;F.allPlaylistCount=0;F.isOnline=!1;F.shouldRenderDownloadsBanner=!1;F.shouldRenderDownloadsBannerUpsell=!1;F.hasOptedIntoSmartDownloads=!1;F.areAllSmartDownloadsDeleted=!1;F.smartDownloadsCompleted=!1;return F};
_.M(Qt,_.x);Qt.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Qt.prototype.attached=function(){this.downloadsToRenderChanged()};
Qt.prototype.detached=function(){this.set("renderableData",{})};
Qt.prototype.downloadsToRenderChanged=function(){var F=_.u1().getState().entities,q=_.IY(F),t=_.E("kevlar_playlist_dl_page_killswitch")?f2C(F):_.H5(F),u=_.VRC(F),J=_.KLy(F),g=_.W5(q);F=_.mV(F);this.set("renderableData",Ayy(t,q,u,J,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,g,F))};
Qt.prototype.downloadsToRenderChanged=Qt.prototype.downloadsToRenderChanged;_.C([_.D(_.s9),_.V("design:type",Object)],Qt.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Qt.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],Qt.prototype,"renderableData",void 0);_.C([_.O({selector:_.YhA}),_.V("design:type",Object)],Qt.prototype,"allVideosCount",void 0);_.C([_.O({selector:nX_}),_.V("design:type",Object)],Qt.prototype,"allPlaylistCount",void 0);_.C([_.O({selector:_.dj}),_.V("design:type",Object)],Qt.prototype,"isOnline",void 0);_.C([_.O({selector:_.N7$}),_.V("design:type",Object)],Qt.prototype,"shouldRenderDownloadsBanner",void 0);
_.C([_.O({selector:_.EQo}),_.V("design:type",Object)],Qt.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.C([_.O({selector:_.wGv}),_.V("design:type",Object)],Qt.prototype,"hasOptedIntoSmartDownloads",void 0);_.C([_.O({selector:_.i8W}),_.V("design:type",Object)],Qt.prototype,"areAllSmartDownloadsDeleted",void 0);_.C([_.O({selector:k_o}),_.V("design:type",Object)],Qt.prototype,"smartDownloadsCompleted",void 0);
_.C([_.Wh("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qt.prototype,"downloadsToRenderChanged",null);_.C([_.m({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Qt);
_.b(Qt,"ytd-offline-item-section-renderer",function(){if(HYJ!==void 0)return HYJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return HYJ=F},
{mode:1});var $jf;var bYx;var eU=function(){return _.x.apply(this,arguments)||this};
_.M(eU,_.x);
eU.prototype.onDataChanged=function(){if(this.JSC$16666_lastData){var F=this.getFilterClass(this.JSC$16666_lastData.status);F&&this.hostElement.classList.remove(F)}var q;(F=this.getFilterClass((q=this.data)==null?void 0:q.status))&&this.hostElement.classList.add(F);F==="selected"?_.ep(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.ep(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");F==="disabled"?_.ep(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.ep(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16666_lastData=this.data};
eU.prototype.getFilterClass=function(F){switch(F){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
eU.prototype.onDataChanged=eU.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],eU.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eU.prototype,"onDataChanged",null);_.C([_.m({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],eU);
_.b(eU,"ytd-search-filter-renderer",function(){if(bYx!==void 0)return bYx;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return bYx=F},{mode:_.Nc("kevlar_poly_si_batch_j075")?1:2});var Zm=function(){return _.x.apply(this,arguments)||this};
_.M(Zm,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Zm.prototype,"data",void 0);_.C([_.m({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Zm);
_.b(Zm,"ytd-search-filter-group-renderer",function(){if($jf!==void 0)return $jf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return $jf=F},{mode:_.Nc("kevlar_poly_si_batch_j075")?1:2});var ybv;var RF=function(){return _.x.apply(this,arguments)||this};
_.M(RF,_.x);RF.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Ts());this.isCollapsed=!this.isCollapsed};
RF.prototype.navigateToAboutTheseResultsPage=function(){var F=_.yy("https://www.youtube.com/howyoutubeworks/product-features/search/");F?_.jO(window,F,"_blank"):_.CI(Error("Sh"))};
RF.prototype.dataChanged=function(){this.isCollapsed=!0};
RF.prototype.computeShowBottomBorder=function(){var F,q,t;return!!((F=this.data)==null?0:(q=F.button)==null?0:q.toggleButtonRenderer)||!((t=this.data)==null||!t.aboutTheseResultsButton)};
RF.prototype.dataChanged=RF.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],RF.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.V("design:type",Boolean)],RF.prototype,"showBottomBorder",void 0);_.C([_.O(),_.V("design:type",Boolean)],RF.prototype,"renderCollapsibleMenu",void 0);
_.C([_.O(),_.V("design:type",Boolean)],RF.prototype,"isCollapsed",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RF.prototype,"dataChanged",null);_.C([_.m({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],RF);
_.b(RF,"ytd-search-sub-menu-renderer",function(){if(ybv!==void 0)return ybv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ybv=F},{mode:1});var CkJ;var djx=new _.pg("SECTION_LIST_RENDERER_TOKEN");var VKx;var rK=function(){return _.x.apply(this,arguments)||this};
_.M(rK,_.x);rK.prototype.computeStyle=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],rK.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],rK.prototype,"headerStyle",void 0);_.C([_.m({is:"ytd-text-header-renderer",disableElementRegistration:!0})],rK);
_.b(rK,"ytd-text-header-renderer",function(){if(VKx!==void 0)return VKx;var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return VKx=F},{mode:1});var Ujv;var NO=function(){return _.x.apply(this,arguments)||this};
_.M(NO,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],NO.prototype,"data",void 0);_.C([_.m({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],NO);
_.b(NO,"ytd-minor-moment-header-renderer",function(){if(Ujv!==void 0)return Ujv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Ujv=F},{mode:1});var S4j;var wK=function(){return _.x.apply(this,arguments)||this};
_.M(wK,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],wK.prototype,"data",void 0);_.C([_.m({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],wK);
_.b(wK,"ytd-minor-moment-setting-alert-renderer",function(){if(S4j!==void 0)return S4j;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return S4j=F},{mode:1});var hRz;var Kfd;var iE=function(){var F=_.x.apply(this,arguments)||this;F.booleanSettingById=!1;F.smartDownloadsEnabledVE=_.r0(128287);F.smartDownloadsDisabledVE=_.r0(128286);F.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return F};
_.M(iE,_.x);_.l=iE.prototype;_.l.attachSmartDownloadsSettingVes=function(){var F;this.activeVeForLogging||((F=this.data)==null?void 0:F.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.PQ(_.DP(),this.smartDownloadsEnabledVE),_.PQ(_.DP(),this.smartDownloadsDisabledVE))};
_.l.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Q0(this.hostElement,"yt-settings-switch-ready")};
_.l.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.l.onSwitchChange=function(F){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(F=_.uL(F).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.E("kevlar_settings_switch_resolve_command_killswitch")?_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(F)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.l.handleUpdateSettingsSwitch=function(F){(F=_.n(F,ndd))&&this.data&&this.data.id===F.id&&this.set("data.enabled",!!F.enabled)};
_.l.onToggleSettingsSwitch=function(F,q){this.data&&this.data.id===F&&this.set("data.enabled",q!=null?q:!this.data.enabled)};
_.l.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.kA.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.l.maybeLogSmartDownloadsSettingVisibility=function(){var F=_.yb(),q;F&&((q=this.data)==null?void 0:q.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.aD(F,[this.smartDownloadsEnabledVE]),_.jc(F,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.aD(F,[this.smartDownloadsDisabledVE]),_.jc(F,[this.smartDownloadsEnabledVE])))};
_.l.maybeLogSmartDownloadsSettingClick=function(){var F;((F=this.data)==null?void 0:F.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Ah(_.DP(),this.activeVeForLogging)};
_.l.updateDataEnabledFromBinding=function(F){this.set("data.enabled",F.detail.value)};
_.JJ.Object.defineProperties(iE.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var F=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!F&&(F=this.ytRendererBehavior.getSimpleString(this.data.title));return F}}});
iE.prototype.dataChanged=iE.prototype.dataChanged;_.C([_.D(_.s9),_.V("design:type",Object)],iE.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],iE.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],iE.prototype,"ytComponentBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],iE.prototype,"data",void 0);_.C([_.O({selector:function(F,q){if(Object.keys(F==null?void 0:F.entities).length)switch(q){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return a2P(F.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.V("design:type",Object)],iE.prototype,"booleanSettingById",void 0);_.C([_.O(),_.V("design:type",$z)],iE.prototype,"activeVeForLogging",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],iE.prototype,"toggleAriaLabel",null);_.C([_.Wh("data"),_.Wh("booleanSettingById"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iE.prototype,"dataChanged",null);
_.C([_.m({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],iE);
_.b(iE,"ytd-settings-switch-renderer",function(){if(Kfd!==void 0)return Kfd;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Kfd=F},{mode:1});var kr=function(){return _.x.apply(this,arguments)||this};
_.M(kr,_.x);kr.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}}}}};
_.JJ.Object.defineProperties(kr.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var F=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(F+=" remove-left-margin");this.data.extraBottomSpace&&(F+=" extra-bottom-space");return F}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],kr.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],kr.prototype,"contentsClassName",null);_.C([_.m({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],kr);
_.b(kr,"ytd-minor-moment-setting-section-renderer",function(){if(hRz!==void 0)return hRz;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return hRz=F},{mode:1});var BMf;var EA=function(){return _.x.apply(this,arguments)||this};
_.M(EA,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],EA.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],EA.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],EA);
_.b(EA,"ytd-empty-product-details-renderer",function(){if(BMf!==void 0)return BMf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return BMf=F},{mode:1});var LfJ;var fpE;var zX=function(){var F=_.x.apply(this,arguments)||this;F.expanded=!0;return F};
_.M(zX,_.x);zX.prototype.getBadgeRowClass=function(F,q,t){for(var u=_.X(this.hostElement.querySelectorAll("yt-img-shadow")),J=u.next();!J.done;J=u.next())J.value.onShow();F=F.selected;return t?F!==-1?F===q?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(F!==void 0?F:0)===q?"badge-line":"badge-hidden"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zX.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],zX.prototype,"expanded",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],zX);
_.b(zX,"ytd-sponsorships-loyalty-badges-renderer",function(){if(fpE!==void 0)return fpE;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return fpE=F},{mode:1});var apJ;var oF=function(){var F=_.x.apply(this,arguments)||this;F.expanded=!0;return F};
_.M(oF,_.x);oF.prototype.getContainerClasses=function(F,q){F=F?"expanded":"collapsed";q&&(F+=" item");return F};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],oF.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],oF.prototype,"expanded",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],oF);
_.b(oF,"ytd-sponsorships-perk-renderer",function(){if(apJ!==void 0)return apJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return apJ=F},{mode:1});var j9j;var nv=function(){var F=_.x.apply(this,arguments)||this;F.expanded=!0;return F};
_.M(nv,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],nv.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],nv.prototype,"expanded",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],nv);
_.b(nv,"ytd-sponsorships-perks-renderer",function(){if(j9j!==void 0)return j9j;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return j9j=F},{mode:1});var MO=function(){var F=_.x.apply(this,arguments)||this;F.isCollapsed=!1;return F};
_.M(MO,_.x);MO.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
MO.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
MO.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var F;this.expandCollapseButton=_.n((F=this.data)==null?void 0:F.expandButton,_.th)}else{var q;this.expandCollapseButton=_.n((q=this.data)==null?void 0:q.collapseButton,_.th)}};
MO.prototype.updateExpandCollapseButton=MO.prototype.updateExpandCollapseButton;MO.prototype.onDataChanged=MO.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],MO.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],MO.prototype,"isCollapsed",void 0);_.C([_.O(),_.V("design:type",Object)],MO.prototype,"expandCollapseButton",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MO.prototype,"onDataChanged",null);_.C([_.Wh("data","isCollapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MO.prototype,"updateExpandCollapseButton",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],MO);
_.b(MO,"ytd-sponsorships-expandable-perks-renderer",function(){if(LfJ!==void 0)return LfJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return LfJ=F},{mode:1});var cbf;var TX=function(){return _.x.apply(this,arguments)||this};
_.M(TX,_.x);TX.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],TX.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],TX.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],TX);
_.b(TX,"ytd-sponsorships-actionable-message-renderer",function(){if(cbf!==void 0)return cbf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return cbf=F},{mode:1});var FD1;var GX=function(){return _.x.apply(this,arguments)||this};
_.M(GX,_.x);_.l=GX.prototype;_.l.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.l.getExpansionIcon=function(F){return F?"COLLAPSE":"EXPAND"};
_.l.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.l.computeMessageContainerStyle=function(F){var q=F.expandableItems?" style-clickable":"";return F.messageContainerStyle?F.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+q:"style-unspecified"+q};
_.l.isSinglePerk=function(F){return!!F.messageContainerStyle&&(F.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||F.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.l.onExpandedChanged=function(){var F=this;if(this.expanded)for(var q=_.X(this.hostElement.querySelectorAll("yt-img-shadow")),t=q.next();!t.done;t=q.next())t.value.onShow();_.tJ(this,function(){_.Q0(F.hostElement,"yt-refit")})};
_.l.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
GX.prototype.onDataChanged=GX.prototype.onDataChanged;GX.prototype.onExpandedChanged=GX.prototype.onExpandedChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],GX.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],GX.prototype,"expanded",void 0);
_.C([_.za("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GX.prototype,"onExpandedChanged",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GX.prototype,"onDataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],GX);
_.b(GX,"ytd-sponsorships-expandable-message-renderer",function(){if(FD1!==void 0)return FD1;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return FD1=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var qjL;var Dm=function(){return _.x.apply(this,arguments)||this};
_.M(Dm,_.x);Dm.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"}}}}};
Dm.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.n(this.data.endButton,_.th).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Dm.prototype.onDataChanged=Dm.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Dm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Dm.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Dm.prototype,"onDataChanged",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Dm);
_.b(Dm,"ytd-sponsorships-heading-renderer",function(){if(qjL!==void 0)return qjL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return qjL=F},{mode:1});var tXC;var WH=function(){return _.x.apply(this,arguments)||this};
_.M(WH,_.x);_.C([_.O(),_.V("design:type",Object)],WH.prototype,"data",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],WH);
_.b(WH,"ytd-sponsorships-links-renderer",function(){if(tXC!==void 0)return tXC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return tXC=F},{mode:1});var ume;var OA=function(){return _.x.apply(this,arguments)||this};
_.M(OA,_.x);_.l=OA.prototype;_.l.onDataChanged=function(){if(this.data&&this.data.expandableItems){var F;(F=_.ep(this.hostElement).querySelector("tp-yt-paper-button"))==null||F.setAttribute("role","button")}else{var q;(q=_.ep(this.hostElement).querySelector("tp-yt-paper-button"))==null||q.removeAttribute("role")}};
_.l.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.l.getExpansionIcon=function(F){return F?"COLLAPSE":"EXPAND"};
_.l.getTileClasses=function(F){return F?"tile expandable-tile":"tile"};
_.l.getButtonDisabled=function(F){return F?void 0:""};
OA.prototype.onDataChanged=OA.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],OA.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],OA.prototype,"expanded",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OA.prototype,"onDataChanged",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],OA);
_.b(OA,"ytd-sponsorships-list-tile-renderer",function(){if(ume!==void 0)return ume;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ume=F},{mode:1});var Jwn;var s1x;var PH=function(){return _.x.apply(this,arguments)||this};
_.M(PH,_.x);PH.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],PH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],PH.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],PH);
_.b(PH,"ytd-sponsorships-promotion-renderer",function(){if(s1x!==void 0)return s1x;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return s1x=F},{mode:1});var g8C;var xr=function(){return _.x.apply(this,arguments)||this};
_.M(xr,_.x);xr.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],xr.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],xr);
_.b(xr,"ytd-sponsorships-purchase-option-renderer",function(){if(g8C!==void 0)return g8C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return g8C=F},{mode:1});var l7x;var Xme;var Yjf=function(){return _.x.apply(this,arguments)||this};
_.M(Yjf,_.x);_.C([_.O(),_.V("design:type",Object)],Yjf.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Yjf);
_.b(Yjf,"ytd-ypc-offer-promo-renderer",function(){if(Xme!==void 0)return Xme;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Xme=F},{mode:1});var A_=function(){return _.x.apply(this,arguments)||this};
_.M(A_,_.x);_.l=A_.prototype;
_.l.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"}}}}};
_.l.expansionCTA=function(F,q){return F&&(q?F.collapseCallToAction:F.expansionCallToAction)};
_.l.getExpansionIcon=function(F){return F?"COLLAPSE":"EXPAND"};
_.l.expansionCallToActionTap=function(){var F=this;this.expanded=!this.expanded;_.tJ(this,function(){_.Q0(F.hostElement,"yt-refit")})};
_.l.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var F,q=(F=this.data)==null?void 0:F.onVisible;q&&this.ytComponentBehavior.resolveCommand(q)};
_.l.computeDisplayTitle=function(F){return!(!F||this.titledisplaystatus!=="show")};
_.l.computeDisplaySeparator=function(){return!1};
_.l.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
A_.prototype.onDataChanged=A_.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],A_.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],A_.prototype,"data",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],A_.prototype,"expanded",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],A_.prototype,"purchaseButtonClicked",void 0);_.C([_.O({reflectToAttribute:!0,value:"show"}),_.V("design:type",String)],A_.prototype,"titledisplaystatus",void 0);_.C([_.O({computed:"computeDisplayTitle(data.title)"}),_.V("design:type",Boolean)],A_.prototype,"displayTitle",void 0);
_.C([_.O({computed:"computeDisplaySeparator(data)"}),_.V("design:type",Boolean)],A_.prototype,"displaySeparator",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],A_.prototype,"onDataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],A_);
_.b(A_,"ytd-sponsorships-tier-renderer",function(){if(l7x!==void 0)return l7x;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return l7x=F},{mode:2});var vH=function(){return _.x.apply(this,arguments)||this};
_.M(vH,_.x);
vH.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"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],vH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],vH.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],vH);
_.b(vH,"ytd-sponsorships-management-renderer",function(){if(Jwn!==void 0)return Jwn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Jwn=F},{mode:1});var pmL;var IF=function(){return _.x.apply(this,arguments)||this};
_.M(IF,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],IF.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],IF);
_.b(IF,"ytd-open-in-native-app-view-model",function(){if(pmL!==void 0)return pmL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return pmL=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var Q1v;var eqw;var ZXL=_.LZ(["top-"]),RqO=_.LZ(["bottom-"]),rwj=_.LZ(["left-"]),NVw=_.LZ(["right-"]),wmx={},iXr=function(F,q,t){F.removeAttribute("top-"+t);F.removeAttribute("bottom-"+t);F.removeAttribute("left-"+t);F.removeAttribute("right-"+t);q&&(q.top&&_.ss([_.Qp(ZXL)],F,"top-"+t,q.top),q.bottom&&_.ss([_.Qp(RqO)],F,"bottom-"+t,q.bottom),q.left&&_.ss([_.Qp(rwj)],F,"left-"+t,q.left),q.right&&_.ss([_.Qp(NVw)],F,"right-"+t,q.right))};
wmx.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(F){var q,t=_.ep((q=this.hostElement)!=null?q:this),u;q=this.cardItemBoxBehaviorMarginTargetId&&t?t.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(u=this.hostElement)!=null?u:this;iXr(q,F,"margin")},
cardItemContainerPaddingChanged_:function(F){var q,t=_.ep((q=this.hostElement)!=null?q:this),u;q=this.cardItemBoxBehaviorPaddingTargetId&&t?t.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(u=this.hostElement)!=null?u:this;iXr(q,F,"padding")}}];var HH={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 kiv;var E81;var m3=function(){return _.x.apply(this,arguments)||this};
_.M(m3,_.x);m3.prototype.textColorChanged_=function(){this.hostElement.style.color=HH[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
m3.prototype.textColorChanged_=m3.prototype.textColorChanged_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.C([_.D(wmx.YtCardItemBoxBehavior),_.V("design:type",Object)],m3.prototype,"ytCardItemBoxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],m3.prototype,"data",void 0);_.C([_.za("data.textColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],m3.prototype,"textColorChanged_",null);
_.C([_.Vu({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],m3);
_.b(m3,"yt-card-item-text-renderer",function(){if(E81===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;kiv===void 0&&(kiv=document.createElement("template"));var u=kiv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);E81=F}F=E81;return F},{mode:2});var zqv;var o8J;var $r=function(){return _.x.apply(this,arguments)||this};
_.M($r,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$r.prototype,"data",void 0);_.C([_.Vu({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],$r);
_.b($r,"yt-card-item-badge-renderer",function(){if(o8J===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;zqv===void 0&&(zqv=document.createElement("template"));var u=zqv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);o8J=F}F=o8J;return F},{mode:2});var n8O;var MXr;var bE=function(){return _.x.apply(this,arguments)||this};
_.M(bE,_.x);bE.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],bE.prototype,"data",void 0);_.C([_.Vu({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],bE);
_.b(bE,"yt-card-item-text-collection-renderer",function(){if(MXr===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;n8O===void 0&&(n8O=document.createElement("template"));var u=n8O;t.call(q,u.content.cloneNode(!0),F.content.firstChild);MXr=F}F=MXr;return F},{mode:2});var TVL;var Gid;var Cv=function(){return _.x.apply(this,arguments)||this};
_.M(Cv,_.x);Cv.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]]"}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Cv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Cv.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Number)],Cv.prototype,"iconSize",void 0);_.C([_.Vu({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Cv);
_.b(Cv,"yt-card-item-text-with-button-renderer",function(){if(Gid===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;TVL===void 0&&(TVL=document.createElement("template"));var u=TVL;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Gid=F}F=Gid;return F},{mode:2});var dK=function(){return _.x.apply(this,arguments)||this};
_.M(dK,_.x);dK.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],dK.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],dK.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],dK);
_.b(dK,"ytd-commerce-cart-summary-line-item-renderer",function(){if(eqw!==void 0)return eqw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return eqw=F},{mode:1});_.mo("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Vt=function(){var F=_.x.apply(this,arguments)||this;F.hidden=!1;return F};
_.M(Vt,_.x);_.l=Vt.prototype;_.l.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"}}}}};
_.l.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.l.updateSummary=function(){var F=this.commerceCartCheckoutButtonEntity,q;if(((q=this.data)==null?0:q.cartButton)&&F.checkoutSummaryText){var t,u=Ai((t=this.data)==null?void 0:t.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+u+".cardItemTextRenderer.text",vZ(F.checkoutSummaryText));if(F.checkoutDetailText){var J;t=Ai((J=this.data)==null?void 0:J.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+t+".cardItemTextRenderer.text",vZ(F.checkoutDetailText))}if(F.checkoutAdditionalMetadataText){var g;
J=Ai((g=this.data)==null?void 0:g.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+J+".cardItemTextRenderer.text",vZ(F.checkoutAdditionalMetadataText))}}else F.estimatedTotalPrice&&(g=Ai((u=this.data)==null?void 0:u.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+g+".cardItemTextRenderer.text",vZ(F.estimatedTotalPrice)))};
_.l.updateIsHidden=function(){var F,q=(F=this.commerceCartCheckoutButtonEntity)==null?void 0:F.isHidden;q!==void 0&&(this.hidden=q)};
_.l.updateCheckoutButton=function(){var F,q=(F=this.commerceCartCheckoutButtonEntity)==null?void 0:F.isDisabled;q!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",q);var t;F=(t=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:t.innertubeCommand;F!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",F);var u;t=(u=this.commerceCartCheckoutButtonEntity)==null?void 0:u.checkoutButtonText;t!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:t})};
Vt.prototype.entityChanged=Vt.prototype.entityChanged;_.C([_.D(_.s9),_.V("design:type",Object)],Vt.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Vt.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Vt.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Vt.prototype,"fullWidth",void 0);_.C([_.O(),_.V("design:type",Object)],Vt.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Vt.prototype,"compact",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Vt.prototype,"hidden",void 0);
_.C([_.O({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:j7C}),_.V("design:type",Object)],Vt.prototype,"commerceCartCheckoutButtonEntity",void 0);_.C([_.za("commerceCartCheckoutButtonEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vt.prototype,"entityChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Vt);
_.b(Vt,"ytd-commerce-cart-checkout-button-renderer",function(){if(Q1v!==void 0)return Q1v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Q1v=F},{mode:2});var D9v;_.WDj={};
_.WDj.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",_.kM(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.kM(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(F){!this.tappableItemBehaviorTapEnabled||F.keyCode!==13&&F.keyCode!==32||F.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var F=this.data.onTap;F.ypcGetCartEndpoint?(_.RD(this.hostElement,[F]),this.tappableItemBehaviorTapEnabled=!1):F.ypcOffersEndpoint?_.RD(this.hostElement,[F]):_.rY(this.hostElement,[F],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(F){this.tappableItemBehaviorTapEnabled=!!F},
tappableItemBehaviorOnTapEnabledChanged_:function(){var F=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(F.setAttribute("tabIndex",0),F.setAttribute("role","button")):(F.removeAttribute("tabIndex"),F.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(F){F.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var OXO;var POe;var UA=function(){return _.x.apply(this,arguments)||this};
_.M(UA,_.x);UA.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.$m("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.$m("sharingToggleButtonAndDefaultButton")}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],UA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],UA.prototype,"data",void 0);_.C([_.Vu({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],UA);
_.b(UA,"yt-card-item-actions-renderer",function(){if(POe===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;OXO===void 0&&(OXO=document.createElement("template"));var u=OXO;t.call(q,u.content.cloneNode(!0),F.content.firstChild);POe=F}F=POe;return F},{mode:2});var x9z;var AwC;var v8f;var I7O;var HXO;var m9J;var SU=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return F};
_.M(SU,_.x);SU.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
SU.prototype.handleDarkModeToggledAction_=function(F){this.isDarkTheme_=F};
SU.prototype.computeThemeImage_=function(F,q){if(!F||!F.imageLight)return!1;this.isCircular_=F.isCircular;F.imageWidth&&(this.hostElement.style.width=F.imageWidth+"px");F.imageHeight&&(this.hostElement.style.height=F.imageHeight+"px");F.borderWidth&&(this.image.style.borderWidth=F.borderWidth+"px",this.image.style.borderStyle="solid");F.borderColor&&(this.image.style.borderColor=_.KG(F.borderColor));return q&&F.imageDark?F.imageDark:F.imageLight};
SU.prototype.computeThemeIcon_=function(F){var q,t;if(!(F==null?0:(q=F.themedIcon)==null?0:(t=q.icon)==null?0:t.iconType))return!1;this.icon.style.color=HH[F.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(F.imageWidth||18)+"px";this.icon.style.height=(F.imageHeight||18)+"px";return _.Ek(F.themedIcon.icon.iconType)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(wmx.YtCardItemBoxBehavior),_.V("design:type",Object)],SU.prototype,"ytCardItemBoxBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],SU.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],SU.prototype,"data",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],SU.prototype,"fit",void 0);_.C([_.O(),_.V("design:type",Boolean)],SU.prototype,"isDarkTheme_",void 0);_.C([_.O({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.V("design:type",Object)],SU.prototype,"themeImage_",void 0);_.C([_.O({computed:"computeThemeIcon_(data)"}),_.V("design:type",Object)],SU.prototype,"themeIcon_",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Object)],SU.prototype,"isCircular_",void 0);
_.C([_.Ms("#image"),_.V("design:type",Object)],SU.prototype,"image",void 0);_.C([_.Ms("#icon"),_.V("design:type",Object)],SU.prototype,"icon",void 0);_.C([_.Vu({is:"yt-themed-image-renderer",disableElementRegistration:!0})],SU);
_.b(SU,"yt-themed-image-renderer",function(){if(m9J===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;HXO===void 0&&(HXO=document.createElement("template"));var u=HXO;t.call(q,u.content.cloneNode(!0),F.content.firstChild);m9J=F}F=m9J;return F},{mode:2});var h_=function(){return _.x.apply(this,arguments)||this};
_.M(h_,_.x);h_.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"}}}}};
h_.prototype.computeImagePlacement_=function(F){return F||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],h_.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],h_.prototype,"data",void 0);_.C([_.O({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.V("design:type",String)],h_.prototype,"imagePlacement",void 0);
_.C([_.Vu({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],h_);
_.b(h_,"yt-card-item-text-with-image-renderer",function(){if(I7O===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;v8f===void 0&&(v8f=document.createElement("template"));var u=v8f;t.call(q,u.content.cloneNode(!0),F.content.firstChild);I7O=F}F=I7O;return F},{mode:2});var Kv=function(){return _.x.apply(this,arguments)||this};
_.M(Kv,_.x);Kv.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"}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Kv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Kv.prototype,"data",void 0);_.C([_.Vu({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Kv);
_.b(Kv,"yt-card-item-error-renderer",function(){if(AwC===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;x9z===void 0&&(x9z=document.createElement("template"));var u=x9z;t.call(q,u.content.cloneNode(!0),F.content.firstChild);AwC=F}F=AwC;return F},{mode:2});var $9z;var bXe;_.mo("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var BH=function(){return _.x.apply(this,arguments)||this};
_.M(BH,_.x);_.l=BH.prototype;
_.l.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"}}}}};
_.l.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.l.backgroundColorChanged_=function(){var F,q=(F=this.data)==null?void 0:F.backgroundColor;F=HH[q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ep(this.hostElement).querySelector("#main-content").style.backgroundColor=F};
_.l.headerPromoBackgroundColorChanged_=function(){var F,q=(F=this.data)==null?void 0:F.headerPromoBackgroundColor;F=HH[q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ep(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=F};
_.l.errorRendererVisibilityChanged_=function(){var F=this.isExpanded_,q;this.isErrorRendererVisible_=!((q=this.data)==null||!q.errorRenderer)&&!F};
_.l.onYtToggleButton_=function(F,q){this.isExpanded_=q.toggled};
BH.prototype.onYtToggleButton_=BH.prototype.onYtToggleButton_;BH.prototype.errorRendererVisibilityChanged_=BH.prototype.errorRendererVisibilityChanged_;BH.prototype.headerPromoBackgroundColorChanged_=BH.prototype.headerPromoBackgroundColorChanged_;BH.prototype.backgroundColorChanged_=BH.prototype.backgroundColorChanged_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],BH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(wmx.YtCardItemBoxBehavior),_.V("design:type",Object)],BH.prototype,"ytCardItemBoxBehavior",void 0);_.C([_.D(_.WDj.YtTappableItemBehavior),_.V("design:type",Object)],BH.prototype,"ytTappableItemBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],BH.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],BH.prototype,"isExpanded_",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],BH.prototype,"isErrorRendererVisible_",void 0);_.C([_.za("data.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BH.prototype,"backgroundColorChanged_",null);_.C([_.za("data.headerPromoBackgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BH.prototype,"headerPromoBackgroundColorChanged_",null);
_.C([_.za("data.errorRenderer","isExpanded_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BH.prototype,"errorRendererVisibilityChanged_",null);_.C([_.EB("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Object]),_.V("design:returntype")],BH.prototype,"onYtToggleButton_",null);_.C([_.Vu({is:"yt-card-item-renderer",disableElementRegistration:!0})],BH);
_.b(BH,"yt-card-item-renderer",function(){if(bXe===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;$9z===void 0&&($9z=document.createElement("template"));var u=$9z;t.call(q,u.content.cloneNode(!0),F.content.firstChild);bXe=F}F=bXe;return F},{mode:2});_.mo("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Lv=function(){var F=_.x.apply(this,arguments)||this;F.hidden=!1;return F};
_.M(Lv,_.x);_.l=Lv.prototype;_.l.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.l.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.l.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var F,q=(F=this.commerceCartHeaderEntity)==null?void 0:F.isHidden;q!==void 0&&(this.hidden=q)}};
_.l.updateTitle=function(){var F=this.commerceCartHeaderEntity.isDisabled,q,t,u=(t=_.n((q=this.data)==null?void 0:q.item,p8v))==null?void 0:t.headingRenderer;u&&(q=Ai(u,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+q+".0.cardItemTextRenderer.textColor",F?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.l.updateSummaryText=function(){var F=this.commerceCartHeaderEntity;if(this.compact){var q,t,u=(t=_.n((q=this.data)==null?void 0:q.item,p8v))==null?void 0:t.headingRenderer;u&&(q=Ai(u,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+q+".1.cardItemTextRenderer.text",F.shortHeaderSummaryText?vZ(F.shortHeaderSummaryText):F.headerSummaryText?vZ(F.headerSummaryText):""))}else{var J;if(q=(J=_.n((u=this.data)==null?void 0:u.item,p8v))==null?void 0:J.additionalInfoRenderer)q=Ai(q,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+q+".text",F.headerSummaryText?vZ(F.headerSummaryText):"")}};
_.l.updateCheckoutButton=function(){var F=this.commerceCartHeaderEntity,q,t,u=(t=_.n((q=this.data)==null?void 0:q.item,p8v))==null?void 0:t.additionalInfoRenderer;q=Ai(u,"buttonRenderer");var J;t=(J=this.commerceCartHeaderEntity)==null?void 0:J.isButtonDisabled;var g;J=(g=this.commerceCartHeaderEntity)==null?void 0:g.isButtonHidden;t!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+q+".buttonRenderer.isDisabled",t);J!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
J);var Y;F=(Y=F.checkoutButtonCommand)==null?void 0:Y.innertubeCommand;F!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+q+".buttonRenderer.command",F)};
Lv.prototype.entityChanged=Lv.prototype.entityChanged;_.C([_.D(_.s9),_.V("design:type",Object)],Lv.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Lv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Lv.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Lv.prototype,"compact",void 0);_.C([_.O({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(F,q){return _.iC(F.entities,"commerceCartHeaderEntity",q)}}),
_.V("design:type",Object)],Lv.prototype,"commerceCartHeaderEntity",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Lv.prototype,"hidden",void 0);_.C([_.za("commerceCartHeaderEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lv.prototype,"entityChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Lv);
_.b(Lv,"ytd-commerce-cart-header-renderer",function(){if(D9v!==void 0)return D9v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return D9v=F},{mode:1});var ywr;var COz=_.ON(function(F,q){var t;return(t=F.onChangeCallback)==null?void 0:t.call(F,q)},1E3),d9e=_.ld(function(F){var q=F.data;
var t=F.iconMinus;F=F.iconPlus;var u=function(){return!!q().disabled},J=_.X(_.N3(0,void 0,"ft01me")),g=J.next().value,Y=J.next().value;
J={};J=_.Ec("yt-spec-quantity-incrementer-shape__icon",(J["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return u()||g()===(q().onRemoveCommand?0:1)},J));
var Q={};Q=_.Ec("yt-spec-quantity-incrementer-shape__icon",(Q["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return g()>=q().maxValue||u()},Q));
var e={};e=_.Ec("yt-spec-quantity-incrementer-shape__text",(e["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return g()>q().maxValue},e["yt-spec-quantity-incrementer-shape__text--text-disabled"]=u,e));
var r=_.zq(function(){if(g()===1){var w,k;(k=(w=q()).onRemoveCommand)==null||k.call(w)}w=g()>q().maxValue?q().maxValue:g()-1;Y(w);COz(q(),w);return!1}),N=_.zq(function(){if(g()===q().maxValue)return!1;
var w=g()+1;Y(w);COz(q(),w);return!1});
_.AN(function(){Y(q().value)});
return _.Z("quantity-incrementer-shape",null,_.Z("div",{class:"yt-spec-quantity-incrementer-shape"},_.Z("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return g()===(q().onRemoveCommand?0:1)||u()},
"aria-label":function(){return g()!==1?q().minusLabel:q().minimumReachedLabel},
"on:click":r},_.Z(_.WP,{model:{circular:!0}}),_.Z("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.Z("div",{class:J},t()))),_.Z("div",{class:e},g),_.Z("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return g()>=q().maxValue||u()},
"aria-label":function(){return g()!==q().maxValue?q().plusLabel:q().maximumReachedLabel},
"on:click":N},_.Z(_.WP,{model:{circular:!0}}),_.Z("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.Z("div",{class:Q},F())))))},"oe");_.ei(_.ld(function(F){function q(){t().onRemoveCommand&&_.L9(t().onRemoveCommand)}
var t=F.data;var u=_.nH(Ico,function(){return t().quantityIncrementerEntityKey});
return _.Z("yt-quantity-incrementer-view-model",null,_.Z(d9e,{data:function(){var J=t(),g;var Y=u()?!((g=u())==null||!g.disabled):!1;var Q;g=u()?(Q=u())==null?void 0:Q.quantity:t().quantity;return HDq(J,Y,q,g)},
iconMinus:function(){return _.Z(_.Tq,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.Z(_.Tq,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"pe"),"yt-quantity-incrementer-view-model",{props:{data:_.NH}});var fv=function(){var F=_.x.apply(this,arguments)||this;F.compact=!1;F.hasQuantityIncrementer=!1;return F};
_.M(fv,_.x);fv.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"}}}};
fv.prototype.computeHasQuantityIncrementer=function(){var F;return!!_.n((F=this.data)==null?void 0:F.picker,RsJ)};
fv.prototype.onLabelClick=function(){var F;(F=this.dropdownEl)==null||F.open()};
_.C([_.Ms("ytd-dropdown-renderer"),_.V("design:type",Object)],fv.prototype,"dropdownEl",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],fv.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],fv.prototype,"quantityColor",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],fv.prototype,"compact",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.V("design:type",Object)],fv.prototype,"hasQuantityIncrementer",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],fv);
_.b(fv,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(ywr!==void 0)return ywr;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ywr=F},{mode:1});var VXO;var U9r;var aF=function(){return _.x.apply(this,arguments)||this};
_.M(aF,_.x);aF.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
aF.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
aF.prototype.updateTitle=function(){var F=this.disabledCartItemEntity;F.disableActionName&&this.set("data.title",vZ(F.disableActionName))};
aF.prototype.updateButton=function(){var F,q=(F=this.disabledCartItemEntity.undoCommand)==null?void 0:F.innertubeCommand;q!==void 0&&(this.set("data.actionButton.buttonRenderer.command",q),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
aF.prototype.entityChanged=aF.prototype.entityChanged;_.C([_.D(_.s9),_.V("design:type",Object)],aF.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(F,q){return _.iC(F.entities,"disabledCartItemEntity",q)}}),
_.V("design:type",Object)],aF.prototype,"disabledCartItemEntity",void 0);_.C([_.O(),_.V("design:type",Object)],aF.prototype,"data",void 0);_.C([_.za("disabledCartItemEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aF.prototype,"entityChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],aF);
_.b(aF,"ytd-disabled-cart-item-renderer",function(){if(U9r!==void 0)return U9r;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return U9r=F},{mode:1});_.mo("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var jU=function(){var F=_.x.apply(this,arguments)||this;F.compact=!1;F.hidden=!1;F.errorHidden=!1;F.noOnTap=!1;return F};
_.M(jU,_.x);_.l=jU.prototype;
_.l.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"}}}};
_.l.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.l.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var F=this.firstButtonElement;F.alignByText=!0;F.iconAlignByText=!0}};
_.l.computeNoOnTap=function(F){return!F};
_.l.updateQuantityColor=function(){if(this.pickerElement){var F,q=(F=this.commerceCartItemEntity)==null?void 0:F.quantityColor;this.pickerElement.quantityColor=q}};
_.l.updateTotalPriceColor=function(){var F,q=(F=this.commerceCartItemEntity)==null?void 0:F.totalPriceColor;if(q){var t;F=_.n((t=this.data)==null?void 0:t.quantityPicker,esz);if(t=_.n(F==null?void 0:F.price,QAC))t.textColor=q}};
_.l.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var F,q=(F=this.commerceCartItemEntity)==null?void 0:F.isHidden;q!==void 0&&(this.hidden=q)}};
_.l.updateHideErrorMessage=function(){var F,q=(F=this.commerceCartItemEntity)==null?void 0:F.hideErrorMessage;q!==void 0&&(this.errorHidden=q)};
_.l.updateQuantity=function(){var F=this,q,t=(q=this.commerceCartItemEntity)==null?void 0:q.quantity,u;q=(u=this.commerceCartItemEntity)==null?void 0:u.totalPrice;if(t){this.updateTotalPriceColor();this.updateQuantityColor();var J;u=_.n((J=this.data)==null?void 0:J.quantityPicker,esz);if(J=_.n(u==null?void 0:u.price,QAC))J.text=q?{simpleText:q.content}:void 0;if(q=_.n(u==null?void 0:u.picker,RsJ))q.quantity=t;var g;if(J=(g=_.n(u==null?void 0:u.picker,ZCv))==null?void 0:g.entries){g=!1;q=void 0;J=
_.X(J);for(u=J.next();!u.done;u=J.next())u=u.value,u.dropdownItemRenderer&&(q||(q=u.dropdownItemRenderer),u.dropdownItemRenderer.isSelected=!1,t===u.dropdownItemRenderer.int32Value&&(g=!0,u.dropdownItemRenderer.isSelected=!0));!g&&q&&(q.isSelected=!0)}_.tJ(this,function(){var Y;F.set("data.quantityPicker",_.m7.unsafeClone((Y=F.data)==null?void 0:Y.quantityPicker))})}};
jU.prototype.onYtRendererstamperFinished=jU.prototype.onYtRendererstamperFinished;jU.prototype.entityChanged=jU.prototype.entityChanged;_.C([_.O(),_.V("design:type",Object)],jU.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jU.prototype,"compact",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],jU.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],jU.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(F,q){return _.iC(F.entities,"commerceCartItemEntity",q)}}),
_.V("design:type",Object)],jU.prototype,"commerceCartItemEntity",void 0);_.C([_.O(),_.V("design:type",Object)],jU.prototype,"quantityPicker",void 0);_.C([_.O(),_.V("design:type",Object)],jU.prototype,"compactQuantityPicker",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jU.prototype,"hidden",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jU.prototype,"errorHidden",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.V("design:type",Object)],jU.prototype,"noOnTap",void 0);_.C([_.Ms("ytd-commerce-cart-item-quantity-picker-renderer"),_.V("design:type",Object)],jU.prototype,"pickerElement",void 0);_.C([_.Ms("yt-button-renderer"),_.V("design:type",Element)],jU.prototype,"firstButtonElement",void 0);
_.C([_.za("commerceCartItemEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jU.prototype,"entityChanged",null);_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jU.prototype,"onYtRendererstamperFinished",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],jU);
_.b(jU,"ytd-commerce-cart-item-renderer",function(){if(VXO!==void 0)return VXO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return VXO=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var SjC;var hqL;var cH=function(){return _.x.apply(this,arguments)||this};
_.M(cH,_.x);cH.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}}}}}};
cH.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
cH.prototype.updateCheckoutLineItems=function(){var F,q=(F=this.commerceCartCheckoutButtonEntity)==null?void 0:F.checkoutLineItems;q&&(F=q.map(function(t){a:{var u=t.price,J=t.description;switch(t.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":t={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:vZ(J),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:vZ(u),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:t={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:vZ(J),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:vZ(u),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 t}),this.set("data.summaryLineItems",F))};
cH.prototype.updateIsHidden=function(){var F,q=(F=this.commerceCartCheckoutButtonEntity)==null?void 0:F.isHidden;q!==void 0&&(this.hostElement.hidden=q)};
cH.prototype.entityChanged=cH.prototype.entityChanged;_.C([_.D(_.s9),_.V("design:type",Object)],cH.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],cH.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],cH.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],cH.prototype,"data",void 0);_.C([_.O({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:j7C}),_.V("design:type",Object)],cH.prototype,"commerceCartCheckoutButtonEntity",void 0);_.C([_.za("commerceCartCheckoutButtonEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cH.prototype,"entityChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],cH);
_.b(cH,"ytd-commerce-cart-summary-renderer",function(){if(hqL!==void 0)return hqL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return hqL=F},{mode:1});var KDw={};KDw.InjectBehavior=[E1C.InjectBehavior];var BVC;var LDf;var Fn=function(){return _.x.apply(this,arguments)||this};
_.M(Fn,_.x);
Fn.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:_.$m("menuRenderer")}}};
Fn.prototype.onMenuTap=function(F){F.stopPropagation()};
_.JJ.Object.defineProperties(Fn.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var F,q;return!(((F=this.data)==null||!F.sectionHeading)&&((q=this.data)==null?void 0:q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var F,q;return!(((F=this.data)==null||!F.image)&&((q=this.data)==null?void 0:q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var F,q;return!(((F=this.data)==null||!F.menu)&&((q=this.data)==null?void 0:q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.WDj.YtTappableItemBehavior),_.V("design:type",Object)],Fn.prototype,"ytTappableItemBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Fn.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data.accessibilityData"),_.V("design:type",String),_.V("design:paramtypes",[])],Fn.prototype,"ariaLabel",null);_.C([_.W("data.sectionHeading","data.layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Fn.prototype,"sectionHeadingVisible",null);_.C([_.W("data.image","data.layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Fn.prototype,"imageVisible",null);
_.C([_.W("data.menu","data.layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Fn.prototype,"menuVisible",null);_.C([_.Vu({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Fn);
_.b(Fn,"yt-activity-item-renderer",function(){if(LDf===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;BVC===void 0&&(BVC=document.createElement("template"));var u=BVC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);LDf=F}F=LDf;return F},{mode:2});var f7J;var a7e;var j1E;var cwf;var qr=function(){return _.x.apply(this,arguments)||this};
_.M(qr,_.x);
qr.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"}}}}};
qr.prototype.backgroundColorChanged_=function(){var F,q=(F=this.data)==null?void 0:F.backgroundColor;this.hostElement.style.backgroundColor=HH[q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
qr.prototype.backgroundColorChanged_=qr.prototype.backgroundColorChanged_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],qr.prototype,"data",void 0);
_.C([_.za("data.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qr.prototype,"backgroundColorChanged_",null);_.C([_.Vu({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],qr);
_.b(qr,"yt-offer-item-upsell-renderer",function(){if(cwf===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;j1E===void 0&&(j1E=document.createElement("template"));var u=j1E;t.call(q,u.content.cloneNode(!0),F.content.firstChild);cwf=F}F=cwf;return F},{mode:2});_.mo("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var tq=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};F.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return F};
_.M(tq,_.x);_.l=tq.prototype;
_.l.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:_.$m("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.l.computeContainerStyle_=function(F){return F};
_.l.computeContainerIsHidden_=function(F){return F&&!!F.isHidden};
_.l.computeShowSpinner_=function(F,q){return F&&q==="in-progress"};
_.l.computeShowMoreContentsButton_=function(F,q,t,u,J){return!(!(u&&u.length||J&&J.length&&t)||!F||q)};
_.l.onToggleButton_=function(F){var q=this;F.stopPropagation();this.isExpanded_=F.detail&&F.detail.toggled;var t,u;this.isExpanded_&&!this.data.continuationSection.length&&((t=this.data)==null?0:(u=t.continuation)==null?0:u.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Q0(this.hostElement,"yt-load-next-continuation",function(J){return q.getContinuationUrl_(q.data.continuation.onClickContinuationData,J)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.RD(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.l.onShowMoreContentsButtonClicked_=function(F){var q=this;F.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Q0(this.hostElement,"yt-load-next-continuation",function(t){return q.getContinuationUrl_(q.data.continuations[0].nextContinuationData,t)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.RD(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.l.getContinuationUrl_=function(F,q){var t=F.continuation;F=F.clickTrackingParams;var u=_.yb();F&&u&&_.co(u,_.Av(F));return _.j6(q,{continuation:t})};
_.l.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var F=_.ep(this.hostElement).querySelector("#continuation-section");F&&(F=F.querySelectorAll("ytmusic-item-section-renderer"))&&F.forEach(function(q){return q.classList.add("memberships-and-purchases")})};
_.l.dataChanged_=function(){var F;this.isExpanded_=!((F=this.data)==null||!F.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.l.updateCardOnClickCommand_=function(F){F=_.n(F,tDd);var q,t;this.data&&((q=this.data)==null?0:q.targetId)&&F&&F.targetId===((t=this.data)==null?void 0:t.targetId)&&F.onClickCommand&&(this.data.onClickCommand=F.onClickCommand,this.isOnClickCommand_=!0)};
_.l.backgroundColorChanged_=function(){var F,q=(F=this.data)==null?void 0:F.backgroundColor;this.hostElement.style.backgroundColor=HH[q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
tq.prototype.backgroundColorChanged_=tq.prototype.backgroundColorChanged_;tq.prototype.dataChanged_=tq.prototype.dataChanged_;tq.prototype.nextContinuationDataUpdated_=tq.prototype.nextContinuationDataUpdated_;tq.prototype.onToggleButton_=tq.prototype.onToggleButton_;_.C([_.D(_.Qd),_.V("design:type",Object)],tq.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],tq.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.eH.YtNextContinuationBehavior),_.V("design:type",Object)],tq.prototype,"ytNextContinuationBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.C([_.D(KDw.InjectBehavior),_.V("design:type",Object)],tq.prototype,"injectBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],tq.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],tq.prototype,"compact",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],tq.prototype,"isExpanded_",void 0);_.C([_.O({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.V("design:type",String)],tq.prototype,"containerStyle_",void 0);_.C([_.O({value:"not-started"}),_.V("design:type",String)],tq.prototype,"continuationStatus_",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.V("design:type",Boolean)],tq.prototype,"showSpinner_",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],tq.prototype,"isOnClickCommand_",void 0);_.C([_.O({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.V("design:type",Boolean)],tq.prototype,"showMoreContentsButton_",void 0);
_.C([_.O({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(F,q){return!q||F.entities?null:_.iC(F.entities,"cardItemContainerEntity",q)}}),
_.V("design:type",Object)],tq.prototype,"cardItemContainerEntity_",void 0);_.C([_.EB("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],tq.prototype,"onToggleButton_",null);_.C([_.EB("yt-next-continuation-data-updated"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tq.prototype,"nextContinuationDataUpdated_",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tq.prototype,"dataChanged_",null);_.C([_.za("data.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tq.prototype,"backgroundColorChanged_",null);_.C([_.Vu({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],tq);
_.b(tq,"yt-card-item-container-renderer",function(){if(a7e===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;f7J===void 0&&(f7J=document.createElement("template"));var u=f7J;t.call(q,u.content.cloneNode(!0),F.content.firstChild);a7e=F}F=a7e;return F},{mode:2});var u0=function(){return _.x.apply(this,arguments)||this};
_.M(u0,_.x);u0.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"}}}};
u0.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
u0.prototype.computeLoadingHidden=function(){var F;return!((F=this.commerceCartPageStateEntity)==null?0:F.cartActionInProgress)};
u0.prototype.updateNotification=function(){var F,q=(F=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:F.summaryText;q&&this.set("data.cartNotification",vZ(q))};
u0.prototype.notificationEntityChanged=u0.prototype.notificationEntityChanged;_.C([_.D(_.s9),_.V("design:type",Object)],u0.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],u0.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],u0.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],u0.prototype,"data",void 0);_.C([_.O({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(F,q){return _.iC(F.entities,"commerceCartExpandableNotificationEntity",q)}}),
_.V("design:type",Object)],u0.prototype,"commerceCartExpandableNotificationEntity",void 0);_.C([_.O({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(F,q){return _.iC(F.entities,"commerceCartPageStateEntity",q)}}),
_.V("design:type",Object)],u0.prototype,"commerceCartPageStateEntity",void 0);_.C([_.Ms("#spinner"),_.V("design:type",HTMLElement)],u0.prototype,"spinner",void 0);_.C([_.za("commerceCartExpandableNotificationEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],u0.prototype,"notificationEntityChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],u0);
_.b(u0,"ytd-commerce-cart-renderer",function(){if(SjC!==void 0)return SjC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return SjC=F},{mode:1});var FPf;var Jq=function(){var F=_.x.apply(this,arguments)||this;F.bigImage=!1;return F};
_.M(Jq,_.x);_.JJ.Object.defineProperties(Jq.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.placeholderImageUrl}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Jq.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Jq.prototype,"bigImage",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Jq.prototype,"placeholderImageUrl",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Jq);
_.b(Jq,"ytd-empty-product-shelf-renderer",function(){if(FPf!==void 0)return FPf;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return FPf=F},{mode:1});var qxL;var s0=function(){var F=_.x.apply(this,arguments)||this;F.itemStyle="link-item";F.watchMetadataRefresh=!1;F.skinnyMode=!1;F.metaPanel=!1;F.inStructuredDescription=!1;F.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};F.updateOnResizeDebouncer=null;return F};
_.M(s0,_.x);_.l=s0.prototype;_.l.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.l.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"}}}}};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.l.attachVEs=function(F){F.trackingParams&&_.DP().graftServerVe(F.trackingParams)};
_.l.handleUpdateMerchShelfAction=function(F){var q=this,t=_.n(F.updateMerchandiseShelfAction.merchandiseShelf,_.vxJ);t&&(t.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){q.attachVEs(t);q.data=t},Number(t.renderDelayMs))):(this.attachVEs(t),this.data=t))};
_.l.updateOnResize=function(){if(this.JSC$16834_scrollContainer!==void 0&&this.JSC$16834_scrollContainer.clientWidth!==0&&this.items!==void 0){var F=this.JSC$16834_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-F));this.ytdHorizontalListBehavior.reposition_();var q;switch((q=this.data)==null?void 0:q.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var t,
u;((t=this.data)==null?void 0:(u=t.items)==null?void 0:u.length)===1?this.itemStyle="cta-item":this.itemStyle=F>=740?"large-item":"small-item"}}};
_.l.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Eu(this.updateOnResizeDebouncer,_.XH.after(100),this.updateOnResize)};
s0.prototype.debouncedUpdateOnResize=s0.prototype.debouncedUpdateOnResize;s0.prototype.dataChanged=s0.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],s0.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.We.YtdHorizontalListBehavior),_.V("design:type",Object)],s0.prototype,"ytdHorizontalListBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],s0.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],s0.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],s0.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],s0.prototype,"itemStyle",void 0);_.C([_.O({value:6}),_.V("design:type",Number)],s0.prototype,"initialCount",void 0);
_.C([_.O({value:"data.items"}),_.V("design:type",String)],s0.prototype,"itemsPath",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],s0.prototype,"watchMetadataRefresh",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],s0.prototype,"skinnyMode",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],s0.prototype,"metaPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],s0.prototype,"inStructuredDescription",void 0);
_.C([_.Ms("#items"),_.V("design:type",HTMLDivElement)],s0.prototype,"items",void 0);_.C([_.Ms("#scroll-container"),_.V("design:type",HTMLDivElement)],s0.prototype,"JSC$16834_scrollContainer",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s0.prototype,"dataChanged",null);_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s0.prototype,"debouncedUpdateOnResize",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],s0);
_.b(s0,"ytd-merch-shelf-renderer",function(){if(qxL!==void 0)return qxL;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return qxL=F},{mode:2});var t3j;var g9=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return F};
_.M(g9,_.x);_.l=g9.prototype;
_.l.addBackstagePostAction=function(F){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(F=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",F))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:F}):this.set("data.contents",[{backstagePostThreadRenderer:F}]))};
_.l.addBackstageCommentAction=function(F){var q=this.get("addBackstageCommentAction.parentId",F);F=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",F);if(q&&F){q=this.postIdToIndices(q);for(var t=0;t<q.length;t++){var u=q[t];if(u<0)break;u="data.contents."+u+".backstagePostThreadRenderer.comments";this.get(u)&&(this.get(u+".backstageCommentsRenderer.contents")&&this.push(u+".backstageCommentsRenderer.contents",{commentThreadRenderer:F}),this.get(u+".backstageCommentsRenderer.teaserContents")?
this.push(u+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:F}):this.set(u+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:F}]))}}};
_.l.addBackstageReplyAction=function(F){var q=this.get("addBackstageReplyAction.parentId",F);F=this.get("addBackstageReplyAction.renderer.commentRenderer",F);q&&F&&this.setCreatorReply(q,F)};
_.l.banAuthorAction=function(F){var q=this.get("banAuthorAction.commentId",F);q&&(F=this.get("banAuthorAction.parentCommentId",F)||this.getParentPostId(q),this.removeFromStream(q,F))};
_.l.hideReportedCommentAction=function(F){var q=this.get("hideReportedCommentAction.commentId",F);q&&((F=this.get("hideReportedCommentAction.parentCommentId",F))||(F=this.getParentPostId(q)),this.removeFromStream(q,F))};
_.l.replaceBackstageCommentAction=function(F){var q=this.get("replaceBackstageCommentAction.commentId",F),t=this.get("replaceBackstageCommentAction.parentId",F);F=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",F);if(q&&t&&F){t=this.postIdToIndices(t);for(var u=0;u<t.length;u++){var J=t[u];if(J<0)break;var g=this.commentIdToIndex(q,J,!1);if(g>=0){var Y=this.get("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g+".commentThreadRenderer.replies.commentRepliesRenderer");
Y&&(F.replies={commentRepliesRenderer:Y});this.splice("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",g,1,{commentThreadRenderer:F})}g=this.commentIdToIndex(q,J,!0);if(g>=0){if(Y=this.get("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(g+".commentThreadRenderer.replies.commentRepliesRenderer")))F.replies={commentRepliesRenderer:Y};this.splice("data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
g,1,{commentThreadRenderer:F})}}}};
_.l.replaceBackstagePostAction=function(F){var q=this.get("replaceBackstagePostAction.itemId",F);if(q){q=this.postIdToIndices(q);for(var t=0;t<q.length;t++){var u=q[t];if(u<0)break;var J=this.getPostRendererType(u),g=this.get("replaceBackstagePostAction.renderer."+J,F);if(!g&&J!=="sharedPostRenderer")break;var Y=!1;g||(Y=!0,g=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",F));if(!g)break;var Q={};Y?(_.yj(Q,tuw,g),this.set("data.contents."+u+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
Q)):(_.yj(Q,new _.Xk(J),g),this.set("data.contents."+u+".backstagePostThreadRenderer.post",Q))}}};
_.l.replaceBackstageReplyAction=function(F){var q=this.get("replaceBackstageReplyAction.replyId",F),t=this.get("replaceBackstageReplyAction.parentId",F);F=this.get("replaceBackstageReplyAction.renderer.commentRenderer",F);q&&F&&t&&this.setCreatorReply(t,F)};
_.l.removeCommentAction=function(F){var q=this.get("removeCommentAction.commentId",F);if(q){var t=this.get("removeCommentAction.parentCommentId",F);t&&this.get("removeCommentAction.isCreatorReply",F)?this.setCreatorReply(t,void 0):(t||(t=this.getParentPostId(q)),this.removeFromStream(q,t))}};
_.l.setCreatorReply=function(F,q){var t=this.getParentPostId(F);if(t){t=this.postIdToIndices(t);for(var u=0;u<t.length;u++){var J=t[u];if(J<0)break;var g=this.commentIdToIndex(F,J,!1);if(g>=0){var Y="data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g;g=Y+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";Y+=".commentThreadRenderer.replies";q==void 0?(this.set(Y,{}),this.set(g,!1)):(this.set(Y,{commentRepliesRenderer:{teaserContents:[{commentRenderer:q}]}}),
this.set(Y+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(g,!0))}g=this.commentIdToIndex(F,J,!0);g>=0&&(g="data.contents."+J+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+g,J=g+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",g+=".commentThreadRenderer.replies",q==void 0?(this.set(g,{}),this.set(J,!1)):(this.set(g,{commentRepliesRenderer:{teaserContents:[{commentRenderer:q}]}}),this.set(J,!0)))}}};
_.l.removeFromStream=function(F,q){if(q){q=this.postIdToIndices(q);for(var t=0;t<q.length;t++){var u=q[t];if(u<0)break;var J=this.commentIdToIndex(F,u,!1);J>=0&&this.splice("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",J,1);J=this.commentIdToIndex(F,u,!0);J>=0&&this.splice("data.contents."+u+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",J,1);u="data.contents."+u+".backstagePostThreadRenderer.post.backstagePostRenderer";
J=u+".backstageAttachment.pollRenderer.votedCommentId";this.get(J)===F&&(this.set(J,null),this.set(u+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(q=this.postIdToIndices(F).reverse(),t=0;t<q.length;t++){u=q[t];if(u<0)break;J=this.getPostRendererType(u);var g=this.get("backstagePostThreadRenderer.post."+J,this.data.contents[u]);g.postId===F?this.splice("data.contents",u,1):J==="sharedPostRenderer"&&this.set("data.contents."+u+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);g.scheduledPublishTimeSec&&_.ec(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.l.postIdToIndices=function(F){for(var q=[],t=0;t<this.data.contents.length;t++){var u=this.getPostRendererType(t);this.get("backstagePostThreadRenderer.post."+u+".postId",this.data.contents[t])===F&&q.push(t);if(u==="sharedPostRenderer"){var J=this.get("backstagePostThreadRenderer.post."+u+".originalPost.backstagePostRenderer.postId",this.data.contents[t]);u=this.get("backstagePostThreadRenderer.post."+u+".originalPost.postRenderer.postId",this.data.contents[t]);J!==F&&u!==F||q.push(t)}}return q};
_.l.commentIdToIndex=function(F,q,t){if(q<0)return-1;var u,J,g,Y,Q=_.n((u=this.data)==null?void 0:(J=u.contents)==null?void 0:(g=J[q])==null?void 0:(Y=g.backstagePostThreadRenderer)==null?void 0:Y.comments,FXO);return(q=t?Q==null?void 0:Q.teaserContents:Q==null?void 0:Q.contents)&&q.length?q.findIndex(function(e){return _.n(e,HQv).comment.commentRenderer.commentId===F}):-1};
_.l.getParentPostId=function(F){F=F.split(".");if(F[1])return F[0]};
_.l.getPostRendererType=function(F){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[F])?"sharedPostRenderer":"backstagePostRenderer"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],g9.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],g9.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-backstage-items"})],g9);
_.b(g9,"ytd-backstage-items",function(){if(t3j!==void 0)return t3j;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return t3j=
F},{mode:1});var uiz;var JjO={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},l0=function(){var F=_.x.apply(this,arguments)||this;F.disablePrescanVisibility=!0;F.canScheduleJobs=!0;F.engagementPanel=!1;F.hidePanelButton=!1;F.isWatchGrid=!1;F.hasShownSubscribersOnlyDisclaimer=!1;F.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return F};
_.M(l0,_.x);_.l=l0.prototype;_.l.created=function(){this.initCommentsCsi_();_.E("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.l.contentsChanged_=function(){var F;(F=this.data)!=null&&F.contents&&this.tickForCommentsTimer_("cml")};
_.l.headerChanged_=function(){var F;(F=this.data)!=null&&F.header&&this.tickForCommentsTimer_("cmhl")};
_.l.initCommentsCsi_=function(){_.bN("wn_comments");var F=_.yb();F&&_.mj({clientScreenNonce:F},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.l.createCommentAction_=function(F){F=_.m7.unsafeClone(F);var q,t;if(F=(q=_.n(F,GwC))==null?void 0:(t=q.contents)==null?void 0:t.commentThreadRenderer){var u,J,g,Y,Q,e;!this.isBackstage&&((u=this.data)==null?0:(J=u.header)==null?0:(g=J.commentsHeaderRenderer)==null?0:(Y=g.createRenderer)==null?0:(Q=Y.commentSimpleboxRenderer)==null?0:(e=Q.zeroStep)==null?0:e.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var r,
N,w;this.isBackstage&&_.n((r=this.data)==null?void 0:(N=r.header)==null?void 0:(w=N.commentsHeaderRenderer)==null?void 0:w.zeroStateMessage,uof)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(F)}};
_.l.doReplyInsert_=function(F,q,t,u){u?this.splice(F,u,0,q):this.push(F,q)};
_.l.getRepliesPath_=function(F){return"data.contents."+F+".commentThreadRenderer.replies"};
_.l.getRepliesContentsPath_=function(F,q){F=this.getRepliesPath_(F);return q?F+".commentRepliesRenderer.teaserContents":F+".commentRepliesRenderer.contents"};
_.l.showSubscribersOnlyDisclaimer_=function(F){(F=F.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(F=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(F))&&(_.ec(this.hostElement,"yt-open-popup-action",[F,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.l.createCommentReplyAction_=function(F){F=_.m7.unsafeClone(F);var q=_.n(F,Dzw);if(F=q==null?void 0:q.contents){var t=this.commentIdToIndex_(q==null?void 0:q.parentCommentId);if(!(t<0)){var u=this.getRepliesPath_(t);if(this.get(u)){q=q.replyToCommentId;u=this.getRepliesContentsPath_(t,!1);if(this.get(u)){var J=this.get(u).length,g=u+"."+(J-1)+".continuationItemRenderer";this.get(g+".button")?(g=this.replyIdToIndex_(q,t,!1),this.doReplyInsert_(u,F,g,J-1)):this.get(g)||(J=this.replyIdToIndex_(q,t,
!1),this.doReplyInsert_(u,F,J,null))}u=this.getRepliesContentsPath_(t,!0);this.get(u)?(t=this.replyIdToIndex_(q,t,!0),(!q||t>=0)&&this.doReplyInsert_(u,F,t,null)):this.set(u,[F])}else this.set(u,{commentRepliesRenderer:{teaserContents:[F]}})}}};
_.l.hideReportedCommentAction_=function(F){var q=_.n(F,BUx);if(F=q==null?void 0:q.commentId)(q=this.get("parentCommentId",q))||(q=this.getParentCommentId_(F)),this.remove_(F,q)};
_.l.getParentCommentId_=function(F){F=F.split(".");if(F[1])return F[0]};
_.l.removeCommentAction_=function(F){var q=_.n(F,Acf);if(F=q==null?void 0:q.commentId)q=(q==null?void 0:q.parentCommentId)||this.getParentCommentId_(F),this.remove_(F,q)};
_.l.pinCommentAction_=function(F){F=_.m7.unsafeClone(F);var q=_.n(F,xzx);q!=null&&q.commentId&&(F=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",F))&&(this.remove_(q.commentId),this.insert_(F,!0))};
_.l.unpinCommentAction_=function(F){F=_.m7.unsafeClone(F);F=_.n(F,vDw);if(F!=null&&F.commentId){var q,t,u=(q=F.actionResult)==null?void 0:(t=q.update)==null?void 0:t.commentThreadRenderer;u&&(this.remove_(F.commentId),this.insert_(u))}};
_.l.banAuthorAction_=function(F){var q=_.n(F,TUC);q!=null&&q.commentId&&(F=q.commentId,q=q.parentCommentId||this.getParentCommentId_(F),this.remove_(F,q))};
_.l.commentIdToIndex_=function(F){var q;return F&&(q=this.data)!=null&&q.contents?this.data.contents.findIndex(function(t){t=t.commentThreadRenderer;var u;return F===((t==null?void 0:t.commentViewModel)&&((u=_.n(t.commentViewModel,dzE))==null?void 0:u.commentId))}):-1};
_.l.insert_=function(F,q){q=q===void 0?!1:q;var t,u;if((t=this.data)==null?0:(u=t.contents)==null?0:u.some(function(g){return!!g.commentThreadRenderer}))for(t=0,u=this.data.contents.length;t<u;t++){var J=this.data.contents[t].commentThreadRenderer;
if(JjO[F.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=JjO[J.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){q&&JjO[F.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===JjO[J.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",t,1,{commentThreadRenderer:F}):this.splice("data.contents",t,0,{commentThreadRenderer:F});break}}else this.set("data.contents",[{commentThreadRenderer:F}])};
_.l.doReplyRemove_=function(F,q,t){F=this.replyIdToIndex_(F,q,t);F<0||(q=this.getRepliesContentsPath_(q,t),this.splice(q,F,1))};
_.l.remove_=function(F,q){q=this.commentIdToIndex_(q);q<0?(q=this.commentIdToIndex_(F),q<0||this.splice("data.contents",q,1)):_.E("web_delhi_comment_threads")||(this.doReplyRemove_(F,q,!1),this.doReplyRemove_(F,q,!0))};
_.l.replyIdToIndex_=function(F,q,t){if(q<0)return-1;q=this.getRepliesContentsPath_(q,t);q=this.get(q);if(!q||!q.length)return-1;t=0;for(var u=q.length;t<u;t++){var J=void 0,g=void 0;if(((J=q[t])==null?void 0:(g=J.commentViewModel)==null?void 0:g.commentId)===F)return t}return-1};
_.l.tickForCommentsTimer_=function(F){_.CJ(F,void 0,"wn_comments")};
_.l.reloadComments_=function(F){F=_.n(F,ycO);_.n(F==null?void 0:F.command,_.Si)&&_.RD(this.hostElement,[F==null?void 0:F.command])};
_.JJ.Object.defineProperties(l0.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return!!((F=this.data)==null?0:(q=F.header)==null?0:(t=q.commentsHeaderRenderer)==null?0:t.isBackstageContent)}}});
_.JJ.Object.defineProperties(l0,{template:{configurable:!0,enumerable:!0,get:function(){if(uiz===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);uiz=F}F=uiz;return F}}});
l0.prototype.showSubscribersOnlyDisclaimer_=l0.prototype.showSubscribersOnlyDisclaimer_;l0.prototype.headerChanged_=l0.prototype.headerChanged_;l0.prototype.contentsChanged_=l0.prototype.contentsChanged_;_.C([_.D(_.En),_.V("design:type",Object)],l0.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.n1y.YtHostElementBehavior),_.V("design:type",Object)],l0.prototype,"ytHostElementBehavior",void 0);
_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",Function)],l0.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],l0.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],l0.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data.header.commentsHeaderRenderer.isBackstageContent"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],l0.prototype,"isBackstage",null);_.C([_.O(),_.V("design:type",Object)],l0.prototype,"disablePrescanVisibility",void 0);_.C([_.O(),_.V("design:type",Object)],l0.prototype,"canScheduleJobs",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],l0.prototype,"engagementPanel",void 0);
_.C([_.O(),_.V("design:type",Object)],l0.prototype,"hidePanelButton",void 0);_.C([_.O(),_.V("design:type",Object)],l0.prototype,"isWatchGrid",void 0);_.C([_.O(),_.V("design:type",Object)],l0.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.C([_.za("data.contents"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l0.prototype,"contentsChanged_",null);
_.C([_.za("data.header"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l0.prototype,"headerChanged_",null);_.C([_.EB("yt-show-subscribers-only-disclaimer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],l0.prototype,"showSubscribersOnlyDisclaimer_",null);_.C([_.m({is:"ytd-comments"})],l0);var Xn=function(){return _.Ga.apply(this,arguments)||this};
_.M(Xn,_.Ga);_.l=Xn.prototype;_.l.bindIf=function(F,q,t){return F?q:t};
_.l.bindIfDefined=function(F,q){return F!==void 0?F:q};
_.l.booleanString=function(F){return(!!F).toString()};
_.l.equals=function(){for(var F=_.US.apply(0,arguments),q=F[0],t=1;t<F.length;t++)if(q!=F[t])return!1;return!0};
_.l.isGreaterThan=function(F,q){return F>q};
_.l.isLessThan=function(F,q){return F<q};
_.l.logicalAND=function(){for(var F=_.US.apply(0,arguments),q=!!F[0],t=1;t<F.length;t++)q=q&&!!F[t];return q};
_.l.logicalOR=function(){for(var F=_.US.apply(0,arguments),q=!!F[0],t=1;t<F.length;t++)q=q||!!F[t];return q};
_.l.toBool=function(F){return!!F};
Xn.prototype.toBool=Xn.prototype.toBool;Xn.prototype.logicalOR=Xn.prototype.logicalOR;Xn.prototype.logicalAND=Xn.prototype.logicalAND;Xn.prototype.isLessThan=Xn.prototype.isLessThan;Xn.prototype.isGreaterThan=Xn.prototype.isGreaterThan;Xn.prototype.equals=Xn.prototype.equals;Xn.prototype.booleanString=Xn.prototype.booleanString;Xn.prototype.bindIfDefined=Xn.prototype.bindIfDefined;Xn.prototype.bindIf=Xn.prototype.bindIf;_.C([_.Dj()],Xn);_.sxx=[Xn.prototype];var g$r;var lar;var YJ=function(){return _.x.apply(this,arguments)||this};
_.M(YJ,_.x);YJ.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
YJ.prototype.onBackIconTap_=function(){window.history.back()};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],YJ.prototype,"data",void 0);_.C([_.Vu({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],YJ);
_.b(YJ,"yt-header-with-back-renderer",function(){if(lar===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;g$r===void 0&&(g$r=document.createElement("template"));var u=g$r;t.call(q,u.content.cloneNode(!0),F.content.firstChild);lar=F}F=lar;return F},{mode:2});var X0e;var Yxx;var p$=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(p$,_.x);_.l=p$.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.l.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.isDarkTheme=F,this.setUrl())};
_.l.dataChanged=function(){var F=this;if(this.data){var q=this.setUrl();q&&_.Xh({destination:window,iframe:this.iframe,origin:_.y9e(q.toString()),channelName:"yt-iframe",onMessage:function(t){(t=F.getCommunicationCommand(t.data))&&F.ytComponentBehavior.resolveCommand(t)},
onEstablished:function(){}})}};
_.l.setUrl=function(){if(this.data&&this.data.iframeUrl){var F=_.$w(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(F)return _.aK(this.iframe,F),F}};
_.l.getCommunicationCommand=function(F){var q;if((q=this.data)!=null&&q.onCommunicationCommandsMap){q=this.data.onCommunicationCommandsMap.find(function(J){return J.key===F});
if(q==null?0:q.value)return q==null?void 0:q.value;try{var t=Kuz(_.f3(F)),u=this.data.onCommunicationCommandsMap.find(function(J){return J.key===(t==null?void 0:t.getMethodName())});
if(u==null?0:u.value)return u==null?void 0:u.value}catch(J){}}};
p$.prototype.dataChanged=p$.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],p$.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],p$.prototype,"actionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],p$.prototype,"data",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],p$.prototype,"isDarkTheme",void 0);_.C([_.Ms("#iframe"),_.V("design:type",HTMLIFrameElement)],p$.prototype,"iframe",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],p$.prototype,"dataChanged",null);_.C([_.Vu({is:"yt-iframe-renderer",disableElementRegistration:!0})],p$);
_.b(p$,"yt-iframe-renderer",function(){if(Yxx===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;X0e===void 0&&(X0e=document.createElement("template"));var u=X0e;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Yxx=F}F=Yxx;return F},{mode:2});_.QD=function(F){_.OP.call(this);this.callback=F;this.bezier=new IPO(0,0,.4,0,.2,1,1,1);this.delay=new _.l7(this.next,window,this);this.JSC$16873_animating=!1;_.kW(this,this.delay)};
_.M(_.QD,_.OP);_.QD.prototype.isAnimating=function(){return this.JSC$16873_animating};
_.QD.prototype.start=function(F,q,t){this.config={from:F,to:q,duration:t,startTime:(0,_.gB)()};this.JSC$16873_animating=!0;this.next()};
_.QD.prototype.stop=function(){this.delay.stop();this.JSC$16873_animating=!1;this.config=void 0};
_.QD.prototype.next=function(){if(this.config){var F=this.config,q=F.from,t=F.to,u=F.duration;F=F.startTime;var J=(0,_.gB)()-F;F=this.bezier;u=mcx(F,J/u);if(u==0)F=F.y0;else if(u==1)F=F.y3;else{J=xV(F.y0,F.y1,u);var g=xV(F.y1,F.y2,u);F=xV(F.y2,F.y3,u);J=xV(J,g,u);g=xV(g,F,u);F=xV(J,g,u)}F=_.AX(F,0,1);this.callback(q+(t-q)*F);F<1?this.delay.start():this.JSC$16873_animating=!1}};_.eE=new _.pg("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var p01={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},eAf=function(F,q,t,u){_.OP.call(this);this.JSC$16884_miniAppId=F;this.localReleaseId=q;this.derivedDeviceInterface=t;this.isForeground=u;this.JSC$16884_playNonceResolver=new _.i1;this.playPingTimerId=NaN;this.playPingIntervalMs=_.YE("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.YE("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.E("enable_displaying_ppn");this.JSC$16884_miniAppClientDataProvider=_.sV().resolve(_.eE);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Qxd(this);var J=setTimeout(function(){_.bz(new _.D0("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16884_playNonceResolver.promise.then(function(){clearTimeout(J)})};
_.M(eAf,_.OP);var RAr=function(F,q){F.JSC$16884_playNonceResolver.resolve(q!=null?q:mO(8));F.enableDisplayingPpn&&ZPz(F).then(function(t){F.JSC$16884_miniAppClientDataProvider.clientData.set("post_play_nonce",t)})},ZPz=function(F){return _.p(function(q){return q.nextAddress==1?q.yield(F.JSC$16884_playNonceResolver.promise,2):q.return(q.yieldResult)})},Qxd=function(F){var q,t;
_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$16884_playNonceResolver.promise,2);q=u.yieldResult;t={miniAppInfo:{externalPostId:F.JSC$16884_miniAppId,localReleaseId:F.localReleaseId,postPlayNonce:q,derivedDeviceInterface:F.derivedDeviceInterface}};_.mj(t);_.WA(u)})},N6v=function(F){F.state!==0?_.bz(new _.D0("[MiniAppPlayLogger] recordPlayStart failed with state "+p01[F.state])):(F.state=1,ZG(F,"ma_cl"),RS(F,"PLAY_EVENT_TYPE_PLAY_START"),rjz(F))},w01=function(F){F.isForeground=!1;
RS(F,"PLAY_EVENT_TYPE_PLAY_PAUSE")},iPr=function(F){F.state!==1&&F.state!==2?_.bz(new _.D0("[MiniAppPlayLogger] recordPlayEnd failed with state "+p01[F.state])):(F.state=3,window.clearInterval(F.playPingTimerId),F.playPingTimerId=NaN,zQ$(),RS(F,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},kzE=function(F,q){F.state===2&&F.gameReady&&(F.firstClickRecorded?Date.now()-F.clickRecordedMs<F.playClickIntervalMs||(F.clickRecordedMs=Date.now(),RS(F,"PLAY_EVENT_TYPE_PLAY_CLICK")):q&&(ZG(F,"ma_fua"),RS(F,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),F.firstClickRecorded=!0,F.clickRecordedMs=Date.now()))};
eAf.prototype.logError=function(F){var q=this,t;_.p(function(u){if(u.nextAddress==1)return F.metadata.externalPostId=q.JSC$16884_miniAppId,t=F.metadata,u.yield(Promise.race([q.JSC$16884_playNonceResolver.promise,new Promise(function(J){setTimeout(function(){J("")},3E4)})]),2);
t.postPlayNonce=u.yieldResult;F.metadata.localReleaseId=q.localReleaseId;F.loggingError.level="WARNING";_.mH(F.loggingError,F.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:F.metadata});_.WA(u)})};
var E$d=function(F,q,t,u){var J,g,Y,Q,e,r;_.p(function(N){if(N.nextAddress==1)return N.yield(F.JSC$16884_playNonceResolver.promise,2);J=N.yieldResult;g={externalPostId:F.JSC$16884_miniAppId,localReleaseId:F.localReleaseId,postPlayNonce:J,sdkVersion:t,api:q};u!==void 0&&(g.networkRequestsMeasurement={networkRequests:_.pr(u,1),cachedRequests:_.pr(u,2),transferredBytes:_.pr(u,3)},(Y=u)==null?0:_.Ea(Y,pu,6))&&(g.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((Q=_.Yw(u,
pu,6))==null?void 0:vi(Q,1))||"0",cacheHits:((e=_.Yw(u,pu,6))==null?void 0:vi(e,2))||"0",cachedBytes:((r=_.Yw(u,pu,6))==null?void 0:vi(r,3))||"0"});_.IJ("miniAppSdkUsage",g);_.WA(N)})},o$C=function(F,q,t){var u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d;
_.p(function(a){if(a.nextAddress==1)return a.yield(F.JSC$16884_playNonceResolver.promise,2);u=a.yieldResult;J={externalPostId:F.JSC$16884_miniAppId,localReleaseId:F.localReleaseId,postPlayNonce:u,sdkVersion:t,measurementWindow:{startTimestampMs:String(Oa(q,1)),endTimestampMs:String(Oa(q,2))},frameRate:{averageFrameTimeDeltaMs:Pi(q,3),averageFrameIdleTimeMs:Pi(q,4)}};_.Ea(q,Q5,5)&&(J.networkRequests={networkRequests:(g=i4(q))==null?void 0:_.pr(g,1),cachedRequests:(Y=i4(q))==null?void 0:_.pr(Y,2),transferredBytes:(Q=
i4(q))==null?void 0:_.pr(Q,3),sameOriginStatusCodeToCounts:zAO((e=i4(q))==null?void 0:Ohf(e,4)),crossOriginStatusCodeToCounts:zAO((r=i4(q))==null?void 0:Ohf(r,5))},(N=i4(q))==null?0:_.Ea(N,pu,6))&&(J.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((w=i4(q))==null?void 0:(k=_.Yw(w,pu,6))==null?void 0:vi(k,1))||"0",cacheHits:((z=i4(q))==null?void 0:(T=_.Yw(z,pu,6))==null?void 0:vi(T,2))||"0",cachedBytes:((P=i4(q))==null?void 0:(v=_.Yw(P,pu,6))==null?void 0:vi(v,3))||"0"});_.Ea(q,
ffC,7)&&(J.gameCapture={averageFrameTimeDeltaMs:(H=_.Yw(q,ffC,7))==null?void 0:Pi(H,1),averageFrameIdleTimeMs:(d=_.Yw(q,ffC,7))==null?void 0:Pi(d,2)});_.IJ("miniAppPerformanceMetrics",J);_.WA(a)})},n$d=function(F,q){var t,u;
return _.p(function(J){if(J.nextAddress==1)return J.yield(F.JSC$16884_playNonceResolver.promise,2);t=J.yieldResult;u={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:F.JSC$16884_miniAppId,postPlayNonce:t,miniAppReleaseId:F.localReleaseId},derivedDeviceInterface:F.derivedDeviceInterface,adTriggerType:q,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.IJ("miniAppAdEvent",u);_.WA(J)})};
eAf.prototype.disposeInternal=function(){_.OP.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var RS=function(F,q,t,u){t=t===void 0?{}:t;u=u===void 0?!1:u;var J,g,Y,Q;_.p(function(e){if(e.nextAddress==1)return J=F.isForeground,g=F.beforeReady,e.yield(F.JSC$16884_playNonceResolver.promise,2);Y=e.yieldResult;Q={externalPostId:F.JSC$16884_miniAppId,localReleaseId:F.localReleaseId,derivedDeviceInterface:F.derivedDeviceInterface,postPlayNonce:Y,type:q};t.sequenceGroup=Y;Q.playState=g?"PLAY_STATE_NOT_READY":J?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.IJ("miniAppPlayEvent",Q,
t);u&&_.H2();_.WA(e)})},ZG=function(F,q){var t;
_.p(function(u){if(u.nextAddress==1)return t=(0,_.gB)(),u.yield(F.JSC$16884_playNonceResolver.promise,2);_.y0(q,t);_.WA(u)})},rjz=function(F){isNaN(F.playPingTimerId)&&(F.playPingTimerId=_.rN(function(){F.state!==1&&F.state!==2?_.bz(new _.D0("[MiniAppPlayLogger] reportPlayPing failed with state "+p01[F.state])):RS(F,"PLAY_EVENT_TYPE_PLAY_PING")},F.playPingIntervalMs))},zAO=function(F){return Array.from(F.entries()).map(function(q){var t=_.X(q);
q=t.next().value;t=t.next().value;return{key:q,value:t}})};var M3J=function(){},T6w=function(F,q){F.showMiniAppAdCommand=q.showMiniAppAdCommand;
F.isEmbeddedInWebview=q.isEmbeddedInWebview;F.playLogger=q.playLogger},DIw=function(F,q){var t;
return _.p(function(u){if(u.nextAddress==1){if(!F.showMiniAppAdCommand||!F.isEmbeddedInWebview)return u.return(GzL(F,q));F.adResolver=new _.i1;var J=new Uq;t=_.pt(J,3,q);$i(F.showMiniAppAdCommand,Dgj(t));return u.yield(F.adResolver.promise,2)}return u.return(u.yieldResult)})};
M3J.prototype.onAdFinished=function(F){F=DJv(F);var q;(q=this.adResolver)==null||q.resolve(F)};
var GzL=function(F,q){var t;return _.p(function(u){if(u.nextAddress==1)u=u.yield((t=F.playLogger)==null?void 0:n$d(t,VPW(q)),2);else{var J=u.return;var g=new G3j;g=_.pt(g,1,2);u=J.call(u,g)}return u})};var WPj=new _.pg("INNERTUBE_MANAGER_TOKEN");var OPO=function(){this.callbacks={}};
OPO.prototype.initialize=function(F){var q=this;this.callbacks=F;window.youtubewebview?window.youtubewebview.onmessage=function(t){P2e(q,t)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(t){P2e(q,t)})};
var P2e=function(F,q){if(q.data)try{var t=Kuz(q.data);if(_.EC(_.kB(t,1))!=null){var u=z3e(_.xB(t,2));switch(t.getMethodName()){case "yt-mini-app-load-audio-state":var J,g;(g=(J=F.callbacks).onAudioStateLoaded)==null||g.call(J,_.Wi(u,Mb(u,V5,1)));break;case "yt-mute-mini-app":var Y,Q;(Q=(Y=F.callbacks).onMuteMiniApp)==null||Q.call(Y);break;case "yt-unmute-mini-app":var e,r;(r=(e=F.callbacks).onUnmuteMiniApp)==null||r.call(e);break;case "yt-playable-exit":var N,w;(w=(N=F.callbacks).onExit)==null||w.call(N);
break;case "yt-post-play-nonce":var k,z;(z=(k=F.callbacks).onPostPlayNonceReceived)==null||z.call(k,IC(u,2,V5));break;case "yt-confirm-exit-mini-app":var T,P;(P=(T=F.callbacks).confirmExitMiniApp)==null||P.call(T);break;case "yt-confirm-exit-mini-app-edu":var v,H;(H=(v=F.callbacks).confirmExitMiniAppEdu)==null||H.call(v);break;case "yt-benchmarking-response":var d,a;(a=(d=F.callbacks).onNativeBenchmarkingMessageReceived)==null||a.call(d,IC(u,2,V5));break;case "yt-mini-app-load-3p-consent-state":var S,
K;(K=(S=F.callbacks).multiplayer3pAckStateLoaded)==null||K.call(S,_.Wi(u,Mb(u,V5,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var h,c;(c=(h=F.callbacks).exitMiniAppSeenStateLoaded)==null||c.call(h,_.Wi(u,Mb(u,V5,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var rf,Zv;(Zv=(rf=F.callbacks).onNavigateToNewMiniApp)==null||Zv.call(rf);break;case "yt-game-data-available":var kP,n3;(n3=(kP=F.callbacks).onGameDataAvailable)==null||n3.call(kP,IC(u,2,V5));break;case "yt-pause-mini-app":var o_,
df;(df=(o_=F.callbacks).onPauseMiniApp)==null||df.call(o_);break;case "yt-resume-mini-app":var m$,gx;(gx=(m$=F.callbacks).onResumeMiniApp)==null||gx.call(m$);break;case "yt-playable-ad-finished":var Hf,Zw;(Zw=(Hf=F.callbacks).onAdFinished)==null||Zw.call(Hf,IC(u,2,V5))}}else _.bz(Error("Th"))}catch(cy){_.mH(Error("Uh"))}else _.bz(Error("Vh"))};var SGv=function(F){this.rpcErrorCode=F};var r9=function(F,q,t){this.intervalMs=F;this.apiFunc=q;this.type=t;this.schedulerReady=!0};
r9.prototype.call=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1){if(q.type!==1&&F===q.cachedValue)return u.return();q.pendingApiRequestResolver||(q.pendingApiRequestResolver=new _.i1);t=q.pendingApiRequestResolver.promise;q.cachedValue=F;return u.yield(xIf(q),2)}return u.return(t)})};
r9.prototype.flush=function(F){F=F===void 0?!1:F;var q=this;return _.p(function(t){return q.cachedValue===void 0?t.return():t.yield(q.apiFunc(q.cachedValue,F),0)})};
var xIf=function(F){var q,t,u;return _.p(function(J){switch(J.nextAddress){case 1:if(!F.schedulerReady||!F.pendingApiRequestResolver)return J.return();F.schedulerReady=!1;q=F.pendingApiRequestResolver;F.pendingApiRequestResolver=void 0;_.zg(J,2);if(F.cachedValue===void 0){J.jumpTo(4);break}return J.yield(F.apiFunc(F.cachedValue),5);case 5:t=J.yieldResult,q.resolve(t);case 4:_.LE(J,3);break;case 2:u=_.Gg(J),q.reject(u);case 3:setTimeout(function(){return _.p(function(g){F.schedulerReady=!0;return g.yield(xIf(F),
0)})},F.intervalMs),_.WA(J)}})};var Bif=window.location.origin+"/miniapp_cloudsaves",hkP=[400,401],Ajd=_.YE("cloud_save_game_data_rate_limit_ms",3E3),HP1=function(F){var q=this;this.JSC$16928_miniAppId=F;this.loadAttempts=0;this.cloudSaveIntervalMs=Ajd;this.initialDownloadDataSucceeded=!1;this.JSC$16928_playNonceResolver=new _.i1;this.scottyUploadRateLimiter=new r9(this.cloudSaveIntervalMs,function(t,u){return v$L(q,t,u)},2);
this.downloadDataPromise=IaO(this);this.downloadDataPromise.then(function(){q.initialDownloadDataSucceeded=!0}).catch(function(){})},mI1=function(F,q){q.then(function(t){return F.JSC$16928_playNonceResolver.resolve(t)})},$Id=function(F){return _.p(function(q){return F.cachedData===void 0?q.return(F.downloadDataPromise):q.return(F.cachedData)})},bPr=function(F,q){return _.p(function(t){F.cachedData=q;
if(!F.initialDownloadDataSucceeded)throw Error("Wh");return t.yield(F.scottyUploadRateLimiter.call(q),0)})},yjz=function(){return new Promise(function(F){setTimeout(F,1E3,"")})},C2w=function(F,q){var t,u;
return _.p(function(J){if(J.nextAddress==1)return t=F.JSC$16928_miniAppId,J.yield(Promise.race([F.JSC$16928_playNonceResolver.promise,yjz()]),2);u={"X-YouTube-MiniAppId":t,"X-YouTube-PostPlayNonce":J.yieldResult};"DELEGATED_SESSION_ID"in _.m8&&KjA(q,u);return J.return(u)})},v$L=function(F,q,t){t=t===void 0?!1:t;
return _.p(function(u){return UG_()?_.E("enable_cloud_save_error_popup_after_retry")?u.return(new Promise(function(J,g){var Y,Q,e,r,N;return _.p(function(w){switch(w.nextAddress){case 1:Y=0,Q=!0,r=e=null;case 2:if(!(Q&&Y++<2)){w.jumpTo(4);break}_.zg(w,5);return w.yield(dIJ(F,q,t),7);case 7:e=w.yieldResult;Q=e.ok?!1:!hkP.includes(e.status);_.LE(w,2);break;case 5:r=N=_.Gg(w);Q=KQP(r);w.jumpTo(2);break;case 4:e?e.ok?(Nr(F,Ajd),J()):(Nr(F,F.cloudSaveIntervalMs*2),g(Error("Xh`"+String(e.status),{cause:{rpcErrorCode:e.status}}))):
(Nr(F,F.cloudSaveIntervalMs*2),g(r||Error("Yh"))),_.WA(w)}})})):u.return(new Promise(function(J,g){var Y,Q;
return _.p(function(e){if(e.nextAddress==1){if(F.JSC$16928_miniAppId==="")return g(Error("Zh")),e.return();_.zg(e,2);return e.yield(dIJ(F,q,t),4)}if(e.nextAddress!=2)return Y=e.yieldResult,Y.ok?(Nr(F,Ajd),J()):(Nr(F,F.cloudSaveIntervalMs*2),g(Error("Xh`"+String(Y.status),{cause:{rpcErrorCode:Y.status}}))),_.LE(e,0);Q=_.Gg(e);Nr(F,F.cloudSaveIntervalMs*2);g(Q);_.WA(e)})})):u.return()})},dIJ=function(F,q,t){t=t===void 0?!1:t;
var u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return u=_.A9((new TextEncoder).encode(q)),J=LQP(),Y.yield(C2w(F,J),2);g=Y.yieldResult;return Y.return(fetch(J,{method:"POST",body:new Blob([u]),headers:g,keepalive:t}))})},IaO=function(F){var q,t;
return _.p(function(u){if(u.nextAddress==1){if(!UG_())return u.return("");if(F.JSC$16928_miniAppId==="")throw Error("Zh");if(F.loadAttempts>2)return u.return(F.downloadDataPromise);_.zg(u,2);return u.yield(V3z(F),4)}if(u.nextAddress!=2)return q=u.yieldResult,u.return(q);t=_.Gg(u);if(KQP(t)&&++F.loadAttempts<2)return u.return(IaO(F));throw t;})},V3z=function(F){var q,t,u,J,g;
return _.p(function(Y){switch(Y.nextAddress){case 1:return _.zg(Y,2),q=LQP(),Y.yield(C2w(F,q),4);case 4:return t=Y.yieldResult,Y.yield(fetch(q,{method:"GET",headers:t}),5);case 5:return u=Y.yieldResult,u.ok?Y.yield(u.text(),6):Y.return(Promise.reject(Error("$h`"+String(u.status),{cause:new SGv(u.status)})));case 6:return J=Y.yieldResult,Y.return((new TextDecoder).decode(_.f3(J)));case 2:return g=_.Gg(Y),Y.return(Promise.reject(g))}})},Nr=function(F,q){F.cloudSaveIntervalMs=q;
F.scottyUploadRateLimiter.intervalMs=F.cloudSaveIntervalMs};
HP1.prototype.flush=function(){var F=this;return _.p(function(q){return F.initialDownloadDataSucceeded?q.yield(F.scottyUploadRateLimiter.flush(!0),0):q.return()})};var UIf=NX(rR(1),Z1(1)),Sxn=NX(rR(1),Z1(3)),w9=function(F){this.callbacks=F};
_.l=w9.prototype;_.l.onAudioToggled=function(F,q){(q===void 0||q)&&_.A8("yt-mini-app-is-audio-enabled",F,2592E3)};
_.l.onPause=function(){this.onAudioToggled(!1,!1)};
_.l.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.l.returnNativeBenchmarkingMessage=function(){};
_.l.sendGameData=function(){};
_.l.sendStartGameFrameCapture=function(){};
var fI3=function(F,q,t){this.callbacks=F;var u=this;this.sdkVersion=new _.i1;this.channel=new Uwt(_.Xh({destination:window,iframe:q,origin:(new URL(t.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var J=i0;var g=rR(5);var Y=new mJ1;Y=_.mc(Y,1,1E4);g=_.T9(g,4,Sad,Y);J(u,g);u.onAudioToggled(u.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){u.sdkVersion.resolve("")},1E4)};
_.M(fI3,w9);_.l=fI3.prototype;_.l.onAudioToggled=function(F,q){w9.prototype.onAudioToggled.call(this,F,q===void 0?!0:q);q=i0;var t=rR(2),u=new IfC;F=_.RX(u,1,F);F=_.T9(t,3,Sad,F);q(this,F)};
_.l.onPause=function(){w9.prototype.onPause.call(this);i0(this,rR(3))};
_.l.onResume=function(){w9.prototype.onResume.call(this);i0(this,rR(4))};
_.l.returnNativeBenchmarkingMessage=function(F){var q=i0,t=rR(6);var u=Z1(_.Ea(F,qz,1)?1:2);F=_.Ea(F,qz,1)?F:null;u=_.T9(u,5,Rt,F);q(this,NX(t,u))};
_.l.sendGameData=function(F){var q=i0,t=rR(7);F=_.T9(t,5,Sad,F);q(this,F)};
_.l.sendStartGameFrameCapture=function(){i0(this,rR(9))};
var kJ=function(F,q,t){var u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return u=F.callbacks,J=u.onSdkCalled,g=q,Y.yield(F.sdkVersion.promise,2);J.call(u,g,Y.yieldResult,t);_.WA(Y)})};
fI3.prototype.onMessage=function(){var F=this;return KAA(kH,function(q){var t,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S,K,h,c,rf,Zv,kP,n3,o_,df,m$,gx,Hf,Zw,cy,wx,Rj,xO,DQ,fe,sM,FL,Ev,e5,z1,qD,gL,F3;return _.p(function(pe){switch(pe.nextAddress){case 1:if(!FRn(q.data))return _.bz(Error("ai")),pe.return();t=_.Aa(q.data,1);_.E("enable_iframe_message_get_type_via_fields")&&(u=q.data,t=J=_.Aa(u,1));switch(t){case 8:if(q.data.hasMetadata()){var Bf=F.sdkVersion,wJ=Bf.resolve;var Dw=q.data.getMetadata();Dw=_.xB(Dw,
1);wJ.call(Bf,Dw);clearTimeout(F.sdkVersionTimeoutId)}break;case 6:return pe.jumpTo(2);case 16:if(!_.z3(q.data,Bde,14,Eq))return pe.return();g=_.Hi(q.data,Bde,14,Eq);(Q=(Y=F.callbacks).onGameFrameReceived)==null||Q.call(Y,g);return pe.return();case 17:if(!_.z3(q.data,KcL,15,Eq))return pe.return();(r=(e=F.callbacks).onGameAudioReceived)==null||r.call(e,_.Hi(q.data,KcL,15,Eq));return pe.return();case 1:if(Bf=_.Hi(q.data,yaz,2,Eq))switch(_.Aa(Bf,1)){case 1:F.callbacks.onFirstFrameReady();if(_.E("enable_network_request_logging_on_game_events")&&
_.Ea(Bf,Q5,4)){kJ(F,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Yw(Bf,Q5,4));break}kJ(F,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Dw=(wJ=F.callbacks).onGameReady)==null||Dw.call(wJ);if(_.E("enable_network_request_logging_on_game_events")&&_.Ea(Bf,Q5,4)){kJ(F,"MINI_APP_SDK_API_GAME_READY",_.Yw(Bf,Q5,4));break}kJ(F,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.z3(Bf,eG,3,Cpd))F.callbacks.onResourceLoaded(_.Hi(Bf,eG,3,Cpd))}return pe.return();case 3:return pe.jumpTo(3);case 4:return pe.jumpTo(4);
case 2:return pe.jumpTo(5);case 9:return pe.jumpTo(6);case 10:return F.callbacks.onClick(),pe.return();case 5:return pe.jumpTo(7);case 11:if(!_.z3(q.data,XS,9,Eq))return pe.return();N=_.Hi(q.data,XS,9,Eq);(k=(w=F.callbacks).onBenchmarkingMessageReceived)==null||k.call(w,N);Bf=q.reply;wJ=rR(1);Dw=Z1(1);var Wf=new XS;var zv=new Uint8Array(X03(N,Mb(N,O4j,6))|0);Wf=ke(Wf,5,O4j,_.G1(zv,!1));Dw=_.T9(Dw,5,Rt,Wf);Bf.call(q,NX(wJ,Dw));return pe.return();case 12:return pe.jumpTo(8);case 13:return pe.jumpTo(9);
case 15:if(!_.E("enable_open_yt_content"))return q.reply(Sxn),pe.return();if(!_.z3(q.data,htE,12,Eq))return q.reply(NX(rR(1),Z1(2))),pe.return();Bf=_.Hi(q.data,htE,12,Eq);z=_.xB(Bf,1);F.callbacks.onOpenYTContent(z);q.reply(UIf);return pe.return();case 14:return pe.jumpTo(10);default:return pe.return()}pe.jumpTo(0);break;case 2:if(!_.z3(q.data,wR,5,Eq))return pe.return();wJ=q.data;Bf=Mb(wJ,Eq,5);wJ=wJ.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;T=v7W(wJ,wJ[_.sv]|0,wR,Bf)||wR[HeW]||(wR[HeW]=
mnq(wR));Bf=_.XN(T,YH,1,_.YW());P=_.X(Bf);v=P.next();case 12:if(v.done){pe.jumpTo(14);break}H=v.value;d=new _.D0;d.level=_.Aa(H,2)===1?"WARNING":"ERROR";a=jho(H.getSource());return pe.yield(F.sdkVersion.promise,15);case 15:S={source:a,sdkVersion:pe.yieldResult};_.t9(_.kB(H,6))!=null?(d.message=H.getMessage(),d.stack=_.xB(H,5),S.sdkErrorType=cyy(_.Aa(H,6)),_.t9(_.kB(H,7))!=null&&(S.sdkApi=FkC(_.Aa(H,7)))):d.stack=void 0;h=K=void 0;(h=(K=F.callbacks).onError)==null||h.call(K,{loggingError:d,metadata:S});
v=P.next();pe.jumpTo(12);break;case 14:return pe.return();case 3:return _.zg(pe,16),Bf=pe.yield,wJ=F.callbacks,Dw=wJ.onSave,Wf=_.Hi(q.data,H4e,4,Eq),Wf=_.xB(Wf,1),Bf.call(pe,Dw.call(wJ,Wf),18);case 18:q.reply(UIf);_.LE(pe,17);break;case 16:return c=_.Gg(pe),rf=bB,Zv=c,kP=F.callbacks,n3="MINI_APP_SDK_API_SAVE_DATA",pe.yield(F.sdkVersion.promise,19);case 19:rf(Zv,kP,n3,pe.yieldResult),q.reply(Sxn);case 17:return pe.yield(kJ(F,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return pe.return();case 4:return _.zg(pe,
21),pe.yield(F.callbacks.onLoad(),23);case 23:o_=pe.yieldResult;Bf=q.reply;wJ=rR(1);Dw=Z1(1);Wf=new H4e;Wf=_.OF(Wf,1,o_);Dw=_.T9(Dw,3,Rt,Wf);Bf.call(q,NX(wJ,Dw));_.LE(pe,22);break;case 21:return df=_.Gg(pe),m$=bB,gx=df,Hf=F.callbacks,Zw="MINI_APP_SDK_API_LOAD_DATA",pe.yield(F.sdkVersion.promise,24);case 24:m$(gx,Hf,Zw,pe.yieldResult),q.reply(Sxn);case 22:return pe.yield(kJ(F,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return pe.return();case 5:_.zg(pe,26);F.callbacks.onSendHighScore(ba(_.Hi(q.data,
jCL,3,Eq).getValue()));q.reply(NX(rR(1),Z1(1)));_.LE(pe,27);break;case 26:return cy=_.Gg(pe),wx=bB,Rj=cy,xO=F.callbacks,DQ="MINI_APP_SDK_API_SEND_SCORE",pe.yield(F.sdkVersion.promise,28);case 28:wx(Rj,xO,DQ,pe.yieldResult),q.reply(Sxn);case 27:return pe.yield(kJ(F,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return pe.return();case 6:if(!_.z3(q.data,cae,8,Eq)){pe.jumpTo(30);break}Bf=pe.yield;wJ=_.Hi(q.data,cae,8,Eq);wJ=_.Aa(wJ,1);return Bf.call(pe,kJ(F,FkC(wJ)),30);case 30:return pe.return();case 7:return Bf=
q.reply,wJ=rR(1),Dw=Z1(1),Wf=F.callbacks.getLanguage(),Dw=ke(Dw,4,Rt,k7(Wf)),Bf.call(q,NX(wJ,Dw)),pe.yield(kJ(F,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return pe.return();case 8:if(!_.z3(q.data,afe,10,Eq))return pe.return();fe=_.Hi(q.data,afe,10,Eq);sM=F.callbacks;FL=sM.onSdkPerformanceUpdate;return pe.yield(F.sdkVersion.promise,33);case 33:return FL.call(sM,fe,pe.yieldResult),pe.return();case 9:Bf=q.data;wJ=Mb(Bf,Eq,11);if(_.EC(_.kB(Bf,wJ))==null)return q.reply(NX(rR(1),Z1(2))),pe.return();
Ev=IC(q.data,11,Eq);F.callbacks.onShareInviteCode(Ev);q.reply(UIf);return pe.yield(kJ(F,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return pe.return();case 10:if(_.z3(q.data,vBO,13,Eq)){pe.jumpTo(35);break}return pe.yield(F.callbacks.onShowMiniAppAd(2),36);case 36:return e5=pe.yieldResult,q.reply(NX(rR(1),Vsj(e5))),pe.yield(kJ(F,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return pe.return();case 35:Bf=_.Hi(q.data,vBO,13,Eq);a:switch(_.Aa(Bf,1)){case 1:Bf={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Bf={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Bf={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}z1=Bf;qD=z1.adType;gL=z1.sdkApi;Bf=pe.yield;wJ=F.callbacks;Dw=wJ.onShowMiniAppAd;Wf=_.Hi(q.data,vBO,13,Eq);Wf=_.xB(Wf,2);return Bf.call(pe,Dw.call(wJ,qD,Wf||void 0),38);case 38:return F3=pe.yieldResult,q.reply(NX(rR(1),Vsj(F3))),pe.yield(kJ(F,gL),39);case 39:return pe.return()}})})};
var i0=function(F,q){_.p(function(t){F.channel.send(q);_.WA(t)})},y7=function(F,q,t){this.callbacks=F;
var u=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;F=hZf(q,(new URL(t.toString())).origin);this.gameSnacks=new gPJ(F);this.gameSnacks.page.onReady(function(){u.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){u.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var J,g;(g=(J=u.callbacks).onGameReady)==null||g.call(J)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(J,g){try{u.callbacks.onSendHighScore(g)}catch(Y){bB(Y,u.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(J,g){var Y;return _.p(function(Q){if(Q.nextAddress==1)return _.zg(Q,2),Q.yield(u.callbacks.onSave(u.decoder.decode(g)),4);if(Q.nextAddress!=2)return _.LE(Q,0);Y=_.Gg(Q);bB(Y,u.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return Q.return()})});
this.gameSnacks.storage.onLoad(function(){var J,g;return _.p(function(Y){if(Y.nextAddress==1)return _.zg(Y,2),Y.yield(u.callbacks.onLoad(),4);if(Y.nextAddress!=2)return J=Y.yieldResult,Y.return(u.encoder.encode(J));g=_.Gg(Y);bB(g,u.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return Y.return(u.encoder.encode(""))})});
this.gameSnacks.init()};
_.M(y7,w9);y7.prototype.onAudioToggled=function(F,q){w9.prototype.onAudioToggled.call(this,F,q===void 0?!0:q);var t;(t=this.gameSnacks)==null||t.audio.update(F)};
y7.prototype.onPause=function(){w9.prototype.onPause.call(this);var F;(F=this.gameSnacks)==null||F.game.pause()};
y7.prototype.onResume=function(){w9.prototype.onResume.call(this);var F;(F=this.gameSnacks)==null||F.game.resume()};var hAn=q$P,KPv=_.ld(function(F){var q=F.data;var t=F.loadingProgress;var u=F.forPaused;F=_.X(_.N3("",void 0,"LYYTdd"));var J=F.next().value,g=F.next().value;F=_.X(_.N3(!1,void 0,"K0waae"));var Y=F.next().value,Q=F.next().value,e=[],r=function(){return"transform: scaleX("+(_.Hj(t)||0)+")"},N=null,w=function(){return q()&&N!==null&&N!==void 0?N:N=q().showAnniversaryAnimation?6:hAn()};
_.AO(function(){var P;if(q().timeOutMessages&&((P=q().timeOutMessages)==null?0:P.length)){N=null;P=_.X(e);for(var v=P.next();!v.done;v=P.next())clearTimeout(v.value);e.length=0;toy(q().timeOutMessages,e,g,Q)}},"BNu9j");
var k=function(){return!!q().persistentErrorMessageTitle},z=function(){return t!==void 0},T=function(){return q().title};
return _.Z("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.Z("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.Z("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.Z("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var P,v=(P=q().backgroundImage)==null?void 0:P.sources,H;return(v==null?0:v.length)?"background-image: url("+((H=v[0])==null?void 0:H.url)+")":""}}),_.Z("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.Z(_.R,{cond:function(){return!k()&&!(u==null?0:u())},
then:function(){var P={};return _.Z("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.Z("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.Z(_.bT,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+w()},
data:function(){var v="loading_animation_"+w();return{animationConfig:{name:v,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+v+".json",loop:!0,autoplay:!0}}}})),_.Z("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.Z(_.R,{cond:T,
then:function(){return _.Z("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},T)}}),_.Z("p",{class:_.Ec("miniAppSplashScreenViewModelTimeoutMessage",(P.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return Y()},P)),
"aria-live":"polite"},J),_.Z(_.R,{cond:z,then:function(){return _.Z("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.Z("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:r}))}})))}}),_.Z(_.R,{cond:k,
then:function(){return _.Z("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.Z("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return q().persistentErrorMessageTitle}),_.Z(_.R,{cond:function(){return!!q().persistentErrorMessageDescription},
then:function(){return _.Z("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return q().persistentErrorMessageDescription})}}))}}),_.Z(_.R,{cond:u,
then:function(){return _.Z("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.Z("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.Z("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},T))}})))},"qe");var B6L=new _.pg("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var LPf=tN;tN=function(F){function q(t){if(t){var u,J;(u=t.__spec)==null||(J=u.didUnmount)==null||J.call(u);for(u=0;u<t.childNodes.length;u++)q(t.childNodes[u])}}
LPf==null||LPf(F);$b(function(){for(var t=0;t<F.length;t++)q(F[t])})};var faE=_.ld(function(F){var q=F.data;var t=F.score;var u=F.formattedScore;var J=F.onScoreChanged;var g=F.isEmbeddedInWebview;var Y=_.qL("yt-mini-app-score-button-view-model"),Q=function(){var z;return _.n(q==null?void 0:(z=q())==null?void 0:z.buttonViewModel,_.gX)},e=function(){var z;
return(t==null?void 0:t())||Number(q==null?void 0:(z=q())==null?void 0:z.lastScore)||0},r=function(){var z;
return(u==null?void 0:u())||((z=Q())==null?void 0:z.title)||""},N,w=1;
if(F=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))F=Number(F),w=isNaN(F)?1:F/100;_.AO(function(){J==null||J(e());var z;var T=_.Sg((z=Q())==null?void 0:z.onTap);if(T){z=_.n(T,XPE);var P,v,H;z=_.n(z==null?void 0:(P=z.panelLoadingStrategy)==null?void 0:(v=P.inlineContent)==null?void 0:(H=v.dialogViewModel)==null?void 0:H.customContent,WEn)}else z=void 0;if(P=z)P.score=r()},"Aekez");
F=_.zq(function(){var z,T,P=q==null?void 0:(z=q())==null?void 0:(T=z.loggingDirectives)==null?void 0:T.trackingParams;P&&_.vQ(_.sV().resolve(_.LA),P);return!1});
_.v_(function(){if(Y.value){var z=Y.value.querySelector("button"),T=Q();z&&T&&ul_(z,T);sT("yt-share-playable-with-high-score",function(){var P=e().toString(),v=q==null?void 0:q().onShareHighScoreCommand,H=q==null?void 0:q().highScoreShareClientParamIdentifier,d=g==null?void 0:g();v&&(d?(H=new hMn,P=_.OF(H,2,P),$i(v,P.JSC$12354_serializeBinary())):H&&(_.sV().resolve(B6L).clientParams.set(H,{miniAppClientParams:{highScore:P}}),bD_(v,!1)))})}});
var k=function(){var z=Q();z&&(t==null?0:t())&&z.accessibilityText&&(z.accessibilityText=z.accessibilityText.replace(N,r()));N=r();return{numberValue:e(),numberText:r(),heightPx:36,fontSizeMultiplier:w,shouldAnimate:!(t==null||!t())&&!0}};
return _.Z("yt-mini-app-score-button-view-model",{class:function(){var z={};return _.HD("miniAppScoreButtonViewModelHost",(z.miniAppScoreButtonViewModelIsVisible=e()!==0,z))},
el:Y,"on:click":F},zEt(!1,function(){return _.Z("span",{style:"display:none;"},e)}),_.Z(_.Tl,{data:function(){var z;
return q==null?void 0:(z=q())==null?void 0:z.buttonViewModel}},{buttonViewModel:function(z){return _.Z(_.AB,{data:z.data,
animatedTextProps:k})}}))},"re");var qUJ=_.ld(function(F){var q,t=(q=_.vG("yt-mini-app-is-theater-mode-enabled"))!=null?q:!1,u=_.E("enable_playable_container_save_button"),J=_.E("enable_play_next_destination_page_in_toolbar");q={};return _.Z("ytm-mini-app-top-bar-view-model",null,_.Z("div",{class:_.Ec("yt-mini-app-top-bar-view-model",(q["yt-mini-app-top-bar-view-model--mobile"]=!1,q["yt-mini-app-top-bar-view-model--desktop"]=!0,q))},_.Z("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.Z(_.R,{cond:function(){var g;
return!!F.data().backButtonEdu&&!((g=F.isExitMiniAppSeen)==null?0:g.call(F))},
then:function(){return _.Z(_.Tl,{data:function(){return F.data().backButtonEdu}},{buttonViewModel:_.AB})},
else:function(){return _.Z(_.Tl,{data:function(){return F.data().backButton}},{buttonViewModel:_.AB})}}),_.Z(_.R,{cond:function(){return F.data().viewAllButton&&!0},
then:function(){return _.Z(_.Tl,{data:function(){return F.data().viewAllButton}},{buttonViewModel:_.AB})}}),_.Z(_.R,{cond:function(){return F.data().title&&!0},
then:function(){return _.Z("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return F.data().title})}})),_.Z("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.Z(_.R,{cond:function(){var g;
return(g=F.isDesktopPlayPage)==null?void 0:g.call(F)},
then:function(){return _.Z(_.ln,null,_.Z(aaJ,{highScoreButton:function(){return F.data().highScoreButton},
score:F.score,formattedScore:F.formattedScore,onScoreChanged:F.onScoreChanged,isEmbeddedInWebview:F.isEmbeddedInWebview}),_.Z(jxr,{enableSaveButton:function(){return _.Hj(u)},
saveButton:function(){return F.data().saveButton},
isSaved:F.isSaved,onSaveToggled:function(){return F.onSaveToggled}}),_.Z(cjJ,{menuButton:function(){return F.data().menuButton}}))},
else:function(){return _.Z(_.R,{cond:function(){return!1},
then:function(){return _.Z(_.Tl,{data:function(){return F.data().playPageButton}},{buttonViewModel:function(g){return _.Z(_.AB,{data:g.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.Z(aaJ,{highScoreButton:function(){return F.data().highScoreButton},
score:F.score,formattedScore:F.formattedScore,onScoreChanged:F.onScoreChanged,isEmbeddedInWebview:F.isEmbeddedInWebview})}})}})),_.Z("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.Z(_.Tl,{data:function(){return F.data().muteButton}},{toggleButtonViewModel:function(g){var Y=g.data;
return _.Z(_.j9,{data:function(){var Q,e;return Object.assign({},Y(),{isToggled:(e=(Q=F.isAudioEnabled)==null?void 0:Q.call(F))!=null?e:!0})},
onToggle:F.onAudioToggled,useOutlinedIcon:!0})}}),_.Z(_.Tl,{data:function(){return F.data().theatreModeButton}},{toggleButtonViewModel:function(g){var Y=g.data;
return _.Z("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.Z(_.j9,{data:function(){return Object.assign({},Y(),{isToggled:t})},
useOutlinedIcon:!0}))}}),_.Z(FAv,{fullscreenButton:function(){return F.data().fullscreenButton}}),_.Z(_.R,{cond:function(){return _.Hj(J)&&F.data().viewAllButton&&!1},
then:function(){return _.Z(_.Tl,{data:function(){return F.data().viewAllButton}},{buttonViewModel:_.AB})}}),_.Z(_.R,{cond:function(){var g;
return!((g=F.isDesktopPlayPage)==null?0:g.call(F))},
then:function(){return _.Z(_.ln,null,_.Z(jxr,{enableSaveButton:function(){return _.Hj(u)},
saveButton:function(){return F.data().saveButton},
isSaved:F.isSaved,onSaveToggled:function(){return F.onSaveToggled}}),_.Z(cjJ,{menuButton:function(){return F.data().menuButton}}))}}))))},"se");
qUJ.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var cjJ=_.ld(function(F){return _.Z(_.Tl,{data:F.menuButton},{buttonViewModel:_.AB})},"te"),jxr=_.ld(function(F){var q=F.enableSaveButton;
var t=F.saveButton;var u=F.isSaved;var J=F.onSaveToggled;return _.Z(_.R,{cond:function(){return q()&&!(t==null||!t())},
then:function(){return _.Z(_.Tl,{data:function(){var g=_.n(t==null?void 0:t(),_.XZ),Y;return{toggleButtonViewModel:Object.assign({},g,{isToggled:(Y=u==null?void 0:u())!=null?Y:!(g==null||!g.isToggled)})}}},{toggleButtonViewModel:function(g){return _.Z(_.j9,{data:g.data,
onToggle:J})}})}})},"ue"),aaJ=_.ld(function(F){var q=F.highScoreButton;
var t=F.score;var u=F.formattedScore;var J=F.onScoreChanged;var g=F.isEmbeddedInWebview;return _.Z(_.Tl,{data:q},{miniAppScoreButtonViewModel:function(Y){return _.Z(faE,{data:Y.data,score:t,formattedScore:u,onScoreChanged:J,isEmbeddedInWebview:g})}})},"ve"),FAv=_.ld(function(F){F=F.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.Z(_.ln,null):_.Z(_.Tl,{data:F},{buttonViewModel:_.AB})},"we");_.tmd=new _.pg("DESKTOP_CURRENT_PAGE");var X7r=_.ld(function(F){var q=F.data;var t=_.E("force_active_time_logging_webview"),u=!1,J=new OPO,g=void 0,Y=void 0,Q=_.sV().resolve(WPj),e=new M3J,r=void 0,N=void 0,w=[],k=void 0,z=void 0,T=!1,P=!1,v=!1,H=!1,d=new _.i1,a=_.sV().resolve(B6L),S=_.sV().resolve(_.eE),K=_.sV().resolve(_.JU(d8)),h,c=(h=_.sV().resolve(_.JU(_.tmd)))==null?void 0:h.getCurrentPage(),rf=!1,Zv=0,kP=function(L3){L3.preventDefault();return L3.returnValue=""},n3;
F=_.X(_.N3(!((n3=_.vG("yt-mini-app-is-audio-enabled"))!=null&&!n3),void 0,"WhYQTd"));var o_=F.next().value,df=F.next().value,m$;n3=_.X(_.N3(!((m$=_.vG("exit-mini-app-seen-state"))==null||!m$),void 0,"jxhCJb"));var gx=n3.next().value,Hf=n3.next().value;m$=_.X(_.N3(!1,void 0,"MuvDfe"));var Zw=m$.next().value,cy=m$.next().value;m$=_.X(_.N3(void 0,void 0,"u9DLoc"));var wx=m$.next().value,Rj=m$.next().value;m$=_.X(_.N3(void 0,void 0,"rykyJb"));var xO=m$.next().value,DQ=m$.next().value;m$=_.X(_.N3(!0,void 0,
"d8FUvf"));var fe=m$.next().value,sM=m$.next().value;m$=_.X(_.N3(!1,void 0,"x9XwUb"));var FL=m$.next().value,Ev=m$.next().value;m$=_.X(_.N3(!1,void 0,"bcquyc"));var e5=m$.next().value,z1=m$.next().value;m$=_.X(_.N3(void 0,void 0,"FMAC5b"));var qD=m$.next().value,gL=m$.next().value;m$=_.X(_.N3(0,void 0,"HUGJEb"));var F3=m$.next().value,pe=m$.next().value,Bf=_.FG("mini-app-container-view-model"),wJ=function(){return q().isEmbeddedInWebview},Dw=function(){return q().hasPlayNextShelf};
sT("yt-page-type-changed",function(L3){if(_.E("enable_is_mini_app_page_active_bugfix"))L3.detail.newPageSubtype==="mini_app"&&L3.detail.newPageType==="ytd-browse"||!fe()||R2();else if(L3=_.vUv()==="mini_app",L3!==fe())if(sM(L3),L3){var iw;L3=(iw=q().playableId)==null?void 0:iw.toString();L3!==void 0&&window.location.href.includes(L3)&&!P&&(H=!0,Wf(),ie.value&&T0(ie.value))}else L3||R2()});
sT("yt-action",function(L3){L3.detail.actionName==="yt-engagement-panel-visible-changed"&&L3.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&L3.detail.args[2]==="PAmini_app_panel"&&R2();_.E("enable_is_mini_app_page_active_bugfix")?L3.detail.actionName==="yt-history-load"&&!fe()&&(c==null?0:c.active)?(sM(!0),Wf(),ie.value&&T0(ie.value)):L3.detail.actionName==="yt-history-load"&&fe()&&!q().isEmbeddedInWebview&&dx():fe()&&L3.detail.actionName==="yt-history-load"&&(H?H=!1:q().isEmbeddedInWebview||
dx())});
_.vj(function(){zv()});
_.AO(function(){Wf()},"bLMzme");
var Wf=function(){var L3=q().playableId,iw=q().localReleaseId,Tv=q().derivedDeviceInterface;if(P)_.bz(new _.D0("[MiniAppContainerViewModel] onEnter was called more than once"));else{P=!0;g=new eAf(L3,iw,Tv,document.visibilityState==="visible");N6v(g);Y=new HP1(L3);uFO(Q,L3);T6w(e,{showMiniAppAdCommand:q().showMiniAppAdCommand,isEmbeddedInWebview:q().isEmbeddedInWebview,playLogger:g});AxW()&&(z=document.body.style.backgroundColor,_.SL(document.body,"background-color","black"));SJ();Iy();d=new _.i1;
if(q().isEmbeddedInWebview){if(L3=(new URLSearchParams(window.location.search)).get("postPlayNonce"))RAr(g,L3),rf=!0;J.initialize({onAudioStateLoaded:function(lw){OT(lw)},
onMuteMiniApp:function(){OT(!1)},
onUnmuteMiniApp:function(){OT(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(lw){rf||(RAr(g,lw),rf=!0)},
confirmExitMiniApp:function(){var lw,Z4,Ks;return _.p(function(yS){if(yS.nextAddress==1)return q().confirmExitMiniAppCommand?yS.yield(Promise.race([d.promise,Promise.resolve(!1)]),2):yS.return();(lw=yS.yieldResult)?!q().confirmExitMiniAppCommandEdu||(Ks=(Z4=gx)==null?void 0:Z4())!=null&&Ks?X$(q().confirmExitMiniAppCommand):(X$(q().confirmExitMiniAppCommandEdu),_.A8("exit-mini-app-seen-state","true",2592E6)):X$(q().closeMiniAppCommand);_.WA(yS)})},
onNativeBenchmarkingMessageReceived:function(lw){lw=xJ1(_.mf$(lw));if(_.z3(lw,_.HZ,3,Wcx)){var Z4=_.Hi(lw,_.HZ,3,Wcx),Ks=yyu();var yS=ba(Ks.getSeconds())-ba(Z4.getSeconds());Z4=_.pr(Ks,2)-_.pr(Z4,2);yS<0&&Z4>0?(yS+=1,Z4-=1E9):yS>0&&Z4<0&&(--yS,Z4+=1E9);yS=(new qz).setSeconds(yS);yS=_.cs(yS,2,_.uw(Z4),0);_.My(lw,1,yS)}var jg;(jg=N)==null||jg.returnNativeBenchmarkingMessage(lw)},
multiplayer3pAckStateLoaded:function(lw){dx(lw)},
exitMiniAppSeenStateLoaded:function(lw){q().confirmExitMiniAppCommandEdu&&Hf(lw)},
onNavigateToNewMiniApp:function(){X$(q().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(lw){lw=new URLSearchParams(lw);var Z4=void 0;lw.has("invite_code")&&(Z4=new b4e,lw=lw.get("invite_code"),Z4=_.OF(Z4,1,lw));if(lw=Z4){var Ks;(Ks=N)==null||Ks.sendGameData(lw)}},
onPauseMiniApp:function(){u=!0;ND()},
onResumeMiniApp:function(){u=!0;Pn()},
onAdFinished:function(lw){e.onAdFinished(lw)}});
q().showMultiplayer3pConsentDialogCommand||d.resolve(!0);X$(q().onContainerReadyCommand)}else RAr(g),d.resolve(!0);mI1(Y,ZPz(g));ZPz(g).then(function(lw){lw={miniAppPlayData:{postPlayNonce:lw}};var Z4,Ks=(Z4=q().loggingDirectives)==null?void 0:Z4.trackingParams;Ks&&_.DP().stateChanged(Ks,lw)});
L3=q().showSignInDialogCommand;!UG_()&&L3&&(_.A8("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),X$(L3));q().confirmExitMiniAppCommand&&K&&(L3=mGy(q().confirmExitMiniAppCommand))&&(K.customConfirmationCommand=L3)}},zv=function(){z&&_.SL(document.body,"background-color",z);
T=!1;k&&k.release();Y.flush().catch(function(L3){_.bz(L3)});
Q.flush().catch(function(L3){_.bz(L3)});
iPr(g);oE();N=void 0;Jlj(a)},R2=function(){sM(!1);
zv();cy(!1);gL(void 0);Rj(void 0);DQ(void 0);Zv=0;pe(0);P=!1},ND=function(){var L3;
(L3=N)==null||L3.onPause();k&&k.release();Y.flush().catch(function(iw){_.bz(iw)});
Q.flush().catch(function(iw){_.bz(iw)});
w01(g);Ev(!0)},Pn=function(){var L3;
(L3=N)==null||L3.onResume();Iy();L3=g;L3.isForeground=!0;RS(L3,"PLAY_EVENT_TYPE_PLAY_RESUME");Ev(!1)},OT=function(L3){var iw;
(iw=N)==null||iw.onAudioToggled(L3);df(L3)},dx=function(L3){q().showMultiplayer3pConsentDialogCommand&&(q().isEmbeddedInWebview&&L3!==void 0&&d.resolve(L3),!L3&&_.vUv()==="mini_app"&&X$(q().showMultiplayer3pConsentDialogCommand))},$7=function(){var L3,iw,Tv,lw;
return _.p(function(Z4){if(Z4.nextAddress==1){!q().isLivestream||q().disableVideoCapture||(L3=N)!=null&&L3.sendStartGameFrameCapture();iw=(new URL(window.location.href)).searchParams;if(iw.has("invite_code")){var Ks=new b4e,yS=iw.get("invite_code");Tv=_.OF(Ks,1,yS);(lw=N)==null||lw.sendGameData(Tv)}Zw()||(cy(!0),Ks=g,Ks.state!==1?_.bz(new _.D0("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+p01[Ks.state])):(_.ev("mini_app_ids_without_game_ready").includes(Ks.JSC$16884_miniAppId)&&(Ks.gameReady=
!0),Ks.state=2,Ks.beforeReady=!1,ZG(Ks,"ma_ffr"),RS(Ks,"PLAY_EVENT_TYPE_PLAY_READY")));return Z4.yield(d.promise,2)}X$(q().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();q().isEmbeddedInWebview||dx();_.WA(Z4)})},h9=function(){var L3=g;
L3.gameReady=!0;ZG(L3,"ma_gr")},JQ=function(L3){var iw;
return _.p(function(Tv){if(Tv.nextAddress==1)return _.zg(Tv,2),Tv.yield(bPr(Y,L3),4);if(Tv.nextAddress!=2)return _.LE(Tv,0);iw=_.Gg(Tv);X$(q().showSavingErrorPopupCommand);throw iw;})},tf=function(){var L3,iw;
return _.p(function(Tv){if(Tv.nextAddress==1)return _.zg(Tv,2),Tv.yield($Id(Y),4);if(Tv.nextAddress!=2)return L3=Tv.yieldResult,Tv.return(L3);iw=_.Gg(Tv);X$(q().showLoadingErrorDialogCommand);throw iw;})},lQ=function(L3){g.logError(L3)},yF=function(L3,iw,Tv){E$d(g,L3,iw,Tv)},Wt=function(L3,iw){o$C(g,L3,iw)},Es=function(){!t&&q().isEmbeddedInWebview||_.gO();
kzE(g,!0);T||(window.addEventListener("beforeunload",kP,{capture:!0}),T=!0)},WD=function(L3){var iw,Tv,lw,Z4,Ks,yS,jg;
return _.p(function(PD){if(PD.nextAddress==1)return Q&&(!r||r<L3)&&L3>0?PD.yield(sqC(Q,L3),3):PD.jumpTo(0);iw=PD.yieldResult;Tv=_.X(iw);lw=Tv.next().value;Z4=Tv.next().value;Ks=lw;yS=Z4;((jg=Ks)==null?0:jg.displayString)&&yS&&(Rj(yS),DQ(Ks.displayString));_.WA(PD)})},Dv=function(L3){var iw=q().onBenchmarkingMessageReceivedCommand;
if(iw){var Tv=yyu();_.T9(L3,3,Wcx,Tv);$i(iw,AaO(L3))}},$P=function(L3){var iw=q().onGameFrameReceivedCommand;
if(iw){var Tv=new Uq;var lw=new ncz;var Z4=Oa(L3,1);lw=_.Gm(lw,1,Z4);L3=_.xB(L3,2);L3=_.OF(lw,2,L3);Tv=_.My(Tv,2,L3);$i(iw,Dgj(Tv))}},SW=function(L3){var iw=q().onGameAudioDataReceivedCommand;
if(iw){var Tv=new Uq;var lw=new TgE;L3=_.xB(L3,1);lw=_.OF(lw,1,L3);Tv=_.My(Tv,4,lw);$i(iw,Dgj(Tv))}},kO=function(){var L3=new URLSearchParams(window.location.search);
if(q().isEmbeddedInWebview&&L3&&L3.get("override_hl")==="true"&&L3.get("hl"))return L3.get("hl");L3=document.documentElement.lang;return L3!==""?L3:_.Kj},ZQ=function(L3){var iw=q().onShareInviteCodeCommand;
if(iw)if(q().isEmbeddedInWebview){var Tv=new hMn;L3=_.OF(Tv,1,L3);$i(iw,BXe(L3))}else Tv=q().inviteCodeShareClientParamIdentifier,a.clientParams.set(Tv,{miniAppClientParams:{inviteCode:L3}}),X$(iw)},AQ=function(L3){var iw,Tv,lw;
return _.p(function(Z4){if(Z4.nextAddress==1)return iw=q().onMiniAppOpenYtContentRequested,Q&&_.E("enable_open_yt_content")&&iw?Z4.yield(g6C(Q,L3),3):Z4.jumpTo(0);Tv=Z4.yieldResult;if(Tv==="OK")if(q().isEmbeddedInWebview){var Ks=new kUE;lw=ke(Ks,2,V5,k7(L3));$i(iw,ocC(lw))}else S.clientData.set("video_id",L3),X$(iw);_.WA(Z4)})},MD=function(L3){Zv+=_.pr(L3,3);
L3=Math.min(Math.log(1+Zv/15E6*9)/Math.log(10),.99);pe(L3);ne(L3)},ne=_.ON(function(L3){var iw=q().updateLoadingProgressCommand;
if(iw){var Tv=new kUE;L3=ke(Tv,3,V5,_.SC(L3));$i(iw,ocC(L3))}},100),oj=function(L3){return DIw(e,L3)},Iy=function(){var L3,iw;
((L3=_.r2u())==null?void 0:(iw=L3.wakeLock)==null?void 0:iw.request)!=null&&_.r2u().wakeLock.request("screen").then(function(Tv){k=Tv}).catch(function(){})},ie=_.qL("iframe");
_.AO(function(){q().isSupportedCountry&&(UG_()||_.E("enable_sign_in_promo")||!q().showSignInDialogCommand?ie.value&&T0(ie.value):X$(q().onMiniAppReadyCommand))},"ASuFde");
var Nn=function(){return _.Z("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Zw()?0:-1},
el:ie})},T0=function(L3,iw){iw=iw===void 0?!1:iw;
var Tv=Cq();Tv&&(iw||Tv.toString()!==L3.getAttribute("src"))&&(N=aIy(q().source,{isAudioEnabled:o_,onFirstFrameReady:$7,onGameReady:h9,onSave:JQ,onLoad:tf,onError:lQ,onSdkCalled:yF,onSdkPerformanceUpdate:Wt,onClick:Es,onSendHighScore:WD,onBenchmarkingMessageReceived:Dv,getLanguage:kO,onShareInviteCode:ZQ,onResourceLoaded:MD,onOpenYTContent:AQ,onShowMiniAppAd:oj,onGameFrameReceived:$P,onGameAudioReceived:SW},L3,Tv),P9(L3,"load",function(){ZG(g,"ma_il");P9(L3,"load",function(){T0(L3,!0)})}),_.aK(L3,
Tv))},Cq=function(){var L3=q().url;
if(L3&&(L3=_.$w(L3),L3!==null)){if(q().source&&q().source==="MINI_APP_SOURCE_GAMESNACKS")L3=_.Na(L3,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.E("enable_origin_query_parameter_bugfix")){var iw=_.Tx(_.xWA(L3.toString()));iw=new URLSearchParams(iw||"");iw.set("origin",window.location.origin);iw=iw.toString();L3=_.PS(L3).toString();L3=_.OS(HeC.exec(L3)[0]+(iw.trim()?"#"+iw:""))}return L3}},be=function(){var L3={};
L3=_.Ec("yt-mini-app-container-view-model__loading-screen",(L3["yt-mini-app-container-view-model__loading-screen--fade-out"]=Zw,L3));var iw=function(){return Zw()?1:F3()};
return _.Z("div",{class:L3},_.Z(_.Tl,{data:function(){return q().splashScreen}},{miniAppSplashScreenViewModel:function(Tv){return _.Z(KPv,{data:Tv.data,
loadingProgress:iw})}}))},dP=function(){var L3={};
return _.Z("div",{class:_.Ec("yt-mini-app-container-view-model__pause-interstitial",(L3["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!FL()},L3["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=FL,L3))},_.Z(_.Tl,{data:function(){return q().splashScreen}},{miniAppSplashScreenViewModel:function(iw){return _.Z(KPv,{data:iw.data,
forPaused:!0})}}))},SJ=function(){w=[];
w.push(_.Ic(window,"visibilitychange",function(){v||u&&wJ()||(document.visibilityState==="visible"?Pn():ND())}));
w.push(_.Ic(window,"pagehide",function(){zv()}));
w.push(_.Ic(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Bf.value.dispatchEvent(new Event("tap"))},0)}));
w.push(_.Ic(Bf.value,"pointerdown",function(){kzE(g,!1)},!0));
w.push(_.Ic(Bf.value,"pause",function(){v=!0;ND()}));
w.push(_.Ic(Bf.value,"play",function(){v=!1;Pn()}));
w.push(_.Ic(Bf.value,"exit",function(){zv()}));
var L3=navigator.keyboard,iw=L3&&L3.lock;w.push(_.Ic(window,cnO,function(){z1(qBE());qBE()?(q().hasPlayNextShelf&&Ne("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),OO("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),iw&&L3.lock(["Escape"])):(q().hasPlayNextShelf&&OO("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Ne("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),iw&&L3.unlock())}));
q().showMultiplayer3pConsentDialogCommand&&w.push(_.Ic(window,"yt-playables-ack-3p-data-usage",function(){lUx(Q)}));
q().confirmExitMiniAppCommandEdu&&w.push(_.Ic(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.A8("exit-mini-app-seen-state","true",2592E6)}));
q().onGameAudioDataReceivedCommand&&w.push(_.Ic(window,"message",function(Tv){Tv=Tv.event_;var lw,Z4=(lw=ie.value)==null?void 0:lw.src;if(Z4&&Tv.origin===(new URL(Z4)).origin&&Tv.data&&Tv.data.type==="GAME_AUDIO"&&Tv.data.audio&&Tv.data.audio.length>0)if(_.E("enable_sending_unwrapped_game_audio_as_serialized_metadata"))dG3(q().onGameAudioDataReceivedCommand,Tv.data.audio);else{var Ks=new FileReader;Ks.onload=function(){var yS=new Uq;var jg=new TgE;jg=_.OF(jg,1,Ks.result);yS=_.My(yS,4,jg);$i(q().onGameAudioDataReceivedCommand,
Dgj(yS))};
Ks.readAsDataURL(new Blob([Tv.data.audio]))}}))},oE=function(){w.forEach(function(L3){xb(L3)});
window.removeEventListener("beforeunload",kP,{capture:!0})},X$=function(L3){L3&&bD_(L3,q().isEmbeddedInWebview||!1)},OO=function(L3,iw){L3=_.X(Bf.value.getElementsByClassName(L3));
for(var Tv=L3.next();!Tv.done;Tv=L3.next())Tv.value.classList.add(iw)},Ne=function(L3,iw){L3=_.X(Bf.value.getElementsByClassName(L3));
for(var Tv=L3.next();!Tv.done;Tv=L3.next())Tv.value.classList.remove(iw)};
return function(){var L3={};L3=_.Ec("yt-mini-app-container-view-model",(L3["yt-mini-app-container-view-model--desktop"]=!0,L3["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return q().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},L3["yt-mini-app-container-view-model--ios-web-view"]=AxW(),L3["yt-mini-app-container-view-model--no-top-bar"]=function(){return!q().topBar},L3["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return q().hasPlayNextShelf},L3["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return q().hasPlayNextShelf},L3["yt-mini-app-container-view-model--show-peek-below"]=function(){return!e5()&&q().hasPlayNextShelf},L3));
var iw={};iw=_.Ec("yt-mini-app-container-view-model__content",(iw["yt-mini-app-container-view-model__content--desktop-content"]=!0,iw["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return q().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},iw["yt-mini-app-container-view-model--desktop-play-page"]=function(){return q().hasPlayNextShelf},iw));
return _.Z("mini-app-container-view-model",{el:Bf},_.Z("div",{class:L3},_.Z(_.R,{cond:function(){return q().topBar&&!e5()},
then:function(){return _.Z(_.Tl,{data:function(){return q().topBar}},{miniAppTopBarViewModel:function(Tv){return _.Z(qUJ,{data:Tv.data,
isAudioEnabled:o_,onAudioToggled:function(lw){OT(lw)},
score:wx,formattedScore:xO,onScoreChanged:function(lw){r=lw},
isEmbeddedInWebview:wJ,isSaved:qD,onSaveToggled:function(lw){gL(lw)},
isExitMiniAppSeen:gx,isDesktopPlayPage:Dw})}})}}),_.Z("div",{class:iw},_.Z(_.R,{cond:fe,
then:function(){return Nn()}}),_.Z(_.R,{cond:function(){return q().isLivestream},
then:function(){return dP()}}),_.Z(_.R,{cond:function(){return!q().isEmbeddedInWebview},
then:function(){return be()}}))))}()},"xe");
X7r.idomCompat=!0;_.ei(X7r,"mini-app-container-view-model",{props:{data:_.NH}});var YUz=_.ld(function(F){var q=F.data;return _.Z("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.Z("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.zq(function(){var t=q().onTap;t&&_.L9(t)})},_.Z(_.R,{cond:function(){return q().icon},
then:function(t){return _.Z(_.Tq,{icon:function(){return t().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.Z("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return q().title})))},"ye");
YUz.idomCompat=!0;var p7O=_.ld(function(F){var q=_.FG("div"),t=_.X(_.N3(void 0,void 0,"dg3xff")),u=t.next().value,J=t.next().value;t=_.X(_.N3(void 0,void 0,"AgHNfc"));var g=t.next().value,Y=t.next().value;t=_.X(_.N3(void 0,void 0,"fuTKCc"));var Q=t.next().value,e=t.next().value,r=function(){var H=u();return H!==void 0?Math.abs(H):void 0},N=function(){var H=r();
return H===void 0||H<=3},w=function(){var H=r();
var d=g(),a=Q();H=H!==void 0&&d!==void 0&&a!==void 0?d-a-H:void 0;return H===void 0||H<=3},k=function(H){q.value&&q.value.scrollBy({top:0,
left:(_.bn("HTML_DIR")==="rtl"?-1:1)*H*q.value.clientWidth,behavior:"smooth"})},z=function(){var H;
J((H=q.value)==null?void 0:H.scrollLeft);var d;Y((d=q.value)==null?void 0:d.scrollWidth);var a;e((a=q.value)==null?void 0:a.clientWidth)},T=function(){k(-.5)},P=function(){k(.5)};
t=_.zq(function(){z()});
_.AN(function(){z();if(q.value&&window.ResizeObserver){var H=new ResizeObserver(z);H.observe(q.value);_.vj(function(){H.disconnect()})}});
var v={};return _.Z("yt-sponsorships-scrollable-shelf",{class:_.Ec("ytdSponsorshipsScrollableShelfHost",F.className)},_.Z("div",{class:_.Ec("ytdSponsorshipsScrollableShelfContent",(v.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return F.data().previousButton&&F.data().nextButton&&!N()&&!w()},v.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return F.data().previousButton&&!N()&&w()},v.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return F.data().nextButton&&
N()&&!w()},v)),
el:q,"on:scroll":t},F.children),_.Z(_.R,{cond:function(){return!N()},
then:function(){return _.Z(_.Tl,{data:function(){return F.data().previousButton}},{buttonViewModel:function(H){return _.Z(_.AB,{data:H.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:T})}})}}),_.Z(_.R,{cond:function(){return!w()},
then:function(){return _.Z(_.Tl,{data:function(){return F.data().nextButton}},{buttonViewModel:function(H){return _.Z(_.AB,{data:H.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:P})}})}}))},"ze");
p7O.idomCompat=!0;var e5j=_.ld(function(F){var q=F.data;F={};return _.Z("yt-sponsorships-hub",{class:_.Ec("ytdSponsorshipsHubHost",(F.ytdSponsorshipsHubHostIndented=function(){return q().indented},F))},_.Z("div",{class:"ytdSponsorshipsHubHeader"},_.Z("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.Z("div",{class:"ytdSponsorshipsHubAvatar"},_.Z(_.Tl,{data:function(){return q().avatar}},{avatarViewModel:_.FJ})),_.Z(_.R,{cond:function(){return q().badgeImage},
then:function(t){return _.Z("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.Z("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.Z("div",{class:"ytdSponsorshipsHubBadge"},_.Z(_.sc,{data:t,targetWidth:24,targetHeight:24,alt:""}))))}})),_.Z("div",{class:"ytdSponsorshipsHubDetails"},_.Z("div",{class:"ytdSponsorshipsHubTierName"},function(){return q().tierName}),_.Z("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return q().membershipType}),_.Z("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return q().membershipDurationOrExpiry})),_.Z("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.Z(_.Tl,{data:function(){return q().manageButton}},{buttonViewModel:function(t){return _.Z(_.AB,{data:t.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.Z(_.Tl,{data:function(){return q().actionMenuButton}},{buttonViewModel:function(t){return _.Z(_.AB,{data:t.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.Z("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return q().perksTitle}),_.Z(p7O,{data:function(){return{previousButton:q().previousPerkButton,
nextButton:q().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.Z("div",{class:"ytdSponsorshipsHubPerkCards"},_.Z(_.Tl,{data:function(){return q().perkCards}},{sponsorshipsHubPerkCardViewModel:YUz}),_.Z(_.R,{cond:function(){return q().viewAllPerksButton},
then:function(t){return _.Z(Qqd,{data:t})}}))))},"Ae");
e5j.idomCompat=!0;var Qqd=_.ld(function(F){var q=F.data;return _.Z("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.Z(_.Tl,{data:function(){return q().button}},{buttonViewModel:_.AB}),_.Z("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.Z("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return q().title}),_.Z("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return q().subtitle})))},"Be");
Qqd.idomCompat=!0;_.ei(e5j,"yt-sponsorships-hub",{props:{data:_.NH}});_.Zcx=_.ld(function(F){var q=F.data;return _.Z("yt-dual-avatar-view-model",{class:_.Ec("ytDualAvatarViewModelHost",F.className),style:_.Mo({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var t;return((t=q().badgeCutoutRadius)!=null?t:14)+"px"}})},_.Z("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.Z(_.Tl,{data:function(){return q().startAvatar}},{avatarViewModel:_.FJ}),_.Z(_.Tl,{data:function(){return q().endAvatar}},{avatarViewModel:_.FJ})),_.Z(_.Tl,{data:function(){return q().badge}},
{contentPreviewImageViewModel:function(t){return _.Z("div",{class:"ytDualAvatarViewModelBadge"},_.Z(_.Gj,{data:t.data}))}}))},"Ce");
_.Zcx.idomCompat=!0;var rlO=_.ld(function(F){var q=F.data;var t,u=!((t=_.sV().resolve(_.JU(_.qo)))==null||!t());F=_.zy(function(){var N,w,k=u?(N=q().header)==null?void 0:N.backgroundColorDarkMode:(w=q().header)==null?void 0:w.backgroundColorLightMode;if(k!==void 0)return _.KG(k)},void 0,"TDdh7d");
t=_.zy(function(){var N,w;return u?(N=q().header)==null?void 0:N.backgroundImagePart1Dark:(w=q().header)==null?void 0:w.backgroundImagePart1Light},void 0,"X0peMe");
var J=_.zy(function(){var N,w;return u?(N=q().header)==null?void 0:N.backgroundImagePart2Dark:(w=q().header)==null?void 0:w.backgroundImagePart2Light},void 0,"an0Hzd"),g=_.zy(function(){return _.bn("HTML_DIR")==="rtl"},void 0,"BltEgb"),Y=_.FG("yt-sponsorships-perks-list"),Q=!1,e=function(){var N=Y.value;
if(N&&!Q){var w,k=(w=N.parentElement)==null?void 0:w.parentElement;if(k)for(N=N.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),w=0;w<N.length;++w){var z=N[w];if(z instanceof HTMLElement){k.scrollTo({top:z.offsetTop+z.clientHeight/2-k.clientHeight/2,behavior:"smooth"});Q=!0;break}}}};
_.v_(function(){var N=Y.value;if(N&&window.ResizeObserver){var w=new ResizeObserver(e);w.observe(N);_.vj(function(){w.disconnect()})}});
var r={};return _.Z("yt-sponsorships-perks-list",{el:Y,class:_.Ec("ytdSponsorshipsPerksListHost",(r.ytdSponsorshipsPerksListHorizontalPadding=function(){return q().horizontalPaddingEnabled},r))},_.Z("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.Z("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Mo({"background-color":F})},_.Z("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.Z(_.R,{cond:t,then:function(N){var w={};return _.Z("div",{class:_.Ec((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=u,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!u,w.ytdSponsorshipsPerksListFlipped=g,w))},_.Z(_.sc,{data:N,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.Z("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.Z(_.R,{cond:J,
then:function(N){var w={};return _.Z("div",{class:_.Ec((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=u,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!u,w.ytdSponsorshipsPerksListFlipped=g,w))},_.Z(_.sc,{data:N,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.Z("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.Z(_.Tl,{data:function(){var N;
return(N=q().header)==null?void 0:N.dualAvatar}},{dualAvatarViewModel:_.Zcx})))),_.Z("div",{class:"ytdSponsorshipsPerksListBody"},_.Z("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return q().title}),_.Z(_.R,{cond:function(){return q().perks},
then:function(N){return _.Z(_.Gn,{each:N},function(w,k){var z={};return _.Z("div",{class:_.Ec("ytdSponsorshipsPerksListPerkContainer",(z.ytdSponsorshipsPerksListSelectedPerk=function(){var T=k(),P=q().selectedPerkIndex;return T===P},z))},_.Z(_.R,{cond:function(){return k()>0},
then:function(){return _.Z("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.Z("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.Z(_.R,{cond:function(){return w.icon},
then:function(T){return _.Z(_.Tq,{icon:function(){return T().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.Z("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.Z("div",{class:"ytdSponsorshipsPerksListPerkTitle"},w.title),_.Z("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.Z(_.rv,{text:w.description})),_.Z(_.R,{cond:function(){return w.instructions},
then:function(){var T,P;return _.Z("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.Z("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(T=w.instructions)==null?void 0:T.title),_.Z("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.Z(_.rv,{text:(P=w.instructions)==null?void 0:P.text})))}}))),_.Z(_.R,{cond:function(){return w.emoji},
then:function(T){return _.Z("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.Z(_.Gn,{each:function(){return T()}},function(P){return _.Z(_.sc,{data:P,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.Z(R5z,{data:w}))})}})))},"De");
rlO.idomCompat=!0;var R5z=_.ld(function(F){var q=F.data;var t=function(Y,Q){return Y===Q},u=function(){var Y=q();
Y=_.n(Y==null?void 0:Y.badgesShelf,t9L);return Y!==void 0&&Y!==null?Y:{previousButton:{},nextButton:{}}},J=_.qL("div"),g=function(){var Y=J.value;
if(Y){var Q=Y.parentElement;if(Q){Y=Y.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var e=0;e<Y.length;++e){var r=Y[e];if(r instanceof HTMLElement){Q.scrollTo({left:r.offsetLeft+r.clientWidth/2-Q.clientWidth/2,behavior:"instant"});break}}}}};
_.v_(function(){var Y=J.value;if(Y){var Q=new ResizeObserver(g);Q.observe(Y);_.vj(function(){Q.disconnect()})}});
return _.Z("div",null,_.Z(_.R,{cond:function(){return q().badges},
then:function(Y){return _.Z(p7O,{data:u},_.Z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:J},_.Z(_.Gn,{each:function(){return Y()}},function(Q,e){var r={},N={},w={};
return _.Z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.Z(_.R,{cond:function(){return e()>0},
then:function(){return _.Z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.Z("div",{class:_.Ec("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(r.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return t(e(),q().currentBadgeIndex)},r.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!t(e(),q().currentBadgeIndex)},r))},_.Z("div",{class:_.Ec("ytdSponsorshipsPerksListLoyaltyBadge",(N.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return t(e(),
q().currentBadgeIndex)},N.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!t(e(),q().currentBadgeIndex)},N))},_.Z(_.R,{cond:function(){return Q.image},
then:function(k){var z={};return _.Z("div",{class:_.Ec((z.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return t(e(),q().currentBadgeIndex)},z.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!t(e(),q().currentBadgeIndex)},z))},_.Z(_.sc,{data:k,
alt:""}))}})),_.Z("div",{class:_.Ec("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(w.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return t(e(),q().currentBadgeIndex)},w))},Q.title)))})))}}))},"Ee");
R5z.idomCompat=!0;_.ei(rlO,"yt-sponsorships-perks-list",{props:{data:_.NH}});_.ei(_.ld(function(F){return _.Z("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.Z(_.R,{cond:function(){return F.data().image},
then:function(q){return _.Z(_.sc,{className:"ytwFantasyEmptyStateViewModelImage",data:q,ariaHidden:!0,alt:""})}}),_.Z(_.rv,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return F.data().title}}),_.Z(_.rv,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return F.data().subtitle}}),_.Z(_.Tl,{data:function(){return F.data().primaryButton}},{buttonViewModel:function(q){return _.Z(_.AB,{data:q.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Fe"),"ytw-fantasy-empty-state-view-model",{props:{data:_.NH}});var NlL;var w7x=_.ld(function(F){var q=F.data;var t=F.uniqueId;var u=F.overrides;F=_.zy(function(){var J,g=((J=q().timedAnimationData)==null?void 0:J.animationTiming)||[];return{uniqueId:t(),timings:g,experimentEnabled:g.length>0,enabled:g.length>0}},void 0,"hiuXI");
return _.Z("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.Z(RyE,{settings:F},_.Z(_.Tl,{data:function(){return q().buttonRenderer}},{buttonRenderer:function(J){return _.Z(_.Ni,{data:J.data,
buttonOverrides:u})}})))},"Ge");
w7x.idomCompat=!0;_.ei(w7x,"timed-animation-button-renderer",{props:{data:_.NH,uniqueId:_.NH,overrides:_.NH}});var E0=function(){var F=_.x.apply(this,arguments)||this;F.hideJoinButtonBeforeSubscribed=_.E("hide_join_button_before_subscribed");F.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return F};
_.M(E0,_.x);_.l=E0.prototype;_.l.hasShowDialogCommand=function(F){return!!_.n(F,XPE)};
_.l.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"}}}};
_.l.updateJoinButtonOverrides=function(){var F,q;(F=_.ep(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(q=F.polymerController)==null||q.set("overrides",this.joinButtonOverrides);if(F=_.ep(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))F.overrides=this.joinButtonOverrides};
_.l.handleButtonRefreshAction=function(F){if(F=_.n(F,y$z))this.set("data.membershipButton",F.membershipButton),this.notifyPath("data.membershipButton")};
_.l.onYtServiceRequestError=function(F){_.as(this.hostElement,F.detail.error.message)};
_.l.onKeydown=function(F){if(F.key==="Enter"){var q;(q=this.data)!=null&&q.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.l.handleUnsubscribeAction=function(){var F,q,t;((F=this.data)==null?void 0:(q=F.membershipButton)==null?void 0:(t=q.buttonRenderer)==null?void 0:t.style)==="STYLE_PRIMARY"&&_.ep(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.JJ.Object.defineProperties(E0.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.subscriptionStateEntity)==null||!F.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var F,q=(F=this.data)==null?void 0:F.membershipButton,t;F=(q==null?void 0:q.buttonRenderer)||_.n(q==null?void 0:(t=q.timedAnimationButtonRenderer)==null?void 0:t.buttonRenderer,_.th);return(F==null?void 0:F.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(F==null?void 0:F.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(F==null?void 0:F.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var F;if(this.hasShowDialogCommand((F=this.data)==null?void 0:F.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var F;if(this.hasShowDialogCommand((F=this.data)==null?void 0:F.navigationEndpoint))return"button"}}});
E0.prototype.onYtServiceRequestError=E0.prototype.onYtServiceRequestError;E0.prototype.updateJoinButtonOverrides=E0.prototype.updateJoinButtonOverrides;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],E0.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],E0.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.s9),_.V("design:type",Object)],E0.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],E0.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.Sq),_.V("design:type",Object)],E0.prototype,"ironButtonState",void 0);_.C([_.O(),_.V("design:type",Object)],E0.prototype,"data",void 0);_.C([_.W("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],E0.prototype,"hideJoin",null);
_.C([_.O(),_.V("design:type",String)],E0.prototype,"subscribeKey",void 0);_.C([_.O({selectorArgs:["subscribeKey"],selector:KU_}),_.V("design:type",Object)],E0.prototype,"subscriptionStateEntity",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],E0.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.C([_.W("subscriptionStateEntity"),_.O({reflectToAttribute:!0}),_.V("design:type",Object),_.V("design:paramtypes",[])],E0.prototype,"subscribed",null);
_.C([_.W("subscribed","data.membershipButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],E0.prototype,"joinButtonOverrides",null);_.C([_.W("data.navigationEndpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],E0.prototype,"channelNameTabIndex",null);_.C([_.W("data.navigationEndpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],E0.prototype,"channelNameRole",null);
_.C([_.za("joinButtonOverrides"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E0.prototype,"updateJoinButtonOverrides",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],E0.prototype,"onYtServiceRequestError",null);_.C([_.m({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],E0);
var icx=_.rc()(E0,"ytd-video-owner-renderer",function(){if(NlL===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);NlL=F}F=NlL;return F},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.ei(_.ld(function(F){var q=F.data;var t;F=_.X(_.N3(!((t=_.vG("yt-mini-app-is-theater-mode-enabled"))==null||!t),void 0,"i2pjVd"));var u=F.next().value,J=F.next().value;t=_.X(_.N3(!1,void 0,"ga7V5c"));var g=t.next().value,Y=t.next().value;_.v_(function(){var r=_.Ic(window,cnO,function(){Y(qBE())});
_.vj(function(){xb(r)})});
var Q;t=(Q=_.sV().resolve(_.JU(djx)))!=null?Q:function(){return _.Z("div",null)};
_.c2("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){J(!0);_.A8("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.c2("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){J(!1);_.A8("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
Q={};F={};var e={};return _.Z("mini-app-play-page-renderer",{class:_.Ec("miniAppPlayPageRendererHost",(Q.miniAppPlayPageRendererHostDetailsView=function(){return!u()},Q))},_.Z("div",{class:_.Ec("miniAppPlayPageRendererGameContainer",(F.miniAppPlayPageRendererGameContainerDetailsView=function(){return!u()},F))},_.Z(_.Tl,{data:function(){return q().containerViewModel}},{miniAppContainerViewModel:X7r}),_.Z(_.R,{cond:function(){return q().channel&&q().subscribeButton},
then:function(){var r={};return _.Z("div",{class:_.Ec("miniAppPlayPageRendererChannelContainer",(r.miniAppPlayPageRendererHideVisibility=function(){return g()},r))},_.Z(_.Tl,{data:function(){return q().channel}},{videoOwnerRenderer:function(N){return _.Z(icx,{data:N.data})}}),_.Z(_.Tl,{data:function(){return q().subscribeButton}},{subscribeButtonViewModel:function(N){return _.Z(_.FO,{data:N.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.Z(_.R,{cond:function(){return!u()&&q().description},
then:function(){var r={};return _.Z("div",{class:_.Ec("miniAppPlayPageRendererMiniAppDescriptionWrapper",(r.miniAppPlayPageRendererHideVisibility=function(){return g()},r))},_.Z("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return q().description}))}})),_.Z("div",{class:_.Ec("miniAppPlayPageRendererPlayNextContainer",(e.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!u()},e.miniAppPlayPageRendererHideVisibility=function(){return g()},e))},_.Z(_.Tl,{data:function(){return q().sectionList}},
{sectionListRenderer:t})))},"He"),"mini-app-play-page-renderer",{props:{data:_.NH}});var zf=function(){var F=_.x.apply(this,arguments)||this;F.isSearch=!1;F.isConstrainedList=!1;F.hasChipsBar=!1;F.inReplyPanel=!1;F.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};F.monitorScroll=!0;F.SCROLL_ANIMATION_DURATION_MS=300;F.nextContinuation={continuationType:"sectionListContinuation"};return F};
_.M(zf,_.x);_.l=zf.prototype;
_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(F){switch(F.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.E("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.E("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.l.created=function(){var F=this;this.JSC$17024_scrollAnimation=new _.QD(function(q){F.hostElement.scrollTop=q})};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.l.getItemsPath=function(){return"data.contents"};
_.l.replacePrimaryContent=function(F){this.set("data.contents",F)};
_.l.computeHasSortFilter=function(F){return!!F&&!!F.sortFilterSubMenuRenderer};
_.l.computeShouldScrollInPanel=function(F){var q;return!!(F==null?0:(q=F.scrollPaneStyle)==null?0:q.scrollable)};
_.l.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.RE(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.l.scrollToTop=function(){this.hostElement.scrollTop=0};
_.l.scrollToItemSection=function(F){if(F=this.getItemByIdentifier(F))F=this.getScrollPositionForItem(F),this.hostElement.scrollTop!==F&&this.JSC$17024_scrollAnimation.start(this.hostElement.scrollTop,F,this.SCROLL_ANIMATION_DURATION_MS)};
_.l.getItemByIdentifier=function(F){var q=this.contents.querySelectorAll("ytd-item-section-renderer");if(q&&q.length!==0){var t=Array.from(q).findIndex(function(u){return u.sectionIdentifier===F});
return q[t===-1?0:t]}};
_.l.getScrollPositionForItem=function(F){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===F)return 0;F=_.dh(F).y+this.hostElement.scrollTop-_.dh(this.hostElement).y;return Math.min(F,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.JJ.Object.defineProperties(zf.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.targetId)==="browse-feedFEclips"}}});
zf.prototype.onScroll=zf.prototype.onScroll;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.DO.YtLazyListBehavior),_.V("design:type",Object)],zf.prototype,"ytLazyListBehavior",void 0);_.C([_.D(_.eH.YtNextContinuationBehavior),_.V("design:type",Object)],zf.prototype,"ytNextContinuationBehavior",void 0);
_.C([_.D(_.sxx),_.V("design:type",Object)],zf.prototype,"ytBooleanLogicBehavior",void 0);_.C([_.D(_.Qd),_.V("design:type",Object)],zf.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zf.prototype,"data",void 0);_.C([_.O({value:2}),_.V("design:type",Number)],zf.prototype,"initialCount",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],zf.prototype,"autoFill",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.V("design:type",Boolean)],zf.prototype,"hasSortFilter",void 0);_.C([_.O({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.V("design:type",Boolean)],zf.prototype,"hideBottomSeparator",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.V("design:type",Boolean)],zf.prototype,"shouldScrollInPanel",void 0);
_.C([_.O(),_.V("design:type",Object)],zf.prototype,"isSearch",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zf.prototype,"isConstrainedList",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],zf.prototype,"responsiveSizing",void 0);_.C([_.O(),_.V("design:type",Object)],zf.prototype,"hasChipsBar",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],zf.prototype,"pageSubtype",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],zf.prototype,"engagementPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],zf.prototype,"liveChatEngagementPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zf.prototype,"inReplyPanel",void 0);_.C([_.Ms("#action-button"),_.V("design:type",HTMLElement)],zf.prototype,"actionButton",void 0);_.C([_.O(),_.V("design:type",Object)],zf.prototype,"scrollUpButtonData",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],zf.prototype,"engagementPanelDropdown",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],zf.prototype,"engagementPanelDialog",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],zf.prototype,"isClipList",null);_.C([_.Ms("#contents"),_.V("design:type",HTMLElement)],zf.prototype,"monitorScrollElement",void 0);_.C([_.Ms("#contents"),_.V("design:type",HTMLElement)],zf.prototype,"contents",void 0);
_.C([_.EB("scroll"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zf.prototype,"onScroll",null);_.C([_.m({is:"ytd-section-list-renderer",disableElementRegistration:!0})],zf);
var kMd=_.rc()(zf,"ytd-section-list-renderer",function(){if(CkJ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);CkJ=F}F=CkJ;return F},{mode:1});var E6E;var z5O;var o6v;var n6L;var oS=function(){return _.x.apply(this,arguments)||this};
_.M(oS,_.x);oS.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
oS.prototype.onLikeButtonClick=function(F){F.stopPropagation();F.preventDefault()};
_.JJ.Object.defineProperties(oS.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)!=null&&F.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],oS.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],oS.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],oS.prototype,"ytRendererStamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],oS.prototype,"data",void 0);
_.C([_.O({selectorArgs:["data.likeStatusEntityKey"],selector:Vh}),_.V("design:type",Object)],oS.prototype,"likeStatusEntity",void 0);_.C([_.W("data","likeStatusEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],oS.prototype,"likeButtonRenderer",null);_.C([_.m({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],oS);
_.b(oS,"ytd-slim-metadata-toggle-button-renderer",function(){if(n6L!==void 0)return n6L;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
return n6L=F},{mode:1});var n$=function(){var F=_.x.apply(this,arguments)||this;F.minimizePipBreakages=_.E("web_pip_minimize_breakages");F.showEqualizer=_.E("web_enable_playlist_video_lockup_equalizer");F.watchColorUpdate=_.E("kevlar_watch_color_update");F.actionMap={};return F};
_.M(n$,_.x);_.l=n$.prototype;_.l.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"}}}};
_.l.computeEditableClass=function(F){return F&&F.menu?"editable":""};
_.l.computeSelected=function(F){return!(F==null||!F.selected)};
_.l.computeUseColorPalette=function(F){return!!((F==null?0:F.lightColorPalette)&&(F==null?0:F.darkColorPalette))};
_.l.computeLargerPlaylistThumbs=function(F,q){return _.E("web_enable_playlist_bigger_thumbnails")&&!q};
_.l.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.l.onYtServiceRequestSent=function(F,q){q.endpoint&&this.isHideEnclosingAction(q.endpoint)&&!this.selected&&Oyf(_.YQ(),this.data.videoId)};
_.l.isHideEnclosingAction=function(F){var q=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",F);F=this.get("likeEndpoint.status",F)==="INDIFFERENT";return q||F};
_.l.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.l.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.JJ.Object.defineProperties(n$.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var F;return!!(this.withinMiniplayer&&((F=this.data)==null?0:F.actionButtons))}}});
n$.prototype.onYtServiceRequestSent=n$.prototype.onYtServiceRequestSent;n$.prototype.canReorderChanged=n$.prototype.canReorderChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],n$.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.r8),_.V("design:type",Object)],n$.prototype,"ytdLockupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],n$.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],n$.prototype,"withinMiniplayer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],n$.prototype,"minimizePipBreakages",void 0);_.C([_.O({computed:"computeSelected(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],n$.prototype,"selected",void 0);
_.C([_.O({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],n$.prototype,"useColorPalette",void 0);_.C([_.O({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.V("design:type",Boolean)],n$.prototype,"largerPlaylistThumbs",void 0);_.C([_.O(),_.V("design:type",Object)],n$.prototype,"showEqualizer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],n$.prototype,"canReorder",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],n$.prototype,"touchPersistentDragHandle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],n$.prototype,"handleIsHovered",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],n$.prototype,"watchColorUpdate",void 0);_.C([_.O(),_.V("design:type",String),_.V("design:paramtypes",[])],n$.prototype,"reorderIcon",null);
_.C([_.W("largerPlaylistThumbs"),_.V("design:type",Number),_.V("design:paramtypes",[])],n$.prototype,"thumbnailWidth",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],n$.prototype,"showActionButtons",null);_.C([_.Wh("canReorder"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n$.prototype,"canReorderChanged",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],n$.prototype,"onYtServiceRequestSent",null);_.C([_.m({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],n$);
_.b(n$,"ytd-playlist-panel-video-renderer",function(){if(o6v!==void 0)return o6v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return o6v=F},{mode:2});var Mr=function(){return _.x.apply(this,arguments)||this};
_.M(Mr,_.x);Mr.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Mr.prototype,"data",void 0);_.C([_.m({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Mr);
_.b(Mr,"ytd-playlist-panel-supported-items",function(){if(z5O!==void 0)return z5O;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return z5O=
F},{mode:1});FWf=!0;NIz("\\P{N}");var JAM;var Mmj=_.oD("END_OF_PLAYLIST",void 0,"End of playlist"),TlE=_.oD("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Tf=function(){var F=_.x.apply(this,arguments)||this;F.minimizePipBreakages=_.E("web_pip_minimize_breakages");F.updatedCoursePanel=_.E("move_three_dot_menu_to_playlist_panel_header_for_courses");F.hideHeaderText=!1;F.useColorPalette=!1;F.collapsed=!1;F.collapsedPreServerOverride="not_tracked";F.isHovered=!1;F.modernPanels=_.E("kevlar_watch_modern_panels");
F.expandLabel=_.oD("MINIPLAYER_EXPAND_LABEL");F.collapseLabel=_.oD("MINIPLAYER_COLLAPSE_LABEL");F.isFloating=!1;F.metaPanel=!1;F.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};F.currentIndex=void 0;return F};
_.M(Tf,_.x);_.l=Tf.prototype;
_.l.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"}}}};
_.l.created=function(){this.scrollThrottle=new _.LH(this.onThrottledScroll,1E3,this)};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
_.l.computeOverflowMenuData=function(F){return F&&F.menu?F.menu:null};
_.l.computeCollapsible=function(F){return!F};
_.l.computeHasPlaylistButtons=function(F){return!(!F||!F.playlistButtons)};
_.l.computeHasSeparateSaveButton=function(F){return!(!F||!F.saveButton)};
_.l.computeHasToolbarButton=function(F,q){return!(!F||!(q||F.saveButton||F.menu))};
_.l.computePlaylistType=function(F){if(F&&F.playlistId)return F.playlistId.substring(0,4)};
_.l.computeCanReorder=function(F){return F?F.playlistId&&F.playlistId.startsWith("TLPQ")?!0:!!F.isEditable&&!F.isInfinite:!1};
_.l.attached=function(){var F=this;try{_.sV().resolve(_.J8).setPlaylistComponent(this.hostElement)}catch(q){if(_.E("kevlar_park_on_playlist_token_killswitch"))throw q;_.g7().parkOrScheduleJob(function(){_.sV().resolve(_.J8).setPlaylistComponent(F.hostElement)},2,"ci")}_.Xw(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.l.detached=function(){_.Yo(this.hostElement)};
_.l.computeTrailingIcon=function(F,q,t){return t?q?"yt-icons:collapse":"yt-icons:close":q?"yt-icons:expand":_.E("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.l.computeIndexMessage=function(F,q){return lgt(F+1)+" / "+lgt(q)};
_.l.onRenderStamperFinished=function(){if(this.scrollForStampDom){var F=!0;this.isHovered&&(F=!1);if(this.collapsed||this.hidden)F=!1;F&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.l.collapseChanged=function(){var F=this;this.collapsed||(_.Ze(this.ytTaskEmitterBehavior.getTaskManager(),function(){F.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.l.hiddenChanged=function(){var F=this;this.hidden||_.Ze(this.ytTaskEmitterBehavior.getTaskManager(),function(){F.scrollToCurrentVideo()})};
_.l.setupReordering=function(){var F=_.ep(this.hostElement).querySelector("#items");lTz?_.qpj(this.ytReorderableBehavior,F,F,"playlist-drag-handle"):_.qpj(this.ytReorderableBehavior,F,F)};
_.l.scrollToCurrentVideo=function(){var F=this;_.mI.addJob(function(){var q=_.ep(F.hostElement).querySelector("#items");if(q){q.style.setProperty("padding-bottom","");var t=_.ep(F.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(t){q=t.parentElement||_.I8(document);var u=q||_.I8(document);var J=_.dh(t),g=_.dh(u),Y=_.GvC(u);if(u==_.I8(document)){var Q=J.x-u.scrollLeft;J=J.y-u.scrollTop}else Q=J.x-g.x-Y.left,J=J.y-g.y-Y.top;t=o7L(t);g=u.clientHeight-
t.height;Y=u.scrollLeft;var e=u.scrollTop;Y+=Q-(u.clientWidth-t.width)/2;u=new _.bQ(Y,e+(J-g/2));q.scrollLeft=u.x;q.scrollTop=u.y}}},8)};
_.l.dataChanged=function(){var F=this;_.Fzx(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.tJ(this,function(){_.W2(F.ytTaskEmitterBehavior.getTaskManager(),function(){F.ytRendererBehavior.markDirty();F.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.l.onFullBleedPlayerChanged=function(){_.E("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.l.onFullscreenChanged=function(){_.E("web_watch_imax_theater_mode")||_.E("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.l.updateNowPlayingOverlay=function(){_.E("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.l.onPlaylistLockupNowPlaying=function(F,q){q&&(this.activeNowPlayingRenderer=q);this.updateNowPlayingOverlay()};
_.l.onScroll=function(){this.scrollThrottle.fire()};
_.l.onThrottledScroll=function(){var F=this;_.W2(this.ytTaskEmitterBehavior.getTaskManager(),function(){F.ytRendererBehavior.markDirty()})};
_.l.onToggleExpanded=function(F){!this.collapsible||F&&(_.uL(F).tagName==="A"||_.tC(_.tY(F),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.l.setCollapsed=function(F){this.collapsible&&(this.collapsed=F,_.Zl(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.l.handleCollapsedFromData=function(F){if(F){var q=F.playlistPanelCollapseState;q==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||q==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),q=q==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==q&&this.setCollapsed(q)):this.currentPlaylistId!==F.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(q=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==q&&this.setCollapsed(q),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=F.playlistId}};
_.l.handleDrop=function(F){var q=F.currDragItem;F=q.data.playlistSetVideoId;var t=_.Hy(q.parentNode.childNodes,q),u=void 0;t>0&&(u=q.parentNode.childNodes[t-1].data.playlistSetVideoId);q=_.YQ();if(q.responsePlaylistData&&q.responsePlaylistData.contents){var J=w8_(F,q.responsePlaylistData);q.responsePlaylistData=(0,_.m7.unsafeClone)(q.responsePlaylistData);Pu_(q.responsePlaylistData.contents,J,t);q.queueProxy?so1(q.queueProxy,J,t,F,u):q.playlistProxy&&so1(q.playlistProxy,J,t,F,u);_.p8(q,_.QY(q,q.response?
q.response.autoplayRenderer:void 0))}};
_.l.handleDarkModeChange=function(F){F!==this.isDarkTheme&&(this.isDarkTheme=F)};
_.l.colorPaletteChanged=function(){var F,q=((F=this.data)==null?void 0:F.contents)||[],t;F=_.X(q);for(q=F.next();!q.done;q=F.next()){q=q.value;var u=void 0;if((u=q.playlistPanelVideoRenderer)==null?0:u.selected){F=q.playlistPanelVideoRenderer;u=q=void 0;(t=this.isDarkTheme?(q=F)==null?void 0:q.darkColorPalette:(u=F)==null?void 0:u.lightColorPalette)&&_.II(this.hostElement,t);break}}this.useColorPalette=!!t};
_.JJ.Object.defineProperties(Tf.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var F,q;return!((F=this.data)==null||!F.playlistId)&&!((q=this.data)==null||!q.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var F=_.sV().resolve(_.JU(_.J8)),q;if(((q=this.data)==null?0:q.contents)&&(F==null?0:F.hasAutoplayData())){var t;if(((t=this.playlistLoopStateEntity)==null?void 0:t.state)==="PLAYLIST_LOOP_STATE_ONE"){if(F=this.data.currentIndex,F!==void 0){var u,J;var g=(u=this.data.contents[F])==null?void 0:(J=u.playlistPanelVideoRenderer)==null?void 0:J.title}}else{var Y,Q=(Y=_.n(F.getAutoplayEndpoint(),_.Fw))==null?void 0:Y.videoId,e,r;g=(e=this.data.contents.find(function(N){var w;
return((w=N.playlistPanelVideoRenderer)==null?void 0:w.videoId)===Q}))==null?void 0:(r=e.playlistPanelVideoRenderer)==null?void 0:r.title}return g}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)!=null&&F.nextVideoLabel?this.nextVideoTitle?_.q1(this.data.nextVideoLabel)+":":Mmj:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var F;if(((F=this.data)==null?0:F.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.E("web_mix_long_byline_from_data"))return _.FK(TlE);var q;return(q=this.data)==null?void 0:q.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u=(F=this.data)==null?void 0:(q=F.playlistButtons)==null?void 0:(t=q.menuRenderer)==null?void 0:t.topLevelButtons;if(u)for(F=_.X(u),q=F.next();!q.done;q=F.next())if(q=q.value,q.playlistLoopButtonRenderer)return q.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var F;return!!(this.collapsed&&((F=this.data)==null?0:F.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.E("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Tf.prototype.colorPaletteChanged=Tf.prototype.colorPaletteChanged;Tf.prototype.onPlaylistLockupNowPlaying=Tf.prototype.onPlaylistLockupNowPlaying;Tf.prototype.updateNowPlayingOverlay=Tf.prototype.updateNowPlayingOverlay;Tf.prototype.onFullscreenChanged=Tf.prototype.onFullscreenChanged;Tf.prototype.onFullBleedPlayerChanged=Tf.prototype.onFullBleedPlayerChanged;Tf.prototype.dataChanged=Tf.prototype.dataChanged;Tf.prototype.hiddenChanged=Tf.prototype.hiddenChanged;Tf.prototype.collapseChanged=Tf.prototype.collapseChanged;
Tf.prototype.onRenderStamperFinished=Tf.prototype.onRenderStamperFinished;Tf.prototype.onMouseLeave=Tf.prototype.onMouseLeave;Tf.prototype.onMouseEnter=Tf.prototype.onMouseEnter;_.C([_.D(_.Vl),_.V("design:type",Object)],Tf.prototype,"ironResizableBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(j7z.YtPlaylistPanelBehavior),_.V("design:type",Object)],Tf.prototype,"ytPlaylistPanelBehavior",void 0);_.C([_.D(_.zD.YtTaskEmitterBehavior),_.V("design:type",Object)],Tf.prototype,"ytTaskEmitterBehavior",void 0);_.C([_.D(_.tFJ),_.V("design:type",Object)],Tf.prototype,"ytReorderableBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Tf.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Tf.prototype,"ytdReduxBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Tf.prototype,"actionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Tf.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Tf.prototype,"autoplayData",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Tf.prototype,"withinMiniplayer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tf.prototype,"minimizePipBreakages",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tf.prototype,"updatedCoursePanel",void 0);_.C([_.O({computed:"setMenuData_(data)"}),_.V("design:type",Object)],Tf.prototype,"menuRendererData",void 0);_.C([_.O({computed:"computeOverflowMenuData(data)"}),_.V("design:type",Object)],Tf.prototype,"overflowMenuDataTopRow",void 0);_.C([_.O({computed:"computeOverflowMenuData(data)"}),_.V("design:type",Object)],Tf.prototype,"overflowMenuData",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tf.prototype,"hideHeaderText",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tf.prototype,"useColorPalette",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.V("design:type",Boolean)],Tf.prototype,"collapsible",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tf.prototype,"collapsed",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Tf.prototype,"hidden",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.V("design:type",Boolean)],Tf.prototype,"hasPlaylistButtons",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.V("design:type",Boolean)],Tf.prototype,"hasSeparateSaveButton",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.V("design:type",Boolean)],Tf.prototype,"hasToolbar",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.V("design:type",String)],Tf.prototype,"playlistType",void 0);_.C([_.O(),_.V("design:type",Object)],Tf.prototype,"isHovered",void 0);_.C([_.O({selectorArgs:["playlistLoopStateEntityKey"],selector:_.c5y}),_.V("design:type",Object)],Tf.prototype,"playlistLoopStateEntity",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tf.prototype,"modernPanels",void 0);_.C([_.O({value:56}),_.V("design:type",Number)],Tf.prototype,"scrollMargin",void 0);_.C([_.O({computed:"computeCanReorder(data)"}),_.V("design:type",Boolean)],Tf.prototype,"canReorder",void 0);_.C([_.O(),_.V("design:type",Object)],Tf.prototype,"expandLabel",void 0);_.C([_.O(),_.V("design:type",Object)],Tf.prototype,"collapseLabel",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tf.prototype,"isFloating",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tf.prototype,"metaPanel",void 0);_.C([_.O({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.V("design:type",String)],Tf.prototype,"trailingIcon",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Tf.prototype,"isDarkTheme",void 0);
_.C([_.O({selector:_.yX}),_.V("design:type",Boolean)],Tf.prototype,"miniplayerIsActive",void 0);_.C([_.O({selector:function(F){return F.watch.playerState}}),
_.V("design:type",Number)],Tf.prototype,"playerState",void 0);_.C([_.O({selector:_.yh}),_.V("design:type",Boolean)],Tf.prototype,"isFullscreen",void 0);_.C([_.O({selector:_.b_}),_.V("design:type",Boolean)],Tf.prototype,"isTheaterMode",void 0);_.C([_.O(),_.V("design:type",Object)],Tf.prototype,"activeNowPlayingRenderer",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tf.prototype,"moveThreeDotMenuToTopRow",null);
_.C([_.W("data","autoplayData","playlistLoopStateEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tf.prototype,"nextVideoTitle",null);_.C([_.W("data","nextVideoTitle"),_.V("design:type",String),_.V("design:paramtypes",[])],Tf.prototype,"nextVideoLabel",null);_.C([_.W("collapsed"),_.V("design:type",String),_.V("design:paramtypes",[])],Tf.prototype,"buttonAriaLabel",null);
_.C([_.W("data","playlistId","longBylineText"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tf.prototype,"mixLongByLine",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tf.prototype,"playlistLoopStateEntityKey",null);_.C([_.EB("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tf.prototype,"onMouseEnter",null);
_.C([_.EB("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tf.prototype,"onMouseLeave",null);_.C([_.O({reflectToAttribute:!0}),_.W("data","collapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tf.prototype,"showNextVideoHeader",null);_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tf.prototype,"onRenderStamperFinished",null);
_.C([_.za("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tf.prototype,"collapseChanged",null);_.C([_.za("hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tf.prototype,"hiddenChanged",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tf.prototype,"dataChanged",null);
_.C([_.W("isTheaterMode","isFullscreen"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tf.prototype,"isFullBleedPlayer",null);_.C([_.za("isTheaterMode","isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tf.prototype,"onFullBleedPlayerChanged",null);_.C([_.za("isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tf.prototype,"onFullscreenChanged",null);
_.C([_.za("playerState","miniplayerIsActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tf.prototype,"updateNowPlayingOverlay",null);_.C([_.EB("yt-playlist-lockup-now-playing-active"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Tf.prototype,"onPlaylistLockupNowPlaying",null);
_.C([_.za("data","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tf.prototype,"colorPaletteChanged",null);_.C([_.m({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Tf);
_.GMe=_.rc()(Tf,"ytd-playlist-panel-renderer",function(){if(E6E===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);E6E=F}F=E6E;return F},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var DwC;var Gf=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("web_button_rework");return F};
_.M(Gf,_.x);Gf.prototype.computeShouldButtonBeVertical=function(F,q){return F||q};
Gf.prototype.onYtServiceRequestSent=function(F,q){(F=_.n(q.endpoint,_.Cw))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Gl("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:F.status})):this.handleLikeEndpoint(F))};
Gf.prototype.computelikeStatusEntityKey=function(F){return F==null?void 0:F.likeStatusEntityKey};
Gf.prototype.handleLikeEndpoint=function(F){F.status==="LIKE"?this.JSC$17049_ytdDislikeToggleButtonRenderer.toggle(!1):F.status==="DISLIKE"?this.JSC$17049_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17049_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17049_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.JJ.Object.defineProperties(Gf.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var F;return QP$(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(F=this.likeStatusEntity)==null?void 0:F.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var F;if(this.data&&((F=this.data)==null||!F.hideDislikeButton)){var q;return QP$(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(q=this.likeStatusEntity)==null?void 0:q.likeStatus)}}}});
Gf.prototype.onYtServiceRequestSent=Gf.prototype.onYtServiceRequestSent;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Gf.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Gf.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Gf.prototype,"vertical",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],Gf.prototype,"textTransform",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Gf.prototype,"useShortsIcon",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Gf.prototype,"underIconLabel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Gf.prototype,"modern",void 0);_.C([_.O({value:"left"}),_.V("design:type",String)],Gf.prototype,"buttonTooltipPosition",void 0);
_.C([_.O(),_.V("design:type",Object)],Gf.prototype,"overrides",void 0);_.C([_.Ms("#like-button"),_.V("design:type",Object)],Gf.prototype,"JSC$17049_ytdLikeToggleButtonRenderer",void 0);_.C([_.Ms("#dislike-button"),_.V("design:type",Object)],Gf.prototype,"JSC$17049_ytdDislikeToggleButtonRenderer",void 0);_.C([_.W("data","likeStatusEntity.likeStatus","useShortsIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],Gf.prototype,"likeButton",null);
_.C([_.W("data","likeStatusEntity.likeStatus","useShortsIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],Gf.prototype,"dislikeButton",null);_.C([_.O({computed:"computelikeStatusEntityKey(data)"}),_.V("design:type",String)],Gf.prototype,"likeStatusEntityKey",void 0);_.C([_.O({selectorArgs:["likeStatusEntityKey"],selector:Vh}),_.V("design:type",Object)],Gf.prototype,"likeStatusEntity",void 0);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],Gf.prototype,"onYtServiceRequestSent",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Gf);
var WA1=_.rc()(Gf,"ytd-like-button-renderer",function(){if(DwC===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);DwC=F}F=DwC;return F},{mode:1});_.Oc1={};
_.Oc1.YtConditionalRendererBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(F,q){var t=this,u,J;return _.p(function(g){switch(g.nextAddress){case 1:if(!q)return t.hidden=!0,t.showSpinner=!1,g.return();if((u=F)==null?0:(J=u.visibilityCondition)==null?0:J.mode)switch(F.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return g.jumpTo(5);default:return g.jumpTo(6)}t.showSpinner=
!1;t.hidden=!0;return g.yield(t.shouldShow_(F),4);case 4:t.hidden=!g.yieldResult;g.jumpTo(0);break;case 5:return g.yield(t.shouldShow_(F),8);case 8:t.showSpinner=g.yieldResult;t.hidden=!1;g.jumpTo(0);break;case 6:return t.showSpinner=!1,g.yield(t.shouldShow_(F),9);case 9:t.hidden=!g.yieldResult,_.WA(g)}})},
shouldShow_:function(F){return F&&F.supportedDatas&&F.supportedDatas.rendererVisibilityConditionData&&F.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(F.supportedDatas.rendererVisibilityConditionData.showIf):F&&F.visibilityCondition&&F.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(F.visibilityCondition.showIf):F&&F.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(F.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(F){switch(F){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(F){switch(F){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var F=_.ec(this.hostElement,"yt-get-mdx-status");return F.length==1&&F[0].connected},
isLocationPermissionGranted_:function(){var F;return _.p(function(q){return q.nextAddress==1?navigator.permissions?q.yield(navigator.permissions.query({name:"geolocation"}),3):q.jumpTo(2):q.nextAddress!=2?(F=q.yieldResult,q.return(Promise.resolve(F.state==="granted"))):q.return(Promise.resolve(!1))})}}];var PfO=function(F,q){q=q===void 0?{}:q;var t=function(u){var J=document.createElement(F),g;var Y=(g=J.polymerController)!=null?g:J;em$(J,Y,u,q);return J};
t.debugName=F+" (CoW wrapped)";return t}("yt-icon",{callbackProps:["onKeydown"]}),xwO=_.E("kevlar_use_wil_icons")?_.ld(function(F){var q=F.icon;
var t=F.active;var u=F.className;var J=F.style;var g=F.dataSelected;var Y=F.dataDisabled;var Q=F.role;var e=F.themeOverride;var r=F.animateIcon;var N=F.ariaHidden;var w=F.ariaExpanded;var k=F.ariaLabel;var z=F.tabindex;var T=F.id;var P=F.iconFilter;var v=F.onKeydown;var H=function(){var S=q==null?void 0:q(),K=null,h=void 0;S&&(S=P0e(S),S=CGt(S),S.length&&(K=S[1],h=S[0]));return{iconName:K,iconSetName:h}},d=function(){return xre(H().iconName,t==null?void 0:t(),void 0,void 0,H().iconSetName,_.sV().resolve(_.zC))},
a=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:P==null?void 0:P()}};
return _.Z(_.R,{cond:r,then:function(){return _.Z(PfO,{icon:q,active:t,className:u,style:J,dataSelected:g,dataDisabled:Y,role:Q,themeOverride:e,ariaHidden:N,ariaExpanded:w,ariaLabel:k,tabindex:z,id:T,iconFilter:P,onKeydown:v})},
else:function(){return _.Z(_.R,{cond:d,then:function(S){return _.Z("span",{class:_.Ec("ytIconWrapperHost",u),role:Q,"aria-label":k,"aria-hidden":N,tabindex:function(){return isNaN(Number(z==null?void 0:z()))?void 0:Number(z==null?void 0:z())},
id:T,style:J,"on:keydown":_.zq(function(K){return void(v==null?void 0:v(K))})},_.Z(lyP,{data:S,
options:a}))}})}})},"Ie"):PfO;var Alf=function(F){var q=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Fou();_.uo("ytglobal.ytUtilActivityCallback_",function(){_.Zl(F,"yt-user-activity")});
new sD(function(){return q.JSC$17065_onMouseMove});
document.addEventListener("scroll",function(){return q.onScroll});
window.addEventListener("resize",function(){return q.onResize})},v6r=function(F,q,t){q in F.eventJobIds||(t=_.Gx().addLowPriorityJob(function(){_.gO();
delete F.eventJobIds[q]},t),F.eventJobIds[q]=t)};
Alf.prototype.onScroll=function(F){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):F.target===document&&v6r(this,"scroll",200)};
Alf.prototype.onResize=function(){v6r(this,"resize",200)};
Alf.prototype.JSC$17065_onMouseMove=function(){v6r(this,"mousemove",100)};
_.M$=function(F){F.scrollEventsToIgnore+=1;F.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){F.scrollEventsToIgnore--},500))};var IUv=function(F){this.element=F;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
IUv.prototype.showFeedbackDialog=function(F,q,t,u){var J=Hce();if(!J)return!1;var g=oYo();g.productId=J;q&&(g.flow="submit",g.report={description:q});t&&(Hce()==="59"?g.callback=_.UK(function(){_.IJ("userFeedbackEvent",{});t()}):g.callback=_.UK(t));
g.bucket=u||_.bn("GOOGLE_FEEDBACK_BUCKET","Other");mwx(g);F=$wz(this,"GFEEDBACK",F);try{_.WRJ(g,F)}catch(Y){return _.CI(Y),!1}return!0};
IUv.prototype.showHelpDialog=function(F,q,t){var u=this,J=Hce();if(!J)return!1;var g={helpCenterPath:"/youtube",productData:$wz(this,"GUIDED_HELP",t)};mwx(g);var Y=oYo();Y.context=F||g.productData.context||"default";Y.defaultHelpArticleId=q;Y.enableSendFeedback=!0;(_.S6("gapi.load")||function(Q,e){return e()})("client",function(){try{var Q=qdj(J,g);
if(_.E("web_always_load_chat_support")&&!u.chatSupportLoaded)try{Q.JSC$9968_loadChatSupport(Y),u.chatSupportLoaded=!0}catch(e){}Q.startHelp(Y)}catch(e){_.CI(e)}})};
var Hce=function(){var F=_.bn("GOOGLE_FEEDBACK_PRODUCT_ID");F||_.CI(Error("ei"));return F},mwx=function(F){F&&(F.locale=_.E("kevlar_help_use_locale")?_.bn("INNERTUBE_CONTEXT_HL","en"):_.bn("HTML_LANG","en"))},$wz=function(F,q,t){var u=F.productData;
delete u.origin;u.device=_.NA();var J;a:{if(J=document.createElement("canvas")){var g=J.getContext("experimental-webgl",{stencil:!0});if(g){var Y=g.getExtension("WEBGL_debug_renderer_info");if(Y){J=g.getParameter(Y.UNMASKED_RENDERER_WEBGL);break a}}if(g=J.getContext("webgl")){J=g.getParameter(g.RENDERER);break a}}J=null}u.gpu=J;u.isSDC=!!_.bn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(J=_.bn("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.m7.extend(u,J);_.EYv(q,u);_.zco(u);(F=_.Zl(F.element,"yt-get-autonav-pause-debug-state"))&&
F.length&&(u.autonav_pause_state=F[0]);F=_.G0();u.browser_resolution=F.width+"\u00d7"+F.height+"@"+(window.devicePixelRatio||1)+"x";t&&_.m7.extend(u,t);return u};
IUv.prototype.resetProductData=function(){this.productData={}};var bcr=function(F){this.feedbackManager=new IUv(F)};
bcr.prototype.showFeedbackDialog=function(F,q,t,u){return this.feedbackManager.showFeedbackDialog(F,q,t,u)};
bcr.prototype.showHelpDialog=function(F,q,t){return this.feedbackManager.showHelpDialog(F,q,t)};var ylE=function(){this.baseUrl="";this.aTag=document.createElement("a")},skv=function(F,q,t){t=t===void 0?{}:t;
t.pbj||(t.pbj=1);t=_.$Zo(q,t);F.baseUrl&&t&&!_.c_(t)[1]&&!_.FR(t)&&(q=F.baseUrl,lu(q,"/")&&(q=q.slice(0,-1)),_.gf(t,"/")&&(t=t.slice(1)),t=q+"/"+t);Kl(F.aTag,_.yy(t||""));return F.aTag.href};
ylE.prototype.fetchData=function(F){return _.Rco(F)};
ylE.prototype.postData=function(F,q){var t={method:"POST"};if(q){for(var u=_.X(Object.keys(q)),J=u.next();!J.done;J=u.next()){J=J.value;var g=q[J];_.ho(g)&&(q[J]=JSON.stringify(g))}t.postParams=q}return _.Rco(F,t)};
_.gSv=function(F,q,t,u,J){F=skv(F,q,t);if(!F)throw u=Error("fi"),Object.assign(u,{params:q}),u;return _.Rco(F,J,u)};
ylE.prototype.requestDataForServiceEndpoint=function(F,q){if(_.n(F,_.CUP))return this.fetchData("/getAccountSwitcherEndpoint");q=q||{};var t=_.n(F,GTr);t?q.se=t.base64EncodedServiceEndpoint:q.sej=JSON.stringify(F);(t=_.yb())&&_.E("enable_service_ajax_csn")&&(q.csn=t);q.theme=_.Hx();_.n(F,bfu)&&_.bn("DELEGATION_CONTEXT")&&(q.delegation_context=JSON.stringify(_.bn("DELEGATION_CONTEXT")));t=null;for(var u in F)if(lu(u,"Endpoint")||lu(u,"Command")){t=u;break}if(!t){var J=Error("gi");Object.assign(J,{params:F});
_.Izt(J,"WARNING");return new _.iz(function(Y,Q){Q(J)})}u={name:t};
var g;(t=(g=_.n(F,_.ko))==null?void 0:g.signal)&&(u.signal=t);(g=_.fI(window.location.href))&&g.internalcountrycode&&(u.internalcountrycode=g.internalcountrycode);g="/service_ajax";_.E("debug_forward_web_query_parameters")&&(g=_.alu(g,window.location.search));g=_.j6(g,u);F.clickTrackingParams&&_.JV(g,{itct:F.clickTrackingParams});return this.postData(g,q)};_.Cfw=new _.pg("GFEEDBACK_TOKEN");var dwe;var Vme;var Uw1;var SUj;var DG=function(){var F=_.x.apply(this,arguments)||this;F.compact=!1;F.dismissButtonDisabled=!1;return F};
_.M(DG,_.x);DG.prototype.computeHasIcon_=function(F){return!!F};
DG.prototype.isSignInIcon_=function(F){return F=="yt-icons:prompted_sign_in"};
DG.prototype.onDismissButtonClick=function(){var F;this.data.disableOnClick&&!this.dismissButtonDisabled&&(F=this.data.dismissButton)!=null&&F.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.Oc1.YtConditionalRendererBehavior),_.V("design:type",Object)],DG.prototype,"ytConditionalRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],DG.prototype,"data",void 0);_.C([_.O({computed:"computeIcon_(data.icon)"}),_.V("design:type",Object)],DG.prototype,"icon_",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.V("design:type",Boolean)],DG.prototype,"hasIcon_",void 0);_.C([_.O({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.V("design:type",Boolean)],DG.prototype,"signInIcon_",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],DG.prototype,"compact",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],DG.prototype,"dismissButtonDisabled",void 0);
_.C([_.Vu({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],DG);
_.b(DG,"yt-player-error-message-renderer",function(){if(SUj===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <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      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Uw1===void 0&&(Uw1=document.createElement("template"));var u=Uw1;t.call(q,u.content.cloneNode(!0),F.content.firstChild);SUj=F}F=SUj;return F},{mode:2});var h5z;var KAn;var WR=function(){return _.x.apply(this,arguments)||this};
_.M(WR,_.x);WR.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
WR.prototype.computeIcon_=function(F){return F?"yt-icons:"+F.iconType.toLowerCase():"error_outline"};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],WR.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],WR.prototype,"data",void 0);_.C([_.O({computed:"computeIcon_(data.icon)"}),_.V("design:type",Object)],WR.prototype,"icon_",void 0);_.C([_.Vu({is:"yt-player-kav-renderer",disableElementRegistration:!0})],WR);
_.b(WR,"yt-player-kav-renderer",function(){if(KAn===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;h5z===void 0&&(h5z=document.createElement("template"));var u=h5z;t.call(q,u.content.cloneNode(!0),F.content.firstChild);KAn=F}F=KAn;return F},{mode:2});var TTf=_.LZ(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.ei(_.ld(function(F){var q=_.FG("div"),t=_.X(_.N3(0,void 0,"yt0wE")),u=t.next().value,J=t.next().value;t=_.X(_.N3(null,void 0,"CnFp5"));var g=t.next().value,Y=t.next().value;_.v_(function(){GBt(q.value,J,Y);q.value.scrollIntoView()});
t=Df$.bind(null,F.data,u);sT("resize",function(){var Q=g();if(u()===1&&Q!==null){var e;(e=window.grecaptcha)==null||e.reset(Q)}});
return _.Z("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.Z("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.Z("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var Q,e;return(Q=F.data().accessibility)==null?void 0:(e=Q.accessibilityData)==null?void 0:e.label}),_.Z(_.rv,{text:t,
className:_.Ec("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.Z("div",{el:q,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Je"),"yt-player-captcha-view-model",{props:{data:_.pp}});var Wk3=!1;_.Blw=_.ld(function(F){var q=F.data;return _.Z("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.Z(_.R,{cond:function(){return q().icon},
then:function(t){return _.Z("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.Z(_.sc,{data:t,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.Z(_.R,{cond:function(){return q().title},
then:function(t){return _.Z("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.Z(_.rv,{text:t}))}}),_.Z(_.R,{cond:function(){return q().description},
then:function(t){return _.Z("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.Z(_.rv,{text:t}))}}),_.Z(_.Tl,{data:function(){return q().primaryButton}},{buttonViewModel:function(t){return _.Z(_.AB,{data:t.data,
className:"interstitialViewModelFlexItem"})}}),_.Z(_.Tl,{data:function(){return q().secondaryButton}},{buttonViewModel:function(t){return _.Z(_.AB,{data:t.data,
className:"interstitialViewModelFlexItem"})}}))},"Ke");
_.Blw.idomCompat=!0;var LAf=_.ld(function(F){var q=F.data;_.Sx();return _.Z("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.Z("div",{class:"playerInterstitialRendererScrim"},_.Z(_.Tl,{data:function(){return q().content}},{interstitialViewModel:_.Blw})))},"Le");
LAf.idomCompat=!0;_.ei(LAf,"yt-player-interstitial-renderer",{props:{data:_.NH}});var O0=function(){var F=_.x.apply(this,arguments)||this;F.noBackground=!1;F.compact=!1;F.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return F};
_.M(O0,_.x);O0.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"}}}};
O0.prototype.onUpdatePlayerErrorMessageCommand_=function(F){if(_.n(F,y1L)){var q;if(F=(q=_.n(F,y1L))==null?void 0:q.newPlayerErrorMessageRenderer)this.data=F}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],O0.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],O0.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],O0.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],O0.prototype,"status",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],O0.prototype,"noBackground",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],O0.prototype,"compact",void 0);_.C([_.Vu({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],O0);
var fU1=_.rc()(O0,"yt-playability-error-supported-renderers",function(){if(Vme===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;dwe===void 0&&(dwe=document.createElement("template"));var u=dwe;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Vme=F}F=Vme;return F},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Ozo=void 0,xf$=void 0;var Igv=new yGj;var aUd=function(F){this.store=F;this.c81=new _.Vrr},eRy=function(F,q,t){var u,J;
if(!(J=((u=q.playabilityStatus)==null?void 0:u.status)!=="OK")){F=F.store;var g;J=q.offlineState&&((g=q.videoDetails)==null?0:g.videoId)?_.E("enable_pl_r_c_cd")?ZCM(F.getState().entities,q.videoDetails.videoId):!!Cvu(F.getState().entities,q.videoDetails.videoId):!1}if(J)return!0;J=yAv(q);if(J===1){if(_.E("ab_v_vid_sig")){var Y,Q=(Y=q.videoDetails)==null?void 0:Y.videoId;if(!Q||!t||Q!==t){var e;q=new _.D0("282054944_vid",{zKt:t,eSs:(e=q.videoDetails)==null?void 0:e.videoId});_.mH(q)}}return!0}cty=
0;var r,N;e=(Q=q.auxiliaryUi)==null?void 0:(r=Q.messageRenderers)==null?void 0:(N=r.bkaEnforcementMessageViewModel)==null?void 0:N.displayType;if(J!==3&&(e==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||e==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;e={reason:_.lC(_.oD("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.E("ks_something_wrong_learn_more")?Jz_("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.lC(_.oD("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:_.lC("282054944")};jqf(q,{playerErrorMessageRenderer:e});return!1},ZY_=function(F,q){if(N8y(q)){_.nG(1,!0);
var t=(t=N8y(q))&&_.P3v()?t:void 0;t?(jqf(q,{enforcementMessageViewModel:t}),F.c81.increment("IN_PLAYER"),_.nG(5)):(F.c81.increment("SKIP_DISPLAY"),_.nG(2))}},jqf=function(F,q){F.playabilityStatus=Object.assign({},F.playabilityStatus,{status:"ERROR",
errorScreen:q});F.videoDetails=void 0};
aUd.prototype.handleResponse=function(F,q){if(F.playabilityStatus){var t,u,J,g=(q==null?void 0:(t=q.innerTubeRequest)==null?void 0:t.videoId)||(q==null?void 0:(u=q.innerTubeRequest)==null?void 0:(J=u.playerRequest)==null?void 0:J.videoId);eRy(this,F,g)&&ZY_(this,F)}};
aUd[Yc]=[sL];var p1A=new _.pg("ADBLOCK_DETECTION_SERVICE_TOKEN");var Lw=function(F){this.ldF=F};
Lw.prototype.bindInnertubeChallengeFetcher=function(F){this.ldF.bicf(F)};
Lw.prototype.registerChallengeFetchedCallback=function(F){this.ldF.bcr(F)};
Lw.prototype.getLatestChallengeResponse=function(){return this.ldF.blc()};var clz;clz=_.LZ(["https://static.doubleclick.net/instream/ad_status.js"]);_.F$w=_.RV(clz);var JoQ;_.PR=function(F,q,t){var u=this;this.network=F;this.options=q;this.networkStatusManager=t;this.xA=null;if(q.useBotguardEverywhere){var J=new _.i1;this.xA=J.promise;_.uu.ytAtRC&&_.AC(_.mI,function(){var g,Y;return _.p(function(Q){if(Q.nextAddress==1){if(!_.uu.ytAtRC)return Q.return();g=qM9(null);return Q.yield(u.ct(g),2)}Y=Q.yieldResult;_.uu.ytAtRC&&_.uu.ytAtRC(JSON.stringify(Y));_.WA(Q)})});
S$q().then(function(g){var Y,Q,e,r;return _.p(function(N){if(N.nextAddress==1)return g.bindInnertubeChallengeFetcher(function(w){return u.ct(qM9(w))}),N.yield(AN_(),2);
Y=N.yieldResult;Q=g.getLatestChallengeResponse();e=Q.challenge;if(!e)throw Error("hi");r={challenge:e,oK:BZ(e),vm:Y,bgChallenge:new hi};J.resolve(r);g.registerChallengeFetchedCallback(function(w){w=w.challenge;if(!w)throw Error("ii");w={challenge:w,oK:BZ(w),vm:Y,bgChallenge:new hi};u.xA=Promise.resolve(w)});
_.WA(N)})})}else q.preload&&tWC(this,new Promise(function(g){_.W2(_.mI,function(){g(uqh(u))},0)}))};
JoQ=function(F){var q={preload:!0,useBotguardEverywhere:!0},t=!1;if(typeof q==="boolean")var u={preload:q};else typeof q==="undefined"?u={preload:!0}:(u=q,t=!!q.tkD);q=t?void 0:new _.Lt;_.PR.instance=new _.PR(F,u,q);return _.PR.instance};
_.PR.prototype.sr1=function(){var F=this;return _.p(function(q){return q.nextAddress==1?q.yield(Promise.race([F.xA,null]),2):q.return(!!q.yieldResult)})};
_.PR.prototype.vnR=function(F,q,t){var u=this,J,g,Y;return _.p(function(Q){u.xA===null&&tWC(u,uqh(u));J=!1;g={};Y=function(){var e,r,N;return _.p(function(w){switch(w.nextAddress){case 1:return w.yield(u.xA,2);case 2:e=w.yieldResult;g.challenge=e.challenge;if(!e.vm){"c1a"in e.oK&&(g.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");w.jumpTo(3);break}r=Object.assign({},{c:e.challenge,e:F},q);_.zg(w,4);J=!0;return w.yield(e.vm.snapshot({m0:r}),6);case 6:(N=w.yieldResult)?g.webResponse=N:g.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.LE(w,3);break;case 4:_.Gg(w),g.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(F==="ENGAGEMENT_TYPE_PLAYBACK"){var k=e.oK,z={};if(k.c6a){var T=Number(_.bn("DCLKSTAT",0));z.reportingStatus=String(Number(k.c)^(isNaN(T)?0:T))}k.c6b&&(z.broadSpectrumDetectionResult=String(Number(k.c)^Number(_.bn("CATSTAT",0))));g.adblockReporting=z}return w.return(g)}})};
return Q.return(Promise.race([Y(),s_7(t,function(){var e=Object.assign({},g);J&&(e.error="ATTESTATION_ERROR_VM_TIMEOUT");return e})]))})};
var qM9=function(F){var q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};F&&(q.interpreterHash=F);return q},uqh=function(F,q){q=q===void 0?0:q;
var t,u,J,g,Y,Q,e,r,N,w,k,z;return _.p(function(T){switch(T.nextAddress){case 1:t=qM9(UaL().rgF);if(_.E("att_fet_ks"))return _.zg(T,7),T.yield(F.ct(t),9);_.zg(T,4);return T.yield(gPw(F,t),6);case 6:Y=T.yieldResult;J=Y.pey;g=Y.v8I;u=Y;_.LE(T,3);break;case 4:return _.Gg(T),_.bz(Error("ji`"+q)),lvC(F,864E5),T.return({challenge:"",oK:{},vm:void 0,bgChallenge:void 0});case 9:u=T.yieldResult;if(!u)throw Error("ki");if(!u.challenge)throw Error("li");J=u.challenge;g=BZ(J);if("c1a"in g&&(!u.bgChallenge||!u.bgChallenge.program))throw Error("mi");
_.LE(T,3);break;case 7:Q=_.Gg(T);_.bz(Q);q++;if(q>=5)return _.bz(Error("ji`"+q)),lvC(F,864E5),T.return({challenge:"",oK:{},vm:void 0,bgChallenge:void 0});e=1E3*Math.pow(2,q-1)+Math.random()*1E3;return T.return(new Promise(function(P){_.W2(_.mI,function(){P(uqh(F,q))},e)}));
case 3:r=Ufy(g);lvC(F,r*1E3);N=void 0;if(!("c1a"in g&&u.bgChallenge)){T.jumpTo(10);break}w=Vo$(u.bgChallenge);_.zg(T,11);return T.yield(hh1(UaL(),w),13);case 13:_.LE(T,12);break;case 11:return k=_.Gg(T),_.bz(k),T.return({challenge:J,oK:g,vm:N,bgChallenge:w});case 12:return _.zg(T,14),N=new _.Ur({challenge:w,kF9:{lu:"aGIf"}}),T.yield(N.fD9,16);case 16:_.LE(T,10);break;case 14:z=_.Gg(T),_.bz(z),N=void 0;case 10:return T.return({challenge:J,oK:g,vm:N,bgChallenge:w})}})};
_.PR.prototype.ct=function(F){var q=this,t;return _.p(function(u){t=q.networkStatusManager;if(!t||t.isNetworkAvailable())return u.return(q.network.ct(F));_.dY("att_pna",void 0,"attestation_challenge_fetch");return u.return(new Promise(function(J){t.listenOnce("publicytnetworkstatus-online",function(){q.network.ct(F).then(J)})}))})};
var Xy5=function(F){if(!F)throw Error("ki");if(!F.challenge)throw Error("li");var q=F.challenge,t=BZ(q);if("c1a"in t&&(!F.bgChallenge||!F.bgChallenge.program))throw Error("mi");return Object.assign({},F,{pey:q,v8I:t})},gPw=function(F,q){var t,u,J,g,Y;
return _.p(function(Q){switch(Q.nextAddress){case 1:t=void 0,u=0,J={};case 2:if(!(u<5)){Q.jumpTo(4);break}if(!(u>0)){Q.jumpTo(5);break}J.lvv=1E3*Math.pow(2,u-1)+Math.random()*1E3;return Q.yield(new Promise(function(e){return function(r){_.W2(_.mI,function(){r(void 0)},e.lvv)}}(J)),5);
case 5:return _.zg(Q,7),Q.yield(F.ct(q),9);case 9:return g=Q.yieldResult,Q.return(Xy5(g));case 7:t=Y=_.Gg(Q),Y instanceof Error&&_.bz(Y);case 8:u++;J={lvv:void 0};Q.jumpTo(2);break;case 4:throw t;}})},tWC=function(F,q){F.xA=q},YMw=function(F){var q,t,u;
return _.p(function(J){if(J.nextAddress==1)return J.yield(Promise.race([F.xA,null]),2);q=J.yieldResult;var g=uqh(F);F.xA=g;(t=q)==null||(u=t.vm)==null||u.dispose();_.WA(J)})},lvC=function(F,q){var t=Date.now()+q,u=function(){var J;
return _.p(function(g){J=t-Date.now();return J<1E3?g.yield(YMw(F),0):(_.W2(_.mI,u,Math.min(J,6E4)),g.jumpTo(0))})};
u()},s_7=function(F,q){return new Promise(function(t){_.W2(_.mI,function(){t(q())},F)})};var pyh=function(){};
pyh.prototype.processContext=function(F){var q=_.PR.instance;if(!q)return _.Z2();var t=agP(F);return t?new eR(q.vnR(t,BT3(F),500).then(function(u){var J;(F==null?0:(J=F.innerTubeRequest)==null?0:J.context)||(F.innerTubeRequest.context={});J=F.innerTubeRequest.context;J.request||(J.request={});J.request.attestationResponseData=u})):_.Z2()};var Q_Q=function(F){this.innertubeTransportService=F};
Q_Q.prototype.ct=function(F){_.dY("att_fsr",void 0,"attestation_challenge_fetch");return _.uW(this.innertubeTransportService,F,_.Jn(_.VDd)).then(function(q){_.dY("att_frr",void 0,"attestation_challenge_fetch");return q})};_.eoQ=function(F){this.innertubeTransportService=F};var Z39=new _.pg("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var Rov=function(){},Nf9=function(F,q,t,u,J){var g=_.bn("YPC_MB_URL");
_.HS_(g).then(function(){roJ(g,F,q,t,u,J)})},roJ=function(F,q,t,u,J,g){try{var Y=payments.business.integration,Q=payments.business.integration.Style.create().withMaterialDesignStyle(),e=Y.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.E("enable_window_constrained_buy_flow_dialog")&&(e=e.usingPopupStyle("windowConstrained"));g&&(e=e.usingCloseCallback(g));var r=t?t:_.bn("YPC_GB_LANGUAGE"),N=_.bn("SESSION_INDEX");Y.bootstrap.fromPaymentsUrl(F);Y.bootstrap.asMashupMode(e).usingGaiaIndex(N).usingLocale(r).usingStyle(Q).usingDefaultActivityStatusChangeHandler().inStandaloneContext(Y.standaloneContextAuthId.forGaia()).purchaseManager(q,function(w){u&&u(w)}).load(void 0,J)}catch(w){throw J&&J(w),_.mH(w),w;
}};var wy3=new _.pg("PURCHASE_MANAGER_TOKEN");var i3s=function(){var F=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return F.videos},
getContinuationsPresent:function(){return F.continuationsPresent},
setVideos:function(q){F.videos=q},
getRecommendedVideos:function(){return F.recommendedVideos},
setRecommendedVideos:function(q){F.recommendedVideos=q}}};
i3s.prototype.addVideos=function(F){F&&(this.videos=F.filter(function(q){return!!_.cAW(q)}).map(function(q){var t=_.cAW(q);
a:{var u;if(q.playlistVideoRenderer&&((u=q.playlistVideoRenderer)==null?0:u.voteSortTiebreaker))var J=q.playlistVideoRenderer.voteSortTiebreaker;else{if(_.n(q,a4)){var g;if(u=(J=_.n(q,a4))==null?void 0:(g=J.playlistItemData)==null?void 0:g.voteSortTiebreaker){J=u;break a}}J=""}}return{itemId:t,videoId:_.t_q(q),voteCount:_.ux_(q),voteSortTiebreaker:J}}),this.continuationsPresent=!!_.n(F[F.length-1],_.F9))};
var kt5=function(F,q){return F.videos.findIndex(function(t){return t.itemId===q})},EPy=function(F,q){return F.recommendedVideos.findIndex(function(t){return t.itemId===q})},zo5=function(F){F={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:F}}}}};_.sV().resolve(_.gN).resolveCommand(F)};var oPT=function(){i3s.apply(this,arguments)};
_.M(oPT,i3s);
var fhf=function(F,q,t,u){if(!F.parentElem)throw Error("ri");var J=kt5(F,q);J===-1&&(J=EPy(F,q),J=J!==-1?J+F.videos.length:-1);if(J===-1)throw Error("si");var g=J>=F.videos.length?F.recommendedVideos[J-F.videos.length]:F.videos[J];g.voteCount=t;g.voteSortTiebreaker=Date.now().toString();J>=F.videos.length?F.recommendedVideos.splice(J-F.videos.length,1):F.videos.splice(J,1);var Y=F.videos;for(var Q=0,e=Y.length-1;Q<=e;){var r=Math.floor((Q+e)/2);if(Y[r].voteCount<g.voteCount)e=r-1;else if(Y[r].voteCount>g.voteCount)Q=
r+1;else{a:{var N=g.voteSortTiebreaker;var w=Y[r].voteSortTiebreaker;if(N.length!==w.length)N=N.length>w.length;else{for(var k=0;k<N.length;k++){var z=N.charCodeAt(k),T=w.charCodeAt(k);if(z>T){N=!0;break a}if(z<T)break}N=!1}}N?e=r-1:Q=r+1}}Y=Q;if(Y===-1)throw Error("ti");F.videos.splice(Y,0,g);J!==Y&&nP5(F,J,Y,q,t,u)},nP5=function(F,q,t,u,J,g){var Y,Q=(Y=F.parentElem)==null?void 0:Y.children,e=Math.min(q,t),r=Math.max(q,t);
if(Q)for(Y=e;Y<=r;Y++)Q[Y].style.viewTransitionName="item-"+String(Y);document.startViewTransition(function(){if(F.parentElem){var N=F.parentElem.children;if(!(!N||q<0||q>=N.length||t<0||t>=N.length)){var w=N[q];if(w){w.remove();F.showRefreshPill=t>=F.videos.length-1&&F.continuationsPresent;if(!F.showRefreshPill){N=N[t]||null;var k;(k=F.parentElem)==null||k.insertBefore(w,N)}_.Q0(F.parentElem,"yt-update-video-data-voting-animation",{toIdx:t,itemId:u,newVoteCount:J,voteStatus:g,hideItem:F.showRefreshPill})}}}}).finished.then(function(){if(Q)for(var N=
e;N<=r;N++)Q[N].style.viewTransitionName="";
if(F.showRefreshPill)zo5(_.oD("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var w;if(w=N=(w=F.parentElem)==null?void 0:w.children[t])w=N.getBoundingClientRect(),N=w.bottom,w=!(w.top>=0&&N<=F.clientHeight);w&&(w=_.nJ(q>t?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(q-t)),zo5(w))}})};var GtD=function(F,q){var t=this;F?this.innertubeTransportServicePromise=Promise.resolve(F):q&&(this.innertubeTransportServicePromise=q(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new r9(3E3,function(u){return MWC(t,u)},0);
this.validateMiniAppVideoIdRateLimiter=new r9(3E3,function(u){return Tfy(t,u)},1)},uFO=function(F,q){F.JSC$17178_miniAppId=q;
F.reportMiniAppValueRateLimiter=new r9(3E3,function(t){return MWC(F,t)},0);
F.validateMiniAppVideoIdRateLimiter=new r9(3E3,function(t){return Tfy(F,t)},1)},sqC=function(F,q){var t;
return _.p(function(u){if(u.nextAddress==1)return u.yield(F.reportMiniAppValueRateLimiter.call(q),2);t=u.yieldResult;return u.return([t,q])})},MWC=function(F,q){var t,u,J,g,Y,Q,e;
return _.p(function(r){switch(r.nextAddress){case 1:return r.yield(F.innertubeTransportServicePromise,2);case 2:return t=r.yieldResult,u=_.Jn(Lnn),J=Date.now(),g={externalPostId:F.JSC$17178_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(J/1E3),nanos:Math.round(J%1E3*1E6)},intValue:""+q}},_.zg(r,3),r.yield(_.uW(t,g,u),5);case 5:Y=r.yieldResult;_.LE(r,4);break;case 3:throw Q=_.Gg(r),Q;case 4:if(Y){if("error"in Y&&Y.error)throw Y.error;if(Y.errorMetadata)throw Error("ui`"+
Y.errorMetadata.status);if(e=Y.userStatResult)return r.return(e);throw Error("vi");}throw Error("wi");}})},lUx=function(F){var q,t,u,J,g;
_.p(function(Y){switch(Y.nextAddress){case 1:return Y.yield(F.innertubeTransportServicePromise,2);case 2:return q=Y.yieldResult,t=_.Jn(Lnn),u={externalPostId:F.JSC$17178_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.zg(Y,3),Y.yield(_.uW(q,u,t),5);case 5:J=Y.yieldResult;_.LE(Y,4);break;case 3:throw g=_.Gg(Y),g;case 4:if(J==null)throw Error("wi");if("error"in J&&J.error)throw J.error;if(J.errorMetadata)throw Error("ui`"+J.errorMetadata.status);_.WA(Y)}})};
GtD.prototype.flush=function(){var F=this;return _.p(function(q){return q.nextAddress==1?q.yield(F.reportMiniAppValueRateLimiter.flush(),2):q.yield(F.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var g6C=function(F,q){return _.p(function(t){return t.nextAddress==1?t.yield(F.validateMiniAppVideoIdRateLimiter.call(q),2):t.return(t.yieldResult)})},Tfy=function(F,q){var t,u,J,g,Y,Q;
return _.p(function(e){switch(e.nextAddress){case 1:return e.yield(F.innertubeTransportServicePromise,2);case 2:return t=e.yieldResult,u=_.Jn(Cr1),J={videoId:q},_.zg(e,3),e.yield(_.uW(t,J,u),5);case 5:g=e.yieldResult;_.LE(e,4);break;case 3:throw Y=_.Gg(e),Y;case 4:if(g){if("error"in g&&g.error)throw g.error;if(g.errorMetadata)throw Error("ui`"+g.errorMetadata.status);if(Q=g.playabilityStatus)return e.return(Q.status);throw Error("xi");}throw Error("wi");}})};
GtD[Yc]=[_.JU(_.da),_.JU(E1z)];var DAQ=function(){this.clientData=new Map};
DAQ.prototype.getData=function(F){return this.clientData.get(F)};var W$T=function(F){this.store=F};
W$T.prototype.handleResponse=function(F){(F=_.n(F.frameworkUpdates,Fp))&&_.nj(F,this.store)};
W$T[Yc]=[_.sb];var O39=new _.pg("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var Puy={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var xA9=new _.pg("ICON_SET_TOKEN"),Aoh=new _.pg("ICON_URL_PROVIDER_TOKEN"),vPT=new _.pg("PREFETCH_ICONS_TOKEN"),Iv3=new _.pg("ICON_MAP_FN_TOKEN");var xJ={},H3y=(xJ.ACCESS_TIME="clock",xJ.ACCOUNT_BOX="person_account",xJ.ACCOUNT_BOX_CAIRO="person_account_cairo",xJ.ACCOUNT_CIRCLE="person_circle",xJ.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",xJ.ACCOUNT_LINKED="account_link_success",xJ.ACCOUNT_UNLINKED="account_link",xJ.ADD_FRIEND="people",xJ.ADD_MODERATOR="shield_add",xJ.ADD_TO_LIBRARY="bookmark",xJ.ADD_TO_PLAYLIST="add",xJ.ADD_TO_QUEUE_TAIL="list_queue",xJ.ADD_TO_REMOTE_QUEUE="list_music",xJ.ADD_TO_WATCH_LATER="clock",xJ.ADD_VIDEO_LINK="film_strip_add",
xJ.ALERT_WARN_RED="alert_triangle",xJ.ARROW_BACK="arrow_left",xJ.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",xJ.ARROW_DROP_DOWN="chevron_down",xJ.ARROW_DROP_UP="chevron_up",xJ.ARROW_FORWARD="arrow_right",xJ.AUDIOTRACK="audio",xJ.AUTO_AWESOME="sparkle",xJ.AVATAR_ANONYMOUS="person_circle",xJ.AVATAR_LOGGED_OUT="person_circle",xJ.BACK="arrow_left",xJ.BAR_CHART="bar_graph",xJ.BLOCK="slash_circle_left",xJ.BLOCK_USER="slash_circle_left",xJ.BOOKMARK_BORDER="bookmark",xJ.BREAKING_NEWS_ALT_1="article_alert",
xJ.BROADCAST_CAIRO="podcast_cairo",xJ.BUG_REPORT="bug",xJ.CAMERA_ALT="camera",xJ.CAMPAIGN="megaphone",xJ.CANCEL="x_circle",xJ.CAPTIONS="closed_caption",xJ.CAST_OUTLINE="chromecast",xJ.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",xJ.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",xJ.CHAT="message_bubble_left",xJ.CHAT_BUBBLE="message_bubble_empty",xJ.CHAT_SPARK="spark_message_bubble_left",xJ.CHECK_BOX_OUTLINE_BLANK="box_empty",xJ.CHECK_CIRCLE_OUTLINE="check_circle",xJ.CHECK_CIRCLE_THICK="check_circle",xJ.CLARIFY=
"article_clarify",xJ.CLOSED_CAPTION_SELECTED="closed_caption",xJ.CLOSE="x_mark",xJ.CLOUD_UPLOAD="cloud_arrow_up",xJ.COLLAPSE="chevron_up",xJ.COLLAPSE_CAIRO="chevron_up_cairo",xJ.COLLECTION="layers",xJ.COLOR_LENS="palette",xJ.COMMENT="message_bubble_right",xJ.CONSENT_SHIELD="person_shield",xJ.CONTENT_CUT="scissors",xJ.CONTENT_CUT_CAIRO="scissors_cairo",xJ.COURSE=_.E("web_enable_course_icon_update")?"creator_academy":"lightbulb",xJ.COURSE_CAIRO=_.E("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",xJ.CREATION_LIVE="radar_live",xJ.CREATION_POST="box_pencil",xJ.CREATION_UPLOAD="my_videos",xJ.CREATION_UPLOAD_RED="upload",xJ.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",xJ.CREATOR_STUDIO="youtube_studio",xJ.DASHBOARD="grid_asymmetrical",xJ.DELETE="trash_can",xJ.DELETE_SWEEP="trash_can",xJ.DESKTOP="laptop",xJ.DISLIKE="thumb_down",xJ.DISLIKE_SELECTED="thumb_down",xJ.DISMISSAL="x_mark",xJ.DISMISS_QUEUE="list_remove",xJ.DONE_ALL="check_double",xJ.DOWN_ARROW="arrow_down",xJ.DO_NOT_DISTURB=
"slash_circle_left",xJ.DRAFT="paper_corner_folded",xJ.DRAG_HANDLE="bars_2",xJ.EDIT="pencil",xJ.EMOJI="face_very_happy",xJ.EMOJI_FLAGS="flag",xJ.EMOJI_OBJECTS="lightbulb",xJ.EMOJI_PEOPLE="face_very_happy",xJ.EMOJI_RECENT="clock",xJ.EMPTY_HEART="heart",xJ.EMPTY_LIKE="thumb_up",xJ.ERROR_BLACK="alert_circle",xJ.ERROR_OUTLINE="alert_circle",xJ.EXIT_APP="arrow_in",xJ.EXIT_TO_APP="arrow_in",xJ.EXPAND="chevron_down",xJ.EXPAND_ALL="chevron_expand",xJ.EXPAND_CAIRO="chevron_down_cairo",xJ.EXPAND_LESS="chevron_up",
xJ.EXPAND_MORE="chevron_down",xJ.EXPLORE="compass",xJ.EXPLORE_DESTINATION="compass",xJ.EXTERNAL_LINK="open_new",xJ.FAB_UPLOAD="upload",xJ.FACE_HAPPY_OUTLINE="face_happy",xJ.FACT_CHECK="article_check",xJ.FASHION_LOGO="fashion",xJ.FASHION_LOGO_CAIRO="fashion_cairo",xJ.FAVORITE="heart",xJ.FEEDBACK="message_bubble_alert",xJ.FEEDBACK_CAIRO="message_bubble_alert_cairo",xJ.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",xJ.FILL_ARROW_SOLID_UP_16="arrow_solid_up",xJ.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
xJ.FILTER="menu_filter",xJ.FIRST_PAGE="chevron_first",xJ.FLAG="flag",xJ.FULL_HEART="heart",xJ.GAME_CONSOLE_DPAD="game_console_dpad",xJ.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",xJ.GAMING_LOGO="gaming",xJ.GAMING_LOGO_CAIRO="gaming_cairo",xJ.GO_TO_PAGE="arrow_right",xJ.GROUPS="people_group",xJ.HAPPY="face_happy",xJ.HEALTH_AND_SAFETY="shield_plus",xJ.HELP="question_circle",xJ.HELP_CAIRO="question_circle_cairo",xJ.HELP_OUTLINE="question_circle",xJ.HIDE="slash_circle_left",xJ.IMAGE="image",
xJ.INFINITY_ICON="infinity",xJ.INFO="info_circle",xJ.INFO_OUTLINE="info_circle",xJ.INSERT_CHART="bar_graph_box_vertical",xJ.INSERT_CHART_OUTLINED="bar_graph_box_vertical",xJ.INSERT_PHOTO="image",xJ.KEEP="pin",xJ.KEEP_OFF="pin_off",xJ.KEYBOARD="keyboard",xJ.KEYBOARD_ARROW_DOWN="chevron_down",xJ.KEYBOARD_ARROW_UP="chevron_up",xJ.KIDS_BLOCK="slash_circle_left",xJ.LANGUAGE="globe",xJ.LAST_PAGE="chevron_last",xJ.LAUNCH="open_new",xJ.LEARNING="lightbulb",xJ.LEARNING_CAIRO="lightbulb_cairo",xJ.LIBRARY_ADD=
liy("library_add"),xJ.LIBRARY_OUTLINE="library",xJ.LIBRARY_REMOVE=liy(),xJ.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",xJ.LIKES_PLAYLIST="thumb_up",xJ.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",xJ.LIKE="thumb_up",xJ.LIKE_SELECTED="thumb_up",xJ.LIVE="radar_live",xJ.LIVE_CAIRO="radar_live_cairo",xJ.LIVE_UNLISTED="link",xJ.LOCATION_ON="location_point",xJ.LOCATION_PIN="location_point",xJ.LOOP="arrow_repeat",xJ.LOOP_ACTIVE="arrow_repeat",xJ.LOOP_ONE="arrow_repeat_1",xJ.LOOP_ONE_ACTIVE="arrow_repeat_1",xJ.MEH=
"face_meh",xJ.MEMBERS_ONLY_MODE_OFF="message_bubble_left",xJ.MESSAGE="message_bubble_left",xJ.MICROPHONE_ON="mic",xJ.MIX="youtube_mix",xJ.MONETIZATION_ON="dollar_sign_circle",xJ.MONEY_FILL="dollar_sign_container",xJ.MONEY_FILL_JPY="yen_sign_container",xJ.MONEY_HEART="dollar_sign_heart",xJ.MORE_HORIZ="overflow_horizontal",xJ.MORE_VERT="overflow_vertical",xJ.MUSIC="audio",xJ.MUSIC_CAIRO="audio_cairo",xJ.MUSIC_NOTE_SYMBOL="music",xJ.MUSIC_SHUFFLE="arrow_shuffle",xJ.MY_CHANNEL="person_circle",xJ.MY_LOCATION=
"location_point",xJ.NEWS_STORY="news",xJ.NEXT="chevron_right",xJ.NOTIFICATIONS="bell",xJ.NOTIFICATIONS_ACTIVE="bell_on",xJ.NOTIFICATIONS_CAIRO="bell_cairo",xJ.NOTIFICATIONS_DONE_CHECKMARK="check",xJ.NOTIFICATIONS_INBOX="bell",xJ.NOTIFICATIONS_NONE="bell",xJ.NOTIFICATIONS_OFF="bell_off",xJ.NOT_INTERESTED="slash_circle_left",xJ.OFFICIAL_ARTIST_BADGE="audio",xJ.OFFLINE_CLOUD="cloud_off",xJ.OFFLINE_DOWNLOAD="download",xJ.OFFLINE_DOWNLOAD_CAIRO="download_cairo",xJ.OFFLINE_PAUSE="pause",xJ.OPEN_IN_NEW=
"open_new",xJ.OUTLINE_ADJUST="adjust",xJ.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",xJ.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",xJ.OUTLINE_BAG="bag",xJ.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",xJ.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",xJ.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",xJ.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",xJ.PAID="dollar_sign",xJ.PAUSE_OUTLINED="pause",xJ.PAYMENT="credit_card",xJ.PERSON_RADAR_FILLED="person_radar",xJ.PHONE_DOWNLOAD="mobile_download",
xJ.PLAYABLES_LOGO="tic_tac_toe",xJ.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",xJ.PLAYLISTS="list_play_arrow",xJ.PLAYLISTS_CAIRO="list_play_arrow_cairo",xJ.PLAYLIST_ADD=liy("list_add"),xJ.PLAYLIST_ADD_CHECK=liy("list_check"),xJ.PLAYLIST_PLAY="list_play_arrow",xJ.PLAY_ALL="play_arrow",xJ.PLAY_CIRCLE="play_arrow_circle",xJ.PLAY_OUTLINED="play_arrow_circle",xJ.PRIVACY_INFO="shield",xJ.PRIVACY_PRIVATE="lock",xJ.PRIVACY_PUBLIC="earth",xJ.PRIVACY_UNLISTED="link",xJ.PROMOTE="megaphone",xJ.PURCHASES="price_tag",
xJ.PURCHASE_SUPER_CHAT="super_chat",xJ.PURCHASE_SUPER_STICKER="super_sticker",xJ.QUESTION_ANSWER="message_bubble_question",xJ.QUEUE_PLAY_LAST="list_queue_last",xJ.QUEUE_PLAY_NEXT="list_play_arrow",xJ.REMIX_FILLED="youtube_shorts_remix",xJ.REMOVE="bar_circle",xJ.REMOVE_CIRCLE="bar_circle",xJ.REMOVE_CIRCLE_OUTLINE="bar_circle",xJ.REMOVE_DONE="check_double_off",xJ.REMOVE_FROM_HISTORY="bar_circle",xJ.REMOVE_FROM_PLAYLIST="bar_circle",xJ.REMOVE_MODERATOR="shield_off",xJ.REPLAY="arrow_circle",xJ.REPLAY_10=
"skip_back_10",xJ.REPORT_PROBLEM="alert_triangle",xJ.SAD="face_sad",xJ.SAVE_PLAYLIST="bookmark",xJ.SCHEDULE="clock",xJ.SCHOOL="creator_academy",xJ.SCREEN_FULLSCREEN="screen_full",xJ.SEARCH_HISTORY="arrow_time",xJ.SELL="price_tag",xJ.SETTINGS="gear",xJ.SETTINGS_CAIRO="gear_cairo",xJ.SETTINGS_LIGHT="gear",xJ.SETTINGS_MATERIAL="gear",xJ.SHARE_ARROW="share",xJ.SHIELD_WITH_AVATAR="person_shield",xJ.SHOPPING_BAG="bag",xJ.SHOPPING_BAG_CAIRO="bag_cairo",xJ.SHOPPING_CART="cart",xJ.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
xJ.SHORTS_DISLIKE="youtube_shorts_thumb_down",xJ.SHORTS_LIKE="youtube_shorts_thumb_up",xJ.SHORTS_SHARE="youtube_shorts_share",xJ.SHUFFLE="arrow_shuffle",xJ.SLOW_MODE_OFF="message_bubble_left",xJ.SOCIAL="people",xJ.SORT="menu_sort",xJ.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",xJ.SPEED_1X="1x",xJ.SPEED_1_POINT_2X="1_point_2x",xJ.SPEED_1_POINT_5X="1_point_5x",xJ.SPEED_1_POINT_8X="1_point_8x",xJ.SPEED_2X="2x",xJ.SPEED_POINT_2X="point_2x",xJ.SPEED_POINT_8X="point_8x",xJ.SPONSORSHIP_STAR="star_circle",
xJ.STAFF_PICK="spotlight",xJ.START_DVR="add",xJ.STAR_BORDER="star",xJ.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",xJ.STICKER_EMOTICON="face_happy",xJ.STOP_DVR="stop",xJ.SUBSCRIBE="youtube_logo_icon",xJ.SUBSCRIBE_PLUS="add_cairo",xJ.SUBSCRIPTION_MANAGER="gear",xJ.SUPERVISOR_ACCOUNT="people",xJ.SUPER_CHAT_FOR_GOOD="hands_heart",xJ.SWAP_HORIZ="arrow_swap_horizontal",xJ.SWITCH_ACCOUNTS="person_account",xJ.TAB_ACCOUNT="person",xJ.TAB_ACTIVITY="bell",xJ.TAB_BOOKMARK="bookmark",xJ.TAB_EXPLORE="compass",
xJ.TAB_HOME="home",xJ.TAB_HOME_CAIRO="home_cairo",xJ.TAB_INBOX="mail",xJ.TAB_LIKED="thumb_up",xJ.TAB_MUSIC_PREMIUM="youtube_music",xJ.TAB_SHORTS="youtube_shorts",xJ.TAB_SHORTS_CAIRO="youtube_shorts_cairo",xJ.TAB_SUBSCRIPTIONS="subscriptions",xJ.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",xJ.TAB_TRENDING="fire",xJ.TIMER="stopwatch",xJ.TRAILER="youtube_originals",xJ.TRENDING="fire",xJ.TRENDING_CAIRO="fire_cairo",xJ.TRENDING_UP="rating_up",xJ.TROPHY="trophy",xJ.TROPHY_CELEBRATIONS="fireworks",xJ.TUNE=
"adjust",xJ.UNBLOCK_USER="bar_circle",xJ.UNLIMITED="youtube_logo_icon",xJ.UNPLUGGED_LIVE_GUIDE="radar_live",xJ.UNPLUGGED_SPORTS="eye_off",xJ.UPLOADS="library",xJ.UP_ARROW="arrow_up",xJ.VERTICAL_ALIGN_BOTTOM="download",xJ.VERY_HAPPY="face_very_happy",xJ.VERY_SAD="face_very_sad",xJ.VIDEOGAME_ASSET="gaming",xJ.VIDEOS="play_arrow_circle",xJ.VIDEO_CALL="video_camera_add",xJ.VIDEO_LIBRARY_WHITE="library",xJ.VIDEO_YOUTUBE="youtube_logo_icon",xJ.VIEW_LIST="list_view",xJ.VIEW_LIST_CAIRO="list_view_cairo",
xJ.VISIBILITY="eye",xJ.VISIBILITY_OFF="eye_off",xJ.VOLUME_MUTE="volume_off",xJ.VOLUME_UP="volume_on",xJ.WALLPAPER="image",xJ.WARNING="alert_triangle",xJ.WATCH_HISTORY="arrow_time",xJ.WATCH_HISTORY_CAIRO="arrow_time_cairo",xJ.WATCH_LATER="clock",xJ.WATCH_LATER_CAIRO="clock_cairo",xJ.WATCH_RELATED_MIX="youtube_mix",xJ.WHAT_TO_WATCH="home",xJ.YOUTUBE_MUSIC_MONOCHROME="youtube_music",xJ.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",xJ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
xJ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",xJ.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",xJ.YT_OUTLINE_MUSIC_24="music",xJ);var Aq={},mAv=(Aq.ACCESS_TIME="clock",Aq.ACCOUNT_BOX="person_square",Aq.ACCOUNT_BOX_CAIRO="person_square",Aq.ACCOUNT_CIRCLE="person_circle",Aq.ACCOUNT_CIRCLE_CAIRO="person_circle",Aq.ACCOUNT_LINKED="account_link",Aq.ACCOUNT_UNLINKED="account_link",Aq.ADD_CIRCLE="add_circle",Aq.ADD_CIRCLE_OUTLINE="add_circle",Aq.ADD_FRIEND="person_child",Aq.ADD_MODERATOR="shield_add",Aq.ADD_TO_LIBRARY="bookmark",Aq.ADD_TO_PLAYLIST="add",Aq.ADD_TO_QUEUE_TAIL="queue",Aq.ADD_TO_REMOTE_QUEUE="playlist_audio",Aq.ADD_TO_WATCH_LATER=
"clock",Aq.ADD_VIDEO_LINK="film_strip_add",Aq.ADMIN_PANEL_SETTINGS="person_gear",Aq.ALERT_WARN_RED="alert_triangle",Aq.ALIGN_LEFT="text_align_left",Aq.ARROWS_ALERT="arrow_split_alert",Aq.ARROW_BACK="arrow_left",Aq.ARROW_CIRCLE="arrow_counterclockwise",Aq.ARROW_CIRCLE_PLAY="replay",Aq.ARROW_CIRCLE_RIGHT="arrow_clockwise",Aq.ARROW_DIAGONAL="arrow_up_left",Aq.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Aq.ARROW_DROP_DOWN="triangle_down",Aq.ARROW_DROP_UP="triangle_up",Aq.ARROW_FORWARD="arrow_right",Aq.ARROW_PAUSE=
"pause_history",Aq.ARROW_UNDO="undo",Aq.ARTICLE="text_page",Aq.ARTICLE_ALERT="text_page_alert",Aq.ARTICLE_CHECK="text_page_check",Aq.ARTICLE_CLARIFY="text_page_info",Aq.AUDIOTRACK="audio",Aq.AUDIO_BADGE="audio_badge",Aq.AUDIO_SURROUND="surround_sound",Aq.AUTO_AWESOME="sparkles",Aq.AVATAR_ANONYMOUS="person_circle",Aq.AVATAR_LOGGED_OUT="person_circle",Aq.BACK="arrow_left",Aq.BAR_CHART="chart_bar",Aq.BAR_CIRCLE="minus_circle",Aq.BAR_HORIZONTAL="minus",Aq.BLOCK="circle_slash",Aq.BLOCK_USER="circle_slash",
Aq.BOOKMARK_BORDER="bookmark",Aq.BOX_OPEN_CHECK="quiz",Aq.BOX_PENCIL="square_pencil",Aq.BOX_STACK_3="square3_stack",Aq.BREAKING_NEWS_ALT_1="text_page_alert",Aq.BROADCAST="podcast",Aq.BROADCAST_CAIRO="podcast",Aq.BUG_REPORT="bug",Aq.CAMERA_ALT="camera",Aq.CAMPAIGN="megaphone",Aq.CANCEL="x_circle",Aq.CAPTIONS="closed_captions",Aq.CAST_ICON="chromecast",Aq.CAST_OUTLINE="chromecast",Aq.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Aq.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Aq.CHAT="text_bubble",
Aq.CHAT_BUBBLE="bubble",Aq.CHECK_BOX="check_square",Aq.CHECK_BOX_OUTLINE_BLANK="square",Aq.CHECK_CIRCLE_FILLED="check_circle",Aq.CHECK_CIRCLE_OUTLINE="check_circle",Aq.CHECK_CIRCLE_THICK="check_circle",Aq.CHECK_DOUBLE="check_done",Aq.CHECK_DOUBLE_OFF="check_done_slash",Aq.CHEVRON_LEFT="chevron_left",Aq.CHEVRON_RIGHT="chevron_right",Aq.CHEVRON_RIGHT_CAIRO="chevron_right",Aq.CIRCLES_OVERLAP="account_link",Aq.CLAPPERBOARD_CAIRO="clapperboard",Aq.CLARIFY="text_page_info",Aq.CLOCK_ARROWS="clock_split",
Aq.CLOCK_ARROWS_ALERT="clock_split_alert",Aq.CLOSED_CAPTION="closed_captions",Aq.CLOSED_CAPTION_SELECTED="closed_captions",Aq.CLOSE="x",Aq.CLOUD_UPLOAD="cloud_arrow_up",Aq.COLLAPSE="chevron_up",Aq.COLLAPSE_CAIRO="chevron_up",Aq.COLLECTION="square3d_stack",Aq.COLOR_LENS="paint_palette",Aq.COMMENT="text_bubble",Aq.CONSENT_SHIELD="person_shield",Aq.CONTENT_CUT="scissors",Aq.CONTENT_CUT_CAIRO="scissors",Aq.COURSE="graduation_cap",Aq.COURSE_CAIRO="graduation_cap",Aq.CREATION_LIVE="live",Aq.CREATION_POST=
"square_pencil",Aq.CREATION_UPLOAD="video",Aq.CREATION_UPLOAD_RED="upload",Aq.CREATOR_ACADEMY="graduation_cap",Aq.CREATOR_STUDIO="youtube_studio",Aq.DARK_THEME="theme",Aq.DELETE="trash_can",Aq.DELETE_SWEEP="trash_can",Aq.DESKTOP="laptop",Aq.DISLIKE="thumb_down",Aq.DISLIKE_SELECTED="thumb_down",Aq.DISMISSAL="x",Aq.DISMISS_QUEUE="playlist_x",Aq.DOGFOOD="pawprint",Aq.DOLLAR_SIGN="dollar_sign_circle",Aq.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Aq.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Aq.DOWN_ARROW=
"arrow_down",Aq.DO_NOT_DISTURB="circle_slash",Aq.DRAFT="document",Aq.DRAG_HANDLE="equal",Aq.EARTH="globe",Aq.EDIT="pencil",Aq.EMOJI="face_very_happy",Aq.EMOJI_FLAGS="flag",Aq.EMOJI_OBJECTS="lightbulb",Aq.EMOJI_PEOPLE="face_very_happy",Aq.EMOJI_RECENT="clock",Aq.EMPTY_HEART="heart",Aq.EMPTY_LIKE="thumb_up",Aq.ERROR_BLACK="alert_circle",Aq.ERROR_OUTLINE="alert_circle",Aq.ERROR_WHITE="alert_circle",Aq.EXIT_APP="arrow_in",Aq.EXIT_TO_APP="arrow_in",Aq.EXPAND="chevron_down",Aq.EXPAND_ALL="chevron_expand",
Aq.EXPAND_CAIRO="chevron_down",Aq.EXPAND_LESS="chevron_up",Aq.EXPAND_MORE="chevron_down",Aq.EXPLORE="compass",Aq.EXPLORE_DESTINATION="compass",Aq.EXTERNAL_LINK="arrow_up_right",Aq.EYE_OFF="eye_slash",Aq.FAB_UPLOAD="upload",Aq.FACE_HAPPY_OUTLINE="face_happy",Aq.FACE_MEH="face_neutral",Aq.FACT_CHECK="text_page_check",Aq.FASHION_LOGO="fashion",Aq.FASHION_LOGO_CAIRO="fashion",Aq.FAVORITE="thumb_up",Aq.FEEDBACK="alert_bubble",Aq.FEEDBACK_CAIRO="alert_bubble",Aq.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
Aq.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Aq.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Aq.FLAG_CAIRO="flag",Aq.FLASH_OFF="flash_slash",Aq.FLASH_ON="flash",Aq.FULL_HEART="heart",Aq.GAMING_LOGO="gaming",Aq.GAMING_LOGO_CAIRO="gaming",Aq.GO_TO_PAGE="arrow_right",Aq.GROUPS="person3",Aq.HAND_SWIPE_LEFT="gesture_swipe_left",Aq.HAND_SWIPE_RIGHT="gesture_swipe_right",Aq.HAPPY="face_happy",Aq.HEALTH_AND_SAFETY="shield_health",Aq.HEART_BOX="heart_cube",Aq.HELP="help_circle",Aq.HELP_CAIRO="help_circle",
Aq.HELP_OUTLINE="help_circle",Aq.HIDE="circle_slash",Aq.INCOGNITO_CAIRO="incognito",Aq.INFINITY_ICON="infinity",Aq.INFO="info_circle",Aq.INFO_OUTLINE="info_circle",Aq.INSERT_CHART="chart_bar_square",Aq.INSERT_CHART_OUTLINED="chart_bar_square",Aq.INSERT_PHOTO="image",Aq.KEEP="pin",Aq.KEEP_OFF="pin_slash",Aq.KEYBOARD="keyboard",Aq.KEYBOARD_ARROW_DOWN="chevron_down",Aq.KEYBOARD_ARROW_UP="chevron_up",Aq.KIDS_BLOCK="circle_slash",Aq.LANGUAGE="globe",Aq.LAUNCH="arrow_up_right",Aq.LEARNING="lightbulb",Aq.LEARNING_CAIRO=
"lightbulb",Aq.LIBRARY_ADD="bookmark",Aq.LIBRARY_IMAGE="image_stack",Aq.LIBRARY_MUSIC="audio_square_stack",Aq.LIBRARY_OUTLINE="play_square_stack",Aq.LIBRARY_REMOVE="bookmark",Aq.LIBRARY_SAVED="check_square_stack",Aq.LIKES_PLAYLIST="thumb_up",Aq.LIKES_PLAYLIST_CAIRO="thumb_up",Aq.LIKE="thumb_up",Aq.LIKE_SELECTED="thumb_up",Aq.LIST_QUEUE="queue",Aq.LIVE_CAIRO="live",Aq.LIVE_UNLISTED="link",Aq.LOCATION_ON="location_pin",Aq.LOCATION_PIN="location_pin",Aq.LOCATION_POINT="location_pin",Aq.LOOP="repeat",
Aq.LOOP_ACTIVE="repeat",Aq.LOOP_ONE="repeat1",Aq.LOOP_ONE_ACTIVE="repeat1",Aq.MEET="google_meet",Aq.MEH="face_neutral",Aq.MEMBERSHIPS="memberships",Aq.MEMBERS_ONLY_MODE_OFF="text_bubble",Aq.MENU_FILTER="filter",Aq.MESSAGE="text_bubble",Aq.MESSAGE_BUBBLE_GEAR="bubble_gear",Aq.MESSAGE_BUBBLE_LEFT="text_bubble",Aq.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Aq.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Aq.MESSAGE_BUBBLE_QUESTION="help_bubble",Aq.MICROPHONE_ON="mic",Aq.MONETIZATION_ON="dollar_sign_circle",
Aq.MONEY_FILL="dollar_sign_rectangle",Aq.MONEY_FILL_JPY="yen_sign_rectangle",Aq.MONEY_HAND="dollar_sign_circle_hand",Aq.MONEY_HEART="dollar_sign_heart",Aq.MOON_Z="sleep_timer",Aq.MORE_HORIZ="overflow_horizontal",Aq.MORE_VERT="overflow_vertical",Aq.MUSIC="audio",Aq.MUSIC_CAIRO="audio",Aq.MUSIC_EXPLICIT_BADGE="explicit",Aq.MUSIC_NEW_RELEASE="audio_badge",Aq.MUSIC_NOTE_SYMBOL="audio",Aq.MUSIC_SCISSORS="audio_scissors",Aq.MUSIC_SHUFFLE="shuffle",Aq.MY_CHANNEL="person_circle",Aq.MY_LOCATION="location_pin",
Aq.MY_VIDEOS="video",Aq.MY_VIDEOS_CAIRO="video",Aq.NEWS_CAIRO="news",Aq.NEWS_STORY="news",Aq.NEXT="chevron_right",Aq.NOTE_ADD="bubble_pencil",Aq.NOTIFICATIONS="bell",Aq.NOTIFICATIONS_ACTIVE="bell_waves",Aq.NOTIFICATIONS_CAIRO="bell",Aq.NOTIFICATIONS_DONE_CHECKMARK="check",Aq.NOTIFICATIONS_INBOX="bell",Aq.NOTIFICATIONS_NONE="bell",Aq.NOTIFICATIONS_OFF="bell_slash",Aq.NOT_INTERESTED="circle_slash",Aq.OFFICIAL_ARTIST_BADGE="audio",Aq.OFFLINE_CLOUD="cloud_slash",Aq.OFFLINE_DOWNLOAD="download",Aq.OFFLINE_DOWNLOAD_CAIRO=
"download",Aq.OFFLINE_PAUSE="pause",Aq.OPEN_IN_NEW="arrow_up_right",Aq.OUTLINE_ADJUST="adjust",Aq.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Aq.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Aq.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Aq.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Aq.OUTLINE_BAG="bag",Aq.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Aq.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Aq.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Aq.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Aq.PAID=
"dollar_sign_circle",Aq.PAUSE_OUTLINED="pause",Aq.PAYMENT="credit_card",Aq.PEOPLE="person_child",Aq.PEOPLE_2="person2_rectangle",Aq.PEOPLE_GROUP="person3",Aq.PEOPLE_NOTE="bubble_asterisk",Aq.PERSON_2="person2",Aq.PERSON_ACCOUNT="person_square_stack",Aq.PERSON_MINUS="person_x",Aq.PERSON_MUSIC="person_audio",Aq.PERSON_RADAR="person_waves",Aq.PERSON_RADAR_FILLED="person_waves",Aq.PERSON_SETTING="person_gear",Aq.PHONE="phone",Aq.PHONE_DOWNLOAD="mobile_arrow_down",Aq.PICTURE_IN_PICTURE="picture_in_picture",
Aq.PLAYABLES_LOGO="playables",Aq.PLAYABLES_LOGO_CAIRO="playables",Aq.PLAYLISTS="playlist",Aq.PLAYLISTS_CAIRO="playlist",Aq.PLAYLIST_ADD_CHECK="bookmark",Aq.PLAY_ALL="play",Aq.PLAY_ARROW="play",Aq.PLAY_ARROW_CIRCLE="play_circle",Aq.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Aq.PLAY_CIRCLE="play_circle",Aq.PLAY_OUTLINED="play_circle",Aq.PODCAST_ADD="podcast_add",Aq.PODCAST_CHECK="podcast_check",Aq.PRIVACY_INFO="shield_x",Aq.PRIVACY_PRIVATE="lock",Aq.PRIVACY_PUBLIC="globe",Aq.PRIVACY_UNLISTED=
"link",Aq.PROMOTE="megaphone",Aq.PURCHASES="price_tag",Aq.PURCHASE_SUPER_CHAT="super_chat",Aq.PURCHASE_SUPER_STICKER="super_sticker",Aq.QUESTION_ANSWER="help_bubble",Aq.QUESTION_CIRCLE="help_circle",Aq.QUEUE_PLAY_LAST="queue_last",Aq.QUEUE_PLAY_NEXT="playlist",Aq.QUOTATION_MARK="quote",Aq.RADAR_LIVE="live",Aq.REMOVE="minus_circle",Aq.REMOVE_CIRCLE="minus_circle",Aq.REMOVE_CIRCLE_OUTLINE="minus_circle",Aq.REMOVE_FROM_HISTORY="minus_circle",Aq.REMOVE_FROM_PLAYLIST="minus_circle",Aq.REMOVE_MODERATOR=
"shield_slash",Aq.REPLAY="arrow_counterclockwise",Aq.REPLAY_10="skip10_back",Aq.REPLAY_ARROW="replay",Aq.REPORT_PROBLEM="alert_triangle",Aq.RSS_OFF="rss_slash",Aq.SAD="face_sad",Aq.SAVE_PLAYLIST="bookmark",Aq.SCHEDULE="clock",Aq.SCHOOL="graduation_cap",Aq.SCREEN_DEFAULT="player_default",Aq.SCREEN_FULLSCREEN="player_full_enter",Aq.SCREEN_LIGHT="ambient_mode",Aq.SCREEN_ROTATION="rotate_portrait",Aq.SCREEN_SWITCH="player_switch",Aq.SCREEN_THEATRE="player_theater",Aq.SEARCH_CAIRO="search",Aq.SEARCH_HISTORY=
"history",Aq.SELL="price_tag",Aq.SETTINGS="gear",Aq.SETTINGS_CAIRO="gear",Aq.SETTINGS_LIGHT="gear",Aq.SETTINGS_MATERIAL="gear",Aq.SETTINGS_REMOTE="remote_waves",Aq.SHARE="share",Aq.SHARE_ARROW="share",Aq.SHARE_CAIRO="share",Aq.SHIELD="shield_x",Aq.SHIELD_OFF="shield_slash",Aq.SHIELD_WITH_AVATAR="person_shield",Aq.SHOPPING_BAG="bag",Aq.SHOPPING_BAG_CAIRO="bag",Aq.SHOPPING_CART="cart",Aq.SHORTS_COMMENT="text_bubble",Aq.SHORTS_DISLIKE="thumb_down",Aq.SHORTS_LIKE="thumb_up",Aq.SHORTS_SHARE="share",Aq.SKIP_FORWARD_30=
"skip30_forward",Aq.SLASH_CIRCLE_RIGHT="circle_slash",Aq.SLOW_MODE="bubble_slow",Aq.SLOW_MODE_OFF="text_bubble",Aq.SOCIAL="person_child",Aq.SPARKLE="sparkles",Aq.SPARK_IMAGE="image_spark",Aq.SPARK_RADAR="spark_waves",Aq.SPARK_VIDEO="video_spark",Aq.SPEAKER_GROUP="speaker_stack",Aq.SPEAKER_OFF="speaker_slash",Aq.SPEED_1X="n1x",Aq.SPEED_1_POINT_2X="n1point2x",Aq.SPEED_1_POINT_5X="n1point5x",Aq.SPEED_1_POINT_8X="n1point8x",Aq.SPEED_2X="n2x",Aq.SPONSORSHIP_STAR="star_circle",Aq.SPORTS="basketball",Aq.SPOTLIGHT=
"spotlight",Aq.STAFF_PICK="spotlight",Aq.START_DVR="add",Aq.STAR_BORDER="star",Aq.STAR_CIRCLE_RIBBON="memberships_gift",Aq.STAR_HALF="star_half_filled",Aq.STAR_SHOOTING="hype",Aq.STICKER="sticker",Aq.STICKER_EMOTICON="face_happy",Aq.STOP_DVR="stop",Aq.SUBSCRIBE="youtube",Aq.SUBSCRIBE_PLUS="add",Aq.SUBSCRIPTION_MANAGER="gear",Aq.SUPERSTAR="super_star",Aq.SUPERVISOR_ACCOUNT="person_child",Aq.SUPER_CHAT_FOR_GOOD="hands_heart",Aq.SWAP_HORIZ="arrow_swap_horizontal",Aq.SWITCH_ACCOUNTS="person_square_stack",
Aq.TAB_ACCOUNT="person",Aq.TAB_ACTIVITY="bell",Aq.TAB_BOOKMARK="bookmark",Aq.TAB_EXPLORE="compass",Aq.TAB_HOME="home",Aq.TAB_HOME_CAIRO="home",Aq.TAB_INBOX="mail",Aq.TAB_LIKED="thumb_up",Aq.TAB_MUSIC_PREMIUM="youtube_music",Aq.TAB_SHORTS="shorts",Aq.TAB_SHORTS_CAIRO="shorts",Aq.TAB_SUBSCRIPTIONS="subscriptions",Aq.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Aq.TAB_TRENDING="trending",Aq.TARGET="target",Aq.TARGET_ADD="target_add",Aq.TEMPLATE_ADD="template_add",Aq.TEXT="font",Aq.TIMER="stopwatch",Aq.TRENDING_CAIRO=
"trending",Aq.TRENDING_UP="arrow_trend_up",Aq.TROPHY_CAIRO="trophy",Aq.TROPHY_CELEBRATIONS="fireworks",Aq.TROPHY_STAR="star_trophy",Aq.TUNE="adjust",Aq.TV_OFF="tv_slash",Aq.UNBLOCK_USER="minus_circle",Aq.UNFAVORITE="thumb_down",Aq.UNLIMITED="youtube",Aq.UNPLUGGED_LIVE_GUIDE="live",Aq.UNPLUGGED_SPORTS="eye_slash",Aq.UPLOADS="play_square_stack",Aq.UP_ARROW="arrow_up",Aq.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Aq.VERTICAL_ALIGN_TOP="chevron_up_end",Aq.VERY_HAPPY="face_very_happy",Aq.VERY_SAD="face_very_sad",
Aq.VIDEOS="play_circle",Aq.VIDEO_CALL="video_camera_add",Aq.VIDEO_LIBRARY_WHITE="play_square_stack",Aq.VIDEO_QUALITY_4K="n4k",Aq.VIDEO_QUALITY_8K="n8k",Aq.VIDEO_YOUTUBE="youtube",Aq.VIEW_LIST_CAIRO="view_list",Aq.VIEW_MODULE="view_column3_row2",Aq.VISIBILITY="eye",Aq.VISIBILITY_OFF="eye_slash",Aq.VOLUME_DOWN="volume_min",Aq.VOLUME_MUTE="volume_mute",Aq.VOLUME_OFF="volume_mute",Aq.VOLUME_STABLE="stable_volume",Aq.VOLUME_UP="volume_max",Aq.WALLPAPER="image",Aq.WARNING="alert_triangle",Aq.WATCH_HISTORY=
"history",Aq.WATCH_HISTORY_CAIRO="history",Aq.WATCH_LATER="clock",Aq.WATCH_LATER_CAIRO="clock",Aq.WATCH_RELATED_MIX="mix",Aq.WHAT_TO_WATCH="home",Aq.YOUTUBE_LINKED_TV="tv_mobile",Aq.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Aq.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Aq.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Aq.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Aq.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Aq.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Aq.YOUTUBE_SHORTS_OUTLINE_24="shorts",
Aq);var $Ah={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,
6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,14,24],[1,14,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,
2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],
uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],
x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var b39={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],
eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,
4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,
1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,
1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,
2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,
24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,
1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],
live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],
[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,3,24],[1,3,18],[1,3,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,
1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],
overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,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,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,
24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,
1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,
1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,4,12],[1,4,18],[1,4,24],[1,4,48]],playlist_add:[[1,2,18],[1,2,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],
playlist_x:[[1,2,18],[1,2,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],
queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,
2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,14,24],[1,14,18],[1,14,24],[1,14,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,
24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,3,24],[1,3,18],[1,3,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,
1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,
2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],
star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,
1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,
1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],
[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,
1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,
2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var yoh={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},vR=function(F){this.iconUrlProvider=F};
vR.prototype.resolveIcon=function(F,q){var t=yoh[F.iconName.toUpperCase()];t&&(F.iconName=t);var u=F.iconName;u=u.replace(/-/g,"_");F=Object.assign({},F,{iconName:this.mapIconTypeToStandardName(u,!!t)||u.toLowerCase()});if(_.E("enable_web_delhi_icons")||t){var J;return sU$(b39,F,((J=this.iconUrlProvider)==null?void 0:J.getYtStandardUrl)||YgC,q)}var g;return sU$($Ah,F,((g=this.iconUrlProvider)==null?void 0:g.getYtStandardUrl)||Xa$,q)};
vR.prototype.mapIconTypeToStandardName=function(F,q){return _.E("enable_web_delhi_icons")||q?mAv[F.toUpperCase()]:H3y[F.toUpperCase()]};
vR[Yc]=[_.JU(Aoh)];var CuC=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),dA3=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),VWw=function(F){this.urlProvider=this.iconUrlProvider=F};
_.M(VWw,vR);
VWw.prototype.resolveIcon=function(F,q){F.iconName==="youtube_logo"&&(F.iconName="yt-logo-updated");if(F.iconName==="youtube_premium_logo"||F.iconName==="youtube_red_logo")F.iconName="yt-logo-red-updated";var t=Object.assign({},F);F.iconName==="menu"&&(_.E("enable_web_delhi_icons")||(t.iconName="bars_3"),t.iconStyle="youtube_outline");F.iconSetName==="socialNetworksRound"&&(F.iconName==="mail"&&(t.iconName="email"),F.iconName==="embed"&&(t.iconSize=60));F.iconName==="more"&&(t.iconName="overflow_horizontal");
F.iconName==="fullscreen"&&(t.iconName="screen_full");F.iconName==="premium_standalone"&&(t.iconName="premium_standalone_cairo");_.E("enable_connect_icon_update_web")&&F.iconName==="account_linked"&&(t.iconName="circles_overlap_check",t.iconStyle="youtube_fill");_.E("enable_connect_icon_update_web")&&F.iconName==="account_unlinked"&&(t.iconName="circles_overlap",t.iconStyle="youtube_outline");CuC.has(F.iconName)&&(t.iconStyle="youtube_fill");_.E("enable_web_delhi_icons")&&(F.iconName==="playlist_add"&&
(t.iconName="bookmark"),F.iconName==="offline_pin"&&(t.iconName="arrow_down_circle",t.iconStyle="youtube_fill"),dA3.has(F.iconName)&&(t.iconName+="_updated"));F=Object.assign({},t,{iconName:(vR.prototype.mapIconTypeToStandardName.call(this,t.iconName)||t.iconName).toLowerCase()});var u;return(F=sU$(Puy,F,((u=this.urlProvider)==null?void 0:u.getUrl)||pao,q))?F:vR.prototype.resolveIcon.call(this,t,q)};
VWw[Yc]=[_.JU(Aoh)];_.UA3=1;var IS=function(F,q){this.JSC$17209_commandHandler=F;this.innertubeTransportService=q};
_.M(IS,l9);IS.prototype.resolveCommand=function(F,q){var t=this,u,J,g;return _.p(function(Y){return(u=_.n(F,A$n))?Y.return(SMv(t,u,(J=q)==null?void 0:(g=J.form)==null?void 0:g.element)):Y.return()})};
var SMv=function(F,q,t){q={profileCardContext:q.profileCardContext,profileOwnerExternalChannelId:q.profileOwnerExternalChannelId};var u=_.Jn(MeC);return _.uW(F.innertubeTransportService,q,u).then(function(J){if(!J)throw new _.D0("GetProfileCard failed");if(J=J.popupCommand){F.JSC$17209_commandHandler.resolveCommand(J,{form:{element:t}});_.OX(_.DP(),66557);J=J==null?void 0:J.clickTrackingParams;var g=_.b7();J&&g&&_.DP().graftServerVe(J,g)}})};
IS[Yc]=[_.gN,_.da];var HR=function(){};
_.M(HR,l9);HR.prototype.resolveCommand=function(F){var q,t;return _.p(function(u){q=_.n(F,CXL);if(!q)return u.return();t=Number(q.enableDelayedPacfLoggingTvMs);if(isNaN(t)){var J=vY();czJ(J,q,0)}else czJ(vY(),q,t);_.WA(u)})};_.mb=function(){};
_.M(_.mb,l9);
_.mb.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e,r;return _.p(function(N){u=_.n(F,dtw);g=(J=q.form)==null?void 0:J.element;Q=(Y=g)==null?void 0:Y.closest("ytd-enforcement-message-view-model");if(!u||!Q)return N.return();t.allowAdsAction||(e=u.fundingChoiceInstructionPageUrl,t.allowAdsAction=new s5C(window,_.$w(e)));var w=t.allowAdsAction;w.wallElement=Q;w.allowAdsPopup.style.setProperty("display","flex","important");var k=w.scrollManager;k.originalBodyOverflow=k.JSC$9992_domHelper.JSC$9319_document_.body.style.overflow;k.JSC$9992_domHelper.JSC$9319_document_.body.style.overflow=
"hidden";w.wallElement.style.setProperty("display","none","important");NPO(w.accessibilityManager,w.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((r=t.allowAdsAction.allowAdsPopup)&&r instanceof HTMLElement)for(w=_.X(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),k=w.next();!k.done;k=w.next()){var z=_.X(k.value);k=z.next().value;z=z.next().value;r.style.setProperty(k,z)}_.WA(N)})};
_.mb.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var $J=function(){};
_.M($J,l9);$J.prototype.resolveCommand=function(F){var q;return _.p(function(t){q=_.n(F,HCO);if(!q)return t.return();BK_(F);_.WA(t)})};var b0=function(F){this.JSC$17224_commandHandler=F};
_.M(b0,l9);
b0.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q,e,r;return _.p(function(N){if(N.nextAddress==1){t=_.n(F,pXx);if((u=t)==null||!u.text||!navigator.clipboard)return N.return();_.zg(N,2);return N.yield(navigator.clipboard.writeText(t.text),4)}if(N.nextAddress!=2){if(!t.successActions||t.successActions.length===0)return N.return();J=_.X(t.successActions);for(g=J.next();!g.done;g=J.next())Y=g.value,q.JSC$17224_commandHandler.resolveCommand(Y);return _.LE(N,0)}_.Gg(N);if(!t.failureActions||t.failureActions.length===
0)return N.return();Q=_.X(t.failureActions);for(e=Q.next();!e.done;e=Q.next())r=e.value,q.JSC$17224_commandHandler.resolveCommand(r);_.WA(N)})};
b0[Yc]=[_.gN];var yD=function(F){this.JSC$17228_commandHandler=F};
_.M(yD,l9);
yD.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e,r,N,w,k;return _.p(function(z){switch(z.nextAddress){case 1:u=_.n(F,VRz);if(!u)return z.return();_.zg(z,2);if(!u.imageBytes&&!u.imageUrl)throw Error("yi");if(!u.imageUrl){if(u.imageBytes){g=u.imageBytes;Y=g.replace(/-/g,"+").replace(/_/g,"/");var T=ZSt(Y);J=_.Vy(T)}z.jumpTo(4);break}return z.yield(fetch(u.imageUrl),5);case 5:return Q=z.yieldResult,z.yield(Q.blob(),6);case 6:e=z.yieldResult,J=_.Vy(e);case 4:w=(r=q)==null?void 0:(N=r.form)==
null?void 0:N.element;k=document.createElement("a");Kl(k,J);w.appendChild(k);k.download="";k.click();w.removeChild(k);URL.revokeObjectURL(_.mt(J));u.successCommand&&t.JSC$17228_commandHandler.resolveCommand(u.successCommand);_.LE(z,0);break;case 2:_.Gg(z),u.errorCommand&&t.JSC$17228_commandHandler.resolveCommand(u.errorCommand),_.WA(z)}})};
yD[Yc]=[_.gN];var C$=function(F){this.store=F};
_.M(C$,l9);C$.prototype.resolveCommand=function(F){var q=this,t,u,J;return _.p(function(g){u=(t=_.n(F,_.fJC))==null?void 0:t.entityBatchUpdate;if(!u)return g.jumpTo(0);J=Object.assign({},u,{mutations:[].concat(_.mZ(u.mutations||[]))});return g.yield(_.nj(J,q.store),0)})};var hov=function(F){this.JSC$17235_commandHandler=F;this.feedbackDialogMap=new Map};
hov.prototype.openDialog=function(F,q){(F=this.feedbackDialogMap.get(F))&&this.JSC$17235_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:F}},q)};
hov[Yc]=[_.gN];var d9=new _.pg("FEEDBACK_CONTROLLER_TOKEN");var VD=new _.pg("APP_STORE_TOKEN");var U0=function(F,q){this.store=F;this.controller=q};
_.M(U0,l9);U0.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S;return _.p(function(K){if(K.nextAddress==1){u=_.n(F,_.PO);if(g=(J=u)==null?void 0:J.contentId)for(Q=_.X(((Y=u)==null?void 0:Y.actions)||[]),e=Q.next();!e.done;e=Q.next())r=e.value,K$T(t,r,g);k=(N=q)==null?void 0:(w=N.form)==null?void 0:w.element;return K.yield(_.RD(k,[F,{impression:(z=q)==null?void 0:z.disableClickTracking}]).catch(function(){}),2)}T=K.yieldResult;
((P=T)==null?0:(v=P.data)==null?0:(H=v.feedbackResponses)==null?0:H.length)&&(a=(d=T.data.feedbackResponses[0])==null?void 0:d.followUpDialog)&&g&&(S=t.controller)!=null&&S.feedbackDialogMap.set(g,a);_.WA(K)})};
var K$T=function(F,q,t){var u=_.n(q,_.wY);if(u){u=_.X(u.commands||[]);for(var J=u.next();!J.done;J=u.next())K$T(F,J.value,t)}_.n(q,_.HX)&&F.store.dispatch(_.Gl("commandEntity",QiP(t),{key:t,command:q}));_.n(q,bRv)&&F.store.dispatch(_.Gl("commandEntity",QiP(t),{key:t,command:q}))};
U0[Yc]=[VD,d9];var SE=function(F){this.controller=F};
_.M(SE,l9);SE.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y;return _.p(function(Q){u=_.n(F,_.UD);g=(J=u)==null?void 0:J.targetId;if(((Y=u)==null?void 0:Y.signal)!=="TELL_US_WHY"||!g)return Q.return();t.controller.openDialog(g,q);_.WA(Q)})};
SE[Yc]=[d9];var hq=function(F){this.store=F};
_.M(hq,l9);hq.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e,r;return _.p(function(N){u=_.n(F,c7f);g=(J=u)==null?void 0:J.contentId;e=(Y=q)==null?void 0:(Q=Y.form)==null?void 0:Q.element;r=_.RD(e,[F]);g&&t.undo(g);return N.yield(r,0)})};
hq.prototype.undo=function(F){this.store.dispatch(_.Gl("commandEntity",QiP(F),{key:F,command:void 0}))};
hq[Yc]=[VD];var K$=function(F){this.JSC$17250_commandHandler=F};
_.M(K$,l9);K$.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q,e,r;return _.p(function(N){t=_.n(F,e3x);u=t.flowStateKey;J=t.validationFailureCommand;g=t.submitValidFormCommand;Y=n43(_.jx,[u||""]);Q=_.n(Y,R31);((e=Q)==null?0:e.isValid)&&g&&q.JSC$17250_commandHandler.resolveCommand(g);((r=Q)==null?0:r.isValid)||!J||q.JSC$17250_commandHandler.resolveCommand(J);_.WA(N)})};
K$[Yc]=[_.gN];var BR=function(F){this.innertubeTransportService=F};
_.M(BR,l9);BR.prototype.resolveCommand=function(F,q){var t=this,u;return _.p(function(J){return J.yield(_.aI(t.innertubeTransportService,F,(u=q)==null?void 0:u.form).then(function(g){var Y,Q;q==null||(Y=q.commandController)==null||(Q=Y.onSuccess)==null||Q.call(Y,F,g)},function(g){var Y,Q;
q==null||(Y=q.commandController)==null||(Q=Y.onServerError)==null||Q.call(Y,F,g)}),0)})};
BR[Yc]=[_.da];var L$=function(){};
_.M(L$,l9);L$.prototype.resolveCommand=function(F){var q,t,u,J;return _.p(function(g){if(q=_.n(F,_.qnE)){if(t=q.gtmId)u=_.bn("GL",""),_.f8(t,u);(J=q.gtmData)&&_.ag(J)}_.WA(g)})};var f$=function(F,q){this.innertubeTransportService=F;this.JSC$17261_actionRouter=q};
_.M(f$,l9);f$.prototype.resolveCommand=function(F){var q=this,t,u;return _.p(function(J){t=_.n(F,prC);if(!t)return J.return();u=t.command;if(!u)return J.return();q.JSC$17261_actionRouter.triggerAction("yt-insert-rich-section-action",t);return J.yield(_.aI(q.innertubeTransportService,u,{disableCache:!0}),0)})};
f$[Yc]=[_.da,iv];r6M.bind(null,Xu);var Bf7=r6M.bind(null,rzv);wa$.bind(null,Xu);var L$7=wa$.bind(null,rzv);k$t.bind(null,Xu);var fv9=k$t.bind(null,rzv);var aS=function(){};
_.M(aS,l9);
aS.prototype.resolveCommand=function(F){var q,t,u,J,g,Y,Q,e,r,N;return _.p(function(w){q=_.n(F,LXx);if(!q)return w.return();u=((t=q.operations)==null?void 0:t.operations)||[];J=_.X(u);for(g=J.next();!g.done;g=J.next())if(Y=g.value,Y.insertItemSectionContent){var k=Y.insertItemSectionContent,z=k.contents||[];k.insertByPositionInSection?Bf7(k.insertByPositionInSection.sectionTargetId,z,k.insertByPositionInSection.position):k.insertByRelativePositionInSection&&k.insertByRelativePositionInSection.sectionTargetId&&k.insertByRelativePositionInSection.itemTargetId&&
L$7(k.insertByRelativePositionInSection.sectionTargetId,k.insertByRelativePositionInSection.itemTargetId,z,k.insertByRelativePositionInSection.relativePosition)}else Y.replaceSection?(k=Y.replaceSection,z={},k.replaceByTargetId?z=k.replaceByTargetId:k.replaceByGroupId&&(z={targetId:k.replaceByGroupId.groupId,newContent:k.replaceByGroupId.newContent,undoKey:""}),z.newContent&&imx(z.targetId,{continuationItems:[z.newContent]})):Y.removeItem?(k=Y.removeItem,k.removeByTargetId&&k.sectionTargetId&&fv9(k.sectionTargetId,
k.removeByTargetId.targetIds||[])):Y.removeSection&&(Y.removeSection.removeByTargetId?(Q=void 0,avs(((Q=Y.removeSection)==null?void 0:Q.removeByTargetId.targetIds)||[])):Y.removeSection.removeByGroupId&&(e=void 0,avs(((e=Y.removeSection)==null?void 0:e.removeByGroupId.groupIds)||[])));N=((r=q.operations)==null?void 0:r.scrollConfig)||{};j_5(N);_.WA(w)})};
var avs=function(F){F=_.X(F);for(var q=F.next();!q.done;q=F.next())imx(q.value,{continuationItems:[]})},j_5=function(F){if(F.scrollToItem){var q=F.scrollToItem.item||{},t=q.itemTargetId;
q=q.sectionTargetId;if(t&&q){var u=document.querySelector("[data-target-id="+q+"]"),J=u==null?void 0:u.querySelector("[data-target-id="+t+"]");u&&J&&setTimeout(function(){var g=J.offsetTop-u.offsetTop,Y;if(((Y=F.scrollToItem)==null?void 0:Y.scrollPosition)==="SCROLL_POSITION_CENTER")g-=u.offsetHeight/2,g+=J.offsetHeight/2;else{var Q;((Q=F.scrollToItem)==null?void 0:Q.scrollPosition)==="SCROLL_POSITION_END"&&(g-=u.offsetHeight,g+=J.offsetHeight)}u.scroll({top:g,behavior:"smooth"})},100)}}};var jE=new _.pg("CLIENT_NAME_TOKEN");var cos=new _.pg("DEFAULT_STORE_EXPIRATION_TOKEN");var Q9t=new _.pg("CLIENT_LOCATION_SERVICE_TOKEN");var cR=function(F,q,t){this.clientName=F||_.bn("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=q||_.b1.getInstance();this.JSC$17289_commandHandler=t||_.oc.instance};
_.M(cR,l9);cR.prototype.resolveCommand=function(F){var q=this,t,u;return _.p(function(J){u=(t=_.n(F,T5z))==null?void 0:t.onComplete;q.clientLocationService.clearLocationPlayabilityToken(q.clientName);u&&q.JSC$17289_commandHandler.resolveCommand(u);_.WA(J)})};
cR[Yc]=[jE,Q9t,_.gN];var Fj=function(F){this.innertubeTransportService=F};
_.M(Fj,l9);Fj.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y;return _.p(function(Q){g=(u=q)==null?void 0:(J=u.form)==null?void 0:J.element;return Q.yield(_.aI(t.innertubeTransportService,F,(Y=q)==null?void 0:Y.form).then(function(e){x__(g,new CustomEvent("yt-service-request-completed"),{data:e},_.bn("openPopupConfig"))}),0)})};
Fj[Yc]=[_.da];var qe=function(){};
_.M(qe,l9);qe.prototype.resolveCommand=function(F){var q,t;return _.p(function(u){q=_.n(F,ige);t=document.querySelector("mini-app-container-view-model");if(!q||!t)return u.return();q.isPlaying?t.dispatchEvent(new Event("play")):t.dispatchEvent(new Event("pause"));_.WA(u)})};var tL=function(){};
_.M(tL,l9);tL.prototype.resolveCommand=function(F){var q,t,u,J,g,Y,Q;return _.p(function(e){q=_.n(F,Luw);if((t=q)==null||!t.paramKeys)return e.return();u=q.paramKeys;J=_.Lr(window.location.href);g=_.X(u);for(Y=g.next();!Y.done;Y=g.next())Q=Y.value,J.JSC$10024_queryData_.remove(Q);window.history.replaceState(window.history.state,document.title,J.toString());_.WA(e)})};var Fr9=function(){this.dropdownMap=new Map};_.qvy=new _.pg("DROPDOWN_CONTROLLER_TOKEN");var uy=function(F){this.controller=F};
_.M(uy,l9);uy.prototype.resolveCommand=function(F){var q=this,t,u,J,g;return _.p(function(Y){t=_.n(F,DHe);if(!t)return Y.return();u=t;J=u.dropdownId;g=u.selectedOptionIndex;if(J===void 0||g===void 0)return Y.return();var Q=q.controller.dropdownMap.get(J);Q&&Q(g);_.WA(Y)})};
uy[Yc]=[_.qvy];var JL=function(F){this.controller=F};
_.M(JL,l9);JL.prototype.resolveCommand=function(F){var q=this,t;return _.p(function(u){return(t=_.n(F,yMr))?u.yield(q.controller.closeDialog(),0):u.return()})};
JL[Yc]=[_.je];var sR=function(F){this.controller=F};
_.M(sR,l9);sR.prototype.resolveCommand=function(F){var q=this,t,u;return _.p(function(J){t=_.n(F,oxL);if(!t)return J.return();var g,Y=t.panelIdentifier||((g=t.identifier)==null?void 0:g.tag);if(!Y)throw Error("zi");return(u=Y)?J.yield(q.controller.hidePanel(u),0):J.jumpTo(0)})};
sR[Yc]=[_.f_];var gW=function(F,q){this.innertubeTransportService=F;this.controller=q};
_.M(gW,l9);gW.prototype.resolveCommand=function(F){var q=this,t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return t=_.n(F,nxn),(u=t)!=null&&u.panelId?Y.yield(q.controller.getReloadContinuation(t.panelId),2):Y.return();if(Y.nextAddress!=3)return(J=Y.yieldResult)?Y.yield(_.aI(q.innertubeTransportService,F,{continuation:J}),3):Y.return();g=Y.yieldResult;return Y.yield(q.controller.updatePanel(t.panelId,g.content,!1),0)})};
gW[Yc]=[_.da,_.f_];var ly=function(F,q,t){this.innertubeTransportService=F;this.JSC$17325_screenManager=q;this.JSC$17325_commandHandler=t};
_.M(ly,l9);
ly.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q;return _.p(function(e){if(e.nextAddress==1){t=_.n(F,_.Zue);if(!t)return e.return();if(t.commands)for(u=_.X(t.commands),J=u.next();!J.done;J=u.next())g=J.value,q.JSC$17325_commandHandler.resolveCommand(g,{disableClickTracking:!0});Y=_.Av(F.clickTrackingParams);_.OX(q.JSC$17325_screenManager,21760,Y,{layer:7,parentLayer:0});return e.yield(_.aI(q.innertubeTransportService,F),2)}Q=e.yieldResult;if(!Q)return e.return();q.JSC$17325_screenManager.graftServerVe(Q.trackingParams,Y,
7);_.WA(e)})};
ly[Yc]=[_.da,_.LA,_.gN];var Xj=new _.pg("PANEL_LOADING_STRATEGY_TOKEN");var YL=function(F,q){this.controller=F;this.panelLoadingStrategy=q};
_.M(YL,l9);
YL.prototype.resolveCommand=function(F,q){var t=this,u,J,g;return _.p(function(Y){u=_.n(F,XPE);if((J=u)==null||!J.panelLoadingStrategy)return Y.return();g=function(Q){var e,r,N,w,k,z,T,P,v,H;return _.p(function(d){r=_.n((e=Q.dialogViewModel)==null?void 0:e.header,Wuf);N={viewModel:Q.dialogViewModel};w={};if(T=_.E("web_enable_dialog_header_label")?(k=r)==null?void 0:(z=k.headline)==null?void 0:z.content:void 0)w.ariaLabel=T;u.dismissOnBackgroundTap===!1&&(w.isModal=!0);return Q.dialogViewModel?d.yield(t.controller.openDialog(N,
(H=(P=q)==null?void 0:(v=P.form)==null?void 0:v.element)!=null?H:document.body,w),0):d.return()})};
return Y.yield(t.panelLoadingStrategy.execute({command:F,data:u.panelLoadingStrategy,renderFn:g,createScreenConfig:{layer:4}}),0)})};
YL[Yc]=[_.je,Xj];var po=function(F,q,t){this.innertubeTransportService=F;this.controller=q;this.JSC$17345_screenManager=t};
_.M(po,l9);
po.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e,r,N,w,k,z,T;return _.p(function(P){switch(P.nextAddress){case 1:u=_.n(F,_.OL);if(!u)return P.return();var v,H=u.panelIdentifier||((v=u.identifier)==null?void 0:v.tag);if(!H)throw Error("zi");J=H;return P.yield(t.controller.isVisible(J,!0),2);case 2:if((g=P.yieldResult)&&u.blockIfPanelOpen)return P.return();e=(Q=(Y=t.controller).getPanelContent)==null?void 0:Q.call(Y,J);if(!(v=e))if(u){var d;v=((d=u.globalConfiguration)==null?void 0:
d.initialState)||u.engagementPanel;if(d=!v)d=!!(u==null?0:(H=u.engagementPanelPresentationConfigs)==null?0:H.engagementPanelPopupPresentationConfig);d&&(v=_.Ea3(u.panelIdentifier,u.identifier))}else v=void 0;r=v;N=u.engagementPanelPresentationConfigs;w=u.engagementPanelExtras;return P.yield(t.controller.showPanel(J,r,N,w,(k=q)==null?void 0:(z=k.form)==null?void 0:z.element),3);case 3:if(!u.globalConfiguration){P.jumpTo(0);break}_.OX(t.JSC$17345_screenManager,32633);return P.yield(_.aI(t.innertubeTransportService,
F),5);case 5:return T=P.yieldResult,t.JSC$17345_screenManager.graftServerVe(T.trackingParams),P.yield(t.controller.updatePanel(J,T.content,!0,w,void 0,T.updatePanelContinuationData),0)}})};
po[Yc]=[_.da,_.f_,_.LA];var QQ=function(F,q){this.controller=F;this.panelLoadingStrategy=q};
_.M(QQ,l9);QQ.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e;return _.p(function(r){u=_.n(F,_.Dz);if((J=u)==null||!J.panelLoadingStrategy)return r.return();Q=tC3(t.controller,(g=q)==null?void 0:(Y=g.form)==null?void 0:Y.element);e=function(N){return _.p(function(w){return N.sheetViewModel?w.yield(t.controller.openSheet({viewModel:N.sheetViewModel},Q),0):w.return()})};
return r.yield(t.panelLoadingStrategy.execute({command:F,data:u.panelLoadingStrategy,renderFn:e,createScreenConfig:{layer:0}}),0)})};
QQ[Yc]=[_.ap,Xj];var e7=function(F,q){this.controller=F;this.JSC$17353_commandHandler=q};
_.M(e7,l9);e7.prototype.resolveCommand=function(F,q){var t=this,u,J,g;return _.p(function(Y){if(Y.nextAddress==1){u=_.n(F,Dkf);var Q=_.n(u.showCommand,_.OL),e,r,N=(r=Q==null?void 0:Q.panelIdentifier)!=null?r:Q==null?void 0:(e=Q.identifier)==null?void 0:e.tag;if(!N)throw Error("Ai");J=N;return Y.yield(t.controller.isVisible(J),2)}return(g=Y.yieldResult)?Y.yield(t.controller.hidePanel(J),0):Y.yield(t.JSC$17353_commandHandler.resolveCommand(u.showCommand,q),0)})};
e7[Yc]=[_.f_,_.gN];var Z5=function(F,q,t){this.innertubeTransportService=F;this.controller=q;this.JSC$17356_screenManager=t};
_.M(Z5,l9);
Z5.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S,K,h,c;return _.p(function(rf){switch(rf.nextAddress){case 1:return u=t=_.n(F,Wle),J=u.targetPanelIdentifier,g=u.contentSourcePanelIdentifier,Y=u.globalConfiguration,((Q=J)==null?0:Q.tag)&&((e=g)==null?0:e.tag)?Y?rf.yield(q.controller.showPanel(J.tag,_.Ea3(J.tag,J),void 0,void 0,void 0),5):rf.yield((k=(w=q.controller).getPanel)==null?void 0:k.call(w,g.tag),4):rf.return();case 4:z=rf.yieldResult;r=(T=z)==null?void 0:
(v=(P=T).getPanelContent)==null?void 0:v.call(P);rf.jumpTo(3);break;case 5:return rf.yield(_.aI(q.innertubeTransportService,F),6);case 6:H=rf.yieldResult,((d=H)==null?0:d.trackingParams)&&q.JSC$17356_screenManager.graftServerVe(H.trackingParams),r=(a=H)==null?void 0:a.content,N=(S=H)==null?void 0:S.updatePanelContinuationData;case 3:if(h=(K=r)==null?void 0:K.engagementPanelSectionListRenderer)return rf.yield(q.controller.showPanel(J.tag,void 0,void 0,void 0,void 0,{content:h.content,secondaryHeaderContent:(c=
h.header)!=null?c:{},targetId:h.targetId},N),0);rf.jumpTo(0)}})};
Z5[Yc]=[_.da,_.f_,_.LA];var uL7=function(){};
_.M(uL7,l9);uL7.prototype.resolveCommand=function(F){var q,t,u;return _.p(function(J){if(J.nextAddress==1)return(q=_.n(F,HVJ))?J.yield(_.NZ(),2):J.return();t=J.yieldResult;if(!t)return J.return();var g=t,Y=(u=q)==null?void 0:u.languageCode,Q;(g==null?0:(Q=g.isReady)==null?0:Q.call(g))&&(Y=zVA(g,Y))&&g.setAudioTrack(Y);_.WA(J)})};var RW=function(){};
_.M(RW,l9);var JEv=function(F){var q;return _.p(function(t){q=_.bn("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;F.JSC$17367_mainAppPlayer=new kT(q);document.addEventListener("yt-page-data-updated",F.JSC$17367_pauseOnNavigation.bind(F));_.WA(t)})};
RW.prototype.JSC$17367_pauseOnNavigation=function(){var F=this,q,t;return _.p(function(u){if(u.nextAddress==1)return q=F.JSC$17367_mainAppPlayer,u.yield(q.api,2);t=u.yieldResult;t.pauseVideo();_.WA(u)})};
var sjv=function(F,q,t){var u;return _.p(function(J){u=F.JSC$17367_mainAppPlayer;return J.yield(u.loadVideoWithPlayerVars({videoId:q,audio_only:"1",player_params:t}),0)})};
RW.prototype.pauseVideo=function(){var F=this,q,t;return _.p(function(u){if(u.nextAddress==1)return q=F.JSC$17367_mainAppPlayer,u.yield(q.api,2);t=u.yieldResult;t.pauseVideo();_.WA(u)})};
RW.prototype.playVideo=function(){var F=this,q,t;return _.p(function(u){if(u.nextAddress==1)return q=F.JSC$17367_mainAppPlayer,u.yield(q.api,2);t=u.yieldResult;t.playVideo();_.WA(u)})};
var gOy=function(F){var q,t;return _.p(function(u){if(u.nextAddress==1)return q=F.JSC$17367_mainAppPlayer,u.yield(q.api,2);t=u.yieldResult;t.mute();_.WA(u)})},lws=function(F){var q,t;
return _.p(function(u){if(u.nextAddress==1)return q=F.JSC$17367_mainAppPlayer,u.yield(q.api,2);t=u.yieldResult;t.unMute();_.WA(u)})},Xfv=function(F,q){return _.p(function(t){switch(t.nextAddress){case 1:switch(q){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return t.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return t.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return t.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return t.jumpTo(5)}t.jumpTo(0);break;case 2:return t.yield(F.playVideo(),7);case 7:t.jumpTo(0);break;case 3:return t.yield(F.pauseVideo(),8);case 8:t.jumpTo(0);break;case 4:return t.yield(gOy(F),9);case 9:t.jumpTo(0);break;case 5:return t.yield(lws(F),10);case 10:t.jumpTo(0)}})};
RW.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q,e,r,N,w,k;return _.p(function(z){return z.nextAddress==1?(t=_.n(F,Znn),((u=t)==null?0:u.newPlaybackParams)||((J=t)==null?0:J.controlAction)?q.JSC$17367_mainAppPlayer?z.jumpTo(2):z.yield(JEv(q),2):z.return()):((g=t)==null?0:g.newPlaybackParams)?(e=(Y=t)==null?void 0:(Q=Y.newPlaybackParams)==null?void 0:Q.externalVideoId,k=(w=(r=t)==null?void 0:(N=r.newPlaybackParams)==null?void 0:N.playerParams)!=null?w:"",e?z.yield(sjv(q,e,k),0):z.return()):
z.yield(Xfv(q,t.controlAction),0)})};var rW=function(F){this.JSC$17374_commandHandler=F};
_.M(rW,l9);
rW.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q;return _.p(function(e){if(e.nextAddress==1)return(t=_.n(F,mKd))?e.yield(_.NZ(),2):e.return();u=e.yieldResult;if(!u)return e.return();var r=u,N=(J=t)==null?void 0:J.languageCode,w=(g=t)==null?void 0:g.isAutoTranslated;r.getVideoData&&_.naC(r).length&&((N=THv(r,N,w))?r.setOption("captions","track",N):(r.setOption("captions","stickyLoading",{}),r.setOption("captions","track",{})));Y=u.isSubtitlesOn()?_.oD("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.oD("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Q=_.l1(Y);q.JSC$17374_commandHandler.resolveCommand(Q);_.WA(e)})};
rW[Yc]=[_.gN];var wW=function(F,q){this.shortsPlayerPromise=F;this.JSC$17378_commandHandler=q};
_.M(wW,l9);
wW.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q,e,r;return _.p(function(N){if(N.nextAddress==1)return(t=_.n(F,qqf))?N.yield(q.shortsPlayerPromise,2):N.return();u=N.yieldResult;var w=G$C(u);w!=null&&w.length||(u.loadModule("captions"),w=G$C(u));J=w;if((g=J)==null||!g.length)return Y=_.oD("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),Q=_.l1(Y),q.JSC$17378_commandHandler.resolveCommand(Q),N.return();u.toggleSubtitles();e=u.isSubtitlesOn()?_.oD("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.oD("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");r=_.l1(e);q.JSC$17378_commandHandler.resolveCommand(r);_.WA(N)})};
wW[Yc]=[_.Uiv,_.gN];var iy=function(F){this.JSC$17381_actionRouter=F;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(q,t){q.triggerAction("yt-dismiss-shopping-timely-shelf-action",t)}]])};
_.M(iy,l9);iy.prototype.resolveCommand=function(F){var q=this,t,u,J;return _.p(function(g){t=_.n(F,Cmn);if((u=t)==null||!u.overlayId)return g.return();J=q.dismissPlayerOverlayActions.get(t.overlayId);if(!J)throw Error("Bi`"+t.overlayId);J(q.JSC$17381_actionRouter,t);_.WA(g)})};
iy[Yc]=[iv];var kL=function(F){this.JSC$17385_playerPromise=F};
_.M(kL,l9);kL.prototype.resolveCommand=function(F){var q=this,t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return(t=_.n(F,Tzx))?Y.yield(q.JSC$17385_playerPromise,2):Y.return();u=Y.yieldResult;J=u.getVideoData().video_id;t.videoId===J&&(g=Number(t.offsetFromVideoStartMilliseconds),g>=0&&u.seekTo(g/1E3));_.WA(Y)})};
kL[Yc]=[_.Qg];var Yvh=_.wj("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),ER=function(F){this.store=F};
_.M(ER,l9);
var pfy=function(F){var q,t,u,J;return _.p(function(g){if(g.nextAddress==1)return q=_.bn("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,t=_.bn("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,u=q||t,F.JSC$17389_mainAppPlayer=new kT(u),g.yield(F.JSC$17389_mainAppPlayer.api,2);J=g.yieldResult;J.addEventListener("onStateChange",F.JSC$17389_playerStateChangeListener.bind(F));document.addEventListener("yt-page-data-updated",F.JSC$17389_pauseOnNavigation.bind(F));window.addEventListener("state-navigatestart",
F.JSC$17389_pauseOnNavigation.bind(F));_.WA(g)})};
ER.prototype.JSC$17389_playerStateChangeListener=function(F){switch(F){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}Qjs(this)};
var Qjs=function(F){F.store.dispatch(_.Gl("sfvAudioItemCurrentlyPlayingEntity",Yvh,{key:Yvh,externalVideoId:F.externalVideoId,sfvAudioItemPlaybackState:F.playbackState,nowPlayingEntityValue:F.nowPlayingEntityValue}))};
ER.prototype.JSC$17389_pauseOnNavigation=function(){var F=this,q,t,u,J;return _.p(function(g){if(g.nextAddress==1){if(!F.JSC$17389_mainAppPlayer){var Y=new _.D0("Error: mainAppPlayer is unavailable",F.JSC$17389_mainAppPlayer);_.mH(Y);return g.return()}return g.yield(F.JSC$17389_mainAppPlayer.api,2)}q=g.yieldResult;u=(t=q)==null?void 0:t.getPlayerState();u!==1||(J=q)!=null&&J.pauseVideo();_.WA(g)})};
ER.prototype.playVideo=function(F,q,t){var u=this,J,g;return _.p(function(Y){if(Y.nextAddress==1)return Y.yield((J=u.JSC$17389_mainAppPlayer)==null?void 0:J.api,2);g=Y.yieldResult;if(!u.JSC$17389_mainAppPlayer||!g){var Q=new _.D0("Error: mainAppPlayer is unavailable",u.JSC$17389_mainAppPlayer);_.mH(Q);return Y.return()}return Y.yield(u.JSC$17389_mainAppPlayer.loadVideoWithPlayerVars({videoId:u.externalVideoId,audio_only:"1",start:F/1E3,end:F/1E3+q,player_params:t}),0)})};
ER.prototype.pauseVideo=function(){var F=this,q,t;return _.p(function(u){if(u.nextAddress==1){if(!F.JSC$17389_mainAppPlayer){var J=new _.D0("Error: mainAppPlayer is unavailable",F.JSC$17389_mainAppPlayer);_.mH(J);return u.return()}return u.yield(F.JSC$17389_mainAppPlayer.api,2)}q=u.yieldResult;(t=q)==null||t.pauseVideo();_.WA(u)})};
ER.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S;return _.p(function(K){if(K.nextAddress==1)return t=_.n(F,a1C),J=(u=t)==null?void 0:u.nowPlayingEntityValue,Y=(g=t)==null?void 0:g.externalVideoId,w=Number((N=(Q=t)==null?void 0:(e=Q.defaultStartPoints)==null?void 0:(r=e[0])==null?void 0:r.offsetMs)!=null?N:"0"),H=Number((v=(k=t)==null?void 0:(z=k.defaultStartPoints)==null?void 0:(T=z[0])==null?void 0:(P=T.duration)==null?void 0:P.seconds)!=null?v:"15"),S=(a=
(d=t)==null?void 0:d.playerParams)!=null?a:"",J&&Y?q.JSC$17389_mainAppPlayer?K.jumpTo(2):K.yield(pfy(q),2):K.return();if(K.nextAddress!=6){if(q.nowPlayingEntityValue&&J===q.nowPlayingEntityValue)return q.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?K.yield(q.pauseVideo(),0):K.yield(q.playVideo(w,H,S),0);q.externalVideoId=Y;q.nowPlayingEntityValue=J;q.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return K.yield(q.playVideo(w,H,S),6)}Qjs(q);return K.jumpTo(0)})};
ER[Yc]=[sL];var edv=function(F){this.JSC$17407_commandHandler=F};
_.M(edv,l9);edv.prototype.resolveCommand=function(F,q){var t=this,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return(u=_.n(F,$KO))?Y.yield(_.NZ(),2):Y.return();J=Y.yieldResult;if(!J)return Y.return();(g=DYf(J))&&t.JSC$17407_commandHandler.resolveCommand(g,q);_.WA(Y)})};
edv[Yc]=[_.gN];var zo=function(F){this.JSC$17413_commandHandler=F};
_.M(zo,l9);zo.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q;return _.p(function(e){if(e.nextAddress==1)return(u=_.n(F,bVn))?e.yield(_.NZ(),2):e.return();J=e.yieldResult;if(!J)return e.return();(g=A6C(J))?t.JSC$17413_commandHandler.resolveCommand(g,q):(Y=_.oD("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),Q=_.l1(Y),t.JSC$17413_commandHandler.resolveCommand(Q));_.WA(e)})};
zo[Yc]=[_.gN];var oW=function(F){this.JSC$17416_playerPromise=F};
_.M(oW,l9);oW.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y;return _.p(function(Q){if(Q.nextAddress==1){t=_.n(F,GeO);if(!t)return Q.return();u=t.overlayRenderer;return u?(J=_.n(u,UHd))?Q.yield(q.JSC$17416_playerPromise,3):Q.jumpTo(0):Q.return()}g=Q.yieldResult;g.renderChapterSeekingAnimation(1,_.q1(J.text),(Y=J.icon)==null?void 0:Y.iconType);_.WA(Q)})};
oW[Yc]=[_.Qg];var no=function(F){this.store=F};
_.M(no,l9);
no.prototype.resolveCommand=function(F){var q=this,t,u,J;return _.p(function(g){if(g.nextAddress==1){t=_.n(F,RYv);if(!t)return g.return();u="";(J=q.store.getState().collabInviteLink)&&t.id===J.playlistId?u=J.inviteLinkURL:t.shortUrl&&(u=t.shortUrl);return u?g.yield(navigator.clipboard.writeText(u),3):g.jumpTo(0)}var Y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.oD("COPY_LINK_SUCCESS_TOAST")}}}}};_.sV().resolve(_.gN).resolveCommand(Y);_.WA(g)})};
no[Yc]=[VD];var Me=function(F,q){this.innertubeTransportService=F;this.JSC$17426_commandHandler=q};
_.M(Me,l9);Me.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e,r,N,w,k;return _.p(function(z){if(z.nextAddress==1)return(u=_.n(F,_.sX))?z.yield(_.aI(t.innertubeTransportService,F,(J=q)==null?void 0:J.form),2):z.return();(g=z.yieldResult)&&g.errorMetadata&&(Y=g,Q=_.l1(Y.error.message),t.JSC$17426_commandHandler.resolveCommand(Q));e=g;if((r=e)==null?0:r.actions)for(N=_.X(e.actions),w=N.next();!w.done;w=N.next())k=w.value,t.JSC$17426_commandHandler.resolveCommand(k);_.WA(z)})};
Me[Yc]=[_.da,_.gN];var To=function(){};
_.M(To,l9);To.prototype.resolveCommand=function(F){var q;return _.p(function(t){q=_.n(F,Jkj);if(!q)return t.return();(new S6C(q)).show();_.WA(t)})};_.Go=new _.pg("PLAYLIST_EDIT_CONTROLLER_TOKEN");var D5=function(F,q,t,u){this.store=F;this.innertubeTransportService=q;this.controller=t;this.JSC$17434_commandHandler=u};
_.M(D5,l9);
D5.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S,K,h,c,rf,Zv,kP,n3,o_;return _.p(function(df){if(df.nextAddress==1){u=_.n(F,_.cX);if(!u)return df.return();if(u.clientActions){J=_.X(u.clientActions);for(g=J.next();!g.done;g=J.next())Y=g.value,t.JSC$17434_commandHandler.resolveCommand(Y);var m$,gx=q==null?void 0:(m$=q.form)==null?void 0:m$.element;gx&&_.Q0(gx,"yt-dismissible-item-action",u.clientActions)}return df.yield(_.aI(t.innertubeTransportService,F,(Q=q)==
null?void 0:Q.form),2)}if(e=df.yieldResult)e.errorMetadata?(r=e,N=_.l1(r.error.message),t.JSC$17434_commandHandler.resolveCommand(N),"error"in e&&((w=q)==null?0:(k=w.commandController)==null?0:k.onServerError)&&((z=q)==null||(T=z.commandController)==null||T.onServerError(F,e))):(P=q)==null||(v=P.commandController)==null||(d=(H=v).onSuccess)==null||d.call(H,F,e);a=e;((S=a)==null?0:S.collaborationInviteLink)&&u.playlistId&&(_.E("web_enable_invite_collaborators_link")||_.E("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
t.store.dispatch(_.pj({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:u.playlistId,inviteLinkUrl:a.collaborationInviteLink}}));((K=a)==null?0:K.redirectEndpoint)&&t.JSC$17434_commandHandler.resolveCommand(a.redirectEndpoint);((h=a)==null?0:(c=h.newHeader)==null?0:c.playlistHeaderRenderer)?ZeC(t.controller,a.newHeader.playlistHeaderRenderer):((rf=a)==null?0:(Zv=rf.newHeader)==null?0:Zv.musicEditablePlaylistDetailHeaderRenderer)&&ZeC(t.controller,a.newHeader.musicEditablePlaylistDetailHeaderRenderer);
t.controller.playlistVideoListElement&&((kP=a)==null?0:(n3=kP.playlistEditResults)==null?0:(o_=n3[0])==null?0:o_.playlistEditVideoAddedResultData)&&((gx=t.controller.playlistVideoListElement)==null||gx.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:a.playlistEditResults[0].playlistEditVideoAddedResultData})));_.WA(df)})};
D5[Yc]=[VD,_.da,_.Go,_.gN];var Wp=function(F,q){this.controller=F;this.JSC$17444_commandHandler=q};
_.M(Wp,l9);Wp.prototype.resolveCommand=function(F,q){var t=this,u,J,g;return _.p(function(Y){u=_.n(F,rkz);t.controller.showRefreshPill&&((J=u)==null?0:J.command)&&(t.JSC$17444_commandHandler.resolveCommand((g=u)==null?void 0:g.command,q),t.controller.showRefreshPill=!1);_.WA(Y)})};
Wp[Yc]=[_.WF,_.gN];var OR=function(F,q){this.store=F;this.JSC$17448_commandHandler=q||_.oc.instance};
_.M(OR,l9);OR.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e,r,N,w,k;return _.p(function(z){u=_.n(F,W_j);J=t.store.getState().radioButtonGroup;if((g=u)==null?0:g.command)t.JSC$17448_commandHandler.resolveCommand((Y=u)==null?void 0:Y.command,q);else if(J&&((Q=u)==null?void 0:Q.formId)===J.currentFormId)for(e=Object.values(J.commandsMap),r=_.X(e),N=r.next();!N.done;N=r.next())w=N.value,(k=_.Sg(w))&&t.JSC$17448_commandHandler.resolveCommand(k,q);_.WA(z)})};
OR[Yc]=[_.sb];var Pp=new _.pg("USER_PREFS");var xL=function(F){this.JSC$17453_prefCookie=F};
_.M(xL,l9);xL.prototype.resolveCommand=function(F){var q=this,t;return _.p(function(u){(t=_.n(F,f6L))&&typeof t.useListView==="boolean"&&(_.GV(0,155,t.useListView),q.JSC$17453_prefCookie.save());_.WA(u)})};
xL[Yc]=[Pp];var AL=function(F){this.JSC$17457_prefCookie=F};
_.M(AL,l9);AL.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y;return _.p(function(Q){t=_.n(F,gde);if((u=t)==null||!u.gl)return Q.return();J=t.gl;g={persist_gl:"1",gl:J};q.JSC$17457_prefCookie.set("gl",J);q.JSC$17457_prefCookie.save();Y=KvJ(g);_.ab(Y);_.WA(Q)})};
AL[Yc]=[Pp];var vp=function(F){this.JSC$17461_prefCookie=F};
_.M(vp,l9);vp.prototype.resolveCommand=function(F){var q=this,t,u;return _.p(function(J){t=_.n(F,wLC);if(!t)return J.return();u=!1;t.flagNum&&typeof t.value==="boolean"?(_.GV(0,t.flagNum,t.value),u=!0):t.key&&typeof t.stringValue==="string"&&(q.JSC$17461_prefCookie.set(t.key,t.stringValue),u=!0);u&&q.JSC$17461_prefCookie.save();_.WA(J)})};
vp[Yc]=[Pp];var IW=new _.pg("PREF_STORAGE_PROMISE_TOKEN");var Hp=function(F){this.JSC$17465_prefStoragePromise=F};
_.M(Hp,l9);Hp.prototype.resolveCommand=function(F){var q=this,t,u;return _.p(function(J){if(J.nextAddress==1)return(t=_.n(F,kSz))?J.yield(q.JSC$17465_prefStoragePromise,2):J.return();u=J.yieldResult;return u===void 0||t.key===void 0||t.value===void 0?J.return():J.yield(u.set(t.key,t.value),0)})};
Hp[Yc]=[IW];var Rdv=function(F){this.innertubeTransportService=F};
_.M(Rdv,l9);Rdv.prototype.resolveCommand=function(F,q){var t=this,u,J;return _.p(function(g){(u=_.n(F,_.EAj))&&u&&u.isFirstRequest&&(_.bN("search_overview_answer"),_.y0("so_rq",void 0,"search_overview_answer"));return g.yield(_.aI(t.innertubeTransportService,F,(J=q)==null?void 0:J.form),0)})};
Rdv[Yc]=[_.da];var rEv=function(){};
_.M(rEv,l9);
rEv.prototype.resolveCommand=function(F){var q,t,u,J,g,Y,Q,e,r;return _.p(function(N){q=_.n(F,Mqd);if((t=q)==null?0:t.sectionIdentifier){if(q.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(J=(u=document.getElementsByTagName(q.sectionIdentifier))==null?void 0:u.item(0))J.scrollIntoView({behavior:"smooth"}),(g=hUA(J))&&g.focus({preventScroll:!0});return N.return()}Y=document.querySelector("[section-identifier="+q.sectionIdentifier+"]");Q=document.querySelector("[section-identifier="+q.referenceSectionIdentifier+
"]");if(!Y)return N.return();e=q.verticalScrollOffsetDp?q.verticalScrollOffsetDp:0;Q&&(e-=Q.offsetTop);window.scrollTo({top:Y.offsetTop+e,behavior:"smooth"});(r=hUA(Y))&&r.focus({preventScroll:!0})}_.WA(N)})};var mK=function(F){this.JSC$17477_commandHandler=F};
_.M(mK,l9);
mK.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q,e;return _.p(function(r){if(r.nextAddress==1){t=_.n(F,UCe);if(!t||!t.imageBytes||!navigator.clipboard)return r.return();if(t.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.mH(Error("Di")),r.return();_.zg(r,2);J=(u=t)==null?void 0:u.imageBytes;g=J.replace(/-/g,"+").replace(/_/g,"/");Y=ZSt(g);Q={};e=[new ClipboardItem((Q[Y.type]=Y,Q))];return r.yield(navigator.clipboard.write(e),4)}if(r.nextAddress!=2)return t.successCommand&&
q.JSC$17477_commandHandler.resolveCommand(t.successCommand),_.LE(r,0);_.Gg(r);t.errorCommand&&q.JSC$17477_commandHandler.resolveCommand(t.errorCommand);_.WA(r)})};
mK[Yc]=[_.gN];var $L=function(F,q){this.innertubeTransportService=F;this.JSC$17481_commandHandler=q};
_.M($L,l9);$L.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q;return _.p(function(e){if(e.nextAddress==1)return(u=_.n(F,SXv))?e.yield(_.aI(t.innertubeTransportService,F,(J=q)==null?void 0:J.form),2):e.return();(g=e.yieldResult)&&g.errorMetadata&&u.onFailureCommand&&t.JSC$17481_commandHandler.resolveCommand(u.onFailureCommand);Y=g;((Q=Y)==null?0:Q.shareCommand)&&t.JSC$17481_commandHandler.resolveCommand(Y.shareCommand,q);_.WA(e)})};
$L[Yc]=[_.da,_.gN];var by=function(){};
_.M(by,l9);by.prototype.resolveCommand=function(F){var q,t;return _.p(function(u){q=_.n(F,eYn);if(!q||!navigator.share)return u.return();t={url:q.url};try{return u.return(navigator.share(t))}catch(J){}_.WA(u)})};var yQ=function(){};
_.M(yQ,l9);yQ.prototype.resolveCommand=function(){return _.p(function(F){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.WA(F)})};var Co=function(F){this.JSC$17491_navigationConfirmationService=F};
_.M(Co,l9);Co.prototype.resolveCommand=function(){var F=this;return _.p(function(q){F.JSC$17491_navigationConfirmationService.cancelPendingNavigation();_.WA(q)})};
Co[Yc]=[d8];var dW=function(F){this.JSC$17494_screenManager=F};
_.M(dW,l9);dW.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e,r;return _.p(function(N){J=(u=q.form)==null?void 0:u.event;Y=(g=q.form)==null?void 0:g.element;if(!J)throw new _.D0("Event not passed in when resolving command");Q=_.X(J.composedPath());for(e=Q.next();!e.done;e=Q.next())if(r=e.value,r.tagName==="YT-COPY-LINK-RENDERER")return r.copyUrlToClipboard(),Y&&_.BT(t.JSC$17494_screenManager,Y),N.return();_.WA(N)})};
dW[Yc]=[_.LA];var VQ=function(){this.JSC$17498_miniAppClientDataProvider=_.sV().resolve(_.eE)};
_.M(VQ,l9);VQ.prototype.resolveCommand=function(){var F=this,q,t;return _.p(function(u){if(F.JSC$17498_miniAppClientDataProvider.clientData.has("video_id")){var J=F.JSC$17498_miniAppClientDataProvider,g=J.clientData.get("video_id");g&&J.clientData.delete("video_id");q="https://youtube.com/watch?v="+g;t=_.yy(q);if(t===void 0)throw Error("Ei`"+q);_.jO(window,t)}_.WA(u)})};var UR=function(){};
_.M(UR,l9);UR.prototype.resolveCommand=function(){return _.p(function(F){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.WA(F)})};var S7=function(){};
_.M(S7,l9);S7.prototype.resolveCommand=function(){var F;return _.p(function(q){if(q.nextAddress==1)return q.yield(_.GsW(window.document.documentElement),2);(F=document.querySelector("mini-app-container-view-model iframe"))&&F.focus();_.WA(q)})};var hL=function(F){this.JSC$17505_navigationConfirmationService=F};
_.M(hL,l9);
hL.prototype.resolveCommand=function(){var F=this;return _.p(function(q){var t=F.JSC$17505_navigationConfirmationService,u=_.sV().resolve(_.S$),J;if(((J=t.navigateParams)==null?void 0:J.data)!==void 0){var g;_.f3v(u,t.navigateParams.endpoint,t.navigateParams.data,(g=t.navigateParams.navigationType)!=null?g:1,t.navigateParams.tempData,t.navigateParams.isMiniplayer,void 0,!0);t.navigateParams=void 0;t.customConfirmationCommand=void 0}else t.navigateParams&&(u.navigate(t.navigateParams.endpoint,t.navigateParams.reload,
t.navigateParams.params,t.navigateParams.tempData,t.navigateParams.requestType,t.navigateParams.createScreenConfig,!0),t.navigateParams=void 0,t.customConfirmationCommand=void 0);_.WA(q)})};
hL[Yc]=[d8];var Ko=function(){};
_.M(Ko,l9);Ko.prototype.resolveCommand=function(){return _.p(function(F){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.WA(F)})};var Bp=function(F){this.JSC$17510_prefStorage=F};
_.M(Bp,l9);Bp.prototype.resolveCommand=function(){var F=this,q,t;return _.p(function(u){switch(u.nextAddress){case 1:return u.yield(F.JSC$17510_prefStorage,2);case 2:return(q=u.yieldResult)?u.yield(q.set("sfvle",!1),3):u.return();case 3:return u.yield(q.set("sfvles",!0),4);case 4:t=_.TV(),_.GV(0,203,!1),_.GV(0,204,!0),t.save(),_.WA(u)}})};
Bp[Yc]=[IW];var Lo=function(F){this.JSC$17513_prefStorage=F};
_.M(Lo,l9);Lo.prototype.resolveCommand=function(){var F=this,q,t;return _.p(function(u){switch(u.nextAddress){case 1:return u.yield(F.JSC$17513_prefStorage,2);case 2:return(q=u.yieldResult)?u.yield(q.set("sfvle",!0),3):u.return();case 3:return u.yield(q.set("sfvles",!0),4);case 4:t=_.TV(),_.GV(0,203,!0),_.GV(0,204,!0),t.save(),_.WA(u)}})};
Lo[Yc]=[IW];_.Nxw=new _.pg("SNACKBAR_CONTROLLER_TOKEN");_.wf7=new _.pg("SHOULD_SHOW_PIVOT_BAR_TOKEN");var fo=function(F){this.controller=F};
_.M(fo,l9);fo.prototype.resolveCommand=function(F){var q=this,t;return _.p(function(u){t=_.n(F,lse);if(!t)return u.return();var J=q.controller;J.closeSnackbarFn&&J.closeSnackbarFn();_.WA(u)})};
fo[Yc]=[_.Nxw];var aW=function(F,q){this.controller=F;this.sheetController=q};
_.M(aW,l9);aW.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e;return _.p(function(r){u=_.n(F,YbO);if(!u)return r.return();Y=tC3(t.sheetController,(J=q)==null?void 0:(g=J.form)==null?void 0:g.element);Q=_.n(u.content,n9v);if(!Q)return r.return();var N=t.controller,w=Q,k=(e=u.animationStyle)!=null?e:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(N.showSnackbarFn)N.showSnackbarFn({snackbarViewModel:w,animationStyle:k,durationMs:u.durationSeconds*1E3,target:Y});else throw Error("oj");_.WA(r)})};
aW[Yc]=[_.Nxw,_.ap];var j7=function(){};
_.M(j7,l9);j7.prototype.resolveCommand=function(F){var q;return _.p(function(t){q=_.n(F,inv);if(!q||typeof q.key!=="string"||typeof q.value!=="string")return t.return();window.localStorage.setItem(q.key,q.value);_.WA(t)})};var cp=function(F){this.store=F};
_.M(cp,l9);cp.prototype.resolveCommand=function(F){var q=this,t;return _.p(function(u){t=_.n(F,jQt);if(!t||!t.stepId||!t.token)return u.return();q.store.dispatch(hav({stepId:t.stepId,token:t.token,isSelected:!1}));_.WA(u)})};
cp[Yc]=[VD];var FU=function(F,q,t){this.innertubeTransportService=F;this.store=q;this.JSC$17532_screenManager=t};
_.M(FU,l9);
FU.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S,K,h,c,rf;return _.p(function(Zv){t=_.n(F,QRd);if(!t||(u=t.stepIds)==null||!u.length)return Zv.return();J=q.store.getState().talkToRecs;g=[];Y=[];Q=_.X(t.stepIds);for(e=Q.next();!e.done;e=Q.next())for(r=e.value,N=void 0,(w=(N=J.stepStates[r])==null?void 0:N.userQuery)&&Y.push({userQuery:w.userQuery,userQueryToken:w.token}),k=void 0,z=(k=J.stepStates[r])==null?void 0:k.selectionStates,T=_.X(Object.entries(z)),P=
T.next();!P.done;P=T.next())v=P.value,H=_.X(v),d=H.next().value,a=H.next().value,S=d,K=a,K.isSelected&&g.push(S);h={selectedChipTokens:g,userQueries:Y,submittedStepIds:t.stepIds};c={browseTalk2recsFormData:h};t.browseEndpoint?(rf=F,_.yj(rf,_.Gr,t.browseEndpoint)):t.command&&(rf=t.command);return rf?Zv.yield(_.aI(q.innertubeTransportService,rf,{formData:c,disableCache:!0}).then(function(kP){(kP==null?0:kP.trackingParams)&&q.JSC$17532_screenManager.graftServerVe(kP==null?void 0:kP.trackingParams)}),
0):Zv.return()})};
FU[Yc]=[_.da,VD,_.LA];var q_=function(F){this.store=F};
_.M(q_,l9);q_.prototype.resolveCommand=function(F){var q=this,t;return _.p(function(u){t=_.n(F,a9f);if(!t||!t.stepId||!t.token)return u.return();q.store.dispatch(hav({stepId:t.stepId,token:t.token,isSelected:!0}));_.WA(u)})};
q_[Yc]=[VD];var tm=function(F){this.store=F};
_.M(tm,l9);tm.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q;return _.p(function(e){u=_.n(F,eNe);if(!u||!u.stepId||!u.userQueryToken)return e.return();Q=(Y=(J=q)==null?void 0:(g=J.form)==null?void 0:g.userQuery)!=null?Y:"";t.store.dispatch(_.pj({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:u.stepId,userQueryToken:u.userQueryToken,userQuery:Q}}));_.WA(e)})};
tm[Yc]=[VD];_.ieD=new _.pg("TIMELY_ACTIONS_CONTROLLER_TOKEN");var uD=function(F){this.controller=F};
_.M(uD,l9);uD.prototype.resolveCommand=function(F){var q=this,t,u,J,g;return _.p(function(Y){t=_.n(F,zQr);if(!t)return Y.return();u=t;J=u.id;g=u.isVisible;if(J===void 0||g===void 0)return Y.return();var Q;(Q=q.controller.timelyActionsMap.get(J))==null||Q(J,g);_.WA(Y)})};
uD[Yc]=[_.ieD];var k19=function(){this.timelyActionsMap=new Map};var Jm=function(F){this.JSC$17559_commandHandler=F};
_.M(Jm,l9);Jm.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y;return _.p(function(Q){t=_.n(F,_.It);if(!t)return Q.return();g=(u=t.item)==null?void 0:(J=u.notificationTextRenderer)==null?void 0:J.successResponseText;if(!g)return Q.return();Y=_.sy(g);q.JSC$17559_commandHandler.resolveCommand(Y);_.WA(Q)})};
Jm[Yc]=[_.gN];var s3=function(F,q){this.innertubeTransportService=F;this.JSC$17564_playerApiPromise=q};
_.M(s3,l9);
s3.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q,e,r,N;return _.p(function(w){if(w.nextAddress==1)return w.yield(q.JSC$17564_playerApiPromise,2);t=w.yieldResult;u=t.getOption("captions","track");J=Object.assign({},_.n(F,_.ykx));(Y=(g=t.getVideoData())==null?void 0:g.video_id)?J.externalVideoId=Y:_.hN(Error("Fi"));if((Q=u)==null?0:Q.languageCode)J.languageCode=u.languageCode;if((e=u)==null?0:e.kind)J.kind=u.kind;if((r=u)==null?0:r.name)J.name=u.name;N=Object.assign({},F,{getTranscriptEndpoint:J});return w.yield(_.aI(q.innertubeTransportService,
N),0)})};
s3[Yc]=[_.da,_.Qg];var gn=function(){};
_.M(gn,l9);gn.prototype.resolveCommand=function(F){var q,t,u,J,g,Y,Q,e;return _.p(function(r){q=_.n(F,DVn);if((t=q)==null||!t.paramKeyValuePairs)return r.return();u=window.location.href;J=_.X(q.paramKeyValuePairs);for(g=J.next();!g.done;g=J.next())Y=g.value,Y.key&&Y.value&&(Q={},u=_.a5(u,(Q[Y.key]=Y.value,Q)));e=_.sV().resolve(_.br);_.$T(e,u);_.WA(r)})};var lD=function(F,q){this.JSC$17571_commandHandler=F;this.innertubeTransportService=q};
_.M(lD,l9);
lD.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a;return _.p(function(S){switch(S.nextAddress){case 1:return(g=(u=q)==null?void 0:(J=u.form)==null?void 0:J.element)&&_.V7(g),Y=_.TV().get("hl"),Q="",_.zg(S,2),S.yield(mYM(Y),4);case 4:Q=S.yieldResult;_.LE(S,3);break;case 2:return _.Gg(S),g&&_.Uo(g),_.mH(Error("Hi"),"ERROR"),S.return();case 3:e=_.n(F,jwz);if(!e)return g&&_.Uo(g),S.return();(w=(r=e.commerceActionConfig)==null?void 0:(N=r.commandLifeCycleConfig)==null?
void 0:N.onStartCommand)&&t.JSC$17571_commandHandler.resolveCommand(w);return S.yield(_.aI(t.innertubeTransportService,F,{client_data:{paymentsClientToken:{token:Q}}}),5);case 5:(k=S.yieldResult)?(g&&_.Uo(g),((v=k)==null?0:v.command)&&t.JSC$17571_commandHandler.resolveCommand(k.command),(a=(H=e.commerceActionConfig)==null?void 0:(d=H.commandLifeCycleConfig)==null?void 0:d.onSuccessCommand)&&t.JSC$17571_commandHandler.resolveCommand(a)):(g&&_.Uo(g),_.mH(Error("Ii")),(P=(z=e.commerceActionConfig)==
null?void 0:(T=z.commandLifeCycleConfig)==null?void 0:T.onFailureCommand)&&t.JSC$17571_commandHandler.resolveCommand(P)),_.WA(S)}})};
lD[Yc]=[_.gN,_.da];var XU=function(F,q,t){this.store=F;this.JSC$17587_commandHandler=q;this.innertubeTransportService=t};
_.M(XU,l9);
XU.prototype.resolveCommand=function(F,q){var t=this,u,J,g,Y,Q,e,r,N,w;return _.p(function(k){u=_.n(F,cBn);J=u.googlePaymentPayload;u.onStartCommand&&t.JSC$17587_commandHandler.resolveCommand(u.onStartCommand);g=J.encryptedPurchaseParams;Y=J.ypcLogWalletAnalyticDataEndpoint;Q=u.serializedTransactionFlowLoggingParams;e=J.serializedPaymentsClientParams;r=u.ypcCujContext;w=y6y(t.innertubeTransportService,(N=q)==null?void 0:N.form,g,Y,Q,e,r);return k.return(w.then(function(z){$YC(q==null?void 0:q.form,
!1);var T=t.store,P=t.JSC$17587_commandHandler,v=z.integratorData;v==null||v===""||z.error!=null?(String(z.error)==="-1"&&u.onDismissCommand?P.resolveCommand(u.onDismissCommand):String(z.error)!=="-1"&&u.onFailureCommand&&P.resolveCommand(u.onFailureCommand),String(z.error)!=="-1"&&String(z.error)!=="132"&&_.mH(Error("Ji"),"ERROR")):(u.googlePaymentEntityKey&&T.dispatch(_.Gl("commerceAcquisitionClientPayloadEntity",u.googlePaymentEntityKey,{key:u.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:v,
fundsGuaranteeCallbackClientData:z.integratorClientCallbackData}}})),u.onSuccessCommand&&P.resolveCommand(u.onSuccessCommand));_.NU()},function(z){$YC(q==null?void 0:q.form,!1);
_.mH(z,"ERROR");u.onFailureCommand&&t.JSC$17587_commandHandler.resolveCommand(u.onFailureCommand)}))})};
XU[Yc]=[sL,_.gN,_.da];var YS=function(F,q){this.JSC$17591_commandHandler=F;this.purchaseManager=q};
_.M(YS,l9);
YS.prototype.resolveCommand=function(F){var q=this,t,u,J,g,Y,Q,e,r,N;return _.p(function(w){t=_.n(F,FeJ);((u=t)==null?0:(J=u.commandLifeCycleConfig)==null?0:J.onStartCommand)&&q.JSC$17591_commandHandler.resolveCommand(t.commandLifeCycleConfig.onStartCommand);if(!((g=t)==null?0:(Y=g.googlePaymentPurchaseManagerPayload)==null?0:Y.securePayloadBytes))return _.mH(Error("Ki"),"ERROR"),w.return();Q=D1e(_.f3(t.googlePaymentPurchaseManagerPayload.securePayloadBytes));e=_.TV().get("hl");r=_.ji();Nf9(Q.serialize(),
e,function(k){r.resolve(k)},function(k){r.reject(k)},r.resolve);
N=r.promise;return w.return(N.then(function(k){if(k)if(k==null?0:k.errorCode){_.mH(Error("Li`"+k.errorCode),"ERROR");var z,T;((z=t)==null?0:(T=z.commandLifeCycleConfig)==null?0:T.onFailureCommand)&&q.JSC$17591_commandHandler.resolveCommand(t.commandLifeCycleConfig.onFailureCommand)}else if(k==null?0:k.isCancelled){var P,v;((P=t)==null?0:(v=P.commandLifeCycleConfig)==null?0:v.onCancelCommand)&&q.JSC$17591_commandHandler.resolveCommand(t.commandLifeCycleConfig.onCancelCommand)}else{var H,d;((H=t)==
null?0:(d=H.commandLifeCycleConfig)==null?0:d.onSuccessCommand)&&q.JSC$17591_commandHandler.resolveCommand(t.commandLifeCycleConfig.onSuccessCommand)}},function(k){_.mH(k,"ERROR");
var z,T;((z=t)==null?0:(T=z.commandLifeCycleConfig)==null?0:T.onFailureCommand)&&q.JSC$17591_commandHandler.resolveCommand(t.commandLifeCycleConfig.onFailureCommand)}))})};
YS[Yc]=[_.gN,wy3];var EO3=function(F,q){this.JSC$17599_commandHandler=F;this.commandAllowlistOverride=q;var t;this.commandAllowlist=(t=this.commandAllowlistOverride)!=null?t:cT};
EO3.prototype.handleResponse=function(F,q,t){var u,J=q==null?void 0:(u=q.config)==null?void 0:u.command;if(!J||this.commandAllowlist.some(function(g){return!!_.n(J,g)})){q=void 0;
t!==void 0&&(q={form:{element:t}});F.onResponseReceivedCommand&&this.JSC$17599_commandHandler.resolveCommand(F.onResponseReceivedCommand,q);F.onResponseReceivedAction&&this.JSC$17599_commandHandler.resolveCommand(F.onResponseReceivedAction,q);F.onResponseReceivedEndpoint&&this.JSC$17599_commandHandler.resolveCommand(F.onResponseReceivedEndpoint,q);F.command&&this.JSC$17599_commandHandler.resolveCommand(F.command,q);if(F.onResponseReceivedCommands)for(t=_.X(F.onResponseReceivedCommands),u=t.next();!u.done;u=
t.next())this.JSC$17599_commandHandler.resolveCommand(u.value,q);if(F.onResponseReceivedActions)for(t=_.X(F.onResponseReceivedActions),u=t.next();!u.done;u=t.next())this.JSC$17599_commandHandler.resolveCommand(u.value,q);if(F.onResponseReceivedEndpoints)for(t=_.X(F.onResponseReceivedEndpoints),u=t.next();!u.done;u=t.next())this.JSC$17599_commandHandler.resolveCommand(u.value,q);if(F.actions)for(F=_.X(F.actions),t=F.next();!t.done;t=F.next())this.JSC$17599_commandHandler.resolveCommand(t.value,q)}};
EO3[Yc]=[_.gN,_.JU(Szo)];var zd5=new _.pg("INNERTUBE_TOKEN_SERVICE");var oOw=new _.pg("SCHEDULER_TOKEN");var nO9=function(F){this.scheduler=F;F={};this.tokenMap=(F.app={},F.user={},F)};
nO9.prototype.handleResponse=function(F,q){if(!q)throw Error("Mi");var t;if(F=(t=F.responseContext)==null?void 0:t.innertubeTokenJar){if(F.appTokens){var u,J,g;t=(u=q.innerTubeRequest.context)==null?void 0:(J=u.request)==null?void 0:(g=J.innertubeTokenJar)==null?void 0:g.appTokens;MCv(this,F.appTokens,this.tokenMap.app,t)}if(F.userTokens){var Y,Q,e;q=(Y=q.innerTubeRequest.context)==null?void 0:(Q=Y.request)==null?void 0:(e=Q.innertubeTokenJar)==null?void 0:e.userTokens;MCv(this,F.userTokens,this.tokenMap.user,
q)}}};
nO9.prototype.processContext=function(F){F.request||(F.request={});var q=Object.keys(this.tokenMap.app).length,t=Object.keys(this.tokenMap.user).length;if(q||t)F.request.innertubeTokenJar={},q&&(F.request.innertubeTokenJar.appTokens=[].concat(_.mZ(Object.values(this.tokenMap.app).flat()))),t&&(F.request.innertubeTokenJar.userTokens=[].concat(_.mZ(Object.values(this.tokenMap.user).flat())))};
var MCv=function(F,q,t,u){q=_.X(q);for(var J=q.next(),g={};!J.done;g={token$jscomp$139:void 0},J=q.next()){g.token$jscomp$139=J.value;if(g.token$jscomp$139.type===void 0)throw new _.D0("InnerTube token has no type",g.token$jscomp$139);if(g.token$jscomp$139.clearTokens)t[g.token$jscomp$139.type]=[];else if(g.token$jscomp$139.value!==void 0){t[g.token$jscomp$139.type]||(t[g.token$jscomp$139.type]=[]);if(u!==void 0&&u.length){J=_.X(u);for(var Y=J.next(),Q={};!Y.done;Q={requestToken:void 0},Y=J.next())Q.requestToken=
Y.value,Y=t[g.token$jscomp$139.type].findIndex(function(e){return function(r){return r===e.requestToken||(0,_.m7.equals)(r,e.requestToken)}}(Q)),Y>-1&&t[g.token$jscomp$139.type].splice(Y,1)}t[g.token$jscomp$139.type].push(g.token$jscomp$139);
g.token$jscomp$139.maxAgeSeconds&&Number(g.token$jscomp$139.maxAgeSeconds)>0&&F.scheduler.addLowPriorityJob(function(e){return function(){var r=t[e.token$jscomp$139.type].indexOf(e.token$jscomp$139);r>-1&&t[e.token$jscomp$139.type].splice(r,1)}}(g),Number(g.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.D0("InnerTube token has no value",g.token$jscomp$139);
}};
nO9[Yc]=[oOw];var Txh=new _.pg("LOCAL_INNERTUBE_ROUTER_TOKEN"),G1v=new _.pg("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var pa=function(F){this.serviceMap=F};
pa.prototype.shouldPreferLocalResponse=function(F,q){return(F=Dn9(this,F))?F.shouldPreferLocalResponse(q):!1};
pa.prototype.localInnertubeResponse=function(F,q){var t=this,u;return _.p(function(J){return(u=Dn9(t,F))?J.return(u.localInnertubeResponse(q)):J.return(Promise.reject(Error("Ni")))})};
pa.prototype.canProvideFallbackResponse=function(F,q){return(F=Dn9(this,F))?F.canProvideFallbackResponse(q):!1};
pa.prototype.localFallbackInnertubeResponse=function(F,q){var t=this,u;return _.p(function(J){return(u=Dn9(t,F))?J.return(u.localFallbackInnertubeResponse(q)):J.return(Promise.reject(Error("Ni")))})};
var Dn9=function(F,q){q=_.wN(q);return q?(F=F.serviceMap[q])?F:null:null};
pa[Yc]=[G1v];var zx=function(){};
zx.prototype.shouldPreferLocalResponse=function(){return!1};
zx.prototype.localInnertubeResponse=function(){return _.p(function(F){return F.return(Promise.reject(Error("Oi")))})};
zx.prototype.canProvideFallbackResponse=function(){return!0};
zx.prototype.localFallbackInnertubeResponse=function(){var F,q,t;return _.p(function(u){F=zJ("CLOSE_POPUP");q={openPopupAction:dYo()};t={actions:[F,q]};return u.return(t)})};var dmq=function(F,q){this.JSC$17649_upliftPromise=F;this.store=q};
_.l=dmq.prototype;_.l.shouldPreferLocalResponse=function(F){var q=F.videoId,t;if(t=q)t=ZCM(this.store.getState().entities,F.videoId);return t&&RMt(this.store.getState().entities,q)?UYq(this.store.getState().entities,F.playlistId):!1};
_.l.localInnertubeResponse=function(F){var q=this,t;return _.p(function(u){return(t=q.getPlayerResponse(F))?u.return(Promise.resolve(t)):u.return(Promise.reject(Error("Pi")))})};
_.l.canProvideFallbackResponse=function(F){return!!F.videoId};
_.l.localFallbackInnertubeResponse=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(q.JSC$17649_upliftPromise,2);t=q.getPlayerResponse(F);var J;t?J=u.return(Promise.resolve(t)):J=P5(q.store.getState().entities,F.videoId)?u.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.lC(_.oD("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:s33()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
u.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.lC(_.oD("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:Jz_()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return J})};
_.l.getPlayerResponse=function(F){return Cvu(this.store.getState().entities,F.videoId)};var EL=function(F,q){this.localPlayerService=F;this.localWatchNextService=q};
EL.prototype.shouldPreferLocalResponse=function(F){var q=F.playerRequest;F=F.watchNextRequest;return!!(q&&this.localPlayerService.shouldPreferLocalResponse(q)&&F&&this.localWatchNextService.shouldPreferLocalResponse(F))};
EL.prototype.localInnertubeResponse=function(F){var q=this,t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1){t=F.playerRequest;u=F.watchNextRequest;if(!t||!u)throw new _.D0("Missing streaming request",F);return Y.yield(q.localPlayerService.localInnertubeResponse(t),2)}if(Y.nextAddress!=3)return J=Y.yieldResult,Y.yield(q.localWatchNextService.localInnertubeResponse(u),3);g=Y.yieldResult;return Y.return({playerResponse:J,watchNextResponse:g})})};
EL.prototype.canProvideFallbackResponse=function(F){var q=F.playerRequest;F=F.watchNextRequest;return!!(q&&this.localPlayerService.canProvideFallbackResponse(q)&&F&&this.localWatchNextService.canProvideFallbackResponse(F))};
EL.prototype.localFallbackInnertubeResponse=function(F){var q=this,t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return t=F.playerRequest,u=F.watchNextRequest,t&&u?Y.yield(q.localPlayerService.localFallbackInnertubeResponse(t),2):Y.return(Promise.reject(new _.D0("Missing streaming request",F)));if(Y.nextAddress!=3)return J=Y.yieldResult,Y.yield(q.localWatchNextService.localFallbackInnertubeResponse(u),3);g=Y.yieldResult;return Y.return({playerResponse:J,watchNextResponse:g})})};var wm=function(F){this.JSC$17659_persistentStorePromiseAccessor=F};
wm.prototype.shouldPreferLocalResponse=function(){return!1};
wm.prototype.localInnertubeResponse=function(){return _.p(function(F){return F.return(Promise.reject(Error("Qi")))})};
wm.prototype.canProvideFallbackResponse=function(){return!0};
wm.prototype.localFallbackInnertubeResponse=function(){var F=this,q,t;return _.p(function(u){return u.nextAddress==1?u.yield(F.JSC$17659_persistentStorePromiseAccessor(),2):u.nextAddress!=3?(q=u.yieldResult)?u.yield(q.get("service:guide:fallback"),3):u.return(Promise.reject(Error("Ri"))):(t=u.yieldResult)&&_.uZ(t)?u.return(SgP(_.uZ(t))):u.return(Promise.reject(Error("Si")))})};var oL=function(){};
oL.prototype.shouldPreferLocalResponse=function(){return!1};
oL.prototype.localInnertubeResponse=function(){return _.p(function(F){return F.return(Promise.reject(Error("Ti")))})};
oL.prototype.canProvideFallbackResponse=function(){return!0};
oL.prototype.localFallbackInnertubeResponse=function(){var F,q,t;return _.p(function(u){F=zJ("CLOSE_POPUP");q={openPopupAction:dYo()};t={actions:[F,q]};return u.return(t)})};var NF=function(){this.urlMap=Wr3;this.fallbackCommand=_.bv};
NF.prototype.shouldPreferLocalResponse=function(F){return(F=F.url)?!!OeD(this,F):!1};
NF.prototype.localInnertubeResponse=function(F){var q=this,t;return _.p(function(u){return(t=F.url)?u.return(PJ9(F,OeD(q,t))):u.return(Promise.reject(Error("Ui")))})};
NF.prototype.canProvideFallbackResponse=function(){return!0};
NF.prototype.localFallbackInnertubeResponse=function(F){var q=this,t,u,J,g,Y,Q,e;return _.p(function(r){t=F.url;if(!t)return r.return(PJ9(F,q.fallbackCommand));if(u=OeD(q,t))return r.return(PJ9(F,u));J=void 0;g=_.wN(t);g==="/watch"&&(Y=_.Kr(t,"v"))&&(e=(Q=_.Kr(t,"list"))!=null?Q:void 0,J=_.gj(Y,e));J||(J=q.fallbackCommand);return r.return(PJ9(F,J))})};
var OeD=function(F,q){if(q)return F.urlMap[_.LB(q)]},PJ9=function(F,q){q&&F.parentTrackingParams&&(q.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:F.parentTrackingParams}},q.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:q})};var iZ=function(F,q,t){this.JSC$17669_upliftPromise=F;this.store=q;this.JSC$17669_persistentStorePromiseAccessor=t};
iZ.prototype.shouldPreferLocalResponse=function(){return!1};
iZ.prototype.localInnertubeResponse=function(){return _.p(function(F){return F.return(Promise.reject(Error("Vi")))})};
iZ.prototype.canProvideFallbackResponse=function(){return!0};
iZ.prototype.localFallbackInnertubeResponse=function(){var F=this;return _.p(function(q){return q.return(xnT(F))})};
var xnT=function(F){var q,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(tX(F.JSC$17669_upliftPromise,F.store),2);q=u.yieldResult;t={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[V_P(q)]}}}};return u.return(AED(F,t))})},AED=function(F,q){var t,u;
return _.p(function(J){if(J.nextAddress==1)return J.yield(F.JSC$17669_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return t=J.yieldResult,J.yield(JX(t),3);u=J.yieldResult;return J.return({responseContext:{},contents:q,topbar:u})})};var RL=function(F,q,t){this.JSC$17676_upliftPromise=F;this.store=q;this.JSC$17676_persistentStorePromiseAccessor=t};
RL.prototype.shouldPreferLocalResponse=function(F){var q=F.videoId;return q&&ZCM(this.store.getState().entities,q)&&RMt(this.store.getState().entities,q)?UYq(this.store.getState().entities,F.playlistId):!1};
RL.prototype.localInnertubeResponse=function(F){var q=this,t,u;return _.p(function(J){if(J.nextAddress==1)return(t=F.videoId)?J.yield(q.JSC$17676_upliftPromise,2):J.return(Promise.reject(Error("Wi")));if(J.nextAddress!=3)return J.yield(vO7(q,F,t),3);u=J.yieldResult;return J.return(Iww(q,u,t))})};
RL.prototype.canProvideFallbackResponse=function(F){return F.videoId?!0:!1};
RL.prototype.localFallbackInnertubeResponse=function(F){var q=this,t,u,J,g;return _.p(function(Y){switch(Y.nextAddress){case 1:return(t=F.videoId)?Y.yield(q.JSC$17676_upliftPromise,2):Y.return(Promise.reject(Error("Wi")));case 2:return Y.yield(vO7(q,F,t),3);case 3:u=Y.yieldResult;if(P5(q.store.getState().entities,t)){Y.jumpTo(4);break}return Y.yield(tX(q.JSC$17676_upliftPromise,q.store),5);case 5:return J=Y.yieldResult,Y.return(He5(u,J));case 4:return ZCM(q.store.getState().entities,t)&&RMt(q.store.getState().entities,
t)?Y.return(Iww(q,u,t)):(g={title:_.lC(_.oD("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:s33()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},Y.return(He5(u,g)))}})};
var vO7=function(F,q,t){var u,J,g,Y,Q;return _.p(function(e){if(e.nextAddress==1)return u=q.playlistId,J=_.gj(t,u),e.yield(F.JSC$17676_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return g=e.yieldResult,e.yield(JX(g),3);Y=e.yieldResult;Q={responseContext:{},currentVideoEndpoint:J,topbar:Y};return e.return(Q)})},Iww=function(F,q,t){if(F=P5(F.store.getState().entities,t)){var u;
t=F.videoEntity;var J,g={title:XE(t.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Yv((u=t.localizedStrings)==null?void 0:u.viewCount),viewCount:_.Yv((J=t.localizedStrings)==null?void 0:J.viewCount)}}};t.publishedTimestampMillis&&(g.dateText=_.Yv(PWv(new Date(Number(t.publishedTimestampMillis)))));u={videoPrimaryInfoRenderer:g};J=F.videoEntity;F=F.channelEntity;F={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:XE(_.oD("SHOW_MORE",void 0,"Show more")),
showLessText:XE(_.oD("SHOW_LESS",void 0,"Show less")),description:J.formattedDescription,owner:{videoOwnerRenderer:{title:XE(F.title),thumbnail:F.avatar}}}};q.contents={twoColumnWatchNextResults:{results:{results:{contents:[u,F]}}}}}return q},He5=function(F,q){F.contents={singleColumnWatchNextResults:{results:{results:{contents:[V_P(q)]}}}};
return F};var kf=function(F,q,t){this.JSC$17681_upliftPromise=F;this.store=q;this.JSC$17681_persistentStorePromiseAccessor=t};
kf.prototype.shouldPreferLocalResponse=function(){return!1};
kf.prototype.localInnertubeResponse=function(){return _.p(function(F){return F.return(Promise.reject(Error("Xi")))})};
kf.prototype.canProvideFallbackResponse=function(){return!0};
kf.prototype.localFallbackInnertubeResponse=function(){var F=this,q,t,u,J;return _.p(function(g){switch(g.nextAddress){case 1:return g.yield(F.JSC$17681_persistentStorePromiseAccessor(),2);case 2:return q=g.yieldResult,g.yield(JX(q),3);case 3:return t=g.yieldResult,u={responseContext:{},topbar:t},g.yield(F.JSC$17681_upliftPromise,4);case 4:return g.yield(tX(F.JSC$17681_upliftPromise,F.store),5);case 5:return J=g.yieldResult,u.watchStatus={backgroundPromoRenderer:J},g.return(u)}})};_.mn3=new _.pg("ENDPOINT_MAP");var $nv=function(){var F=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return F.sequenceMap}}},SRe=function(F,q,t){var u,J=(u=q.config)==null?void 0:u.sequenceStrategy;
if(!J)return t();F.sequenceMap.has(J.sequenceKey)||F.sequenceMap.set(J.sequenceKey,[]);F=F.sequenceMap.get(J.sequenceKey);switch(J.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return beJ(F,q,t);case "REQUEST_SEQUENCE_TYPE_REPLACE":return yE7(F,q,t);default:throw new _.D0("Request could not be sequenced",q);}},beJ=function(F,q,t){var u,J,g;
return _.p(function(Y){F.length>0?(J=F[F.length-1],u=J.responsePromise.then(function(){return t()})):u=t();
g={request:q,responsePromise:u};F.push(g);CJ9(F,g);return Y.return(g.responsePromise)})},yE7=function(F,q,t){t=t();
if(F.length>0)for(var u=_.X(F),J=u.next();!J.done;J=u.next())J.value.responsePromise=t;var g={request:q,responsePromise:t};F.push(g);CJ9(F,g);return Promise.resolve().then(function(){return F.indexOf(g)>0?g.responsePromise.then(function(Y){return Object.assign({},Y,{sequenceMetaData:{skipProcessing:!0}})}):g.responsePromise})},CJ9=function(F,q){q.responsePromise.then(function(){var t=F.indexOf(q);
t>-1&&F.splice(t,1)})};var dnv=new _.pg("REQUEST_SEQUENCING");var QB=function(){};
_.M(QB,xQ);QB.prototype.getApiPaths=function(){return[]};
QB.prototype.getExtension=function(F){return _.n(F,PXv)};
QB.prototype.JSC$13096_buildRequest=function(F,q){F.recaptchaToken=q.recaptchaToken};
QB.prototype.getApiUrl=function(){return"/das_captcha"};var ey=function(){};
_.M(ey,xQ);ey.prototype.getApiPaths=function(){return fBC};
ey.prototype.getExtension=function(F){return _.n(F,gDJ)};
ey.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.createBackstagePostParams&&(F.createBackstagePostParams=q.createBackstagePostParams);t.comment_text&&(F.commentText=t.comment_text);if(t.attached_video_id)F.videoAttachment={videoId:t.attached_video_id};else if(t.image_poll_options)F.pollAttachmentData={options:t.image_poll_options};else if(t.poll_options)F.pollAttachment={choices:t.poll_options};else if(t.quiz_options)F.quizAttachmentData={options:t.quiz_options};else if(t.image_blob_id)F.imageAttachment=
{encryptedBlobId:t.image_blob_id},t.source_video_id&&(F.imageAttachment.sourceExternalVideoId=t.source_video_id),t.image_preview_coordinates&&(F.imageAttachment.previewCoordinates=JSON.parse(t.image_preview_coordinates));else if(t.images_data)F.imagesAttachment={imagesData:t.images_data};else if(t.clip_external_video_id!==void 0||t.clip_offset_ms!==void 0||t.clip_duration_ms!==void 0){var u,J,g,Y,Q;F.clipAttachment={externalVideoId:(g=t.clip_external_video_id)!=null?g:"",offsetMs:(Y=(u=t.clip_offset_ms)==
null?void 0:u.toString())!=null?Y:"",durationMs:(Q=(J=t.clip_duration_ms)==null?void 0:J.toString())!=null?Q:""}}else t.shared_post_id&&(F.sharedPostAttachment={postId:t.shared_post_id});t.tagged_video_id&&(F.postCreationData={taggedVideoId:t.tagged_video_id});t.access_restrictions&&(typeof t.access_restrictions==="number"&&(q=t.access_restrictions,F.accessRestrictions={restriction:q!==1&&q===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof t.access_restrictions==="string"&&
(F.accessRestrictionsParams=t.access_restrictions));t.scheduled_publish_time_sec&&(F.scheduledPublishTimeSec=t.scheduled_publish_time_sec.toString())};var Z$=function(){};
_.M(Z$,xQ);Z$.prototype.getApiPaths=function(){return u7e};
Z$.prototype.getExtension=function(F){return _.n(F,LlO)};
Z$.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.decorateMessageParams&&(F.params=q.decorateMessageParams);t.text&&(F.text=t.text)};var Rk=function(){};
_.M(Rk,xQ);Rk.prototype.getApiPaths=function(){return nTv};
Rk.prototype.getExtension=function(F){return _.n(F,l6j)};
Rk.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;t.video_id&&(F.videoId=t.video_id)};var rn=function(){};
_.M(rn,xQ);rn.prototype.getApiPaths=function(){return Wnv};
rn.prototype.getExtension=function(F){return _.n(F,_.ko)};
rn.prototype.JSC$13096_buildRequest=function(F,q,t){t.suggestions_query&&(F.input=t.suggestions_query)};var N_=function(){};
_.M(N_,xQ);N_.prototype.getApiPaths=function(){return XBv};
N_.prototype.getExtension=function(F){return _.n(F,Xrj)};
N_.prototype.JSC$13096_buildRequest=function(F,q,t){t.comment_text!==void 0&&(F.commentText=t.comment_text);t.scheduled_publish_time_sec&&(F.scheduledPublishTimeSec=t.scheduled_publish_time_sec.toString());F.updateBackstagePostParams=q.updateBackstagePostParams};var wn=function(){};
_.M(wn,xQ);wn.prototype.getApiPaths=function(){return fw};
wn.prototype.getExtension=function(F){return _.n(F,_.Si)};
wn.prototype.JSC$13096_buildRequest=function(F,q,t){t.formData&&(F.formData=t.formData);q.token?F.continuation=q.token:q.continuationTokenKey&&(t=_.u1().getState(),q=_.iC(t.entities,"continuationTokenEntity",q.continuationTokenKey))&&(F.continuation=String(q.continuationToken))};
var VC7=function(){};
_.M(VC7,xQ);_.l=VC7.prototype;_.l.getApiPaths=function(){return fw};
_.l.getExtension=function(F){return _.n(F,_.Gr)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$13103_getStoreKey=function(F){if((F=this.getExtension(F))&&F.browseId){var q={browseId:F.browseId};F.browseEndpointContextSupportedConfigs&&(q.browseEndpointContextSupportedConfigs=JSON.stringify(F.browseEndpointContextSupportedConfigs));F.params&&(q.params=F.params);F.query&&(q.query=F.query);return _.cW("browse",q)}};
_.l.JSC$13096_buildRequest=function(F,q,t){q.browseId&&(F.browseId=q.browseId);q.params&&(F.params=q.params);q.query&&(F.query=q.query);t.formData?F.formData=t.formData:q.formData&&(F.formData=q.formData);q.browseId==="FEsubscriptions"&&_.TV().getFlag(155)&&(F.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");q.browseId==="SPaccount_playback"&&(t=_.TV(),F.formData||(F.formData={}),F.formData.accountSettingsFormData={flagCaptionsDefaultOff:t.getFlag(65),flagAutoCaptionsDefaultOn:t.getFlag(66),
flagDisableInlinePreview:t.getFlag(186),flagAudioDescriptionDefaultOn:t.getFlag(198)});if(q.browseId==="FEwhat_to_watch"){t=_.TV();var u=t.getFlag(196);t.getFlag(197)&&(F.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:u}}})}q.browseId==="FEwhat_to_watch"&&(q=_.TV().getFlag(186),F.inlineSettingStatus=q?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.l.getRequestConfig=function(F,q){q=q===void 0?{}:q;var t={};if(F=this.JSC$13103_getStoreKey(F,q))t.storeStrategy={storeKey:F,disableCache:q.disableCache};_.E("web_log_browse_ticks_ks")||(t.requestTick="br_s",t.responseTick="br_r");return t};var iD=function(){};
_.M(iD,xQ);iD.prototype.getApiPaths=function(){return UTv};
iD.prototype.getExtension=function(F){return _.n(F,mVr)};
iD.prototype.JSC$13096_buildRequest=function(F,q,t){F.legacyYoutubeChannelUsername=t.legacyYouTubeChannelUsername||"";F.legacyYoutubeChannelPassword=t.legacyYouTubeChannelPassword||""};var kS=function(){};
_.M(kS,xQ);kS.prototype.getApiPaths=function(){return aOw};
kS.prototype.getExtension=function(F){return _.n(F,NUC)};
kS.prototype.JSC$13096_buildRequest=function(F,q,t){t.recaptcha_response_token&&(F.recaptchaResponseToken=t.recaptcha_response_token);t.channel_id&&(F.channelId=t.channel_id)};var E3=function(){};
_.M(E3,xQ);E3.prototype.getApiPaths=function(){return Ylv};
E3.prototype.getExtension=function(F){return _.n(F,oD1)};
E3.prototype.JSC$13096_buildRequest=function(F,q,t){q.externalChannelId&&(F.externalChannelId=q.externalChannelId);t.handle&&(F.handleUpdate={handle:t.handle},q.handleEditSource&&(F.handleUpdate.handleEditSource=q.handleEditSource))};var z7=function(){};
_.M(z7,xQ);z7.prototype.getApiPaths=function(){return ZNC};
z7.prototype.getExtension=function(F){return _.n(F,Srr)};
z7.prototype.JSC$13096_buildRequest=function(F,q,t){q.request&&(F.channelId=q.request.channelId);var u;if(t==null?0:(u=t.uploadDefaults)==null?0:u.emojiReactionSet)F.uploadDefaultsRequest||(F.uploadDefaultsRequest={}),F.uploadDefaultsRequest.emojiReactionSet=t.uploadDefaults.emojiReactionSet};var ok=function(){};
_.M(ok,xQ);ok.prototype.getApiPaths=function(){return Nuj};
ok.prototype.getExtension=function(F){return _.n(F,wrr)};
ok.prototype.JSC$13096_buildRequest=function(F,q,t){q.externalChannelId&&(F.externalChannelId=q.externalChannelId);q.channelHandleEntityKey&&(F.channelHandleEntityKey=q.channelHandleEntityKey);q.handleEditSource&&(F.handleEditSource=q.handleEditSource);t.handle?F.handle=t.handle:t.name&&(F.name=t.name)};var na=function(){};
_.M(na,xQ);na.prototype.getApiPaths=function(){return Kej};
na.prototype.getExtension=function(F){return _.n(F,OCd)};
na.prototype.JSC$13096_buildRequest=function(F,q){q.actions?F.actions=q.actions:q.action&&(F.actions=[q.action])};var M_=function(){};
_.M(M_,xQ);M_.prototype.getApiPaths=function(){return Btn};
M_.prototype.getExtension=function(F){return _.n(F,_.Si)};
M_.prototype.JSC$13096_buildRequest=function(F,q){q.token&&(F.continuation=q.token)};var T7=function(){};
_.M(T7,xQ);T7.prototype.getApiPaths=function(){return zDf};
T7.prototype.getExtension=function(F){return _.n(F,_.Si)};
T7.prototype.JSC$13096_buildRequest=function(F,q){F.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";q.token&&(F.fetchCommentsParams={continuation:q.token})};var G7=function(){};
_.M(G7,xQ);G7.prototype.getApiPaths=function(){return ctf};
G7.prototype.getExtension=function(F){return _.n(F,WLx)};
G7.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.createReplyParams&&(F.createReplyParams=q.createReplyParams);q.commentText&&(F.commentText=_.q1(q.commentText));t.comment_text&&(F.commentText=t.comment_text);t.image_blob_id&&(F.imageAttachment={encryptedBlobId:t.image_blob_id});t.botguard_response&&(F.botguardResponse=t.botguard_response)};
_.JJ.Object.defineProperties(G7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var D$=function(){};
_.M(D$,xQ);D$.prototype.getApiPaths=function(){return Fnf};
D$.prototype.getExtension=function(F){return _.n(F,_.DCL)};
D$.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.createCommentParams&&(F.createCommentParams=q.createCommentParams);q.commentText&&(F.commentText=_.q1(q.commentText));q.videoPositionMention&&(F.videoPositionMention=q.videoPositionMention);q.sources&&(F.sources=q.sources);t.comment_text&&(F.commentText=t.comment_text);t.attached_video_id?F.videoAttachment={videoId:t.attached_video_id}:t.poll_options?F.pollAttachment={choices:t.poll_options}:t.image_blob_id?F.imageAttachment=
{encryptedBlobId:t.image_blob_id}:t.shared_post_id&&(F.sharedPostAttachment={postId:t.shared_post_id});t.access_restrictions&&typeof t.access_restrictions==="number"&&(q=t.access_restrictions,F.accessRestrictions={restriction:q!==1&&q===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});t.botguard_response&&(F.botguardResponse=t.botguard_response)};
_.JJ.Object.defineProperties(D$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var W3=function(){};
_.M(W3,xQ);W3.prototype.getApiPaths=function(){return pBJ};
W3.prototype.getExtension=function(F){return _.n(F,xCJ)};
W3.prototype.JSC$13096_buildRequest=function(F,q,t){q.commentText&&(F.replyText=_.q1(q.commentText));t.comment_text&&(F.replyText=t.comment_text);F.updateReplyParams=q.updateReplyParams};
_.JJ.Object.defineProperties(W3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var O3=function(){};
_.M(O3,xQ);O3.prototype.getApiPaths=function(){return QnL};
O3.prototype.getExtension=function(F){return _.n(F,Pvd)};
O3.prototype.JSC$13096_buildRequest=function(F,q,t){q.commentText&&(F.commentText=_.q1(q.commentText));t.comment_text&&(F.commentText=t.comment_text);F.updateCommentParams=q.updateCommentParams};
_.JJ.Object.defineProperties(O3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var P3=function(){};
_.M(P3,xQ);P3.prototype.getApiPaths=function(){return erw};
P3.prototype.getExtension=function(F){return _.n(F,Cbe)};
P3.prototype.JSC$13096_buildRequest=function(F,q){q.settings&&(F.settings=q.settings)};var xS=function(){};
_.M(xS,xQ);xS.prototype.getApiPaths=function(){return RDz};
xS.prototype.getExtension=function(F){return _.n(F,iQO)};
xS.prototype.JSC$13096_buildRequest=function(F,q){q.channelCreationToken&&(F.channelCreationToken=q.channelCreationToken);q.source&&(F.source=q.source)};var Am=function(){};
_.M(Am,xQ);Am.prototype.getApiPaths=function(){return jAr};
Am.prototype.getExtension=function(F){return _.n(F,zN1)};
Am.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;if(t.name&&(t.given_name||t.family_name))F=new _.D0("channel creation cannot set both GAIA and YouTube names",q),_.mH(F);else{if(q.zeroStepChannelCreationParams){if(!t.comment_text){F=new _.D0("zero_step_create_comment_params but no zero_step_texts",q);_.mH(F);return}F.zeroStepChannelCreationParams=q.zeroStepChannelCreationParams;F.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(F.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
t.comment_text,t.botguard_response&&(F.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=t.botguard_response))}F.channelCreationToken=q.channelCreationToken;t.given_name&&(F.givenName=t.given_name);t.family_name&&(F.familyName=t.family_name);q.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(F.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(t.name||t.handle||t.avatar_url||t.encryptedBlobId||t.isNameChanged!==void 0||t.isHandleChanged!==void 0||t.isDefaultProfilePhoto!==
void 0||t.obakeImageSource)F.overrideChannelCreationParams={},t.name&&(F.overrideChannelCreationParams.name=t.name),t.handle&&(F.overrideChannelCreationParams.handle=t.handle),t.avatar_url&&(F.overrideChannelCreationParams.avatarUrl=t.avatar_url),t.encryptedBlobId&&(F.overrideChannelCreationParams.blobEncryptionId=t.encryptedBlobId),t.enableIdentityForAllChannelCreationDialog&&(t.encryptedBlobId?F.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
t.isDefaultProfilePhoto!==void 0&&(F.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=t.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),t.isNameChanged!==void 0&&(F.overrideChannelCreationParams.identityForAllChannelCreationNameTag=t.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),t.isHandleChanged!==
void 0&&(F.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=t.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),t.obakeImageSource&&(F.overrideChannelCreationParams.obakeImageSourceType=t.obakeImageSource))}};var v3=function(){};
_.M(v3,xQ);v3.prototype.getApiPaths=function(F){return(F=this.getExtension(F))&&F.status==="DISLIKE"?lOd:F&&F.status==="INDIFFERENT"?hDw:vTf};
v3.prototype.getExtension=function(F){return _.n(F,_.Cw)};
v3.prototype.JSC$13096_buildRequest=function(F,q){q.target&&(F.target=q.target);if(q=this.getParams(q))F.params=q};
v3.prototype.getParams=function(F){switch(F==null?void 0:F.status){case "DISLIKE":return F.dislikeParams;case "INDIFFERENT":return F.removeLikeParams;default:return F==null?void 0:F.likeParams}};var Ik=function(){};
_.M(Ik,xQ);Ik.prototype.getApiPaths=function(){return t2L};
Ik.prototype.getExtension=function(F){return _.n(F,$CE)};
Ik.prototype.JSC$13096_buildRequest=function(F,q){q.settingItemId&&(F.settingItemId=q.settingItemId);q.stringValue!=null&&q.stringValue!==void 0?F.newValue={stringValue:q.stringValue}:q.intValue?F.newValue={intValue:q.intValue}:q.boolValue!==null&&q.boolValue!==void 0?F.newValue={boolValue:q.boolValue}:(F=new _.D0("Unknown value type for SetSettingEndpoint.",q),_.mH(F))};var H3=function(){};
_.M(H3,xQ);H3.prototype.getApiPaths=function(){return snj};
H3.prototype.getExtension=function(F){return _.n(F,swn)||void 0};
H3.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.channelIds&&(F.channelIds=q.channelIds);q.siloName&&(F.siloName=q.siloName);q.params&&(F.params=q.params);t.botguardResponse&&(F.botguardResponse=t.botguardResponse);t.feature&&(F.clientFeature=t.feature)};
_.JJ.Object.defineProperties(H3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mN=function(){};
_.M(mN,xQ);mN.prototype.getApiPaths=function(){return lE1};
mN.prototype.getExtension=function(F){return _.n(F,bCn)||void 0};
mN.prototype.JSC$13096_buildRequest=function(F,q){q.channelIds&&(F.channelIds=q.channelIds);q.siloName&&(F.siloName=q.siloName);q.params&&(F.params=q.params)};
_.JJ.Object.defineProperties(mN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $S=function(F){this.shareClientParamsProvider=F};
_.M($S,xQ);$S.prototype.getApiPaths=function(){return Lk_};
$S.prototype.getExtension=function(F){return _.n(F,eOx)||_.n(F,_.Zue)||_.n(F,Qt1)};
$S.prototype.JSC$13096_buildRequest=function(F,q){q.serializedShareEntity&&(F.serializedSharedEntity=q.serializedShareEntity);if(q.clientParamIdentifier){var t;if((t=this.shareClientParamsProvider)==null?0:t.clientParams.has(q.clientParamIdentifier)){t=this.shareClientParamsProvider;q=q.clientParamIdentifier;var u=t.clientParams.get(q);u&&t.clientParams.delete(q);F.clientParams=u}}};
$S[Yc]=[B6L];var bD=function(){};
_.M(bD,xQ);bD.prototype.getApiPaths=function(){return CYE};
bD.prototype.getExtension=function(F){return _.n(F,K_O)};
bD.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var yB=function(){};
_.M(yB,xQ);yB.prototype.getApiPaths=function(){return Xez};
yB.prototype.getExtension=function(F){return _.n(F,UVj)};
yB.prototype.JSC$13096_buildRequest=function(F,q){q.dismissal&&(F.items=[q.dismissal])};
_.JJ.Object.defineProperties(yB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ca=function(){};
_.M(Ca,xQ);Ca.prototype.getApiPaths=function(){return x$f};
Ca.prototype.getExtension=function(F){return _.n(F,_.PO)||void 0};
Ca.prototype.JSC$13096_buildRequest=function(F,q,t){F.feedbackTokens=[];q.feedbackToken&&F.feedbackTokens.push(q.feedbackToken);if(q=q.cpn||t.cpn)F.feedbackContext={cpn:q};F.isFeedbackTokenUnencrypted=!!t.is_feedback_token_unencrypted;F.shouldMerge=!1;t.extra_feedback_tokens&&(F.shouldMerge=!0,F.feedbackTokens=F.feedbackTokens.concat(t.extra_feedback_tokens))};
_.JJ.Object.defineProperties(Ca.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dn=function(){};
_.M(dn,xQ);dn.prototype.getApiPaths=function(){return x$f};
dn.prototype.getExtension=function(F){return _.n(F,_.ko)};
dn.prototype.JSC$13096_buildRequest=function(F,q,t){t.feedback_tokens&&(F.feedbackTokens=t.feedback_tokens,F.shouldMerge=!0)};
_.JJ.Object.defineProperties(dn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var VB=function(){};
_.M(VB,xQ);VB.prototype.getApiPaths=function(){return x$f};
VB.prototype.getExtension=function(F){return _.n(F,c7f)};
VB.prototype.JSC$13096_buildRequest=function(F,q){q.undoToken&&(F.feedbackTokens=[q.undoToken]);q.isUndoTokenUnencrypted&&(F.isFeedbackTokenUnencrypted=q.isUndoTokenUnencrypted)};
_.JJ.Object.defineProperties(VB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var U3=function(){};
_.M(U3,xQ);U3.prototype.getApiPaths=function(){return wBJ};
U3.prototype.getExtension=function(F){return _.n(F,Ci1)};
U3.prototype.JSC$13096_buildRequest=function(F,q){q.nextEndpoint&&_.n(q.nextEndpoint,_.KM)?F.nextEndpoint={urlEndpoint:_.n(q.nextEndpoint,_.KM)}:q.nextEndpoint&&_.n(q.nextEndpoint,_.Fw)&&(F.nextEndpoint={watchEndpoint:_.n(q.nextEndpoint,_.Fw)});q.setRacy&&(F.setRacy=q.setRacy);q.setControvercy&&(F.setControvercy=q.setControvercy)};var Sy=function(F){this.JSC$17862_storeWithEntities=F};
_.M(Sy,xQ);Sy.prototype.getApiPaths=function(){return peC};
Sy.prototype.getExtension=function(F){return _.n(F,QOJ)};
Sy.prototype.JSC$13096_buildRequest=function(F,q){q.flowId&&(F.flowId=q.flowId);q.targetId&&(F.targetId=q.targetId);q.continuation&&(F.continuation=q.continuation);var t=q.flowStateEntityKey;if(q.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&t&&this.JSC$17862_storeWithEntities){var u;if(q=(u=this.JSC$17862_storeWithEntities.getState())==null?void 0:u.entities)if(u=_.ez(t).entityType,u=_.iC(q,u,t))F.flowState=u,F.flowStateEntityKey=t}};
_.JJ.Object.defineProperties(Sy.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Sy[Yc]=[sL];var Un3=function(){};
_.M(Un3,xQ);_.l=Un3.prototype;_.l.getApiPaths=function(){return PrE};
_.l.JSC$13103_getStoreKey=function(){return _.cW("guide")};
_.l.getRequestConfig=function(){var F=this.JSC$13103_getStoreKey(),q;F&&(q={storeStrategy:{storeKey:F}});return q};
_.l.isNavigationCommand=function(){return!0};
_.l.getExtension=function(F){return _.n(F,_.ko)};
_.l.JSC$13096_buildRequest=function(F){F.fetchLiveState=!0};var hm=function(){};
_.M(hm,xQ);hm.prototype.getApiPaths=function(){return Snz};
hm.prototype.getExtension=function(F){return _.n(F,MRe)};
hm.prototype.JSC$13096_buildRequest=function(){};var Ka=function(){};
_.M(Ka,xQ);Ka.prototype.getApiPaths=function(){return hsv};
Ka.prototype.getExtension=function(F){return _.n(F,TXd)};
Ka.prototype.JSC$13096_buildRequest=function(){};var B3=function(){};
_.M(B3,xQ);B3.prototype.getApiPaths=function(){return ytL};
B3.prototype.getExtension=function(F){return _.n(F,_.Si)};
B3.prototype.JSC$13096_buildRequest=function(F,q){q.token&&(F.continuation=q.token);var t,u;F==null||(t=F.context)==null||(u=t.user)==null||delete u.onBehalfOfUser};
B3.prototype.getRequestConfig=function(F){var q={},t;if(((t=this.getExtension(F))==null?void 0:t.sessionIndex)!==void 0){var u;q={authStrategy:{sessionIndex:(u=this.getExtension(F))==null?void 0:u.sessionIndex}}}return q};var La=function(){};
_.M(La,xQ);La.prototype.JSC$13096_getRequest=function(F){var q=this.getExtension(F),t=F="";if(q==null?0:q.popup)F="true";if(q==null?0:q.disableSignout)t="true";q={};return{input:"/getAccountSwitcherEndpoint",requestShell:jd("/getAccountSwitcherEndpoint","GET",(q["X-YouTube-Delegation-Context"]=_.bn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),q["X-YouTube-Account-Switcher-Popup"]=F,q["X-YouTube-Account-Switcher-Disable-Signout"]=t,q)),innerTubeRequest:{}}};
La.prototype.getApiPaths=function(){return[]};
La.prototype.getExtension=function(F){return _.n(F,_.CUP)};
La.prototype.JSC$13096_buildRequest=function(){};var fa=function(){};
_.M(fa,xQ);fa.prototype.JSC$13096_getRequest=function(F){var q="/cross_account_channel_transfer";(F=this.getExtension(F))&&(q=GVA(q,{target_session:F.targetSessionIndex,source_rapt:F.sourceRapt,rapt:F.targetRapt}));return{input:q,requestShell:jd(q,"GET"),innerTubeRequest:{}}};
fa.prototype.getApiPaths=function(){return[]};
fa.prototype.getExtension=function(F){return _.n(F,mtJ)};
fa.prototype.JSC$13096_buildRequest=function(){};var ak=function(){};
_.M(ak,xQ);ak.prototype.getApiPaths=function(){return QpC};
ak.prototype.isNavigationCommand=function(){return!0};
ak.prototype.getExtension=function(F){return _.n(F,_.ko)};
ak.prototype.JSC$13096_buildRequest=function(F){var q=_.TV().get("gsml","");q&&(F.safetyModeLockerObfuscatedGaiaId=q);F.userInterfaceTheme=_.Hx(!0);_.mB()?F.deviceTheme="DEVICE_THEME_SELECTED":_.H_W()?F.deviceTheme="DEVICE_THEME_SUPPORTED":F.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var jy=function(){};
_.M(jy,xQ);jy.prototype.getApiPaths=function(){return ytL};
jy.prototype.getExtension=function(F){return _.n(F,$td)};
jy.prototype.JSC$13096_buildRequest=function(F,q){if(q&&q.requestType&&(F.requestType=q.requestType,q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var t=q.nextUrl;t&&(_.Wjy(t)||tU(t))&&(F.nextNavendpoint={urlEndpoint:{url:t}})}q&&q.channelSwitcherQuery&&(F.channelSwitcherQuery=q.channelSwitcherQuery);q&&q.triggerChannelCreation&&(F.triggerChannelCreation=q.triggerChannelCreation);var u;if(q==null?0:(u=q.contentOwnerConfig)==
null?0:u.externalContentOwnerId)F.contentOwnerConfig=q.contentOwnerConfig;F.callCircumstance=q&&q.requestType&&q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var J,g;q=F==null?void 0:(J=F.context)==null?void 0:(g=J.user)==null?void 0:g.onBehalfOfUser;if(q!==void 0){F.obfuscatedSelectedGaiaId=q;var Y,Q;F==null||(Y=F.context)==null||(Q=Y.user)==null||delete Q.onBehalfOfUser}var e,r;if(J=F==null?void 0:(e=F.context)==null?void 0:(r=e.user)==null?
void 0:r.serializedDelegationContext)F.selectedSerializedDelegationContext=J};var c3=function(){};
_.M(c3,xQ);c3.prototype.getApiPaths=function(){return dTJ};
c3.prototype.getExtension=function(F){return _.n(F,ROw)};
c3.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var FT=function(){};
_.M(FT,xQ);FT.prototype.getApiPaths=function(){return aBr};
FT.prototype.getExtension=function(F){return _.n(F,_.Wyz)};
FT.prototype.JSC$13096_buildRequest=function(F,q){if(q=q.createBroadcastRequest)F.useMasks=q.useMasks,F.broadcastType=q.broadcastType,F.broadcastSource=q.broadcastSource,F.broadcastMetadata=q.broadcastMetadata,F.broadcastMetadataMask=q.broadcastMetadataMask,F.videoMetadata=q.videoMetadata,F.videoMetadataMask=q.videoMetadataMask,F.liveChatSettingsUpdate=q.liveChatSettingsUpdate,F.liveChatSettingsUpdateMask=q.liveChatSettingsUpdateMask,F.cloneVideoId=q.cloneVideoId,F.cloneWithOverrides=q.cloneWithOverrides,
F.targetEntity=q.targetEntity,F.scheduledRedirectMetadata=q.scheduledRedirectMetadata};var ql=function(){};
_.M(ql,xQ);ql.prototype.getApiPaths=function(){return q9w};
ql.prototype.getExtension=function(F){return _.n(F,EZz)};
ql.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.params&&(F.params=q.params);t.questionText&&(F.questionText=t.questionText);t.optionText&&t.optionText.length>0&&(F.optionText=t.optionText)};var tS=function(){};
_.M(tS,xQ);tS.prototype.getApiPaths=function(){return JFf};
tS.prototype.getExtension=function(F){return _.n(F,iVO)};
tS.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var uU=function(){};
_.M(uU,xQ);uU.prototype.getApiPaths=function(){return N8f};
uU.prototype.getExtension=function(F){return _.n(F,RnE)};
uU.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var JS=function(){};
_.M(JS,xQ);JS.prototype.getApiPaths=function(){return i_1};
JS.prototype.getExtension=function(F){return _.n(F,rMw)};
JS.prototype.JSC$13096_buildRequest=function(F,q,t){q.params&&(F.params=q.params);q.continuation&&(F.continuation=q.continuation);t.currentPlayerState&&t.currentPlayerState.playerOffsetMs&&(F.currentPlayerState={playerOffsetMs:t.currentPlayerState.playerOffsetMs.toString()})};var sz=function(){};
_.M(sz,xQ);sz.prototype.getApiPaths=function(){return kKJ};
sz.prototype.getExtension=function(F){return _.n(F,ZVE)};
sz.prototype.JSC$13096_buildRequest=function(F,q,t){q.params&&(F.params=q.params);t.continuation&&(F.continuation=t.continuation);"hidden"in t&&(F.webClientInfo={isDocumentHidden:t.hidden});t.isInvalidationTimeoutRequest&&(F.isInvalidationTimeoutRequest=t.isInvalidationTimeoutRequest);t.invalidationPayload&&(q=enE(_.f3(uK(t.invalidationPayload))),F.invalidationPayloadLastPublishAtUsec=vi(q,2));t.reloadActionPanel&&(F.reloadActionPanel=t.reloadActionPanel);t.fullReload&&(F.fullReload=t.fullReload);
t.currentPlayerState&&(F.currentPlayerState=t.currentPlayerState)};var gA=function(){};
_.M(gA,xQ);gA.prototype.getApiPaths=function(){return IOv};
gA.prototype.getExtension=function(F){return _.n(F,ksn)};
gA.prototype.JSC$13096_buildRequest=function(F,q){F.params=q.params};var lU=function(){};
_.M(lU,xQ);lU.prototype.getApiPaths=function(){return weC};
lU.prototype.getExtension=function(F){return _.n(F,P4d)};
lU.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var XT=function(){};
_.M(XT,xQ);XT.prototype.getApiPaths=function(){return ETz};
XT.prototype.getExtension=function(F){return _.n(F,xXj)};
XT.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var Y0=function(){};
_.M(Y0,xQ);Y0.prototype.getApiPaths=function(){return H_C};
Y0.prototype.getExtension=function(F){return _.n(F,zne)};
Y0.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var pf=function(){};
_.M(pf,xQ);pf.prototype.getApiPaths=function(){return $$O};
pf.prototype.getExtension=function(F){return _.n(F,oZL)};
pf.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var Q1=function(){};
_.M(Q1,xQ);Q1.prototype.getApiPaths=function(){return Kne};
Q1.prototype.getExtension=function(F){return _.n(F,wXd)};
Q1.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var ew=function(){};
_.M(ew,xQ);ew.prototype.getApiPaths=function(){return Fmr};
ew.prototype.getExtension=function(F){return _.n(F,_.nZL)};
ew.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.params&&(F.params=q.params);t.client_message_id&&(F.clientMessageId=t.client_message_id);t.recaptcha_token&&(F.recaptchaToken=t.recaptcha_token);t.rich_message&&t.rich_message.text_segments?(q=t.rich_message.text_segments.map(function(u){var J={};u.text&&(J.text=u.text);u.emoji_id&&(J.emojiId=u.emoji_id);return J}),F.richMessage={textSegments:q}):t.message&&(F.message=t.message);
t.currentPlayerState&&(F.currentPlayerState=t.currentPlayerState)};var Zy=function(){};
_.M(Zy,xQ);Zy.prototype.getApiPaths=function(){return qlL};
Zy.prototype.getExtension=function(F){return _.n(F,MZw)};
Zy.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var zR=function(){};
_.M(zR,xQ);zR.prototype.getApiPaths=function(){return gGx};
zR.prototype.getExtension=function(F){return _.n(F,GsC)};
zR.prototype.JSC$13096_buildRequest=function(F,q,t){q.isUserInitiated&&(F.isUserInitiated=q.isUserInitiated);q.initiationSource&&(F.initiationSource=q.initiationSource);t.locationInfo&&(F.context.client.locationInfo=t.locationInfo)};var oT=function(){};
_.M(oT,xQ);oT.prototype.getApiPaths=function(){return m$r};
oT.prototype.getExtension=function(F){return _.n(F,OiJ)};
oT.prototype.JSC$13096_buildRequest=function(F,q,t){q.metadataUpdateRequest&&(q=q.metadataUpdateRequest,F.encryptedVideoId=q.encryptedVideoId,q.liveChat&&(q=q.liveChat,F.liveChat||(F.liveChat={}),q.performAsExternalChannelId&&(F.liveChat.performAsExternalChannelId=q.performAsExternalChannelId),q.source&&(F.liveChat.source=q.source)));var u;if(t==null?0:(u=t.liveChat)==null?0:u.liveChatSettings)F.liveChat||(F.liveChat={}),t=t.liveChat.liveChatSettings,F.liveChat.newLiveChatSettings=t,F.liveChat.newLiveChatSettingsMask||
(F.liveChat.newLiveChatSettingsMask={}),t.emojiReactionSet&&(F.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var nf=function(){};
_.M(nf,xQ);nf.prototype.getApiPaths=function(){return rpe};
nf.prototype.getExtension=function(F){return _.n(F,_.yhE)};
nf.prototype.JSC$13096_buildRequest=function(F,q,t){t.continuation?F.continuation=t.continuation:q.videoId&&(F.videoId=q.videoId);t.clientParams&&(F.clientParams=t.clientParams)};var Ml=function(){};
_.M(Ml,xQ);Ml.prototype.getApiPaths=function(){return zDf};
Ml.prototype.getExtension=function(F){return _.n(F,_.jG)};
Ml.prototype.JSC$13096_buildRequest=function(F,q){F.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";F.fetchCommentsParams={};q.videoId&&(F.fetchCommentsParams.encryptedVideoId=q.videoId);q.postId&&(F.fetchCommentsParams.postId=q.postId);q.externalChannelId&&(F.fetchCommentsParams.externalChannelId=q.externalChannelId);q.linkedCommentId&&(F.fetchCommentsParams.linkedCommentId=q.linkedCommentId);(0,_.m7.isEmpty)(F.fetchCommentsParams)&&delete F.fetchCommentsParams};var TR=function(){};
_.M(TR,xQ);TR.prototype.getApiPaths=function(){return fw};
TR.prototype.JSC$13096_buildRequest=function(F){F.browseId="FEnotifications_inbox"};
TR.prototype.getExtension=function(F){return _.n(F,_.ko)};var GR=function(){};
_.M(GR,xQ);GR.prototype.getApiPaths=function(){return zDf};
GR.prototype.JSC$13096_buildRequest=function(F,q){q.signal==="GET_NOTIFICATIONS_MENU"&&(F.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");q.ctoken&&(F.ctoken=q.ctoken)};
var Svs=function(){};
_.M(Svs,GR);Svs.prototype.getExtension=function(F){return _.n(F,_.ko)};
var hdQ=function(){};
_.M(hdQ,GR);hdQ.prototype.getExtension=function(F){return _.n(F,$Vd)};var Dy=function(){};
_.M(Dy,xQ);Dy.prototype.getApiPaths=function(){return D$x};
Dy.prototype.getExtension=function(F){return _.n(F,_.ko)};
Dy.prototype.JSC$13096_buildRequest=function(){};var Wu=function(){};
_.M(Wu,xQ);Wu.prototype.getApiPaths=function(){return b_j};
Wu.prototype.getExtension=function(F){return _.n(F,I2f)||void 0};
Wu.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params);q.secondaryParams&&(F.secondaryParams=q.secondaryParams)};var Oz=function(){};
_.M(Oz,xQ);Oz.prototype.getApiPaths=function(){return yFf};
Oz.prototype.getExtension=function(F){return _.n(F,r1x)};
Oz.prototype.JSC$13096_buildRequest=function(F,q){q.undo&&(F.undo=q.undo);q.serializedOptOut&&(F.serializedOptOut=q.serializedOptOut);q.serializedRecordInteractionsRequest&&(F.serializedRecordInteractionsRequest=q.serializedRecordInteractionsRequest)};var Pu=function(){};
_.M(Pu,xQ);Pu.prototype.getApiPaths=function(){return Vev};
Pu.prototype.getExtension=function(F){return _.n(F,NRw)};
Pu.prototype.JSC$13096_buildRequest=function(F,q){q.serializedInteractionsRequest&&(F.serializedRecordNotificationInteractionsRequest=q.serializedInteractionsRequest)};var x0=function(){};
_.M(x0,xQ);x0.prototype.getApiPaths=function(){return fgy};
x0.prototype.getExtension=function(F){return _.n(F,LGv)};
x0.prototype.JSC$13096_buildRequest=function(F,q,t){q=q===void 0?{}:q;t=t===void 0?{}:t;q.videoId?F.videoId=q.videoId:q.playlistId&&(F.playlistId=q.playlistId);var u,J=(u=q.offlineWebClientEligibility)!=null?u:t.offlineWebClientEligibility;J&&(F.offlineWebClientEligibility=J);var g;if(u=(g=q.preferredFormatType)!=null?g:t.preferredFormatType)F.preferredFormatType=u;var Y;if(g=(Y=q.lastOfflineQualitySettingsSavedMs)!=null?Y:t.lastOfflineQualitySettingsSavedMs)F.lastOfflineQualitySettingsSavedMs=g;
q.params&&(F.params=q.params)};var AS=function(){};
_.M(AS,xQ);AS.prototype.getApiPaths=function(){return wX};
AS.prototype.getExtension=function(F){return _.n(F,_.Si)};
AS.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.token&&(F.continuation=q.token);t.formData&&(F.formData=t.formData)};var vu=function(){};
_.M(vu,xQ);vu.prototype.getApiPaths=function(){return wX};
vu.prototype.getExtension=function(F){return _.n(F,nxn)};
vu.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;F.continuation=t.continuation};var IT=function(){};
_.M(IT,xQ);IT.prototype.getApiPaths=function(){return wX};
IT.prototype.getExtension=function(F){return _.n(F,_.OL)};
IT.prototype.JSC$13096_buildRequest=function(F,q){var t,u=q.panelIdentifier||((t=q.identifier)==null?void 0:t.tag);u&&(F.panelId=u);var J;if((J=q.globalConfiguration)==null?0:J.params){var g;F.params=(g=q.globalConfiguration)==null?void 0:g.params}};
_.JJ.Object.defineProperties(IT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Hu=function(){};
_.M(Hu,xQ);Hu.prototype.getApiPaths=function(){return wX};
Hu.prototype.getExtension=function(F){return _.n(F,XPE)};
Hu.prototype.JSC$13096_buildRequest=function(F,q){q.panelLoadingStrategy&&L5$(F,q.panelLoadingStrategy)};var mG=function(){};
_.M(mG,xQ);mG.prototype.getApiPaths=function(){return wX};
mG.prototype.getExtension=function(F){return _.n(F,DXO)};
mG.prototype.JSC$13096_buildRequest=function(F,q){q.loadingStrategy&&L5$(F,q.loadingStrategy)};var $0=function(){};
_.M($0,xQ);$0.prototype.getApiPaths=function(){return wX};
$0.prototype.getExtension=function(F){return _.n(F,_.Dz)};
$0.prototype.JSC$13096_buildRequest=function(F,q){q.panelLoadingStrategy&&L5$(F,q.panelLoadingStrategy)};var bU=function(){};
_.M(bU,xQ);bU.prototype.getApiPaths=function(){return wX};
bU.prototype.getExtension=function(F){return _.n(F,Wle)};
bU.prototype.JSC$13096_buildRequest=function(F,q){var t,u=(t=q.contentSourcePanelIdentifier)==null?void 0:t.tag;u&&(F.panelId=u);var J;if((J=q.globalConfiguration)==null?0:J.params){var g;F.params=(g=q.globalConfiguration)==null?void 0:g.params}};var y1=function(){};
_.M(y1,xQ);y1.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
y1.prototype.getExtension=function(F){return _.n(F,Oux)};
y1.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var Cf=function(){};
_.M(Cf,xQ);Cf.prototype.getApiPaths=function(){return RrE};
Cf.prototype.getExtension=function(F){return _.n(F,A1w)};
Cf.prototype.JSC$13096_buildRequest=function(F,q){q.externalChannelId&&(F.externalChannelId=q.externalChannelId);q.superChatAction&&(F.superChatAction=q.superChatAction);q.superStickersAction&&(F.superStickersAction=q.superStickersAction)};var dA=function(){};
_.M(dA,xQ);dA.prototype.getApiPaths=function(){return eD1};
dA.prototype.getExtension=function(F){return _.n(F,nAJ)||_.n(F,ayy)};
dA.prototype.JSC$13096_buildRequest=function(F,q){q.videoIds?F.videoIds=q.videoIds:q.videoId&&(F.videoIds=[q.videoId]);q.playlistId&&(F.playlistId=q.playlistId);q.params&&(F.params=q.params);F.excludeWatchLater=!1};var V1=function(){};
_.M(V1,xQ);V1.prototype.getApiPaths=function(){return tef};
V1.prototype.getExtension=function(F){return _.n(F,_.sX)};
V1.prototype.JSC$13096_buildRequest=function(F,q,t){t.create_playlist_title?F.title=t.create_playlist_title:q.title&&(F.title=q.title);if(t.create_playlist_privacy_status&&typeof t.create_playlist_privacy_status==="number"){a:{var u=t.create_playlist_privacy_status;if(u!==0){if(u===1){u="PUBLIC";break a}if(u===2){u="UNLISTED";break a}}u="PRIVATE"}F.privacyStatus=u}else q.privacyStatus&&(F.privacyStatus=q.privacyStatus);t.create_playlist_description&&(F.description=t.create_playlist_description);q.videoIds&&
(F.videoIds=q.videoIds);q.params&&(F.params=q.params);q.sourcePlaylistId&&(F.sourcePlaylistId=q.sourcePlaylistId)};var Uz=function(){};
_.M(Uz,xQ);Uz.prototype.getApiPaths=function(){return spC};
Uz.prototype.getExtension=function(F){return _.n(F,Ahz)};
Uz.prototype.JSC$13096_buildRequest=function(F,q){F.playlistId=q.playlistId};var Sw=function(){};
_.M(Sw,xQ);Sw.prototype.getApiPaths=function(){return oTz};
Sw.prototype.getExtension=function(F){return _.n(F,Yqz)};
Sw.prototype.JSC$13096_buildRequest=function(F,q){q.playlistId&&(F.playlistId=q.playlistId);q.params&&(F.params=q.params)};var hS=function(){};
_.M(hS,xQ);hS.prototype.getApiPaths=function(){return d$r};
hS.prototype.getExtension=function(F){return _.n(F,_.cX)||void 0};
hS.prototype.JSC$13096_buildRequest=function(F,q){q.actions&&(F.actions=q.actions);q.params&&(F.params=q.params);q.playlistId&&(F.playlistId=q.playlistId)};var Kf=function(){};
_.M(Kf,xQ);_.l=Kf.prototype;_.l.getApiPaths=function(){return U$C};
_.l.getExtension=function(F){return _.n(F,_.Px)};
_.l.JSC$13096_buildRequest=function(F,q){q.videoId&&(F.playerRequest={videoId:q.videoId},q.playerParams&&(F.playerRequest.params=q.playerParams),q.racyCheckOk&&(F.playerRequest.racyCheckOk=!!q.racyCheckOk),q.contentCheckOk&&(F.playerRequest.contentCheckOk=!!q.contentCheckOk));q.params&&(F.params=q.params);q.inputType&&(F.inputType=q.inputType);F.disablePlayerResponse=!0};
_.l.getRequestConfig=function(F){var q;(F=this.JSC$13103_getStoreKey(F))&&(q={storeStrategy:{storeKey:F}});_.E("web_log_reels_ticks")&&(q=q||{},q.requestTick="r_wrs",q.responseTick="r_wrr");return q};
_.l.JSC$13103_getStoreKey=function(F){F=this.getExtension(F);if(_.E("shorts_controller_retrieve_seedless_sequence_v2")){if((F==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.cW("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.E("web_shorts_prefetch_service_enabled")&&F!=null&&F.videoId){var q={videoId:F.videoId};F.params&&(q.params=F.params);return _.cW("reel_item_watch",q)}};var Bu=function(){};
_.M(Bu,xQ);_.l=Bu.prototype;_.l.getApiPaths=function(){return S91};
_.l.getExtension=function(F){return _.n(F,_.Px)};
_.l.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;F.sequenceParams=q.sequenceParams;var u;((u=t)==null?0:u.contentPlaybackContext)&&_.E("web_shorts_prefetch_service_enabled")&&(F.playbackContext={contentPlaybackContext:t.contentPlaybackContext})};
_.l.JSC$13103_getStoreKey=function(F){if(_.E("web_enable_delay_shorts_sequence_call")||_.E("shorts_controller_retrieve_seedless_sequence_v2"))if(F=this.getExtension(F),F==null?0:F.sequenceParams)return _.cW("reel_watch_sequence",{sequenceParams:F.sequenceParams})};
_.l.getRequestConfig=function(F){F=this.JSC$13103_getStoreKey(F);var q;F&&(q={storeStrategy:{storeKey:F}});_.E("reel_watch_sequence_request_log_ticks")&&(q=q||{},q.requestTick="r_wsrs",q.responseTick="r_wsrr",q.processorTick="r_wsrp");return q};
var Lf=function(){};
_.M(Lf,xQ);Lf.prototype.getApiPaths=function(){return S91};
Lf.prototype.getExtension=function(F){return _.n(F,_.Si)};
Lf.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.token&&(F.continuation=q.token);var u;((u=t)==null?0:u.contentPlaybackContext)&&_.E("web_shorts_prefetch_service_enabled")&&(F.playbackContext={contentPlaybackContext:t.contentPlaybackContext})};
Lf.prototype.getRequestConfig=function(F){F=this.JSC$13103_getStoreKey(F);var q;F&&(q={storeStrategy:{storeKey:F}});_.E("reel_watch_sequence_request_log_ticks")&&(q=q||{},q.requestTick="r_wsrs",q.responseTick="r_wsrr",q.processorTick="r_wsrp");return q};var ff=function(){};
_.M(ff,xQ);ff.prototype.getApiPaths=function(){return Y9r};
ff.prototype.getExtension=function(F){return _.n(F,_.pbd)};
ff.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.flagAction&&(F.action=q.flagAction);q.flagRequestType&&(F.flagRequestType=q.flagRequestType);q.additionalDetailCheckboxChecked&&(F.additionalDetailCheckboxChecked=q.additionalDetailCheckboxChecked);q.legalCheckboxChecked&&(F.legalCheckboxChecked=q.legalCheckboxChecked);q={};t.flag_issue_type!==void 0&&(q.issue=t.flag_issue_type);t.flag_affiliation!==void 0&&(q.affiliation=t.flag_affiliation);t.flag_full_name&&(q.fullName=t.flag_full_name);
Object.keys(q).length&&(F.legalReportDetails=q);if(t.flag_description||t.text)F.userComments=t.flag_description||t.text;q={};t.minutes!==void 0&&t.seconds!==void 0&&(q.minutes=t.minutes,q.seconds=t.seconds);t.vss_id&&(q.vssId=t.vss_id);Object.keys(q).length&&(F.videoReportDetails=q);q={};t.video_ids&&(q.videoIds=t.video_ids);t.impersonated_channel_url&&(q.impersonatedChannelUrl=t.impersonated_channel_url);Object.keys(q).length&&(F.channelAbuseReportDetails=q)};
_.JJ.Object.defineProperties(ff.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aT=function(){};
_.M(aT,xQ);aT.prototype.getApiPaths=function(){return rFe};
aT.prototype.getExtension=function(F){return _.n(F,Hgf)};
aT.prototype.JSC$13096_buildRequest=function(F,q){q.blockedForKidsContent&&(F.blockedForKidsContent=q.blockedForKidsContent)};var jw=function(){};
_.M(jw,xQ);jw.prototype.getApiPaths=function(){return B8n};
jw.prototype.getExtension=function(F){return _.n(F,fyW)};
jw.prototype.JSC$13096_buildRequest=function(F,q,t){F.params=q.params;t.impersonated_channel_url&&(F.impersonatedChannelUrl=t.impersonated_channel_url)};var cu=function(){};
_.M(cu,xQ);cu.prototype.getApiPaths=function(){return AFf};
cu.prototype.getExtension=function(F){return _.n(F,_.mgL)};
cu.prototype.JSC$13096_buildRequest=function(F,q){q.items&&(F.items=q.items);q.kidGaiaId&&(F.kidGaiaId=q.kidGaiaId)};var FB=function(){};
_.M(FB,xQ);FB.prototype.getApiPaths=function(){return Z_j};
FB.prototype.getExtension=function(F){return _.n(F,_.EAj)};
FB.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params);q.targetId&&(F.targetId=q.targetId)};var qW=function(){};
_.M(qW,xQ);qW.prototype.getApiPaths=function(){return jpE};
qW.prototype.getExtension=function(F){return _.n(F,bnO)};
qW.prototype.JSC$13096_buildRequest=function(F,q){q.externalVideoId&&(F.externalVideoId=q.externalVideoId);q.query&&(F.query=q.query);q.sourceTimelines&&(F.sourceTimelines=q.sourceTimelines)};var t5=function(){};
_.M(t5,xQ);t5.prototype.getApiPaths=function(){return cFf};
t5.prototype.getExtension=function(F){return _.n(F,_.Si)||void 0};
t5.prototype.JSC$13096_buildRequest=function(F,q){q.token&&(F.continuation=q.token)};
_.Krv=function(){};
_.M(_.Krv,xQ);_.l=_.Krv.prototype;_.l.getApiPaths=function(){return cFf};
_.l.getExtension=function(F){return _.n(F,_.Dn)||void 0};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$13103_getStoreKey=function(F,q){q=q===void 0?{}:q;if(!q.disableCache&&(F=this.getExtension(F))&&F.query)return q={query:F.query},F.params&&(q.params=F.params),_.cW("search",q)};
_.l.JSC$13096_buildRequest=function(F,q,t){q.query&&(F.query=q.query);q.params&&(F.params=q.params);if(!_.E("web_forward_suggest_stats_killswitch")){var u=_.n(q,tGe);u&&(F.suggestStats=u)}var J;!_.E("kevlar_searchbox_stats_killswitch")&&((J=t.tempData)==null?0:J.gs_l)&&!_.n(q,tGe)&&(F.webSearchboxStatsUrl="/search?oq="+(t.tempData.oq||"")+"&gs_l="+t.tempData.gs_l);var g;if((g=t.tempData)==null?0:g.entityMid)q=F.suggestionSearchParams||{},q.entityMid=t.tempData.entityMid,F.suggestionSearchParams=q;
if(_.E("enable_desktop_vdcbg_components")||_.E("enable_inline_muted_playback_on_web_search"))t=_.TV().getFlag(186),F.inlineSettingStatus=t?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.l.getRequestConfig=function(F,q){q=q===void 0?{}:q;F=this.JSC$13103_getStoreKey(F,q);var t;F&&(t={storeStrategy:{storeKey:F}});_.E("web_log_search_ticks_ks")||(t=t||{},t.requestTick="sr_s",t.responseTick="sr_r");return t};var u$=function(){};
_.M(u$,xQ);u$.prototype.getApiPaths=function(){return T8L};
u$.prototype.getExtension=function(F){return _.n(F,SXv)};
u$.prototype.JSC$13096_buildRequest=function(F,q){q.serializedGetSharingProviderDataParams&&(F.serializedGetSharingProviderDataParams=q.serializedGetSharingProviderDataParams)};var J5=function(){};
_.M(J5,xQ);J5.prototype.getApiPaths=function(){return GKe};
J5.prototype.getExtension=function(F){return _.n(F,sOd)};
J5.prototype.JSC$13096_buildRequest=function(F,q){q.endpoint&&(F.endpoint=q.endpoint);q.action&&(F.action=q.action)};var sZ=function(){};
_.M(sZ,xQ);sZ.prototype.getApiPaths=function(){return gTj};
sZ.prototype.getExtension=function(F){return _.n(F,vAz)};
sZ.prototype.JSC$13096_buildRequest=function(F,q){F.videoId=q.videoId;q.scheduledRedirectMetadataSourceVideoId&&(F.scheduledRedirectMetadata={sourceVideoId:q.scheduledRedirectMetadataSourceVideoId})};var gk=function(){};
_.M(gk,xQ);gk.prototype.getApiPaths=function(){return uOO};
gk.prototype.getExtension=function(F){return _.n(F,_.v9O)};
gk.prototype.JSC$13096_buildRequest=function(F,q){F.params=q.params;F.correctionText=q.correctionText};var l$=function(){};
_.M(l$,xQ);l$.prototype.getApiPaths=function(){return Kko};
l$.prototype.getExtension=function(F){return _.n(F,_.ykx)};
l$.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params);F.searchQuery=q.searchQuery;F.languageCode=q.languageCode;F.kind=q.kind;F.name=q.name;F.externalVideoId=q.externalVideoId};var XB=function(){};
_.M(XB,xQ);XB.prototype.getApiPaths=function(){return kuJ};
XB.prototype.getExtension=function(F){return _.n(F,Bve)};
XB.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.params=q.params)};var Y3=function(F){this.JSC$18133_storeWithEntities=F};
_.M(Y3,xQ);Y3.prototype.getApiPaths=function(){return LeC};
Y3.prototype.getExtension=function(F){return _.n(F,fsv)||_.n(F,jwz)};
Y3.prototype.JSC$13096_buildRequest=function(F,q,t){t.client_data&&(F.clientData=t.client_data);if(q.commerceActionConfig){var u=q.commerceActionConfig;q=u.actionId;u=u.commerceActionParams;q&&(F.actionId=q);u&&(F.commerceActionParams=u)}else{var J=q.actionId,g=q.commerceActionParams;t=q.entityKeys;J&&(F.actionId=J);g&&(F.commerceActionParams=g);var Y;q=(u=this.JSC$18133_storeWithEntities)==null?void 0:(Y=u.getState())==null?void 0:Y.entities;if(t&&q){u=[];Y=_.X(t);for(t=Y.next();!t.done;t=Y.next())if(J=
t.value,t=_.ez(J).entityType,J=_.iC(q,t,J))g={},u.push((g[t]=J,g));F.entityMutationPayloads=u}}};
Y3.prototype.getRequestConfig=function(F){var q,t=(q=_.n(F,fsv))==null?void 0:q.requestSequenceType;if(t&&F.clickTrackingParams&&t!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:F.clickTrackingParams,sequenceType:t}}};
Y3[Yc]=[sL];var px=function(){};
_.M(px,xQ);px.prototype.getApiPaths=function(){return EGj};
px.prototype.getExtension=function(F){return _.n(F,_.Ntd)};
px.prototype.JSC$13096_buildRequest=function(F,q){q.feedbackData&&(F.feedbackData=q.feedbackData);q.params&&(F.itemParams=q.params)};
_.JJ.Object.defineProperties(px.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Q4=function(){};
_.M(Q4,xQ);Q4.prototype.getApiPaths=function(){return zrL};
Q4.prototype.getExtension=function(F){return _.n(F,w8j)};
Q4.prototype.JSC$13096_buildRequest=function(F,q,t){t.payments_payload&&(F.paymentsPayload=t.payments_payload);t.offer_params&&(F.offerParams=t.offer_params);q.transactionParams&&(F.transactionParams=q.transactionParams)};var eI=function(){};
_.M(eI,xQ);eI.prototype.getApiPaths=function(){return oGv};
eI.prototype.getExtension=function(F){return _.n(F,_.i7j)};
eI.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.buybucketParams&&(F.buybucketData={params:q.buybucketParams},q.stickerParams?F.buybucketData.stickerParams=q.stickerParams:(t.rich_chat_message?F.buybucketData.richChatMessage=t.rich_chat_message:t.chat_message_text&&(F.buybucketData.chatMessageText=t.chat_message_text),t.purchase_price_micros&&(F.buybucketData.purchasePriceMicros=t.purchase_price_micros.toString())));q.donationAmountMicros&&(F.tipAmountMicros=q.donationAmountMicros,
q.tipParams&&(F.tipParams=q.tipParams));q.offerParams&&(F.offerParams=q.offerParams);q.productData&&(F.productData=q.productData);q.transactionParams&&(F.transactionParams=q.transactionParams)};var ZK=function(){};
_.M(ZK,xQ);ZK.prototype.getApiPaths=function(){return nGr};
ZK.prototype.getExtension=function(F){return _.n(F,zsw)};
ZK.prototype.JSC$13096_buildRequest=function(F,q){q.updateFopParams&&(F.updateFopParams=q.updateFopParams)};var R7=function(){};
_.M(R7,xQ);R7.prototype.getApiPaths=function(){return M2r};
R7.prototype.getExtension=function(F){return _.n(F,_.qR)};
R7.prototype.JSC$13096_buildRequest=function(F,q){q.couponCode&&(F.couponCode=q.couponCode);q.params&&(F.itemParams=q.params)};var rk=function(){};
_.M(rk,xQ);rk.prototype.getApiPaths=function(){return Tuw};
rk.prototype.getExtension=function(F){return _.n(F,_.asf)};
rk.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;q.params&&(F.params=q.params);t.ctk&&(F.clientToken=t.ctk)};var NW=function(F){this.JSC$18168_storeWithEntities=F};
_.M(NW,xQ);NW.prototype.getApiPaths=function(){return Guf};
NW.prototype.getExtension=function(F){return _.n(F,_.YA)};
NW.prototype.JSC$13096_buildRequest=function(F,q,t){t.purchase_price_micros&&(F.productData={pdgData:{purchasePriceMicros:t.purchase_price_micros.toString()}},t.rich_chat_message&&(F.productData.pdgData.richChatMessage=t.rich_chat_message),t.currency_code&&(F.productData.pdgData.currencyCode=t.currency_code));q.transactionParams&&(F.transactionParams=q.transactionParams);q.clientLocationContext&&(F.clientLocationContext=q.clientLocationContext);t.payments_payload&&(F.paymentsPayload=t.payments_payload);
t.funds_guarantee_callback_client_data&&(F.fundsGuaranteeCallbackClientData=t.funds_guarantee_callback_client_data);var u,J;t=(u=this.JSC$18168_storeWithEntities)==null?void 0:(J=u.getState())==null?void 0:J.entities;if(q.entityKeys&&t){u=[];q=_.X(q.entityKeys);for(J=q.next();!J.done;J=q.next()){var g=J.value;J=_.ez(g).entityType;if(g=_.iC(t,J,g)){var Y={};u.push((Y[J]=g,Y))}}F.entityMutationPayloads=u}};
NW[Yc]=[sL];var wk=function(){};
_.M(wk,xQ);wk.prototype.getApiPaths=function(){return D7n};
wk.prototype.getExtension=function(F){return _.n(F,kkv)};
wk.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;t.backend_analytics&&(F.serializedBackendAnalyticsEvent=t.backend_analytics);q.offerParams&&(F.offerParams=q.offerParams)};var i$=function(){};
_.M(i$,xQ);i$.prototype.getApiPaths=function(){return M2r};
i$.prototype.getExtension=function(F){return _.n(F,AsW)};
i$.prototype.JSC$13096_buildRequest=function(F,q){q.params&&(F.itemParams=q.params)};var k3=function(){};
_.M(k3,xQ);k3.prototype.getApiPaths=function(){return Wmr};
k3.prototype.getExtension=function(F){return _.n(F,_.uX1)};
k3.prototype.JSC$13096_buildRequest=function(F,q,t){t.resume_time_ms&&(F.resumeTimeMs=t.resume_time_ms);q.pauseParams&&(F.pauseParams=q.pauseParams)};var EZ=function(){};
_.M(EZ,xQ);EZ.prototype.getApiPaths=function(){return ONC};
EZ.prototype.getExtension=function(F){return _.n(F,_.Epd)};
EZ.prototype.JSC$13096_buildRequest=function(F,q,t){t=t===void 0?{}:t;t.c&&(F.redeemCode=t.c);t.rd&&(F.riskData=t.rd);t.ctk&&(F.clientToken=t.ctk)};var zc=function(){};
_.M(zc,xQ);zc.prototype.getApiPaths=function(){return PjC};
zc.prototype.getExtension=function(F){return _.n(F,_.Jtz)};
zc.prototype.JSC$13096_buildRequest=function(F,q){q.resumeParams&&(F.resumeParams=q.resumeParams)};var o7=function(F,q){this.clientName=F;this.defaultExpirationDelayMs=q};
o7.prototype.put=function(F,q){var t=this,u;return _.p(function(J){u=Object.assign({},q.data);u.key=F;u.clientName=t.clientName;u.expireTimestampMs===void 0&&(u.expireTimestampMs=(Math.round((0,_.gB)())+t.defaultExpirationDelayMs).toString());return J.return(t.putInternal(F,u))})};
o7[Yc]=[jE,cos];var Bx5=function(){o7.apply(this,arguments);this.JSC$18198_responseStore=new Map};
_.M(Bx5,o7);_.l=Bx5.prototype;_.l.get=function(F){var q=this;return _.p(function(t){return t.return(He(q,F))})};
_.l.putInternal=function(F,q){var t=this,u,J,g;return _.p(function(Y){u=t.defaultExpirationDelayMs;q.expireTimestampMs&&(u=Number(q.expireTimestampMs)-Math.round((0,_.gB)()),J=_.YE("mweb_override_response_store_expiration_ms"),J>0&&J<u&&(u=J));g=setTimeout(function(){t.remove(F)},u);
t.JSC$18198_responseStore.set(F,{entryData:q,timer:g});_.WA(Y)})};
_.l.remove=function(F){var q=this;return _.p(function(t){LrQ(q,F);_.WA(t)})};
_.l.removeAll=function(){var F=this;return _.p(function(q){F.JSC$18198_responseStore.forEach(function(t){clearTimeout(t.timer)});
F.JSC$18198_responseStore.clear();_.WA(q)})};
_.l.has=function(F){return!!this.JSC$18198_responseStore.get(F)};
_.l.getKeys=function(){return this.JSC$18198_responseStore.keys()};
var He=function(F,q){if(F=F.JSC$18198_responseStore.get(q))return new _.Ip(F.entryData)},LrQ=function(F,q){var t=F.JSC$18198_responseStore.get(q);
t&&(clearTimeout(t.timer),F.JSC$18198_responseStore.delete(q))};var fiu;var c6y=function(F,q,t){o7.call(this,F,q);this.token=t};
_.M(c6y,o7);_.l=c6y.prototype;_.l.get=function(F){var q=this,t,u;return _.p(function(J){return J.nextAddress==1?J.yield(jUW(q.token),2):J.nextAddress!=3?(t=J.yieldResult,J.yield(t.get("ResponseStore",[F,q.clientName]),3)):(u=J.yieldResult)?J.return(new _.Ip(u)):J.return(void 0)})};
_.l.putInternal=function(F,q){var t=this,u;return _.p(function(J){if(J.nextAddress==1)return J.yield(jUW(t.token),2);u=J.yieldResult;return J.yield(u.put("ResponseStore",q),0)})};
_.l.remove=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(jUW(q.token),2);t=u.yieldResult;return u.return(t.delete("ResponseStore",[F,q.clientName]))})};
_.l.removeAll=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return t.yield(jUW(F.token),2);q=t.yieldResult;return t.yield(nFr(q,IDBKeyRange.only(F.clientName)),0)})};
_.l.has=function(){throw Error("Yi");};_.nx=new _.pg("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var fwT=function(F){var q;this.stateTagsData=(q=F.responseContext)==null?void 0:q.stateTags},awv=function(F){var q;
return((q=F.stateTagsData)==null?void 0:q.stateTagsModified)||[]};var jjw;jjw=function(F){this.JSC$18211_responseStore=F};
_.UL=function(F,q,t){if(!_.E("state_tags_killswitch")){var u=new fwT(q);if(awv(u).length>0){var J=F.JSC$18211_responseStore.getKeys();J=_.X(J);for(var g=J.next();!g.done;g=J.next()){g=g.value;var Y=He(F.JSC$18211_responseStore,g);if(Y){var Q=_.uZ(Y);a:{var e=void 0;Y=awv(u);Q=((e=(new fwT(Q)).stateTagsData)==null?void 0:e.relevantStateTags)||[];e=_.X(Q);for(Q=e.next();!Q.done;Q=e.next())if(Q=Q.value,Q.stateTag!=null&&Y.includes(Q.stateTag)&&Q.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){Y=
!0;break a}Y=!1}Y&&LrQ(F.JSC$18211_responseStore,g)}}}}var r;u=(r=q.responseContext)==null?void 0:r.maxAgeSeconds;t&&u&&Number(u)>0&&(q=Zz(q,u),F.JSC$18211_responseStore.put(t,new _.Ip(q)))};
jjw.prototype.handleResponse=function(F,q){if(!q)throw Error("Zi");var t,u;q=(t=q.config)==null?void 0:(u=t.storeStrategy)==null?void 0:u.storeKey;_.UL(this,F,q)};
jjw[Yc]=[_.ve];_.lpP=new _.pg("STORE_RESPONSE_PROCESSOR_TOKEN");var cEJ=function(F){this.JSC$18214_responseStore=F};
cEJ.prototype.handleResponse=function(F,q){if(q.input.match(_.Jn(S91))){var t;if(F==null?0:(t=F.entries)==null?0:t.length)for(F=_.X(F.entries),q=F.next();!q.done;q=F.next()){t=q.value.command;var u=void 0;q=(u=_.n(t,_.Px))==null?void 0:u.unserializedPrefetchData;if(!t||!q)break;u=(new Kf).JSC$13103_getStoreKey(t);var J=_.n(q,Jhx),g=void 0,Y=void 0,Q=void 0,e=_.YE("web_shorts_prefetch_service_ttl_seconds")>0?_.YE("web_shorts_prefetch_service_ttl_seconds"):Number((Q=(g=J)==null?void 0:(Y=g.responseContext)==
null?void 0:Y.maxAgeSeconds)!=null?Q:3600);u&&e>0&&(J=Zz(J,e),this.JSC$18214_responseStore.put(u,new _.Ip(J)));t=(new mS).JSC$13103_getStoreKey(t);q=_.n(q,dXd);g=J=u=void 0;Y=_.YE("web_shorts_prefetch_service_ttl_seconds")>0?_.YE("web_shorts_prefetch_service_ttl_seconds"):Number((g=(u=q)==null?void 0:(J=u.responseContext)==null?void 0:J.maxAgeSeconds)!=null?g:3600);t&&Y>0&&(q=Zz(q,Y),this.JSC$18214_responseStore.put(t,new _.Ip(q)))}}};
cEJ[Yc]=[_.ve];var Fvw=function(F,q){this.innertubeTransportService=F;this.JSC$18217_commandHandler=q};
Fvw.prototype.submitForm=function(F,q,t,u,J){var g=this,Y,Q,e,r,N,w,k;return _.p(function(z){if(z.nextAddress==1)return Y={submitId:F,formData:q,submitBehavior:t,params:u},Q=_.Jn(JpC),z.yield(_.uW(g.innertubeTransportService,Y,Q,J),2);e=z.yieldResult;if(!e)return z.return(Promise.reject(new _.D0("Submit API returned an undefined response. Submit ID: "+F)));r=e;(k=(N=r)==null?void 0:(w=N.submitResult)==null?void 0:w.command)&&g.JSC$18217_commandHandler.resolveCommand(k);return z.return(r)})};
Fvw[Yc]=[_.da,_.gN];var MW=function(){this.scheduler=_.Gx()},qCJ;
MW.prototype.pause=function(){throw Error("$i");};
MW.prototype.resume=function(){throw Error("$i");};
MW.prototype.queue=function(F){var q=this,t=_.ji(),u=_.W2(this.scheduler,function(){try{var J;if(_.oc.instance)var g=_.oc.instance;else{var Y=new _.D0("Error: Unexpected uninitialized CommandHandler.");_.mH(Y);g=void 0}(J=g)==null||J.resolveCommand(F.command);t.resolve()}catch(Q){t.reject(Q)}});
t.promise.thenCatch(function(J){J instanceof _.dI&&q.scheduler.cancelJob(u)});
return t.promise};
MW.prototype.queueAll=function(F){var q=new Map;F=_.X(F);for(var t=F.next();!t.done;t=F.next())t=t.value,q.set(t.id,this.queue(t));return q};var u3w=function(F,q){var t=this;this.taskModel=F;this.onTaskCancelledCallback=q;this.resolver=_.ji();F=F.proto.prefetchConfig;if(!F)throw Error("aj");if(!F.prefetchAction)throw Error("bj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(u){u instanceof _.dI&&(t5D(t,t.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),t.onTaskCancelledCallback(t.taskModel.id,t.jobId),t.tick("pcc"));
throw u;});
this.timerName=this.taskModel.id;_.bN(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
u3w.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var t5D=function(F,q){_.mj({prefetchInfo:{cancellationReason:q}},F.timerName)};
u3w.prototype.tick=function(F){_.y0(F,void 0,this.timerName)};var Gc=function(){var F=this;this.scheduler=_.Gx();this.maxInflightTasks=_.YE("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.YE("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new aPE;this.onTaskCancelled=function(q,t){t&&F.scheduler.cancelJob(t);J9v(F,q);Tc(F,3)}},syJ=function(){Gc.instance||(Gc.instance=new Gc);
return Gc.instance};
Gc.prototype.pause=function(){this.prefetchCoordinatorState=0};
Gc.prototype.resume=function(){Tc(this,0)};
Gc.prototype.queue=function(F){F=g7w(this,F);Tc(this,1);return F};
Gc.prototype.queueAll=function(F){var q=new Map;F=_.X(F);for(var t=F.next();!t.done;t=F.next())t=t.value,q.set(t.id,g7w(this,t));Tc(this,1);return q};
var g7w=function(F,q){var t=F.allPrefetchTasks.get(q.id);if(t)return t.cancellablePromise;try{var u=new u3w(q,F.onTaskCancelled)}catch(g){return _.mW(g)}t=u;t.tick("pcq");var J={prefetchInfo:{taskId:t.taskModel.id,isPrefetch:!0,fetchAction:t.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:t.taskModel.command.clickTrackingParams}};t.taskModel.csn&&(J.clientScreenNonce=t.taskModel.csn);_.mj(J,t.timerName);F.allPrefetchTasks.set(q.id,u);F.drainingHeap.insert(-u.getPriority(),u);return u.cancellablePromise},
Tc=function(F,q){F.prefetchCoordinatorState===q&&(F.prefetchCoordinatorState=2,lQ3(F))},lQ3=function(F){for(var q={};F.prefetchCoordinatorState!==0;q={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(F.inflightPrefetchTasks.size>=F.maxInflightTasks){F.prefetchCoordinatorState=3;break}q.prefetchTask$jscomp$1=F.drainingHeap.remove();if(!q.prefetchTask$jscomp$1){F.prefetchCoordinatorState=1;break}q.taskId$jscomp$3=q.prefetchTask$jscomp$1.taskModel.id;if(F.allPrefetchTasks.has(q.taskId$jscomp$3)){var t=-1;F.coordinatorTimeoutMs>0&&(t=_.W2(F.scheduler,function(u){return function(){DK(F,u.taskId$jscomp$3,Error("cj"))}}(q),F.coordinatorTimeoutMs));
F.inflightPrefetchTasks.set(q.taskId$jscomp$3,t);if(!F.JSC$18236_commandHandler){if(!_.oc.instance){DK(F,q.taskId$jscomp$3,Error("dj"));continue}F.JSC$18236_commandHandler=_.oc.instance}a:switch(q.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":t=1;break a;default:t=0}q.prefetchTask$jscomp$1.jobId=F.scheduler.addJob(function(u){return function(){u.prefetchTask$jscomp$1.tick("pcr");try{F.JSC$18236_commandHandler.resolveCommand(u.prefetchTask$jscomp$1.taskModel.command)||
DK(F,u.taskId$jscomp$3,Error("ej"))}catch(J){DK(F,u.taskId$jscomp$3,J)}}}(q),t,0)}}},XsD=function(F,q){(q=J9v(F,q))!=null&&(q.resolver.resolve(),q.tick("pce"));
Tc(F,3)},DK=function(F,q,t){(q=J9v(F,q,t))!=null&&(q.resolver.reject(t),q.tick("pcc"),t5D(q,"CANCELLATION_REASON_ERROR"),Math.random()<=_.YE("prefetch_coordinator_error_logging_sampling_rate")&&(t=new _.D0("Prefetch Command failed.",q.taskModel.id,t.message),_.mH(t)));
Tc(F,3)},J9v=function(F,q,t){var u=F.allPrefetchTasks.get(q);
u?((t=F.inflightPrefetchTasks.get(q))&&t!==-1&&F.scheduler.cancelJob(t),F.inflightPrefetchTasks.delete(q),F.allPrefetchTasks.delete(q)):_.bz(new _.D0("Unexpected missing prefetch task when deleting task.",q,t==null?void 0:t.message));return u};var YCC=function(F,q,t,u,J){this.id=F;this.triggerOn=q;this.cancelOn=t;this.command=u;this.proto=J};
_.JJ.Object.defineProperties(YCC.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var psJ=function(){this.JSC$18241_prefetchCoordinator=syJ();qCJ||(qCJ=new MW);this.defaultCoordinator=qCJ},Qy5;
psJ.getInstance=function(){Qy5||(Qy5=new psJ);return Qy5};
psJ.prototype.get=function(F){switch(F){case 0:return this.JSC$18241_prefetchCoordinator;default:return this.defaultCoordinator}};var Wq=function(){this.coordinatorSupplier=psJ.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},R9h=function(F){var q=_.yb()||void 0,t=Object.keys(e9h)[0];
if(t){var u=F.taskIdByTriggerId.get(t);if(u!=null){F.taskIdByTriggerId.delete(t);t=[];u=_.X(u);for(var J=u.next();!J.done;J=u.next())if(J=F.tasks.get(J.value))q!=="UNDEFINED_CSN"&&(J.csn=q),t.push(J);t=tby(t);q=[];t=_.X(t);for(u=t.next();!u.done;u=t.next()){J=_.X(u.value);u=J.next().value;J=J.next().value;u=F.coordinatorSupplier.get(u).queueAll(J);u=_.X(u);var g=u.next();for(J={};!g.done;J={taskId$jscomp$9:void 0},g=u.next()){var Y=_.X(g.value);g=Y.next().value;Y=Y.next().value;J.taskId$jscomp$9=
g;g=Y;q.push(J.taskId$jscomp$9);F.queuedPromisesByTask.set(J.taskId$jscomp$9,_.Hr(g,function(Q){return function(){Zhh(F,Q.taskId$jscomp$9)}}(J)))}}}}else _.bz(new _.D0("Unexpected malformed TriggerEvent."))};
Wq.prototype.trigger=function(F,q){var t=this,u=this.tasks.get(F);if(!u||this.queuedPromisesByTask.has(F))return!1;r9v(this,F,u.triggerOn);q!=="UNDEFINED_CSN"&&(u.csn=q);q=this.coordinatorSupplier.get(u.taskType).queue(u);this.queuedPromisesByTask.set(F,_.Hr(q,function(){Zhh(t,F)}));
return!0};
Wq.prototype.cancel=function(F){var q=this.queuedPromisesByTask.get(F);if(q)q.cancel();else return Zhh(this,F)};
var Zhh=function(F,q){F.queuedPromisesByTask.delete(q);var t=F.tasks.get(q);if(!t)return!1;F.tasks.delete(q);r9v(F,q,t.triggerOn);(t=qQC(t.cancelOn))&&(F=F.taskIdByCancelId.get(t))&&F.delete(q);return!0},r9v=function(F,q,t){(t=Object.keys(t)[0])&&(F=F.taskIdByTriggerId.get(t))&&F.delete(q)};var e9h={taskRegistered:{}},OZ=function(){Wq.instance||(Wq.instance=new Wq);this.JSC$18250_taskManager=Wq.instance};
_.M(OZ,l9);
OZ.prototype.resolveCommand=function(F){var q=this,t,u;return _.p(function(J){t=_.n(F,g9E);if((u=t)==null||!u.tasks){var g=new _.D0("RegisterTasksCommand is missing tasks.");_.mH(g);return J.return()}g=q.JSC$18250_taskManager;for(var Y=_.X(t.tasks),Q=Y.next();!Q.done;Q=Y.next())if(Q=Q.value,Q=Q.id&&Q.triggerOn&&Q.cancelOn&&Q.command?new YCC(Q.id,Q.triggerOn,Q.cancelOn,Q.command,Q):void 0,Q){var e=Object.keys(Q.triggerOn)[0];if(e){var r=qQC(Q.cancelOn);r?(g.tasks.set(Q.id,Q),g.taskIdByTriggerId.has(e)||g.taskIdByTriggerId.set(e,
new Set),g.taskIdByTriggerId.get(e).add(Q.id),g.taskIdByCancelId.has(r)||g.taskIdByCancelId.set(r,new Set),g.taskIdByCancelId.get(r).add(Q.id)):_.bz(new _.D0("Unexpected malformed cancelOn field."))}else _.bz(new _.D0("Unexpected malformed triggerOn field."))}else _.bz(new _.D0("Unexpected malformed Task proto."));R9h(q.JSC$18250_taskManager);_.WA(J)})};var NJ9={},ws9=(NJ9.rendered={priority:_.E("web_adaptive_early_init")?8:0,callback:function(){var F={};F.numCpu=navigator.hardwareConcurrency;var q={};q.ramGb=_.uu.navigator.deviceMemory;var t={staticContext:{}};q.ramGb&&ugo(q.ramGb)&&(t.staticContext.memoryTotalKbytes=(q.ramGb*1048576).toString());F.numCpu&&ugo(F.numCpu)&&(t.staticContext.cpuCores=F.numCpu);if(_.E("web_enable_adaptive_appl_signal")){F={};q=_.V0("rses_dpj");var u=_.V0("rsef_dpj");q&&q>0&&u&&u>0&&(q=Math.ceil(u-q),q>0&&(F.loadLatency=
q));F.loadLatency&&ugo(F.loadLatency)&&(t.appL=F.loadLatency.toString())}_.IJ("applicationStarted",t)}},NJ9);var ihy=new _.pg("WINDOW_ON_ERROR"),kv9=new _.pg("ERROR_WEIGHT_MAPS"),E7y=new _.pg("INIT_ERROR");var z93={},o73=(z93.initialized={priority:10,callback:function(F){F.injector.resolve(E7y)()}},z93);var n7v=function(){},M5D=function(){var F=_.S6("meta_logger_impl");
F||(F=new n7v,_.uo("meta_logger_impl",F));return F},TJv=function(){M5D().csiSubscriptionKey=oMq("meta_logging_csi_event",function(F){var q=F.timerName;
if(F=F.timelineData){_.bN(q,{startTime:F.startTime},q);F.infos&&_.mj(F.infos,q);for(var t=_.X(Object.keys(F.ticks)),u=t.next();!u.done;u=t.next())u=u.value,_.y0(u,F.ticks[u],q)}})};
n7v.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&Ts3(this.csiSubscriptionKey)};var Gv5={},DDs=(Gv5.initialized={priority:10,callback:function(){TJv()}},Gv5);var WvJ=function(F,q){this.innertubeClientName=F;this.JSC$18266_prefCookie=q};
WvJ.prototype.record=function(){if(_.E("web_li_record_binary_eval_tick")){var F=_.V0("rsef_dpj");var q=_.V0("rses_dpj");F=F!==void 0&&q!==void 0?Math.round(F-q):void 0;if(F!==void 0&&F>0){q=_.vG(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var t=this.poolSize;if(!(q.valuesSeen>=1E9)){if(q.valuesSample.length<t)q.valuesSample.push(F);else{var u=Math.floor(Math.random()*(q.valuesSeen+1));u<t&&(q.valuesSample[u]=F)}q.valuesSeen+=1}_.A8(this.storagePrefix+"-"+this.innertubeClientName,
q,2592E3);F=q.valuesSample;q=J2M(F);F=F.length<this.poolSize?void 0:q<400?1:q<1700?2:3;F!==void 0&&(this.JSC$18266_prefCookie.set(this.cookiePrefix+this.innertubeClientName,F),this.JSC$18266_prefCookie.save())}}else _.Ig(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18266_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18266_prefCookie.save()};
WvJ[Yc]=[jE,Pp];var OhJ=function(){WvJ.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.M(OhJ,WvJ);var Pww=new _.pg("PAGE_LOAD_TIME_TOKEN");var xDs=function(F){this.signal=F;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;F.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.W2(_.mI,this.disableLoggingAndSendPayload,1E4)};
xDs.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.mI.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),A9v(this))};
var A9v=function(F){var q=_.b7();if(q){var t={webClientComponentsData:{components:Array.from(F.ids,function(u){return{id:u}})}};
F.ids.clear();_.DP().visualElementStateChanged(q,t)}};var v75=kR$({a11y:miw});_.IQQ=zjv(v75)(v75.a11y,{ephemeralActionSelector:function(F){return F.ephemeralAction||null}});var HhC=kR$({continuation:b2E});var mD3=zjv(HhC)(HhC.continuation,{continuationCommandSelector:function(F){return F.continuationCommand}});var $DQ=new _.pg("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Pq=function(F,q){this.JSC$18295_storeWithEntities=F;this.JSC$18295_commandHandler=q;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Pq.prototype.start=function(){this.JSC$18295_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Pq.prototype.observeDownloadingEntities=function(){var F=_.XQu(this.JSC$18295_storeWithEntities.getState().entities).map(function(u){return YXo(u)});
if(F.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var q={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:gXW()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.lC(_.oD("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18295_commandHandler.resolveCommand(q)}this.downloadingEntities=F}else if(this.downloadingEntities.length){var t=l2C(this.JSC$18295_storeWithEntities.getState().entities).map(function(u){return YXo(u)});
this.downloadingEntities.filter(function(u){return t.includes(u)}).length&&(F={openPopupAction:CMu()},this.JSC$18295_commandHandler.resolveCommand(F));
this.downloadingEntities=[]}};
Pq[Yc]=[sL,_.gN];var bhQ;_.x3=function(F,q,t,u,J,g,Y,Q){this.JSC$18298_playerApiPromise=F;this.JSC$18298_commandHandler=q;this.JSC$18298_screenManager=t;this.offlineWebClientEligibility=u;this.JSC$18298_prefStorage=J;this.JSC$18298_actionRouter=g;this.entityTypeMap=Y;this.JSC$18298_persistentStorePromiseAccessor=Q;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
bhQ=function(){var F=_.sV().resolve(_.x3),q;_.p(function(t){if(t.nextAddress==1)return F.downloadFailureListenerBound?t.return():t.yield(F.JSC$18298_playerApiPromise,2);q=t.yieldResult;q.addEventListener("onOfflineOperationFailure",function(u){if(u.failureReason&&u.entityKey&&u.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(u.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var J=_.ez(u.entityKey).entityId;J&&F.JSC$18298_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
J)}else if(_.E("kevlar_woffle")){J=F.JSC$18298_commandHandler;var g=J.resolveCommand;u=u.failureReason;var Y=_.oD("TRANSFER_FAILED",void 0,"Download failed");u==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(Y=_.oD("STORAGE_FULL",void 0,"Storage full"));g.call(J,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.lC(Y),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
F.downloadFailureListenerBound=!0;_.WA(t)})};
_.x3.prototype.deleteVideo=function(F,q){var t=this,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return Y.yield(t.JSC$18298_playerApiPromise,2);u=Y.yieldResult;g={offlineLoggingData:{offlineDeleteReason:(J=q)!=null?J:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return Y.yield(u.queueOfflineAction(F,t.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",g),0)})};
_.x3.prototype.pauseVideoDownload=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(q.JSC$18298_playerApiPromise,2);t=u.yieldResult;t.pauseVideoDownload(F);_.WA(u)})};
_.x3.prototype.resumeVideoDownload=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(q.JSC$18298_playerApiPromise,2);t=u.yieldResult;return u.yield(t.resumeVideoDownload(F),0)})};
_.x3[Yc]=[_.Qg,_.gN,_.LA,$DQ,IW,iv,v5n,HG];var y9h=new _.pg("DOWNLOAD_STATE_STORE_TOKEN");var Cw5=function(F,q){this.JSC$18318_persistentStorePromiseAccessor=F;this.store=q;this.upliftCompletionResolver=new _.i1},UD7=function(){var F=_.sV().resolve(dDv),q;
_.p(function(t){switch(t.nextAddress){case 1:if(F.upliftImplPromise)return t.return(F.upliftImplPromise);_.zg(t,2);F.upliftImplPromise=V53(F);return t.yield(F.upliftImplPromise,4);case 4:F.upliftCompletionResolver.resolve();_.LE(t,3);break;case 2:throw q=_.Gg(t),F.upliftCompletionResolver.reject(q),q;case 3:return t.return(F.upliftImplPromise)}})},V53=function(F){var q,t,u;
return _.p(function(J){switch(J.nextAddress){case 1:return _.yG("LOGGED_IN")?J.yield(F.JSC$18318_persistentStorePromiseAccessor(),2):J.return();case 2:q=J.yieldResult;if(!q)return _.y0("vdeur"),J.return();_.y0("vdeus");_.zg(J,3);return J.yield(SC5(q),5);case 5:t=J.yieldResult;F.store.dispatch(Klo(t));q.observe(function(g){BRA(F.store,g)});
_.LE(J,4);break;case 3:throw u=_.Gg(J),_.y0("vdeur"),u;case 4:_.y0("vdeuc"),_.WA(J)}})},SC5=function(F){var q;
return _.p(function(t){if(t.nextAddress==1)return t.yield(p4o(F),2);q=t.yieldResult;return t.return(q.reduce(function(u,J){if(!J.data||!J.key||!J.entityType)return u;u[J.entityType]||(u[J.entityType]={});u[J.entityType][J.key]=J.data;return u},{}))})};
Cw5[Yc]=[HG,_.sb];var dDv;dDv=new _.pg("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.A5=new _.pg("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var vq=function(F,q){this.JSC$18321_persistentStorePromiseAccessor=F;this.transportService=q};
vq.prototype.refresh=function(){var F=this,q,t,u,J;return _.p(function(g){if(g.nextAddress==1)return _.yG("LOGGED_IN")?g.yield(F.JSC$18321_persistentStorePromiseAccessor(),2):g.return();if(g.nextAddress!=3)return(q=g.yieldResult)?g.yield(K5W(q),3):g.return();if((t=g.yieldResult)&&!(Number(t.data.refreshTimestampMs||0)<(0,_.gB)()))return g.return();u={browseId:"SPaccount_downloads"};J=_.Jn(fw);_.uW(F.transportService,u,J).then(function(Y){var Q;if(q&&(Y==null?void 0:(Q=Y.responseContext)==null?void 0:
Q.maxAgeSeconds)!==0){var e;Q=(Y==null?void 0:(e=Y.responseContext)==null?void 0:e.maxAgeSeconds)||604800;e=String(Math.floor((0,_.gB)())+Q*1E3);q.put("service:downloads_settings:fallback",new _.Ip({innertubeResponse:Y,refreshTimestampMs:e}))}});
_.WA(g)})};
vq[Yc]=[_.nx,_.da];var I7=function(F,q){this.JSC$18325_playerPromise=F;this.store=q;this.started=!1};
I7.prototype.start=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return F.started?t.return():t.yield(F.JSC$18325_playerPromise,2);q=t.yieldResult;q.addEventListener("onOrchestrationBecameLeader",F.updateIsLeader.bind(F,!0));q.addEventListener("onOrchestrationLostLeader",F.updateIsLeader.bind(F,!1));if(q.isOrchestrationLeader)F.updateIsLeader(q.isOrchestrationLeader());else{var u=new _.D0("Function isOrchestrationLeader is undefined",{"player.isReady":q.isReady(),"player.playVideo":q.playVideo?
"defined":"undefined"});_.mH(u);F.updateIsLeader(!1)}F.started=!0;_.WA(t)})};
I7.prototype.updateIsLeader=function(F){this.store.dispatch(_.pj({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:F}}))};
I7[Yc]=[_.Qg,_.sb];var h97=function(F,q){this.networkStatusManager=F;this.JSC$18328_prefStoragePromise=q;this.redirectsToPreload=["https://youtube.com"]},Kvw=function(){var F=_.sV().resolve(h97),q,t,u,J,g,Y;
_.p(function(Q){switch(Q.nextAddress){case 1:return Q.yield(F.JSC$18328_prefStoragePromise,2);case 2:q=Q.yieldResult;if(!(t=q)){Q.jumpTo(3);break}return Q.yield(q.get("yt-redirect-prefetch-id"),4);case 4:t=Q.yieldResult;case 3:if(t||!F.networkStatusManager.isNetworkAvailable())return Q.return();u={cache:"reload",redirect:"manual"};J=_.X(F.redirectsToPreload);g=J.next();case 5:if(g.done){if(!q){Q.jumpTo(0);break}return Q.yield(q.set("yt-redirect-prefetch-id",!0,86400),0)}Y=g.value;_.zg(Q,8);return Q.yield(_.uu.fetch(Y,
u),10);case 10:_.LE(Q,6);break;case 8:_.Gg(Q);case 6:g=J.next(),Q.jumpTo(5)}})};var Hq=function(F){F?(this.container=F,this.containerWasInjected=!0):this.containerWasInjected=!1};
Hq.prototype.openDialog=function(F,q,t){var u=this,J;return _.p(function(g){(J=u.container)==null||J.openDialog(F,q,t);_.WA(g)})};
Hq.prototype.closeDialog=function(){var F=this,q;return _.p(function(t){(q=F.container)==null||q.closeDialog();_.WA(t)})};
Hq.prototype.isDialogOpen=function(){var F=this,q,t;return _.p(function(u){return u.return((t=(q=F.container)==null?void 0:q.isDialogOpen())!=null?t:!1)})};
Hq[Yc]=[_.JU(kZz)];_.BJh=new _.pg("POPUP_CONTROLLER_TOKEN");var Lv9=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Lv9.prototype.registerPanel=function(F,q){if(F){this.panelMap.set(F,q);var t=this.pendingPanelResolvers.get(F);t&&(t.resolve(q),this.pendingPanelResolvers.delete(F))}};
Lv9.prototype.getPanel=function(F){var q=this,t;return _.p(function(u){return(t=q.panelMap.get(F))?u.return(t):u.return(fQ3(q,F))})};
var fQ3=function(F,q){var t,u;return _.p(function(J){if(t=F.pendingPanelResolvers.get(q))return J.return(t.promise);u=new _.i1;F.pendingPanelResolvers.set(q,u);return J.return(u.promise)})},aQv=function(F){Lv9.call(this);
var q=this;this.popupController=F;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return q.panelMap.size}}};
_.M(aQv,Lv9);_.l=aQv.prototype;_.l.getReloadContinuation=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(q.getPanel(F),2);t=u.yieldResult;return u.return(t.getReloadContinuation())})};
_.l.showPanel=function(F,q,t,u,J,g,Y){var Q=this,e,r,N,w;return _.p(function(k){if(k.nextAddress==1){Y&&Q.updatePanelContinuationDatas.set(F,Y);if((e=t)==null?0:(r=e.engagementPanelPopupPresentationConfig)==null?0:r.popupType){N=t.engagementPanelPopupPresentationConfig.popupType;J===void 0&&(J=document.body);var z=k.return,T=Q.popupController,P=T.openPopup;a:switch(N){case "PANEL_POPUP_TYPE_DIALOG":var v="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":v="DROPDOWN";break a;default:throw Error("gj`"+
N);}return z.call(k,P.call(T,F,q,v,J))}return k.yield(Q.getPanel(F),2)}w=k.yieldResult;(q||g)&&w.updatePanel(q,!1,u,g);w.showPanel(u);_.WA(k)})};
_.l.hidePanel=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(q.getPanel(F),2);t=u.yieldResult;t.hidePanel();q.popupController.closePopup(F);_.WA(u)})};
_.l.isVisible=function(F,q){var t=this,u;return _.p(function(J){if(J.nextAddress==1)return q&&!t.panelMap.has(F)?J.return(!1):J.yield(t.getPanel(F),2);u=J.yieldResult;return J.return(u.isVisible())})};
_.l.updatePanel=function(F,q,t,u,J,g){t=t===void 0?!1:t;var Y=this,Q;return _.p(function(e){if(e.nextAddress==1){if(!q&&!J)return e.return();g&&Y.updatePanelContinuationDatas.set(F,g);return e.yield(Y.getPanel(F),2)}Q=e.yieldResult;Q.updatePanel(q,t,u,J);_.WA(e)})};
_.l.registerPanelContent=function(F,q){F&&this.panelContentMap.set(F,q)};
_.l.unregisterPanelContent=function(F){this.panelContentMap.delete(F)};
_.l.getPanelContent=function(F){return this.panelContentMap.get(F)};
_.l.getUpdatePanelContinuationData=function(F){return this.updatePanelContinuationDatas.get(F)};
aQv[Yc]=[_.BJh];var mU=function(F,q){this.innertubeTransportService=F;this.JSC$18344_screenManager=q},jyv=function(F){var q;
return!((q=F.panelLoadingStrategy)==null||!q.requestTemplate)};
mU.prototype.makeRequest=function(F){var q=this,t,u;return _.p(function(J){switch(J.nextAddress){case 1:if(!jyv(q)){J.jumpTo(2);break}_.zg(J,3);return J.yield(_.aI(q.innertubeTransportService,F),5);case 5:return t=J.yieldResult,t?J.return(t.content):(_.mH(Error("hj")),J.return(void 0));case 3:u=_.Gg(J),_.mH(u);case 2:return J.return(void 0)}})};
mU.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
mU.prototype.execute=function(F){var q=this,t,u,J,g,Y,Q,e,r,N,w;return _.p(function(k){if(k.nextAddress==1){t=F;u=t.data;J=t.fallbackVe;g=t.parentVe;Y=t.createScreenConfig;Q=t.renderFn;e=t.command;q.panelLoadingStrategy=u;var z,T,P=((z=q.panelLoadingStrategy)==null?0:z.screenVe)?(T=q.panelLoadingStrategy)==null?void 0:T.screenVe:J;P&&_.OX(q.JSC$18344_screenManager,P,g,Y);return(r=q.getContent())?k.yield(Q(r),2):k.jumpTo(2)}return k.nextAddress!=4?jyv(q)?k.yield(q.makeRequest(e),4):k.return():(w=N=
k.yieldResult)?k.yield(Q(w),0):k.return()})};
mU[Yc]=[_.da,_.LA];var $3=function(){};
$3.prototype.getContainer=function(){return _.gY()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
$3.prototype.openSheet=function(F,q){var t=this,u,J,g,Y,Q,e;return _.p(function(r){switch(r.nextAddress){case 1:return u={stack:[],error:void 0,hasError:!1},_.zg(r,2,3),J=tO,r.yield(t.isSheetOpen(),5);case 5:g=r.yieldResult;Kfo(u,DEu(J));if(g){if(_.E("web_close_sheet_if_same_target_killswitch")&&q&&t.currentTarget===q)return(Y=t.getContainer())==null||Y.closeSheet(),r.return();t.pendingData={data:F,target:tC3(t,q)};return r.return()}F.viewModel&&(F={viewModel:F.viewModel});(Q=t.getContainer())==null||
Q.openSheet(F,q);t.currentTarget=q;case 3:_.n6(r);BMy(u);_.Tg(r,0);break;case 2:e=_.Gg(r),u.error=e,u.hasError=!0,r.jumpTo(3)}})};
$3.prototype.closeSheet=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return t.yield((q=F.getContainer())==null?void 0:q.closeSheet(),2);if(t.nextAddress!=4)return F.currentTarget=void 0,F.pendingData?t.yield(F.openSheet(F.pendingData.data,F.pendingData.target),4):t.jumpTo(0);F.pendingData=void 0;_.WA(t)})};
$3.prototype.isSheetOpen=function(){var F=this,q,t;return _.p(function(u){return u.return((t=(q=F.getContainer())==null?void 0:q.isSheetOpen())!=null?t:!1)})};
var tC3=function(F,q){if(!_.E("web_parent_target_for_sheets"))return q;var t,u;return(u=(t=F.getContainer())==null?void 0:t.getParentTarget(q))!=null?u:q};var gm=window.documentPictureInPicture;var o_q=_.LZ(["dark"]),n_C=_.LZ(["system-icons"]),MbW=_.LZ(["typography"]),TwA=_.LZ(["lang"]),GI_=_.LZ(["style"]),id3=_.LZ(["dir"]),kI3=_.LZ(["rounded-container"]),E_W=_.LZ(["style"]),Wdo=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],b$=function(F){this.JSC$18356_clientRoot=F;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
b$.prototype.openWindow=function(F){var q=this,t,u;return _.p(function(J){if(J.nextAddress==1)return window.documentPictureInPicture&&_.Wy()&&!q.currentPipWindow?J.yield((t=gm?gm:null)==null?void 0:t.requestWindow(F),2):J.return(!1);if(J.nextAddress!=3){u=J.yieldResult;if(!u)return J.return(!1);u.addEventListener("pagehide",function(){c99(q)});
u.addEventListener("resize",q.handlePipWindowResize);q.pipWindowResizeDelay=new _.l7(function(){q.currentPipWindow&&_.ec(q.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Ma(q.currentPipWindow.innerWidth,q.currentPipWindow.innerHeight)])},u);
D2y(u);Pqq(u);return J.yield(w4f(u),3)}if(!R1y())return J.return(!1);q.currentPipWindow=u;q.JSC$18356_eventForwarder=Odv(u,q.JSC$18356_clientRoot);q.pipWindowResizeDelay.start();return J.return(!0)})};
b$.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var c99=function(F){if(F.currentPipWindow){var q,t;(q=gm?gm:null)==null||(t=q.window)==null||t.close();F.currentPipWindow.removeEventListener("resize",F.handlePipWindowResize);var u;(u=F.pipWindowResizeDelay)==null||u.dispose();F.pipWindowResizeDelay=void 0;var J;(J=F.JSC$18356_eventForwarder)==null||J.stop();F.JSC$18356_eventForwarder=void 0;q=_.X(F.onCloseCallbacks);for(t=q.next();!t.done;t=q.next())t=t.value,t();F.onCloseCallbacks=[];F.currentPipWindow=null}};
b$.prototype.getWindow=function(){return this.currentPipWindow};
var Ft3=function(F,q){var t;(t=F.onCloseCallbacks)==null||t.push(q)};
b$.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Wy()};
_.JJ.Object.defineProperties(b$.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
b$[Yc]=[bLr];var qSC=new _.pg("PICTURE_IN_PICTURE_CONTROLLER");var x2M=function(F,q){this.lengthY=this.lengthX=0;this.lengthX=q.x-F.x;this.lengthY=q.y-F.y};var tOs=function(){},ZeC=function(F,q){var t;
(t=F.headerElement)==null||t.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:q}))};var uI3=function(){};
uI3.prototype.openPopup=function(F,q,t,u){var J=this,g;return _.p(function(Y){if(!J.container)return Y.return();g={openPopupAction:{popup:q,popupType:t,uniqueId:F}};return Y.return(J.container.handleOpenPopupAction(g,u))})};
uI3.prototype.closePopup=function(F){this.container&&this.container.closePopup(F)};var JQQ=function(){this.openTunnels=new Map},$Wv=function(F,q,t){if($2o(t)){var u=_.Kr(t,"gclid");
t={handleEvent:function(Q){q&&!q.closed&&typeof q.postMessage==="function"&&Q&&Q.origin&&Q.source===q&&Q.data&&Q.data.action==="gcl_setup"&&q.postMessage(Object.assign({},{action:"gcl_transfer"},u&&{gclid:u},{gadSource:2}),Q.origin)}};
for(var J=_.X(F.openTunnels),g=J.next();!g.done;g=J.next()){var Y=_.X(g.value);g=Y.next().value;Y=Y.next().value;if(g.closed)try{window.removeEventListener("message",Y),F.openTunnels.delete(g)}catch(Q){_.mH(Q)}}q&&F.openTunnels.size<15&&(F.openTunnels.set(q,t),window.addEventListener("message",t))}};var sK9=function(){this.clientParams=new Map},Jlj=function(F){for(var q=_.X(F.clientParams.keys()),t=q.next();!t.done;t=q.next())t=t.value,t.startsWith("yt-mini-app-share")&&F.clientParams.delete(t)};var lqh=function(F){_.OP.call(this);this.JSC$18378_shortsController=F;gns(this);this.addOnDisposeCallback(this.removeAudioTrackEventListener.bind(this))};
_.M(lqh,_.OP);var gns=function(F){var q,t;(q=F.JSC$18378_shortsController)==null||(t=q.playerApi)==null||t.then(function(u){u&&(u.addEventListener("onPlaybackAudioChange",function(){XS3(F,u)}),XS3(F,u))})};
lqh.prototype.removeAudioTrackEventListener=function(){var F=this,q,t;(q=this.JSC$18378_shortsController)==null||(t=q.playerApi)==null||t.then(function(u){u&&u.removeEventListener("onPlaybackAudioChange",function(){XS3(F,u)})})};
var XS3=function(F,q){q=(q==null?void 0:q.getAvailableAudioTracks().length)>1&&(q==null?void 0:q.getAudioTrack())||void 0;if((F=F.JSC$18378_shortsController)!=null){var t=_.wj("/youtube/app/player_audio_track_entity_key","stringEntity",2);if(q){var u,J=(u=_.nH(_.Uc,t)())==null?void 0:u.value;u=q.getLanguageInfo().getName();J!==u&&F.store.dispatch(_.Gl("stringEntity",t,{key:t,value:u.toString()}))}else F.store.dispatch(_.Gl("stringEntity",t,{key:t,value:"ALTERNATE_AUDIO_TRACK_UNAVAILABLE"}))}};var pSv=function(F){_.OP.call(this);this.JSC$18381_shortsController=F;YSv(this);this.addOnDisposeCallback(this.removeCaptionTrackEventListener.bind(this))};
_.M(pSv,_.OP);var YSv=function(F){F.JSC$18381_shortsController.playerApi.then(function(q){q&&(q.addEventListener("captionschanged",function(){QKw(F,q)}),QKw(F,q))})};
pSv.prototype.removeCaptionTrackEventListener=function(){var F=this;this.JSC$18381_shortsController.playerApi.then(function(q){q&&q.removeEventListener("captionschanged",function(){QKw(F,q)})})};
var QKw=function(F,q){q=q==null?void 0:q.getOption("captions","track");F=F.JSC$18381_shortsController;var t=_.wj("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(q){var u,J=(u=_.nH(_.Uc,t)())==null?void 0:u.value,g;u=typeof(q==null?void 0:q.translationLanguage)==="object"&&((g=q.translationLanguage)==null?void 0:g.languageName)||q.displayName||"";J!==u&&F.store.dispatch(_.Gl("stringEntity",t,{key:t,value:u.toString()}))}else F.store.dispatch(_.Gl("stringEntity",t,{key:t,value:"CAPTIONS_UNAVAILABLE"}))};var eZh=function(F,q){_.OP.call(this);var t=this;this.JSC$18384_shortsController=F;this.storeWithShorts=q;F=_.yL(this.storeWithShorts,_.sBu,function(u){if(u){var J,g=(J=t.JSC$18384_shortsController.getRoot())==null?void 0:J.getPlayer(),Y;(J=(Y=t.JSC$18384_shortsController.alternativePlayerContainerElement)==null?void 0:Y.getPlayerContainer())&&(g==null||g.appendTo(J))}else{var Q;Y=(Q=t.JSC$18384_shortsController.alternativePlayerContainerElement)==null?void 0:Q.getPlayerContainer().querySelector("#player");
J=t.JSC$18384_shortsController.activeIndex;(Q=(g=t.JSC$18384_shortsController.getRoot())==null?void 0:g.querySelector('ytd-reel-video-renderer[id="'+J+'"] #player-container'))&&(Y==null||Y.appendTo(Q,void 0,!0))}});
this.addOnDisposeCallback(F)};
_.M(eZh,_.OP);var y4=function(F,q,t,u,J){var g=this;this.storeWithShorts=F;this.ephemeralResponseStore=q;this.store=t;this.innertubeTransportService=u;this.innertubeTransportLoader=J;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.dC(_.pw);this.isShortsPipActive=_.dC(_.Q7);this.nextReelVe=_.r0(56921);this.prevReelVe=_.r0(56922);this.backButtonVe=_.r0(22156);this.TEST_ONLY={getActiveModules:function(){return g.activeModules}}},Zl9=function(F){F.unsubscribeFromStore=
_.yL(F.storeWithShorts,_.JHf,function(q){F.initOrDisposeActiveModules(q);
!q&&F.storeWithShorts.getState().shorts.isFullscreen&&(_.lN(document.documentElement),F.storeWithShorts.dispatch(_.yPz(!1)))});
F.initOrDisposeActiveModules(_.JHf(F.storeWithShorts.getState()))},Csj,dBL,RZ3;
y4.prototype.initOrDisposeActiveModules=function(F){F?this.activeModules.push.apply(this.activeModules,[new eZh(this,this.storeWithShorts)].concat(_.mZ(_.E("web_shorts_audio_track_picker")?[new lqh(this)]:[]),_.mZ(_.E("enable_web_shorts_captions_language_command")?[new pSv(this)]:[]))):(_.go(this.activeModules),this.activeModules.length=0)};
y4.prototype.registerRootElement=function(F){this.rootElement=F;Zl9(this)};
y4.prototype.getRoot=function(){return this.rootElement};
y4.prototype.setActiveIndex=function(F){this.activeIndex=F};
_.IYE=function(F,q){var t,u,J,g,Y,Q,e;return _.p(function(r){switch(r.nextAddress){case 1:return t=new Kf,(u=t.JSC$13103_getStoreKey(q))&&F.ephemeralResponseStore.has(u)?r.yield(F.ephemeralResponseStore.get(u),7):r.yield(RZ3(F,q),4);case 4:J=r.yieldResult;if(!u){r.jumpTo(3);break}g=Zz(J,3600);return r.yield(F.ephemeralResponseStore.put(u,new _.Ip(g)),3);case 7:J=(Y=r.yieldResult)==null?void 0:_.uZ(Y);case 3:return((Q=J)==null?0:Q.replacementEndpoint)&&(e=_.n(J.replacementEndpoint,_.Px))&&J.sequenceContinuation&&
(e.sequenceParams=J.sequenceContinuation),r.return(J)}})};
Csj=function(F,q){q=(new Bu).JSC$13103_getStoreKey(q);return!!q&&F.ephemeralResponseStore.has(q)};
dBL=function(F,q,t){var u,J,g,Y,Q;_.p(function(e){if(e.nextAddress==1){u=new Bu;J=u.JSC$13103_getStoreKey(q);if(!J)return e.return();if(t.reelWatchSequenceResponse)return g=Zz(t.reelWatchSequenceResponse,3600),F.ephemeralResponseStore.put(J,new _.Ip(g)),e.jumpTo(0);if(!F.ephemeralResponseStore.has(J))return e.jumpTo(0);Q=t;return e.yield(F.ephemeralResponseStore.get(J),4)}Q.reelWatchSequenceResponse=(Y=e.yieldResult)==null?void 0:_.uZ(Y);_.WA(e)})};
RZ3=function(F,q){var t=t===void 0?{}:t;var u,J,g;return _.p(function(Y){switch(Y.nextAddress){case 1:if(F.innertubeTransportService){u=F.innertubeTransportService;Y.jumpTo(2);break}if(!F.innertubeTransportLoader){_.CI(Error("jj"));Y.jumpTo(2);break}return Y.yield(F.innertubeTransportLoader(),4);case 4:u=Y.yieldResult;case 2:return Y.yield((J=u)==null?void 0:_.aI(J,q,t),5);case 5:return g=Y.yieldResult,Y.return(g)}})};
_.JJ.Object.defineProperties(y4.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
y4[Yc]=[TDw,_.ve,sL,_.JU(_.da),_.JU(E1z)];_.rQ5=new _.pg("STORAGE_MANAGER_TOKEN");var Bw_=["touchmove","scroll"];var N$C=!1;var Ldu={onSpanEnd:function(F){F.parentId==null&&(N$C||(d2q(),setInterval(d2q,6E5),N$C=!0),Vbq(F,"web_tracing_action"))}};var wS5=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},il9;
wS5.prototype.enqueue=function(F,q){q===1?this.currentPersistentToast=F:this.queue.push(F);this.openToast()};
wS5.prototype.openToast=function(){var F;(F=this.currentToast)!=null&&F.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Cx=new _.pg("TOAST_MANAGER_TOKEN");var k99=new _.pg("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var En7=new _.pg("VIEW_TRANSITION_COORDINATOR_TOKEN");var zZT=function(F){this.config=F;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;F=_.X(F.transitionConfigs);for(var q=F.next();!q.done;q=F.next())q=_.X(q.value).next().value,this.transitionTasksMap.set(q,[])};
zZT.prototype.registerElement=function(F,q,t){t=t===void 0?!1:t;for(var u=_.X(Object.keys(q)),J=u.next(),g={};!J.done;g={viewTransitionName:void 0},J=u.next()){J=J.value;g.viewTransitionName=q[J];var Y=this.elementTasksMap.get(F),Q=void 0;if((Q=Y)==null?0:Q.has(J)){_.$e(new _.D0("Element already registered for transition",F.tagName,J));break}Y=Y||new Map;Y.set(J,{beforeTransition:function(e){return function(){F.style.viewTransitionName=e.viewTransitionName}}(g),
afterTransition:function(){F.style.viewTransitionName&&(F.style.viewTransitionName="")},
runOnce:t});this.elementTasksMap.set(F,Y)}};
_.UO=function(F,q){var t=F.elementTasksMap.get(q);t&&(t.clear(),t.size===0&&F.elementTasksMap.delete(q))};
zZT[Yc]=[k99];var onJ;_.nnQ=_.ld(function(F){return _.Z("basic-content-view-model",{class:_.Ec("ytBasicContentViewModelHost",_.Jv(F.className))},_.Z(_.R,{cond:function(){return F.data().headline},
then:function(q){return _.Z("div",{class:"ytBasicContentViewModelHeadline"},_.Z(_.rv,{text:q}))}}),_.Z(_.Gn,{each:function(){return F.data().paragraphs||[]},
keyBy:"INDEX"},function(q){return _.Z("div",{class:"ytBasicContentViewModelParagraph"},_.Z(_.R,{cond:function(){var t=q();return!!(t.header||t.customHeader||t.headline)},
then:function(){return _.Z(onJ,{paragraph:q})}}),_.Z(_.R,{cond:function(){return q().asset||q().text},
then:function(){return _.Z("div",{class:"ytBasicContentViewModelParagraphContent"},_.Z(_.R,{cond:function(){return q().asset},
then:function(t){return _.Z("div",{class:"ytBasicContentViewModelParagraphAsset"},_.Z(_.Tl,{data:t},{contentPreviewImageViewModel:_.Gj}))}}),_.Z(_.R,{cond:function(){return q().text},
then:function(t){return _.Z("div",{class:"ytBasicContentViewModelParagraphText"},_.Z(_.rv,{text:t}))}}))}}))}))},"Me");
onJ=_.ld(function(F){var q=F.paragraph;return _.Z(_.ln,null,_.Z(_.R,{cond:function(){return q().headline},
then:function(t){return _.Z(_.rv,{text:t,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.Z(_.Tl,{data:function(){return q().header||q().customHeader}},{sectionHeaderViewModel:function(t){return _.Z(_.Ae,{data:t.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ne");var T$v=_.ld(function(F){var q=_.FG("yt-expandable-metadata-header-view-model"),t=_.zq(function(u){if(!_.$C(_.mp(u),q.value,["A".toString(),"BUTTON".toString()])){var J;(J=F.expandedCallback)==null||J.call(F,!1)}});
return _.Z("yt-expandable-metadata-header-view-model",{el:q,class:"ytExpandableMetadataHeaderViewModelHost"},_.Z(_.R,{cond:function(){return F.expanded()},
then:function(){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":t},_.Z("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.Z(_.R,{cond:function(){return F.data().expandedTitleImage},
then:function(u){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.Z(_.sc,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:u}))}}),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.Z(_.rv,{text:function(){return F.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.Z(_.rv,{text:function(){return F.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.Z(_.rv,{text:function(){return F.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Z(_.Tl,{data:function(){return F.data().infoButton}},{buttonViewModel:_.AB}),_.Z(_.Tl,{data:function(){return F.data().collapseButton}},{buttonViewModel:function(u){return _.Z(_.AB,{data:u.data,
onClick:function(){var J;(J=F.expandedCallback)==null||J.call(F,!1)}})}})))},
else:function(){return _.Z(MOD,Object.assign({},F))}}))},"Oe"),G9C=_.ld(function(F){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.Z(_.R,{cond:function(){return F.data().collapsedLabelImage},
then:function(q){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.Z(_.sc,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:q,alt:""}))}}),_.Z(_.rv,{text:function(){return F.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Pe"),MOD=_.ld(function(F){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.zq(function(){var q;return void((q=F.expandedCallback)==null?void 0:q.call(F,!0))})},_.Z("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.Z(_.R,{cond:function(){return F.data().collapsedImage},
then:function(q){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.Z(_.sc,{height:20,preserveHeight:!0,preserveWidth:!0,data:q,alt:""}))}}),_.Z(_.R,{cond:function(){return F.data().showLeadingCollapsedLabel},
then:function(){return _.Z(G9C,Object.assign({},F))}}),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.Z(_.rv,{text:function(){return F.data().collapsedTitle}}))),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Z(_.R,{cond:function(){return!F.data().showLeadingCollapsedLabel},
then:function(){return _.Z(G9C,Object.assign({},F))}}),_.Z(_.Tl,{data:function(){return F.data().infoButton}},{buttonViewModel:_.AB}),_.Z(_.Tl,{data:function(){return F.data().expandButton}},{buttonViewModel:function(q){return _.Z(_.AB,{data:q.data,
onClick:function(){var t;(t=F.expandedCallback)==null||t.call(F,!0)}})}})))},"Qe");_.Dy9=_.ld(function(F){var q=_.X(_.np(function(){return F.data().initiallyExpanded})),t=q.next().value,u=q.next().value,J,g=(J=_.sV().resolve(_.JU(_.qo)))==null?void 0:J(),Y=function(){var Q=F.data().colorData;
if(Q)return g?Q==null?void 0:Q.darkColorPalette:Q==null?void 0:Q.lightColorPalette};
return _.Z("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Mo({"background-color":function(){var Q=Y();return(Q==null?0:Q.section2Color)?_.KG(Q.section2Color):""}})},_.Z(_.Tl,{data:function(){return F.data().header}},{expandableMetadataHeaderViewModel:function(Q){return _.Z(T$v,{data:Q.data,
expanded:function(){return!!t()},
expandedCallback:function(e){u(e)}})}}),_.Z(_.R,{cond:function(){return t()},
then:function(){return _.Z("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.Z(_.Tl,{data:function(){return F.data().expandedContent}},{horizontalShelfViewModel:function(Q){return _.Z(_.sA,{data:Q.data,
includeMargin:!0,forceNarrowLayout:!0,palette:Y})},
videoSummaryContentViewModel:function(Q){return _.Z(w$1,{data:Q.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(Q){return _.Z(_.x5,{data:Q.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(Q){return _.Z(_.nnQ,{data:Q.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.Z(_.Tl,{data:function(){return F.data().expandedBottomButtons}},{buttonViewModel:function(Q){return _.Z("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.Z(_.AB,{data:Q.data}))}}))}}))},"Re");var WtJ=_.ld(function(F){var q=F.text;var t=F.marqueeSpacing;var u=F.scrollDelay;var J=F.scrollDuration;var g=F.enableMarqueeScroll;F=F.large;var Y=_.X(_.N3(!1,void 0,"WyNYFf")),Q=Y.next().value,e=Y.next().value,r=_.X(_.N3(0,void 0,"OoTdhe"));Y=r.next().value;var N=r.next().value,w=_.FG("marquee-scroll");r=_.FG("div");var k=_.FG("span"),z=_.sV().resolve(_.u_);_.AO(function(){if(g()){var v=k.value.getBoundingClientRect().width,H=w.value.getBoundingClientRect().width;if(v>H){var d=(z==="ltr"?-1:1)*
(v+(t?t():16));Promise.resolve().then(function(){e(!0);N(d)})}}},"dv0Anf");
var T={},P={};return _.Z("marquee-scroll",{class:_.Ec("ytMarqueeScrollHost",(T.ytMarqueeScrollHostLarge=F,T)),el:w},_.Z("div",{id:"marquee-scroll-inner-container",class:_.Ec("ytMarqueeScrollInnerContainer",(P.ytMarqueeScrollAnimationEnabled=function(){return Q()},P)),
el:r,style:_.Mo({gap:t?(0,_.cF)(t):"16px","animation-duration":J?eLL(J):"16s","animation-delay":u?eLL(u):"3s","--marquee-translate":(0,_.cF)(Y)})},_.Z("span",{el:k,dir:"auto"},_.Z(_.rv,{text:q,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.Z(_.R,{cond:Q,then:function(){return _.Z("span",{"aria-hidden":"true",dir:"auto"},_.Z(_.rv,{text:q,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Se");_.Ol9=_.ld(function(F){var q=F.data;var t=F.overlayDensity;F=_.zq(function(){q().onTapCommand&&_.L9(q().onTapCommand);return!1});
var u=_.jGy(),J=function(){return(t==null?void 0:t())===1?22:16},g={};
return _.Z("reel-sound-metadata-view-model",{class:_.Ec("ytReelSoundMetadataViewModelHost",(g.ytReelSoundMetadataViewModelHostLarge=function(){return(t==null?void 0:t())===1},g)),
"on:click":F,tabindex:0,role:"button","on:keydown":u},_.Z("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.Z(_.R,{cond:function(){return q().musicIcon},
then:function(Y){return _.Z(_.sc,{data:Y,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:J})}}),_.Z("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.Z(WtJ,{text:function(){return q().soundMetadata},
enableMarqueeScroll:function(){return!!q().enableMarqueeScroll},
large:function(){return(t==null?void 0:t())===1}}))))},"Te");var Pe9,xyy,dk,Hly,$yv,IqT,Ce5,yQQ;Pe9=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];xyy=_.YE("wil_icon_max_concurrent_fetches",Infinity);
dk=function(F,q,t){var u=this;this.iconSet=F;this.appDirection=q;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.uu.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.E("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.E("wil_icon_network_first");this.renderWhenIdle=_.E("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.E("wil_icon_load_immediately");this.isPurging=!1;F=function(){u.cacheStorageAvailable&&(u.cacheStorageAsync=_.uu.caches.open("yt-icons").then(function(g){return u.cacheStorageSync=g}).catch(function(){u.cacheStorageAvailable=!1}))};
t=(t==null?void 0:t())||{};t=_.X(Object.entries(t));for(q=t.next();!q.done;q=t.next()){var J=_.X(q.value);q=J.next().value;J=J.next().value;J=zn(J);AQ9(J);this.iconCache[q]=J.cloneNode(!0)}this.isPurging=vn9(this);this.isPurging instanceof Promise?this.isPurging.then(F):F()};
_.sTt=function(F,q){var t=F.resolveIcon(q);return t?F.renderingMode===1?IqT(F,t,F.renderingMode):(q=F.iconCache[t.url])?(q=q.cloneNode(!0),Hly(F,q),IqT(F,t,F.renderingMode,q)):_.my9(F,t).then(function(u){var J=u?0:1;Hly(F,u);return IqT(F,t,J,u)}):(_.$e(new _.D0("Icon not found",{iconShape:q})),function(){})};
Hly=function(F,q){if(q){F.counter+=1;F="_yt"+F.counter;q=[q].concat(_.mZ(q.getElementsByTagName("*")));q=_.X(q);for(var t=q.next();!t.done;t=q.next())if(t=t.value,t.tagName==="style"&&t.textContent)t.textContent=$yv(t.textContent,F,!0);else for(var u=_.X(t.attributes),J=u.next();!J.done;J=u.next()){J=J.value;J.name==="id"&&(J.value+=F);["mask","fill","clip-path"].includes(J.name)&&(J.value=$yv(J.value,F));if(J.name==="style"){var g=t.style;try{g.cssText=$yv(g.cssText,F,!0)}catch(N){var Y=void 0,Q=
void 0,e=void 0,r=void 0;V4({error:((Y=N)==null?void 0:(e=(Q=Y).toString)==null?void 0:e.call(Q))||"",el:t.outerHTML,style:!!g,cssText:(r=g)==null?void 0:r.cssText})}}J.name==="xlink:href"&&(J.value=J.value.replace(/#(.*)/,"#$1"+F))}}};
$yv=function(F,q,t){var u=/url\(["']?#(.*?)["']?\)/;(t===void 0?0:t)&&(u=/url\(["']?#(.*?)["']?\)/g);return F.replace(u,"url(#$1"+q+")")};
IqT=function(F,q,t,u){return function(J,g){var Y=Object.assign({},{iconColor:"currentcolor",iconWidth:q.size+"px",iconHeight:q.size+"px",iconDisplay:"block"},g);g=_.nr("DIV");var Q=Y.iconColor,e=Y.iconFilter;Y="width: "+Y.iconWidth+"; height: "+Y.iconHeight+"; display: "+Y.iconDisplay+";";e&&(Y+=" filter: "+e+";");t===0&&(Y+=" fill: "+Q+";");t===1&&(e=q.url,Y+=" -webkit-mask: url("+e+") no-repeat center / cover; mask: url("+(e+") no-repeat center / cover; background-color: ")+Q);q.allowMirroring&&
F.appDirection==="rtl"&&(Y+=" transform: scale(-1, 1); transform-origin: center center;");g.setAttribute("style",Y);t===0&&u&&g.appendChild(u);J.appendChild(g)}};
_.my9=function(F,q){var t,u,J;return _.p(function(g){t=function(Y){return Ll(Y)};
u=q.url;if(!bls(u))throw Error("mj");J=yQQ(F,u);return g.return(J.then(function(Y){return Y.clone().text()}).then(function(Y){var Q=t(Y);
Y=q.size;var e=_.nr("DIV");_.JK(e,Q);Q=_.Mq(e.firstElementChild!==void 0?e.firstElementChild:_.t5n(e.firstChild,!0));Y=AQ9(Q,Y);F.iconCache[u]=Y.cloneNode(!0);delete F.responsePromises[u];return Y}).catch(function(){}))})};
Ce5=function(F){var q,t=(q=F.requestAninmationFrameResolver)==null?void 0:q.promise;t||(F.requestAninmationFrameResolver=new _.i1,t=F.requestAninmationFrameResolver.promise,_.uu.requestAnimationFrame(function(){var u;(u=F.requestAninmationFrameResolver)==null||u.resolve();F.requestAninmationFrameResolver=null}));
return t};
yQQ=function(F,q){var t,u;return _.p(function(J){if(J.nextAddress==1)return F.waitForAnimationFrame?J.yield(Ce5(F),2):J.jumpTo(2);t=F.responsePromises[q];t||(u=function(){var g,Y,Q;return _.p(function(e){switch(e.nextAddress){case 1:if(!F.cacheStorageAvailable){g=void 0;e.jumpTo(2);break}if(Y=F.cacheStorageSync){e.jumpTo(3);break}return e.yield(F.cacheStorageAsync,4);case 4:Y=e.yieldResult;case 3:g=Y;case 2:return Q=g,F.isNetworkFirstStrategy?e.return(F.fetchAndUpdateCache(q,Q).catch(F.getCacheStorageResponse.bind(F,
q,Q))):e.return(F.getCacheStorageResponse(q,Q).catch(F.fetchAndUpdateCache.bind(F,q,Q)))}})},t=F.renderWhenIdle?new Promise(function(g,Y){_.W2(_.mI,function(){u().then(g).catch(Y)},10)}):u(),F.responsePromises[q]=t);
return J.return(t.catch(function(g){delete F.responsePromises[q];V4({error:(g==null?0:g.toString)?g.toString():"",url:q});throw g;}))})};
dk.prototype.fetchAndUpdateCache=function(F,q){var t=this;return _.p(function(u){return u.return(dyD(t,F).then(function(J){VOJ(t,F,J,q);return J}))})};
var dyD=function(F,q){var t;return _.p(function(u){if(F.numFetches<xyy)return F.numFetches+=1,u.return(Uyv(F,q).finally(function(){--F.numFetches;if(Object.keys(F.queuedResponseResolvers).length){var J=Object.keys(F.queuedResponseResolvers)[0],g=F.queuedResponseResolvers[J];delete F.queuedResponseResolvers[J];g.resolve(dyD(F,J))}}));
t=new _.i1;F.queuedResponseResolvers[q]=t;return u.return(t.promise)})},Uyv=function(F,q,t){t=t===void 0?2:t;
var u;return _.p(function(J){u={credentials:"same-origin",priority:"low"};return J.return(_.uu.fetch(q,u).then(function(g){return g.ok?g:Promise.reject(Error("nj`"+g.status+"`"+g.statusText))}).catch(function(g){if(t>0)return Uyv(F,q,t-1);
throw g;}))})},VOJ=function(F,q,t,u){_.p(function(J){return u?J.return(new Promise(function(g){_.W2(_.mI,function(){var Y,Q;
return _.p(function(e){switch(e.nextAddress){case 1:if(!F.isNetworkFirstStrategy){Y=void 0;e.jumpTo(2);break}return e.yield(u.match(q).catch(function(){}),3);
case 3:Y=e.yieldResult;case 2:if(Q=Y){e.jumpTo(4);break}return e.yield(u.put(q,t.clone()).catch(function(r){V4({error:(r==null?0:r.toString)?r.toString():"",url:q})}),4);
case 4:g(),_.WA(e)}})},50)})):J.return()})};
dk.prototype.getCacheStorageResponse=function(F,q){return _.p(function(t){return q?t.return(q.match(F).then(function(u){return u&&u.ok?u:Promise.reject()})):t.return(Promise.reject())})};
var AQ9=function(F,q){q===void 0||F.getAttribute("viewBox")||F.setAttribute("viewBox","0 0 "+q+" "+q);F.setAttribute("focusable","false");F.setAttribute("aria-hidden","true");try{F.style.pointerEvents="none",F.style.display="inherit",F.style.width="100%",F.style.height="100%"}catch(J){var t;V4({error:((t=J)==null?0:t.toString)?J.toString():""});try{F.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(g){var u;V4({error:((u=g)==null?0:u.toString)?g.toString():
""})}}return F},bls=function(F){for(var q=_.X(Pe9),t=q.next();!t.done;t=q.next())if(F.startsWith(t.value)&&F.endsWith(".svg"))return!0;
return!1};
dk.prototype.resolveIcon=function(F){return this.iconSet.resolveIcon(F)};
var V4=function(F){_.bz(new _.D0("Error in IconManager",F))},vn9=function(F){if(_.E("wil_icons_cache_purge_killswitch"))return!1;
try{var q=_.uu.localStorage}catch(g){return!1}if(!q||!F.cacheStorageAvailable)return!1;var t=function(g){try{var Y;(Y=q)==null||Y.setItem("yt-icons-last-purged",g.toString())}catch(e){var Q;V4({error:((Q=e)==null?0:Q.toString)?e.toString():""})}},u=Number(q.getItem("yt-icons-last-purged"));
if(!u)return u=new Date,u=u.setDate(u.getDate()-Math.floor(Math.random()*90+1)),t(u),!1;if(function(g,Y){g=new Date(g);Y=new Date(Y);return Y.getMonth()-g.getMonth()+12*(Y.getFullYear()-g.getFullYear())}(u,Date.now())<3)return!1;
try{return _.uu.caches.delete("yt-icons").then(function(g){g&&t(Date.now());return g}).catch(function(){return!1}).finally(function(){F.isPurging=!1})}catch(g){var J;
V4({error:((J=g)==null?0:J.toString)?g.toString():""});return!1}};
dk[Yc]=[xA9,_.u_,_.JU(Iv3)];_.UZ=function(F,q){this.iconManager=F;this.iconsToFetch=q};
_.UZ[Yc]=[_.zC,_.JU(vPT)];var SS3=function(){};var hZJ=function(F,q,t){this.requestKey=F;this.nj5=q;this.w51=t;this.oYz=function(){return new XMLHttpRequest};
this.ee1=void 0;this.yCt=[]};
hZJ.prototype.getLatestChallengeResponse=function(){return this.w51};
var sXv=function(F,q,t){var u,J,g,Y;return _.p(function(Q){if(Q.nextAddress==1){_.bN("attestation_challenge_fetch");_.y0("att_fs",void 0,"attestation_challenge_fetch");if(!F.ee1)throw new _.$D(9,"Missing fetcher");return Q.yield(F.ee1(q,t),2)}u=Q.yieldResult;g=(J=u)==null?void 0:J.bgChallenge;if(!g)throw new _.$D(15,"Missing field");F.w51=u;F.yCt.forEach(function(e){e(u)});
Y=Vo$(g);_.y0("att_fc",void 0,"attestation_challenge_fetch");$o("attestation_challenge_fetch");return Q.return(Y)})},Dqj=function(F,q){var t,u,J,g,Y;
return _.p(function(Q){switch(Q.nextAddress){case 1:t=new ro(100,3E5,.25,2),u=void 0;case 2:if(!(t.currBackoffCount_<10)){Q.jumpTo(4);break}_.zg(Q,5);if(!(t.currBackoffCount_>0)){Q.jumpTo(7);break}return Q.yield(ahP(t.getValue()),7);case 7:return Q.yield(Ktw(F,q),9);case 9:return J=Q.yieldResult,Q.return(J);case 5:g=_.Gg(Q);g instanceof _.$D?u=g:(Y=g instanceof Error?g.message:"Unknown",u=new _.$D(9,Y));rKx(t);Q.jumpTo(2);break;case 4:if(u)throw u;throw new _.$D(9,"Unknown error");}})},Ktw=function(F,
q){q=BhL(L7E(new K7n,q),F.requestKey);
var t=new _.i1,u=F.oYz();u.open("POST",F.nj5);u.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");u.setRequestHeader("Content-Type","application/json+protobuf");u.onload=function(){if(_.Vcv(u)){var J=u6r(u.responseText);t.resolve(J)}else t.reject(new _.$D(_.cNt(_.Z0(u)),u.statusText))};
u.onerror=function(){t.reject(new _.$D(_.cNt(_.Z0(u)),u.statusText))};
u.send(q.serialize());return t.promise};var LtC=function(F){this.networkStatusManager=F;this.isDownloaded=BHq===void 0?function(){return!1}:BHq;
this.isReady=!1;this.nYh=B$w(this)},B$w=function(F){var q;
return _.p(function(t){if(t.nextAddress==1)return t.yield(AN_(),2);if(t.nextAddress!=3)return q=t.yieldResult,t.yield(ilE(q),3);F.pQ=t.yieldResult;c2W(F.pQ).then(function(){F.isReady=!0});
return t.return(F.pQ)})},fqC=function(F,q,t){F.pQ?(F=F.pQ.nqR({m0:t,
t1F:!0,dZF:!0}),q.serviceIntegrityDimensions={poToken:F}):_.mH(Error("pj"))};
LtC.prototype.processContext=function(F){var q=this;if(!F.input.match(_.Jn(Cr1)))return _.Z2();var t=F.innerTubeRequest,u=t.videoId;return!u||this.isDownloaded(t)||this.networkStatusManager&&!this.pQ&&!this.networkStatusManager.isNetworkAvailable()?_.Z2():this.pQ?this.isReady?(fqC(this,t,u),_.Z2()):new eR(c2W(this.pQ).then(function(){fqC(q,t,u)})):new eR(this.nYh.then(function(J){return _.p(function(g){if(g.nextAddress==1)return g.yield(c2W(J),2);
fqC(q,t,u);_.WA(g)})}))};var aq7=new _.pg("WEB_PO_CONTEXT_PROCESSOR");var jKQ=function(F,q){var t=this;this.oVq=0;var u;this.ar1=(u=q==null?void 0:q.ar1)!=null?u:window;this.networkStatusManagerPromise=q==null?void 0:q.networkStatusManagerPromise;var J;this.requestKey=(J=q==null?void 0:q.requestKey)!=null?J:_.pE("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var g;this.vD5=(g=q==null?void 0:q.vD5)!=null?g:function(e){return new Su(e)};
var Y;u=(Y=q==null?void 0:q.sQz)!=null?Y:function(e,r,N){return new hZJ(e,r,N)};
this.bgChallenge=Vo$(F.bgChallenge);this.ttlSeconds=Ufy(BZ(F.challenge||""));this.mT=u(this.requestKey,_.E("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.uu.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",F);jdu(this.mT);var Q;this.xQi=(Q=q==null?void 0:q.xQi)!=null?Q:function(e){_.Ic(t.ar1.document,"visibilitychange",function(){t.ar1.document.visibilityState===
"visible"&&e()})}},FZQ=function(F){if(!F.vm){var q={maxAttempts:5,
s2i:F.ttlSeconds*1E3};FCA(F.ar1);F.vm=F.vD5({mT:F.mT,kF9:{disable:_.E("html5_web_po_disable_remote_logging"),lu:"aGIf",pZi:$Uo("html5_web_po_experiment_ids"),gGp:_.E("wpo_dis_lfdms")?0:1E3,x29:function(u){var J=C9J.get(u);J||(J=new yrL(u),J=new EP(J),C9J.set(u,J));return J}},
vY9:q,rN4:F.bgChallenge,jB7:qtt});F.oVq=Date.now();Fg1(F.vm,function(){F.oVq=Date.now()});
mMo(F.vm,function(){return _.p(function(u){return u.return(cQ3(F))})});
var t=F.u2d.bind(F);F.networkStatusManagerPromise&&F.ttlSeconds>0&&F.networkStatusManagerPromise.then(function(u){u.listen("publicytnetworkstatus-online",t)});
F.xQi(t)}};
jKQ.prototype.u2d=function(){if(Date.now()>this.oVq+this.ttlSeconds*1E3){var F;(F=this.vm)==null||cWz(F)}};
var cQ3=function(F){if(F.kmD)return F.kmD;if(!F.vm)throw Error("qj");F.kmD=new LQ({vm:F.vm,mT:F.mT,zEf:!0,onError:qtt});return F.kmD},uQq=function(F,q){F=new jKQ(F,q);
FZQ(F);cQ3(F)};var qs5=_.IQQ.ephemeralActionSelector,SI=function(F,q){this.store=F;this.queue=[];q==null||q.addEventListener("yt-navigate-start",this.reset.bind(this))};
SI.prototype.enqueue=function(F){var q=F.command,t=F.durationMs,u=F.elementToFocus;var J=F.label;var g=F.elementToFocus;F.command?J=_.oD("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:J,shortcut:_.oD("SHIFT_PLUS_ENTER")}):g&&(F=J+". "+_.oD("SHIFT_PLUS_ENTER")+" for more information.",J=_.oD("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:J,shortcut:_.oD("SHIFT_PLUS_ENTER")},F));t={announcement:J,durationMs:t!=null?t:8E3};q?t.command=q:u&&(u.classList.add("ephemeral-action-focusable-element"),t.selector=u.tagName+
".ephemeral-action-focusable-element");this.queue.push(t);tS7(this)};
SI.prototype.activate=function(F){var q=qs5(this.store.getState());if(q){if(q==null?0:q.command)_.hv(q.command),this.store.dispatch(H2x(null));if(q==null?0:q.selector)q=document.querySelector(q.selector),_.I0W(q);F.preventDefault()}};
var tS7=function(F){if(!qs5(F.store.getState())&&F.queue.length){var q=F.queue.shift();q&&(F.previousAnnouncement===q.announcement&&(q.announcement+="\u00a0"),F.store.dispatch(H2x(q)),F.previousAnnouncement=q.announcement,F.timeoutId=setTimeout(function(){if(q.selector){var t;(t=document.querySelector(q.selector))==null||t.classList.remove("ephemeral-action-focusable-element")}F.store.dispatch(H2x(null));tS7(F)},q.durationMs))}};
SI.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(H2x(null));this.queue.length=0;this.timeoutId=void 0};
SI[Yc]=[_.sb,_.JU(_.S$)];_.h5=new _.pg("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var uYw=window.AbortController||Mx$;var JKT=new _.pg("AUTH_SERVICE_TOKEN");var gjv=_.LZ(["about:blank"]),sQo;var s2C=new _.pg("API_IFRAME_TOKEN"),gl3=new _.pg("FETCH_FN_TOKEN"),loT=new _.pg("PARSE_FN_TOKEN"),XA9=new _.pg("WINDOW_REQUEST_TOKEN"),Ys9=new _.pg("TEXT_DECODER_TOKEN");var gR1;gR1=new _.pg("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.pAh=new _.pg("MISC_UI_SHARED_FLAGS_TOKEN");var Q29=function(){};
Q29.prototype.getFlag=function(F){if(F.configType!==2)throw Error("rj");return ePD(F)};
var ePD=function(F){switch(F.flagType){case "bool":return _.E(F.flagName);case "int":return _.vf(_.YE(F.flagName));case "double":return _.YE(F.flagName);case "string":return _.pE(F.flagName);case "int32_list":return $Uo(F.flagName);case "int64_list":return $Uo(F.flagName).map(function(q){return _.vf(q)});
case "string_list":return _.ev(F.flagName);default:throw Error("sj");}};var Kx=function(F,q,t){q=q===void 0?{}:q;Sh.call(this,t===void 0?"uninitialized":t);this.env=F;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];q.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=q.shouldWaitOnAsyncImmediate)};
_.M(Kx,Sh);Kx.prototype.init=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return q.processPluginOptions.shouldWaitOnAsyncImmediate?u.yield(F(q.env),2):(F(q.env),u.jumpTo(2));if(u.nextAddress!=4)return q.jobSet?u.yield(q.jobSet.completedResolver.promise,4):u.jumpTo(4);t=_.g7();t.parkOrScheduleJob(function(){q.transition("rendering")},10,"ci");
_.WA(u)})};
Kx.prototype.initialRender=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return q.processPluginOptions.shouldWaitOnAsyncImmediate?u.yield(F(q.env),2):(F(q.env),u.jumpTo(2));if(u.nextAddress!=4)return q.jobSet?u.yield(q.jobSet.completedResolver.promise,4):u.jumpTo(4);t=_.g7();t.parkOrScheduleJob(function(){q.transition("rendered")},10,"cr");
_.WA(u)})};
Kx.prototype.afterRenderImmediate=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return q.processPluginOptions.shouldWaitOnAsyncImmediate?u.yield(F(q.env),2):(F(q.env),u.jumpTo(2));if(u.nextAddress!=4)return q.jobSet?u.yield(q.jobSet.completedResolver.promise,4):u.jumpTo(4);t=_.g7();t.parkOrScheduleJob(function(){q.transition("after-render-deferred")},10,"carml");
_.WA(u)})};
Kx.prototype.afterRenderDeferred=function(F){var q=this;return _.p(function(t){F(q.env);_.WA(t)})};var Z6T;_.$I("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});Z6T={};_.RP9=(Z6T.CSI=exu(),Z6T.ECATCHER=QQo(),Z6T);var rKJ={},NLh=(rKJ.rendered={priority:0,callback:function(F){ULO(F.injector.resolve(OD))}},rKJ);var uA3=new _.pg("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),wAD=new _.pg("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var i63=function(F){this.callbackFnMap=F;this.configMap={}};
i63.prototype.handleResponse=function(F){var q;if(F=(q=F.responseContext)==null?void 0:q.serviceTrackingParams)for(q=_.X(F),F=q.next();!F.done;F=q.next()){F=F.value;var t=F.params,u=F.service;if(t&&u){this.configMap[u]||(this.configMap[u]=new ReL);F=this.configMap[u];var J=void 0,g=(J=this.callbackFnMap)==null?void 0:J[u];t=_.X(t);for(u=t.next();!u.done;u=t.next())J=u.value,u=J.key,J=J.value,u&&J&&(F.set(u,J),g&&g(u,J))}}};
i63[Yc]=[_.JU(wAD)];var kgv=!1,wzf=0,ZTW=null,Nq_=null;var El9=new _.pg("NETWORK_SLI_TOKEN");var zP5=function(F,q,t,u,J){this.networkSli=F;this.fetchFn=q;this.parseFn=t;this.requestFn=u;this.JSC$18492_textDecoder=J};
zP5.prototype.fetch=function(F,q,t){var u=this,J,g,Y;return _.p(function(Q){J=olC(u,F,q);Y=(g=u.fetchFn)!=null?g:fetch;return Q.return(Y(J).then(function(e){return u.handleResponse(e,t)}).catch(function(e){_.bz(e);
if((t==null?0:t.expectJsonStrict)&&e instanceof d7&&e.errorType===1)return Promise.reject(e)}))})};
var Uez=function(F,q,t,u){var J,g,Y,Q,e,r,N;return _.p(function(w){switch(w.nextAddress){case 1:return J=olC(F,q,t),_.zg(w,2),w.yield(fetch(J),4);case 4:g=w.yieldResult;_.LE(w,3);break;case 2:throw _.Gg(w),new d7(2,"Failed to parse streaming response",J.url);case 3:if(!g.redirected&&!g.ok)throw(Y=F.networkSli)==null||Y.failure(),new _.D0("Streaming fetch request not ok",J.url);if(!g.body)throw new _.D0("No response body in streaming response",J.url);Q={};if(_.E("web_streaming_fast"))return e=g.body.getReader(),
w.return(nlQ(F,e,Q,u));r=g.body.pipeThrough(new TextDecoderStream).getReader();N=new _.iS;return w.return(MS9(F,r,N,Of3,Q,u))}})},olC=function(F,q,t){if(F.networkSli){var u=_.wN(_.sH(q,"key"))||"/UNKNOWN_PATH";
F.networkSli.start(u)}u=t;_.E("wug_networking_gzip_request")&&(u=fjq(t));var J;return new ((J=F.requestFn)!=null?J:window.Request)(q,u)},nlQ=function(F,q,t,u){var J,g,Y,Q,e,r,N,w,k,z,T;
return _.p(function(P){switch(P.nextAddress){case 1:J=F.JSC$18492_textDecoder?new F.JSC$18492_textDecoder("utf-8"):new TextDecoder("utf-8"),g="",Y=function(v){v=v.trim();v.length!==0&&v!=="]"&&v!=="["?(v.startsWith("[")&&(v=v.substring(1)),v.endsWith("]")&&(v=v.slice(0,-1)),v.endsWith(",")&&(v=v.slice(0,-1)),v=v.trim()):v=void 0;if(v)try{var H=JSON.parse(v);Of3(t,H);u==null||u(t,H)}catch(d){throw new d7(1,"Failed to parse streaming response",v);}},_.zg(P,2,3);
case 5:return P.yield(q.read(),8);case 8:Q=P.yieldResult;e=Q.value;if(r=Q.done)return g.length>0&&Y(g),N=void 0,(N=F.networkSli)==null||N.success(),P.return(t);g+=J.decode(e,{stream:!0});w=g.split("\n");g=w.pop()||"";k=_.X(w);for(z=k.next();!z.done;z=k.next())T=z.value,Y(T);P.jumpTo(5);break;case 3:_.n6(P);q.releaseLock();_.Tg(P,0);break;case 2:throw _.Gg(P),new d7(1,"Failed to parse streaming response");}})},MS9=function(F,q,t,u,J,g){var Y,Q,e,r,N,w,k,z,T;
return _.p(function(P){if(P.nextAddress==1)return P.yield(q.read(),2);Y=P.yieldResult;Q=Y.value;if(e=Y.done)return(r=F.networkSli)==null||r.success(),P.return(J);try{N=t.parse(Q)}catch(v){throw new d7(1,"Failed to parse streaming response",Q);}if(N!=null)for(w=_.X(N),k=w.next();!k.done;k=w.next())z=k.value,u(J,z),T=void 0,(T=g)==null||T(J,z);return P.return(MS9(F,q,t,u,J,g))})};
zP5.prototype.handleResponse=function(F,q){var t,u=(t=this.parseFn)!=null?t:JSON.parse;t=F.text().then(function(J){if((q==null?0:q.jspbResponseCtor)&&F.ok)return dyA(q.jspbResponseCtor,J);J=J.replace(")]}'","");if((q==null?0:q.expectJsonStrict)&&J)try{var g=u(J)}catch(Q){throw new d7(1,"JSON parsing failed after fetch");}var Y;return(Y=g)!=null?Y:u(J)});
F.redirected||F.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),t=t.then(function(J){_.bz(new _.D0("Error: API fetch failed",F.status,F.url,J));return Object.assign({},J,{errorMetadata:{status:F.status}})}));
return t};
zP5[Yc]=[_.JU(El9),_.JU(gl3),_.JU(loT),_.JU(XA9),_.JU(Ys9)];var TLC=new _.pg("NETWORK_MANAGER_TOKEN");var Gg9=[1,2,4,8,16,30],WZ9=function(F){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=F.maxTimeMs;this.maxFrameCount=F.maxFrameCount===void 0?Math.ceil(60*F.maxTimeMs/1E3):F.maxFrameCount;F=_.X(Gg9);for(var q=F.next();!q.done;q=F.next())this.brokenFrameSummarizers.push(new Dv9(q.value/60*1E3))},O6w=function(F){var q=F.frameCountInternal>=F.maxFrameCount;
return F.elapsedTimeMs>=F.maxTimeMs||q};
WZ9.prototype.summarize=function(){for(var F=[],q=_.X(this.brokenFrameSummarizers),t=q.next();!t.done;t=q.next())t=t.value,t=t.brokenFrameCount!==0?{severityMs:Math.round(t.targetFrameTimeMs),eventCount:t.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(t.averageDurationBetweenEventsMs)}:void 0,t&&F.push(t);return{summaries:F,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.JJ.Object.defineProperties(WZ9.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 Dv9=function(F){this.targetFrameTimeMs=F;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.JJ.Object.defineProperties(Dv9.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var PF3=function(){};
PF3.prototype.start=function(F,q){var t=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var u=new WZ9({maxTimeMs:F});this.monitor=u;this.lastSummaryInternal=void 0;this.metadataToLog=q;return new Promise(function(J){var g=function(Y){if(Y===void 0)t.stop(),J(void 0);else if(t.monitor!==u)Y=Object.assign({},u.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),J(Y);else{var Q=t.monitor;if(!O6w(Q)){Q.frameCountInternal++;if(Q.prevTime===
void 0)Q.startTime=Y;else for(var e=Y-Q.prevTime,r=_.X(Q.brokenFrameSummarizers),N=r.next();!N.done;N=r.next()){N=N.value;var w=N.currTimeMs;N.currTimeMs+=e;e>N.targetFrameTimeMs+2&&(N.brokenFrameCount++,N.timeOfFirstBrokenFrameMs===void 0&&(N.timeOfFirstBrokenFrameMs=w),N.timeOfLastBrokenFrameMs=w)}Q.prevTime=Y}O6w(t.monitor)?J(t.stop()):_.mI.addJob(g,5,0)}};
_.mI.addJob(g,5,0)})};
PF3.prototype.stop=function(F){if(!this.monitor)return this.lastSummaryInternal;var q=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(q.monitoringDurationMs){F=F!=null?F:this.metadataToLog;var t={droppedFramesSummary:q,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};F&&(t[F.type]=F.data);_.IJ("manualSmoothnessMeasurement",t)}this.monitor=void 0;this.lastSummaryInternal=q;this.metadataToLog=void 0;return q};_.xv5=new _.pg("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var AKJ;AKJ=function(F){this.JSC$18515_expiringStorage=new OV(F)};
_.vlJ=function(F){if(_.iTu()&&(F=_.G5q(_.TQ()+"::"+F)))return new AKJ(F)};
AKJ.prototype.set=function(F,q,t){t=t!==void 0?Date.now()+t:void 0;this.JSC$18515_expiringStorage.set(F,q,t)};
AKJ.prototype.get=function(F){return this.JSC$18515_expiringStorage.get(F)};
AKJ.prototype.remove=function(F){this.JSC$18515_expiringStorage.remove(F)};var Iov=new _.pg("SESSION_STORAGE");_.Bq=function(){};
_.Bq.getInstance=function(){var F=_.S6("ytglobal.storage_");F||(F=new _.Bq,_.uo("ytglobal.storage_",F));return F};
_.Bq.prototype.estimate=function(){var F,q,t;return _.p(function(u){F=navigator;return((q=F.storage)==null?0:q.estimate)?u.return(F.storage.estimate()):((t=F.webkitTemporaryStorage)==null?0:t.queryUsageAndQuota)?u.return(kPf()):u.return()})};
_.uo("ytglobal.storageClass_",_.Bq);var GPo=0;var vjM=!1;var H6h=_.LZ(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),mvT=_.LZ(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Wr3={"/":_.bv,"/?feature=ytca":_.bv,"/feed/downloads":_.t0$};var $vQ=mD3.continuationCommandSelector,rm=function(F,q,t){this.JSC$18531_upliftPromise=F;this.store=q;this.JSC$18531_persistentStorePromiseAccessor=t};
rm.prototype.shouldPreferLocalResponse=function(F){return F.browseId==="FEdownloads"||F.browseId==="FEsmart_downloads"&&_.E("kevlar_modern_downloads_page")?!0:!1};
rm.prototype.localInnertubeResponse=function(F){var q=this;return _.p(function(t){return F.browseId==="FEdownloads"?_.E("kevlar_modern_downloads_page")?t.return(b6s(q)):t.return(yKy(q)):F.browseId==="FEsmart_downloads"&&_.E("kevlar_modern_downloads_page")?t.return(CFs(q)):t.return(Promise.reject(Error("uj")))})};
rm.prototype.canProvideFallbackResponse=function(){return!0};
rm.prototype.localFallbackInnertubeResponse=function(F){var q=this,t,u,J;return _.p(function(g){switch(g.nextAddress){case 1:return g.yield(q.JSC$18531_persistentStorePromiseAccessor(),2);case 2:t=g.yieldResult;if(F.browseId!=="SPaccount_downloads"||!t){g.jumpTo(3);break}return g.yield(K5W(t),4);case 4:if(u=g.yieldResult)return g.return(_.uZ(u));case 3:return F.browseId==="FEwhat_to_watch"?g.return(dvD(q)):(J=_.E("web_offline_continuation_automatic_retry")||_.E("web_offline_continuation_retry_button"))&&
F.continuation?g.return(VS3(q)):g.return(Uv7(q))}})};
var dvD=function(F){var q;return _.p(function(t){if(t.nextAddress==1)return t.yield(F.JSC$18531_upliftPromise,2);q=_.yho(F.store.getState().entities);return q.length?t.return(Sss(F,q)):t.return(Uv7(F))})},yKy=function(F){var q,t;
return _.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$18531_upliftPromise,2);if(u.nextAddress!=3)return q=hPT([{offlineItemSectionRenderer:{}}]),u.yield(KZC(F,q),3);t=u.yieldResult;t.onResponseReceivedActions=[zJ("REFRESH_DOWNLOADS")];return u.return(t)})},b6s=function(F){var q,t,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v;
return _.p(function(H){if(H.nextAddress==1)return H.yield(F.JSC$18531_upliftPromise,2);if(H.nextAddress!=3)return q=F.store.getState(),t=q.entities,u=_.IY(t),J=_.H5(t),g=_.wGv(q),Y=_.N7$(q),Q=_.i8W(q),e=_.VRC(t),r=_.W5(u),N=_.mV(t),w=_.KLy(t),k=_.EQo(q),z=_.dj(q),T={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.wIv(u,J,e,w,g,Y,r,N,Q,k,z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},P="",_.E("kevlar_modern_downloads_skip_downloads_title")||
(P=_.oD("DOWNLOADS",void 0,"Downloads")),H.yield(BLs(F,T,P),3);v=H.yieldResult;v.onResponseReceivedActions=[zJ("REFRESH_DOWNLOADS")];return H.return(v)})},CFs=function(F){var q,t,u,J,g,Y,Q,e,r;
return _.p(function(N){if(N.nextAddress==1)return N.yield(F.JSC$18531_upliftPromise,2);if(N.nextAddress!=3)return q=F.store.getState(),t=q.entities,u=_.IY(t),J=_.W5(u),g=_.mV(t),Y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.kFM(u),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},Q=_.oD("SMART_DOWNLOADS",void 0,"Smart downloads"),e=rzM(J,g),N.yield(BLs(F,Y,Q,e),3);r=N.yieldResult;r.onResponseReceivedActions=
[zJ("REFRESH_DOWNLOADS")];return N.return(r)})},Uv7=function(F){var q,t;
return _.p(function(u){if(u.nextAddress==1)return u.yield(tX(F.JSC$18531_upliftPromise,F.store),2);q=u.yieldResult;t=hPT([V_P(q)]);return u.return(KZC(F,t))})},VS3=function(F){var q,t,u,J;
return _.p(function(g){if(g.nextAddress==1)return q={},t=$vQ(F.store.getState()),_.yj(q,_.Si,t),g.yield(tX(F.JSC$18531_upliftPromise,F.store,q,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);u=g.yieldResult;J={};_.yj(J,_.hNe,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:u}}}],targetId:"browse-feedFEwhat_to_watch"});return g.return({responseContext:{},onResponseReceivedActions:[J]})})},hPT=function(F){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:F}}}}]}}},Sss=function(F,q){var t,u;
return _.p(function(J){var g={contents:o4(q)};t=g&&g.contents?g:{};_.E("kevlar_modern_downloads_page")&&(t=Object.assign({},_.EXq(q),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));u={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:t}}}]}};return J.return(KZC(F,u))})},KZC=function(F,q){var t,u;
return _.p(function(J){if(J.nextAddress==1)return J.yield(F.JSC$18531_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3)return t=J.yieldResult,J.yield(JX(t),3);u=J.yieldResult;return J.return({responseContext:{},contents:q,topbar:u})})},BLs=function(F,q,t,u){var J,g;
return _.p(function(Y){if(Y.nextAddress==1)return Y.yield(F.JSC$18531_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return J=Y.yieldResult,Y.yield(JX(J),3);g=Y.yieldResult;var Q=Y.return;var e=t;var r=u;e=e===void 0?"":e;r=r===void 0?"":r;e={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:e}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.oD("SETTINGS",void 0,"Settings"),accessibilityText:_.oD("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:_.sf("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:r}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:e};
return Q.call(Y,{responseContext:{},contents:q,topbar:g,header:{pageHeaderRenderer:e}})})};var LZv=function(){this.moduleRegistry={};this.fetchCount=0};
LZv.prototype.isFetching=function(){return this.fetchCount>0};
var $f=function(F,q){F.moduleRegistry[q.toString()]={asyncId:q,isFetching:!1};return F};
LZv.prototype.JSC$18542_loadModules=function(){for(var F=this,q=new Map,t=[],u=_.X(_.US.apply(0,arguments)),J=u.next();!J.done;J=u.next()){J=J.value;var g=this.moduleRegistry[J];g?g.resolver?q.set(J,g.resolver):(g.resolver=new _.i1,q.set(J,g.resolver),t.push(g.asyncId),g.isFetching=!0):(g=new _.i1,q.set(J,g),g.resolve(void 0))}t.length&&(this.fetchCount+=1,_.Hr(_.WG.getMultipleAsync.apply(_.WG,_.mZ(t)).then(function(Y){for(var Q=0;Q<t.length;Q++){var e=Y[Q],r=F.moduleRegistry[t[Q].toString()];r.isFetching=
!1;r.resolver.resolve(e)}}).catch(function(Y){for(var Q=_.X(t),e=Q.next();!e.done;e=Q.next()){e=e.value;
var r=F.moduleRegistry[e.toString()];r.resolver=void 0;r.isFetching=!1;q.get(e.toString()).reject(Y)}}),function(){--F.fetchCount}));
return Promise.all([].concat(_.mZ(q.values())).map(function(Y){return Y.promise}))};_.dm=new _.pg("MODULE_REGISTRY_TOKEN");var fo9={},ao5=(fo9.rendered={priority:0,callback:function(F){a:{var q=void 0;try{var t;b:{if(_.oGM()){var u=_.Tj_(_.TQ()+"::pom");if(u){var J=new BG(u);break b}}J=void 0}var g=(t=J)==null?void 0:t.get("role_text");if(!g)break a;q={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:g}]}}}}}}catch(e){}q&&F.injector.resolve(_.gN).resolveCommand(q)}try{var Y=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(Y){var Q=JSON.parse(Y);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
Q&&F.injector.resolve(_.gN).resolveCommand(Q)}}catch(e){}}},fo9);var j2s,cK9={},F7D=(cK9.initialized={priority:10,callback:function(){j2s=MF()}},cK9.rendering={callback:function(F){var q;
return _.p(function(t){if(t.nextAddress==1)return t.yield(j2s,2);q=t.yieldResult;if(!q.endpoint)throw Error("wj`"+_.uu.location.href);WO(F,q);_.WA(t)})}},cK9);var qFD={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(_.mZ(_.E("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(F){var q=F.stack;if(q.includes("chrome://")||q.includes("chrome-extension://")||F.message.includes("chrome-extension://")||q.includes("moz-extension://")||q.includes("local.adguard.org")||q.includes("auctioneer3.50million.club")||q.includes("youtubedownloader")||q.includes("youtube_home_page")||q.includes("is_youtube_video_no_longer_available")||
q.includes("switchScreenSizeHack")||q.includes("yt_main_big_banner.js")||q.includes("YouTubeCenter.js")||q.includes("/mytube.js")||q.includes("JSON.parseWrapper")||q.includes("/inj_js/common.js")||q.includes("firebug-lite")||q.includes(".repl.co/")||q.includes("linkfix")||q.includes("playAfterAd")||F.message.includes("Access is denied for this document")&&q.includes("<anonymous>")||F.fileName==="user-script"||F.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
q.includes("<anonymous>"))return!0;if(q.includes("https://www.youtube.com"))return!1;F=q.split("\n");if(!F.length)return!1;if(F.length<=3&&q.includes("s.onloadeddata"))return!0;q=0;for(var t=_.X(F),u=t.next();!u.done;u=t.next())u=u.value,(u.includes("https://")||u.includes("http://"))&&q++;return q/F.length>.95},
weight:0},{callback:function(F){return F.message==="Unknown Error"&&F.name.indexOf("NS_")===0},
weight:100},{callback:function(F){if(!_.p4)return!1;var q=F.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||F.message.includes("available to complete this operation"),t=F.stack.includes("webcomponents")&&F.message==="Object doesn't support this action";F=F.message.includes("object that does not implement interface Element");return q||t||F},
weight:0},{callback:function(F){return F.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(F){return F.message==="Operation is not supported"&&(F.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(F){return F.stack.includes("eval code (eval (code:1:1)")||F.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(F){return F.message.includes("Permission denied")&&F.stack.includes("this.domHandler")?!0:F.name.includes("TypeError")&&F.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(F){if(!F.stack)return!1;var q=F.stack.trim().split("\n");q.length&&q[0].endsWith("Error: "+F.message)&&q.shift();q.length&&q[q.length-1].includes("at window.onerror (")&&q.pop();if(!q.length)return!0;if(F.message==="Script error.")return q[0].includes("www.youtube.com")||q.length>=2&&q[0].startsWith("at new")&&q[1].startsWith("at window.onerror");if(F.message==="Unexpected token")return!0;F=_.X(q);for(q=F.next();!q.done;q=F.next())if(q=q.value,!(q.includes("<anonymous>")||
q.startsWith("load@")||q.startsWith("global code@")||q.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(F){return F.message==="Cannot read property 'experiments'"&&F.stack.includes("/s/player/")},
weight:500},{callback:function(F){return F.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(F){return F.stack.includes("/embed.js")?(F.params&&F.params&&(F.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.E("use_error_suppression"))var F=_.bn("SUPPRESS_CLIENT_ERRORS",!1);else{if(F=_.rd)F=/Chrome\/(\d+)/.exec(_.NA()),F=(F?parseFloat(F[1]):NaN)>=66;F=!(F||_.RC&&_.Zf(65)||_.dN&&_.Zf(12.1)||qE&&_.Zf(79))}return F},
weight:500}]};var tAy={},u$J=(tAy.initialized={priority:10,callback:function(F){F.injector.addProvider({provide:bLr,useValue:F.root});F.injector.addProvider({provide:ihy,useValue:ECu});F.injector.addProvider({provide:kv9,useValue:qFD});var q={};F.injector.addProvider((q.provide=E7y,q.useFactory=function(t,u){return function(){lhf(t,u)}},q[Yc]=[ihy,
kv9],q));F.injector.addProvider({provide:yE,useClass:yE})}},tAy);var JWD={},sVs=(JWD.initialized={priority:3,callback:function(){var F;if(F=ij_()){F=F.replace("/",".");var q=_.TV();q.set("tz",F);q.save();F=!0}else F=!1;F||(F=_.TV(),F.set("utco",-Math.floor((new Date).getTimezoneOffset())),F.save())}},JWD);var gqs={},l4T=(gqs.initialized={priority:10,callback:function(F){F.injector.resolve(yE).start();F=_.jT();var q=_.yG("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.yG("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.yG("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.yG("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.pZ(_.cdu(),{mainAppWeb:Object.assign({},F,{pageType:q})});_.pZ(quC(),{mainAppWeb:Object.assign({},F,{pageType:q})});
_.pZ(tZo(),{mainAppWeb:F});_.pZ(uHo(),{mainAppWeb:F});tML(function(){_.QI(tZo(),"FAILURE");_.QI(uHo(),"FAILURE")});
LCM();f9o();erv()}},gqs);var Xny={},YF5=(Xny.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.y0("dl"),_.g7().processSignal("pcl");else{var F=function(){_.y0("dl");_.g7().processSignal("pcl");window.removeEventListener("load",F)};
window.addEventListener("load",F)}}},Xny);var pnw={},QV3=(pnw.rendering={priority:0,callback:function(){var F=_.g7();F.parkOrScheduleJob(function(){F.processSignal("eocs")},10,"eor",5E3)}},pnw);var ehD=function(){};
_.M(ehD,l9);
ehD.prototype.resolveCommand=function(F,q){var t,u,J,g,Y,Q,e,r;return _.p(function(N){J=(t=_.n(F,_.stJ))==null?void 0:(u=t.dialog)==null?void 0:u.commentReplyDialogRenderer;if(!J)throw new _.D0("No dialog in createCommentReplyDialogEndpoint");Y=(g=q.form)==null?void 0:g.event;if(!Y)throw new _.D0("Event not passed in when resolving command");Q=_.X(Y.composedPath());for(e=Q.next();!e.done;e=Q.next())if(r=e.value,r.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||r.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return r.showReplyDialog(J),N.return();
_.WA(N)})};var Lx=function(F){this.pageRequestService=F;this.JSC$18557_prefetchCoordinator=syJ()};
_.M(Lx,l9);Lx.prototype.resolveCommand=function(F){var q=this,t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1){t=_.n(F,buz);if((u=t)==null||!u.taskId)throw Error("xj");J=t.taskId;_.zg(Y,2);return Y.yield(_.bbf(q.pageRequestService,F,{},"").then(function(Q){if(!Q)throw Error("yj");},function(Q){throw Error("zj`"+Q);
}),4)}if(Y.nextAddress!=2)return XsD(q.JSC$18557_prefetchCoordinator,J),_.LE(Y,0);
g=_.Gg(Y);DK(q.JSC$18557_prefetchCoordinator,J,g);_.WA(Y)})};
Lx[Yc]=[nZ];var fx=function(F,q){this.innertubeTransportService=F;this.JSC$18561_commandHandler=q};
_.M(fx,l9);fx.prototype.resolveCommand=function(F){var q=this,t,u,J;return _.p(function(g){if(g.nextAddress==1){t=_.n(F,$CE);if(t.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||t.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")u=t.boolValue?2:1,_.kA.getInstance().setState(u,!0,!0);return g.yield(_.aI(q.innertubeTransportService,F),2)}J=g.yieldResult;ZsJ(q,J);_.WA(g)})};
var ZsJ=function(F,q){q.actions&&q.actions.forEach(function(t){F.JSC$18561_commandHandler.resolveCommand(t)})};
fx[Yc]=[_.da,_.gN];var a7={},Rh9=(a7.addToPlaylistEndpoint=Jx(Fj),a7.addToToastAction=Jx(Jm),a7.adsControlFlowOpportunityReceivedCommand=Jx(HR),a7.audioTrackSelectActionCommand=Jx(uL7),a7.backgroundAudioPlaybackCommand=Jx(RW),a7.captionLanguageSelectActionCommand=Jx(rW),a7.captionPickerEndpoint=Jx(wW),a7.changeMiniAppPlayStateCommand=Jx(qe),a7.changeTimelyActionVisibilityCommand=Jx(uD),a7.channelCreationFormEndpoint=Jx(BR),a7.clearLocationCommand=Jx(cR),a7.clearUrlParamCommand=Jx(tL),a7.copyLinkCommand=Jx(no),a7.copyTextEndpoint=
Jx(b0),a7.createCommentReplyDialogEndpoint=qqy(ehD),a7.createPlaylistServiceEndpoint=Jx(Me),a7.dismissDialogEndpoint=Jx(JL),a7.dismissPlayerOverlayCommand=Jx(iy),a7.entityUpdateCommand=Jx(C$),a7.feedbackEndpoint=Jx(U0),a7.getAnswerCommand=Jx(Rdv),a7.getPaymentsClientTokenCommand=Jx(lD),a7.getTranscriptEndpoint=Jx(s3),a7.googlePaymentBillingCommand=Jx(XU),a7.googlePaymentPurchaseManagerCommand=Jx(YS),a7.hideEngagementPanelEndpoint=Jx(sR),a7.hideSnackbarCommand=Jx(fo),a7.insertRichSectionCommand=Jx(f$),
a7.listMutationCommand=Jx(aS),a7.logGtmCommand=Jx(L$),a7.notifyDropdownOptionSelectedCommand=Jx(uy),a7.openAdAllowlistInstructionCommand=Jx(_.mb),a7.openOnePickAddVideoModalCommand=Jx(To),a7.persistSubscriptionsDisplayPreferencesCommand=Jx(xL),a7.pingingEndpoint=Jx($J),a7.playlistEditEndpoint=Jx(D5),a7.playlistVotingRefreshPopupCommand=Jx(Wp),a7.profileCardCommand=Jx(IS),a7.refreshPanelEndpoint=Jx(gW),a7.saveImageToDeviceEndpoint=Jx(yD),a7.scrollToSectionEndpoint=qqy(rEv),a7.seekToVideoTimestampCommand=
Jx(kL),a7.selectCountryCommand=Jx(AL),a7.setCookieCommand=Jx(vp),a7.setLocalStorageCommand=Jx(j7),a7.setPrefStorageEntryCommand=Jx(Hp),a7.setSettingEndpoint=Jx(fx),a7.sfvAudioItemPlaybackCommand=Jx(ER),a7.shareImageCommand=Jx(mK),a7.sharingProviderDataCommand=Jx($L),a7.showAudioTrackPickerActionCommand=Jx(edv),a7.showCaptionLanguageSelectActionCommand=Jx(zo),a7.showDialogCommand=Jx(YL),a7.showEngagementPanelEndpoint=Jx(po),a7.showSheetCommand=Jx(QQ),a7.showSnackbarCommand=Jx(aW),a7.showTransientPlayerScrimOverlayCommand=
Jx(oW),a7.submitFormWithValidationFlowCommand=Jx(K$),a7.talkToRecsDeselectCommand=Jx(cp),a7.talkToRecsNextCommand=Jx(FU),a7.talkToRecsSelectCommand=Jx(q_),a7.talkToRecsUpdateTextCommand=Jx(tm),a7.toggleEngagementPanelCommand=Jx(e7),a7.undoFeedbackEndpoint=Jx(hq),a7.updateEngagementPanelContentCommand=Jx(Z5),a7.updateUrlParamCommand=Jx(gn),a7.verifyCommand=Jx(BR),a7.webNativeShareCommand=Jx(by),a7.webSubmitFormCommand=Jx(OR),a7.ACK_PLAYABLES_3P_DATA_CONSENT=Jx(yQ),a7.CANCEL_NAVIGATION=Jx(Co),a7.COPY_SHARE_URL=
Jx(dW),a7.MINI_APP_EXIT_DIALOG_SEEN=Jx(UR),a7.MINI_APP_OPEN_URL=Jx(VQ),a7.REQUEST_MINI_APP_FULLSCREEN=Jx(S7),a7.RESUME_NAVIGATION=Jx(hL),a7.SHARE_PLAYABLE_WITH_HIGH_SCORE=Jx(Ko),a7.TELL_US_WHY=Jx(SE),a7);_.E("web_enable_prefetching_videos_on_home")&&(Rh9.prefetchWatchCommand=Jx(Lx),Rh9.registerTasksCommand=Jx(OZ));_.E("enable_share_panel_navigation_logging_fix_on_web")&&(Rh9.shareEntityServiceEndpoint=Jx(ly));var Kmw=Object.assign({},Rh9);var rWv={},NhQ=(rWv.initialized={priority:10,callback:q8_},rWv);var wn7={},iss=(wn7.initialized={callback:function(F){var q={},t={};n3P().install((q.document_disposed={callback:function(){_.E("finalize_all_timelines")?zQ$():Ho();RxC("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.IKP();var u=F.injector.resolve(yE);u.intervalId!==void 0&&(u.intervalId&&_.mI.cancelJob(u.intervalId),u.intervalId=void 0,--u.currentPartitionIndex,u=GHe(u),u>0&&xTx({mainAppWeb:_.jT(),survivalSli:{partitionMinute:u,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));npO(pC);QL!=null&&
QL.flush();Zn&&Zn.snapshotAndFlush();u=_.X(C9J.values());for(var J=u.next();!J.done;J=u.next())J.value.snapshotAndFlush()}},q),(t.flush_logs={callback:function(){_.H2()}},t))}},wn7);var k0T={},Eq3=(k0T.rendered={priority:0,callback:function(){var F=new $qC;F.increment("STARTED");if(_.bn("LOGGED_IN")&&!_.bn("IS_DBSC",!1)&&_.bn("SERVER_VERSION")!=="test"&&_.bn("SERVER_VERSION")!=="dev"&&!ien()&&!wfO()){F.increment("EXECUTING");var q=document.createElement("iframe");q.style.display="none";_.loC(q,2,_.d$("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.bn("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(q);F.increment("DONE")}}},
k0T);var zh9={},oqQ=(zh9.rendered={callback:function(){syJ().resume()}},zh9);var nq9={acknowledgeChannelTouStrikeCommand:xh(bD),addToPlaylistServiceEndpoint:xh(dA),addToPlaylistEndpoint:xh(dA),addUpcomingEventReminderEndpoint:xh(c3),browseEndpoint:xh(VC7),channelCreationFormEndpoint:xh(xS),channelCreationServiceEndpoint:xh(Am),claimLegacyYoutubeChannelEndpoint:xh(iD),clearSearchHistoryEndpoint:xh(hm),clearWatchHistoryEndpoint:xh(Ka),commerceActionCommand:An(Y3),createBackstagePostEndpoint:xh(ey),createBroadcastCommand:xh(FT),createCommentEndpoint:xh(D$),createCommentReplyEndpoint:xh(G7),
createLiveChatPollEndpoint:xh(ql),createPlaylistServiceEndpoint:xh(V1),crossAccountChannelTransferEndpoint:xh(fa),deleteLiveChatMessageCommand:xh(tS),deletePlaylistEndpoint:xh(Uz),deleteVideoEndpoint:xh(sZ),dismissalEndpoint:xh(yB),feedbackEndpoint:xh(Ca),flagEndpoint:xh(ff),getAccountSwitcherEndpoint:xh(La),verifyCommand:xh(QB),getAccountsListInnertubeEndpoint:xh(jy),getCommentsFromInboxCommand:xh(Ml),getDownloadActionCommand:xh(x0),getFlowCommand:An(Sy),getKidsBlocklistPickerCommand:xh(aT),getNotificationMenuEndpoint:xh(hdQ),
getPaymentInstrumentsParamsCommand:xh(rk),getPaymentsClientTokenCommand:An(Y3),getPdgBuyFlowCommand:xh(y1),getReportFormEndpoint:xh(jw),getSearchInVideoCommand:xh(qW),getAnswerCommand:xh(FB),getSurveyCommand:xh(J5),getTranscriptEndpoint:xh(l$),getPostVideoPreviewEndpoint:xh(Rk),decorateMessageEndpoint:xh(Z$),likeEndpoint:xh(v3),liveChatActionEndpoint:xh(gA),liveChatEndpoint:xh(sz),liveChatItemContextMenuEndpoint:xh(uU),liveChatPurchaseMessageEndpoint:xh(lU),liveChatReplayEndpoint:xh(JS),manageLiveChatUserEndpoint:xh(Y0),
metadataUpdateCommand:xh(oT),moderateLiveChatEndpoint:xh(pf),modifyChannelNotificationPreferenceEndpoint:xh(Wu),notificationOptOutEndpoint:xh(Oz),openSuperStickerBuyFlowCommand:xh(XT),performCommentActionEndpoint:xh(na),playlistEditEndpoint:xh(hS),playlistEditorEndpoint:xh(Sw),recordNotificationInteractionsEndpoint:xh(Pu),reelWatchEndpoint:xh(Kf),refreshPanelEndpoint:xh(vu),removeUpcomingEventReminderEndpoint:xh(Q1),resolveLocationCommand:xh(zR),revealBusinessEmailCommand:xh(kS),searchEndpoint:xh(_.Krv),
sendLiveChatMessageEndpoint:xh(ew),sendLiveChatVoteEndpoint:xh(Zy),setSettingEndpoint:xh(Ik),shareEntityServiceEndpoint:An($S),sharingProviderDataCommand:xh(u$),showEngagementPanelEndpoint:xh(IT),showMoreDrawerCommand:xh(mG),showSheetCommand:xh($0),showDialogCommand:xh(Hu),subscribeEndpoint:xh(H3),transcriptSubmitCaptionCorrectionCommand:xh(gk),undoFeedbackEndpoint:xh(VB),unsubscribeEndpoint:xh(mN),updateBackstagePostEndpoint:xh(N_),updateCommentEndpoint:xh(O3),updateCommentReplyEndpoint:xh(W3),updateCommentsSettingsEndpoint:xh(P3),
updateCreatorChannelInnertubeCommand:xh(z7),updateKidsBlacklistEndpoint:xh(cu),updateEngagementPanelContentCommand:xh(bU),updatePdgFeatureEnablementCommand:xh(Cf),updatedMetadataEndpoint:xh(nf),validateChannelHandleCommand:xh(ok),updateChannelPageSettingsEndpoint:xh(E3),verifyAgeEndpoint:xh(U3),watchEndpoint:An(mS),whitelistEditEndpoint:xh(XB),ypcCancelRecurrenceEndpoint:xh(px),ypcCompleteTransactionEndpoint:xh(Q4),ypcFixInstrumentEndpoint:xh(ZK),ypcGetCartEndpoint:xh(eI),ypcGetOffersEndpoint:xh(R7),
ypcHandleTransactionEndpoint:An(NW),ypcLogWalletAnalyticDataEndpoint:xh(wk),ypcOffersEndpoint:xh(i$),ypcPauseSubscriptionCommand:xh(k3),ypcRedeemCodeEndpoint:xh(EZ),ypcResumeSubscriptionCommand:xh(zc),ypcUpdateFopEndpoint:xh(ZK)},jI={},MA9=(jI.GET_ACCOUNT_MENU=xh(ak),jI.GET_NOTIFICATIONS_MENU=xh(Svs),jI.GET_NOTIFICATIONS_INBOX=xh(TR),jI.GET_UNSEEN_NOTIFICATION_COUNT=xh(Dy),jI.GET_USER_MENTION_SUGGESTIONS=xh(rn),jI.LOAD_GUIDE=xh(Un3),jI.SUBMIT_FEEDBACK=xh(dn),jI),cq={},Th9=(cq.CONTINUATION_REQUEST_TYPE_BROWSE=
xh(wn),cq.CONTINUATION_REQUEST_TYPE_SEARCH=xh(t5),cq.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=xh(bW),cq.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=xh(B3),cq.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=xh(T7),cq.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=xh(M_),cq.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=xh(Lf),cq.CONTINUATION_REQUEST_TYPE_GET_PANEL=xh(AS),cq),G0T={player:An(mS),watchNext:xh($Q)},DaJ={player:An(mS),reelItemWatch:xh(Kf),reelWatchSequence:xh(Bu)},W75={watchEndpoint:An(yY)},Os9=
{commandEndpointMap:nq9,signalEndpointMap:MA9,continuationEndpointMap:Th9,watchEndpointMap:G0T,reelWatchEndpointMap:DaJ,streamingEndpointMap:W75};var PQJ,xa9,AW3;_.vqh=((xa9=(PQJ=window).matchMedia)==null?void 0:(AW3=xa9.call(PQJ,"(prefers-reduced-motion: reduce)"))==null?void 0:AW3.matches)||!document.startViewTransition;var I4v={},Hs3={disableAllTransitions:_.vqh,ignoredErrors:(I4v.DOCUMENT_HIDDEN=!0,I4v.WINDOW_SIZE_CHANGED=!0,I4v.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,I4v),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var ma5=_.LZ("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),$aJ=function(F){this.viewTransitionCoordinator=F;this.isBrowseTransitionEnabled=_.pE("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.E("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.E("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.E("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){F=_.YE("web_page_transition_exit_ms");var q=_.YE("web_page_transition_wait_ms"),
t=_.YE("web_page_transition_enter_ms"),u=_.YE("web_page_transition_watch_exit_ms"),J=_.YE("web_page_transition_watch_wait_ms"),g=_.YE("web_page_transition_watch_enter_ms");if(!isNaN(F)||!isNaN(q)||!isNaN(t))if(F=I4$(ma5,F,q,t,u,J,g))q=document.createElement("style"),q.textContent=ePA(F),document.head.appendChild(q)}};
$aJ.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var F={};this.viewTransitionCoordinator.registerElement(document.documentElement,(F.slide="root-slide",F["lockup-to-watch"]="root-lockup-to-watch",F["learning-journey"]="root-learning-journey",F))}};
_.fiJ=function(F,q){F.isLockupToWatchTransitionEnabled&&F.isLockupThumbnailRegistrationEnabled&&(F.registeredLockupThumbnail?F.lockupThumbnailRegisteredFromWatchEndpoint?_.bz(new _.D0("Lockup thumbnail registration order is incorrect.")):_.bz(new _.D0("Lockup thumbnail already registered.")):(F.registeredLockupThumbnail=q,_.bsh(F,q)))};
_.bsh=function(F,q){var t={};F.viewTransitionCoordinator.registerElement(q,(t["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",t),!0)};
$aJ[Yc]=[En7];var tQo={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 JZf=["videoPrimaryInfoRenderer","title"],sZu=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var yW9;yW9=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.CQy=_.ld(function(F){F=_.sk(F,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var q=F.data,t=F.playlistData,u=F.expanded,J=F.onExpandClick,g=F.isReadyToResume,Y=function(){var N;return!((N=t())==null||!N.contents)},Q=function(){var N=t();
return N&&N.totalVideos&&N.currentIndex!==void 0?N.currentIndex+1+" / "+N.totalVideos:""};
F=_.zq(function(){_.F2(_.sV().resolve(_.m4));return!1});
var e=_.zq(function(){Y()&&J&&J()}),r={};
return _.Z("ytd-miniplayer-info-bar",{class:_.Ec("ytdMiniplayerInfoBarHost",(r.ytdMiniplayerInfoBarHasPlaylistData=Y,r)),"on:click":e},_.Z("div",{class:"ytdMiniplayerInfoBarContent"},_.Z("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":F},_.Z(_.rv,{text:function(){var N=q();var w=t();if(w==null?0:w.contents){var k;N=(k=_.Epo(w))==null?void 0:k.title}else N=N==null?void 0:N.miniplayerTitle;return g2C(N)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Z("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.Z(_.R,{cond:g,then:function(){return _.Z($Nz,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:yW9})}}),_.Z("h1",null,_.Z(_.rv,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var N=q();var w=t();N=g()?{simpleText:_.oD("CONTINUE_WATCHING",void 0,"Continue watching")}:(w==null?0:w.contents)?w.titleText:N==null?void 0:N.miniplayerSubtitle;return g2C(N)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Z(_.R,{cond:function(){return!!Q()&&!g()},
then:function(){return _.Z("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.Z("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.Z("span",null,Q))}}))),_.Z(_.R,{cond:Y,
then:function(){return _.Z("div",{class:"ytdMiniplayerInfoBarExpand"},_.Z(_.x9,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(N){J&&(J(),N.stopPropagation())}}},
iconName:function(){return u()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ue");var dah;dah=_.ld(function(F){return _.Z("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.Z(_.x9,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:F.onTap}},
iconName:"yt-icons:close"}))},"Ve");
_.VAv=_.ld(function(F){F=_.sk(F,{playabilityStatus:void 0,isDisabled:!1});var q=F.size,t=F.playabilityStatus,u=F.isDisabled,J=_.FG("div");F=_.X(_.N3(void 0,void 0,"bJr0Se"));var g=F.next().value,Y=F.next().value;F=_.dC(_.Q7);var Q=!1,e=function(){return q().height<=0};
_.AO(function(){var k=q(),z=e(),T=g();T&&!z&&T.setInternalSize(k.width,k.height)},"OUOyKb");
_.AN(function(){var k,z,T;return _.p(function(P){if(P.nextAddress==1){k=_.sV().resolve(_.m4);z=k.getPlayerElement();if(!k.isMiniplayerActive()||!z||!J.value)return P.return();z.appendTo(J.value);return P.yield(z.getPlayerPromise(),2)}T=P.yieldResult;T.setSizeStyle(!1,!0);Y(T);_.WA(P)})});
_.vj(function(){r()});
_.AO(function(){var k=g();if(k)if(u()){var z=k.getPlayerState();(Q=z===-1||z===1||z===3)&&k.pauseVideo()}else r()},"KKHe5");
var r=function(){if(Q){Q=!1;var k;(k=g())==null||k.playVideo()}},N=_.zq(function(){_.F2(_.sV().resolve(_.m4))}),w={};
return _.Z("ytd-miniplayer-player-container",{class:_.Ec("ytdMiniplayerPlayerContainerHost",(w.ytdMiniplayerPlayerContainerHidden=e,w.ytdMiniplayerPlayerContainerHostShortsPip=F,w)),style:_.Mo({width:function(){return q().width+"px"},
height:function(){return q().height+"px"}})},_.Z("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:J}),_.Z(_.R,{cond:function(){return!!t()&&!_.Ih$(t())},
then:function(){return _.Z(fU1,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var k;return((k=t())==null?void 0:k.errorScreen)||null},
status:function(){var k;return((k=t())==null?void 0:k.status)||null}})}}),_.Z(_.R,{cond:u,
then:function(){return _.Z("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":N},_.Z(dah,{onTap:function(){_.sV().resolve(_.m4).close()}}))}}))},"We");_.Ua3=_.ld(function(F){var q=F.toastData;var t=_.FG("ytd-miniplayer-toast");F=_.X(_.np(function(){return!!q()}));
var u=F.next().value,J=F.next().value;F=_.X(_.N3(!1,void 0,"xkrBze"));var g=F.next().value,Y=F.next().value,Q=function(){var N;return _.q1((N=q())==null?void 0:N.data.title)};
_.v_(function(){_.jq.requestAvailability();q()&&J(!1)});
var e,r;_.AO(function(){u()&&(_.Q0(t.value,"iron-announce",{text:q().label+" "+Q()}),e&&_.mI.cancelJob(e),e=_.mI.addLowPriorityJob(function(){Y(!0)},2500))},"OTdL1e");
_.AO(function(){g()&&(r&&_.mI.cancelJob(r),r=_.mI.addLowPriorityJob(function(){J(!1);Y(!1)},300))},"yybqib");
F={};return _.Z("ytd-miniplayer-toast",{el:t,class:_.Ec("ytdMiniplayerToastHost",(F.ytdMiniplayerToastOpening=function(){return u()},F.ytdMiniplayerToastClosing=function(){return g()},F))},_.Z(_.R,{cond:function(){var N;
return(N=q())==null?void 0:N.data},
then:function(N){return _.Z(K9x,{className:"ytdMiniplayerToastThumbnail",data:N,width:78})}}),_.Z("div",{class:"ytdMiniplayerToastInfo"},_.Z("div",{class:"ytdMiniplayerToastLabel"},function(){var N;
return(N=q())==null?void 0:N.label}),_.Z("div",{class:"ytdMiniplayerToastTitle"},Q)))},"Xe");var Nyv;var kEo=null;var hhv=_.ld(function(F){var q=F.progressState;var t=F.multiMarkersPlayerBarRenderer;var u=F.progressBarWidth;var J=function(){return n2M(t())},g=function(){return GEP(q())},Y=function(){return u()*(q().playedTime/q().videoDuration)};
return _.Z("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.Z(_.Gn,{each:J},function(Q,e){return _.Z(SFQ,{modifiedProps:g,chapters:J,index:e,playedProgressWidth:Y,backgroundGradientPosition:function(){var r=g(),N=J(),w=e(),k=Y();return(r.playedTime-IL(_.n(N[w],vO)))/r.playedTime*k}})}))},"Ye"),SFQ=_.ld(function(F){var q=F.modifiedProps;
var t=F.chapters;var u=F.index;var J=F.playedProgressWidth;var g=F.backgroundGradientPosition;F={};F=_.Ec("ytChapteredProgressBarChapteredPlayerBarChapter",(F.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return Y().isScrubbing},F.ytChapteredProgressBarHoveredMacroMarker=function(){return Y().scrubberHovering},F.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return Y().videoPosition==="seen"},F));
var Y=function(){return DSA(q(),t(),u())},Q=function(){var e=q();
var r=t(),N=u();if(DSA(e,r,N).videoPosition!=="active")e=0;else{var w=IL(_.n(r[N],vO));e=(e.playedTime-w)/((IL(_.n(r[N+1],vO))||e.videoDuration)-w)}return e};
return _.Z("div",{class:F,style:_.Mo({width:function(){var e=q(),r=t(),N=u(),w=_.n(r[N],vO);r=_.n(r[N+1],vO);return(r?IL(r)-IL(w):e.videoDuration-IL(w))/e.videoDuration*100+"%"},
"background-color":function(){a:{var e=Y();switch(e.videoPosition){case "pending":e=e.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":e=e.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:e=""}}return e},
"background-size":function(){return(Wiy(Y())?J():"")+"px"},
"background-position-x":function(){return(Wiy(Y())?g():"")+"px"}})},_.Z("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var e=q(),r=t(),N=u();if(DSA(e,r,N).videoPosition==="seen")var w=0;else w=IL(_.n(r[N],vO)),r=IL(_.n(r[N+1],vO))||e.videoDuration,e=e.videoDuration*e.percentLoaded,w=r<=e?1:w>=e?0:(e-w)/(r-w);return"width: "+w*100+"%"}}),_.Z("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Mo({width:function(){return Q()*100+"%"},
"background-size":function(){return(Wiy(Y(),Q())?J():"")+"px"},
"background-position-x":function(){return(Wiy(Y(),Q())?g():"")+"px"}})}))},"Ze");var K7D=function(F,q){q=q===void 0?rCr:q;var t,u=[],J,g=!1;return function(){var Y=_.US.apply(0,arguments);if(g&&t===this&&q(Y,u))return J;J=F.apply(this,Y);g=!0;t=this;u=Y;return J}}(function(F){var q=F.heatMarkers,t=F.minHeightDp===void 0?0:F.minHeightDp,u=F.maxHeightDp===void 0?60:F.maxHeightDp;
var J=J===void 0?!1:J;var g=1E3/q.length;F=[];F.push({x:0,y:100});for(var Y=0;Y<q.length;Y++){var Q=void 0,e=((Q=_.n(q[Y],V9E))==null?void 0:Q.heatMarkerIntensityScoreNormalized)||0;Q=(Y+.5)*g;e=100-_.AX(e*100,t/321*100,u/321*100);Y!==0||J||F.push({x:0,y:e});F.push({x:Q,y:e});Y===q.length-1&&F.push({x:1E3,y:e})}F.push({x:1E3,y:100});q="";for(t=0;t<F.length;t++)J=F[t],t===0?J="M "+J.x.toFixed(1)+","+J.y.toFixed(1):(u=A2f(F[t-1],F[t-2],J),g=A2f(J,F[t-1],F[t+1],!0),J=" C "+(u.x.toFixed(1)+","+u.y.toFixed(1)+
" "+g.x.toFixed(1)+","+g.y.toFixed(1)+" "+J.x.toFixed(1)+","+J.y.toFixed(1))),q+=J;return q});var Bh3=_.ld(function(F){var q=F.progressBarProps;var t=F.config;var u={};F=_.Ec("ytHeatSeekerHost",(u.ytHeatSeekerHighContrast=F.highContrast,u));var J=function(){return QZq(t().chapterData)};
return _.Z("yt-progress-bar-heatseeker",{class:F,style:function(){var g;return"height: 320px; display: "+(q().isDragging&&((g=J())==null?0:g.heatMarkers)?"block":"none")}},_.Z(_.R,{cond:J,
then:function(g){return _.Z(_.R,{cond:function(){return g().heatMarkers},
then:function(){return _.Z("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.Z("path",{d:function(){return K7D(g())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"$e");var L79=_.ld(function(F){var q=F.progressBarProps;var t=F.config;F={};F=_.Ec("ytProgressBarLineProgressBarLine",(F.ytProgressBarLineProgressBarLineRounded=function(){return t().rounded},F.ytProgressBarLineProgressBarLineBottomInset=function(){return t().position===2},F));
return _.Z("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.Z("div",{class:F},_.Z("div",{class:"ytProgressBarLineProgressBarBackground"}),_.Z("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+q().percentLoaded*100+"%"}}),_.Z("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var u=q();return"width: "+(u.videoDuration?_.AX(u.hoveredTime/u.videoDuration,0,1):0)*100+"%"}}),_.Z("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+XVv(q())*100+"%"}})))},"af");
L79.idomCompat=!0;var f47=_.ld(function(F){var q=F.progressBarProps;var t=F.playheadData;var u=F.interpolateDotPosition;var J=F.hidePlayhead;F={};var g=_.Ec("ytProgressBarPlayheadProgressBarPlayheadDot",(F.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return q().isDragging},F.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!q().isDragging&&J()},F));
return _.Z("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Mo({"margin-left":function(){return Y8P(q())*100+"%"},
transform:function(){return"translateX(-"+(u()?Y8P(q())*12:6)+"px)"}})},_.Z(_.R,{cond:function(){var Y;
return(Y=_.Jv(t)())==null?void 0:Y.playheadImage},
then:function(Y){var Q={};return _.Z("div",{class:_.Ec("ytProgressBarPlayheadProgressBarPlayheadCustom",(Q.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return q().isDragging},Q.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!q().isDragging&&J()},Q)),
style:_.Mo({"transform-origin":function(){return(u()?Y8P(q())*20:10)+"px center"}})},_.Z(_.sc,{data:Y,
alt:"","aria-hidden":"true"}))},
else:function(){return _.Z("div",{class:g,style:_.Mo({"transform-origin":function(){return(u()?Y8P(q())*12:6)+"px center"}})})}}))},"bf");
f47.idomCompat=!0;var q6=function(F,q,t,u,J,g){this.getProgressBarRect=F;this.updateProgressBarRect=q;this.getFilmstripYPosition=t;this.setFineScrubbingDraggedTime=u;this.updateFilmStripDraggedYDistance=J;this.resetFilmStripYOffset=g;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.LH(this.onThrottledSeek,100,this)},a4T=function(F,q,t){return function(u){F.handleClick(u,q(),t())}},Fgv=function(F,q){return function(t){jVQ(F,
t,cWT(t),q())}},qPD=function(F,q){return function(t){jVQ(F,t,{x:t.clientX,
y:t.clientY},q())}},JGw=function(F,q,t){return function(u){var J=q(),g=t();
uNv(F,u,cWT(u),J,g,!0);if(g.onTouchMove)g.onTouchMove(J)}},gWh=function(F,q,t){return function(u){sXC(F,u,q(),t())}},lWh=function(F,q){return function(){F.handleMouseLeave(q())}},Xd7=function(F,q,t){return function(){var u=q(),J=t();
tR(F,u,J);if(J.onTouchEnd)J.onTouchEnd(u)}},YP9=function(F,q,t){return function(){var u=q(),J=t();
tR(F,u,J);if(J.onTouchEnd)J.onTouchEnd(u)}},pdC=function(F,q,t){return function(){tR(F,q(),t())}},QXv=function(F){return function(q){if(q.keyCode===39||q.keyCode===38){var t,u;
(t=F())==null||(u=t.playerApi)==null||u.seekBy(5,void 0,void 0,72)}else if(q.keyCode===37||q.keyCode===40){var J,g;(J=F())==null||(g=J.playerApi)==null||g.seekBy(-5,void 0,void 0,71)}}},eBh=function(F,q,t){return function(u){!t().disableScrubbing&&F.startPosition&&sXC(F,u,q(),t())}},Zrv=function(F,q,t){return function(){if(!t().disableScrubbing)if(F.startPosition){var u=q(),J=t();
tR(F,q(),t());if(J.onTouchEnd)J.onTouchEnd(u)}else q().setState({isDragging:!1})}},cWT=function(F){F=F.touches[0];
return{x:F.clientX,y:F.clientY}},sXC=function(F,q,t,u){if(q.buttons!==1){if(q.movementX||q.movementY)q.preventDefault(),q.stopPropagation(),F=RBv(F,t,q.clientX),t.setState({isHovering:!0,
hoveredTime:F*t.videoDuration})}else rG7(t),uNv(F,q,{x:q.clientX,y:q.clientY},t,u,!1)};
q6.prototype.handleMouseLeave=function(F){rG7(F)};
var rG7=function(F){F.isHovering&&F.setState({isHovering:!1,hoveredTime:0})},jVQ=function(F,q,t,u){F.startPosition||(F.startPosition=t,F.updateProgressBarRect(),F.controlsWereVisibleBeforeDragging=u.controlsVisible,q.stopPropagation(),_.E("medium_progress_bar_modification")||q.preventDefault())},uNv=function(F,q,t,u,J,g){if(F.startPosition)if(g&&J.isInlinePlayback&&F.startPosition&&!F.hasDraggedTheMinimumDistance&&Math.abs(t.y-F.startPosition.y)>Math.abs(t.x-F.startPosition.x))tR(F,u,J);
else if(q.preventDefault(),q.stopPropagation(),u.videoDuration&&(F.startPosition&&!F.hasDraggedTheMinimumDistance&&(F.hasDraggedTheMinimumDistance=Math.abs(t.x-F.startPosition.x)>=1),J.enableFineScrubbing&&(F.startPosition&&(F.isDraggedForFineScrubbing=-(t.y-F.startPosition.y)>=60),!F.startPosition||t.y>=F.startPosition.y||(u.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:O0o(u.draggedTime,u,J.chapterData)}),F.setFineScrubbingDraggedTime(u.draggedTime),F.updateFilmStripDraggedYDistance(F.startPosition.y,
t.y,u))),F.hasDraggedTheMinimumDistance)){q=RBv(F,u,t.x);if(F.isDraggedForFineScrubbing){var Y;(Y=u.playerApi)==null||Y.pauseVideo();u.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:u.draggedTime,filmStripXDistance:O0o(q*u.videoDuration,u,J.chapterData)})}J.enableFineScrubbing&&(!J.enableFineScrubbing||F.getFilmstripYPosition(u)<68)||u.setState({draggedTime:q*u.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:F.controlsWereVisibleBeforeDragging});var Q;(Q=
J.cancelAutohideControlsFn)==null||Q.call(J)}},tR=function(F,q,t){var u=t.enableFineScrubbing&&q.fineScrubbingActiveState!=="off";
if(q.isDragging||u){u={isDragging:!1,playedTime:q.draggedTime,controlsVisible:F.controlsWereVisibleBeforeDragging};t.enableFineScrubbing&&q.fineScrubbingActiveState!=="on"&&(F.resetFilmStripYOffset(),u.fineScrubbingActiveState="off");var J=J===void 0?kEo:J;var g=_.yb(0);if(g&&J){var Y=Math.round(q.playedTime*1E3),Q=Math.round(q.draggedTime*1E3);Y>2147483647||Q>2147483647||_.FE(g,J,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(Y),endMediaTimeMs:String(Q),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}q.setState(u);
F.seekThrottle.fire(q.draggedTime,q,7);_.E("mweb_new_progress_bar_play_on_seek")&&F.resumeVideo(q);t.unmuteOnSeek&&(t=q.playerApi,q.volumeMuted&&(t==null||t.unMute()))}else q.setState({controlsVisible:!q.controlsVisible}),(g=t.triggerAutohideControlsAfterDelayFn)==null||g.call(t);F.startPosition=null;F.hasDraggedTheMinimumDistance=!1;F.isDraggedForFineScrubbing=!1;F.controlsWereVisibleBeforeDragging=!1};
q6.prototype.handleClick=function(F,q,t){this.updateProgressBarRect();F.stopPropagation();F=RBv(this,q,F.clientX)*q.videoDuration;q.setState({playedTime:F});if(q.playerState!==2){var u;(u=t.triggerAutohideControlsAfterDelayFn)==null||u.call(t)}this.seekThrottle.fire(F,q,7)};
var RBv=function(F,q,t){F=F.getProgressBarRect(q);return _.AX(0,(t-F.left)/F.width,1)};
q6.prototype.resumeVideo=function(F){if(F.draggedTime<F.videoDuration){var q;(q=F.playerApi)==null||q.playVideo()}};
q6.prototype.onThrottledSeek=function(F,q,t){if(q=q.playerApi){var u;if((u=q.getVideoData())==null?0:u.isLive)u=this.getProgressState(q),F+=(u==null?void 0:u.seekableStart)||0;q.seekTo(F,void 0,void 0,void 0,t)}};
q6.prototype.getProgressState=function(F){var q=F==null?void 0:F.getPresentingPlayerType();return F==null?void 0:F.getProgressState(q)};var ir5,wdQ,k47,zBh,Noy,oW7,nW7,MrD,To9;ir5=_.ld(function(F){var q=F.progressBarProps;var t=F.config;var u=F.progressBarWidthPx;var J=F.chapterData;var g=Irt(q,function(){return t().isShortsPage}),Y=function(){return!q().isHovering&&!t().isShortsPage};
F={};var Q=_.Ec("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(F.ytPlayerStoryboardHostMwebShorts=function(){return t().isShortsPage&&!1},F));
return _.Z("yt-player-storyboard",null,_.Z(_.R,{cond:function(){return q().isDragging||q().isHovering},
then:function(){return _.Z(_.R,{cond:g,then:function(e){return _.Z(_.R,{cond:Y,then:function(){return _.Z("div",{class:Q,"aria-hidden":"true"},_.Z(Noy,{props:q,config:t,isBigboard:!0,chapterData:J}))},
else:function(){return _.Z(wdQ,{props:q,frame:e,config:t,progressBarWidthPx:u,chapterData:J})}})}})}}))},"cf");
_.EWs=_.ld(function(F){var q=F.progressBarProps;var t=Irt(q,F.isShortsPage);return _.Z("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.Z(_.R,{cond:function(){return q().isDragging||q().isHovering},
then:function(){return _.Z(_.R,{cond:t,then:function(u){return _.Z(k47,{frame:u,props:q,isBigboard:!0})}})}}))},"df");
wdQ=_.ld(function(F){var q=F.props;var t=F.frame;var u=F.config;var J=F.progressBarWidthPx;F=F.chapterData;var g={};g=_.Ec("ytPlayerStoryboardHost",(g.ytPlayerStoryboardHostMwebShorts=function(){return u().isShortsPage&&!1},g.ytPlayerStoryboardHostInlinePlayer=function(){return u().isInlinePlayer},g.ytPlayerStoryboardHostFadeIn=function(){return u().useFadeInAnimation},g));
return _.Z("div",{class:g,"aria-hidden":"true",style:function(){var Y=q(),Q=Pgu(t()),e=J();Y=xSW(Y)/Y.videoDuration;var r=e*Y,N=Q/2+6;Q=e-(Q/2+6);return"left: "+(r<=N?N/e*100:r>=Q?Q/e*100:Y*100)+"%"}},_.Z(_.R,{cond:function(){var Y=q();
return!(u().isShortsPage&&Y.videoDuration<15)},
then:function(){return _.Z(k47,{frame:t,props:q,isBigboard:!1})}}),_.Z(Noy,{props:q,
config:u,isBigboard:!1,chapterData:F}))},"ef");
k47=_.ld(function(F){var q=F.frame;var t=F.props;var u=F.isBigboard;var J=function(){var Q,e;return(e=(Q=t().playerApi)==null?void 0:Q.getVideoContentRect())!=null?e:{width:0,height:0}},g=function(){return Pgu(q())},Y=function(){var Q=q();
return Q?Q.height/Q.rows:0};
F={};F=_.Ec((F.ytPlayerStoryboardBigboardImageWrapper=u,F.ytPlayerStoryboardStoryboardImageWrapper=function(){return!u()},F));
return _.Z("div",{class:F,style:function(){return"width: "+(u()?J().width:g())+"px; height: "+(u()?J().height:Y())+"px;"}},_.Z(zBh,{frame:q,
storyboardWidth:g,storyboardHeight:Y,storyboardScale:function(){return(u()?J().width:g())/g()}}))},"ff");
zBh=_.ld(function(F){var q=F.frame;var t=F.storyboardWidth;var u=F.storyboardHeight;var J=F.storyboardScale;var g=function(){var Y=q().row,Q=q().column,e=t(),r=u(),N=J();return{left:-Q*e*N,top:-Y*r*N}};
return _.Z("img",{src:function(){return q().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+g().left+"px; top: "+g().top+"px; width: "+q().width*J()+"px; height: "+q().height*J()+"px;"}})},"gf");
Noy=_.ld(function(F){var q=F.props;var t=F.config;var u=F.isBigboard;var J=F.chapterData;F={};F=_.Ec("ytPlayerStoryboardMetadata",(F.ytPlayerStoryboardMetadataBigboard=u,F));return _.Z("div",{class:F},_.Z(_.R,{cond:u,then:function(){return _.Z(_.ln,null,_.Z(oW7,{props:q,config:t}),_.Z(_.R,{cond:function(){a:{var g=q();var Y=t(),Q=J(),e;if((Y==null?0:Y.activeChapter)&&((e=_.n(Y==null?void 0:Y.activeChapter,vO))==null?0:e.title))g=!0;else{Y=_.X(eLq(Q));for(Y=Y.next();!Y.done;Y=Y.next()){g=(Y=_.n(Y.value,
Sbw))&&AZy(g,Y);break a}g=!1}}return g},
then:function(){return _.Z(nW7,{props:q,config:t,isBigboard:!0,chapterData:J})}}))},
else:function(){return _.Z(_.ln,null,_.Z(nW7,{props:q,config:t,isBigboard:!0,chapterData:J}),_.Z(oW7,{props:q,config:t}))}}))},"hf");
oW7=_.ld(function(F){var q=F.props;var t=F.config;F={};F=_.Ec("ytPlayerStoryboardTimestamp",(F.ytPlayerStoryboardTimestampShorts=function(){return t().isShortsPage},F.ytPlayerStoryboardTimestampIsHovering=function(){return q().isHovering||t().isShortsPage&&!0},F));
return _.Z("div",{class:F},_.Z(_.ln,null,function(){return _.v2_(xSW(q()))}))},"jf");
nW7=_.ld(function(F){var q=F.props;var t=F.config;var u=F.isBigboard;var J=F.chapterData;F={};u=_.Ec("ytPlayerStoryboardTitle",(F.ytPlayerStoryboardTitleBigboard=u,F));return _.Z("div",{class:u},_.Z(_.R,{cond:function(){return!t().isShortsPage},
then:function(){return _.Z(MrD,{props:q,activeChapter:function(){return t().activeChapter},
chapterData:J})}}))},"kf");
MrD=_.ld(function(F){var q=F.props;var t=F.activeChapter;var u=F.chapterData;return _.Z(_.ln,null,_.Z(_.Gn,{each:function(){return eLq(u())},
keyBy:"INDEX"},function(J){return _.Z(_.ln,null,_.Z(_.R,{cond:function(){return _.n(J(),Sbw)&&AZy(q(),_.n(J(),Sbw))},
then:function(){return _.Z(To9,{timedMarker:function(){return _.n(J(),Sbw)}})}}))}),_.Z(_.R,{cond:function(){var J;
return t()&&((J=_.n(t(),vO))==null?void 0:J.title)},
then:function(J){return _.Z(_.rv,{text:J,noPreWrap:!0})}}))},"lf");
To9=_.ld(function(F){var q=F.timedMarker;return _.Z(_.ln,null,_.Z("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.Z(_.Tq,{icon:function(){return q().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.Z(_.rv,{text:function(){return q().label},
noPreWrap:!0}))},"mf");_.G4v=_.ld(function(F){var q=F.progressBarProps;var t=F.playheadData;var u=F.config;F=_.FG("yt-progress-bar");var J=_.FG("div"),g=_.FG("div"),Y=_.X(_.N3({width:0,left:0},void 0,"WloVn")),Q=Y.next().value,e=Y.next().value,r=function(){g.value&&e(g.value.getBoundingClientRect())},N=function(){Q().width<=0&&r();
return Q()};
sT("resize",r);var w=new q6(N,function(){},function(){return 0},function(){},function(){},function(){}),k=function(){return q()};
Y=_.X(_.N3(!1,void 0,"u8BZZb"));var z=Y.next().value,T=Y.next().value;Y=_.zq(function(){T(!0);u().position===2?setTimeout(function(){r()},100):r()});
var P=_.zq(function(){T(!1);lWh(w,k)()}),v=_.zq(function(m$){u().doSeekOnClick&&a4T(w,k,u)(m$);
return!1}),H=_.zq(function(m$){Fgv(w,k)(m$);
return!1}),d=_.zq(function(m$){qPD(w,k)(m$);
return!1}),a=_.zq(function(m$){JGw(w,k,u)(m$);
return!1}),S=_.zq(function(m$){gWh(w,k,u)(m$);
return!1}),K=_.zq(function(){Xd7(w,k,u)();
return!1}),h=_.zq(function(){YP9(w,k,u)();
return!1}),c=_.zq(function(){pdC(w,k,u)();
return!1}),rf=_.zq(function(m$){QXv(k)(m$);
return!1});
sT("mousemove",eBh(w,k,u));sT("mouseup",Zrv(w,k,u));_.v_(function(){E2W(J.value);T(!1);r();Zrv(w,k,u)()});
var Zv={};Zv=_.Ec("ytPlayerProgressBarHost",function(){return u().className},(Zv.ytPlayerProgressBarHostReadOnly=function(){return u().disableScrubbing},Zv.ytPlayerProgressBarHostHidden=function(){return u().hideProgressBar&&!z()},Zv.ytPlayerProgressBarHostLowerPlayer=function(){return u().position===0},Zv.ytPlayerProgressBarHostBottomEdge=function(){return u().position===1},Zv.ytPlayerProgressBarHostBottomInset=function(){return u().position===2},Zv.ytPlayerProgressBarHostCustom=function(){return u().position===
3},Zv));
var kP={},n3=_.Ec("ytPlayerProgressBarBackground",(kP.ytPlayerProgressBarBackgroundHide=function(){return u().position===2&&!z()&&!q().isDragging},kP));
kP={};kP=_.Ec("ytPlayerProgressBarDragContainer",(kP.ytPlayerProgressBarDragContainerBottomEdge=function(){return u().position===1},kP));
var o_={};o_=_.Ec("ytPlayerProgressBarProgressBar",(o_.ytPlayerProgressBarProgressBarInset=function(){return u().position===2},o_.ytPlayerProgressBarProgressBarInsetMinimized=function(){return u().position===2&&!z()&&!q().isDragging},o_));
var df=function(){return Math.floor(XVv(q())*100)};
return _.Z("yt-progress-bar",{el:F,class:Zv},_.Z(_.R,{cond:function(){return u().position===2},
then:function(){return _.Z("div",{class:n3})}}),_.Z("div",{el:J,
"on:click":v,"on:touchstart":H,"on:touchmove":a,"on:mouseenter":Y,"on:mousedown":d,"on:mouseleave":P,"on:mousemove":S,"on:mouseup":h,"on:touchend":K,"on:touchcancel":c,"on:keydown":rf,class:kP,role:"slider","aria-valuenow":df,"aria-valuetext":function(){return df()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return q().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.oD("SEEK_SLIDER")},_.Z("div",{el:g,class:o_},_.Z(Bh3,{progressBarProps:q,config:u,highContrast:function(){return!!u().isInlinePlayback}}),_.Z(_.R,{cond:function(){return u().chapterData&&Z0M(u().chapterData)},
then:function(){return _.Z(hhv,{progressState:q,multiMarkersPlayerBarRenderer:function(){return u().chapterData},
progressBarWidth:function(){return Q().width}})},
else:function(){return _.Z(L79,{progressBarProps:q,config:u})}}),_.Z(f47,{progressBarProps:q,
playheadData:t,interpolateDotPosition:function(){return u().position!==2},
hidePlayhead:function(){return u().playheadDotBehavior===1&&!z()}}))),_.Z(ir5,{progressBarProps:q,
config:function(){return{activeChapter:TyM(q(),u().chapterData),getProgressBarWidthPx:function(){return N().width},
isShortsPage:!!u().isShortsPage,isInlinePlayer:!!u().isInlinePlayback,useFadeInAnimation:!!u().isInlinePlayback}},
progressBarWidthPx:function(){return Q().width},
chapterData:function(){return u().chapterData}}))},"nf");
_.G4v.idomCompat=!0;Object.assign({},_.RL3(),{setState:function(){},
domMeasurements:{},appApi:_.lrP(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Dqy;
_.Wg7=_.ld(function(){var F,q=(F=_.HO(H0o().playerApi))!=null?F:void 0;F=_.X(_.N3(!1,void 0,"HLFBmb"));var t=F.next().value,u=F.next().value;F=_.X(_.N3(!1,void 0,"lHH9bc"));var J=F.next().value,g=F.next().value;F=_.X(_.N3(!1,void 0,"zsY7yd"));var Y=F.next().value,Q=F.next().value;F=_.X(_.N3(!1,void 0,"KeHQgc"));var e=F.next().value,r=F.next().value;F=_.X(_.N3(0,void 0,"gLLCj"));var N=F.next().value,w=F.next().value;F=_.X(_.N3(0,void 0,"s3RYkf"));var k=F.next().value,z=F.next().value;F=_.X(_.N3(!1,void 0,
"Dn608e"));var T=F.next().value,P=F.next().value;F=_.X(_.N3(0,void 0,"AnkH1b"));var v=F.next().value,H=F.next().value;F=_.X(_.N3(0,void 0,"QYNL0b"));var d=F.next().value,a=F.next().value;F=_.X(_.N3("",void 0,"Yzw45d"));var S=F.next().value,K=F.next().value;F=_.X(_.N3(-1,void 0,"iiVI0c"));var h=F.next().value,c=F.next().value,rf=_.zy(function(){var Zv={controlsVisible:t(),isOverlayHidden:J(),shouldWaitToHideControls:Y(),isDragging:e(),isHovering:T(),videoDuration:v(),playedTime:d(),videoId:S(),draggedTime:k(),
hoveredTime:N(),playerState:h()};return Object.assign({},_.RL3(),Zv,{domMeasurements:{},setState:function(kP){kP.controlsVisible!==void 0&&u(kP.controlsVisible);kP.isOverlayHidden!==void 0&&g(kP.isOverlayHidden);kP.shouldWaitToHideControls!==void 0&&Q(kP.shouldWaitToHideControls);kP.isDragging!==void 0&&r(kP.isDragging);kP.isHovering!==void 0&&P(kP.isHovering);kP.draggedTime!==void 0&&z(kP.draggedTime);kP.hoveredTime!==void 0&&w(kP.hoveredTime);kP.videoDuration!==void 0&&H(kP.videoDuration);kP.playedTime!==
void 0&&a(kP.playedTime);kP.videoId!==void 0&&K(kP.videoId);kP.playerState!==void 0&&c(kP.playerState)},
appApi:_.lrP(),playerApi:q})},void 0,"ZW7y9");
_.AN(function(){q==null||q.addEventListener("onVideoProgress",i0t(rf));q==null||q.addEventListener("onVideoDataChange",wVy(rf));q==null||q.addEventListener("onStateChange",rZq(rf))});
_.vj(function(){if(q==null?0:q.isReady())q==null||q.removeEventListener("onVideoProgress",i0t(rf)),q==null||q.removeEventListener("onVideoDataChange",wVy(rf)),q==null||q.removeEventListener("onStateChange",rZq(rf))});
return _.Z("desktop-shorts-player-controls",null,_.Z(Dqy,{playerControlsProps:rf}))},"of");
Dqy=_.ld(function(F){var q=F.playerControlsProps;return _.Z("div",{class:"desktopShortsPlayerControlsHost"},_.Z(_.G4v,{progressBarProps:q,config:function(){return{isShortsPage:!0,hideProgressBar:q().videoDuration<30&&q().playerState!==2&&!q().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"pf");_.Orw=_.ld(function(F){function q(Zv){Zv!==0||w()?Zv>50&&(w()||!z())?(k(!1),T(!0)):Zv<=50&&(w()||z())&&(k(!1),T(!1)):k(!0)}
function t(Zv,kP){var n3;return _.p(function(o_){if(o_.nextAddress==1)return o_.yield(_.NZ(),2);n3=o_.yieldResult;kP&&n3?(n3.unMute(!0),Zv&&($S_(Zv,n3.getVolume()),v(n3.getVolume()))):n3&&(n3.mute(!0),Zv&&$S_(Zv,0));_.WA(o_)})}
function u(Zv){var kP,n3;return _.p(function(o_){if(o_.nextAddress==1)return o_.yield(_.NZ(),2);kP=o_.yieldResult;n3=50;kP&&(n3=kP.getVolume(),kP.isMuted()?$S_(Zv,0):$S_(Zv,n3));v(n3);_.WA(o_)})}
var J=F.orientation;F=_.FG("desktop-shorts-volume-controls");var g=_.FG("button"),Y=_.qL("input"),Q=_.X(_.N3(!1,void 0,"MvN0Tc")),e=Q.next().value,r=Q.next().value,N=_.X(_.N3(!1,void 0,"aSjsEb"));Q=N.next().value;N=N.next().value;var w=Q,k=N;N=_.X(_.N3(!0,void 0,"FUh46d"));Q=N.next().value;N=N.next().value;var z=Q,T=N;Q=_.X(_.N3(50,void 0,"yPke4d"));var P=Q.next().value,v=Q.next().value;Q=_.zy(function(){var Zv=w();return _.E("web_shorts_keyboard_enable_mute_shortcut")?Zv?_.oD("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.oD("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Zv?_.oD("UNMUTE_VOLUME",void 0,"Unmute"):_.oD("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
N=_.zy(function(){var Zv=w(),kP=z();return{sources:[{clientResource:{imageName:Zv?_.E("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":kP?_.E("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.E("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var H=_.zy(function(){var Zv=P();return w()?Zv+"% volume muted":Zv+"% volume"},void 0,"xZsRmc"),d=_.zy(function(){return J()==="vertical_down"},void 0,"FVqYmb");
_.v_(function(){function Zv(){r(!0)}
function kP(){r(!1)}
Y&&Y.value&&(Y.value.addEventListener("focus",Zv),Y.value.addEventListener("focusout",kP),u(Y.value).then(function(){q(Number(b0u(Y.value)))}));
g&&g.value&&(g.value.addEventListener("focus",Zv),g.value.addEventListener("focusout",kP));_.vj(function(){var n3;Y==null||(n3=Y.value)==null||n3.removeEventListener("focus",Zv);var o_;Y==null||(o_=Y.value)==null||o_.removeEventListener("focusout",kP);var df;g==null||(df=g.value)==null||df.removeEventListener("focus",Zv);var m$;g==null||(m$=g.value)==null||m$.removeEventListener("focusout",kP)})});
var a=_.zq(function(){if(Y&&Y.value){var Zv=Number(b0u(Y.value));mSA(Zv);v(Zv);Y.value.style.setProperty("--gradient-percent",Zv+"%");q(Zv)}return!1}),S=_.zq(function(){r(!0)}),K=_.zq(function(){Y&&Y.value&&(t(Y.value,w()),k(!w()));
return!1}),h={},c={},rf={};
return _.Z("desktop-shorts-volume-controls",{"on:pointerleave":_.zq(function(){r(!1)}),
class:_.Ec("ytdDesktopShortsVolumeControlsHost",(h.ytdDesktopShortsVolumeControlsHostVertical=d,h.ytdDesktopShortsVolumeControlsHostExpanded=e,h)),el:F},_.Z(_.R,{cond:function(){return!d()},
then:function(){var Zv={};return _.Z("div",{class:_.Ec("ytdDesktopShortsVolumeControlsBackgroundScrim",(Zv.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=e,Zv))})}}),_.Z("div",{class:_.Ec((c.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=d,c))},_.Z("button",{"aria-label":Q,
title:Q,el:g,"on:click":K,"on:pointerenter":S,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},N?_.Z(_.sc,{data:N,alt:Q,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.Z("div",{class:_.Ec("ytdDesktopShortsVolumeControlsSliderContainer",(rf.ytdDesktopShortsVolumeControlsSliderContainerExpanded=e,rf.ytdDesktopShortsVolumeControlsSliderContainerVertical=d,rf.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=d,rf.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return e()&&d()},rf))},_.Z("input",{"aria-label":_.oD("VOLUME"),
title:_.oD("VOLUME"),el:Y,"on:input":a,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":P,"aria-valuetext":H,"aria-valuemin":0,"aria-valuemax":100})))},"qf");_.Paw=_.ld(function(F){var q=F.data;return _.Z("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.Z(_.Ds,{command:function(){return q().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.Z(_.R,{cond:function(){return q().iconName},
then:function(t){return _.Z(_.Tq,{icon:t})}}),_.Z("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return q().text}),_.Z(_.R,{cond:function(){return q().showEndChevron},
then:function(){return _.Z(_.Tq,{icon:"CHEVRON_RIGHT"})}})))},"rf");var xq9=_.ld(function(F){var q=F.data;var t=F.overlayDensity;F={};return _.Z("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.Z(_.Tl,{data:function(){return q().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(u){var J=u.data;
return _.Z(_.qi,{data:function(){return(t==null?void 0:t())===1?Object.assign({},J(),{avatar:{avatarViewModel:Object.assign({},_.n(J().avatar,_.d0),{avatarImageSize:"AVATAR_SIZE_M"})}}):J()}})}}),_.Z(_.Tl,{data:function(){return q().avatarStackViewModel}},{avatarStackViewModel:function(u){return _.Z(_.tP,{data:u.data})}}),_.Z(_.rv,{className:_.Ec("ytReelChannelBarViewModelChannelName",(F.ytReelChannelBarViewModelChannelNameLarge=function(){return(t==null?void 0:t())===1},F)),
text:function(){return q().channelName},
linkInheritColor:!0,userInput:!0}),_.Z("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.Z(_.Tl,{data:function(){return q().subscribeButtonViewModel}},{subscribeButtonViewModel:function(u){var J=u.data;
return _.Z(_.FO,{data:function(){return(t==null?void 0:t())===1?Object.assign({},J(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},J().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):J()},
isOverlay:!1})},
buttonViewModel:_.AB})),_.Z("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.Z(_.Tl,{data:function(){var u,J;return(J=_.n((u=q())==null?void 0:u.sponsorButtonViewModel,uZ1))==null?void 0:J.sponsorButton}},{buttonViewModel:function(u){return _.Z(_.AB,{data:u.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"sf");var AG3=_.ld(function(F){var q=function(){var u;return(F==null?void 0:(u=F.overlayDensity)==null?void 0:u.call(F))===1?22:16},t={};
return _.Z("yt-reel-multi-format-link-view-model",{class:_.Ec("ytReelMultiFormatLinkViewModelHost",(t.ytReelMultiFormatLinkViewModelHostTall=!0,t.ytReelMultiFormatLinkViewModelHostLarge=function(){var u;return((u=F.overlayDensity)==null?void 0:u.call(F))===1},t))},_.Z(_.Ds,{ariaLabel:function(){return F.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return F.data().command}},_.Z("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.Z(_.R,{cond:function(){return F.data().icon},
then:function(u){return _.Z(_.sc,{data:u,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:q})}}),_.Z(_.rv,{text:function(){return F.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"tf");
AG3.idomCompat=!0;var vWQ=_.ld(function(F){var q=F.data;var t=F.overlayDensity;var u=_.FG("yt-shorts-suggested-action-view-model");F=_.X(_.N3(!1,void 0,"xDqzhe"));var J=F.next().value,g=F.next().value;F=_.X(_.N3(!1,void 0,"LI9CFd"));var Y=F.next().value,Q=F.next().value,e=function(){return q().isMultiLineSa},r=_.nH(KN3,function(){var S,K;
return(K=(S=q().toggleableContent)==null?void 0:S.entityKey)!=null?K:""}),N=function(){var S,K,h;
return(h=q().toggleableContent)!=null&&h.entityKey?(K=(S=r())==null?void 0:S.value)!=null?K:!1:!1},w=function(){var S,K,h,c,rf,Zv,kP,n3,o_,df,m$;
return q().toggleableContent?N()?(S=q().toggleableContent)==null?void 0:S.toggledData:(K=q().toggleableContent)==null?void 0:K.untoggledData:{primaryText:(n3=(h=q().defaultContent)==null?void 0:h.primaryText)!=null?n3:q().text,secondaryText:(c=q().defaultContent)==null?void 0:c.secondaryText,onTapCommand:(o_=(rf=q().defaultContent)==null?void 0:rf.onTapCommand)!=null?o_:q().onTapCommand,icon:(df=(Zv=q().defaultContent)==null?void 0:Zv.icon)!=null?df:q().icon,image:(m$=(kP=q().defaultContent)==null?
void 0:kP.image)!=null?m$:q().image}},k=function(){return e()?q().trailingTapTarget:void 0},z=function(S,K){return function(){return J()?K:S}},T=function(){return{leadingSection:z("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(t==null?void 0:t())===1?z("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):z("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:z("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:z("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
F={};F=_.Ec((F.ytShortsSuggestedActionViewModelStaticHost=function(){return!e()},F.ytShortsSuggestedActionViewModelDynamicHost=e,F.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return e()&&Y()},F.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return e()&&!Y()},F));
_.v_(function(){if(e()){var S=0,K;if((K=q().animationParams)==null?0:K.shouldExpand){var h,c;S=((c=(h=q().animationParams)==null?void 0:h.expansionDelaySecs)!=null?c:0)*1E3}var rf,Zv=((rf=q().animationParams)==null?0:rf.shouldExpand)?setTimeout(function(){g(!0)},S):void 0,kP,n3;
S=((kP=q().animationParams)==null?0:kP.visibilityDelaySecs)?((n3=q().animationParams)==null?NaN:n3.visibilityDelaySecs)*1E3:0;var o_=setTimeout(function(){Q(!0)},S);
_.vj(function(){Zv&&clearTimeout(Zv);clearTimeout(o_)})}});
var P=function(S){_.L9(S,Object.assign({},{form:{element:u.value}}))},v=_.zq(function(){var S,K=(S=w())==null?void 0:S.onTapCommand;
K&&P(K)}),H=_.zq(function(){var S,K;
if(S=(K=k())==null?void 0:K.onTapCommand)return P(S),!1}),d=_.Mo({"vertical-align":"bottom",
"border-radius":function(){var S;return e()?((S=q().defaultContent)==null?0:S.isCircleImage)?"50%":"4px":"0px"},
width:function(){var S,K,h;return e()&&((S=q().defaultContent)==null?0:S.imageSize)?((h=(K=q().defaultContent)==null?void 0:K.imageSize)!=null?h:24)+"px":null},
height:function(){var S,K,h;return e()&&((S=q().defaultContent)==null?0:S.imageSize)?((h=(K=q().defaultContent)==null?void 0:K.imageSize)!=null?h:24)+"px":null}}),a={};
return _.Z("yt-shorts-suggested-action-view-model",{class:F,el:u},_.Z("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.Z("button",{class:_.Ec(function(){return e()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var S;
return(S=q().useFullRoundedBorder)!=null&&S?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!k()&&e()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":e()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var S;
return(S=q().disableFixedHeight)!=null&&S?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(a.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(t==null?void 0:t())===1},a)),
"on:click":v},_.Z(_.WP,{model:{color:4}}),_.Z("div",{class:_.Ec(function(){return e()?T().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.Z(_.R,{cond:function(){var S;
return(S=w())==null?void 0:S.image},
then:function(S){return _.Z(_.sc,{data:S,alt:"",className:function(){return e()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:d})}}),_.Z(_.R,{cond:function(){var S,K;
return(S=w())==null?void 0:(K=S.icon)==null?void 0:K.iconType},
then:function(S){return _.Z(_.Tq,{icon:S,active:N,className:function(){return e()?J()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.Z("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.Z(_.R,{cond:function(){var S;
return(S=w())==null?void 0:S.primaryText},
then:function(S){return _.Z("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.Z(_.rv,{text:S}))}}),_.Z(_.R,{cond:function(){var S;
return(S=w())==null?void 0:S.secondaryText},
then:function(S){return _.Z("div",{class:function(){return T().secondaryText()}},_.Z(_.rv,{text:S}))}}))),_.Z(_.R,{cond:k,
then:function(S){return _.Z("div",{class:function(){return T().trailingSection()},
"aria-label":function(){var K;return(K=S().a11yLabel)!=null?K:""},
"on:click":H,role:"button",tabindex:0},_.Z(_.WP,{model:{color:4}}),_.Z(_.Tq,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"uf");var IWQ=_.ld(function(F){var q=F.data;var t=F.overlayDensity;var u=_.FG("yt-shorts-video-title-view-model");F=_.zq(function(Y){if(_.$C(_.mp(Y),u.value,["A".toString()]))return!1;(Y=q().truncatedTextOnTapCommand)&&_.L9(Y);return!1});
var J={},g={};return _.Z("yt-shorts-video-title-view-model",{el:u,class:_.Ec("ytShortsVideoTitleViewModelHost",(J.ytShortsVideoTitleViewModelHostClickable=function(){return!!q().truncatedTextOnTapCommand},J)),
"on:click":F},_.Z("h2",{class:_.Ec("ytShortsVideoTitleViewModelShortsVideoTitle",(g.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(t==null?void 0:t())===1},g))},_.Z(_.rv,{text:function(){return q().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0})))},"vf");_.HrT=_.ld(function(F){var q=F.data;var t=F.overlayDensity;var u=function(){return(t==null?void 0:t())===1};
return _.Z("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.Z(_.Tl,{data:function(){return q().metadataItems}},{badgeViewModel:function(J){J=J.data;
return _.Z("div",{class:_.Ec(function(){return u()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.Z(_.Tj,{data:J}))},
playerDisclosureViewModel:function(J){J=J.data;return _.Z("div",{class:_.Ec(function(){return u()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.Z(_.Paw,{data:J}))},
shortsSuggestedActionViewModel:function(J){J=J.data;return _.Z("div",{class:_.Ec(function(){return u()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.Z(vWQ,{data:J,
overlayDensity:t}))},
reelChannelBarViewModel:function(J){J=J.data;var g={};return _.Z("div",{class:_.Ec("ytReelMetapanelViewModelMetapanelItem",(g.ytReelMetapanelViewModelExpansive=function(){return u()},g))},_.Z(xq9,{data:J,
overlayDensity:t}))},
reelMultiFormatLinkViewModel:function(J){J=J.data;var g={};return _.Z("div",{class:_.Ec("ytReelMetapanelViewModelMetapanelItem",(g.ytReelMetapanelViewModelExpansive=function(){return u()},g))},_.Z(AG3,{data:J,
overlayDensity:t}))},
shortsVideoTitleViewModel:function(J){J=J.data;var g={};return _.Z("div",{class:_.Ec("ytReelMetapanelViewModelMetapanelItem",(g.ytReelMetapanelViewModelExpansive=function(){return u()},g))},_.Z(IWQ,{data:J,
overlayDensity:t}))},
reelSoundMetadataViewModel:function(J){J=J.data;var g={};return _.Z("div",{class:_.Ec("ytReelMetapanelViewModelMetapanelItem",(g.ytReelMetapanelViewModelExpansive=function(){return u()},g))},_.Z(_.Ol9,{data:J,
overlayDensity:t}))},
toggleButtonViewModel:function(J){J=J.data;var g={};return _.Z("div",{class:_.Ec("ytReelMetapanelViewModelMetapanelItem",(g.ytReelMetapanelViewModelExpansive=function(){return u()},g))},_.Z(_.j9,{data:J}))}}))},"wf");var mq7=_.ld(function(F){var q=_.sk(F,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),t=q.size,u=q.onTap,J=q.disabled,g=q.tooltipText;return _.Z("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Z(_.x9,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:t(),disabled:J(),tooltipText:g(),onTap:u}},
iconName:F.iconType}))},"xf"),$q5=_.ld(function(F){function q(N){N.stopPropagation();
N.code==="ArrowUp"?(N.preventDefault(),dS3(Q.value)):N.code==="ArrowDown"?(N.preventDefault(),VQy(Q.value)):N.code==="KeyM"?yZq():(N.code==="KeyK"||N.code==="Space")&&Cg3(e())}
var t=_.sk(F,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});F=t.previousButtonDisabled;var u=t.nextButtonDisabled,J=t.data,g=t.playabilityStatus,Y=t.previewThumbnail,Q=_.FG("ytd-shorts-miniplayer-overlay"),e=_.dC(_.sgM),r;_.AN(function(){(r=_.Cs(Q.value))&&r.addEventListener("keydown",q)});
_.vj(function(){var N;(N=r)==null||N.removeEventListener("keydown",q)});
t=function(){var N,w,k;return(N=J())==null?void 0:(w=N.reelPlayerOverlayRenderer)==null?void 0:(k=w.likeButton)==null?void 0:k.likeButtonRenderer};
return _.Z("ytd-shorts-miniplayer-overlay",{el:Q,class:"ytdShortsMiniplayerOverlayHost"},_.Z("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Mo({"background-image":function(){var N=Y();return N?'url("'+_.RI(N.thumbnails)+'")':""}})}),_.Z("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.Z("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.Z(mq7,{iconType:function(){var N=e();
return N===2||N===-1||N===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Cg3(e())},
tooltipText:function(){var N=e();return N===1||N===3?_.oD("PLAYER_LABEL_PAUSE"):_.oD("PLAYER_LABEL_PLAY")}}),_.Z(_.Orw,{orientation:"horizontal_right"})),_.Z("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.Z(mq7,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:F,onTap:function(){dS3(Q.value)},
tooltipText:_.oD("PREVIOUS_VIDEO_LABEL")}),_.Z(mq7,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:u,onTap:function(){VQy(Q.value)},
tooltipText:_.oD("NEXT_VIDEO_LABEL")}),_.E("web_shorts_pip_like_button")?_.Z("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Z(WA1,{buttonTooltipPosition:"left",data:t,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.Z("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.Z(_.R,{cond:function(){var N,w;return _.n((N=J())==null?void 0:(w=N.reelPlayerOverlayRenderer)==null?void 0:w.metapanel,
_.c1j)},
then:function(N){return _.Z("div",{class:_.Ec("ytdShortsMiniplayerOverlayInteractive")},_.Z(_.HrT,{data:N}))}})),_.Z("div",{class:_.Ec("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var N;return!((N=J())==null||!N.adsOverlay)||g()&&!v_v(g())}},_.Z("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.Z(_.Wg7,null)))),_.Z(_.R,{cond:function(){var N=J(),w,k;
N=_.n(N==null?void 0:(w=N.adsOverlay)==null?void 0:(k=w.fulfillmentContent)==null?void 0:k.fulfilledLayout,hKx);return _.n(N==null?void 0:N.renderingContent,j8O)},
then:function(N){return _.Z("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.Z(ryj,{data:N}))}}))},"yf");var USq=_.ld(function(){var F=_.X(_.N3(new _.Ma(NaN,NaN),void 0,"HSMFk")),q=F.next().value,t=F.next().value;F=_.X(_.N3(!1,void 0,"uaAxwf"));var u=F.next().value,J=F.next().value,g=_.X(_.N3(!1,void 0,"nVSwef"));F=g.next().value;var Y=g.next().value,Q=_.sV().resolve(_.m4).miniplayerPropSignalMap[0],e=Q.data,r=Q.shortsData,N=Q.nextButtonDisabled,w=Q.shortsPreviewThumbnail,k=Q.previousButtonDisabled,z=Q.externalPlaylistData;g=Q.toastData;var T=Q.playabilityStatus,P=Q.isDisabled,v=Q.playerVe,H=Q.closeVe;
Q=_.dC(_.Q7);_.c2("yt-pip-window-resized",function(K){t(K)});
_.c2("yt-activate-pip-miniplayer",function(){return _.p(function(K){Y(!0);_.WA(K)})});
var d=function(){var K;return!((K=z())==null||!K.contents)&&u()},a=function(){var K=q(),h=!!e(),c=d();
K=K.clone();h&&(K.height-=76);c&&(K.height-=285);return K},S=function(){J(!u())};
_.AO(function(){var K=v(),h=_.yb(11),c=_.b7(11);h&&c&&K&&(_.Bo(h,c,K),c=H())&&(_.LJ(h,K,[c]),_.aD(h,[c]))},"HPkp0c");
return _.Z("ytd-pip-container",{class:"ytdPipContainerHost"},_.Z(_.R,{cond:F,then:function(){return _.Z(_.VAv,{isDisabled:P,playabilityStatus:T,size:a})}}),_.Z(_.R,{cond:e,
then:function(){return _.Z(_.CQy,{data:e,expanded:u,onExpandClick:S,playlistData:z})}}),_.Z(_.R,{cond:d,
then:function(){return _.Z("div",{class:"ytdPipContainerPlaylistPanel"},_.Z(_.GMe,{data:z,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.Z(_.R,{cond:Q,
then:function(){return _.Z($q5,{data:r,nextButtonDisabled:N,previousButtonDisabled:k,playabilityStatus:T,previewThumbnail:w})}}),_.Z("div",{class:"ytdPipContainerToast"},_.Z(_.Ua3,{toastData:g})))},"zf");var uH=function(F,q){var t=this;this.pipController=F;this.JSC$18694_clientRoot=q;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=uvo();this.watchPipEnabled=_.E("web_watch_pip");this.shortsPipEnabled=_.E("web_shorts_pip");this.JSC$18694_watchWhileEnabled=_.E("kevlar_watch_while_v2");this.miniplayerServiceActionMap={"yt-downloaded-video-deleted":this.onDownloadedVideoDeleted.bind(this),"yt-show-miniplayer-command":this.onShowMiniplayerCommand.bind(this)};
this.watchPipMode=this.shortsPipMode=this.watchWhileMode=this.miniplayerToPipMode=this.userDeactivatedWatchWhile=this.isReadyToResume=this.hasPlaylistData=this.isSingleOptionSurveyActive=!1;_.yL(_.u1(),FSP,function(u){t.isSingleOptionSurveyActive=u});
this.JSC$18694_onPlayerPlayVideo=this.JSC$18694_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);_.aJ(_.B2.getInstance(),this.miniplayerServiceActionMap,this.JSC$18694_clientRoot);F.pictureInPictureSupported()&&_.IJ("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},d6x,Boh,Uq9,LgC,fW9,jdJ;
uH.prototype.handleMediaSessionPipActivation=function(){var F=this,q;return _.p(function(t){_.$A().mediaSessionPipActivation=!0;q=_.sV().resolve(_.JC);return q.isOnWatch()&&F.watchPipEnabled?(_.$A().watchPipActivation=!0,_.br9(F,q.data),t.jumpTo(0)):q.isOnShorts()&&F.shortsPipEnabled?(_.$A().shortsPipActivation=!0,_.yGy(F),t.jumpTo(0)):F.isMiniplayerActive()&&F.watchPipEnabled&&!F.watchWhileMode?t.yield(Ca5(F),0):t.jumpTo(0)})};
var Ca5=function(F){var q,t,u,J;return _.p(function(g){if(g.nextAddress==1)return q=!F.miniplayerToPipMode,t=F.playerElement,u=F.miniplayerData,J=F.watchResponse,g.yield(F.deactivate(),2);if(g.nextAddress!=3)return q?(_.$A().mediaSessionPipActivation=!0,_.$A().watchPipActivation=!0):_.$A().miniplayerButtonActivation=!0,g.yield(F.activate(t,u,J),3);F.miniplayerToPipMode=q;_.WA(g)})};
uH.prototype.onDownloadedVideoDeleted=function(F){var q,t=_.n((q=this.miniplayerData)==null?void 0:q.watchEndpoint,_.Fw),u,J;t&&((u=this.watchResponse)==null?void 0:(J=u.playerResponse)==null?void 0:J.offlineState)!==void 0&&(q=t.videoId)&&F&&q===F&&this.close()};
uH.prototype.onShowMiniplayerCommand=function(F){var q=this,t,u,J,g,Y,Q,e,r,N,w,k;return _.p(function(z){switch(z.nextAddress){case 1:return t=_.n(F,VZE),J=(u=t)==null?void 0:u.miniplayerCommand,g=_.n(J,_.Fw),J&&g&&!q.active?z.yield(_.KC.getInstance(),2):z.return();case 2:return Y=z.yieldResult,z.yield((Q=Y)==null?void 0:Q.get("yt-miniplayer-shown-video-id"),3);case 3:e=z.yieldResult;r=g.videoId;if(!r||e===r)return z.return();N=_.sV().resolve(_.JC);if(N.isOnWatch())return _.bz(Error("Ij")),z.return();
w={channelItem:{externalId:btoa(r)}};q.readyToResumeVe=_.r0(121253,void 0,void 0,w);_.$A().showMiniplayerCommandActivation=!0;return z.yield(_.c2C(q,J,!0),4);case 4:return q.active&&(_.JR(q,{readyToResumeVe:q.readyToResumeVe,isReadyToResume:!0}),q.isReadyToResume=!0),z.yield((k=Y)==null?void 0:k.set("yt-miniplayer-shown-video-id",g.videoId),5);case 5:q.readyToResumeVe=void 0,_.WA(z)}})};
uH.prototype.init=function(F){this.miniplayerEl?_.bz(new _.D0("MiniplayerService already initialized.")):this.miniplayerEl=F};
uH.prototype.isInitialized=function(){var F=!!this.miniplayerEl;F||_.bz(new _.D0("MiniplayerService used before initialized."));return F};
_.br9=function(F,q){if(F.isInitialized()){var t=_.xf(q.response,!1,q.playerResponse),u=_.sV().resolve(_.JC).getPlayerFromWatch();_.$A().currentEndpoint=t.watchEndpoint||null;F.activate(u,t,q)}};
_.yGy=function(F){if(F.isInitialized()){var q=_.sV().resolve(_.JC).getPlayerFromShorts();F.activate(q)}};
d6x=function(F,q){var t;(t=!F.isInitialized())||(t=_.sV().resolve(_.JC).isOnWatch()&&F.watchPipMode,t=!(F.isMiniplayerActive()&&(_.$A().userActivation||_.$A().lockupActivation||t)));if(t)return!1;dqh(F,q)?_.F2(F):jdJ(F,q);return F.watchPipMode?!_.sV().resolve(_.JC).isOnWatch():!0};
uH.prototype.isMiniplayerActive=function(){return this.active};
var dqh=function(F,q){var t;q=(t=_.n(q,_.Fw))==null?void 0:t.videoId;var u,J;F=(J=_.n((u=F.miniplayerData)==null?void 0:u.watchEndpoint,_.Fw))==null?void 0:J.videoId;return q!=null&&q===F};
uH.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Q0(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.ec(this.miniplayerEl,"yt-navigate-home-action"))};
_.c2C=function(F,q,t,u){t=t===void 0?!1:t;var J,g,Y;return _.p(function(Q){switch(Q.nextAddress){case 1:if(F.active){Q.jumpTo(2);break}J=_.sV().resolve(_.JC);if(Y=(g=F.playerElement)!=null?g:J.getPlayerFromWatch()){Q.jumpTo(3);break}return Q.yield(_.sV().resolve(_.Qg),4);case 4:Y=J.getPlayerFromWatch();case 3:if(!Y){_.bz(Error("Kj"));Q.jumpTo(2);break}return Q.yield(F.activate(Y,u),2);case 2:return F.active?Q.yield(jdJ(F,q,t),0):Q.return()}})};
uH.prototype.activate=function(F,q,t){var u=this,J,g,Y,Q,e,r,N,w,k;return _.p(function(z){switch(z.nextAddress){case 1:if(!u.isInitialized())return z.return();if(!F)return _.bz(Error("Kj")),z.return();if(_.tfn()||u.isMiniplayerActive())var T=!0;else T=_.$A().watchPipActivation||_.$A().watchWhileActivation,_.sV().resolve(_.JC).isOnWatch()&&!T?(_.bz(new _.D0("miniplayer activated on watch page")),T=!0):T=_.$A().watchWhileActivation?u.userDeactivatedWatchWhile||!!document.pictureInPictureElement||R1y():
!1;if(T)return qiJ(),z.return();J=_.$A().mediaSessionPipActivation;g=_.$A().shortsPipActivation;Y=_.$A().watchPipActivation;e=(Q=_.$A().watchWhileActivation)||Y;r=Y||g;if(!u.pictureInPictureEnabled()||!r){z.jumpTo(2);break}return z.yield(Vrv(u,J),3);case 3:if(!z.yieldResult)return _.bz(Error("Jj")),qiJ(),z.return();case 2:return u.setActive(!0),u.watchResponse=t,u.playerElement=F,u.updateMiniplayerData(q),z.yield(Uq9(u,F),4);case 4:if(!u.active)return _.bz(new _.D0("miniplayer deactivated during activation")),
u.removePlayerListeners(),z.return();T=_.sV().resolve(_.J8);T.addEventListener("yt-navigate",_.kM(u,u.onPlaylistNavigate));T.addEventListener("yt-playlist-data-updated",_.kM(u,u.JSC$18694_onPlaylistDataUpdated));u.JSC$18694_onPlaylistDataUpdated();qiJ();u.JSC$18694_watchWhileEnabled&&_.SP9(u,Q);u.pictureInPictureEnabled()&&u.shortsPipEnabled&&(u.shortsPipMode=g,_.u1().dispatch(CPv(u.shortsPipMode)));u.pictureInPictureEnabled()&&u.watchPipEnabled&&(u.watchPipMode=Y,_.NwC(u.handleMediaSessionPipActivation));
u.player&&(N=u.player.getPlayerState(),w=N===1,_.u1().dispatch(LaJ(N)),_.Zl(u.miniplayerEl,"yt-miniplayer-play-state-changed",[w]),_.$A().isVideoPlaying=w);_.Zl(u.miniplayerEl,"yt-miniplayer-endpoint-changed");hBv(u);_.Kgw(u);if(u.shortsPipMode||u.watchPipMode)z=z.yield(_.ec(u.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{T=z.yield;var P=_.ec(u.miniplayerEl,"yt-activate-miniplayer",[e])[0];z=T.call(z,P,6)}return z;case 6:if(u.watchResponse&&!_.E("miniplayer_copy_screen_on_activation_killswitch")){T=
u.getScreenLayer();P=_.yb(0);var v=bgA(0);P&&v&&(_.dQ(P,v,T),T===0&&mgq(void 0,0))}Boh(u);LgC(u,!0);(k=u.getPlayerElement())==null||k.focusOnPlayer();_.WA(z)}})};
uH.prototype.updateMiniplayerData=function(F){this.miniplayerData=F;_.JR(this,{data:F})};
_.Kgw=function(F){var q,t,u=((q=F.miniplayerData)==null?void 0:(t=q.miniplayerRenderer)==null?void 0:t.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";q=F.watchWhileMode||F.watchPipMode?u&&!_.sV().resolve(_.JC).isOnWatch():u;_.JR(F,{isDisabled:q});var J,g;t=_.n((J=F.miniplayerData)==null?void 0:(g=J.miniplayerRenderer)==null?void 0:g.minimizedEndpoint,_.y5);q&&t&&_.sV().resolve(_.ap).openSheet({openPopupActionCommand:{openPopupAction:t}},F.miniplayerEl)};
Boh=function(F){if(F.watchResponse&&!fW9(F)){var q,t=(q=F.watchResponse.playerResponse)==null?void 0:q.trackingParams;t&&(_.JR(F,{expandVe:_.r0(35989),closeVe:_.r0(34699),readyToResumeCloseVe:_.r0(131070),repositionVe:_.r0(226204),resizeVe:_.r0(226205)}),_.JR(F,{playerVe:_.Av(t)}))}};
Uq9=function(F,q){return _.p(function(t){if(t.nextAddress==1)return q.preparePlayer(),t.yield(q.getPlayerPromise(),2);F.player=t.yieldResult;F.player&&(F.player.addEventListener("onPlayVideo",F.JSC$18694_onPlayerPlayVideo),F.player.addEventListener("onCloseMiniplayer",F.onPlayerCloseMiniplayer),F.player.addEventListener("onExpandMiniplayer",F.onPlayerExpandMiniplayer),F.player.addEventListener("onStateChange",F.onPlayerStateChange));_.WA(t)})};
_.l=uH.prototype;_.l.JSC$18694_onPlayerPlayVideo=function(F){var q=F.sessionData&&"autonav"in F.sessionData,t;F.sessionData&&F.sessionData.itct&&(t=F.sessionData.itct);var u=F.watchEndpoint;q=u&&q?_.lKf(u,t):_.gj(F.videoId,F.listId||void 0,t);F.sessionData&&_.JV(_.n(q.commandMetadata,_.EH).url,F.sessionData);jdJ(this,q)};
_.l.onPlayerExpandMiniplayer=function(){_.F2(this)};
_.l.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.l.onPlayerStateChange=function(){if(this.player){var F=this.player.getPlayerState(),q=F===1;_.u1().dispatch(LaJ(F));_.u1().dispatch(_.jML(F));_.Zl(this.miniplayerEl,"yt-miniplayer-play-state-changed",[q]);_.$A().isVideoPlaying=q;if(F===0){q=!_.kA.getInstance().isAutoplaySetExplicitly();var t,u,J,g,Y,Q,e=(t=this.watchResponse.response)==null?void 0:(u=t.contents)==null?void 0:(J=u.twoColumnWatchNextResults)==null?void 0:(g=J.autoplay)==null?void 0:(Y=g.autoplay)==null?void 0:(Q=Y.autoplayExplicitChoiceDialogRenderer)==
null?void 0:Q.confirmDialogRenderer;q&&e&&this.player.setAutonavState(1)}F===0&&this.watchWhileMode&&this.deactivate()}};
_.l.onPlaylistNavigate=function(F,q){var t=this,u,J,g,Y,Q,e,r;return _.p(function(N){if(N.nextAddress==1){if(!_.n(q.endpoint,_.Fw))return N.return();_.$A().currentEndpoint=q.endpoint;_.Zl(t.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.sV().resolve(_.JC).isOnWatch()&&(t.watchWhileMode||t.watchPipMode))return N.return();F.stopPropagation();(g=(J=_.n((u=q.endpoint)==null?void 0:u.commandMetadata,_.EH))==null?void 0:J.url)&&q.tempData&&!_.m7.isEmpty(q.tempData)&&_.JV(g,q.tempData);Y={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};Q=new FFn(function(){return t.getPlayerElement()},Y,{layer:t.getScreenLayer()});
e=function(w){Q.processChunk({endpoint:q.endpoint,data:w})};
aWJ(t);t.miniplayerFetchRequest=jXy(t,q.endpoint,e);_.zg(N,2);return N.yield(t.miniplayerFetchRequest,4)}if(N.nextAddress!=2)return r=N.yieldResult,cG9(t,r),_.LE(N,0);_.Gg(N);_.WA(N)})};
_.l.JSC$18694_onPlaylistDataUpdated=function(){var F=_.sV().resolve(_.J8).getPlaylistData();this.hasPlaylistData=!!F;_.JR(this,{externalPlaylistData:F||{}})};
_.l.close=function(F){if(this.isInitialized())if(F){if(!((this.watchWhileMode||this.watchPipMode)&&_.sV().resolve(_.JC).isOnWatch()||this.shortsPipMode)){var q;(q=this.getPlayerElement())==null||q.stop()}this.deactivate()}else _.YQ().closeMiniplayer(this.miniplayerEl)};
_.l.deactivate=function(F){var q=this,t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1){if(!q.isInitialized()||!q.active)return Y.return();q.setActive(!1);aWJ(q);(t=!!F&&dqh(q,F))&&q.isSingleOptionSurveyActive&&_.ec(q.miniplayerEl,"yt-show-watch-page-survey",[q.isSingleOptionSurveyActive]);return Y.yield(F1C(q),2)}if(Y.nextAddress!=3){LgC(q,!1);q.isReadyToResume=!1;q.watchResponse=void 0;q.updateMiniplayerData(void 0);q.shortsPipMode&&(q.shortsPipMode=!1,_.u1().dispatch(CPv(q.shortsPipMode)),c99(q.pipController),
(u=q.player)==null||u.setInternalSize(NaN,NaN));q.watchPipMode&&(q.watchPipMode=!1,c99(q.pipController));(J=q.watchWhileMode)&&_.SP9(q,!1);q.removePlayerListeners();var Q=_.sV().resolve(_.J8);Q.removeEventListener("yt-navigate",_.kM(q,q.onPlaylistNavigate));Q.removeEventListener("yt-playlist-data-updated",_.kM(q,q.JSC$18694_onPlaylistDataUpdated));_.$A().currentEndpoint=null;_.Zl(q.miniplayerEl,"yt-miniplayer-endpoint-changed");q.playerElement=null;qiJ();if(q.shortsPipMode||q.watchPipMode)Y=Y.jumpTo(3);
else{Q=Y.yield;var e=_.ec(q.miniplayerEl,"yt-deactivate-miniplayer",[t,J])[0];Y=Q.call(Y,e,3)}return Y}(g=q.player)==null||g.setInternalSize(NaN,NaN);q.player=null;_.WA(Y)})};
var F1C=function(F){var q;return _.p(function(t){q=_.sV().resolve(_.JC);return F.shortsPipMode?t.yield(q.movePlayerToShorts(F.playerElement),0):t.yield(q.movePlayerToWatch(F.playerElement),0)})};
uH.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18694_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
uH.prototype.setActive=function(F){this.active=F;this.isSingleOptionSurveyActive?_.ec(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.ec(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.u1().dispatch(_.pj({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.SP9=function(F,q){F.watchWhileMode=q;_.JR(F,{watchWhile:q})};
LgC=function(F,q){if(!fW9(F))if(F.shortsPipMode||F.watchPipMode){var t;(t=F.player)==null||t.setDocumentPictureInPicture(q)}else{var u;(u=F.player)==null||u.setMinimized(q)}};
fW9=function(F){return F.watchWhileMode&&_.E("kevlar_watch_while_counterfactual")};
_.F2=function(F){var q;return _.p(function(t){switch(t.nextAddress){case 1:if(!F.isInitialized())return t.return();_.zg(t,2);return t.yield(F.miniplayerFetchRequest,4);case 4:_.LE(t,3);break;case 2:_.Gg(t);case 3:F.watchResponse&&F.miniplayerData&&F.miniplayerData.watchEndpoint?(q={url:F.watchResponse.url,endpoint:F.miniplayerData.watchEndpoint,data:F.watchResponse,miniplayer:!0},_.Q0(F.miniplayerEl,"yt-navigate-cache",q)):F.miniplayerData&&F.miniplayerData.watchEndpoint&&_.Q0(F.miniplayerEl,"yt-navigate",
{endpoint:F.miniplayerData.watchEndpoint}),_.WA(t)}})};
jdJ=function(F,q,t){var u,J,g,Y;return _.p(function(Q){if(Q.nextAddress==1){if(dqh(F,q))return Q.return();_.$A().currentEndpoint=q;_.Zl(F.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Zl(F.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.$A().isVideoPlaying=!1;u={clientParams:{miniplayer:!0,autoSaveToQueue:!t}};J=new FFn(function(){return F.getPlayerElement()},u,{layer:F.getScreenLayer(),
parentLayer:0},void 0,F.readyToResumeVe);g=function(e){var r,N,w=Object.assign({},(r=e.playerResponse)==null?void 0:(N=r.playerConfig)==null?void 0:N.playbackStartConfig,{startPaused:!0}),k;t&&((k=e.playerResponse)==null?0:k.playerConfig)&&(e.playerResponse.playerConfig.playbackStartConfig=w);J.processChunk({endpoint:q,data:e})};
aWJ(F);F.miniplayerFetchRequest=jXy(F,q,g);_.zg(Q,2);return Q.yield(F.miniplayerFetchRequest,4)}if(Q.nextAddress!=2)return Y=Q.yieldResult,cG9(F,Y),_.LE(Q,0);_.Gg(Q);_.WA(Q)})};
uH.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var aWJ=function(F){F.miniplayerFetchRequest&&(F.miniplayerFetchRequest.cancel&&F.miniplayerFetchRequest.cancel("Active request obsolete"),F.miniplayerFetchRequest=null)},jXy=function(F,q,t){var u=_.VY.instance,J,g=(J=_.n(q.commandMetadata,_.EH))==null?void 0:J.url,Y;
J=!g||_.E("disable_miniplayer_tempdata")?{}:(Y=MZv(g))!=null?Y:{};return VI(u,q,J,window.location.href,"watch",function(Q,e){t(e)},function(Q){return Q!==F.miniplayerFetchRequest})},cG9=function(F,q){var t;
_.p(function(u){if(!q)return u.return();F.watchResponse=q;Boh(F);hBv(F);t=_.xf(q.response,!1,q.playerResponse);if(F.isMiniplayerActive()){q.response&&(F.playerElement.watchNextData=q.response);var J=_.m7.getValueByKeys.apply(_.m7,[q].concat(_.mZ(pYf)));_.m7.getValueByKeys.apply(_.m7,[q].concat(_.mZ(rrf)))&&J&&_.sV().resolve(_.J8).setAutoplayRenderer(J);if(J)if(_.E("kevlar_is_pupi_enabled")){var g,Y,Q,e,r,N=((g=q.response)==null?0:(Y=g.playerOverlays)==null?0:(Q=Y.playerOverlayRenderer)==null?0:(e=
Q.autonavToggle)==null?0:(r=e.autoplaySwitchButtonRenderer)==null?0:r.enabled)?2:1;_.kA.getInstance().setState(N,!1,!1)}else g=$KP()?2:1,(N=F.player)==null||N.setAutonavState(g);F.updateMiniplayerData(t);_.Kgw(F)}_.WA(u)})},hBv=function(F){var q,t,u=(q=F.watchResponse)==null?void 0:(t=q.playerResponse)==null?void 0:t.playabilityStatus,J;
q=u==null?void 0:(J=u.miniplayer)==null?void 0:J.miniplayerRenderer;(q==null?void 0:q.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&q.minimizedEndpoint&&_.RD(F.miniplayerEl,[q.minimizedEndpoint]);_.JR(F,{playabilityStatus:u})};
uH.prototype.openToast=function(F,q){_.JR(this,{toastData:{data:F,label:q}})};
_.JR=function(F,q){(0,F.miniplayerPropSignalMap[1])(q)};
uH.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var F;return this.playerElement?this.playerElement:(F=_.ep(this.miniplayerEl).querySelector("#player-container"))==null?void 0:F.firstElementChild};
uH.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var Vrv=function(F,q){q=q===void 0?!1:q;var t,u,J,g,Y,Q,e;return _.p(function(r){if(r.nextAddress==1){t=navigator.userActivation.isActive||q;if(!t||!F.pictureInPictureSupported())return r.return(!1);u=qdy(F);J=u.width;g=u.height;return r.yield(F.pipController.openWindow({width:J,height:g}),2)}Y=r.yieldResult;Q=F.pipController.getWindow();if(!Q||!Y)return r.return(!1);Q.document.body.style.overflow="hidden";e=S8A(Q);Ft3(F.pipController,function(){ttC(F);e()});
return r.return(!0)})},qdy=function(F){var q=_.$A().shortsPipActivation,t,u;
F=q?.5625:(u=(t=F.player)==null?void 0:t.getVideoAspectRatio())!=null?u:16/9;t=Math.min(window.innerWidth,window.innerHeight)/2;q=q?0:76;return F>1?new _.Ma(t,q+t/F):new _.Ma(t*F,q+t)},ttC=function(F){var q;
_.p(function(t){q=_.sV().resolve(_.JC);return q.isOnWatch()&&F.watchPipMode||q.isOnShorts()&&F.shortsPipMode?t.yield(F.deactivate(),0):F.miniplayerToPipMode?t.yield(Ca5(F),0):F.watchPipMode?t.yield(_.F2(F),0):t.jumpTo(0)})};
uH.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.JJ.Object.defineProperties(uH.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
uH[Yc]=[qSC,bLr];var u6v="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(" "),
JOC="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(" "),sv7="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
gRv="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var lVC=null;var Xjw={},YdC=(Xjw.initialized={priority:10,callback:function(F){var q=_.sV();q.addProvider({provide:gR1,useClass:Q29});q.addProvider({provide:_.pAh,useFactory:function(){return new lVv}});
q.addProvider({provide:jE,useValue:_.bn("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});q.addProvider({provide:cos,useValue:5184E6});q.addProvider({provide:oOw,useValue:_.Gx()});q.addProvider({provide:Pww,useClass:$Of});q.addProvider({provide:Y1,useClass:Y1});q.addProvider({provide:_.Qg,useFactory:function(){return diC.promise}});
q.addProvider({provide:_.Uiv,useFactory:function(){return _.VfE.promise}});
q.addProvider({provide:JRv,useValue:function(){var e;return((e=_.g0())==null?void 0:e.getPlayer())||null}});
var t={};q.addProvider((t.provide=_.nx,t.useFactory=function(e,r){return function(){return Fdy(e,r)}},t[Yc]=[jE,
cos],t));t={};q.addProvider((t.provide=_.ve,t.useClass=Bx5,t[Yc]=[jE,cos],t));t={};q.addProvider((t.provide=_.lpP,t.useClass=jjw,t[Yc]=[_.ve],t));q.addProvider({provide:VD,useFactory:_.u1});q.addProvider({provide:sL,useFactory:_.u1});q.addProvider({provide:y9h,useFactory:_.u1});q.addProvider({provide:TDw,useFactory:_.u1});q.addProvider({provide:_.sb,useFactory:_.u1});q.addProvider({provide:HG,useValue:_.z5});q.addProvider({provide:JKT,useClass:OGu});q.addProvider({provide:O39,useClass:W$T});q.addProvider({provide:Y3,
useClass:Y3});q.addProvider({provide:mS,useClass:mS});q.addProvider({provide:$Q,useClass:$Q});q.addProvider({provide:yY,useClass:yY});q.addProvider({provide:NW,useClass:NW});q.addProvider({provide:Sy,useClass:Sy});q.addProvider({provide:$S,useClass:$S});q.addProvider({provide:_.mn3,useValue:Os9});q.addProvider({provide:_.LA,useFactory:_.DP});q.addProvider({provide:Pp,useFactory:_.TV});t={};q.addProvider((t.provide=hxM,t.useFactory=function(e){return function(r){var N=N===void 0?{}:N;var w,k,z=(k=
_.n((w=r.endpoint)==null?void 0:w.commandMetadata,_.EH))==null?void 0:k.rootVe;if(z){var T,P;if(w=r.previousCsn||((P=_.n((T=r.endpoint)==null?void 0:T.commandMetadata,iCx))==null?void 0:P.parentCsn)){var v=v===void 0?{}:v;if(w!==_.yb(v.layer)||z!==bgA(v.layer))UgP(w,v.cttAuthInfo,v.layer||0),mgq(w,v.layer||0),T=v.layer||0,_.$I($g_(T===void 0?0:T),z);N.parentCsn=w}r.endpoint&&w?bNC(e,r.endpoint,N):_.OX(e,z,void 0,N);var H;((H=r.response)==null?0:H.trackingParams)&&e.graftServerVe(r.response.trackingParams);
var d;((d=r.playerResponse)==null?0:d.trackingParams)&&e.graftServerVe(r.playerResponse.trackingParams);var a;((a=r.reelWatchSequenceResponse)==null?0:a.trackingParams)&&e.graftServerVe(r.reelWatchSequenceResponse.trackingParams)}}},t[Yc]=[_.LA],t));
t={};q.addProvider((t.provide=dDv,t.useClass=Cw5,t[Yc]=[HG,_.sb],t));t={};q.addProvider((t.provide=I7,t.useClass=I7,t[Yc]=[_.Qg,_.sb],t));t={};q.addProvider((t.provide=Pq,t.useClass=Pq,t[Yc]=[sL,_.gN],t));q.addProvider({provide:_.BJh,useClass:uI3});t={};q.addProvider((t.provide=_.f_,t.useClass=aQv,t[Yc]=[_.BJh],t));q.addProvider({provide:_.ap,useClass:$3});q.addProvider({provide:_.Nxw,useClass:SS3});q.addProvider({provide:_.je,useClass:Hq});t={};q.addProvider((t.provide=_.Go,t.useClass=tOs,t[Yc]=
[_.Go],t));q.addProvider({provide:_.WF,useClass:oPT});q.addProvider({provide:BR,useClass:BR});q.addProvider({provide:RW,useClass:RW});q.addProvider({provide:Fj,useClass:Fj});t={};q.addProvider((t.provide=IS,t.useClass=IS,t[Yc]=[_.gN,_.da],t));q.addProvider({provide:Xj,useClass:mU});t={};q.addProvider((t.provide=QQ,t.useClass=QQ,t[Yc]=[_.ap,Xj],t));_.E("web_enable_feedback_endpoint_resolver")&&(t={},q.addProvider((t.provide=U0,t.useClass=U0,t[Yc]=[VD,d9],t)),q.addProvider({provide:d9,useClass:hov}));
_.E("web_enable_feedback_endpoint_resolver_batch_2")&&(t={},q.addProvider((t.provide=hq,t.useClass=hq,t[Yc]=[VD],t)),t={},q.addProvider((t.provide=SE,t.useClass=SE,t[Yc]=[d9],t)));t={};q.addProvider((t.provide=YL,t.useClass=YL,t[Yc]=[_.je,Xj],t));t={};q.addProvider((t.provide=JL,t.useClass=JL,t[Yc]=[_.je],t));t={};q.addProvider((t.provide=po,t.useClass=po,t[Yc]=[_.da,_.f_],t));t={};q.addProvider((t.provide=ly,t.useClass=ly,t[Yc]=[_.da,_.LA],t));q.addProvider({provide:mK,useClass:mK});t={};q.addProvider((t.provide=
OR,t.useClass=OR,t[Yc]=[VD],t));q.addProvider({provide:aW,useClass:aW});q.addProvider({provide:fo,useClass:fo});t={};q.addProvider((t.provide=cp,t.useClass=cp,t[Yc]=[VD],t));t={};q.addProvider((t.provide=FU,t.useClass=FU,t[Yc]=[_.da,VD],t));t={};q.addProvider((t.provide=q_,t.useClass=q_,t[Yc]=[VD],t));t={};q.addProvider((t.provide=tm,t.useClass=tm,t[Yc]=[VD],t));t={};q.addProvider((t.provide=sR,t.useClass=sR,t[Yc]=[_.f_],t));t={};q.addProvider((t.provide=dW,t.useClass=dW,t[Yc]=[_.LA],t));t={};q.addProvider((t.provide=
Bp,t.useClass=Bp,t[Yc]=[IW],t));t={};q.addProvider((t.provide=Lo,t.useClass=Lo,t[Yc]=[IW],t));q.addProvider({provide:S7,useClass:S7});q.addProvider({provide:hL,useClass:hL});q.addProvider({provide:Co,useClass:Co});t={};q.addProvider((t.provide=e7,t.useClass=e7,t[Yc]=[_.f_,_.gN],t));q.addProvider({provide:aS,useClass:aS});t={};q.addProvider((t.provide=gW,t.useClass=gW,t[Yc]=[_.da,_.f_],t));q.addProvider({provide:qe,useClass:qe});t={};q.addProvider((t.provide=D5,t.useClass=D5,t[Yc]=[VD,_.da,_.Go],t));
t={};q.addProvider((t.provide=Me,t.useClass=Me,t[Yc]=[_.da,_.gN],t));q.addProvider({provide:Wsr,useValue:eVW});q.addProvider({provide:Iuj,useValue:oL_});q.addProvider({provide:To,useClass:To});t={};q.addProvider((t.provide=no,t.useClass=no,t[Yc]=[VD],t));t={};q.addProvider((t.provide=Wp,t.useClass=Wp,t[Yc]=[_.WF,_.gN],t));t={};q.addProvider((t.provide=K$,t.useClass=K$,t[Yc]=[_.gN],t));q.addProvider({provide:C$,useFactory:function(){return new C$(_.u1())}});
q.addProvider({provide:Q9t,useFactory:_.b1.getInstance});t={};q.addProvider((t.provide=cR,t.useClass=cR,t[Yc]=[jE,Q9t,_.gN],t));q.addProvider({provide:L$,useClass:L$});q.addProvider({provide:HR,useClass:HR});q.addProvider({provide:$J,useClass:$J});q.addProvider({provide:_.mb,useClass:_.mb});q.addProvider({provide:s3,useClass:s3});t={};q.addProvider((t.provide=ER,t.useClass=ER,t[Yc]=[sL],t));t={};q.addProvider((t.provide=zo,t.useClass=zo,t[Yc]=[_.gN],t));_.E("web_enable_prefetching_videos_on_home")&&
(q.addProvider({provide:OZ,useClass:OZ}),q.addProvider({provide:Lx,useClass:Lx}));t={};q.addProvider((t.provide=Jm,t.useClass=Jm,t[Yc]=[_.gN],t));q.addProvider({provide:b0,useClass:b0});t={};q.addProvider((t.provide=$L,t.useClass=$L,t[Yc]=[_.da,_.gN],t));t={};q.addProvider((t.provide=yD,t.useClass=yD,t[Yc]=[_.gN],t));t={};q.addProvider((t.provide=fx,t.useClass=fx,t[Yc]=[_.da,_.gN],t));q.addProvider({provide:wW,useClass:wW});t={};q.addProvider((t.provide=rW,t.useClass=rW,t[Yc]=[sL,_.gN],t));q.addProvider({provide:iy,
useClass:iy});t={};q.addProvider((t.provide=XU,t.useClass=XU,t[Yc]=[sL,_.gN,_.da],t));t={};q.addProvider((t.provide=YS,t.useClass=YS,t[Yc]=[_.gN],t));t={};q.addProvider((t.provide=lD,t.useClass=lD,t[Yc]=[_.gN,_.da],t));t={};q.addProvider((t.provide=oW,t.useClass=oW,t[Yc]=[_.Qg],t));t={};q.addProvider((t.provide=kL,t.useClass=kL,t[Yc]=[_.Qg],t));q.addProvider({provide:vp,useClass:vp});q.addProvider({provide:Hp,useClass:Hp});q.addProvider({provide:j7,useClass:j7});q.addProvider({provide:by,useClass:by});
q.addProvider({provide:AL,useClass:AL});q.addProvider({provide:tL,useClass:tL});q.addProvider({provide:xL,useClass:xL});_.E("kevlar_enable_mss_lazy_load")&&q.addProvider({provide:_.dm,useClass:LZv});q.addProvider({provide:_.C8,useClass:y4});q.addProvider({provide:iv,useFactory:function(){return _.B2.getInstance()}});
q.addProvider({provide:$DQ,useFactory:Zdf});q.addProvider({provide:IW,useFactory:function(){return _.KC.getInstance()}});
q.addProvider({provide:v5n,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});t={};q.addProvider((t.provide=_.x3,t.useClass=_.x3,t[Yc]=[_.Qg,_.gN,_.LA,$DQ,IW,iv,v5n,HG],t));q.addProvider({provide:_.br,useClass:oKn});q.addProvider({provide:_.qvy,useClass:Fr9});t={};q.addProvider((t.provide=uy,t.useClass=uy,t[Yc]=[_.qvy],t));t={};q.addProvider((t.provide=_.A5,t.useFactory=function(e){return e.upliftCompletionResolver.promise},t[Yc]=[dDv],t));
t=_.yG("IS_SHELL_LOAD")?"aa":"eocs";var u=_.yG("IS_SHELL_LOAD")?3:2;_.g7().parkOrScheduleJob(function(){UD7()},u,t);
_.g7().parkOrScheduleJob(function(){_.sV().resolve(I7).start()},2,"eocs");
_.g7().parkOrScheduleJob(function(){bhQ()},2,"eocs");
_.g7().parkOrScheduleJob(function(){_.sV().resolve(Pq).start()},2,"eocs");
_.E("kevlar_debug_data_app_registration_ks")||Oxt();q.addProvider({provide:_.PT,useValue:new Alf(F.root)});q.addProvider({provide:hf,useValue:new Kpo});q.addProvider({provide:_.Cfw,useValue:new bcr(F.root)});q.addProvider({provide:_.CG,useValue:new ylE});q.addProvider({provide:_.S$,useClass:VE});q.addProvider({provide:qSC,useClass:b$});_.E("kevlar_network_sli_killswitch")||q.addProvider({provide:El9,useValue:M4r});q.addProvider({provide:s2C,useFactory:l9A});_.E("web_bind_fetch")&&(t={},q.addProvider((t.provide=
gl3,t.useFactory=Xzq,t[Yc]=[_.JU(s2C)],t)));_.E("web_bind_window_request")&&(t={},q.addProvider((t.provide=XA9,t.useFactory=Ytf,t[Yc]=[_.JU(s2C)],t)));_.E("web_bind_text_decoder")&&(t={},q.addProvider((t.provide=Ys9,t.useFactory=pzq,t[Yc]=[_.JU(s2C)],t)));t={};q.addProvider((t.provide=G1v,t.useFactory=V8$,t[Yc]=[_.A5,VD,_.nx],t));t={};q.addProvider((t.provide=Txh,t.useClass=pa,t[Yc]=[G1v],t));q.addProvider({provide:dnv,useClass:$nv});q.addProvider({provide:zd5,useClass:nO9});t=[].concat(_.mZ(cT));
_.E("web_continuation_response_processing")&&t.push(_.Si);t.push(fsv);_.E("enable_share_panel_navigation_logging_fix_on_web")&&t.push(_.Zue);q.addProvider({provide:Szo,useValue:t});q.addProvider({provide:RRf,useClass:EO3});q.addProvider({provide:TLC,useClass:zP5});t={};q.addProvider((t.provide=p1A,t.useClass=aUd,t[Yc]=[sL],t));_.mI.addLowPriorityJob(function(){vYC()});
t={};q.addProvider((t.provide=WFr,t.useFactory=function(e){return function(r){var N,w=(N=_.n(r.commandMetadata,_.EH))==null?void 0:N.url;if(!w)throw new _.D0("No URL for PBJ Command",r);w=GVA(w,{pbj:"1"});N=KjA(w,{})||{};N=Object.assign({},N,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.bn("STS").toString()});r=_.kE({command:JSON.stringify(r),session_token:_.bn("XSRF_TOKEN")});return e.fetch(w,{method:"POST",headers:N,body:r})}},t[Yc]=[TLC],t));
t=[];t.push(q.resolve(zd5));u={};u=(u.client_location=_.b1.getInstance(),u.consistency=_.yFy(),u.entities=q.resolve(O39),u.response_received_commands=q.resolve(RRf),u.store=q.resolve(_.lpP),u.tokens=q.resolve(zd5),u);_.E("web_service_params_response_processor")&&(q.addProvider({provide:wAD,useFactory:function(){var e={};return e.CSI=exu(),e.ECATCHER=QQo(),e}}),q.addProvider({provide:uA3,
useClass:i63}),u.service_params=q.resolve(uA3));if(_.E("web_shorts_prefetch_service_enabled")){var J=new cEJ(q.resolve(_.ve));u.shorts_prefetch=J}u.adblock_detection=q.resolve(p1A);q.addProvider({provide:_.Lt,useClass:_.Lt});J=q.resolve(_.mn3);var g=[];_.E("PremiumClientSharedConfig__enable_att_context_processor")&&(q.addProvider({provide:Z39,useClass:pyh}),g.push(q.resolve(Z39)));if(_.E("owl_pl_await")){var Y={};q.addProvider((Y.provide=aq7,Y.useFactory=function(e){return new LtC(e)},Y[Yc]=[_.Lt],
Y));
g.push(q.resolve(aq7))}yLw(J,q.resolve(TLC),q.resolve(JKT),u,q.resolve(_.ve),t,g,q.resolve(Txh),q.resolve(dnv));q.addProvider({provide:_.da,useValue:_.Lp.instance});_.E("start_client_gcf")&&q.addProvider({provide:OD,useValue:CRE()});q.addProvider({provide:h97,useFactory:function(){return new h97(_.sV().resolve(_.Lt),_.KC.getInstance())}});
_.g7().parkOrScheduleJob(function(){Kvw()},1,"eocs");
t={};q.addProvider((t.provide=vq,t.useClass=vq,t[Yc]=[_.nx,_.da],t));q.addProvider({provide:_.rQ5,useFactory:_.Bq.getInstance});_.g7().parkOrScheduleJob(function(){_.sV().resolve(vq).refresh()},0,"eocs");
Obw(Os9.watchEndpointMap||{},J.reelWatchEndpointMap||{},F.injector.resolve(_.da));q.addProvider({provide:nZ,useValue:_.VY.instance});_.E("kevlar_signal_collection_killswitch")||(t={},q.addProvider((t.provide=OhJ,t.useClass=OhJ,t[Yc]=[jE,Pp],t)),_.g7().parkOrScheduleJob(function(){_.sV().resolve(OhJ).record()},1,"eocs"));
_.E("web_debug_handler_registration_killswitch")||_.g7().parkOrScheduleJob(function(){DWt("DOWNLOAD_PES",e1_);_.E("offline_client_state_export_ks")||DWt("OFFLINE_CLIENT_STATE",YQC)},0,"eocs");
_.E("kevlar_prevent_polymer_dynamic_font_load")&&_.g7().parkOrScheduleJob(function(){var e=[_.RV(H6h),_.RV(mvT)];e=_.X(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var N=document.createElement("link");_.lF(N,r,"stylesheet");document.head.appendChild(N)}},1,"eocs");
t=F.injector.resolve(_.da);_.eoQ.instance=new _.eoQ(t);hct(JoQ(new Q_Q(t)));t={};F.injector.addProvider((t.provide=gZ,t.useFactory=function(e){(e=e==null?void 0:e.getCurrentPage())?e=e.visibilityObserver:(lVC||(lVC=hDv()),e=lVC);return e},t[Yc]=[_.JU(_.JC)],t.skipCache=!0,t));
q.addProvider({provide:_.m4,useClass:uH});q.addProvider({provide:d8,useClass:OLe});F.injector.addProvider({provide:nrj,useValue:xwO});q.addProvider({provide:ZFe,useValue:XwW});q.addProvider({provide:_.qo,useValue:kBq});F=q.addProvider;il9||(il9=new wS5);F.call(q,{provide:_.Cx,useValue:il9});q.addProvider({provide:_.u_,useValue:_.bn("HTML_DIR")==="rtl"?"rtl":"ltr"});q.addProvider({provide:xA9,useClass:VWw});q.addProvider({provide:_.zC,useClass:dk});_.sV().addProvider({provide:vPT,useValue:_.E("enable_web_delhi_icons")?
JOC.concat(gRv):u6v.concat(sv7)});q.addProvider({provide:_.UZ,useClass:_.UZ});q.addProvider({provide:_.xv5,useValue:new PF3});q.addProvider({provide:WPj,useClass:GtD});q.addProvider({provide:yQ,useClass:yQ});q.addProvider({provide:VQ,useClass:VQ});F={};q.addProvider((F.provide=Z5,F.useClass=Z5,F[Yc]=[_.da,_.f_],F));q.addProvider({provide:gn,useClass:gn});q.addProvider({provide:B6L,useClass:sK9});q.addProvider({provide:Ko,useClass:Ko});q.addProvider({provide:e1j,useValue:aid});q.addProvider({provide:_.eE,
useClass:DAQ});_.E("enable_payments_purchase_manager")&&q.addProvider({provide:wy3,useClass:Rov});q.addProvider({provide:Iov,useFactory:function(){return function(e){return _.vlJ(e)}}});
q.addProvider({provide:_.ieD,useClass:k19});F={};q.addProvider((F.provide=uD,F.useClass=uD,F[Yc]=[_.ieD],F));q.addProvider({provide:UR,useClass:UR});q.addProvider({provide:djx,useValue:kMd});q.addProvider({provide:UQn,useValue:_.Dy9});q.addProvider({provide:bx$,useClass:JQQ});q.addProvider({provide:k99,useValue:Hs3});F={};q.addProvider((F.provide=En7,F.useClass=zZT,F[Yc]=[k99],F));F={};q.addProvider((F.provide=_.yf,F.useClass=$aJ,F[Yc]=[En7],F));F={};q.addProvider((F.provide=_.h5,F.useClass=SI,F[Yc]=
[_.sb,_.S$],F));if(_.E("web_explore_hub_on_hover")||_.E("web_client_explore_hub_on_hover"))F={},q.addProvider((F.provide=f$,F.useClass=f$,F[Yc]=[_.da,iv],F));if(_.E("web_enable_renderer_logger")){var Q=new uYw;OVu(function(){Q.abort()});
q.addProvider({provide:q1W,useValue:new xDs(Q.signal)})}q.addProvider({provide:GfC,useValue:a$A});q.addProvider({provide:bL$,useClass:Fvw})}},Xjw);var pjs={},Qv9=(pjs.initialized={priority:10,callback:function(){if(!kgv){Fou();RxC("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.rN(_.MU(RxC,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.E("log_heartbeat_with_lifecycles")){var F={};op.instance||(op.instance=new op);op.instance.install((F.document_visible={callback:r7q,priority:10},F.document_hidden={callback:r7q,priority:10},F))}else _.Jf(document,"visibilitychange",r7q);kgv=!0}(F=_.yb())&&F!=="UNDEFINED_CSN"&&IdP(F)}},pjs);var e4C={},Zqv=(e4C.initialized={callback:function(F){var q=_.r0(232091),t=F.injector.resolve(_.LA);_.PQ(t,q);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?hLy()&&_.Ah(t,q):(F=F.injector.resolve(Iov)("refresh_detector"))&&(F.get("first_tab_load")?_.Ah(t,q):F.set("first_tab_load","1"))}},e4C);var R4D={},rO3=(R4D.initialized={priority:10,callback:Ff_},R4D);var NP7={},wj9=(NP7.initialized={priority:0,callback:function(){var F=new mqO,q="other";_.rd?q="chrome":_.RC?q="firefox":_.dN?q="safari":qE&&(q="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(t){F.increment(_.Mh(),t,q)}).catch(function(){F.increment(_.Mh(),!1,q)}):F.increment(_.Mh(),!1,q)}},NP7);var iqh={},ky5=(iqh.rendering={priority:8,callback:q4f},iqh);var ERv={},z4C=(ERv.rendering={priority:10,callback:NMW},ERv.rendered={callback:rbA},ERv),oRh={},nRh=(oRh.rendering={callback:NMW},oRh.rendered={callback:rbA},oRh);var MtQ=!1,TP5={},Gyh=(TP5.initialized={priority:10,callback:function(){MtQ||(ozo({didPatch:function(F){F.el&&Tqy(F.el,F.props)},
didUnmount:function(F){njv(F.el)}}),MtQ=!0)}},TP5);var D3Q=/^\/shorts\/?$/;_.$I("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:{}}}}}}});_.E("kevlar_enable_mss")&&(_.qIM(new PNC),Hwt());
(function(){var F=document.querySelector("ytd-app");if(!F)throw Error("Lj");F=new Kx({root:F,injector:_.sV()});F.install(Qv9);var q={};F.install((q.initialized={priority:10,callback:m7_},q));_.E("wp_lat_b")&&(q={},F.install((q.initialized={priority:10,callback:function(){J7A()}},q)));
q={};F.install((q.rendered={priority:0,callback:vGW},q));q={};F.install((q.rendered={priority:0,callback:function(){_.mI.addLowPriorityJob(function(){_.UA3>1&&(Guy(),x73())},4E4)}},q));
F.install(YF5);F.install(Zqv);F.install(Gyh);$mv();F.install(iss);F.install(u$J);F.install(l4T);F.install(o73);F.install(DDs);F.install(NhQ);F.install(YdC);_.E("kevlar_enable_mss_lazy_load")&&F.install(rO3);F.install(sVs);F.install(wj9);if(!_.yG("IS_SHELL_LOAD")||_.E("kevlar_fetch_initial_data_promise_client")||_.E("sw_nav_preload_pbj")){var t=_.wN(window.location.href);q=t&&t==="/watch";t=t&&t.match(D3Q);q?F.install(nRh):t?F.install(ky5):F.install(z4C)}else F.install(F7D);F.install(QV3);_.E("web_enable_prefetching_videos_on_home")&&
F.install(oqQ);_.E("start_client_gcf")&&F.install(NLh);F.install(ws9);(new $qC).increment("INSTALLED");F.install(Eq3);F.install(ao5);F.transition("initialized");fhy()})();
_.wa=[[["NzZxY2tpbmQjbHZsdWoxOHA=","dmFsdWUjZWc5MjF1Mm9haGpy"],"QURfUExBQ0VNRU5UX0tJTkRfUEFVU0UjZTNjaDI4cWI0MTI3"]];_.N1=["Y2tzIzgydmpiZnNkOGwwOWdsb2JhbENhbGxiYQ==","NGt3b29uQWJub3JtYWxpdHlEZXRlY3RlZCNyOXpoM3ZzYw==","czIycnEyOTl3b25BZFNraXAjZXlr","aW5hbXJ5eGZyYXdfcGxheWVyX3Jlc3BvbnNlIzFlZzM=","dCNsaHBmbXJibTJtdXRyZW5kZXJpbmdDb250ZW4="];_.e$="Y2tzIzgydmpiZnNkOGwwOWdsb2JhbENhbGxiYQ== NGt3b29uQWJub3JtYWxpdHlEZXRlY3RlZCNyOXpoM3ZzYw== czIycnEyOTl3b25BZFNraXAjZXlr aW5hbXJ5eGZyYXdfcGxheWVyX3Jlc3BvbnNlIzFlZzM= ZV9za2lwc19rcyM4Y3Uyb2o2enI2Zm13ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbA== d3VhM2ZoMXN0YWJfc2FfZWYjZTF6 dCNsaHBmbXJibTJtdXRyZW5kZXJpbmdDb250ZW4=".split(" ");
_._ModuleManager_initialize=function(F,q){if(!_.vd){if(!_.IX)return;_.qIM(_.IX())}_.vd.setAllModuleInfoString(F,q)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.X2=function(F,q,t,u,J){var g={};q&&(g[q]=t);u?g.errorType=u:J&&(g.errorReason=J);_.IJ(F,g);_.H2()};
_.YK=function(F){var q=_.g7();return _.o1z(q,F,1)};
_.Hh({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var F=this.query;F&&(this.full||F[0]==="("||(F="("+F+")"),this._mq=window.matchMedia(F),this._add(),this.queryHandler(this._mq))},
queryHandler:function(F){this._setQueryMatches(F.matches)}});var bq5;var yOs;var C5J=function(){};
_.l=C5J.prototype;_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._focusedChanged=function(){};
_.l._createRipple=function(){};
_.l.registered=function(){};
_.l._invalidChanged=function(){};
_.l.hasValidator=function(){};
_.l.validate=function(){};
_.l._getValidity=function(){};
_.l._requiredChanged=function(){};
_.l._valueChanged=function(){};
_.l._checkedChanged=function(){};
_.l._buttonStateChanged=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
C5J=_.Hh({is:"tp-yt-paper-radio-button",_template:function(){if(yOs!==void 0)return yOs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;bq5===void 0&&(bq5=document.createElement("template"));var u=bq5;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return yOs=F},
behaviors:[_.Nme],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(){_.tJ(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var F=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),q=Math.floor(3*F);q%2!==F%2&&q++;this.updateStyles({"--paper-radio-button-ink-size":q+"px"})}})}});var d3T;var VtD;_.Hh({_template:function(){if(VtD!==void 0)return VtD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;d3T===void 0&&(d3T=document.createElement("template"));var u=d3T;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return VtD=F},
is:"tp-yt-paper-radio-group",behaviors:[_.OHv],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(F){var q=this._valueToItem(F);if(!q||!q.hasAttribute("disabled")){if(this.selected){q=this._valueToItem(this.selected);if(this.selected==F)if(this.allowEmptySelection)F="";else{q&&(q.checked=!0);return}q&&
(q.checked=!1)}_.ch.select.apply(this,[F]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(F){this._focusPrevious();F.preventDefault();this._activateFocusedItem()},
_onDownKey:function(F){this._focusNext();F.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(F){_.WpJ._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(F){_.WpJ._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.ch._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.dz._resetTabindices.apply(this,arguments);this.items.forEach(function(F){F.removeAttribute("aria-selected")},this)}});var U3h;_.mo("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var pL=function(){return _.x.apply(this,arguments)||this};
_.M(pL,_.x);_.l=pL.prototype;_.l.computeHasPrimaryIcon=function(F){return!(!F.icon&&!F.thumbnail)};
_.l.computeHasSecondary=function(F){return!(!F.secondaryIcon&&!F.secondaryNotificationText)};
_.l.computeHideSecondaryString=function(F){return!_.E("disable_hide_empty_secondary_string")&&!F.secondaryNotificationText};
_.l.computeCompactLinkStyle=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.l.computeHasFitHeight=function(F){return F==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.l.isActiveEndpoint=function(F){return(F=this.get("commandMetadata.webCommandMetadata.url",F))?_.wN(window.location.href)!=="/account_transfer_channel"&&_.wN(window.location.href)!=="/gaia_link"&&_.wN(window.location.href)!=="/channel_switcher"||F!=="/account"?_.wN(window.location.href)===F:!0:!1};
_.l.onTap=function(){var F;((F=this.data)==null?0:F.serviceEndpoint)&&_.RD(this.hostElement,[this.data.serviceEndpoint])};
pL.prototype.onTap=pL.prototype.onTap;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],pL.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.V("design:type",Boolean)],pL.prototype,"active",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.V("design:type",String)],pL.prototype,"compactLinkStyle",void 0);
_.C([_.O({computed:"computeIcon_(data.icon)"}),_.V("design:type",Object)],pL.prototype,"icon",void 0);_.C([_.O({computed:"computeIcon_(data.secondaryIcon)"}),_.V("design:type",Object)],pL.prototype,"secondaryIcon",void 0);_.C([_.O({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],pL.prototype,"hasSecondary",void 0);_.C([_.O({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],pL.prototype,"hideSecondaryString",void 0);
_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pL.prototype,"onTap",null);_.C([_.m({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],pL);
_.b(pL,"ytd-compact-link-renderer",function(){if(U3h!==void 0)return U3h;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return U3h=F},{mode:1});var SdJ;_.mo("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Q$=function(){var F=_.x.apply(this,arguments)||this;F.role="link";F.tabindex="0";F.actionMap=_.E("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return F};
_.M(Q$,_.x);_.l=Q$.prototype;_.l.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Hx()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.l.getCurrentTheme=function(){return _.mB()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Hx()};
_.l.onThemeSelected=function(F,q){var t=F||q?F:_.Ib(),u=(t&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!t&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.m$$(_.wN(window.location.href));_.GV(0,165,F);_.GV(0,174,q);this.prefs.save();u&&_.ec(this.hostElement,"yt-dark-mode-toggled-action",[t]);_.ec(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.onTap=function(){this.data.serviceEndpoint&&_.RD(this.hostElement,[this.data.serviceEndpoint])};
_.l.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.l.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.l.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Q$.prototype.onTap=Q$.prototype.onTap;Q$.prototype.dataChanged=Q$.prototype.dataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Q$.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Q$.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.l4),_.V("design:type",Object)],Q$.prototype,"paperItemBehaviors",void 0);_.C([_.O(),_.V("design:type",Object)],Q$.prototype,"data",void 0);_.C([_.O({value:function(){return _.TV()}}),
_.V("design:type",_.eh)],Q$.prototype,"prefs",void 0);_.C([_.O(),_.V("design:type",Object)],Q$.prototype,"label",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Q$.prototype,"role",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Q$.prototype,"tabindex",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Q$.prototype,"dataChanged",null);
_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Q$.prototype,"onTap",null);_.C([_.m({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Q$);
_.rc()(Q$,"ytd-toggle-theme-compact-link-renderer",function(){if(SdJ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);SdJ=F}F=SdJ;return F},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var K15,BPv;_.eF=function(F){return!!F.getOptions("captions")};
_.h4T=function(F){return(F=F.getOption("captions","track"))?!!F.displayName:!1};
_.Z3=function(F,q){_.WZ(q,F,function(){return K15[q]},function(t){K15[q]=t;
if(!_.E("mweb_player_ve_show_ks")){var u=_.yb(0);u&&t&&_.fJ(u,t)}})};
_.R6=function(F){(F=K15[F])&&_.Ah(_.DP(),F)};
K15={};var L1v;/*

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
*/
_.Hh({_template:function(){if(L1v!==void 0)return L1v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;BPv===void 0&&(BPv=document.createElement("template"));var u=BPv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return L1v=F},
is:"tp-yt-paper-checkbox",behaviors:[_.Nme],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.tJ(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var F=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),q="px",t=F.match(/[A-Za-z]+$/);t!==null&&(q=t[0]);F=parseFloat(F);t=8/3*F;q==="px"&&(t=Math.floor(t),t%2!==F%2&&t++);this.updateStyles({"--paper-checkbox-ink-size":t+
q})}})},
_computeCheckboxClass:function(F,q){var t="";F&&(t+="checked ");q&&(t+="invalid");return t},
_computeCheckmarkClass:function(F){return F?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.RXx._createRipple.call(this)}});var fV9=new _.Xk("radioButtonSurveyOptionRenderer"),aV9=new _.Xk("checkboxSurveyOptionRenderer");var jv9;var cOC;var F85=0,rE=function(){var F=_.x.call(this)||this;F.selected=!1;F.isOverlay=!1;F.inputId="toggle-option-"+F85;F85++;return F};
_.M(rE,_.x);rE.prototype.onTap=function(){_.Q0(this.hostElement,"ytd-toggle-option-clicked")};
_.C([_.O(),_.V("design:type",String)],rE.prototype,"label",void 0);_.C([_.O(),_.V("design:type",String)],rE.prototype,"inputId",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],rE.prototype,"selected",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],rE.prototype,"isOverlay",void 0);_.C([_.m({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.V("design:paramtypes",[])],rE);
_.b(rE,"ytd-toggle-option-renderer",function(){if(cOC!==void 0)return cOC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return cOC=F},{mode:1});var N6=function(){var F=_.x.apply(this,arguments)||this;F.isToggleOption=!1;F.isOverlay=!1;return F};
_.M(N6,_.x);N6.prototype.onTap=function(F){F.preventDefault();this.data&&(F=!this.data.checked,this.set("data.checked",F),_.Q0(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:F,value:this.data.value}))};
_.JJ.Object.defineProperties(N6.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
N6.prototype.onTap=N6.prototype.onTap;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],N6.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],N6.prototype,"isToggleOption",void 0);_.C([_.O(),_.V("design:type",Object)],N6.prototype,"isOverlay",void 0);_.C([_.W("data.responseText"),_.V("design:type",String),_.V("design:paramtypes",[])],N6.prototype,"label",null);
_.C([_.EB("ytd-toggle-option-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],N6.prototype,"onTap",null);_.C([_.m({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],N6);
_.b(N6,"ytd-checkbox-survey-option-renderer",function(){if(jv9!==void 0)return jv9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return jv9=F},{mode:1});var qKC;var t6y;var wE=function(){var F=_.x.apply(this,arguments)||this;F.checked=!1;F.isToggleOption=!1;return F};
_.M(wE,_.x);wE.prototype.onTap=function(){this.data&&(this.checked?_.ec(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.ec(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
wE.prototype.onTap=wE.prototype.onTap;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],wE.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],wE.prototype,"checked",void 0);_.C([_.O(),_.V("design:type",Object)],wE.prototype,"isToggleOption",void 0);_.C([_.EB("ytd-toggle-option-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],wE.prototype,"onTap",null);
_.C([_.m({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],wE);
_.b(wE,"ytd-radio-button-survey-option-renderer",function(){if(t6y!==void 0)return t6y;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return t6y=F},{mode:1});var iH=function(){var F=_.x.apply(this,arguments)||this;F.disableAnimation=!1;F.isToggleOption=!0;F.followUpSurveyCommand=null;F.selectedRatingEndpoint=null;F.isSlimlineSurveyFollowUp=!1;F.isShortsStyle=!1;F.styleOverrideAttribute=!0;F.isDarkMode=!1;F.isSubmitted=!1;F.roundedContainer=!0;F.improveShortsResponseRate=_.E("web_improve_shorts_response_rate");F.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(iH,_.x);_.l=iH.prototype;
_.l.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"}}}}};
_.l.attached=function(){var F=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(t){var u;if((u=t[0])!=null&&u.isIntersecting){_.TC().reportShown(F.hostElement);var J;(J=F.intersectionObserver)==null||J.unobserve(F.hostElement)}},{rootMargin:"0px",
threshold:.6});var q;(q=this.intersectionObserver)==null||q.observe(this.hostElement)};
_.l.onDarkModeToggledAction=function(F){this.isDarkMode=F};
_.l.dataChanged=function(){var F;if(((F=this.data)==null?void 0:F.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var q;((q=this.data)==null?void 0:q.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var t,u,J,g;this.darkColorPalette=(t=this.data)==null?void 0:(u=t.inlineContent)==null?void 0:(J=u.compactVideoRenderer)==null?void 0:(g=J.thumbnail)==null?
void 0:g.darkColorPalette;var Y,Q,e,r;this.lightColorPalette=(Y=this.data)==null?void 0:(Q=Y.inlineContent)==null?void 0:(e=Q.compactVideoRenderer)==null?void 0:(r=e.thumbnail)==null?void 0:r.lightColorPalette;var N,w;if(((N=this.data)==null?0:(w=N.inlineContent)==null?0:w.compactVideoRenderer)&&this.isShortsStyle){var k,z,T,P;F=_.RI((k=this.data)==null?void 0:(z=k.inlineContent)==null?void 0:(T=z.compactVideoRenderer)==null?void 0:(P=T.thumbnail)==null?void 0:P.thumbnails);_.ws(this.hostElement,
{"--yt-background-url":"url("+F+")"})}};
_.l.handleRequestCompletion=function(){this.hostElement.hidden&&_.Q0(this.hostElement,"yt-dismissible-item-dismissed")};
_.l.onPopupClosed=function(F){var q;((q=F.detail)==null?void 0:q.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.ec(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.l.handleInlineSurveyRatingSelect=function(F,q){var t=this;this.selectedRatingEndpoint=F;this.followUpSurveyCommand=q;this.expanded=!!F;this.getOptionRenderers().forEach(function(u,J){t.notifyPath("followUpSurveyCommand.followUpOptions."+J+".checkboxSurveyOptionRenderer.checked");t.set("followUpSurveyCommand.followUpOptions."+J+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),F=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.ec(this.hostElement,"yt-reel-non-video-content-dismissal-command",[F]))};
_.l.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.ec(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var F,q=(F=this.data)==null?void 0:F.dismissalEndpoint;q&&this.ytComponentBehavior.resolveCommand(q)}};
_.l.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.ec(this.hostElement,"yt-close-popup-action"))};
_.l.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var F=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{F=this.getOptionRenderers().filter(function(u){return u.checked});
if(F.length===0)return;F=F.map(function(u){return u.responseEndpoint})}var q=[];
F.forEach(function(u,J){J!==0&&(u=_.n(u,_.PO))&&u.feedbackToken&&q.push(u.feedbackToken)});
if(F=F[0]){var t={};q.length>0&&(t.extra_feedback_tokens=q);this.ytComponentBehavior.resolveCommand(F,{form:t})}}};
_.l.getOptionRenderers=function(){var F=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(q){F.isSingleSelect=!!_.n(q,fV9);return F.isSingleSelect?_.n(q,fV9):_.n(q,aV9)}):[]};
_.l.handleInlineSurveyOptionSelect=function(F){F=this.optionSelector.indexOf(F);F!==-1&&this.optionSelector.selectIndex(F)};
_.l.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.l.maybeGetBackgroundColor=function(F){return this.isDarkMode?F.section2Color:F.section3Color};
_.l.colorPaletteChanged=function(){var F=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;F=F&&this.maybeGetBackgroundColor(F);this.dismissibleEl.style.backgroundColor=!F||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.hn(F)};
_.JJ.Object.defineProperties(iH.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
iH.prototype.colorPaletteChanged=iH.prototype.colorPaletteChanged;iH.prototype.onPopupClosed=iH.prototype.onPopupClosed;iH.prototype.handleRequestCompletion=iH.prototype.handleRequestCompletion;iH.prototype.dataChanged=iH.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],iH.prototype,"actionHandlerBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],iH.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],iH.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.Ms("#follow-up-survey-options"),_.V("design:type",Object)],iH.prototype,"optionSelector",void 0);_.C([_.O(),_.V("design:type",Object)],iH.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],iH.prototype,"disableAnimation",void 0);_.C([_.O(),_.V("design:type",Object)],iH.prototype,"isToggleOption",void 0);_.C([_.O(),_.V("design:type",Object)],iH.prototype,"followUpSurveyCommand",void 0);_.C([_.O(),_.V("design:type",Object)],iH.prototype,"selectedRatingEndpoint",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],iH.prototype,"expanded",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],iH.prototype,"isSlimlineSurveyFollowUp",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],iH.prototype,"isShortsStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],iH.prototype,"styleOverrideAttribute",void 0);_.C([_.O(),_.V("design:type",Boolean)],iH.prototype,"isSingleSelect",void 0);_.C([_.O(),_.V("design:type",Object)],iH.prototype,"isDarkMode",void 0);
_.C([_.O(),_.V("design:type",Object)],iH.prototype,"lightColorPalette",void 0);_.C([_.O(),_.V("design:type",Object)],iH.prototype,"darkColorPalette",void 0);_.C([_.W("selectedRatingEndpoint","isShortsStyle"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],iH.prototype,"isOptionSelected",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],iH.prototype,"roundedContainer",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],iH.prototype,"improveShortsResponseRate",void 0);_.C([_.Ms("#dismissible"),_.V("design:type",HTMLElement)],iH.prototype,"dismissibleEl",void 0);_.C([_.Ms("#dismiss-button yt-icon-button"),_.V("design:type",HTMLElement)],iH.prototype,"dismissButtonEl",void 0);_.C([_.Ms("#inline-survey-header yt-icon-button"),_.V("design:type",HTMLElement)],iH.prototype,"inlineHeaderDismissButtonEl",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iH.prototype,"dataChanged",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iH.prototype,"handleRequestCompletion",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],iH.prototype,"onPopupClosed",null);
_.C([_.za("darkColorPalette","lightColorPalette","isDarkMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iH.prototype,"colorPaletteChanged",null);_.C([_.m({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],iH);
_.b(iH,"ytd-inline-survey-renderer",function(){if(qKC!==void 0)return qKC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return qKC=F},{mode:1});var ub9=["en-CA","en","es-MX","fr-CA"];_.JNw=_.ld(function(F){var q=_.sk(F,{isOverlay:!1,isModern:!1}),t=q.captionIconType,u=q.onClick;F=q.ariaLabel;var J=q.ariaPressed,g=q.isOverlay,Y=q.isModern;q=_.FG("button",function(r){_.Z3(r,127299)});
var Q=_.zq(function(r){_.R6(127299);u==null||u(r);return!1}),e={};
return _.Z("ytm-closed-captioning-button",{class:_.Ec("ytmClosedCaptioningButtonHost",(e.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return t()===-1&&g()},e.ytmClosedCaptioningButtonIconDisabled=function(){return t()===-1&&!g()},e))},_.Z("button",{el:q,
class:"ytmClosedCaptioningButtonButton",title:F,"aria-label":F,"aria-pressed":J,"on:click":Q},_.Z(_.Tq,{icon:function(){var r="",N=Y();var w=N?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";N=N?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var k=_.TV().get("hl");w=!k||ub9.includes(k)?w:N;N=t();switch(N){case -1:case 0:r=w;break;case 1:r=w+"_FILLED";break;default:_.Uv(N)}return r}})))},"Bf");
_.JNw.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.Dc=function(F){return function(q,t){var u=F||t.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(q,t,{get:function(){var J;return this.$?this.$[u]:(J=_.n1(this))==null?void 0:J.querySelector("#"+u)},
enumerable:!0,configurable:!0})}};_.Wv=function(F){F=F===void 0?!1:F;_.OP.call(this);this.pubSub_=new _.EV(F);_.kW(this,this.pubSub_)};
_.gd(_.Wv,_.OP);_.Wv.prototype.subscribe=function(F,q,t){return this.isDisposed()?0:this.pubSub_.subscribe(F,q,t)};
_.Wv.prototype.unsubscribe=function(F,q,t){return this.isDisposed()?!1:this.pubSub_.unsubscribe(F,q,t)};
_.Wv.prototype.unsubscribeByKey=function(F){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(F)};
_.Wv.prototype.publish=function(F,q){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var V8v=function(){_.X2("ypcRedeemFlowStarted")},D9=function(F){_.X2("ypcRedeemFlowFailed",void 0,void 0,void 0,F)},Umw=function(F,q,t){q&&t&&(F.videos.forEach(function(u){u.videoId===q&&(u.itemId=t)}),F.recommendedVideos.forEach(function(u){u.videoId===q&&(u.itemId=t)}))};var St9;var hxC;/*

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
*/
_.Hh({_template:function(){if(hxC!==void 0)return hxC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;St9===void 0&&(St9=document.createElement("template"));var u=St9;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return hxC=F},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(F,q){var t=this._resolveSrc(F);t!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",F===""||q?this._setLoading(!1):(this._resolvedSrc=t,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var F=this.$.sizedImgDiv.style,q=this.$.placeholder.style;F.backgroundSize=q.backgroundSize=this.sizing;F.backgroundPosition=q.backgroundPosition=this.sizing?this.position:"";F.backgroundRepeat=q.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(F){F=_.Qn(F,this.$.baseURIAnchor.href);F.length>=2&&F[0]==="/"&&F[1]!=="/"&&(F=(location.origin||location.protocol+"//"+location.host)+F);return F}});var KCQ;var BqJ;_.Hh({_template:function(){if(BqJ!==void 0)return BqJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;KCQ===void 0&&(KCQ=document.createElement("template"));var u=KCQ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return BqJ=F},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(F){return F?"false":"true"},
_headingChanged:function(F){var q=this.getAttribute("heading"),t=this.getAttribute("aria-label");typeof t==="string"&&t!==q||this.setAttribute("aria-label",F)},
_computeHeadingClass:function(F){return F?" over-image":""},
_computeAnimated:function(F){return F}});var LCC=new _.Xk("addRendererToItemSectionAction");var f99;var Wz=function(){return _.x.apply(this,arguments)||this};
_.M(Wz,_.x);Wz.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Wz.prototype,"rendererBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],Wz.prototype,"dismissibleItemBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Wz.prototype,"rendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Wz.prototype,"data",void 0);_.C([_.m({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Wz);
_.b(Wz,"ytd-comment-history-entry-renderer",function(){if(f99!==void 0)return f99;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return f99=F},{mode:1});var a9J;_.mo("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.mo("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Ot=function(){return _.x.apply(this,arguments)||this};
_.M(Ot,_.x);_.l=Ot.prototype;_.l.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.onKeyUp=function(F){if(F.keyCode===13)this.onTap()};
_.l.onTap=function(){this.data.recordClickEndpoint&&_.sV().resolve(_.gN).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var F=this.data.navigationEndpoint;F&&_.n(F,_.jG)&&_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}})};
_.l.readChanged=function(){var F;_.RE(this.hostElement,"unread",!((F=this.data)==null?0:F.read))};
_.l.dataChanged=function(){this.data&&_.RE(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.l.computeThumbnailSize=function(){var F;return((F=this.data)==null?0:F.highPriorityNotification)?32:48};
_.l.getEndpointURL=function(F){return F&&!_.n(F,_.jG)?this.componentBehavior.computeHref_(F):null};
_.l.getEndpointData=function(F){return F&&!_.n(F,_.jG)?F:null};
Ot.prototype.computeThumbnailSize=Ot.prototype.computeThumbnailSize;Ot.prototype.dataChanged=Ot.prototype.dataChanged;Ot.prototype.readChanged=Ot.prototype.readChanged;Ot.prototype.onKeyUp=Ot.prototype.onKeyUp;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Ot.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ot.prototype,"data",void 0);_.C([_.O({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.V("design:type",Number)],Ot.prototype,"thumbnailSize",void 0);_.C([_.EB("keyup"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],Ot.prototype,"onKeyUp",null);
_.C([_.za("data.read"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ot.prototype,"readChanged",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ot.prototype,"dataChanged",null);_.C([_.za("data.highPriorityNotification"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ot.prototype,"computeThumbnailSize",null);
_.C([_.m({is:"ytd-notification-renderer",disableElementRegistration:!0})],Ot);
_.b(Ot,"ytd-notification-renderer",function(){if(a9J!==void 0)return a9J;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return a9J=F},{mode:1});var jQv;var Pz=function(){return _.x.apply(this,arguments)||this};
_.M(Pz,_.x);Pz.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"}}}};
Pz.prototype.computeActionButtonClass=function(F){return!F.actionButtons||F.actionButtons.length<=1?"single-button":F.description?"vertical-buttons":"horizontal-buttons"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Pz.prototype,"data",void 0);_.C([_.m({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Pz);
_.b(Pz,"ytd-playlist-show-metadata-renderer",function(){if(jQv!==void 0)return jQv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return jQv=F},{mode:1});var c7J;_.mo("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var xj=function(){return _.x.apply(this,arguments)||this};
_.M(xj,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],xj.prototype,"data",void 0);_.C([_.m({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],xj);
_.b(xj,"ytd-purchase-item-renderer",function(){if(c7J!==void 0)return c7J;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return c7J=F},{mode:1});var FiT;var q8y={};q8y.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(F){if(F)return F.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(F){if(F==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.mo("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var A7=function(){return _.x.apply(this,arguments)||this};
_.M(A7,_.x);A7.prototype.onYtNavigate=function(F){var q=this.openPopupBehavior.getNavigationEndpointPopupAction(F.detail.endpoint);q&&(F.stopPropagation(),this.openPopupBehavior.openPopup(q))};
A7.prototype.onYtNavigate=A7.prototype.onYtNavigate;_.C([_.D(q8y.YtSimpleTextSectionBehavior),_.V("design:type",Object)],A7.prototype,"ytSimpleTextSectionBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],A7.prototype,"openPopupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],A7.prototype,"data",void 0);
_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],A7.prototype,"onYtNavigate",null);_.C([_.m({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],A7);
_.b(A7,"ytd-simple-text-section-renderer",function(){if(FiT!==void 0)return FiT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return FiT=F},{mode:1});var tQ9;_.mo("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var vz=function(){return _.x.apply(this,arguments)||this};
_.M(vz,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],vz.prototype,"data",void 0);_.C([_.m({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],vz);
_.b(vz,"ytd-unlimited-page-feature-info-renderer",function(){if(tQ9!==void 0)return tQ9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return tQ9=F},{mode:1});var uv9;var JZJ;var IQ=function(){return _.x.apply(this,arguments)||this};
_.M(IQ,_.x);IQ.prototype.dataChanged=function(){if(this.data){var F=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);F&&(F=_.ZR(F,screen.width),this.hostElement.style.backgroundImage="url("+F+")")}};
IQ.prototype.dataChanged=IQ.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],IQ.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IQ.prototype,"dataChanged",null);_.C([_.m({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],IQ);
_.b(IQ,"ytd-post-redemption-section-renderer",function(){if(JZJ!==void 0)return JZJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return JZJ=F},{mode:1});var sZw;var Hz=function(){return _.x.apply(this,arguments)||this};
_.M(Hz,_.x);Hz.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Hz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Hz.prototype,"data",void 0);_.C([_.m({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Hz);
_.b(Hz,"ytd-ypc-post-redemption-renderer",function(){if(sZw!==void 0)return sZw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return sZw=F},{mode:1});_.mo("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var mC=function(){var F=_.x.apply(this,arguments)||this;F.MIN_CODE_LENGTH=12;F.MAX_CODE_LENGTH=24;return F};
_.M(mC,_.x);_.l=mC.prototype;_.l.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.l.created=function(){this.riskService=new _.vaP;this.loadPaymentThenable=_.HS_(_.bn("YPC_MB_URL"))};
_.l.ready=function(){var F=this;this.code.addEventListener("keypress",function(q){F.onCodeInputKeypress(q)})};
_.l.dataChanged=function(){var F=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(q){q=_.X(q);for(var t=q.next();!t.done;t=q.next())t=t.value,t.type==="attributes"&&t.attributeName==="dark"&&F.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.l.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var F=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+F+")")}};
_.l.computeRedeemButton=function(F){(F=this.get("redeemButton.buttonRenderer",F))&&(F=Object.assign({},F,{serviceEndpoint:void 0}));return F};
_.l.onRedeemButtonTap=function(F){F.stopPropagation();V8v();this.redeemCode()};
_.l.redeemCode=function(){var F=this;this.isLoading=!0;var q=this.riskService.init();_.IR([q,this.loadPaymentThenable]).then(function(){var t=F.data.redeemButton.buttonRenderer.serviceEndpoint,u=_.Iit(),J=payments.business.integration.ClientTokenFactory.createClientToken(_.n(t,_.Epd).countryCode,u);u={c:F.code.value.trim(),rd:window.btoa(u),ctk:J};t&&_.sV().resolve(_.gN).resolveCommand(t,{form:Object.assign({},u,{element:F.hostElement})})},function(){F.showGenericError();
D9("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.CI(Error("uo"))})};
_.l.onYtServiceRequestCompleted=function(F){F.stopPropagation();this.isLoading=!1;var q,t;this.errorMessage=(q=F.detail)==null?void 0:(t=q.data)==null?void 0:t.errorMessage;var u,J;this.postRedemptionRenderer=(u=F.detail)==null?void 0:(J=u.data)==null?void 0:J.renderer;var g,Y;if(F=(g=F.detail)==null?void 0:(Y=g.data)==null?void 0:Y.redirectEndpoint)this.isLoading=!0,_.Q0(this.hostElement,"yt-navigate",{endpoint:F});this.errorMessage?D9("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
F)&&_.X2("ypcRedeemFlowSucceeded")};
_.l.onYtServiceRequestError=function(F){F.stopPropagation();this.isLoading=!1;if(F=this.get("detail.error.message",F))this.errorMessage=_.FK(F);D9("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.l.onInvokeInstrumentManagerActionCompleted=function(F){F.stopPropagation();this.redeemCode()};
_.l.onInvokeInstrumentManagerActionError=function(F){F.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",F)){case "instrumentManagerLoadError":this.showGenericError();D9("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();D9("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.X2("ypcRedeemFlowCancelled")}};
_.l.onInput=function(){var F=this;_.aE(this,"onInput",function(){var q=F.code.value.trim();F.redeemButtonDisabled=q.length<F.MIN_CODE_LENGTH||q.length>F.MAX_CODE_LENGTH},200)};
_.l.onCodeInputKeypress=function(F){F.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(V8v(),this.redeemCode())};
_.l.computeImageUrl=function(F){return F?_.ZR(F.thumbnails,600):null};
_.l.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
mC.prototype.onInvokeInstrumentManagerActionError=mC.prototype.onInvokeInstrumentManagerActionError;mC.prototype.onInvokeInstrumentManagerActionCompleted=mC.prototype.onInvokeInstrumentManagerActionCompleted;mC.prototype.onYtServiceRequestError=mC.prototype.onYtServiceRequestError;mC.prototype.onYtServiceRequestCompleted=mC.prototype.onYtServiceRequestCompleted;mC.prototype.dataChanged=mC.prototype.dataChanged;
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],mC.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],mC.prototype,"isLoading",void 0);_.C([_.O(),_.V("design:type",Boolean)],mC.prototype,"redeemButtonDisabled",void 0);
_.C([_.O(),_.V("design:type",Object)],mC.prototype,"errorMessage",void 0);_.C([_.O(),_.V("design:type",Object)],mC.prototype,"postRedemptionRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],mC.prototype,"observer",void 0);_.C([_.Ms("#code"),_.V("design:type",HTMLInputElement)],mC.prototype,"code",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mC.prototype,"dataChanged",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mC.prototype,"onYtServiceRequestCompleted",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mC.prototype,"onYtServiceRequestError",null);
_.C([_.EB("yt-invoke-instrument-manager-action-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mC.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.C([_.EB("yt-invoke-instrument-manager-action-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mC.prototype,"onInvokeInstrumentManagerActionError",null);_.C([_.m({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],mC);
_.b(mC,"ytd-redeem-code-renderer",function(){if(uv9!==void 0)return uv9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return uv9=F},{mode:1});var g2T;_.mo("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var bc=function(){var F=_.x.apply(this,arguments)||this;F.businessEmailDisplayState="HIDE_SECTION";return F};
_.M(bc,_.x);_.l=bc.prototype;_.l.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}}}}}};
_.l.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"};
_.l.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.l.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.KB(_.E_C),this.businessEmailDisplayState="CAPTCHA"))};
_.l.onYtServiceRequestCompleted=function(F){var q;if((q=F.detail.data)==null?0:q.businessEmail)this.businessEmail=F.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var t;if((t=F.detail.data)==null?0:t.errorMessage)this.businessEmailErrorMessage=F.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.l.computeEmailHref=function(F){return"mailto:"+F};
_.l.computeSafeUrl=function(F){if(F)return _.d$(F)};
_.l.onBusinessEmailCaptchaSubmit=function(){var F;(F=this.data)!=null&&F.onBusinessEmailRevealClickCommand&&(F=this.JSC$21679_captchaTextarea.value)&&(F={recaptcha_response_token:F,channel_id:this.data.channelId},_.sV().resolve(_.gN).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},F,{element:this.hostElement})}))};
_.l.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.JJ.Object.defineProperties(bc.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var F,q;return!((F=this.data)==null||!F.primaryLinks)&&!((q=this.data)==null?0:q.links)&&this.data.primaryLinks.every(function(t){return t.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var F,q;return!((F=this.data)==null||!F.primaryLinks)&&!((q=this.data)==null?0:q.links)&&!this.shouldShowNewLinks}}});
bc.prototype.onYtServiceRequestCompleted=bc.prototype.onYtServiceRequestCompleted;bc.prototype.dataChanged=bc.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],bc.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],bc.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.Ms("#g-recaptcha-response"),_.V("design:type",HTMLTextAreaElement)],bc.prototype,"JSC$21679_captchaTextarea",void 0);_.C([_.O(),_.V("design:type",Object)],bc.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],bc.prototype,"businessEmailDisplayState",void 0);_.C([_.O(),_.V("design:type",String)],bc.prototype,"businessEmail",void 0);_.C([_.O(),_.V("design:type",String)],bc.prototype,"businessEmailErrorMessage",void 0);
_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bc.prototype,"hideDetailsSection",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bc.prototype,"dataChanged",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bc.prototype,"shouldShowNewLinks",null);_.C([_.W("data","shouldShowLinks"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bc.prototype,"shouldShowLegacyLinks",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bc.prototype,"onYtServiceRequestCompleted",null);_.C([_.m({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],bc);
_.b(bc,"ytd-channel-about-metadata-renderer",function(){if(g2T!==void 0)return g2T;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return g2T=F},{mode:1});var lr7;_.mo("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var yx=function(){return _.x.apply(this,arguments)||this};
_.M(yx,_.x);yx.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],yx.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],yx.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Number)],yx.prototype,"lockupContainerType",void 0);_.C([_.O(),_.V("design:type",String)],yx.prototype,"thumbnailFixedWidth",void 0);
_.C([_.m({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],yx);
_.b(yx,"ytd-channel-featured-content-renderer",function(){if(lr7!==void 0)return lr7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return lr7=F},{mode:1});var XVQ;_.mo("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var CT=function(){var F=_.x.apply(this,arguments)||this;F.roundContainer=!0;F.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");return F};
_.M(CT,_.x);_.l=CT.prototype;_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.l.dataChanged=function(){this.imageWidth=this.imageHeight=24;var F=this.data;F.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!F.style&&F.image&&F.image.thumbnails.length&&(F=F.image.thumbnails[0],this.imageWidth=F.width||0,this.imageHeight=F.height||0)};
_.l.computeSource=function(F){return F.secondarySource?_.q1(F.secondarySource):_.q1(F.source)};
_.l.computeClarifyStyle=function(F){return F?F.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.l.isLargeStyle=function(F){return F==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.l.computeBackgroundStyle=function(F){return F?F.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.l.computeHasActionButton=function(F){return!!F.actionButton};
_.l.computeHasBottomSection=function(F){return!!F.ctaHasBottomSection};
_.l.computeIsSourceMissing=function(F){return F.ctaHasBottomSection===!1?!0:F&&this.computeSource(F)?!1:!0};
_.l.computeSecondaryEndpoint=function(F){return F.secondaryEndpoint||F.endpoint};
CT.prototype.dataChanged=CT.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],CT.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Number)],CT.prototype,"imageWidth",void 0);_.C([_.O(),_.V("design:type",Number)],CT.prototype,"imageHeight",void 0);
_.C([_.O({computed:"computeSecondaryEndpoint(data)"}),_.V("design:type",Object)],CT.prototype,"secondaryEndpoint",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.V("design:type",Boolean)],CT.prototype,"hasActionButton",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.V("design:type",Boolean)],CT.prototype,"hasBottomSection",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.V("design:type",Boolean)],CT.prototype,"missingSource",void 0);_.C([_.O({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],CT.prototype,"icon",void 0);_.C([_.O({computed:"computeIcon_(data.secondaryIcon)"}),_.V("design:type",String)],CT.prototype,"secondaryIcon",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.V("design:type",String)],CT.prototype,"clarifyStyle",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.V("design:type",String)],CT.prototype,"backgroundStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],CT.prototype,"roundContainer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],CT.prototype,"amsterdamEnabled",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CT.prototype,"dataChanged",null);
_.C([_.m({is:"ytd-clarification-renderer",disableElementRegistration:!0})],CT);
_.b(CT,"ytd-clarification-renderer",function(){if(XVQ!==void 0)return XVQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return XVQ=F},{mode:1});var Y87;var pV9;var dq=function(){var F=_.x.apply(this,arguments)||this;F.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");return F};
_.M(dq,_.x);_.l=dq.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.l.computeIcon=function(F){return F?"yt-icons:"+F.toLowerCase():null};
_.l.computeUseContacts=function(F){return!!F.contacts&&F.contacts.length>0};
_.l.computePhoneContact=function(F){var q,t;return(q=F.contacts)==null?void 0:(t=q.find(function(u){var J;return(u==null?void 0:(J=u.icon)==null?void 0:J.iconType)==="PHONE"}))==null?void 0:t.actionText};
_.l.computeSmsContact=function(F){var q,t;return(q=F.contacts)==null?void 0:(t=q.find(function(u){var J;return(u==null?void 0:(J=u.icon)==null?void 0:J.iconType)==="SMS"}))==null?void 0:t.actionText};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],dq.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],dq.prototype,"amsterdamEnabled",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.V("design:type",Boolean)],dq.prototype,"useContacts",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.V("design:type",String)],dq.prototype,"phoneContact",void 0);_.C([_.m({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],dq);
_.b(dq,"ytd-single-action-emergency-support-renderer",function(){if(pV9!==void 0)return pV9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return pV9=F},{mode:1});_.mo("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Vx=function(){var F=_.x.apply(this,arguments)||this;F.roundedContainer=!0;F.amsterdamEnabled=_.E("enable_desktop_amsterdam_info_panels");return F};
_.M(Vx,_.x);Vx.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"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Vx.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Vx.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Vx.prototype,"roundedContainer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Vx.prototype,"amsterdamEnabled",void 0);
_.C([_.m({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Vx);
_.b(Vx,"ytd-emergency-onebox-renderer",function(){if(Y87!==void 0)return Y87;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Y87=F},{mode:1});var QZ3;_.mo("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Ut=function(){return _.x.apply(this,arguments)||this};
_.M(Ut,_.x);Ut.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ut.prototype,"data",void 0);_.C([_.m({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Ut);
_.b(Ut,"ytd-exploratory-results-renderer",function(){if(QZ3!==void 0)return QZ3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return QZ3=F},{mode:1});var eL3;_.mo("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var S8=function(){var F=_.x.apply(this,arguments)||this;F.messageData=null;return F};
_.M(S8,_.x);_.l=S8.prototype;_.l.onServiceRequestCompleted=function(F,q){F=q.actions||[];q=0;for(var t=F.length;q<t;q++){var u=F[q],J=void 0,g=void 0;if((J=_.n(u,_.HX))==null?0:(g=J.item)==null?0:g.messageRenderer)this.messageData=_.n(u,_.HX).item.messageRenderer}};
_.l.dataChanged=function(){var F=this.data;this.hostElement.hidden=!1;_.RE(this.hostElement,"is-channel",F&&!F.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.l.computeThumbnailWidth=function(F){return F?126:56};
_.l.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.l.onSubmitTap=function(){var F=this.data,q=this.selectedResponseIndex;F!==void 0&&q!==void 0&&(F=F.responses[q],F.responseData&&_.sV().resolve(_.gN).resolveCommand(F.responseData,{form:{element:this.hostElement}}))};
_.l.onDismissTap=function(){this.hostElement.hidden=!0;var F=this.data;F!==void 0&&F.dismissalEndpoint&&_.sV().resolve(_.gN).resolveCommand(F.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.updateSelectedResponseIndexFromBinding=function(F){this.selectedResponseIndex=F.detail.value};
S8.prototype.onSelectedResponseIndexChange=S8.prototype.onSelectedResponseIndexChange;S8.prototype.dataChanged=S8.prototype.dataChanged;S8.prototype.onServiceRequestCompleted=S8.prototype.onServiceRequestCompleted;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],S8.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],S8.prototype,"messageData",void 0);
_.C([_.O(),_.V("design:type",Number)],S8.prototype,"selectedResponseIndex",void 0);_.C([_.Ms("#submit-button"),_.V("design:type",HTMLButtonElement)],S8.prototype,"submitButton",void 0);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],S8.prototype,"onServiceRequestCompleted",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],S8.prototype,"dataChanged",null);
_.C([_.za("selectedResponseIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],S8.prototype,"onSelectedResponseIndexChange",null);_.C([_.m({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],S8);
_.b(S8,"ytd-feedback-elicitation-single-question-renderer",function(){if(eL3!==void 0)return eL3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return eL3=F},{mode:1});var Z0C;var h7=function(){return _.x.apply(this,arguments)||this};
_.M(h7,_.x);h7.prototype.computeThumbnailWidth=function(F){return F?602:428};
h7.prototype.updateWideFromBinding=function(F){this.wide=F.detail.value};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],h7.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],h7.prototype,"wide",void 0);_.C([_.m({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],h7);
_.b(h7,"ytd-newspaper-hero-video-renderer",function(){if(Z0C!==void 0)return Z0C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Z0C=F},{mode:1});var RLh;var KT=function(){return _.x.apply(this,arguments)||this};
_.M(KT,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],KT.prototype,"rendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],KT.prototype,"data",void 0);_.C([_.m({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],KT);
_.b(KT,"ytd-newspaper-mini-video-renderer",function(){if(RLh!==void 0)return RLh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return RLh=F},{mode:1});var rZ3;_.mo("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Bz=function(){return _.x.apply(this,arguments)||this};
_.M(Bz,_.x);Bz.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"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Bz.prototype,"data",void 0);_.C([_.m({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Bz);
_.b(Bz,"ytd-newspaper-renderer",function(){if(rZ3!==void 0)return rZ3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return rZ3=F},{mode:1});var NyQ;_.mo("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var LT=function(){var F=_.x.apply(this,arguments)||this;F.isSegment=!1;F.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};F.nextContinuation={continuationType:"playlistVideoListContinuation"};return F};
_.M(LT,_.x);_.l=LT.prototype;_.l.attached=function(){_.sV();var F;(F=_.sV().resolve(_.JU(_.Go)))!=null&&(F.playlistVideoListElement=this.hostElement)};
_.l.detached=function(){var F;(F=_.sV().resolve(_.JU(_.Go)))!=null&&(F.playlistVideoListElement=void 0);F=_.sV().resolve(_.JU(_.WF));_.E("web_enable_voting_animation")&&F&&(F.parentElem=void 0,F.videos=[],F.continuationsPresent=!1,F.showRefreshPill=!1)};
_.l.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"}}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.l.dataChanged=function(){var F=_.sV().resolve(_.JU(_.WF));if(_.E("web_enable_voting_animation")&&this.data&&F){var q=_.ep(this.hostElement).querySelector("#contents");q&&(F.parentElem=q);F.addVideos(this.data.contents)}_.Fzx(this.ytReorderableBehavior)};
_.l.onRendererstamperFinished=function(){this.canReorder&&_.qpj(this.ytReorderableBehavior,_.ep(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.l.onPlaylistReloading=function(){this.isReloading=!0};
_.l.onUpdateSetVideoId=function(F){if(F.detail&&this.data&&this.data.contents){var q=F.detail;F=this.data.contents.findIndex(function(J){var g;return((g=J.playlistVideoRenderer)==null?void 0:g.videoId)===q.videoId});
if(!(F<0)&&q.setVideoId&&(this.set("data.contents."+F+".playlistVideoRenderer.setVideoId",q.setVideoId),_.E("web_enable_voting_animation"))){var t;if(F=_.n((t=this.data.contents[F].playlistVideoRenderer)==null?void 0:t.engagementBar,_.F5o)){var u;(u=F.actions)==null||u.forEach(function(J){if(J=_.n(J,_.qgM))J.itemId=q.setVideoId})}(t=_.sV().resolve(_.JU(_.WF)))&&Umw(t,q.videoId,q.setVideoId)}}};
_.l.computeContentsClass=function(F){return F?"reloading":""};
_.l.computeIsSortable=function(F,q){return F&&q>0&&!this.isSegment&&!_.E("shorts_in_playlists_web")};
_.l.computeIsEditable=function(F){return F};
_.l.computeCanReorder=function(F){return F};
_.l.handlePlaylistRemoveVideosAction=function(F){if(this.get("playlistRemoveVideosAction.setVideoIds",F)&&this.data&&this.data.contents){F=_.n(F,_.a6v).setVideoIds;for(var q=this.data.contents.length-1;q>=0;){var t=this.data.contents[q].playlistVideoRenderer;t&&t.setVideoId&&F.includes(t.setVideoId)&&this.splice("data.contents",q,1);q--}_.ec(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.l.updateIndices=function(){if(this.data&&this.data.contents)for(var F=0;F<this.data.contents.length;F++)this.set("data.contents."+F+".playlistVideoRenderer.index",_.FK(String(F+1)))};
_.l.handleDrop=function(F){F=F.currDragItem;var q=_.Hy(F.parentNode.childNodes,F),t=this.data.contents.splice(Number(_.q1(F.data.index))-1,1)[0];this.data.contents.splice(q,0,t);q=q?this.get("contents."+(q-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();F=this.buildReorderServiceEndpoint(F.data.setVideoId,q);this.ytComponentBehavior.resolveCommand(F)};
_.l.buildReorderServiceEndpoint=function(F,q){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",F),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",q),this.data.onReorderEndpoint):null};
_.l.handleUpdatePlaylistAction=function(F){var q;(F=_.n((q=_.n(F,_.jRf))==null?void 0:q.updatedRenderer,_.UXf))&&this.canReorder!==F.canReorder&&this.set("data.canReorder",F.canReorder);F&&F.contents&&(this.set("data.contents",F.contents),this.isReloading=!1);F&&F.continuations&&this.set("data.continuations",F.continuations)};
_.l.handleAddRendererToItemSectionAction=function(F){var q,t=(q=_.n(F,LCC))==null?void 0:q.renderer,u;t&&((u=_.n(F,LCC))==null?void 0:u.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,t),F=_.sV().resolve(_.JU(_.WF)),_.E("web_enable_voting_animation")&&F&&(t&&(q=_.cAW(t))&&F.recommendedVideos.push({itemId:q,videoId:_.t_q(t),voteCount:_.ux_(t),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.l.isVotingEnabledOnPlaylist=function(F){if(!F)return!1;F=_.X(F);for(F=F.next();!F.done;F=F.next()){var q=void 0;return!!_.n((q=F.value.playlistVideoRenderer)==null?void 0:q.engagementBar,_.F5o)}return!1};
_.l.onAppendContinuationItemsActionFinished=function(){var F;this.isVotingEnabledOnPlaylist((F=this.data)==null?void 0:F.contents)&&(this.updateIndices(),F=_.sV().resolve(_.JU(_.WF)),_.E("web_enable_voting_animation")&&F&&this.data&&F.addVideos(this.data.contents))};
_.l.updateVideoData=function(F){if(F.detail&&this.data&&this.data.contents){var q=F.detail;F=q.toIdx;var t=q.itemId,u=q.newVoteCount,J=q.voteStatus;q=q.hideItem;var g,Y,Q=(g=this.data)==null?void 0:(Y=g.contents)==null?void 0:Y.findIndex(function(w){return _.cAW(w)===t});
if(!(Q<0)){g=this.data.contents[Q];var e;if((e=g.playlistVideoRenderer)==null?0:e.voteCount)g.playlistVideoRenderer.voteCount=u;var r;if(e=_.n((r=g.playlistVideoRenderer)==null?void 0:r.engagementBar,_.F5o)){var N;(N=e.actions)==null||N.forEach(function(w){(w=_.n(w,_.qgM))&&w.initialState&&(w.initialState.votes=u,w.initialState.status=J)})}this.data.contents.splice(Q,1);
q||this.data.contents.splice(F,0,g);this.updateIndices()}}};
LT.prototype.updateVideoData=LT.prototype.updateVideoData;LT.prototype.onAppendContinuationItemsActionFinished=LT.prototype.onAppendContinuationItemsActionFinished;LT.prototype.onUpdateSetVideoId=LT.prototype.onUpdateSetVideoId;LT.prototype.onPlaylistReloading=LT.prototype.onPlaylistReloading;LT.prototype.onRendererstamperFinished=LT.prototype.onRendererstamperFinished;LT.prototype.dataChanged=LT.prototype.dataChanged;
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],LT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],LT.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.eH.YtNextContinuationBehavior),_.V("design:type",Object)],LT.prototype,"ytNextContinuationBehavior",void 0);
_.C([_.D(_.tFJ),_.V("design:type",Object)],LT.prototype,"ytReorderableBehavior",void 0);_.C([_.D(_.Qd),_.V("design:type",Object)],LT.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],LT.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],LT.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],LT.prototype,"isReloading",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],LT.prototype,"isSegment",void 0);_.C([_.O({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.V("design:type",Boolean)],LT.prototype,"isSortable",void 0);_.C([_.O({computed:"computeIsEditable(data.isEditable)"}),_.V("design:type",Boolean)],LT.prototype,"isEditable",void 0);_.C([_.O({computed:"computeCanReorder(data.canReorder)"}),_.V("design:type",Boolean)],LT.prototype,"canReorder",void 0);
_.C([_.O({value:101}),_.V("design:type",Number)],LT.prototype,"scrollMargin",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LT.prototype,"dataChanged",null);_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LT.prototype,"onRendererstamperFinished",null);
_.C([_.EB("yt-playlist-reloading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LT.prototype,"onPlaylistReloading",null);_.C([_.EB("yt-update-set-video-id"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],LT.prototype,"onUpdateSetVideoId",null);
_.C([_.EB("yt-append-continuation-items-action-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LT.prototype,"onAppendContinuationItemsActionFinished",null);_.C([_.EB("yt-update-video-data-voting-animation"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],LT.prototype,"updateVideoData",null);_.C([_.m({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],LT);
_.b(LT,"ytd-playlist-video-list-renderer",function(){if(NyQ!==void 0)return NyQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return NyQ=F},{mode:_.Nc("kevlar_poly_si_batch_j047")?1:2});var wVs;var fT=function(){return _.x.apply(this,arguments)||this};
_.M(fT,_.x);fT.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"}}}}};
fT.prototype.onTextWrapperTap=function(F){var q=this.data&&this.data.navigationEndpoint;q&&!_.tC(_.tY(F),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Q0(this.hostElement,"yt-navigate",{endpoint:q})};
fT.prototype.dataChanged=function(){var F=this.get("data.offerButton.buttonRenderer.serviceEndpoint");F&&F.commandMetadata&&_.n(F.commandMetadata,_.Cu)&&_.n(F.commandMetadata,_.Cu).fireAutomatically&&_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}})};
fT.prototype.dataChanged=fT.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],fT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.r8),_.V("design:type",Object)],fT.prototype,"ytdLockupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],fT.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],fT.prototype,"useBiggerThumbs",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.pE("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],fT.prototype,"biggerThumbsStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],fT.prototype,"leftAligned",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fT.prototype,"dataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-movie-renderer"})],fT);
_.b(fT,"ytd-movie-renderer",function(){if(wVs!==void 0)return wVs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return wVs=F},{mode:1});var i0v;var aQ=function(){var F=_.x.apply(this,arguments)||this;F.rounded=!0;F.pageAttachedTo=void 0;F.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return F};
_.M(aQ,_.x);aQ.prototype.attached=function(){this.pageAttachedTo=_.sV().resolve(_.JC).getCurrentPage();_.Q0(this.hostElement,"yt-player-attached",this.player)};
aQ.prototype.detached=function(){var F;if((F=this.pageAttachedTo)==null?0:F.hostElement)_.Q0(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
aQ.prototype.dataChanged=function(){var F;if((F=this.data)==null?0:F.videoId)F={video_id:this.data.videoId,autoplay:!0},!_.E("miniplayer_stop_channel_video_autoplay_killswitch")&&_.sV().resolve(_.m4).isMiniplayerActive()&&(F.pause_at_start=!0,F.autoplay=!1),this.player.loadVideoWithPlayerVars(F)};
aQ.prototype.handleSignalActionPausePlayer=function(){_.l6().pause()};
aQ.prototype.dataChanged=aQ.prototype.dataChanged;_.C([_.O(),_.V("design:type",Object)],aQ.prototype,"data",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],aQ.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aQ.prototype,"rounded",void 0);_.C([_.Ms("#player"),_.V("design:type",Object)],aQ.prototype,"player",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aQ.prototype,"dataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],aQ);
_.b(aQ,"ytd-channel-video-player-renderer",function(){if(i0v!==void 0)return i0v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return i0v=F},{mode:1});var kE9;var E25;var zLs;var j8=function(){var F=_.x.apply(this,arguments)||this;F.playing=!1;F.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.K3(F);F.active=!1;return F};
_.M(j8,_.x);_.l=j8.prototype;_.l.detached=function(){this.stop()};
_.l.play=function(){var F=this,q,t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return F.active=!0,q=F.get("data.inlinePlaybackEndpoint.watchEndpoint"),t=q.videoId||F.data.videoId,u=q.startTimeSeconds||0,J=q.playerParams||null,_.E("kevlar_player_update_killswitch")?Y.yield(F.playerEl.update({args:{video_id:t,startSeconds:u,player_params:J}}),2):(F.playerEl.loadVideoWithPlayerVars({video_id:t,startSeconds:u,player_params:J,autoplay:!0}),Y.jumpTo(2));if(Y.nextAddress!=4)return Y.yield(F.playerEl.getPlayerPromise(),
4);g=Y.yieldResult;g.unloadModule("annotations_module");g.addEventListener("onStateChange",function(Q){F.onPlayerStateChange(Q)});
_.WA(Y)})};
_.l.onPlayerStateChange=function(F){if(this.active)switch(this.playing=F===1,F){case 1:_.Q0(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Q0(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.l.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.l.resize=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return t.yield(F.playerEl.getPlayerPromise(),2);q=t.yieldResult;q.setSize(NaN,NaN);_.WA(t)})};
_.C([_.O(),_.V("design:type",Object)],j8.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],j8.prototype,"playing",void 0);_.C([_.O(),_.V("design:type",Object)],j8.prototype,"playerId",void 0);_.C([_.Ms("#player"),_.V("design:type",Object)],j8.prototype,"playerEl",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],j8);
_.b(j8,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(zLs!==void 0)return zLs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return zLs=F},{mode:1});var o2T;var n2C;var cz=function(){var F=_.x.apply(this,arguments)||this;F.width=0;return F};
_.M(cz,_.x);_.l=cz.prototype;_.l.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.kM(this,this.onEnded));this.mp4El.addEventListener("error",_.kM(this,this.onError))};
_.l.detached=function(){this.videoEl.removeEventListener("ended",_.kM(this,this.onEnded));this.mp4El.removeEventListener("error",_.kM(this,this.onError))};
_.l.play=function(){var F=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var q=this.videoEl.play();q?q.then(function(){F.handleVideoStartPlaying()}).catch(function(){_.Q0(F.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Q0(this.hostElement,"yt-video-thumbnail-not-playing")};
_.l.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.l.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.l.dataChanged=function(){var F;if((F=this.data)==null?0:F.thumbnailPlaceholder)F=_.ZR(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+F+")";this.stop();this.autoplay&&this.play()};
_.l.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.l.onEnded=function(){this.stop();_.Q0(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.l.onError=function(){_.Q0(this.hostElement,"yt-video-thumbnail-error")};
_.l.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.l.getVideoThumbnail=function(F){if(F&&F.length)return F[0]};
cz.prototype.dataChanged=cz.prototype.dataChanged;_.C([_.O(),_.V("design:type",Object)],cz.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],cz.prototype,"animatePlaceholderOnEntrance",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],cz.prototype,"autoplay",void 0);_.C([_.O({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.V("design:type",Object)],cz.prototype,"videoThumbnail",void 0);
_.C([_.O(),_.V("design:type",Boolean)],cz.prototype,"loop",void 0);_.C([_.O(),_.V("design:type",Boolean)],cz.prototype,"isVideoPlaying",void 0);_.C([_.O(),_.V("design:type",Object)],cz.prototype,"width",void 0);_.C([_.Ms("#mp4"),_.V("design:type",HTMLElement)],cz.prototype,"mp4El",void 0);_.C([_.Ms("#placeholder"),_.V("design:type",HTMLElement)],cz.prototype,"placeholderEl",void 0);_.C([_.Ms("#video"),_.V("design:type",HTMLVideoElement)],cz.prototype,"videoEl",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cz.prototype,"dataChanged",null);_.C([_.Vu({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],cz);
_.b(cz,"yt-video-as-thumbnail-details",function(){if(n2C===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;o2T===void 0&&(o2T=document.createElement("template"));var u=o2T;t.call(q,u.content.cloneNode(!0),F.content.firstChild);n2C=F}F=n2C;return F},{mode:2});var Fv=function(){var F=_.x.apply(this,arguments)||this;F.disableGridStateAware=!1;F.animationEnabled=_.E("enable_web_ketchup_hero_animation");F.transitioningOut=!1;F.narrow=!1;F.narrower=!1;F.isCarouselInFeed=!1;F.videoTimeoutJobId=0;F.panelTimeoutJobId=0;F.panelTimeoutJobStartMs=0;F.actionMap={"yt-window-resized":"onWindowResized"};return F};
_.M(Fv,_.x);_.l=Fv.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.l.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var F;this.player&&((F=this.data)==null?0:F.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.l.attached=function(){this.onWindowResized()};
_.l.detached=function(){this.clearTimeouts()};
_.l.onWindowResized=function(){this.updateSize()};
_.l.computePanelLayout=function(F){return F&&F.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.l.playVideo=function(){var F;this.video&&((F=this.data)==null?0:F.videoThumbnail)&&this.video.play();var q;this.player&&((q=this.data)==null?0:q.inlinePlaybackRenderer)&&this.player.play()};
_.l.stopVideo=function(){var F;this.video&&((F=this.data)==null?0:F.videoThumbnail)&&this.video.stop();var q;this.player&&((q=this.data)==null?0:q.inlinePlaybackRenderer)&&this.player.stop()};
_.l.transitionOut=function(){var F=this;this.transitioningOut=!0;return new Promise(function(q){var t=function(){_.ep(F.hostElement).querySelector("#action-button").removeEventListener("animationend",t);_.mI.cancelJob(u);q();F.transitioningOut=!1};
var u=_.W2(_.mI,t,1E3);_.ep(F.hostElement).querySelector("#action-button").addEventListener("animationend",t);F.player&&(F.player.playing=!1)})};
_.l.computeMetadataOrder=function(F){return F&&F.metadataOrder&&F.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?F.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.l.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.l.computeAvatarSize=function(F){return F&&F.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.l.onContentClick=function(F){if(!_.tC(_.tY(F),this.hostElement,["A".toString(),"BUTTON".toString()])){var q;if((q=this.data)==null?0:q.navigationEndpoint){var t;this.componentBehavior.resolveCommand((t=this.data)==null?void 0:t.navigationEndpoint)}}};
_.l.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.l.setBackgroundImage=function(F){if(F=this.getBackgroundImageUrl(F))_.ep(this.hostElement).querySelector("#hero").style.backgroundImage="url("+F+")"};
_.l.setScrimLayer=function(F){var q=this.getScrimLayerColorStops(F);F=((F==null?void 0:F.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(F=180);_.bn("HTML_DIR")==="rtl"&&(F=-F);q&&(_.ep(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+F+"deg, "+q+")")};
_.l.isNarrower=function(){return this.hostElement.clientWidth<Fv.NARROW_VERSION_SIZE};
_.l.getScrimLayerColorStops=function(){var F,q=(F=this.data)==null?void 0:F.scrimColorValues;if(!q)return null;if(q.length===1)return F=_.KG(q[0]),F+" 0%, "+F+" 100%";if(q.length===3){var t=[0,72,98];return q.map(function(u,J){return _.KG(u)+" "+t[J]+"%"}).join(",")}return null};
_.l.getBackgroundImageUrl=function(F){return F&&F.largeFormFactorBackgroundThumbnail?_.ZR((F.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||F.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.l.onPlaying=function(){this.startVideoTimeout()};
_.l.onEnded=function(){this.rotate()};
_.l.startPanelTimeout=function(){var F=this;if(!this.panelTimeoutJobId){var q=this.get("data.minPanelDisplayDurationMs");q&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.W2(_.mI,function(){F.rotate()},q))}};
_.l.startVideoTimeout=function(){var F=this;if(!this.videoTimeoutJobId){_.mI.cancelJob(this.panelTimeoutJobId);var q=Date.now()-this.panelTimeoutJobStartMs;q=Math.max(0,this.get("data.minPanelDisplayDurationMs")-q);q=Math.max(this.get("data.minVideoPlayDurationMs")||0,q);this.videoTimeoutJobId=_.W2(_.mI,function(){F.rotate()},q)}};
_.l.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.mI.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.mI.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.l.rotate=function(){this.clearTimeouts();_.Q0(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.JJ.Object.defineProperties(Fv.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.ep(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.ep(this.hostElement).querySelector("#video")}}});
_.JJ.Object.defineProperties(Fv,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Fv.prototype.onEnded=Fv.prototype.onEnded;Fv.prototype.onPlaying=Fv.prototype.onPlaying;Fv.prototype.dataChanged=Fv.prototype.dataChanged;_.C([_.D(_.p_),_.V("design:type",Object)],Fv.prototype,"ytdGridStateAwareBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Fv.prototype,"componentBehavior",void 0);_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Fv.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.D(_.sxx),_.V("design:type",Object)],Fv.prototype,"ytBooleanLogicBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Fv.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fv.prototype,"disableGridStateAware",void 0);_.C([_.O(),_.V("design:type",Object)],Fv.prototype,"data",void 0);_.C([_.O({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.V("design:type",String)],Fv.prototype,"panelLayout",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fv.prototype,"animationEnabled",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fv.prototype,"transitioningOut",void 0);
_.C([_.O({computed:"computeMetadataOrder(data)"}),_.V("design:type",Boolean)],Fv.prototype,"metadataOrder",void 0);_.C([_.O({computed:"computeByline(data)"}),_.V("design:type",Object)],Fv.prototype,"byline",void 0);_.C([_.O({computed:"computeAvatarSize(data)"}),_.V("design:type",Number)],Fv.prototype,"avatarSize",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fv.prototype,"narrow",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fv.prototype,"narrower",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fv.prototype,"layoutStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fv.prototype,"isCarouselInFeed",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fv.prototype,"dataChanged",null);_.C([_.EB("yt-default-promo-panel-renderer-playing"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fv.prototype,"onPlaying",null);
_.C([_.EB("yt-default-promo-panel-renderer-ended"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fv.prototype,"onEnded",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Fv);
_.b(Fv,"ytd-default-promo-panel-renderer",function(){if(E25!==void 0)return E25;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return E25=F},{mode:1});_.mo("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var qS=function(){var F=_.x.apply(this,arguments)||this;F.narrower=!1;F.dotMenuVisible=!1;F.paginationThumbnailsVisible=!1;F.active=!0;F.disableGridStateAware=!1;F.actionMap={"yt-window-resized":"onWindowResized"};return F};
_.M(qS,_.x);_.l=qS.prototype;_.l.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]]"}}}}}};
_.l.attached=function(){document.addEventListener("yt-page-type-changed",_.kM(this,this.onPageTypeChange));this.currentPageSubtype=_.M1(location.pathname);this.onWindowResized()};
_.l.detached=function(){this.jobId&&_.mI.cancelJob(this.jobId);this.updateSizeJobId&&_.mI.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.kM(this,this.onPageTypeChange))};
_.l.onPageTypeChange=function(F){this.active=F.detail.newPageSubtype===this.currentPageSubtype};
_.l.onWindowResized=function(){this.updateSize()};
_.l.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.l.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.l.setCarouselItem=function(F){F>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.mI.cancelJob(this.jobId);var q=this.getCurrentPanelElement();q&&q.stopVideo();this.currentItemIndex=F%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(q||(q=this.getCurrentPanelElement()),q.playVideo()):this.startRotationJob()};
_.l.scrollThumbnails=function(F){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var q=this.getCurrentPaginationElement();if(q){var t=_.ep(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?t.style.transform="translateX(0)":(q=q.offsetWidth+8,t.style.transform="translateX(-"+q*(F-Math.ceil(Math.floor(this.overlay.offsetWidth/q)/2)+1)+"px)")}}};
_.l.onDataChanged=function(){var F=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Ze(_.mI,function(){var q;(q=F.getCurrentPanelElement())==null||q.updateSize();F.updateSize()}))};
_.l.getCurrentPanelElement=function(){return _.ep(_.ep(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.l.getCurrentPaginationElement=function(){return _.ep(_.ep(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.l.getNavigationClass=function(F,q){return F===q?"selected":""};
_.l.getNavigationDurationStyle=function(F){return"animation-duration:"+(this.get("data.carouselItems."+F+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.l.onNavigationTap=function(F){var q=this,t=F.model.index;t!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){q.setCarouselItem(t)}),this.autorotateActive=!1)};
_.l.onVideoThumbnailEnded=function(){var F=this;if(this.shouldRotate()){var q=this.getCurrentPaginationElement();q&&(q.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){q.classList.remove("finished");F.setNextCarouselItem()}))}};
_.l.onVideoThumbnailError=function(){this.startRotationJob()};
_.l.onVideoNotPlaying=function(){this.startRotationJob()};
_.l.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.l.startRotationJob=function(){var F=this;_.mI.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.mI.addLowPriorityJob(function(){F.getCurrentPanelElement().transitionOut().then(function(){F.setNextCarouselItem()})},this.rotationTimeout))};
_.l.computeDotMenuVisible=function(F,q){return!!F&&!!F.carouselItems&&F.carouselItems.length>1&&!F.paginationThumbnails||!!q};
_.l.computePaginationThumbnailsVisible=function(F,q){var t,u;return((u=F==null?void 0:(t=F.paginationThumbnails)==null?void 0:t.length)!=null?u:0)>1&&!q};
_.l.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.l.computePaginatorAlignment=function(F){return(F==null?void 0:F.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.l.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.l.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.l.isNarrower=function(F){return(F!=null?F:0)<Fv.NARROW_VERSION_SIZE};
qS.prototype.activeChanged=qS.prototype.activeChanged;qS.prototype.onVideoNotPlaying=qS.prototype.onVideoNotPlaying;qS.prototype.onVideoThumbnailError=qS.prototype.onVideoThumbnailError;qS.prototype.onVideoThumbnailEnded=qS.prototype.onVideoThumbnailEnded;qS.prototype.onDataChanged=qS.prototype.onDataChanged;_.C([_.D(_.p_),_.V("design:type",Object)],qS.prototype,"ytdGridStateAwareBehavior",void 0);
_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],qS.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],qS.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],qS.prototype,"currentItem",void 0);
_.C([_.O(),_.V("design:type",Number)],qS.prototype,"currentItemIndex",void 0);_.C([_.O(),_.V("design:type",Number)],qS.prototype,"rotationTimeout",void 0);_.C([_.O(),_.V("design:type",Number)],qS.prototype,"loopCount",void 0);_.C([_.O({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.V("design:type",String)],qS.prototype,"paginatorAlignment",void 0);_.C([_.O(),_.V("design:type",Number)],qS.prototype,"jobId",void 0);
_.C([_.O(),_.V("design:type",Number)],qS.prototype,"updateSizeJobId",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],qS.prototype,"isCarouselInFeed",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],qS.prototype,"narrower",void 0);_.C([_.O({computed:"computeDotMenuVisible(data, narrower)"}),_.V("design:type",Object)],qS.prototype,"dotMenuVisible",void 0);
_.C([_.O({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.V("design:type",Object)],qS.prototype,"paginationThumbnailsVisible",void 0);_.C([_.O({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.V("design:type",String)],qS.prototype,"layoutType",void 0);_.C([_.O({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],qS.prototype,"autorotateActive",void 0);_.C([_.O(),_.V("design:type",Object)],qS.prototype,"active",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],qS.prototype,"disableGridStateAware",void 0);_.C([_.Ms("#overlay"),_.V("design:type",HTMLElement)],qS.prototype,"overlay",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qS.prototype,"onDataChanged",null);
_.C([_.EB("yt-video-thumbnail-ended"),_.EB("yt-default-promo-panel-renderer-rotate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qS.prototype,"onVideoThumbnailEnded",null);_.C([_.EB("yt-video-thumbnail-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qS.prototype,"onVideoThumbnailError",null);
_.C([_.EB("yt-video-thumbnail-not-playing"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qS.prototype,"onVideoNotPlaying",null);_.C([_.Wh("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qS.prototype,"activeChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],qS);
_.b(qS,"ytd-carousel-item-renderer",function(){if(kE9!==void 0)return kE9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return kE9=F},{mode:2});var MQC;var TyC;var GE7;var DSD;var tZ=function(){var F=_.x.apply(this,arguments)||this;F.originalQuery=null;F.originalEndpoint=null;return F};
_.M(tZ,_.x);tZ.prototype.computeShowOriginalQueryWithoutEndpoint_=function(F,q){return!(!F||q)};
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],tZ.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],tZ.prototype,"correctedText",void 0);_.C([_.O(),_.V("design:type",Object)],tZ.prototype,"correctedQuery",void 0);_.C([_.O(),_.V("design:type",Object)],tZ.prototype,"correctedEndpoint",void 0);_.C([_.O(),_.V("design:type",Object)],tZ.prototype,"originalText",void 0);_.C([_.O(),_.V("design:type",Object)],tZ.prototype,"originalQuery",void 0);
_.C([_.O(),_.V("design:type",Object)],tZ.prototype,"originalEndpoint",void 0);_.C([_.O({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.V("design:type",Boolean)],tZ.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.C([_.Vu({is:"yt-search-query-correction",disableElementRegistration:!0})],tZ);
_.b(tZ,"yt-search-query-correction",function(){if(DSD===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;GE7===void 0&&(GE7=document.createElement("template"));var u=GE7;t.call(q,u.content.cloneNode(!0),F.content.firstChild);DSD=F}F=DSD;return F},{mode:2});_.mo("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var ug=function(){return _.x.apply(this,arguments)||this};
_.M(ug,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ug.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ug.prototype,"data",void 0);_.C([_.Vu({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],ug);
_.b(ug,"yt-did-you-mean-renderer",function(){if(TyC===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;MQC===void 0&&(MQC=document.createElement("template"));var u=MQC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);TyC=F}F=TyC;return F},{mode:2});var Wis;var O09;_.mo("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var JZ=function(){return _.x.apply(this,arguments)||this};
_.M(JZ,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],JZ.prototype,"data",void 0);_.C([_.Vu({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],JZ);
_.b(JZ,"yt-including-results-for-renderer",function(){if(O09===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Wis===void 0&&(Wis=document.createElement("template"));var u=Wis;t.call(q,u.content.cloneNode(!0),F.content.firstChild);O09=F}F=O09;return F},{mode:2});var Pgw;var xS5;_.mo("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var s8=function(){return _.x.apply(this,arguments)||this};
_.M(s8,_.x);s8.prototype.computeExtraClasses_=function(F,q){var t="";F&&(t+=" "+F.toLowerCase().replace(/_/g,"-"));q&&(t+=" "+q.toLowerCase().replace(/_/g,"-"));return t};
s8.prototype.computeUrlImg_=function(){var F=this.data;F.image&&(_.ep(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.ZR(F.image.thumbnails,Number.MAX_VALUE)+")")};
s8.prototype.computeUrlImg_=s8.prototype.computeUrlImg_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],s8.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],s8.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s8.prototype,"computeUrlImg_",null);_.C([_.Vu({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],s8);
_.b(s8,"yt-music-pass-feature-info-renderer",function(){if(xS5===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Pgw===void 0&&(Pgw=document.createElement("template"));var u=Pgw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);xS5=F}F=xS5;return F},{mode:2});var AZs;var v2y;_.mo("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var gy=function(){return _.x.apply(this,arguments)||this};
_.M(gy,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],gy.prototype,"data",void 0);_.C([_.Vu({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],gy);
_.b(gy,"yt-no-results-found-showing-results-for-renderer",function(){if(v2y===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;AZs===void 0&&(AZs=document.createElement("template"));var u=AZs;t.call(q,u.content.cloneNode(!0),F.content.firstChild);v2y=F}F=v2y;return F},{mode:2});var Irv;var H09;_.mo("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var lg=function(){return _.x.apply(this,arguments)||this};
_.M(lg,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],lg.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],lg.prototype,"data",void 0);_.C([_.Vu({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],lg);
_.b(lg,"yt-results-without-quotes-renderer",function(){if(H09===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Irv===void 0&&(Irv=document.createElement("template"));var u=Irv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);H09=F}F=H09;return F},{mode:2});var mSD;var $Sy;_.mo("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Xv=function(){return _.x.apply(this,arguments)||this};
_.M(Xv,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Xv.prototype,"data",void 0);_.C([_.Vu({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],Xv);
_.b(Xv,"yt-search-no-results-renderer",function(){if($Sy===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;mSD===void 0&&(mSD=document.createElement("template"));var u=mSD;t.call(q,u.content.cloneNode(!0),F.content.firstChild);$Sy=F}F=$Sy;return F},{mode:2});var b0w;var yZ3;_.mo("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Y2=function(){return _.x.apply(this,arguments)||this};
_.M(Y2,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Y2.prototype,"data",void 0);_.C([_.Vu({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Y2);
_.b(Y2,"yt-showing-results-for-renderer",function(){if(yZ3===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;b0w===void 0&&(b0w=document.createElement("template"));var u=b0w;t.call(q,u.content.cloneNode(!0),F.content.firstChild);yZ3=F}F=yZ3;return F},{mode:2});var Cgh;var dSh;var VQs;var US3;var p0=function(){var F=_.x.apply(this,arguments)||this;F.answerExpanded=!1;return F};
_.M(p0,_.x);p0.prototype.toggleAnswer_=function(F){var q=_.uL(F);q&&q.classList.contains("yt-simple-endpoint")||(F.preventDefault(),F.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
p0.prototype.toggleAnswer_=p0.prototype.toggleAnswer_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],p0.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],p0.prototype,"answerExpanded",void 0);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],p0.prototype,"toggleAnswer_",null);
_.C([_.Vu({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],p0);
_.b(p0,"yt-generic-faq-question-renderer",function(){if(US3===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;VQs===void 0&&(VQs=document.createElement("template"));var u=VQs;t.call(q,u.content.cloneNode(!0),F.content.firstChild);US3=F}F=US3;return F},{mode:2});_.mo("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Qc=function(){return _.x.apply(this,arguments)||this};
_.M(Qc,_.x);Qc.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Qc.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Qc.prototype,"data",void 0);_.C([_.Vu({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Qc);
_.b(Qc,"yt-faq-section-renderer",function(){if(dSh===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Cgh===void 0&&(Cgh=document.createElement("template"));var u=Cgh;t.call(q,u.content.cloneNode(!0),F.content.firstChild);dSh=F}F=dSh;return F},{mode:2});var S8D;var hLs;_.mo("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var eQ=function(){return _.x.apply(this,arguments)||this};
_.M(eQ,_.x);
eQ.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"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],eQ.prototype,"data",void 0);_.C([_.Vu({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],eQ);
_.b(eQ,"yt-offer-item-expanded-renderer",function(){if(hLs===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;S8D===void 0&&(S8D=document.createElement("template"));var u=S8D;t.call(q,u.content.cloneNode(!0),F.content.firstChild);hLs=F}F=hLs;return F},{mode:2});var KiT;var By9;_.mo("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Zr=function(){return _.x.apply(this,arguments)||this};
_.M(Zr,_.x);
Zr.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"}}}}};
Zr.prototype.computeFullWidthMode=function(F){return!(!F||!F.fullWidthMode)};
Zr.prototype.computeBorderlessMode=function(F){return!(!F||!F.borderlessMode)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Zr.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.V("design:type",Boolean)],Zr.prototype,"fullWidthMode",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.V("design:type",Boolean)],Zr.prototype,"borderlessMode",void 0);_.C([_.Vu({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Zr);
_.b(Zr,"yt-offer-item-renderer",function(){if(By9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;KiT===void 0&&(KiT=document.createElement("template"));var u=KiT;t.call(q,u.content.cloneNode(!0),F.content.firstChild);By9=F}F=By9;return F},{mode:2});var Li5;var fry;_.mo("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var RZ=function(){return _.x.apply(this,arguments)||this};
_.M(RZ,_.x);RZ.prototype.computeAriaLevel_=function(F){return this.getLevelID_(F)};
RZ.prototype.getLevelID_=function(F){return(F=F.match(/[0-9]+$/))&&F.length==1?F[0]:"1"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],RZ.prototype,"data",void 0);_.C([_.O({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.V("design:type",String)],RZ.prototype,"ariaLevel",void 0);_.C([_.O({value:"heading",reflectToAttribute:!0}),_.V("design:type",String)],RZ.prototype,"role",void 0);
_.C([_.O({value:-1,reflectToAttribute:!0}),_.V("design:type",Number)],RZ.prototype,"tabindex",void 0);_.C([_.Vu({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],RZ);
_.b(RZ,"yt-subscription-product-header-renderer",function(){if(fry===void 0){var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Li5===void 0&&(Li5=document.createElement("template"));var u=Li5;t.call(q,u.content.cloneNode(!0),F.content.firstChild);fry=F}F=fry;return F},{mode:2});var arw;var jZT;_.mo("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var ry=function(){return _.x.apply(this,arguments)||this};
_.M(ry,_.x);ry.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:_.$m("menuRenderer"),events:!0}}};
ry.prototype.onStampFinished_=function(){_.ep(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
ry.prototype.onStampFinished_=ry.prototype.onStampFinished_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ry.prototype,"data",void 0);_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ry.prototype,"onStampFinished_",null);
_.C([_.Vu({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],ry);
_.b(ry,"yt-subscription-product-renderer",function(){if(jZT===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;arw===void 0&&(arw=document.createElement("template"));var u=arw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);jZT=F}F=jZT;return F},{mode:2});var cZv;var Ffy;_.mo("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var NS=function(){return _.x.apply(this,arguments)||this};
_.M(NS,_.x);NS.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
NS.prototype.imageScrimColorValuesChanged_=function(){var F,q=(F=this.data)==null?void 0:F.imageScrimColorValues;_.ep(this.hostElement).querySelector("#scrim").style.backgroundColor=q?_.KG(q[0]):"transparent"};
NS.prototype.imageScrimColorValuesChanged_=NS.prototype.imageScrimColorValuesChanged_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],NS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],NS.prototype,"data",void 0);
_.C([_.za("data.imageScrimColorValues"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NS.prototype,"imageScrimColorValuesChanged_",null);_.C([_.Vu({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],NS);
_.b(NS,"yt-subscription-product-upsell-offer-renderer",function(){if(Ffy===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;cZv===void 0&&(cZv=document.createElement("template"));var u=cZv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Ffy=F}F=Ffy;return F},{mode:2});var q4J;var tK9;var uAh;var Jbw;var s9y;var gsv;var wy=function(){return _.x.apply(this,arguments)||this};
_.M(wy,_.x);wy.prototype.onYtServiceRequestError_=function(F){_.as(this.hostElement,F.detail.error.message)};
wy.prototype.onYtServiceRequestError_=wy.prototype.onYtServiceRequestError_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],wy.prototype,"data",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],wy.prototype,"collapsible",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],wy.prototype,"isManageRed",void 0);
_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],wy.prototype,"onYtServiceRequestError_",null);_.C([_.Vu({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],wy);
_.b(wy,"yt-single-ypc-offer-renderer",function(){if(gsv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;s9y===void 0&&(s9y=document.createElement("template"));var u=s9y;t.call(q,u.content.cloneNode(!0),F.content.firstChild);gsv=F}F=gsv;return F},{mode:2});var ig=function(){return _.x.apply(this,arguments)||this};
_.M(ig,_.x);ig.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ig.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ig.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ig.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],ig.prototype,"isManageRed",void 0);_.C([_.Vu({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],ig);
_.b(ig,"yt-single-ypc-offer-list-renderer",function(){if(Jbw===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;uAh===void 0&&(uAh=document.createElement("template"));var u=uAh;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Jbw=F}F=Jbw;return F},{mode:2});var lp7;var X1D;_.mo("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var k2=function(){return _.x.apply(this,arguments)||this};
_.M(k2,_.x);k2.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],k2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],k2.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],k2.prototype,"isManageRed",void 0);_.C([_.Vu({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],k2);
_.b(k2,"yt-ypc-offers-list-renderer",function(){if(X1D===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;lp7===void 0&&(lp7=document.createElement("template"));var u=lp7;t.call(q,u.content.cloneNode(!0),F.content.firstChild);X1D=F}F=X1D;return F},{mode:2});_.mo("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var E8=function(){return _.x.apply(this,arguments)||this};
_.M(E8,_.x);
E8.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}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],E8.prototype,"data",void 0);_.C([_.Vu({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],E8);
_.b(E8,"yt-unlimited-manage-subscription-page-renderer",function(){if(tK9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;q4J===void 0&&(q4J=document.createElement("template"));var u=q4J;t.call(q,u.content.cloneNode(!0),F.content.firstChild);tK9=F}F=tK9;return F},{mode:2});var Y4y;var p1D;var zE=function(){return _.x.apply(this,arguments)||this};
_.M(zE,_.x);_.l=zE.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.l.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.onKeypress_=function(F){F.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.l.handleHeaderTap_=function(F){F.preventDefault();F.stopPropagation();this.expandOffers_()};
_.l.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.l.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
zE.prototype.dataChanged_=zE.prototype.dataChanged_;_.C([_.D(_.v6),_.V("design:type",Object)],zE.prototype,"ironA11yKeysBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zE.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],zE.prototype,"offersVisible_",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zE.prototype,"dataChanged_",null);_.C([_.Vu({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],zE);
_.b(zE,"yt-collapsible-ypc-offer-renderer",function(){if(p1D===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Y4y===void 0&&(Y4y=document.createElement("template"));var u=Y4y;t.call(q,u.content.cloneNode(!0),F.content.firstChild);p1D=F}F=p1D;return F},{mode:2});var Q9v;var eRs;_.mo("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var oZ=function(){return _.x.apply(this,arguments)||this};
_.M(oZ,_.x);_.l=oZ.prototype;_.l.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.l.dataChanged_=function(){if(this.data.backgroundImage){var F=_.ZR(this.data.backgroundImage.thumbnails,screen.width),q=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=q?"linear-gradient(180deg, "+q+"), url("+F+")":"url("+F+")";this.data.gtmId&&_.f8(this.data.gtmId,_.bn("GL",""))}};
_.l.onYtServiceRequestError_=function(F){_.as(this.hostElement,F.detail.error.message)};
_.l.getScrimLayerColorStops_=function(){var F,q,t=(F=this.data.unlimitedHeaderV2Data)==null?void 0:(q=F.unlimitedHeaderV2Data)==null?void 0:q.scrimLayerColors;if(!t)return null;var u=100/t.length;return t.map(function(J,g){g*=u;return _.KG(J)+" "+g+"%"}).join(",")};
_.l.computeLogoWithPadding=function(F){var q,t,u;return(F=(q=F.unlimitedLogoImage)==null?void 0:(t=q.thumbnails)==null?void 0:(u=t[0])==null?void 0:u.height)&&F%31===0?!0:!1};
oZ.prototype.onYtServiceRequestError_=oZ.prototype.onYtServiceRequestError_;oZ.prototype.dataChanged_=oZ.prototype.dataChanged_;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],oZ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.C([_.O({computed:"computeLogoWithPadding(data)"}),_.V("design:type",Boolean)],oZ.prototype,"logoWithPadding",void 0);
_.C([_.O(),_.V("design:type",Object)],oZ.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oZ.prototype,"dataChanged_",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],oZ.prototype,"onYtServiceRequestError_",null);_.C([_.Vu({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],oZ);
_.b(oZ,"yt-unlimited-page-header-renderer",function(){if(eRs===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Q9v===void 0&&(Q9v=document.createElement("template"));var u=Q9v;t.call(q,u.content.cloneNode(!0),F.content.firstChild);eRs=F}F=eRs;return F},{mode:2});var ZYy;var RRJ;_.mo("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var n0=function(){return _.x.apply(this,arguments)||this};
_.M(n0,_.x);n0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],n0.prototype,"data",void 0);_.C([_.Vu({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],n0);
_.b(n0,"yt-unlimited-user-notification-renderer",function(){if(RRJ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;ZYy===void 0&&(ZYy=document.createElement("template"));var u=ZYy;t.call(q,u.content.cloneNode(!0),F.content.firstChild);RRJ=F}F=RRJ;return F},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.C79=_.ld(function(F){var q=_.sk(F,{numberOfChips:5}).numberOfChips;return _.Z("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.Z(_.Gn,{each:function(){return Array(q==null?void 0:q())}},function(){return _.Z("div",{class:"ytGhostChipShelfChip"})}))},"eh");_.ddv=_.ld(function(F){var q=function(){var g;return((g=F.data)==null?void 0:g.call(F).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},t=_.i6(),u=_.sV().resolve(_.u_);
_.AN(function(){requestAnimationFrame(function(){var g;(g=t.lottieEl)==null||g.addEventListener("DOMLoaded",function(){var Y;(Y=F.onLottieLoaded)==null||Y.call(F)})})});
var J={};return _.Z("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var g;return((g=F.data)==null?void 0:g.call(F).targetId)||""}},_.Z(_.bT,{className:_.Ec((J.ytChatLoadingViewModelRtl=u==="rtl",J)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:q()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||q()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:q()}}},
animationRef:t}))},"fh");
}catch(e){_._DumpException(e)}
try{
var IA3,HIv,$Mv,bI5,yN5,CnD,dMh,V6J,fAh,xK,L87,SKy,B2T,K8C,h$v,UMC,aAC,j5D,cNv,FhD,AR,qVs,tv9,smw,I6,uRJ,$K,vl,Hl,JU9,mz,gEC,l03,Xc9,YVv,pcJ,Qm9,eT3,RT3,rUw,NNC,wcy,iEy,kQC,EEs,zTT,oE9,nEC,TNy,Dhw,OEJ,PK7,xhv,AU7,HET,mhC,$h3,bEQ,yUv,CK5,dhs,UhT,BNv,Kh7,SVQ,Lhh,hTv,f09,FIQ,cUv,a0C,jm3,y$,qIC,t15,JD5,pt7,QeD,eED,Zts,RE9,rDs,NB3,wtv,itw,kAJ,zEv,owT,nwJ,lk7;
_.Op=function(F){var q=new _.D0("Error accessing DB");return _.aOv().then(function(t){return new Promise(function(u,J){try{var g=t.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(F);g.onsuccess=function(){var Y=g.result;u(Y?Y.value:null)};
g.onerror=function(){q.params={key:F,source:"onerror"};J(q)}}catch(Y){q.params={key:F,
thrownError:String(Y)},J(q)}})},function(){return null})};
_.vIv=function(F,q){var t=_.uYu(q);t!=="javascript:"&&t!=="data:"&&F.setAttribute("href",q)};
IA3=function(F,q){return _.iC(F.entities,"flowStateEntity",q)};
HIv=function(F,q){return _.iC(F.entities,"contextNoteUserRatingEntityPayload",q)};
_.mM9=function(F,q){if(F&&q){var t=_.m6M();t().set(F,q);_.$6q(t())}};
$Mv=function(F){return _.vy(F,function(q){return q.languageCode==="en"})};
bI5=function(F){var q=Pl;if(_.h4T(F))F.setOption("captions","stickyLoading",{}),F.setOption("captions","track",{});else{var t=_.vy(_.naC(F),function(u){return u.displayName===q});
F.setOption("captions","track",t)}};
yN5=function(F){if(!F)return 0;var q=F.getPresentingPlayerType(),t=F.getVideoData();return t&&t.isLive?(F=F.getProgressState(q),F.seekableEnd-F.seekableStart):F.getDuration(q)};
CnD=function(F,q){for(var t=_.X(Object.keys(F)),u=t.next();!u.done;u=t.next())if(u=u.value,F[u]!==q[u])return!1;return!0};
dMh=function(){return document.getElementById("player-control-overlay")};
V6J=function(F){F!==-1&&!_.E("player_controls_log_creation_killswitch")&&dMh()&&(_.y0("pcu_cs",F),_.y0("pcu_ce"))};
fAh=function(F,q){var t=_.Jv(F,{}),u=UMC("top",q),J=UMC("bottom",q),g=UMC("left",q),Y=UMC("right",q);return _.Mo({top:function(){return xK(t().position,u)},
bottom:function(){return xK(t().position,J)},
left:function(){return xK(t().position,g)},
right:function(){return xK(t().position,Y)},
position:function(){return xK(t().positionType,SKy)},
height:function(){return xK(t().height,AR)},
width:function(){return xK(t().width,AR)},
"min-width":function(){return xK(t().minWidth,AR)},
"min-height":function(){return xK(t().minHeight,AR)},
"max-width":function(){return xK(t().maxWidth,AR)},
"max-height":function(){return xK(t().maxHeight,AR)},
"aspect-ratio":function(){return xK(t().aspectRatio,String)},
"margin-top":function(){return xK(t().margin,u)},
"margin-bottom":function(){return xK(t().margin,J)},
"margin-left":function(){return xK(t().margin,g)},
"margin-right":function(){return xK(t().margin,Y)},
"padding-top":function(){return xK(t().padding,u)},
"padding-bottom":function(){return xK(t().padding,J)},
"padding-left":function(){return xK(t().padding,g)},
"padding-right":function(){return xK(t().padding,Y)},
"flex-direction":function(){return xK(t().flexDirection,h$v)},
"justify-content":function(){return xK(t().justifyContent,K8C)},
"align-items":function(){return xK(t().alignItems,B2T)},
"flex-grow":function(){return xK(t().flexGrow,String)},
"flex-shrink":function(){return xK(t().flexShrink,String)},
"flex-basis":function(){return xK(t().flexBasis,AR)},
"align-self":function(){return xK(t().alignSelf,B2T)},
"flex-wrap":function(){return xK(t().flexWrap,L87)},
"align-content":function(){return xK(t().alignContent,B2T)}})};
xK=function(F,q){return F!==void 0?q(F):void 0};
L87=function(F){switch(F){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
SKy=function(F){switch(F){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
B2T=function(F){switch(F){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
K8C=function(F){switch(F){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
h$v=function(F){switch(F){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
UMC=function(F,q){var t=q==="rtl";switch(F){case "top":var u=aAC;break;case "bottom":u=j5D;break;case "left":u=cNv;break;default:u=FhD}return function(J){return xK(u(J,t),AR)}};
aAC=function(F){var q=F.top;var t=F.vertical;F=F.all;var u;return(u=q!=null?q:t)!=null?u:F};
j5D=function(F){var q=F.bottom;var t=F.vertical;F=F.all;var u;return(u=q!=null?q:t)!=null?u:F};
cNv=function(F,q){var t=F.left;var u=F.end;var J=F.start;var g=F.horizontal;F=F.all;var Y,Q;return(Q=(Y=t!=null?t:q?u:J)!=null?Y:g)!=null?Q:F};
FhD=function(F,q){var t=F.right;var u=F.end;var J=F.start;var g=F.horizontal;F=F.all;var Y,Q;return(Q=(Y=t!=null?t:q?J:u)!=null?Y:g)!=null?Q:F};
AR=function(F){var q=F.value;switch(F.unit){case "YPC_DIMENSION_UNIT_POINT":return q+"px";case "YPC_DIMENSION_UNIT_FRACTION":return q+"%";default:return""+q}};
qVs=function(F){switch(F){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
tv9=function(F){var q=F!=null?F:{};F=q.fontRole;var t=q.fontSize;q=q.fontWeight;if(F!==null&&t!==null)switch(F){case "YPC_FONT_ROLE_DISPLAY":switch(t){case "YPC_FONT_SIZE_L":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(t){case "YPC_FONT_SIZE_L":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return q===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(t){case "YPC_FONT_SIZE_XL":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
smw=function(F,q,t){function u(w){return Object.values(w).map(function(k){var z=k.productId;k=k.pricingOptionIndex;return vl(J(z).pricingOptions,k).pricingOptionId})}
function J(w){return e().get(w)}
function g(w){w=u(w);t(w)}
function Y(w,k){return Array.from(I6(w.pricingOptions)).filter(function(z){z=_.X(z);z.next();z=z.next().value;return Hl(z.pricingGroupAttributes,k)}).map(function(z){return _.X(z).next().value})}
var Q=mz([F,q],function(w,k){var z=w==null?void 0:w.selectedPricingOptions;w={};var T=!0;if(z&&k.length)for(var P=_.X(k),v=P.next();!v.done;v=P.next()){v=v.value;var H=uRJ(v.pricingOptions,function(S){a:{S=S.pricingOptionId;for(var K=_.X(z),h=K.next();!h.done;h=K.next())if(h.value===S){S=!0;break a}S=!1}return S});
if(H>=0){T=!1;var d=vl(v.pricingOptions,H),a=void 0;w[v.groupId]={productId:v.productId,pricingOptionIndex:H,pricingGroupAttributes:(a=d)==null?void 0:a.pricingGroupAttributes}}}T&&k.length&&(T=vl(k[0].pricingOptions,0),w[k[0].groupId]={productId:k[0].productId,pricingOptionIndex:0,pricingGroupAttributes:T==null?void 0:T.pricingGroupAttributes});return w}),e=mz([q],function(w){return new Map(w.map(function(k){return[k.productId,
k]}))}),r=mz([q],function(w){var k=new Map;
w=_.X(w);for(var z=w.next();!z.done;z=w.next()){var T=z.value;z=T.groupId;var P=T.productId;T=_.X(I6(T.pricingOptions));for(var v=T.next();!v.done;v=T.next()){var H=_.X(v.value);v=H.next().value;H=H.next().value;k.set(H.pricingOptionId,{groupId:z,productId:P,index:v,pricingOption:H,pricingGroupAttributes:H.pricingGroupAttributes})}}return k}),N=mz([q],function(w){var k=new Map;
w=_.X(w);for(var z=w.next();!z.done;z=w.next()){var T=z.value;z=T.groupId;var P=T.productId,v=void 0;T=_.X(I6((v=T.pricingGroups)!=null?v:[]));for(v=T.next();!v.done;v=T.next()){var H=_.X(v.value);v=H.next().value;H=H.next().value;k.set(H.pricingGroupId,{groupId:z,productId:P,index:v,pricingGroup:H,pricingGroupAttributes:H.pricingGroupAttributes})}}return k});
return{getProductById:J,isProductSelected:function(w){var k=J(w);if(!k)return!1;var z;return((z=Q()[k.groupId])==null?void 0:z.productId)===w},
getSelectedPricingOptions:function(){return Object.values(Q()).map(function(w){var k=w.productId;w=w.pricingOptionIndex;return vl(J(k).pricingOptions,w)})},
getSelectedPricingGroupAttributesByGroupId:function(w){var k;return(w=(k=Q()[w])==null?void 0:k.pricingGroupAttributes)?Array.from(w):void 0},
getSelectedProductByGroupId:function(w){var k;return(w=(k=Q()[w])==null?void 0:k.productId)?J(w):void 0},
onProductSelected:function(w){var k=J(w);if(k){var z=Q(),T;if(((T=z[k.groupId])==null?void 0:T.productId)!==w){var P=(T=(P=z[k.groupId])==null?void 0:P.productId)?J(T):void 0;var v;T=(v=z[k.groupId])==null?void 0:v.pricingGroupAttributes;var H;v=(H=z[k.groupId])==null?void 0:H.pricingOptionIndex;if(P&&T&&v!==void 0){H=Y(P,T).indexOf(v);if(H===-1)throw Error("Mj`"+v+"`"+P.productId);v=Y(k,T);H=H<v.length?v[H]:v.length>0?v[0]:0}else H=0;$K(k.pricingOptions)<=H&&(H=0);v=vl(k.pricingOptions,H);var d;
P={};g(Object.assign({},z,(P[k.groupId]={productId:w,pricingOptionIndex:H,pricingGroupAttributes:(d=v==null?void 0:v.pricingGroupAttributes)!=null?d:[]},P)))}}},
onPricingOptionSelected:function(w){var k=r().get(w);if(k){w=k.groupId;var z=k.productId;k=k.index;var T=Q(),P,v;if(((P=T[w])==null?void 0:P.productId)!==z||((v=T[w])==null?void 0:v.pricingOptionIndex)!==k){var H,d;P={};g(Object.assign({},T,(P[w]={productId:z,pricingOptionIndex:k,pricingGroupAttributes:(d=(H=T[w])==null?void 0:H.pricingGroupAttributes)!=null?d:[]},P)))}}},
onPricingGroupSelected:function(w){var k=N().get(w);if(k){w=k.groupId;var z=k.productId,T=k.pricingGroup.pricingGroupAttributes,P=J(z);if(P){k=Q();var v=k[w].pricingGroupAttributes,H;if(((H=k[w])==null?void 0:H.productId)!==z||!Hl(JU9(v,$K(T)),T)){H=Array.from(T);for(T=$K(T);T<$K(v);T++){var d="",a=!1,S=Array.from(H);S.push(vl(v,T));for(var K=_.X(P.pricingGroups),h=K.next();!h.done;h=K.next())if(h=h.value,Hl(h.pricingGroupAttributes,S)){H.push(vl(v,T));a=!0;break}else d===""&&$K(h.pricingGroupAttributes)===
S.length&&Hl(JU9(h.pricingGroupAttributes,H.length),H)&&(d=vl(h.pricingGroupAttributes,T));a||H.push(d)}d=k[w].pricingOptionIndex;T=[];a=new Map;S=0;P=_.X(I6(P.pricingOptions));for(K=P.next();!K.done;K=P.next())h=_.X(K.value),K=h.next().value,h=h.next().value,Hl(h.pricingGroupAttributes,H)&&T.push(K),Hl(h.pricingGroupAttributes,v)&&a.set(K,S++);T.length===0?v=0:(v=a.get(d),v=v!==void 0&&v<T.length?T[v]:T[0]);P={};g(Object.assign({},k,(P[w]={productId:z,pricingOptionIndex:v,pricingGroupAttributes:H},
P)))}}}},
onClearGroupSelected:function(w){var k=Q();k[w]&&(k=Object.fromEntries(Object.entries(k).filter(function(z){return _.X(z).next().value!==w})),g(k))}}};
I6=function(F){return function t(){var u,J,g,Y,Q;return _.X9(t,function(e){switch(e.nextAddress){case 1:_.Mv(e,2),u=0,J=_.X(F),g=J.next();case 4:if(g.done){e.jumpTo(2);break}Y=g.value;Q=_.Yf;return e.yield([u++,Y],7);case 7:Q(e.yieldResult);g=J.next();e.jumpTo(4);break;case 2:_.n6(e),_.Tg(e,0)}})}()};
uRJ=function(F,q){F=_.X(I6(F));for(var t=F.next();!t.done;t=F.next()){var u=_.X(t.value);t=u.next().value;u=u.next().value;if(q(u))return t}return-1};
$K=function(F){var q=0;for(F=F[Symbol.iterator]();!F.next().done;)++q;return q};
vl=function(F,q){F=_.X(I6(F));for(var t=F.next();!t.done;t=F.next()){var u=_.X(t.value);t=u.next().value;u=u.next().value;if(t===q)return u}};
Hl=function(F,q){if(!F&&!q)return!0;if(!F||!q)return!1;F=Array.from(F);q=Array.from(q);if(F.length!==q.length)return!1;for(var t=0;t<F.length;t++)if(F[t]!==q[t])return!1;return!0};
JU9=function(F,q){q=q===void 0?Infinity:q;var t=[];F=_.X(I6(F));for(var u=F.next();!u.done;u=F.next()){var J=_.X(u.value);u=J.next().value;J=J.next().value;if(u>=q)break;u>=0&&t.push(J)}return t};
mz=function(F,q){var t,u;return function(){for(var J=F.map(function(Y){return Y()}),g=0;g<J.length;g++)if(!t||J[g]!==t[g]){t=J;
u=q.apply(null,_.mZ(J));break}return u}};
gEC=function(F,q,t){var u=[];F=_.X(F);for(var J=F.next();!J.done;J=F.next()){J=J.value;var g=void 0;((g=q)==null?0:g.length)&&!Hl(J.pricingGroupAttributes,q)||u.push({pricingOption:J,isSelected:t.includes(J.pricingOptionId)})}return u};
l03=function(F,q){return _.iC(F.entities,"pdpStateEntity",q)};
Xc9=function(F){var q,t;return!!(F.productId&&F.groupId&&((q=F.pricingOptions)==null?0:q.length)&&F.pricingOptions.every(function(u){return u.pricingOptionId})&&((t=F.pricingGroups)==null||!t.length||Array.isArray(F.pricingGroups)&&F.pricingGroups.every(function(u){return u.pricingGroupId&&u.pricingGroupAttributes&&u.pricingGroupAttributes.length>0})))};
YVv=function(F,q,t){return smw(F,mz([q],function(u){return u.filter(Xc9)}),t)};
pcJ=function(F){var q=void 0,t;for(t in F)if(F.hasOwnProperty(t)){q=t;break}return q};
Qm9=function(F,q){return q.length===0?[F]:[F.slice(0,q[0]),F.slice(q[0])].filter(function(t){return t.length>0})};
eT3=function(F){switch(F){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
RT3=function(F,q,t,u){u=Object.assign({},u);_.yj(u,ZEQ,{selectedOptionId:F,primaryButtonOverride:t});_.tv().dispatch(_.Gl("flowStateEntity",q,u))};
rUw=function(F){switch(F){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
NNC=function(F){switch(F){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
wcy=function(F,q){q.includes(F)?q=q.filter(function(t){return t!==F}):q.push(F);
return[].concat(_.mZ(q))};
iEy=function(F,q){return _.iC(F.entities,"contextNoteFeedEntityPayload",q)};
kQC=function(F,q){switch(F){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return q==null?void 0:q.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return q==null?void 0:q.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return q==null?void 0:q.ratingNotHelpfulText}};
EEs=function(F,q){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:F.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:F.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:F.deleteDialogTitle}]},dialogMessages:[{runs:[{text:F.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:F.deleteActionText}]},command:{performCommentActionEndpoint:{action:q}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:F.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
zTT=function(F,q,t){var u;if(F&&((u=q())==null?0:u.includes(F))){var J;t((J=q())==null?void 0:J.filter(function(g){return g!==g}))}else t([].concat(_.mZ(q()||[]),[F]))};
oE9=function(F){F.style.height="auto";F.style.height=F.scrollHeight+"px"};
nEC=function(F){return[F.syncStep,F.asyncStep].filter(function(q){return q!==void 0})};
TNy=function(F){var q,t,u;if(F=(q=F.structuredContextNoteFormSchema)==null?void 0:(t=q.fieldSchemas)==null?void 0:(u=t.noteBody)==null?void 0:u.validationSchema)for(q=_.X(nEC(F)),t=q.next();!t.done;t=q.next()){t=t.value.rules;if(!t)break;t=_.X(t);for(t=t.next();!t.done;t=t.next())return _.n(t.value,_.Mvv)}};
Dhw=function(F){if(F){F=_.X(nEC(F));for(var q=F.next();!q.done;q=F.next()){q=q.value.rules;if(!q)break;q=_.X(q);for(q=q.next();!q.done;q=q.next())return _.n(q.value,GQv)}}};
OEJ=function(F){if(F){F=_.X(nEC(F));for(var q=F.next();!q.done;q=F.next()){q=q.value.rules;if(!q)break;q=_.X(q);for(q=q.next();!q.done;q=q.next())return _.n(q.value,Whs)}}};
PK7=function(F){F=/^https?:\/\//.test(F)?F:"http://"+F;try{var q=_.Lr(F)}catch(t){return!1}if(q.toString()!==F)return!1;F=q.JSC$10024_domain_.split(".");return F.length>1&&F.every(function(t){return!!t})};
xhv=function(F,q,t,u){var J;u=(J=u.structuredContextNoteData)==null?void 0:J.createCommentEndpoint;if(J=_.n(u,_.DCL))return J.commentText=_.FK(F),J.videoPositionMention=q,J.sources=t,u};
AU7=function(F){return F==null?void 0:F.stringValue};
_.vE3=function(F){return F.talkToRecs};
HET=function(F,q,t){F=F.map(function(u,J){return{listItemViewModel:{title:u.title,subtitle:u.subtitle,leadingImage:u.leadingImage,trailingImage:J===q?I05:void 0,rendererContext:{commandContext:{onTap:u.onTap}}}}});
return Object.assign({},t&&{header:{panelHeaderViewModel:{title:t}}},{content:{listViewModel:{listItems:F}}})};
mhC=function(F,q){if(F&&q)switch(q){case "SELECTION_TYPE_BOOL":return F.boolValue;case "SELECTION_TYPE_INT":return F.intValue;case "SELECTION_TYPE_STRING":return F.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return F.privacyStatusValue}};
$h3=function(F){var q;F=(q=F.options)==null?void 0:q.findIndex(function(t){return t.isSelected});
return F===void 0?-1:F};
bEQ=function(F,q,t){var u=function(){return F().label},J={},g=_.Ec("ytDropdownViewModelLabel",(J.ytDropdownViewModelLabelError=q,J));
return _.Z(_.R,{cond:function(){return F().label&&!(t()===-1&&F().label&&!F().placeholderText)},
then:function(){return _.Z("div",{class:g},_.Z(_.rv,{text:u}))}})};
yUv=function(F,q){var t={};t=_.Ec("ytDropdownViewModelTitle",(t.ytDropdownViewModelTitlePlaceholder=function(){return q()===-1},t));
return _.Z("div",{class:t},_.Z(_.rv,{text:function(){var u=F();var J=q();if(J===-1)u=u.placeholderText?u.placeholderText:u.label;else{var g,Y;u=(g=u.options)==null?void 0:(Y=g[J])==null?void 0:Y.title}return u}}))};
CK5=function(F,q){var t=function(){return F().hint};
return _.Z(_.ln,null,_.Z(_.R,{cond:function(){return t()&&!q()},
then:function(){return _.Z("div",{class:_.Ec("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.Z(_.rv,{text:t,className:"ytDropdownViewModelSupportText"}))}}),_.Z(_.R,{cond:q,
then:function(){return _.Z("div",{id:"dropdown-view-model-error",role:"alert",class:_.Ec("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.Z(_.Tq,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.Z(_.rv,{text:q,className:"ytDropdownViewModelSupportText"}))}}))};
dhs=function(F,q){var t=_.sV().resolve(_.qvy);_.v_(function(){var u=F().id;u&&t!=null&&t.dropdownMap.set(u,q)})};
UhT=function(F){F=_.n(F.scheduleButton,Vvh);F=_.n(F==null?void 0:F.primaryButton,_.gX);F=_.n(F==null?void 0:F.onTap,_.Uk);var q,t,u=((t=_.n(F,_.wY))==null?void 0:t.commands)||[F];t=_.X(u);for(F=t.next();!F.done&&!(q=_.n(F.value,_.Wyz));F=t.next());var J;q=(J=q)==null?void 0:J.createBroadcastRequest;if(!q)throw Error("Tj");return q};
BNv=function(F,q,t){t=t===void 0?{}:t;var u,J;return _.p(function(g){if(u=SVQ(q))return g.return(u);(J=hTv(F,q,t))&&Kh7(q,J);return g.return(J)})};
Kh7=function(F,q){var t=Lhh(F);t&&q.then(function(u){_.sV().resolve(_.ve).put(t,new _.Ip({innertubeResponse:u}))})};
SVQ=function(F){if(F=Lhh(F)){var q=_.sV().resolve(_.ve);if(q.has(F))return q.get(F).then(function(t){return t==null?void 0:_.uZ(t)})}return null};
Lhh=function(F){var q=_.n(F.endpoint,_.Fw);if(q!=null&&q.videoId)return q={videoId:q.videoId},_.E("web_imp_player_mute_params")&&(q.mutedAtStart=F.startPlaybackInMutedState),_.cW("inline_playback",q)};
hTv=function(F,q,t){F=_.aI(F,q.endpoint,f09(q,t)).then(function(u){return u});
return Promise.resolve(F)};
f09=function(F,q){q=_.E("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!F.startPlaybackInMutedState},q):Object.assign({},{vis:5,autonav:"1"},q);var t;q={contentPlaybackContext:_.vx(q,(t=_.n(F.endpoint.commandMetadata,_.EH))==null?void 0:t.url,window.location.href)};_.E("web_imp_player_mute_params")&&(q.overrideMutedAtStart=!F.startPlaybackInMutedState);return q};
FIQ=function(F,q){var t=window.MutationObserver;t&&(bH=new t(function(u,J){u=_.X(u);for(var g=u.next();!g.done;g=u.next()){g=g.value;var Y;if(Y=g.type==="childList"&&g.target)a:{Y=F;g=a0C(g.target);Y=a0C(Y);for(var Q=null,e=0;e<g.length;e++)if(Y.includes(g[e])){if(e===0){Y=!1;break a}Q=g[e];break}Q?(g=jm3(g,Q),Y=jm3(Y,Q),Y=g<Y):Y=!1}if(Y){q();J.disconnect();break}}}),(t=cUv())&&bH.observe(t,{childList:!0,
subtree:!0}))};
cUv=function(){var F=document.getElementsByTagName("ytd-rich-grid-renderer");if(F.length>0)return F[0];F=document.getElementsByTagName("ytd-section-list-renderer");return F.length>0?F[0]:null};
a0C=function(F){for(var q=[];F;)q.push(F),F=F.parentElement;return q};
jm3=function(F,q){var t=Array.from(q.children);q=F.indexOf(q);return q>0?t.indexOf(F[q-1]):-1};
y$=function(F,q,t){t=t===void 0?{}:t;return _.oD(F,t,q)};
qIC=function(F){switch(F){case "MUSIC":return!0;default:return!1}};
t15=function(F){return F==null?void 0:F.filter(function(q){return q.premiereTrailerBadgeRenderer})};
JD5=function(F){var q,t=F==null?void 0:(q=F.find(function(w){return w.thumbnailOverlayTimeStatusRenderer}))==null?void 0:q.thumbnailOverlayTimeStatusRenderer,u,J;
if((t==null?0:(u=t.icon)==null?0:u.iconType)&&qIC(t==null?void 0:(J=t.icon)==null?void 0:J.iconType)){var g;return{icon:t==null?void 0:(g=t.icon)==null?void 0:g.iconType}}var Y,Q;var e=(F=(Y=F==null?void 0:(e=F.find(function(w){return w.thumbnailBottomOverlayViewModel}))==null?void 0:e.thumbnailBottomOverlayViewModel)==null?void 0:(Q=Y.badges)==null?void 0:Q.find(function(w){var k,z;
return((k=_.n(w,u4v))==null?void 0:(z=k.inlinePlaybackBadgeData)==null?void 0:z.replicateAsTimestamp)===!0}))?_.n(F,u4v):void 0;
if(e==null?0:e.icon){var r,N;if((e=(r=_.O$A(e==null?void 0:e.icon))==null?void 0:(N=r.clientResource)==null?void 0:N.imageName)&&qIC(e))return{icon:e}}return{}};
pt7=function(F,q){var t=seQ,u=_.X(_.N3(gw5(new lk7(function(){},t,q)),void 0,"PAnyd")),J=u.next().value,g=u.next().value,Y=new lk7(function(Q){g(Q)},t,q);
_.AO(function(){Promise.resolve().then(function(){var Q,e=(Q=F())!=null?Q:{};Y.playerControlsData=e;_.E("player_controls_skip_double_signal_old")&&(Y.lastSeenPlayerApi=_.HO(e.playerApi));_.E("player_controls_skip_double_signal_old")||(Y.lastSeenPlayerApi=_.HO(e.playerApi));Xt5(Y)});
_.vj(function(){YIQ(Y)})},"HikUP");
_.vj(function(){YIQ(Y)});
return function(){return J()}};
QeD=function(F){return function(q){var t=F(),u={playerState:q};if(q===1){var J;(J=t.playerApi)==null||J.loadModule("captions")}if(q===0){var g;(g=t.playerApi)==null||g.unloadModule("captions")}q!==-1&&t.setState(u)}};
eED=function(F){return function(q){F().setState({playbackRate:q})}};
Zts=function(F){return function(q){var t=F(),u=t.playerApi,J=u==null?void 0:u.getVideoData(),g=(J==null?void 0:J.isLive)||!1;J=J==null?void 0:J.video_id;g={videoDuration:yN5(u||void 0),isLive:g,videoId:J};g.videoId!==t.videoId&&(g=Object.assign({},_.RL3(u),g));if(q==null?0:q.playertype)g.playerType=q.playertype;if(u){g.captionsAvailable=_.eF(u);q=g;var Y;J=(Y=u.getStoryboardLevel(u.getNumberOfStoryboardLevels()-1))==null?void 0:Y.intervalMs;q.storyboardInterval=J?J/1E3:void 0;g.captionsAvailable&&
(g.captionsEnabled=_.h4T(u))}g.volumeMuted=!(u==null||!u.isMuted());t.setState(g)}};
RE9=function(F){return function(q){var t=F(),u=t.playerApi;if(u){var J=u.getPresentingPlayerType();q={playedTime:q||0,percentLoaded:u.getVideoLoadedFraction(),playerType:J};t.playerState===0&&(q.playedTime=t.videoDuration);t.isLive&&(J=u.getProgressState(J),q.playedTime-=J.seekableStart,q.videoDuration=yN5(u));if(t.playerType===1)u=!1;else{var g;if((g=t.uxConfig)==null?0:g.showCuedOverlay){var Y;u=!((Y=t.playerApi)==null?0:Y.getPlayerStateObject(t.playerType).isDomPaused)}else u=!0}u&&delete q.playedTime;
t.setState(q)}}};
rDs=function(F){return function(){var q=F(),t,u,J,g={volume:(J=(t=q.playerApi)==null?void 0:t.getVolume())!=null?J:0,volumeMuted:!((u=q.playerApi)==null||!u.isMuted())};q.setState(g)}};
NB3=function(F){return function(){var q=F(),t=q.playerApi;if(t){var u={captionsAvailable:_.eF(t)};u.captionsAvailable&&(u.captionsEnabled=_.h4T(t));q.setState(u)}}};
wtv=function(F){return function(){var q=F();if(q.playerApi&&!(q.volumeMuted||q.controlsVisible&&q.isProbablyAScreenreaderUser)){q.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var t;(t=document.querySelector(".player-control-play-pause-icon"))==null||t.focus()}}};
itw=function(F){return{appApi:Object.assign({},_.lrP(),{showCaptionsToggleToast:function(q){var t,u;(u=(t=F()).showCaptionsToggleToast)==null||u.call(t,q)},
openInMiniplayer:function(){var q,t;(t=(q=F()).openInMiniplayer)==null||t.call(q)}})}};
kAJ=function(F,q){var t,u,J;return!!(F==null?0:(t=F.playerResponse)==null?0:(u=t.playerConfig)==null?0:(J=u.inlinePlaybackConfig)==null?0:J.showScrubbingControls)&&!(q==null?0:q.hideScrubbingControls)};
_.Ewv=function(F){var q=!F.miniplayerIsActive;return[5,2,0].includes(F.miniplayerPlaybackState)||q};
zEv={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};owT=function(F,q){var t,u,J,g,Y;_.p(function(Q){if(!q.length)return Q.return([]);t=[];u=_.X(q);for(J=u.next();!J.done;J=u.next())g=J.value,(Y=F.resolveIcon(g))&&!F.iconCache[Y.url]&&t.push(_.my9(F,Y).then(function(){}).catch(function(){}));
return Q.return(Promise.all(t))})};
nwJ=function(F,q){var t=[];q=(new Set(q)).values();q=_.X(q);for(var u=q.next();!u.done;u=q.next()){u=u.value;for(var J=_.X(Object.values(zEv)),g=J.next();!g.done;g=J.next())t.push({iconName:u,iconStyle:g.value})}owT(F.iconManager,t)};
_.M1v=function(F,q,t){var u=t!=null?t:F.iconsToFetch;u!=null&&u.length?q!==void 0&&q>=0?_.W2(_.mI,function(){nwJ(F,u)},q):nwJ(F,u):Promise.resolve()};
lk7=function(F,q,t){var u=this;this.renderFn=F;this.listeners=q;this.context=t;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var J;this.lastSeenPlayerApi=_.HO((J=this.playerControlsData)==null?void 0:J.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.RL3(),void 0);_.E("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){gw5(u).setState({playerState:-1});u.resetRecentlyNavigatedJobId&&_.mI.cancelJob(u.resetRecentlyNavigatedJobId);
u.recentlyNavigated=!0;u.resetRecentlyNavigatedJobId=_.mI.addJob(function(){u.recentlyNavigated=!1},8,1E4)})};
lk7.prototype.setState=function(F){if(!_.E("mweb_player_skip_no_op_state_changes")||!CnD(F,this.state))if(this.state=Object.assign({},this.state,F),!_.E("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)F=-1,_.E("player_controls_log_creation_killswitch")||dMh()||(F=(0,_.gB)()),_.y0("pcu_s"),_.y0("pcu_se"),_.y0("pcu_rs"),this.renderFn(gw5(this)),_.y0("pcu_re"),V6J(F),_.mI.addJob(function(){_.y0("pcu_ap")},8)};
var gw5=function(F){var q;var t=_.HO((q=F.playerControlsData)==null?void 0:q.playerApi);return Object.assign({},F.state,{setState:F.boundSetState,domMeasurements:{progressBarLineRect:F.progressBarLineRect},playerApi:t,appApi:F.context.appApi,playerContainer:F.context.playerContainer,playerControlContainer:F.context.playerControlContainer,uxConfig:F.context.uxConfig})},Xt5=function(F){F.listeners.forEach(function(q){F.eventListenerCleanupFunctions.push(q.register(function(){return gw5(F)},function(){return F.getData()}))})},
YIQ=function(F){F.eventListenerCleanupFunctions.forEach(function(q){q()});
F.eventListenerCleanupFunctions.length=0};
lk7.prototype.getData=function(){return this.playerControlsData};
var TBw=new _.Xk("crowdsourcedContextUserRatingFormFlowState");var GAv=new _.Xk("noteViewModel");var CL=new _.Xk("abuseReportFlowState");var DEw=new _.Xk("feedbackFormFlowState");var WI9=new _.Xk("inputBoxViewModel");var OtD=new _.Xk("flowNextStepCommand");var Po3=new _.Xk("flowPrevStepCommand");var xEC=new _.Xk("updateFlowCommand");_.ADy=new _.Xk("flowStepRenderer");_.Mvv=new _.Xk("lengthValidationRule");var GQv=new _.Xk("regexValidationRule");var Whs=new _.Xk("selectedValidationRule");var vw9=new _.Xk("talkToRecsViewModel");var Ik7=new _.Xk("creatorGoalSetUpFlowDropdownItemViewModel");var Ht5=new _.Xk("creatorGoalSetUpFlowDropdownViewModel");var u4v=new _.Xk("thumbnailBadgeViewModel");var mEC=new _.Xk("checkboxGroupViewModel");_.dE=new _.Xk("radioButtonGroupViewModel");var $Eh=new _.Xk("radioButtonItemViewModel");var Vvh=new _.Xk("panelFooterViewModel");var btv=new _.Xk("ypcCancelRecurrenceCommand");var yDh=new _.Xk("cancellationFlowState");var ZEQ=new _.Xk("premiumPurchaseFlowState");var Co9=new _.Xk("surveyAnswerCardRenderer");var dE7=new _.Xk("showMoreButtonRenderer");var V15;var UEC,SIs=function(){if(UEC!==void 0)return UEC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;V15===void 0&&(V15=document.createElement("template"));var u=V15;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return UEC=F};var V$=function(){var F=_.x.apply(this,arguments)||this;F.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";F.goalDescription="";F.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";F.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";F.startButtonId="start-button";F.exampleButtonId="example-button";return F};
_.M(V$,_.x);_.l=V$.prototype;_.l.getGoalDropdownItems=function(){var F,q;return(q=_.n((F=this.data)==null?void 0:F.purchaseTargetDropdown,Ht5))==null?void 0:q.dropdownItems};
_.l.getTimerDropdownItems=function(){var F,q;return(q=_.n((F=this.data)==null?void 0:F.timerDropdown,Ht5))==null?void 0:q.dropdownItems};
_.l.getColorDropdownItems=function(){var F,q;return(q=_.n((F=this.data)==null?void 0:F.colorDropdown,Ht5))==null?void 0:q.dropdownItems};
_.l.getDropdownItemText=function(F){var q;return(q=_.n(F,Ik7))==null?void 0:q.itemLabel};
_.l.getDropdownItemValue=function(F){F=_.n(F,Ik7);return(F==null?void 0:F.timeLimit)||(F==null?void 0:F.purchaseTarget)||(F==null?void 0:F.eligiblePurchaseType)};
_.l.updateFlowState=function(F){_.ec(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:F}])};
_.l.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.l.updateGoalValue=function(F){this.goal=F.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.l.onTextValueChanged=function(F){this.goalDescription=F.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.l.updateTimerValue=function(F){this.timer=F.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.l.updateTierValue=function(F){this.tier=F.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.l.getButtonViewModel=function(F){F=(F==null?void 0:F.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var q,t=_.n((q=this.data)==null?void 0:q.startGoalButton,_.gX);return Object.assign({},t,{state:F})};
_.JJ.Object.defineProperties(V$,{template:{configurable:!0,enumerable:!0,get:function(){return SIs()}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],V$.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],V$.prototype,"goal",void 0);_.C([_.O(),_.V("design:type",Object)],V$.prototype,"goalDescription",void 0);_.C([_.O(),_.V("design:type",Object)],V$.prototype,"timer",void 0);_.C([_.O(),_.V("design:type",Object)],V$.prototype,"tier",void 0);
_.C([_.O(),_.V("design:type",Object)],V$.prototype,"startButtonId",void 0);_.C([_.O(),_.V("design:type",Object)],V$.prototype,"exampleButtonId",void 0);_.C([_.Vu({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],V$);_.b(V$,"yt-creator-goal-set-up-flow-view-model",function(){return SIs()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var hEv;var KIQ;var BBh;var LIy=function(){return _.x.apply(this,arguments)||this};
_.M(LIy,_.x);_.C([_.O(),_.V("design:type",Object)],LIy.prototype,"data",void 0);_.C([_.Vu({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],LIy);
_.b(LIy,"yt-survey-answer-card-renderer",function(){if(BBh===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;KIQ===void 0&&(KIQ=document.createElement("template"));var u=KIQ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);BBh=F}F=BBh;return F},{mode:2});var fkC;var akJ;var Up=function(){return _.x.apply(this,arguments)||this};
_.M(Up,_.x);_.l=Up.prototype;_.l.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.l.selectedItemChanged=function(F){_.ec(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[F.feedbackToken||""]}])};
_.l.surveyAnswerCardRendererClicked=function(F){if(F.target&&_.n(F.model.item,Co9)){var q=F.target;F=_.n(F.model.item,Co9);F.onTapCommand?_.rY(q,[F.onTapCommand],q):this.data.onTapCommand&&_.rY(q,[this.data.onTapCommand],q);this.selectedItemChanged(F)}};
_.l.checkIsCancellationStyle=function(F){return F==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.l.updateSelectedItemFromBinding=function(F){this.selectedItem=F.detail.value};
Up.prototype.onSelectedItemChanged=Up.prototype.onSelectedItemChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Up.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Up.prototype,"selectedItem",void 0);_.C([_.O({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Up.prototype,"isCancellationStyle",void 0);
_.C([_.za("selectedItem"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Up.prototype,"onSelectedItemChanged",null);_.C([_.Vu({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Up);
_.b(Up,"yt-survey-flow-step-renderer",function(){if(akJ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;fkC===void 0&&(fkC=document.createElement("template"));var u=fkC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);akJ=F}F=akJ;return F},{mode:2});var SF=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return F};
_.M(SF,_.x);SF.prototype.handleSurveyFlowStepOptionChanged=function(F){this.ytdReduxBehavior.dispatch(_.pj({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:F}));_.ec(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:F}}])};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],SF.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],SF.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],SF.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],SF);
_.b(SF,"ytd-survey-flow-step-renderer",function(){if(hEv!==void 0)return hEv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return hEv=F},{mode:1});_.qDv=_.ld(function(F){var q=F.data;var t=F.hideDivider;var u=F.isChannelInfoCard;F={};return _.Z("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.Z("div",{class:_.Ec("yt-profile-identity-info-view-model-wiz__frame",(F["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=function(){return!q().channelBanner},F))},_.Z(jew,{profileIdentityInfoData:q}),_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},_.Z("div",
{class:"yt-profile-identity-info-view-model-wiz__avatar"},_.Z(_.Tl,{data:function(){return q().avatar}},{avatarViewModel:_.FJ})),_.Z(cDC,{profileIdentityInfoData:q})),_.Z(_.R,{cond:function(){return q().channelDescription},
then:function(J){var g={};return _.Z("div",{class:_.Ec((g["yt-profile-identity-info-view-model-wiz__channel-description-alternate"]=function(){return!(u==null||!u())},g["yt-profile-identity-info-view-model-wiz__channel-description"]=function(){return!(u==null?0:u())},g))},J)}}),_.Z(FHC,{profileIdentityInfoData:q}),_.Z(_.R,{cond:function(){return!(t==null?0:t())},
then:function(){return _.Z("div",{class:"yt-profile-identity-info-view-model-wiz__divider"})}})))},"Cf");
_.qDv.idomCompat=!0;var FHC=_.ld(function(F){var q=F.profileIdentityInfoData;return _.Z("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},_.Z(_.Gn,{each:function(){return q().subscribeButton?[q().subscribeButton,q().channelAccess]:[q().channelAccess]}},function(t){return _.Z("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.Z("div",{class:"yt-profile-identity-info-view-model-wiz--button"},_.Z(_.Tl,{data:function(){return t}},{buttonViewModel:_.AB,
subscribeButtonViewModel:_.FO})))}))},"Df"),cDC=_.ld(function(F){var q=F.profileIdentityInfoData;
return _.Z("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},_.Z(tJv,{profileIdentityInfoData:q}),_.Z(_.Tl,{data:function(){return q().threeDotMenu}},{buttonViewModel:_.AB})),_.Z(u1J,{profileIdentityInfoData:q}))},"Ef"),tJv=_.ld(function(F){var q=F.profileIdentityInfoData;
return _.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},function(){return q().channelDisplayName}),_.Z(_.R,{cond:function(){return q().verifiedOrOacBadge},
then:function(t){return _.Z("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.Z(_.sc,{data:function(){return{thumbnails:[{url:t().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Ff"),jew=_.ld(function(F){var q=F.profileIdentityInfoData;
return _.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},_.Z(_.Tl,{data:function(){var t=q().channelBanner;if(t)return{imageBannerViewModel:{image:t.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(t){return _.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},_.Z(_.lE,{data:t.data,
isPositionRelative:!0}))}}))},"Gf"),u1J=_.ld(function(F){var q=F.profileIdentityInfoData;
return _.Z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.Z("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},function(){return q().channelHandle}),_.Z(_.R,{cond:function(){return q().channelPronouns&&q().channelHandle},
then:function(){return _.Z("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.Z("div",{dir:"auto",
class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},function(){return q().channelPronouns})),_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return q().leftOfBulletInfo}),_.Z(_.R,{cond:function(){return q().leftOfBulletInfo&&q().rightOfBulletInfo},
then:function(){return _.Z("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return q().rightOfBulletInfo})))},"Hf");var Jfv;var hR=function(){return _.x.apply(this,arguments)||this};
_.M(hR,_.x);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],hR.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],hR.prototype,"data",void 0);_.C([_.m({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],hR);
_.b(hR,"ytd-channel-history-renderer",function(){if(Jfv!==void 0)return Jfv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Jfv=F},{mode:1});var sJ3;var ge3=function(){return _.x.apply(this,arguments)||this};
_.M(ge3,_.x);_.C([_.O(),_.V("design:type",Object)],ge3.prototype,"data",void 0);_.C([_.m({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],ge3);
_.b(ge3,"ytd-feature-enablement-info-renderer",function(){if(sJ3!==void 0)return sJ3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return sJ3=F},{mode:1});var l_s;var X2J;var KL=function(){var F=_.x.apply(this,arguments)||this;F.textBoxMaxLength=_.E("enable_tvod_campaign_code_integration")?15:12;return F};
_.M(KL,_.x);_.l=KL.prototype;_.l.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.l.onSubmit=function(){var F=this.data.serviceEndpoint,q=_.n(F,_.qR);q&&F&&(q.couponCode=this.userInput,_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}}))};
_.l.validate=function(){var F=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=F&&!this.data.errorMessage;this.showErrorMessage=F&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.E("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.l.computeStyle=function(F){return F};
_.l.computeShowValidationBelowInput=function(F){return F!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.l.updateUserInputFromBinding=function(F){this.userInput=F.currentTarget.value};
_.l.updateShowErrorMessageFromBinding=function(F){this.showErrorMessage=F.detail.value};
_.JJ.Object.defineProperties(KL.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
KL.prototype.dataChanged=KL.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],KL.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],KL.prototype,"userInput",void 0);_.C([_.O(),_.V("design:type",Boolean)],KL.prototype,"disableApplyButton",void 0);_.C([_.O(),_.V("design:type",Boolean)],KL.prototype,"hideApplyButton",void 0);
_.C([_.O(),_.V("design:type",Boolean)],KL.prototype,"hideErrorMessage",void 0);_.C([_.O(),_.V("design:type",Boolean)],KL.prototype,"showTick",void 0);_.C([_.O(),_.V("design:type",Boolean)],KL.prototype,"showErrorMessage",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],KL.prototype,"couponStyle",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.V("design:type",Boolean)],KL.prototype,"showValidationBelowInput",void 0);_.C([_.O(),_.V("design:type",Object)],KL.prototype,"textBoxMaxLength",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KL.prototype,"dataChanged",null);
_.C([_.W("showTick","showErrorMessage","userInput"),_.V("design:type",String),_.V("design:paramtypes",[])],KL.prototype,"validationState",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],KL);
_.b(KL,"ytd-ypc-coupon-renderer",function(){if(X2J!==void 0)return X2J;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return X2J=F},{mode:1});var Bl=function(){return _.x.apply(this,arguments)||this};
_.M(Bl,_.x);Bl.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"}}}};
Bl.prototype.computeStyle=function(F){return F};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Bl.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],Bl.prototype,"buttonStyle",void 0);_.C([_.m({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Bl);
_.b(Bl,"ytd-flow-bottom-bar-renderer",function(){if(l_s!==void 0)return l_s;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return l_s=F},{mode:1});var YDs;var p2T;var QJC;var LL=function(){return _.x.apply(this,arguments)||this};
_.M(LL,_.x);LL.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
LL.prototype.focus=function(F){this.title&&_.j1(this.title,F)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],LL.prototype,"data",void 0);_.C([_.Ms("#title"),_.V("design:type",HTMLElement)],LL.prototype,"title",void 0);_.C([_.m({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],LL);
_.b(LL,"ytd-flow-top-bar-renderer",function(){if(QJC!==void 0)return QJC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return QJC=F},{mode:1});var eF5;var ZMT;var RF9;var fL=function(){return _.x.apply(this,arguments)||this};
_.M(fL,_.x);fL.prototype.freeTextValueChanged=function(){_.ec(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
fL.prototype.updateFreeTextValueFromBinding=function(F){this.freeTextValue=F.detail.value};
_.JJ.Object.defineProperties(fL.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(q=(F=this.data)==null?void 0:F.responseMaxLength)!=null?q:500,u;return((u=this.freeTextValue)!=null?u:"").length>=t?"maxed-out":""}}});
fL.prototype.freeTextValueChanged=fL.prototype.freeTextValueChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],fL.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],fL.prototype,"freeTextValue",void 0);_.C([_.Ms("#user-input"),_.V("design:type",HTMLTextAreaElement)],fL.prototype,"input",void 0);
_.C([_.W("freeTextValue"),_.V("design:type",Object),_.V("design:paramtypes",[])],fL.prototype,"characterLimitClass",null);_.C([_.za("freeTextValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fL.prototype,"freeTextValueChanged",null);_.C([_.Vu({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],fL);
_.b(fL,"yt-free-text-input-flow-step-renderer",function(){if(RF9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;ZMT===void 0&&(ZMT=document.createElement("template"));var u=ZMT;t.call(q,u.content.cloneNode(!0),F.content.firstChild);RF9=F}F=RF9;return F},{mode:2});var a6=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return F};
_.M(a6,_.x);a6.prototype.handleFreeTextFlowStepInputChanged=function(F){_.ec(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:F}}])};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],a6.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],a6.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],a6.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],a6);
_.b(a6,"ytd-free-text-input-flow-step-renderer",function(){if(eF5!==void 0)return eF5;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return eF5=F},{mode:1});var rfw;var NO7;var w27=function(){return _.x.apply(this,arguments)||this};
_.M(w27,_.x);_.C([_.O(),_.V("design:type",Object)],w27.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],w27);
_.b(w27,"ytd-metadata-line-renderer",function(){if(NO7!==void 0)return NO7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return NO7=F},{mode:1});var jF=function(){return _.x.apply(this,arguments)||this};
_.M(jF,_.x);jF.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],jF.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],jF.prototype,"isMasthead",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],jF);
_.b(jF,"ytd-media-product-renderer",function(){if(rfw!==void 0)return rfw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return rfw=F},{mode:1});var iMw;var cl=function(){return _.x.apply(this,arguments)||this};
_.M(cl,_.x);cl.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
cl.prototype.onBillboardImageLoaded=function(){_.Q0(this.hostElement,"yt-refit")};
cl.prototype.onBillboardImageLoaded=cl.prototype.onBillboardImageLoaded;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],cl.prototype,"data",void 0);_.C([_.Ms("#billboardImage"),_.V("design:type",Object)],cl.prototype,"billboardImage",void 0);_.C([_.EB("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cl.prototype,"onBillboardImageLoaded",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],cl);
_.b(cl,"ytd-billboard-masthead-renderer",function(){if(iMw!==void 0)return iMw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return iMw=F},{mode:1});var kmT;var FM=function(){var F=_.x.apply(this,arguments)||this;F.smallSize=!1;return F};
_.M(FM,_.x);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],FM.prototype,"ytComponentBehaviorType",void 0);_.C([_.O(),_.V("design:type",Object)],FM.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],FM.prototype,"smallSize",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],FM);
_.b(FM,"ytd-bullet-formatted-string",function(){if(kmT!==void 0)return kmT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return kmT=F},{mode:1});var Ee9;var qN=function(){return _.x.apply(this,arguments)||this};
_.M(qN,_.x);qN.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],qN.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],qN);
_.b(qN,"ytd-offer-detail-renderer",function(){if(Ee9!==void 0)return Ee9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Ee9=F},{mode:1});var zF9;var tI=function(){return _.x.apply(this,arguments)||this};
_.M(tI,_.x);tI.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],tI.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],tI);
_.b(tI,"ytd-offer-detail-step-renderer",function(){if(zF9!==void 0)return zF9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return zF9=F},{mode:1});var oeh;var uV=function(){var F=_.x.apply(this,arguments)||this;F.isInOfferModule=!1;return F};
_.M(uV,_.x);_.l=uV.prototype;_.l.computeHasEndpoint=function(){var F;return!((F=this.data)==null||!F.onClickCommand)};
_.l.dataChanged=function(){var F;if((F=this.data)==null?0:F.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.l.detached=function(){var F;if((F=this.data)==null?0:F.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.l.handleClickEvent=function(){var F;if((F=this.data)==null?0:F.onClickCommand){var q;this.componentBehavior.resolveCommand((q=this.data)==null?void 0:q.onClickCommand)}};
_.l.onContentKeyDown=function(F){F.key==="Enter"?this.handleClickEvent(F):F.key===" "&&F.preventDefault()};
_.l.onContentKeyUp=function(F){F.key===" "&&this.handleClickEvent(F)};
uV.prototype.dataChanged=uV.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],uV.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],uV.prototype,"data",void 0);_.C([_.O({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],uV.prototype,"hasEndpoint",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],uV.prototype,"isInOfferModule",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uV.prototype,"dataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],uV);
_.b(uV,"ytd-channel-masthead-renderer",function(){if(oeh!==void 0)return oeh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return oeh=F},{mode:1});var nev;var JI=function(){var F=_.x.apply(this,arguments)||this;F.thumbnailObjectFit="CONTAIN";F.thumbnailObjectPosition="LEFT";F.isExpanded=!1;return F};
_.M(JI,_.x);_.l=JI.prototype;_.l.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.l.dataChanged=function(){this.resetStates()};
_.l.computeisTapOnOfferInfoContainerEnabled=function(){var F;return((F=this.data)==null?void 0:F.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.l.onExpandBtnClick=function(){var F,q=_.n((F=this.data)==null?void 0:F.showMoreButtonRenderer,dE7);q&&_.vQ(_.DP(),q.trackingParams);this.isExpanded=!this.isExpanded};
_.l.onOfferInfoClick=function(F){this.isTapOnOfferInfoContainerEnabled&&(_.tC(_.tY(F)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.u6(_.tY(F)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.l.onBottomBarClick=function(){this.executeTapCommand()};
_.l.executeTapCommand=function(){var F,q=(F=this.data)==null?void 0:F.tapCommand;q&&this.ytComponentBehavior.resolveCommand(q)};
_.l.resetStates=function(){this.isExpanded=!1};
_.JJ.Object.defineProperties(JI.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var F=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),q,t,u;return((q=this.data)==null?void 0:q.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&F&&!!((t=this.data)==null?0:(u=t.benefits)==null?0:u.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((q=_.n((F=this.data)==null?void 0:F.showMoreButtonRenderer,dE7))==null?void 0:q.showMoreButtonTitle)||((t=this.data)==null?void 0:t.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((q=_.n((F=this.data)==null?void 0:F.showMoreButtonRenderer,dE7))==null?void 0:q.showLessButtonTitle)||((t=this.data)==null?void 0:t.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var F;return(F=this.showLessButtonTitle)!=null?F:""}var q;return(q=this.showMoreButtonTitle)!=null?q:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((F=this.data)==null?void 0:F.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((q=this.data)==null?0:q.footerTitle)||((t=this.data)==null?0:t.footerSubtitle))}}});
JI.prototype.dataChanged=JI.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],JI.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],JI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",String)],JI.prototype,"thumbnailObjectFit",void 0);
_.C([_.O(),_.V("design:type",String)],JI.prototype,"thumbnailObjectPosition",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.V("design:type",Boolean)],JI.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.C([_.O(),_.V("design:type",Object)],JI.prototype,"isExpanded",void 0);_.C([_.O(),_.V("design:type",Object)],JI.prototype,"data",void 0);_.C([_.O({computed:"computeIcon_(data.footerIcon)"}),_.V("design:type",String)],JI.prototype,"icon",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],JI.prototype,"dataChanged",null);_.C([_.W("data.thumbnail"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],JI.prototype,"hasThumbnail",null);_.C([_.W("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],JI.prototype,"enableExpandButton",null);
_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],JI.prototype,"enableOfferContentIcon",null);_.C([_.W("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.V("design:type",Object),_.V("design:paramtypes",[])],JI.prototype,"showMoreButtonTitle",null);_.C([_.W("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.V("design:type",Object),_.V("design:paramtypes",[])],JI.prototype,"showLessButtonTitle",null);
_.C([_.W("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.V("design:type",String),_.V("design:paramtypes",[])],JI.prototype,"expandedBtnText",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],JI.prototype,"enableBottomBar",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],JI);
_.b(JI,"ytd-offer-card-renderer",function(){if(nev!==void 0)return nev;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return nev=F},{mode:1});var MJD;var s1=function(){return _.x.apply(this,arguments)||this};
_.M(s1,_.x);s1.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"}}}};
s1.prototype.onClick=function(F){if(!_.tC(F.composedPath()||[],this.hostElement,["A".toString()])){var q,t;if((F=(t=_.n((q=this.data)==null?void 0:q.actionButton,_.th))==null?void 0:t.command)&&!this.ytComponentBehavior.resolveCommand(F)){var u;(u=_.DP())==null||u.clickCommand(F);_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}})}}};
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],s1.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],s1.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],s1);
_.b(s1,"ytd-offer-content-renderer",function(){if(MJD!==void 0)return MJD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return MJD=F},{mode:1});var TOC;var gG=function(){return _.x.apply(this,arguments)||this};
_.M(gG,_.x);gG.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.JJ.Object.defineProperties(gG.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var F,q;return!((F=this.data)==null||!F.title)||!((q=this.data)==null||!q.description)}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],gG.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],gG.prototype,"hasHeaderData",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],gG);
_.b(gG,"ytd-offer-section-renderer",function(){if(TOC!==void 0)return TOC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return TOC=F},{mode:1});var GmT;var lV=function(){return _.x.apply(this,arguments)||this};
_.M(lV,_.x);
lV.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"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],lV.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],lV);
_.b(lV,"ytd-offer-selection-step-renderer",function(){if(GmT!==void 0)return GmT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return GmT=F},{mode:1});var DbT;var XM=function(){return _.x.apply(this,arguments)||this};
_.M(XM,_.x);XM.prototype.computeStyle=function(F){return F};
XM.prototype.computeImageWidth=function(F){return F==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.C([_.O({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.V("design:type",String)],XM.prototype,"containerStyle",void 0);_.C([_.O({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.V("design:type",String)],XM.prototype,"imageWidth",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],XM.prototype,"data",void 0);
_.C([_.m({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],XM);
_.b(XM,"ytd-confirmation-masthead-renderer",function(){if(DbT!==void 0)return DbT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return DbT=F},{mode:1});var WHv;var Yy=function(){return _.x.apply(this,arguments)||this};
_.M(Yy,_.x);Yy.prototype.computeStyle=function(F){return F};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Yy.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.V("design:type",String)],Yy.prototype,"containerStyle",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Yy);
_.b(Yy,"ytd-purchase-complete-detail-renderer",function(){if(WHv!==void 0)return WHv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return WHv=F},{mode:1});var OMT;var p5=function(){var F=_.x.apply(this,arguments)||this;F.scriptsAppended=!1;return F};
_.M(p5,_.x);p5.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"}}}};
p5.prototype.onDataChanged=function(){var F=this.get("data.gtmId");F&&(_.f8(F,_.bn("GL","")),this.setupConversionTracking())};
p5.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var F=document.createElement("noscript");F.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(F);this.scriptsAppended=!0}};
p5.prototype.onDataChanged=p5.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],p5.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],p5.prototype,"scriptsAppended",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],p5.prototype,"onDataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],p5);
_.b(p5,"ytd-purchase-complete-step-renderer",function(){if(OMT!==void 0)return OMT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return OMT=F},{mode:1});var Pzv;var QN=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(QN,_.x);QN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],QN.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],QN.prototype,"darkerDarkTheme",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],QN);
_.b(QN,"ytd-ypc-transaction-error-message-renderer",function(){if(Pzv!==void 0)return Pzv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Pzv=F},{mode:1});var xbT;var Afv;var eY=function(){var F=_.x.apply(this,arguments)||this;F.handlePhoneVerificationSuccess=function(q){if(F.isValidPhoneVerificationCompletionMessageEvent(q)){var t;((t=F.data)==null?0:t.nextStepCommand)&&F.ytComponentBehavior.resolveCommand(F.data.nextStepCommand)}};
return F};
_.M(eY,_.x);eY.prototype.isValidPhoneVerificationCompletionMessageEvent=function(F){if(F.data!=="yt-phone-verification-complete")return!1;F=_.FR(F.origin);return F!==null&&F.includes("youtube.com")};
eY.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
eY.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],eY.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],eY.prototype,"data",void 0);_.C([_.Vu({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],eY);
_.b(eY,"yt-feature-enablement-soft-entry-renderer",function(){if(Afv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;xbT===void 0&&(xbT=document.createElement("template"));var u=xbT;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Afv=F}F=Afv;return F},{mode:1});var veD;var I_C;var HMh;var mb9;var $bs=function(){return _.x.apply(this,arguments)||this};
_.M($bs,_.x);_.C([_.O(),_.V("design:type",Object)],$bs.prototype,"data",void 0);_.C([_.Vu({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],$bs);
_.b($bs,"yt-benefits-item-renderer",function(){if(mb9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;HMh===void 0&&(HMh=document.createElement("template"));var u=HMh;t.call(q,u.content.cloneNode(!0),F.content.firstChild);mb9=F}F=mb9;return F},{mode:2});var bMJ;var yfh;var Zc=function(){return _.x.apply(this,arguments)||this};
_.M(Zc,_.x);Zc.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Zc.prototype.computeisWithoutPadding=function(){var F;return((F=this.data)==null?void 0:F.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Zc.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.V("design:type",Boolean)],Zc.prototype,"isWithoutPadding",void 0);_.C([_.Vu({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Zc);
_.b(Zc,"yt-benefits-section-renderer",function(){if(yfh===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;bMJ===void 0&&(bMJ=document.createElement("template"));var u=bMJ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);yfh=F}F=yfh;return F},{mode:2});var RG=function(){return _.x.apply(this,arguments)||this};
_.M(RG,_.x);RG.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
RG.prototype.computeisUsingLargeWidth=function(){var F;return((F=this.data)==null?void 0:F.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],RG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],RG.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.V("design:type",Boolean)],RG.prototype,"isUsingLargeWidth",void 0);_.C([_.Vu({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],RG);
_.b(RG,"yt-benefits-flow-step-renderer",function(){if(I_C===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;veD===void 0&&(veD=document.createElement("template"));var u=veD;t.call(q,u.content.cloneNode(!0),F.content.firstChild);I_C=F}F=I_C;return F},{mode:2});var Czs;var dbv;var rG=function(){return _.x.apply(this,arguments)||this};
_.M(rG,_.x);rG.prototype.checkIsUsingLargeWidth=function(){var F;return((F=this.data)==null?void 0:F.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.C([_.O(),_.V("design:type",Object)],rG.prototype,"data",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.C([_.O({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.V("design:type",Boolean)],rG.prototype,"isUsingLargeWidth",void 0);_.C([_.Vu({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],rG);
_.b(rG,"yt-confirmation-flow-step-renderer",function(){if(dbv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Czs===void 0&&(Czs=document.createElement("template"));var u=Czs;t.call(q,u.content.cloneNode(!0),F.content.firstChild);dbv=F}F=dbv;return F},{mode:2});var VJD;var Ubv;var SDv=function(){return _.x.apply(this,arguments)||this};
_.M(SDv,_.x);_.C([_.O(),_.V("design:type",Object)],SDv.prototype,"data",void 0);_.C([_.Vu({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],SDv);
_.b(SDv,"yt-info-flow-step-renderer",function(){if(Ubv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;VJD===void 0&&(VJD=document.createElement("template"));var u=VJD;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Ubv=F}F=Ubv;return F},{mode:2});var hFT;var KHv;var BOJ=function(){return _.x.apply(this,arguments)||this};
_.M(BOJ,_.x);_.C([_.O(),_.V("design:type",Object)],BOJ.prototype,"data",void 0);_.C([_.Vu({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],BOJ);
_.b(BOJ,"yt-info-list-flow-step-renderer",function(){if(KHv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;hFT===void 0&&(hFT=document.createElement("template"));var u=hFT;t.call(q,u.content.cloneNode(!0),F.content.firstChild);KHv=F}F=KHv;return F},{mode:2});var LHJ=_.ld(function(F){var q=F.data;return _.Z("styled-text-view-model",{class:_.Ec("ytStyledTextViewModelHost",function(){return tv9(q().fontAttributes)},function(){return qVs(q().color)})},_.Z(_.rv,{text:function(){return q().text},
ariaLabel:function(){var t,u,J;return(J=(t=q().accessibility)==null?void 0:(u=t.accessibilityData)==null?void 0:u.label)!=null?J:""}}))},"If");
LHJ.idomCompat=!0;var f_w=_.ld(function(F){var q=function(){var J,g,Y,Q;return(Q=(Y=(J=F.alt)==null?void 0:J.call(F))!=null?Y:(g=F.data().accessibilityData)==null?void 0:g.label)!=null?Q:""},t=function(){return F.data().imageWidth},u=function(){return F.data().imageHeight};
return _.Z("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.Z(_.R,{cond:function(){var J=F.data();if(J){var g,Y,Q;var e=((g=_.sV().resolve(_.JU(_.qo)))==null?0:g())?(Y=J.imageDark)!=null?Y:J.imageLight:(Q=J.imageLight)!=null?Q:J.imageDark}else e=void 0;return e},
then:function(J){return _.Z(_.sc,Object.assign({},F,{data:J,alt:q,targetWidth:t,targetHeight:u,preserveHeight:!0,preserveWidth:!0}))}}))},"Jf");
f_w.idomCompat=!0;var NN=_.ld(function(F){var q=F.data;F=_.Jv(function(){return q().slots},[]);
var t=_.Jv(function(){return q().layoutProperties},{}),u=_.sV().resolve(_.u_);
return _.Z("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:fAh(t,u)},_.Z(_.Gn,{each:F,keyBy:"INDEX"},function(J){return _.Z("div",{class:"ytContainerLayoutViewModelSlot",style:fAh(function(){return J().layoutProperties},u)},_.Z(_.Tl,{data:function(){return J().contents}},{containerLayoutViewModel:NN,
badgeViewModel:_.Tj,buttonViewModel:_.AB,styledTextViewModel:LHJ,contentPreviewImageViewModel:function(g){return _.Z(_.Gj,{data:g.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(g){return _.Z(f_w,{data:g.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Kf");
NN.idomCompat=!0;var a_T=_.ld(function(F){var q=F.data;var t=F.stateFns;var u=function(){var r=q(),N=r.productId;return!(!r.clearGroupId&&!N)},J=function(){var r=q(),N=r.clearGroupId;
return(r=r.productId)?t().isProductSelected(r):N?t().getSelectedProductByGroupId(N)==null:!1},g=function(){var r=q(),N=r.clearGroupId;
if(r=r.productId)t().onProductSelected(r);else if(N)t().onClearGroupSelected(N)},Y=function(){var r=q(),N=r.clearGroupId;
if(r=r.productId){var w;return"group:"+(((w=t().getProductById(r))==null?void 0:w.groupId)||"")}return N?"group:"+N:""},Q=_.Jv(function(){return q().header},[]),e=_.Jv(function(){return q().body},[]);
return _.Z("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.Z(_.R,{cond:function(){return Q().length>0||u()},
then:function(){return _.Z("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.Z("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.Z(_.Tl,{data:Q},{containerLayoutViewModel:function(r){return _.Z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Z(NN,{data:r.data}))},
styledTextViewModel:function(r){return _.Z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Z(LHJ,{data:r.data}))}})),_.Z(_.R,{cond:u,
then:function(){return _.Z("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.Z(_.t_,{checked:J,name:Y,onChange:g}))}}))}}),_.Z(_.R,{cond:function(){return e().length>0},
then:function(){return _.Z("div",null,_.Z(_.Tl,{data:e},{containerLayoutViewModel:function(r){return _.Z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Z(NN,{data:r.data}))}}))}}))},"Lf");
a_T.idomCompat=!0;var jJs=_.ld(function(F){var q=F.data;var t=F.stateFns;return _.Z("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.Z(_.R,{cond:function(){return q().banner},
then:function(u){return _.Z("div",{class:"ytPdpCardViewModelBanner"},_.Z(_.rv,{text:u}))}}),_.Z(_.Tl,{data:function(){return q().sections}},{pdpCardSectionViewModel:function(u){u=u.data;
var J={};return _.Z("div",{class:_.Ec("ytPdpCardViewModelSectionContainer",(J.ytPdpCardViewModelShowDividers=function(){return q().showDividers},J))},_.Z(a_T,{data:u,
stateFns:t}))}}))},"Mf");
jJs.idomCompat=!0;var cfy=_.ld(function(F){var q=F.data;var t=F.isOverlay;F={};return _.Z("pdp-masthead-view-model",{class:_.Ec("ytPdpMastheadViewModelHost",(F.ytPdpMastheadViewModelIsOverlay=t,F))},_.Z(_.Tl,{data:function(){return q().image}},{contentPreviewImageViewModel:_.Gj,
themedImageViewModel:function(u){return _.Z(f_w,{data:u.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.Z(_.R,{cond:function(){return q().title},
then:function(u){return _.Z("h1",{class:"ytPdpMastheadViewModelHeading"},_.Z(_.rv,{text:u,isOverlay:t}))}}),_.Z(_.Gn,{each:function(){var u;
return(u=q().finePrint)!=null?u:[]}},function(u){return _.Z("div",{class:"ytPdpMastheadViewModelFinePrint"},_.Z(_.rv,{text:u,
isOverlay:t}))}))},"Nf");
cfy.idomCompat=!0;var F09=_.ld(function(F){var q=F.data;var t=F.stateFns;var u=function(){return"pdp-pricing-group-selector-"+q().pricingGroupAttributeIds},J=_.Jv(function(){return q().pricingGroupSelectorSectionHeader});
return _.Z("pdp-pricing-group-selector-view-model",null,_.Z(_.R,{cond:function(){return!!J()},
then:function(){return _.Z(_.Tl,{data:J},{sectionHeaderViewModel:function(g){g=g.data;var Y={};return _.Z("div",{class:_.Ec("ytPdpPricingGroupSelectorViewModelSectionHeader",(Y.ytPdpPricingGroupSelectorViewModelFullBleed=!0,Y.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,Y))},_.Z(_.Ae,{data:g}))}})}}),_.Z("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.Z(_.Gn,{each:function(){var g=t().getSelectedProductByGroupId(q().groupId);
if(!g)return _.$e(Error("Nj`"+q().groupId)),[];var Y,Q=(Y=q().pricingGroupAttributeIds)!=null?Y:[],e;if((e=g.pricingGroups)==null||!e.length||!Q.length)return[];Y=g.pricingGroups.filter(function(k){return Q.length?k.pricingGroupAttributes.every(function(z){return Q.includes(z)}):!1});
g=[];if(Q.length>0){Y=[].concat(_.mZ(Y));e=_.X(Q);for(var r=e.next(),N={};!r.done;N={targetAttrId:void 0},r=e.next())N.targetAttrId=r.value,r=Y.findIndex(function(k){return function(z){return z.pricingGroupAttributes.includes(k.targetAttrId)}}(N)),r!==-1&&(g.push(Y[r]),Y.splice(r,1))}var w=t().getSelectedPricingGroupAttributesByGroupId(q().groupId);
return g.map(function(k){var z=!1;w&&k.pricingGroupAttributes&&(z=Hl(k.pricingGroupAttributes,w));return{pricingGroup:k,isSelected:z}})},
keyBy:function(g){return g.pricingGroup.pricingGroupId}},function(g){return _.Z("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.Z("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.Z(_.Tl,{data:function(){return g().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:NN})),_.Z("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.Z(_.t_,{checked:function(){return g().isSelected},
name:u,onClick:function(){t().onPricingGroupSelected(g().pricingGroup.pricingGroupId)}})))})))},"Of");
F09.idomCompat=!0;var qTv=_.ld(function(F){var q=F.data;var t=F.stateFns;var u=function(){var Y=t().getSelectedPricingOptions().map(function(r){return r.pricingOptionId}),Q=t().getSelectedProductByGroupId(q().groupId);
if(!Q)return _.$e(Error("Oj`"+q().groupId)),[];var e=t().getSelectedPricingGroupAttributesByGroupId(q().groupId);return gEC(Q.pricingOptions,e,Y)},J=_.Jv(function(){return q().pricingOptionSelectorSectionHeader}),g=function(){return u().length>1};
return _.Z("pdp-pricing-option-selector-view-model",null,_.Z(_.R,{cond:function(){return!!J()&&g()},
then:function(){return _.Z(_.Tl,{data:J},{sectionHeaderViewModel:function(Y){Y=Y.data;var Q={};return _.Z("div",{class:_.Ec("ytPdpPricingOptionSelectorViewModelSectionHeader",(Q.ytPdpPricingOptionSelectorViewModelFullBleed=!0,Q.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,Q))},_.Z(_.Ae,{data:Y}))}})}}),_.Z(_.R,{cond:g,
then:function(){return _.Z("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.Z(_.Gn,{each:u,keyBy:"INDEX"},function(Y){return _.Z("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.Z("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.Z(_.Tl,{data:function(){return Y().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:NN})),_.Z("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.Z(_.t_,{checked:function(){return Y().isSelected},
onClick:function(){t().onPricingOptionSelected(Y().pricingOption.pricingOptionId);var Q=Y().pricingOption.onSelectPricingOption;if(Q=_.Sg(Q)){var e;(e=_.sV().resolve(_.gN))==null||e.resolveCommand(Q)}}})))}))}}))},"Pf");
qTv.idomCompat=!0;var tM3=_.ld(function(F){var q=F.data;var t=F.stateFns;return _.Z("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.Z(_.Tl,{data:function(){var u,J;return(J=(u=t().getSelectedPricingOptions()[0])==null?void 0:u.primaryButton)!=null?J:q().emptyStateButton}},{buttonViewModel:_.AB}))},"Qf");
tM3.idomCompat=!0;var uGv=_.ld(function(F){var q=F.stateFns;return _.Z("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.Z(_.Tl,{data:function(){return q().getSelectedPricingOptions().flatMap(function(t){return t.summaryLines}).filter(function(t){return!!t})}},{containerLayoutViewModel:function(t){return _.Z("div",{class:"ytPdpSummaryViewModelLineItem"},_.Z(NN,{data:t.data}))}}))},"Rf");
uGv.idomCompat=!0;var JgC=_.ld(function(F){function q(v){var H=Y();_.ud(_.I4("pdpStateEntity",H,{key:H,selectedPricingOptions:v}))}
var t=F.data;var u=F.internalScrolling;var J=F.stateFnsForTesting;var g=_.Jv(function(){return t().allProducts},[]),Y=_.Jv(function(){return t().pdpStateEntityKey},""),Q=_.nH(l03,Y),e=_.zy(function(){_.Hj(!0);
var v;return(v=J==null?void 0:J())!=null?v:YVv(Q,g,q)},void 0,"tAB69c"),r=_.Jv(function(){return t().body},[]),N=_.Jv(function(){return t().columnBreakHints},[]),w=function(){return t().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},k=function(){return w()||t().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},z=_.zy(function(){var v=_.KH(t().background),H;
if(v==null?0:(H=v.sources)==null?0:H.length){var d=d===void 0?!0:d;v=_.Aqv(void 0,v.sources,void 0,d,d?1E3:void 0,d?void 0:1E3)}else v=null;return v},void 0,"bHjkUb");
F=_.Mo({"--pdp-view-model-background":function(){return z()?"url("+z()+")":void 0}});
var T={};u=_.Ec("ytPdpViewModelHost",(T.ytPdpViewModelHasBackground=function(){return k()||!!z()},T.ytPdpViewModelHasDarkBackground=k,T.ytPdpViewModelHasScrim=w,T.ytPdpViewModelInternalScrolling=_.Jv(u,!1),T));
var P=function(v){var H={};return _.Ec("ytPdpViewModelItem",(H.ytPdpViewModelFullBleed=function(){return pcJ(v())==="dividerViewModel"||pcJ(v())==="sectionHeaderViewModel"},H.ytPdpViewModelNoVerticalPadding=function(){return pcJ(v())==="sectionHeaderViewModel"},H))};
_.v_(function(){var v=t().onStartCommand;if(v&&(v=_.Sg(v))){var H;(H=_.sV().resolve(_.gN))==null||H.resolveCommand(v)}});
return _.Z("pdp-view-model",{class:u,style:F},_.Z("div",{class:"ytPdpViewModelColumnContainer"},_.Z(_.Gn,{each:function(){return Qm9(r(),N())},
keyBy:"INDEX"},function(v){return _.Z("div",{class:"ytPdpViewModelColumn"},_.Z(_.Tl,{data:v},{containerLayoutViewModel:function(H,d){H=H.data;return _.Z("div",{class:P(function(){return v()[d()]})},_.Z(NN,{data:H}))},
dividerViewModel:function(H,d){H=H.data;return _.Z("div",{class:P(function(){return v()[d()]})},_.Z(_.pVd,{data:H}))},
pdpCardViewModel:function(H,d){H=H.data;return _.Z("div",{class:P(function(){return v()[d()]})},_.Z(jJs,{data:H,
stateFns:e}))},
pdpMastheadViewModel:function(H,d){H=H.data;return _.Z("div",{class:P(function(){return v()[d()]})},_.Z(cfy,{data:H,
isOverlay:k}))},
pdpPricingGroupSelectorViewModel:function(H,d){H=H.data;return _.Z("div",{class:P(function(){return v()[d()]})},_.Z(F09,{data:H,
stateFns:e}))},
pdpPricingOptionSelectorViewModel:function(H,d){H=H.data;return _.Z("div",{class:P(function(){return v()[d()]})},_.Z(qTv,{data:H,
stateFns:e}))},
pdpPrimaryButtonViewModel:function(H,d){H=H.data;return _.Z("div",{class:P(function(){return v()[d()]})},_.Z(tM3,{data:H,
stateFns:e}))},
pdpSummaryViewModel:function(H,d){H=H.data;return _.Z("div",{class:P(function(){return v()[d()]})},_.Z(uGv,{data:H,
stateFns:e}))},
sectionHeaderViewModel:function(H,d){H=H.data;return _.Z("div",{class:P(function(){return v()[d()]})},_.Z(_.Ae,{data:H}))}}))})))},"Sf");
JgC.idomCompat=!0;_.ei(JgC,"pdp-view-model",{props:{data:_.NH,stateFnsForTesting:_.pp,internalScrolling:_.pp}});var s0J=_.ld(function(F){var q=F.data;var t=F.className;var u=_.nH(_.jx,function(){return q().flowStateEntityKey});
return _.Z("ytm-premium-purchase-button-renderer",{class:_.Ec("ytPremiumPurchaseButtonRendererHost",t)},_.Z(_.Tl,{data:function(){var J;return(J=_.n(u(),ZEQ))==null?void 0:J.primaryButtonOverride}},{buttonRenderer:function(J){return _.Z(_.Ni,{data:J.data,
className:t})},
buttonViewModel:function(J){return _.Z(_.AB,{data:J.data,className:t})}}))},"Tf");
s0J.idomCompat=!0;var gFQ=_.ld(function(F){var q=F.data;F=F.className;var t=function(){return eT3(q().style)},u=_.Ec("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",t),J=_.Ec("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",t);
return _.Z("yt-flow-bottom-bar-renderer",{class:_.Ec("yt-flow-bottom-bar-renderer",F,t)},_.Z(_.Tl,{data:function(){return q().secondaryButton}},{buttonRenderer:function(g){return _.Z(_.Ni,{data:g.data,
className:J})},
buttonViewModel:function(g){return _.Z(_.AB,{data:g.data,className:J})},
premiumPurchaseButtonRenderer:function(g){return _.Z(s0J,{data:g.data,className:J})}}),_.Z(_.Tl,{data:function(){return q().primaryButton}},{buttonRenderer:function(g){return _.Z(_.Ni,{data:g.data,
className:u})},
buttonViewModel:function(g){return _.Z(_.AB,{data:g.data,className:u})},
premiumPurchaseButtonRenderer:function(g){return _.Z(s0J,{data:g.data,className:u})}}))},"Uf");
gFQ.idomCompat=!0;_.ei(gFQ,"yt-flow-bottom-bar-renderer",{props:{data:_.NH,className:_.NH}});var lS9=_.ld(function(F){var q=_.Ec(F.className,"ytOfferSummaryRendererHost");return _.Z("yt-offer-summary-renderer",{class:q},_.Z("div",{class:"ytOfferSummaryRendererTextContainer"},_.Z("div",{class:"ytOfferSummaryRendererEyebrowText"},_.Z(_.rv,{text:function(){return F.data().eyebrowText}})),_.Z("div",{class:"ytOfferSummaryRendererTitle"},_.Z(_.rv,{text:function(){return F.data().title}})),_.Z("div",{class:"ytOfferSummaryRendererSubtitle"},_.Z(_.rv,{text:function(){return F.data().subtitle}})),
_.Z("div",{class:"ytOfferSummaryRendererFeatureListData"},_.Z(_.Gn,{each:function(){var t;
return(t=F.data().featureListData)!=null?t:[]}},function(t){var u;
return _.Z("div",{class:"ytOfferSummaryRendererFeatureList"},_.Z(_.Tq,{icon:(u=t.icon)==null?void 0:u.iconType,active:function(){return t.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(t.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.Z("div",{class:"ytOfferSummaryRendererFeatureListText"},_.Z(_.rv,{text:t.text,
className:function(){return t.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.Z("div",{class:"ytOfferSummaryRendererDescription"},_.Z(_.rv,{text:function(){return F.data().description}}))))},"Vf");_.ei(_.ld(function(F){var q={};q=_.Ec("ytOfferSummaryFlowStepRendererHost",(q.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=F.shouldDisableHeaderTopMargin,q));return _.Z("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:q},_.Z("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.Z("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.Z(_.rv,{text:function(){return F.data().header}})),_.Z("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.Z(_.rv,{text:function(){return F.data().subtitle}}))),_.Z("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.Z(_.Tl,{data:function(){return F.data().offerSummary}},{offerSummaryRenderer:function(t){return _.Z(lS9,{data:t.data,
className:F.flowClassName})}})))},"Wf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.pp,
flowClassName:_.pp,flowStateEntityKey:_.pp,shouldDisableHeaderTopMargin:_.pp}});var XUv=_.ld(function(F){var q=F.data;var t=F.className;var u=F.flowStateEntityKey;var J=F.selectionStepStyle;F=_.zq(function(e){var r=q(),N=u==null?void 0:u();e.target&&(e.stopPropagation(),e=N||"",N=_.jx(_.tv().getState(),e),r=Object.assign({},N,{premiumPurchaseFlowState:{selectedOptionId:r.optionId,primaryButtonOverride:r.primaryButtonOverride}}),_.tv().dispatch(_.Gl("flowStateEntity",e,r)));return!1});
var g=function(){return(u==null?void 0:u())||""},Y=_.nH(_.jx,g);
_.v_(function(){var e=q(),r=g(),N=Y();e.defaultSelected&&r!==""&&e.primaryButtonOverride&&RT3(e.optionId||"",r,e.primaryButtonOverride,N)});
var Q={};return _.Z("ytm-option-item-renderer",{"on:click":F,class:_.Ec(t,"ytm-option-item-renderer",(Q["ytm-option-item-renderer--lp2-style"]=function(){return(J==null?void 0:J())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},Q))},_.Z("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.Z("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var e=q(),r=g(),N=Y();N=_.n(N,ZEQ);return(N?(N==null?void 0:N.selectedOptionId)||"":e.defaultSelected&&r!==""?(e==null?void 0:e.optionId)||"":"")===q().optionId},
name:("input"+_.VV(_.jn)).toString()})),_.Z("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.Z(_.Tl,{data:function(){return q().titleBadge}},{badgeViewModel:function(e){return _.Z(_.Tj,{data:e.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.Z(_.R,{cond:function(){return q().eyebrowText},
then:function(){return _.Z("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.Z(_.rv,{text:function(){return q().eyebrowText}}))}}),_.Z("div",{class:"ytm-option-item-renderer__option-item-title"},_.Z(_.rv,{text:function(){return q().title}})),_.Z("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.Z(_.rv,{text:function(){return q().subtitle}})),_.Z(_.R,{cond:function(){return q().featureListData},
then:function(){return _.Z("div",{class:"ytm-option-item-renderer__feature-list-data"},_.Z(_.Gn,{each:function(){return q().featureListData||[]}},function(e){var r,N=(r=e.icon)==null?void 0:r.iconType;
a:switch(e.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":r="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":r="ytm-option-item-renderer__feature-list-icon-small";break a;default:r="ytm-option-item-renderer__feature-list-icon-default"}return _.Z("div",{class:"ytm-option-item-renderer__feature-list"},_.Z(_.Tq,{icon:N,className:r,active:function(){return e.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.Z("div",{class:"ytm-option-item-renderer__feature-list-text"},_.Z(_.rv,{text:e.text,
className:function(){return e.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.Z("div",{class:"ytm-option-item-renderer__option-item-description"},_.Z(_.rv,{text:function(){return q().description}}))))},"Xf");var YT5=_.ld(function(F){var q=F.data;var t=F.flowClassName;var u=F.flowStateEntityKey;var J=F.selectionStepStyle;return _.Z("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.Z("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.Z("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.Z(_.rv,{text:function(){return q().title}}),_.Z(_.Tl,{data:function(){return q().titleBadge}},{badgeViewModel:function(g){return _.Z(_.Tj,{data:g.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.Z(_.R,{cond:function(){return q().subtitle},
then:function(){return _.Z("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.Z(_.rv,{text:function(){return q().subtitle}}))}}),_.Z(_.R,{cond:function(){return q().featureListData},
then:function(g){return _.Z("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.Z(_.Gn,{each:g},function(Y){var Q;return _.Z("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.Z(_.Tq,{icon:(Q=Y.icon)==null?void 0:Q.iconType,active:function(){return Y.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(Y.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.Z("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.Z(_.rv,{text:Y.text,
className:function(){return Y.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.Z(_.R,{cond:function(){return q().secondaryTitle},
then:function(){return _.Z("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.Z(_.rv,{text:function(){return q().secondaryTitle}}))}}),_.Z(_.Gn,{each:function(){return q().sectionDisclaimers||[]}},function(g){return _.Z("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.Z(_.rv,{text:g}))})),_.Z(_.Tl,{data:function(){return q().optionItems}},{optionItemRenderer:function(g){return _.Z("div",{class:"ytOptionSectionRendererOptionItem"},_.Z(XUv,{data:g.data,
className:t,flowStateEntityKey:u,selectionStepStyle:J}))}}),_.Z(_.R,{cond:function(){return q().offerText},
then:function(){return _.Z("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.Z(_.rv,{text:function(){return q().offerText}}))}}))},"Yf");
YT5.idomCompat=!0;var pUT=_.ld(function(F){var q=F.data;var t=F.flowClassName;var u=F.flowStateEntityKey;F=F.isDesktop;var J=function(){var r;return(r=q().flowStateEntityKey)!=null?r:u==null?void 0:u()},g=function(){return(J==null?void 0:J())||""},Y=function(){return q().style},Q=_.nH(_.jx,g);
_.v_(function(){var r=q(),N=g(),w=Q();!_.n(w,ZEQ)&&r.noPreselect&&N!==""&&r.defaultButtonOverride&&RT3("default",N,r.defaultButtonOverride,w)});
var e={};return _.Z("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Ec("ytm-option-selection-flow-step-renderer",(e["ytm-option-selection-flow-step-renderer--desktop"]=F,e["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return q().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},e))},_.Z("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"},
_.Z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.Z(_.rv,{text:function(){return q().header}})),_.Z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.Z(_.rv,{text:function(){return q().subtitle}}))),_.Z(_.Tl,{data:function(){return q().optionItems||[]}},{optionItemRenderer:function(r){return _.Z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.Z(XUv,{data:r.data,
className:t,flowStateEntityKey:J,selectionStepStyle:Y}))},
optionSectionRenderer:function(r){return _.Z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.Z(YT5,{data:r.data,flowClassName:t,flowStateEntityKey:J,selectionStepStyle:Y}))}}))},"Zf");
pUT.idomCompat=!0;_.ei(pUT,"yt-option-selection-flow-step-renderer",{props:{data:_.NH,flowClassName:_.NH,flowStateEntityKey:_.NH,isDesktop:_.NH}});_.wG=_.ld(function(F){var q=_.sk(F,{type:1,disablePadding:!1,disablePrimaryButton:!1}),t=q.data,u=q.type;F=q.disablePadding;var J=q.disablePrimaryButton,g=q.onClickPrimaryButton,Y=function(){return t().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},Q=function(){return{disabled:J(),
state:J()?"disabled":"active"}},e=function(){return t().leadingLabel||t().trailingLabel};
q={};return _.Z("yt-panel-footer-view-model",{class:_.Ec("yt-panel-footer-view-model-wiz",(q["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return t().shouldHideDivider},q["yt-panel-footer-view-model-wiz--disable-padding"]=F,q))},_.Z(_.R,{cond:e,
then:function(){var r={},N={};return _.Z("div",{class:_.Ec("yt-panel-footer-view-model-wiz__text-row",(r["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var w=t();return!(!w.leadingLabel&&!w.trailingLabel||!w.primaryButton&&!w.secondaryButton)},r))},_.Z(_.rv,{text:function(){return t().leadingLabel},
className:_.Ec((N["yt-panel-footer-view-model-wiz--text-padding"]=e,N))}),_.Z(_.rv,{text:function(){return t().trailingLabel}}))}}),_.Z(_.R,{cond:Y,
then:function(){var r={};return _.Z("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.Z("div",{class:_.Ec("yt-panel-footer-view-model-wiz__primary-button",(r["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return t().secondaryButton},r))},_.Z(_.Tl,{data:function(){return t().primaryButton}},{buttonViewModel:function(N){return _.Z(_.AB,{data:N.data,
buttonOverrides:Q,onClick:g})}})),_.Z(_.Tl,{data:function(){return t().secondaryButton}},{buttonViewModel:_.AB}))}}),_.Z(_.R,{cond:function(){return!Y()},
then:function(){var r={},N={},w={};return _.Z("div",{class:_.Ec("yt-panel-footer-view-model-wiz__button-row",(r["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===u()},r))},_.Z("div",{class:_.Ec("yt-panel-footer-view-model-wiz__button-row--left-button",(N["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===u()},N["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!t().secondaryButton||0===u()},N["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===u()},N))},_.Z(_.Tl,{data:function(){return t().secondaryButton}},{buttonViewModel:_.AB})),_.Z("div",{class:_.Ec("yt-panel-footer-view-model-wiz__primary-button",(w["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===u()||1===u()},w["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===u()},w))},_.Z(_.Tl,{data:function(){return t().primaryButton}},{buttonViewModel:function(k){return _.Z(_.AB,{data:k.data,
buttonOverrides:Q,onClick:g})}})))}}))},"$f");
_.wG.idomCompat=!0;_.Q0v=_.ld(function(F){F=_.sk(F,{disablePadding:!1});var q=F.data,t=F.disablePadding;F=_.vKt(function(){return q().formId});
var u=F.submitForm,J=F.isValid,g=F.isSubmitting;return _.Z("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.Z(_.Tl,{data:function(){return q().panelFooter}},{panelFooterViewModel:function(Y){return _.Z(_.wG,{data:Y.data,
onClickPrimaryButton:function(){u()},
disablePrimaryButton:function(){return!J()||g()},
disablePadding:t})}}))},"ag");_.ei(_.Q0v,"yt-form-footer-view-model",{props:{data:_.NH,disablePadding:_.NH}});var ef9=_.ld(function(F){var q=_.E("enable_user_rating_web");return _.Z("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.Z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.Z(_.R,{cond:function(){var t;return(t=F.data())==null?void 0:t.image},
then:function(t){return _.Z(_.sc,{data:t,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.Z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.Z(_.rv,{text:function(){var t;
return(t=F.data())==null?void 0:t.title}})),_.Z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.Z(_.rv,{text:function(){var t;
return(t=F.data())==null?void 0:t.subtitle}})),_.Z(_.R,{cond:function(){return!q},
then:function(){return _.Z(_.Tl,{data:function(){var t;return(t=F.data())==null?void 0:t.viewTipsButton}},{buttonViewModel:function(t){return _.Z(_.AB,{data:t.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"bg");_.ei(ef9,"yt-contributor-zero-state-view-model",{props:{data:_.NH}});var ZWv=_.ld(function(F){var q=function(){var t;return(t=F.data())==null?void 0:t.image};
return _.Z("yt-featured-content-item-view-model",{class:_.Ec("ytFeaturedContentItemViewModelHost")},_.Z("div",{class:_.Ec(function(){return q()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.Z("div",{class:function(){return q()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.Z(_.R,{cond:q,
then:function(){return _.Z("div",{class:"ytFeaturedContentItemViewModelImage"},_.Z(_.Tl,{data:function(){return F.data().image}},{themedImageViewModel:function(t){return _.Z(f_w,{data:t.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.Z(_.R,{cond:function(){var t;
return!q()&&((t=F.data())==null?void 0:t.iconName)},
then:function(){return _.Z("div",{class:"ytFeaturedContentItemViewModelIcon"},_.Z(_.Tq,{icon:function(){return F.data().iconName}}))}}),_.Z("div",{class:"ytFeaturedContentItemViewModelContent"},_.Z(_.R,{cond:function(){var t;
return(t=F.data())==null?void 0:t.title},
then:function(){return _.Z("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.Z(_.rv,{text:function(){return F.data().title}}))}}),_.Z(_.R,{cond:function(){var t;
return(t=F.data())==null?void 0:t.body},
then:function(){return _.Z("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.Z(_.rv,{text:function(){return F.data().body}}))}})))))},"cg");var Rfy=_.ld(function(F){var q=function(){var J;return rUw((J=F.data())==null?void 0:J.titleFontSize)},t=function(){var J;
return NNC((J=F.data())==null?void 0:J.descriptionFontSize)},u=function(){var J;
return((J=F.data())==null?void 0:J.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.Z("yt-landing-page-view-model",{class:_.Ec("ytLandingPageViewModelHost",F.className)},_.Z("div",{class:"ytLandingPageViewModelHeader"},_.Z(_.R,{cond:function(){var J;return(J=F.data())==null?void 0:J.bannerImage},
then:function(J){return _.Z("div",{class:"ytLandingPageViewModelHeaderImage"},_.Z(_.Tl,{data:function(){return J()}},{imageBannerViewModel:function(g){return _.Z(_.lE,{data:g.data,
isPositionRelative:!0})}}))}}),_.Z(_.R,{cond:function(){var J;
return(J=F.data())==null?void 0:J.bannerAnimation},
then:function(J){return _.Z(_.bT,{data:function(){var g=J();if(g==null?0:g.url){var Y;g={path:(Y=g==null?void 0:g.url)!=null?Y:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(g==null?0:g.payload){var Q;g={animationData:JSON.parse((Q=g==null?void 0:g.payload)!=null?Q:""),autoplay:!0,loop:!0,renderer:"svg"}}else g=void 0;return{animationConfig:g}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.Z("div",{class:"ytLandingPageViewModelHeaderTitle"},_.Z(_.R,{cond:function(){var J;
return(J=F.data())==null?void 0:J.title},
then:function(J){return _.Z("div",{class:_.Ec("ytLandingPageViewModelHeaderTitleContent",q)},_.Z(_.rv,{text:function(){return J()}}))}}),_.Z(_.R,{cond:function(){var J;
return(J=F.data())==null?void 0:J.description},
then:function(J){var g={};return _.Z(_.rv,{className:_.Ec("ytLandingPageViewModelHeaderTitleDescription",t,(g.ytLandingPageViewModelHeaderTitleDescriptionMargin=u,g)),text:function(){return J()}})}}))),_.Z(_.R,{cond:function(){var J,g;
return(J=F.data())==null?void 0:(g=J.featuredContentList)==null?void 0:g.length},
then:function(){return _.Z("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.Z(_.Tl,{data:function(){return F.data().featuredContentList}},{featuredContentItemViewModel:function(J){return _.Z(ZWv,{data:J.data})}}))}}),_.Z(_.R,{cond:function(){var J,g;
return(J=F.data())==null?void 0:(g=J.expandableContentList)==null?void 0:g.length},
then:function(){return _.Z("div",{class:"ytLandingPageViewModelFaqSection"},_.Z(_.Tl,{data:function(){return F.data().expandableContentList}},{faqEntryViewModel:function(J){return _.Z("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.Z(_.KCw,{data:J.data}))}}))}}),_.Z("div",{class:"ytLandingPageViewModelFooter"},_.Z(_.R,{cond:function(){var J;
return(J=F.data())==null?void 0:J.legalCopy},
then:function(J){return _.Z("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.Z(_.rv,{text:function(){return J()}}))}}),_.Z(_.R,{cond:function(){var J;
return(J=F.data())==null?void 0:J.actions},
then:function(J){return _.Z("div",null,_.Z(_.Tl,{data:function(){return J()}},{flexibleActionsViewModel:function(g){return _.Z(_.tp,{data:g.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"dg");_.ei(_.ld(function(F){return _.Z("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.Z("div",{class:"ytLpSectionGroupViewModelContainer"},_.Z(_.Tl,{data:function(){return F.data().sections}},{landingPageViewModel:function(q){return _.Z(Rfy,{data:q.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"eg"),"yt-lp-section-group-view-model",{props:{data:_.NH}});var rg5=_.ld(function(F){var q=F.data;var t=F.selectedKey;var u=F.onSelected;var J=F.groupName;var g=function(){return q().text},Y=function(){return q().attributedText},Q=function(){return q().subtext},e=function(){return q().attributedSubtext},r=_.Z("div",{class:"ytRadioButtonItemViewModelLabel"},_.Z(_.R,{cond:g,
then:function(){return _.Z("div",null,g)}}),_.Z(_.R,{cond:Y,
then:function(){return _.Z(_.rv,{text:Y})}}),_.Z(_.R,{cond:Q,
then:function(){return _.Z("div",{class:"ytRadioButtonItemViewModelSubText"},Q)}}),_.Z(_.R,{cond:e,
then:function(){return _.Z("div",{class:"ytRadioButtonItemViewModelSubText"},_.Z(_.rv,{text:e}))}})),N=function(){if(Y()){var k;
return(k=Y())==null?void 0:k.content}return g()},w=function(){if(e()){var k;
return(k=e())==null?void 0:k.content}return Q()};
F={};return _.Z("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.Z(_.t_,{name:J,checked:function(){return!(t==null||!t()||q().key!==(t==null?void 0:t()))},
onChange:function(k){u==null||u(k.target,q(),J==null?void 0:J())},
labelRenderable:function(){return r},
ariaLabel:function(){return w()?N()+", "+w():N()},
className:_.Ec((F.ytRadioButtonItemViewModelSubTitle=function(){return!!q().subtext},F))}))},"fg");_.NZ9=_.ld(function(F){var q=F.data;var t=F.onSelected;var u=F.selectedKey;var J=F.groupName;var g=function(){return(J==null?void 0:J())||q().key};
return _.Z("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.Z("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.Z(_.Tl,{data:function(){return q().radioButtons}},{radioButtonItemViewModel:function(Y){return _.Z(rg5,{data:Y.data,
onSelected:t,selectedKey:u,groupName:g})}})))},"gg");var wU9=_.ld(function(F){_.v_(function(){if(F.controlledMode()&&F.data().defaultSelected)_.mH(Error("Pj"));else{var g;!F.controlledMode()&&((g=F.selected)==null?0:g.call(F))&&_.mH(Error("Qj"))}});
var q=_.X(_.np(function(){if(!F.controlledMode())return F.data().defaultSelected})),t=q.next().value,u=q.next().value,J=function(){if(!F.controlledMode())return t();
var g;return(g=F.selected)==null?void 0:g.call(F)};
return _.Z("yt-checkbox-item-view-model",{class:_.Ec("ytCheckboxItemViewModelHost")},_.Z(_.uE,{data:function(){var g=F.data(),Y=J();return{title:g.text,subtitle:g.subtext,superlabel:g.superlabel,isSelected:!!Y,isDisabled:g.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!F.controlledMode()&&u(!t());var g,Y;(Y=F.onTap)==null||Y.call(F,!!J(),F.data(),(g=F.groupName)==null?void 0:g.call(F))}}))},"hg");var iWv=_.ld(function(F){var q=F.data;var t=F.controlledMode;var u=F.selectedKeys;var J=F.onItemTap;var g=F.groupName;var Y=function(){return(g==null?void 0:g())||q().key};
_.v_(function(){t()&&q().defaultSelectedKeys?_.mH(Error("Rj")):!t()&&(u==null?0:u())&&_.mH(Error("Sj"))});
F=_.X(_.np(function(){if(!t())return q().defaultSelectedKeys}));
var Q=F.next().value,e=F.next().value,r=function(N,w,k){N=[];!t()&&w.key&&(N=wcy(w.key,Q()||[]),e(N));J==null||J(w,N,k)};
return _.Z("yt-checkbox-group-view-model",{class:_.Ec("ytCheckboxGroupViewModelHost")},_.Z("fieldset",{class:_.Ec("ytCheckboxGroupViewModelFieldset")},_.Z(_.Tl,{data:function(){return q().checkboxes}},{checkboxItemViewModel:function(N){var w=N.data;
return _.Z(wU9,{data:w,controlledMode:!0,selected:function(){var k=t()?(u==null?void 0:u())||[]:Q()||[],z=w().key;return z?k.includes(z):!1},
onTap:r,groupName:Y})}})))},"ig");var iV=_.ld(function(F){var q=_.nH(iEy,_.Jv(function(){var Q;return(Q=F.data())==null?void 0:Q.noteFeedEntityKey},"")),t=_.nH(HIv,_.Jv(function(){var Q;
return(Q=F.data())==null?void 0:Q.userRatingEntityKey},"")),u=_.E("enable_user_rating_web"),J=function(){var Q,e,r;
return((Q=q())==null?0:Q.contributorNote)?(e=q())==null?void 0:e.contributorNote:(r=F.data())==null?void 0:r.existingNote},g=function(){var Q,e;
return!!t()&&!!kQC((Q=t())==null?void 0:Q.helpfulnessValue,(e=F.data())==null?void 0:e.noteData)};
if(u){var Y={};return _.Z("yt-note-view-model",{class:_.Ec("ytNoteViewModelHostUserRating",(Y.ytNoteViewModelHostUserRatingPublishedNote=function(){var Q,e,r,N;return((Q=F.data())==null?void 0:(e=Q.noteData)==null?void 0:e.isPublished)&&!((r=F.data())==null?0:(N=r.noteData)==null?0:N.isUserRatingForm)},Y))},_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.Z(_.R,{cond:function(){var Q,e;
return(Q=F.data())==null?void 0:(e=Q.noteData)==null?void 0:e.isPinned},
then:function(){return _.Z(_.Tq,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.Z(_.R,{cond:function(){var Q,e;return(Q=F.data())==null?void 0:(e=Q.noteData)==null?void 0:e.isPublished},
then:function(){return _.Z(_.Tq,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.Z(_.Tl,{data:function(){var Q;
return(Q=F.data())==null?void 0:Q.metadata}},{contentMetadataViewModel:_.DN}),_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var Q,e;
return(e=_.n((Q=F.data())==null?void 0:Q.metadata,_.E91))==null?void 0:e.delimiter}),_.Z(_.rv,{text:function(){var Q;
return(Q=J())==null?void 0:Q.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.Z(_.R,{cond:function(){var Q,e;return!((Q=F.data())==null?0:(e=Q.noteData)==null?0:e.isUserRatingForm)},
then:function(){return _.Z(_.Tl,{data:function(){var Q,e,r,N,w,k,z,T=!!((Q=F.data())==null?0:(e=Q.noteData)==null?0:e.isPinned);Q=g();e=(r=F.data())==null?void 0:r.noteData;r=(N=q())==null?void 0:(w=N.contributorNote)==null?void 0:w.deleteAction;N=(k=F.data())==null?void 0:k.overflowButtonNoteWithRatingOnTapOverride;k=(z=F.data())==null?void 0:z.overflowButton;return T?EEs(e,r):Q?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",
buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:N}}:k}},{buttonViewModel:function(Q){return _.Z(_.AB,{data:Q.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.Z("div",{class:"ytNoteViewModelNoteContent"},_.Z(_.rv,{text:function(){var Q;
return(Q=J())==null?void 0:Q.text}})),_.Z(_.R,{cond:function(){var Q,e,r,N;
return!((Q=F.data())==null?0:(e=Q.noteData)==null?0:e.isPinned)&&!((r=F.data())==null?0:(N=r.noteData)==null?0:N.isUserRatingForm)},
then:function(){return _.Z(_.R,{cond:g,then:function(){return _.Z("div",{class:"ytNoteViewModelUserRatingContainer"},_.Z(_.rv,{text:function(){var Q,e;return kQC((Q=t())==null?void 0:Q.helpfulnessValue,(e=F.data())==null?void 0:e.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.Z(_.Tl,{data:function(){var Q;return(Q=F.data())==null?void 0:Q.userRatingButton}},{buttonViewModel:function(Q){return _.Z(_.AB,{data:Q.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.Z(_.R,{cond:function(){var Q,e,r,N;
return!((Q=F.data())==null?0:(e=Q.noteData)==null?0:e.ignoreDivider)&&!((r=F.data())==null?0:(N=r.noteData)==null?0:N.isUserRatingForm)},
then:function(){return _.Z("div",{class:"ytNoteViewModelDivider"},_.Z(_.Tl,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(Q){return _.Z(_.pVd,{data:Q.data})}}))}}))}return _.Z("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.Z(_.R,{cond:function(){var Q,e;return(Q=F.data())==null?void 0:(e=Q.noteData)==null?void 0:e.isPinned},
then:function(){return _.Z(_.Tq,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.Z(_.R,{cond:function(){var Q,e;return(Q=F.data())==null?void 0:(e=Q.noteData)==null?void 0:e.isPublished},
then:function(){return _.Z(_.Tq,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.Z(_.R,{cond:function(){return u},
then:function(){return _.Z(_.Tl,{data:function(){var Q;return(Q=F.data())==null?void 0:Q.metadata}},{contentMetadataViewModel:function(Q){return _.Z(_.DN,{data:Q.data})}})}}),_.Z(_.rv,{text:function(){var Q,e;
return(Q=F.data())==null?void 0:(e=Q.noteData)==null?void 0:e.headerText}}),_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.Z(_.rv,{text:function(){var Q,e;
return(Q=F.data())==null?void 0:(e=Q.noteData)==null?void 0:e.delimiter}})),_.Z(_.rv,{text:function(){var Q,e;
return(Q=q())==null?void 0:(e=Q.contributorNote)==null?void 0:e.publishedTimeText}})),_.Z(_.Tl,{data:function(){var Q,e,r;
return EEs((Q=F.data())==null?void 0:Q.noteData,(e=q())==null?void 0:(r=e.contributorNote)==null?void 0:r.deleteAction)}},{buttonViewModel:function(Q){return _.Z(_.AB,{data:Q.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.Z("div",{class:"ytNoteViewModelNoteContent"},_.Z(_.rv,{text:function(){var Q,e;
return(Q=q())==null?void 0:(e=Q.contributorNote)==null?void 0:e.text}})))},"jg");
iV.idomCompat=!0;_.ei(_.ld(function(F){var q=_.nH(_.jx,_.Jv(function(){var v;return(v=F.data())==null?void 0:v.flowStateEntityKey},"")),t=_.X(_.np(function(){var v;
return(v=_.n(F.data().helpfulnessValue,_.dE))==null?void 0:v.defaultSelectedKey})),u=t.next().value,J=t.next().value;
t=_.X(_.np(function(){var v,H,d;return(d=_.n((v=_.n(F.data().helpfulnessValue,_.dE))==null?void 0:(H=v.radioButtons)==null?void 0:H.find(function(a){var S;return((S=_.n(a,$Eh))==null?void 0:S.key)===u()}),$Eh))==null?void 0:d.value}));
var g=t.next().value,Y=t.next().value,Q=function(v,H){J(H.key);Y(H.value)},e=function(){var v,H;
return((v=g())==null?void 0:v.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((H=g())==null?void 0:H.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},r=function(){var v,H;
return((v=g())==null?void 0:v.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((H=g())==null?void 0:H.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
t=_.X(_.np(function(){var v;return(v=_.n(F.data().helpfulReasons,mEC))==null?void 0:v.defaultSelectedKeys}));
var N=t.next().value,w=t.next().value,k=function(v){zTT(v.key,N,w)};
t=_.X(_.np(function(){var v;return(v=_.n(F.data().notHelpfulReasons,mEC))==null?void 0:v.defaultSelectedKeys}));
var z=t.next().value,T=t.next().value,P=function(v){zTT(v.key,z,T)};
return _.Z("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.Z(_.Tl,{data:function(){var v=_.n(q(),TBw);if(v){var H;var d={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:v==null?void 0:(H=v.note)==null?void 0:H.headerText}]}],delimiter:"\u2022"}},existingNote:v.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else d=void 0;return d}},{noteViewModel:function(v){return _.Z("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.Z(iV,{data:v.data}))}}),_.Z(_.Tl,{data:function(){var v;
return(v=F.data())==null?void 0:v.helpfulnessValue}},{radioButtonGroupViewModel:function(v){return _.Z("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.Z(_.NZ9,{data:v.data,
onSelected:Q,selectedKey:u}))}}),_.Z(_.R,{cond:e,
then:function(){return _.Z("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.Z("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.Z(_.rv,{text:function(){var v;return(v=F.data())==null?void 0:v.helpfulReasonQuestion}})),_.Z(_.Tl,{data:function(){var v;
return(v=F.data())==null?void 0:v.helpfulReasons}},{checkboxGroupViewModel:function(v){return _.Z(iWv,{data:v.data,
onItemTap:k,selectedKeys:N,controlledMode:!0})}}))}}),_.Z(_.R,{cond:r,
then:function(){return _.Z("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.Z("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.Z(_.rv,{text:function(){var v;return(v=F.data())==null?void 0:v.notHelpfulReasonQuestion}})),_.Z(_.Tl,{data:function(){var v;
return(v=F.data())==null?void 0:v.notHelpfulReasons}},{checkboxGroupViewModel:function(v){return _.Z(iWv,{data:v.data,
onItemTap:P,selectedKeys:z,controlledMode:!0})}}))}}),_.Z(_.R,{cond:function(){return!e()&&!r()},
then:function(){return _.Z(_.Tl,{data:function(){var v;return(v=F.data())==null?void 0:v.helpfulNoteFeatures}},{alertBannerViewModel:function(v){return _.Z("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.Z(_.wVf,{data:v.data}))}})}}))},"kg"),"yt-note-user-rating-view-model",{props:{data:_.NH}});_.ei(iV,"yt-note-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=_.nH(iEy,_.Jv(function(){var t;return(t=F.data())==null?void 0:t.noteFeedEntityKey},""));
return _.Z("yt-notes-wrapper-view-model",{class:_.Ec("ytNotesWrapperViewModelHost")},_.Z(_.R,{cond:function(){var t,u,J;return!((t=F.data())==null||!t.existingNotes)||!((u=F.data())==null||!u.currentNote)&&!((J=q())==null||!J.contributorNote)},
then:function(){return _.Z(_.ln,null,_.Z(_.Tl,{data:function(){var t,u,J,g;return((u=_.n((t=F.data())==null?void 0:t.currentNote,GAv))==null?0:(J=u.noteData)==null?0:J.isPublished)?(g=F.data())==null?void 0:g.currentNote:void 0}},{noteViewModel:function(t){return _.Z(iV,{data:t.data})}}),_.Z(_.Tl,{data:function(){var t;
return(t=F.data())==null?void 0:t.existingNotes}},{noteViewModel:function(t){var u=t.data;
return _.Z(_.R,{cond:function(){var J,g;return(J=u())==null?void 0:(g=J.noteData)==null?void 0:g.isPublished},
then:function(){return _.Z(iV,{data:u})}})}}),_.Z(_.Tl,{data:function(){var t,u,J,g;
return((u=_.n((t=F.data())==null?void 0:t.currentNote,GAv))==null?0:(J=u.noteData)==null?0:J.isPublished)?void 0:(g=F.data())==null?void 0:g.currentNote}},{noteViewModel:function(t){return _.Z(iV,{data:t.data})}}),_.Z(_.Tl,{data:function(){var t;
return(t=F.data())==null?void 0:t.existingNotes}},{noteViewModel:function(t){var u=t.data;
return _.Z(_.R,{cond:function(){var J,g;return!((J=u())==null?0:(g=J.noteData)==null?0:g.isPublished)},
then:function(){return _.Z(iV,{data:u})}})}}))},
else:function(){return _.Z(_.Tl,{data:function(){var t;return(t=F.data())==null?void 0:t.zeroStateData}},{contributorZeroStateViewModel:ef9})}}))},"lg"),"yt-notes-wrapper-view-model",{props:{data:_.NH}});var ky=_.ld(function(F){var q=_.sk(F,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),t=q.label,u=q.text,J=q.placeholder,g=q.hint;F=q.rows;var Y=q.overflowStyle,Q=q.outline,e=q.disabled,r=q.disableNewLines,N=q.characterLimit,w=q.validation,k=q.onInput,z=_.FG("textarea");q=_.X(_.np(function(){return u()}));
var T=q.next().value,P=q.next().value;q=_.X(_.N3(!1,void 0,"u9PDq"));var v=q.next().value,H=q.next().value,d=function(){H(!0)},a=function(){H(!1)};
_.v_(function(){var df=z.value,m$=Y(),gx=T();m$==="expand-vertically"&&gx&&oE9(df);z.value.addEventListener("focusin",d);z.value.addEventListener("focusout",a)});
_.vj(function(){z.value.removeEventListener("focusin",d);z.value.removeEventListener("focusout",a)});
var S=function(){var df;return(df=w())==null?void 0:df.validate(T())},K=function(){return N()&&!S()&&T().length>N().maxChars},h=function(){return!!S()||K()};
q=_.zq(function(df){if(!df.currentTarget)return!1;df=df.currentTarget;P(df.value);Y()==="expand-vertically"&&oE9(df);k==null||k(df.value);return!0});
var c=_.zq(function(df){r()&&df.key==="Enter"&&df.preventDefault();return!1}),rf=_.zq(function(){z.value.focus()}),Zv=function(){return J()||t()},kP={},n3={},o_={};
return _.Z("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.Z("div",{class:_.Ec("ytStandardsTextareaShapeTextareaContainer",(kP.ytStandardsTextareaShapeTextareaContainerOutline=Q,kP.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=e,kP.ytStandardsTextareaShapeTextareaContainerOutlineError=h,kP)),"on:click":rf},_.Z("label",{class:_.Ec("ytStandardsTextareaShapeLabel",(n3.ytStandardsTextareaShapeLabelFocused=v,n3.ytStandardsTextareaShapeLabelDisabled=e,n3.ytStandardsTextareaShapeLabelError=
function(){return h()&&!e()},n3.ytStandardsTextareaShapeLabelHidden=function(){return!v()&&!T()&&!!Zv()},n3))},t),_.Z("div",{class:_.Ec("ytStandardsTextareaShapePlaceholder",(o_.ytStandardsTextareaShapePlaceholderVisible=function(){return!v()&&!T()},o_)),
"aria-hidden":"true"},Zv),_.Z("textarea",{el:z,class:"ytStandardsTextareaShapeTextarea",rows:F,disabled:e,placeholder:Zv,"on:input":q,"on:keydown":c},T)),_.Z(_.R,{cond:function(){return g()&&!h()},
then:function(){var df={};return _.Z("div",{class:_.Ec("ytStandardsTextareaShapeHint",(df.ytStandardsTextareaShapeHintDisabled=e,df))},_.Z("div",{class:"ytStandardsTextareaShapeHintHintMessage"},g))}}),_.Z(_.R,{cond:S,
then:function(){return _.Z(kG3,{disabled:e},_.Z("div",{class:"ytStandardsTextareaShapeErrorMessage"},S))}}),_.Z(_.R,{cond:N,
then:function(df){return _.Z(_.R,{cond:K,then:function(){return _.Z(kG3,{disabled:e},_.Z("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return df().errorMessage}),_.Z("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return T().length+"/"+df().maxChars}))}})}}))},"mg");
ky.idomCompat={callbacks:{onInput:!0}};var kG3=_.ld(function(F){var q={};return _.Z("div",{class:_.Ec("ytStandardsTextareaShapeError",(q.ytStandardsTextareaShapeErrorDisabled=F.disabled,q)),role:"alert"},_.Z(_.Tq,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),F.children)},"ng");_.EFv=_.ld(function(F){var q=F.data;return _.Z("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.Z(ky,{text:F.text,label:function(){var t;return(t=q().contentProperties)==null?void 0:t.labelText},
placeholder:function(){var t;return(t=q().contentProperties)==null?void 0:t.placeholderText},
hint:function(){var t;return(t=q().contentProperties)==null?void 0:t.hintText},
outline:function(){var t;return!((t=q().displayProperties)==null?0:t.hideBorder)},
overflowStyle:function(){var t;return((t=q().displayProperties)==null?0:t.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:F.disabled,disableNewLines:function(){var t;return(t=q().displayProperties)==null?void 0:t.disableNewLines},
onInput:F.onInput,characterLimit:F.characterLimit,validation:F.validation,rows:function(){var t;return(t=q().displayProperties)==null?void 0:t.rows}}))},"og");_.zf9=_.ld(function(F){var q=F.data;return _.Z("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.Z(ky,{text:F.text,label:function(){var t;return(t=q().contentProperties)==null?void 0:t.labelText},
placeholder:function(){var t;return(t=q().contentProperties)==null?void 0:t.placeholderText},
hint:function(){var t;return(t=q().contentProperties)==null?void 0:t.hintText},
outline:function(){var t;return!((t=q().displayProperties)==null?0:t.hideBorder)},
overflowStyle:function(){var t;return((t=q().displayProperties)==null?0:t.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var t;return(t=q().displayProperties)==null?void 0:t.disableNewLines},
onInput:F.onInput,characterLimit:F.characterLimit,validation:F.validation,rows:function(){var t;return(t=q().displayProperties)==null?void 0:t.rows}}))},"pg");var oFs=_.ld(function(F){var q=_.X(_.np(function(){var Zv,kP;return((Zv=F.data().structuredContextNoteFormSchema)==null?0:(kP=Zv.initialValues)==null?0:kP.noteBody)?F.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),t=q.next().value,u=q.next().value;
q=_.X(_.np(function(){F.data();return!1}));
var J=q.next().value,g=q.next().value;q=_.X(_.np(function(){F.data();return!1}));
var Y=q.next().value,Q=q.next().value;q=_.X(_.np(function(){var Zv,kP;return((Zv=F.data().structuredContextNoteFormSchema)==null?0:(kP=Zv.initialValues)==null?0:kP.timestamp)?F.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var e=q.next().value,r=q.next().value;q=_.X(_.np(function(){F.data();return!1}));
var N=q.next().value,w=q.next().value;q=_.X(_.np(function(){var Zv,kP;return((Zv=F.data().structuredContextNoteFormSchema)==null?0:(kP=Zv.initialValues)==null?0:kP.sources)?[F.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var k=q.next().value,z=q.next().value;q=_.X(_.np(function(){F.data();return!1}));
var T=q.next().value,P=q.next().value;q=_.X(_.np(function(){return!1}));
var v=q.next().value,H=q.next().value;_.v_(function(){var Zv;_.mM9((Zv=F.data().structuredContextNoteFormSchema)==null?void 0:Zv.id,{isSubmitting:v,onSubmit:function(){H(!0);var kP=xhv(t(),e(),k(),F.data()),n3=_.sV().resolve(_.gN);kP&&n3&&n3.resolveCommand(kP,{commandController:{onSuccess:function(){H(!1)}}})},
isValid:function(){return J()&&!Y()&&!N()&&!T()}})});
var d=function(Zv){if(Zv!==void 0&&(u(Zv),!J()&&Zv.length>0&&g(!0),J())){var kP=TNy(F.data());if(kP){var n3=kP.minLength;kP=kP.maxLength;n3&&Zv.length<n3?Q(!0):kP&&Zv.length>kP?Q(!0):Q(!1)}}},a=function(Zv){if(Zv!==void 0){r(Zv);
if(Zv.length>0){var kP,n3,o_,df,m$=Dhw((kP=F.data())==null?void 0:(n3=kP.structuredContextNoteFormSchema)==null?void 0:(o_=n3.fieldSchemas)==null?void 0:(df=o_.timestamp)==null?void 0:df.validationSchema);if(m$&&(kP=m$.regex)&&!(new RegExp(kP)).test(Zv)){w(!0);return}}w(!1)}},S=function(Zv){if(Zv!==void 0){var kP=Zv.split(/[ \n]/).map(function(n3){return n3.trim()});
z(kP);if(Zv.length>0)for(Zv=_.X(kP),kP=Zv.next();!kP.done;kP=Zv.next())if(!PK7(kP.value)){P(!0);return}P(!1)}},K=function(){return{validate:function(Zv){if(J()){var kP=TNy(F.data());
if(kP){var n3=kP.minLength;kP=kP.translations;if(n3&&Zv.length<n3)return kP==null?void 0:kP.minLengthErrorMessage}}}}},h=function(){var Zv=TNy(F.data()),kP=Zv==null?void 0:Zv.maxLength,n3;
Zv=Zv==null?void 0:(n3=Zv.translations)==null?void 0:n3.maxLengthErrorMessage;if(kP&&Zv)return{maxChars:kP,errorMessage:Zv}},c=function(){return{validate:function(Zv){if(Zv){var kP,n3,o_,df,m$=Dhw((kP=F.data())==null?void 0:(n3=kP.structuredContextNoteFormSchema)==null?void 0:(o_=n3.fieldSchemas)==null?void 0:(df=o_.timestamp)==null?void 0:df.validationSchema);
if(m$&&(kP=m$.regex,m$=m$.translations,kP&&!(new RegExp(kP)).test(Zv)))return m$==null?void 0:m$.regexErrorMessage}}}},rf=function(){return{validate:function(Zv){if(Zv){var kP,n3,o_,df,m$=OEJ((kP=F.data())==null?void 0:(n3=kP.structuredContextNoteFormSchema)==null?void 0:(o_=n3.fieldSchemas)==null?void 0:(df=o_.sources)==null?void 0:df.validationSchema);
if(m$&&(kP=m$.translations,kP==null?0:kP.selectedErrorMessage))for(Zv=Zv.split(/[ \n]/).map(function(gx){return gx.trim()}),Zv=_.X(Zv),n3=Zv.next();!n3.done;n3=Zv.next())if(!PK7(n3.value))return Zv=void 0,(Zv=kP)==null?void 0:Zv.selectedErrorMessage}}}};
return _.Z("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.Z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Z(_.Tl,{data:function(){var Zv;return(Zv=F.data())==null?void 0:Zv.noteContents}},{textFormFieldViewModel:function(Zv){return _.Z(_.zf9,{data:Zv.data,
onInput:d,validation:K,characterLimit:h})},
textFieldViewModel:function(Zv){return _.Z(_.EFv,{data:Zv.data,onInput:d,validation:K,characterLimit:h})}})),_.Z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Z(_.Tl,{data:function(){var Zv;
return(Zv=F.data())==null?void 0:Zv.noteTimestamp}},{textFormFieldViewModel:function(Zv){return _.Z(_.zf9,{data:Zv.data,
onInput:a,validation:c})},
textFieldViewModel:function(Zv){return _.Z(_.EFv,{data:Zv.data,onInput:a,validation:c})}})),_.Z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Z(_.Tl,{data:function(){var Zv;
return(Zv=F.data())==null?void 0:Zv.noteSources}},{textFormFieldViewModel:function(Zv){return _.Z(_.zf9,{data:Zv.data,
onInput:S,validation:rf})},
textFieldViewModel:function(Zv){return _.Z(_.EFv,{data:Zv.data,onInput:S,validation:rf})}})))},"qg");
oFs.idomCompat=!0;_.ei(oFs,"yt-structured-context-note-view-model",{props:{data:_.NH}});var nFv=_.ld(function(F){var q=_.X(_.np(function(){var g;if((g=F.controlled)==null?0:g.call(F))return[];var Y;return(((Y=F.data())==null?void 0:Y.chips)||[]).map(function(Q){Q=_.n(Q,_.lv);if(Q==null?0:Q.selected)return AU7(Q.chipValue)}).filter(function(Q){return Q!==void 0})})),t=q.next().value,u=q.next().value,J=function(g){var Y=AU7(g.chipValue);
if(Y!==void 0){var Q;if((Q=F.controlled)==null?0:Q.call(F))return void F.controlled().onTap(Y);g=t().includes(Y)?[].concat(_.mZ(t().filter(function(r){return r!==Y}))):[].concat(_.mZ(t()),[Y]);
u(g);var e;if((e=F.uncontrolled)==null?0:e.call(F))F.uncontrolled().onUpdate(g)}};
return _.Z("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.Z(_.Gn,{each:function(){return F.data().chips||[]}},function(g){return _.Z("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.Z(_.XVw,{data:function(){return _.n(g,_.lv)},
selected:function(){var Y;if(Y=_.n(g,_.lv)){var Q=AU7(Y.chipValue);if(Q!==void 0){var e;Y=((e=F.controlled)==null?0:e.call(F))?F.controlled().selectedValues.includes(Q):t().includes(Q)}else Y=void 0}else Y=!1;return Y},
callback:J}))}))},"rg");var MMJ=_.ld(function(F){var q=F.data;var t=function(){var Q;return((Q=q())==null?void 0:Q.flowStateKey)||""},u=_.nH(_.jx,t),J=function(){var Q;
return(Q=_.n(u(),DEw))==null?void 0:Q.chips},g=function(Q){if(Q!==void 0){var e=J()||[];
e=e.find(function(r){return r===Q})?e.filter(function(r){return r!==Q}):[].concat(_.mZ(e),[Q]);
e=Object.assign({},u(),{feedbackFormFlowState:Object.assign({},_.n(u(),DEw),{chips:e})});_.ud(_.Gl("flowStateEntity",t(),e))}},Y=function(){var Q;
return _.n((Q=q())==null?void 0:Q.inputBox,WI9)};
F=_.ON(function(Q){var e=Y();e=!(e==null?0:e.maxChars)||Q.length<=e.maxChars;Q=Object.assign({},u(),{feedbackFormFlowState:Object.assign({},_.n(u(),DEw),{detail:Q}),abuseReportFlowState:Object.assign({},_.n(u(),CL),{navigationEnabled:e})});_.ud(_.Gl("flowStateEntity",t(),Q))},150);
return _.Z("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.Z("div",{class:"ytFeedbackFormViewModelChips"},_.Z(_.Tl,{data:function(){var Q;return(Q=q())==null?void 0:Q.chipSelection}},{chipSelectionFormFieldViewModel:function(Q){return _.Z(nFv,{data:Q.data,
controlled:function(){return{selectedValues:J()||[],onTap:g}}})}})),_.Z("div",{class:"ytFeedbackFormViewModelInputBox"},_.Z(ky,{text:function(){var Q;
return(Q=_.n(u(),DEw))==null?void 0:Q.detail},
placeholder:function(){var Q;return((Q=Y())==null?void 0:Q.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var Q=Y();if(Q&&Q.maxChars)return{maxChars:Q.maxChars,errorMessage:Q.maxCharsExceededErrorMessage||""}},
onInput:F})),_.Z("div",{class:"ytFeedbackFormViewModelFooterText"},_.Z(_.rv,{text:function(){return q().footerText}})))},"sg");
MMJ.idomCompat=!0;_.ei(MMJ,"yt-feedback-form-view-model",{props:{data:_.NH}});var TZT=_.ld(function(F){var q=F.data;var t=function(){return q().flowStateKey||""},u=_.nH(IA3,t),J=function(){return _.n(u(),CL)},g=function(){if(_.E("enable_gff_accessibility_fix")){var Y=!0,Q;
if((Q=J())==null?0:Q.navigationEnabled){var e;_.L9((e=J())==null?void 0:e.navigationCommand);Y=!1}Q=Object.assign({},u(),{abuseReportFlowState:Object.assign({},J(),{isReportFormDirty:Y})});_.ud(_.Gl("flowStateEntity",t(),Q))}else _.L9((Y=J())==null?void 0:Y.navigationCommand)};
return _.Z("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.Z("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.Z(_.Tl,{data:function(){return q().cancelButton}},{buttonViewModel:function(Y){return _.Z(_.AB,{data:Y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:g})}}),_.Z(_.Tl,{data:function(){var Y;
if(q().navButton){var Q=Object;var e=Q.assign,r=_.n(q().navButton,_.gX),N=((Y=J())==null?0:Y.navigationEnabled)||_.E("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",w,k;Y=_.n((w=J())==null?void 0:w.navigationCommand,_.Uk);w=(k=_.n(Y,_.KM))==null?void 0:k.url;Q={buttonViewModel:e.call(Q,{},r,{state:N,iconName:w?"OPEN_IN_NEW":""})}}else Q=void 0;return Q}},{buttonViewModel:function(Y){return _.Z(_.AB,{data:Y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:g})}})))},"tg");
TZT.idomCompat=!0;_.ei(TZT,"yt-report-form-bottom-bar-view-model",{props:{data:_.NH}});var GGw=_.ld(function(F){var q=F.nextStep;return _.Z("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.Z(_.Tq,{icon:function(){return q().iconName||""}})),_.Z("div",null,_.Z(_.rv,{text:function(){return q().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ug"),DLv=_.ld(function(F){var q=F.data;
var t,u=(t=_.sV().resolve(_.JU(_.qo)))==null?void 0:t(),J=_.nH(_.jx,function(){return q().flowStateKey||""});
return _.Z("yt-report-form-confirmation-page-view-model",{class:function(){var g;return((g=_.n(J(),CL))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.Z("div",{class:function(){var g;
return((g=_.n(J(),CL))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.Z(_.sc,{data:function(){return u&&q().imageDark?q().imageDark:q().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.Z("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return q().confirmationHeader}),_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.Z(_.rv,{text:function(){return q().confirmationText}})),_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.Z(_.rv,{text:function(){return q().lawEnforcementText}})),
_.Z("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return q().whatToExpectHeader}),_.Z(_.R,{cond:function(){return q().nextSteps},
then:function(g){return _.Z("div",null,_.Z(_.Gn,{each:g},function(Y){return _.Z(GGw,{nextStep:Y})}))}}),_.Z(_.R,{cond:function(){return q().legalReportText},
then:function(g){return _.Z("div",null,_.Z(_.rv,{text:g,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"vg");
DLv.idomCompat=!0;_.ei(DLv,"yt-report-form-confirmation-page-view-model",{props:{data:_.NH}});var W0Q=_.ld(function(F){var q=F.data;var t=function(){var g;return((g=_.n(q().inputBox,WI9))==null?void 0:g.maxChars)||500},u=function(){return q().flowStateKey||""},J=_.nH(_.jx,u);
F=_.ON(function(g){g=Object.assign({},J(),{flowFormState:{isValid:g.length<=t()},abuseReportFlowState:{userComments:g,navigationEnabled:!(g.length>t()),isReportFormDirty:!0}});_.tv().dispatch(_.I4("flowStateEntity",u(),g))},150);
_.v_(function(){var g=Object.assign({},J(),{flowFormState:{isValid:!0}});_.tv().dispatch(_.I4("flowStateEntity",u(),g))});
return _.Z("yt-report-form-details-page-view-model",{class:function(){var g;return((g=_.n(J(),CL))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.Z("h1",{class:function(){var g;
return((g=_.n(J(),CL))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return q().detailsPageHeader}),_.Z("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.Z(_.rv,{text:function(){return q().bodyText}})),_.Z("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.Z(ky,{label:function(){var g;
return((g=_.n(q().inputBox,WI9))==null?void 0:g.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var g;return{errorMessage:((g=_.n(q().inputBox,WI9))==null?void 0:g.maxCharsExceededErrorMessage)||"",maxChars:t()}},
onInput:F})))},"wg");
W0Q.idomCompat=!0;_.ei(W0Q,"yt-report-form-details-page-view-model",{props:{data:_.NH}});var OWh=_.ld(function(F){var q=F.data;var t=_.qL("div"),u=function(){return q().flowStateKey||""},J=_.nH(_.jx,u),g=function(){return _.n(J(),CL)};
_.AO(function(){var Y,Q;if(((Y=g())==null?0:Y.isReportFormDirty)&&((Q=g())==null||!Q.navigationEnabled)&&_.E("enable_gff_accessibility_fix")){var e;if(((e=g())==null?void 0:e.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var r;(r=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||r.scrollIntoView()}else{var N;(N=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||N.scrollIntoView()}}},"nktJfe");
return _.Z("yt-report-form-reason-select-page-view-model",{class:function(){var Y;return((Y=g())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.Z("h1",{class:function(){var Y;
return((Y=g())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return q().pageHeader}),_.Z("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.Z(_.rv,{text:function(){return q().bodyText}})),_.Z("div",{class:function(){var Y;
return((Y=g())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.Z(_.R,{cond:function(){var Y,Q;
return((Y=g())==null?void 0:Y.isReportFormDirty)&&!((Q=g())==null?0:Q.navigationEnabled)&&_.E("enable_gff_accessibility_fix")},
then:function(){return _.Z("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:t},_.Z(_.Tq,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.Z("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return q().emptyReasonSelectErrorMessage}))}}),_.Z(_.NZ9,{data:function(){return _.n(q().radioButtonGroup,_.dE)},
onSelected:function(Y,Q){Y=Object.assign({},J(),{abuseReportFlowState:Object.assign({},g(),{reasonKey:Q.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:Q.command})});_.ud(_.Gl("flowStateEntity",u(),Y))},
selectedKey:function(){var Y;return(Y=g())==null?void 0:Y.reasonKey},
groupName:"report-form-reason-select-page"})))},"xg");
OWh.idomCompat=!0;_.ei(OWh,"yt-report-form-reason-select-page-view-model",{props:{data:_.NH}});var PRv=_.ld(function(F){var q=F.data;var t,u=(t=_.sV().resolve(_.JU(_.qo)))==null?void 0:t();return _.Z("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.Z("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.Z(_.sc,{data:function(){return u&&q().imageDark?q().imageDark:q().image},
alt:""})),_.Z("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.Z("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return q().header}),_.Z(_.rv,{text:function(){return q().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"yg");
PRv.idomCompat=!0;_.ei(PRv,"yt-report-form-sign-in-page-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=F.data;var t=_.dC(_.vE3),u=function(){return q().titleSuperscript},J=function(){return q().answersShelf},g=function(){return q().videoShelf},Y=function(){var h;
return(h=q().textInputPlaceholder)==null?void 0:h.content},Q=function(){return q().showOpenTextInput&&!_.E("web_hide_explore_hub_until_user_navigates_back_to_home")},e=function(){var h;
return(h=q().textInputValue)==null?void 0:h.content},r=function(){return q().isMultiTurnFlow?q().resetButtonViewModel:void 0},N=!1;
F=_.X(_.N3(!1,void 0,"rWtIn"));var w=F.next().value,k=F.next().value;F=_.X(_.N3("",void 0,"Vt3VX"));var z=F.next().value,T=F.next().value,P=function(){return{state:w()?"active":"disabled"}};
_.AN(function(){if(Q()){e()&&T(e());var h;if(!r()&&((h=t())==null?0:h.stepStates)){var c;h=Object.keys((c=t())==null?void 0:c.stepStates);c=h[h.length-1];var rf,Zv;(c=(rf=t().stepStates[c])==null?void 0:(Zv=rf.userQuery)==null?void 0:Zv.userQuery)&&T(c)}}});
var v=function(h){var c=q().onUpdateText;c&&_.L9(c,{form:{userQuery:h}});T(h)},H=_.ON(function(h){v(h.target.value.trim())},150),d=_.zq(function(h){var c;
k(!((c=h.target.value)==null||!c.trim())||N);H(h);return!1}),a=_.zq(function(h){if(h.key==="Enter"&&w()){v(h.target.value.trim());
h=void 0;var c=_.n(q().nextButtonViewModel,_.gX),rf,Zv;if(c==null?0:(rf=c.loggingDirectives)==null?0:(Zv=rf.clientVeSpec)==null?0:Zv.uiType){var kP,n3;h=_.r0((kP=c.loggingDirectives)==null?void 0:(n3=kP.clientVeSpec)==null?void 0:n3.uiType)}(rf=q().onNextStepCommand)&&_.L9(rf,{forceClickLogging:!0,clickedVisualElement:h})}return!1}),S=function(h,c){N=c;
k(c);if(q().isMultiTurnFlow&&c){var rf;v((rf=h==null?void 0:h.text)!=null?rf:"")}if(_.E("web_hide_explore_hub_until_user_navigates_back_to_home")){var Zv,kP,n3;(n3=(kP=(Zv=K.value)==null?void 0:Zv.closest("ytd-flow-step-renderer"))==null?void 0:kP.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||n3.click()}},K=_.FG("yt-talk-to-recs-view-model");
F={};return _.Z("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:K},_.Z("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.Z(_.Tl,{data:function(){return q().topCornerButton}},{buttonViewModel:_.AB})),_.Z("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.Z("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.Z(_.rv,{text:function(){return q().title}}),_.Z(_.R,{cond:u,
then:function(){return _.Z("sup",{class:"ytwTalkToRecsSuperScript"},_.Z(_.rv,{text:u}))}})),_.Z("div",{class:"ytwTalkToRecsSubtitle"},_.Z(_.rv,{text:function(){return q().subtitle}})),_.Z("div",{class:"ytwTalkToRecsResultsShelf"},_.Z(_.R,{cond:J,
then:function(){return _.Z(_.Tl,{data:J},{chipsShelfViewModel:function(h){return _.Z("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.Z(_.F_,{data:h.data,callback:S,selectionBehavior:1}))}})}}),_.Z(_.R,{cond:g,
then:function(){return _.Z(_.Tl,{data:g},{horizontalShelfViewModel:function(h){return _.Z("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.Z(_.sA,{data:h.data,includeMargin:!0,thumbnailAspectRatio:0}))}})}})),_.Z("div",{class:_.Ec("ytwTalkToRecsRefinementContainer",(F.ytwTalkToRecsBottomMargin=function(){return q().isMultiTurnFlow},F))},_.Z(_.R,{cond:Q,
then:function(){return _.Z("div",{class:"ytwTalkToRecsUserInputBox"},_.Z("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:Y,value:z,"on:input":d,"on:keyup":a,maxlength:200}))}}),_.Z(_.Tl,{data:function(){return q().isMultiTurnFlow?q().nextButtonViewModel:void 0}},{buttonViewModel:function(h){return _.Z("div",{class:"ytwTalkToRecsFlowControlButtons"},_.Z(_.AB,{data:h.data,
buttonOverrides:P}))}}),_.Z(_.Tl,{data:r},{buttonViewModel:function(h){return _.Z("div",{class:"ytwTalkToRecsFlowControlButtons"},_.Z(_.AB,{data:h.data,
onClick:function(){var c=_.n(q().resetButtonViewModel,_.gX);v(z());(c=c==null?void 0:c.onTap)&&_.L9(c)}}))}}))))},"zg"),"yt-talk-to-recs-view-model",{props:{data:_.NH}});var I05={sources:[{clientResource:{imageName:"CHECK"}}]};_.xLh=_.ld(function(F){var q=_.FG("div");F=_.sk(F,{error:void 0});var t=F.data,u=F.error,J=F.onSelected;F=_.X(_.np(function(){return $h3(t())}));
var g=F.next().value,Y=F.next().value;dhs(t,function(k){Y(k);var z,T,P=mhC((z=t().options)==null?void 0:(T=z[k])==null?void 0:T.value,t().type);J==null||J(P);q.value.focus()});
F=_.zq(function(){if(!t().disabled){var k=t(),z=g(),T=q.value;k.options&&(k=HET(k.options,z,k.label),_.sV().resolve(_.ap).openSheet({viewModel:k},T))}});
var Q=_.cIC(),e=function(){return!!u()},r=function(){return!!t().disabled},N={},w={};
return _.Z("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.Z("div",{class:_.Ec("ytDropdownViewModelDropdownContainer",(N.ytDropdownViewModelDropdownContainerErrorBorder=e,N.ytDropdownViewModelDropdownContainerDisabled=r,N)),"on:click":F,el:q,role:"combobox",tabindex:0,"on:keydown":Q,"aria-invalid":e,"aria-disabled":r,"aria-describedby":function(){return e()?"dropdown-view-model-error":void 0}},_.Z("div",{class:"ytDropdownViewModelText"},bEQ(t,e,g),yUv(t,g)),_.Z("div",{class:_.Ec("ytDropdownViewModelChevronDown",
(w.ytDropdownViewModelChevronDownDisabled=r,w))},_.Z(_.Tq,{icon:"CHEVRON_DOWN"}))),CK5(t,u))},"Ag");_.ei(_.ld(function(F){var q=F.data;var t=function(J){var g=UhT(q());g.videoMetadata||(g.videoMetadata={});g.videoMetadata.sponsorshipsMetadata||(g.videoMetadata.sponsorshipsMetadata={});g.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(J)},u=function(J){var g=UhT(q());
g.scheduledRedirectMetadata||(g.scheduledRedirectMetadata={});g.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(J)};
return _.Z("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.Z("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.Z("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.Z(_.rv,{text:function(){return q().title}}),_.Z(_.Tq,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.Z(_.rv,{text:function(){return q().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.Z(_.Tl,{data:function(){return q().tierChoices}},{dropdownViewModel:function(J){return _.Z("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.Z(_.xLh,{data:J.data,
onSelected:t}))}}),_.Z(_.Tl,{data:function(){return q().startTimeChoices}},{dropdownViewModel:function(J){return _.Z("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.Z(_.xLh,{data:J.data,
onSelected:u}))}}),_.Z(_.rv,{text:function(){return q().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.Z("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.Z(_.Tl,{data:function(){return q().scheduleButton}},{panelFooterViewModel:_.wG})))},"Bg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=F.data;F=F.className===void 0?"":F.className;var t=_.nH(IA3,function(){return q().flowStateEntityKey||""}),u={};
u=_.Ec("ytFlowBottomBarViewModelFlowBottomBarButtons",(u.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},u));
var J={},g=_.Ec("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",u,(J.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},J.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},J));
J={};var Y=_.Ec("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",u,(J.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},J.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},J));
u={};u=_.Ec("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(u.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},u.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},u.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
u));
F=_.Ec("ytFlowBottomBarViewModelHost",F);return _.Z("yt-flow-bottom-bar-view-model",{class:F},_.Z(_.R,{cond:function(){var Q;return(Q=q())==null?void 0:Q.textSection},
then:function(Q){return _.Z("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.Z(_.rv,{text:Q}))}}),_.Z("div",{class:u},_.Z(_.Tl,{data:function(){return q().secondaryButton}},{buttonViewModel:function(Q){return _.Z(_.AB,{data:Q.data,
className:Y})}}),_.Z(_.Tl,{data:function(){return q().primaryButton}},{buttonViewModel:function(Q){return _.Z(_.AB,{data:Q.data,
className:g,buttonOverrides:function(){var e;return{disabled:!((e=t())==null||!e.primaryButtonDisabled)}}})}})))},"Cg"),"yt-flow-bottom-bar-view-model",{props:{data:_.NH,
className:_.pp}});var Agy="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),E1=function(){var F=_.x.apply(this,arguments)||this;F.enableScrollingFix=!0;F.bottomBar=!1;F.hideBottomBar=!1;F.fitContent=!1;return F};
_.M(E1,_.x);_.l=E1.prototype;_.l.ready=function(){_.E("enable_pdp_icon_prefetch")&&_.M1v(_.sV().resolve(_.UZ),0,Agy)};
_.l.focus=function(F){this.topBar?_.j1(this.topBar,F):this.paperDialog.focus(F)};
_.l.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19069_scroller&&(this.JSC$19069_scroller.dialogElement=this.paperDialog,this.JSC$19069_scroller.attached&&typeof this.JSC$19069_scroller.attached==="function"&&this.JSC$19069_scroller.attached())};
_.l.onDataChanged=function(){var F;this.fitContent=!((F=this.data)==null||!F.fitContent);var q;this.bottomBar=!((q=this.data)==null||!q.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.l.onProgressChanged=function(){var F,q,t=((q=(F=this.data)==null?void 0:F.progress)!=null?q:0)*100;this.progressElement.style.width=t+"%"};
_.l.isProgressHidden=function(){var F;return!((F=this.data)==null?0:F.progress)};
_.l.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(F){return _.E("enable_wiz_next_lp2_msof")&&F&&!F.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.JJ.Object.defineProperties(E1.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var F;return _.E("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.n((F=this.data)==null?void 0:F.content,vw9)}}});
E1.prototype.onProgressChanged=E1.prototype.onProgressChanged;E1.prototype.onDataChanged=E1.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],E1.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],E1.prototype,"enableScrollingFix",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],E1.prototype,"bottomBar",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],E1.prototype,"hideBottomBar",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],E1.prototype,"containsExploreHub",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],E1.prototype,"fitContent",void 0);_.C([_.Ms("#progress"),_.V("design:type",HTMLElement)],E1.prototype,"progressElement",void 0);
_.C([_.Ms("#scroller"),_.V("design:type",Object)],E1.prototype,"JSC$19069_scroller",void 0);_.C([_.Ms("ytd-flow-top-bar-renderer"),_.V("design:type",HTMLElement)],E1.prototype,"topBar",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E1.prototype,"onDataChanged",null);_.C([_.za("data.progress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E1.prototype,"onProgressChanged",null);
_.C([_.m({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],E1);
_.b(E1,"ytd-flow-step-renderer",function(){if(p2T!==void 0)return p2T;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return p2T=F},{mode:1});var vF9=function(F){this.resolveCommand=F;this.steps={}},IS7=function(F,q){q=_.X(q||[]);
for(var t=q.next();!t.done;t=q.next()){t=t.value;var u=Object.values(t)[0],J=void 0;if((J=u)==null?0:J.stepId)F.steps[u.stepId]=t}},$Ly=function(F,q){var t,u,J,g,Y;
return _.p(function(Q){if((t=F.state)==null||!t.currentStepId)return Q.return(void 0);u=HWh(F);if(!u)return Q.return(mL7(F));if(J=_.n(u,_.ADy)){var e;((e=J.screenLoggingData)==null?0:e.screenVeType)&&_.OX(_.DP(),J.screenLoggingData.screenVeType);((g=J)==null?0:g.onStepStartCommand)&&F.resolveCommand((Y=J)==null?void 0:Y.onStepStartCommand,{})}if(J&&q){e=J;var r,N,w,k;((r=q.flowLoggingData)==null?0:r.eventNamespace)&&((N=e.flowEventData)==null?0:N.eventType)&&((w=e.flowEventData)==null?0:w.eventMetadata)&&
((k=q.flowLoggingData)==null?0:k.flowType)&&(r=_.kh(q.flowLoggingData.eventNamespace,e.flowEventData.eventType,e.flowEventData.eventMetadata),_.Ey(_.zr(),r,q.flowLoggingData.flowType));q.steps&&!q.steps.includes(u)&&q.steps.push(u)}return Q.return(u)})};
vF9.prototype.back=function(){var F;(F=this.state)!=null&&F.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
vF9.prototype.handleUpdateFlowCommand=function(F){F.steps&&IS7(this,F.steps);F.entityUpdateCommand&&this.resolveCommand(F.entityUpdateCommand,{});F.flowContinuationCommand&&(F=F.flowContinuationCommand)&&(this.getFlowContinuationCommand=F);this.awaitFlowContinuation&&(this.awaitFlowContinuation(HWh(this)),this.awaitFlowContinuation=void 0)};
vF9.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var mL7=function(F){return _.p(function(q){return F.getFlowContinuationCommand?q.return(new Promise(function(t){F.awaitFlowContinuation=t;F.getFlowContinuationCommand&&F.resolveCommand(F.getFlowContinuationCommand,{flow_state:F.state})})):q.return(Promise.resolve(void 0))})},HWh=function(F){var q;
if((q=F.state)!=null&&q.currentStepId)return F.steps[F.state.currentStepId]};var zZ=function(){var F=_.x.apply(this,arguments)||this;F.flowState=new vF9(function(q,t){t=t===void 0?{}:t;_.oc.instance.resolveCommand(q,{form:{form:t,element:F.hostElement}})});
F.initialState=!0;F.isLoading=!1;F.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};F.containsTalkToRecs=!1;return F};
_.M(zZ,_.x);_.l=zZ.prototype;_.l.onPopupClosed=function(F){F&&this.hostElement!==F.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.l.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"}}}};
_.l.focus=function(F){var q=this;_.f1(function(){var t=_.ep(q.hostElement).querySelector("ytd-flow-step-renderer");(t==null?0:t.topBar)?t.focus(F):q.topBar&&_.j1(q.topBar,F)},1)};
_.l.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.l.computeTopBarHidden=function(F){var q;return!((q=_.n(F,_.ADy))==null||!q.topBarOverride)};
_.l.dataChanged=function(){var F=this,q,t;return _.p(function(u){if(u.nextAddress==1){((q=F.data)==null?0:q.steps)&&IS7(F.flowState,F.data.steps);if((t=F.data)==null?0:t.flowContinuationCommand){var J=F.flowState,g=F.data.flowContinuationCommand;g&&(J.getFlowContinuationCommand=g)}return u.yield($Ly(F.flowState,F.data),2)}F.currentFlowStep=u.yieldResult;_.WA(u)})};
_.l.flowChanged=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1){if(!F.flow)return t.return();F.flowState.state=F.flow;F.isLoading=!0;return t.yield($Ly(F.flowState,F.data),2)}q=t.yieldResult;if(!q||F.flow.isLoading)return t.return();F.currentFlowStep=q;F.initialState=!1;F.isLoading=!1;F.autofocusAndRefit();F.updateContainsTalkToRecs();_.WA(t)})};
_.l.updateContainsTalkToRecs=function(){var F,q=(F=_.n(this.currentFlowStep,_.ADy))==null?void 0:F.content;this.containsTalkToRecs=!!q&&!!_.n(q,vw9)};
_.l.autofocusAndRefit=function(){var F=this,q=_.sV().resolve(_.JU(_.GD)),t=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),u=document.querySelector("yt-report-form-confirmation-page-view-model"),J=document.querySelector("yt-report-form-details-page-view-model"),g=document.querySelector("yt-report-form-reason-select-page-view-model"),Y=document.querySelector("yt-contributor-zero-state-view-model"),
Q=document.querySelector("yt-structured-context-note-view-model"),e=document.querySelector("yt-note-view-model");(!t&&q&&q.isKeyBoardInUse()||u||!t&&J||!t&&g||Y||Q||e)&&_.ct(this.hostElement);_.tJ(this,function(){_.Q0(F.hostElement,"yt-refit")})};
_.l.handleUpdateFlowCommand=function(F){this.data&&(F=_.n(F,xEC),F.targetId===this.data.targetId&&(F.flowContinuationCommand&&(this.data.flowContinuationCommand=F.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(F),this.autofocusAndRefit()))};
_.l.handleFlowNextStepCommand=function(F){this.data&&this.flow&&this.flow.key&&(F=_.n(F,OtD),F.targetId===this.data.targetId&&(F=F.stepId||"",this.ytdReduxBehavior.dispatch(_.I4("flowStateEntity",this.flow.key,{currentStepId:F,stepIdStack:(this.flow.stepIdStack||[]).concat(F)}))))};
_.l.handleFlowPrevStepCommand=function(F){if(this.data&&this.flow&&this.flow.key&&(F=_.n(F,Po3),F.targetId===this.data.targetId)){var q=[].concat(_.mZ(this.flow.stepIdStack||[]));q.length>1?(q.pop(),this.ytdReduxBehavior.dispatch(_.I4("flowStateEntity",this.flow.key,{currentStepId:q[q.length-1],stepIdStack:q}))):F.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(F.onFirstStepCommand)}};
_.l.handleYpcCancelRecurrenceCommand=function(F){if(this.data&&this.flow&&this.flow.key&&(F=_.n(F,btv),F.targetId===this.data.targetId&&F.endpointCommand)){var q=_.n(this.flow,yDh);q&&_.n(F.endpointCommand,_.Ntd)&&(_.n(F.endpointCommand,_.Ntd).feedbackData=q.surveyFeedback);this.ytComponentBehavior.resolveCommand(F.endpointCommand)}};
_.l.handlePartialUpdateFlowStateEntity=function(F){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.I4("flowStateEntity",this.flow.key,F,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
zZ.prototype.flowChanged=zZ.prototype.flowChanged;zZ.prototype.dataChanged=zZ.prototype.dataChanged;zZ.prototype.onPopupClosed=zZ.prototype.onPopupClosed;_.C([_.D(_.s9),_.V("design:type",Object)],zZ.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],zZ.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],zZ.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zZ.prototype,"initialState",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zZ.prototype,"isLoading",void 0);_.C([_.O(),_.V("design:type",Object)],zZ.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],zZ.prototype,"currentFlowStep",void 0);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],zZ.prototype,"onPopupClosed",null);_.C([_.O({selectorArgs:["data.flowStateEntityKey"],selector:IA3}),_.V("design:type",Object)],zZ.prototype,"flow",void 0);_.C([_.Ms("ytd-flow-top-bar-renderer"),_.V("design:type",HTMLElement)],zZ.prototype,"topBar",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],zZ.prototype,"dataChanged",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zZ.prototype,"containsTalkToRecs",void 0);_.C([_.Wh("flow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],zZ.prototype,"flowChanged",null);_.C([_.m({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],zZ);
_.bWs=_.rc()(zZ,"ytd-flow-root-renderer",function(){if(YDs!==void 0)return YDs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return YDs=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var ygC;var bH=null;_.ei(_.ld(function(F){return _.Z("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.Z("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.Z(_.rv,{text:function(){return F.data().text}}),_.Z("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Dg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.NH}});var CR9=_.ld(function(F){var q=F.playerControlsProps;var t=F.isShortsPage;return _.Z("yt-bigboard",null,_.Z(_.R,{cond:function(){return q().isDragging},
then:function(){return _.Z("div",{class:"ytBigboardStoryboardHost"},_.Z(_.EWs,{progressBarProps:q,isShortsPage:t}))}}))},"Eg");
CR9.idomCompat=!0;_.oG={ACCOUNT_LABEL:y$("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:y$("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:y$("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:y$("AD_BADGE_HINT"),AD_BADGE_TEXT:y$("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:y$("ALL_CHANNELS_LABEL"),AMBIENT_MODE:y$("AMBIENT_MODE"),AMBIENT_MODE_OFF:y$("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:y$("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:y$("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:y$("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:y$("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:y$("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:y$("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:y$("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:y$("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:y$("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:y$("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:y$("AUTO_ZOOM","Auto zoom"),BACK:y$("BACK"),CANCEL:y$("CANCEL"),CHANNEL_SWITCHER_LABEL:y$("CHANNEL_SWITCHER_LABEL"),CLOSE:y$("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:y$("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:y$("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:y$("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:y$("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:y$("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:y$("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:y$("COMMENT_MODAL_CONTENT"),CONFIRM_OK:y$("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:y$("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:y$("COPIED_TO_CLIPBOARD"),COPY:y$("COPY"),COPY_DEBUG_INFO:y$("COPY_DEBUG_INFO"),COPY_EMBED_CODE:y$("COPY_EMBED_CODE"),
COPY_LINK_LABEL:y$("COPY_LINK_LABEL"),COPY_VIDEO_URL:y$("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:y$("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:y$("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:y$("DELETE_FROM_DOWNLOADS"),DIALOG:y$("DIALOG"),DONE:y$("DONE"),DOWNLOAD:y$("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:y$("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:y$("FLAG_CONFIRM"),FLAG_CONTENT:y$("FLAG_CONTENT"),FLAG_LABEL:y$("FLAG_LABEL"),FLAG_TITLE:y$("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:y$("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:y$("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:y$("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:y$("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:y$("HIDE_SEARCH_FILTERS_LABEL"),HOME:y$("HOME","Home"),INVALID_RESPONSE_RECEIVED:y$("INVALID_RESPONSE_RECEIVED"),LIBRARY:y$("LIBRARY","Library"),LISTENING:y$("LISTENING"),LOADING:y$("LOADING"),LONG_PRESS_MIC_TO_SPEAK:y$("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:y$("LOOP"),MENU_DESKTOP:y$("MENU_DESKTOP"),
MENU_EXIT:y$("MENU_EXIT"),MENU_FEEDBACK:y$("MENU_FEEDBACK"),MENU_HELP:y$("MENU_HELP"),MENU_IMPRESSUM:y$("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:y$("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:y$("MENU_SETTINGS"),MENU_SIGN_IN:y$("MENU_SIGN_IN"),MENU_TITLE:y$("MENU_TITLE"),MENU_YOUR_DATA:y$("MENU_YOUR_DATA"),MORE_INFO:y$("MORE_INFO"),MORE_OPTIONS:y$("MORE_OPTIONS"),MUTE_VOLUME:y$("MUTE_VOLUME"),NEW_PLAYLIST:y$("NEW_PLAYLIST"),NEXT_VIDEO:y$("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:y$("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:y$("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:y$("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:y$("NOT_FOUND_TITLE"),NO_DOWNLOADS:y$("NO_DOWNLOADS"),NO_MIC_INPUT:y$("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:y$("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:y$("OOPS_MESSAGE"),OPEN_APP:y$("OPEN_APP"),OPEN_YOUTUBE:y$("OPEN_YOUTUBE"),PAUSE:y$("PAUSE"),PLAY:y$("PLAY"),PLAYER_CAPTION:y$("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:y$("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:y$("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:y$("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:y$("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:y$("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:y$("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:y$("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:y$("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:y$("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:y$("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:y$("PLAYER_MINIMIZE"),PLAYER_NEXT:y$("PLAYER_NEXT"),PLAYER_PAUSE:y$("PLAYER_PAUSE"),PLAYER_PLAY:y$("PLAYER_PLAY"),
PLAYER_PREVIOUS:y$("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:y$("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:y$("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:y$("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:y$("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:y$("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:y$("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:y$("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:y$("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:y$("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:y$("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:y$("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:y$("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:y$("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:y$("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:y$("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:y$("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:y$("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:y$("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:y$("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:y$("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:y$("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:y$("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:y$("PLAY_ALL"),PLEASE_FIX_ERRORS:y$("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:y$("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:y$("PREVIOUS_VIDEO"),PRIVACY_POLICY:y$("PRIVACY_POLICY"),RELOAD:y$("RELOAD"),REQUIRED_LABEL:y$("REQUIRED_LABEL"),SAVE_PLAYLIST:y$("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:y$("SCRUB_SLIDE_USER_EDU"),SEARCH:y$("SEARCH","Search"),
SEARCH_APPEND_LABEL:y$("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:y$("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:y$("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:y$("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:y$("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:y$("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:y$("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:y$("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:y$("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:y$("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:y$("SEEK_SLIDER"),SETTINGS_LABEL:y$("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:y$("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:y$("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:y$("SHOW_LESS"),SHOW_MORE:y$("SHOW_MORE"),SHOW_PLAYER_CONTROLS:y$("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:y$("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:y$("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:y$("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:y$("SIGN_IN_ON_WEB"),STABLE_VOLUME:y$("STABLE_VOLUME"),STABLE_VOLUME_OFF:y$("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:y$("STABLE_VOLUME_ON"),STATS_FOR_NERDS:y$("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:y$("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:y$("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:y$("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:y$("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:y$("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:y$("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:y$("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:y$("TIMESTAMP_SECONDS"),TOGGLE_OFF:y$("TOGGLE_OFF"),TOGGLE_ON:y$("TOGGLE_ON"),TRENDING:y$("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:y$("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:y$("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:y$("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:y$("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:y$("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:y$("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:y$("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:y$("VIDEO_LINK_LABEL")};var dL9=_.ld(function(F){var q=F.playerApi;F=_.FG("button",function(u){_.Z3(u,36843)});
var t=y$("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.Z("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.Z("button",{el:F,class:"ytPlayerControlsJumpForwardButtonButton",title:t,"aria-label":t,"on:click":_.zq(function(){_.R6(36843);q&&q().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.Z("span",null,_.Z(_.Tq,{icon:"FAST_FORWARD"}))))},"Fg");var VMw=_.ld(function(F){var q=F.appApi;F=_.FG("button",function(u){_.Z3(u,62946)});
var t=y$("OPEN_IN_MINIPLAYER");return _.Z("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.Z("button",{el:F,class:"ytMiniplayerButtonButton",title:t,"aria-label":t,"on:click":_.zq(function(){_.R6(62946);var u,J;(J=(u=q()).openInMiniplayer)==null||J.call(u);return!1})},_.Z(_.Tq,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Gg");var UL7=_.ld(function(F){var q=F.playerApi;F=_.FG("button",function(g){_.Z3(g,142812)});
var t=_.X(_.N3(!1,void 0,"I3VCyb")),u=t.next().value,J=t.next().value;t=function(){return y$("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(u()?1:2)})};
return _.Z("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.Z("button",{el:F,class:"ytPlaybackSpeedButtonButton",title:t,"aria-label":t,"on:click":_.zq(function(){_.R6(142812);if(q){var g=q(),Y=u();g.setPlaybackRate(Y?1:2);J(!u())}return!1})},_.Z("span",null,_.Z(_.Tq,{icon:function(){return u()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Hg");var STJ=_.ld(function(F){var q=F.title;var t=F.ariaLabel;var u=F.icon;var J=F.command;var g=F.veType;F=_.FG("button",function(Y){g&&_.Z3(Y,g())});
return _.Z("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.Z("button",{el:F,class:"ytdThumbnailOverlayButtonButton",title:q,"aria-label":t,"on:click":_.zq(function(){g&&_.R6(g());J&&_.sV().resolve(_.gN).resolveCommand(J())})},_.Z(_.Tq,{icon:u})))},"Ig");var Pl="";var hfy=_.ld(function(F){var q=F.playerControlsProps,t=F.onClickFn;F=_.zy(function(){var g=q(),Y=-1;g.captionsAvailable&&(Y=g.captionsEnabled?1:0);return Y},void 0,"WecR8e");
var u=_.zy(function(){var g=q();return g.captionsAvailable?_.oD(g.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.oD("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),J=_.zy(function(){var g=q();
g=g.captionsAvailable?g.captionsEnabled:void 0;return g},void 0,"Q17ly");
return _.Z("yt-closed-captions-toggle-button",null,_.Z(_.JNw,{captionIconType:F,ariaLabel:u,ariaPressed:J,onClick:function(g){var Y=q();if(Y.captionsAvailable){var Q=Y.playerApi;if(Q){var e=Y.playerApi;if(e){var r=Pl;if(r){e=e.getOption("captions","track");var N;Pl=(N=e?e.displayName:null)!=null?N:r}else _.eF(e)?(r=_.naC(e),Pl=r.length?(N=$Mv(r))?N.displayName:r[0].displayName:""):Pl=""}bI5(Q);_.E("mweb_disable_set_state_captions_killswitch")&&Y.setState({captionsEnabled:!Y.captionsEnabled})}}var w,
k;(k=(w=Y.appApi).showCaptionsToggleToast)==null||k.call(w,Y);t==null||t(g)},
isOverlay:!0}))},"Jg");var K0J=_.ld(function(F){var q=F.data;return _.Z("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.Z(_.gu,{data:function(){return{type:17,text:_.Lq_(q().label)}}}))},"Kg");var BZ3=_.ld(function(F){var q=_.Ec("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return F.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return F.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return F.size()==="small"?F.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
F.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.Z("animated-seek-arrows",{class:_.Ec("ytPlayerControlsAnimatedSeekArrowsHost")},_.Z("span",{class:q}),_.Z("span",{class:q}),_.Z("span",{class:q}))},"Lg");
BZ3.idomCompat=!0;var L09=_.ld(function(){var F=_.oD("PLAYER_SECONDS",{seconds_placeholder:"30"}),q=_.X(_.N3(!1,void 0,"iRJu8c")),t=q.next().value,u=q.next().value,J=_.X(_.N3(!1,void 0,"MPnizf"));q=J.next().value;var g=J.next().value;J={};var Y=_.Ec("jumpForwardOverlayOverlay",(J.jumpForwardOverlayOverlayHidden=q,J));_.v_(function(){var Q=null,e=null,r=function(){Q!==null&&_.Gx().cancelJob(Q);e!==null&&_.Gx().cancelJob(e);g(!0);u(!0);_.wC(_.Gx(),function(){g(!1)});
Q=_.wC(_.Gx(),function(){g(!0);e=_.wC(_.Gx(),function(){u(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",r);_.vj(function(){window.removeEventListener("jump-forward-clicked",r)})});
return _.Z("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.Z(_.R,{cond:t,then:function(){return _.Z("div",{class:Y},_.Z(BZ3,{direction:1,size:"large"}),_.Z("div",null,F))}}))},"Mg");var fSQ=_.oG.MUTE_VOLUME,aS9=_.oG.UNMUTE_VOLUME,j0w=_.ld(function(F){var q=F.muteIconType;var t=F.onClick;var u=F.useOutlineIcon;var J=F.useDelhiIcons;F=_.FG("button",function(Q){_.Z3(Q,28662)});
var g=function(){var Q=q(),e=u==null?void 0:u(),r=J==null?void 0:J(),N="",w="";switch(Q){case -1:case 0:N=e?"VOLUME_OFF":r?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";w=aS9;break;case 1:N=e?"VOLUME_UP_OUTLINE":r?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";w=fSQ;break;case 2:N=e?"VOLUME_DOWN_OUTLINE":r?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";w=fSQ;break;default:_.Uv(Q)}return{iconName:N,ariaLabel:w}},Y=function(){return g().ariaLabel};
return _.Z("ytm-mute-button",{class:"ytmMuteButtonHost"},_.Z("button",{el:F,class:"ytmMuteButtonButton",title:Y,"aria-label":Y,"on:click":_.zq(function(Q){_.R6(28662);t==null||t(Q);return!1})},_.Z("span",null,_.Z(_.Tq,{icon:function(){return g().iconName}}))))},"Ng");var cg3=_.ld(function(F){var q=F.volumeProps;var t=F.onClickFn;var u=F.useOutlineIcon;var J=F.useDelhiIcons;return _.Z("yt-mute-toggle-button",null,_.Z(j0w,{muteIconType:function(){var g=q();return g.volumeMuted||g.volume===0?0:g.volume>50?1:2},
onClick:function(g){var Y=q().playerApi;Y&&(Y.isMuted()?Y.unMute():Y.mute(!1));t==null||t(g)},
useOutlineIcon:function(){return!(u==null||!u())},
useDelhiIcons:function(){return!(J==null||!J())}}))},"Og");
cg3.idomCompat=!0;var FOh=_.ld(function(F){var q=F.data;var t=_.FG("ytm-paid-content-overlay-renderer");return _.Z("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:t,"on:animationend":_.zq(function(){t.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.Z(_.Ds,{command:function(){return q().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.Z(_.R,{cond:function(){var u;return(u=q().icon)==null?void 0:u.iconType},
then:function(){return _.Z("span",null,_.Z(_.Tq,{icon:function(){var u;return(u=q().icon)==null?void 0:u.iconType}}))}}),_.Z("div",{class:"ytmPaidContentOverlayText"},_.Z(_.rv,{text:function(){return q().text}})),_.Z(_.R,{cond:function(){return q().navigationEndpoint},
then:function(){return _.Z(_.Tq,{icon:"CHEVRON_RIGHT"})}})))},"Pg");
FOh.idomCompat=!0;var seQ=[].concat(_.mZ([{register:function(F){var q=rDs(F),t;(t=F().playerApi)==null||t.addEventListener("onVolumeChange",q);return function(){}}},
{register:function(F){var q=NB3(F);F=F().playerApi;F==null||F.addEventListener("captionschanged",q);F==null||F.addEventListener("captionssettingschanged",q);F==null||F.addEventListener("onCaptionsTrackListChanged",q);return function(){}}},
{register:function(F){if(!_.E("mweb_screenreader_accessible_player"))return function(){};
var q=wtv(F),t=document.querySelector("video");t==null||t.addEventListener("touchend",q);return function(){t==null||t.removeEventListener("touchend",q)}}},
{register:function(F){if(!_.E("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var q=wtv(F),t=document.querySelector("video");t==null||t.addEventListener("focus",q);return function(){t==null||t.removeEventListener("focus",q)}}}]),[{register:function(F){var q=QeD(F),t;
(t=F().playerApi)==null||t.addEventListener("onStateChange",q);return function(){}}},
{register:function(F){var q=eED(F),t;(t=F().playerApi)==null||t.addEventListener("onPlaybackRateChange",q);return function(){}}},
{register:function(F){var q=Zts(F),t;(t=F().playerApi)==null||t.addEventListener("onVideoDataChange",q);return function(){}}},
{register:function(F){var q=RE9(F),t,u;(t=F())==null||(u=t.playerApi)==null||u.addEventListener("onVideoProgress",q);return function(){}}}]);var qeD=_.ld(function(F){var q=F.data;var t=function(){return _.oD("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+q().playbackRate})};
return _.Z(_.R,{cond:function(){return q().playbackRate&&q().playbackRate!==1},
then:function(){return _.Z("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.Z("div",{class:"ytPlaybackRateOverlayOverlay"},_.Z(BZ3,{direction:1,size:"small"}),_.Z("div",{class:"ytPlaybackRateOverlayLabel"},t)))}})},"Qg");var tdT=_.ld(function(F){var q=F.data;return _.Z("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.Z(_.R,{cond:function(){var t,u=(t=q())==null?void 0:t.playerResponse,J;return u==null?void 0:(J=u.paidContentOverlay)==null?void 0:J.paidContentOverlayRenderer},
then:function(t){return _.Z(FOh,{data:t})}}))},"Sg"),u5h=_.ld(function(F){var q=F.props;
var t=F.data;var u=F.options;var J=function(){var r,N,w,k;return(r=t())==null?void 0:(N=r.playerResponse)==null?void 0:(w=N.playerConfig)==null?void 0:(k=w.inlinePlaybackConfig)==null?void 0:k.showAudioControls},g=function(){var r,N;
if(J()&&((r=u())==null?void 0:(N=r.additionalButton)==null?void 0:N.button)!==void 0){var w,k,z;r=(w=t())==null?void 0:(k=w.playerApi)==null?void 0:(z=k.getSize())==null?void 0:z.height;if(!(r===void 0||r<180)){var T,P;return(T=u())==null?void 0:(P=T.additionalButton)==null?void 0:P.button}}},Y=function(){var r,N;
return(r=u())==null?void 0:(N=r.additionalButton)==null?void 0:N.thumbnailOverlayButtonRenderers},Q=function(){var r,N;
return(r=u())==null?void 0:(N=r.additionalButton)==null?void 0:N.thumbnailOverlayButtonViewModels},e=function(){var r=[_.Z(cg3,{volumeProps:q}),
_.Z(hfy,{playerControlsProps:q})];g()===1&&r.push(_.Z(dL9,{playerApi:function(){return q().playerApi}}));
g()===2&&r.push(_.Z(VMw,{appApi:function(){return q().appApi}}));
g()===3&&r.push(_.Z(UL7,{playerApi:function(){return q().playerApi}}));
var N=Y();if(g()===4&&N){N=_.X(N);for(var w=N.next(),k={};!w.done;k={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$588:void 0},w=N.next()){w=w.value;k.tooltip$jscomp$2=w.tooltip;var z=void 0,T=void 0;k.ariaLabel$jscomp$20=((z=w.accessibility)==null?void 0:(T=z.accessibilityData)==null?void 0:T.label)||k.tooltip$jscomp$2;z=void 0;k.icon$jscomp$50=(z=w.icon)==null?void 0:z.iconType;k.command$jscomp$588=w.command;k.tooltip$jscomp$2&&k.ariaLabel$jscomp$20&&k.icon$jscomp$50&&
r.push(_.Z(STJ,{title:function(P){return function(){return P.tooltip$jscomp$2}}(k),
ariaLabel:function(P){return function(){return P.ariaLabel$jscomp$20}}(k),
icon:function(P){return function(){return P.icon$jscomp$50}}(k),
command:function(P){return function(){return P.command$jscomp$588}}(k)}))}}N=Q();
if(g()===4&&N)for(N=_.X(N),w=N.next(),k={};!w.done;k={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$589:void 0},w=N.next())w=w.value,k.tooltip$jscomp$3=w.title,k.ariaLabel$jscomp$21=w.accessibilityText||k.tooltip$jscomp$3,k.icon$jscomp$51=w.iconName,k.command$jscomp$589=_.Sg(w.onTap),k.tooltip$jscomp$3&&k.ariaLabel$jscomp$21&&k.icon$jscomp$51&&r.push(_.Z(STJ,{title:function(P){return function(){return P.tooltip$jscomp$3}}(k),
ariaLabel:function(P){return function(){return P.ariaLabel$jscomp$21}}(k),
icon:function(P){return function(){return P.icon$jscomp$51}}(k),
command:function(P){return function(){return P.command$jscomp$589}}(k)}));
return r};
return _.Z(_.R,{cond:J,then:function(){return _.Z("div",{class:"ytInlinePlayerControlsTopRightControls"},_.Z(_.Gn,{each:e},function(r){return _.Z("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.Z("div",{class:"ytInlinePlayerControlsButtonIcon"},r))}))}})},"Tg"),gz9=_.ld(function(F){var q=F.props;
var t=F.data;var u=F.options;F={};F=_.Ec("ytInlinePlayerControlsBottomRightControls",(F.ytInlinePlayerControlsBottomRightControlsHidden=function(){var J;return kAJ(t(),u())&&((J=u())==null?void 0:J.insetProgressBar)&&(q().isHovering||q().isDragging)},F));
return _.Z("div",{class:F},_.Z(JJQ,{data:t}),_.Z(_.R,{cond:function(){var J;return!((J=u())==null?0:J.hideTimeDisplay)},
then:function(){return _.Z(suy,{props:q,data:t})}}))},"Ug"),JJQ=_.ld(function(F){var q=F.data;
return _.Z(_.Tl,{data:function(){var t;return t15((t=q())==null?void 0:t.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:K0J})},"Vg"),suy=_.ld(function(F){var q=F.props;
var t=F.data;return _.Z(_.R,{cond:function(){return q().isLive},
then:function(){return _.Z(ltv,null)},
else:function(){return _.Z(XWT,{props:q,data:t})}})},"Wg"),XWT=_.ld(function(F){var q=F.props;
var t=F.data;var u=_.zy(function(){var J;return JD5((J=t())==null?void 0:J.thumbnailOverlays)},void 0,"tLs0gd");
return _.Z("div",{class:_.Ec("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.oG.PLAYER_TIME_ELAPSED+" "+_.v2_(q().playedTime)}},_.Z(_.gu,{data:function(){var J=_.v2_(q().videoDuration-q().playedTime);
return Object.assign({},{type:17,text:J},u())}}))},"Xg"),ltv=_.ld(function(){var F=_.Ec("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.Z("div",{class:F},_.Z(_.gu,{data:{type:18,text:_.oG.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Yg"),Ye9=_.ld(function(F){var q=F.props;
var t=F.data;var u=F.options;return _.Z(_.G4v,{progressBarProps:q,config:function(){var J,g=_.n((J=t())==null?void 0:J.multiMarkersPlayerBar,_.dHz),Y;J=((Y=u())==null?0:Y.insetProgressBar)?2:1;var Q;Y=(Q=u())==null?void 0:Q.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:J,chapterData:g,isInlinePlayback:!0,doSeekOnClick:Y,playheadDotBehavior:Y?1:0}}})},"Zg");_.ei(_.ld(function(F){var q=F.data;var t=F.appApi;var u=F.options;var J=pt7(q,itw(t));F={};t={};return _.Z("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.Z("div",{class:_.Ec("ytInlinePlayerControlsDarkenedOverlay",(F.ytInlinePlayerControlsDarkenedOverlayShow=function(){return J().isHovering},F))}),_.Z(L09,null),_.Z(qeD,{data:J}),_.Z(tdT,{data:q}),_.Z(CR9,{playerControlsProps:J,
isShortsPage:!1}),_.Z("div",{class:_.Ec((t.ytInlinePlayerControlsControlsHidden=function(){return J().isDragging},t))},_.Z(u5h,{props:J,
data:q,options:u}),_.Z(gz9,{props:J,data:q,options:u})),_.Z(_.R,{cond:function(){return kAJ(q(),u())},
then:function(){return _.Z(Ye9,{props:J,data:q,options:u})}}))},"Rg"),"yt-inline-player-controls",{props:{data:_.NH,
appApi:_.pp,options:_.NH}});var n5=function(){var F=_.x.apply(this,arguments)||this;F.opts=null;F.playerControlsData=null;F.playerControlsAppApi={openInMiniplayer:function(){F.openInMiniplayer()}};
F.playerControlsOptions={};F.noAnimation=!1;F.playbackIntentTriggered=!1;F.positionData=null;F.hidden=!0;F.active=!1;F.playing=!1;F.videoPreviewDataIndex=0;F.JSC$19125_playerPromise=null;F.player=null;F.enableAudioControls=!1;F.hasBeenUnmuted=!1;F.captionsHaveBeenTurnedOff=!1;F.JSC$19125_playerEvents=new Map;F.videoPreviewFetchRequest=null;F.scheduledPreviewEndJobId=null;F.JSC$19125_preventProgressSaveTimer=null;F.watchEndpointStartTimeUpdaterInterval=null;F.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};F.windowOnBlurFn=function(){F.deactivate()};
return F};
_.M(n5,_.x);_.l=n5.prototype;
_.l.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.E("web_enable_rich_item_on_focus_effect_client")?{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"}}}};
_.l.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19125_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19125_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19125_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19125_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.kM(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.kM(this,this.onScroll))};
_.l.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.kM(this,this.onScroll))};
_.l.onPageTypeChange=function(){this.deactivate()};
_.l.onWindowResized=function(){this.deactivate()};
_.l.onCaptionsChanged=function(F){F=!!F.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!F);this.setCaptionSize()};
_.l.setCaptionSize=function(){var F;if(this.active&&!this.captionsHaveBeenTurnedOff&&((F=this.player)==null?0:F.getCaptionWindowContainerId())){var q;(q=this.player)==null||q.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.l.currentPageAllowed=function(){return!this.isWatchPage};
_.l.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var F=this.positionData,q=F.initialTopPosition,t=F.initialHorizontalPosition;_.ws(this.hostElement,{"--ytd-video-preview-translate-left":F.finalHorizontalPosition-t+"px","--ytd-video-preview-translate-top":F.finalTopPosition-q+"px","--ytd-video-preview-original-top-position":q+"px","--ytd-video-preview-original-horizontal-position":t+"px",
"--ytd-video-preview-initial-scale":"scale("+F.initialScale+")","--ytd-video-preview-width":F.videoPreviewWidth+"px","--ytd-video-preview-height":F.videoPreviewHeight+"px"});return!0};
_.l.handleOpenVideoPreviewAction=function(F){var q=this,t;return _.p(function(u){if(!q.currentPageAllowed())return u.return(0);q.opts=F;return(t=q.alignVideoPreviewForAnimation(F.thumbnail))?u.return(q.activate()):u.return(0)})};
_.l.onMouseLeave=function(F){this.shouldDeactivateOnMouseLeave(F)&&this.deactivate()};
_.l.onScroll=function(){var F,q;((F=this.opts)==null?0:F.isAutoplay)&&((q=this.opts)==null?0:q.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.l.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.mI.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.l.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.l.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",n5.JSC$19124_DEFAULT_CLICK_LOCATION_BEHAVIOR,n5.JSC$19124_CLICK_LOCATION_ID_MAP)};
_.l.shouldDeactivateOnMouseLeave=function(F){F=F.relatedTarget;if(!F)return!0;var q;return(q=this.opts)!=null&&q.mediaRenderer?!_.Zj(this.opts.mediaRenderer).contains(F):!0};
_.l.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.l.onPlaybackStart=function(){var F=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$19125_preventProgressSaveTimer=
_.wC(_.mI,function(){F.resetPreventProgressSaveTimer()},1E4);
var q;if((q=this.opts)==null?0:q.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.wC(_.mI,function(){F.hasMultipleVideoPreviews()?F.startPlaybackForNextVideo():F.deactivate()},this.opts.videoPreviewDurationMs);
var t;this.player.setGlobalCrop(((t=this.opts)==null?0:t.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.l.getRoundedCornersSize=function(){var F;if((F=this.opts)==null?0:F.roundedCornersSize){var q;return(q=this.opts)==null?void 0:q.roundedCornersSize}var t;if((t=this.opts)==null?0:t.enableRounding){var u;if(((u=this.opts)==null?void 0:u.thumbnailSize)==="small")return 1;var J;if(((J=this.opts)==null?void 0:J.thumbnailSize)==="medium")return 2;var g;if(((g=this.opts)==null?void 0:g.thumbnailSize)==="large")return 3}return _.E("web_imp_inset_progress_bar")?3:0};
_.l.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.l.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.l.onMediaContainerClick=function(F){this.isShortcutClick(F)||(this.navigateToWatch(F),F.preventDefault(),F.stopPropagation())};
_.l.activate=function(){var F=this,q,t,u,J,g,Y,Q,e,r;return _.p(function(N){switch(N.nextAddress){case 1:if(!F.currentPageAllowed())return N.return(0);t=(q=F.videoPreviewData)==null?void 0:q.inlinePlaybackEndpoint;u=_.Lp.instance;if(!t||!u)return N.return(0);F.playbackIntentTriggered=!0;((J=F.opts)==null?0:J.mediaRenderer)&&((g=F.opts)==null||!g.isAutoplay)&&FIQ(F.opts.mediaRenderer,function(){F.deactivate()});
_.tJ(F,function(){F.revealPreviewUi()});
Y={};_.E("enable_unknown_lact_fix_on_html5")&&(_.sV().resolve(_.PT),Y.lact=_.X1());F.videoPreviewFetchRequest=BNv(u,F.getInlinePlaybackRequestData(F.videoPreviewData),Y);_.zg(N,2);return N.yield(F.videoPreviewFetchRequest,4);case 4:Q=N.yieldResult;if(((e=Q)==null?void 0:(r=e.playabilityStatus)==null?void 0:r.status)==="OK")return N.return(F.handlePlayerResponse(Q));throw Error("Uj");case 2:_.Gg(N),F.deactivate();case 3:return N.return(1)}})};
_.l.getInlinePlaybackRequestData=function(F){var q,t=_.E("web_imp_player_mute_params")?((q=this.opts)==null?void 0:q.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:F.inlinePlaybackEndpoint,startPlaybackInMutedState:t}};
_.l.handlePlayerResponse=function(F){var q=this,t,u,J,g,Y,Q,e,r,N,w;return _.p(function(k){if(k.nextAddress==1){t=q.getInlinePlaybackVideoId();if(!(((u=F)==null?0:(J=u.videoDetails)==null?0:J.videoId)&&q.currentPageAllowed()&&q.playbackIntentTriggered&&q.opts&&t))return q.deactivate(),k.return(0);if(F.videoDetails.videoId!==t)return k.return(0);q.enableAudioControls=!!((g=F.playerConfig)==null?0:(Y=g.inlinePlaybackConfig)==null?0:Y.showAudioControls);F.trackingParams=q.getInlinePlaybackTrackingParams();
if(!q.inlinePlayer)return k.return(0);Q={};if(r=_.n((e=q.videoPreviewData)==null?void 0:e.inlinePlaybackEndpoint,_.Fw))Q.watch_endpoint=r;if(q.videoPreviewData){var z,T=(z=_.n(q.videoPreviewData.inlinePlaybackEndpoint,_.Fw))==null?void 0:z.startTimeSeconds;T!==void 0&&(F.playerConfig||(F.playerConfig={}),F.playerConfig.playbackStartConfig||(F.playerConfig.playbackStartConfig={}),F.playerConfig.playbackStartConfig.startPosition||(F.playerConfig.playbackStartConfig.startPosition={}),F.playerConfig.playbackStartConfig.startSeconds=
T,F.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(T*1E3))}q.inlinePlayer.loadVideoWithPlayerResponse(F,Q);if(q.JSC$19125_playerPromise)return k.jumpTo(2);q.JSC$19125_playerPromise=q.inlinePlayer.getPlayerPromise();return k.yield(q.JSC$19125_playerPromise,3)}k.nextAddress!=2&&(N=k.yieldResult,N.setInlinePreview(!0),N.setSizeStyle(!1,!0),q.ytPlayerListenerBehavior.listenToPlayerEvents(N,q.JSC$19125_playerEvents),q.player=N,_.Q0(q.hostElement,"player-api-ready"));((w=q.opts)==
null?0:w.showPlayerControls)&&q.videoPreviewData&&q.player&&(q.playerControlsData={playerResponse:F,isInlinePlayback:!0,thumbnailOverlays:q.videoPreviewData.thumbnailOverlays,playerApi:q.player},q.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!q.unroundCornersForPlayback,additionalButton:q.getAdditionalButtonType(q.videoPreviewData.thumbnailOverlays)});return k.return(2)})};
_.l.revealPreviewUi=function(){var F=this;this.playbackIntentTriggered&&_.Bd3(this,function(){F.hasThumbnailPositionChangedSinceTriggered()||(F.updateActiveState(!0),F.noAnimation=!1)})};
_.l.hasThumbnailPositionChangedSinceTriggered=function(){var F=this.positionData,q=this.getThumbnailPositionData();return(F==null?void 0:F.initialTopPosition)!==(q==null?void 0:q.initialTopPosition)||(F==null?void 0:F.initialHorizontalPosition)!==(q==null?void 0:q.initialHorizontalPosition)};
_.l.getThumbnailPositionData=function(){var F,q;if((q=this.opts)==null||!q.thumbnail)return null;q=this.opts.thumbnail;var t=((F=this.opts)==null?0:F.cropPlayerToFillThumbnailHorizontally)?!1:!0;var u=q.getBoundingClientRect();F=u.width;q=u.height;var J=u.top+window.scrollY;u=u.left+window.scrollX;var g=t?Math.ceil(F):F;t=t?Math.ceil(q):q;var Y=F/g;F={initialScale:Y,initialTopPosition:J-12*Y,finalTopPosition:J-12-(t-q)/2,initialHorizontalPosition:u-(12+(g-F)/2),finalHorizontalPosition:u-12-(g-F)/
2,videoPreviewWidth:g,videoPreviewHeight:t};return F};
_.l.updateActiveState=function(F){this.active=F;this.ytdReduxBehavior.dispatch(_.pj({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:F}))};
_.l.stopPlayer=function(F){F=F.resetWatchEndpointStartTime===void 0?!1:F.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(F)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.mI.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.l.deactivate=function(F){F=F===void 0?{}:F;F=F.resetWatchEndpointStartTime===void 0?!1:F.resetWatchEndpointStartTime;bH&&(bH.disconnect(),bH=null);this.stopPlayer({resetWatchEndpointStartTime:F});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.l.isValidThumbnailOverlayButton=function(F,q){F=F.thumbnailOverlayButtonRenderer;var t;return!!F&&!!F.tooltip&&!((t=F.icon)==null||!t.iconType)&&q.includes(F.icon.iconType)};
_.l.isValidThumbnailOverlayButtonViewModel=function(F,q){var t;F=_.n((t=F.thumbnailOverlayButtonViewModel)==null?void 0:t.overlayButton,_.gX);return!!F&&!!F.title&&!!F.iconName&&q.includes(F.iconName)};
_.l.getAdditionalButtonType=function(F){var q=this;if(_.E("web_imp_fastforward_button"))return{button:1};if(_.E("web_imp_miniplayer_button"))return{button:2};if(_.E("web_imp_playback_speed_button"))return{button:3};var t=["BOX_STACK_3"],u=(F||[]).filter(function(g){return q.isValidThumbnailOverlayButton(g,t)}).map(function(g){return g.thumbnailOverlayButtonRenderer});
if(u.length)return{button:4,thumbnailOverlayButtonRenderers:u};var J=["BOX_STACK_3"];F=(F||[]).filter(function(g){return q.isValidThumbnailOverlayButtonViewModel(g,J)}).map(function(g){return _.n(g.thumbnailOverlayButtonViewModel.overlayButton,_.gX)});
if(F.length)return{button:4,thumbnailOverlayButtonViewModels:F}};
_.l.allowCaptions=function(){var F;return!((F=this.opts)==null?0:F.forceCaptionsOff)};
_.l.allowUnmuting=function(){var F;return this.enableAudioControls&&!((F=this.opts)==null?0:F.forceMutedVolume)};
_.l.beginStartTimeUpdater=function(){var F=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.rN(function(){F.updateWatchEndpointStartTime()},1E3)};
_.l.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.l.resetPreventProgressSaveTimer=function(){this.JSC$19125_preventProgressSaveTimer!==null&&(_.mI.cancelJob(this.JSC$19125_preventProgressSaveTimer),this.JSC$19125_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.l.updateWatchEndpointStartTime=function(F){var q=this.videoPreviewData;if(this.player&&q!=null&&q.inlinePlaybackEndpoint&&!this.JSC$19125_preventProgressSaveTimer){F=F?0:Math.floor(this.player.getCurrentTime());var t=_.n(q.navigationEndpoint,_.Fw);t&&(t.startTimeSeconds=F);if(q=_.n(q.inlinePlaybackEndpoint,_.Fw))q.startTimeSeconds=F}};
_.l.isShortcutClick=function(F){return!!F&&(F.ctrlKey||F.shiftKey||F.metaKey)};
_.l.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.l.openInMiniplayer=function(){var F=this,q,t;return _.p(function(u){if(u.nextAddress==1){t=(q=F.videoPreviewData)==null?void 0:q.navigationEndpoint;if(!t)return u.return();_.$A().lockupActivation=!0;return u.yield(_.c2C(_.sV().resolve(_.m4),t),2)}_.$A().userActivation=!0;_.WA(u)})};
_.l.navigateToWatch=function(F){var q,t=(q=this.videoPreviewData)==null?void 0:q.navigationEndpoint;if(t){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(t,F,!0);else{var u;_.E("web_thumbnail_to_watch_transition")&&((u=this.opts)==null?0:u.thumbnail)&&_.fiJ(_.sV().resolve(_.yf),this.opts.thumbnail);_.Q0(this.hostElement,"yt-navigate",{endpoint:t})}this.deactivate()}};
_.l.getInlinePlaybackVideoId=function(){var F,q;return(q=_.n((F=this.videoPreviewData)==null?void 0:F.inlinePlaybackEndpoint,_.Fw))==null?void 0:q.videoId};
_.l.getInlinePlaybackTrackingParams=function(){var F,q;return(F=this.videoPreviewData)==null?void 0:(q=F.inlinePlaybackEndpoint)==null?void 0:q.clickTrackingParams};
_.l.hasMultipleVideoPreviews=function(){var F;return!!(((F=this.opts)==null?0:F.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.l.startPlaybackForNextVideo=function(){var F;(F=this.opts)!=null&&F.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.JJ.Object.defineProperties(n5.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.opts)==null?0:F.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.opts)==null||!F.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var F;if(Array.isArray((F=this.opts)==null?void 0:F.videoPreviewData)){var q;return(q=this.opts)==null?void 0:q.videoPreviewData[this.videoPreviewDataIndex]}var t;return(t=this.opts)==null?void 0:t.videoPreviewData}}});
n5.prototype.onIsAdsVideoChange=n5.prototype.onIsAdsVideoChange;n5.prototype.onInlinePreviewIsEnabledChange=n5.prototype.onInlinePreviewIsEnabledChange;n5.prototype.optsChanged=n5.prototype.optsChanged;n5.prototype.onMouseLeave=n5.prototype.onMouseLeave;n5.JSC$19124_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);n5.JSC$19124_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"}];
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],n5.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],n5.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],n5.prototype,"componentBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],n5.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.GK.YtSparklesClickLocationBehavior),_.V("design:type",Object)],n5.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],n5.prototype,"opts",void 0);_.C([_.O(),_.V("design:type",Object)],n5.prototype,"playerControlsData",void 0);
_.C([_.O(),_.V("design:type",Object)],n5.prototype,"playerControlsAppApi",void 0);_.C([_.O(),_.V("design:type",Object)],n5.prototype,"playerControlsOptions",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],n5.prototype,"noAnimation",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],n5.prototype,"hidden",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],n5.prototype,"active",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],n5.prototype,"playing",void 0);_.C([_.O({selector:_.J8C}),_.V("design:type",Boolean)],n5.prototype,"inlinePreviewIsEnabled",void 0);_.C([_.O(),_.V("design:type",String)],n5.prototype,"pagePath",void 0);_.C([_.O({selector:_.qh$}),_.V("design:type",Boolean)],n5.prototype,"isWatchPage",void 0);_.C([_.W("videoPreviewData"),_.V("design:type",Object),_.V("design:paramtypes",[])],n5.prototype,"thumbnailData",null);
_.C([_.W("opts","active"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],n5.prototype,"hidePlayerControls",null);_.C([_.W("opts"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],n5.prototype,"isAdsVideo",null);_.C([_.W("opts"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],n5.prototype,"roundedCornersSmall",null);
_.C([_.W("opts"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],n5.prototype,"roundedCornersMedium",null);_.C([_.W("opts"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],n5.prototype,"roundedCornersLarge",null);_.C([_.W("opts"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],n5.prototype,"unroundCornersForPlayback",null);
_.C([_.W("opts","videoPreviewDataIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],n5.prototype,"videoPreviewData",null);_.C([_.O(),_.V("design:type",Object)],n5.prototype,"videoPreviewDataIndex",void 0);_.C([_.Ms("#inline-player"),_.V("design:type",Object)],n5.prototype,"inlinePlayer",void 0);_.C([_.EB("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[MouseEvent]),_.V("design:returntype")],n5.prototype,"onMouseLeave",null);
_.C([_.Wh("opts"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n5.prototype,"optsChanged",null);_.C([_.Wh("inlinePreviewIsEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n5.prototype,"onInlinePreviewIsEnabledChange",null);_.C([_.za("isAdsVideo"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n5.prototype,"onIsAdsVideoChange",null);
_.C([_.m({is:"ytd-video-preview",disableElementRegistration:!0})],n5);
_.b(n5,"ytd-video-preview",function(){if(ygC!==void 0)return ygC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ygC=F},{mode:2});
}catch(e){_._DumpException(e)}
try{
var clT,F$e,qMZ;clT=function(F){return _.E("kevlar_watch_cinematics_invisible")||F.fullscreen&&_.E("kevlar_watch_cinematics_invisible_in_fullscreen")||F.theater&&!F.fullscreen&&_.E("kevlar_watch_cinematics_invisible_in_theater")};
F$e=function(){var F=document.createElement("canvas"),q=F.getContext("2d");if(!q)throw Error("yo");_.SL(F,{position:"absolute",width:"100%",height:"100%"});return{element:F,context:q}};
qMZ=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.E("kevlar_watch_cinematics_css_blur")};
_.tWS=function(F,q,t){return Math.abs(F-q)<=(t||1E-6)};
_.uql=function(F,q){return F==q?!0:F&&q?F.width==q.width&&F.height==q.height:!1};_.Joq=new _.Xk("notificationActionRenderer");var s_n=function(F){var q=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.i1;this.element.addEventListener("load",function(){q.loaded=!0;q.resolver.resolve(q.element)});
this.element.addEventListener("error",function(){q.failed=!0});
this.element.src=F};var gPe=function(F,q){this.image=F;this.frame=q};
gPe.prototype.drawToCanvas=function(F,q){var t=this.frame.width/this.frame.columns,u=this.frame.height/this.frame.rows,J=q.offsetX,g=q.offsetY;clT(q)?(F.fillStyle=q.fullscreen?"#000":"#0f0f0f",F.fillRect(J,g,(q==null?void 0:q.width)||t,(q==null?void 0:q.height)||u)):F.drawImage(this.image,this.frame.column*t,this.frame.row*u,t,u,J,g,(q==null?void 0:q.width)||t,(q==null?void 0:q.height)||u)};
var lvS=function(F){this.color=F};
lvS.prototype.drawToCanvas=function(F,q){var t=q.offsetX,u=q.offsetY,J=q.width,g=q.height;F.fillStyle=clT(q)?q.fullscreen?"#000":"#0f0f0f":this.color;F.fillRect(t,u,J,g)};var rV=function(F,q){_.Wv.call(this);this.playerApi=q;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Ma(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();XyO(this,F);YMe(this);this.update()};
_.M(rV,_.Wv);rV.prototype.addEventListeners=function(){var F=this,q=function(){F.update()},t=function(J){F.paused||(J.type==="newdata"&&(F.mosaics.clear(),pyl(F),N9(F)),YMe(F),F.update())},u=function(){F.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",q);this.playerApi.addEventListener("onVideoDataChange",t);this.playerApi.addEventListener("onStateChange",u);this.addOnDisposeCallback(function(){F.playerApi.removeEventListener("onVideoProgress",q);F.playerApi.removeEventListener("onVideoDataChange",t);F.playerApi.removeEventListener("onStateChange",u)})};
var XyO=function(F,q){F.cinematicContainerRenderer!==q&&(F.cinematicContainerRenderer=q,pyl(F),N9(F),F.colorStoreUpdateJobId=_.mI.addLowPriorityJob(function(){var t;if((t=F.cinematicContainerRenderer.colorStore)!=null&&t.sampledColors){t=Infinity;for(var u=_.X(F.cinematicContainerRenderer.colorStore.sampledColors),J=u.next();!J.done;J=u.next()){J=J.value;var g=Number(J.key);g!==0&&g<t&&(t=g);g=_.KG(J.value);F.colorStore.set(J.key,g)}F.colorStoreTimeInterval=t}}))},pyl=function(F){F.colorStoreUpdateJobId&&
(_.mI.cancelJob(F.colorStoreUpdateJobId),F.colorStoreUpdateJobId=void 0);
F.colorStore.clear();F.currentStoryboardColor=void 0},Q_q=function(F,q){var t;
return(t=F.getStoryboardFrame(q))==null?void 0:t.url};
rV.prototype.onPlayerStateChange=function(){this.update()};
rV.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var YMe=function(F){var q=F.getStoryboardFrame(0);q&&(q=new _.Ma(q.width/q.columns,q.height/q.rows),_.uql(F.currentStoryboardSize,q)||(F.currentStoryboardSize=q,F.publish("STORYBOARD_SIZE_CHANGED",F.currentStoryboardSize)))},eoq=function(F,q){F.currentStoryboardIndex=q;
F.pendingStoryboardIndex=NaN;q=F.getStoryboardFrame(F.currentStoryboardIndex);F.currentStoryboard=new gPe(F.mosaics.get(q.url).element,q);F.publish("STORYBOARD_CHANGED",F.currentStoryboard);F.lastUpdateTime=(0,_.gB)()};
rV.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var N9=function(F){F.currentStoryboardIndex=NaN;F.pendingStoryboardIndex=NaN;F.currentStoryboard&&(F.currentStoryboard=void 0,F.publish("STORYBOARD_CHANGED",void 0));F.lastUpdateTime=NaN};
rV.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)N9(this);else{var F=this.playerApi.getPlayerState(1);if(F===-1||F===5||F===0)N9(this);else if(isNaN(this.lastUpdateTime)||!((0,_.gB)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(F=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){F=""+Math.round(F*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var q=this.colorStore.get(F);q?q!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=q,this.currentStoryboard=new lvS(q),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.gB)()):(_.bz(new _.D0("Could not find color for timestamp: "+F,this.cinematicContainerRenderer)),N9(this))}else N9(this);else Z3Q(this,F)}};
var Z3Q=function(F,q){var t=F.getStoryboardFrameIndex(q);if(t!==F.currentStoryboardIndex&&t!==F.pendingStoryboardIndex){q=Q_q(F,t);var u=F.mosaics.get(q);u?u.loaded&&eoq(F,t):(F.pendingStoryboardIndex=t,t=new s_n(q),F.mosaics.set(q,t),t.resolver.promise.then(function(){if(!F.isDisposed()&&!F.paused&&!isNaN(F.pendingStoryboardIndex)){var J=Q_q(F,F.pendingStoryboardIndex);if(J){var g;(g=F.mosaics.get(J))!=null&&g.loaded&&eoq(F,F.pendingStoryboardIndex)}else N9(F)}}))}};
rV.prototype.getStoryboardFrameIndex=function(F){var q=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(F,q)};
rV.prototype.getStoryboardFrame=function(F){var q=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,t,u;return((u=(t=this.playerApi).getStoryboardFrame)==null?void 0:u.call(t,F,q))||null};
rV.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var iO=function(F,q,t,u){u=u===void 0?!1:u;_.OP.call(this);this.cinematicContainerRenderer=q;this.playerApi=t;this.theater=this.fullscreen=!1;var J;this.ambientLightThemeEnabled=!u&&!!(q==null?0:(J=q.config)==null?0:J.enableInLightTheme);this.ambientFullscreenEnabled=u&&_.E("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=u&&_.E("web_cinematic_theater_mode");this.container=document.createElement("div");F.appendChild(this.container);var g;if(_.E("web_cinematic_theater_mode")||_.E("web_cinematic_fullscreen")||
(q==null?0:(g=q.config)==null?0:g.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);Rot(this);F=this.ambientV2Container||this.container;this.backCanvas=F$e();this.frontCanvas=F$e();F.appendChild(this.backCanvas.element);F.appendChild(this.frontCanvas.element);this.storyboardManager=new rV(q,this.playerApi);_.kW(this,this.storyboardManager);this.addEventListeners();ro$(this)?NfQ(this,100+wV(this)*3*2,100+wV(this)*3*2):wyI(this);
i3S(this,this.storyboardManager.currentStoryboard)};
_.M(iO,_.OP);var Rot=function(F){F.ambientV2Container?ktO(F):(_.SL(F.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+EPK(F)+", "+zoO(F)+")"}),qMZ()&&_.SL(F.container,"filter","blur("+_.YE("cinematic_watch_css_filter_blur_strength",40)+"px)"))},ktO=function(F){if(F.ambientV2Container){var q=F.playerApi.getVideoAspectRatio();
_.SL(F.container,{"aspect-ratio":""+q,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.SL(F.ambientV2Container,{"aspect-ratio":""+q,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+EPK(F)+", "+zoO(F)+")"});qMZ()&&_.SL(F.ambientV2Container,"filter","blur("+_.YE("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
iO.prototype.setFullscreen=function(F,q){this.fullscreen=F;this.theater=!!q;Rot(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),F=this.storyboardManager.currentStoryboard,oPy(this),F&&nPO(this,F)};
iO.prototype.addEventListeners=function(){var F=this,q=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(J){i3S(F,J)}),t=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){wyI(F)});
this.addOnDisposeCallback(function(){F.storyboardManager.unsubscribeByKey(q);F.storyboardManager.unsubscribeByKey(t)});
if(this.ambientV2Container){var u=function(){ktO(F)};
this.playerApi.addEventListener("onVideoDataChange",u);this.addOnDisposeCallback(function(){F.playerApi.removeEventListener("onVideoDataChange",u)})}};
var wyI=function(F){if(!ro$(F)){var q=F.storyboardManager.currentStoryboardSize;isNaN(q.width)||isNaN(q.height)||NfQ(F,Number(q.width)+wV(F)*3*2,Number(q.height)+wV(F)*3*2)}},NfQ=function(F,q,t){F.backCanvas.element.width=q;
F.backCanvas.element.height=t;F.frontCanvas.element.width=q;F.frontCanvas.element.height=t},ro$=function(F){return F.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},i3S=function(F,q,t){t=t===void 0?!1:t;
var u=F.frontCanvas.element.getAnimations()[0];u?(u.pause(),F.backCanvas.context.globalAlpha=Number(getComputedStyle(F.frontCanvas.element).opacity),F.frontCanvas.element.style.opacity="0",u.finish()):F.backCanvas.context.globalAlpha=1;F.backCanvas.context.drawImage(F.frontCanvas.element,0,0,F.backCanvas.element.width,F.backCanvas.element.height);oPy(F);q&&nPO(F,q);q=q?F.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.YE("cinematic_watch_fade_out_duration",500);u=_.YE("cinematic_watch_transition_frame_rate")/
1E3;var J={};u&&(J={easing:"steps("+Math.round(q*u)+")"});(t===void 0?0:t)||F.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:q,iterations:1},J));F.frontCanvas.element.style.opacity="1"},oPy=function(F){var q=F.ambientLightThemeEnabled||F.ambientTheaterModeEnabled,t=F.ambientLightThemeEnabled||F.ambientFullscreenEnabled;
F.frontCanvas.context.fillStyle=F.theater&&q||F.fullscreen&&t?"#000":"#0f0f0f";qMZ()||(F.frontCanvas.context.filter="blur(0)");F.frontCanvas.context.fillRect(0,0,F.frontCanvas.element.width,F.frontCanvas.element.height)},nPO=function(F,q){qMZ()||(F.frontCanvas.context.filter="blur("+wV(F)+"px)");
F.frontCanvas.context.globalAlpha=F.fullscreen&&F.ambientFullscreenEnabled||F.theater&&F.ambientTheaterModeEnabled?_.YE("cinematic_watch_effect_letterbox_opacity",.4):_.YE("cinematic_watch_effect_opacity",.4);var t={offsetX:wV(F)*3,offsetY:wV(F)*3,theater:F.theater,fullscreen:F.fullscreen};ro$(F)&&(t.width=100,t.height=100);q.drawToCanvas(F.frontCanvas.context,t);F.frontCanvas.context.globalAlpha=1},wV=function(F){var q;
return(q=F.cinematicContainerRenderer.config.blurStrength)!=null?q:5},EPK=function(F){var q,t;
if((F.fullscreen||F.theater)&&((q=F.cinematicContainerRenderer.config)==null?0:(t=q.watchFullscreenConfig)==null?0:t.colorSourceWidthMultiplier))return F.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var u;return(u=F.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?u:F.cinematicContainerRenderer.config.colorSourceSizeMultiplier},zoO=function(F){var q,t;
if((F.fullscreen||F.theater)&&((q=F.cinematicContainerRenderer.config)==null?0:(t=q.watchFullscreenConfig)==null?0:t.colorSourceHeightMultiplier))return F.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var u;return(u=F.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?u:F.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
iO.prototype.disposeInternal=function(){_.OP.prototype.disposeInternal.call(this);this.container.remove()};
iO.prototype.clear=function(){i3S(this,void 0,!0)};
iO.prototype.pause=function(){this.storyboardManager.pause()};var MWS;MWS=_.Wk(function(){var F,q,t=!((q=(F=document.createElement("canvas")).getContext)==null||!q.call(F,"2d")),u;F=!((u=CSS)==null||!u.supports("filter: blur(0)"));u=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var J;return t&&F&&u&&!((J=CSS)==null||!J.supports("aspect-ratio: 1 / 1"))});
_.k8=function(F,q){_.Wv.call(this);this.container=F;this.playerApi=q;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=TfK(this);this.update()};
_.M(_.k8,_.Wv);_.Gty=function(F){var q=document.documentElement.hasAttribute("dark");F.isDarkModeEnabled=q;F.update()};
_.DAq=function(F,q){F.settingEnabled=q;F.update()};
_.k8.prototype.setFullscreen=function(F,q){this.fullscreen=F;this.theater=!!q;this.update()};
_.W$y=function(F,q){F.cinematicContainerRenderer=q;F.cinematicContainerRenderer&&(F.cinematicsVe=_.r0(F.isShorts()?227858:159022),_.PQ(_.DP(),F.cinematicsVe),F.loggingClientData={watchCinematicContainerData:{presentationStyle:F.cinematicContainerRenderer.presentationStyle}});F.update()};
_.k8.prototype.isShorts=function(){var F,q;return((F=this.cinematicContainerRenderer)==null?void 0:(q=F.config)==null?void 0:q.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.k8.prototype.isAllowed=function(){var F;if(F=MWS()){var q,t,u;F=((t=this.cinematicContainerRenderer)==null?void 0:t.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((u=this.cinematicContainerRenderer)==null||!u.colorStore)||((q=this.cinematicContainerRenderer)==null?void 0:q.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(F)if(_.E("web_cinematics_pausing")){var J,g;F=this.isDarkModeEnabled||!!((J=this.cinematicContainerRenderer)==
null?0:(g=J.config)==null?0:g.enableInLightTheme)}else{var Y,Q;J=!!((Y=this.cinematicContainerRenderer)==null?0:(Q=Y.config)==null?0:Q.enableInLightTheme)&&(_.bn("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);F=this.isDarkModeEnabled||J}if(Y=F){var e,r;Y=!((r=(e=this.prefersReducedMotionQuery)==null?void 0:e.matches)!=null&&r)}return Y};
_.O3Z=function(F){(F=F.currentCinematicEffect)!=null&&(F=F.storyboardManager,F.paused=!1,YMe(F),F.update())};
_.k8.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var TfK=function(F){if(!_.E("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var q=window.matchMedia("(prefers-reduced-motion: reduce)"),t=function(){F.update()};
q.addListener(t);F.addOnDisposeCallback(function(){q.removeListener(t)});
return q}};
_.k8.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var F=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new iO(this.container,F,this.playerApi,this.isDarkModeEnabled),_.kW(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var q=this.currentCinematicEffect;q.cinematicContainerRenderer!==
F&&(q.cinematicContainerRenderer=F,XyO(q.storyboardManager,F),Rot(q));F=_.TV();_.GV(0,194,!0);F.save();F=_.yb();this.cinematicsVe&&F&&_.aD(F,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(F=_.yb(),this.cinematicsVe&&F&&_.jc(F,[this.cinematicsVe],!1,this.loggingClientData),_.sP(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.JJ.Object.defineProperties(_.k8.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var Ocv;var Pf7;_.Hh({_template:function(){if(Pf7!==void 0)return Pf7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=
F.content,t=q.insertBefore;Ocv===void 0&&(Ocv=document.createElement("template"));var u=Ocv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return Pf7=F},
is:"tp-yt-iron-pages",behaviors:[_.Vl,_.ch],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var v8s;_.I77=function(){if(_.E("kevlar_home_skeleton")&&!v8s){var F=document.querySelector("#home-page-skeleton");F&&(_.y0("hgcr"),_.Mq(F),v8s=!0)}};
v8s=!1;_.SQ=new _.Xk("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var NM5,iYs,kpD,Ess,zR7,os9,nsv,MKT,Gpv,Dj7,Pky,Abv,vsT,xjT,Wfv,OYT,mjh;_.rbD=function(F,q,t){q=q===void 0?5:q;if(q!==0){var u=typeof F==="function"?F():document.querySelector(F);u?(t==null?0:t.enableSmartFocus)?_.I0W(u):u.focus():setTimeout(function(){_.rbD(F,q-1,t)},500)}};
NM5=function(F){return String.raw.apply(String,[{raw:F}].concat(_.mZ(_.US.apply(1,arguments).map(function(q){return q instanceof Array?q.join(""):q}))))};
iYs=function(F){var q=_.US.apply(1,arguments),t=q.length;if(!Array.isArray(F)||!Array.isArray(F.raw)||F.length!==F.raw.length||!_.EPj&&F===F.raw||!(_.EPj&&!_.zoC||_.xn(F))||t+1!==F.length)throw new TypeError("$");return new w1v(Object.freeze({strings:Object.freeze(F),args:Object.freeze(q)}))};
kpD=function(F){return _.zrq(_.EG_(F&16777215))<.5};
Ess=function(F,q,t){var u=t.minimumRowsOfVideosBetweenSections===void 0?1:t.minimumRowsOfVideosBetweenSections;return F<(t.minimumRowsOfVideosAtStart===void 0?2:t.minimumRowsOfVideosAtStart)||q!==null&&F-q<=u?!1:!0};
zR7=function(F,q){var t=0,u=0;F=_.X(F);for(var J=F.next();!J.done;J=F.next()){var g=J.value;if(g.richItemRenderer)g.richItemRenderer.rowIndex=u,g.richItemRenderer.colIndex=t++,t===q&&(t=0,u++);else if(g.richGroupRenderer&&g.richGroupRenderer.numColumns!==void 0)g.richGroupRenderer.rowIndex=u,g.richGroupRenderer.colIndex=t,t+=g.richGroupRenderer.numColumns,t===q&&(t=0,u++);else if(g.richSectionRenderer){var Y=J=void 0;if(g=_.n((J=g)==null?void 0:(Y=J.richSectionRenderer)==null?void 0:Y.content,_.Akd))g.rowIndex=
u++}}};
os9=function(F,q){var t=q.contentElement;q=q.rendererToTagNameMap;if(t&&q&&q.size!==0){for(var u=new Map,J=_.X(t.children),g=J.next();!g.done;g=J.next()){g=g.value;var Y=g.tagName.toLowerCase(),Q=u.get(Y);Q||(Q=[],u.set(Y,Q));Q.push(g)}if(u.size!==0)for(J=Math.min(F.length,t.children.length),g=new Map,Y=0;Y<J;Y++){Q=Object.keys(F[Y])[0];Q=q.get(Q);if(!Q)break;var e=g.get(Q);e===void 0&&(e=0,g.set(Q,e));var r=u.get(Q);if(!r||e>=r.length)break;g.set(Q,e+1);Q=r[e];e=t.children[Y];e!==Q&&(_.eWM=!0,_.Zoq.set(Q,
!0),t.insertBefore(Q,e),_.Zoq.delete(Q),_.eWM=!1)}}};
nsv=function(F,q,t,u,J,g,Y){u=u===void 0?{}:u;if(!F||!F.length)return{orderedContent:[]};F=F.slice();var Q=[],e=[];J=null;for(var r=0,N=function(a){e.sort(function(h,c){return c.skippedOnRow-h.skippedOnRow});
for(var S,K=(S=e.shift())==null?void 0:S.content;K;)!K.richSectionRenderer&&a||Q.push(K),S=void 0,K=(S=e.shift())==null?void 0:S.content},w=void 0,k=void 0,z=new Set;F.length>0||e.length>0;){for(var T=[],P=q;P>0;){var v=void 0,H=void 0,d=(H=e[0]&&e[0].skippedOnRow<r?(v=e.shift())==null?void 0:v.content:void 0)!=null?H:F.shift();
if(!d)break;if(d.richItemRenderer)v=d.richItemRenderer.targetId,H=void 0,v&&((H=Y)==null?0:H.has(v))&&(H=Y.get(v),!w||H&&H.timestamp>w.timestamp)&&(w=H,k&&z.add(k),k=v),T.push(d),P--;else if(d.richGroupRenderer&&d.richGroupRenderer.numColumns!==void 0)d.richGroupRenderer.numColumns<=P?(T.push(d),P-=d.richGroupRenderer.numColumns):P===q&&d.richGroupRenderer.numColumns>q?(T.push({richGroupRenderer:Object.assign({},d.richGroupRenderer,{numColumns:q})}),P=0):e.push({content:d,skippedOnRow:r});else if(d.richSectionRenderer)if(Ess(r,
J,u)&&P===q){Q.push(d);J=r;r++;continue}else e.push({content:d,skippedOnRow:r});else if(d.continuationItemRenderer){N(!0);Q.push(d);P=0;break}if(P===0)Q.push.apply(Q,_.mZ(T));else if(!t&&F.length===0){N(!1);Q.push.apply(Q,_.mZ(T));P=0;break}}r++;w&&(Q.push(w.content),r++);k=w=void 0}zR7(Q,q);g&&os9(Q,g);return{orderedContent:Q,pinnedContentNotShownTargetIds:z}};
MKT=function(){return _.US.apply(0,arguments).flat().filter(function(F){return F}).join(";")};
Gpv=function(){return iYs(TMy,MKT.apply(null,_.mZ(_.US.apply(0,arguments))))};
Dj7=function(F){switch(F){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
Pky=function(F,q){if(q){var t=_.u1().getState().entities.flowStateEntity,u=Wfv(F),J=[q];u&&u!==q&&J.push(u);var g=!0,Y;if(t&&F.flowStateEntityKey&&((Y=t[F.flowStateEntityKey])==null?void 0:Y.primaryButtonDisabled)!==void 0){var Q;g=!((Q=t[F.flowStateEntityKey])==null||!Q.primaryButtonDisabled)}OYT(F,u!=null?u:q,J,g)}};
Abv=function(F){return _.yL(_.u1(),function(q){return q.entities.flowStateEntity},function(q,t){if(F.flowStateEntityKey){var u,J=q==null?void 0:(u=q[F.flowStateEntityKey])==null?void 0:u.currentStepId,g;
t=t==null?void 0:(g=t[F.flowStateEntityKey])==null?void 0:g.currentStepId;g=_.u1().getState().talkToRecs;if(J&&J!==t){var Y;q=(q==null?void 0:(Y=q[F.flowStateEntityKey])==null?void 0:Y.stepIdStack)||Object.keys(g.stepStates);Y=!xjT(g==null?void 0:g.stepStates[J]);OYT(F,J,q,Y)}}})};
vsT=function(F){return _.yL(_.u1(),_.vE3,function(q){var t=Wfv(F);if(t){var u=Object.keys(q.stepStates);q=!xjT(q==null?void 0:q.stepStates[t]);OYT(F,t,u,q)}})};
xjT=function(F){var q=Object.keys((F==null?void 0:F.selectionStates)||{}).reduce(function(g,Y){return g||(F==null?void 0:F.selectionStates[Y].isSelected)},!1),t,u,J=!!(F==null?0:(t=F.userQuery)==null?0:(u=t.userQuery)==null?0:u.trim());
return q||J};
Wfv=function(F){if(F.flowStateEntityKey){var q,t,u=(q=_.u1().getState().entities.flowStateEntity)==null?void 0:(t=q[F.flowStateEntityKey])==null?void 0:t.currentStepId;if(u)return u}};
OYT=function(F,q,t,u){_.u1().dispatch(_.Gl("flowStateEntity",F.flowStateEntityKey,{currentStepId:q,stepIdStack:t,key:F.flowStateEntityKey,primaryButtonDisabled:u}))};
_.Ipy=function(F,q){return _.iC(F.entities,"youchatPendingResponseEntity",q)};
_.HYw=function(F){return function(q){_.ud(_.Gl("youchatPendingResponseEntity",F,{entityKey:F,isPendingResponse:q}))}};
mjh=function(F){F==null||F.addEventListener("DOMLoaded",function(){F.goToAndPlay(F.totalFrames-48,!0)})};
_.sK=function(F){this.__isSoyCss=!0;this.css=NM5.apply(null,[F.strings].concat(_.mZ(F.args)))};
_.sK.prototype.toString=function(){return this.css};
var w1v=function(){_.sK.apply(this,arguments)};
_.M(w1v,_.sK);var TMy=_.LZ(["",""]);var $js;var bYJ;_.Hh({_template:function(){if(bYJ!==void 0)return bYJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
var q=F.content,t=q.insertBefore;$js===void 0&&($js=document.createElement("template"));var u=$js;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return bYJ=F},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var ybC=new _.Xk("talkToRecsFlowRenderer");var Ckw=new _.Xk("flowRootRenderer");var djJ=new _.Xk("learningJourneyQuizViewModel");var VKJ=new _.Xk("chipsShelfViewModel");var UjC=new _.Xk("responsiveContainerConfiguration");var S4y=new _.Xk("horizontalShelfViewModel");_.hRT=new _.Xk("engagementPanelSectionListRenderer");var Kf9=new _.Xk("conversationResourceViewModel");var BMs=function(){this.horizontal=!1},Lfw=function(F,q){F.horizontal=q};
BMs.prototype.position=function(F,q,t,u){u=u===void 0?1:u;F=this.delta(F)*u+q;u=Math.max(q,t);return F>=Math.min(q,t)&&F<=u?F:t};
BMs.prototype.axis=function(F){F=this.direction(F);return F==="up"||F==="down"?"Y":"X"};var MS=function(F,q,t){q=q===void 0?_.K8():q;this.target=F;this.manager=q;this.touchAction=t;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
MS.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(_.mZ(this.events)));for(var F=_.X(this.events),q=F.next();!q.done;q=F.next())this.listen(q.value)}};
MS.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.mZ(this.events)));for(var F=_.X(this.events),q=F.next();!q.done;q=F.next())this.unlisten(q.value)}};
MS.prototype.listen=function(F){this.eventMap[F]&&this.target.addEventListener(F,this.eventMap[F])};
MS.prototype.unlisten=function(F){this.eventMap[F]&&this.target.removeEventListener(F,this.eventMap[F])};var TE=function(){BMs.apply(this,arguments)};
_.M(TE,BMs);TE.prototype.direction=function(F){var q=F.detail;F=q.deltaY;q=q.deltaX;return F&&!this.horizontal?F>0?"down":"up":q&&this.horizontal?q>0?"right":"left":"none"};
TE.prototype.distance=function(F){return Math.abs(this.delta(F))};
TE.prototype.delta=function(F){var q=this.direction(F),t=F.detail;F=t.deltaX;t=t.deltaY;return q==="up"||q==="down"?t||0:F||0};
TE.prototype.velocity=function(F){var q=this.direction(F),t=F.detail;F=t.velocityX;t=t.velocityY;return Math.abs(q==="up"||q==="down"?t||0:F||0)};_.GE=function(F,q,t,u,J,g){J=J===void 0?new TE:J;g=g===void 0?_.K8():g;MS.call(this,q,g,u);var Y=this;this.element=F;this.target=q;this.config=t;this.input=J;this.manager=g;this.events=["panstart","panmove","panend"];this.onPanStart=function(){Y.config.draggingClass&&Y.element.classList.add(Y.config.draggingClass);Y.config.startAction&&Y.config.startAction()};
this.onPanMove=function(Q){var e=fp9(Y,Q);if(e){Y.move(Q,e);e.fade&&Y.fade(Q,e);var r=Y.input.direction(Q);e.moveAction&&e.moveAction(apw(Y,Q,e),r)}};
this.onPanEnd=function(Q){var e,r,N,w,k,z;return _.p(function(T){if(T.nextAddress==1){Y.animationRequestId&&cancelAnimationFrame(Y.animationRequestId);Y.animationRequestId=void 0;e=fp9(Y,Q);if(!e)return T.return();r=e;N=r.triggerAction;w=r.fade;k=r.disableFinish;z=r.translateBack;var P=Y.input.velocity(Q),v=Y.input.distance(Q),H=Y.threshold(e);return P>.3&&v>10||v>H?k?T.jumpTo(6):w?T.yield(j9y(Y,Q),6):T.yield(cbs(Y,Q,e),6):z?T.yield(Y.translateBack(Q),3):T.jumpTo(3)}T.nextAddress!=3&&N&&N();Y.config.draggingClass&&
Y.element.classList.remove(Y.config.draggingClass);Y.reset();_.WA(T)})};
F=Object.keys(t.triggers);this.directions=new Set(F);Lfw(this.input,this.directions.has("right")||this.directions.has("left"))};
_.M(_.GE,MS);_.GE.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var fp9=function(F,q){q=F.input.direction(q);return F.config.triggers[q]};
_.GE.prototype.move=function(F,q){var t=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var u=t.input.axis(F),J=t.input.position(F,t.config.startPosition,q.endPosition,q.moveRatio||1);t.element.style.transform="translate"+u+"("+J+"px)";t.animationRequestId=void 0}))};
var apw=function(F,q,t){var u=t.moveRatio||1;t=Math.abs(F.config.startPosition-t.endPosition);return Math.min(F.input.distance(q)*u,t)/t};
_.GE.prototype.fade=function(F,q){var t=q.endOpacity;F=apw(this,F,q);F>0&&(this.element.style.opacity=""+(((t||0)-1)*F+1))};
_.GE.prototype.threshold=function(F){return F.threshold?F.threshold:Math.abs(F.endPosition-this.config.startPosition)/3};
var cbs=function(F,q,t){var u,J,g,Y,Q,e,r;return _.p(function(N){if(N.nextAddress==1)return u=F.input.delta(q)+F.config.startPosition,J=F.input.axis(q),g=t,Y=g.endPosition,Q=g.transitionEndPosition,r=(e=Q)!=null?e:Y,N.yield(F.element.animate([{transform:"translate"+J+"("+u+"px)"},{transform:"translate"+J+"("+r+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);F.element.style.transform="translate"+J+"("+r+"px)";_.WA(N)})};
_.GE.prototype.translateBack=function(F){var q=this,t,u;return _.p(function(J){if(J.nextAddress==1){if(!q.element.style.transform)return J.return();t=q.input.axis(F);u=q.config.startPosition;return J.yield(q.element.animate([{transform:q.element.style.transform},{transform:"translate"+t+"("+u+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}q.element.style.transform="translate"+t+"("+u+"px)";_.WA(J)})};
var j9y=function(F,q){var t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return t=F.input.delta(q)+F.config.startPosition,u=F.input.axis(q),J=t+70,g=F.element.style.opacity===""?1:F.element.style.opacity,Y.yield(F.element.animate([{transform:"translate"+u+"("+t+"px)",opacity:g},{transform:"translate"+u+"("+J+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);F.element.style.transform="translate"+u+"("+J+"px)";F.element.style.opacity="0";_.WA(Y)})};var Dr=function(){var F=_.Ga.apply(this,arguments)||this;F._noAccessors=!0;F.scrollRate=3;F.autoScrollAnimationStart=0;F.autoScrollPaused=!1;F.autoScrollRafId=0;return F};
_.M(Dr,_.Ga);_.l=Dr.prototype;_.l.created=function(){var F=this;this.boundAutoScrollHandler=function(q){F.autoScroll(q)}};
_.l.detached=function(){this.hostElement.removeEventListener("mouseout",_.kM(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.kM(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.kM(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.l.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.kM(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.kM(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.kM(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.kM(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.kM(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.kM(this,this.endAutoScroll)),this.endAutoScroll())};
_.l.autoScroll=function(F){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=F);var q;if(q=!this.autoScrollPaused&&this.scrollTarget)q=this.scrollTarget,q=q.scrollHeight-q.scrollTop!==q.clientHeight;q&&(q=1E3/this.scrollRate,F-=this.autoScrollAnimationStart,F>q&&(this.scrollTarget.scrollTop+=Math.ceil(F/q),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.l.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.l.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Dr.prototype.autoScrollEnabledChanged=Dr.prototype.autoScrollEnabledChanged;_.C([_.O(),_.V("design:type",Object)],Dr.prototype,"scrollRate",void 0);_.C([_.O(),_.V("design:type",Object)],Dr.prototype,"scrollTarget",void 0);_.C([_.O(),_.V("design:type",Boolean)],Dr.prototype,"autoScrollEnabled",void 0);_.C([_.za("autoScrollEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Dr.prototype,"autoScrollEnabledChanged",null);_.C([_.Dj()],Dr);_.FDv=[Dr.prototype];var qj3;var WV=function(){var F=_.x.apply(this,arguments)||this;F.buttonUpdate=_.E("web_button_rework");F.dismissButtonOverrides=_.E("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;F.forceDarkTheme=!1;F.forceLightTheme=!1;F.dynamicTextHeight=94;F.hasOverflowButton=!1;F.isInfeedModernization=!1;return F};
_.M(WV,_.x);_.l=WV.prototype;_.l.computeUrlImg=function(F){if(F)return _.RI(F.thumbnails)};
_.l.getLogoHeight=function(F){return this.logoWithPadding(F)?"31":"24"};
_.l.getLogoClassName=function(F){return this.logoWithPadding(F)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.l.logoWithPadding=function(F){var q,t;return(F=(q=F.thumbnails)==null?void 0:(t=q[0])==null?void 0:t.height)&&F%31===0?!0:!1};
_.l.sendImpressionEndpoints=function(F){F.impressionEndpoints&&_.RD(this.hostElement,F.impressionEndpoints)};
_.l.observeBasicPalette=function(){var F,q,t=(F=this.data)==null?void 0:(q=F.colorData)==null?void 0:q.basicColorPaletteData;t?_.II(this.hostElement,t):_.II(this.hostElement,{})};
_.l.observeDataChanged=function(){var F;this.dynamicTextHeight=((F=this.data)==null?0:F.supplementalText)?74:94;var q;this.hasSupplementalText=!((q=this.data)==null||!q.supplementalText);if(_.E("web_button_rework")){var t,u,J,g;F=(t=this.data)==null?void 0:(u=t.actionButton)==null?void 0:(J=u.buttonRenderer)==null?void 0:(g=J.colorData)==null?void 0:g.basicColorPaletteData;var Y,Q,e;if(!((Y=this.data)==null?0:(Q=Y.actionButton)==null?0:(e=Q.buttonRenderer)==null?0:e.style)&&F){this.computeIsInfeedModernization(this.data)||
(F.borderColor=F.foregroundTitleColor);var r,N;this.set("data.actionButton.buttonRenderer",_.m7.unsafeClone((r=this.data)==null?void 0:(N=r.actionButton)==null?void 0:N.buttonRenderer))}}};
_.l.observeDataForCounterfactual=function(){if(_.E("kevlar_banner_cf_extra_logging")){var F;((F=this.data)==null?0:F.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.l.computeSupplementalStyle=function(){var F;if((F=this.data)!=null&&F.supplementalText){var q,t,u;if((q=this.data)==null?0:(t=q.colorData)==null?0:(u=t.basicColorPaletteData)==null?0:u.foregroundActivatedColor)return F=_.hn(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+F+"; --yt-endpoint-hover-color:"+F+"; --yt-endpoint-visited-color:"+F+"; --yt-formatted-string-bold-font-weight:700;"}};
_.l.computeForcedDarkTheme=function(){var F,q,t,u=(F=this.data)==null?void 0:(q=F.actionButton)==null?void 0:(t=q.buttonRenderer)==null?void 0:t.style,J,g,Y;F=kpD(((J=this.data)==null?void 0:(g=J.colorData)==null?void 0:(Y=g.basicColorPaletteData)==null?void 0:Y.backgroundColor)||0);return u&&F};
_.l.computeForcedLightTheme=function(){var F,q,t,u=(F=this.data)==null?void 0:(q=F.actionButton)==null?void 0:(t=q.buttonRenderer)==null?void 0:t.style,J,g,Y;F=!kpD(((J=this.data)==null?void 0:(g=J.colorData)==null?void 0:(Y=g.basicColorPaletteData)==null?void 0:Y.backgroundColor)||0);return u&&F};
_.l.computeHasOverflowButton=function(F){return!!F.overflowButton};
_.l.computeHasTitle=function(F){return!!F.title};
_.l.computeTitleMaxFontSize=function(F){return this.computeHasOverflowButton(F)?28:64};
_.l.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.l.computeIsInfeedModernization=function(){var F,q,t,u,J=(F=this.data)==null?void 0:(q=F.actionButton)==null?void 0:(t=q.buttonRenderer)==null?void 0:(u=t.colorData)==null?void 0:u.basicColorPaletteData;return(J==null?void 0:J.backgroundColor)===452984831||(J==null?void 0:J.backgroundColor)===218103808};
WV.prototype.observeDataForCounterfactual=WV.prototype.observeDataForCounterfactual;WV.prototype.observeDataChanged=WV.prototype.observeDataChanged;WV.prototype.observeBasicPalette=WV.prototype.observeBasicPalette;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],WV.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],WV.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],WV.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],WV.prototype,"buttonUpdate",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],WV.prototype,"hasSupplementalText",void 0);_.C([_.O(),_.V("design:type",Object)],WV.prototype,"dismissButtonOverrides",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.V("design:type",Boolean)],WV.prototype,"hasTitle",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.V("design:type",Object)],WV.prototype,"forceDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.V("design:type",Object)],WV.prototype,"forceLightTheme",void 0);_.C([_.O(),_.V("design:type",Object)],WV.prototype,"dynamicTextHeight",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.V("design:type",Object)],WV.prototype,"hasOverflowButton",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.V("design:type",Object)],WV.prototype,"isInfeedModernization",void 0);_.C([_.za("data.colorData.basicColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WV.prototype,"observeBasicPalette",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WV.prototype,"observeDataChanged",null);_.C([_.za("data.isVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WV.prototype,"observeDataForCounterfactual",null);_.C([_.m({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],WV);
_.b(WV,"ytd-banner-promo-renderer",function(){if(qj3!==void 0)return qj3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return qj3=F},{mode:1});var tX5;var umh;var JwD;var O8=function(){return _.x.apply(this,arguments)||this};
_.M(O8,_.x);_.C([_.O(),_.V("design:type",Object)],O8.prototype,"data",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.C([_.m({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],O8);
_.b(O8,"ytd-hashtag-grid-tile-renderer",function(){if(JwD!==void 0)return JwD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return JwD=F},{mode:1});var PV=function(){return _.x.apply(this,arguments)||this};
_.M(PV,_.x);PV.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
PV.prototype.updateRichGridTrendingHashtagsVisibility=function(){var F,q;if(((F=this.data)==null||!F.isExpanded)&&(q=this.data)!=null&&q.tiles){F=this.data.tiles.length;q=F>this.richGridItemsPerRow?this.richGridItemsPerRow+1:F;var t=Math.ceil(F/q);this.fullyVisibleRows=F%q===1&&t===2?1:Math.min(t,2);this.isShowMoreVisible=this.fullyVisibleRows<t}};
PV.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
PV.prototype.updateRichGridTrendingHashtagsVisibility=PV.prototype.updateRichGridTrendingHashtagsVisibility;_.C([_.O(),_.V("design:type",Object)],PV.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Number)],PV.prototype,"fullyVisibleRows",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],PV.prototype,"isShowMoreVisible",void 0);_.C([_.O({selector:_.bC,value:0}),_.V("design:type",Number)],PV.prototype,"richGridItemsPerRow",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],PV.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],PV.prototype,"ytdReduxBehavior",void 0);_.C([_.za("data","richGridItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],PV.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.C([_.m({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],PV);
_.b(PV,"ytd-hashtag-grid-shelf-renderer",function(){if(umh!==void 0)return umh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return umh=F},{mode:1});var s1J;var g85;var x2=function(){var F=_.x.apply(this,arguments)||this;F.visibleVideos=[];F.hiddenVideos=[];F.modern=_.E("web_modern_buttons");F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(x2,_.x);_.l=x2.prototype;_.l.attached=function(){var F=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",F);this.onDarkModeToggledAction(F)};
_.l.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"}}}};
_.l.dataChanged=function(){var F=this;this.requestElementsPerRow();var q,t;this.currentColorPalette=this.isDarkTheme?(q=this.data)==null?void 0:q.darkColorData:(t=this.data)==null?void 0:t.lightColorData;var u;if((u=this.currentColorPalette)==null?0:u.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.tJ(this,function(){F.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.l.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.l.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.l.computeIsFirstFeedItem=function(F){return F};
_.l.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&this.set("isDarkTheme",F);this.data&&(this.currentColorPalette=F?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.l.getCurrentLogo=function(F,q){if(F)return q?F.darkLogoImage:F.lightLogoImage};
_.l.computeTitleStyle=function(F){var q;if((q=this.data)!=null&&q.title&&F&&F.textPrimary!==void 0)return"color:"+_.hn(F.textPrimary)+";"};
_.l.computeSubtitleStyle=function(F){var q;if((q=this.data)!=null&&q.subtitle&&F&&F.textSecondary!==void 0)return"color:"+_.hn(F.textSecondary)+";"};
_.l.computeDismissIconStyle=function(F){if(this.data&&this.data.dismissButton&&F&&F.textPrimary!==void 0)return"--yt-button-color:"+_.hn(F.textPrimary)+";"};
_.l.computeOverflowButtonStyle=function(F){if(this.data&&this.data.overflowButton&&F&&F.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.hn(F.textPrimary)+";--yt-spec-icon-active-other:"+_.hn(F.textPrimary)+";"};
_.l.computeBackgroundStyle=function(F){if(F&&this.data){var q="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var t=_.RI((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);t&&(q+='background-image:url("'+t+'");')}F.backgroundColor!==void 0&&(q+="background-color:"+_.KG(F.backgroundColor)+";");return q}};
_.l.computeButton=function(){var F,q=Object.assign({},_.n((F=this.data)==null?void 0:F.showMoreButton,_.th));if(this.modern&&q){q.style="STYLE_MONO_OUTLINE";var t;if(F=(t=this.currentColorPalette)==null?void 0:t.textPrimary)q.colorData={basicColorPaletteData:{foregroundTitleColor:F,borderColor:F}}}return q};
_.l.shouldShowBottomButton=function(F,q){return!(F==null?0:F.header)&&!(F==null||!F.primaryButton)&&q<3};
_.l.checkExpanded=function(F){this.isExpanded=F&&F.content?this.hiddenVideos.length===0:!0};
_.l.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.l.getLogoHeight=function(F){return this.logoWithPadding(F)?"26":"20"};
_.l.getLogoImageId=function(F){return this.logoWithPadding(F)?"logo-image-with-padding":"logo-image"};
_.l.computeHasSectionHeader=function(F){return!!F.header};
_.l.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var F;if((F=this.data.primaryButton)==null?0:F.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var q;((q=this.data.dismissButton)==null?0:q.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var t,u;((t=this.data)==null?0:(u=t.primaryButton)==null?0:u.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.l.setVisibleVideos=function(F){if(this.data&&this.data.content)if(this.data.content.length){var q=this.data.content.length;this.data.header?F?(this.visibleVideos=this.data.content.slice(0,Math.min(q,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(q,this.slimItemsPerRow),q)):(this.visibleVideos=this.data.content.slice(0,Math.min(q,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(q,this.elementsPerRow),q)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(q,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(q,this.elementsPerRow),q)):(this.visibleVideos=this.data.content.slice(0,Math.min(q,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(q,this.elementsPerRow-1),q))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.l.setHasMovieRenderer=function(){var F;if((F=this.data)!=null&&F.content){var q;this.hasMovieRenderer=!!_.n((q=this.data)==null?void 0:q.content[0],_.Hiv)}else this.hasMovieRenderer=!1};
_.l.requestElementsPerRow=function(){_.Q0(this.hostElement,"yt-request-elements-per-row")};
_.l.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var F=_.X(this.hiddenMediaRenderers),q=F.next();!q.done;q=F.next())q.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(F=_.ep(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&F.focus()}};
_.l.updateTitleSpec=function(){var F;(F=this.data)!=null&&F.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.l.logoWithPadding=function(F){var q,t,u;return(F=(q=this.getCurrentLogo(F,this.isDarkTheme))==null?void 0:(t=q.thumbnails)==null?void 0:(u=t[0])==null?void 0:u.height)&&F%31===0?!0:!1};
_.l.onUpdateElementsPerRowAction=function(F,q,t){F&&this.elementsPerRow!==F&&(this.elementsPerRow=F);t&&this.slimItemsPerRow!==t&&(this.slimItemsPerRow=t)};
x2.prototype.slimItemsPerRowChanged=x2.prototype.slimItemsPerRowChanged;x2.prototype.elementsPerRowChanged=x2.prototype.elementsPerRowChanged;x2.prototype.dataChanged=x2.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],x2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],x2.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],x2.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],x2.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],x2.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],x2.prototype,"currentColorPalette",void 0);_.C([_.O(),_.V("design:type",Array)],x2.prototype,"visibleVideos",void 0);_.C([_.O(),_.V("design:type",Array)],x2.prototype,"hiddenVideos",void 0);
_.C([_.O(),_.V("design:type",Object)],x2.prototype,"primaryButton",void 0);_.C([_.O({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],x2.prototype,"elementsPerRow",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],x2.prototype,"isDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],x2.prototype,"isExpanded",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],x2.prototype,"largeTitle",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],x2.prototype,"hasMovieRenderer",void 0);_.C([_.O(),_.V("design:type",Number)],x2.prototype,"slimItemsPerRow",void 0);_.C([_.O(),_.V("design:type",Boolean)],x2.prototype,"showLightVideoMetadata",void 0);_.C([_.O(),_.V("design:type",Boolean)],x2.prototype,"showDarkVideoMetadata",void 0);_.C([_.O(),_.V("design:type",Number)],x2.prototype,"videoMetadataColor",void 0);
_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],x2.prototype,"miniMode",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.V("design:type",Boolean)],x2.prototype,"isFirstFeedItem",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.V("design:type",Boolean)],x2.prototype,"hasSectionHeader",void 0);
_.C([_.O({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],x2.prototype,"roundedContainer",void 0);_.C([_.Ta("#visible-video-container ytd-rich-grid-media"),_.V("design:type",Array)],x2.prototype,"visibleMediaRenderers",void 0);_.C([_.Ta("#hidden-video-container ytd-rich-grid-media"),_.V("design:type",Array)],x2.prototype,"hiddenMediaRenderers",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],x2.prototype,"modern",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x2.prototype,"dataChanged",null);_.C([_.za("elementsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x2.prototype,"elementsPerRowChanged",null);_.C([_.za("slimItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x2.prototype,"slimItemsPerRowChanged",null);
_.C([_.m({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],x2);
_.b(x2,"ytd-brand-video-shelf-renderer",function(){if(g85!==void 0)return g85;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return g85=F},{mode:1});var l7J;var AZ=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(AZ,_.x);_.l=AZ.prototype;_.l.attached=function(){var F=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",F);this.onDarkModeToggledAction(F)};
_.l.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"}}}};
_.l.dataChanged=function(){this.requestElementsPerRow();var F,q;this.currentColorPalette=this.isDarkTheme?(F=this.data)==null?void 0:F.darkColorData:(q=this.data)==null?void 0:q.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.l.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.l.computeIsFirstFeedItem=function(F){return F};
_.l.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&this.set("isDarkTheme",F);this.data&&(this.currentColorPalette=F?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(F),this.updateButtonPalette())};
_.l.shouldShowThumbnailInMetadata=function(F){return F<=1};
_.l.computeVideoMetadataColor=function(){if(this.data){var F;if((F=this.currentColorPalette)==null?0:F.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.l.computeTitleStyle=function(F){var q;if((q=this.data)!=null&&q.title&&F&&F.textPrimary!==void 0)return"color:"+_.hn(F.textPrimary)+";"};
_.l.computeSubtitleStyle=function(F){var q;if((q=this.data)!=null&&q.subtitle&&F&&F.textSecondary!==void 0)return"color:"+_.hn(F.textSecondary)+";"};
_.l.computeOverflowButtonStyle=function(F){if(this.data&&this.data.overflowButton&&F.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.hn(F.textPrimary)+";--yt-spec-icon-active-other:"+_.hn(F.textPrimary)+";"};
_.l.computeBackgroundStyle=function(F){if(F&&this.data){var q="";F.backgroundColor!==void 0&&(q+="background-color:"+_.KG(F.backgroundColor)+";");return q}};
_.l.computeHasOverflowButton=function(F){return!!F.overflowButton};
_.l.updateButtonPalette=function(){if(this.data){var F;if((F=this.data.primaryButton)==null?0:F.buttonRenderer){var q;if((q=this.currentColorPalette)==null?0:q.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var t;((t=this.currentColorPalette)==null?0:t.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)})}}};
_.l.requestElementsPerRow=function(){_.Q0(this.hostElement,"yt-request-elements-per-row")};
_.l.updateTitleSpec=function(){var F;(F=this.data)!=null&&F.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.l.onUpdateElementsPerRowAction=function(F){F&&this.elementsPerRow!==F&&(this.elementsPerRow=F)};
AZ.prototype.elementsPerRowChanged=AZ.prototype.elementsPerRowChanged;AZ.prototype.dataChanged=AZ.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],AZ.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],AZ.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],AZ.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],AZ.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],AZ.prototype,"currentColorPalette",void 0);_.C([_.O(),_.V("design:type",Object)],AZ.prototype,"primaryButton",void 0);
_.C([_.O({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],AZ.prototype,"elementsPerRow",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],AZ.prototype,"isDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],AZ.prototype,"titleSize",void 0);_.C([_.O(),_.V("design:type",Number)],AZ.prototype,"videoMetadataColor",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],AZ.prototype,"miniMode",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.V("design:type",Boolean)],AZ.prototype,"isFirstFeedItem",void 0);_.C([_.O({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],AZ.prototype,"roundedContainer",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.V("design:type",Boolean)],AZ.prototype,"hasOverflowButton",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AZ.prototype,"dataChanged",null);_.C([_.za("elementsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AZ.prototype,"elementsPerRowChanged",null);_.C([_.m({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],AZ);
_.b(AZ,"ytd-brand-video-singleton-renderer",function(){if(l7J!==void 0)return l7J;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return l7J=F},{mode:_.Nc("kevlar_poly_si_batch_j070")?1:2});var Xmh;var Yjs=_.ld(function(F){var q=F.data;return _.Z(_.sc,{data:function(){return q().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(q().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var t=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":t=88;break a;default:t=88}return t},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return q().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Sj"),Q1C=_.ld(function(F){var q=F.metadataRow;
var t=F.delimiter;return _.Z(_.Gn,{each:function(){return q().textParts||[]},
keyBy:"INDEX"},function(u,J){return _.Z(_.ln,null,_.Z(_.rv,{text:u,noWrap:!0,userInput:!0}),_.Z(pm3,{delimiter:t,max:function(){return q().textParts.length},
index:J}))})},"Tj"),pm3=_.ld(function(F){var q=F.delimiter;
var t=F.max;var u=F.index;return _.Z(_.R,{cond:function(){return(q==null?void 0:q())&&t()-1>u()},
then:function(){return _.Z("span",null,q)}})},"Uj"),eqQ=_.ld(function(F){var q=F.data;
F={};return _.Z("yt-profile-page-header-information-view-model",{class:_.Ec("profile-page-header-information-view-model-wiz",(F["profile-page-header-information-view-model-wiz--mobile"]=!1,F))},_.Z(_.R,{cond:function(){return q().onTap},
then:function(){return _.Z(_.Ds,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.Sg(q().onTap)}},_.Z(_.Tl,{data:function(){return q().thumbnail}},{profilePageHeaderThumbnailViewModel:Yjs}))},
else:function(){return _.Z("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.Z(_.Tl,{data:function(){return q().thumbnail}},{profilePageHeaderThumbnailViewModel:Yjs}))}}),_.Z("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.Z(_.R,{cond:function(){return q().onTap},
then:function(){return _.Z(_.Tl,{data:function(){return q().title}},{profilePageHeaderTitleViewModel:function(t){var u=t.data;
return _.Z(_.Ds,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.Sg(u().onTap)}},_.Z(_.rv,{text:function(){return u().title}}))}})},
else:function(){return _.Z(_.Tl,{data:function(){return q().title}},{profilePageHeaderTitleViewModel:function(t){var u=t.data;
return _.Z(_.rv,{text:function(){return u().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.Z(_.Tl,{data:function(){return q().metadata}},{profilePageHeaderMetadataViewModel:function(t){var u=t.data;
return _.Z(_.R,{cond:function(){return u().metadataRows},
then:function(J){return _.Z("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.Z(_.Gn,{each:J,keyBy:"INDEX"},function(g,Y){return _.Z(_.ln,null,_.Z(Q1C,{metadataRow:g,delimiter:" \u2022 "}),_.Z(pm3,{delimiter:" \u2022 ",max:function(){return J().length},
index:Y}))}))}})}})))},"Vj");
eqQ.idomCompat=!0;_.ei(eqQ,"yt-profile-page-header-information-view-model",{props:{data:_.NH}});var vV=function(){return _.x.apply(this,arguments)||this};
_.M(vV,_.x);vV.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],vV.prototype,"data",void 0);_.C([_.m({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],vV);
_.b(vV,"ytd-effect-pivot-header-view-model",function(){if(Xmh!==void 0)return Xmh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Xmh=
F},{mode:1});var ZX3;var IZ=function(){return _.x.apply(this,arguments)||this};
_.M(IZ,_.x);IZ.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],IZ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],IZ.prototype,"data",void 0);_.C([_.m({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],IZ);
_.b(IZ,"ytd-source-pivot-header-renderer",function(){if(ZX3!==void 0)return ZX3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return ZX3=F},{mode:1});_.Rq7=_.ld(function(F){var q=F.data;var t=function(){var u;return _.yg((u=q())==null?void 0:u.rendererContext)};
F={};return _.Z("content-list-item-view-model",{el:_.l_(_.CH(function(){return q().rendererContext})),
class:_.Ec("ytContentListItemViewModelHost",(F.ytContentListItemViewModelTappable=t,F)),role:function(){return t()?"listitem":void 0},
tabindex:function(){return t()?0:void 0}},_.Z("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.Z("div",{class:"ytContentListItemViewModelImageContainer"},_.Z(_.R,{cond:function(){return q().image},
then:function(u){return _.Z(_.sc,{data:u,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.Z(_.Tl,{data:function(){var u;
return(u=q())==null?void 0:u.avatar}},{avatarViewModel:_.FJ})),_.Z("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.Z("div",{class:_.Ec("ytContentListItemViewModelTitle",function(){a:{switch(q().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var u="ytContentListItemViewModelProminentTitle";
break a}u=void 0}return u})},_.Z(_.rv,{text:function(){return q().title}})),_.Z("div",{class:"ytContentListItemViewModelMetadata"},_.Z(_.Tl,{data:function(){return q().metadata}},{contentMetadataViewModel:function(u){return _.Z(_.DN,{data:u.data,
layout:1})}})))),_.Z("div",{class:"ytContentListItemViewModelActionButton"},_.Z(_.Tl,{data:function(){var u;
return(u=q())==null?void 0:u.actionButton}},{buttonViewModel:_.AB,
toggleButtonViewModel:_.j9})))},"Wj");_.ei(_.ld(function(F){var q=function(){return F.data().background},t=function(){return F.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},u=function(){return F.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.Z("yt-card-view-model",{class:_.Ec("ytCardViewModelHost",F.className)},_.Z(_.WE,{contentId:function(){return F.data().contentId}},function(){return _.Z("div",{class:_.Ec("ytCardViewModelCardViewModelInner",function(){return Dj7(F.data().cardStyle)},function(){var J;
a:{switch((J=F.data().cardState)==null?void 0:J.selectionState){case "CARD_SELECTION_STATE_SELECTED":J="ytCardViewModelSelected";break a}J=void 0}return J})},_.Z(_.Tl,{data:q},{cinematicContainerViewModel:function(J){return _.Z(_.uAe,{data:J.data})}}),_.Z("div",{class:"ytCardViewModelContentWrapper"},_.Z(_.R,{cond:function(){return!t()},
then:function(){var J={};return _.Z("div",{class:"ytCardViewModelTopContentContainer"},_.Z("div",{class:"ytCardViewModelTopContent"},_.Z(_.Tl,{data:function(){return F.data().topContent}},{contentListItemViewModel:function(g){return _.Z(_.Rq7,{data:g.data})}})),_.Z("div",{class:_.Ec("ytCardViewModelInlineTrailingAction",(J.ytCardViewModelInlineCenterTrailingAction=u,J))},_.Z(_.Tl,{data:function(){return F.data().trailingAction}},{buttonViewModel:function(g){return _.Z(_.AB,{data:g.data})}})))}}),
_.Z("div",{class:"ytCardViewModelBodyContent"},_.Z(_.Tl,{data:function(){return F.data().bodyContent}},{contentListItemViewModel:function(J){return _.Z(_.Rq7,{data:J.data})}}))),_.Z(_.R,{cond:function(){return t()},
then:function(){return _.Z("div",{class:"ytCardViewModelOverlayTrailingAction"},_.Z(_.Tl,{data:function(){return F.data().trailingAction}},{buttonViewModel:function(J){return _.Z(_.AB,{data:J.data})}}))}}))}))},"Xj"),"yt-card-view-model",{props:{data:_.NH,
className:_.NH}});_.ei(_.ld(function(F){var q=function(){return _.n(F.data().flowRoot,Ckw)};
_.v_(function(){var t=q(),u=function(){},J=function(){};
if(t){var g,Y,Q,e=((Q=_.n((g=q())==null?void 0:(Y=g.steps)==null?void 0:Y[0],_.ADy))==null?void 0:Q.stepId)||"";Pky(t,e);u=Abv(t);J=vsT(t)}_.vj(function(){var r=q();r&&_.u1().dispatch(_.Gl("flowStateEntity",r.flowStateEntityKey));u();u=function(){};
J();J=function(){}})});
return _.Z("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.Z(_.WE,{contentId:function(){return F.data().contentId}},function(){return _.Z("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.Z(_.R,{cond:q,
then:function(t){return _.Z(_.bWs,{data:t})}}))}))},"Yj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.NH}});_.ei(_.ld(function(){return _.Z("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.Z("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.Z("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.Z(_.C79,null)),_.Z(_.Y2r,{data:{rows:1},isExploreHub:!0}))},"Zj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.ei(_.ld(function(F){var q=F.data;var t=F.standardUnitMinWidth;F=_.X((0,_.ZmL)(q));var u=F.next().value,J=F.next().value,g=function(){var Q,e=(Q=u())==null?void 0:Q.contents;return e==null||e.length===0},Y=function(){J(Object.assign({},u(),{contents:[]}))};
return _.Z("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.l_(_.lR({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var Q=_.n(q().chipsShelf,VKJ);if(Q!=null&&Q!=null&&Q.autoselectChipOnVisible){var e,r,N=_.n(Q==null?void 0:(e=Q.contents)==null?void 0:e[(r=Q.autoselectedChipIndex)!=null?r:0],_.lv);N&&N.tapCommand&&_.L9(N.tapCommand)}}}))},_.Z(_.WE,{contentId:function(){return q().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.Z("div",null,_.Z("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.Z(_.Tl,{data:function(){return q().header}},{sectionHeaderViewModel:function(Q){return _.Z(_.Ae,{data:Q.data,
disableHorizontalPadding:!0})}})),_.Z("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.Z(_.Tl,{data:function(){return q().chipsShelf}},{chipsShelfViewModel:function(Q){return _.Z(_.F_,{data:Q.data,
callback:Y,selectionBehavior:1})}})),_.Z("div",null,_.Z(_.R,{cond:g,
then:function(){return _.Z("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.Z(_.Y2r,{data:{rows:1},isExploreHub:!0}))}}),_.Z(_.Tl,{data:function(){var Q;
return(Q=u())==null?void 0:Q.contents}},{richShelfRenderer:function(Q){return _.Z(_.r2J,{data:Q.data,
isInnerShelf:!0,standardUnitMinWidth:t})}})))}))},"$j"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.NH,
standardUnitMinWidth:_.NH}});var HV=function(){return _.x.apply(this,arguments)||this};
_.M(HV,_.x);
HV.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}}};
HV.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.C([_.D(_.s9),_.V("design:type",Object)],HV.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],HV.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.Qd),_.V("design:type",Object)],HV.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],HV.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Number)],HV.prototype,"standardUnitMinWidth",void 0);_.C([_.m({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],HV);
_.b(HV,"ytd-rich-section-renderer",function(){if(s1J!==void 0)return s1J;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return s1J=F},{mode:_.Nc("kevlar_poly_si_batch_j029")?
1:2});_.ei(_.qDv,"yt-profile-identity-info-view-model",{props:{data:_.NH,hideDivider:_.NH,isChannelInfoCard:_.NH}});_.ei(_.Q91,"yt-page-header-view-model",{props:{data:_.NH,noPadding:_.NH,enableBanner:_.NH,cinematicContainerTopbarOffset:_.NH,allowCinematicContainerOverflow:_.NH,displayAsSidebar:_.NH,displayAsPanel:_.NH,alwaysUseMediumTextDescription:_.NH}});_.ei(_.ld(function(F){var q=F.data;var t=function(){var J;return(J=q().numColumns)!=null?J:2},u=function(){return t()>1?3:2};
F={};return _.Z("ytd-rich-grid-group",{class:_.Ec("ytdRichGridGroupHost",(F.ytdRichGridGroupHostFirstColumn=function(){return q().colIndex===0},F)),
style:_.Mo({"--ytd-rich-grid-group-num-columns":t,"--ytd-rich-grid-items-per-group":u})},_.Z("div",{class:"ytdRichGridGroupContents"},_.Z(_.Tl,{data:function(){var J;return(J=q().contents)==null?void 0:J.slice(0,u())}},{richItemRenderer:function(J){return _.Z(_.Zdx,{data:J.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ak"),"ytd-rich-grid-group",{props:{data:_.NH}});var mi=function(){var F=_.x.apply(this,arguments)||this;F.resizeOnObserverInit=!1;F.isInlinePreviewDisabled=_.E("web_disable_inline_preview");F.disableStickyFilterBar=!1;F.transparentBackgroundChipsBar=!1;F.hideChipsBar=!1;F.isWatchDefaultLayout=!0;F.continuationShowButton=!1;F.rowReducedHorizontalMargin=!1;F.useCompactList=!1;F.manualDownloadsPresent=!1;F.smartDownloadsPresent=!1;F.isOnline=!1;F.shouldRenderDownloadsBanner=!1;F.shouldRenderDownloadsBannerUpsell=!1;F.hasOptedIntoSmartDownloads=!1;
F.elementsPerRow=4;F.typographyBump=!1;F.showGnomeContents=!1;F.showExploreHubContents=!1;F.slimItemsPerRow=1;F.pageLoadingFromNavigation=!1;F.resizeObserver=null;F.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};F.rendererToTagNameMap=
new Map(Object.entries(F.contentMapping()).map(function(q){var t=_.X(q);q=t.next().value;t=t.next().value;return[q,t.component]}));
F.insertedContent=new Map;return F};
_.M(mi,_.x);_.l=mi.prototype;_.l.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var F=_.X(_.ep(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),q=F.next();!q.done;q=F.next())q.value.useCompactList=this.useCompactList};
_.l.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var F=_.X(_.ep(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),q=F.next();!q.done;q=F.next())q=q.value,q.sizing=this.sizing,q.typographyBump=this.typographyBump};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.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]]"}}}};
_.l.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}}};
_.l.attached=function(){document.addEventListener("yt-page-type-changed",_.kM(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21870_throttledOnResize=new _.LH(this.resizeObserved,_.YE("rich_grid_resize_delay_ms",50),this)};
_.l.detached=function(){var F;(F=this.resizeObserver)==null||F.disconnect();document.removeEventListener("yt-page-type-changed",_.kM(this,this.onPageChange))};
_.l.insertRichSection=function(F){var q=F.richItemTargetId;F=F.richSectionRendererToInsert;q&&F&&(this.insertedContent.set(q,{content:F,timestamp:Date.now()}),this.reflowContent())};
_.l.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.l.computeIsInlinePreviewEnabled=function(F,q,t){return _.E("web_disable_inline_preview")?!1:!t&&_.Ewv({miniplayerIsActive:F,miniplayerPlaybackState:q})};
_.l.computeSizing=function(){var F=_.Be$(this.data);if(F||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return F?this.useCompactList?"COMPACT":F:this.miniMode?"COMPACT":_.E("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.l.updateItemMinAndMaxWidth=function(){var F=_.YE("rich_grid_max_item_width",500);F>0&&_.ws(this.hostElement,{"--ytd-rich-grid-item-max-width":F+"px"});var q;F=this.getRichItemMinWidth((q=this.hostElement)==null?void 0:q.clientWidth);F>0&&_.ws(this.hostElement,{"--ytd-rich-grid-item-min-width":F+"px"})};
_.l.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.l.resizeObserved=function(){_.Zl(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.l.navigateBackToHome=function(){_.E("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.E("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var F=_.sV().resolve(_.JC).isOnWatch(),q,t=((q=_.M1(location.pathname))==null?void 0:q.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(t)||F)&&this.gnomeContents&&_.E("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);F&&this.exploreHubContents&&_.E("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.u1().dispatch(_.pj({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.l.onPageChange=function(){var F=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Zl(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.mI.addJob(function(){F.pageLoadingFromNavigation=!1;F.setMasthead();F.maybeSetBigYoodle();F.forceRefreshAndLog();F.terminateVideoPreview();_.E("web_hide_gnome_until_user_navigates_back_to_home")&&(F.dataChanged(),_.tJ(F,function(){if(F.showGnomeContents){var q=Array.from(_.ep(F.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(u){u=
_.ep(u).querySelector("ytd-rich-shelf-renderer");return!!u&&u.isGnomeShelf()});
if(q){q=q.offsetTop-F.contentsElement.offsetTop;var t=_.sV().resolve(_.JC).getCurrentPage();t&&t.getPageScrollingElement().scrollTo({top:q,behavior:"smooth"})}}}));
_.E("web_hide_explore_hub_until_user_navigates_back_to_home")&&(F.dataChanged(),_.tJ(F,function(){if(F.showExploreHubContents&&!_.E("web_explore_hub_no_scroll")){var q=Array.from(_.ep(F.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(u){return!!u.querySelector("ytd-talk-to-recs-flow-renderer")});
if(q){q=q.offsetTop-F.contentsElement.offsetTop;var t=_.sV().resolve(_.JC).getCurrentPage();t&&t.getPageScrollingElement().scrollTo({top:q,behavior:"smooth"})}}}))},8)):((_.E("web_hide_gnome_until_user_navigates_back_to_home")||_.E("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.l.dataChanged=function(){var F=this;_.Zl(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.tJ(this,function(){F.updateRichItemGridPositions();F.contentsElement&&_.ws(F.hostElement,{"--ytd-rich-grid-content-offset-top":F.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.l.initResizeObserver=function(){var F=this;if(window.ResizeObserver){var q;(q=this.resizeObserver)==null||q.disconnect();var t=!1;this.resizeObserver=new ResizeObserver(function(){if(t){var u;(u=F.resizeObserver)==null||u.disconnect();var J;(J=F.JSC$21870_throttledOnResize)==null||J.fire();requestAnimationFrame(function(){var Y;(Y=F.JSC$21870_throttledOnResize)==null||Y.fire();F.initResizeObserver()})}else if(t=!0,F.resizeOnObserverInit){var g;
(g=F.JSC$21870_throttledOnResize)==null||g.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.l.contentLengthChanged=function(){if(_.E("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Zl(this.hostElement,"ytd-rich-item-index-update-action")};
_.l.updateElementsPerRow=function(){_.Zl(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.pj({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.pj({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.l.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.l.onRichShelfRendererCollapse=function(F){if(this.shownItems){var q=F.detail;F=this.shownItems.findIndex(function(u){var J,g;return((g=_.n(u==null?void 0:(J=u.richSectionRenderer)==null?void 0:J.content,_.Akd))==null?void 0:g.trackingParams)===q});
var t=F+1;F<0||t>=this.contentsElement.children.length||!this.shownItems[t].richItemRenderer||this.contentsElement.children[t].scrollIntoView({behavior:"smooth",block:"start"})}};
_.l.onSoftReloadPage=function(){this.scrollUpToTop()};
_.l.handleRerenderDownloadsData=function(){_.E("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.l.handlePlaylistRemoveVideosAction=function(F){var q;if(((q=_.n(F,_.a6v))==null?0:q.setVideoIds)&&this.data&&this.data.contents){F=_.n(F,_.a6v).setVideoIds;for(q=this.data.contents.length-1;q>=0;){var t=_.n(this.data.contents[q],_.dR);(t=t&&_.n(t.content,_.qC))&&t.setVideoId&&F.includes(t.setVideoId)&&this.splice("data.contents",q,1);q--}this.updateIndices()}};
_.l.updateIndices=function(){if(this.data&&this.data.contents)for(var F=0;F<this.data.contents.length;F++)this.set("data.contents."+F+".richItemRenderer.index",_.FK(String(F+1)))};
_.l.hasTopRowInlinePlayableVideoWithEndorsement=function(F){var q;return!((q=F.slice(0,this.getItemsPerRow()))==null||!q.some(function(t){var u;t=_.n(t==null?void 0:(u=t.richItemRenderer)==null?void 0:u.content,_.Jh);var J;return(t==null?void 0:t.inlinePlaybackEndpoint)&&(t==null?void 0:(J=t.thumbnailOverlays)==null?void 0:J.some(function(g){return g.thumbnailOverlayEndorsementRenderer}))}))};
_.l.refreshGridLayoutNew=function(F,q,t,u){var J=u.postsPerRow;var g=u.slimItemsPerRow;var Y=u.gameCardsPerRow;u=u.miniGameCardsPerRow;var Q;if((Q=this.data)==null||!Q.contents||!this.containerWidth)return!1;var e;if((e=this.data.responsiveContainerConfiguration)==null?0:e.responsiveSize){var r=_.M0v(this.data.responsiveContainerConfiguration,this.containerWidth),N;Q=_.hC(Object.assign({},r,{standardUnitMinWidth:(N=this.data)==null?void 0:N.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&r.isCompactList)}else Q=_.hC({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(r=this.data)==null?void 0:r.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=Q.typographyBump;N=!1;if(F||this.elementsPerRow!==Q.numItems||this.postsPerRow!==J||this.slimItemsPerRow!==g||this.gameCardsPerRow!==
Y||this.miniGameCardsPerRow!==u||this.gutter!==Q.gutter)N=this.elementsPerRow!==Q.numItems,this.elementsPerRow=Q.numItems,this.postsPerRow=J,this.slimItemsPerRow=g,this.gameCardsPerRow=Y,this.miniGameCardsPerRow=u,this.gutter=Q.gutter,this.itemWidth=Q.itemWidth,this.reflowContent(q),_.ws(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":Q.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(t);this.ytdReduxBehavior.dispatch(_.pj({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:Q.maxContainerWidth}));return N};
_.l.refreshGridLayout=function(F,q){var t,u=(t=this.hostElement)==null?void 0:t.clientWidth;this.containerWidth=this.adjustRichGridWidth(u,!0);var J;if((J=this.data)==null||!J.contents||!this.containerWidth)return F&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.E("rg_pending_reflow_ks")&&(F=!0,this.pendingForceReflow=!1);t=this.getRichItemMinWidth(u);var g=this.isShortsPanel?146:194,Y=this.getMiniGameCardMinWidth(),Q=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
u=t=this.calcElementsPerRow(t,Q);(J=t<=3&&this.miniModeAllowed())&&(t=this.calcElementsPerRow(240,4));var e=this.calcMaxSlimElementsPerRow(t,Q,this.isDefaultGrid);Q=this.calcElementsPerRow(g,e);var r=this.calcElementsPerRow(this.isCompactGrid?g:154,e);g=this.calcElementsPerRow(this.isCompactGrid?g:Y,e);Y=!1;if(this.sizing)return this.refreshGridLayoutNew(F,q,J,{postsPerRow:u,slimItemsPerRow:Q,gameCardsPerRow:r,miniGameCardsPerRow:g});if(F||this.elementsPerRow!==t||this.postsPerRow!==u||this.slimItemsPerRow!==
Q||this.gameCardsPerRow!==r||this.miniGameCardsPerRow!==g)Y=this.elementsPerRow!==t,this.elementsPerRow=t,this.postsPerRow=u,this.slimItemsPerRow=Q,this.gameCardsPerRow=r,this.miniGameCardsPerRow=g,this.reflowContent(q),this.updateElementsPerRow(),_.ws(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)&&_.ws(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(J);_.Zl(this.hostElement,"yt-rich-grid-layout-refreshed");return Y};
_.l.getRichItemMinWidth=function(F){var q=_.YE("rich_grid_min_item_width",310);if(!_.E("kevlar_disable_min_width_override")){var t,u;q=(u=(t=this.data)==null?void 0:t.minItemWidth)!=null?u:q}return q+_.CIy(F)};
_.l.calcMaxSlimElementsPerRow=function(F,q,t){return(t===void 0?0:t)?F===1?2:F%2===0?F/2*3:F+2:q*2};
_.l.adjustRichGridWidth=function(F,q){var t=_.E("disable_rich_grid_guide_compensation");if(!this.isWatch&&!t){t=_.sV().resolve(_.JU(_.QE));var u=t==null?void 0:t.guideElement;if(!(!t||t.getData()||u!=null&&u.opened||t.getMiniGuideVisible()))if(t.canFitPersistentGuide(F)&&t.getGuideExpandsAutomatically()){var J,g,Y=Number((J=window.getComputedStyle(this.hostElement))==null?void 0:(g=J.getPropertyValue("--app-drawer-width"))==null?void 0:g.replace("px",""));F-=Y||0}else if(t.canFitMiniGuide(F)){var Q;
J=Number((Y=window.getComputedStyle(this.hostElement))==null?void 0:(Q=Y.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:Q.replace("px",""));F-=J||0}}F>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(F-=q?32:48));return F};
_.l.calcElementsPerRow=function(F,q){var t=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),u=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((t+u)/(F+u))||1,q)};
_.l.reflowContent=function(F){var q=this;if(!this.isReflowing){this.isReflowing=!0;var t,u,J=!!((t=this.data)==null?0:(u=t.contents)==null?0:u.some(function(z){return _.n(z,_.F9)}));
t=this.getItemsPerRow();var g;u=(g=this.data)==null?void 0:g.reflowOptions;F&&(_.y0("rgr_s"),_.tJ(this,function(){_.y0("rgr_nrf")}));
F={};(g=_.ep(this.hostElement).querySelector("#contents"))&&(F={contentElement:g,rendererToTagNameMap:this.rendererToTagNameMap});g=(g=this.data.contents)?g.slice():[];var Y=(_.E("web_hide_gnome_behind_feed_filter_chip")||_.E("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,Q=_.E("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,e=-1,r=-1;if(this.isHomePage&&Q){for(Q=0;Q<g.length;Q++){var N=void 0,w=void 0;_.n((N=g[Q])==null?void 0:
(w=N.richSectionRenderer)==null?void 0:w.content,ybC)&&(r=Q)}r>-1&&(this.exploreHubContents=g.splice(r,1))}if(this.isHomePage&&Y){for(r=0;r<g.length;r++)w=N=void 0,(Q=_.n((N=g[r])==null?void 0:(w=N.richSectionRenderer)==null?void 0:w.content,_.Akd))&&Y&&(w=N=void 0,Q=_.n((N=Q)==null?void 0:(w=N.contents)==null?void 0:w[0],_.dR),N=void 0,_.n((N=Q)==null?void 0:N.content,_.AdC)&&(e=r));e>-1&&(this.gnomeContents=g.splice(e,1))}J=nsv(g,t,J,u,this.getRichGridStyle(),F,this.insertedContent);var k=J.orderedContent;
if(J=J.pinnedContentNotShownTargetIds)for(J=_.X(J),t=J.next();!t.done;t=J.next())this.insertedContent.delete(t.value);J=function(){q.shownItems=k;q.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(k),_.tJ(this,J)):J()}};
_.l.getFirstRowItems=function(F){for(var q=[],t=0;t<F.length;t++){var u=void 0,J=void 0,g=void 0,Y=void 0,Q=void 0,e=void 0;if(((u=F[t])==null?void 0:(J=u.richItemRenderer)==null?void 0:J.rowIndex)===0||((g=F[t])==null?void 0:(Y=g.richGroupRenderer)==null?void 0:Y.rowIndex)===0||((Q=F[t])==null?void 0:(e=Q.richSectionRenderer)==null?void 0:e.rowIndex)===0)q.push(F[t]);else break}return q};
_.l.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.l.resetInsertedContentIfNeeded=function(){(_.E("web_explore_hub_on_hover")||_.E("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.l.handleChipCloudChipSelectAction=function(F,q){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.E("web_hide_gnome_behind_feed_filter_chip")&&(q?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.l.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.E("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.l.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.E("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.l.terminateVideoPreview=function(){_.Zl(this.hostElement,"yt-terminate-video-preview-action")};
_.l.updateRichItemGridPositions=function(){var F={gridData:{gridColumnCount:this.elementsPerRow}},q;((q=this.data)==null?0:q.trackingParams)&&(q=_.yb())&&_.qp(q,_.Av(this.data.trackingParams),F);_.Zl(this.hostElement,"ytd-rich-item-index-update-action")};
_.l.miniModeAllowed=function(){return this.isChannelPage};
_.l.getMiniGameCardMinWidth=function(){return 154};
_.l.updateMiniMode=function(F){this.miniMode=this.miniModeAllowed()&&F;this.ytdReduxBehavior.dispatch(_.pj({type:"SET_RICH_GRID_MINI_MODE",payload:F}))};
_.l.isCurrentPage=function(){return location.pathname===this.pagePath};
_.l.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var F=_.sV().resolve(_.JC).getCurrentPage();F&&F.setScrollTop(0)}};
_.l.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.l.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.l.maybeSetBigYoodle=function(){var F,q=(F=this.data)==null?void 0:F.bigYoodle;this.bigYoodleData!==q&&(this.bigYoodleData=q)};
_.l.setMasthead=function(){var F;((F=this.data)==null?0:F.masthead)?this.mastheadData=this.data.masthead:_.E("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.l.getRichGridStyle=function(){var F,q;return(q=(F=this.data)==null?void 0:F.style)!=null?q:"RICH_GRID_STYLE_UNKNOWN"};
_.l.onIsShortsGridChange=function(){var F=this.ytdReduxBehavior,q=F.dispatch,t=this.getRichGridStyle();q.call(F,_.pj({type:"SET_RICH_GRID_STYLE",payload:t}))};
_.JJ.Object.defineProperties(mi.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var F=_.sV().resolve(_.JC).getCurrentPage(),q,t,u;return(((q=this.data)==null?void 0:q.targetId)==="browse-feedFEsfv_audio_pivot"||_.E("web_enable_channel_pivot_panel")&&((t=this.data)==null?void 0:t.targetId)==="browse-feedFEsfv_channel_pivot"||_.E("web_enable_effect_pivot_panel")&&((u=this.data)==null?void 0:u.targetId)==="browse-feedFEsfv_effect_pivot")&&(F==null?void 0:F.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.E("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null?0:F.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var F;return((F=_.sV().resolve(_.JC).getCurrentPage())==null?void 0:F.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var F;return((F=_.sV().resolve(_.JC).getCurrentPage())==null?void 0:F.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var F;return this.hideChipsBar||(((F=this.data)==null?void 0:F.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.E("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.targetId)||"")==="watch-next-feed"&&!_.E("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((F=this.data)==null?0:F.enableContentSpecificAspectRatio)||((q=this.data)==null?0:(t=q.responsiveContainerConfiguration)==null?0:t.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.YE("web_continuation_handler_margin",0):0}}});
mi.prototype.onIsShortsGridChange=mi.prototype.onIsShortsGridChange;mi.prototype.onReloadContinuationFinish=mi.prototype.onReloadContinuationFinish;mi.prototype.reflowContent=mi.prototype.reflowContent;mi.prototype.handleRerenderDownloadsData=mi.prototype.handleRerenderDownloadsData;mi.prototype.onRichShelfRendererCollapse=mi.prototype.onRichShelfRendererCollapse;mi.prototype.onRequestElementsPerRow=mi.prototype.onRequestElementsPerRow;mi.prototype.contentLengthChanged=mi.prototype.contentLengthChanged;
mi.prototype.dataChanged=mi.prototype.dataChanged;mi.prototype.onSizingChange=mi.prototype.onSizingChange;mi.prototype.onUseCompactListChange=mi.prototype.onUseCompactListChange;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.Vl),_.V("design:type",Object)],mi.prototype,"ironResizableBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],mi.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.Qd),_.V("design:type",Object)],mi.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],mi.prototype,"componentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],mi.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],mi.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],mi.prototype,"miniMode",void 0);_.C([_.O({value:[]}),_.V("design:type",Array)],mi.prototype,"shownItems",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],mi.prototype,"isReflowing",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],mi.prototype,"isFilteredFeed",void 0);_.C([_.O({selector:_.cho}),_.V("design:type",Boolean)],mi.prototype,"guideIsExpanded",void 0);
_.C([_.O({selectorArgs:["entitySelectorType"],selector:function(F,q){if(_.E("kevlar_modern_downloads_page")&&q&&q!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(q){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":q=F.entities;var t=_.IY(q),u=_.H5(q),J=_.wGv(F),g=_.N7$(F),Y=_.i8W(F),Q=_.VRC(q),e=_.W5(t),r=_.mV(q);return _.wIv(t,u,Q,_.KLy(q),J,g,e,r,Y,_.EQo(F),_.dj(F));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return F=_.IY(F.entities),_.kFM(F);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return F=
_.yho(F.entities),_.EXq(F);default:_.bz(new _.D0("Error: entitySelectorType defined but not matched in selector.",F,q))}}}),
_.V("design:type",Object)],mi.prototype,"entityDrivenRichGridData",void 0);_.C([_.O(),_.V("design:type",Object)],mi.prototype,"resizeOnObserverInit",void 0);_.C([_.O(),_.V("design:type",Object)],mi.prototype,"bigYoodleData",void 0);_.C([_.O(),_.V("design:type",Object)],mi.prototype,"mastheadData",void 0);_.C([_.O(),_.V("design:type",Boolean)],mi.prototype,"isInlinePreviewDisabled",void 0);_.C([_.O(),_.V("design:type",Object)],mi.prototype,"disableStickyFilterBar",void 0);
_.C([_.O(),_.V("design:type",Object)],mi.prototype,"transparentBackgroundChipsBar",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mi.prototype,"hideChipsBar",void 0);_.C([_.O(),_.V("design:type",Object)],mi.prototype,"isWatchDefaultLayout",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mi.prototype,"continuationShowButton",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mi.prototype,"rowReducedHorizontalMargin",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mi.prototype,"useCompactList",void 0);_.C([_.O({selector:function(F){return _.H5(F.entities).length>0}}),
_.V("design:type",Object)],mi.prototype,"manualDownloadsPresent",void 0);_.C([_.O({selector:function(F){return _.IY(F.entities).length>0}}),
_.V("design:type",Object)],mi.prototype,"smartDownloadsPresent",void 0);_.C([_.O({selector:_.dj}),_.V("design:type",Object)],mi.prototype,"isOnline",void 0);_.C([_.O({selector:_.N7$}),_.V("design:type",Object)],mi.prototype,"shouldRenderDownloadsBanner",void 0);_.C([_.O({selector:_.EQo}),_.V("design:type",Object)],mi.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.C([_.O({selector:_.wGv}),_.V("design:type",Object)],mi.prototype,"hasOptedIntoSmartDownloads",void 0);
_.C([_.za("useCompactList"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mi.prototype,"onUseCompactListChange",null);_.C([_.za("sizing","typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mi.prototype,"onSizingChange",null);_.C([_.O({selector:_.sgM}),_.V("design:type",Number)],mi.prototype,"miniplayerPlaybackState",void 0);_.C([_.O({selector:_.yX}),_.V("design:type",Boolean)],mi.prototype,"miniplayerIsActive",void 0);
_.C([_.O({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.V("design:type",Boolean)],mi.prototype,"isInlinePreviewEnabled",void 0);_.C([_.O({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.V("design:type",String)],mi.prototype,"sizing",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mi.prototype,"elementsPerRow",void 0);
_.C([_.O(),_.V("design:type",Object)],mi.prototype,"typographyBump",void 0);_.C([_.O(),_.V("design:type",Number)],mi.prototype,"itemWidth",void 0);_.C([_.Ms("#header"),_.V("design:type",HTMLElement)],mi.prototype,"headerElement",void 0);_.C([_.Ms("#contents"),_.V("design:type",HTMLElement)],mi.prototype,"contentsElement",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mi.prototype,"dataChanged",null);
_.C([_.Wh("data.contents.length"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mi.prototype,"contentLengthChanged",null);_.C([_.EB("yt-request-elements-per-row"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mi.prototype,"onRequestElementsPerRow",null);
_.C([_.EB("yt-rich-shelf-renderer-collapse"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],mi.prototype,"onRichShelfRendererCollapse",null);_.C([_.Wh("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mi.prototype,"handleRerenderDownloadsData",null);
_.C([_.W("data"),_.V("design:type",String),_.V("design:paramtypes",[])],mi.prototype,"entitySelectorType",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"isSub",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"isWatch",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data.targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"isShortsPanel",null);_.C([_.O({reflectToAttribute:!0}),_.W("isWatch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"reducedTopMargin",null);_.C([_.O({reflectToAttribute:!0}),_.W("data","isWatch","isWatchDefaultLayout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"noTopMargin",null);
_.C([_.O({reflectToAttribute:!0}),_.W("isInlinePreviewEnabled","shownItems"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"topRowEndorsement",null);_.C([_.W("data.header"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"hideHeader",null);_.C([_.EB("yt-rich-grid-reflow"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean]),_.V("design:returntype")],mi.prototype,"reflowContent",null);
_.C([_.EB("yt-reload-continuation-finish"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mi.prototype,"onReloadContinuationFinish",null);_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"isSlimGrid",null);_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"isShortsGrid",null);
_.C([_.W("data","isSlimGrid","isShortsGrid"),_.O(),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"noRichItemGutterMargins",null);_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"isShortsGridSlim",null);_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"isCompactGrid",null);
_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"isDefaultGrid",null);_.C([_.W("data.targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"hideChipsBarOnHome",null);_.C([_.W("data.targetId"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"hideChipsBarOnWatch",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mi.prototype,"onIsShortsGridChange",null);_.C([_.W("data.enableContentSpecificAspectRatio"),_.O(),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mi.prototype,"force16By9ThumbnailAspectRatio",null);_.C([_.W("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],mi.prototype,"continuationTriggerOffset",null);_.C([_.m({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],mi);
_.b(mi,"ytd-rich-grid-renderer",function(){if(tX5!==void 0)return tX5;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return tX5=F},{mode:2});var rwy=_.ld(function(F){var q=F.thumbsUp,t=F.thumbsDown,u=F.rightAlignThumbs;F=_.X(_.N3(!1,void 0,"OxPsH"));var J=F.next().value,g=F.next().value;F=_.X(_.N3(!1,void 0,"V5vWne"));var Y=F.next().value,Q=F.next().value;F={};return _.Z("div",{class:_.Ec("ytwThumbsUpDownThumbs",(F.ytwThumbsUpDownRightAlign=function(){return u==null?void 0:u()},F))},_.Z(_.j9,{data:q,
onToggle:function(e){g(e);Y()&&Q(!1)},
buttonShapeOverrides:function(){return{toggled:J()}}}),_.Z(_.j9,{data:t,
onToggle:function(e){Q(e);J()&&g(!1)},
buttonShapeOverrides:function(){return{toggled:Y()}}}))},"bk");
rwy.idomCompat=!0;var wmJ=_.ld(function(F){var q=function(){return F.data().pendingStateEntityKey||""},t=_.nH(_.Ipy,q),u=function(){var Q;
if(!(Q=F.disabled())){var e;Q=!((e=t())==null||!e.isPendingResponse)}return Q},J=_.X(_.N3(Gpv(""),void 0,"NwQXfe")),g=J.next().value,Y=J.next().value;
_.AN(function(){requestAnimationFrame(function(){var Q=F.data().onShowAnimationMs||0;Q=Q>0?Gpv("--chip-animation-duration: "+Q+"ms;"):Gpv("");Y(Q)})});
return _.Z("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:g},_.Z(_.Gn,{each:function(){return F.data().chipData||[]},
keyBy:"REFERENCE"},function(Q){return _.Z(NVQ,{data:Q,disabled:u,pendingStateKey:q,onError:F.onError})}))},"ck"),NVQ=_.ld(function(F){var q=_.qL("button"),t=_.X(_.N3(!0,void 0,"G4GPGe")),u=t.next().value,J=t.next().value,g=function(){return F.data().text.content},Y=function(){return F.data().transparentWhenLoading},Q=_.zq(function(e){var r,N,w,k,z,T,P,v;
return _.p(function(H){switch(H.nextAddress){case 1:e.stopPropagation();if(F.disabled())return H.return();N=String(Math.floor(((r=_.w0())==null?void 0:r.getCurrentTime())||0)*1E3);w="youchat-"+Date.now();k=function(){_.hv(F.data().onClick||{});var d={continuationCommand:{token:F.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},a={inputComposerFormData:{clientMessageId:w,playerOffsetMs:N}};return new Promise(function(S,K){_.hv(d,{form:{formData:a},commandController:{onSuccess:function(h,
c){S(c)},
onServerError:function(h,c){K(c.error)}}})})};
z=_.HYw(F.pendingStateKey());z(!0);_.rbD("#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");J(!1);_.zg(H,2);return H.yield(k(),4);case 4:_.LE(H,3);break;case 2:T=_.Gg(H),(v=(P=F).onError)==null||v.call(P,T);case 3:z(!1),_.WA(H)}})});
return _.Z(_.R,{cond:u,then:function(){return _.Z("div",{class:"ytwYouChatChipsDataChipWrapper"},_.Z("button",{el:q,class:"ytwYouChatChipsDataChip","data-disabled":F.disabled,"data-transparent-loading":Y,"on:click":Q,tabindex:0},g))}})},"dk");var iXv=_.ld(function(F){var q=F.data;var t=F.initiallyExpanded;var u=function(){var r;return(r=q().conversationResourceData)==null?void 0:r.learningGuideData};
F=_.X(_.np(function(){var r;return(r=t==null?void 0:t())!=null?r:!1}));
var J=F.next().value,g=F.next().value,Y=function(){g(!0)},Q=_.zy(function(){var r,N;
return(N=(r=u())==null?void 0:r.sections)!=null?N:[]},void 0,"aPRmH"),e=_.zy(function(){return Q().length>4},void 0,"PUPDyc");
F=_.zy(function(){var r;return!J()&&e()&&(r=u())!=null&&r.expandButton?Q().slice(0,4):Q()},void 0,"wUz4Ud");
return _.Z("yt-conversation-resource-view-model",{class:_.Ec("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.Z(_.Tl,{data:F},{expandableMetadataViewModel:_.Dy9}),_.Z(_.R,{cond:function(){return e()&&!J()},
then:function(){return _.Z("div",{id:"showMoreButton"},_.Z(_.Tl,{data:function(){var r;return(r=u())==null?void 0:r.expandButton}},{buttonViewModel:function(r){return _.Z(_.AB,{data:r.data,
onClick:Y})}}))}}))},"ek");var kiC=_.ld(function(F){var q=function(){var h;return(h=F.data().text)==null?void 0:h.content},t=function(){var h,c;
return(h=F.data().webData)==null?void 0:(c=h.textResult)==null?void 0:c.content},u=_.sV().resolve(_.u_),J=_.i6(),g=function(){return F.data().chatResponseStyle},Y=function(){return!F.data().transparentBackground},Q=function(){return F.data().rightAlignThumbs},e=function(){return F.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||F.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},r=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:e()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:F.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},N=function(){var h;
return F.data().webData||((h=F.data().text)==null?void 0:h.content)||F.data().videoResultsData||F.data().conversationResourceViewModel||F.data().quiz},w=function(){return!!F.data().sectionHeader||N()},k=function(){var h;
return(h=F.data().videoResultsData)==null?void 0:h.videoShelf},z=function(){var h;
return _.n(((h=F.data().videoResultsData)==null?void 0:h.videoShelf)||{},S4y)},T=function(){var h;
return(h=F.data().webData)==null?void 0:h.sourcesShelf},P=function(){var h;
return _.n(((h=F.data().webData)==null?void 0:h.sourcesShelf)||{},S4y)},v=function(){return _.n(F.data().conversationResourceViewModel||{},Kf9)},H=function(){return _.n(F.data().quiz||{},djJ)},d=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:F.data().thumbsDownViewModel&&F.data().thumbsUpViewModel},a=function(){return _.n(F.data().thumbsUpViewModel,_.XZ)},S=function(){return _.n(F.data().thumbsDownViewModel,_.XZ)};
_.AN(function(){requestAnimationFrame(function(){var h;(h=F.shouldAnimateIcon)!=null&&h.call(F)&&mjh(J.lottieEl)})});
var K={};return _.Z("you-chat-item-view-model",{class:_.Ec("ytwYouChatItemViewModelYouChatItemViewModel",(K.ytwYouChatItemViewModelColumnLayout=function(){return e()},K)),
"data-target-id":function(){return F.data().id||""}},_.Z(_.R,{cond:function(){return F.data().removeIcon?!1:w()},
then:function(){var h={};return _.Z("div",{"aria-hidden":"true"},_.Z(_.bT,{className:_.Ec("ytwYouChatItemViewModelIcon",(h.ytwYouChatItemViewModelRtl=u==="rtl",h.ytwYouChatItemViewModelHidden=function(){return!(F.data().hideIcon||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:w())},h)),
animationName:"YOUCHAT_ICON",data:r,animationRef:J}))}}),_.Z(_.R,{cond:w,
then:function(){var h={};return _.Z("div",{class:_.Ec("ytwYouChatItemViewModelHost",(h.ytwYouChatItemViewModelHostNoPadding=function(){return!!F.data().sectionHeader&&!N()},h.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},h.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},h.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
h.ytwYouChatItemViewModelGradientBackground=Y,h)),
role:"alert"},_.Z(_.R,{cond:q,then:function(c){return _.Z(_.X_,{text:c,wrapCodeBlocks:!0})}}),_.Z(_.Tl,{data:function(){return F.data().sectionHeader}},{sectionHeaderViewModel:function(c){var rf={};
return _.Z(_.Ae,{data:c.data,className:_.Ec("ytwYouChatItemViewModelSectionHeader",(rf.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!F.data().sectionHeader&&!N()},rf))})}}),_.Z(_.R,{cond:t,
then:function(c){return _.Z(_.X_,{text:c,wrapCodeBlocks:!0})}}),_.Z(_.R,{cond:k,
then:function(){return _.Z("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Z(_.sA,{data:z,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.Z(_.R,{cond:T,
then:function(){return _.Z("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Z(_.sA,{data:P,hasPeek:!0,disableArrows:!1}))}}),_.Z(_.R,{cond:v,
then:function(){return _.Z(iXv,{data:v})}}),_.Z(_.R,{cond:H,
then:function(){return _.Z(_.VQf,{data:H})}}),_.Z(_.R,{cond:d,
then:function(){return _.Z(rwy,{thumbsUp:a,thumbsDown:S,rightAlignThumbs:Q})}}))}}),_.Z(_.R,{cond:function(){return F.data().chipsData},
then:function(h){return _.Z(wmJ,{data:h,disabled:F.pending,onError:F.onError})}}))},"fk");
kiC.idomCompat={callbacks:{onError:!0,onSend:!0}};var E8v=_.ld(function(F){var q=function(){return F.data().choiceSelectedText},t=function(){return F.data().hasGradientBackground},u={};
return _.Z("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.Z(_.R,{cond:q,then:function(){return _.Z("div",{class:"ytYouChatUserTurnChoiceSelected"},_.Z(_.rv,{text:q}))}}),_.Z("div",{class:_.Ec("ytYouChatUserTurnUserMessage",(u.ytYouChatUserTurnGradientContainer=t,u.ytYouChatUserTurnDefaultContainer=function(){return!t()},u))},function(){return F.data().text}))},"gk");var zqC=_.ld(function(F){var q=_.X((0,_.Nb1)(F.data)).next().value;return _.Z("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return F.data().targetId||""}},_.Z(_.Tl,{data:function(){return F.data().header}},{chipBarViewModel:_.Y8O}),_.Z(_.Tl,{data:function(){return q().contents}},{accordionViewModel:_.Kiz,
alertBannerViewModel:_.wVf,chatLoadingViewModel:_.ddv,chatUserTurnViewModel:E8v,learningJourneyLoaderViewModel:_.b0J,lockupViewModel:function(t){return _.Z(_.x5,{data:t.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:F.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
videoOverviewViewModel:_.tKd,youChatItemViewModel:function(t){return _.Z(kiC,{data:t.data,pending:!1})}}))},"hk");_.ei(_.ld(function(F){var q=_.X((0,_.Nb1)(F.data)).next().value,t=_.FG("yt-section-list-renderer"),u=_.X(_.N3(void 0,void 0,"boqAXd")),J=u.next().value,g=u.next().value,Y=function(){var Q;return _.n((Q=F.data().sectionListLayoutConfiguration)==null?void 0:Q.layoutConfiguration,UjC)};
_.v_(function(){var Q,e=(Q=t.value)==null?void 0:Q.clientWidth;if(Y()){Q=Y();var r=Q.responsiveSize;e=e<528?"CONTAINER_SIZE_NARROW":e<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var N=_.X(Q.responsiveMap||[]);for(var w=N.next();!w.done;w=N.next())if(w=w.value,w.containerSize===e){N=w.containerType;break b}N=void 0}if(N&&r){b:{if(N==="CONTAINER_TYPE_VERTICAL_LIST")if(r==="RESPONSIVE_SIZE_STANDARD"){if(e!=="CONTAINER_SIZE_NARROW"){w="50%";break b}}else{w=e==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}w=void 0}Q={responsiveSize:r,containerSize:e,containerType:N,force16By9ThumbnailAspectRatio:!Q.enableContentSpecificAspectRatio,contentPreviewWidth:w,fullbleed:(N==="CONTAINER_TYPE_VERTICAL_LIST"||N==="CONTAINER_TYPE_GRID")&&e==="CONTAINER_SIZE_NARROW"&&!1}}else Q=void 0}else Q=void 0;g(Q)});
return _.Z("yt-section-list-renderer",{class:_.Ec("ytSectionListRendererHost",F.className),el:t,"data-target-id":function(){return F.data().targetId||""}},_.Z(_.Tl,{data:function(){return q().contents}},{itemSectionRenderer:function(Q){return _.Z(zqC,{data:Q.data,
containerLayoutConfig:J})}}))},"ik"),"yt-section-list-renderer",{props:{data:_.NH,
className:_.pp}});var o8w;var n87;var MXv=function(){return _.x.apply(this,arguments)||this};
_.M(MXv,_.x);_.C([_.O(),_.V("design:type",Object)],MXv.prototype,"data",void 0);_.C([_.Vu({is:"yt-alert-renderer",disableElementRegistration:!0})],MXv);
_.b(MXv,"yt-alert-renderer",function(){if(n87===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;o8w===void 0&&(o8w=document.createElement("template"));var u=o8w;t.call(q,u.content.cloneNode(!0),F.content.firstChild);n87=F}F=n87;return F},{mode:2});
}catch(e){_._DumpException(e)}
try{
var AO9;AO9=function(F,q,t,u){t||(F?u&&(u.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||u.WINDOW_SIZE_CHANGED&&(q.width!==window.innerWidth||q.height!==window.innerHeight)||u.SAFARI_ABORTED_BY_NEW_TRANSITION&&F instanceof DOMException&&F.name==="AbortError"&&F.message.includes("Old view transition aborted by new view transition"))||_.mH(F):_.mH(Error("lj")))};
_.vRC=function(F,q){q=q===void 0?{}:q;var t,u,J,g,Y,Q,e,r,N,w,k,z,T;return _.p(function(P){switch(P.nextAddress){case 1:t=q;u=t.shouldWrap===void 0?!0:t.shouldWrap;J=t.skipTransitionTimeoutMs===void 0?300:t.skipTransitionTimeoutMs;g=t.beforeTransition;Y=t.afterTransition;if(!u||!document.startViewTransition||document.visibilityState==="hidden")return P.return(F());Q={width:window.innerWidth,height:window.innerHeight};e=!1;(r=g)==null||r();_.zg(P,2);N=document.startViewTransition(F);w=setTimeout(function(){N.skipTransition();
e=!0},J);
return P.yield(N.ready,4);case 4:return clearTimeout(w),P.yield(N.finished,5);case 5:clearTimeout(w);(k=Y)==null||k();_.LE(P,0);break;case 2:z=_.Gg(P),(T=Y)==null||T(),AO9(z,Q,e,q.ignoredErrors),_.WA(P)}})};
_.sp=function(){for(var F=Array(36),q=0,t,u=0;u<36;u++)u==8||u==13||u==18||u==23?F[u]="-":u==14?F[u]="4":(q<=2&&(q=33554432+Math.random()*16777216|0),t=q&15,q>>=4,F[u]=_.$Zd[u==19?t&3|8:t]);return F.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var IVC=_.LZ(['<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>']),
Hq3=_.Tjj(IVC);Hq3.setAttribute("style","display: none;");document.head.appendChild(Hq3.content);_.gE=_.Ewt(function(F){var q=_.nr("DIV");F&&(q.className=F);q.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";F=_.nr("DIV");_.kvd(F,"200px","200px");q.appendChild(F);document.body.appendChild(q);F=q.offsetWidth-q.clientWidth;_.Mq(q);return F});var m3C;var $3w;var lH=function(){var F=_.x.apply(this,arguments)||this;F.icon=null;return F};
_.M(lH,_.x);lH.prototype.dismiss=function(){_.Q0(this.hostElement,"yt-live-chat-error-message-dismiss")};
lH.prototype.computeIcon=function(F){return F&&F.iconType?"yt-icons:"+F.iconType.toLowerCase():"yt-icons:close"};
_.C([_.O(),_.V("design:type",Object)],lH.prototype,"data",void 0);_.C([_.O({computed:"computeIcon(data.icon)"}),_.V("design:type",Object)],lH.prototype,"icon",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],lH);
_.b(lH,"yt-live-chat-error-message-renderer",function(){if($3w===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;m3C===void 0&&(m3C=document.createElement("template"));var u=m3C;t.call(q,u.content.cloneNode(!0),F.content.firstChild);$3w=F}F=$3w;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var vOn,Iwe,HeO,mnI,$n9,be$,VCn,Kr9,BxO,Lrq,fwy,awt,jje,cE$,dV,Fve,qC$,t5y,u3e,J99,sy$,g7e,lQI,Xsy,YCS,ps$,QyO,e9l,Zhl,R9l,r9t,NJQ,wsQ,ihK,kvZ,E7K,z9I,o7I,n7t,GvO,Wv$,Pwe,xDS,A9t,v7O,M5y,TJ9,mDI,$Dq,bhq,y9l,CwO,IQq,hdq,V5I;vOn=function(F){var q=_.FG("__slot-el");_.v_(function(){for(var t=_.X(F.slotContent),u=t.next();!u.done;u=t.next())q.value.appendChild(u.value)});
return _.Z("__slot-el",{el:q,skip:!0})};
Iwe=function(F){return _.Qh==="yt-animated-rolling-number"?(F.isInert=!0,_.Qh="",!0):_.k6M==="yt-animated-rolling-number"?(F.isInert=!0,_.k6M="",!0):!1};
HeO=function(F,q){return _.iC(F.entities,"liveReactionsDataEntity",q)};
mnI=function(F,q){F=_.iC(F.entities,"booleanEntity",q);return!(!F||!F.value)};
$n9=function(F,q){var t=_.yb();t&&F&&_.Bo(t,_.Av(F),q)};
be$=function(F,q){return _.iC(F.entities,"timedMarkersListSyncEntity",q)};
_.yEn=function(F){return F.watch.isWatchActive};
_.CJQ=function(F){return _.b_(F)||_.yh(F)||_.o0o(F)};
_.dnt=function(F){return!_.CJQ(F)};
_.CX=function(F){return F.watch.watchScrollTop};
VCn=function(F){return F.watch.isLiveChatCollapsed};
_.UnI=function(){_.E("web_watch_log_theater_mode")&&_.yIf("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.SvS=function(F,q,t){if(!F.includes("START_TIME_PLACEHOLDER")||!F.includes("END_TIME_PLACEHOLDER"))return F;var u=new Date(0),J=new Date(0);u.setUTCMilliseconds(q);J.setUTCMilliseconds(t);return F.replace("START_TIME_PLACEHOLDER",_.fj(u,7)).replace("END_TIME_PLACEHOLDER",_.fj(J,7))};
Kr9=function(){var F={propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]};F=F===void 0?hdq:F;_.ZP.add("yt-animated-rolling-number");var q;(q=F).propNames!=null||(q.propNames=[]);var t=new Set(F.propNames),u=_.YRM();q=function(){var Q=u.call(this)||this;Q.props={};Q.isUpdating=!1;Q.hasAttached=!1;Q.isInert=!1;Q.updateQueued=!1;Q.initialClasses=[];Iwe(Q);return Q};
_.M(q,u);q.prototype.forwardKebabCaseProp=function(Q,e){Q=_.Md(Q);if(t.has(Q)||Q==="children")this.props[Q]=e};
q.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var Q=_.X(this.initialClasses),e=Q.next();!e.done;e=Q.next())(e=e.value)&&this.classList.add(e);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
q.prototype.handleSlottedContent=function(){for(var Q=new Map,e=_.X(this.children),r=e.next();!r.done;r=e.next()){r=r.value;var N=void 0,w=(N=r.getAttribute("slot"))!=null?N:"children";(N=Q.get(w))?N.push(r):Q.set(w,[r]);if(!r.getAttribute("key")){var k=void 0,z=void 0;r.setAttribute("key",w+"_"+((z=(k=N)==null?void 0:k.length)!=null?z:0))}}Q=_.X(Q);for(e=Q.next();!e.done;e=Q.next())r=_.X(e.value),e=r.next().value,r=r.next().value,this.forwardKebabCaseProp(e,_.Z(vOn,{slotContent:r}))};
q.prototype.connectedCallback=function(){var Q=this;if(!Iwe(this)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var e=_.X(this.attributes),r=e.next();!r.done;r=e.next())r=r.value,this.forwardKebabCaseProp(r.name,_.gLy(r));this.handleSlottedContent();F.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){Q.afterFirstPatch()});
this.hasAttached=!0}};
q.prototype.attributeChangedCallback=function(Q,e,r){this.isInert||this.isUpdating||this.isConnected||Q!=="class"||this.initialClasses.push.apply(this.initialClasses,_.mZ(r.split(" ")))};
q.prototype.disconnectedCallback=function(){_.yJ$(this)};
q.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var Q,e;_.Jiy(this,_.Z(_.gJw,Object.assign({},this.props,{idomKey:(e=(Q=this.__incrementalDOMData)==null?void 0:Q.key)!=null?e:"yt-animated-rolling-number"})),!0)}catch(N){var r=N instanceof Error?N:new _.D0("Wiz rendering error");r.args||(r.args=[]);r.args.push("Error in deprecated web component wrapper");r.args.push("yt-animated-rolling-number");_.mH(r);throw N;}finally{this.updateQueued=this.isUpdating=!1}}};
q.prototype.enqueueUpdate=function(){var Q=this;return _.p(function(e){if(F.synchronous)return Q.update(),e.return();if(Q.updateQueued)return e.return();Q.updateQueued=!0;return e.return(Promise.resolve().then(function(){Q.update()}))})};
q.prototype.notifyPath=function(){F.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.JJ.Object.defineProperties(q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var J=_.X(F.propNames),g=J.next(),Y={};!g.done;Y={prop$jscomp$107:void 0},g=J.next())Y.prop$jscomp$107=g.value,Object.defineProperty(q.prototype,Y.prop$jscomp$107,{set:function(Q){return function(e){this.isInert||e===this.props[Q.prop$jscomp$107]||(this.props[Q.prop$jscomp$107]=e,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(Y)});
customElements.define("yt-animated-rolling-number",q)};
BxO=function(F,q){return _.iC(F.entities,"booleanEntity",q)};
Lrq=function(){return function(F){_.ud(_.Gl("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:F}))}};
fwy=function(F){switch(F){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
awt=function(F,q,t){var u=_.Sg(t);F&&q&&u&&F.getPlayerPromise().then(function(J){_.h6u(u)&&_.H2();(new _.BE(J)).executeCommand(u,q);_.E("continue_playback_on_desktop_companion_click")||J.pauseVideo()})};
jje=function(F){var q=_.g0(),t;if(t=_.S6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var u;t=(u=t())==null?void 0:u.layoutId}else t=null;awt(q,t,F)};
cE$=function(F){var q=_.g0(),t;if(t=_.S6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var u;t=(u=t())==null?void 0:u.layoutId}else t=null;awt(q,t,F)};
dV=function(F,q){var t=F<0?"-":"";F=Math.abs(F);var u=Math.floor(F/3600),J=Math.floor(F)%3600,g=Math.floor(J/60);J=Math.floor(J)%60;var Y="";(q===void 0?0:q)&&(Y="."+Math.round((F-Math.floor(F))*10));return u>0?t+u+":"+(g<10?"0"+g:""+g)+":"+(J<10?"0"+J:""+J)+Y:t+g+":"+(J<10?"0"+J:""+J)+Y};
Fve=function(F){var q=F.match(/[^0-9:\.]/g);if(q&&q.length>0)return null;F=F.split(":");if(F.length===0||F.length>3)return null;q=1;for(var t=0;F.length>0;){var u=F.pop();if(u===void 0)break;var J=Number(u);if(u===""||isNaN(J))return null;t+=J*q;q*=60}return t};
qC$=function(F,q,t,u){F=Math.max(t,F);q=Math.min(q,u-t);F+q>u?(t=u,F=t-q):t=F+q;return{start:F,end:t}};
t5y=function(F,q,t,u,J,g){F<t?F=t:F+J>u&&(F=u-J);q>u&&(q=u);q=Math.min(F+g,Math.max(F+J,q));return{start:F,end:q}};
u3e=function(F,q,t,u,J,g){q>u?q=u:q-J<t&&(q=t+J);F<t&&(F=t);F=Math.min(q-J,Math.max(q-g,F));return{start:F,end:q}};
J99=function(F){return _.E("web_transcript_cue_id_killswitch")?String(F):"ytd-transcript-renderer_"+F};
sy$=function(F){return _.E("web_transcript_cue_id_killswitch")?!0:F.startsWith("ytd-transcript-renderer")};
g7e=function(F){var q=_.g0(),t;if(t=_.S6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var u;t=(u=t())==null?void 0:u.layoutId}else t=null;awt(q,t,F)};
lQI=function(F){F.style.height="auto";F.style.height=Math.min(F.scrollHeight||20,80)+"px"};
Xsy=function(F,q,t){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:q,hasGradientBackground:t}}],insertByPositionInSection:{sectionTargetId:F,position:"INSERTION_POSITION_LAST"}}}]}}}};
YCS=function(F){var q=_.g0(),t;t=(t=_.S6("yt.www.ads.eventcache.getLastCompanionData"))?(t=t())&&t.layoutId:null;awt(q,t,F)};
ps$=function(F){var q=_.g0(),t;t=(t=_.S6("yt.www.ads.eventcache.getLastCompanionData"))?(t=t())&&t.layoutId:null;awt(q,t,F)};
QyO=function(F,q){q=q===void 0?!1:q;if(F.simpleText)F=[{text:F.simpleText}];else{var t;F=((t=F.runs)!=null?t:[]).map(function(u){return Object.assign({},u)})}if(q)for(q=_.X(F),t=q.next();!t.done;t=q.next())t.value.bold=!0;
return F};
e9l=function(F){var q=F.startEndTimeTemplate,t=F.startTimeUtcMillis;F=F.endTimeUtcMillis;if(q&&t&&F)return _.FK(_.SvS(_.q1(q),Number(t),Number(F)))};
Zhl=function(F,q){var t,u,J=F==null?void 0:(t=F.viewCount)==null?void 0:(u=t.videoViewCountRenderer)==null?void 0:u.shortViewCount;if(!q&&J)return J;var g,Y;return F==null?void 0:(g=F.viewCount)==null?void 0:(Y=g.videoViewCountRenderer)==null?void 0:Y.viewCount};
R9l=function(F,q){var t=F==null?void 0:F.relativeDateText;return!q&&t?[t,!0]:[F==null?void 0:F.dateText,!1]};
r9t=function(F,q,t,u,J){u=u===void 0?!0:u;J=J===void 0?"":J;var g=Zhl(F,q),Y=_.X(R9l(F,q)),Q=Y.next().value;Y=Y.next().value;q=q?F==null?void 0:F.sponsorsOnlyFirstTimeLongText:F==null?void 0:F.sponsorsOnlyFirstTimeShortText;var e=[];t&&g&&e.push(g);!t&&Y||!Q||e.push(Q);F=[F==null?void 0:F.subtitle].concat(_.mZ(e),[q,F==null?void 0:F.stationName,F==null?void 0:F.rating,F?e9l(F):void 0,F==null?void 0:F.upNextProgramText,F==null?void 0:F.superTitleLink]).filter(function(r){return!!r});
t={runs:[]};for(g=0;g<F.length;g++)t.runs.push.apply(t.runs,_.mZ(QyO(F[g],u))),g<F.length-1&&t.runs.push({text:" "+J+" ",bold:u});return t};
NJQ=function(F){if(F)return{runs:[{text:F,bold:!0}]}};
wsQ=function(F){return F.filter(function(q){return!_.n(q,_.fu)})};
ihK=function(F){var q,t,u,J;if(F=F==null?void 0:(q=F.contents)==null?void 0:(t=q.twoColumnWatchNextResults)==null?void 0:(u=t.results)==null?void 0:(J=u.results)==null?void 0:J.contents){var g,Y;return(Y=(g=F.find(function(Q){return!!Q.videoPrimaryInfoRenderer}))==null?void 0:g.videoPrimaryInfoRenderer)==null?void 0:Y.updatedMetadataEndpoint}};
kvZ=function(F,q){var t;return(t=F.sourceConfigs)==null?void 0:t.find(function(u){return u.videoId===q})};
E7K=function(F){return F==="End of video"||F==="End of playlist"};
z9I=function(F){var q,t,u,J;return(q=F.getWatchNextResponse())==null?void 0:(t=q.contents)==null?void 0:(u=t.twoColumnWatchNextResults)==null?void 0:(J=u.playlist)==null?void 0:J.playlist};
o7I=function(F){var q,t,u,J,g,Y;return(q=z9I(F))==null?void 0:(t=q.playlistButtons)==null?void 0:(u=t.menuRenderer)==null?void 0:(J=u.topLevelButtons)==null?void 0:(g=J[0])==null?void 0:(Y=g.playlistLoopButtonRenderer)==null?void 0:Y.playlistLoopStateEntityKey};
n7t=function(F){var q=_.sV().resolve(_.J8),t;return(q=(t=_.n(q.getAutoplayEndpoint(),_.Fw))==null?void 0:t.playlistId)&&q===F};
GvO=function(F,q,t,u,J){function g(){_.mI.cancelJob(VJ);var Y=M5y(q,t/F.getPlaybackRate()),Q=Y.hours,e=Y.minutes;Y=(Y.seconds*1E3||6E4)/F.getPlaybackRate();F.setVideoTimeLeft(TJ9(Q,e));u&&F.getPlayerState()!==0&&F.setSleepTimerTimeLeft(TJ9(Q,e,!0));(Q>0||e>0)&&!J&&(VJ=_.AC(_.mI,g,Y))}
_.mI.cancelJob(VJ);VJ=_.AC(_.mI,g)};
Wv$=function(F,q,t){function u(){_.mI.cancelJob(DDS);var J=M5y(q,t),g=J.hours;J=J.minutes;var Y=6E4/F.getPlaybackRate();if(g>0||J>0)F.setSleepTimerTimeLeft(TJ9(g,J,!0)),DDS=_.AC(_.mI,u,Y)}
_.mI.cancelJob(DDS);DDS=_.AC(_.mI,u)};
Pwe=function(F,q){var t=F.getVolume()/(q/500),u=function(J){_.mI.cancelJob(Oh$);var g=Math.floor(J-t);F.setVolume(g,!1);g>0&&(Oh$=_.AC(_.mI,function(){u(g)},500))};
_.mI.cancelJob(Oh$);Oh$=_.AC(_.mI,function(){u(F.getVolume())})};
xDS=function(F,q){_.mI.cancelJob(Oh$);q&&F.syncVolume()};
A9t=function(){var F={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.oD("SLEEP_TIMER_DISRUPTED")}}}}};_.sV().resolve(_.gN).resolveCommand(F)};
v7O=function(F){return(F.getDuration()-F.getProgressState().current)*1E3};
M5y=function(F,q){F=F+q-(0,_.gB)();if(F<=0)return{hours:0,minutes:0,seconds:0};var t=new IQq(0,0,0,0,0,0,F);F=t.getHours();q=t.getMinutes();t=t.getSeconds();t!==0&&q++;q!==0&&q%60===0&&(F++,q=0);return{hours:F,minutes:q,seconds:t}};
TJ9=function(F,q,t){return F>0&&q>0?t?_.oD("TIME_LEFT_HOURS_MINUTES",{hours:F.toString(),minutes:q.toString()}):_.oD("TIME_HOURS_MINUTES",{hours:F.toString(),minutes:q.toString()}):F>0?t?_.nJ("TIME_LEFT_HOURS",F):_.nJ("TIME_HOURS",F):t?_.oD("TIME_LEFT_MINUTES",{minutes:q.toString()}):_.oD("TIME_MINUTES",{minutes:q.toString()})};
mDI=function(F,q){if(F.timelyActions)return F.timelyActions.find(function(t){var u;return((u=_.n(t,HhS))==null?void 0:u.cueRangeId)===q})};
$Dq=function(F){var q=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.ii(F);F.keyMap_.forEach(function(t,u){_.bu(q,u)||this.remove(u)},F)};
vOn.componentType=_.Wj;bhq=function(F,q){F.reloadContinuationItemsCommandMatcher=q};
_.Uj=function(F,q){F.insertBefore(q,F.childNodes[0]||null)};
y9l=function(F){if(F>=48&&F<=57||F>=96&&F<=106||F>=65&&F<=90||_.es&&F==0)return!0;switch(F){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.QZ;default:return!1}};
CwO=function(F){if(F.altKey&&!F.ctrlKey||F.metaKey||F.keyCode>=112&&F.keyCode<=123)return!1;if(y9l(F.keyCode))return!0;switch(F.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.QZ;default:return F.keyCode<166||F.keyCode>183}};
IQq=function(F,q,t,u,J,g,Y){this.date=typeof F==="number"?new Date(F,q||0,t||1,u||0,J||0,g||0,Y||0):new Date(F&&F.getTime?F.getTime():_.sa())};
_.gd(IQq,_.mY);_.l=IQq.prototype;_.l.getHours=function(){return this.date.getHours()};
_.l.getMinutes=function(){return this.date.getMinutes()};
_.l.getSeconds=function(){return this.date.getSeconds()};
_.l.getMilliseconds=function(){return this.date.getMilliseconds()};
_.l.getUTCDay=function(){return this.date.getUTCDay()};
_.l.getUTCHours=function(){return this.date.getUTCHours()};
_.l.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.l.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.l.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.l.setHours=function(F){this.date.setHours(F)};
_.l.setMinutes=function(F){this.date.setMinutes(F)};
_.l.setSeconds=function(F){this.date.setSeconds(F)};
_.l.setMilliseconds=function(F){this.date.setMilliseconds(F)};
_.l.setUTCHours=function(F){this.date.setUTCHours(F)};
_.l.setUTCMinutes=function(F){this.date.setUTCMinutes(F)};
_.l.setUTCSeconds=function(F){this.date.setUTCSeconds(F)};
_.l.setUTCMilliseconds=function(F){this.date.setUTCMilliseconds(F)};
_.l.add=function(F){_.mY.prototype.add.call(this,F);F.hours&&this.setUTCHours(this.date.getUTCHours()+F.hours);F.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+F.minutes);F.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+F.seconds)};
_.l.JSC$11314_toIsoString=function(F){var q=_.mY.prototype.JSC$11314_toIsoString.call(this,F);return F?q+"T"+_.Q2(this.getHours(),2)+":"+_.Q2(this.getMinutes(),2)+":"+_.Q2(this.getSeconds(),2):q+"T"+_.Q2(this.getHours(),2)+_.Q2(this.getMinutes(),2)+_.Q2(this.getSeconds(),2)};
_.l.equals=function(F){return this.getTime()==F.getTime()};
_.l.toString=function(){return this.JSC$11314_toIsoString()};
_.l.clone=function(){var F=new IQq(this.date);F.firstDayOfWeek_=this.firstDayOfWeek_;F.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return F};
_.dD9=function(F){return _.pj({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:F}})};
hdq={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};V5I=new _.Xk("imageTileRenderer");var UDn=new _.Xk("adGridCardCollectionViewModel");var SCO=new _.Xk("carouselTitleViewModel");var h9n=new _.Xk("ctaCarouselItemViewModel");var Kve=new _.Xk("textFieldViewModel");_.BJl=new _.Xk("engagementPanelHeaderShowNavigationButtonCommand");var LvZ=new _.Xk("hideEngagementPanelScrimAction");var fQI=new _.Xk("setActivePanelItemAction");var aQt=new _.Xk("showEngagementPanelScrimAction");var jy9=new _.Xk("updateEngagementPanelAction");var c9Z=new _.Xk("updateSearchInVideoResultsAction");var FtI=new _.Xk("transcriptCueGroupRenderer");var qSS=new _.Xk("transcriptCueRenderer");var tOS=new _.Xk("transcriptFooterRenderer");var uII=new _.Xk("engagementPanelAdSubtitleRenderer");var JQq=new _.Xk("videoDescriptionFantasySectionViewModel");var sKQ=new _.Xk("deleteClipEngagementPanelCommand");var gnS=new _.Xk("loopCommand");var lql=new _.Xk("changeCreatorEndscreenVisibilityCommand");var XSI=new _.Xk("liveChatCallForQuestionsRenderer");var YS9=new _.Xk("updateTimedMarkersSyncObserverCommand");var HhS=new _.Xk("timelyActionViewModel");var pSt=new _.Xk("timelyActionsOverlayViewModel");var QKe=new _.Xk("repeatChapterCommand");var eZl=new _.Xk("watchPlayerOverflowMenuCommand");var ZlQ=new _.Xk("compositeVideoOverlayRenderer");var RZI=new _.Xk("sortFilterSubMenuRenderer");var rQO=new _.Xk("switchListItemViewModel");var N$S=new _.Xk("inputComposerViewModel");var wSO=new _.Xk("transcriptEditSegmentCommand");var ilQ=new _.Xk("transcriptUpdateSegmentTextCommand");var k9Q=new _.Xk("transcriptSearchBoxRenderer");var Enn=new _.Xk("transcriptSegmentListRenderer");var zZy=new _.Xk("transcriptSegmentRenderer");_.on$=new _.Xk("updateDateTextAction");var nnq=new _.Xk("updateTitleAction");var MOy=new _.Xk("updateViewershipAction");var T$9=new _.Xk("carouselLockupRenderer");var SX=new _.Xk("expandableVideoDescriptionBodyRenderer");var G9S=new _.Xk("videoDescriptionHeaderRenderer");var DyQ=new _.Xk("videoDescriptionYouchatSectionViewModel");_.hw=_.YE("kevlar_watch_page_horizontal_margin",24);_.Wt$=_.YE("kevlar_watch_page_columns_top_padding",24);_.OlZ=426+_.hw*2;_.KX=_.YE("kevlar_watch_two_column_width_threshold",1E3);_.PeZ=_.hw*2;_.xyK=_.YE("kevlar_watch_secondary_width",402);_.AQQ=_.YE("kevlar_watch_max_player_width",1280);_.vnZ=_.YE("kevlar_watch_flexy_metadata_height",136);_.Iqy=_.PeZ+310+_.hw;_.HlK=_.PeZ+360+_.hw;var myZ={PAUSE_CHAT:18};var $yt;var blS;var Bm=function(){return _.x.apply(this,arguments)||this};
_.M(Bm,_.x);Bm.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Bm.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var F=_.n(this.data.button,_.gX);F&&(F.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.JJ.Object.defineProperties(Bm,{template:{configurable:!0,enumerable:!0,get:function(){if(blS===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;$yt===void 0&&($yt=document.createElement("template"));var u=$yt;t.call(q,u.content.cloneNode(!0),F.content.firstChild);blS=F}F=blS;return F}}});
_.C([_.D(_.gv),_.V("design:type",Object)],Bm.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Bm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O({selectorArgs:["data.enabledEntityKey"],selector:mnI,observer:"onEnabledChange"}),_.V("design:type",Boolean)],Bm.prototype,"enabled",void 0);_.C([_.O(),_.V("design:type",Object)],Bm.prototype,"data",void 0);_.C([_.Vu({is:"yt-disableable-button-view-model",noInjection:!0})],Bm);var yQq;var CeO;var dyy=["transVert01","transVert02","transVert03"],VO$="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),LX=function(){var F=_.x.apply(this,arguments)||this;F.emojiManager=_.p7;F.isDarkTheme=document.documentElement.hasAttribute("dark");F.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};F.reactionBuckets=[];F.noEmojiIdentifier="NO_EMOJI";return F};
_.M(LX,_.x);_.l=LX.prototype;_.l.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.l.desktopFountainEmojiSizePxChanged=function(){_.ws(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.l.createUserReactionAnimation=function(F){this.createEmojiAnimation(F,!0)};
_.l.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var F;((F=this.data)==null?0:F.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Gl("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.mZ(this.emojiContainer.children)).forEach(function(q){q.remove()})};
_.l.detached=function(){this.cleanupFountain()};
_.l.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var F;this.reactionBuckets=_.m7.unsafeClone((F=this.emojiFountainData)==null?void 0:F.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.l.processEmojiBucket=function(F){var q=this;if(this.reactionBuckets&&!(F>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var t=this.reactionBuckets[F];this.generateEmojiAnimations(t);if(F<this.reactionBuckets.length-1){var u;if(t==null?0:(u=t.duration)==null?0:u.seconds)this.emojiBucketTimerId=setTimeout(function(){q.processEmojiBucket(F+1)},Number(t.duration.seconds)*1E3)}}};
_.l.generateEmojiAnimations=function(F){var q=this,t=this.getRandomEmojiIdFromBucketWithOverride(F);if(t&&t!==this.noEmojiIdentifier){var u=0;F.targetEps?(u=this.linearInterpolateBounded(1,20,100,12,F.emojiSizeIndex||0),this.createEmojiAnimation(t,!1,F.emojiAnimationMs,u),u=this.getEmojiDelayMsFromTargetEps(F.targetEps)):(this.createEmojiAnimation(t),u=this.getEmojiDelayMsFromDistribution(F.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){q.generateEmojiAnimations(F)},u)}};
_.l.getRandomEmojiIdFromBucketWithOverride=function(F){if(!(F&&F.reactionsData&&F.reactionsData.length&&F.totalReactions))return this.noEmojiIdentifier;for(var q=F.totalReactions,t=1,u=_.X(F.reactionsData),J=u.next();!J.done;J=u.next())J=J.value,(J.reactionWeightOverride||J.reactionWeightOverride===0)&&J.reactionCount&&(q-=J.reactionCount,t-=J.reactionWeightOverride);u=!0;t<0&&(u=!1,q=F.totalReactions,t=1);if(u&&t>0&&q===0)if(t===1){J=0;for(var g=_.X(F.reactionsData),Y=g.next();!Y.done;Y=g.next())Y=
Y.value,Y.reactionCount&&Y.reactionCount>0&&J++;J=1/J;g=_.X(F.reactionsData);for(Y=g.next();!Y.done;Y=g.next())Y.value.reactionWeightOverride=J}else for(J=1/(1-t),g=_.X(F.reactionsData),Y=g.next();!Y.done;Y=g.next())Y=Y.value,Y.reactionWeightOverride&&(Y.reactionWeightOverride*=J);J=Math.random();g=0;Y=_.X(F.reactionsData);for(var Q=Y.next();!Q.done;Q=Y.next())if(Q=Q.value,Q.reactionCount&&(g=(Q.reactionWeightOverride||Q.reactionWeightOverride===0)&&u?g+Q.reactionWeightOverride:g+t*Q.reactionCount/
q,g>J&&(Q.reactionCount--,F.totalReactions--,Q=this.reactionItemToEmojiString(Q),Q!==this.noEmojiIdentifier)))return Q;return this.noEmojiIdentifier};
_.l.reactionItemToEmojiString=function(F){if(F.unicodeEmojiId)return F.unicodeEmojiId;if(F.emoteId)return F.emoteId;if(F.videoReactionType)switch(F.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.l.createEmojiAnimation=function(F,q,t,u){q=q===void 0?!1:q;this.lastEmojiRequestedForTesting=F;var J=F.startsWith("yt-icons:"),g=_.XX(this.emojiManager,F);if(g||J){var Y=document.createElement("emoji");Y.classList.add("yt-emoji-fountain-view-model");Y.classList.add(dyy[Math.floor(Math.random()*dyy.length)]);var Q=document.createElement("div");Q.classList.add("yt-emoji-fountain-view-model");Q.classList.add("horizontal-container");Q.classList.add(VO$[Math.floor(Math.random()*VO$.length)]);q?(t=document.createElement("div"),
t.classList.add("user-reaction-bubble"),t.classList.add("yt-emoji-fountain-view-model"),Q.appendChild(t)):(t&&(Y.style.animationDuration=t+"ms",Q.style.animationDuration=t+"ms"),u&&(Y.style.width=u+"px",Y.style.height=u+"px"));J?(J=document.createElement("yt-icon"),J.polymerController.icon=F,u&&(J.style.width=u+"px",J.style.height=u+"px"),F=J):F=this.emojiManager.createEmoji(g,!1);F.classList.add("yt-emoji-fountain-view-model");Q.appendChild(F);Y.appendChild(Q);this.emojiContainer.appendChild(Y);
Y.addEventListener("animationend",function(){Y.remove()});
var e,r;if((e=this.data)==null?0:(r=e.loggingDirectives)==null?0:r.trackingParams)q=q?_.r0(183501):_.r0(183500),$n9(this.data.loggingDirectives.trackingParams,q),_.D_M(q);setTimeout(function(){Y&&Y.remove()},2E3)}};
_.l.getEmojiDelayMsFromDistribution=function(F){return Math.random()*(F||1)*1E3};
_.l.getEmojiDelayMsFromTargetEps=function(F){return Math.random()*2*(1/F)*1E3};
_.l.linearInterpolateBounded=function(F,q,t,u,J){J=Math.min(Math.max(J,F),t);return(q*(t-J)+u*(J-F))/(t-F)};
LX.prototype.onEmojiFountainDataEntityUpdate=LX.prototype.onEmojiFountainDataEntityUpdate;LX.prototype.desktopFountainEmojiSizePxChanged=LX.prototype.desktopFountainEmojiSizePxChanged;LX.prototype.isActiveChanged=LX.prototype.isActiveChanged;_.C([_.O(),_.V("design:type",_.lY)],LX.prototype,"emojiManager",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.gv),_.V("design:type",Object)],LX.prototype,"ytLiveChatReduxBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],LX.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],LX.prototype,"data",void 0);_.C([_.O({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(F,q){return _.iC(F.entities,"emojiFountainDataEntity",q)}}),
_.V("design:type",Object)],LX.prototype,"emojiFountainData",void 0);_.C([_.O(),_.V("design:type",Boolean)],LX.prototype,"isActive",void 0);_.C([_.za("isActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LX.prototype,"isActiveChanged",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],LX.prototype,"isDarkTheme",void 0);_.C([_.O(),_.V("design:type",String)],LX.prototype,"lastEmojiRequestedForTesting",void 0);
_.C([_.O({value:function(){return _.YE("desktop_fountain_emoji_size_px",20)}}),
_.V("design:type",Number)],LX.prototype,"desktopFountainEmojiSizePx",void 0);_.C([_.za("desktopFountainEmojiSizePx"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LX.prototype,"desktopFountainEmojiSizePxChanged",null);_.C([_.Ms("#emoji-container"),_.V("design:type",HTMLElement)],LX.prototype,"emojiContainer",void 0);
_.C([_.za("emojiFountainData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LX.prototype,"onEmojiFountainDataEntityUpdate",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],LX);
_.b(LX,"yt-emoji-fountain-view-model",function(){if(CeO===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;yQq===void 0&&(yQq=document.createElement("template"));var u=yQq;t.call(q,u.content.cloneNode(!0),F.content.firstChild);CeO=F}F=CeO;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Uy9;var SSI;var fX=function(){return _.x.apply(this,arguments)||this};
_.M(fX,_.x);fX.prototype.onChoiceChanged=function(){this.data&&_.ws(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
fX.prototype.onChoiceChanged=fX.prototype.onChoiceChanged;_.C([_.O(),_.V("design:type",Object)],fX.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fX.prototype,"onChoiceChanged",null);_.C([_.m({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],fX);
_.b(fX,"yt-live-chat-banner-poll-choice",function(){if(SSI===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Uy9===void 0&&(Uy9=document.createElement("template"));var u=Uy9;t.call(q,u.content.cloneNode(!0),F.content.firstChild);SSI=F}F=SSI;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var hZ$;var Kte;var a1=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("web_button_rework_with_live");F.small=!1;return F};
_.M(a1,_.x);a1.prototype.computeIsSmall=function(){var F;return((F=this.buttonOverrides)==null?void 0:F.size)==="S"};
a1.prototype.computeId=function(){return this.data&&this.data.targetId};
_.C([_.D(_.lT.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],a1.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.C([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",String)],a1.prototype,"id",void 0);_.C([_.O(),_.V("design:type",Object)],a1.prototype,"buttonOverrides",void 0);_.C([_.O(),_.V("design:type",Object)],a1.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],a1.prototype,"modern",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.V("design:type",Object)],a1.prototype,"small",void 0);_.C([_.m({disableElementRegistration:!0,is:"yt-live-chat-button"})],a1);
_.b(a1,"yt-live-chat-button",function(){if(Kte===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;hZ$===void 0&&(hZ$=document.createElement("template"));var u=hZ$;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Kte=F}F=Kte;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var B$e;var LtS;var jX=function(){var F=_.x.apply(this,arguments)||this;F.inCollapsedBanner=!1;F.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};F.questionButtonOverrides={style:"mono",type:"filled"};return F};
_.M(jX,_.x);_.l=jX.prototype;_.l.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]]"}}}}}};
_.l.onContextMenuButtonClick=function(F){this.ytLiveChatItemBehavior.showContextMenu(F)};
_.l.onYtRendererstamperFinished=function(){this.menuButton=_.ep(this.hostElement).querySelector("#menu-button")};
_.l.dataChanged=function(){var F,q;if((q=_.n((F=this.data)==null?void 0:F.overflowMenuButton,_.th))==null?0:q.command)this.data.contextMenuEndpoint=_.n(this.data.overflowMenuButton,_.th).command};
_.l.onButtonClick=function(){var F,q=_.n((F=this.data)==null?void 0:F.askQuestionButton,_.th);if(q){if(q.trackingParams&&(F=_.Av(q.trackingParams))){var t=_.yb();t&&_.co(t,F)}_.Q0(this.hostElement,"innertube-command",q.command)}};
jX.prototype.onYtRendererstamperFinished=jX.prototype.onYtRendererstamperFinished;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.gv),_.V("design:type",Object)],jX.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],jX.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.O({observer:"dataChanged"}),_.V("design:type",Object)],jX.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jX.prototype,"inCollapsedBanner",void 0);_.C([_.O(),_.V("design:type",Object)],jX.prototype,"buttonOverrides",void 0);_.C([_.O(),_.V("design:type",Object)],jX.prototype,"questionButtonOverrides",void 0);_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jX.prototype,"onYtRendererstamperFinished",null);
_.C([_.m({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],jX);
_.b(jX,"yt-live-chat-call-for-questions-renderer",function(){if(LtS===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;B$e===void 0&&(B$e=document.createElement("template"));var u=B$e;t.call(q,u.content.cloneNode(!0),F.content.firstChild);LtS=F}F=LtS;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var fqS={};fqS.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var F=this;window.requestAnimationFrame(function(){F.restoreFocusNode_||(F.restoreFocusNode_=document.activeElement);var q=_.LT1(F.hostElement);q.length&&q[q.length-1].focus()})},
isAttachedChanged_:function(F,q){F?this.focusChild_():q&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(F){this.hidden||_.tY(F).indexOf(this.hostElement)!==-1||(F.stopPropagation(),this.focusChild_())}};var aqn;var jKq;var cm=function(){return _.x.apply(this,arguments)||this};
_.M(cm,_.x);cm.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
cm.prototype.onClick=function(F){F.target!==this.confirmButton&&F.target!==this.cancelButton&&(this.hidden=!0)};
_.C([_.Ms("#confirm_button"),_.V("design:type",Object)],cm.prototype,"confirmButton",void 0);_.C([_.Ms("#cancel_button"),_.V("design:type",Object)],cm.prototype,"cancelButton",void 0);_.C([_.O(),_.V("design:type",cQI)],cm.prototype,"data",void 0);_.C([_.O({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],cm.prototype,"hidden",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],cm.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(fqS.YtLiveChatDialogBehavior),_.V("design:type",Object)],cm.prototype,"ytLiveChatDialogBehavior",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],cm);
var cQI=_.b(cm,"yt-live-chat-dialog-renderer",function(){if(jKq===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;aqn===void 0&&(aqn=document.createElement("template"));var u=aqn;t.call(q,u.content.cloneNode(!0),F.content.firstChild);jKq=F}F=jKq;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var FZq;var qsO,tSn=function(){if(qsO!==void 0)return qsO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;FZq===void 0&&(FZq=document.createElement("template"));var u=FZq;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return qsO=F};var uYe;var JKy;var Fi=function(){var F=_.x.apply(this,arguments)||this;F.tooltip=null;F.data=null;F.id="";F.active=!1;F.icon="";F.disabled=!1;F.showTooltip=!1;F.useToggledActiveState=!0;F.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return F};
_.M(Fi,_.x);_.l=Fi.prototype;
_.l.dataChanged=function(){var F;((F=this.data)==null?0:F.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.Ns)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var q;if((q=this.data)==null?0:q.disabled)this.disabled=!0};
_.l.computeId=function(F){return F};
_.l.computeIcon=function(F,q){if(!F)return"";if(this.useToggledActiveState)return"yt-icons:"+F.toLowerCase();var t,u;return q&&((t=this.data)==null?0:(u=t.toggledIcon)==null?0:u.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+F.toLowerCase()};
_.l.logPDGEntryPoint=function(){_.kKu(_.kh("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")};
_.l.immediatelyShowTooltip=function(){var F=_.ep(this.hostElement).querySelector("#tooltip");F.animationDelay=0;F.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};F.show()};
_.l.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.l.onClick=function(F){var q;((q=this.data)==null?0:q.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),F.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Q0(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.l.computeShowTooltip=function(F,q){return!!(F&&F.tooltip&&q)};
_.l.maybeUpdateTooltipText=function(){var F=this,q;if((q=this.data)==null?0:q.tooltip){var t=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Ns)(F.tooltip).textContent=t},250)}};
_.l.handleLiveChatActions=function(F){var q=this;F.length&&(this.id!=="creator"&&this.id!=="product-picker"||F.forEach(function(t){(t=q.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",t))&&t.durationSec===t.fullDurationSec&&q.startBubble(q.colorFromDecimal(t.startBackgroundColor))}))};
_.l.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.l.startBubble=function(F){_.ws(this.hostElement,{"--yt-live-chat-monetization-button-glow":F});this.hostElement.setAttribute("bubble","")};
_.l.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.l.colorFromDecimal=function(F){typeof F==="string"&&(F=Number(F));return"rgba("+[F>>16&255,F>>8&255,F&255,(F>>24&255)/255].join()+")"};
Fi.prototype.onAnimationEnd=Fi.prototype.onAnimationEnd;Fi.prototype.disabledChanged=Fi.prototype.disabledChanged;Fi.prototype.dataChanged=Fi.prototype.dataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Fi.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Fi.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.lT.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],Fi.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Fi.prototype,"data",void 0);_.C([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",Object)],Fi.prototype,"id",void 0);_.C([_.O({notify:!0,reflectToAttribute:!0}),_.V("design:type",Object)],Fi.prototype,"active",void 0);
_.C([_.O({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.V("design:type",Object)],Fi.prototype,"icon",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fi.prototype,"disabled",void 0);_.C([_.O({computed:"computeShowTooltip(data, disabled)"}),_.V("design:type",Object)],Fi.prototype,"showTooltip",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Fi.prototype,"useToggledActiveState",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fi.prototype,"dataChanged",null);_.C([_.za("disabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fi.prototype,"disabledChanged",null);_.C([_.EB("animationend"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Fi.prototype,"onAnimationEnd",null);
_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Fi);
_.b(Fi,"yt-live-chat-icon-toggle-button-renderer",function(){if(JKy===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;uYe===void 0&&(uYe=document.createElement("template"));var u=uYe;t.call(q,u.content.cloneNode(!0),F.content.firstChild);JKy=F}F=JKy;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var s2S;var glI;var qI=function(){return _.x.apply(this,arguments)||this};
_.M(qI,_.x);qI.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.C([_.O(),_.V("design:type",Object)],qI.prototype,"data",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],qI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.m({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],qI);
_.b(qI,"yt-live-chat-message-input-prompt-header-renderer",function(){if(glI===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;s2S===void 0&&(s2S=document.createElement("template"));var u=s2S;t.call(q,u.content.cloneNode(!0),F.content.firstChild);glI=F}F=glI;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var loy;var XAZ;var YsZ;var pAl;var Q2Q;var ePy;var Z6y=function(){return _.x.apply(this,arguments)||this};
_.M(Z6y,_.x);_.C([_.O(),_.V("design:type",Object)],Z6y.prototype,"data",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],Z6y);
_.b(Z6y,"yt-live-chat-message-subtext-renderer",function(){if(ePy===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Q2Q===void 0&&(Q2Q=document.createElement("template"));var u=Q2Q;t.call(q,u.content.cloneNode(!0),F.content.firstChild);ePy=F}F=ePy;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var tj=function(){var F=_.x.apply(this,arguments)||this;F.subtextOnBottom=!1;F.buttonOverrides={style:"mono",type:"tonal"};return F};
_.M(tj,_.x);tj.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],tj.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],tj.prototype,"subtextOnBottom",void 0);_.C([_.O(),_.V("design:type",Object)],tj.prototype,"buttonOverrides",void 0);
_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],tj);
_.b(tj,"yt-live-chat-message-renderer",function(){if(pAl===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;YsZ===void 0&&(YsZ=document.createElement("template"));var u=YsZ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);pAl=F}F=pAl;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var RPQ;var rK$;var u2=function(){var F=_.x.apply(this,arguments)||this;F.isRemovable=!1;F.hasPrefilledText=!1;F.isInputDirty=!1;F.overCharacterLimit=!1;F.underCharacterLimit=!1;F.showErrorMessage=!1;return F};
_.M(u2,_.x);_.l=u2.prototype;_.l.computeId=function(){return this.data.id};
_.l.computeInputData=function(){return this.data.inputData};
_.l.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.l.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.l.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.l.getLiveChatRichMessageInput=function(){return _.ep(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.l.clearInput=function(){_.ep(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.l.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.l.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.l.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.l.handleTextInputCharCountChanged=function(F){F=F.detail&&F.detail.characterCount;F!==void 0&&(this.characterCount=F,F!==0&&(this.isInputDirty=!0))};
_.l.onInputFocusOut=function(){this.isInputDirty=!0};
_.l.onClickCloseButton=function(){_.Q0(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
u2.prototype.handleTextInputCharCountChanged=u2.prototype.handleTextInputCharCountChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],u2.prototype,"data",void 0);_.C([_.O({computed:"computeId(data.id)"}),_.V("design:type",String)],u2.prototype,"id",void 0);_.C([_.O({computed:"computeInputData(data.inputData)"}),_.V("design:type",Object)],u2.prototype,"inputData",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.V("design:type",Object)],u2.prototype,"isRemovable",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.V("design:type",Object)],u2.prototype,"hasPrefilledText",void 0);_.C([_.O({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.V("design:type",Number)],u2.prototype,"charactersRemaining",void 0);
_.C([_.O(),_.V("design:type",Number)],u2.prototype,"characterCount",void 0);_.C([_.O(),_.V("design:type",Object)],u2.prototype,"isInputDirty",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.V("design:type",Object)],u2.prototype,"overCharacterLimit",void 0);_.C([_.O({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.V("design:type",Object)],u2.prototype,"underCharacterLimit",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.V("design:type",Object)],u2.prototype,"showErrorMessage",void 0);_.C([_.EB("yt-live-chat-text-input-field-renderer-character-count-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],u2.prototype,"handleTextInputCharCountChanged",null);
_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],u2);
_.b(u2,"yt-live-chat-poll-editor-input",function(){if(rK$===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;RPQ===void 0&&(RPQ=document.createElement("template"));var u=RPQ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);rK$=F}F=rK$;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var NLl;var wAy;var i6I={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Jj=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("web_button_rework_with_live");F.closeButtonOverrides={iconPosition:"icon-only"};F.startButtonOverrides={style:"mono",type:"filled"};F.addOptionButtonOverrides={style:"mono",type:"text"};return F};
_.M(Jj,_.x);_.l=Jj.prototype;
_.l.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"}}}}};
_.l.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var F;_.n((F=this.data)==null?void 0:F.startButton,_.th)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.l.computeId=function(){return this.data&&this.data.id||""};
_.l.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.l.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.l.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.l.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.l.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var F=0;F<this.pollEditorInfoWithDefaults.minPollOptions;F++)this.addPollOptionData()};
_.l.getIsValidPoll=function(){var F=this;if(!this.pollEditorInfoWithDefaults)return!1;var q=this.pollEditorInfoWithDefaults,t=q.minPollOptionChars,u=q.maxPollOptionChars,J=q.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>q.maxPollQuestionChars)return!1;q=_.ep(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(q).every(function(g,Y){g=g.characterCount;!g&&J[Y]&&(g=F.ytRendererBehavior.getSimpleString(J[Y]).length);return g!==void 0&&g>=t&&g<=u})};
_.l.isValidPollChanged=function(){var F;_.n((F=this.data)==null?void 0:F.startButton,_.th)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.l.addPollOptionData=function(){var F=this.pollEditorInfoWithDefaults,q=F.maxPollOptionChars,t=F.optionPlaceholderText,u=F.customOptionPlaceholderText,J=F.pollOptionData;this.currentNumPollOptions>=F.maxPollOptions||(F={liveChatPollOptionInput:{inputData:{placeholder:u[this.currentNumPollOptions]||t,maxCharacterLimit:q},maxCharacterLimit:q,minCharacterLimit:F.minPollOptionChars,hasPrefilledText:!!u[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=F.minPollOptions}},J.charCountErrorText&&
(F.liveChatPollOptionInput.charCountErrorText=J.charCountErrorText),J.charsRemainingAltLabel&&(F.liveChatPollOptionInput.charsRemainingAltLabel=J.charsRemainingAltLabel),J.removeOptionAltText&&(F.liveChatPollOptionInput.removeOptionAltText=J.removeOptionAltText),this.push("pollOptionsData",F),J=Array.from(_.ep(_.ep(this.hostElement).querySelector("#poll-options")).children),J.forEach(function(g,Y){g.polymerController.set("data.id",Y)}),_.ep(J[J.length-1]).querySelector("#input").focus())};
_.l.getPollOptionInputValues=function(){var F=this,q=[],t=_.ep(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),u=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(t).forEach(function(J,g){var Y=null;J=J.getLiveChatRichMessageInput();var Q;(J==null?0:(Q=J.textSegments)==null?0:Q.length)?Y=_.hT(J):u[g]&&(Y=F.formattedStringToLiveChatRichMessageInput(u[g]));q.push(Y)});
return q};
_.l.requestCreateAndStartPoll=function(F){var q=this.getPollOptionInputValues();if(!q.some(function(u){return!u})){q={optionText:q};
var t=_.ep(_.ep(this.hostElement).querySelector("#poll-question")).firstChild;t&&t.liveChatRichMessageInput&&(q.questionText=_.hT(t.liveChatRichMessageInput));_.RD(this.hostElement,[F,q])}};
_.l.selectedChanged=function(){if(this.selected){var F=_.ep(_.ep(this.hostElement).querySelector("#start-button")).firstElementChild;if(F){var q;(q=_.ep(F).querySelector("#button")||_.Zj(F).querySelector("button"))==null||q.focus()}}};
_.l.handleTextInputChanged=function(F){var q;((q=F.target)==null?void 0:q.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=F.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.l.handleStartButtonAction=function(F){F.detail.actionName==="yt-service-request"&&(F.stopPropagation(),(F=F.detail.args[1])&&this.requestCreateAndStartPoll(F))};
_.l.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.l.handleServiceRequestCompleted=function(F){this.createPollRequestInFlight=!1;(F=F.detail&&F.detail.data)&&F.success&&(_.Q0(this.hostElement,"picker-cancelled"),_.ec(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.l.onCloseClick=function(){_.Q0(this.hostElement,"picker-cancelled");_.ec(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.l.handlePollEditorInputClosed=function(F){var q=this.pollOptionsData.findIndex(function(t){return t.liveChatPollOptionInput.id===F.detail.id});
this.splice("pollOptionsData",q,1);this.isValidPoll=this.getIsValidPoll()};
_.l.onPickerCancelled=function(){this.reset()};
_.l.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var F=_.ep(_.ep(this.hostElement).querySelector("#poll-question")).firstChild;F&&F.setLiveChatRichMessageInput(null);if(F=_.ep(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){F=_.X(Array.from(F));for(var q=F.next();!q.done;q=F.next())q.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.l.formattedStringToLiveChatRichMessageInput=function(F){return F.simpleText?{text_segments:[F.simpleText]}:{text_segments:F.runs}};
_.JJ.Object.defineProperties(Jj.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(i6I,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Jj.prototype.onPickerCancelled=Jj.prototype.onPickerCancelled;Jj.prototype.handlePollEditorInputClosed=Jj.prototype.handlePollEditorInputClosed;Jj.prototype.handleServiceRequestCompleted=Jj.prototype.handleServiceRequestCompleted;Jj.prototype.handleServiceRequestSent=Jj.prototype.handleServiceRequestSent;Jj.prototype.handleTextInputChanged=Jj.prototype.handleTextInputChanged;Jj.prototype.selectedChanged=Jj.prototype.selectedChanged;Jj.prototype.isValidPollChanged=Jj.prototype.isValidPollChanged;
Jj.prototype.shouldInitializePollChanged=Jj.prototype.shouldInitializePollChanged;Jj.prototype.dataChanged=Jj.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Jj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Jj.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Jj.prototype,"modern",void 0);
_.C([_.O(),_.V("design:type",Object)],Jj.prototype,"closeButtonOverrides",void 0);_.C([_.O(),_.V("design:type",Object)],Jj.prototype,"startButtonOverrides",void 0);_.C([_.O(),_.V("design:type",Object)],Jj.prototype,"addOptionButtonOverrides",void 0);_.C([_.O({computed:"computeId(data.id)",reflectToAttribute:!0}),_.V("design:type",String)],Jj.prototype,"id",void 0);_.C([_.O({value:function(){return[]}}),
_.V("design:type",Array)],Jj.prototype,"pollOptionsData",void 0);_.C([_.W("pollEditorInfoWithDefaults"),_.V("design:type",Object),_.V("design:paramtypes",[])],Jj.prototype,"pollQuestionData",null);_.C([_.O({value:0}),_.V("design:type",Number)],Jj.prototype,"pollQuestionCharacterCount",void 0);_.C([_.W("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.V("design:type",Object),_.V("design:paramtypes",[])],Jj.prototype,"pollQuestionCharactersRemaining",null);
_.C([_.O({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.V("design:type",Boolean)],Jj.prototype,"overQuestionCharacterLimit",void 0);_.C([_.W("data.pollEditorInfo"),_.V("design:type",Object),_.V("design:paramtypes",[])],Jj.prototype,"pollEditorInfoWithDefaults",null);_.C([_.O({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.V("design:type",Number)],Jj.prototype,"currentNumPollOptions",void 0);
_.C([_.O({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Jj.prototype,"hasMaxNumPollOptions",void 0);_.C([_.W("pollEditorInfoWithDefaults","pollOptionsData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Jj.prototype,"shouldInitializePoll",null);_.C([_.O(),_.V("design:type",Object)],Jj.prototype,"isValidPoll",void 0);
_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Jj.prototype,"createPollRequestInFlight",void 0);_.C([_.O(),_.V("design:type",Object)],Jj.prototype,"selected",void 0);_.C([_.O({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.V("design:type",Boolean)],Jj.prototype,"showQuestionErrorMessage",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jj.prototype,"dataChanged",null);_.C([_.za("shouldInitializePoll"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jj.prototype,"shouldInitializePollChanged",null);_.C([_.za("isValidPoll"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jj.prototype,"isValidPollChanged",null);
_.C([_.za("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jj.prototype,"selectedChanged",null);_.C([_.EB("yt-live-chat-text-input-field-renderer-character-count-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Jj.prototype,"handleTextInputChanged",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jj.prototype,"handleServiceRequestSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Jj.prototype,"handleServiceRequestCompleted",null);
_.C([_.EB("yt-live-chat-poll-editor-input-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Jj.prototype,"handlePollEditorInputClosed",null);_.C([_.EB("picker-cancelled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jj.prototype,"onPickerCancelled",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Jj);
_.b(Jj,"yt-live-chat-poll-editor-panel-renderer",function(){if(wAy===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;NLl===void 0&&(NLl=document.createElement("template"));var u=NLl;t.call(q,u.content.cloneNode(!0),F.content.firstChild);wAy=F}F=wAy;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var kg9;var ElQ;var sx=function(){return _.x.apply(this,arguments)||this};
_.M(sx,_.x);sx.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
sx.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.JJ.Object.defineProperties(sx.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var F,q;return(F=this.data)==null?void 0:(q=F.title)==null?void 0:q.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var F;return _.Sg((F=this.data)==null?void 0:F.onTapCommand)}}});
_.C([_.D(_.mu.YtEndpointBehavior),_.V("design:type",Object)],sx.prototype,"ytEndpointBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],sx.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],sx.prototype,"itemId",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],sx.prototype,"hasPromotion",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],sx.prototype,"innertubeCommand",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],sx);
_.b(sx,"yt-live-chat-product-picker-panel-item-view-model",function(){if(ElQ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;kg9===void 0&&(kg9=document.createElement("template"));var u=kg9;t.call(q,u.content.cloneNode(!0),F.content.firstChild);ElQ=F}F=ElQ;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var zPO;var olS;var g6=function(){var F=_.x.apply(this,arguments)||this;F.id="product-picker";F.selected=!1;F.closeButtonId="close-button";F.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return F};
_.M(g6,_.x);_.l=g6.prototype;_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.l.observeSelected=function(){this.selected&&this.hostElement.focus();var F=_.ep(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");F.length&&F[0].focus()};
_.l.onCloseBuyFlow=function(){_.Q0(this.hostElement,"picker-cancelled")};
_.l.onCloseClick=function(){_.Q0(this.hostElement,"picker-cancelled");var F;((F=this.data)==null?0:F.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.n(this.data.closeButton,_.gX))};
_.l.onCloseEngageWithAudienceEditorPanels=function(){_.Q0(this.hostElement,"picker-cancelled")};
g6.prototype.observeSelected=g6.prototype.observeSelected;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],g6.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],g6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],g6.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],g6.prototype,"id",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],g6.prototype,"selected",void 0);_.C([_.O(),_.V("design:type",Object)],g6.prototype,"closeButtonId",void 0);_.C([_.za("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g6.prototype,"observeSelected",null);
_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],g6);
_.b(g6,"yt-live-chat-product-picker-panel-view-model",function(){if(olS===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;zPO===void 0&&(zPO=document.createElement("template"));var u=zPO;t.call(q,u.content.cloneNode(!0),F.content.firstChild);olS=F}F=olS;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var nlq;var MSZ;var l2=function(){var F=_.x.apply(this,arguments)||this;F.iconId="";F.icon="";F.disabled=!1;F.systemIcons=_.E("kevlar_system_icons");return F};
_.M(l2,_.x);_.l=l2.prototype;_.l.computeIconId=function(F){return F&&F.icon&&F.icon.iconType?F.icon.iconType.toLowerCase():""};
_.l.computeIcon=function(F){return F&&F.icon&&F.icon.iconType?(F=F.icon.iconType.toLowerCase(),(F.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+F):""};
_.l.computeDisabled=function(F){return!!F};
_.l.computeCommand=function(F,q){return q?void 0:F};
_.l.computeTooltip=function(F,q){return q&&F?F:""};
_.l.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.JJ.Object.defineProperties(l2.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var F="",q,t,u;if((q=this.data)==null?0:(t=q.text)==null?0:(u=t.runs)==null?0:u.length)F=this.data.text.runs[0].text||"";else{var J,g;if((J=this.data)==null?0:(g=J.text)==null?0:g.simpleText)F=this.data.text.simpleText}var Y,Q,e;if((Y=this.data)==null?0:(Q=Y.subtext)==null?0:(e=Q.runs)==null?0:e.length)F&&(F+=". "),F+=this.data.subtext.runs[0].text||"";else{var r,N;if((r=this.data)==null?0:(N=r.subtext)==
null?0:N.simpleText)F&&(F+=". "),F+=this.data.subtext.simpleText}return F}}});
_.C([_.D(_.mu.YtEndpointBehavior),_.V("design:type",Object)],l2.prototype,"ytEndpointBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],l2.prototype,"data",void 0);_.C([_.O({computed:"computeIconId(data)",reflectToAttribute:!0}),_.V("design:type",Object)],l2.prototype,"iconId",void 0);
_.C([_.O({computed:"computeIcon(data)",reflectToAttribute:!0}),_.V("design:type",Object)],l2.prototype,"icon",void 0);_.C([_.O({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.V("design:type",Object)],l2.prototype,"disabled",void 0);_.C([_.O({computed:"computeCommand(data.command, disabled)"}),_.V("design:type",Object)],l2.prototype,"command",void 0);_.C([_.O({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.V("design:type",String)],l2.prototype,"tooltip",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],l2.prototype,"systemIcons",void 0);_.C([_.W("data.text","data.subtext"),_.O(),_.V("design:type",String),_.V("design:paramtypes",[])],l2.prototype,"ariaLabel",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],l2);
_.b(l2,"yt-live-chat-product-button-renderer",function(){if(MSZ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;nlq===void 0&&(nlq=document.createElement("template"));var u=nlq;t.call(q,u.content.cloneNode(!0),F.content.firstChild);MSZ=F}F=MSZ;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var TLS;var GgZ;var Xi=function(){var F=_.x.apply(this,arguments)||this;F.selected=!1;F.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return F};
_.M(Xi,_.x);_.l=Xi.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.computeId=function(F){return F.id||""};
_.l.onCloseClick=function(){_.Q0(this.hostElement,"picker-cancelled")};
_.l.observeSelected=function(){this.selected&&this.hostElement.focus();var F=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");F.length&&F[0].focus()};
_.l.onCloseBuyFlow=function(){_.Q0(this.hostElement,"picker-cancelled")};
_.l.onCloseEngageWithAudienceEditorPanels=function(){_.Q0(this.hostElement,"picker-cancelled")};
Xi.prototype.observeSelected=Xi.prototype.observeSelected;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Xi.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Xi.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Xi.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Xi.prototype,"data",void 0);
_.C([_.O({computed:"computeId(data)",reflectToAttribute:!0}),_.V("design:type",String)],Xi.prototype,"id",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Xi.prototype,"selected",void 0);_.C([_.za("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xi.prototype,"observeSelected",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],Xi);
_.b(Xi,"yt-live-chat-product-picker-renderer",function(){if(GgZ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;TLS===void 0&&(TLS=document.createElement("template"));var u=TLS;t.call(q,u.content.cloneNode(!0),F.content.firstChild);GgZ=F}F=GgZ;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var DvQ;var WZZ;var O6e;var PFI;var Y$=function(){return _.x.apply(this,arguments)||this};
_.M(Y$,_.x);Y$.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()};
Y$.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Y$.prototype.created=function(){this.ids={background:_.sp(),maskOne:_.sp(),maskTwo:_.sp(),gradient:_.sp(),largeBackground:_.sp(),largeGradientOne:_.sp(),largeGradientTwo:_.sp(),largeGradientPath:_.sp()}};
Y$.prototype.maybeLoadAnimationBackground=Y$.prototype.maybeLoadAnimationBackground;_.C([_.O({value:!1}),_.V("design:type",Boolean)],Y$.prototype,"useLargeBackground",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],Y$.prototype,"useAnimationBackground",void 0);_.C([_.O({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.V("design:type",Boolean)],Y$.prototype,"useRegularBackground",void 0);
_.C([_.O(),_.V("design:type",Object)],Y$.prototype,"ids",void 0);_.C([_.O(),_.V("design:type",Object)],Y$.prototype,"lottieAnimation",void 0);_.C([_.Ms("#animation-background"),_.V("design:type",HTMLDivElement)],Y$.prototype,"animationBackground",void 0);_.C([_.za("useAnimationBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Y$.prototype,"maybeLoadAnimationBackground",null);
_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Y$);
_.b(Y$,"yt-live-interactivity-component-background",function(){if(PFI===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;O6e===void 0&&(O6e=document.createElement("template"));var u=O6e;t.call(q,u.content.cloneNode(!0),F.content.firstChild);PFI=F}F=PFI;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var pP=function(){var F=_.x.apply(this,arguments)||this;F.characterCount=0;F.showInputErrorMessage=!1;F.startQnaRequestInFlight=!1;F.modern=_.E("web_button_rework_with_live");F.buttonOverrides={style:"mono",type:"filled"};F.closeButtonOverrides={iconPosition:"icon-only"};F.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return F};
_.M(pP,_.x);_.l=pP.prototype;
_.l.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]]"}}}}}};
_.l.onCharacterCountChanged=function(F){var q,t,u,J,g=(t=_.n(this==null?void 0:(q=this.data)==null?void 0:q.creatorCallForQuestions,XSI))==null?void 0:(u=t.inputField)==null?void 0:(J=u.liveChatTextInputFieldRenderer)==null?void 0:J.maxCharacterLimit,Y,Q;g!=null&&(F==null?void 0:(Y=F.detail)==null?void 0:Y.characterCount)!=null&&_.n(this==null?void 0:(Q=this.data)==null?void 0:Q.startButton,_.th)&&(q=F.detail.characterCount>g,this.set("data.startButton.buttonRenderer.isDisabled",F.detail.characterCount===
0||q),this.showInputErrorMessage=q)};
_.l.onCloseClick=function(){_.Q0(this.hostElement,"picker-cancelled");_.ec(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.onPickerCancelled=function(){var F=_.ep(this.hostElement).querySelector("#qna-creator-text-input-field");F&&F.setLiveChatRichMessageInput(null)};
_.l.handleOpenQnaStartPanel=function(){var F=_.ep(this.hostElement).querySelector("#qna-creator-text-input-field");F&&F.focus()};
_.l.handleStartButtonAction=function(F){var q=this;if(F.detail.actionName==="yt-service-request"&&(F.stopPropagation(),F=F.detail.args[1])){var t=_.ep(this.hostElement).querySelector("#qna-creator-text-input-field"),u;(t==null?0:(u=t.liveChatRichMessageInput)==null?0:u.textSegments)&&t.liveChatRichMessageInput.textSegments.length!==0&&(u={rich_message:_.hT(t.liveChatRichMessageInput)},_.RD(this.hostElement,[F,u]).then(function(){_.Q0(q.hostElement,"picker-cancelled")}))}};
_.l.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.l.handleServiceRequestCompleted=function(F){var q;F=F==null?void 0:(q=F.detail)==null?void 0:q.data;(F==null?0:F.actions)&&F.actions.length>0?this.startQnaRequestInFlight=!1:_.ec(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
pP.prototype.handleServiceRequestError=pP.prototype.handleServiceRequestError;pP.prototype.handleServiceRequestCompleted=pP.prototype.handleServiceRequestCompleted;pP.prototype.handleServiceRequestSent=pP.prototype.handleServiceRequestSent;pP.prototype.onPickerCancelled=pP.prototype.onPickerCancelled;pP.prototype.onCharacterCountChanged=pP.prototype.onCharacterCountChanged;_.C([_.O(),_.V("design:type",Object)],pP.prototype,"characterCount",void 0);
_.C([_.O(),_.V("design:type",Object)],pP.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],pP.prototype,"showInputErrorMessage",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],pP.prototype,"startQnaRequestInFlight",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],pP.prototype,"modern",void 0);_.C([_.O(),_.V("design:type",Object)],pP.prototype,"buttonOverrides",void 0);
_.C([_.O(),_.V("design:type",Object)],pP.prototype,"closeButtonOverrides",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.gv),_.V("design:type",Object)],pP.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.D(_.QA.YtLiveChatItemBehavior),_.V("design:type",_.eD)],pP.prototype,"ytLiveChatItemBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],pP.prototype,"ytActionHandlerBehavior",void 0);_.C([_.EB("yt-live-chat-text-input-field-renderer-character-count-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],pP.prototype,"onCharacterCountChanged",null);_.C([_.EB("picker-cancelled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pP.prototype,"onPickerCancelled",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pP.prototype,"handleServiceRequestSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],pP.prototype,"handleServiceRequestCompleted",null);
_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],pP.prototype,"handleServiceRequestError",null);_.C([_.m({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],pP);
_.b(pP,"yt-live-chat-qna-start-panel-renderer",function(){if(WZZ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;DvQ===void 0&&(DvQ=document.createElement("template"));var u=DvQ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);WZZ=F}F=WZZ;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var xvO;var AK$;var Qr=function(){return _.x.apply(this,arguments)||this};
_.M(Qr,_.x);Qr.prototype.dismiss=function(){_.Q0(this.hostElement,"yt-live-chat-error-message-dismiss")};
Qr.prototype.edit=function(){_.Q0(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.C([_.O(),_.V("design:type",Object)],Qr.prototype,"data",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Qr);
_.b(Qr,"yt-live-chat-text-actions-error-message-renderer",function(){if(AK$===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;xvO===void 0&&(xvO=document.createElement("template"));var u=xvO;t.call(q,u.content.cloneNode(!0),F.content.firstChild);AK$=F}F=AK$;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var vl$;var Io9;var H6l;var mvy;var e3=function(){var F=_.x.apply(this,arguments)||this;F.isDarkTheme=document.documentElement.hasAttribute("dark");F.newnessDotEligible=!1;return F};
_.M(e3,_.x);e3.prototype.sendReaction=function(){var F,q,t=((F=this.data)==null?void 0:F.emojiId)||((q=this.data)==null?void 0:q.emoteId),u;t&&((u=this.data)==null?0:u.shouldTriggerAnimation)&&_.ec(this.hostElement,"yt-create-user-reaction-animation",[t]);var J;(F=_.Sg((J=this.data)==null?void 0:J.onTap))&&_.n9(F,this.hostElement);this.showNewnessDot&&_.ec(this.hostElement,"yt-hide-newness-dot")};
e3.prototype.onClick=function(F){(!F||F.clientX||F.clientY)&&this.sendReaction()};
e3.prototype.onKeyDown=function(F){F.key!=="Enter"&&F.key!==" "||F.repeat||this.sendReaction()};
_.JJ.Object.defineProperties(e3.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var F,q;return!!(((F=this.data)==null?0:F.emojiId)||((q=this.data)==null?0:q.emoteId))}}});
_.C([_.O(),_.V("design:type",Object)],e3.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],e3.prototype,"isDarkTheme",void 0);_.C([_.O(),_.V("design:type",Object)],e3.prototype,"newnessDotEligible",void 0);_.C([_.W("data.maybeShowNewnessDot"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],e3.prototype,"showNewnessDot",null);_.C([_.W("data.emojiId","data.emoteId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],e3.prototype,"useYtImage",null);
_.C([_.Vu({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],e3);
_.b(e3,"yt-reaction-control-panel-button-view-model",function(){if(mvy===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;H6l===void 0&&(H6l=document.createElement("template"));var u=H6l;t.call(q,u.content.cloneNode(!0),F.content.firstChild);mvy=F}F=mvy;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var $vq;var b6S;var Za=function(){var F=_.x.apply(this,arguments)||this;F.reactionControlPanelExpanded=!1;F.isDarkTheme=document.documentElement.hasAttribute("dark");F.newnessDotEligible=!1;return F};
_.M(Za,_.x);_.l=Za.prototype;_.l.expandedButtonsChanged=function(){var F,q;_.ws(this.hostElement,{"--expanded-buttons-height":((q=(F=this.expandedButtonsData)==null?void 0:F.length)!=null?q:0)*36+"px"})};
_.l.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}}};
_.l.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.l.onMouseLeave=function(){var F=this;this.collapseTimer=setTimeout(function(){F.reactionControlPanelExpanded=!1},500)};
_.l.onFocusIn=function(){this.onMouseEnter()};
_.l.onFocusOut=function(){this.onMouseLeave()};
_.l.onCollapsedButtonFocusIn=function(){var F=this;setTimeout(function(){var q;(q=F.expandedButtons.querySelector("button"))==null||q.focus()},100)};
_.l.onCollapsedButtonFocusOut=function(F){F.stopPropagation()};
_.JJ.Object.defineProperties(Za.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var F,q;return _.m7.unsafeClone((F=this.liveReactionsData)==null?void 0:F.emojiButtonData)||((q=this.data)==null?void 0:q.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var F;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((F=this.data)==null||!F.maybeShowNewnessDot)}}});
Za.prototype.expandedButtonsChanged=Za.prototype.expandedButtonsChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.gv),_.V("design:type",Object)],Za.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Za.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Za.prototype,"reactionControlPanelExpanded",void 0);_.C([_.O({selectorArgs:["data.liveReactionsDataEntityKey"],selector:HeO}),_.V("design:type",Object)],Za.prototype,"liveReactionsData",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Za.prototype,"isDarkTheme",void 0);_.C([_.O(),_.V("design:type",Object)],Za.prototype,"newnessDotEligible",void 0);
_.C([_.W("liveReactionsData","data.expandedButtons"),_.V("design:type",Object),_.V("design:paramtypes",[])],Za.prototype,"expandedButtonsData",null);_.C([_.W("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.O({reflectToAttribute:!0}),_.V("design:type",Object),_.V("design:paramtypes",[])],Za.prototype,"showNewnessDot",null);_.C([_.Ms("#expanded-buttons"),_.V("design:type",HTMLElement)],Za.prototype,"expandedButtons",void 0);
_.C([_.za("expandedButtonsData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Za.prototype,"expandedButtonsChanged",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Za);
_.b(Za,"yt-reaction-control-panel-view-model",function(){if(b6S===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;$vq===void 0&&($vq=document.createElement("template"));var u=$vq;t.call(q,u.content.cloneNode(!0),F.content.firstChild);b6S=F}F=b6S;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Rx=new _.dB("yt-live-chat"),yKK=Date.parse("2024-7-24"),r6=function(){var F=_.x.apply(this,arguments)||this;F.emojiManager=_.p7;F.newnessDotEligible=!1;F.newnessDotImpressionCounted=!1;F.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return F};
_.M(r6,_.x);_.l=r6.prototype;_.l.emojiCustomizationEnabledChanged=function(){var F;((F=this.data)==null?0:F.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((F=Rx.getCreationTime("emoji-customization-count"))&&F<yKK&&Rx.set("emoji-customization-count","0"),F=Number(Rx.get("emoji-customization-count"))||0,F<3&&(this.newnessDotEligible=!0,Rx.set("emoji-customization-count",(F+1).toString())),this.newnessDotImpressionCounted=!0)};
_.l.hideNewnessDot=function(){this.newnessDotEligible=!1;Rx.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.l.handleReactionsMute=function(F){var q=_.yb(),t=_.r0(206221),u={checkboxData:{state:F?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};q&&_.co(q,t,u);this.reactionsMuted=F};
_.l.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.l.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}}};
_.JJ.Object.defineProperties(r6.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var F;return(!((F=this.liveReactionsData)==null||!F.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
r6.prototype.liveReactionsSettingChanged=r6.prototype.liveReactionsSettingChanged;r6.prototype.emojiCustomizationEnabledChanged=r6.prototype.emojiCustomizationEnabledChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.gv),_.V("design:type",Object)],r6.prototype,"ytLiveChatReduxBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],r6.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],r6.prototype,"data",void 0);_.C([_.O(),_.V("design:type",_.lY)],r6.prototype,"emojiManager",void 0);_.C([_.O(),_.V("design:type",Object)],r6.prototype,"newnessDotEligible",void 0);_.C([_.O(),_.V("design:type",Object)],r6.prototype,"newnessDotImpressionCounted",void 0);
_.C([_.O({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:mnI}),_.V("design:type",Boolean)],r6.prototype,"liveReactionsSetting",void 0);_.C([_.O({selectorArgs:["data.liveReactionsDataEntityKey"],selector:HeO}),_.V("design:type",Object)],r6.prototype,"liveReactionsData",void 0);_.C([_.O({value:function(){var F=_.E("enable_lwe_web_mute"),q=Rx.get("allow-reactions");return q===void 0?!1:!q&&F}}),
_.V("design:type",Boolean)],r6.prototype,"reactionsMuted",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],r6.prototype,"liveReactionsEnabled",null);_.C([_.za("data.emojiCustomizationEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],r6.prototype,"emojiCustomizationEnabledChanged",null);
_.C([_.za("liveReactionsEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],r6.prototype,"liveReactionsSettingChanged",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],r6);
_.b(r6,"yt-reaction-control-panel-overlay-view-model",function(){if(Io9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;vl$===void 0&&(vl$=document.createElement("template"));var u=vl$;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Io9=F}F=Io9;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var CFS={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(F){var q=this.$.pickers.selected;if(q){_.ep(this.hostElement).removeAttribute(q+"-open");var t="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(t="#picker-buttons",q==="emoji"&&_.ep(this.hostElement).querySelector("#emoji-picker-button")&&(t="#emoji-picker-button"));if(t=_.ep(this.hostElement).querySelector(t).querySelector("#"+q))t.active=!1}t=F;q==F&&(t=null);q!=
F&&_.ep(this.hostElement).setAttribute(F+"-open","");this.$.pickers.selected=t;_.ec(this.hostElement,"yt-live-chat-picker-changed",[t])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var NI=function(){var F=_.x.apply(this,arguments)||this;F.numSentMessages=0;F.timeoutDurationMs=0;F.timeoutMs=0;F.lastTimeoutTimeMs=0;F.pendingMessageId="";F.hasFiredInitialFocusActions=!1;F.isBeforeFocusEnabled=!0;F.id="";F.characterCount=0;F.maxCharacterLimit=0;F.remainingCharacterCount=0;F.inputExpanded=!1;F.buttonOverrides={iconPosition:"icon-only"};F.inReplyPanel=!1;F.countdownRatio=0;F.isTooltipVisible=!1;F.tooltipTimeout=1E4;F.systemIcons=_.E("kevlar_system_icons");F.tallerEmojiPicker=_.E("live_chat_taller_emoji_picker");
F.sendReplyMessageInFlight=!1;F.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};F.onResize=function(){F.maybeToggleCharacterCount()};
return F};
_.M(NI,_.x);_.l=NI.prototype;
_.l.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"}}}};
_.l.attached=function(){window.addEventListener("resize",this.onResize)};
_.l.detached=function(){window.removeEventListener("resize",this.onResize)};
_.l.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.l.sendMessage=function(){var F=this,q,t,u,J;return _.p(function(g){if(F.sendDisabled)return g.return();F.isTooltipVisible&&_.ec(F.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(F.data.sendButton&&F.data.sendButton.buttonRenderer){F.input.completeEmojis();q=F.data.sendButton.buttonRenderer.serviceEndpoint;if(!q)return g.return();u=((t=_.n(q,_.nZL))==null?void 0:t.clientIdPrefix)||"";J={client_message_id:u+String(F.numSentMessages++),rich_message:_.hT(F.input.liveChatRichMessageInput)};
F.pendingMessageId=J.client_message_id;F.inReplyPanel&&(F.sendReplyMessageInFlight=!0);_.RD(F.hostElement,[q,J]);F.input.setLiveChatRichMessageInput(null)}_.WA(g)})};
_.l.handleSendButtonAction=function(F){F.detail.actionName==="yt-service-request"&&(F.stopPropagation(),this.sendMessage())};
_.l.onSendCompleted=function(F,q){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(F=this.get("timeoutDurationUsec",q.data))&&this.handleTimeout(Number(F)/1E3);this.errorMessage=this.get("errorMessage",q.data);this.pendingMessageId=""};
_.l.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.ec(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.l.handlePickerButtonToggle=function(F){F=F.detail.targetId;this.ytPickerBehavior.togglePicker_(F);if(F==="emoji")this.input.focus();else if(F==="qna-start-panel"){var q,t;(q=_.ep(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(t=q.querySelector("#qna-creator-text-input-field"))==null||t.focus()}};
_.l.onComponentReplaced=function(F){var q,t;F.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((q=F.replacement.liveChatMessageInputRenderer)==null?0:(t=q.headerRenderer)==null?0:t.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.l.onEmojiSelect=function(F){this.input.focus();this.input.insertEmoji(F.detail)};
_.l.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.l.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.ec(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.ec(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.l.onOpenPopupAction=function(F,q){var t=this;q===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.ec(t.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.l.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.l.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.l.focusChanged=function(){this.maybeToggleCharacterCount()};
_.l.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var F=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",F>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.l.computeId=function(){return this.data&&this.data.targetId||""};
_.l.computeSendDisabled=function(F,q,t,u){F=!!(!F||q&&F>q||u);(q=_.ep(this.hostElement).querySelector("#send-button"))&&q.children.length&&(q.children[0].disabled=F);return F};
_.l.handleTimeout=function(F){this.timeoutDurationMs=this.timeoutMs=F;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.l.updateTimeout=function(F){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(F-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=F,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.l.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.l.onErrorMessageEdit=function(F){this.input.setLiveChatRichMessageInput(F.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.l.errorMessageChanged=function(){var F=this;_.f1(function(){_.ec(F.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.l.computeAuthorNameColor=function(F){var q;if(_.E("live_chat_author_name_color_usernames")&&(F==null?0:(q=F.authorName)==null?0:q.simpleText))return _.bKy(_.yeo(F.authorName.simpleText));if(_.E("live_chat_seed_color_usernames")&&(F==null?0:F.authorSeedColorArgb))return _.bKy(_.id(F.authorSeedColorArgb));if(_.E("live_chat_colored_usernames"))return"#cc0000";var t;return _.E("live_chat_simple_color_usernames")&&(F==null?0:(t=F.authorName)==null?0:t.simpleText)&&(F==null?0:F.authorUsernameColorLight)&&
(F==null?0:F.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.id(F.authorUsernameColorDark):_.id(F.authorUsernameColorLight):""};
_.l.onIsTooltipVisibleChanged=function(){var F=_.ep(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){F.hidden=!1;F.setAttribute("role","alert")},0):(F.hidden=!0,F.removeAttribute("role"))};
_.l.onFocusedChanged=function(F){this.inputFocused=F.detail.value};
_.JJ.Object.defineProperties(NI.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:(q=F.pickers)==null?void 0:q.find(function(t){return t.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var F=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return F?this.ytRendererBehavior.getSimpleString(F):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
NI.prototype.onIsTooltipVisibleChanged=NI.prototype.onIsTooltipVisibleChanged;NI.prototype.errorMessageChanged=NI.prototype.errorMessageChanged;NI.prototype.onErrorMessageEdit=NI.prototype.onErrorMessageEdit;NI.prototype.onErrorMessageDismiss=NI.prototype.onErrorMessageDismiss;NI.prototype.focusChanged=NI.prototype.focusChanged;NI.prototype.characterCountChanged=NI.prototype.characterCountChanged;NI.prototype.onEmojiSelect=NI.prototype.onEmojiSelect;NI.prototype.handlePickerButtonToggle=NI.prototype.handlePickerButtonToggle;
NI.prototype.onSendError=NI.prototype.onSendError;NI.prototype.onSendCompleted=NI.prototype.onSendCompleted;NI.prototype.sendMessage=NI.prototype.sendMessage;NI.prototype.dataChanged=NI.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],NI.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],NI.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(CFS.YtPickerBehavior),_.V("design:type",Object)],NI.prototype,"ytPickerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],NI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lT.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],NI.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],NI.prototype,"hasFiredInitialFocusActions",void 0);
_.C([_.O(),_.V("design:type",Object)],NI.prototype,"isBeforeFocusEnabled",void 0);_.C([_.O(),_.V("design:type",Object)],NI.prototype,"data",void 0);_.C([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",Object)],NI.prototype,"id",void 0);_.C([_.O(),_.V("design:type",Object)],NI.prototype,"characterCount",void 0);_.C([_.O(),_.V("design:type",Object)],NI.prototype,"maxCharacterLimit",void 0);
_.C([_.O(),_.V("design:type",Object)],NI.prototype,"remainingCharacterCount",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],NI.prototype,"inputExpanded",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],NI.prototype,"inputFocused",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],NI.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.C([_.O(),_.V("design:type",_.rt)],NI.prototype,"participantsManager",void 0);
_.C([_.O(),_.V("design:type",Object)],NI.prototype,"buttonOverrides",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],NI.prototype,"inReplyPanel",void 0);_.C([_.W("characterCount, maxCharacterLimit, countdownActive"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],NI.prototype,"sendDisabled",null);_.C([_.O(),_.V("design:type",Object)],NI.prototype,"countdownRatio",void 0);
_.C([_.W("countdownRatio"),_.V("design:type",Number),_.V("design:paramtypes",[])],NI.prototype,"countdownStrokeDashOffset",null);_.C([_.W("countdownRatio"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],NI.prototype,"countdownActive",null);_.C([_.W("data.interactionMessage"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],NI.prototype,"hasInteractionMessage",null);
_.C([_.W("data.emojiPickerButton"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],NI.prototype,"hasEmojiPickerButton",null);_.C([_.W("data, characterCount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],NI.prototype,"showAvatar",null);_.C([_.W("data.pickers"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],NI.prototype,"hasProductPickerPanelViewModel",null);
_.C([_.O(),_.V("design:type",Object)],NI.prototype,"errorMessage",void 0);_.C([_.O(),_.V("design:type",Object)],NI.prototype,"genericErrorMessage",void 0);_.C([_.O(),_.V("design:type",Object)],NI.prototype,"isTooltipVisible",void 0);_.C([_.O(),_.V("design:type",Object)],NI.prototype,"tooltipTimeout",void 0);_.C([_.W("data.onInitialFocusCommand"),_.V("design:type",String),_.V("design:paramtypes",[])],NI.prototype,"tooltipMessage",null);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],NI.prototype,"systemIcons",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],NI.prototype,"tallerEmojiPicker",void 0);_.C([_.W("data"),_.V("design:type",String),_.V("design:paramtypes",[])],NI.prototype,"authorNameColor",null);_.C([_.O(),_.V("design:type",Object)],NI.prototype,"sendReplyMessageInFlight",void 0);_.C([_.Ms("#input"),_.V("design:type",_.rmd)],NI.prototype,"input",void 0);
_.C([_.Ms("#count"),_.V("design:type",HTMLElement)],NI.prototype,"count",void 0);_.C([_.Ms("#input-container"),_.V("design:type",HTMLElement)],NI.prototype,"inputContainer",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NI.prototype,"dataChanged",null);_.C([_.EB("yt-live-chat-send-message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],NI.prototype,"sendMessage",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[Event,_.qZ]),_.V("design:returntype")],NI.prototype,"onSendCompleted",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NI.prototype,"onSendError",null);
_.C([_.EB("yt-live-chat-icon-toggle-button-renderer-toggle"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],NI.prototype,"handlePickerButtonToggle",null);_.C([_.EB("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],NI.prototype,"onEmojiSelect",null);
_.C([_.za("characterCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NI.prototype,"characterCountChanged",null);_.C([_.za("inputFocused"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NI.prototype,"focusChanged",null);_.C([_.EB("yt-live-chat-error-message-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NI.prototype,"onErrorMessageDismiss",null);
_.C([_.EB("yt-live-chat-error-message-edit"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],NI.prototype,"onErrorMessageEdit",null);_.C([_.za("errorMessage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NI.prototype,"errorMessageChanged",null);_.C([_.za("isTooltipVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NI.prototype,"onIsTooltipVisibleChanged",null);
_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],NI);
_.b(NI,"yt-live-chat-message-input-renderer",function(){if(XAZ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;loy===void 0&&(loy=document.createElement("template"));var u=loy;t.call(q,u.content.cloneNode(!0),F.content.firstChild);XAZ=F}F=XAZ;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var dvy;var VSI;var w6=function(){var F=_.x.apply(this,arguments)||this;F.systemIcons=_.E("kevlar_system_icons");F.firedOnClickCommand=!1;F.inReplyPanel=!1;return F};
_.M(w6,_.x);
w6.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"}}}};
w6.prototype.onButtonToggle=function(F){F.target.disabled||this.ytPickerBehavior.togglePicker_(F.detail.targetId)};
w6.prototype.onClick=function(){var F=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.ec(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return F.firedOnClickCommand=!1},5E3))};
_.JJ.Object.defineProperties(w6.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:(q=F.panels)==null?void 0:q.find(function(t){return t.liveChatProductPickerPanelViewModel}))!==void 0}}});
w6.prototype.onButtonToggle=w6.prototype.onButtonToggle;_.C([_.D(CFS.YtPickerBehavior),_.V("design:type",Object)],w6.prototype,"ytPickerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],w6.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],w6.prototype,"systemIcons",void 0);_.C([_.O({reflectToAttribute:!1}),_.V("design:type",Object)],w6.prototype,"firedOnClickCommand",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],w6.prototype,"inReplyPanel",void 0);_.C([_.W("data.pickers"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],w6.prototype,"hasProductPickerPanelViewModel",null);
_.C([_.EB("yt-live-chat-icon-toggle-button-renderer-toggle"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],w6.prototype,"onButtonToggle",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],w6);
_.b(w6,"yt-live-chat-restricted-participation-renderer",function(){if(VSI===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;dvy===void 0&&(dvy=document.createElement("template"));var u=dvy;t.call(q,u.content.cloneNode(!0),F.content.firstChild);VSI=F}F=VSI;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var i2=function(){var F=_.x.apply(this,arguments)||this;F.genericErrorMessage=_.FK("Error, try again.");F.inReplyPanel=!1;F.hideBorder=!1;return F};
_.M(i2,_.x);i2.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}}}}}};
_.JJ.Object.defineProperties(i2,{template:{configurable:!0,enumerable:!0,get:function(){return tSn()}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],i2.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],i2.prototype,"genericErrorMessage",void 0);_.C([_.O(),_.V("design:type",Object)],i2.prototype,"inReplyPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],i2.prototype,"hideBorder",void 0);
_.C([_.Vu({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],i2);_.b(i2,"yt-live-chat-engagement-panel-input-renderer",function(){return tSn()},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var Uvn,SsS;Uvn=_.r0(115994);SsS=_.r0(115993);_.hPy=function(F,q,t){var u=this;var J=t.dragDownAction;this.layer=0;this.JSC$22516_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return u.dragDownAction()}}}};
this.JSC$22516_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return u.dragDownAction()}}}};
this.fullscreen=!1;var g=_.DP();_.xA(g,Uvn,this.layer);_.xA(g,SsS,this.layer);this.dragDownAction=function(){J();_.BT(g,{visualElement:u.fullscreen?Uvn:SsS})};
this.gesture=new _.GE(F,q,this.JSC$22516_watchConfig,"pandown");this.attach()};
_.hPy.prototype.attach=function(){this.gesture.attach()};
_.hPy.prototype.detach=function(){this.gesture.detach()};
_.hPy.prototype.update=function(F){this.fullscreen=F;this.gesture.config=F?this.JSC$22516_watchFullScreenConfig:this.JSC$22516_watchConfig};var KZS={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(F){if(F&&F.length==1&&Array.isArray(F[0].loggingUrls)){F=_.m7.unsafeClone(F[0]);var q=this.macros||{},t=this.getAdModuleClient_();if(!t)return _.NU();F.loggingUrls.forEach(function(u){if(u.baseUrl){var J=u.baseUrl;var g=q;g=g===void 0?{}:g;J=t.getOptions().includes("replaceUrlMacros")?_.IZ1(t,"replaceUrlMacros",{url:J,additionalMapping:g}):J;u.baseUrl=J}},this);
F=[F]}return _.RD(this.hostElement,F)},
getAdModuleClient_:function(){var F=_.g0(this);return F?(F=F.getPlayer())?new _.BE(F):null:null}}]};var BLS;var k$=function(){var F=_.x.apply(this,arguments)||this;F.isCollapsed=!1;F.modernPanels=_.E("kevlar_watch_modern_panels");F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return F};
_.M(k$,_.x);_.l=k$.prototype;_.l.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.onDonateTap=function(){var F=this.get("data.donateButton.buttonRenderer.command");if(F){var q=_.yb(),t=this.get("data.donateButton.buttonRenderer.trackingParams");q&&t&&_.co(q,_.Av(t));this.ytOpenPopupBehavior.openPopup(F)}};
_.l.onShowMore=function(){this.isCollapsed=!1;var F=_.yb(),q=this.get("data.expandButton.buttonRenderer.trackingParams");F&&q&&_.co(F,_.Av(q))};
_.l.onShowLess=function(){this.isCollapsed=!0};
_.l.dataChanged=function(){_.ws(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.l.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.l.handleUpdate=function(F){if(F=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",F))this.set("data.startLabel",F.startLabel),this.set("data.endLabel",F.endLabel),this.set("data.progress",F.progress),this.set("data.amountRaisedLabel",F.amountRaisedLabel),this.dataChanged()};
_.l.handleOpenPopupAction=function(F){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",F)&&_.ec(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.l.computeHeaderBackgroundUrl=function(F,q){if(F)return q?F.headerBackgroundDarkUrl:F.headerBackgroundUrl};
_.l.isProgressBarVisible=function(F){return!(!F||F.progress===void 0)};
_.l.headerBackgroundClass=function(){return _.bn("HTML_DIR")==="rtl"?"flip":""};
k$.prototype.dataChanged=k$.prototype.dataChanged;_.C([_.D(_.HP.YtOpenPopupBehavior),_.V("design:type",Object)],k$.prototype,"ytOpenPopupBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],k$.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],k$.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],k$.prototype,"isCollapsed",void 0);_.C([_.O({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.V("design:type",String)],k$.prototype,"headerBackgroundUrl",void 0);_.C([_.O(),_.V("design:type",Boolean)],k$.prototype,"isDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],k$.prototype,"modernPanels",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k$.prototype,"dataChanged",null);_.C([_.m({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],k$);
_.b(k$,"ytd-donation-shelf-renderer",function(){if(BLS!==void 0)return BLS;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return BLS=F},{mode:1});var LZ9;var foQ=function(){return _.x.apply(this,arguments)||this};
_.M(foQ,_.x);_.C([_.O(),_.V("design:type",Object)],foQ.prototype,"data",void 0);_.C([_.m({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],foQ);
_.b(foQ,"ytd-donation-unavailable-renderer",function(){if(LZ9!==void 0)return LZ9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return LZ9=F},{mode:1});var aoO;var Ex=function(){return _.x.apply(this,arguments)||this};
_.M(Ex,_.x);Ex.prototype.computeIconType=function(F){return F?"yt-icons:"+F.toLowerCase():null};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ex.prototype,"data",void 0);_.C([_.m({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Ex);
_.b(Ex,"ytd-limited-state-message-renderer",function(){if(aoO!==void 0)return aoO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return aoO=F},{mode:1});var j2S;var zz=function(){return _.x.apply(this,arguments)||this};
_.M(zz,_.x);zz.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
zz.prototype.onTap=function(F){var q=this.data&&this.data.endpoint;q&&!_.tC(_.tY(F),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Q0(this.hostElement,"yt-navigate",{endpoint:q})};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],zz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zz.prototype,"data",void 0);_.C([_.m({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],zz);
_.b(zz,"ytd-autotagging-metadata-renderer",function(){if(j2S!==void 0)return j2S;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return j2S=F},{mode:1});var cKZ;var ox=function(){return _.x.apply(this,arguments)||this};
_.M(ox,_.x);ox.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ox.prototype,"data",void 0);_.C([_.m({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],ox);
_.b(ox,"ytd-autotagging-metadata-row-renderer",function(){if(cKZ!==void 0)return cKZ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return cKZ=F},{mode:1});var F7y;var qFy;var nP=function(){var F=_.x.apply(this,arguments)||this;F.engagementPanelContent=!1;return F};
_.M(nP,_.x);nP.prototype.computeHasDividerLine=function(F,q){return F&&!q};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],nP.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.V("design:type",Boolean)],nP.prototype,"hasDividerLine",void 0);_.C([_.O(),_.V("design:type",Object)],nP.prototype,"engagementPanelContent",void 0);
_.C([_.m({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],nP);
_.b(nP,"ytd-metadata-row-header-renderer",function(){if(qFy!==void 0)return qFy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return qFy=F},{mode:1});var tAK;var MI=function(){return _.x.apply(this,arguments)||this};
_.M(MI,_.x);MI.prototype.computeHasDividerLine=function(F){return F};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],MI.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.V("design:type",Boolean)],MI.prototype,"hasDividerLine",void 0);_.C([_.m({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],MI);
_.b(MI,"ytd-metadata-row-renderer",function(){if(tAK!==void 0)return tAK;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return tAK=F},{mode:1});var u$$;var JWy=function(){return _.x.apply(this,arguments)||this};
_.M(JWy,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],JWy.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],JWy.prototype,"data",void 0);_.C([_.m({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],JWy);
_.b(JWy,"ytd-metadata-with-image-row-renderer",function(){if(u$$!==void 0)return u$$;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return u$$=F},{mode:1});var sVS;var Tz=function(){var F=_.x.apply(this,arguments)||this;F.rounded=!0;F.fixie=!1;F.fullWidth=!1;return F};
_.M(Tz,_.x);_.l=Tz.prototype;_.l.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.onDataChanged=function(){var F=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(q){F.onEndpointLinkKeyPress(q)}))};
_.l.onEndpointLinkKeyPress=function(F){F.target===this.endpointLink&&F.keyCode===13&&_.Q0(this.hostElement,"click")};
_.l.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var F;if((F=this.data)==null?0:F.endpoint)_.rY(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.l.onYtNavigate=function(F){this.endpointHref||(F.stopPropagation(),F.preventDefault())};
_.l.onInformationButtonContainerClick=function(F){F.target.id!=="information-button-container"&&(F.stopPropagation(),F.preventDefault())};
_.l.computeStyle=function(F){return F};
_.l.computeIsThumbnailStyle=function(F){return F==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.l.computeThumbnailWidth=function(F){switch(F){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.l.computeThumbnailObjectFit=function(F){switch(F){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.JJ.Object.defineProperties(Tz.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Tz.prototype.onYtNavigate=Tz.prototype.onYtNavigate;Tz.prototype.onClick=Tz.prototype.onClick;Tz.prototype.onDataChanged=Tz.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Tz.prototype,"componentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],Tz.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],Tz.prototype,"componentStyle",void 0);_.C([_.O({computed:"computeIsThumbnailStyle(data.style)"}),_.V("design:type",Boolean)],Tz.prototype,"isThumbnailStyle",void 0);_.C([_.O({computed:"computeThumbnailObjectFit(data.style)"}),_.V("design:type",String)],Tz.prototype,"thumbnailObjectFit",void 0);
_.C([_.O({computed:"computeThumbnailWidth(data.style)"}),_.V("design:type",Number)],Tz.prototype,"thumbnailWidth",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tz.prototype,"rounded",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tz.prototype,"fixie",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tz.prototype,"fullWidth",void 0);_.C([_.Ms("#endpoint-link"),_.V("design:type",HTMLAnchorElement)],Tz.prototype,"endpointLink",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tz.prototype,"onDataChanged",null);_.C([_.W("data.endpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tz.prototype,"endpointHref",null);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Tz.prototype,"onClick",null);
_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Tz.prototype,"onYtNavigate",null);_.C([_.m({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Tz);
_.b(Tz,"ytd-rich-metadata-renderer",function(){if(sVS!==void 0)return sVS;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return sVS=F},{mode:_.Nc("kevlar_poly_si_batch_j075")?1:2});var gqS;var Gz=function(){var F=_.x.apply(this,arguments)||this;F.fixie=!1;F.fullWidth=!1;return F};
_.M(Gz,_.x);Gz.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Gz.prototype.computeHasDividerLine=function(F){return F};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Gz.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.V("design:type",Boolean)],Gz.prototype,"hasDividerLine",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Gz.prototype,"fixie",void 0);_.C([_.O(),_.V("design:type",Object)],Gz.prototype,"fullWidth",void 0);
_.C([_.m({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Gz);
_.b(Gz,"ytd-rich-metadata-row-renderer",function(){if(gqS!==void 0)return gqS;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return gqS=F},{mode:1});var Da=function(){var F=_.x.apply(this,arguments)||this;F.engagementPanelContent=!1;F.fixie=!1;F.fullWidth=!1;return F};
_.M(Da,_.x);
Da.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"}}}};
Da.prototype.computeCollapsibleItems=function(F,q,t){return F===void 0||q===void 0||t===void 0||t?[]:F.slice(q)};
Da.prototype.computeAlwaysShownItems=function(F,q){return F&&F.length?F.slice(0,q):[]};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Da.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Da.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],Da.prototype,"collapsed",void 0);
_.C([_.O({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.V("design:type",Array)],Da.prototype,"alwaysShownItems",void 0);_.C([_.O({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.V("design:type",Array)],Da.prototype,"collapsibleItems",void 0);_.C([_.O(),_.V("design:type",Object)],Da.prototype,"engagementPanelContent",void 0);_.C([_.O(),_.V("design:type",Object)],Da.prototype,"fixie",void 0);
_.C([_.O(),_.V("design:type",Object)],Da.prototype,"fullWidth",void 0);_.C([_.m({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Da);
_.b(Da,"ytd-metadata-row-container-renderer",function(){if(F7y!==void 0)return F7y;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return F7y=F},{mode:1});var l4y;var W0=function(){var F=_.x.apply(this,arguments)||this;F.currentPageUrl="";F.baseUrl="";F.isHiddenByUser=null;F.hidden=!1;F.showAboveScrim=!1;F.watchNextGrid=_.E("kevlar_watch_grid");F.modernButtons=_.E("web_modern_buttons");F.roundedContainer=!0;F.noBorder=!1;F.roundBackground=!_.E("live_chat_round_background_killswitch");F.overflowHideChat=_.E("live_chat_overflow_hide_chat");F.forceDarkTheme=!1;F.theaterWatchWhile=!1;F.isListeningForPlayerProgress=!1;F.JSC$22552_playerEvents=new Map;F.isFrameReady=
!1;F.player=null;F.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return F};
_.M(W0,_.x);_.l=W0.prototype;_.l.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Zl(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.l.created=function(){var F=this;this.handleIframeEventListener=function(q){F.handleIframeEvent(q)};
this.handleKeyboardEventListener=function(q){F.handleKeyboardEvent(q)};
this.JSC$22552_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22552_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22552_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22552_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22552_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.l.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()};
_.l.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};
_.l.computeBaseUrl=function(F){var q="/live_chat";this.isChatReplay()&&(q="/live_chat_replay");return _.ZJ(_.ej(_.QV(_.Lr(F),q),null),"").toString()};
_.l.dataChanged=function(){_.E("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.l.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var F=this.url;if(this.isChatReplay()&&this.player){var q=Math.floor(this.player.getProgressState().current*1E3);F=_.aX(_.Lr(F),"playerOffsetMs",q.toString()).toString()}q=this.chatframe;try{var t=F==="about:blank"?_.oPz:_.d$(F),u=q.contentDocument.location,J=_.SO(t);J!==void 0&&u.replace(J)}catch(g){q.src=F}}};
_.l.collapsedChanged=function(){_.Q0(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.l.handleIframeEvent=function(F){if(F&&this.baseUrl.startsWith(F.origin)&&F.source===this.chatframe.contentWindow&&_.ho(F.data))if(F.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(F);else if(F.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(F.data["yt-show-feedback-dialog"]){var q=_.sV().resolve(_.JU(_.Cfw));if(q){var t=F.ports,u;t&&t.length&&(u=function(){t[0].postMessage({})});
F=F.data["yt-show-feedback-dialog"];q.showFeedbackDialog(F.customProductData,F.feedbackContent,u,F.bucket)}}else if(F.data["yt-show-survey"])_.Q0(this.hostElement,"yt-show-survey",F.data["yt-show-survey"]);else if(F.data["yt-purchase-membership"])_.sV().resolve(_.gN).resolveCommand(F.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(F.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(F.data["yt-tunnel-out-live-service-request"]);else if(F.data["yt-user-activity"])_.gO();
else if(F.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(F.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(F.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(F.data["yt-open-popup"]);else if(F.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(F.data["yt-log-flow-logging-event-command"]);else if(F.data["yt-hide-live-chat"])this.onShowHideChat();else F.data["yt-report-moderation-state-log"]&&
this.player&&(q={cpn:this.player.getVideoData().cpn},_.IJ("liveChatBeingModerated",q))};
_.l.attachLiveChatResponseVeTrackingParams=function(F){F=_.Av(F);var q=_.yb(),t=_.S6("liveChatRenderer.trackingParams",this.data);q&&t&&_.Bo(q,_.Av(t),F)};
_.l.handleBuyflowMessages=function(F){var q=F.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,t=F.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,u=F.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.bS$(_.qF(_.qs),q.replace(/-/g,"+").replace(/_/g,"/"),function(J){F.ports[0].postMessage({success:!0,buyFlowResponse:J})},void 0,function(J){F.ports[0].postMessage({success:!1,
error:J&&J.message||"Buyflow rejected without error."})},_.TV().get("hl"),void 0,function(){F.ports[0].postMessage({closed:!0})},t,u)};
_.l.setupPlayerProgressRelay=function(){var F=this;if(!this.isListeningForPlayerProgress){var q=_.l6();q!=null&&q.getPlayerPromise&&(q.getPlayerPromise().then(function(t){F.playerApiReady(t)}),this.isListeningForPlayerProgress=!0)}};
_.l.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.l.playerApiReady=function(F){this.setPlayer(F)};
_.l.playerProgressHandler=function(){if(this.player){var F=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":F.current})}};
_.l.playerAdStartHandler=function(F){this.postToContentWindow({"yt-player-ad-start":F})};
_.l.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.l.playerStateChangeHandler=function(F){this.postToContentWindow({"yt-player-state-change":F})};
_.l.setPlayer=function(F){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22552_playerEvents);F&&(this.player=F,this.ytPlayerListenerBehavior.listenToPlayerEvents(F,this.JSC$22552_playerEvents),_.Q0(this.hostElement,"player-api-ready"))};
_.l.liveChatPageUrl=function(F,q,t,u){return!t||q?"about:blank":t.liveChatRenderer?(q=_.Lr(this.currentPageUrl).JSC$10024_queryData_,$Dq(q),F=_.Lr(F),q.add("continuation",t.liveChatRenderer.continuations[0].reloadContinuationData.continuation),t=_.Hx()==="USER_INTERFACE_THEME_DARK",(u||t)&&q.add("dark_theme","true"),_.ej(F,q),u=_.Lr(F.toString()),t=u.JSC$10024_queryData_,"SESSION_INDEX"in _.m8&&(t.add("authuser",_.bn("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.m8&&t.add("pageId",_.bn("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.m8&&t.add("sdc",_.bn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),u.toString()):""};
_.l.isCollapsed=function(F,q){return q!==null?q:this.isChatReplay()||F&&F.conversationBarRenderer&&F.conversationBarRenderer.availabilityMessage?!0:F?F.liveChatRenderer?F.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.E("live_chat_hide_premiere_replay_message")||F.conversationBarRenderer&&F.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.l.isHidden=function(F,q,t){var u=q&&q.conversationBarRenderer&&q.conversationBarRenderer.availabilityMessage,J=q&&q.liveChatRenderer&&q.liveChatRenderer.showHideButton,g=q&&q.liveChatRenderer&&q.liveChatRenderer.showButton;return t&&F&&!u&&!g||!t&&F&&!u&&!J?!0:q&&q.liveChatRenderer&&q.liveChatRenderer.initialDisplayState?q.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.l.computeButtonOverride=function(F,q){if(F&&q)return{type:"outline"}};
_.l.setCollapsedState=function(F){_.n(F,_.Clw)&&(this.isHiddenByUser=!!_.n(F,_.Clw).collapsed,!this.isHiddenByUser&&_.E("enable_teaser_framework_web_client")&&_.ec(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.l.forwardReduxActionToIframe=function(F){this.postToContentWindow({"yt-live-chat-forward-redux-action":F})};
_.l.onLoopRangeChange=function(F){this.showAboveScrim=!(F==null||!F.postId)};
_.l.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.l.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.l.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.l.sendDarkThemePostMessage=function(F){this.postToContentWindow({"yt-live-chat-set-dark-theme":F})};
_.l.onLiveChatBuyFlowCallback=function(F){this.postToContentWindow({"yt-live-chat-buy-flow-callback":F})};
_.l.handleKeyboardEvent=function(F){(0,_.m7.containsValue)(myZ,F.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:F.type,keyCode:F.keyCode}})};
_.l.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.l.postToContentWindow=function(F){if(this.isFrameReady)try{var q=window.location.protocol+"//"+window.location.host,t;(t=this.chatframe)!=null&&t.contentWindow?this.chatframe.contentWindow.postMessage(F,q):_.bz(new _.D0("Tried posting a message to an iframe with no content window",F))}catch(u){_.mH(u)}};
_.l.shouldHideChatFrame=function(F){return F&&_.E("hide_live_chat_button_when_collapsed")};
_.JJ.Object.defineProperties(W0.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.E("live_chat_overflow_hide_chat")||_.E("web_watch_chat_hide_button_killswitch"))return _.E("live_chat_overflow_hide_chat");var F,q,t,u;return!!((F=this.data)==null?0:(q=F.liveChatRenderer)==null?0:(t=q.header)==null?0:(u=t.liveChatHeaderRenderer)==null?0:u.collapseButton)}}});
W0.prototype.collapsedChanged=W0.prototype.collapsedChanged;W0.prototype.urlChanged=W0.prototype.urlChanged;W0.prototype.dataChanged=W0.prototype.dataChanged;W0.prototype.onShowHideChat=W0.prototype.onShowHideChat;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],W0.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],W0.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],W0.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.D(_.HP.YtOpenPopupBehavior),_.V("design:type",Object)],W0.prototype,"ytOpenPopupBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],W0.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],W0.prototype,"currentPageUrl",void 0);
_.C([_.O({computed:"computeBaseUrl(currentPageUrl,data)"}),_.V("design:type",Object)],W0.prototype,"baseUrl",void 0);_.C([_.O({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.V("design:type",String)],W0.prototype,"url",void 0);_.C([_.O(),_.V("design:type",Object)],W0.prototype,"isHiddenByUser",void 0);_.C([_.O({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.V("design:type",Object)],W0.prototype,"hidden",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.V("design:type",Boolean)],W0.prototype,"collapsed",void 0);_.C([_.O({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.V("design:type",Boolean)],W0.prototype,"hideChatFrame",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W0.prototype,"showAboveScrim",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W0.prototype,"watchNextGrid",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],W0.prototype,"modernButtons",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W0.prototype,"roundedContainer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W0.prototype,"noBorder",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],W0.prototype,"roundBackground",void 0);
_.C([_.O({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.V("design:type",Object)],W0.prototype,"toggleButtonOverride",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],W0.prototype,"overflowHideChat",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W0.prototype,"forceDarkTheme",void 0);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],W0.prototype,"enableShowWithoutHideChatButton",null);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W0.prototype,"theaterWatchWhile",void 0);_.C([_.Ms("#chatframe"),_.V("design:type",HTMLIFrameElement)],W0.prototype,"chatframe",void 0);_.C([_.EB("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W0.prototype,"onShowHideChat",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W0.prototype,"dataChanged",null);
_.C([_.za("url"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W0.prototype,"urlChanged",null);_.C([_.za("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W0.prototype,"collapsedChanged",null);_.C([_.m({is:"ytd-live-chat-frame",disableElementRegistration:!0})],W0);
_.b(W0,"ytd-live-chat-frame",function(){if(l4y!==void 0)return l4y;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return l4y=F},{mode:1});var XnK;var Ox=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("web_modern_buttons");F.buttonOverrides={style:"call-to-action",type:"filled"};return F};
_.M(Ox,_.x);Ox.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=_.hn(this.data.backgroundColor)))};
Ox.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var F=this.getFormattedStringLoggingDirectives(this.data.headline);F&&this.rendererBehavior.logExplicitClick(F)}};
Ox.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var F=this.getFormattedStringLoggingDirectives(this.data.description);F&&this.rendererBehavior.logExplicitClick(F)}};
Ox.prototype.getFormattedStringLoggingDirectives=function(F){return F&&F.runs&&F.runs.length>0&&F.runs[0]&&F.runs[0].loggingDirectives?F.runs[0].loggingDirectives:null};
Ox.prototype.dataChanged=Ox.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ox.prototype,"rendererBehavior",void 0);_.C([_.D(KZS.YtMacroReplacementBehavior),_.V("design:type",Object)],Ox.prototype,"macroReplacementBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ox.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Ox.prototype,"navigationEndpoint",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ox.prototype,"enableColors",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ox.prototype,"modern",void 0);_.C([_.O(),_.V("design:type",Object)],Ox.prototype,"buttonOverrides",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ox.prototype,"dataChanged",null);_.C([_.m({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Ox);
_.b(Ox,"ytd-action-basic-immersive-content-renderer",function(){if(XnK!==void 0)return XnK;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return XnK=F},{mode:1});var YFO;var pne;var P0=function(){return _.x.apply(this,arguments)||this};
_.M(P0,_.x);P0.prototype.dataChanged=function(){var F;((F=this.data)==null?void 0:F.backgroundColor)!==void 0&&_.ws(this.hostElement,{"--bgu-color":_.hn(this.data.backgroundColor)})};
P0.prototype.onImageTileClick=function(){var F;((F=this.data)==null?0:F.navigationEndpoint)&&_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var q;((q=this.data)==null?0:q.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.JJ.Object.defineProperties(P0.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var F;if(((F=this.data)==null?void 0:F.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var F,q,t;if(((F=this.data)==null?void 0:(q=F.detailsLine)==null?void 0:q.texts)!=null&&((t=this.data)==null?void 0:t.detailsLine.texts.length)>0){var u;return(u=this.data)==null?void 0:u.detailsLine.texts.map(function(J){return J.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var F,q,t;if(((F=this.data)==null?void 0:(q=F.optionalDetailsLine)==null?void 0:q.texts)!=null&&((t=this.data)==null?void 0:t.optionalDetailsLine.texts.length)>0){var u;return(u=this.data)==null?void 0:u.optionalDetailsLine.texts.map(function(J){return J.text}).join("")}return null}}});
P0.prototype.dataChanged=P0.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],P0.prototype,"rendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],P0.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],P0.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data.backgroundColor"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],P0.prototype,"hasBackgroundColor",null);
_.C([_.W("data.objectFit"),_.V("design:type",Object),_.V("design:paramtypes",[])],P0.prototype,"getObjectFit",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.tileRenderingStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],P0.prototype,"hasTileMetadata",null);_.C([_.W("data.detailsLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],P0.prototype,"getSecondaryDetails",null);
_.C([_.W("data.optionalDetailsLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],P0.prototype,"getOptionalDetails",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],P0.prototype,"dataChanged",null);_.C([_.m({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],P0);
_.b(P0,"ytd-image-tile-renderer",function(){if(pne!==void 0)return pne;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return pne=F},{mode:1});var QVI;var x$=function(){return _.x.apply(this,arguments)||this};
_.M(x$,_.x);x$.prototype.getOpenLinkIcon=function(){return _.E("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
x$.prototype.onSitelinkTap=function(){_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.E("kevlar_command_handler_migration_killswitch"))_.rY(this.hostElement,this.data.clickCommands,this.hostElement);else for(var F=_.X(this.data.clickCommands),q=F.next();!q.done;q=F.next())this.ytComponentBehavior.resolveCommand(q.value)};
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],x$.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],x$.prototype,"rendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],x$.prototype,"data",void 0);_.C([_.m({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],x$);
_.b(x$,"ytd-sitelink-renderer",function(){if(QVI!==void 0)return QVI;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return QVI=F},{mode:1});var Aj=function(){var F=_.x.apply(this,arguments)||this;F.paddingFix=_.E("enable_ads_web_ep_buenos_aires_and_padding_fix");return F};
_.M(Aj,_.x);Aj.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"}}}};
Aj.prototype.dataChanged=function(){var F=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(q){q.clickTrackingParams&&delete q.clickTrackingParams;F.ytMacroReplacementBehavior.sendServiceRequestAction([q])})};
Aj.prototype.shouldHideFooter=function(F){return!(F&&_.E("use_ads_engagement_panel_desktop_footer_cta"))};
_.JJ.Object.defineProperties(Aj.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:F.imageTileRenderers)===void 0||((q=this.data)==null?void 0:q.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(t){var u;return(u=_.n(t,V5I))==null?void 0:u.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:F.imageTileRenderers)===void 0||((q=this.data)==null?void 0:q.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(t){var u;return((u=_.n(t,V5I))==null?void 0:u.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Aj.prototype.dataChanged=Aj.prototype.dataChanged;_.C([_.D(KZS.YtMacroReplacementBehavior),_.V("design:type",Object)],Aj.prototype,"ytMacroReplacementBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Aj.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Aj.prototype,"paddingFix",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data.imageTileRenderers"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Aj.prototype,"removeBorderFromImageTiles",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.imageTileRenderers"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Aj.prototype,"useFooteredMetadataRenderingStyle",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Aj.prototype,"dataChanged",null);_.C([_.m({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Aj);
_.b(Aj,"ytd-action-engagement-panel-content-renderer",function(){if(YFO!==void 0)return YFO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return YFO=F},{mode:1});var ehy;var Zs$=_.ld(function(F){var q=F.data;var t=F.customCommandResolver;return _.Z("ad-grid-card-image-full-metadata-view-model",{class:function(){var u;return((u=q().interaction)==null?0:u.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.l_(_.lR({visibilityCallback:function(u){var J,g=(J=q().interaction)==null?void 0:J.onFirstVisible;u&&g&&_.L9(g)},
showOption:_.oM}),_.Sa(function(){return q().interaction},t)),
"aria-label":function(){var u,J;return(u=q().interaction)==null?void 0:(J=u.accessibility)==null?void 0:J.label}},_.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.Z(_.Tl,{data:function(){return q().adImage}},{adImageViewModel:function(u){return _.Z(_.m2,{data:u.data,
customCommandResolver:t})}})),_.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.Z(_.R,{cond:function(){return q().headline},
then:function(u){return _.Z(_.rv,{text:u,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.Z(_.R,{cond:function(){return q().detailsLine},
then:function(u){return _.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.Z(_.Tl,{data:u},{adDetailsLineViewModel:function(J){return _.Z(_.PE,{data:J.data,customCommandResolver:t,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.Z(_.R,{cond:function(){return q().secondaryDetailsLine},
then:function(u){return _.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.Z(_.Tl,{data:u},{adDetailsLineViewModel:function(J){return _.Z(_.PE,{data:J.data,customCommandResolver:t,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"sk");var RhZ=_.ld(function(F){var q=F.data;var t=F.customCommandResolver;return _.Z("ad-grid-card-image-view-model",{class:function(){var u;return((u=q().interaction)==null?0:u.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.l_(_.lR({visibilityCallback:function(u){var J,g=(J=q().interaction)==null?void 0:J.onFirstVisible;u&&g&&_.L9(g)},
showOption:_.oM}),_.Sa(function(){return q().interaction},t)),
"aria-label":function(){var u,J;return(u=q().interaction)==null?void 0:(J=u.accessibility)==null?void 0:J.label}},_.Z(_.Tl,{data:function(){return q().adImage}},{adImageViewModel:function(u){return _.Z(_.m2,{data:u.data,
customCommandResolver:t})}}),_.Z("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.Z(_.Tl,{data:function(){return q().adCardBadge}},{adCardBadgeViewModel:_.Jyn})))},"tk");var rWt=_.ld(function(F){var q=F.data;var t=F.customCommandResolver;return _.Z("ad-grid-card-text-view-model",{class:function(){var u;return((u=q().interaction)==null?0:u.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.l_(_.lR({visibilityCallback:function(u){var J,g=(J=q().interaction)==null?void 0:J.onFirstVisible;u&&g&&_.L9(g)},
showOption:_.oM}),_.Sa(function(){return q().interaction},t)),
"aria-label":function(){var u,J;return(u=q().interaction)==null?void 0:(J=u.accessibility)==null?void 0:J.label}},_.Z("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.Z(_.R,{cond:function(){return q().title},
then:function(u){return _.Z(_.rv,{text:u,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.Z("div",{class:function(){return _.E("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.Z(_.Gn,{each:function(){var u;
return((u=q())==null?void 0:u.descriptions)||[]},
keyBy:"INDEX"},function(u){return _.Z(_.rv,{text:u,className:function(){return _.E("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.Z("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.Z(_.Tl,{data:function(){return q().moreInfoButton}},{adButtonViewModel:function(u){return _.Z(_.Mi,{data:u.data,
customCommandResolver:t})}})))},"uk");var Nhq=_.ld(function(F){var q=F.data;var t=F.customCommandResolver;var u=F.adGridCardCollectionStyle;return _.Z("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.l_(_.lR({visibilityCallback:function(J){var g,Y=(g=q().interaction)==null?void 0:g.onFirstVisible;J&&Y&&_.L9(Y)},
showOption:_.oM})),style:function(){return"grid-template-columns: repeat("+fwy(u?u():q().style)+", minmax(0, 1fr));"}},_.Z(_.Tl,{data:function(){var J;
return(J=q())==null?void 0:J.gridCards}},{adGridCardImageViewModel:function(J){return _.Z(RhZ,{data:J.data,
customCommandResolver:t})},
adGridCardImageFullMetadataViewModel:function(J){return _.Z(Zs$,{data:J.data,customCommandResolver:t})},
adGridCardTextViewModel:function(J){return _.Z(rWt,{data:J.data,customCommandResolver:t})}}))},"vk");_.ei(_.ld(function(F){var q=F.data;return _.Z("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.l_(_.lR({visibilityCallback:function(t){var u,J=(u=q().interaction)==null?void 0:u.onFirstVisible;t&&J&&_.L9(J)},
showOption:_.oM}),_.Sa(function(){return q().interaction},jje))},_.Z("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.Z(_.R,{cond:_.iD$("(min-width: "+((0,_.gE)()+_.KX)+"px)"),
then:function(){return _.Z(_.Tl,{data:function(){return q().adGridCardCollection}},{adGridCardCollectionViewModel:function(t){return _.Z(Nhq,{data:t.data,
customCommandResolver:jje})}})},
else:function(){return _.Z(_.Tl,{data:function(){return q().adGridCardCollection}},{adGridCardCollectionViewModel:function(t){return _.Z(Nhq,{data:t.data,
customCommandResolver:jje,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.Z("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.Z(_.Tl,{data:function(){return q().adButton}},{adButtonViewModel:function(t){return _.Z(_.Mi,{data:t.data,
customCommandResolver:jje})}})))},"wk"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=F.data;return _.Z("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.l_(_.lR({visibilityCallback:function(t){var u,J=(u=q().interaction)==null?void 0:u.onFirstVisible;t&&J&&_.L9(J)},
showOption:_.oM}),_.Sa(function(){return q().interaction},cE$))},_.Z("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.Z(_.Tl,{data:function(){if(_.iD$("(min-width: "+((0,_.gE)()+_.KX)+"px)")())var t=q().adGridCardCollection;
else{t=Object.assign({},_.n(q().adGridCardCollection,UDn));var u;t.gridCards!==void 0&&((u=t.gridCards)==null?void 0:u.length)>1?t.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":t.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";t={adGridCardCollectionViewModel:t}}return t}},{adGridCardCollectionViewModel:function(t){return _.Z(Nhq,{data:t.data,
customCommandResolver:cE$})}})),_.Z("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.Z(_.Tl,{data:function(){return q().adButton}},{adButtonViewModel:function(t){return _.Z(_.Mi,{data:t.data,
customCommandResolver:cE$})}})))},"xk"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.NH}});var v0=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return F};
_.M(v0,_.x);_.l=v0.prototype;_.l.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"}}}};
_.l.attached=function(){this.getDataFromPlayerAndRender()};
_.l.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.l.getDataFromPlayerAndRender=function(){var F=this,q=_.g0(this.hostElement);q&&q.getPlayerPromise().then(function(t){F.getCachedDataAndListen(t)})};
_.l.getCachedDataAndListen=function(F){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(F,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(F,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=F)};
_.l.resolveCachedActions=function(){var F=_.S6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(F=F&&F())&&!_.m7.isEmpty(F)&&this.sendUpdateEngagementPanelAction(F);(F=(F=_.S6("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&F())&&!_.m7.isEmpty(F)&&this.sendChangeEngagementPanelVisibilityAction(F);(F=(F=_.S6("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&F())&&!_.m7.isEmpty(F)&&this.sendScrollToEngagementPanelCommand(F)};
_.l.sendUpdateEngagementPanelAction=function(F){var q;_.ec(this.hostElement,"yt-update-engagement-panel-action",[(q=_.m7.get(F,"action"))!=null?q:F])};
_.l.sendChangeEngagementPanelVisibilityAction=function(F){_.ec(this.hostElement,"yt-change-engagement-panel-visibility-action",[F])};
_.l.sendScrollToEngagementPanelCommand=function(F){_.ec(this.hostElement,"yt-scroll-to-engagement-panel-command",[F])};
_.l.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.E("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.bz(Error("Io"))};
v0.prototype.dataChanged=v0.prototype.dataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],v0.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],v0.prototype,"componentBehavior",void 0);_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],v0.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],v0.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],v0.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],v0.prototype,"player",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],v0.prototype,"dataChanged",null);_.C([_.m({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],v0);
_.b(v0,"ytd-ads-engagement-panel-content-renderer",function(){if(ehy!==void 0)return ehy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
return ehy=F},{mode:1});var wnn;var Ix=function(){var F=_.x.apply(this,arguments)||this;F.player=null;F.JSC$22589_playerEvents=new Map;F.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return F};
_.M(Ix,_.x);_.l=Ix.prototype;_.l.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]]"}}}}}};
_.l.created=function(){this.player=null;this.JSC$22589_playerEvents=new Map;this.JSC$22589_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22589_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22589_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22589_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.l.attached=function(){var F=this,q=_.g0();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));q&&q.getPlayerPromise().then(function(t){F.setPlayer(t);F.set("isPageLoad",!1)})};
_.l.setPlayer=function(F){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22589_playerEvents);this.set("player",F);F&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(F,this.JSC$22589_playerEvents),F.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.l.onLoopRangeChange=function(F){var q=_.sV().resolve(_.JU(_.JC));if((!q||q.isOnWatch())&&this.hostElement.clientHeight){var t;!F&&((t=this.data)==null?0:t.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.l.onVideoProgress=function(F){var q,t,u=((q=this.player)==null?void 0:(t=q.getPresentingPlayerType)==null?void 0:t.call(q))===2;this.isAdPlaying!==u&&this.set("isAdPlaying",u);var J;if(!u&&(J=this.player)!=null&&J.getLoopRange()){t=this.player.getLoopRange();q=t.startTimeMs;t=t.endTimeMs;u=this.player.getProgressState(1).seekableStart;var g;q<u*1E3&&((g=this.data)==null?0:g.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
F=t<F*1E3;var Y;((Y=this.player)==null?0:Y.getLoopRange())&&F&&this.player.seekTo(q/1E3)}};
_.l.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.l.onYtDeleteClipEngagementPanelCommand=function(F){_.n(F,sKQ).command&&this.ytComponentBehavior.resolveCommand(_.n(F,sKQ).command)};
_.JJ.Object.defineProperties(Ix.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.voteCount)||_.FK("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Ix.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Ix.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],Ix.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ix.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Ix.prototype,"isAdPlaying",void 0);_.C([_.O({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],Ix.prototype,"isPageLoad",void 0);_.C([_.O({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],Ix.prototype,"isDarkTheme",void 0);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ix.prototype,"voteCount",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ix.prototype,"channelEndpoint",null);_.C([_.W("channelEndpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ix.prototype,"channelHref",null);_.C([_.m({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Ix);
_.b(Ix,"ytd-clip-attribution-renderer",function(){if(wnn!==void 0)return wnn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return wnn=F},{mode:1});var isS;var H0=function(){var F=_.x.apply(this,arguments)||this;F.player=null;F.JSC$22594_playerEvents=new Map;return F};
_.M(H0,_.x);_.l=H0.prototype;_.l.created=function(){this.player=null;this.JSC$22594_playerEvents=new Map;this.JSC$22594_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22594_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22594_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.l.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.l.attached=function(){var F=this,q=_.g0();q&&q.getPlayerPromise().then(function(t){F.setPlayer(t);F.set("isPageLoad",!1)})};
_.l.setPlayer=function(F){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22594_playerEvents);this.set("player",F);if(F){this.ytPlayerListenerBehavior.listenToPlayerEvents(F,this.JSC$22594_playerEvents);var q;(F==null?void 0:(q=F.getPresentingPlayerType)==null?void 0:q.call(F))===2&&this.playerAdStartHandler()}};
_.l.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.l.onVideoProgress=function(){var F,q,t=((F=this.player)==null?void 0:(q=F.getPresentingPlayerType)==null?void 0:q.call(F))===2;this.isAdPlaying!==t&&this.set("isAdPlaying",t)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],H0.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],H0.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],H0.prototype,"isAdPlaying",void 0);
_.C([_.O({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],H0.prototype,"isPageLoad",void 0);_.C([_.m({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],H0);
_.b(H0,"ytd-clip-section-footer-renderer",function(){if(isS!==void 0)return isS;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return isS=F},{mode:1});var k0y;var EqI;var zhQ=function(){return _.x.apply(this,arguments)||this};
_.M(zhQ,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zhQ.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zhQ.prototype,"data",void 0);_.C([_.m({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],zhQ);
_.b(zhQ,"ytd-clip-ad-state-renderer",function(){if(EqI!==void 0)return EqI;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return EqI=F},{mode:1});var oqq;var mP=function(){var F=_.x.apply(this,arguments)||this;F.value="";F.valid=!1;F.userChangedValue=!1;F.disabled=!1;F.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return F};
_.M(mP,_.x);_.l=mP.prototype;_.l.detached=function(){this.userChangedValue=!1};
_.l.handleKeyDown=function(F){if(_.QZ)var q=13;else _.o8u&&_.es?q=13:q=13;F.keyCode===q&&F.preventDefault()};
_.l.handleInput=function(){var F=_.ep(this.hostElement).querySelector("#title");if(F){var q=(F.value||"").replace(/\r|\n/g," ");this.set("value",q);F.value=q;this.valid=F.validate();this.userChangedValue=!0}};
_.l.handleBlur=function(){this.valid=_.ep(this.hostElement).querySelector("#title").validate()};
_.l.onValueChanged=function(){_.Q0(this.hostElement,"title-changed",{title:this.value})};
_.l.onValidChanged=function(){_.Q0(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.l.setInput=function(F,q){var t=_.ep(this.hostElement).querySelector("#title");t&&(t.value=F,this.handleInput(),q&&(t.invalid=!1,this.valid=!0))};
_.l.onClipCreationDisable=function(){this.set("disabled",!0)};
_.l.onClipCreationEnable=function(){this.set("disabled",!1)};
_.l.onClipCreationVisibilityChange=function(F){var q=this;F.visible?requestAnimationFrame(function(){var t;((t=_.ep(q.hostElement).querySelector("#title"))==null?void 0:t.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
mP.prototype.onValidChanged=mP.prototype.onValidChanged;mP.prototype.onValueChanged=mP.prototype.onValueChanged;mP.prototype.handleBlur=mP.prototype.handleBlur;mP.prototype.handleInput=mP.prototype.handleInput;mP.prototype.handleKeyDown=mP.prototype.handleKeyDown;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],mP.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],mP.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],mP.prototype,"value",void 0);_.C([_.O(),_.V("design:type",Object)],mP.prototype,"valid",void 0);_.C([_.O(),_.V("design:type",Object)],mP.prototype,"userChangedValue",void 0);_.C([_.O(),_.V("design:type",Object)],mP.prototype,"disabled",void 0);_.C([_.EB("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],mP.prototype,"handleKeyDown",null);
_.C([_.EB("input"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mP.prototype,"handleInput",null);_.C([_.EB("blur"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mP.prototype,"handleBlur",null);_.C([_.za("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mP.prototype,"onValueChanged",null);
_.C([_.za("valid"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mP.prototype,"onValidChanged",null);_.C([_.m({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],mP);
_.b(mP,"ytd-clip-creation-text-input-renderer",function(){if(oqq!==void 0)return oqq;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return oqq=F},{mode:1});var nqZ;var MAZ;var ThQ;var G0y;var Da$;var $$=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};F.pendingStoryboardImages_={};F.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];F.tickLabelInterval=30;F.mediumTickInterval=5;F.largeTickInterval=15;F.aboveRulerHeight=32;F.rulerHeight=50;F.smallTickHeight=4;F.mediumTickHeight=8;F.largeTickHeight=16;F.mediaListeners_=
{};return F};
_.M($$,_.x);_.l=$$.prototype;_.l.attached=function(){var F=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(q){q=_.X(["screen and (min-resolution: "+q+")","screen and (max-resolution: "+q+")"]);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u=window.matchMedia(t);u&&(F.mediaListeners_[t]=F.updatePixelRatio_.bind(F),u.addEventListener?u.addEventListener("change",F.mediaListeners_[t]):u.addListener?u.addListener(F.mediaListeners_[t]):delete F.mediaListeners_[t])}})};
_.l.detached=function(){this.setPlayer(null);for(var F=_.X(Object.keys(this.mediaListeners_)),q=F.next();!q.done;q=F.next()){var t=q.value;q=this.mediaListeners_[t];(t=window.matchMedia(t))&&(t.removeEventListener?t.removeEventListener("change",q):t.removeListener&&t.removeListener(q))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.l.onVisibilityChangedAction_=function(F){var q=this;F.visible&&!this.player_&&(F=_.g0())&&F.getPlayerPromise().then(function(t){q.setPlayer(t)})};
_.l.setPlayer=function(F){F&&this.set("player_",F)};
_.l.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.l.setUpCanvas_=function(){var F=this.rulerWidth,q=this.devicePixelRatio_,t=this.visible;this.set("canvasReady_",!1);if(t&&q!==0){t=this.aboveRulerHeight+this.rulerHeight;var u=_.ep(this.hostElement).querySelector("#ticks");u.width=F*q;u.height=t*q;u.style.width=F+"px";u.style.height=t+"px";u.getContext("2d").scale(q,q);this.set("canvasReady_",!0)}};
_.l.drawRuler_=function(F,q,t,u,J,g,Y,Q,e,r,N,w){F&&t&&q&&(F=_.ep(this.hostElement).querySelector("#ticks"),q=F.getContext("2d"),q.clearRect(0,0,F.width,F.height),q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),q.lineWidth=2,q.beginPath(),q.moveTo(0,this.aboveRulerHeight),q.lineTo(F.width,this.aboveRulerHeight),q.moveTo(0,F.height),q.lineTo(F.width,F.height),q.stroke(),this.drawRulerTicks_(F,g,J,u),this.drawStoryboardImages_(F,t,g,J,u),q.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
q.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(Y-g,u,!1),this.rulerHeight),t=this.timeToPixels_(Q-g,u,!1),q.fillRect(t,this.aboveRulerHeight,F.width-t,this.rulerHeight),this.drawSpeedLines_(F,g,w))};
_.l.drawRulerTicks_=function(F,q,t,u){var J=F.getContext("2d");J.save();J.lineWidth=1;for(var g=Math.floor(Math.max(0,q-this.tickLabelInterval));g<q+t;g++){J.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var Y=(g-q)*u;J.beginPath();J.moveTo(Y,F.height);var Q=this.smallTickHeight;g%this.largeTickInterval===0?Q=this.largeTickHeight:g%this.mediumTickInterval===0&&(Q=this.mediumTickHeight);J.lineTo(Y,F.height-Q);J.stroke();g%this.tickLabelInterval===0&&(J.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),J.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),J.fillText(dV(g),Y+4,12),J.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),J.moveTo(Y,0),J.lineTo(Y,this.aboveRulerHeight),J.stroke())}J.restore()};
_.l.percentToHex_=function(F){F=Math.round(F*255).toString(16);F.length<2&&(F="0"+F);return F};
_.l.drawSpeedLines_=function(F,q,t){var u=F.getContext("2d");u.save();var J=Math.min(25,Math.abs(t)-15)/25,g=F.width*.3*J,Y=F.width*-.3,Q=F.width*1.3,e=this.aboveRulerHeight;F=F.height;var r=Math.round(4*J),N=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");N.length<7&&(N="#"+N.substring(1,4).repeat(2));var w=this.percentToHex_(.5+J/2);w=N+w;N+="00";if(J>0)for(J=0;J<r;J++){var k=Y+Math.random()*(Q-Y),z=e+Math.random()*(F-e),T=g+q%g,P=u.createLinearGradient(k,z,k+T,z);
t<0?(P.addColorStop(0,w),P.addColorStop(.4,w),P.addColorStop(.9,N)):(P.addColorStop(.1,N),P.addColorStop(.6,w),P.addColorStop(1,w));u.strokeStyle=P;u.lineWidth=1;u.beginPath();u.moveTo(k,z);u.lineTo(k+T,z);u.stroke()}u.restore()};
_.l.getStoryboardForTime_=function(F,q,t){t===void 0&&(t=q.getNumberOfStoryboardLevels()-1);F=q.getStoryboardFrameIndex(F,t);return q.getStoryboardFrame(F,t)};
_.l.drawStoryboardImages_=function(F,q,t,u,J){if(!this.disabled){F=F.getContext("2d");var g=this.getStoryboardForTime_(0,q);if(g){var Y=g.width/g.columns;g=g.height/g.rows;var Q=Y/g,e=this.rulerHeight*Q;e=this.tickLabelInterval*(Q<this.tickLabelInterval*J/this.rulerHeight?1/Math.floor(this.tickLabelInterval*J/e):Math.round(e/(this.tickLabelInterval*J)));var r=e*J,N=this.rulerHeight,w=r/this.rulerHeight,k=Math.floor(Math.max(0,t-e));for(k-=k%e;k<t+u;k+=e){var z=this.getStoryboardForTime_(k,q),T=this.getPreloadedStoryboard_(z.url);
if(T){var P=(k-t)*J,v=this.aboveRulerHeight,H=z.column*Y,d=z.row*g;if(Q<w){var a=N/(r/Q);z=Y;a*=g;d+=(g-a)/2}else z=r/(N*Q)*Y,a=g,H+=(Y-z)/2;F.drawImage(T,H,d,z,a,P,v,r,N)}else this.fetchStoryboardImage_(z)}}}};
_.l.getPreloadedStoryboard_=function(F){return this.storyboardImages_.find(function(q){if(q.src==F)return!0;var t=q.src.indexOf(F);return t!=-1&&t==q.src.length-F.length})};
_.l.fetchStoryboardImage_=function(F){var q=this,t=this.getPreloadedStoryboard_(F.url),u=this.pendingStoryboardImages_[F.url];t||u!==void 0||(t=new Promise(function(J){var g=new Image(F.width,F.height);g.src=F.url;g.onload=function(){J(g)};
g.onerror=function(){J(null)}}),this.pendingStoryboardImages_[F.url]=t,t.then(function(J){J&&q.push("storyboardImages_",J);
return J}).finally(function(){delete q.pendingStoryboardImages_[F.url]}))};
_.l.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.l.timeToPixels_=function(F,q,t){F*=q;return t===void 0||t?F+"px":F};
_.l.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
$$.prototype.drawRuler_=$$.prototype.drawRuler_;$$.prototype.setUpCanvas_=$$.prototype.setUpCanvas_;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],$$.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],$$.prototype,"start",void 0);_.C([_.O({value:30}),_.V("design:type",Number)],$$.prototype,"end",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],$$.prototype,"visible",void 0);_.C([_.O(),_.V("design:type",Object)],$$.prototype,"player_",void 0);_.C([_.O(),_.V("design:type",Number)],$$.prototype,"tickSpacing",void 0);_.C([_.O(),_.V("design:type",Number)],$$.prototype,"windowSizeSec",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],$$.prototype,"rulerWidth",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],$$.prototype,"rulerShift",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],$$.prototype,"canvasReady_",void 0);_.C([_.O({value:function(){return[]}}),
_.V("design:type",Array)],$$.prototype,"storyboardImages_",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],$$.prototype,"disabled",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],$$.prototype,"forceRender_",void 0);_.C([_.O({value:1}),_.V("design:type",Number)],$$.prototype,"devicePixelRatio_",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],$$.prototype,"windowSpeed",void 0);
_.C([_.za("visible","devicePixelRatio_","rulerWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$$.prototype,"setUpCanvas_",null);
_.C([_.za("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.V("design:returntype")],$$.prototype,"drawRuler_",null);_.C([_.Vu({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],$$);
_.b($$,"yt-clip-creation-scrubber-canvas",function(){if(Da$===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);Da$=F}F=Da$;return F},
{mode:2});var W7O;var OsQ;var b2=function(){var F=_.x.apply(this,arguments)||this;F.start=0;F.end=30;F.visible=!1;F.draggingLeft_=!1;F.draggingRight_=!1;F.draggingRuler_=!1;F.draggingWindow_=!1;F.seekableStart=0;F.seekableEnd=0;F.rulerWidth_=0;F.rulerShift_=0;F.windowSlideSpeed=0;F.disabled=!1;F.initialized=!1;F.durationAccessibilityLabel="";F.activeLoopRange_=!1;F.rulerDragMouseStart_=0;F.rulerDragRulerStart_=0;F.rulerDragStartTime_=0;F.rulerDragEndTime_=0;F.dragMouseLastX_=0;F.scrollInterval_=null;F.scrubberVe_=null;F.boundHandlers_=
{};F.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return F};
_.M(b2,_.x);_.l=b2.prototype;
_.l.created=function(){var F=this;this.JSC$22607_playerEvents=new Map;this.JSC$22607_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22607_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22607_playerEvents.set("onStateChange",this.onStateChange_);var q={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(q).forEach(function(t){F.boundHandlers_[t]=q[t].bind(F)})};
_.l.attached=function(){this.activeLoopRange_=!1;_.ep(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ep(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.r0(156731)};
_.l.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.ep(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ep(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.l.onVisibilityChangedAction_=function(F){var q=this;F.visible&&!this.player_&&(F=_.g0())&&F.getPlayerPromise().then(function(t){q.setPlayer(t)})};
_.l.setPlayer=function(F){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22607_playerEvents);F&&(this.set("player_",F),this.ytPlayerListenerBehavior.listenToPlayerEvents(F,this.JSC$22607_playerEvents))};
_.l.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.l.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.l.beginHandleDrag_=function(F){this.disabled||(F.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=F.clientX,F.target===_.ep(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():F.target===_.ep(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.l.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.l.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.l.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.l.beginRulerDrag_=function(F){this.disabled||(F.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=F.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.l.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.l.beginWindowScroll_=function(){var F=this;this.scrollInterval_=setInterval(function(){var q=F.windowSlideSpeed;if(q=_.tWS(F.start,F.boundedRulerStartLimit_())?q-.1:_.tWS(F.end,F.boundedRulerEndLimit_())?q+.1:0){var t=F.capRulerOffset_(F.rulerShift_+q);t==F.rulerShift_?q=0:(F.set("rulerShift_",t),_.Q0(F.hostElement,"set-fixed-length-range",{start:F.start+q,duration:F.end-F.start}))}F.set("windowSlideSpeed",q)},33)};
_.l.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.l.endDrag_=function(){this.logClick();var F=void 0;this.draggingRight_?F=this.end-1:this.draggingLeft_&&(F=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,F);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.l.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.l.updateRulerSize_=function(){this.set("rulerWidth_",_.ep(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.l.handleMouseDrag_=function(F){F.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(F):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(F):this.draggingWindow_&&this.handleWindowDrag_(F))};
_.l.handleRulerDrag_=function(F){F=this.pixelsToTime_(F.clientX-this.rulerDragMouseStart_);F=this.capRulerOffset_(this.rulerDragRulerStart_-F);this.set("rulerShift_",F);var q=this.rulerDragStartTime_-(this.rulerDragRulerStart_-F);_.Q0(this.hostElement,"set-fixed-length-range",{start:q,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-F)-q})};
_.l.handleWindowDrag_=function(F){var q=F.clientX-this.dragMouseLastX_;this.dragMouseLastX_=F.clientX;F=this.pixelsToTime_(q);_.Q0(this.hostElement,"set-fixed-length-range",{start:this.start+F,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.l.capRulerOffset_=function(F){var q=this.seekableStart-this.pixelsToTime_(16),t=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(q,F),t)};
_.l.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.l.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.l.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.l.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.l.handleWindowHandleDrag_=function(F){var q=F.clientX-this.dragMouseLastX_;this.dragMouseLastX_=F.clientX;F=this.pixelsToTime_(q);if(this.draggingLeft_){var t=this.start+F;var u=this.end}else this.draggingRight_&&(t=this.start,u=this.end+F);_.Q0(this.hostElement,"set-range",{start:t,end:u,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.l.onVideoProgress_=function(F){this.disabled||(F=this.timeToPixels_(F-this.rulerShift_,this.tickSpacing_),_.ep(this.hostElement).querySelector("#playhead").style.transform="translateX("+F+")")};
_.l.onClipCreationDisable_=function(){this.endDrag_()};
_.l.timeToPixels_=function(F,q,t){F*=q;return t===void 0||t?F+"px":F};
_.l.pixelsToTime_=function(F){return F/this.tickSpacing_};
_.l.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.l.centerRuler_=function(F,q,t){this.set("rulerShift_",this.capRulerOffset_(F+(q-F)/2-t/2))};
_.l.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.l.updateLoopRange_=function(F,q,t,u,J,g,Y){F&&(q&&u&&!t?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(F.pauseVideo(),F.seekTo(J,!1,void 0,void 0,50)):this.draggingRight_?(F.pauseVideo(),F.seekTo(g-.1,!1,void 0,void 0,50)):(Y!==void 0?F.seekTo(Y,!0,void 0,void 0,50):(q=F.getCurrentTime(),q<J||q>g?F.seekTo(J,!0,void 0,void 0,50):F.seekTo(q,!0,void 0,void 0,50)),F.playVideo()),F.setLoopRange({startTimeMs:J*1E3,endTimeMs:g*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(F.getCurrentTime())):
this.activeLoopRange_&&(F.setLoopRange(null),this.activeLoopRange_=!1))};
_.l.updateHandles_=function(){_.ep(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.ep(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.l.updateRuler_=function(){var F=this.end,q=this.start,t=this.draggableStartLimit_(),u=this.draggableEndLimit_();(q<t-.001||F>u+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.l.computeDurationLabel_=function(F,q){return F?F.replace("$clip_length",parseFloat(q).toFixed(1)):""};
_.l.computeDuration_=function(F,q){return this.isValidTime_(F)&&this.isValidTime_(q)&&F<q?q-F:0};
_.l.isValidTime_=function(F){return isNaN(parseFloat(F))||F<0?!1:this.player_?F>=this.seekableStart&&F<=this.seekableEnd:!0};
_.l.computeWindowSizeSec_=function(F,q,t){return Math.min((F||12E4)/1E3,t-q)};
_.l.computeTickSpacing_=function(F,q){return q?q/F:1};
_.l.onDragStateChanged_=function(){_.Q0(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.l.centerRangeOnTime_=function(F){var q=this.duration;F=qC$(F-q/2,q,this.seekableStart,this.seekableEnd);_.Q0(this.hostElement,"set-fixed-length-range",{start:F.start,duration:F.end-F.start})};
_.l.nearlyLessThan_=function(F,q,t){return F+(t===void 0?1E-6:t)<q};
_.l.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var F=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(F,this.start)||this.nearlyLessThan_(this.end,F))&&this.centerRangeOnTime_(F)}};
_.l.onStateChange_=function(F){this.visible&&!this.disabled&&F==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.l.computeDragState_=function(F,q,t,u){return F?"left":q?"right":t?"ruler":u?"window":"none"};
_.l.logClick=function(){var F=_.yb(),q=_.b7();F&&q&&this.scrubberVe_&&(_.E("combine_ve_grafts")?_.PQ(_.DP(),this.scrubberVe_,q):_.Bo(F,q,this.scrubberVe_),_.co(F,this.scrubberVe_))};
b2.prototype.onDragStateChanged_=b2.prototype.onDragStateChanged_;b2.prototype.updateRuler_=b2.prototype.updateRuler_;b2.prototype.updateHandles_=b2.prototype.updateHandles_;b2.prototype.onUpdateLoopRange=b2.prototype.onUpdateLoopRange;b2.prototype.onInitializedChanged_=b2.prototype.onInitializedChanged_;b2.prototype.onVisibleChanged_=b2.prototype.onVisibleChanged_;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],b2.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",Object)],b2.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"start",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"end",void 0);_.C([_.O({computed:"computeDuration_(start, end)"}),_.V("design:type",Number)],b2.prototype,"duration",void 0);
_.C([_.O(),_.V("design:type",String)],b2.prototype,"lengthTemplate",void 0);_.C([_.O({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.V("design:type",String)],b2.prototype,"durationLabel",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"visible",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"player_",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"draggingLeft_",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"draggingRight_",void 0);
_.C([_.O(),_.V("design:type",Object)],b2.prototype,"draggingRuler_",void 0);_.C([_.O({value:!1}),_.V("design:type",Object)],b2.prototype,"draggingWindow_",void 0);_.C([_.O({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.V("design:type",Number)],b2.prototype,"tickSpacing_",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"seekableStart",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"seekableEnd",void 0);
_.C([_.O(),_.V("design:type",Number)],b2.prototype,"windowSizeMs",void 0);_.C([_.O({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.V("design:type",Number)],b2.prototype,"windowSizeSec_",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"rulerWidth_",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"rulerShift_",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"windowSlideSpeed",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],b2.prototype,"disabled",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"initialized",void 0);_.C([_.O(),_.V("design:type",Object)],b2.prototype,"durationAccessibilityLabel",void 0);_.C([_.O({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.V("design:type",String)],b2.prototype,"dragState",void 0);
_.C([_.za("visible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b2.prototype,"onVisibleChanged_",null);_.C([_.za("initialized"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b2.prototype,"onInitializedChanged_",null);_.C([_.za("player_","visible","disabled","initialized","start","end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b2.prototype,"onUpdateLoopRange",null);
_.C([_.za("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b2.prototype,"updateHandles_",null);_.C([_.za("start","end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b2.prototype,"updateRuler_",null);
_.C([_.za("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b2.prototype,"onDragStateChanged_",null);_.C([_.Vu({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],b2);
_.b(b2,"yt-clip-creation-scrubber-view",function(){if(OsQ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;W7O===void 0&&(W7O=document.createElement("template"));var u=W7O;t.call(q,u.content.cloneNode(!0),F.content.firstChild);OsQ=F}F=OsQ;return F},{mode:2});var yr=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};F.startHighlightTimeout=0;F.endHighlightTimeout=0;return F};
_.M(yr,_.x);_.l=yr.prototype;_.l.attached=function(){var F=this;this.startInput.addEventListener("input",function(q){return F.handleStartInput_(q)});
this.endInput.addEventListener("input",function(q){return F.handleEndInput_(q)});
this.startInput.addEventListener("focusout",function(q){return F.handleStartBlur_(q)});
this.endInput.addEventListener("focusout",function(q){return F.handleEndBlur_(q)})};
_.l.setPlayer=function(F){this.set("player_",F)};
_.l.onSetFixedLengthRange_=function(F){var q=F.detail;F=q.start;var t=q.duration,u=q.startLimit;q=q.endLimit;u||(u=this.seekableStart_);q||(q=this.seekableEnd_);F=qC$(F,t,u,q);this.start=F.start;this.end=F.end};
_.l.onSetRange_=function(F){var q=F.detail;F=q.start;var t=q.end,u=q.startLimit;q=q.endLimit;u||(u=this.seekableStart_);q||(q=this.seekableEnd_);if(F=t5y(F,t,u,q,this.minLengthSec,this.maxLengthSec))this.start=F.start,this.end=F.end};
_.l.updateInputs_=function(){var F=this.end,q=this.start;this.startInput.focused||(this.startInput.value=dV(q,!0));this.endInput.focused||(this.endInput.value=dV(F,!0))};
_.l.handleStartInput_=function(F){F=Fve(F.target.value);if(F===null)this.set("startValid",!1);else{var q=this.end,t=t5y(F,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);t?(this.set("endWillUpdate",t.end!==q),this.set("startValid",t.start===F)):this.set("startValid",!1)}};
_.l.handleEndInput_=function(F){F=Fve(F.target.value);if(F===null)this.set("endValid",!1);else{var q=this.start,t=u3e(this.start,F,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);t?(this.set("startWillUpdate",t.start!==q),this.set("endValid",t.end===F)):this.set("endValid",!1)}};
_.l.handleStartBlur_=function(F){F=Fve(F.target.value);F===null?this.startInput.value=dV(this.start,!0):this.forceUpdateInputs_(t5y(F,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.l.handleEndBlur_=function(F){F=Fve(F.target.value);F===null?this.endInput.value=dV(this.end,!0):this.forceUpdateInputs_(u3e(this.start,F,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.l.forceUpdateInputs_=function(F){F&&(this.start=F.start,this.end=F.end);this.startInput.value=dV(this.start,!0);this.endInput.value=dV(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.l.initializeClipRange_=function(){var F=this.seekableEnd_,q=this.seekableStart_,t=this.visible_,u=this.player_;if(!u||!t||q===null||!F)this.set("initialized",!1);else if(!this.initialized){var J=u.getCurrentTime(),g=this.getDefaultLengthSec_();t=u.getVideoData();var Y=u.getPlayerState()==1,Q=t.isLive;g=Math.min(g,F-q);J=Math.max(0,J);F=Q?u3e(J-g,J,q,F,this.minLengthSec,this.maxLengthSec):Y?qC$(J-g/2,g,q,F):qC$(J,g,q,F);this.start=F.start;this.end=F.end;this.set("initialized",!0);t.isLive&&u.seekTo(F.start);
this.startInput.value=dV(this.start,!0);this.endInput.value=dV(this.end,!0)}};
_.l.onStartChanged_=function(){var F=this;_.Q0(this.hostElement,"start-changed",{start:this.start});var q;isNaN((q=this.oldStart)!=null?q:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){F.set("highlightStart",!1);F.startHighlightTimeout=0;F.oldStart=F.start},3E3))};
_.l.onEndChanged_=function(){var F=this;_.Q0(this.hostElement,"end-changed",{end:this.end});var q;isNaN((q=this.oldEnd)!=null?q:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){F.set("highlightEnd",!1);F.endHighlightTimeout=0;F.oldEnd=F.end},3E3))};
_.l.onVisibilityChangedAction_=function(F){var q=this;this.set("visible_",F.visible);this.visible_&&!this.player_&&(F=_.g0())&&F.getPlayerPromise().then(function(t){q.setPlayer(t)})};
_.l.computeMinLengthSec_=function(F){return F/1E3||5};
_.l.computeMaxLengthSec_=function(F){return F/1E3||60};
_.l.computeDefaultLengthSec_=function(F){return F/1E3};
_.l.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.l.computeSeekableStart_=function(F,q){return F&&q?F.getProgressState(1).seekableStart:0};
_.l.computeSeekableEnd_=function(F,q){return F&&q?F.getProgressState(1).seekableEnd:0};
_.l.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.l.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.l.onDragState_=function(F){this.set("highlightStart",F.detail.startChanging);this.set("highlightEnd",F.detail.endChanging)};
yr.prototype.onDragState_=yr.prototype.onDragState_;yr.prototype.onEndChanged_=yr.prototype.onEndChanged_;yr.prototype.onStartChanged_=yr.prototype.onStartChanged_;yr.prototype.initializeClipRange_=yr.prototype.initializeClipRange_;yr.prototype.updateInputs_=yr.prototype.updateInputs_;yr.prototype.onSetRange_=yr.prototype.onSetRange_;yr.prototype.onSetFixedLengthRange_=yr.prototype.onSetFixedLengthRange_;
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],yr.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],yr.prototype,"data",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],yr.prototype,"start",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],yr.prototype,"startValid",void 0);
_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],yr.prototype,"startWillUpdate",void 0);_.C([_.O({value:30}),_.V("design:type",Number)],yr.prototype,"end",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],yr.prototype,"endValid",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],yr.prototype,"endWillUpdate",void 0);_.C([_.O({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.V("design:type",Number)],yr.prototype,"minLengthSec",void 0);
_.C([_.O({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.V("design:type",Number)],yr.prototype,"maxLengthSec",void 0);_.C([_.O({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.V("design:type",Number)],yr.prototype,"defaultLengthSec",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],yr.prototype,"visible_",void 0);_.C([_.O(),_.V("design:type",Object)],yr.prototype,"player_",void 0);
_.C([_.O({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.V("design:type",Number)],yr.prototype,"seekableStart_",void 0);_.C([_.O({computed:"computeSeekableEnd_(player_, visible_)"}),_.V("design:type",Number)],yr.prototype,"seekableEnd_",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],yr.prototype,"initialized",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],yr.prototype,"disabled",void 0);
_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],yr.prototype,"highlightStart",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],yr.prototype,"highlightEnd",void 0);_.C([_.Ms("#start"),_.V("design:type",HTMLInputElement)],yr.prototype,"startInput",void 0);_.C([_.Ms("#end"),_.V("design:type",HTMLInputElement)],yr.prototype,"endInput",void 0);
_.C([_.EB("set-fixed-length-range"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],yr.prototype,"onSetFixedLengthRange_",null);_.C([_.EB("set-range"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],yr.prototype,"onSetRange_",null);_.C([_.za("start","end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yr.prototype,"updateInputs_",null);
_.C([_.za("player_","visible_","seekableStart_","seekableEnd_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yr.prototype,"initializeClipRange_",null);_.C([_.za("start"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yr.prototype,"onStartChanged_",null);_.C([_.za("end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yr.prototype,"onEndChanged_",null);
_.C([_.EB("clips-drag-state"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],yr.prototype,"onDragState_",null);_.C([_.Vu({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],yr);
_.b(yr,"yt-clip-creation-scrubber-renderer",function(){if(G0y===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;ThQ===void 0&&(ThQ=document.createElement("template"));var u=ThQ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);G0y=F}F=G0y;return F},{mode:2});var CP=function(){var F=_.x.apply(this,arguments)||this;F.player_=null;F.JSC$22621_playerEvents=new Map;F.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return F};
_.M(CP,_.x);_.l=CP.prototype;_.l.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"}}}};
_.l.created=function(){this.JSC$22621_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22621_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22621_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22621_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.l.detached=function(){this.setPlayer(null)};
_.l.onVisibilityChangedAction_=function(F){var q=this,t;if((t=this.data)==null?0:t.externalVideoId){var u;this.videoId=(u=this.data)==null?void 0:u.externalVideoId}this.getPlayer().then(function(J){if(F.visible)q.returnTime=J.getCurrentTime(),q.isAtLiveHead=J.getProgressState().isAtLiveHead;else{var g=q.returnTime;q.isAtLiveHead&&(g=Number.POSITIVE_INFINITY);J.seekTo(g,void 0,void 0,void 0,51)}})};
_.l.getPlayer=function(){var F=this;if(!this.player_){var q=_.g0();if(q)return q.getPlayerPromise().then(function(t){F.setPlayer(t);return t})}return Promise.resolve(this.player_)};
_.l.setPlayer=function(F){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22621_playerEvents);if(F){this.player_=F;var q;((q=this.data)==null?0:q.externalVideoId)||this.set("videoId",F.getVideoData().video_id||"");var t;(F==null?void 0:(t=F.getPresentingPlayerType)==null?void 0:t.call(F))===2&&(this.set("isAdPlaying",!0),_.ec(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(F,this.JSC$22621_playerEvents)}};
_.l.ready=function(){_.ep(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.l.onTitleChanged_=function(F){this.set("titleValue",F.detail.title)};
_.l.onStartChanged_=function(F){this.set("start",F.detail.start)};
_.l.onEndChanged_=function(F){this.set("end",F.detail.end)};
_.l.onTitleValidChanged_=function(F){this.set("titleValid",F.detail.valid)};
_.l.onStartValidChanged_=function(F){this.set("startValid",F.detail.valid)};
_.l.onEndValidChanged_=function(F){this.set("endValid",F.detail.valid)};
_.l.onVideoDataChange_=function(){var F;if((F=this.data)==null||!F.externalVideoId){var q;this.set("videoId",((q=this.player_)==null?void 0:q.getVideoData().video_id)||"")}};
_.l.computeFormValid_=function(F,q,t,u){return!!(F&&q&&t&&u)};
_.l.computeCancelButton_=function(F,q,t){return F&&_.n(F,_.th)?{buttonRenderer:Object.assign({},_.n(F,_.th),{isDisabled:q||t})}:null};
_.l.computeSubmitButton_=function(F,q,t){return F&&_.n(F,_.th)?{buttonRenderer:Object.assign({},_.n(F,_.th),{command:void 0,isDisabled:!this.formValid||q||t})}:null};
_.l.computeSubmitCommand_=function(F){return F||null};
_.l.onSubmit_=function(F){var q=this;F.stopPropagation();F.preventDefault();this.submitCommand_&&(F={},F.comment_text=this.titleValue,F.clip_external_video_id=this.videoId,F.clip_offset_ms=parseInt(this.start*1E3,10),F.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.RD(this.hostElement,[this.submitCommand_,F]).then(function(){q.set("isLoading_",!1)},function(){q.set("isLoading_",!1)}))};
_.l.playerAdStartHandler_=function(){_.ec(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler_=function(){_.ec(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.l.onVideoProgress_=function(){var F=this;this.getPlayer().then(function(q){var t,u=(q==null?void 0:(t=q.getPresentingPlayerType)==null?void 0:t.call(q))===2;F.isAdPlaying!==u&&(u?F.playerAdStartHandler_():F.playerAdEndHandler_())})};
CP.prototype.onEndValidChanged_=CP.prototype.onEndValidChanged_;CP.prototype.onStartValidChanged_=CP.prototype.onStartValidChanged_;CP.prototype.onTitleValidChanged_=CP.prototype.onTitleValidChanged_;CP.prototype.onEndChanged_=CP.prototype.onEndChanged_;CP.prototype.onStartChanged_=CP.prototype.onStartChanged_;CP.prototype.onTitleChanged_=CP.prototype.onTitleChanged_;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],CP.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",Object)],CP.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],CP.prototype,"data",void 0);_.C([_.O({value:""}),_.V("design:type",String)],CP.prototype,"titleValue",void 0);
_.C([_.O({value:!1}),_.V("design:type",Boolean)],CP.prototype,"titleValid",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],CP.prototype,"start",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],CP.prototype,"startValid",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],CP.prototype,"end",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],CP.prototype,"endValid",void 0);_.C([_.O({value:""}),_.V("design:type",String)],CP.prototype,"videoId",void 0);
_.C([_.O({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.V("design:type",Boolean)],CP.prototype,"formValid",void 0);_.C([_.O({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.V("design:type",Object)],CP.prototype,"submitButton_",void 0);_.C([_.O({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.V("design:type",Object)],CP.prototype,"submitCommand_",void 0);
_.C([_.O({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.V("design:type",Object)],CP.prototype,"cancelButton_",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],CP.prototype,"isLoading_",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],CP.prototype,"isAdPlaying",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],CP.prototype,"returnTime",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],CP.prototype,"isAtLiveHead",void 0);
_.C([_.EB("title-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],CP.prototype,"onTitleChanged_",null);_.C([_.EB("start-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],CP.prototype,"onStartChanged_",null);_.C([_.EB("end-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],CP.prototype,"onEndChanged_",null);
_.C([_.EB("title-valid-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],CP.prototype,"onTitleValidChanged_",null);_.C([_.EB("start-valid-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],CP.prototype,"onStartValidChanged_",null);_.C([_.EB("end-valid-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],CP.prototype,"onEndValidChanged_",null);
_.C([_.Vu({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],CP);
_.b(CP,"yt-clip-creation-renderer",function(){if(MAZ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;nqZ===void 0&&(nqZ=document.createElement("template"));var u=nqZ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);MAZ=F}F=MAZ;return F},{mode:2});var d6=function(){return _.x.apply(this,arguments)||this};
_.M(d6,_.x);d6.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"}}}};
d6.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(F){return F.hasOwnProperty("clipCreationRenderer")})&&_.ec(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
d6.prototype.onPanelContentVisibleChanged=d6.prototype.onPanelContentVisibleChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.QP.YtVisibilityBehavior),_.V("design:type",Object)],d6.prototype,"ytVisibilityBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],d6.prototype,"ytdReduxBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],d6.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],d6.prototype,"panelContentVisible",void 0);_.C([_.za("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],d6.prototype,"onPanelContentVisibleChanged",null);_.C([_.m({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],d6);
_.b(d6,"ytd-clip-section-renderer",function(){if(k0y!==void 0)return k0y;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return k0y=F},{mode:1});var PQ$;var Vr=function(){return _.x.apply(this,arguments)||this};
_.M(Vr,_.x);_.l=Vr.prototype;
_.l.onKeyDown=function(F){if(this.snippetElements.length!==0&&(F=F.keyCode,F===38||F===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);F===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.AX(this.highlightedIndex,-1,this.snippetElements.length);F=this.snippetElements.length;var q=this.highlightedIndex%F;this.highlightedIndex=q*F<0?q+F:q;F=this.snippetElements[this.highlightedIndex];this.highlightSnippet(F);this.ensureVisible(F)}};
_.l.onKeyUp=function(F){var q=this;CwO(F)&&(F.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.mI.cancelJob(this.inputTimerId),this.inputTimerId=_.mI.addLowPriorityJob(function(){q.typedValue&&(q.fetchSnippets(q.typedValue),q.logInputGesture(q.data))},1E3))};
_.l.onClick=function(F){(F=_.r9r(F.target,null,"snippet-item"))&&this.selectSnippet(F)};
_.l.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.l.ready=function(){var F=this;this.inputElement.addEventListener("focus",function(){F.snippetsWrapper.style.removeProperty("display")})};
_.l.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.l.getSourceTimelines=function(){if(!this.data)return[];var F=[];if(this.data.searchInVideoSources)for(var q=_.X(this.data.searchInVideoSources),t=q.next();!t.done;t=q.next())t=t.value,t==="SEARCH_IN_VIDEO_SOURCE_ASR"?F.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):t==="SEARCH_IN_VIDEO_SOURCE_OCR"&&F.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return F};
_.l.fetchSnippets=function(F){var q=_.ec(this.hostElement,"yt-get-current-video-id-action")[0],t=this.getSourceTimelines();F={getSearchInVideoCommand:{externalVideoId:q,query:F!=null?F:"",sourceTimelines:t},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}})};
_.l.filterSnippets=function(F,q){var t=this;if(q){this.filteredSnippets=(0,_.m7.unsafeClone)(F);var u=RegExp(_.tjW(q),"i");this.filteredSnippets=this.filteredSnippets.filter(function(Y){return u.test(t.ytRendererBehavior.getSimpleString(Y.snippet))});
F=_.X(this.filteredSnippets);for(var J=F.next();!J.done;J=F.next()){J=J.value;var g=this.ytRendererBehavior.getSimpleString(J.snippet);J.snippet={runs:[{text:g.substring(0,g.toLowerCase().indexOf(q))},{text:g.substring(g.toLowerCase().indexOf(q),g.toLowerCase().indexOf(q)+q.length),bold:!0},{text:g.substring(g.toLowerCase().indexOf(q)+q.length,g.length)}]}}}else this.filteredSnippets=F};
_.l.onUpdateSearchInVideoResults=function(F){if(!(this.snippets.length>0)){var q,t,u;if((u=(q=_.n(F,c9Z))==null?void 0:(t=q.results)==null?void 0:t.length)!=null&&u){var J;this.filteredSnippets=this.snippets=((J=_.n(F,c9Z))==null?void 0:J.results).map(function(g){var Y,Q,e;return{startMs:g==null?void 0:(Y=g.searchInVideoResultRenderer)==null?void 0:Y.startMs,startTimeText:g==null?void 0:(Q=g.searchInVideoResultRenderer)==null?void 0:Q.startTimeText,snippet:g==null?void 0:(e=g.searchInVideoResultRenderer)==
null?void 0:e.snippet}})}}};
_.l.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};
_.l.highlightSnippet=function(F){F.classList.add("highlighted")};
_.l.removeSnippetHighlight=function(F){F.classList.remove("highlighted")};
_.l.selectSnippet=function(F){this.typedValue=String(F.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(F);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.l.ensureVisible=function(F){var q=this.snippetsWrapper.scrollTop,t=q+this.snippetsWrapper.clientHeight,u=F.offsetTop-this.snippetsWrapper.offsetTop;F=u+F.clientHeight;u<q?this.snippetsWrapper.scrollTop-=q-u:F>t&&(this.snippetsWrapper.scrollTop+=F-t)};
_.l.seekPlayer=function(F){var q,t;return _.p(function(u){if(u.nextAddress==1){if(!F)return u.jumpTo(0);q=Number(F.dataset.startOffset);return u.yield(_.l6().getPlayerPromise(),3)}t=u.yieldResult;t.seekTo(q/1E3,!0);t.wakeUpControls();_.WA(u)})};
_.l.logInputGesture=function(F){var q=_.yb();q&&(F==null?0:F.trackingParams)&&_.FE(q,_.Av(F.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.l.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("typed-value-changed",this.typedValue))};
_.l.updateTypedValueFromBinding=function(F){this.typedValue=F.currentTarget.value};
Vr.prototype.typedValueChangedForBinding=Vr.prototype.typedValueChangedForBinding;Vr.prototype.dataChanged=Vr.prototype.dataChanged;Vr.prototype.panelContentVisibleChanged=Vr.prototype.panelContentVisibleChanged;Vr.prototype.onClick=Vr.prototype.onClick;Vr.prototype.onKeyUp=Vr.prototype.onKeyUp;Vr.prototype.onKeyDown=Vr.prototype.onKeyDown;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Vr.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Vr.prototype,"data",void 0);_.C([_.O({value:[]}),_.V("design:type",Array)],Vr.prototype,"snippets",void 0);_.C([_.O({value:[]}),_.V("design:type",Array)],Vr.prototype,"filteredSnippets",void 0);_.C([_.O({value:[]}),_.V("design:type",Array)],Vr.prototype,"snippetElements",void 0);
_.C([_.Ms("#siv-input"),_.V("design:type",HTMLElement)],Vr.prototype,"inputElement",void 0);_.C([_.Ms("#siv-snippets-wrapper"),_.V("design:type",HTMLElement)],Vr.prototype,"snippetsWrapper",void 0);_.C([_.O(),_.V("design:type",String)],Vr.prototype,"typedValue",void 0);_.C([_.O({value:-1}),_.V("design:type",Number)],Vr.prototype,"highlightedIndex",void 0);_.C([_.EB("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[_.D6]),_.V("design:returntype")],Vr.prototype,"onKeyDown",null);
_.C([_.EB("keyup"),_.V("design:type",Function),_.V("design:paramtypes",[_.D6]),_.V("design:returntype")],Vr.prototype,"onKeyUp",null);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Vr.prototype,"onClick",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Vr.prototype,"panelContentVisible",void 0);
_.C([_.za("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vr.prototype,"panelContentVisibleChanged",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vr.prototype,"dataChanged",null);_.C([_.za("typedValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vr.prototype,"typedValueChangedForBinding",null);
_.C([_.m({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Vr);
_.b(Vr,"ytd-search-in-video-renderer",function(){if(PQ$!==void 0)return PQ$;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return PQ$=F},{mode:1});var xaQ;var Ux=function(){return _.x.apply(this,arguments)||this};
_.M(Ux,_.x);Ux.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Ux.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]]"}}}}}};
Ux.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var F,q,t,u,J=(q=_.n((F=this.data)==null?void 0:F.onClickCommand,_.It))==null?void 0:(t=q.item)==null?void 0:(u=t.notificationTextRenderer)==null?void 0:u.successResponseText;J&&_.G8q(this.hostElement,J)}};
_.JJ.Object.defineProperties(Ux.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u;return this.isProductPlaceholder&&((F=this.data)==null?void 0:(q=F.hiddenProductOptions)==null?void 0:q.showDropCountdown)&&!!((t=this.data)==null?0:(u=t.hiddenProductOptions)==null?0:u.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var F;return!this.isProductPlaceholder&&!((F=this.data)==null?0:F.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var F,q;return!((F=this.data)==null?0:F.priceReplacementText)&&!((q=this.data)==null||!q.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Ux.prototype,"componentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ux.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("isProductPlaceholder"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ux.prototype,"useCenterLayoutContainer",null);_.C([_.O({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],Ux.prototype,"buttonOverride",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ux.prototype,"isProductPlaceholder",null);
_.C([_.W("isProductPlaceholder"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ux.prototype,"showDropCountdown",null);_.C([_.W("isProductPlaceholder","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ux.prototype,"showBrandName",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ux.prototype,"showPriceReplacementText",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ux.prototype,"showPrice",null);
_.C([_.W("isProductPlaceholder"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ux.prototype,"showMetadata",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Ux);
_.b(Ux,"ytd-product-list-item-renderer",function(){if(xaQ!==void 0)return xaQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return xaQ=F},{mode:1});var AWI;var S3=function(){return _.x.apply(this,arguments)||this};
_.M(S3,_.x);S3.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
S3.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
S3.prototype.panelContentVisibleChanged=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return F.playerApi?t.jumpTo(2):t.yield(_.l6().getPlayerPromise(),3);t.nextAddress!=2&&(F.playerApi=t.yieldResult);(q=F.playerApi)==null||q.productsInVideoVisibilityUpdated(!!F.panelContentVisible);_.WA(t)})};
S3.prototype.panelContentVisibleChanged=S3.prototype.panelContentVisibleChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],S3.prototype,"panelContentVisible",void 0);_.C([_.O(),_.V("design:type",Object)],S3.prototype,"data",void 0);
_.C([_.za("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],S3.prototype,"panelContentVisibleChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],S3);
_.b(S3,"ytd-product-list-renderer",function(){if(AWI!==void 0)return AWI;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return AWI=F},{mode:1});var vql;var hj=function(){var F=_.x.apply(this,arguments)||this;F.hideTimestamps=!!_.vG("hide-transcript-timestamps");F.currentCueIndex=-1;F.flatCues=[];F.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};F.TEST_ONLY={getFlatCues:function(){return F.flatCues}};
return F};
_.M(hj,_.x);_.l=hj.prototype;_.l.hideTimestampsChanged=function(){_.A8("hide-transcript-timestamps",this.hideTimestamps)};
_.l.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.l.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.l.dataChanged=function(){var F;if((F=this.data)!=null&&F.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;F=_.X(this.data.cueGroups);for(var q=F.next();!q.done;q=F.next()){q=_.X(_.n(q.value,FtI).cues);for(var t=q.next();!t.done;t=q.next())this.flatCues.push(Number(_.n(t.value,qSS).startOffsetMs))}}};
_.l.onYtPlayerTimeChanged=function(F){if(!(F<0)){for(var q=this.currentCueIndex,t=q;;){var u=t>=0?this.flatCues[t]/1E3:-1;if(F+.5<u)--t;else if(u=t+1<this.flatCues.length?this.flatCues[t+1]/1E3:Infinity,F+.5>u)t+=1;else break}t!==q&&(q>=0&&((F=this.getCueElement(q))&&F.classList.remove("active"),(q=this.getCueGroupElement(q))&&q.classList.remove("active")),(q=this.getCueElement(t))&&q.classList.add("active"),(q=this.getCueGroupElement(t))&&q.classList.add("active"),this.currentCueIndex=t,this.isHovered||
this.scrollElementToTop(t))}};
_.l.scrollElementToTop=function(F){F=this.getCueElement(F>=3?F-3:0);this.hostElement.scrollTop=Math.min(F.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.l.getCueElement=function(F){return _.ep(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[F]+'"]')};
_.l.getCueGroupElement=function(F){return(F=this.getCueElement(F))&&F.parentElement?F.parentElement.parentElement:null};
_.l.onTap=function(F){var q=_.uL(F);F.target.classList.contains("cue")&&this.seekCueElement(q)};
_.l.onKeyPress=function(F){F.keyCode==13&&(F=_.r9r(F.target,null,"cue"))&&this.seekCueElement(F)};
_.l.seekCueElement=function(F){F=Number(F.getAttribute("start-offset"));_.ec(this.hostElement,"yt-transcript-player-seek",[F/1E3])};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
hj.prototype.onMouseLeave=hj.prototype.onMouseLeave;hj.prototype.onMouseEnter=hj.prototype.onMouseEnter;hj.prototype.onKeyPress=hj.prototype.onKeyPress;hj.prototype.onTap=hj.prototype.onTap;hj.prototype.dataChanged=hj.prototype.dataChanged;hj.prototype.hideTimestampsChanged=hj.prototype.hideTimestampsChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],hj.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],hj.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],hj.prototype,"hideTimestamps",void 0);_.C([_.O(),_.V("design:type",Boolean)],hj.prototype,"isHovered",void 0);_.C([_.za("hideTimestamps"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hj.prototype,"hideTimestampsChanged",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hj.prototype,"dataChanged",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],hj.prototype,"onTap",null);_.C([_.EB("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],hj.prototype,"onKeyPress",null);
_.C([_.EB("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hj.prototype,"onMouseEnter",null);_.C([_.EB("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hj.prototype,"onMouseLeave",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],hj);
_.b(hj,"ytd-transcript-body-renderer",function(){if(vql!==void 0)return vql;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return vql=F},{mode:1});var I4t;var KP=function(){var F=_.x.apply(this,arguments)||this;F.darkerPanels=_.E("web_watch_darker_panels");return F};
_.M(KP,_.x);KP.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],KP.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],KP.prototype,"darkerPanels",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],KP);
_.b(KP,"ytd-transcript-footer-renderer",function(){if(I4t!==void 0)return I4t;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return I4t=F},{mode:1});var HsI;var maO;var B0=function(){var F=_.x.apply(this,arguments)||this;F.systemIcons=_.E("kevlar_system_icons");F.showClearButton=!1;return F};
_.M(B0,_.x);_.l=B0.prototype;_.l.handleInput=function(F){var q=this;F.target.value.length?_.aE(this,"ytdTranscriptSearchBoxSearch",function(){q.emitSearchEvent(F)},500):(_.S6W(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=F.target.value.length>0};
_.l.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.l.handleClick=function(){var F,q=(F=this.data)==null?void 0:F.trackingParams;q&&_.vQ(_.DP(),q)};
_.l.handleClear=function(){_.S6W(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var F,q,t=(q=_.n((F=this.data)==null?void 0:F.clearButton,_.th))==null?void 0:q.trackingParams;t&&_.vQ(_.DP(),t);this.clear()};
_.l.emitSearchEvent=function(F){_.Q0(this.hostElement,"yt-transcript-search-box-search",{query:F.target.value});var q,t;(F=(t=_.n((q=this.data)==null?void 0:q.searchButton,_.th))==null?void 0:t.trackingParams)&&_.vQ(_.DP(),F)};
_.l.emitClearEvent=function(){_.Q0(this.hostElement,"yt-transcript-search-box-clear")};
_.JJ.Object.defineProperties(B0.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.ep(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],B0.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],B0.prototype,"systemIcons",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],B0);
_.b(B0,"ytd-transcript-search-box-renderer",function(){if(maO!==void 0)return maO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return maO=F},{mode:1});var $a$;var bsl;var LP=function(){return _.x.apply(this,arguments)||this};
_.M(LP,_.x);LP.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var F,q;this.sectionHeaderAriaLabel=(F=this.data)==null?void 0:(q=F.accessibility)==null?void 0:q.accessibilityData.label}};
LP.prototype.fireSelectedEvent=function(F){_.Q0(this.hostElement,"ytd-transcript-section-header",{startMs:F})};
LP.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
LP.prototype.handleKeyPress=function(F){this.data&&F.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.JJ.Object.defineProperties(LP.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var F,q;return(q=(F=this.data)==null?void 0:F.enableTappableTranscriptHeader)!=null?q:!1}}});
LP.prototype.dataChanged=LP.prototype.dataChanged;_.C([_.O(),_.V("design:type",Object)],LP.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],LP.prototype,"sectionHeaderAriaLabel",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],LP.prototype,"enableTappableTranscriptHeader",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LP.prototype,"dataChanged",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],LP);
_.b(LP,"ytd-transcript-section-header-renderer",function(){if(bsl!==void 0)return bsl;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return bsl=F},{mode:1});var yWZ;var CQK;var fP=function(){var F=_.x.apply(this,arguments)||this;F.isEditMode=!1;F.touchCaptionsEnabled=!1;F.deleteCaptionCorrectionPopupCommand=null;F.voteCaptionCorrectionPopupCommand=null;F.roundedContainer=!0;F.mouseOver=!1;F.textChanged=!1;F.messages={suggest_correction:_.oD("suggest_correction",void 0,"Edit caption"),suggested_caption:_.oD("suggested_caption",void 0,"Suggested caption"),submit_correction:_.oD("submit_correction",void 0,"Submit for review"),cancel_correction:_.oD("cancel_correction",
void 0,"Cancel"),replay_segment:_.oD("replay_segment",void 0,"Re-play segment"),delete_correction:_.oD("delete_correction",void 0,"Delete correction")};F.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return F};
_.M(fP,_.x);_.l=fP.prototype;_.l.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)};
_.l.handleDelete=function(F){if(this.deleteCaptionCorrectionPopupCommand){var q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);q&&this.ytdOpenPopupBehavior.openPopup(q);F.stopPropagation()}};
_.l.handleSubmit=function(F){if(this.data&&this.data.submitCaptionCorrectionCommand&&(F.stopPropagation(),this.textChanged)){var q;F=(q=_.n(this.data.submitCaptionCorrectionCommand,_.v9O))==null?void 0:q.params;q=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:F,correctionText:String(this.ironTextAreaElement.value),originalText:_.q1(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(q);this.isEditMode=!1}};
_.l.handleUpdateSegmentText=function(F){(F=_.n(F,ilQ))&&F.targetId&&this.data&&F.targetId===this.data.targetId&&(F.userCorrection&&(this.editedText=F.userCorrection),F.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.q1(this.data.snippet)),F.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=F.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=F.voteCaptionCorrectionPopupCommand?
F.voteCaptionCorrectionPopupCommand:null,F.accessibility&&(this.segmentAriaLabel=F.accessibility.accessibilityData.label))};
_.l.handleCancel=function(F){this.isEditMode=!1;F.stopPropagation();this.logClientVe(159409)};
_.l.handleEditSegmentCommand=function(F){(F=_.n(F,wSO))&&F.targetId&&this.data&&F.targetId===this.data.targetId&&this.handleEdit()};
_.l.handleEditButtonClick=function(F){this.data&&(this.handleEdit(),F.stopPropagation())};
_.l.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var F;(F=this.ironTextAreaElement.textarea)==null||F.focus();this.logClientVe(159407)}};
_.l.handleMouseEnter=function(){this.mouseOver=!0};
_.l.handleMouseLeave=function(){this.mouseOver=!1};
_.l.handleReplay=function(F){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),F.stopPropagation(),this.logClientVe(159408))};
_.l.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()))};
_.l.handleKeypress=function(F){this.data&&(this.isEditMode?F.stopPropagation():this.isEnterPress(F)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(F)&&this.logClientVe(138758))};
_.l.handleTextboxClick=function(F){F.stopPropagation()};
_.l.handleTextboxKeydown=function(F){this.isControlEnterPress(F)?this.handleSubmit(F):F.key==="Escape"&&this.handleCancel(F)};
_.l.handleTextboxKeyup=function(){this.textChanged=_.q1(this.latestText)!==String(this.ironTextAreaElement.value)};
_.l.fireSelectedEvent=function(F){_.Q0(this.hostElement,"yt-transcript-segment-selected",{startMs:F})};
_.l.fireReplayEvent=function(F,q){_.Q0(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(F-100,0),endMs:q})};
_.l.fireEditEvent=function(F,q){_.Q0(this.hostElement,"yt-transcript-segment-edit",{startMs:F,endMs:q})};
_.l.isEnterPress=function(F){return F.key==="Enter"||F.code==="Enter"||F.code==="NumpadEnter"||F.keyCode===13?!0:!1};
_.l.isControlEnterPress=function(F){var q=F.key==="Enter"||F.code==="Enter"||F.code==="NumpadEnter"||F.keyCode===13;return(F.ctrlKey||F.metaKey)&&q};
_.l.isCopyPress=function(F){var q=F.ctrlKey;return F.key==="c"&&q};
_.l.logClick=function(){var F,q=(F=this.data)==null?void 0:F.trackingParams;q&&_.vQ(_.DP(),q)};
_.l.logClientVe=function(F){_.Ah(_.DP(),_.r0(F))};
_.JJ.Object.defineProperties(fP.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}}});
fP.prototype.handleMouseLeave=fP.prototype.handleMouseLeave;fP.prototype.handleMouseEnter=fP.prototype.handleMouseEnter;fP.prototype.dataChanged=fP.prototype.dataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],fP.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],fP.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],fP.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],fP.prototype,"isEditMode",void 0);_.C([_.O(),_.V("design:type",Object)],fP.prototype,"touchCaptionsEnabled",void 0);_.C([_.O(),_.V("design:type",Object)],fP.prototype,"editedText",void 0);_.C([_.O(),_.V("design:type",Object)],fP.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.C([_.O(),_.V("design:type",Object)],fP.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.C([_.O(),_.V("design:type",String)],fP.prototype,"segmentAriaLabel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],fP.prototype,"roundedContainer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],fP.prototype,"mouseOver",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],fP.prototype,"textChanged",void 0);_.C([_.O(),_.V("design:type",Object)],fP.prototype,"messages",void 0);
_.C([_.Ms("#suggestion"),_.V("design:type",Object)],fP.prototype,"ironTextAreaElement",void 0);_.C([_.W("data","editedText"),_.V("design:type",Object),_.V("design:paramtypes",[])],fP.prototype,"latestText",null);_.C([_.W("touchCaptionsEnabled","isEditMode"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fP.prototype,"enableEditButton",null);
_.C([_.W("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],fP.prototype,"enableUndoButton",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fP.prototype,"dataChanged",null);_.C([_.EB("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fP.prototype,"handleMouseEnter",null);
_.C([_.EB("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fP.prototype,"handleMouseLeave",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],fP);
_.b(fP,"ytd-transcript-segment-renderer",function(){if(CQK!==void 0)return CQK;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return CQK=F},{mode:1});var ax=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};F.isError=!1;F.darkerPanels=_.E("web_watch_darker_panels");F.useParentMaxHeight=_.E("web_watch_transscript_use_parent_max_height");F.segmentOffsets=[];F.segmentIndex=-1;return F};
_.M(ax,_.x);_.l=ax.prototype;_.l.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"}}}}};
_.l.segmentsChanged=function(){this.updateOffsets()};
_.l.onYtPlayerTimeChanged=function(F){for(var q=this.segmentIndex,t=q;;){if(t>=0){var u=this.segmentOffsets[t].start;var J=this.segmentOffsets[t].isAutoScrollable}else u=-1,J=!0;var g=F+.5;if(!J){u=t+1<this.segmentOffsets.length?this.segmentOffsets[t+1].start:Infinity;if(g>=u){t+=1;continue}t=-1;break}if(g<u)u=t-1>=0&&this.segmentOffsets[t-1].isAutoScrollable,J=t===0||u?1:2,t-=J;else if(J=t+1<this.segmentOffsets.length&&this.segmentOffsets[t+1].isAutoScrollable?1:2,u=t+J<this.segmentOffsets.length?
this.segmentOffsets[t+J].start:Infinity,g>u)t+=J;else{if(t<0)break;t<this.segmentOffsets.length&&g>this.segmentOffsets[t].end&&(t=-1);break}}if(q!==t){if(q>=0){var Y;(Y=this.getSegmentElement(q))==null||Y.classList.remove("active")}this.segmentIndex=t;if(!(t<0)){var Q;(Q=this.getSegmentElement(t))==null||Q.classList.add("active");this.isHovered||this.scrollElementToTop(t)}}};
_.l.handleSegmentEdit=function(F){F.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=F.target,_.ec(this.hostElement,"yt-transcript-player-edit",[F.detail.startMs/1E3,F.detail.endMs/1E3]))};
_.l.handleSegmentSelected=function(F){_.ec(this.hostElement,"yt-transcript-player-seek",[F.detail.startMs/1E3])};
_.l.handleSegmentReplay=function(F){_.ec(this.hostElement,"yt-transcript-player-replay",[F.detail.startMs/1E3,F.detail.endMs/1E3])};
_.l.handleSectionHeaderSelected=function(F){_.ec(this.hostElement,"yt-transcript-player-seek",[F.detail.startMs/1E3])};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
_.l.onRetryButtonClick=function(){_.Q0(this.hostElement,"transcript-retry-button-click")};
_.l.getSegmentElement=function(F){return _.ep(this.hostElement).querySelector(":nth-child("+(F+1)+")")};
_.l.scrollElementToTop=function(F){F=this.getSegmentElement(F>=2?F-2:0);this.hostElement.scrollTop=Math.min(F.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.l.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(F){var q,t=(q=F.transcriptSegmentRenderer)!=null?q:F.transcriptSectionHeaderRenderer;return{start:Number(t.startMs)/1E3,end:Number(t.endMs)/1E3,isAutoScrollable:F.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.l.clearHighlightedSegments=function(){var F=_.ep(this.hostElement);F=_.X(F.querySelectorAll("ytd-transcript-segment-renderer"));for(var q=F.next();!q.done;q=F.next())q.value.classList.remove("active")};
_.JJ.Object.defineProperties(ax.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:F.searchResultSegments)||((q=this.data)==null?void 0:q.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
ax.prototype.onMouseLeave=ax.prototype.onMouseLeave;ax.prototype.onMouseEnter=ax.prototype.onMouseEnter;ax.prototype.handleSectionHeaderSelected=ax.prototype.handleSectionHeaderSelected;ax.prototype.handleSegmentReplay=ax.prototype.handleSegmentReplay;ax.prototype.handleSegmentSelected=ax.prototype.handleSegmentSelected;ax.prototype.handleSegmentEdit=ax.prototype.handleSegmentEdit;ax.prototype.segmentsChanged=ax.prototype.segmentsChanged;
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],ax.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ax.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],ax.prototype,"isError",void 0);
_.C([_.O(),_.V("design:type",Object)],ax.prototype,"noResultLabel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],ax.prototype,"darkerPanels",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],ax.prototype,"useParentMaxHeight",void 0);_.C([_.W("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],ax.prototype,"segments",null);
_.C([_.W("segments","noResultLabel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ax.prototype,"displayNoResults",null);_.C([_.za("segments"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ax.prototype,"segmentsChanged",null);_.C([_.EB("yt-transcript-segment-edit"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],ax.prototype,"handleSegmentEdit",null);
_.C([_.EB("yt-transcript-segment-selected"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],ax.prototype,"handleSegmentSelected",null);_.C([_.EB("yt-transcript-segment-replay"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],ax.prototype,"handleSegmentReplay",null);
_.C([_.EB("ytd-transcript-section-header"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],ax.prototype,"handleSectionHeaderSelected",null);_.C([_.EB("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ax.prototype,"onMouseEnter",null);_.C([_.EB("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ax.prototype,"onMouseLeave",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],ax);
_.b(ax,"ytd-transcript-segment-list-renderer",function(){if(yWZ!==void 0)return yWZ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return yWZ=F},{mode:1});var j3=function(){var F=_.x.apply(this,arguments)||this;F.hideTimestamps=!!_.vG("hide-transcript-timestamps");F.isLoadingTranscripts=!1;F.darkerPanels=_.E("web_watch_darker_panels");F.isError=!1;F.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return F};
_.M(j3,_.x);_.l=j3.prototype;_.l.headerChanged=function(){var F,q;this.baseGetTranscriptsCommand=(q=_.n((F=this.data)==null?void 0:F.header,k9Q))==null?void 0:q.onTextChangeCommand};
_.l.bodyChanged=function(){var F=this.getBodyRenderer();F&&(F.initialSegments&&(this.initialTranscriptsRenderer=F),F.noResultLabel&&(this.noResultLabel=F.noResultLabel),F.retryLabel&&(this.retryLabel=F.retryLabel))};
_.l.detached=function(){this.clearSearchBoxText()};
_.l.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.l.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"}}}};
_.l.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.l.fireSearch=function(F){var q=this;if(F){var t=F.detail.query;if(this.baseGetTranscriptsCommand){var u;F=(u=_.n(this.baseGetTranscriptsCommand,_.ykx))==null?void 0:u.params;var J;u=_.n((J=this.data)==null?void 0:J.footer,tOS);var g;if((J=(g=_.n(u==null?void 0:u.languageMenu,RZI))==null?void 0:g.subMenuItems)&&J.length>0&&(g=J.find(function(e){return e.selected}))){var Y,Q;
F=(Y=g.continuation)==null?void 0:(Q=Y.reloadContinuationData)==null?void 0:Q.continuation}Y=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:F,searchQuery:t}});this.ytComponentBehavior.resolveCommand(Y,{commandController:{onServerError:function(){q.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});bhq(this.ytContinuationHandlerBehavior,function(){return t===q.getCurrentSearchBoxText()})}}};
_.l.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.l.onRetryButtonClick=function(){this.isError=!1;var F={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:F}))};
_.l.hideTimestampsChanged=function(){_.A8("hide-transcript-timestamps",this.hideTimestamps)};
_.l.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.l.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.l.handleSignalActionCopyTranscript=function(){var F=this,q=this.getBodyRenderer();q&&(q=((q==null?void 0:q.searchResultSegments)||(q==null?void 0:q.initialSegments)||[]).map(function(t){return _.n(t,zZy)}).filter(function(t){return!!t}).map(function(t){return{snippet:t.snippet||{runs:[{text:""}]},
startTimeText:t.startTimeText||{simpleText:""}}}).map(function(t){var u=(t.snippet.runs||[]).reduce(function(J,g){return J+g.text},"");
return F.hideTimestamps?u:t.startTimeText.simpleText+" "+u}).join("\n"),this.copyToClipboard(q))};
_.l.copyToClipboard=function(F){navigator.clipboard&&navigator.clipboard.writeText(F)};
_.l.getCurrentSearchBoxText=function(){var F;return(F=this.searchBox)==null?void 0:F.value};
_.l.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.l.getBodyRenderer=function(){var F;return _.n((F=this.data)==null?void 0:F.body,Enn)};
_.l.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.JJ.Object.defineProperties(j3.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.ep(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
j3.prototype.hideTimestampsChanged=j3.prototype.hideTimestampsChanged;j3.prototype.searchCleared=j3.prototype.searchCleared;j3.prototype.fireSearch=j3.prototype.fireSearch;j3.prototype.onReloadContinuationFinish=j3.prototype.onReloadContinuationFinish;j3.prototype.bodyChanged=j3.prototype.bodyChanged;j3.prototype.headerChanged=j3.prototype.headerChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],j3.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.Qd),_.V("design:type",Object)],j3.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],j3.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],j3.prototype,"hideTimestamps",void 0);
_.C([_.O(),_.V("design:type",Object)],j3.prototype,"isLoadingTranscripts",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],j3.prototype,"darkerPanels",void 0);_.C([_.O(),_.V("design:type",Object)],j3.prototype,"isError",void 0);_.C([_.za("data.header"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j3.prototype,"headerChanged",null);
_.C([_.Wh("data.body"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j3.prototype,"bodyChanged",null);_.C([_.EB("yt-reload-continuation-finish"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j3.prototype,"onReloadContinuationFinish",null);_.C([_.EB("yt-transcript-search-box-search"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],j3.prototype,"fireSearch",null);
_.C([_.EB("yt-transcript-search-box-clear"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j3.prototype,"searchCleared",null);_.C([_.za("hideTimestamps"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j3.prototype,"hideTimestampsChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],j3);
_.b(j3,"ytd-transcript-search-panel-renderer",function(){if($a$!==void 0)return $a$;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return $a$=F},{mode:1});var c0=function(){var F=_.x.apply(this,arguments)||this;F.player=null;F.playerPollJobId=0;return F};
_.M(c0,_.x);_.l=c0.prototype;_.l.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.l.onLoadReloadContinuation=function(F){_.E("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:F.target.data.continuation}}):(F={clickTrackingParams:F.target.data.clickTrackingParams,getTranscriptEndpoint:{params:F.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}}))};
_.l.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"}}}};
_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.l.attached=function(){this.updatePlayerListening()};
_.l.detached=function(){this.updatePlayerListening()};
_.l.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.l.startPlayerListening=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return(q=_.g0())?t.yield(q.getPlayerPromise(),2):t.return();F.player=t.yieldResult;F.playerPollJobId=_.mI.addLowPriorityJob(function(){F.getPlayerVideoProgress()},1E3);
F.player.addEventListener("onCueRangeEnter",function(u){F.onCueRangeEnter(u)});
F.player.addEventListener("onCueRangeExit",function(u){F.onCueRangeExit(u)});
F.player.addEventListener("onStateChange",function(u){F.onPlayerStateChange(u)});
F.player.addEventListener("SEEK_TO",function(u){F.onPlayerSeek(u)});
_.WA(t)})};
_.l.getPlayerVideoProgress=function(){var F=this;_.mI.cancelJob(this.playerPollJobId);if(this.player){var q=this.player.getCurrentTime();_.ec(this.hostElement,"yt-player-time-changed",[q])}this.playerPollJobId=_.mI.addLowPriorityJob(function(){F.getPlayerVideoProgress()},1E3)};
_.l.stopPlayerListening=function(){this.player=null;_.mI.cancelJob(this.playerPollJobId)};
_.l.onPlayerStateChange=function(F){F===2&&this.removePendingCue()};
_.l.onPlayerSeek=function(F){var q;if(q=this.pendingReplayCueId)q=this.pendingReplayCueId,q=F===(_.E("web_transcript_cue_id_killswitch")?Number(q):Number(q.split("_")[1]));q||this.removePendingCue()};
_.l.onCueRangeEnter=function(F){sy$(F)&&(this.pendingReplayCueId=F)};
_.l.onCueRangeExit=function(F){sy$(F)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.l.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.l.onYtTranscriptPlayerSeek=function(F){this.player&&this.player.seekTo(F,!0)};
_.l.onYtTranscriptPlayerReplay=function(F,q){this.player&&(this.player.addCueRange(J99(F),F,q),this.player.seekTo(F,!0),this.player.playVideo())};
_.l.onYtTranscriptPlayerEdit=function(F,q){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(J99(F),F,q),this.player.seekTo(F,!0))};
c0.prototype.onLoadReloadContinuation=c0.prototype.onLoadReloadContinuation;c0.prototype.panelContentVisibleChanged=c0.prototype.panelContentVisibleChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],c0.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],c0.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],c0.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],c0.prototype,"panelContentVisible",void 0);_.C([_.za("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c0.prototype,"panelContentVisibleChanged",null);
_.C([_.EB("yt-load-reload-continuation"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],c0.prototype,"onLoadReloadContinuation",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],c0);
_.b(c0,"ytd-transcript-renderer",function(){if(HsI!==void 0)return HsI;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return HsI=F},{mode:1});var dal;var VAt;var FF=function(){return _.x.apply(this,arguments)||this};
_.M(FF,_.x);FF.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.rY(this.hostElement,[this.data.clickCommand],this.hostElement))};
FF.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.gE)()+_.KX)+"px)"};
FF.prototype.updateShouldHideFromBinding=function(F){this.shouldHide=F.detail.value};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],FF.prototype,"rendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],FF.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],FF.prototype,"shouldHide",void 0);_.C([_.m({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],FF);
_.b(FF,"ytd-ad-engagement-panel-banner-renderer",function(){if(VAt!==void 0)return VAt;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return VAt=F},{mode:_.Nc("kevlar_poly_si_batch_j070")?1:2});var UaI;var qw=function(){var F=_.x.apply(this,arguments)||this;F.modernPanels=_.E("kevlar_watch_modern_panels");F.buttonUpdate=_.E("web_modern_buttons");F.adsSemanticText=_.E("enable_ads_web_ep_buenos_aires_and_padding_fix");return F};
_.M(qw,_.x);qw.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.C([_.O(),_.V("design:type",Object)],qw.prototype,"data",void 0);_.C([_.O({computed:"computeHideDefaultAdBadge(data)"}),_.V("design:type",Boolean)],qw.prototype,"hideDefaultAdBadge",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],qw.prototype,"modernPanels",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],qw.prototype,"buttonUpdate",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],qw.prototype,"adsSemanticText",void 0);
_.C([_.m({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],qw);
_.b(qw,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(UaI!==void 0)return UaI;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return UaI=F},{mode:1});var SFq;var tl=function(){var F=_.x.apply(this,arguments)||this;F.darkerPanels=_.E("web_watch_darker_panels");F.enableSqueezebackPanels=_.E("web_shorts_enable_squeezeback_panels");F.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");F.modernPanels=_.E("kevlar_watch_modern_panels");F.headerClickListener=function(q){F.onHeaderClick(q)};
F.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return F};
_.M(tl,_.x);_.l=tl.prototype;_.l.computeAdsInfoButton=function(){if(_.E("web_modern_buttons")){var F,q;return(q=_.n((F=this.data)==null?void 0:F.subtitleComplex,uII))==null?void 0:q.adInfoRenderer}};
_.l.updateHeaderClickListener=function(){var F,q,t;((F=this.data)==null?0:F.navigationEndpoint)||((q=this.data)==null?0:q.onClickCommand)||_.n((t=this.data)==null?void 0:t.visibilityButton,_.uv)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.l.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}}}}}};
_.l.collapsedChanged=function(){var F;(F=this.data)!=null&&F.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.E("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.l.focus=function(F){var q=this;this.titleElement&&_.mI.addJob(function(){_.j1(q.titleElement,F)},0,500)};
_.l.computeTitleAriaLabel=function(F){var q=[];if(F.title){var t,u;q.push(this.ytRendererBehavior.getSimpleString(F.title)||((t=F.title.accessibility)==null?void 0:(u=t.accessibilityData)==null?void 0:u.label))}F.contextualInfo&&q.push(this.ytRendererBehavior.getSimpleString(F.contextualInfo));return q.join(" ")};
_.l.onHeaderClick=function(F){this.shouldTriggerHeaderClick(F)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.rY(this.hostElement,[this.data.onClickCommand],this.hostElement)):(F=this.getVisibilityToggleButton())&&F.click())};
_.l.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var F=_.n(this.data.visibilityButton,_.th)||_.n(this.data.visibilityButton,_.uv);F&&this.ytRendererBehavior.logExplicitClick(F)}};
_.l.getVisibilityToggleButton=function(){var F=_.ep(this.hostElement).querySelector("#visibility-button").firstElementChild;return(F==null?void 0:F.is)==="ytd-toggle-button-renderer"?F:null};
_.l.shouldTriggerHeaderClick=function(F){return!_.tC(_.tY(F),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.l.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(F){F=_.n(F,_.BJl);this.targetId&&(F==null?void 0:F.targetId)===this.targetId&&(F=F.navigationButton)&&this.set("data.navigationButton",F)};
_.JJ.Object.defineProperties(tl.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var F;return!!(((F=this.entity)==null?0:F.isActionButtonHidden)||this.hideActionButton)}}});
tl.prototype.collapsedChanged=tl.prototype.collapsedChanged;tl.prototype.updateHeaderClickListener=tl.prototype.updateHeaderClickListener;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],tl.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.s9),_.V("design:type",Object)],tl.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],tl.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],tl.prototype,"targetId",void 0);_.C([_.O(),_.V("design:type",Boolean)],tl.prototype,"collapsed",void 0);_.C([_.O(),_.V("design:type",Boolean)],tl.prototype,"hideActionButton",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],tl.prototype,"shortsPanel",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],tl.prototype,"liveChatEngagementPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],tl.prototype,"learningChatEngagementPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],tl.prototype,"darkerPanels",void 0);_.C([_.Ms("#title"),_.V("design:type",HTMLElement)],tl.prototype,"titleElement",void 0);_.C([_.Ms("#header"),_.V("design:type",HTMLElement)],tl.prototype,"headerElement",void 0);
_.C([_.O({computed:"computeAdsInfoButton(data)"}),_.V("design:type",Object)],tl.prototype,"adsInfoButton",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],tl.prototype,"enableSqueezebackPanels",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],tl.prototype,"enableAnchoredPanel",void 0);_.C([_.O({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(F,q){return _.iC(F.entities,"engagementPanelTitleHeaderEntity",q)}}),
_.V("design:type",Object)],tl.prototype,"entity",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],tl.prototype,"modernPanels",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],tl.prototype,"adsSemanticText",null);_.C([_.za("data","data.navigationEndpoint","data.onClickCommand"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tl.prototype,"updateHeaderClickListener",null);
_.C([_.Wh("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tl.prototype,"collapsedChanged",null);_.C([_.W("entity","hideActionButton"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],tl.prototype,"isActionButtonHidden",null);_.C([_.m({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],tl);
_.b(tl,"ytd-engagement-panel-title-header-renderer",function(){if(SFq!==void 0)return SFq;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return SFq=F},{mode:1});var hh9;var uf=function(){return _.x.apply(this,arguments)||this};
_.M(uf,_.x);uf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],uf.prototype,"data",void 0);_.C([_.m({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],uf);
_.b(uf,"ytd-macro-markers-info-item-renderer",function(){if(hh9!==void 0)return hh9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return hh9=F},{mode:1});var K7y;var f4n=function(F,q,t,u,J,g){_.OP.call(this);var Y=this;this.JSC$22723_containerElement=F;this.hostElement=q;this.supportedSyncItems=t;this.syncEntityKey=u;this.options=J;this.renderLazyListItems=g;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;BhI(this);L7Q(this);this.JSC$22723_scrollAnimation=new _.QD(function(Q){F.scrollTop=Q});
_.kW(this,this.JSC$22723_scrollAnimation);this.addOnDisposeCallback(function(){Y.exitBrowsingMode(!1);Y.activeItem&&Y.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.M(f4n,_.OP);var BhI=function(F){var q=_.yL(_.sV().resolve(_.sb),function(t){return t.entities.markersEngagementPanelSyncEntity||{}},function(t,u){var J;
t[F.syncEntityKey]!==u[F.syncEntityKey]&&((J=t[F.syncEntityKey])==null?void 0:J.activeItemIndex)!==void 0&&F.updatePanelActiveItem(t[F.syncEntityKey].activeItemIndex)});
F.unsubscribeFromTimedMarkersListSyncEntity=q;F.addOnDisposeCallback(q);a4y(F)},a4y=function(F){var q=_.sV().resolve(_.sb);
q=_.VyW(q.getState(),F.syncEntityKey);(q==null?void 0:q.activeItemIndex)!==void 0&&(q=F.getItemByIndex(q.activeItemIndex))&&F.setActiveItem(q)},L7Q=function(F){var q=new _.LH(F.onScroll,50,F);
_.kW(F,q);var t=function(){q.fire()};
F.JSC$22723_containerElement.addEventListener("scroll",t);F.addOnDisposeCallback(function(){F.JSC$22723_containerElement.removeEventListener("scroll",t)})};
_.l=f4n.prototype;
_.l.updatePanelActiveItem=function(F){var q=this.getItemByIndex(F);if(q){if(this.setActiveItem(q),this.contentVisible)if(this.browsingMode){var t;((t=this.options)==null?void 0:t.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(F=jVq(this),q.offsetTop<this.JSC$22723_containerElement.clientHeight+this.JSC$22723_containerElement.scrollTop&&F&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));cWy(this)}else this.scrollToItem(q)}else _.bz(new _.D0("Could not find "+this.supportedSyncItems+
" sync child to set active.",F,this.JSC$22723_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.l.getItemByIndex=function(F){var q;(q=this.renderLazyListItems)==null||q.call(this,F);q=this.JSC$22723_containerElement.querySelectorAll(this.supportedSyncItems);if(q.length>F)return q[F]};
_.l.setActiveItem=function(F){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));F.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=F};
_.l.scrollToItem=function(F){F=this.getScrollPositionForItem(F);this.JSC$22723_containerElement.scrollTop!==F&&this.JSC$22723_scrollAnimation.start(this.JSC$22723_containerElement.scrollTop,F,300)};
_.l.getScrollPositionForItem=function(F){if(this.JSC$22723_containerElement.querySelectorAll(this.supportedSyncItems)[0]===F)return 0;var q,t=((q=this.options)==null?0:q.percentOffset)?this.JSC$22723_containerElement.clientHeight*this.options.percentOffset:0;F=_.dh(F).y+this.JSC$22723_containerElement.scrollTop-(_.dh(this.JSC$22723_containerElement).y+t);return Math.max(0,Math.min(F,this.JSC$22723_containerElement.scrollHeight-this.JSC$22723_containerElement.offsetHeight))};
_.l.onScroll=function(){this.activeItemBelowSyncPosition=jVq(this);if(this.activeItem&&!this.JSC$22723_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22723_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var F;switch((F=this.options)==null?void 0:F.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!Fg9(this));cWy(this);break;default:this.enterBrowsingMode(!0)}}};
_.l.enterBrowsingMode=function(F){var q=this,t,u;return _.p(function(J){if(J.nextAddress==1){if(q.browsingMode)return J.return();q.browsingMode=!0;F&&q.hostElement.classList.add("browsing-mode");q.playerExitBrowsingModeListener=function(){q.exitBrowsingMode(!1)};
return J.yield(_.NZ(),2)}t=J.yieldResult;(u=t)==null||u.addEventListener("SEEK_TO",q.playerExitBrowsingModeListener);_.WA(J)})};
_.l.exitBrowsingMode=function(F){F=F===void 0?!0:F;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),F&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.l.removePlayerSeekListener=function(){var F=this,q,t;return _.p(function(u){if(u.nextAddress==1)return F.playerExitBrowsingModeListener?u.yield(_.NZ(),3):u.jumpTo(0);q=u.yieldResult;(t=q)==null||t.removeEventListener("SEEK_TO",F.playerExitBrowsingModeListener);F.playerExitBrowsingModeListener=void 0;_.WA(u)})};
var cWy=function(F){var q;((q=F.options)==null?void 0:q.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Fg9(F)?F.hostElement.classList.remove("browsing-mode"):F.activeItem&&F.hostElement.classList.add("browsing-mode"))},jVq=function(F){if(!F.activeItem)return!1;
var q,t=((q=F.options)==null?0:q.percentOffset)?F.JSC$22723_containerElement.clientHeight*F.options.percentOffset:0;return F.activeItem.offsetTop>=F.JSC$22723_containerElement.scrollTop+t},Fg9=function(F){if(!F.activeItem)return!1;
var q=F.activeItem.offsetTop+14<=F.JSC$22723_containerElement.scrollTop+F.JSC$22723_containerElement.clientHeight;return F.activeItem.offsetTop+F.activeItem.clientHeight-14>=F.JSC$22723_containerElement.scrollTop&&q};
f4n.prototype.panelContentVisibleChanged=function(F){(this.contentVisible=F)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var qPy=function(F,q){F.syncEntityKey=q;var t;(t=F.unsubscribeFromTimedMarkersListSyncEntity)==null||t.call(F);BhI(F)},trK=function(F,q){F.options=q};var Jl=function(){var F=_.x.apply(this,arguments)||this;F.browsingMode=!1;F.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return F};
_.M(Jl,_.x);_.l=Jl.prototype;_.l.activeItemChanged=function(){if(!_.E("synced_panel_scrolling_controller")){var F;((F=this.syncEntity)==null?void 0:F.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.l.created=function(){var F=this;_.E("synced_panel_scrolling_controller")||(this.JSC$22727_scrollAnimation=new _.QD(function(q){F.contents.scrollTop=q}),this.boundExitBrowsingMode=function(){F.exitBrowsingMode(!1)})};
_.l.detached=function(){if(_.E("synced_panel_scrolling_controller")){var F;(F=this.scrollController)==null||F.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.l.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"}}}};
_.l.dataChanged=function(){var F=this;_.E("synced_panel_scrolling_controller")?_.tJ(this,function(){if(F.scrollController){var q;(q=F.scrollController)==null||q.exitBrowsingMode(!1);var t,u,J;(u=F.scrollController)==null||qPy(u,(J=(t=F.data)==null?void 0:t.syncModelEntityKey)!=null?J:"default-macro-markers-list-renderer-entity-key");var g,Y,Q;(Q=F.scrollController)==null||trK(Q,{percentOffset:(g=F.data)==null?void 0:g.selectedItemAlignmentPercentOffset,floatingPillType:(Y=F.data)==null?void 0:Y.floatingPillType})}else{var e,
r,N,w;F.scrollController=new f4n(F.contents,F.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(w=(e=F.data)==null?void 0:e.syncModelEntityKey)!=null?w:"default-macro-markers-list-renderer-entity-key",{percentOffset:(r=F.data)==null?void 0:r.selectedItemAlignmentPercentOffset,floatingPillType:(N=F.data)==null?void 0:N.floatingPillType},function(k){F.renderLazyListItems(k)})}F.scrollController.panelContentVisibleChanged(!!F.panelContentVisible)}):this.exitBrowsingMode()};
_.l.computeButtonShape=function(){var F=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){F.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.l.computeSyncEnabled=function(F){return!(F==null||!F.syncButtonLabel)};
_.l.renderLazyListItems=function(F){for(var q=this.contents.children,t=0,u=0;u<q.length;u++){var J=void 0;(J=q[u].ytLazyListBehavior)==null||J.fillRemainingListItems();var g=void 0,Y=void 0;J=_.n((g=this.data)==null?void 0:(Y=g.contents)==null?void 0:Y[u],_.rhd);Y=g=void 0;if((g=J)==null?0:(Y=g.contents)==null?0:Y.length)t+=J.contents.length;if(t>=F)break}};
_.l.getItemByIndex=function(F){this.renderLazyListItems(F);var q=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(q.length>F)return q[F]};
_.l.setActiveItem=function(F){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);F.active!==void 0&&(F.active=!0);this.currentActiveItem=F};
_.l.handleSetActivePanelItemAction=function(F){if((F=_.n(F,fQI))&&this.panelTargetId===F.panelTargetId){F=F.itemIndex;if(_.E("synced_panel_scrolling_controller")){var q,t;var u=(t=(q=this.data)==null?void 0:q.syncModelEntityKey)!=null?t:"default-macro-markers-list-renderer-entity-key"}else{var J;u=(J=this.data)==null?void 0:J.syncModelEntityKey}if(u){var g;((g=this.syncEntity)==null?void 0:g.activeItemIndex)!==F&&this.ytdReduxBehavior.dispatch(_.Gl("markersEngagementPanelSyncEntity",u,{key:u,activeItemIndex:F}))}else this.updatePanelActiveItem(F)}};
_.l.updatePanelActiveItem=function(F){var q=this.getItemByIndex(F);q?(this.setActiveItem(q),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(q)):_.bz(new _.D0("Could not find ytd-macro-markers-list-renderer sync child to set active.",F,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.l.scrollToItem=function(F){F=this.getScrollPositionForItem(F);this.contents.scrollTop!==F&&this.JSC$22727_scrollAnimation.start(this.contents.scrollTop,F,300)};
_.l.getScrollPositionForItem=function(F){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===F)return 0;F=_.dh(F).y+this.contents.scrollTop-_.dh(this.contents).y-this.getStickyHeaderHeight(F);return Math.min(F,this.contents.scrollHeight-this.contents.offsetHeight)};
_.l.getStickyHeaderHeight=function(F){if(F.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var q,t,u;return(u=(q=F.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(t=q.header)==null?void 0:t.offsetHeight)!=null?u:0}return 0};
_.l.onScroll=function(){_.E("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22727_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.l.enterBrowsingMode=function(){var F=this;return _.p(function(q){if(q.nextAddress==1){if(F.browsingMode)return q.return();F.browsingMode=!0;return q.yield(_.l6().getPlayerPromise(),2)}F.player=q.yieldResult;F.player.addEventListener("SEEK_TO",F.boundExitBrowsingMode);_.WA(q)})};
_.l.exitBrowsingMode=function(F){this.browsingMode&&(this.browsingMode=!1,(F===void 0||F)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.l.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.l.onSyncClick=function(){if(_.E("synced_panel_scrolling_controller")){var F;(F=this.scrollController)==null||F.exitBrowsingMode()}else this.exitBrowsingMode()};
_.l.panelContentVisibleChanged=function(){if(_.E("synced_panel_scrolling_controller")){var F;(F=this.scrollController)==null||F.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Jl.prototype.panelContentVisibleChanged=Jl.prototype.panelContentVisibleChanged;Jl.prototype.dataChanged=Jl.prototype.dataChanged;Jl.prototype.activeItemChanged=Jl.prototype.activeItemChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Jl.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Jl.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Jl.prototype,"data",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Jl.prototype,"useCustomColors",void 0);_.C([_.O({computed:"computeSyncEnabled(data)"}),_.V("design:type",Boolean)],Jl.prototype,"syncEnabled",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],Jl.prototype,"panelTargetId",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Jl.prototype,"panelContentVisible",void 0);_.C([_.Ms("#contents"),_.V("design:type",HTMLElement)],Jl.prototype,"contents",void 0);_.C([_.Ms("#sync-container"),_.V("design:type",HTMLElement)],Jl.prototype,"syncContainer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Jl.prototype,"browsingMode",void 0);
_.C([_.O({selectorArgs:["data.syncModelEntityKey"],selector:_.VyW}),_.V("design:type",Object)],Jl.prototype,"syncEntity",void 0);_.C([_.za("syncEntity.activeItemIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jl.prototype,"activeItemChanged",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jl.prototype,"dataChanged",null);
_.C([_.za("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jl.prototype,"panelContentVisibleChanged",null);_.C([_.m({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Jl);
_.b(Jl,"ytd-macro-markers-list-renderer",function(){if(K7y!==void 0)return K7y;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return K7y=F},{mode:1});var uN9;var sU=function(){return _.x.apply(this,arguments)||this};
_.M(sU,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],sU.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],sU.prototype,"data",void 0);_.C([_.m({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],sU);
_.b(sU,"ytd-error-corrections-section-item-renderer",function(){if(uN9!==void 0)return uN9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return uN9=F},{mode:1});var JGe;var gl=function(){return _.x.apply(this,arguments)||this};
_.M(gl,_.x);gl.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],gl.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],gl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],gl.prototype,"data",void 0);_.C([_.m({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],gl);
_.b(gl,"ytd-error-corrections-section-renderer",function(){if(JGe!==void 0)return JGe;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return JGe=F},{mode:1});var sXS;var lf=function(){return _.x.apply(this,arguments)||this};
_.M(lf,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],lf.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],lf.prototype,"data",void 0);_.C([_.m({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],lf);
_.b(lf,"ytd-topic-link-renderer",function(){if(sXS!==void 0)return sXS;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return sXS=F},{mode:1});var gWl;var XF=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("kevlar_modern_sd_v2");F.modernLockupV2=_.E("modernize_structured_description_playlist_lockups_v2");F.modernTypography=_.E("web_modern_typography");return F};
_.M(XF,_.x);XF.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],XF.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],XF.prototype,"modern",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],XF.prototype,"modernLockupV2",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],XF.prototype,"modernTypography",void 0);_.C([_.m({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],XF);
_.b(XF,"ytd-video-description-course-section-renderer",function(){if(gWl!==void 0)return gWl;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return gWl=F},{mode:1});var lWl;var Y6=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("kevlar_modern_sd_v2");F.modernTypography=_.E("web_modern_typography");return F};
_.M(Y6,_.x);Y6.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Y6.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Y6.prototype,"modern",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Y6.prototype,"modernTypography",void 0);
_.C([_.m({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Y6);
_.b(Y6,"ytd-video-description-files-section-renderer",function(){if(lWl!==void 0)return lWl;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return lWl=F},{mode:1});var Xdn;var pc=function(){return _.x.apply(this,arguments)||this};
_.M(pc,_.x);pc.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],pc.prototype,"data",void 0);_.C([_.m({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],pc);
_.b(pc,"ytd-video-description-gaming-section-renderer",function(){if(Xdn!==void 0)return Xdn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Xdn=F},{mode:1});var YPZ;var Qk=function(){var F=_.x.apply(this,arguments)||this;F.isExpanded=!1;return F};
_.M(Qk,_.x);Qk.prototype.computeHasDefaultMetadataEndpoint=function(F){var q;F=F==null?void 0:(q=F.defaultMetadata)==null?void 0:q.runs;return!(!F||F.length!==1||!F[0].navigationEndpoint)};
Qk.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.JJ.Object.defineProperties(Qk.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Qk.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Qk.prototype,"isExpanded",void 0);_.C([_.O({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Qk.prototype,"hasDefaultMetadataEndpoint",void 0);
_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Qk.prototype,"isExpandable",null);_.C([_.W("data","isExpandable","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Qk.prototype,"showExpandedMetadata",null);_.C([_.m({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Qk);
_.b(Qk,"ytd-info-row-renderer",function(){if(YPZ!==void 0)return YPZ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return YPZ=F},{mode:1});var pdS;var em=function(){var F=_.x.apply(this,arguments)||this;F.currentIndex=0;F.supportComponentResize=!0;F.modern=_.E("kevlar_modern_sd_v2");F.JSC$22753_lastScrollContainerWidth=NaN;return F};
_.M(em,_.x);_.l=em.prototype;
_.l.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"}}}};
_.l.getItemsPath=function(){return"videoLockups"};
_.l.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.l.onIronResize=function(){this.updateVideoLockupStyles()};
_.l.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.l.updateVideoLockupStyles=function(){var F;this.JSC$22753_scrollContainer!==void 0&&(F=this.videoLockups)!=null&&F.length&&(F=this.JSC$22753_scrollContainer.clientWidth,F!==this.JSC$22753_lastScrollContainerWidth&&(this.JSC$22753_lastScrollContainerWidth=F,_.ws(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(F*.8,415)+"px"}),_.Q0(this.hostElement,"iron-resize")))};
_.JJ.Object.defineProperties(em.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var F=[],q;if((q=this.data)==null||!q.carouselLockups)return F;q=_.X(this.data.carouselLockups);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u=void 0;((u=_.n(t,T$9))==null?0:u.videoLockup)&&F.push(_.n(t,T$9).videoLockup)}return F}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.videoLockups)==null||!F.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var F=[],q;if((q=this.data)==null||!q.carouselLockups)return F;var t;return(t=_.n(this.data.carouselLockups[this.scrollCount],T$9))==null?void 0:t.infoRows}}});
em.prototype.dataChanged=em.prototype.dataChanged;em.prototype.onIronResize=em.prototype.onIronResize;em.prototype.hiddenChanged=em.prototype.hiddenChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],em.prototype,"componentBehavior",void 0);_.C([_.D(_.We.YtdHorizontalListBehavior),_.V("design:type",Object)],em.prototype,"ytdHorizontalListBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],em.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],em.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],em.prototype,"inlineStructuredDescription",void 0);_.C([_.O({value:2}),_.V("design:type",Number)],em.prototype,"initialCount",void 0);_.C([_.O(),_.V("design:type",Object)],em.prototype,"currentIndex",void 0);
_.C([_.O(),_.V("design:type",Number)],em.prototype,"scrollCount",void 0);_.C([_.O(),_.V("design:type",Object)],em.prototype,"supportComponentResize",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],em.prototype,"contentHidden",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],em.prototype,"modern",void 0);_.C([_.Ms("#scroll-container"),_.V("design:type",HTMLDivElement)],em.prototype,"JSC$22753_scrollContainer",void 0);
_.C([_.za("contentHidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],em.prototype,"hiddenChanged",null);_.C([_.W("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],em.prototype,"videoLockups",null);_.C([_.W("videoLockups"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],em.prototype,"hasVideoLockups",null);
_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],em.prototype,"onIronResize",null);_.C([_.W("data","scrollCount"),_.V("design:type",Object),_.V("design:paramtypes",[])],em.prototype,"infoRows",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],em.prototype,"dataChanged",null);_.C([_.m({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],em);
_.b(em,"ytd-video-description-music-section-renderer",function(){if(pdS!==void 0)return pdS;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return pdS=F},{mode:_.Nc("kevlar_poly_si_batch_j081")?1:2});var QXt;var ZU=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("kevlar_modern_sd_v2");F.modernTypography=_.E("web_modern_typography");return F};
_.M(ZU,_.x);ZU.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.C([_.O({}),_.V("design:type",Object)],ZU.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],ZU.prototype,"modern",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],ZU.prototype,"modernTypography",void 0);
_.C([_.m({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],ZU);
_.b(ZU,"ytd-video-description-transcript-section-renderer",function(){if(QXt!==void 0)return QXt;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return QXt=F},{mode:1});var eBl;_.ei(_.ld(function(F){var q=_.nH(_.xN3,function(){return F.data().firstProviderLinkStatusEntityKey}),t=_.nH(_.xN3,function(){return F.data().secondProviderLinkStatusEntityKey}),u=function(){var J,g;
return((J=q())==null?void 0:J.linked)||((g=t())==null?void 0:g.linked)};
return _.Z("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.Z(_.rv,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return F.data().sectionTitle}}),_.Z(_.rv,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return u()?F.data().connectedMessage:F.data().notConnectedMessage}}),_.Z(_.R,{cond:u,
then:function(){return _.Z(_.Tl,{data:function(){return F.data().connectedButton}},{buttonViewModel:function(J){return _.Z(_.AB,{data:J.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.Z(_.R,{cond:function(){return!u()},
then:function(){return _.Z(_.Tl,{data:function(){return F.data().notConnectedButton}},{buttonViewModel:function(J){return _.Z(_.AB,{data:J.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"yk"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=F.data;return _.Z("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.Z("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.Z(_.rv,{text:function(){return q().sectionTitle}})),_.Z("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.Z(_.rv,{text:function(){return q().bodyHeader}})),_.Z("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.Z(_.rv,{text:function(){return q().bodyText}})),_.Z(_.R,
{cond:function(){return q().attributionText},
then:function(){return _.Z("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.Z(_.rv,{text:function(){return q().attributionText}}))}}))},"zk"),"how-this-was-made-section-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){return _.Z("yt-video-description-youchat-section-view-model",{class:_.Ec("ytVideoDescriptionYouchatSectionViewModelHost")},_.Z("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.Z(_.rv,{text:function(){return F.data().sectionTitle}})),_.Z("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.Z(_.rv,{text:function(){return F.data().subHeaderText}})),_.Z("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.Z(_.AB,{data:function(){return _.n(F.data().primaryButton,
_.gX)}})))},"Ak"),"yt-video-description-youchat-section-view-model",{props:{data:_.NH}});var Rq=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return F};
_.M(Rq,_.x);_.l=Rq.prototype;
_.l.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}}}}}};
_.l.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.l.dataChanged=function(){var F,q;this.hasDescriptionOnly=!(((F=this.data)==null?void 0:(q=F.items)==null?void 0:q.length)!==1||!_.n(this.data.items[0],SX))};
_.l.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.l.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.l.autoFocusDescription=function(){var F;((F=_.sV().resolve(_.JU(_.GD)))==null?0:F.isKeyBoardInUse())&&this.description&&_.ct(this.description)};
_.l.resize=function(){if(_.E("kevlar_disable_sd_resize"))this.JSC$22762_cardList&&_.Q0(this.JSC$22762_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Q0(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Q0(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.l.scrollToSection=function(F){if(F=this.getSectionElement(F))_.ec(this.hostElement,"yt-scroll-to-watch-element",[F]),F.focus()};
_.l.getSectionElement=function(F){switch(F){case "infocards-item-section":var q;return(q=this.infocardsSection)!=null?q:null;case "transcript-item-section":var t;return(t=this.transcriptSection)!=null?t:null;case "how-this-was-made-section-item-section":var u;return(u=this.howThisWasMadeSection)!=null?u:null;case "files-item-section":var J;return(J=this.filesSection)!=null?J:null;default:return null}};
_.l.handleSetActiveItemAction=function(F){var q=_.n(F,fQI),t=q&&(q==null?void 0:q.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22762_cardList;if(q&&t){F=this.currentActiveChapter;var u=this.currentActiveProblem;q=t==null?void 0:t.getItemByIndex(q.itemIndex);var J=t=!0;q&&(q.active=!0,q.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(t=F!==q,J=!1,this.currentActiveChapter=q):(q==null?void 0:q.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(t=!1,J=u!==q,this.currentActiveProblem=q));F&&t&&(F.active=!1);u&&J&&(u.active=!1)}};
_.JJ.Object.defineProperties(Rq.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.E("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Rq.prototype.onYtExpanderMoreTapped=Rq.prototype.onYtExpanderMoreTapped;Rq.prototype.onHiddenChanged=Rq.prototype.onHiddenChanged;Rq.prototype.dataChanged=Rq.prototype.dataChanged;Rq.prototype.panelContentVisibleChanged=Rq.prototype.panelContentVisibleChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Rq.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Rq.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Rq.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.Vl),_.V("design:type",Object)],Rq.prototype,"ironResizableBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Rq.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],Rq.prototype,"panelContentVisible",void 0);_.C([_.O(),_.V("design:type",Boolean)],Rq.prototype,"hasDescriptionOnly",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Rq.prototype,"inlineStructuredDescription",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Rq.prototype,"hidden",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Rq.prototype,"shortsPanel",void 0);_.C([_.O(),_.V("design:type",Object)],Rq.prototype,"videoSummary",void 0);_.C([_.O(),_.V("design:type",Object)],Rq.prototype,"merchShelf",void 0);
_.C([_.W("videoSummary"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Rq.prototype,"showVideoSummary",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Rq.prototype,"engagementPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Rq.prototype,"watchWhileSdp",void 0);_.C([_.Ms("ytd-expandable-video-description-body-renderer"),_.V("design:type",Object)],Rq.prototype,"description",void 0);
_.C([_.Ms("ytd-horizontal-card-list-renderer"),_.V("design:type",Object)],Rq.prototype,"JSC$22762_cardList",void 0);_.C([_.Ms("ytd-horizontal-card-list-renderer[center-items]"),_.V("design:type",Object)],Rq.prototype,"problemWalkthroughCardList",void 0);_.C([_.Ms("ytd-shelf-renderer"),_.V("design:type",Object)],Rq.prototype,"shelfSection",void 0);_.C([_.Ms("ytd-video-description-music-section-renderer"),_.V("design:type",Object)],Rq.prototype,"musicMetadataSection",void 0);
_.C([_.Ms("ytd-video-description-infocards-section-renderer"),_.V("design:type",Object)],Rq.prototype,"infocardsSection",void 0);_.C([_.Ms("ytd-video-description-transcript-section-renderer"),_.V("design:type",Object)],Rq.prototype,"transcriptSection",void 0);_.C([_.Ms("how-this-was-made-section-view-model"),_.V("design:type",Object)],Rq.prototype,"howThisWasMadeSection",void 0);_.C([_.Ms("ytd-video-description-files-section-renderer"),_.V("design:type",Object)],Rq.prototype,"filesSection",void 0);
_.C([_.za("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rq.prototype,"panelContentVisibleChanged",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rq.prototype,"dataChanged",null);_.C([_.za("hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rq.prototype,"onHiddenChanged",null);
_.C([_.EB("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rq.prototype,"onYtExpanderMoreTapped",null);_.C([_.m({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Rq);
_.b(Rq,"ytd-structured-description-content-renderer",function(){if(eBl!==void 0)return eBl;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return eBl=F},{mode:2});var Zrt;var RB9;var rl=function(){return _.x.apply(this,arguments)||this};
_.M(rl,_.x);rl.prototype.computeAriaLabel=function(F){var q,t;return(F==null?void 0:(q=F.accessibility)==null?void 0:(t=q.accessibilityData)==null?void 0:t.label)||_.oD("LOADING",void 0,"Loading")};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],rl.prototype,"data",void 0);_.C([_.O({computed:"computeAriaLabel(data)"}),_.V("design:type",String)],rl.prototype,"ariaLabel",void 0);_.C([_.Vu({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],rl);
_.b(rl,"yt-content-loading-renderer",function(){if(RB9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Zrt===void 0&&(Zrt=document.createElement("template"));var u=Zrt;t.call(q,u.content.cloneNode(!0),F.content.firstChild);RB9=F}F=RB9;return F},{mode:_.Nc("kevlar_poly_si_batch_j043")?1:2});_.ei(_.ld(function(F){var q=_.X(_.N3(!1,void 0,"OZMtVb")),t=q.next().value,u=q.next().value;q=_.X(_.N3(!1,void 0,"qWERsf"));var J=q.next().value,g=q.next().value;_.v_(function(){var e=_.n(F.data().collaboratePlaylistCollaborationSetting,rQO);e&&u(e.switchedOnByDefault);var r=_.n(F.data().allowNewCollaboratorsPlaylistCollaborationSetting,rQO);r&&g(r.switchedOnByDefault);if(!e&&!r||!e&&F.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")u(!0),g(!0)});
var Y=function(e){u(e);g(e);var r=F.data().playlistCollaborationEntityKey||"";var N=_.tv().getState();(N=_.iC(N.entities,"playlistCollaborationEntity",r))&&(N==null?void 0:N.isCollaborative)===e||_.tv().dispatch(_.Gl("playlistCollaborationEntity",r,Object.assign({},N,{isCollaborative:e})))},Q=function(e){g(e)};
return _.Z("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.Z("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Z(_.Tl,{data:function(){return F.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(e){return _.Z(_.Tyv,{data:e.data,
onSwitch:Y})}})),_.Z(_.R,{cond:t,
then:function(){return _.Z(_.ln,null,_.Z("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Z(_.Tl,{data:function(){return F.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(e){return _.Z(_.Tyv,{data:e.data,
onSwitch:Q,overrideDisabled:!1})}})),_.Z(_.R,{cond:J,
then:function(){return _.Z("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.Z(_.Tl,{data:function(){return F.data().copyLinkButton}},{buttonViewModel:_.AB}))}}),_.Z("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.Z(_.Tl,{data:function(){return F.data().playlistCollaborators}},{contentListItemViewModel:_.Rq7})))}}))},"Bk"),"playlist-collaboration-view-model",{props:{data:_.NH}});var rGn=_.ld(function(F){var q=F.data;var t=F.customCommandResolver;return _.Z(_.ln,null,_.Z("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.Z(_.Tl,{data:function(){return q().adAvatar}},{adAvatarViewModel:function(u){return _.Z(_.ggw,{data:u.data,
customCommandResolver:t})}})),_.Z("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.Z(_.R,{cond:function(){return q().headline},
then:function(u){return _.Z(_.rv,{text:u,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.Z("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.Z(_.Tl,{data:function(){return q().adBadge}},{adBadgeViewModel:function(u){return _.Z(_.Oi,{data:u.data,
hasDot:function(){return q().primaryDetailsLine!==void 0},
customCommandResolver:t,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.Z(_.Tl,{data:function(){return q().primaryDetailsLine}},{adDetailsLineViewModel:function(u){return _.Z(_.PE,{data:u.data,
customCommandResolver:t,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Ck"),NoK=_.ld(function(F){var q=F.data;
var t=F.customCommandResolver;return _.Z("ad-avatar-lockup-view-model",{class:function(){var u;return((u=q().interaction)==null?0:u.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.l_(_.lR({visibilityCallback:function(u){var J,g=(J=q().interaction)==null?void 0:J.onFirstVisible;u&&g&&_.L9(g)},
showOption:_.oM}),_.Sa(function(){return q().interaction},t)),
"aria-label":function(){var u,J;return(u=q().interaction)==null?void 0:(J=u.accessibility)==null?void 0:J.label}},_.Z(_.OK,null,_.Z(_.DA,{when:function(){return q().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.Z(rGn,{data:q,
customCommandResolver:t})}),_.Z(_.W_,null,function(){return null})))},"Dk");_.ei(_.ld(function(F){var q=F.data;var t=F.panelContentVisibility;F=_.lR({visibilityCallback:function(g){var Y,Q=(Y=q().interaction)==null?void 0:Y.onFirstVisible;g&&Q&&_.L9(Q)},
showOption:_.oM});var u=_.Sa(function(){return q().interaction},g7e);
_.m1(function(){var g,Y;if(Y=_.S6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Q;Y=(Q=Y())==null?void 0:Q.onLayoutVisibleCallback}else Y=null;(g=Y)==null||g()});
var J=function(){return t()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.Z("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.l_(F,u)},_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.Z(_.R,{cond:_.iD$("(min-width: "+((0,_.gE)()+_.KX)+"px) or (max-width: 600px)"),then:function(){return _.Z(_.Tl,{data:function(){return q().adImage}},{adImageViewModel:function(g){return _.Z(_.m2,{data:g.data,
targetHeight:80,customCommandResolver:g7e})}})}})),_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.Z(_.Tl,{data:function(){return q().adAvatarLockup}},{adAvatarLockupViewModel:function(g){return _.Z(NoK,{data:g.data,
customCommandResolver:g7e})}})),_.Z(_.R,{cond:J,
then:function(){return _.Z(_.Tl,{data:function(){return q().adButton}},{adButtonViewModel:function(g){return _.Z(_.Mi,{data:g.data,
customCommandResolver:g7e})}})},
else:function(){return _.Z(_.Tl,{data:function(){return q().menu}},{buttonViewModel:_.AB})}}),_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.Z(_.Tl,{data:function(){var g=_.n(q().toggleButton,_.XZ);
return{toggleButtonViewModel:Object.assign({},g,{isTogglingDisabled:!0,isToggled:J()})}}},{toggleButtonViewModel:_.j9})))))},"Ek"),"panel-ad-header-image-lockup-view-model",{props:{data:_.NH,
panelContentVisibility:_.NH}});_.ei(_.ld(function(F){var q=function(){return _.n(F.data().inputComposerViewModel,N$S)},t=function(){var T;
return((T=q())==null?void 0:T.youchatPendingResponseEntityKey)||""},u=_.nH(_.Ipy,t),J=function(){var T;
return!((T=u())==null||!T.isPendingResponse)},g=_.X(_.N3(!0,void 0,"UmKX1e")),Y=g.next().value,Q=g.next().value,e=function(){return q().sectionTargetId||"youchat_messages_section"};
g=_.qL("yt-chat-input-view-model");var r=_.FG("textarea"),N=_.nH(BxO,"chat_input_view_model_state"),w=Lrq(),k=function(){var T;return!((T=N())==null||!T.value)};
_.v_(function(){var T;if(!k()&&((T=q())==null?0:T.welcomeFeatureContinuation)){var P;((P=q())==null?0:P.setPendingResponseOnWelcome)&&_.HYw(t())(!0);T={continuationCommand:{token:q().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var v;P=String(Math.floor(((v=_.w0())==null?void 0:v.getCurrentTime())||0)*1E3);v={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:P}};_.hv(T,{form:{formData:v}});w(!0)}var H=e(),d;(d=_.sV().resolve(_.JU(_.S$)))==null||
d.addEventListener("yt-navigate-start",function(){_.MZ.remove(H);w(!1)},{once:!0})});
var z=function(){var T=r.value.value;r.value.value="";lQI(r.value);var P,v=((P=q())==null?void 0:P.enableGradientColorBg)||!1;P=Xsy(e(),T,v);_.hv(P);var H=_.HYw(t()),d;_.L9(((d=q())==null?void 0:d.onSubmitCommand)||{});H(!0);var a;d=String(Math.floor(((a=_.w0())==null?void 0:a.getCurrentTime())||0)*1E3);var S;a={continuationCommand:{token:(S=q())==null?void 0:S.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};T={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:T,
playerOffsetMs:d}};_.hv(a,{form:{formData:T},commandController:{onSuccess:function(){H(!1)},
onServerError:function(){var K=e();_.hv({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:K}}]}}});H(!1)}}})};
return _.Z("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:g},_.Z("div",{class:"chatInputViewModelChatInputWrapper"},_.Z("form",{class:"chatInputViewModelChatInputForm"},_.Z("textarea",{class:"chatInputViewModelChatInput",el:r,"on:keydown":_.zq(function(T){var P=J()||!1;lQI(r.value);P||T.key!=="Enter"||T.shiftKey||(T.preventDefault(),z());return!1}),
"on:keyup":_.zq(function(){Q(r.value.value.length===0);return!1}),
placeholder:function(){var T,P;var v=_.n((P=q())==null?void 0:P.inputFormField,Kve);return v==null?void 0:(T=v.contentProperties)==null?void 0:T.placeholderText},
rows:1}),_.Z(_.AB,{data:function(){return _.n(F.data().sendButton,_.gX)},
onClick:function(T){T.preventDefault();z();Q(r.value.value.length===0)},
buttonOverrides:function(){return{disabled:Y()||J()}}})),_.Z(_.rv,{className:"chatInputViewModelChatDisclaimer",
text:function(){var T;return(T=_.n(F.data().disclaimer,_.NXL))==null?void 0:T.text}})))},"Fk"),"yt-chat-input-view-model",{props:{data:_.NH}});var wdq=["engagement-panel-clip-create","engagement-panel-clip-view"],irO=0,Nw=function(){var F=_.x.apply(this,arguments)||this;var q;F.headerData=(q=F.data)==null?void 0:q.header;F.darkerPanels=_.E("web_watch_darker_panels");F.matchContentTheme=_.E("web_watch_panel_content_match_theme");F.disableAutoFill=!1;F.isFullscreen=!1;F.isTheaterMode=!1;F.modernPanels=_.E("kevlar_watch_modern_panels");F.liveChatReplyPanel=!1;F.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");F.disableBackdropFilter=
_.E("web_disable_backdrop_filter");F.trackEngagementPanelVisibility=_.E("web_watch_track_engagement_panel_visibility");F.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return F};
_.M(Nw,_.x);_.l=Nw.prototype;
_.l.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(F){var q;return(F==null?void 0:(q=F.webComponentHint)==null?void 0:q.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"}}}};
_.l.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var F;if((F=this.hostElement.parentElement)==null?0:F.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.l.detached=function(){this.updateTheaterDisablement()};
_.l.showPanel=function(){var F=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.mI.addJob(function(){F.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.l.maybeScrollToItemSection=function(F){var q=this,t,u=F==null?void 0:(t=F.sectionListEngagementPanelExtras)==null?void 0:t.scrollToItemSectionIdentifier;u&&_.mI.addJob(function(){var J;(J=q.sectionListRendererElement)==null||J.scrollToItemSection(u)},8)};
_.l.hidePanel=function(){var F=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.mI.addJob(function(){F.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.l.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.l.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.l.updatePanel=function(F,q,t,u){var J=this;if((F=F==null?void 0:F.engagementPanelSectionListRenderer)||u){if(F){u=F.header;var g=F.content,Y=F.footer;(F=F.targetId)&&this.set("data.targetId",F);u&&this.set("data.header",u);g&&this.set("data.content",g);Y&&this.set("data.footer",Y)}else u&&(F=u.content,g=u.secondaryHeaderContent,(u=u.targetId)&&this.set("data.targetId",u),F&&this.set("data.content",F),g&&(this.secondaryHeaderData=g));this.updateChildVisibilityProperties();if(q){var Q;_.E("kevlar_update_panel_focus_scroll_killswitch")||
(Q={preventScroll:!0});this.focus(Q)}_.tJ(this,function(){_.Q0(J.hostElement,"yt-refit");J.maybeScrollToItemSection(t)})}};
_.l.computeHeaderData=function(){var F,q=(0,_.m7.unsafeClone)((F=this.data)==null?void 0:F.header);if(q){F=new _.Xk(Object.keys(q)[0]);var t=_.n(q,F),u=_.n(this.secondaryHeaderData,F);u&&_.yj(q,F,Object.assign({},u,t))}return q};
_.l.getReloadContinuation=function(){var F,q,t,u=_.X(((F=this.data)==null?void 0:(q=F.content)==null?void 0:(t=q.sectionListRenderer)==null?void 0:t.continuations)||[]);for(F=u.next();!F.done;F=u.next())if(F=F.value,F.reloadContinuationData)return F.reloadContinuationData.continuation};
_.l.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var F;((F=this.data)==null?0:F.targetId)&&(F=this.contentElement.firstElementChild)&&F.setAttribute("panel-target-id",this.data.targetId)};
_.l.forwardPopupClosedToFlowRootRenderer=function(){var F=_.ep(this.hostElement).querySelector("ytd-flow-root-renderer");if(F)F.onPopupClosed()};
_.l.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var F;if(!wdq.includes((F=this.theaterDisablementPanelIdentifier)!=null?F:""))if(F=_.E("web_watch_imax_theater_mode")&&this.isTheaterMode,F=_.E("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||F,_.E("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||F){var q;this.visibility=(q=this.data)==null?void 0:q.visibility;var t;this.trackEngagementPanelVisibility&&((t=this.data)==null?void 0:t.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var u,J,g,Y;this.contentEmpty=!!(((u=this.data)==null?0:(J=u.content)==null?0:J.structuredDescriptionContentRenderer)&&Object.keys((g=this.data)==null?void 0:(Y=g.content)==null?void 0:
Y.structuredDescriptionContentRenderer).length===0);(q=_.sV().resolve(_.f_))&&q.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.l.isTheaterModeChanged=function(){_.E("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.l.isFullscreenChanged=function(){_.E("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.l.focus=function(F){if(this.header)this.header.focus(F);else{var q;(q=_.ep(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||q.focus(F)}};
_.l.visibilityChanged=function(){if(!_.E("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var F=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",q=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",u=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",J=u||!this.lastVisibility,g,Y,Q,e=((g=this.data)==null?void 0:(Y=g.identifier)==null?void 0:
Y.tag)||((Q=this.data)==null?void 0:Q.panelIdentifier);if(F&&J){var r;((r=this.data)==null?0:r.onShowCommands)&&_.rY(this.hostElement,this.data.onShowCommands,this.hostElement);e&&_.u1().dispatch(_.pj({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:e}}))}else if(q&&t){var N;((N=this.data)==null?0:N.onHideCommands)&&_.rY(this.hostElement,this.data.onHideCommands,this.hostElement);e&&_.u1().dispatch(_.pj({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:e}}))}F&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*irO++));_.E("kevlar_watch_focus_on_engagement_panels")&&F&&u&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.l.notifyVisibilityChanged=function(F){var q;_.Zl(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,F,(q=this.data)==null?void 0:q.targetId])};
_.l.updateTheaterDisablement=function(){if(!_.E("kevlar_watch_theater_disablement_killswitch")){var F=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&wdq.includes(F)&&!_.E("watch_next_grid_ignore_disallowed_panels")){var q=_.b_(_.u1().getState()),t=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";F!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():t?(this.originalTheaterState===void 0&&(this.originalTheaterState=q,this.theaterDisablementPanelIdentifier=
F),q&&_.ec(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.l.clearTheaterDisablement=function(){_.ec(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.l.updateChildVisibilityProperties=function(){this.hostElement||_.E("kevlar_panel_property_init_killswitch")||this._enableProperties();var F=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=F);var q,t=(q=this.headerElement)==null?void 0:q.firstElementChild;if(t&&!this.adHeaderImageLockupViewModel){q=F==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";t.collapsed=q;t=_.ep(t).querySelector("#visibility-button");if(!t)return;(t=t.firstElementChild)&&
t.polymerController.is==="ytd-toggle-button-renderer"&&t.polymerController.data.isToggled!==q&&t.polymerController.set("data.isToggled",q)}var u;if(q=(u=this.contentElement)==null?void 0:u.firstElementChild)if(F&&F!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")q.removeAttribute("panel-content-visible");else{q.setAttribute("panel-content-visible","");var J;(J=q.markDirty)==null||J.call(q)}};
_.l.onYtChangeEngagementPanelVisibilityAction=function(F){var q=this,t,u=(t=this.data)==null?void 0:t.targetId,J,g,Y;t=((J=this.data)==null?void 0:(g=J.identifier)==null?void 0:g.tag)||((Y=this.data)==null?void 0:Y.panelIdentifier);var Q=_.n(F,_.KXf),e;F=u&&(Q==null?void 0:Q.targetId)===u||t&&(Q==null?void 0:(e=Q.panelIdentifier)==null?void 0:e.tag)===t;this.dialog&&F&&(Q==null?void 0:Q.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(u==="engagement-panel-comments-section"?_.ec(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.ec(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",t]));!_.E("kevlar_use_engagement_panel_management_component")&&F&&(u=Q.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!u?_.mI.addJob(function(){q.visibility=Q.visibility},2,this.hideDelayMs):this.visibility=Q.visibility,Q.visibility&&this.notifyVisibilityChanged(Q.visibility))};
_.l.onYtScrollToEngagementPanelCommand=function(F){var q,t=(q=this.data)==null?void 0:q.targetId,u,J,g;q=((u=this.data)==null?void 0:(J=u.identifier)==null?void 0:J.tag)||((g=this.data)==null?void 0:g.panelIdentifier);F=_.n(F,_.saE);var Y;(t&&(F==null?void 0:F.targetId)===t||q&&(F==null?void 0:(Y=F.panelIdentifier)==null?void 0:Y.tag)===q)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.ec(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.l.attachVEs=function(F){var q,t;(F==null?0:(q=F.content)==null?0:(t=q.productListRenderer)==null?0:t.trackingParams)&&_.DP().graftServerVe(F.content.productListRenderer.trackingParams);var u,J;(F==null?0:(u=F.content)==null?0:(J=u.transcriptRenderer)==null?0:J.trackingParams)&&_.DP().graftServerVe(F.content.transcriptRenderer.trackingParams)};
_.l.onYtUpdateEngagementPanelAction=function(F){var q,t=(q=this.data)==null?void 0:q.targetId;F=_.n(F,jy9);t&&(F==null?void 0:F.targetId)===t&&(this.updatePanel({engagementPanelSectionListRenderer:{header:F==null?void 0:F.header,content:F==null?void 0:F.content}},!1),this.attachVEs(F))};
_.l.onYtShowEngagementPanelScrimAction=function(F){var q,t=(q=this.data)==null?void 0:q.targetId;F=_.n(F,aQt);t&&(F==null?void 0:F.engagementPanelTargetId)===t&&(this.scrimmed=!0)};
_.l.onYtHideEngagementPanelScrimAction=function(F){var q,t=(q=this.data)==null?void 0:q.targetId;F=_.n(F,LvZ);t&&(F==null?void 0:F.engagementPanelTargetId)===t&&(this.scrimmed=!1)};
_.l.getIdentifier=function(){var F,q,t;return((F=this.data)==null?void 0:F.panelIdentifier)||((q=this.data)==null?void 0:(t=q.identifier)==null?void 0:t.tag)};
_.l.getSurface=function(){var F,q;return(F=this.data)==null?void 0:(q=F.identifier)==null?void 0:q.surface};
_.JJ.Object.defineProperties(Nw.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var F=this.getIdentifier();return F==="engagement-panel-youchat"||F==="PAyouchat"}}});
Nw.prototype.visibilityChanged=Nw.prototype.visibilityChanged;Nw.prototype.isFullscreenChanged=Nw.prototype.isFullscreenChanged;Nw.prototype.isTheaterModeChanged=Nw.prototype.isTheaterModeChanged;Nw.prototype.dataChanged=Nw.prototype.dataChanged;Nw.prototype.forwardPopupClosedToFlowRootRenderer=Nw.prototype.forwardPopupClosedToFlowRootRenderer;Nw.prototype.onYtRendererstamperFinished=Nw.prototype.onYtRendererstamperFinished;
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Nw.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Nw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Nw.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],Nw.prototype,"ytEventForwardingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Nw.prototype,"data",void 0);
_.C([_.O({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.V("design:type",Object)],Nw.prototype,"headerData",void 0);_.C([_.O(),_.V("design:type",Object)],Nw.prototype,"secondaryHeaderData",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Nw.prototype,"visibility",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Nw.prototype,"contentEmpty",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Nw.prototype,"scrimmed",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Nw.prototype,"dialog",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Nw.prototype,"dropdown",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Nw.prototype,"darkerPanels",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Nw.prototype,"matchContentTheme",void 0);_.C([_.O(),_.V("design:type",Object)],Nw.prototype,"disableAutoFill",void 0);
_.C([_.O({reflectToAttribute:!0,value:_.E("optimal_reading_width_comments_ep")}),_.V("design:type",Boolean)],Nw.prototype,"optimalReadingWidthComments",void 0);_.C([_.O(),_.V("design:type",Number)],Nw.prototype,"hideDelayMs",void 0);_.C([_.O({selector:_.yh,reflectToAttribute:!0}),_.V("design:type",Object)],Nw.prototype,"isFullscreen",void 0);_.C([_.O({selector:_.b_,reflectToAttribute:!0}),_.V("design:type",Object)],Nw.prototype,"isTheaterMode",void 0);
_.C([_.O(),_.V("design:type",Number)],Nw.prototype,"showDelayMs",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data.targetId"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nw.prototype,"targetId",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nw.prototype,"webSize",null);_.C([_.O(),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nw.prototype,"hideFooterBorder",null);
_.C([_.O(),_.V("design:type",Object)],Nw.prototype,"isWatch",void 0);_.C([_.O(),_.V("design:type",Object)],Nw.prototype,"originalTheaterState",void 0);_.C([_.O(),_.V("design:type",Object)],Nw.prototype,"theaterDisablementPanelIdentifier",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Nw.prototype,"modernPanels",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Nw.prototype,"isWatchWhilePanel",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Nw.prototype,"shortsPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Nw.prototype,"liveChatEngagementPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Nw.prototype,"learningChatEngagementPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Nw.prototype,"liveChatReplyPanel",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Nw.prototype,"enableAnchoredPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Nw.prototype,"disableBackdropFilter",void 0);_.C([_.O(),_.V("design:type",Object)],Nw.prototype,"trackEngagementPanelVisibility",void 0);_.C([_.Ms("#header"),_.V("design:type",HTMLElement)],Nw.prototype,"headerElement",void 0);_.C([_.Ms("#header > *"),_.V("design:type",HTMLElement)],Nw.prototype,"header",void 0);
_.C([_.Ms("ytd-section-list-renderer"),_.V("design:type",Object)],Nw.prototype,"sectionListRendererElement",void 0);_.C([_.Ms("panel-ad-header-image-lockup-view-model"),_.V("design:type",HTMLElement)],Nw.prototype,"adHeaderImageLockupViewModel",void 0);_.C([_.Ms("#content"),_.V("design:type",HTMLElement)],Nw.prototype,"contentElement",void 0);
_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nw.prototype,"onYtRendererstamperFinished",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nw.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.C([_.Wh("data","isFullscreen","isTheaterMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nw.prototype,"dataChanged",null);
_.C([_.za("isTheaterMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nw.prototype,"isTheaterModeChanged",null);_.C([_.za("isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nw.prototype,"isFullscreenChanged",null);_.C([_.za("visibility"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nw.prototype,"visibilityChanged",null);
_.C([_.m({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Nw);
_.b(Nw,"ytd-engagement-panel-section-list-renderer",function(){if(dal!==void 0)return dal;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return dal=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var k4n;var wl=function(){var F=_.x.apply(this,arguments)||this;F.lastRenderedPanelIds=new Set;F.visiblePanels=[];F.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return F};
_.M(wl,_.x);_.l=wl.prototype;_.l.dataChanged=function(){if(this.data){for(var F=[],q=_.X(this.data),t=q.next();!t.done;t=q.next()){t=t.value;var u=void 0,J=void 0,g=(u=t)==null?void 0:(J=u.engagementPanelSectionListRenderer)==null?void 0:J.visibility;J=u=void 0;((u=t)==null?0:(J=u.engagementPanelSectionListRenderer)==null?0:J.targetId)&&g!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&F.push(t)}this.visiblePanels=F}else this.visiblePanels=[]};
_.l.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}}};
_.l.withoutVisiblePanelById=function(F){return this.visiblePanels.filter(function(q){var t;return((t=q.engagementPanelSectionListRenderer)==null?void 0:t.targetId)!==F})};
_.l.onYtChangeEngagementPanelVisibilityAction=function(F){var q=this,t=_.n(F,_.KXf);if(this.data&&(t==null?0:t.targetId)&&(t==null?0:t.visibility)){var u,J=(u=this.data.find(function(Y){var Q;return((Q=Y.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)===t.targetId}))==null?void 0:u.engagementPanelSectionListRenderer;
if(J){var g=this.withoutVisiblePanelById(t.targetId);t.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(F=this.data.find(function(Y){var Q;return((Q=Y.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)===t.targetId}))&&(g=[F].concat(_.mZ(g)));
this.hideDelayMs&&t.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&g.length===0?_.mI.addJob(function(){J.visibility=t.visibility;q.visiblePanels=g},10,this.hideDelayMs):(J.visibility=t.visibility,this.visiblePanels=g);
_.Zl(this.hostElement,"yt-engagement-panels-visible-changed",[g])}}};
_.l.onRendererstamperFinished=function(){var F=new Set(this.visiblePanels.map(function(q){var t;return(t=q.engagementPanelSectionListRenderer)==null?void 0:t.targetId}));
this.handlePanelVisibilityChange(F,this.lastRenderedPanelIds);this.lastRenderedPanelIds=F};
_.l.handlePanelVisibilityChange=function(F,q){F=F===void 0?new Set:F;q=q===void 0?new Set:q;if(this.data)for(var t=_.X(this.data),u=t.next();!u.done;u=t.next()){u=u.value;var J=void 0,g=void 0,Y=(J=u)==null?void 0:(g=J.engagementPanelSectionListRenderer)==null?void 0:g.targetId;if(Y&&(J=q.has(Y),g=F.has(Y),Y=void 0,!J&&g?(g=J=void 0,Y=(J=u)==null?void 0:(g=J.engagementPanelSectionListRenderer)==null?void 0:g.onShowCommands):J&&!g&&(g=J=void 0,Y=(J=u)==null?void 0:(g=J.engagementPanelSectionListRenderer)==
null?void 0:g.onHideCommands),Y))for(u=_.X(Y),Y=u.next();!Y.done;Y=u.next())this.ytComponentBehavior.resolveCommand(Y.value)}};
wl.prototype.onRendererstamperFinished=wl.prototype.onRendererstamperFinished;wl.prototype.dataChanged=wl.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],wl.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],wl.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],wl.prototype,"lastRenderedPanelIds",void 0);_.C([_.O(),_.V("design:type",Number)],wl.prototype,"hideDelayMs",void 0);_.C([_.O(),_.V("design:type",Array)],wl.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Array)],wl.prototype,"visiblePanels",void 0);_.C([_.O(),_.V("design:type",Boolean)],wl.prototype,"isWatchWhilePanel",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wl.prototype,"dataChanged",null);_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wl.prototype,"onRendererstamperFinished",null);_.C([_.m({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],wl);
_.b(wl,"ytd-watch-engagement-panels",function(){if(k4n!==void 0)return k4n;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return k4n=F},{mode:1});var EWS;var k6=function(){return _.x.apply(this,arguments)||this};
_.M(k6,_.x);k6.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.JK(_.ep(this.hostElement).querySelector("#text"),_.Oen(_.AEn,this.data.companionLegalText))};
k6.prototype.computeAutoScrollEnabled=function(F,q){return F&&!q};
k6.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
k6.prototype.onToggleTap=function(){this.expanded=!this.expanded};
k6.prototype.expandedChanged=k6.prototype.expandedChanged;k6.prototype.dataChanged=k6.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.FDv),_.V("design:type",Object)],k6.prototype,"ytdAutoScrollBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],k6.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],k6.prototype,"expanded",void 0);
_.C([_.O({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.V("design:type",Boolean)],k6.prototype,"autoScrollEnabled",void 0);_.C([_.O(),_.V("design:type",String)],k6.prototype,"expanderIcon",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k6.prototype,"dataChanged",null);
_.C([_.za("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k6.prototype,"expandedChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],k6);
_.b(k6,"ytd-companion-legal-text-renderer",function(){if(EWS!==void 0)return EWS;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return EWS=F},{mode:1});var zBl;var EU=function(){var F=_.x.apply(this,arguments)||this;F.buttonUpdate=_.E("web_modern_buttons");F.kevlarWatchGrid=_.E("kevlar_watch_grid");F.centerAlignDescription=_.E("action_companion_center_align_description");F.truncateDomain=_.E("action_companion_truncate_domain");return F};
_.M(EU,_.x);_.l=EU.prototype;_.l.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.l.getOnLayoutVisibleCallback=function(){var F=_.S6("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var F=_.S6("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.layoutId:null};
_.l.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",EU.JSC$22808_DEFAULT_AD_BADGE_RENDERER);var F=this.getOnLayoutVisibleCallback();F&&F()}};
_.l.getButtonRenderer=function(F){return F.actionButton&&_.n(F.actionButton,_.th)?(delete _.n(F.actionButton,_.th).navigationEndpoint,_.n(F.actionButton,_.th)):{}};
_.l.onClick=function(F){var q=this;if((!_.E("web_modern_buttons")||!_.tC(_.tY(F),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){F=_.g0();var t=this.getLayoutId();F&&t&&_.E("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?F.getPlayerPromise().then(function(u){(new _.BE(u)).executeCommand(q.data.navigationEndpoint,t)}):_.E("kevlar_companion_resolve_command_killswitch")?_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.ec(this.hostElement,"yt-companion-ad-clicked",["action-companion",t])}};
_.JJ.Object.defineProperties(EU.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((F=this.data)==null?0:(q=F.detailsLine)==null?0:(t=q.adRating)==null?0:t.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u;return((F=this.data)==null?0:(q=F.detailsLine)==null?0:(t=q.adRating)==null?0:(u=t.ratingIcon)==null?0:u.iconType)?_.Ek(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u;return((F=this.data)==null?0:(q=F.detailsLine)==null?0:(t=q.texts)==null?0:(u=t[0])==null?0:u.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?0:(q=F.description)==null?0:q.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var F=_.S6("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var F=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return F?F.indexOf("/default_banner")!==-1:!0}}});
EU.prototype.onClick=EU.prototype.onClick;EU.prototype.dataChanged=EU.prototype.dataChanged;EU.JSC$22808_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.oD("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],EU.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],EU.prototype,"rendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],EU.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],EU.prototype,"buttonUpdate",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],EU.prototype,"kevlarWatchGrid",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],EU.prototype,"centerAlignDescription",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],EU.prototype,"truncateDomain",void 0);
_.C([_.O({computed:"computeButtonOverride(buttonUpdate)"}),_.V("design:type",Object)],EU.prototype,"buttonOverride",void 0);_.C([_.W("data.detailsLine.adRating.ratingText"),_.V("design:type",Object),_.V("design:paramtypes",[])],EU.prototype,"getRating",null);_.C([_.W("getRating"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],EU.prototype,"computeRatingHidden",null);
_.C([_.W("data.detailsLine.adRating.ratingIcon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],EU.prototype,"iconType",null);_.C([_.W("data.detailsLine.texts.0.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],EU.prototype,"getDetailsLine",null);_.C([_.W("getDetailsLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],EU.prototype,"computeDetailsLineHidden",null);
_.C([_.W("data.description.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],EU.prototype,"getDescriptionText",null);_.C([_.W("getDescriptionText"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],EU.prototype,"computeDescriptionTextHidden",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],EU.prototype,"interactionLoggingClientData",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],EU.prototype,"hideBanner",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EU.prototype,"dataChanged",null);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],EU.prototype,"onClick",null);_.C([_.m({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],EU);
_.b(EU,"ytd-action-companion-ad-renderer",function(){if(zBl!==void 0)return zBl;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return zBl=F},{mode:_.Nc("kevlar_poly_si_batch_j067")?1:2});var oWn;var nWn;var zM=function(){var F=_.x.apply(this,arguments)||this;F.buttonUpdate=_.E("web_modern_buttons");F.hideLegacyBanner=_.E("enable_dsa_one_click_ata_translators_infeed_elements");F.adInfoButtonStyle="mono";F.adInfoButtonType="text";F.noDotAdBadge=!0;return F};
_.M(zM,_.x);_.l=zM.prototype;_.l.getOnLayoutVisibleCallback=function(){var F=_.S6("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var F=_.S6("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.layoutId:null};
_.l.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var F=this.data.image.thumbnail.thumbnails[0];this.imageSrc=F.url?_.d$(F.url):void 0;this.imageWidth=F.width||0;this.imageHeight=F.height||0}this.data.clickthroughEndpoint&&_.n(this.data.clickthroughEndpoint,_.KM)&&(F=_.n(this.data.clickthroughEndpoint,_.KM).url,_.E("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
F||"":F?(F=_.d$(F),this.clickThroughUrl=_.mt(F)):this.clickThroughUrl=void 0);(F=this.getOnLayoutVisibleCallback())&&F()}};
_.l.onClick=function(F){_.tC(_.tY(F),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(F)};
_.l.handleClick=function(){var F=this;this.data&&this.data.clickthroughEndpoint&&(_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(q){F.macroReplacementBehavior.sendServiceRequestAction([q])}),_.ec(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.l.onLoad=function(){_.Zl(this.hostElement,"yt-refit-popups-action")};
_.JJ.Object.defineProperties(zM.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var F=_.S6("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var F=_.S6("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.interactionLoggingClientData:null}}});
zM.prototype.onLoad=zM.prototype.onLoad;zM.prototype.onClick=zM.prototype.onClick;zM.prototype.dataChanged=zM.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zM.prototype,"rendererBehavior",void 0);_.C([_.D(KZS.YtMacroReplacementBehavior),_.V("design:type",Object)],zM.prototype,"macroReplacementBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zM.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zM.prototype,"buttonUpdate",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zM.prototype,"hideLegacyBanner",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zM.prototype,"adInfoButtonStyle",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zM.prototype,"adInfoButtonType",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],zM.prototype,"macros",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],zM.prototype,"interactionLoggingClientData",null);_.C([_.O(),_.V("design:type",String)],zM.prototype,"clickThroughUrl",void 0);_.C([_.O(),_.V("design:type",_.vS)],zM.prototype,"imageSrc",void 0);_.C([_.O(),_.V("design:type",Number)],zM.prototype,"imageWidth",void 0);_.C([_.O(),_.V("design:type",Number)],zM.prototype,"imageHeight",void 0);_.C([_.O(),_.V("design:type",Object)],zM.prototype,"noDotAdBadge",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zM.prototype,"dataChanged",null);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],zM.prototype,"onClick",null);_.C([_.EB("load"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zM.prototype,"onLoad",null);_.C([_.m({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],zM);
_.b(zM,"ytd-image-companion-renderer",function(){if(nWn!==void 0)return nWn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return nWn=F},{mode:_.Nc("kevlar_poly_si_batch_j067")?1:2});var Mry;var oq=function(){return _.x.apply(this,arguments)||this};
_.M(oq,_.x);_.l=oq.prototype;_.l.dataChanged=function(){this.set("data.adBadge",oq.JSC$22817_DEFAULT_AD_BADGE_RENDERER);if(this.data){var F=this.getOnLayoutVisibleCallback();F&&F()}};
_.l.getOnLayoutVisibleCallback=function(){var F=_.S6("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var F=_.S6("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.layoutId:null};
_.l.onCompanionClicked=function(F){this.data&&(F.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.ec(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.l.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var F=_.g0(),q=this.getLayoutId(),t=this.data.clickToAdvSiteEndpoint;F&&q&&_.E("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?F.getPlayerPromise().then(function(u){(new _.BE(u)).executeCommand(t,q)}):_.Q0(this.hostElement,"yt-navigate",{endpoint:t})}};
_.l.sendTrackingPings=function(F){if(F&&F.length!==0&&F[0].loggingUrls&&(F=F[0].loggingUrls.map(this.getBaseUrl)))for(var q=0;q<F.length;q++)_.Kt(F[q])};
_.l.getBaseUrl=function(F){return F.baseUrl||""};
_.JJ.Object.defineProperties(oq.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var F=_.S6("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.interactionLoggingClientData:null}}});
oq.prototype.onCompanionClicked=oq.prototype.onCompanionClicked;oq.prototype.dataChanged=oq.prototype.dataChanged;oq.JSC$22817_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.oD("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],oq.prototype,"data",void 0);_.C([_.Ms("#title"),_.V("design:type",HTMLElement)],oq.prototype,"shopTitle",void 0);
_.C([_.Wh("data.impressionEndpoints"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oq.prototype,"dataChanged",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],oq.prototype,"interactionLoggingClientData",null);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],oq.prototype,"onCompanionClicked",null);
_.C([_.m({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],oq);
_.b(oq,"ytd-shopping-companion-renderer",function(){if(Mry!==void 0)return Mry;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Mry=F},{mode:1});_.ei(_.ld(function(F){var q=F.data;F=_.lR({visibilityCallback:function(u){var J,g=(J=q().interaction)==null?void 0:J.onFirstVisible;u&&g&&_.L9(g)},
showOption:_.oM});var t=_.Sa(function(){return q().interaction},YCS);
_.m1(function(){var u,J;J=(J=_.S6("yt.www.ads.eventcache.getLastCompanionData"))?(J=J())&&J.onLayoutVisibleCallback:null;(u=J)==null||u()});
return _.Z("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.zq(function(u){_.Zl(u.currentTarget,"yt-refit-popups-action")}),
el:_.l_(F,t),"aria-label":function(){var u,J;return(u=q().interaction)==null?void 0:(J=u.accessibility)==null?void 0:J.label}},_.Z("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.Z(_.Tl,{data:function(){return q().adImage}},{adImageViewModel:function(u){return _.Z(_.m2,{data:u.data,
targetHeight:80,customCommandResolver:YCS})}})),_.Z("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.Z("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.Z(_.Tl,{data:function(){return q().adBadge}},{adBadgeViewModel:function(u){return _.Z(_.Oi,{data:u.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.Z("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.Z(_.Tl,{data:function(){return q().menu}},{buttonViewModel:_.AB}))))},"Gk"),"banner-image-layout-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=F.data;F=_.lR({visibilityCallback:function(u){var J,g=(J=q().interaction)==null?void 0:J.onFirstVisible;u&&g&&_.L9(g)},
showOption:_.oM});var t=_.Sa(function(){return q().interaction},ps$);
_.m1(function(){var u,J;J=(J=_.S6("yt.www.ads.eventcache.getLastCompanionData"))?(J=J())&&J.onLayoutVisibleCallback:null;(u=J)==null||u()});
return _.Z("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.l_(F,t)},_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.Z(_.Tl,{data:function(){return q().adImage}},{adImageViewModel:function(u){return _.Z(_.m2,{data:u.data,
targetHeight:80,customCommandResolver:ps$})}})),_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.Z(_.Tl,{data:function(){return q().adAvatarLockup}},{adAvatarLockupViewModel:function(u){return _.Z(NoK,{data:u.data,
customCommandResolver:ps$})}})),_.Z(_.Tl,{data:function(){return q().adButton}},{adButtonViewModel:function(u){return _.Z(_.Mi,{data:u.data,
customCommandResolver:ps$})}}),_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.Z(_.Tl,{data:function(){return q().menu}},{buttonViewModel:_.AB}))))},"Hk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.NH}});var ToQ={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"},nc=function(){var F=_.x.apply(this,arguments)||this;F.updateCompanionDataJobId=0;F.contentVideoId=null;F.player=null;F.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return F};
_.M(nc,_.x);_.l=nc.prototype;_.l.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:ToQ}}};
_.l.attached=function(){var F=this,q=_.g0();q&&q.getPlayerPromise().then(function(t){F.getCachedDataAndListen(t)})};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.l.updateRendererStamper=function(){var F={};if(this.data)for(var q in ToQ)if(this.data[q]){F[q]=this.data[q];break}if(this.oneofRenderer!=void 0||Object.keys(F).length)this.oneofRenderer=F};
_.l.getCachedDataAndListen=function(F){var q=this.retrieveCachedCompanionData();q&&Object.keys(q).length&&this.receiveCompanionData(q);this.ytPlayerListenerBehavior.listenToPlayerEvent(F,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=F};
_.l.retrieveCachedCompanionData=function(){return _.uu.yt&&_.uu.yt.www&&_.uu.yt.www.ads&&_.uu.yt.www.ads.eventcache&&_.uu.yt.www.ads.eventcache.getLastCompanionData?_.uu.yt.www.ads.eventcache.getLastCompanionData():null};
_.l.receiveCompanionData=function(F){F&&Object.keys(F).length?(this.contentVideoId=F.contentVideoId,this.setCompanionData(F)):this.setCompanionData(F)};
_.l.setCompanionData=function(F){this.cancelPendingCompanionAdJobs();if(F){this.updateCompanionDataJobId=0;for(var q in ToQ)ToQ.hasOwnProperty(q)&&(this.data[q]=void 0);F.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",F.shoppingCompanionCarouselRenderer):F.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",F.imageCompanionAdRenderer):F.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",F.actionCompanionAdRenderer),_.Zl(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Zl(this.hostElement,"yt-hide-tvfilm-offer-module")):F.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",F.bannerImageLayoutViewModel):F.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",F.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.l.dataChanged=function(){var F=this,q=_.g0();q?q.getPlayerPromise().then(function(t){F.contentVideoId&&t.getVideoUrl().includes("v="+F.contentVideoId)||(F.cancelPendingCompanionAdJobs(),F.updateRendererStamper())}):_.hN(Error("Jo"))};
_.l.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.mI.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.l.handleCompanionAdClicked=function(F,q){this.player.onAdUxClicked(F,q);this.player.pauseVideo()};
nc.prototype.dataChanged=nc.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],nc.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],nc.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],nc.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],nc.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],nc.prototype,"oneofRenderer",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nc.prototype,"dataChanged",null);_.C([_.m({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],nc);
_.b(nc,"ytd-companion-slot-renderer",function(){if(oWn!==void 0)return oWn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return oWn=F},{mode:_.Nc("kevlar_poly_si_batch_j067")?
1:2});var G4t;var Mw=function(){return _.x.apply(this,arguments)||this};
_.M(Mw,_.x);Mw.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Mw.prototype.dataChanged=Mw.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Mw.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Mw.prototype,"companionSlotData",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Mw.prototype,"dataChanged",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Mw);
_.b(Mw,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(G4t!==void 0)return G4t;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return G4t=F},{mode:1});var DqK;var TM=function(){var F=_.x.apply(this,arguments)||this;F.skinnyMode=!1;F.COMPACT_EVENT_COUNT=4;F.onShelfToggleButtonTap=function(){F.logTap(F.data);F.showingMore=!F.showingMore};
F.onShelfToggleButtonFocus=function(){F.showingMore||(F.logTap(F.data),F.showingMore=!0,_.tJ(F,function(){var q=F.COMPACT_EVENT_COUNT-1,t;(t=_.ep(F.hostElement).querySelector("#event-"+q))==null||t.focus()}))};
return F};
_.M(TM,_.x);_.l=TM.prototype;_.l.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.l.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.l.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.kM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.kM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.kM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.kM(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.kM(this.infoTooltip,this.infoTooltip.hide))};
_.l.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.kM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.kM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.kM(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.kM(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.kM(this.infoTooltip,this.infoTooltip.hide))};
_.l.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)};
_.l.onShowingMoreChanged=function(){var F;this.showingMoreChanged((F=this.showingMore)!=null?F:!1)};
_.l.showingMoreChanged=function(F){var q=this.get("data.events")||[];this.set("restEvents",q.slice(1,F?q.length:this.COMPACT_EVENT_COUNT).map(function(t){return t.ticketEventRenderer}));
q.slice(0,F?q.length:this.COMPACT_EVENT_COUNT).forEach(function(t){var u=_.yb();t=t.ticketEventRenderer.trackingParams;_.b7()&&u&&t&&(t=_.Av(t),u&&_.fJ(u,t))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.l.computeAriaLabel=function(F){return F.subtitle1+", "+F.subtitle2};
_.l.logTap=function(F){_.b7()&&this.ytRendererBehavior.logExplicitClick(F)};
_.l.isKeyboardAction=function(F){return this.get("detail.x",F)===0&&this.get("detail.y",F)===0};
_.l.onFirstEventTap=function(F){F.target&&this.handleTap(F.target,this.firstEvent,this.isKeyboardAction(F))};
_.l.onTicketLinkTap=function(F){F.target&&this.handleTap(F.target,F.model.item,this.isKeyboardAction(F))};
_.l.handleTap=function(F,q,t){if(q.buttonCommand)if(q.hasMultipleOffers)Object.assign(_.n(q.buttonCommand,_.y5),{properties:{source:t?"keyboard":"tap"}}),this.logTap(q),this.popupPositionTarget=F,_.rY(this.hostElement,[q.buttonCommand],this.hostElement);else{var u;if((u=_.n(q.buttonCommand,_.KM))==null?0:u.url)this.logTap(q),_.jO(window,_.n(q.buttonCommand,_.KM).url)}};
TM.prototype.onShowingMoreChanged=TM.prototype.onShowingMoreChanged;TM.prototype.dataChanged=TM.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],TM.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],TM.prototype,"firstEvent",void 0);_.C([_.O(),_.V("design:type",Object)],TM.prototype,"restEvents",void 0);_.C([_.O(),_.V("design:type",String)],TM.prototype,"imageUrl",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],TM.prototype,"showingMore",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],TM.prototype,"canShowMore",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],TM.prototype,"skinnyMode",void 0);_.C([_.O(),_.V("design:type",HTMLElement)],TM.prototype,"popupPositionTarget",void 0);_.C([_.Ms("#banner-info-tooltip"),_.V("design:type",Object)],TM.prototype,"infoTooltip",void 0);
_.C([_.Ms("#info-container"),_.V("design:type",HTMLElement)],TM.prototype,"infoContainer",void 0);_.C([_.Ms("#shelf-toggler"),_.V("design:type",HTMLElement)],TM.prototype,"shelfToggleButton",void 0);_.C([_.Ms("#separator"),_.V("design:type",HTMLDivElement)],TM.prototype,"separator",void 0);_.C([_.O(),_.V("design:type",String)],TM.prototype,"shelfTogglerLabelText",void 0);_.C([_.O(),_.V("design:type",String)],TM.prototype,"shelfTogglerIcon",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TM.prototype,"dataChanged",null);_.C([_.Wh("showingMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TM.prototype,"onShowingMoreChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],TM);
_.b(TM,"ytd-ticket-shelf-renderer",function(){if(DqK!==void 0)return DqK;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return DqK=F},{mode:1});var Wgn;var Ore;var Pae=function(){return _.x.apply(this,arguments)||this};
_.M(Pae,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Pae.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Pae.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Pae);
_.b(Pae,"ytd-comments-entry-point-message-renderer",function(){if(Ore!==void 0)return Ore;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Ore=F},{mode:1});var xqQ;var GM=function(){return _.x.apply(this,arguments)||this};
_.M(GM,_.x);_.JJ.Object.defineProperties(GM.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.teaserAvatar)}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],GM.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],GM.prototype,"hasAvatar",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],GM);
_.b(GM,"ytd-comments-entry-point-teaser-renderer",function(){if(xqQ!==void 0)return xqQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return xqQ=F},{mode:1});var AGI;var vWq=function(){return _.x.apply(this,arguments)||this};
_.M(vWq,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],vWq.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],vWq.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],vWq);
_.b(vWq,"ytd-comments-simplebox-renderer",function(){if(AGI!==void 0)return AGI;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return AGI=F},{mode:1});var DU=function(){var F=_.x.apply(this,arguments)||this;F.fullHeight=!_.E("comment_teaser_full_height_kill_switch")&&_.E("kevlar_watch_grid");return F};
_.M(DU,_.x);DU.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"}}}};
DU.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
DU.prototype.onTap=function(){var F=this.tapCommand;F&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(F))};
DU.prototype.onKeyUp=function(F){if(F.keyCode===13)this.onTap()};
_.JJ.Object.defineProperties(DU.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null?0:F.onTap)return this.data.onTap;var q,t;if(((q=this.data)==null?0:q.teaserContent)||((t=this.data)==null?0:t.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)!=null&&F.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
DU.prototype.onKeyUp=DU.prototype.onKeyUp;DU.prototype.onTap=DU.prototype.onTap;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],DU.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],DU.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],DU.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],DU.prototype,"fullHeight",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],DU.prototype,"tapCommand",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],DU.prototype,"simpleboxPlaceholder",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],DU.prototype,"hasSimpleboxPlaceholder",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],DU.prototype,"simpleboxAvatar",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],DU.prototype,"teaserContent",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],DU.prototype,"hasTeaserContent",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],DU.prototype,"teaserAvatar",null);
_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],DU.prototype,"hasTeaserAvatar",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],DU.prototype,"messageText",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],DU.prototype,"contentRenderer",null);_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],DU.prototype,"hasContents",null);
_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],DU.prototype,"hasContentRenderer",null);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DU.prototype,"onTap",null);_.C([_.EB("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[_.D6]),_.V("design:returntype")],DU.prototype,"onKeyUp",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],DU);
_.b(DU,"ytd-comments-entry-point-header-renderer",function(){if(Wgn!==void 0)return Wgn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Wgn=F},{mode:1});var IWq;_.E("web_enable_sink_animated_rolling_character_and_number")||!_.E("web_watched_wcw_rolling_number_ks")?_.ei(_.lGv,"yt-animated-rolling-number",{props:{numberText:_.NH,numberValue:_.NH,heightPx:_.NH,fontSizeMultiplier:_.NH,shouldAnimate:_.NH,forceRollUp:_.NH}}):Kr9();var Hry=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),mqn={numberText:"",heightPx:2*Hry,shouldAnimate:!1},W7=function(){var F=_.x.apply(this,arguments)||this;F.usingAnimatedComponents=!0;F.wasDetailed=!1;F.JSC$22855_browserSupportsAnimation=_.E("web_supports_animations_api");F.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};F.detailed=!1;F.shouldAnimate=!1;F.viewCountProps=mqn;F.dateTextProps=
mqn;F.metadataBadgesInDescription=_.E("web_metadata_badges_in_description");return F};
_.M(W7,_.x);_.l=W7.prototype;_.l.resetAnimationState=function(){this.shouldAnimate=!1};
_.l.updateDynamicMetadata=function(){if(this.JSC$22855_browserSupportsAnimation){if(!this.detailed){var F,q,t,u;var J=(F=this.videoPrimaryInfoRenderer)==null?void 0:(q=F.viewCount)==null?void 0:(t=q.videoViewCountRenderer)==null?void 0:(u=t.extraShortViewCount)==null?void 0:u.simpleText;var g,Y,Q,e;var r=(g=this.videoPrimaryInfoRenderer)==null?void 0:(Y=g.viewCount)==null?void 0:(Q=Y.videoViewCountRenderer)==null?void 0:(e=Q.shortViewCount)==null?void 0:e.simpleText}if(!r){var N,w,k,z;J=(N=this.videoPrimaryInfoRenderer)==
null?void 0:(w=N.viewCount)==null?void 0:(k=w.videoViewCountRenderer)==null?void 0:(z=k.unlabeledViewCountValue)==null?void 0:z.simpleText;var T,P,v,H;r=(T=this.videoPrimaryInfoRenderer)==null?void 0:(P=T.viewCount)==null?void 0:(v=P.videoViewCountRenderer)==null?void 0:(H=v.viewCount)==null?void 0:H.simpleText}var d,a,S;F=Number((d=this.videoPrimaryInfoRenderer)==null?void 0:(a=d.viewCount)==null?void 0:(S=a.videoViewCountRenderer)==null?void 0:S.originalViewCount);var K,h;d=(K=this.videoPrimaryInfoRenderer)==
null?void 0:(h=K.relativeDateText)==null?void 0:h.simpleText;var c;K=!((c=this.videoPrimaryInfoRenderer)==null||!c.relativeDateText);if(J&&r&&F&&(d||!K)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;c=r.split(new RegExp("("+J+")"));J=NJQ(c[0]);var rf;r={numberText:(rf=c[1])!=null?rf:"",numberValue:F,heightPx:2*Hry,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Zv;rf=((Zv=c[2])!=null?Zv:"")+"  ";this.setViewCount(r,J,NJQ(rf));if(!this.detailed&&
K){J=d.split(/(\d+)/);Zv=NJQ(J[0]);var kP;rf={numberText:(kP=J[1])!=null?kP:"",heightPx:2*Hry,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var n3;kP=((n3=J[2])!=null?n3:"")+"  ";this.setDateText(rf,Zv,NJQ(kP))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.l.setViewCount=function(F,q,t){_.q1(q)!==_.q1(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=q);this.viewCountProps.numberText!==(F==null?void 0:F.numberText)&&(this.viewCountProps=F||mqn);_.q1(t)!==_.q1(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=t)};
_.l.setDateText=function(F,q,t){_.q1(q)!==_.q1(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=q);this.dateTextProps.numberText!==(F==null?void 0:F.numberText)&&(this.dateTextProps=F||mqn);_.q1(t)!==_.q1(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=t)};
_.l.onYtUpdateViewershipAction=function(F){this.videoPrimaryInfoRenderer&&(_.n(F,MOy).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.n(F,MOy).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.n(F,MOy).viewCount)))};
_.l.onYtUpdateDateTextAction=function(F){if(this.videoPrimaryInfoRenderer){F=_.n(F,_.on$).dateText;this.shouldAnimate=!0;var q;((q=this.videoPrimaryInfoRenderer)==null?0:q.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",F):this.set("videoPrimaryInfoRenderer.dateText",F)}};
_.JJ.Object.defineProperties(W7.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return r9t(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.q1(r9t(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.q1(this.viewCountPreNumberText),this.viewCountProps.numberText,_.q1(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.q1(this.dateTextPreNumberText),this.dateTextProps.numberText,_.q1(this.dateTextPostNumberText)].join("")}}});
W7.prototype.updateDynamicMetadata=W7.prototype.updateDynamicMetadata;W7.prototype.resetAnimationState=W7.prototype.resetAnimationState;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],W7.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],W7.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],W7.prototype,"videoPrimaryInfoRenderer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W7.prototype,"detailed",void 0);_.C([_.O(),_.V("design:type",Object)],W7.prototype,"shouldAnimate",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W7.prototype,"viewCountPreNumberText",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W7.prototype,"viewCountProps",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W7.prototype,"viewCountPostNumberText",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W7.prototype,"dateTextPreNumberText",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W7.prototype,"dateTextProps",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W7.prototype,"dateTextPostNumberText",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W7.prototype,"metadataBadgesInDescription",void 0);_.C([_.W("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.V("design:type",Object),_.V("design:paramtypes",[])],W7.prototype,"infoText",null);
_.C([_.W("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.V("design:type",String),_.V("design:paramtypes",[])],W7.prototype,"descriptionInfoTooltipText",null);_.C([_.W("detailed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],W7.prototype,"showDescriptionInfoTooltip",null);
_.C([_.W("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.V("design:type",String),_.V("design:paramtypes",[])],W7.prototype,"animatedViewCountAccessibilityLabel",null);_.C([_.W("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.V("design:type",String),_.V("design:paramtypes",[])],W7.prototype,"animatedDateTextAccessibilityLabel",null);
_.C([_.za("videoPrimaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W7.prototype,"resetAnimationState",null);_.C([_.za("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W7.prototype,"updateDynamicMetadata",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-watch-info-text"})],W7);
_.b(W7,"ytd-watch-info-text",function(){if(IWq!==void 0)return IWq;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return IWq=F},{mode:1});var $qO;var brZ="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var yGK=_.ld(function(F){var q=F.data;var t=F.setTapCommand;_.AO(function(){var u=_.Sg(q().onTap);t(u)},"Hj6Srd");
return _.Z("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.Z(_.Tl,{data:function(){return q().avatar}},{avatarViewModel:_.FJ}),_.Z("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.Z("span",null,function(){return q().simpleboxText})))},"Ik");var CaO=_.ld(function(F){return _.Z("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.Z(_.R,{cond:function(){return _.n(F.data().avatar,_.d0)},
then:function(q){return _.Z(_.FJ,{data:q,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.Z("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.Z(_.rv,{text:function(){return F.data().teaserText}})))},"Jk");var dql=_.ld(function(F){var q=F.data;var t=F.setTapCommand;_.AO(function(){var u=_.Sg(q().onTap);t(u)},"IlZFqc");
return _.Z("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.Z(_.Tl,{data:function(){return q().teasers}},{commentsEntryPointTeaserViewModel:CaO}))},"Kk");var Vrt=_.ld(function(F){var q=F.data;var t=F.setTapCommand;_.AO(function(){var u=_.Sg(q().onTap);t(u)},"sYe8ye");
return _.Z("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.Z(_.rv,{text:function(){return q().messageText}}))},"Lk");var UqQ=_.ld(function(F){var q=F.data;var t=F.setTapCommand;var u=F.isDisabled;_.AO(function(){var J=(u==null?0:u())?void 0:_.Sg(q().onTap);t(J)},"GZxRqd");
return _.Z("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.Z(_.Tq,{icon:function(){return q().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.Z(_.R,{cond:function(){return q().image},
then:function(J){return _.Z(_.sc,{data:J,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.Z(_.rv,{text:function(){return q().text},
className:function(){return q().image||q().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.Z(_.Tl,{data:function(){return q().button}},{buttonViewModel:function(J){return _.Z(_.AB,{data:J.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:u==null?void 0:u()}}})}}))},"Mk");var SPZ=_.ld(function(F){var q=F.data;var t=F.itemIndex;var u=F.selectedIndex;var J=F.indexUpdatedCallback;var g=F.observer;F=F.title;var Y=_.FG("yt-carousel-item-view-model",function(w){g&&g().observe(w)}),Q=function(w){t()===u()&&J(w)},e=_.dC(VCn),r=_.dC(_.n0u),N=function(){var w,k,z;
return((w=q())==null?void 0:w.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!e()||((k=q())==null?void 0:k.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&r().includes("PAposts_by_host")||((z=q())==null?void 0:z.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&r().includes("PAyouchat")};
return _.Z("yt-carousel-item-view-model",{el:Y,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":F},_.Z(_.Tl,{data:function(){var w,k;return(k=(w=_.n(q().carouselItem,h9n))==null?void 0:w.textCarousel)!=null?k:q().carouselItem}},{textCarouselItemViewModel:function(w){return _.Z(UqQ,{data:w.data,
setTapCommand:Q,isDisabled:N})},
commentTeaserCarouselItemViewModel:function(w){return _.Z(dql,{data:w.data,setTapCommand:Q})},
commentInputBoxCarouselItemViewModel:function(w){return _.Z(yGK,{data:w.data,setTapCommand:Q})},
commentsEntryPointMessageViewModel:function(w){return _.Z(Vrt,{data:w.data,setTapCommand:Q})}}))},"Nk");var hBt=_.ld(function(F){var q=F.numDots;var t=F.activeIndex;return _.Z("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.Z(_.Gn,{each:function(){return Array.from({length:q()})},
keyBy:"INDEX"},function(u,J){return _.Z("div",{class:function(){var g={};return _.HD("ytCarouselDotsShapeDot",(g.ytCarouselDotsShapeDotActive=J===t(),g))}})}))},"Ok");var Kge=_.ld(function(F){var q=F.data;var t=F.handleCarouselNavigation;var u=F.numItems;var J=F.selectedIndex;var g=function(){return{disabled:J()===0}},Y=function(){return{disabled:J()===u()-1}};
return _.Z("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.Z("div",null,_.Z("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return q().title}),_.Z(_.R,{cond:function(){return q().subtitle},
then:function(Q){return _.Z("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return q().subtitleAccessibilityText}},Q)}})),_.Z(_.R,{cond:function(){return u()>1},
then:function(){return _.Z("div",{class:"ytCarouselTitleViewModelNavigation"},_.Z(hBt,{numDots:u,activeIndex:J}),_.Z(_.R,{cond:function(){return q().previousButton},
then:function(Q){return _.Z(_.Tl,{data:Q},{buttonViewModel:function(e){return _.Z(_.AB,{data:e.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return t(-1)},
buttonOverrides:g})}})}}),_.Z(_.R,{cond:function(){return q().nextButton},
then:function(Q){return _.Z(_.Tl,{data:Q},{buttonViewModel:function(e){return _.Z(_.AB,{data:e.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return t(1)},
buttonOverrides:Y})}})}}))}}))},"Pk");_.ei(_.ld(function(F){var q=F.data;var t,u=_.FG("yt-video-metadata-carousel-view-model"),J=_.FG("div",function(K){var h=function(){var c=K.offsetWidth*P(),rf=24*(P()-1);k(c+rf)};
h();window.ResizeObserver&&(t=new ResizeObserver(h),t.observe(K))}),g=_.bn("HTML_DIR")==="rtl",Y=!1,Q=0,e=0;
F=_.X(_.N3(0,void 0,"M49TDf"));var r=F.next().value,N=F.next().value;F=_.X(_.N3(0,void 0,"zLIok"));var w=F.next().value,k=F.next().value;F=_.X(_.N3(!1,void 0,"bhelhc"));var z=F.next().value,T=F.next().value,P=function(){var K,h,c;return(c=(K=q())==null?void 0:(h=K.carouselTitles)==null?void 0:h.length)!=null?c:0},v=function(){J.value&&J.value.scrollLeft!==Q&&N((g?J.value.scrollLeft<Q:J.value.scrollLeft>Q)?Math.min(r()+1,P()-1):Math.max(r()-1,0))},H;
window.IntersectionObserver&&(H=new IntersectionObserver(function(K){K=_.X(K);for(var h=K.next();!h.done;h=K.next())if(h.value.isIntersecting){if(Y){Y=!1;break}v()}else N(e)},{threshold:.2}));
_.AO(function(){if(J.value){var K=(g?-1:1)*(w()/P()+12)*(z()&&H?e:r());typeof J.value.scrollTo==="function"?J.value.scrollTo({left:K,behavior:"smooth"}):J.value.scrollLeft=K;Q=K;e=z()&&H?e:r()}},"s9rbgc");
var d,a=function(K){d=K};
_.vj(function(){var K;(K=t)==null||K.disconnect();var h;(h=H)==null||h.disconnect()});
var S=function(K){K=r()+K;K>=0&&K<P()&&(Y=!0,N(K))};
return _.Z("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:u,"on:click":_.zq(function(K){if(_.$C(_.mp(K),u.value,["BUTTON".toString()])||!d)return!1;_.sV().resolve(_.gN).resolveCommand(d,{forceClickLogging:!0});return!1}),
"on:touchstart":_.zq(function(){T(!0);return!1}),
"on:touchend":_.zq(function(){H||v();T(!1);return!1}),
hidden:function(){var K,h;return!((K=q())==null?0:(h=K.carouselItems)==null?0:h.length)}},_.Z("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.Z(_.R,{cond:function(){return q().carouselTitles},
then:function(K){return _.Z(_.Tl,{data:function(){return K()[z()&&H?e:r()]}},{carouselTitleViewModel:function(h){return _.Z(Kge,{data:h.data,
handleCarouselNavigation:S,numItems:P,selectedIndex:r})}})}})),_.Z("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:J},_.Z("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+w()+"px;"}},_.Z(_.R,{cond:function(){return q().carouselItems},
then:function(K){return _.Z(_.Gn,{each:K},function(h,c){return _.Z(_.Tl,{data:function(){return h}},{carouselItemViewModel:function(rf){return _.Z(SPZ,{data:rf.data,
itemIndex:c,selectedIndex:r,indexUpdatedCallback:a,observer:H,title:function(){a:{var Zv=c();var kP,n3=(kP=q())==null?void 0:kP.carouselTitles;if(n3&&(Zv=n3[Zv])){var o_;Zv=(o_=_.n(Zv,SCO))==null?void 0:o_.title;break a}Zv=void 0}return Zv}})}})})}}))))},"Qk"),"yt-video-metadata-carousel-view-model",{props:{data:_.NH}});var Bol=_.E("web_action_buttons_update_owner_width")?32:12,OU=function(){var F=_.x.apply(this,arguments)||this;F.isHovering=!1;F.enableColorSampling=_.E("web_delhi_colorful_sd");F.metadataBadgesInDescription=_.E("web_metadata_badges_in_description");F.descriptionCollapsed=!0;F.useFadedScrimDescription=_.E("kevlar_enable_faded_scrim_on_description");F.skinnyMode=!1;F.playlist=!1;F.isDark=document.documentElement.hasAttribute("dark");F.disableVideoOwnerOnTap=_.E("swatchie_video_owner_on_tap_ks");F.swatcherooDelayLoad=
_.E("swatcheroo_enable_ghost_cards");F.primaryMenuWidth=0;F.videoId="";F.titleHeadlineXs=_.E("web_watch_typography_title_headline_xs");F.titleHeadlineS=_.E("web_watch_typography_title_headline_s");F.titleHeadlineM=_.E("web_watch_typography_title_headline_m");F.titleHashtagBlackLinkified=_.E("web_title_hashtag_black_linkified");F.titleHashtagGreyLinkified=_.E("web_title_hashtag_grey_linkified");F.actionButtonsUpdateOwnerWidth=_.E("web_action_buttons_update_owner_width");F.shouldForceIconOnly=!1;F.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};F.isFullscreen=!1;F.isTheaterMode=!1;return F};
_.M(OU,_.x);_.l=OU.prototype;_.l.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.l.updateOwnerAndDescriptionPosition=function(){_.E("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Uj(this.bottomRowElement,this.ownerElement)):(_.Uj(this.bottomRowElement,this.descriptionElement),_.Uj(this.topRowElement,this.ownerElement)))};
_.l.titleOnTap=function(F){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.tC(_.tY(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var q;((q=window.getSelection())==null?0:q.toString().length)||this.handleExpandDescriptionCommands()}};
_.l.videoOwnerOnTap=function(F){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.tC(_.tY(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.l.detached=function(){var F=this,q;return _.p(function(t){(q=F.resizeObserver)==null||q.disconnect();_.WA(t)})};
_.l.maybeAttachResizeObserver=function(){var F=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.LH(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){F.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.l.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var F=this.hostElement.clientWidth,q=Math.max(this.largerItemWrap?400:350,F/2-Bol);if(_.E("web_action_buttons_update_owner_width")){var t;q=(((t=document.getElementById("owner"))==null?void 0:t.clientWidth)||0)+Bol}this.actionsOnSeparateLine=this.primaryMenuWidth>F-q?!0:!1}};
_.l.stripAttributedDescription=function(F){return{content:F.content.replace(/[\r\n]{2,}/g,"\n")}};
_.l.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.E("web_modern_buttons"),forceIconButton:!_.E("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:_.E("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.l.videoPrimaryInfoRendererChanged=function(){var F;if((F=this.videoPrimaryInfoRenderer)==null?0:F.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.l.videoSecondaryInfoRendererChanged=function(){var F,q;(q=(F=this.descriptionInlineExpander).collapse)==null||q.call(F);this.descriptionExpandClientVe=_.r0(110509);this.descriptionCollapseClientVe=_.r0(110510);F=_.yb();q=_.b7();F&&q&&(_.E("combine_ve_grafts")?(_.PQ(_.DP(),this.descriptionExpandClientVe,q),_.PQ(_.DP(),this.descriptionCollapseClientVe,q)):_.LJ(F,q,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.l.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.l.updateTopLevelIconsOnly=function(){var F=this;_.E("top_level_update_killswitch")||this.menu&&_.mI.addLowPriorityJob(function(){F.menu.topLevelIconsOnly=F.skinnyMode},_.YE("swathceroo_delay_flexible_menu_update",100))};
_.l.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.E("web_action_buttons_minimize_subscribe")};
_.l.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.l.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.l.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.l.onYtTextInlineExpanderExpandedChanged=function(){if(!_.E("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var F,q;(q=(F=this.structuredDescriptionContentRendererElement).resize)==null||q.call(F)}};
_.l.onRenderStamperFinished=function(F){(F==null?void 0:F.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.l.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.l.onYtExpanderLessTapped=function(){var F,q=(F=this.videoSecondaryInfoRenderer)==null?void 0:F.showLessCommand;q&&this.ytComponentBehavior.resolveCommand(q)};
_.l.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.l.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.l.onDescriptionClick=function(F){if(!_.tC(_.tY(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var q;((q=window.getSelection())==null?0:q.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.E("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.l.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.l.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.l.logCollapseClick=function(){var F=_.yb();F&&this.descriptionCollapseClientVe&&_.co(F,this.descriptionCollapseClientVe)};
_.l.logExpandClick=function(){var F=_.yb();F&&this.descriptionExpandClientVe&&_.co(F,this.descriptionExpandClientVe)};
_.l.collapseDescription=function(){this.descriptionCollapsed=!0};
_.l.scrollToTopOfContainer=function(){_.ec(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.l.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.l.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.l.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.l.resize=function(){if(this.descriptionInlineExpander){var F,q;(q=(F=this.descriptionInlineExpander).resize)==null||q.call(F)}else _.bz(new _.D0("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var t;(t=this.menu)==null||t.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.l.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var F,q,t,u,J=_.E("web_action_buttons_update_owner_width")?(t=(F=_.ep(this.menu).querySelector("#button-shape"))==null?void 0:F.clientWidth)!=null?t:0:(u=(q=_.ep(this.menu).querySelector("#button"))==null?void 0:q.clientWidth)!=null?u:0,g,Y;F=((Y=(g=_.ep(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:g.clientWidth)!=null?Y:0)+8+J;var Q,e;J=(e=(Q=_.ep(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:Q.children.length)!=null?e:2;F<=8*J||(this.primaryMenuWidth=F)}};
_.l.onYtUpdateTitleAction=function(F){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.n(F,nnq).title)};
_.l.onYtUpdateDescriptionAction=function(F){if(F=_.n(F,_.bAj)){var q,t=!((q=this.videoSecondaryInfoRenderer)==null||!q.attributedDescription);F.isEmpty||!F.description&&!F.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):F.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",F.attributedDescription):F.description&&(t?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.C9(F.description)):this.set("videoSecondaryInfoRenderer.description",F.description))}};
_.l.onYtDarkModeToggledAction=function(F){this.isDark=F};
_.l.registerPanel=function(){if(!_.E("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var F=_.E("web_watch_imax_theater_mode")&&this.isTheaterMode;F=_.E("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||F;var q=_.sV().resolve(_.f_);q&&!F&&q.registerPanel("engagement-panel-structured-description",this)}};
_.l.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.l.parseColorSamplingData=function(){var F;if(_.E("web_delhi_colorful_sd")&&((F=this.structuredDescriptionContentRenderer)==null?0:F.items)&&(F=this.structuredDescriptionContentRenderer.items.find(function(J){return!!_.n(J,SX)}))){var q,t;
this.hoverColor={lightTheme:(q=_.n(F,SX))==null?void 0:q.lightThemeColorPalette,darkTheme:(t=_.n(F,SX))==null?void 0:t.darkThemeColorPalette};var u;this.hoverText=(u=_.n(F,SX))==null?void 0:u.colorSampledDescriptionBodyText}};
_.l.updateHoverColor=function(){if(_.E("web_delhi_colorful_sd")){var F=this.hoverColor,q={},t;F=(t=this.isDark?F==null?void 0:F.darkTheme:F==null?void 0:F.lightTheme)!=null?t:{};t=_.X(brZ);for(var u=t.next();!u.done;u=t.next()){u=u.value;var J=F[u];q["--yt-saturated-"+_.nB(u)]=J?_.KG(J):"initial"}_.ws(this.hostElement,q)}};
_.l.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.l.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.l.showPanel=function(F){this.expandDescription();var q=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;q.resize();var t,u=F==null?void 0:(t=F.sectionListEngagementPanelExtras)==null?void 0:t.scrollToItemSectionIdentifier;u?_.mI.addJob(function(){q==null||q.scrollToSection(u)},8):this.scrollToTopOfContainer()};
_.l.isVisible=function(){return!this.descriptionCollapsed};
_.l.getReloadContinuation=function(){};
_.l.hidePanel=function(){};
_.l.updatePanel=function(){};
_.JJ.Object.defineProperties(OU.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var F;return _.E("web_delhi_colorful_sd")&&(F=this.structuredDescriptionContentRenderer)!=null&&F.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(q){return!_.n(q,SX)&&!_.n(q,G9S)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.structuredDescriptionContentRendererComputed)!=null&&F.items){var q;F=_.X((q=this.structuredDescriptionContentRendererComputed)==null?void 0:q.items);for(q=F.next();!q.done;q=F.next())if(q=_.n(q.value,_.vxJ))return q}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.videoPrimaryInfoRenderer)==null?0:F.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return!!((F=this.videoSecondaryInfoRenderer)==null?0:(q=F.owner)==null?0:(t=q.videoOwnerRenderer)==null?0:t.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var F,q;if((F=this.videoSecondaryInfoRenderer)==null?0:(q=F.attributedDescription)==null?0:q.content){var t,u;return(u=this.stripAttributedDescription((t=this.videoSecondaryInfoRenderer)==null?void 0:t.attributedDescription))!=null?u:{runs:[]}}}if(_.E("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var J,g,Y,Q;return(Q=(Y=(J=this.videoSecondaryInfoRenderer)==
null?void 0:J.description)!=null?Y:(g=this.videoSecondaryInfoRenderer)==null?void 0:g.attributedDescription)!=null?Q:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var F,q;return(q=(F=this.videoSecondaryInfoRenderer)==null?void 0:F.headerRuns)!=null?q:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.commentsEntryPointHeaderRenderer)==null||!F.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.videoMetadataCarousel)==null||!F.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.YE("swatchie_desc_lines",3):this.hasTeaserCarousel?_.YE("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var F,q,t=Object.assign({},(F=this.videoSecondaryInfoRenderer)==null?void 0:(q=F.metadataRowContainer)==null?void 0:q.metadataRowContainerRenderer);if(t&&t.rows&&t.collapsedItemCount!==void 0&&!(t.rows.length<=t.collapsedItemCount))return t.rows=t.rows.slice(t.collapsedItemCount),t.collapsedItemCount=0,t}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var F,q,t=Object.assign({},(F=this.videoSecondaryInfoRenderer)==null?void 0:(q=F.metadataRowContainer)==null?void 0:q.metadataRowContainerRenderer);if(t&&t.rows&&t.collapsedItemCount!==void 0)return t.rows=t.rows.slice(0,t.collapsedItemCount),t.collapsedItemCount=t.rows.length,t}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var F,q;return!!((F=this.structuredDescriptionContentRendererComputed)==null?0:(q=F.items)==null?0:q.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var F;return(F=this.videoSecondaryInfoRenderer)==null?void 0:F.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((F=this.videoSecondaryInfoRenderer)==null?0:(q=F.owner)==null?0:(t=q.videoOwnerRenderer)==null?0:t.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u;return!!((F=this.videoPrimaryInfoRenderer)==null?0:(q=F.videoActions)==null?0:(t=q.menuRenderer)==null?0:(u=t.flexibleItems)==null?0:u.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.tT(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.tT(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var F=this;if(_.E("web_title_hashtag_grey_delinkified")){var q,t=_.m7.unsafeClone((q=this.videoPrimaryInfoRenderer)==null?void 0:q.title);(q=t==null?void 0:t.runs)&&q.forEach(function(u){if(u==null?0:u.navigationEndpoint)u.textColor=4284506208,F.isDark&&(u.textColor=4289374890)});
return t}return(t=this.videoPrimaryInfoRenderer)==null?void 0:t.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.E("web_title_hashtag_black_delinkified")||_.E("web_title_hashtag_grey_delinkified")}}});
OU.prototype.updateHoverColor=OU.prototype.updateHoverColor;OU.prototype.parseColorSamplingData=OU.prototype.parseColorSamplingData;OU.prototype.resetDescriptionState=OU.prototype.resetDescriptionState;OU.prototype.registerPanel=OU.prototype.registerPanel;OU.prototype.onYtExpanderLessTapped=OU.prototype.onYtExpanderLessTapped;OU.prototype.onYtExpanderMoreTapped=OU.prototype.onYtExpanderMoreTapped;OU.prototype.onRenderStamperFinished=OU.prototype.onRenderStamperFinished;
OU.prototype.onYtTextInlineExpanderExpandedChanged=OU.prototype.onYtTextInlineExpanderExpandedChanged;OU.prototype.onYtTextInlineExpanderCollapseClicked=OU.prototype.onYtTextInlineExpanderCollapseClicked;OU.prototype.onYtTextInlineExpanderExpandClicked=OU.prototype.onYtTextInlineExpanderExpandClicked;OU.prototype.moveActionsElement=OU.prototype.moveActionsElement;OU.prototype.updateShouldForceIconOnly=OU.prototype.updateShouldForceIconOnly;OU.prototype.updateTopLevelIconsOnly=OU.prototype.updateTopLevelIconsOnly;
OU.prototype.structuredDescriptionContentRendererChanged=OU.prototype.structuredDescriptionContentRendererChanged;OU.prototype.videoSecondaryInfoRendererChanged=OU.prototype.videoSecondaryInfoRendererChanged;OU.prototype.videoPrimaryInfoRendererChanged=OU.prototype.videoPrimaryInfoRendererChanged;OU.prototype.maybeUpdateActionsOnSeparateLine=OU.prototype.maybeUpdateActionsOnSeparateLine;OU.prototype.updateOwnerAndDescriptionPosition=OU.prototype.updateOwnerAndDescriptionPosition;
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],OU.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],OU.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.s9),_.V("design:type",Object)],OU.prototype,"ytdReduxBehavior",void 0);_.C([_.Ms("#above-the-fold"),_.V("design:type",HTMLElement)],OU.prototype,"aboveTheFoldContainer",void 0);_.C([_.Ms("#menu ytd-menu-renderer"),_.V("design:type",Object)],OU.prototype,"menu",void 0);_.C([_.Ms("#description-inline-expander"),_.V("design:type",Object)],OU.prototype,"descriptionInlineExpander",void 0);
_.C([_.Ms("#faded-structured-description"),_.V("design:type",Object)],OU.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.C([_.Ms("#structured-description"),_.V("design:type",Object)],OU.prototype,"structuredDescriptionContentRendererElement",void 0);_.C([_.Ms("#title"),_.V("design:type",HTMLElement)],OU.prototype,"titleElement",void 0);_.C([_.Ms("#description"),_.V("design:type",HTMLElement)],OU.prototype,"descriptionElement",void 0);
_.C([_.Ms("#description-interaction"),_.V("design:type",Object)],OU.prototype,"descriptionInteraction",void 0);_.C([_.Ms("#owner"),_.V("design:type",HTMLElement)],OU.prototype,"ownerElement",void 0);_.C([_.Ms("#top-row"),_.V("design:type",HTMLElement)],OU.prototype,"topRowElement",void 0);_.C([_.Ms("#bottom-row"),_.V("design:type",HTMLElement)],OU.prototype,"bottomRowElement",void 0);_.C([_.Ms("#actions"),_.V("design:type",HTMLElement)],OU.prototype,"actionsElement",void 0);
_.C([_.Ms("#bottom-actions"),_.V("design:type",HTMLElement)],OU.prototype,"bottomActionsElement",void 0);_.C([_.Ms("#ytd-watch-info-text"),_.V("design:type",Object)],OU.prototype,"watchInfoTextElement",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"videoPrimaryInfoRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"videoSecondaryInfoRenderer",void 0);
_.C([_.O(),_.V("design:type",Object)],OU.prototype,"commentsEntryPointHeaderRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"videoMetadataCarousel",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"structuredDescriptionContentRenderer",void 0);_.C([_.W("structuredDescriptionContentRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"structuredDescriptionContentRendererComputed",null);
_.C([_.O(),_.V("design:type",Object)],OU.prototype,"videoSummary",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"merchShelf",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"infoPanelBelowMetadata",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"hoverColor",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"hoverText",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"isHovering",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"enableColorSampling",void 0);_.C([_.W("structuredDescriptionContentRendererComputed"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"productShelf",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"metadataBadgesInDescription",void 0);_.C([_.W("videoPrimaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"shouldHideBadges",null);
_.C([_.W("productShelf","descriptionCollapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OU.prototype,"shouldShowProductShelf",null);_.C([_.O(),_.V("design:type",Boolean)],OU.prototype,"isWatchFlexy",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"descriptionCollapsed",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],OU.prototype,"useFadedScrimDescription",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"skinnyMode",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("videoSecondaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"largerItemWrap",null);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"playlist",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"clarifyBox",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"playerAds",void 0);
_.C([_.O(),_.V("design:type",Boolean)],OU.prototype,"isDark",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],OU.prototype,"actionsOnSeparateLine",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"disableVideoOwnerOnTap",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"swatcherooDelayLoad",void 0);_.C([_.O(),_.V("design:type",Boolean)],OU.prototype,"suppressTopLevelMetadataRows",void 0);
_.C([_.O(),_.V("design:type",Object)],OU.prototype,"primaryMenuWidth",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"videoId",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"titleHeadlineXs",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"titleHeadlineS",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"titleHeadlineM",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"titleHashtagBlackLinkified",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"titleHashtagGreyLinkified",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.C([_.O(),_.V("design:type",Object)],OU.prototype,"shouldForceIconOnly",void 0);
_.C([_.Wh("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"updateOwnerAndDescriptionPosition",null);_.C([_.Wh("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.C([_.W("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"descriptionText",null);_.C([_.W("videoSecondaryInfoRenderer.headerRuns"),_.V("design:type",Array),_.V("design:paramtypes",[])],OU.prototype,"headerRuns",null);
_.C([_.O({value:!1}),_.W("commentsEntryPointHeaderRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"hasTeaser",null);_.C([_.O({value:!1,reflectToAttribute:!0}),_.W("videoMetadataCarousel"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"hasTeaserCarousel",null);_.C([_.O({value:3}),_.W("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"descriptionMaxLines",null);
_.C([_.W("videoSecondaryInfoRenderer.metadataRowContainer"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"collapsibleMetadataRows",null);_.C([_.W("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"alwaysVisibleMetadataRows",null);
_.C([_.W("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OU.prototype,"hasInlineStructuredDescription",null);_.C([_.W("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OU.prototype,"showInlineStructuredDescription",null);
_.C([_.W("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"descriptionExpandCommand",null);_.C([_.W("videoSecondaryInfoRenderer.owner"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"videoOwnerCommand",null);_.C([_.O({reflectToAttribute:!0}),_.W("videoPrimaryInfoRenderer.videoActions"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OU.prototype,"flexMenuEnabled",null);
_.C([_.O({selector:_.yh,reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"isFullscreen",void 0);_.C([_.O({selector:_.b_,reflectToAttribute:!0}),_.V("design:type",Object)],OU.prototype,"isTheaterMode",void 0);_.C([_.W("descriptionText","useFadedScrimDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OU.prototype,"showAttributedStringDescription",null);
_.C([_.W("descriptionText","useFadedScrimDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OU.prototype,"showFormattedStringDescription",null);_.C([_.W("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OU.prototype,"showFadedStructuredDescription",null);
_.C([_.Wh("videoPrimaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"videoPrimaryInfoRendererChanged",null);_.C([_.W("videoPrimaryInfoRenderer.title"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"videoTitle",null);_.C([_.W("videoPrimaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],OU.prototype,"noEndpoints",null);
_.C([_.Wh("videoSecondaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"videoSecondaryInfoRendererChanged",null);_.C([_.za("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"structuredDescriptionContentRendererChanged",null);
_.C([_.za("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"updateTopLevelIconsOnly",null);_.C([_.za("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"updateShouldForceIconOnly",null);_.C([_.za("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"moveActionsElement",null);
_.C([_.EB("yt-text-inline-expander-expand-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"onYtTextInlineExpanderExpandClicked",null);_.C([_.EB("yt-text-inline-expander-collapse-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.C([_.EB("yt-text-inline-expander-expanded-changed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],OU.prototype,"onRenderStamperFinished",null);
_.C([_.EB("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"onYtExpanderMoreTapped",null);_.C([_.EB("yt-expander-less-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"onYtExpanderLessTapped",null);
_.C([_.za("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"registerPanel",null);_.C([_.za("videoSecondaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"resetDescriptionState",null);
_.C([_.za("structuredDescriptionContentRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"parseColorSamplingData",null);_.C([_.za("hoverColor","isDark"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OU.prototype,"updateHoverColor",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-watch-metadata"})],OU);
_.b(OU,"ytd-watch-metadata",function(){if($qO!==void 0)return $qO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return $qO=F},{mode:2});_.ttS=function(F){_.OP.call(this);this.JSC$22880_watchApi=F;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;LgS(this);fWZ(this);aW$(this);jXK(this);cGZ(this);F1S(this);qdK(this)};
_.M(_.ttS,_.OP);var aW$=function(F){var q=function(){_.E("kevlar_is_pupi_enabled")||P7(F)};
F.JSC$22880_watchApi.getRoot().addEventListener("yt-player-updated",q);F.addOnDisposeCallback(function(){F.JSC$22880_watchApi.getRoot().removeEventListener("yt-player-updated",q)})},cGZ=function(F){if(_.E("kevlar_endscreen_auto_theater_mode")){var q=F.JSC$22880_watchApi.subscribeToActiveChanged(function(){u6t(F)},!1);
F.addOnDisposeCallback(q)}},LgS=function(F){var q,t,u,J,g;
_.p(function(Y){if(Y.nextAddress==1)return Y.yield(F.JSC$22880_watchApi.playerApi,2);q=Y.yieldResult;t=function(Q){Q=!!Q;JOS(F)&&(Q=Q?2:1,_.kA.getInstance().setState(Q,!0,!1))};
u=function(Q){Q&&_.dnt(_.u1().getState())&&(_.ec(F.JSC$22880_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),F.temporaryTheaterMode=!0)};
J=function(Q){_.E("kevlar_player_update_autonav_on_new_data")&&Q.type==="newdata"&&(_.E("kevlar_is_pupi_enabled")||P7(F))};
g=function(Q){F.onPlayerStateChange(Q)};
_.E("kevlar_endscreen_auto_theater_mode")&&q.addEventListener("onAutonavCancelled",u);q.addEventListener("onAutonavChangeRequest",t);q.addEventListener("onVideoDataChange",J);q.addEventListener("onStateChange",g);F.addOnDisposeCallback(function(){q.removeEventListener("onAutonavChangeRequest",t);q.removeEventListener("onVideoDataChange",J);q.removeEventListener("onStateChange",g);_.E("kevlar_endscreen_auto_theater_mode")&&q.removeEventListener("onAutonavCancelled",u)});
_.WA(Y)})},fWZ=function(F){F.JSC$22880_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){F.autonavCancelledBySignal=!0;
_.E("kevlar_is_pupi_enabled")||P7(F)});
F.JSC$22880_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(q,t,u){t&&P7(F,u)});
F.JSC$22880_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){JOS(F)&&_.kA.getInstance().setState(2,!0,!0)});
F.JSC$22880_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){JOS(F)&&_.kA.getInstance().setState(1,!0,!0)});
F.addOnDisposeCallback(function(){F.JSC$22880_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");F.JSC$22880_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");F.JSC$22880_watchApi.unregisterActionHandler("yt-enable-autoplay-command");F.JSC$22880_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},jXK=function(F){var q=F.JSC$22880_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){qdK(F)}),t=F.JSC$22880_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){F1S(F)});
F.addOnDisposeCallback(function(){F.JSC$22880_watchApi.unsubscribeByKey(q);F.JSC$22880_watchApi.unsubscribeByKey(t)})},qdK=function(F){F.autonavCancelledBySignal=!1;
_.E("kevlar_is_pupi_enabled")||P7(F)},F1S=function(F){var q=F.JSC$22880_watchApi.getWatchNextResponse(),t,u;
var J=(q=(u=_.n(q==null?void 0:(J=q.playerOverlays)==null?void 0:(t=J.playerOverlayRenderer)==null?void 0:t.autonavToggle,_.CTv))==null?void 0:u.enabled)?2:1;_.E("kevlar_is_pupi_enabled")?_.kA.getInstance().setState(J,!1,!1):P7(F);_.E("web_persist_server_autonav_state_on_client")&&typeof q==="boolean"&&_.bVA(J===2)},JOS=function(F){if(F.autonavCancelledBySignal)return!1;
var q,t,u,J;return!!((q=F.JSC$22880_watchApi.getWatchNextResponse())==null?0:(t=q.contents)==null?0:(u=t.twoColumnWatchNextResults)==null?0:(J=u.autoplay)==null?0:J.autoplay)};
_.ttS.prototype.onPlayerStateChange=function(F){if(F===0){F=!_.kA.getInstance().isAutoplaySetExplicitly();var q=this.JSC$22880_watchApi.getWatchNextResponse(),t,u,J,g;q=_.n(q==null?void 0:(t=q.contents)==null?void 0:(u=t.twoColumnWatchNextResults)==null?void 0:(J=u.autoplay)==null?void 0:(g=J.autoplay)==null?void 0:g.autoplayExplicitChoiceDialogRenderer,_.gAn);JOS(this)&&F&&q&&_.oc.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:q},popupType:"DIALOG"}})}else u6t(this)};
var u6t=function(F){F.temporaryTheaterMode&&(F.temporaryTheaterMode=!1,_.ec(F.JSC$22880_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},P7=function(F,q){q=q===void 0?!1:q;
var t;_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$22880_watchApi.playerApi,2);t=u.yieldResult;JOS(F)?t.setAutonavState(_.kA.getInstance().getState(),q):t.setAutonavState(1,q);_.WA(u)})};var svn={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.lVS=function(F){_.OP.call(this);var q=this;this.JSC$22885_watchApi=F;var t=this.JSC$22885_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){gR9(q)});
this.addOnDisposeCallback(function(){q.JSC$22885_watchApi.unsubscribeByKey(t)});
gR9(this)};
_.M(_.lVS,_.OP);var gR9=function(F){var q=F.JSC$22885_watchApi.getPlayerResponse(),t=F.JSC$22885_watchApi.getWatchNextResponse();if(!_.Ih$(q==null?void 0:q.playabilityStatus,t==null?void 0:t.playerOverlays)){var u;var J=q==null?void 0:(u=q.playabilityStatus)==null?void 0:u.errorScreen}F.JSC$22885_watchApi.provideRenderingData("ERROR_SCREEN",J)};var Xje=_.ld(function(F){var q=F.data;F=_.E("web_watch_video_details_hide_subtitle");var t=_.E("web_watch_video_details_single_line_title"),u=_.zq(function(){var Q=q().onTap;Q&&_.sV().resolve(_.gN).resolveCommand(Q)}),J={},g={},Y={};
return _.Z("yt-player-overlay-video-details-renderer",{class:_.Ec("ytPlayerOverlayVideoDetailsRendererHost",(J.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.E("web_watch_video_details_transparent_background"),J)),"on:click":u,role:"button"},_.Z("h2",{class:_.Ec("ytPlayerOverlayVideoDetailsRendererTitle",(g.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return t},g))},_.Z(_.rv,{text:function(){return q().title}})),_.Z("div",{class:_.Ec("ytPlayerOverlayVideoDetailsRendererSubtitle",
(Y.ytPlayerOverlayVideoDetailsRendererHideSubtitle=F,Y))},_.Z(_.rv,{text:function(){return q().subtitle}})))},"Rk");var x6={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},YdS=_.ld(function(F){var q=F.data;var t=_.dC(_.yh),u=_.E("web_watch_action_bar_resize_buttons"),J=_.E("web_watch_video_action_dsdvb"),g=_.E("delhi_modern_web_player_icons")&&!_.E("enable_web_delhi_icons");F=_.E("delhi_modern_web_player_disable_frosted_glass");var Y=function(){return u&&!t()?{size:"M"}:void 0},Q={};
return _.Z("yt-player-quick-action-buttons",{class:_.Ec("ytPlayerQuickActionButtonsHost",(Q.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!t()},Q.ytPlayerQuickActionButtonsHostDisableBackdropFilter=F,Q))},_.Z(_.Gn,{each:function(){var e=q();
if(g){e=JSON.parse(JSON.stringify(e));for(var r=_.X(e),N=r.next();!N.done;N=r.next()){var w=N.value,k=void 0;N=_.n((k=_.n(w,_.at))==null?void 0:k.toggleButtonViewModel,_.XZ);var z=void 0;k=_.n((z=_.n(w,_.fu))==null?void 0:z.toggleButtonViewModel,_.XZ);z=_.n(w,_.gX);w=_.n(w,_.XZ);if(N)k=_.n(N.defaultButtonViewModel,_.gX),N=_.n(N.toggledButtonViewModel,_.gX),k&&k.iconName&&(k.iconName=x6[k.iconName]),N&&N.iconName&&(N.iconName=x6[N.iconName]);else if(k)N=_.n(k.defaultButtonViewModel,_.gX),k=_.n(k.toggledButtonViewModel,
_.gX),N&&N.iconName&&(N.iconName=x6[N.iconName]),k&&k.iconName&&(k.iconName=x6[k.iconName]);else if(z)z.iconName&&(z.iconName=x6[z.iconName]);else if(w){N=_.n(w.defaultButtonViewModel,_.gX);k=_.n(w.toggledButtonViewModel,_.gX);w=void 0;if((w=N)==null?0:w.iconName)N.iconName=x6[N.iconName];N=void 0;if((N=k)==null?0:N.iconName)k.iconName=x6[k.iconName]}}}J&&(e=wsQ(e));return e}},function(e){return _.Z(_.Tl,{data:function(){return e}},{buttonViewModel:function(r){return _.Z(_.AB,{data:r.data,
buttonOverrides:Y})},
likeButtonViewModel:function(r){return _.Z(_.Jp,{data:r.data,buttonShapeOverrideables:Y})},
dislikeButtonViewModel:function(r){return _.Z(_.uj,{data:r.data,buttonShapeOverrideables:Y})},
toggleButtonViewModel:function(r){return _.Z(_.j9,{data:r.data,buttonShapeOverrides:Y})}})}))},"Sk");_.QvQ=function(F){_.OP.call(this);var q=this;this.JSC$22889_watchApi=F;F=_.X(_.N3({},void 0,"n9wCVe"));this.quickActionsViewModel=F.next().value;this.setQuickActionsViewModel=F.next().value;F=_.X(_.N3({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=F.next().value;this.setPlayerOverlayVideoDetailsRenderer=F.next().value;var t=this.JSC$22889_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pjS(q)});
this.addOnDisposeCallback(function(){q.JSC$22889_watchApi.unsubscribeByKey(t)});
pjS(this)};
_.M(_.QvQ,_.OP);
var pjS=function(F){var q,t,u,J,g,Y,Q,e,r,N,w,k,z,T;_.p(function(P){if(P.nextAddress==1)return P.yield(F.JSC$22889_watchApi.playerApi,2);q=P.yieldResult;t=F.JSC$22889_watchApi.getWatchNextResponse();g=(u=t)==null?void 0:(J=u.playerOverlays)==null?void 0:J.playerOverlayRenderer;Q=_.n((Y=g)==null?void 0:Y.fullscreenQuickActionsBar,_.C4v);(r=(e=F).setQuickActionsViewModel)==null||r.call(e,Q||{});Q&&e4S(F,q);k=(N=g)==null?void 0:(w=N.videoDetails)==null?void 0:w.playerOverlayVideoDetailsRenderer;(T=(z=
F).setPlayerOverlayVideoDetailsRenderer)==null||T.call(z,k||{});k&&Zqt(F,q);_.WA(P)})},e4S=function(F,q){if(!F.quickActionButtonsContainer)if(q.setFullscreenQuickActions){F.quickActionButtonsContainer=document.createElement("div");
q.setFullscreenQuickActions(F.quickActionButtonsContainer);var t=function(){return F.quickActionsViewModel().quickActionButtons||[]},u=_.xI(F.quickActionButtonsContainer,function(){return _.Z(YdS,{data:t})},"Tk");
F.addOnDisposeCallback(function(){q.setFullscreenQuickActions(void 0);u()})}else _.bz(new _.D0("setFullscreenQuickActions not defined",{playerApi:Object.keys(q),
isReady:q.isReady(),appState:q.getAppState()}))},Zqt=function(F,q){if(!F.playerOverlayVideoDetailsRendererContainer)if(q.setPlayerOverlayVideoDetailsRenderer){F.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
q.setPlayerOverlayVideoDetailsRenderer(F.playerOverlayVideoDetailsRendererContainer);var t=_.xI(F.playerOverlayVideoDetailsRendererContainer,function(){return _.Z(Xje,{data:F.playerOverlayVideoDetailsRenderer})},"Uk");
F.addOnDisposeCallback(function(){q.setPlayerOverlayVideoDetailsRenderer(void 0);t()})}else _.bz(new _.D0("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(q),
isReady:q.isReady(),appState:q.getAppState()}))};_.Al=function(F){_.OP.call(this);var q=this;this.JSC$22895_watchApi=F;this.JSC$22895_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;F=_.yL(_.u1(),_.yh,function(t){q.onFullscreenChanged(t)});
this.addOnDisposeCallback(F);F=_.yL(_.u1(),_.CX,function(t){q.onWatchScroll(t)});
this.addOnDisposeCallback(F);_.E("kevlar_watch_while_v2")&&(F=_.yL(_.u1(),_.yX,function(t){R4y(q,t)}),this.addOnDisposeCallback(F));
rOI(this);NPn(this);wjZ();this.onWatchScroll(_.CX(_.u1().getState()));_.yG("START_IN_FULL_WINDOW_MODE")&&this.JSC$22895_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.M(_.Al,_.OP);var rOI=function(F){F.JSC$22895_watchApi.registerActionHandler("yt-fullscreen-change-action",function(q){var t=F.JSC$22895_watchApi.isActive();q&&!t||_.u1().dispatch(_.pj({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!q}}))});
F.addOnDisposeCallback(function(){F.JSC$22895_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},NPn=function(F){var q,t;
_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$22895_watchApi.playerApi,2);q=u.yieldResult;t=function(){F.onFullerscreenEduClicked()};
q.addEventListener("onFullerscreenEduClicked",t);F.addOnDisposeCallback(function(){q.removeEventListener("onFullerscreenEduClicked",t)});
_.WA(u)})};
_.Al.prototype.onFullscreenChanged=function(F){var q=this,t;return _.p(function(u){if(u.nextAddress==1)return q.isFullscreen=!!_.gY(),u.yield(q.JSC$22895_watchApi.playerApi,2);t=u.yieldResult;q.JSC$22895_miniplayerActive||t.setFauxFullscreen(q.isFullscreen);if(F&&(q.JSC$22895_watchApi.focusOnPlayer(),!q.fullerscreenEduButtonShownThisPlayback)){q.fullerscreenEduButtonShownThisPlayback=!0;var J=_.vG("yt-fullerscreen-edu-button-shown-count")||0;_.A8("yt-fullerscreen-edu-button-shown-count",J+1,31536E3);
q.updateFullerscreenEduButtonSubtleModeState()}_.WA(u)})};
var R4y=function(F,q){var t;_.p(function(u){if(u.nextAddress==1)return F.JSC$22895_miniplayerActive=q,u.yield(F.JSC$22895_watchApi.playerApi,2);t=u.yieldResult;t.setFauxFullscreen(!F.JSC$22895_miniplayerActive&&F.isFullscreen);_.WA(u)})};
_.Al.prototype.onWatchScroll=function(F){var q=this,t,u;return _.p(function(J){if(J.nextAddress==1)return _.E("external_fullscreen_with_edu")?J.yield(q.JSC$22895_watchApi.playerApi,2):J.return();t=J.yieldResult;u=F<=0;q.shouldShowFullerscreenEdu!==u&&(q.shouldShowFullerscreenEdu=u,t.updateFullerscreenEduButtonVisibility(!q.shouldShowFullerscreenEdu));_.WA(J)})};
_.Al.prototype.onFullerscreenEduClicked=function(){this.JSC$22895_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var F=_.vG("yt-fullerscreen-edu-button-click-count")||0;_.A8("yt-fullerscreen-edu-button-click-count",F+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Al.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var F=this,q,t,u,J,g,Y;return _.p(function(Q){if(Q.nextAddress==1)return q=_.vG("yt-fullerscreen-edu-button-click-count")||0,t=_.vG("yt-fullerscreen-edu-button-shown-count")||0,u=_.YE("external_fullscreen_button_click_threshold"),J=_.YE("external_fullscreen_button_shown_threshold"),g=q>=u||t>=J,Q.yield(F.JSC$22895_watchApi.playerApi,2);Y=Q.yieldResult;Y.updateFullerscreenEduButtonSubtleModeState(g);_.WA(Q)})};
_.Al.prototype.disposeInternal=function(){_.OP.prototype.disposeInternal.call(this);var F=_.gY();_.E("kevlar_exit_fullscreen_leaving_watch")&&F&&_.lN(F)};
var wjZ=function(){if(_.E("web_watch_add_viewport_meta_tag")){var F=document.querySelector("meta[name=viewport]"),q=document.head;q&&!F&&(F=document.createElement("meta"),F.name="viewport",F.content="width=device-width, initial-scale=1.0, viewport-fit=cover",q.appendChild(F))}};_.kyO=function(F){_.OP.call(this);var q=this;this.JSC$22899_watchApi=F;this.jobId=0;this.pendingRequestId=void 0;var t=this.JSC$22899_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){iql(q)});
this.addOnDisposeCallback(function(){q.JSC$22899_watchApi.unsubscribeByKey(t)});
iql(this)};
_.M(_.kyO,_.OP);var ERt=function(F){_.mI.cancelJob(F.jobId);F.pendingRequestId=void 0},iql=function(F){ERt(F);
var q=ihK(F.JSC$22899_watchApi.getWatchNextResponse());if(q){var t=250,u,J=(u=_.n(q,_.yhE))==null?void 0:u.initialDelayMs;_.E("web_watch_updated_metadata_server_initial_delay")&&J&&(t=J);F.jobId=_.mI.addLowPriorityJob(function(){return F.fetchUpdatedMetadata(q)},t)}};
_.kyO.prototype.fetchUpdatedMetadata=function(F,q){var t=this,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H;return _.p(function(d){switch(d.nextAddress){case 1:q&&(u={continuation:q});if(!_.E("web_get_updated_metadata_fantasy_panel_continuation_params")){d.jumpTo(2);break}J=_.sV().resolve(_.f_);g="PAsports_fantasy";return d.yield(J.isVisible(g,!0),3);case 3:d.yieldResult&&(r=(Q=(Y=J).getUpdatePanelContinuationData)==null?void 0:(e=Q.call(Y,g))==null?void 0:e.updatePanelContinuationRequest)&&(u||(u={}),u.clientParams=
{panelContinuationParams:{panelContinuation:r}});case 2:N=_.sV().resolve(_.da);if(!N)return _.mH(Error("Ko")),d.return();w={};t.pendingRequestId=w;return d.yield(_.aI(N,F,u),4);case 4:k=d.yieldResult;if(w!==t.pendingRequestId)return d.return();P=(z=k)==null?void 0:(T=z.continuation)==null?void 0:T.timedContinuationData;((v=P)==null?0:v.continuation)&&((H=P)==null?0:H.timeoutMs)&&(t.jobId=_.mI.addLowPriorityJob(function(){return t.fetchUpdatedMetadata(F,P.continuation)},P.timeoutMs));
_.WA(d)}})};
_.kyO.prototype.disposeInternal=function(){_.OP.prototype.disposeInternal.call(this);ERt(this)};var z4S=_.ld(function(F){var q=_.zq(function(){var u=F.data().videoId;if(F.active())u=_.gj(u),_.sV().resolve(_.gN).resolveCommand(u);else{var J=F.playerApi(),g=J.getAvailableAudioTracks(),Y,Q,e=(Y=F.sourceVideoConfig().audioTracks)==null?void 0:(Q=Y.find(function(r){return r.isDefaultForSource}))==null?void 0:Q.id;
if(g=g.find(function(r){return r.getLanguageInfo().getId()===e}))J.setAudioTrack(g,!0),J.setCompositeParam({activeVideoId:u}),F.setActiveSourceId(u)}}),t={};
return _.Z("ytw-composite-source-video-overlay",{class:_.Ec("ytwCompositeSourceVideoOverlayHost",(t.ytwCompositeSourceVideoOverlayActive=F.active,t.ytwCompositeSourceVideoOverlayInteracting=F.interacting,t)),style:_.Mo({left:function(){var u;return((u=F.data().topLeftCornerX)!=null?u:0)*100+"%"},
top:function(){var u;return((u=F.data().topLeftCornerY)!=null?u:0)*100+"%"},
width:function(){var u;return((u=F.data().width)!=null?u:0)*100+"%"},
height:function(){var u;return((u=F.data().height)!=null?u:0)*100+"%"}}),
"on:click":q},_.Z("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Vk");var oRl=_.ld(function(F){var q=_.X(_.np(function(){var Y,Q=(Y=F.data().sources)==null?void 0:Y.find(function(e){return e.isActive});
if(Q)return Q.videoId})),t=q.next().value,u=q.next().value;
q=_.X(_.N3(!1,void 0,"WI4BUb"));var J=q.next().value,g=q.next().value;return _.Z("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.zq(function(){g(!0)}),
"on:mouseout":_.zq(function(){g(!1)})},_.Z(_.R,{cond:function(){return F.data().sources},
then:function(Y){return _.Z(_.Gn,{each:Y},function(Q){return _.Z(z4S,{data:Q,active:function(){return Q.videoId===t()},
setActiveSourceId:u,interacting:J,playerApi:F.playerApi,sourceVideoConfig:function(){return kvZ(F.compositeVideoConfig(),Q.videoId)}})})}}))},"Wk");_.TPO=function(F){_.OP.call(this);this.JSC$22915_watchApi=F;F=_.X(_.N3({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=F.next().value;this.setCompositeVideoOverlayRenderer=F.next().value;F=_.X(_.N3({},void 0,"OlaJpc"));this.compositeVideoConfig=F.next().value;this.setCompositeVideoConfig=F.next().value;nRl(this);Mtq(this)};
_.M(_.TPO,_.OP);var nRl=function(F){var q=F.JSC$22915_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Mtq(F)});
F.addOnDisposeCallback(function(){F.JSC$22915_watchApi.unsubscribeByKey(q)})},Gyl=function(F){var q;
return _.p(function(t){if(t.nextAddress==1)return t.yield(F.JSC$22915_watchApi.playerApi,2);q=t.yieldResult;q.setCompositeVideoOverlayRendererComponent(F.container);_.WA(t)})},D3q=function(F){var q;
return _.p(function(t){if(t.nextAddress==1)return t.yield(F.JSC$22915_watchApi.playerApi,2);q=t.yieldResult;q.setCompositeVideoOverlayRendererComponent(void 0);_.WA(t)})},W1Q=function(F){var q,t;
return _.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$22915_watchApi.playerApi,2);q=u.yieldResult;F.container=document.createElement("div");t=_.xI(F.container,function(){return _.Z(oRl,{data:F.compositeVideoOverlayRenderer,compositeVideoConfig:F.compositeVideoConfig,playerApi:q})},"Xk");
F.addOnDisposeCallback(t);_.WA(u)})},Mtq=function(F){var q,t,u,J,g,Y,Q,e;
_.p(function(r){return r.nextAddress==1?(q=F.JSC$22915_watchApi.getPlayerResponse(),g=_.n((t=q)==null?void 0:(u=t.overlay)==null?void 0:(J=u.playerControlsOverlayRenderer)==null?void 0:J.compositeVideoOverlay,ZlQ),e=(Y=q)==null?void 0:(Q=Y.playerConfig)==null?void 0:Q.compositeVideoConfig,g&&F.setCompositeVideoOverlayRenderer(g),e&&F.setCompositeVideoConfig(e),g&&e?F.container?r.jumpTo(6):r.yield(W1Q(F),6):Oqe(F)?r.yield(D3q(F),0):r.jumpTo(0)):Oqe(F)?r.jumpTo(0):r.yield(Gyl(F),0)})},Oqe=function(F){var q;
return!((q=F.container)==null||!q.parentElement)};
_.TPO.prototype.disposeInternal=function(){Oqe(this)&&D3q(this);_.OP.prototype.disposeInternal.call(this)};_.IVS=function(F){_.OP.call(this);var q=this;this.JSC$22921_watchApi=F;var t=this.JSC$22921_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var u=q.JSC$22921_watchApi.getPlayerResponse();if(u){var J,g;if(u=_.n((J=u.endscreen)==null?void 0:(g=J.endscreenRenderer)==null?void 0:g.hideButton,_.XZ)){var Y;(Y=q.setEndscreenHideButton)==null||Y.call(q,u);P5e(q)}}});
this.addOnDisposeCallback(function(){q.JSC$22921_watchApi.unsubscribeByKey(t)});
F=_.X(_.N3({},void 0,"ER3tqb"));this.endscreenHideButton=F.next().value;this.setEndscreenHideButton=F.next().value;x39(this);AOZ(this);vRS(this)};
_.M(_.IVS,_.OP);
var P5e=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return F.creatorEndscreenHideButtonContainer?u.return():u.yield(F.JSC$22921_watchApi.playerApi,2);q=u.yieldResult;F.creatorEndscreenHideButtonContainer=document.createElement("div");_.jr(F.creatorEndscreenHideButtonContainer,!1);q.setCreatorEndscreenHideButton(F.creatorEndscreenHideButtonContainer);t=_.xI(F.creatorEndscreenHideButtonContainer,function(){return _.Z(_.j9,{data:F.endscreenHideButton,useOutlinedIcon:!0})},"Yk");
F.addOnDisposeCallback(function(){t();var J;(J=q)==null||J.setCreatorEndscreenHideButton(void 0)});
_.WA(u)})},x39=function(F){var q,t;
_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$22921_watchApi.playerApi,2);q=u.yieldResult;t=function(){F.creatorEndscreenHideButtonContainer&&_.jr(F.creatorEndscreenHideButtonContainer,!0)};
q.addEventListener("endscreenelementshown",t);F.addOnDisposeCallback(function(){var J;(J=q)==null||J.removeEventListener("endscreenelementshown",t)});
_.WA(u)})},AOZ=function(F){var q=function(){F.creatorEndscreenHideButtonContainer&&_.jr(F.creatorEndscreenHideButtonContainer,!1)},t=F.JSC$22921_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",q),u=F.JSC$22921_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",q);
F.addOnDisposeCallback(function(){F.JSC$22921_watchApi.unsubscribeByKey(t);F.JSC$22921_watchApi.unsubscribeByKey(u)})},vRS=function(F){F.JSC$22921_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(q){var t=_.n(q,lql);
F.JSC$22921_watchApi.playerApi.then(function(u){u==null||u.setCreatorEndscreenVisibility(!!t.hide)})});
F.addOnDisposeCallback(function(){F.JSC$22921_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.m3S=function(F){_.OP.call(this);this.JSC$22927_watchApi=F;HqI(this)};
_.M(_.m3S,_.OP);var HqI=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$22927_watchApi.playerApi,2);q=u.yieldResult;t=function(J){_.u1().dispatch(_.pj({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:J}}))};
q.addEventListener("onRetroModeChanged",t);F.addOnDisposeCallback(function(){q.removeEventListener("onRetroModeChanged",t)});
_.WA(u)})};var DDS=0,VJ=0,Oh$=0;var $3e;$3e=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.v7=function(F){_.OP.call(this);this.JSC$22940_watchApi=F;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;bqO(this)};
_.M(_.v7,_.OP);
var bqO=function(F){var q,t,u;_.p(function(J){if(J.nextAddress==1)return J.yield(F.JSC$22940_watchApi.playerApi,2);q=J.yieldResult;if(F.isDisposed())return J.return();F.sessionStorage=_.vlJ("yt-sleep-timer");F.sessionStorage||_.bz(new _.D0("SessionStorage for Sleep Timer is undefined."));((t=F.sessionStorage)==null?void 0:t.get("yt-sleep-timer"))==="true"&&(A9t(),(u=F.sessionStorage)==null||u.remove("yt-sleep-timer"),q.syncVolume());yOS(F,q);C5$(F,q);d3y(F,q);_.WA(J)})},yOS=function(F,q){var t=function(r){F.onSleepTimerSettingsChanged(r,
q)},u=function(r){F.onPlayerStateChange(r,q)},J=function(){F.onLoopChange(q)},g=function(){F.onCloseMiniplayer(q)},Y=function(){GvO(q,(0,_.gB)(),v7O(q),F.selectedOption==="End of video",q.getPlayerState()!==1)},Q=function(){F.onSeekComplete(q)},e=function(){_.mI.cancelJob(VJ);
var r=q.getCurrentTime()>=q.getDuration(),N=F.selectedOption==="End of video"||F.selectedOption==="End of playlist"&&!n7t(F.playlistId);r&&N&&Vty(F,q)};
q.addEventListener("onSleepTimerSettingsChanged",t);q.addEventListener("onLoopChange",J);q.addEventListener("onLoopRangeChange",J);q.addEventListener("onStateChange",u);q.addEventListener("onCloseMiniplayer",g);q.addEventListener("onSleepTimerFeatureAvailable",Y);q.addEventListener("SEEK_COMPLETE",Q);q.addEventListener("onAdStart",e);F.addOnDisposeCallback(function(){q.removeEventListener("onSleepTimerSettingsChanged",t);q.removeEventListener("onLoopChange",J);q.removeEventListener("onLoopRangeChange",
J);q.removeEventListener("onStateChange",u);q.removeEventListener("onCloseMiniplayer",g);q.removeEventListener("onSleepTimerFeatureAvailable",Y);q.removeEventListener("SEEK_COMPLETE",Q);q.removeEventListener("onAdStart",e)})},C5$=function(F,q){var t=F.JSC$22940_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var u=q.getVideoData().video_id,J,g=(J=z9I(F.JSC$22940_watchApi))==null?void 0:J.playlistId;
F.pauseAutonavPlayback&&(q.pauseVideo(),q.syncVolume(),F.pauseAutonavPlayback=!1);if(F.selectedOption==="End of video"&&u!==F.videoId)Iq(F,q);else{if(F.selectedOption==="End of playlist"){J=n7t(F.playlistId);if(g!==F.playlistId){Iq(F,q);break a}J?J&&U3l(F,q):Sd$(F,q)}F.videoId=u;F.playlistId=g}}});
F.addOnDisposeCallback(function(){F.JSC$22940_watchApi.unsubscribeByKey(t)})},d3y=function(F,q){var t=_.sV().resolve(_.sb),u=_.yL(t,_.t$t,function(g){g&&F.selectedOption!=="Off"&&Iq(F,q)}),J=F.JSC$22940_watchApi.subscribeToActiveChanged(function(g){var Y,Q;
return _.p(function(e){if(e.nextAddress==1)return e.yield(_.$A().navigationFinishPromise,2);Y=!_.tfn();Q=_.sV().resolve(_.m4).isMiniplayerActive();g||!E7K(F.selectedOption)||Q||Y||Iq(F,q);_.WA(e)})},!1);
t=_.yL(t,function(g){return g.entities.playlistLoopStateEntity||{}},function(g){g=g===void 0?{}:g;
var Y=o7I(F.JSC$22940_watchApi);if(Y){var Q;((Q=g[Y])==null?void 0:Q.state)==="PLAYLIST_LOOP_STATE_ALL"&&E7K(F.selectedOption)&&Iq(F,q)}});
F.addOnDisposeCallback(u);F.addOnDisposeCallback(t);F.addOnDisposeCallback(J)};
_.v7.prototype.onSleepTimerSettingsChanged=function(F,q){switch(F){case "Off":this.selectedOption!=="Off"&&Iq(this,q);break;case "End of video":case "End of playlist":h4y(this,F,q);break;default:h4y(this,F,q,$3e.get(F))}};
_.v7.prototype.onLoopChange=function(F){(F.getLoopVideo()||F.getLoopRange())&&E7K(this.selectedOption)&&Iq(this,F)};
_.v7.prototype.onCloseMiniplayer=function(F){E7K(this.selectedOption)&&Iq(this,F)};
var h4y=function(F,q,t,u){K1O(F,t);F.selectedOption=q;F.videoId=t.getVideoData().video_id;F.playlistId="";var J;(J=F.sessionStorage)==null||J.set("yt-sleep-timer","true");F.adjustmentsCount++;GvO(t,(0,_.gB)(),v7O(t),F.selectedOption==="End of video");if(F.selectedOption==="End of video")Sd$(F,t),BPt(F,t);else if(F.selectedOption==="End of playlist"){BPt(F,t);var g,Y;F.playlistId=(Y=(g=z9I(F.JSC$22940_watchApi))==null?void 0:g.playlistId)!=null?Y:"";n7t(F.playlistId)||Sd$(F,t)}else u&&(F.presetFadeSchedulerId=
_.AC(_.mI,function(){Pwe(t,15E3)},u-15E3),F.presetPauseSchedulerId=_.AC(_.mI,function(){Vty(F,t)},u),Wv$(t,(0,_.gB)(),u))},Vty=function(F,q){if(F.JSC$22940_watchApi.isActive()){var t={dismissDialogEndpoint:{}};
var u={commandExecutorCommand:{commands:[t,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};t={buttonViewModel:{title:_.oD("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:t}}};u={buttonViewModel:{title:_.oD("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:u}}};var J={dialogHeaderViewModel:{headline:{content:_.oD("SLEEP_TIMER_ENDED_TITLE")}}},
g={basicContentViewModel:{paragraphs:[{text:{content:_.oD("SLEEP_TIMER_ENDED_TEXT")}}]}};t={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:J,content:g,footer:{panelFooterViewModel:{primaryButton:t,secondaryButton:u,shouldHideDivider:!0}}}}}}};_.sV().resolve(_.gN).resolveCommand(t,{form:{element:F}})}else A9t();L19(F,!1);fVZ(F,q);q.pauseVideo();_.kA.getInstance().getState()===2&&q.getPlayerState()===5&&(F.pauseAutonavPlayback=!0)},Iq=function(F,q){L19(F,!0);
fVZ(F,q);A9t()},fVZ=function(F,q){K1O(F,q);
F.selectedOption="Off";F.videoId="";F.playlistId="";F.adjustmentsCount=0;var t;(t=F.sessionStorage)==null||t.remove("yt-sleep-timer");_.mI.cancelJob(DDS);q.resetSleepTimerMenuSettings()},L19=function(F,q){q={timer_length_adjustment_times_during_session:F.adjustmentsCount-1,
is_session_cancelled:q};switch(F.selectedOption){case "Off":q.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":q.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":q.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:q.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",q.option_duration_in_minutes=$3e.get(F.selectedOption)/6E4}_.IJ("sleepTimerSessionFinishEvent",q)};
_.v7.prototype.onPlayerStateChange=function(F,q){F===1?GvO(q,(0,_.gB)(),v7O(q),this.selectedOption==="End of video"):F===0?(_.mI.cancelJob(VJ),q.setVideoTimeLeft(TJ9(0,0))):F===2&&_.mI.cancelJob(VJ);this.selectedOption==="End of video"?F===0?Vty(this,q):F===2&&xDS(q):this.selectedOption!=="End of playlist"||n7t(this.playlistId)||(F===0?Vty(this,q):F===2&&xDS(q))};
_.v7.prototype.onSeekComplete=function(F){F.getPlayerState()===2&&GvO(F,(0,_.gB)(),v7O(F),this.selectedOption==="End of video",!0)};
_.v7.prototype.onCueRangeEnter=function(F,q){F==="sleep-timer-fade-audio"&&Pwe(q,(q.getDuration()-q.getProgressState().current)*1E3)};
_.v7.prototype.onCueRangeExit=function(F,q){F==="sleep-timer-fade-audio"&&q.getPlayerState()!==0&&xDS(q,!0)};
var Sd$=function(F,q){q.addCueRange("sleep-timer-fade-audio",q.getDuration()-15,q.getDuration());q.addEventListener("onCueRangeEnter",function(t){F.onCueRangeEnter(t,q)});
q.addEventListener("onCueRangeExit",function(t){F.onCueRangeExit(t,q)})},U3l=function(F,q){q.removeCueRange("sleep-timer-fade-audio");
q.removeEventListener("onCueRangeEnter",function(t){F.onCueRangeEnter(t,q)});
q.removeEventListener("onCueRangeExit",function(t){F.onCueRangeExit(t,q)})},K1O=function(F,q){E7K(F.selectedOption)?U3l(F,q):(_.mI.cancelJob(F.presetPauseSchedulerId),_.mI.cancelJob(F.presetFadeSchedulerId),F.presetPauseSchedulerId=0,F.presetFadeSchedulerId=0);
xDS(q,!0)},BPt=function(F,q){q.setLoop(!1);
q.setLoopVideo(!1);q.setLoopRange(null);(F=o7I(F.JSC$22940_watchApi))&&_.sV().resolve(_.sb).dispatch(_.Gl("playlistLoopStateEntity",F,{key:F,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.F8O=function(F){_.OP.call(this);this.JSC$22943_watchApi=F;aVZ(this);jvZ(this);cOS(this);F=F.getRoot();if(F.is==="ytd-watch-flexy"||F.is==="ytd-watch-grid")F.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.UnI();_.E("web_watch_log_theater_mode_cookie_state")&&_.om.get("wide","0")==="1"&&_.yIf("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.M(_.F8O,_.OP);var aVZ=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$22943_watchApi.playerApi,2);q=u.yieldResult;t=function(J){qKS(F,!!J)};
q.addEventListener("SIZE_CLICKED",t);F.addOnDisposeCallback(function(){q.removeEventListener("SIZE_CLICKED",t)});
_.WA(u)})},jvZ=function(F){F.JSC$22943_watchApi.registerActionHandler("yt-toggle-theater-mode",function(q,t){qKS(F,q,t===void 0?!0:t)});
F.addOnDisposeCallback(function(){F.JSC$22943_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.F8O.prototype.getState=function(){return _.b_(_.u1().getState())};
var qKS=function(F,q,t){t=t===void 0?!0:t;var u,J,g,Y=_.E("enable_player_resize_transition")&&!!F.JSC$22943_watchApi.getWatchNextResponse()&&!((u=F.JSC$22943_watchApi.getWatchNextResponse())==null?0:(J=u.contents)==null?0:(g=J.twoColumnWatchNextResults)==null?0:g.conversationBar);_.vRC(function(){_.u1().dispatch(_.pj({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:q}}));_.E("theater_mode_scroll_to_top_killswitch")||F.JSC$22943_watchApi.scrollWatchTo(0,!1);_.gY()&&_.E("external_fullscreen")&&_.lN(document.documentElement);
cOS(F);t&&_.nE("wide",q?"1":"0",-1);_.ec(F.JSC$22943_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);F.JSC$22943_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:q});q&&_.UnI()},{shouldWrap:Y})},cOS=function(F){var q;
_.p(function(t){if(t.nextAddress==1)return t.yield(F.JSC$22943_watchApi.playerApi,2);q=t.yieldResult;q.setSizeStyle(!0,F.getState());_.WA(t)})};var JNe=function(F){_.OP.call(this);var q=this;this.playerApi=F;this.timeToPanelSyncKeyMap={};var t;if(F==null?0:(t=F.isReady)==null?0:t.call(F)){t=_.yL(_.sV().resolve(_.sb),function(J){return J.entities.timedMarkersListSyncEntity||{}},function(J,g){J=J===void 0?{}:J;
g=g===void 0?{}:g;for(var Y=_.X(Object.keys(g)),Q=Y.next();!Q.done;Q=Y.next())Q=Q.value,J[Q]!==g[Q]&&t6K(q,g[Q]);g=_.X(Object.keys(J));for(Y=g.next();!Y.done;Y=g.next())Y=Y.value,Q=J[Y],q.timeToPanelSyncKeyMap[Y]&&ubQ(q,Q)});
this.addOnDisposeCallback(t);var u=function(J){q.onCueRangeEnter(J)};
F.addEventListener("onCueRangeEnter",u);this.addOnDisposeCallback(function(){var J;(J=F.removeEventListener)==null||J.call(F,"onCueRangeEnter",u)})}};
_.M(JNe,_.OP);
var ubQ=function(F,q){var t,u;if((t=F.playerApi)==null?0:(u=t.isReady)==null?0:u.call(t)){var J;if((t=q==null?void 0:(J=q.timedListData)==null?void 0:J.sections)&&q!=null&&q.key)for(J=_.X(t),t=J.next();!t.done;t=J.next())if(t=t.value,t.timedSyncDataList&&t.sectionId)for(u=0;u<t.timedSyncDataList.length;u++){var g=t.timedSyncDataList[u];g.syncItemId&&F.playerApi.addCueRange(t.sectionId+"_"+q.key+"_"+g.syncItemId,Number(g.videoTimeMs)/1E3,u===t.timedSyncDataList.length-1?0x8000000000000:Number(t.timedSyncDataList[u+
1].videoTimeMs)/1E3)}}},t6K=function(F,q){var t,u;
if((t=F.playerApi)==null?0:(u=t.isReady)==null?0:u.call(t)){var J;if((t=q==null?void 0:(J=q.timedListData)==null?void 0:J.sections)&&q!=null&&q.key)for(J=_.X(t),t=J.next();!t.done;t=J.next())if(t=t.value,t.timedSyncDataList&&t.sectionId){u=_.X(t.timedSyncDataList);for(var g=u.next();!g.done;g=u.next())g=g.value,g.syncItemId&&F.playerApi.removeCueRange(t.sectionId+"_"+q.key+"_"+g.syncItemId)}}};
JNe.prototype.onCueRangeEnter=function(F){for(var q=_.X(Object.keys(this.timeToPanelSyncKeyMap)),t=q.next();!t.done;t=q.next()){t=t.value;var u=_.X(F.split("_"+t+"_")),J=u.next().value;u=u.next().value;if(J&&u){F=_.sV().resolve(_.sb);q=this.timeToPanelSyncKeyMap[t];var g=_.VyW(F.getState(),q);t=s5O(t,J,u);if(t===-1)break;t={activeSyncId:u,activeItemIndex:t,activeSectionInfo:{sectionIdentifier:J}};g?F.dispatch(_.I4("markersEngagementPanelSyncEntity",q,t)):F.dispatch(_.Gl("markersEngagementPanelSyncEntity",
q,Object.assign({},{key:q},t)));break}}};
var s5O=function(F,q,t){var u=_.sV().resolve(_.sb),J,g;F=(J=be$(u.getState(),F))==null?void 0:(g=J.timedListData)==null?void 0:g.sections;if(!F)return-1;J=0;g=_.X(F);for(F=g.next();!F.done;F=g.next()){F=F.value;u=F.timedSyncDataList||[];if(F.sectionId===q)return q=u.findIndex(function(Y){return Y.syncItemId===t}),q===-1?q:J+q;
J+=u.length}return-1};_.X_t=function(F){_.OP.call(this);var q=this;this.JSC$22956_watchApi=F;this.unresolvedCommands=[];this.JSC$22956_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(t){gIn(q,t)});
this.addOnDisposeCallback(function(){q.JSC$22956_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
lAl(this)};
_.M(_.X_t,_.OP);var lAl=function(F){var q;_.p(function(t){if(t.nextAddress==1)return t.yield(F.JSC$22956_watchApi.playerApi,2);q=t.yieldResult;if(F.isDisposed())return t.return();F.timedSyncObserver=new JNe(q);F.unresolvedCommands.length&&(F.unresolvedCommands.forEach(function(u){return gIn(F,u)}),F.unresolvedCommands=[]);
_.kW(F,F.timedSyncObserver);_.WA(t)})},gIn=function(F,q){if(F.timedSyncObserver){var t=_.n(q,YS9);
if(t&&t.timedSyncEntityKey&&t.panelSyncEntityKey){F=F.timedSyncObserver;q=t.timedSyncEntityKey;var u=t.panelSyncEntityKey;t=!!t.isEnabled;t=t===void 0?!0:t;var J=_.sV().resolve(_.sb);J=be$(J.getState(),q);t?F.timeToPanelSyncKeyMap[q]||(F.timeToPanelSyncKeyMap[q]=u,ubQ(F,J)):(delete F.timeToPanelSyncKeyMap[q],t6K(F,J))}}else F.unresolvedCommands.push(q)};var YKy=_.ld(function(F){var q=F.data,t=F.maybeLogSmartSkipClientData,u=null,J=null,g=_.E("web_enable_auto_focus_for_timely_action_button"),Y=function(){u=document.activeElement},Q=function(){q().smartSkipMetadata&&(u=document.activeElement,_.rbD(function(){return J}))},e=function(N){if(q().smartSkipMetadata&&(!N||N.key!=="Enter")){u&&u.isConnected&&(_.rbD(function(){return u}),u=null);
var w;(w=J)==null||w.blur()}};
F=_.zq(function(){t==null||t(!0,q());return!1});
var r=_.l_(_.CH(function(){return q().rendererContext},{onTap:function(N,w){w({disableClickTracking:!0})}}),_.lR({visibilityCallback:function(N){if(g)N?J&&q().smartSkipMetadata&&(Q(),document.addEventListener("focusin",Y)):(document.removeEventListener("focusin",Y),e());
else if(N){N=_.b6(q().rendererContext);var w=Number(q().maxVisibleDurationMilliseconds),k,z=(k=_.n(q().rendererContext,_.vX))==null?void 0:k.label;N&&w&&z&&(k={label:z,command:N,durationMs:w},_.sV().resolve(_.h5).enqueue(k))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.AN(function(){if(g){var N;if((J=(N=r.value)==null?void 0:N.querySelector("button"))&&q().smartSkipMetadata){var w;(w=r.value)==null||w.addEventListener("keydown",e)}}});
_.vj(function(){g&&(J&&q().smartSkipMetadata&&J.removeEventListener("keydown",e),document.removeEventListener("focusin",Y),e())});
return _.Z("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:r,"on:click":F},_.Z(_.Tl,{data:function(){return q().content}},{buttonViewModel:_.AB}))},"Zk");var p_$=_.ld(function(F){var q=F.data,t=F.playerApi,u=_.sV().resolve(_.ieD);F=_.X(_.np(function(){q()}));
var J=F.next().value,g=F.next().value,Y=function(){return mDI(q(),J())},Q=function(r,N){var w,k,z=(w=_.n(N==null?void 0:N.rendererContext,_.W9))==null?void 0:(k=w.loggingDirectives)==null?void 0:k.trackingParams;
if((N=N==null?void 0:N.smartSkipMetadata)&&N.loggingData&&(k=N.loggingData,N=k.algorithmId,w=k.startMilliseconds,k=k.endMilliseconds,N&&w!==void 0&&k!==void 0)){var T,P;r={smartSkipData:Object.assign({},{versionName:N,startMediaTimeMs:w,endMediaTimeMs:k},r&&{userInteractionMediaTimeMs:(Math.floor(((T=_.g0())==null?void 0:(P=T.getPlayer())==null?void 0:P.getCurrentTime())||0)*1E3).toString()})};T=_.yb();var v;z&&(v=_.Av(z));T&&v&&_.qp(T,v,r)}},e=function(r,N){var w=mDI(q(),r);
if(w){var k=_.n(w,HhS),z;if(z=N)z=t(),w=_.n(w,HhS),z=w!=null&&w.smartSkipMetadata?!(z==null?0:z.isSameMarkerTypeVisible((w==null?void 0:w.smartSkipMetadata.markerKey)||"")):!0;if(z){var T,P;(k==null?0:(T=k.smartSkipMetadata)==null?0:(P=T.loggingData)==null?0:P.isCounterfactual)||(Q(!1,k),g(r))}else N||J()!==r||g(void 0)}};
_.AO(function(){var r=q().timelyActions;if(r){r=_.X(r);for(var N=r.next();!N.done;N=r.next()){N=_.n(N.value,HhS);var w=void 0;(w=N)!=null&&w.cueRangeId&&u.timelyActionsMap.set(N.cueRangeId,e)}_.vj(function(){u.timelyActionsMap.clear()})}},"PSaw4c");
return _.Z("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.Z(_.Tl,{data:Y},{timelyActionViewModel:function(r){return _.Z(YKy,{data:r.data,maybeLogSmartSkipClientData:function(){Q(!0,_.n(Y(),HhS))}})}}))},"$k");_.e$e=function(F){_.OP.call(this);this.JSC$22968_watchApi=F;F=_.X(_.N3({},void 0,"UN7k5e"));this.timelyActionsOverlay=F.next().value;this.setTimelyActionsOverlay=F.next().value;Q5$(this)};
_.M(_.e$e,_.OP);var Q5$=function(F){var q,t,u,J;_.p(function(g){if(g.nextAddress==1)return ZIS(F),R$K(F),F.timelyActionsContainer=document.createElement("div"),g.yield(F.JSC$22968_watchApi.playerApi,2);q=g.yieldResult;(u=(t=q).insertTimelyActionUi)==null||u.call(t,F.timelyActionsContainer);J=_.xI(F.timelyActionsContainer,function(){return _.Z(p_$,{data:F.timelyActionsOverlay,playerApi:q})},"al");
F.addOnDisposeCallback(J);_.WA(g)})},R$K=function(F){var q=F.JSC$22968_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ZIS(F)});
F.addOnDisposeCallback(function(){F.JSC$22968_watchApi.unsubscribeByKey(q)})},ZIS=function(F){var q=F.JSC$22968_watchApi.getWatchNextResponse();
if(q){var t,u;if(q=_.n((t=q.playerOverlays)==null?void 0:(u=t.playerOverlayRenderer)==null?void 0:u.timelyActionsOverlayViewModel,pSt)){var J;(J=F.setTimelyActionsOverlay)==null||J.call(F,q)}}};_.N2t=function(F){_.OP.call(this);this.JSC$22972_watchApi=F;rNe(this)};
_.M(_.N2t,_.OP);var rNe=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$22972_watchApi.playerApi,2);q=u.yieldResult;t=function(J){_.oc.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.n(J,_.Joq)},popupType:"TOAST"}})};
q.addEventListener("onYtShowToast",t);F.addOnDisposeCallback(function(){q.removeEventListener("onYtShowToast",t)});
_.WA(u)})};var w_Z,EIS,T2$,iIl,kn$,M6O,oIe,nIO,GnS,DM$;w_Z=!1;_.z$t=function(F){_.OP.call(this);this.JSC$22975_watchApi=F;this.fullscreen=this.theater=!1;iIl(this);kn$(this);EIS(this)};
_.M(_.z$t,_.OP);EIS=function(F){var q,t,u;_.p(function(J){if(J.nextAddress==1)return J.yield(F.JSC$22975_watchApi.playerApi,2);q=J.yieldResult;if(F.isDisposed())return J.return();t=F.JSC$22975_watchApi.getElement("CINEMATICS");if(!t)return J.return();F.JSC$22975_cinematicController=new _.k8(t,q);_.kW(F,F.JSC$22975_cinematicController);_.Gty(F.JSC$22975_cinematicController);oIe(F,_.AFy());u=F.JSC$22975_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(g){nIO(F,g)});
F.addOnDisposeCallback(function(){F.JSC$22975_watchApi.unsubscribeByKey(u)});
M6O(F);nIO(F,F.JSC$22975_cinematicController.isAllowed());_.E("web_cinematic_manager_redux_killswitch")?_.H7(F,F.fullscreen,F.theater):T2$(F);GnS(F);_.WA(J)})};
T2$=function(F){F.fullscreen=_.yh(_.u1().getState());F.theater=_.b_(_.u1().getState());_.H7(F,F.fullscreen,F.theater);var q=_.yL(_.u1(),_.yh,function(u){F.fullscreen=u;_.H7(F,F.fullscreen,F.theater)}),t=_.yL(_.u1(),_.b_,function(u){F.theater=u;
_.H7(F,F.fullscreen,F.theater)});
F.addOnDisposeCallback(q);F.addOnDisposeCallback(t)};
iIl=function(F){var q=F.JSC$22975_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){M6O(F)});
F.addOnDisposeCallback(function(){F.JSC$22975_watchApi.unsubscribeByKey(q)})};
kn$=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$22975_watchApi.playerApi,2);q=u.yieldResult;t=function(J){oIe(F,J)};
q.addEventListener("cinematicSettingsToggleChange",t);F.addOnDisposeCallback(function(){q.removeEventListener("cinematicSettingsToggleChange",t)});
_.WA(u)})};
M6O=function(F){var q=F.JSC$22975_watchApi.getWatchNextResponse(),t;q=_.n(q==null?void 0:(t=q.pageVisualEffects)==null?void 0:t[0],_.SQ);var u;(u=F.JSC$22975_cinematicController)==null||_.W$y(u,q)};
oIe=function(F,q){var t;(t=F.JSC$22975_cinematicController)==null||_.DAq(t,q);DM$(F)};
nIO=function(F,q){var t;_.p(function(u){if(u.nextAddress==1)return _.E("kevlar_watch_cinematics_invisible")&&(q=!1),u.yield(F.JSC$22975_watchApi.playerApi,2);t=u.yieldResult;t.updateCinematicSettings(q);DM$(F);_.WA(u)})};
GnS=function(F){var q=_.TV();if(_.E("kevlar_measure_ambient_mode_idle")&&!q.getFlag(192)&&!w_Z){w_Z=!0;var t=_.W2(_.mI,function(){_.sV().resolve(_.xv5).start(1E4)},5E3);
F.addOnDisposeCallback(function(){_.mI.cancelJob(t);_.sV().resolve(_.xv5).stop()})}};
_.H7=function(F,q,t){F.fullscreen=q;F.theater=t;var u;(u=F.JSC$22975_cinematicController)==null||u.setFullscreen(F.fullscreen,F.theater);if(_.E("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(F.theater||F.fullscreen){var J;(J=F.JSC$22975_cinematicController)==null||_.O3Z(J)}else if((F=F.JSC$22975_cinematicController)!=null){var g;(g=F.currentCinematicEffect)==null||g.pause()}};
DM$=function(F){if(_.E("web_cinematic_theater_mode")||_.E("web_cinematic_fullscreen")){var q;F.JSC$22975_watchApi.getRoot().toggleCinematicsActive(!((q=F.JSC$22975_cinematicController)==null||!q.isEnabled()))}};_.xMO=function(F){_.OP.call(this);var q=this;this.JSC$22978_watchApi=F;this.commentsReady=!1;this.setCommentsJobId=0;F=_.yL(_.u1(),_.CX,function(){W8$(q)});
this.addOnDisposeCallback(F);var t=this.JSC$22978_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){OIy(q)}),u=this.JSC$22978_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){OIy(q)});
this.addOnDisposeCallback(function(){q.JSC$22978_watchApi.unsubscribeByKey(t);q.JSC$22978_watchApi.unsubscribeByKey(u)});
var J=function(){_.E("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Pnq(q,"false")};
this.JSC$22978_watchApi.getRoot().addEventListener("yt-page-data-will-update",J);this.addOnDisposeCallback(function(){q.JSC$22978_watchApi.getRoot().removeEventListener("yt-page-data-will-update",J)});
OIy(this)};
_.M(_.xMO,_.OP);var OIy=function(F){F.commentsReady=!1;_.mI.cancelJob(F.setCommentsJobId);F.setCommentsJobId=_.W2(_.mI,function(){W8$(F)},1E3)},W8$=function(F){if(!F.commentsReady){_.y0("cmi");
_.mI.cancelJob(F.setCommentsJobId);var q,t,u,J,g=(q=F.JSC$22978_watchApi.getWatchNextResponse())==null?void 0:(t=q.contents)==null?void 0:(u=t.twoColumnWatchNextResults)==null?void 0:(J=u.results)==null?void 0:J.results.contents;q=void 0;if(g&&g.length)for(g=_.X(g),t=g.next();!t.done;t=g.next())if(t=t.value,J=u=void 0,((u=t)==null?void 0:(J=u.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section"){_.E("web_watch_provide_undefined_comments")?q=t.itemSectionRenderer:F.JSC$22978_watchApi.provideRenderingData("COMMENTS",
t.itemSectionRenderer);Pnq(F,"true");break}_.E("web_watch_provide_undefined_comments")&&F.JSC$22978_watchApi.provideRenderingData("COMMENTS",q);F.commentsReady=!0;F.JSC$22978_watchApi.dispatchEvent("yt-watch-comments-ready")}},Pnq=function(F,q){var t;
(t=F.JSC$22978_watchApi.getElement("COMMENTS"))==null||t.setAttribute("canScheduleJobs",q)};_.mMQ=function(F){_.OP.call(this);var q=this;this.JSC$22981_watchApi=F;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.E("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.E("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.E("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.YE("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)ANK(this);
else{var t=this.JSC$22981_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){vI9(q);mA(q)}),u=this.JSC$22981_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$6(q);
mA(q)});
this.JSC$22981_watchApi.getRoot().is==="ytd-watch-grid"&&_.E("swatcheroo_pbs_load_grid")&&(IAI(this),HIt(this));this.addOnDisposeCallback(function(){q.JSC$22981_watchApi.unsubscribeByKey(t);q.JSC$22981_watchApi.unsubscribeByKey(u);_.mI.cancelJob(q.provideRichGridJobId)});
vI9(this);$6(this)}};
_.M(_.mMQ,_.OP);var ANK=function(F){var q=F.JSC$22981_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){F.providePlayerJobId=_.Ze(_.mI,function(){vI9(F);mA(F)},F.provideAllDataDelayMs)}),t=F.JSC$22981_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){F.provideWatchNextJobId=_.Ze(_.mI,function(){$6(F);
mA(F)},F.provideAllDataDelayMs)}),u=F.JSC$22981_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){F.provideWatchNextJobId=_.Ze(_.mI,function(){$6(F);
mA(F)},F.provideAllDataDelayMs)});
F.JSC$22981_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.W2(_.mI,function(){vI9(F);$6(F);mA(F)},100)});
F.JSC$22981_watchApi.addPageDisposeJob(function(){_.mI.cancelJob(F.provideWatchNextJobId);_.mI.cancelJob(F.providePlayerJobId)});
F.addOnDisposeCallback(function(){F.JSC$22981_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");F.JSC$22981_watchApi.unsubscribeByKey(q);F.JSC$22981_watchApi.unsubscribeByKey(t);F.JSC$22981_watchApi.unsubscribeByKey(u);_.mI.cancelJob(F.providePlayerJobId);_.mI.cancelJob(F.provideWatchNextJobId)});
vI9(F);$6(F)},vI9=function(F){var q=F.JSC$22981_watchApi.getPlayerResponse(),t,u,J=(u=q==null?void 0:(t=q.playabilityStatus)==null?void 0:t.messageRenderers)!=null?u:[],g,Y;
q=(Y=q==null?void 0:(g=q.playabilityStatus)==null?void 0:g.messages)!=null?Y:[];g=_.X(q);for(Y=g.next();!Y.done;Y=g.next())J.push({alertRenderer:{text:_.FK(Y.value),type:"WARNING"}});F.JSC$22981_watchApi.provideRenderingData("ALERTS",J)},$6=function(F){var q=[],t,u,J,g=F.JSC$22981_watchApi.getWatchNextResponse(),Y,Q,e,r,N=g==null?void 0:(Y=g.contents)==null?void 0:(Q=Y.twoColumnWatchNextResults)==null?void 0:(e=Q.results)==null?void 0:(r=e.results)==null?void 0:r.contents;
if(N)for(Y=_.X(N),Q=Y.next();!Q.done;Q=Y.next())if(Q=Q.value,Q.videoPrimaryInfoRenderer)var w=Q;else if(Q.videoSecondaryInfoRenderer){var k=Q;r=e=void 0;Q=Object.assign({},(e=Q.videoSecondaryInfoRenderer)==null?void 0:(r=e.metadataRowContainer)==null?void 0:r.metadataRowContainerRenderer);if(Q.rows&&Q.collapsedItemCount!==void 0){Q.rows=Q.rows.slice(0,Q.collapsedItemCount).filter(function(qD){return!!qD.richMetadataRowRenderer});
Q.collapsedItemCount=Q.rows.length;var z={metadataRowContainerRenderer:Q}}}else if(Q.merchandiseShelfRenderer)var T=Q;else if(Q.ticketShelfRenderer)var P=Q;else if(Q.expandableMetadataRenderer)var v=Q;else if(Q.itemSectionRenderer)if(e=Q.itemSectionRenderer.contents,r=void 0,F.directlyProvideComments&&((r=Q.itemSectionRenderer)==null?void 0:r.sectionIdentifier)==="comment-item-section")_.y0("cmi"),F.JSC$22981_watchApi.provideRenderingData("COMMENTS",Q.itemSectionRenderer);else if(e)for(Q=_.X(e),e=
Q.next();!e.done;e=Q.next())if(e=e.value,e.commentsEntryPointHeaderRenderer)var H=e;else if(e.clarificationRenderer||e.infoPanelContainerRenderer||e.infoPanelContentRenderer||e.emergencyOneboxRenderer){q.push(e);var d=d||!!k}else e.limitedStateMessageRenderer?u=e:e.videoMetadataCarouselViewModel&&(J=e);if(_.E("web_watch_merch_in_sd_when_ticket_shelf_present")&&T&&P){var a=T;T=void 0}if(F.provideWatchNextSecondaryResults){var S,K,h;F.JSC$22981_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
g==null?void 0:(S=g.contents)==null?void 0:(K=S.twoColumnWatchNextResults)==null?void 0:(h=K.secondaryResults)==null?void 0:h.secondaryResults)}if(F.JSC$22981_watchApi.getRoot().is==="ytd-watch-grid"){var c,rf;F.JSC$22981_watchApi.provideRenderingData("LIVE_CHAT",g==null?void 0:(c=g.contents)==null?void 0:(rf=c.twoColumnWatchNextResults)==null?void 0:rf.conversationBar)}var Zv,kP,n3,o_;(S=g==null?void 0:(Zv=g.contents)==null?void 0:(kP=Zv.twoColumnWatchNextResults)==null?void 0:(n3=kP.secondaryResults)==
null?void 0:(o_=n3.secondaryResults)==null?void 0:o_.offerModule)&&(S.donationShelfRenderer||S.donationUnavailableRenderer)&&F.JSC$22981_watchApi.getRoot().is!=="ytd-watch-grid"&&(t=S);Zv=F.JSC$22981_watchApi.getPlayerResponse();if(!Zv||!_.Ih$(Zv.playabilityStatus,g==null?void 0:g.playerOverlays)){var df;if(g==null?0:(df=g.contents)==null?0:df.singleColumnWatchNextResults){var m$,gx;var Hf=g==null?void 0:(m$=g.contents.singleColumnWatchNextResults.results)==null?void 0:(gx=m$.results)==null?void 0:
gx.contents}else{var Zw,cy,wx,Rj;df=!!(N==null?0:(Zw=N[0])==null?0:(cy=Zw.itemSectionRenderer)==null?0:(wx=cy.contents)==null?0:(Rj=wx[0])==null?0:Rj.backgroundPromoRenderer);var xO,DQ;Zw=!!(g==null?0:(xO=g.contents)==null?0:(DQ=xO.twoColumnWatchNextResults)==null?0:DQ.secondaryResults);df&&!Zw&&(Hf=N)}}N=q[0];xO=q[1];d&&q.length===1&&(xO=N,N=void 0);F.JSC$22981_watchApi.provideRenderingData("PRIMARY_INFO",w);F.JSC$22981_watchApi.provideRenderingData("SECONDARY_INFO",k);F.JSC$22981_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
H);F.JSC$22981_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",J);F.JSC$22981_watchApi.provideRenderingData("CLARIFICATION",N);F.JSC$22981_watchApi.provideRenderingData("RICH_METADATA",z);F.JSC$22981_watchApi.provideRenderingData("MERCH_SHELF",T);_.E("web_watch_merch_in_sd_when_ticket_shelf_present")&&F.JSC$22981_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",a);F.JSC$22981_watchApi.provideRenderingData("TICKET_SHELF",P);F.JSC$22981_watchApi.provideRenderingData("LIMITED_STATE",u);F.JSC$22981_watchApi.getRoot().is!==
"ytd-watch-grid"&&F.JSC$22981_watchApi.provideRenderingData("DONATION_SHELF",t);F.JSC$22981_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Hf);F.JSC$22981_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",xO);F.JSC$22981_watchApi.provideRenderingData("EXPANDABLE_METADATA",v);if(F.swatcherooProvideAllDataOnScheduledJob){var fe,sM,FL,Ev,e5,z1;w=g==null?void 0:(fe=g.contents)==null?void 0:(sM=fe.twoColumnWatchNextResults)==null?void 0:(FL=sM.secondaryResults)==null?void 0:(Ev=FL.secondaryResults)==
null?void 0:(e5=Ev.results)==null?void 0:(z1=e5[0])==null?void 0:z1.richGridRenderer;F.JSC$22981_watchApi.provideRenderingData("RICH_GRID_RENDERER",w)}};
_.mMQ.prototype.hasCompanionAds=function(F){var q,t;return(t=F==null?void 0:(q=F.adPlacements)==null?void 0:q.some(function(u){var J,g,Y,Q;return(u==null?void 0:(J=u.adPlacementRenderer)==null?void 0:(g=J.renderer)==null?void 0:g.actionCompanionAdRenderer)||(u==null?void 0:(Y=u.adPlacementRenderer)==null?void 0:(Q=Y.renderer)==null?void 0:Q.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?t:!1};
var mA=function(F){if(!_.E("swaterdoo_ps_wn_handle_ks")){F.swatcherooProvideAllDataOnScheduledJob||HIt(F,3E3);var q=F.JSC$22981_watchApi.getPlayerResponse(),t,u,J,g,Y,Q=(t=F.JSC$22981_watchApi.getWatchNextResponse())==null?void 0:(u=t.contents)==null?void 0:(J=u.twoColumnWatchNextResults)==null?void 0:(g=J.secondaryResults)==null?void 0:(Y=g.secondaryResults)==null?void 0:Y.offerModule;q=F.hasCompanionAds(q);var e,r;t=(Q==null?void 0:(e=Q.tvfilmOfferModuleRenderer)==null?void 0:e.clientShouldSuppressIfCompanionAdDisplayed)||
(Q==null?void 0:(r=Q.unlimitedOfferModuleRenderer)==null?void 0:r.suppressIfCompanionAds);e=q&&t;F.JSC$22981_watchApi.getRoot().is==="ytd-watch-grid"&&F.JSC$22981_watchApi.provideRenderingData("OFFER_MODULE",e?void 0:Q)}},HIt=function(F,q){_.E("swatcheroo_pbs_load_grid")&&(F.provideRichGridJobId&&_.mI.cancelJob(F.provideRichGridJobId),F.provideRichGridJobId=_.Ze(_.mI,function(){F.provideRichGridJobId=0;
var t,u,J,g,Y,Q,e,r=(t=F.JSC$22981_watchApi.getWatchNextResponse())==null?void 0:(u=t.contents)==null?void 0:(J=u.twoColumnWatchNextResults)==null?void 0:(g=J.secondaryResults)==null?void 0:(Y=g.secondaryResults)==null?void 0:(Q=Y.results)==null?void 0:(e=Q[0])==null?void 0:e.richGridRenderer;r&&F.JSC$22981_watchApi.provideRenderingData("RICH_GRID_RENDERER",r)},q))},IAI=function(F){var q,t;
_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$22981_watchApi.playerApi,2);q=u.yieldResult;t=function(){F.onPlaybackStart()};
q.addEventListener("onPlaybackStartExternal",t);F.addOnDisposeCallback(function(){q.removeEventListener("onPlaybackStartExternal",t)});
_.WA(u)})};
_.mMQ.prototype.onPlaybackStart=function(){HIt(this)};_.bIO=function(F){_.OP.call(this);var q=this;this.JSC$22991_watchApi=F;F.playerApi.then(function(t){q.player=t});
this.gestures=new _.hPy(this.JSC$22991_watchApi.getRoot(),F.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.yEn(_.u1().getState())&&_.CX(_.u1().getState())<=0)if(_.yh(_.u1().getState())){var t;(t=q.player)==null||t.toggleFullscreen()}else _.ec(q.JSC$22991_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
$M9(this)};
_.M(_.bIO,_.OP);var $M9=function(F){var q=_.yL(_.u1(),_.yh,function(t){F.onFullscreenChanged(t)});
F.addOnDisposeCallback(q);q=_.yL(_.u1(),_.CX,function(t){F.gestures&&(t>0?F.gestures.detach():F.gestures.attach())});
F.addOnDisposeCallback(q)};
_.bIO.prototype.onFullscreenChanged=function(F){this.gestures&&this.gestures.update(F)};_.Cny=function(F){_.OP.call(this);var q=this;this.JSC$22994_watchApi=F;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(F.subscribeToActiveChanged(function(t){q.onActiveChanged(t)}));
yNO(this)};
_.M(_.Cny,_.OP);var dMl=function(F){if(_.E("swatcheroo_page_dispose_all_watch_data"))F.pageDisposalDataTypes=Object.values(svn).filter(function(t){return t!=="PLAYLIST"});
else if(_.E("swatcheroo_page_dispose_rich_grid")){var q;(q=F.pageDisposalDataTypes)==null||q.push("RICH_GRID_RENDERER")}},yNO=function(F){_.E("swatcheroo_enable_ghost_cards")&&(dMl(F),F.JSC$22994_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.mI.cancelJob(F.clearDataJobId);
F.clearDataJobId=0}),F.runPageDisposeJob=function(){var q=_.sV().resolve(_.JC).getDestinationPageType()==="watch";
F.clearDataJobId=_.Ze(_.mI,F.runClearDataJob,q?0:_.YE("web_watch_delay_page_dispose_ms",1E4))},F.runClearDataJob=function(){V6$(F)},F.runOnYtNavigateAwayFinish=function(){F.clearDataJobId&&(_.mI.cancelJob(F.clearDataJobId),F.clearDataJobId=0,V6$(F))},document.addEventListener("yt-navigate-finish",F.runOnYtNavigateAwayFinish),F.JSC$22994_watchApi.addPageDisposeJob(F.runPageDisposeJob),F.addOnDisposeCallback(function(){F.JSC$22994_watchApi.removePageDisposeJob(F.runPageDisposeJob);
F.JSC$22994_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",F.runOnYtNavigateAwayFinish)}))},V6$=function(F){F.pageDisposalDataTypes.forEach(function(q){F.JSC$22994_watchApi.provideRenderingData(q,void 0)});
F.clearDataJobId=0};
_.Cny.prototype.onActiveChanged=function(F){F&&((F=document.querySelector("#watch-page-skeleton"))&&_.Mq(F),UMS(this),document.body.removeAttribute("no-y-overflow"),_.yG("IS_SHELL_LOAD")&&_.I77())};
var UMS=function(F){_.p(function(q){if(q.nextAddress==1)return q.yield(F.JSC$22994_watchApi.playerApi,2);_.Sx();_.WA(q)})};var SKK;SKK=_.E("kevlar_watch_while_counterfactual")?0:.25;_.L8n=function(F){_.OP.call(this);this.JSC$22997_watchApi=F;this.JSC$22997_watchWhileEnabled=_.E("kevlar_watch_while_v2");this.pipEnabled=_.E("web_enable_pip_on_miniplayer");h$t(this);K8S(this);B2y(this)};
_.M(_.L8n,_.OP);var h$t=function(F){F.JSC$22997_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){fAl(F)});
F.addOnDisposeCallback(function(){F.JSC$22997_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},K8S=function(F){var q,t;
_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$22997_watchApi.playerApi,2);q=u.yieldResult;t=function(){fAl(F)};
q.addEventListener("onCollapseMiniplayer",t);F.addOnDisposeCallback(function(){q.removeEventListener("onCollapseMiniplayer",t)});
_.WA(u)})},B2y=function(F){var q=F.JSC$22997_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&q&&F.JSC$22997_watchWhileEnabled&&(F.playerIntersectionObserver=new IntersectionObserver(function(t){F.handleIntersect(t)},{threshold:[SKK]}),F.playerIntersectionObserver.observe(q),F.addOnDisposeCallback(function(){var t;
(t=F.playerIntersectionObserver)==null||t.disconnect()}))},fAl=function(F){var q,t,u;
_.p(function(J){if(J.nextAddress==1){q=_.sV().resolve(_.JC);t=q.data;u=_.xf(t.response,!1,t.playerResponse);_.$A().miniplayerButtonActivation=!0;if(F.pipEnabled)return _.$A().watchPipActivation=!0,J.jumpTo(2);_.sV().resolve(_.m4).collapse();return J.yield(_.$A().navigationFinishPromise,2)}if(J.nextAddress!=4)return _.$A().currentEndpoint=u.watchEndpoint||null,J.yield(_.sV().resolve(_.m4).activate(F.JSC$22997_watchApi.getElement("PLAYER"),u,t),4);_.$A().userActivation=!0;_.WA(J)})};
_.L8n.prototype.handleIntersect=function(F){aAS(this,F[F.length-1])};
var aAS=function(F,q){F.watchWhileJobId&&_.mI.cancelJob(F.watchWhileJobId);F.watchWhileJobId=_.mI.addLowPriorityJob(function(){var t,u;return _.p(function(J){if(J.nextAddress==1)return F.watchWhileJobId=void 0,t=_.sV().resolve(_.m4),q.intersectionRatio>SKK?t.isMiniplayerActive()?J.yield(t.deactivate(),0):J.jumpTo(0):(u=!t.isMiniplayerActive())?J.yield(j5y(F),5):J.jumpTo(4);J.nextAddress!=4&&(u=J.yieldResult);if(!u)return J.jumpTo(0);_.$A().watchWhileActivation=!0;return J.yield(cN9(F),0)})},100)},
j5y=function(F){return _.p(function(q){return q.nextAddress==1?_.E("kevlar_watch_while_paused")?q.return(!0):q.yield(F.isPlayerPlaying(),2):q.return(q.yieldResult)})};
_.L8n.prototype.isPlayerPlaying=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return t.yield(F.JSC$22997_watchApi.playerApi,2);q=t.yieldResult;return t.return(q.getPlayerStateObject().isPlaying)})};
var cN9=function(F){var q,t;return _.p(function(u){q=_.sV().resolve(_.JC).data;t=_.xf(q.response,!1,q.playerResponse);_.$A().currentEndpoint=t.watchEndpoint||null;return u.yield(_.sV().resolve(_.m4).activate(F.JSC$22997_watchApi.getElement("PLAYER"),t,q),0)})};_.tvQ=function(F){_.OP.call(this);this.JSC$23001_watchApi=F;Fhy(this);qVS(this)};
_.M(_.tvQ,_.OP);var qVS=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$23001_watchApi.playerApi,2);q=u.yieldResult;t=function(J){var g;J.sessionData&&J.sessionData.itct&&(g=J.sessionData.itct);var Y=J.watchEndpoint;if(Y&&J.sessionData&&J.sessionData.autonav)Y=_.lKf(Y,g);else{var Q;Y=_.gj(J.videoId,(Q=J.listId)!=null?Q:void 0,g)}g={endpoint:Y};J.sessionData&&(g.tempData=J.sessionData);F.JSC$23001_watchApi.dispatchEvent("yt-navigate",g)};
q.addEventListener("onPlayVideo",t);F.addOnDisposeCallback(function(){q.removeEventListener("onPlayVideo",t)});
_.WA(u)})},Fhy=function(F){var q=function(t){F.onYtNavigate(t)};
F.JSC$23001_watchApi.getRoot().addEventListener("yt-navigate",q);F.addOnDisposeCallback(function(){F.JSC$23001_watchApi.getRoot().removeEventListener("yt-navigate",q)})};
_.tvQ.prototype.onYtNavigate=function(F){var q=this,t,u,J,g,Y,Q,e,r,N;return _.p(function(w){if(w.nextAddress==1){if(!((t=F.detail)==null?0:(u=t.endpoint)==null?0:u.watchEndpoint))return w.return();J=F.detail.endpoint.watchEndpoint;g=q.JSC$23001_watchApi.getWatchNextResponse();Q=_.n((Y=g)==null?void 0:Y.currentVideoEndpoint,_.Fw);if(!Q)return w.return();if(J.videoId!==Q.videoId||J.playlistId&&J.playlistId!==Q.playlistId||typeof J.startTimeSeconds!=="number")return w.jumpTo(0);F.stopPropagation();
(e=_.E("kevlar_watch_while_v2")&&!_.E("kevlar_watch_while_counterfactual"))&&_.sV().resolve(_.m4).isMiniplayerActive()||q.JSC$23001_watchApi.scrollWatchTo(0,!0);return w.yield(q.JSC$23001_watchApi.playerApi,3)}r=w.yieldResult;N=J.startTimeSeconds;r.seekTo(N,void 0,void 0,void 0,84);r.wakeUpControls();N<r.getDuration()&&r.playVideo();_.WA(w)})};_.JUZ=function(F){_.OP.call(this);var q=this;this.JSC$23004_watchApi=F;var t=this.JSC$23004_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){uR$(q)});
this.addOnDisposeCallback(function(){q.JSC$23004_watchApi.unsubscribeByKey(t)});
uR$(this)};
_.M(_.JUZ,_.OP);var uR$=function(F){var q=F.JSC$23004_watchApi.getWatchNextResponse();if(q){var t,u=[].concat(_.mZ((t=q==null?void 0:q.engagementPanels)!=null?t:[]));u.unshift.apply(u,_.mZ(sme(q)));F.JSC$23004_watchApi.provideRenderingData("ENGAGEMENT_PANELS",u)}},gES=function(F){var q,t,u,J=(q=F.engagementPanels)==null?void 0:(t=q.find(function(z){var T;
return((T=z.engagementPanelSectionListRenderer)==null?void 0:T.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(u=t.engagementPanelSectionListRenderer.content)==null?void 0:u.structuredDescriptionContentRenderer,g;
if(_.n(J==null?void 0:(g=J.items)==null?void 0:g.find(function(z){return!!_.n(z,DyQ)}),DyQ))return!0;
var Y,Q,e,r;if(F=(((Y=F.contents)==null?void 0:(Q=Y.twoColumnWatchNextResults)==null?void 0:(e=Q.results)==null?void 0:(r=e.results)==null?void 0:r.contents)||[]).find(function(z){return z.videoPrimaryInfoRenderer})){var N,w,k;
return(((N=F.videoPrimaryInfoRenderer)==null?void 0:(w=N.videoActions)==null?void 0:(k=w.menuRenderer)==null?void 0:k.flexibleItems)||[]).some(function(z){z=_.n(z,_.XQJ);if(!z)return!1;var T,P;z=(T=z.topLevelButton)==null?void 0:(P=T.buttonViewModel)==null?void 0:P.onTap;if(!z)return!1;T=_.Sg(z);if(!T)return!1;var v;return((v=_.n(T,_.OL))==null?void 0:v.panelIdentifier)==="PAyouchat"})}return!1},sme=function(F){var q=[];
if(!_.E("web_watch_inject_placeholder_fantasy_panel_killswitch")){var t,u,J,g=(t=F.engagementPanels)==null?void 0:(u=t.find(function(Q){var e;return((e=Q.engagementPanelSectionListRenderer)==null?void 0:e.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(J=u.engagementPanelSectionListRenderer.content)==null?void 0:J.structuredDescriptionContentRenderer,Y;
_.n(g==null?void 0:(Y=g.items)==null?void 0:Y.find(function(Q){return!!_.n(Q,JQq)}),JQq)&&(t=_.Ea3("PAsports_fantasy"),t.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",q.push(t))}gES(F)&&(F=_.Ea3("PAyouchat"),F.engagementPanelSectionListRenderer.targetId="PAyouchat",F.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",q.push(F));
return q};_.XcZ=function(F){_.OP.call(this);this.JSC$23007_watchApi=F;l0I(this)};
_.M(_.XcZ,_.OP);var l0I=function(F){F.JSC$23007_watchApi.registerActionHandler("yt-loop-command",function(q){YVt(F,q)});
F.JSC$23007_watchApi.registerActionHandler("yt-repeat-chapter-command",function(q){pc$(F,q)});
F.addOnDisposeCallback(function(){F.JSC$23007_watchApi.unregisterActionHandler("yt-loop-command");F.JSC$23007_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},YVt=function(F,q){var t;
_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$23007_watchApi.playerApi,2);t=u.yieldResult;_.n(q,gnS).loop?(t.setLoopRange({startTimeMs:Number(_.n(q,gnS).startTimeMs),endTimeMs:Number(_.n(q,gnS).endTimeMs),postId:_.n(q,gnS).postId,type:"clips"}),t.playVideo()):t.setLoopRange(null);_.WA(u)})},pc$=function(F,q){var t,u;
_.p(function(J){if(J.nextAddress==1)return J.yield(F.JSC$23007_watchApi.playerApi,2);t=J.yieldResult;u=_.n(q,QKe).repeat;u==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(t.setLoopRange({startTimeMs:Number(_.n(q,QKe).startTimeMs),endTimeMs:Number(_.n(q,QKe).endTimeMs),type:"repeatChapter"}),t.playVideo()):u==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&t.setLoopRange(null);_.WA(J)})};_.eTI=function(F){_.OP.call(this);this.JSC$23012_watchApi=F;QmZ(this)};
_.M(_.eTI,_.OP);var QmZ=function(F){F.JSC$23012_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(q){ZEq(F,q)});
F.addOnDisposeCallback(function(){F.JSC$23012_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},ZEq=function(F,q){var t,u,J,g,Y,Q,e,r,N,w,k;
_.p(function(z){if(z.nextAddress==1)return z.yield(F.JSC$23012_watchApi.playerApi,2);t=z.yieldResult;if(g=(J=(u=_.n(q,eZl))==null?void 0:u.highlightedMenuItemKey)!=null?J:"")(Q=(Y=t).highlightSettingsMenuItem)==null||Q.call(Y,g);if(N=(r=(e=_.n(q,eZl))==null?void 0:e.openMenuItemKey)!=null?r:"")(k=(w=t).openSettingsMenuItem)==null||k.call(w,N);_.WA(z)})};var RTI=_.wj("/youtube/app/watch/player_state","playerStateEntity");_.NNS=function(F){_.OP.call(this);this.JSC$23015_watchApi=F;rUe(this)};
_.M(_.NNS,_.OP);var wcK=function(F){switch(F){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},rUe=function(F){var q,t;
_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$23015_watchApi.playerApi,2);q=u.yieldResult;t=function(J){F.onPlayerStateChange(J)};
q.addEventListener("onStateChange",t);F.addOnDisposeCallback(function(){q.removeEventListener("onStateChange",t)});
_.WA(u)})};
_.NNS.prototype.onPlayerStateChange=function(F){var q=this,t,u;return _.p(function(J){if(J.nextAddress==1)return J.yield(q.JSC$23015_watchApi.playerApi,2);t=J.yieldResult;u=t.getVideoData().video_id;_.tv().dispatch(_.Gl("playerStateEntity",RTI,{key:RTI,playerState:wcK(F),videoId:u}));_.WA(J)})};_.kQS=function(F){_.OP.call(this);var q=this;this.JSC$23019_watchApi=F;this.enableExternalPlaylistPanelInPlayer=_.E("delhi_web_player_use_external_playlist_panel");_.sV().resolve(_.J8).setPlayer(this.JSC$23019_watchApi.getElement("PLAYER"));F=this.JSC$23019_watchApi.subscribeToActiveChanged(function(t){q.onActiveChanged(t)});
this.addOnDisposeCallback(F);iEK(this)};
_.M(_.kQS,_.OP);var iEK=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return F.enableExternalPlaylistPanelInPlayer?u.yield(F.JSC$23019_watchApi.playerApi,2):u.return();q=u.yieldResult;t=function(){if(F.playlistPanelElement)F.playlistPanelElement.onToggleExpanded()};
q.addEventListener("onToggleExternalPlaylistPanel",t);F.addOnDisposeCallback(function(){q.removeEventListener("onToggleExternalPlaylistPanel",t)});
_.WA(u)})};
_.kQS.prototype.onActiveChanged=function(F){var q=this,t=_.sV().resolve(_.J8),u=function(){EES(q)};
F?(this.playlistPanelElement=this.JSC$23019_watchApi.getElement("PLAYLIST_PANEL"))?(t.setPlaylistComponent(this.playlistPanelElement),t.addEventListener("yt-playlist-data-updated",u),this.addOnDisposeCallback(function(){t.removeEventListener("yt-playlist-data-updated",u)}),EES(this)):_.hN(Error("Lo")):(t.removeEventListener("yt-playlist-data-updated",u),t.cancelVideoSkip())};
var EES=function(F){var q=_.sV().resolve(_.J8);F.JSC$23019_watchApi.provideRenderingData("PLAYLIST",q.getPlaylistData())};_.bf=function(F){_.OP.call(this);var q=this;this.JSC$23022_watchApi=F;this.onPageScroll=function(){q.scrollThrottle.fire();q.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.LH(this.onThrottledScroll,200,this);_.kW(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.LH(this.onMastheadThrottledScroll,50,this);_.kW(this,this.mastheadScrollThrottle);this.animation=new _.QD(function(t){q.JSC$23022_watchApi.getRoot().setScrollTop(t)});
F=_.yL(_.u1(),_.yh,function(){q.onFullscreenChanged()});
this.addOnDisposeCallback(F);zTy(this);oEQ(this);this.onThrottledScroll()};
_.M(_.bf,_.OP);
_.bf.prototype.onFullscreenChanged=function(){var F=this,q=this.JSC$23022_watchApi.getRoot();!this.pageScrollElement&&q.pageScrollElement?(this.pageScrollElement=q.pageScrollElement,q.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){F.pageScrollElement&&F.pageScrollElement.removeEventListener("scroll",F.onPageScroll)})):this.pageScrollElement&&!q.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var zTy=function(F){window.addEventListener("scroll",F.onPageScroll);F.addOnDisposeCallback(function(){window.removeEventListener("scroll",F.onPageScroll)})},oEQ=function(F){F.JSC$23022_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(q){a:{var t;
if(t=F.JSC$23022_watchApi.getRoot().contains(q)&&!F.animation.isAnimating()){t=q.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var u,J,g=(q==null?void 0:(u=q.parentElement)==null?void 0:(J=u.parentElement)==null?void 0:J.id)==="fixed-secondary";t=!(t&&g)}if(t){if(_.E("kevlar_watch_scroll_manager_absolute_offset_killswitch"))u=q.offsetTop;else for(u=0,J=q;J!==null;)u+=J.offsetTop,u-=J.scrollTop,J=J.offsetParent;J=u;u=J-24;q=J+q.offsetHeight+24;J=F.JSC$23022_watchApi.getRoot().getPageScrollingElement();
t=F.JSC$23022_watchApi.getRoot().getScrollTop();g=t+J.clientHeight-56;if(u<t+56)q=u-56;else if(q>g)q-=J.clientHeight;else break a;F.scrollWatchTo(Math.max(0,q),!0)}}});
F.addOnDisposeCallback(function(){F.JSC$23022_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.bf.prototype.onThrottledScroll=function(){var F=_.u1(),q=F.dispatch,t=this.JSC$23022_watchApi.getRoot().getScrollTop();q.call(F,_.pj({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:t}}))};
_.bf.prototype.onMastheadThrottledScroll=function(){this.JSC$23022_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23022_watchApi.getRoot().getScrollTop())};
_.bf.prototype.scrollWatchTo=function(F,q){(q===void 0?0:q)?this.animation.start(this.JSC$23022_watchApi.getRoot().getScrollTop(),Math.max(0,F),500):this.JSC$23022_watchApi.getRoot().setScrollTop(F)};_.TNK=function(F){_.OP.call(this);var q=this;this.JSC$23025_watchApi=F;var t=this.JSC$23025_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){nES(q)}),u=this.JSC$23025_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Mvt(q)});
this.addOnDisposeCallback(function(){q.JSC$23025_watchApi.unsubscribeByKey(t);q.JSC$23025_watchApi.unsubscribeByKey(u)});
nES(this);Mvt(this)};
_.M(_.TNK,_.OP);
var nES=function(F){var q,t,u,J=(u=(q=F.JSC$23025_watchApi.getPlayerResponse())==null?void 0:(t=q.videoDetails)==null?void 0:t.title)!=null?u:"";F.JSC$23025_watchApi.dispatchEvent("yt-update-title",J)},Mvt=function(F){var q,t,u,J,g,Y,Q,e=(Q=((Y=(q=F.JSC$23025_watchApi.getWatchNextResponse())==null?void 0:(t=q.contents)==null?void 0:(u=t.twoColumnWatchNextResults)==null?void 0:(J=u.results)==null?void 0:(g=J.results)==null?void 0:g.contents)!=null?Y:[]).find(function(r){return!!r.videoPrimaryInfoRenderer}))==null?
void 0:Q.videoPrimaryInfoRenderer;
(q=_.q1(e==null?void 0:e.title))&&F.JSC$23025_watchApi.dispatchEvent("yt-update-title",q)};_.Dhe=function(F){_.OP.call(this);this.JSC$23028_watchApi=F;GQ9(this)};
_.M(_.Dhe,_.OP);var GQ9=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$23028_watchApi.playerApi,2);q=u.yieldResult;t=function(){F.onYpcContentRequest()};
q.addEventListener("onYpcContentRequest",t);F.addOnDisposeCallback(function(){q.removeEventListener("onYpcContentRequest",t)});
_.WA(u)})};
_.Dhe.prototype.onYpcContentRequest=function(){var F,q,t,u,J,g=(F=this.JSC$23028_watchApi.getWatchNextResponse())==null?void 0:(q=F.contents)==null?void 0:(t=q.twoColumnWatchNextResults)==null?void 0:(u=t.secondaryResults)==null?void 0:(J=u.secondaryResults)==null?void 0:J.offerModule,Y,Q,e,r;F=(r=(e=(Q=(Y=g==null?void 0:g.episodeOfferModuleRenderer)!=null?Y:g==null?void 0:g.movieOfferModuleRenderer)!=null?Q:g==null?void 0:g.unlimitedOfferModuleRenderer)!=null?e:g==null?void 0:g.liveOfferModuleRenderer)!=
null?r:g==null?void 0:g.tvfilmOfferModuleRenderer;var N,w,k;g=(k=g==null?void 0:(N=g.tvfilmOfferModuleRenderer)==null?void 0:(w=N.actionButtons)==null?void 0:w.length)!=null?k:0;w=Math.max(g-1,0);var z,T,P;N=(P=F==null?void 0:(z=F.offerButton)==null?void 0:z.buttonRenderer)!=null?P:F==null?void 0:(T=F.actionButtons)==null?void 0:T[w].buttonRenderer;var v,H;(z=(H=(v=N==null?void 0:N.navigationEndpoint)!=null?v:N==null?void 0:N.serviceEndpoint)!=null?H:N==null?void 0:N.command)&&_.oc.instance.resolveCommand(z)};
}catch(e){_._DumpException(e)}
try{
var wWT,R_9,e_C;_.ZBT=function(){var F=_.m7.clone(QuT),q;return(new _.iz(function(t,u){F.onSuccess=function(J){_.Vcv(J)?t(new e_C(J)):u(new _.MN("Request failed, status="+_.Z0(J),"net.badstatus",J))};
F.onError=function(J){u(new _.MN("Unknown request error","net.unknown",J))};
F.onTimeout=function(J){u(new _.MN("Request timed out","net.timeout",J))};
q=_.iK("//googleads.g.doubleclick.net/pagead/id",F)})).thenCatch(function(t){if(t instanceof _.dI){var u;
(u=q)==null||u.abort()}return _.mW(t)})};
_.rJv=function(F){a:{var q="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(q="EMBEDDED_PLAYER_MODE_PFL");var t=F.raw_embedded_player_response;if(!t&&(F=F.embedded_player_response))try{t=JSON.parse(F)}catch(J){break a}if(t)b:for(var u in R_9)if(R_9[u]==t.embeddedPlayerMode){q=R_9[u];break b}}return q==="EMBEDDED_PLAYER_MODE_PFL"};
_.NQ9=function(){if(_.E("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.ksA())return Error("pf");var F=_.bn("PLAYER_VARS",{});if(_.m7.get(F,"privembed",!1)=="1")return Error("qf");if(_.rJv(F))return Error("rf")};
wWT=function(F){switch(F){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.Uv(F,"unknown result type")}};
_.iBv=function(F,q,t){q=_.weW[q];t={detected:F===0,source:q.ovb,detectionResult:wWT(F),contentCpn:t};_.IJ("biscottiBasedDetection",t);_.h0f.increment(q.ovb,F);q.t9p!==void 0&&_.$I("CATSTAT",_.rF3(F,q))};
_.TZ=function(F,q){var t={};t.key=F;t.value=q;return _.aOv().then(function(u){return new Promise(function(J,g){try{var Y=u.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(t);Y.onsuccess=function(){J()};
Y.onerror=function(){g()}}catch(Q){g(Q)}})})};
_.Ez9=function(){var F=_.YE("user_engagement_experiments_rate_limit_ms"),q=kWQ.get("last-user-engagement-exp-trigger-timestamp");return!q||(0,_.gB)()>=q+F?(kWQ.set("last-user-engagement-exp-trigger-timestamp",(0,_.gB)()),!0):!1};
_.GZ=function(F,q,t,u,J){q=q===void 0?null:q;t=t===void 0?null:t;u=u===void 0?null:u;J=J===void 0?null:J;F={youThereEventType:F};t&&(F.lactThresholdMs=t.lactThresholdMs,F.mediaPosSec=t.promptDelaySec,F.lactServerRequestMs=t.lactServerRequestMs,F.triggerReason=t.triggerReason);J!=null&&(F.renderingMediaPosSec=Math.round(J));q||(q=_.yb());q&&(F.clientScreenNonce=q);u&&(F.clientPlaybackNonce=u);_.IJ("youThere",F)};
R_9={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"};e_C=function(F){this.xhr=F};
_.MN=function(F,q,t){_.Fq.call(this,F+", errorCode="+q);this.errorCode=q;this.xhr=t;this.name="PromiseAjaxError"};
_.M(_.MN,_.Fq);var QuT={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var kWQ=new _.dB("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.pW9=function(F){return _.pj({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:F})};
}catch(e){_._DumpException(e)}
try{
var Vk,cU9,qIS,t1O,u49,JDO,gwO,rDS,NBI,wt9,seq,FIq,ptn,YIq,Ew9;_.jmI=function(){var F=window.location.hash;F.charAt(0)==="#"&&(F=F.charAt(1)==="!"?F.substring(2):F.substring(1));return _.LI(F)};
Vk=function(F,q,t){var u;return _.p(function(J){if(J.nextAddress==1)return J.yield(q(),2);u=J.yieldResult;t(u,F);_.WA(J)})};
cU9=function(){return _.p(function(F){return F.nextAddress==1?F.yield((_.NQ9()!==void 0?_.mW(Error("sf")):_.ZBT()).then(function(){return 1},function(q){if(q.message==="Biscotti id is disabled")return 3;
_.bz("Failed fetching bid");return 0}),2):F.return(F.yieldResult)})};
qIS=function(){var F=_.XK("bm1qa3l0LWhhdmVuLWVtYmVkLXBsYXllciNxb3hobHNkMw=="),q=_.XK("bWUjeWxlaHZ5c2J0bHJ1aWZyYQ==");return document.querySelector(q+FIq+F)?0:1};
t1O=function(){return _.tey(_.e$)};
u49=function(){return _.u73()===0?0:_.JFy()};
JDO=function(){return _.Y9$(_.MDC([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
gwO=function(){return _.BtA(seq)};
_.lkn=function(F){_.p(function(q){switch(q.nextAddress){case 1:return q.yield(Vk("b.f_",cU9,F),2);case 2:return q.yield(Vk("j.s_",_.hsM,F),3);case 3:return q.yield(Vk("r.s_",_.VDo,F),4);case 4:return q.yield(Vk("e.h_",gwO,F),5);case 5:if(!_.E("ab_det_sc_inj")){q.jumpTo(6);break}return q.yield(Vk("s.i_",_.Fny,F),6);case 6:if(_.E("ab_deg_unex_thr")){q.jumpTo(8);break}return q.yield(Vk("a.o_",_.jA$,F),8);case 8:if(_.E("ks_get_o_pp")){q.jumpTo(10);break}return q.yield(Vk("g.o_",_.aB$,F),10);case 10:if(_.E("ks_det_gpbl")){q.jumpTo(12);
break}return q.yield(Vk("p.i_",_.fBW,F),12);case 12:return q.yield(Vk("f.i_",_.xTf,F),14);case 14:return q.yield(Vk("a.b_",_.CYo,F),15);case 15:return q.yield(Vk("p.m_",_.IBA,F),16);case 16:if(!_.E("ab_det_el_h_v2")){q.jumpTo(17);break}return q.yield(Vk("n.h_",JDO,F),17);case 17:return q.yield(Vk("o.p_",t1O,F),19);case 19:return q.yield(Vk("e.i_",qIS,F),20);case 20:if(_.E("ab_det_apm"))return q.yield(Vk("o.a_",u49,F),0);q.jumpTo(0)}})};
_.XtO=function(F,q){F={videoId:F};q&&(F.playlistId=q);return F};
_.Qey=function(){if(_.ksA()){var F=_.bn("PLAYER_VARS",{});if(_.m7.get(F,"privembed",!1)!="1"&&!_.rJv(F)){var q=function(){YIq=!0;"google_ad_status"in window?_.$I("DCLKSTAT",1):_.$I("DCLKSTAT",2)};
try{_.KB(_.F$w,q)}catch(t){}ptn.push(_.mI.addLowPriorityJob(function(){if(!(YIq||"google_ad_status"in window)){try{_.Qzv(_.F$w.toString(),q)}catch(t){}YIq=!0;_.$I("DCLKSTAT",3)}},5E3))}}};
_.eEy=function(F,q,t){t=t===void 0?!1:t;var u=Math.max(F.width,_.OlZ);if(_.E("kevlar_watch_feed_big_thumbs")&&F.width>=1550-_.gE()&&F.height>=800)u-=_.HlK;else if(F.width>=_.KX){var J=_.PeZ+_.xyK+_.hw;_.E("kevlar_watch_feed_big_thumbs")&&(J=_.Iqy);u-=J}else u-=_.PeZ;u=Math.min(u,_.AQQ);J=240;t&&(J=380);q<.5624||(!_.E("kevlar_watch_flexy_disable_small_window_sizing")&&(F.height<630&&F.width>=657||F.height>=630&&F.width>=_.KX&&F.width<1327)?J=360:!_.E("kevlar_watch_flexy_disable_large_window_sizing")&&
F.height>=630&&F.width>=1327&&(J=480));var g=Math.min(u*q,F.height-(56+_.Wt$+_.vnZ));g=Math.max(g,J);q<1?u=g/q:F.width>=_.KX&&(u=_.eEy(F,.5625,t).width);return new _.Ma(Math.round(u),Math.round(g))};
_.ZtS=function(F){var q=0;F.indexOf("h")!=-1&&(F=F.split("h"),q=F[0]*60*60,F=F[1]);F.indexOf("m")!=-1&&(F=F.split("m"),q=F[0]*60+q,F=F[1]);F.indexOf("s")!=-1?(F=F.split("s"),q=F[0]*1+q):q=F*1+q;return q};
_.REQ=function(){_.YE("service_worker_push_logged_out_prompt_watches")!=-1&&_.Op("WatchCount").then(function(F){F>=100||_.TZ("WatchCount",F+1)})};
rDS=function(F){var q=F.externalVideoId||"";return q?F.isShortsEligible?"https://www.youtube.com/shorts/"+q:"https://www.youtube.com/watch?v="+q:""};
NBI=function(F){var q=[];F.viewCount&&q.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:F.viewCount});F.likeCount&&q.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:F.likeCount});return q};
wt9=function(F){var q,t,u={"@context":"https://schema.org","@type":"VideoObject",description:_.q1(F.description),duration:"PT"+(F.lengthSeconds||"0")+"S",embedUrl:F.embed?F.embed.iframeUrl:"",name:_.q1(F.title),thumbnailUrl:((q=F.thumbnail)==null?void 0:(t=q.thumbnails)==null?void 0:t.map(function(N){return N&&N.url||""}))||[],
uploadDate:F.publishDate};_.E("mweb_video_schema_id_killswitch")||(u["@id"]=rDS(F));q=NBI(F);q.length&&(u.interactionStatistic=q);F.category&&(u.genre=F.category);F.ownerChannelName&&(u.author=F.ownerChannelName);F.liveBroadcastDetails&&(u.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:F.liveBroadcastDetails.startTimestamp,endDate:F.liveBroadcastDetails.endTimestamp}]);if(F.learningResource){F=F.learningResource;u["@type"]=["VideoObject","LearningResource"];var J;if((J=F.learningResourceType)==
null?0:J.length)u.learningResourceType=F.learningResourceType[0];var g;if((g=F.educationalAlignment)==null?0:g.length)u.educationalAlignment={"@type":"AlignmentObject",targetName:F.educationalAlignment[0]};var Y;if((Y=F.educationalLevel)==null?0:Y.length){J=F.educationalLevel[0];var Q;if((Q=F.educationalLevelCountry)==null?0:Q.length)J+=" ("+F.educationalLevelCountry+")";u.educationalLevel=J}var e,r;if(((e=F.learningResourceType)==null?0:e.length)&&F.learningResourceType[0]==="Problem walkthrough"&&
((r=F.problemDescriptions)==null?0:r.length))for(u.hasPart=[],Q=_.X(F.problemDescriptions),e=Q.next();!e.done;e=Q.next())J=e.value,e=J.problemDescriptionText,r=J.startOffset,J=J.url,e&&r!==void 0&&J&&u.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:e,text:e,startOffset:r,url:J})}return u};
_.ite=function(F){return _.pj({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:F}})};
seq=[[["cDcxbG5sbTh2Y3lqcHJpbWFyeSM=",null,null],[null,["cmVuZGVyZXIjNmcxNHlhbWlxazNleXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMt","c3R5bGUtc2NvcGUja3BjNTgwdGh3MGR6"],null],["bWFzdGhlYWQtYWQjcXUzaDBwZWd5azRw",["ejd5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3Vta3EzZ2k3MDM="],null],[null,["d3l5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2VmcGM5cTZsdjc=","c3R5bGUtc2NvcGUjcTdjdjRpNXVwbGYx"],null],[null,["YmFubmVyLXByb21vLXJlbmRlcmVyI2h0bGp6enhldGRnMHl0ZC0=","c3R5bGUtc2NvcGUjbnllZjkxZWpjeXpt"],null],[null,["dmFneHEzeXRkLWFkLXNsb3QtcmVuZGVyZXIjNWNucGZ2"],
null]],[["NTA4cGxheWVyLWFkcyNkanBuN3pxeDQ=",null,null]],[["M2hnYnVhOG90MnFoZGVzY3JpcHRpb24taW5uZXIj",null,null],[null,null,"ZC1tZXJjaC1zaGVsZi1yZW5kZXJlciM4MHBoZmJreDh0eGh5dA=="],["bm5jN21haW4jczEzaGZ3b2U=",["ZC1tZXJjaC1zaGVsZi1yZW5kZXJlciNyNTZ0M2o4bjF2MG95dA=="],null]]];FIq="#";ptn=[];YIq=!1;_.kA$=["engagement-panel-ads"];Ew9=new _.Xk("updateSentimentBarStateCommand");_.zE9=new _.Xk("showSurveyCommand");_.UU=new _.Xk("changeMarkersVisibilityCommand");var nw$,M19,WIZ,DEe,GAt,Sm;_.owy=function(F,q){this.playerProvider_=F;this.actionSenderElement_=q;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.owy.prototype.reset=function(){nw$(this);this.isUserPredictedAbsent_=!1};
nw$=function(F,q){!F.youThereData_||F.showWarningJob_||q!==void 0&&q||(_.GZ("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.yb(),F.youThereData_,F.clientPlaybackNonce_),_.H2());_.mI.cancelJob(F.showWarningJob_);F.showWarningJob_=0;_.mI.cancelJob(F.showBlockingWarningJob_);F.showBlockingWarningJob_=0;_.mI.cancelJob(F.pausePlaybackJob_);F.pausePlaybackJob_=0;F.youThereData_=null;F.clientPlaybackNonce_=void 0;F.inYouThereFlow_=!1};
_.TBe=function(F,q){var t,u,J;_.p(function(g){if(g.nextAddress==1)return F.reset(),g.yield(F.playerProvider_().getPlayerPromise(),2);t=g.yieldResult;F.clientPlaybackNonce_=t.getVideoData().cpn;F.youThereData_=q.configData.youThereData;if(!F.youThereData_)return g.return();if(F.youThereData_.triggerReason&&F.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.Ez9())return _.GZ("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.yb(),F.youThereData_,F.clientPlaybackNonce_),g.return();u=F.youThereData_.promptDelaySec;
J=t.getCurrentTime();F.showWarningJob_=_.mI.addLowPriorityJob(function(){return _.p(function(Y){F.showWarningJob_=0;return Y.yield(M19(F),0)})},Math.max(u-J,0)*1E3);
_.WA(g)})};
M19=function(F){var q,t,u,J,g,Y;return _.p(function(Q){if(Q.nextAddress==1)return Q.yield(F.playerProvider_().getPlayerPromise(),2);if(Q.nextAddress!=3)return q=Q.yieldResult,t=q.getCurrentTime(),Q.yield(GAt(F),3);u=Q.yieldResult;if(!u||!F.youThereData_)return Q.return();if(_.E("check_user_lact_at_prompt_shown_time_on_web")&&(J=parseInt(F.youThereData_.lactThresholdMs,10),_.X1()<J))return _.GZ("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.yb(),F.youThereData_,F.clientPlaybackNonce_),Q.return();if(F.youThereData_.playbackPauseDelayMs<=
0)return DEe(F),Q.return();!_.E("external_fullscreen")&&(g=_.gY())&&(F.ignoreFullscreenExitUserActivity_=!0,_.mI.addLowPriorityJob(function(){F.ignoreFullscreenExitUserActivity_=!1},2E3),_.lN(g));
F.youThereData_.showToastWarningPrompt&&(Sm(F,F.youThereData_.showWarningActions),F.inYouThereFlow_=!0,_.GZ("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.yb(),F.youThereData_,F.clientPlaybackNonce_,t),_.GZ("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.yb(),F.youThereData_,F.clientPlaybackNonce_,t));Y=0;F.youThereData_.blockingPromptDelayMs&&(Y=F.youThereData_.blockingPromptDelayMs);F.showBlockingWarningJob_=_.mI.addLowPriorityJob(function(){return _.p(function(e){F.showBlockingWarningJob_=0;return e.yield(WIZ(F),
0)})},Y);
_.WA(Q)})};
WIZ=function(F){var q,t,u;return _.p(function(J){if(J.nextAddress==1)return J.yield(GAt(F),2);q=J.yieldResult;if(!F.youThereData_)return J.return();q&&(F.youThereData_.showBlockingWarningAction&&(_.GZ("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.yb(),F.youThereData_,F.clientPlaybackNonce_),(t=_.n(F.youThereData_.showBlockingWarningAction,_.wY))?Sm(F,t.commands):Sm(F,[F.youThereData_.showBlockingWarningAction]),F.inYouThereFlow_=!0),u=F.youThereData_.playbackPauseDelayMs,F.pausePlaybackJob_=
_.mI.addLowPriorityJob(function(){return _.p(function(g){F.pausePlaybackJob_=0;return g.yield(DEe(F),0)})},u));
_.WA(J)})};
DEe=function(F){var q;return _.p(function(t){if(t.nextAddress==1)return t.yield(GAt(F),2);q=t.yieldResult;if(!F.youThereData_)return t.return();q&&(_.GZ("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.yb(),F.youThereData_,F.clientPlaybackNonce_),Sm(F,F.youThereData_.showPausedActions),F.inYouThereFlow_=!0);_.WA(t)})};
_.owy.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var F=_.n(this.youThereData_.userActiveDuringFlowAction,_.wY);F?Sm(this,F.commands):Sm(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.GZ("YOU_THERE_EVENT_TYPE_LACT_RESET",_.yb(),this.youThereData_,this.clientPlaybackNonce_),_.H2());nw$(this,!0)}_.Oty(this,!1)};
_.PoI=function(F){_.GZ("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.yb(),F.youThereData_,F.clientPlaybackNonce_)};
GAt=function(F){var q,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(F.playerProvider_().getPlayerPromise(),2);q=u.yieldResult;t=q.getPlayerState();return u.return(t==-1||t==1||t==3)})};
_.Oty=function(F,q){var t;_.p(function(u){if(u.nextAddress==1){if(F.isUserPredictedAbsent_==q)return u.jumpTo(0);F.isUserPredictedAbsent_=q;return u.yield(F.playerProvider_().getPlayerPromise(),3)}t=u.yieldResult;t.setUserEngagement(q);q&&_.GZ("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.yb(),F.youThereData_,F.clientPlaybackNonce_);_.WA(u)})};
Sm=function(F,q){if(_.E("handle_service_request_actions")||_.E("kevlar_youthere_service_endpoint_actions_killswitch"))_.rY(F.actionSenderElement_,q,F.actionSenderElement_);else{q=_.X(q);for(var t=q.next();!t.done;t=q.next())t=t.value,t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.sendPost?_.RD(F.actionSenderElement_,[t]):_.rY(F.actionSenderElement_,[t],F.actionSenderElement_)}};var xES;var ADK;var hl=function(){var F=_.x.apply(this,arguments)||this;F.systemIcons=_.E("kevlar_system_icons");F.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return F};
_.M(hl,_.x);hl.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var F=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(F=this.data.percentIfLiked||0,this.activated=!0):(F=this.data.percentIfIndifferent||0,this.activated=!1);_.ep(this.hostElement).querySelector("#like-bar").style.width=F+"%"}};
hl.prototype.handleUpdateSentimentBarStateCommand=function(F){this.data&&this.set("data.likeStatus",_.n(F,Ew9).likeStatus)};
hl.prototype.observeLikeStatus=hl.prototype.observeLikeStatus;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],hl.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],hl.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],hl.prototype,"activated",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],hl.prototype,"systemIcons",void 0);_.C([_.za("data.likeStatus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hl.prototype,"observeLikeStatus",null);_.C([_.m({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],hl);
_.b(hl,"ytd-sentiment-bar-renderer",function(){if(ADK!==void 0)return ADK;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ADK=F},{mode:1});var vwZ;var Kc=function(){var F=_.x.apply(this,arguments)||this;F.small=!0;return F};
_.M(Kc,_.x);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Kc.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Kc.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Kc.prototype,"small",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Kc);
_.b(Kc,"ytd-video-view-count-renderer",function(){if(vwZ!==void 0)return vwZ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return vwZ=F},{mode:_.Nc("kevlar_poly_si_batch_j080")?1:2});var B7=function(){var F=_.x.apply(this,arguments)||this;F.infoFormattedStrings=[];F.wrapVideoActions=_.E("kevar_watch_wrap_video_actions");F.hideSentimentBar=_.E("kevlar_watch_hide_sentiment_bar");F.actionMap={};return F};
_.M(B7,_.x);_.l=B7.prototype;_.l.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.E("web_modern_buttons"),forceIconButton:!_.E("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.l.dataChanged=function(){_.E("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.l.computeInfoFormattedStrings=function(F){if(!F)return[];var q=[];F.dateText&&q.push(F.dateText);F.stationName&&q.push(F.stationName);F.rating&&q.push(F.rating);F.startEndTimeTemplate&&F.startTimeUtcMillis&&F.endTimeUtcMillis&&q.push(_.FK(_.SvS(_.q1(F.startEndTimeTemplate),Number(F.startTimeUtcMillis),Number(F.endTimeUtcMillis))));F.upNextProgramText&&q.push(F.upNextProgramText);return q};
_.l.scheduleInitialUpdatedMetadataRequest=function(){var F,q=(F=this.data)==null?void 0:F.updatedMetadataEndpoint;if(q){var t;F=Number((t=_.n(q,_.yhE))==null?void 0:t.initialDelayMs);t=isNaN(F)?250:F;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),t)}};
_.l.setSentimentBarWidth=function(){var F=this;_.tJ(this,function(){var q=_.ep(F.hostElement).querySelector("ytd-menu-renderer");if(q){q=q.topLevelButtons;for(var t=0,u=0;u<q.length;u++){var J=q[u],g=F.get("toggleButtonSupportedData.toggleButtonIdData.id",J.data);if(g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||g==="TOGGLE_BUTTON_ID_TYPE_LIKE")t+=J.clientWidth+8;else break}t&&(F.sentiment.style.width=t-8+" px")}})};
_.l.fetchUpdatedMetadata=function(F){var q;F&&(q={continuation:F});var t;(F=(t=this.data)==null?void 0:t.updatedMetadataEndpoint)&&_.sV().resolve(_.gN).resolveCommand(F,{form:Object.assign({},q,{element:this.hostElement})})};
_.l.onYtServiceRequestSent=function(F,q){q.endpoint&&_.n(q.endpoint,_.Cw)&&(this.hasUpdateSentimentBarStateCommands()&&!_.E("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.n(q.endpoint,_.Cw).status),this.setSentimentBarWidth())};
_.l.hasUpdateSentimentBarStateCommands=function(){var F,q,t,u,J=(u=(F=this.data)==null?void 0:(q=F.videoActions)==null?void 0:(t=q.menuRenderer)==null?void 0:t.topLevelButtons)!=null?u:[];F=_.X(J);for(q=F.next();!q.done;q=F.next()){q=q.value;J=u=t=void 0;var g=(t=q.toggleButtonRenderer)==null?void 0:(u=t.toggleButtonSupportedData)==null?void 0:(J=u.toggleButtonIdData)==null?void 0:J.id;if(g==="TOGGLE_BUTTON_ID_TYPE_LIKE"||g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){u=t=void 0;q=(u=_.n((t=q.toggleButtonRenderer)==
null?void 0:t.defaultServiceEndpoint,_.wY))==null?void 0:u.commands;if(!q)break;q=_.X(q);for(t=q.next();!t.done;t=q.next())if(_.n(t.value,Ew9))return!0}}return!1};
_.l.onYtServiceRequestCompleted=function(F,q){var t;(F=(t=q.data)==null?void 0:t.loggingDirectives)&&_.xmP(_.DP(),F);this.get("continuation.timedContinuationData",q.data)&&this.data&&this.data.updatedMetadataEndpoint&&(q=q.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,q.continuation),q.timeoutMs))};
_.l.computeHasDateText=function(F){return!!F&&!!F.dateText};
_.JJ.Object.defineProperties(B7.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u;return!((u=(F=this.data)==null?void 0:(q=F.videoActions)==null?void 0:(t=q.menuRenderer)==null?void 0:t.flexibleItems)==null||!u.length)}}});
B7.prototype.onYtServiceRequestCompleted=B7.prototype.onYtServiceRequestCompleted;B7.prototype.onYtServiceRequestSent=B7.prototype.onYtServiceRequestSent;B7.prototype.dataChanged=B7.prototype.dataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],B7.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.zD.YtTaskEmitterBehavior),_.V("design:type",Object)],B7.prototype,"ytTaskEmitterBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],B7.prototype,"data",void 0);_.C([_.O({computed:"computeInfoFormattedStrings(data)"}),_.V("design:type",Array)],B7.prototype,"infoFormattedStrings",void 0);
_.C([_.O({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],B7.prototype,"hasDateText",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],B7.prototype,"wrapVideoActions",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],B7.prototype,"hideSentimentBar",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],B7.prototype,"flexMenuEnabled",null);
_.C([_.Ms("#sentiment"),_.V("design:type",Object)],B7.prototype,"sentiment",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B7.prototype,"dataChanged",null);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],B7.prototype,"onYtServiceRequestSent",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],B7.prototype,"onYtServiceRequestCompleted",null);
_.b(B7,"ytd-video-primary-info-renderer",function(){if(xES===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);xES=F}F=xES;return F},{mode:1});var Ikn;var Lc=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return F};
_.M(Lc,_.x);_.l=Lc.prototype;_.l.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"}}}};
_.l.dataChanged=function(){var F;this.descriptionToggled=!((F=this.data)==null||!F.defaultExpanded);var q;this.collapsed=this.descriptionAlwaysCollapsed||!((q=this.data)==null?0:q.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.r0(110509);this.showLessClientVe=_.r0(110510);F=_.yb();q=_.b7();F&&q&&_.LJ(F,q,[this.showMoreClientVe,this.showLessClientVe])};
_.l.onYtExpanderMoreTapped=function(){var F,q=(F=this.data)==null?void 0:F.showMoreCommand;q&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(q);(F=_.yb())&&this.showMoreClientVe&&_.co(F,this.showMoreClientVe)};
_.l.onYtExpanderLessTapped=function(){var F=_.yb();F&&this.showLessClientVe&&_.co(F,this.showLessClientVe);var q;(F=(q=this.data)==null?void 0:q.showLessCommand)&&this.componentBehavior.resolveCommand(F)};
_.l.handleUpdateDateTextAction=function(F){this.data&&this.data.dateText&&this.set("data.dateText",_.n(F,_.on$).dateText)};
_.l.handleUpdateDescriptionAction=function(F){if(F=_.n(F,_.bAj))F.isEmpty||!F.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.C9(F.description)):this.set("data.description",F.description)};
_.l.onYtChangeEngagementPanelVisibilityAction=function(F){if(_.E("web_structured_description_show_more")||_.E("web_engagement_panel_open_description")){var q,t=(q=_.n(F,_.KXf))==null?void 0:q.targetId,u;F=((u=_.n(F,_.KXf))==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";t==="engagement-panel-structured-description"&&F&&(this.descriptionToggled=!0)}};
_.l.updateCollapsedFromBinding=function(F){this.collapsed=F.detail.value};
_.l.updateDescriptionToggledFromBinding=function(F){this.descriptionToggled=F.detail.value};
_.l.updateCanCollapseFromBinding=function(F){this.canCollapse=F.detail.value};
_.JJ.Object.defineProperties(Lc.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(F=this.data)==null?void 0:(q=F.metadataRowContainer)==null?void 0:q.metadataRowContainerRenderer;return!!t&&!!t.rows&&t.rows.length>t.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
Lc.prototype.onYtExpanderLessTapped=Lc.prototype.onYtExpanderLessTapped;Lc.prototype.onYtExpanderMoreTapped=Lc.prototype.onYtExpanderMoreTapped;Lc.prototype.dataChanged=Lc.prototype.dataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Lc.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Lc.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Lc.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],Lc.prototype,"collapsed",void 0);_.C([_.O(),_.V("design:type",Boolean)],Lc.prototype,"descriptionToggled",void 0);
_.C([_.O(),_.V("design:type",Boolean)],Lc.prototype,"canCollapse",void 0);_.C([_.O(),_.V("design:type",Object)],Lc.prototype,"subscribeButtonData",void 0);_.C([_.O(),_.V("design:type",Number)],Lc.prototype,"descriptionCollapsedHeight",void 0);_.C([_.O(),_.V("design:type",Object)],Lc.prototype,"structuredDescriptionContentRenderer",void 0);_.C([_.O({value:function(){return _.E("web_watch_description_always_collapsed")}}),
_.V("design:type",Boolean)],Lc.prototype,"descriptionAlwaysCollapsed",void 0);_.C([_.Ms("#description"),_.V("design:type",HTMLDivElement)],Lc.prototype,"description",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lc.prototype,"dataChanged",null);_.C([_.EB("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lc.prototype,"onYtExpanderMoreTapped",null);
_.C([_.EB("yt-expander-less-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lc.prototype,"onYtExpanderLessTapped",null);_.C([_.W("data.metadataRowContainer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Lc.prototype,"metadataCollapsible",null);_.C([_.W("data","structuredDescriptionContentRenderer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Lc.prototype,"hasInlineStructuredDescription",null);
_.C([_.W("data.attributedDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Lc.prototype,"hasAttributedDescription",null);_.C([_.W("hasInlineStructuredDescription","collapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Lc.prototype,"loadStructuredDescription",null);_.C([_.W("data","structuredDescriptionContentRenderer","collapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Lc.prototype,"showInlineStructuredDescription",null);
_.C([_.W("data","hasInlineStructuredDescription","metadataCollapsible"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Lc.prototype,"descriptionAlwaysCollapsible",null);
_.b(Lc,"ytd-video-secondary-info-renderer",function(){if(Ikn===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);Ikn=F}F=Ikn;return F},{mode:2});var HtO;var fc=function(){return _.x.apply(this,arguments)||this};
_.M(fc,_.x);fc.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.E("web_modern_buttons"),forceIconButton:!_.E("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
fc.prototype.activate=function(F){F.appendTo(this.player);F.getPlayerPromise().then(function(q){q.setMinimized(!0)});
this.active=!0};
fc.prototype.deactivate=function(){var F=this.player.firstElementChild;F.getPlayerPromise().then(function(q){q.setMinimized(!1)});
this.active=!1;return F};
fc.prototype.onScrollUpTap=function(){var F=_.sV().resolve(_.JC).getCurrentPage();F&&F.setScrollTop(0)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],fc.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],fc.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],fc.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],fc.prototype,"active",void 0);
_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.V("design:type",Boolean)],fc.prototype,"darkLaunch",void 0);_.C([_.Ms("#player"),_.V("design:type",HTMLDivElement)],fc.prototype,"player",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],fc);
_.b(fc,"ytd-miniplayer-bar-renderer",function(){if(HtO!==void 0)return HtO;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return HtO=F},{mode:1});_.ei(_.ld(function(F){var q=_.FG("script");_.AO(function(){var t;if(t=JSON)t=wt9(F.data()),t=_.qv(JSON.stringify(t).replace(/</g,"\\u003C"));var u=F.data(),J=_.q1(u.title).trim().length===0,g=!u.publishDate||u.publishDate.trim().length===0,Y,Q,e,r,N=!((Y=u.thumbnail)==null?0:(Q=Y.thumbnails)==null?0:Q.length)||!((e=u.thumbnail)==null?0:e.thumbnails[0].url)||((r=u.thumbnail)==null?void 0:r.thumbnails[0].url.trim().length)===0;q.value&&t&&!(J||g||N)&&_.tK(q.value,t)},"I9AhLd");
return _.Z("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.Z("script",{el:q,type:"application/ld+json"}))},"bl"),"player-microformat-renderer",{props:{data:_.pp}});
}catch(e){_._DumpException(e)}
try{
var OE$,xh9;_.WhS=function(F){return F.watch.watchWindowSize};
OE$=function(F,q,t,u){if(F.isLockupToWatchTransitionEnabled){if(q){var J={};F.viewTransitionCoordinator.registerElement(q,(J["lockup-to-watch"]="player-lockup-to-watch",J["watch-next-appears"]="player-watch-next-loaded",J))}t&&(q={},F.viewTransitionCoordinator.registerElement(t,(q["lockup-to-watch"]="below-lockup-to-watch",q["watch-next-appears"]="below-watch-next-loaded",q)));u&&(t={},F.viewTransitionCoordinator.registerElement(u,(t["watch-next-appears"]="secondary-watch-next-loaded",t)))}};
_.PKn=function(F){return _.pj({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:F}})};
xh9=new _.Xk("webWatchNextResponseExtensionData");var vEI=function(F){_.OP.call(this);var q=this;this.JSC$23032_watchApi=F;var t=this.JSC$23032_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){AUn(q)});
this.addOnDisposeCallback(function(){q.JSC$23032_watchApi.unsubscribeByKey(t)});
AUn(this)};
_.M(vEI,_.OP);var AUn=function(F){var q,t,u,J;_.p(function(g){if(g.nextAddress==1){q=F.JSC$23032_watchApi.getWatchNextResponse();if(!q)return g.return();t=_.n(q,xh9);return(u=t)!=null&&u.enableCreatorChatbot?g.yield((0,_.IMP)("NSzT5"),3):g.jumpTo(0)}J=_.xd3;J();_.WA(g)})};var HEy=function(F){_.OP.call(this);this.JSC$23036_watchApi=F;I0O(this)};
_.M(HEy,_.OP);var I0O=function(F){_.p(function(q){if(q.nextAddress==1)return q.yield(mhS(F),2);$hI(F);_.WA(q)})},mhS=function(F){var q,t,u,J;
return _.p(function(g){if(g.nextAddress==1)return g.yield(F.JSC$23036_watchApi.playerApi,2);q=g.yieldResult;F.JSC$23036_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){bEq(F)});
t=F.JSC$23036_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$hI(F)});
u=function(Y){F.onCueRangeEnter(Y)};
q.addEventListener("onCueRangeEnter",u);J=function(Y){F.onCueRangeExit(Y)};
q.addEventListener("onCueRangeExit",J);F.addOnDisposeCallback(function(){F.JSC$23036_watchApi.unsubscribeByKey(t);q.removeEventListener("onCueRangeEnter",u);q.removeEventListener("onCueRangeExit",J)});
_.WA(g)})},yU9=function(F){var q,t,u,J,g,Y,Q,e,r;
return(g=(q=F.contents)==null?void 0:(t=q.twoColumnWatchNextResults)==null?void 0:(u=t.results)==null?void 0:(J=u.results)==null?void 0:J.contents)==null?void 0:(Y=g.find(function(N){var w,k,z;return(w=N.itemSectionRenderer)==null?void 0:(k=w.contents)==null?void 0:(z=k[0])==null?void 0:z.shoppingTimelyShelfViewModel}))==null?void 0:(Q=Y.itemSectionRenderer)==null?void 0:(e=Q.contents)==null?void 0:(r=e[0])==null?void 0:r.shoppingTimelyShelfViewModel},$hI=function(F){var q;
_.p(function(t){if(t.nextAddress==1)return(q=F.JSC$23036_watchApi.getWatchNextResponse())?t.yield(bEq(F),2):t.return();F.shoppingTimelyShelfViewModel=yU9(q);CKO(F);dhS(F);_.WA(t)})},CKO=function(F){var q,t=(q=F.shoppingTimelyShelfViewModel)==null?void 0:q.offerIdToVariants;
t&&(q=t.filter(function(u){return u.key&&u.value}).map(function(u){return[u.key,
u.value]}),F.variantsMap=new Map(q))},dhS=function(F){var q,t,u,J,g,Y;
_.p(function(Q){if(Q.nextAddress==1)return(t=(q=F.shoppingTimelyShelfViewModel)==null?void 0:q.cueRanges)?Q.yield(F.JSC$23036_watchApi.playerApi,2):Q.return();u=Q.yieldResult;F.cueRanges=t;J=_.X(t);for(g=J.next();!g.done;g=J.next())Y=g.value,Y.startTime!==void 0&&Y.endTime!==void 0&&Y.id!==void 0&&u.addCueRange("shopping_timely_shelf"+Y.id,Vvl(Y.startTime),Vvl(Y.endTime));_.WA(Q)})},Vvl=function(F){return Number(F.seconds||0)+(F.nanos||0)/1E9};
HEy.prototype.onCueRangeEnter=function(F){if(F.startsWith("shopping_timely_shelf")){var q=F.substring(21),t,u;F=(t=this.variantsMap)==null?void 0:(u=t.get(q))==null?void 0:u.shelf;if(_.E("web_enable_shopping_timely_shelf_client_overwrite")){var J,g,Y,Q,e;t=F==null?void 0:(J=F.shoppingTimelyShelfContentViewModel)==null?void 0:(g=J.button)==null?void 0:(Y=g[1])==null?void 0:(Q=Y.buttonViewModel)==null?void 0:(e=Q.onTap)==null?void 0:e.innertubeCommand;var r,N;if(t==null?0:(r=t.menuEndpoint)==null?0:
(N=r.menu)==null?0:N.menuRenderer)t.openPopupAction=t.menuEndpoint,t.openPopupAction.popup=t.openPopupAction.menu,t.openPopupAction.popup.menuPopupRenderer=t.openPopupAction.popup.menuRenderer,t.openPopupAction.popupType="DROPDOWN",delete t.menuEndpoint,delete t.openPopupAction.menu,delete t.openPopupAction.popup.menuRenderer}F&&this.JSC$23036_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",F)}};
HEy.prototype.onCueRangeExit=function(F){F.startsWith("shopping_timely_shelf")&&this.JSC$23036_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var bEq=function(F){var q,t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return Y.yield(F.JSC$23036_watchApi.playerApi,2);q=Y.yieldResult;if(F.cueRanges)for(t=_.X(F.cueRanges),u=t.next();!u.done;u=t.next())J=u.value,J.id&&(g="shopping_timely_shelf"+J.id,q.removeCueRange(g));F.JSC$23036_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});F.shoppingTimelyShelfViewModel=void 0;F.cueRanges=void 0;F.variantsMap=void 0;_.WA(Y)})};var BN9=function(F){_.OP.call(this);var q=this;this.JSC$23043_watchApi=F;F=_.yL(_.u1(),_.o0o,function(){Uhy(q)});
this.addOnDisposeCallback(F);F=_.yL(_.u1(),_.WhS,function(){Uhy(q)});
this.addOnDisposeCallback(F);SVq(this);hTt(this);Khn()};
_.M(BN9,_.OP);var SVq=function(F){var q=function(u){_.u1().dispatch(_.dD9(u.matches))},t=window.matchMedia("(max-width: "+(999+_.gE())+"px)");
t.addListener(q);F.addOnDisposeCallback(function(){t.removeListener(q)});
q(t)},hTt=function(F){F.JSC$23043_watchApi.registerActionHandler("yt-window-resized",function(){Khn()});
F.addOnDisposeCallback(function(){F.JSC$23043_watchApi.unregisterActionHandler("yt-window-resized")})},Khn=function(){var F=_.Oy();
_.u1().dispatch(_.pj({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:F.width,height:F.height}}}))},Uhy=function(F){var q;
_.p(function(t){if(t.nextAddress==1)return t.yield(F.JSC$23043_watchApi.playerApi,2);q=t.yieldResult;q.setSize(NaN,NaN);_.WA(t)})};var Lhl=function(F){_.OP.call(this);var q=_.sV().resolve(_.yf);OE$(q,F.getElement("PLAYER_CONTAINER"),F.getElement("BELOW_THE_PLAYER"),F.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var t=F.getElement("PLAYER_CONTAINER"),u=F.getElement("BELOW_THE_PLAYER"),J=F.getElement("SECONDARY");q.isLockupToWatchTransitionEnabled&&(t&&_.UO(q.viewTransitionCoordinator,t),u&&_.UO(q.viewTransitionCoordinator,u),J&&_.UO(q.viewTransitionCoordinator,J))})};
_.M(Lhl,_.OP);_.yk=function(F){_.Wv.call(this);var q=this;this.rootElement=F;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return q.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(t){q.initOrDisposeActiveModules(t)}));
this.onAttached()};
_.M(_.yk,_.Wv);_.l=_.yk.prototype;_.l.getRoot=function(){return this.rootElement};
_.l.getElement=function(F){return this.rootElement.getElement(F)};
_.l.setPlayerResponse=function(F){this.playerResponse=F;this.publish("PLAYER_RESPONSE_UPDATED",F)};
_.l.getPlayerResponse=function(){return this.playerResponse};
_.l.setWatchNextResponse=function(F){this.watchNextResponse===F?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=F,this.publish("WATCH_NEXT_RESPONSE_UPDATED",F))};
_.l.getWatchNextResponse=function(){return this.watchNextResponse};
_.l.registerActionHandler=function(F,q){var t=this;if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var u={};_.aJ(_.B2.getInstance(),(u[F]=q,u),this.getRoot())}else this.actionHandlers.has(F)||(this.actionHandlers.set(F,[]),u={},_.aJ(_.B2.getInstance(),(u[F]=function(){var J=_.US.apply(0,arguments);return(t.actionHandlers.get(F)||[]).map(function(g){return g.apply(null,_.mZ(J))})},u),this.getRoot())),this.actionHandlers.get(F).push(q)};
_.l.unregisterActionHandler=function(F){if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var q={};_.jJ(_.B2.getInstance(),(q[F]=!0,q),this.getRoot())}else(q=this.actionHandlers.get(F))?(q.pop(),q.length===0&&(q={},_.jJ(_.B2.getInstance(),(q[F]=!0,q),this.getRoot()),this.actionHandlers.delete(F))):_.bz(new _.D0("Attempted to unregister an action handler which is not registered.",F))};
_.l.addPageDisposeJob=function(F){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.oPC(this.rootElement.pageDisposeJobs,F)};
_.l.removePageDisposeJob=function(F){this.rootElement.pageDisposeJobs&&_.yC(this.rootElement.pageDisposeJobs,F)};
_.l.dispatchEvent=function(F,q){_.Q0(this.rootElement,F,q)};
_.l.provideRenderingData=function(F,q){this.rootElement.provideRenderingData(F,q)};
_.l.scrollWatchTo=function(F,q){var t;(t=this.watchScrollManager)==null||t.scrollWatchTo(F,q)};
_.l.focusOnPlayer=function(){var F=this.getElement("PLAYER");_.tJ(F,function(){if(F&&F.firstElementChild){var q=F.querySelector(".html5-video-player");q&&(_.M$(_.sV().resolve(_.PT)),q.focus())}else _.bz(Error("Mo"))})};
_.l.updateCinematicFullscreenConfig=function(){if(_.E("web_cinematic_manager_redux_killswitch")){var F=!!this.rootElement.theater,q=!!this.rootElement.fullscreen,t;(t=this.watchCinematicManager)==null||_.H7(t,q,F)}};
_.l.subscribeToActiveChanged=function(F,q){q=q===void 0?!0:q;var t=_.yL(_.u1(),_.yEn,function(u){F(u)});
q&&F(_.yEn(_.u1().getState()));return t};
_.l.isActive=function(){return _.yEn(_.u1().getState())};
_.l.onAttached=function(){var F=_.E("external_fullscreen");_.E("use_unified_flag_accessor")&&(F=_.sV().resolve(_.pAh).retriever.getFlag(_.svO));(F||_.yG("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var f0Z=function(F){return F.getRoot().is==="ytd-watch-flexy"||F.getRoot().is==="ytd-watch-grid"},Cc=function(F){return F.getRoot().is==="ytd-watch-fixie"};
_.yk.prototype.initPersistentModules=function(){if(Cc(this)||f0Z(this)&&_.E("kevlar_watch_flexy_theater_manager")){var F=new _.F8O(this);_.kW(this,F)}F=new _.Cny(this);_.kW(this,F);F=new _.Al(this);_.kW(this,F);F=new _.mMQ(this);_.kW(this,F);F=new _.NNS(this);_.kW(this,F);F=new _.v7(this);_.kW(this,F);if(Cc(this)||f0Z(this)&&_.E("kevlar_watch_flexy_playlist_manager"))F=new _.kQS(this),_.kW(this,F);_.E("web_thumbnail_to_watch_transition")&&(F=new Lhl(this),_.kW(this,F))};
_.yk.prototype.initOrDisposeActiveModules=function(F){F?(this.watchScrollManager=new _.bf(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.tvQ(this)),_.E("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new HEy(this)),this.activeModules.push(new _.ttS(this)),Cc(this)&&this.activeModules.push(new BN9(this)),this.activeModules.push(new _.TNK(this)),this.activeModules.push(new _.L8n(this)),(Cc(this)||_.E("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.lVS(this)),this.activeModules.push(new _.XcZ(this)),(Cc(this)||_.E("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Dhe(this)),(Cc(this)||_.E("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.N2t(this)),_.E("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.z$t(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.E("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.eTI(this)),
_.E("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.bIO(this)),F=_.E("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.E("kevlar_watch_flexy_comments_manager")&&!F&&this.activeModules.push(new _.xMO(this)),_.E("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.kyO(this)),this.activeModules.push(new _.X_t(this)),this.activeModules.push(new _.JUZ(this)),_.E("web_enable_timely_actions")&&this.activeModules.push(new _.e$e(this)),
_.E("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.IVS(this)),_.E("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.TPO(this)),_.E("web_fullscreen_components")&&this.activeModules.push(new _.QvQ(this)),_.E("web_player_rtr_ctrls")&&this.activeModules.push(new _.m3S(this)),_.E("enable_creator_chatbot")&&this.activeModules.push(new vEI(this))):(_.go(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.yk.prototype.disposeInternal=function(){_.Wv.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.JJ.Object.defineProperties(_.yk.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var m9w,K0,$9T,bXh,COT,d9h,ywv,VX7;m9w=function(){var F=_.Dl();F.info||(F.info={});return F.info};
K0=function(F){return Math.round(_.xo()+F)};
$9T=function(){var F;if(_.E("csi_use_performance_navigation_timing")){var q,t,u,J=_.Po==null?void 0:(F=_.Po.getEntriesByType)==null?void 0:(q=F.call(_.Po,"navigation"))==null?void 0:(t=q[0])==null?void 0:(u=t.toJSON)==null?void 0:u.call(t);J?(J.requestStart=K0(J.requestStart),J.responseEnd=K0(J.responseEnd),J.redirectStart=K0(J.redirectStart),J.redirectEnd=K0(J.redirectEnd),J.domainLookupEnd=K0(J.domainLookupEnd),J.connectStart=K0(J.connectStart),J.connectEnd=K0(J.connectEnd),J.responseStart=K0(J.responseStart),
J.secureConnectionStart=K0(J.secureConnectionStart),J.domainLookupStart=K0(J.domainLookupStart),J.isPerformanceNavigationTiming=!0,F=J):F=_.Po.timing}else F=_.E("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Po.timing)):_.Po.timing;return F};
bXh=function(){if(_.Po.getEntriesByType){var F=_.Po.getEntriesByType("paint");if(F=_.vy(F,function(t){return t.name==="first-paint"}))return K0(F.startTime)}var q;
_.E("csi_use_performance_navigation_timing")?q=_.Po.getEntriesByType("first-paint")[0].startTime:q=_.Po.timing.msFirstPaint;return q?Math.max(0,q):0};
COT=function(){var F=window.location.protocol,q=_.Po.getEntriesByType("resource");q=_.Xr(q,function(t){return t.name.indexOf(F+"//fonts.gstatic.com/s/")===0});
(q=ywv(q,function(t,u){return u.duration>t.duration?u:t}))&&q.startTime>0&&q.responseEnd>0&&(_.AV("wffs",K0(q.startTime)),_.AV("wffe",K0(q.responseEnd)))};
d9h=function(F,q){F=document.querySelector(F);if(!F)return!1;var t="",u=F.nodeName;u==="SCRIPT"?(t=F.src,t||(t=F.getAttribute("data-timing-href"))&&(t=window.location.protocol+t)):u==="LINK"&&(t=F.href);_.cS(document)&&F.setAttribute("nonce",_.cS(document));return t?(F=_.Po.getEntriesByName(t))&&F[0]&&(F=F[0],t=_.xo(),_.AV("rsf_"+q,t+Math.round(F.fetchStart)),_.AV("rse_"+q,t+Math.round(F.responseEnd)),F.transferSize!==void 0&&F.transferSize===0)?!0:!1:!1};
_.BV=function(F,q){_.UK(function(){_.OH("").info.actionType=F;q&&_.$I("TIMING_AFT_KEYS",q);_.$I("TIMING_ACTION",F);var t=_.p6o(_.bn("TIMING_INFO",{}));Object.keys(t).length>0&&_.vo(t);t={isNavigation:!0,actionType:_.aCC(_.bn("TIMING_ACTION"))};var u=_.bn("PREVIOUS_ACTION");u&&(t.previousAction=_.aCC(u));if(u=_.bn("CLIENT_PROTOCOL"))t.httpProtocol=u;if(u=_.bn("CLIENT_TRANSPORT"))t.transportProtocol=u;(u=_.yb())&&u!=="UNDEFINED_CSN"&&(t.clientScreenNonce=u);u=_.YwA();if(u===1||u===-1)t.isVisible=!0;
u=_.VZo().loadType==="cold";var J=m9w();u||(u=J.yt_lt==="cold");if(u){t.loadType="cold";u=m9w();J=$9T();var g=_.xo(),Y=_.bn("CSI_START_TIMESTAMP_MILLIS",0);Y>0&&!_.E("embeds_web_enable_csi_start_override_killswitch")&&(g=Y);g&&(_.AV("srt",J.responseStart),u.prerender!==1&&_.tq3(g));u=bXh();u>0&&_.AV("fpt",u);u=$9T();u.isPerformanceNavigationTiming&&_.vo({performanceNavigationTiming:!0},void 0);_.AV("nreqs",u.requestStart,void 0);_.AV("nress",u.responseStart,void 0);_.AV("nrese",u.responseEnd,void 0);
u.redirectEnd-u.redirectStart>0&&(_.AV("nrs",u.redirectStart,void 0),_.AV("nre",u.redirectEnd,void 0));u.domainLookupEnd-u.domainLookupStart>0&&(_.AV("ndnss",u.domainLookupStart,void 0),_.AV("ndnse",u.domainLookupEnd,void 0));u.connectEnd-u.connectStart>0&&(_.AV("ntcps",u.connectStart,void 0),_.AV("ntcpe",u.connectEnd,void 0));u.secureConnectionStart>=_.xo()&&u.connectEnd-u.secureConnectionStart>0&&(_.AV("nstcps",u.secureConnectionStart,void 0),_.AV("ntcpe",u.connectEnd,void 0));_.Po&&"getEntriesByType"in
_.Po&&COT();u=[];if(document.querySelector&&_.Po&&_.Po.getEntriesByName)for(var Q in VX7)VX7.hasOwnProperty(Q)&&(J=VX7[Q],d9h(Q,J)&&u.push(J));if(u.length>0)for(t.resourceInfo=[],Q=_.X(u),u=Q.next();!u.done;u=Q.next())t.resourceInfo.push({resourceCache:u.value})}_.vo(t);t=_.Wo();t.preLoggedGelInfos||(t.preLoggedGelInfos=[]);Q=t.preLoggedGelInfos;t=_.Suu();u=void 0;for(J=0;J<Q.length;J++)if(g=Q[J],g.loadType){u=g.loadType;break}if(_.VZo().loadType==="cold"&&(t.loadType==="cold"||u==="cold")){u=_.UKu();
J=_.Wo();J=J.gelTicks?J.gelTicks:J.gelTicks={};for(var e in u)if(!(e in J))if(typeof u[e]==="number")_.AV(e,_.ID(e));else if(_.E("log_repeated_ytcsi_ticks"))for(g=_.X(u[e]),Y=g.next();!Y.done;Y=g.next())Y=Y.value,_.AV(e.slice(1),Y);e={};u=!1;Q=_.X(Q);for(J=Q.next();!J.done;J=Q.next())u=J.value,_.Ue(t,u),_.Ue(e,u),u=!0;u&&_.vo(e)}_.RQW(!0);e=_.bn("TIMING_ACTION");_.S6("ytglobal.timingready_")&&e&&_.nxA()&&_.Ziu()&&_.lXf()})()};
ywv=function(F,q){return Array.prototype.reduce.call(F,q,{duration:0})};
VX7={'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 U9v={};U9v.YtVisibilityRootBehavior=[_.yeE.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.sP(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.bn("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var F=_.bn("INNERTUBE_CLIENT_NAME")!=="WEB";_.E("kevlar_use_vimio_behavior")&&F&&_.$7n()}}];_.L0={};_.L0.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(F){F.detail.contextProvider=this;F.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
U9v.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.ji();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(F){var q=this;this.pageCount+=1;_.E("kevlar_use_vimio_behavior")&&(_.bn("INNERTUBE_CLIENT_NAME")==="WEB"?_.mI.addJob(function(){q.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(F)},
loadPage_:function(F){this.data=F},
ytPageBehaviorActiveObserver_:function(F){var q=this;_.E("kevlar_use_vimio_behavior")&&(F?_.bn("INNERTUBE_CLIENT_NAME")==="WEB"?_.mI.addJob(function(){q.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(F){if(!this.setScrollTopJobId_){var q=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){q.setScrollTopJobId_=0;var t=_.sV().resolve(_.JU(_.PT));t&&_.M$(t);this.getPageScrollingElement().scrollTop=F}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.I8(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var HX7;var hZ=function(){var F=_.x.apply(this,arguments)||this;F.playerListenerConfig=null;F.actionMap={"yt-show-watch-page-survey":"openSurvey"};return F};
_.M(hZ,_.x);_.l=hZ.prototype;_.l.dataChanged=function(){var F=this,q=_.g0();q&&q.getPlayerPromise().then(function(u){F.maybeRemovePlayerListeners(u)});
var t=this.data&&this.data.survey;t&&((t=(t=t.singleOptionSurveyRenderer||t.checkboxSurveyRenderer||t.multiStageSurveyRenderer)&&t.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(q,t):this.openSurvey())};
_.l.triggerWatchPageSurvey=function(F,q){var t=this,u,J,g,Y,Q,e,r,N,w;return _.p(function(k){if(k.nextAddress==1)return F?k.yield(F.getPlayerPromise(),2):k.return();t.player=k.yieldResult;if(!t.player)return k.return();u={};J=_.X(q);for(g=J.next();!g.done;g=J.next())Y=g.value,Q=_.X(t.createEventListenerPair(Y)),e=Q.next().value,r=Q.next().value,N=e,w=r,N&&w&&(u[N]=w,t.ytPlayerListenerBehavior.listenToPlayerEvent(t.player,N,w));t.playerListenerConfig=u;_.WA(k)})};
_.l.createEventListenerPair=function(F){var q=F.playbackEventTrigger;return q?this.handlePlaybackTrigger(q):(F=F.watchTimeTrigger)?this.handleWatchTimeTrigger(F):[void 0,void 0]};
_.l.handleWatchTimeTrigger=function(F){var q=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var t=F.videoWatchFraction,u=F.watchTimeSec;return u&&t?["onVideoProgress",function(){q.player&&q.isWatchTimeConditionMet(q.player,t,u)&&q.showSurvey()}]:[void 0,
void 0]};
_.l.isWatchTimeConditionMet=function(F,q,t){var u=F.getProgressState(),J=u.current-this.lastKnownPlaybackPosition;J<5&&(this.accumulatedMediaTime+=J);this.lastKnownPlaybackPosition=u.current;u=Math.round(this.accumulatedMediaTime/u.duration*1E3)/1E3;return F.getPresentingPlayerType&&F.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>t||u>q)};
_.l.handlePlaybackTrigger=function(F){var q=this;F=F.playbackEvent;if(F==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var t="onStateChange";var u=function(J){J===0&&q.showSurvey()}}else F==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(t="onVideoProgress",u=function(J){q.player&&q.player.getPresentingPlayerType&&q.player.getPresentingPlayerType()===1&&J&&q.showSurvey()}):F==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(t="onAdEnd",u=this.showSurvey);
return[t,u]};
_.l.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.l.openSurvey=function(){var F=this,q=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.pW9(!!q));_.mI.addJob(function(){F.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:q}})},0,0)};
_.l.maybeRemovePlayerListeners=function(F){if(this.playerListenerConfig){for(var q=_.X(Object.keys(this.playerListenerConfig)),t=q.next();!t.done;t=q.next())t=t.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(F,t,this.playerListenerConfig[t]);this.playerListenerConfig=null}};
hZ.prototype.dataChanged=hZ.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],hZ.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],hZ.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],hZ.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(_.s9),_.V("design:type",Object)],hZ.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],hZ.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],hZ.prototype,"playerListenerConfig",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],hZ.prototype,"lastKnownPlaybackPosition",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],hZ.prototype,"accumulatedMediaTime",void 0);_.C([_.O(),_.V("design:type",Object)],hZ.prototype,"player",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hZ.prototype,"dataChanged",null);_.C([_.m({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],hZ);
_.b(hZ,"ytd-survey-trigger-renderer",function(){if(HX7!==void 0)return HX7;var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return HX7=F},{mode:1});
}catch(e){_._DumpException(e)}
try{
var EOI=new _.Xk("promotedSparklesWebRenderer");var zdO=new _.Xk("relatedChipCommand");var oOe;var nOZ;var x8=function(){return _.x.apply(this,arguments)||this};
_.M(x8,_.x);x8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],x8.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],x8);
_.b(x8,"ytd-compact-tvfilm-entry-point-renderer",function(){if(nOZ!==void 0)return nOZ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return nOZ=F},{mode:1});var MC9;var Txl;var G1t;var Aw=function(){return _.x.apply(this,arguments)||this};
_.M(Aw,_.x);Aw.prototype.ready=function(){this.initializeDefs()};
Aw.prototype.initializeDefs=function(){var F=this.meta.byKey("yt-icons"),q=_.ep(F).querySelector("#star"),t=_.ep(F).querySelector("#star_half");F=_.ep(F).querySelector("#star_border");q&&this.defs.appendChild(q.cloneNode(!0));t&&this.defs.appendChild(t.cloneNode(!0));F&&this.defs.appendChild(F.cloneNode(!0))};
Aw.prototype.percentChanged=function(){for(var F=this.rating;F.firstChild;)F.removeChild(F.firstChild);var q=Math.round(this.percent/10);F=Math.floor(q/2);q%=2;var t=5-F-q;this.appendStars("star",F,0);this.appendStars("star_half",q,F);this.appendStars("star_border",t,F+q)};
Aw.prototype.appendStars=function(F,q,t){for(var u=0;u<q;u++){var J=(18+this.spacing)*(u+t),g=document.createElementNS("http://www.w3.org/2000/svg","use");_.vIv(g,"#"+F);g.setAttribute("x",""+J);g.setAttribute("y","0");this.rating.appendChild(g)}};
Aw.prototype.percentChanged=Aw.prototype.percentChanged;_.C([_.Ms("#defs"),_.V("design:type",HTMLElement)],Aw.prototype,"defs",void 0);_.C([_.Ms("#rating"),_.V("design:type",HTMLElement)],Aw.prototype,"rating",void 0);_.C([_.O(),_.V("design:type",Number)],Aw.prototype,"percent",void 0);_.C([_.O({value:6}),_.V("design:type",Number)],Aw.prototype,"spacing",void 0);_.C([_.O({value:_.HN.create("iron-meta",{type:"iconset"})}),_.V("design:type",_.bS)],Aw.prototype,"meta",void 0);
_.C([_.za("percent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Aw.prototype,"percentChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-ratings"})],Aw);
_.b(Aw,"ytd-ratings",function(){if(G1t!==void 0)return G1t;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return G1t=F},{mode:1});var I1=function(){return _.x.apply(this,arguments)||this};
_.M(I1,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],I1.prototype,"data",void 0);_.C([_.m({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],I1);
_.b(I1,"ytd-offer-review-renderer",function(){if(Txl!==void 0)return Txl;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Txl=F},{mode:1});var Hm=function(){var F=_.x.apply(this,arguments)||this;F.badges=[{textBadge:{label:_.FK("CC")}}];return F};
_.M(Hm,_.x);_.l=Hm.prototype;_.l.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.l.dataChanged=function(){var F=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(F&&F.commandMetadata&&_.n(F.commandMetadata,_.Cu)&&_.n(F.commandMetadata,_.Cu).fireAutomatically)_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}});else{var q;F&&((q=_.n(F,_.Cu))==null?0:q.fireAutomatically)&&_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}})}};
_.l.isEmptyContent=function(F){return this.isStorefrontEntryPointEmpty(F)&&this.shouldHideOfferModule(F)};
_.l.isStorefrontEntryPointEmpty=function(F){return!F||!F.storefrontEntryPoint};
_.l.shouldHideOfferModule=function(F){return!!F.hideVideoDetails};
_.l.isOfferModuleNavigationInactive=function(F){return!F.navigationEndpoint&&!F.serviceEndpoint};
_.l.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.sV().resolve(_.gN).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Hm.prototype.dataChanged=Hm.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Hm.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.V("design:type",Boolean)],Hm.prototype,"hidden",void 0);
_.C([_.O(),_.V("design:type",Object)],Hm.prototype,"badges",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Hm.prototype,"dataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Hm);
_.b(Hm,"ytd-movie-offer-module-renderer",function(){if(MC9!==void 0)return MC9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return MC9=F},{mode:1});var DnZ;var WrI=function(){return _.x.apply(this,arguments)||this};
_.M(WrI,_.x);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],WrI.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],WrI.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],WrI);
_.b(WrI,"ytd-media-masthead-renderer",function(){if(DnZ!==void 0)return DnZ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return DnZ=F},{mode:1});var Oey;_.ei(_.lpO,"course-metadata-view-model",{props:{data:_.pp,isOverlay:_.pp}});var mD=function(){var F=_.x.apply(this,arguments)||this;F.isMetadataVisible=!1;F.modernPanels=_.E("kevlar_watch_modern_panels");F.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return F};
_.M(mD,_.x);_.l=mD.prototype;
_.l.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"}}}}};
_.l.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.l.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.l.expanderChanged=function(){var F;if((F=this.data)==null?0:F.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.l.isExpandButtonToggled=function(){var F,q;return(q=_.n((F=this.data)==null?void 0:F.expandMetadataButton,_.XZ))==null?void 0:q.isToggled};
_.l.onVisibilityButtonClick=function(){var F;if((F=this.data)==null?0:F.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.l.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
mD.prototype.expanderChanged=mD.prototype.expanderChanged;mD.prototype.dataChanged=mD.prototype.dataChanged;mD.prototype.descriptionChanged=mD.prototype.descriptionChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D([_.$9.YtActionHandlerBehavior]),_.V("design:type",Object)],mD.prototype,"actionHandlerBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],mD.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],mD.prototype,"isMetadataVisible",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mD.prototype,"modernPanels",void 0);_.C([_.Ms("#expander"),_.V("design:type",Object)],mD.prototype,"expander",void 0);_.C([_.za("data.description"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mD.prototype,"descriptionChanged",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mD.prototype,"dataChanged",null);_.C([_.za("isMetadataVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mD.prototype,"expanderChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],mD);
_.b(mD,"ytd-tvfilm-offer-module-renderer",function(){if(Oey!==void 0)return Oey;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Oey=F},{mode:2});var PJZ;var $8=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return F};
_.M($8,_.x);$8.prototype.dataChanged=function(){this.hostElement.hidden=!1};
$8.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
$8.prototype.onThumbnailTap=function(F){this.data&&this.data.serviceEndpoint&&(_.sV().resolve(_.gN).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),F.stopPropagation())};
$8.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
$8.prototype.dataChanged=$8.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$8.prototype,"rendererBehaviors",void 0);_.C([_.D([_.$9.YtActionHandlerBehavior]),_.V("design:type",Object)],$8.prototype,"actionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$8.prototype,"data",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$8.prototype,"dataChanged",null);_.C([_.m({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],$8);
_.b($8,"ytd-unlimited-offer-module-renderer",function(){if(PJZ!==void 0)return PJZ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return PJZ=F},{mode:1});var xny;var AEy;var bO=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return F};
_.M(bO,_.x);bO.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
bO.prototype.handleRelatedChipCommand=function(F){F=_.n(F,zdO);var q=F.contents;q?_.Zl(this.hostElement,"yt-item-section-replace-action",[q,F.targetSectionIdentifier]):_.Zl(this.hostElement,"yt-item-section-continuation-action",[F.continuationData,F.targetSectionIdentifier])};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],bO.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],bO.prototype,"actionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],bO.prototype,"data",void 0);_.C([_.Vu({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],bO);
_.b(bO,"yt-related-chip-cloud-renderer",function(){if(AEy===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;xny===void 0&&(xny=document.createElement("template"));var u=xny;t.call(q,u.content.cloneNode(!0),F.content.firstChild);AEy=F}F=AEy;return F},{mode:2});var yJ=function(){var F=_.x.apply(this,arguments)||this;F.isTwoColumns=!0;F.hideOfferModules=!1;F.watchFeedBigThumbs=_.E("kevlar_watch_feed_big_thumbs");F.watchFeedBigThumbsOnLockup=_.E("web_watch_next_big_thumbs");F.watchNextGridHideChips=_.E("kevlar_watch_grid_hide_chips");F.eligibleToSwitchToGrid=_.E("web_watch_eligible_to_switch_to_grid");F.disableShortsShelfHeightOverride=_.E("web_shorts_wn_shelf_ratio_tuning");F.isWatchNextGrid=!1;F.reuseComponents=!_.E("kevlar_watch_grid");F.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return F};
_.M(yJ,_.x);_.l=yJ.prototype;
_.l.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.E("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.l.getItemsPath=function(){return"data.results"};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.l.created=function(){this.ytLazyListBehavior.initialCount=1};
_.l.ready=function(){_.ws(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%"})};
_.l.resultsChanged=function(){if(this.data&&this.data.results){for(var F=this.data.results,q=null,t=null,u=0;u<F.length;u++)F[u].relatedChipCloudRenderer?q=F[u].relatedChipCloudRenderer:F[u].itemSectionRenderer&&(t=F[u].itemSectionRenderer);if(q&&t)for(this.set("data.continuations",[]),F=_.n(q.content,_.Qlv).chips,q=0;q<F.length;q++)if(u=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",F[q]),u.loadCached||!u.contents){u.contents=t.contents;break}}};
_.l.dataChanged=function(){var F=this,q;if((q=this.data)!=null&&q.results&&this.hasAllowedInstreamAd(this.playerData)){if(q=this.data.results.filter(function(Q){return!!Q.promotedSparklesWebRenderer})){for(var t=0;t<q.length;t++){var u=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",q[t]);
if(u)for(var J=0;J<u.length;J++)u[J]&&u[J].baseUrl&&_.Kt(u[J].baseUrl)}this.set("data.results",this.data.results.filter(function(Q){return!Q.promotedSparklesWebRenderer}))}if(q=this.data.results.filter(function(Q){return!!F.getSparklesAd(Q)})){q=_.X(q);
for(J=q.next();!J.done;J=q.next())if(u=t=void 0,J=(t=this.getSparklesAd(J.value))==null?void 0:(u=t.errorCommand)==null?void 0:u.loggingUrls)for(t=_.X(J),u=t.next();!u.done;u=t.next())(u=u.value)&&u.baseUrl&&_.Kt(u.baseUrl);var g,Y;this.set("data.results",(g=this.data)==null?void 0:(Y=g.results)==null?void 0:Y.filter(function(Q){return!Q.adSlotRenderer}))}}};
_.l.getSparklesAd=function(F){var q,t;F=_.n((q=F.adSlotRenderer)==null?void 0:(t=q.fulfillmentContent)==null?void 0:t.fulfilledLayout,_.SNJ);return _.n(F==null?void 0:F.renderingContent,EOI)};
_.l.hasAllowedInstreamAd=function(F){F=this.get("adPlacements",F)||[];for(var q=0;q<F.length;q++){var t=this.get("adPlacementRenderer.config.adPlacementConfig",F[q]);if(t&&t.suppressDisplayAd)return!0}return!1};
_.l.computeHideUnlimitedOfferModule=function(F,q){return F&&F.offerModule&&q&&F.offerModule.unlimitedOfferModuleRenderer&&F.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(q)?!0:!1};
_.l.hideUnlimitedOfferModuleChanged=function(){var F=_.ep(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");F&&(F.hidden=this.hideUnlimitedOfferModule)};
_.l.updateLockupContainerTypes=function(F){if(this.eligibleToSwitchToGrid){var q;(q=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||q.forEach(function(t){t.containerType=F})}};
_.l.computeHideTvfilmOfferModule=function(F,q){var t,u;return!!((F==null?0:(t=F.offerModule)==null?0:(u=t.tvfilmOfferModuleRenderer)==null?0:u.clientShouldSuppressIfCompanionAdDisplayed)&&q&&this.hasCompanionAds(q))};
_.l.hideTvfilmOfferModuleChanged=function(){var F=_.ep(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");F&&(F.hidden=this.hideTvfilmOfferModule)};
_.l.hasCompanionAds=function(F){F=this.get("adPlacements",F)||[];for(var q=0;q<F.length;q++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",F[q]))return!0;var t=void 0,u=void 0,J=void 0;if(!_.E("web_watch_top_banner_companion_check_killswitch")&&((t=F[q])==null?0:(u=t.adPlacementRenderer)==null?0:(J=u.renderer)==null?0:J.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.l.hasSuppressedResults=function(F){return F==null?!0:F.filter(function(q){return!q.continuationItemRenderer&&!q.compactPromotedVideoRenderer&&!q.promotedSparklesWebRenderer}).length===0};
_.l.computeShowButton=function(F,q){return this.isWatchNextGrid?F:F||this.hasSuppressedResults(q)};
_.l.showButtonChanged=function(){if(this.isWatchNextGrid){var F=_.ep(this.hostElement).querySelector("ytd-rich-grid-renderer");F&&this.showButton!==null&&(F.continuationShowButton=this.showButton)}else{F=_.ep(this.hostElement).querySelector("yt-next-continuation");var q=_.ep(this.hostElement).querySelector("ytd-continuation-item-renderer"),t=_.ep(this.hostElement).querySelector("ytd-item-section-renderer");F&&(F.showButton=this.showButton);q&&(q.showButton=this.showButton);t&&(t.continuationShowButton=
this.showButton)}};
_.l.continuationTap=function(F){var q;if(((q=this.data)==null?void 0:q.continuations)!=null&&F.target.tagName==="TP-YT-PAPER-BUTTON")for(F=this.data.continuations,q=0;q<F.length;q++)F[q].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(F[q].nextContinuationData||{})};
_.l.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("shown-items-changed",this.shownItems))};
_.JJ.Object.defineProperties(yJ.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.shownItems)==null||!F.some(function(q){return!!q.lockupViewModel||q.compactVideoRenderer}))}}});
yJ.prototype.shownItemsChangedForBinding=yJ.prototype.shownItemsChangedForBinding;yJ.prototype.showButtonChanged=yJ.prototype.showButtonChanged;yJ.prototype.hideTvfilmOfferModuleChanged=yJ.prototype.hideTvfilmOfferModuleChanged;yJ.prototype.updateLockupContainerTypes=yJ.prototype.updateLockupContainerTypes;yJ.prototype.hideUnlimitedOfferModuleChanged=yJ.prototype.hideUnlimitedOfferModuleChanged;yJ.prototype.dataChanged=yJ.prototype.dataChanged;yJ.prototype.resultsChanged=yJ.prototype.resultsChanged;
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.DO.YtLazyListBehavior),_.V("design:type",Object)],yJ.prototype,"ytLazyListBehavior",void 0);_.C([_.D(_.eH.YtNextContinuationBehavior),_.V("design:type",Object)],yJ.prototype,"ytNextContinuationBehavior",void 0);
_.C([_.D(_.Qd),_.V("design:type",Object)],yJ.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],yJ.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],yJ.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],yJ.prototype,"playerData",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],yJ.prototype,"autoFill",void 0);_.C([_.O({value:60}),_.V("design:type",Number)],yJ.prototype,"targetFramerate",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],yJ.prototype,"isTwoColumns",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],yJ.prototype,"hideOfferModules",void 0);_.C([_.O(),_.V("design:type",Object)],yJ.prototype,"shownItems",void 0);_.C([_.O({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.V("design:type",Boolean)],yJ.prototype,"hideUnlimitedOfferModule",void 0);
_.C([_.O({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.V("design:type",Boolean)],yJ.prototype,"hideTvfilmOfferModule",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],yJ.prototype,"watchFeedBigThumbs",void 0);_.C([_.O(),_.V("design:type",Object)],yJ.prototype,"watchFeedBigThumbsOnLockup",void 0);_.C([_.O(),_.V("design:type",Object)],yJ.prototype,"watchNextGridHideChips",void 0);_.C([_.O(),_.V("design:type",Object)],yJ.prototype,"eligibleToSwitchToGrid",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],yJ.prototype,"disableShortsShelfHeightOverride",void 0);_.C([_.O({selector:_.Cp,reflectToAttribute:!0}),_.V("design:type",Object)],yJ.prototype,"isGridViewEnabled",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],yJ.prototype,"showMoreButton",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],yJ.prototype,"isWatchNextGrid",void 0);
_.C([_.O({computed:"computeShowButton(showMoreButton, data.results)"}),_.V("design:type",Boolean)],yJ.prototype,"showButton",void 0);_.C([_.Wh("data.results.*"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yJ.prototype,"resultsChanged",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yJ.prototype,"dataChanged",null);
_.C([_.za("hideUnlimitedOfferModule"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yJ.prototype,"hideUnlimitedOfferModuleChanged",null);_.C([_.W("isGridViewEnabled","containsLockups","data"),_.O({reflectToAttribute:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],yJ.prototype,"lockupContainerType",null);
_.C([_.za("lockupContainerType","data"),_.V("design:type",Function),_.V("design:paramtypes",[Number]),_.V("design:returntype")],yJ.prototype,"updateLockupContainerTypes",null);_.C([_.za("hideTvfilmOfferModule"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yJ.prototype,"hideTvfilmOfferModuleChanged",null);_.C([_.za("showButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yJ.prototype,"showButtonChanged",null);
_.C([_.za("shownItems"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yJ.prototype,"shownItemsChangedForBinding",null);_.C([_.W("shownItems"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yJ.prototype,"containsLockups",null);
_.b(yJ,"ytd-watch-next-secondary-results-renderer",function(){if(oOe===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);oOe=F}F=oOe;return F},{mode:1});
}catch(e){_._DumpException(e)}
try{
var TV3=new _.Xk("replaceFeedContentAction");var Gi9;var D9C;var $2=function(){return _.x.apply(this,arguments)||this};
_.M($2,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$2.prototype,"data",void 0);_.C([_.m({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],$2);
_.b($2,"ytd-sub-feed-option-renderer",function(){if(D9C!==void 0)return D9C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return D9C=F},{mode:1});var WDy;var bg=function(){return _.x.apply(this,arguments)||this};
_.M(bg,_.x);bg.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],bg.prototype,"ytRendererStamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],bg.prototype,"data",void 0);_.C([_.m({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],bg);
_.b(bg,"ytd-sub-feed-selector-renderer",function(){if(WDy!==void 0)return WDy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return WDy=F},{mode:1});var yc=function(){return _.x.apply(this,arguments)||this};
_.M(yc,_.x);
yc.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}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],yc.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],yc.prototype,"data",void 0);_.C([_.m({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],yc);
_.b(yc,"ytd-browse-feed-actions-renderer",function(){if(Gi9!==void 0)return Gi9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Gi9=F},{mode:1});var OX7;var POh;var C0=function(){return _.x.apply(this,arguments)||this};
_.M(C0,_.x);C0.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],C0.prototype,"data",void 0);_.C([_.m({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],C0);
_.b(C0,"ytd-mini-channel-renderer",function(){if(POh!==void 0)return POh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return POh=F},{mode:1});var x9T;var dy=function(){return _.x.apply(this,arguments)||this};
_.M(dy,_.x);dy.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],dy.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],dy);
_.b(dy,"ytd-vertical-channel-section-renderer",function(){if(x9T!==void 0)return x9T;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return x9T=F},{mode:1});var Vc=function(){return _.x.apply(this,arguments)||this};
_.M(Vc,_.x);Vc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Vc.prototype,"data",void 0);_.C([_.m({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Vc);
_.b(Vc,"ytd-browse-secondary-contents-renderer",function(){if(OX7!==void 0)return OX7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
return OX7=F},{mode:1});var Aw5;var U8=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};F.notActive=!1;F.isConstrainedList=!1;return F};
_.M(U8,_.x);_.l=U8.prototype;
_.l.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(F){var q;return(F==null?void 0:(q=F.webComponentHint)==null?void 0:q.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}}}}};
_.l.getPath=function(F,q){var t="data.tabs.#"+q+".";F.tabs[q].tabRenderer?t+="tabRenderer.":F.tabs[q].expandableTabRenderer&&(t+="expandableTabRenderer.");return t+"content.sectionListRenderer"};
_.l.computeDisplayedContent=function(F){this.unlinkPaths("content");if(F&&F.tabs)for(var q=F.tabs.length,t=0;t<q;t++){var u=F.tabs[t].tabRenderer||F.tabs[t].expandableTabRenderer;if(u.selected&&u.content)return this.linkPaths("content",this.getPath(F,t)),u.content}return null};
_.l.computeHasSecondaryColumnData=function(F){return!!F&&!!F.secondaryContents};
_.l.onRetrieveLocation=function(F,q){q.locationRetrieved(q.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);F.stopPropagation()};
_.l.onYtServiceRequestSent=function(F,q){_.E("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(q)};
_.l.onYtServiceRequestCompleted=function(F,q){_.E("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(q)};
_.l.onReplaceFeedContentAction=function(F){if(!_.E("replace_feed_content_action_killswitch")&&!this.notActive){var q;(F=(q=_.n(F,TV3))==null?void 0:q.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(F)}};
_.l.handleServiceRequestActions=function(F){if(F=F.actions){F=_.X(F);for(var q=F.next();!q.done;q=F.next()){q=q.value;var t=void 0;((t=_.n(q,TV3))==null?0:t.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.n(q,TV3).items)}}};
U8.prototype.onYtServiceRequestCompleted=U8.prototype.onYtServiceRequestCompleted;U8.prototype.onYtServiceRequestSent=U8.prototype.onYtServiceRequestSent;U8.prototype.onRetrieveLocation=U8.prototype.onRetrieveLocation;_.C([_.D(_.p_),_.V("design:type",Object)],U8.prototype,"ytdGridStateAwareBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],U8.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],U8.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],U8.prototype,"data",void 0);_.C([_.O({computed:"computeDisplayedContent(data)"}),_.V("design:type",Object)],U8.prototype,"content",void 0);
_.C([_.O({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],U8.prototype,"hasSecondaryColumnData",void 0);_.C([_.O({value:function(){return window.outerHeight>1024?3:2}}),
_.V("design:type",Number)],U8.prototype,"initialCount",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],U8.prototype,"pageSubtype",void 0);_.C([_.Ms("ytd-section-list-renderer"),_.V("design:type",Object)],U8.prototype,"listRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],U8.prototype,"notActive",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],U8.prototype,"isConstrainedList",void 0);
_.C([_.O(),_.V("design:type",String)],U8.prototype,"responsiveSizing",void 0);_.C([_.EB("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],U8.prototype,"onRetrieveLocation",null);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],U8.prototype,"onYtServiceRequestSent",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],U8.prototype,"onYtServiceRequestCompleted",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],U8);
_.b(U8,"ytd-two-column-browse-results-renderer",function(){if(Aw5!==void 0)return Aw5;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Aw5=F},{mode:2});
}catch(e){_._DumpException(e)}
try{
var mES=function(F){if((F==null?void 0:F.value)===void 0||F==null||!F.unit)return"initial";a:{switch(F.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var q="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":q="%";break a}q=void 0}return q?""+F.value+q:"initial"},$El=new _.Xk("shoppingContentLineItemViewModel");var btt=_.ld(function(F){var q=_.sk(F,{}).data;return _.Z("yt-shopping-content-line-item-view-model",{class:_.Ec("ytShoppingContentLineItemViewModelHost")},_.Z(_.rv,{text:function(){var t;return(t=q().text)==null?void 0:t.attributedString}}))},"cl");var yDl=_.ld(function(F){F=_.sk(F,{});var q=F.data,t={};return _.Z("yt-shopping-content-line-view-model",{class:_.Ec("ytShoppingContentLineViewModelHost",F.className,(t.ytShoppingContentLineViewModelTruncateText=function(){return!q().wrapContent},t)),
style:_.Mo({"--shopping-content-line-gap":function(){return q().itemGap?q().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return q().lineHeight?q().lineHeight+"px":void 0}})},_.Z(_.Gn,{each:function(){return(q().items||[]).map(function(u){return _.n(u,$El)}).filter(function(u){return!!u})}},function(u){return _.Z(btt,{data:u})}))},"dl");_.ei(_.ld(function(F){var q=_.sk(F,{}).data,t=function(){var u;return((u=q().image)==null?void 0:u.height)||40};
return _.Z("yt-shopping-timely-shelf-content-view-model",{el:_.l_(_.CH(function(){var u;return(u=q())==null?void 0:u.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.Ec("ytShoppingTimelyShelfContentViewModelHost"),style:_.Mo({"--shopping-timely-shelf-content-padding-top":function(){var u;return mES((u=q().padding)==null?void 0:u.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var u;return mES((u=q().padding)==null?void 0:u.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var u;return mES((u=q().padding)==null?void 0:u.start)},
"--shopping-timely-shelf-content-padding-end":function(){var u;return mES((u=q().padding)==null?void 0:u.end)}})},_.Z(_.R,{cond:function(){var u;
return(u=q().image)==null?void 0:u.image},
then:function(u){return _.Z(_.sc,{preserveHeight:!0,preserveWidth:!0,height:t,data:u,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.Z(_.Tl,{data:function(){return q().avatar}},{avatarViewModel:_.FJ}),_.Z("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.Z(_.Tl,{data:function(){return q().line1}},{shoppingContentLineViewModel:function(u){return _.Z(yDl,{data:u.data})}}),_.Z(_.Tl,{data:function(){return q().line2}},{shoppingContentLineViewModel:function(u){return _.Z(yDl,
{data:u.data})}})),_.Z("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.Z(_.Gn,{each:function(){var u;
return(u=q().button)!=null?u:[]}},function(u){return _.Z(_.Tl,{data:function(){return u}},{buttonViewModel:_.AB})})))},"el"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.NH}});_.CoQ={};
_.CoQ.YtdWatchBehavior=[_.B.YtRendererBehavior,_.w8.YtPlayerListenerBehavior,_.TD.YtRendererstamperBehavior,_.$9.YtActionHandlerBehavior,_.L0.YtPageBehavior,_.mu.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.yG("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.E("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.yG("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,
value:!1},isSingleColumn:{type:Boolean,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,
value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.E("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.YE("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.YE("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.E("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.E("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.E("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.E("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.E("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var F={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.YK(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.YK(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},
"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.E("swa_prov_panels_ks")?F.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(F.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},F.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return F},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var F=this;this.watchController=void 0;this.pageDisposeJobs=[function(){F.showMetadataPlaceholder_()},
function(){_.E("web_watch_dont_clear_comments")||F.clearComments_()},
function(){F.clearPlayerAds_()},
function(){F.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.E("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.E("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.owy(function(){return _.sO(F)},this.hostElement);
this.pageDisposeJobs.push(function(){F.youThereManager_.reset()});
_.E("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){F.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.ze;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.E("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]=
"setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.E("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.kM(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(F){F&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:F}),F.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(F){_.E("kevlar_watch_flexy_theater_manager")&&(this.theater=F,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(F){!_.E("kevlar_watch_while_v2")&&!_.E("web_watch_pip")||F||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(F){this.active!==void 0&&(this.fullscreen=F,_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(F){this.active!==void 0&&(_.Q0(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(F>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(F){this.initCsi_();this.updatePageData_(F)},
updatePageData_:function(F){var q=this;if(F)if(this.data===F){this.onPageLoadWithSameData_();var t;(t=this.watchController)==null||t.setWatchNextResponse(this.data)}else this.data=F;this.playlist&&_.mj({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.y0("nw");this.loading=!1;_.W2(_.mI,function(){q.initDclkstatus_();var u,J=((u=q.player)==null?void 0:u.getVideoData().cpn)||"";_.lkn(function(g,Y){_.iBv(g,Y,J)})})},
onPageLoadWithSameData_:function(){_.E("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var F=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!F);this.set("loadingData.playlistLoading",F&&F!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),F=this.watchNextSkeletonEl_.firstElementChild;F;)F.classList.remove("hidden"),F=F.nextElementSibling;if(_.E("kevlar_watch_frame0_loading_state")){var q,t,u;F=(q=this.loadingData)==null?void 0:(t=q.endpoint)==null?void 0:(u=t.watchEndpoint)==null?void 0:u.videoId;var J;F&&(J="https://i.ytimg.com/vi/"+F+"/frame0.jpg");_.ep(this.hostElement).querySelector("#player").style.backgroundImage=J?"url("+J+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var F=_.ep(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&F&&(F.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var q,t;(t=(q=this.watchMetadata).updateSentimentBarWidth)==
null||t.call(q);var u,J;(J=(u=this.watchMetadata).resize)==null||J.call(u)}_.E("kevlar_watch_frame0_loading_state")&&(_.ep(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(F){var q=_.ep(this.hostElement).querySelector(F);q?_.Xw(q,!1):_.bz(new _.D0("Overscroll monitor not found for component: ",F))},
removeSplitScrollMouseTrap:function(F){var q=_.ep(this.hostElement).querySelector(F);q?_.Yo(q):_.bz(new _.D0("Disposal component for  overscroll monitoring not found: ",F))},
onLoadingChanged_:function(F){F?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.E("web_thumbnail_to_watch_transition")&&!_.vqh||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.E("web_thumbnail_to_watch_transition")&&!_.vqh||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(F){var q=this;F?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.mI.addLowPriorityJob(function(){q.onWindowResized_(_.Oy(!0))})},
updateTheaterModeState_:function(F){if(!_.E("kevlar_watch_flexy_theater_manager")){F=F||this.fullWindowMode_;if(this.theater!==void 0||F)this.theater=F;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();F&&_.UnI()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.E("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var F=this.fullBleedPlayer;_.E("external_fullscreen")&&this.fullscreen&&(F=!0);_.E("web_watch_error_screen_fix")&&(F=this.fullBleedPlayer);F=F?_.ep(this.hostElement).querySelector("#player-full-bleed-container"):_.ep(this.hostElement).querySelector("#player-container-inner");var q=this.getPlayerContainer(),t=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip");q.parentElement!==F&&(t&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.sO(this).appendTo(F,
q),_.E("web_watch_error_screen_fix")||F.appendChild(_.ep(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var F=_.ep(this.hostElement).querySelector("#error-screen"),q=this.fullBleedPlayer?_.ep(this.hostElement).querySelector("#player-full-bleed-container"):_.ep(this.hostElement).querySelector("#player");F.parentElement!==q&&q.appendChild(F)},
deactivateMiniplayerAndResetPlayer:function(){var F=this;return _.p(function(q){if(q.nextAddress==1)return q.yield(_.sV().resolve(_.m4).deactivate(),2);F.updatePlayerLocation();_.WA(q)})},
updateCinematicsLocation:function(){var F=this.getElement("CINEMATICS");if(F){var q=this.getCinematicsLocationContainer();F.parentElement!==q&&q.appendChild(F);var t;(t=this.watchController)==null||t.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.ep(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ep(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(F,q,t){var u=document.documentElement.hasAttribute("dark"),J=u&&_.E("web_cinematic_theater_mode"),g=u&&_.E("web_cinematic_fullscreen");u=!u&&this.cinematicLightTheme;return t||F&&J||q&&g||(q||F)&&u},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var F=this,q;(q=this.watchController)==null||q.setWatchNextResponse(this.data);_.E("kevlar_watch_flexy_comments_manager")||this.initComments_();_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.sV().resolve(_.J8).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.E("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.mI.addLowPriorityJob(function(){_.Zl(F.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.E("web_watch_start_chat_in_theater_mode")){var t,u,J;if((t=this.data)==null?0:(u=t.contents)==null?0:(J=u.twoColumnWatchNextResults)==null?0:J.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var g,Y;((g=this.data)==null?0:(Y=g.contents)==null?0:Y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(F){var q;(q=this.watchController)==null||q.setPlayerResponse(this.playerData);F&&F.playabilityStatus&&(q=this.isVideoPlayable_(F.playabilityStatus,this.getPlayerOverlays_(this.data)),F=this.isLiveStreamOffline_(F.playabilityStatus),q&&!F||_.tJ(this,function(){_.y0("pbu")}));
this.setPlayerAds_();_.Zl(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(F,q){if((_.E("kevlar_watch_while_v2")||_.E("web_watch_pip"))&&this.playerData&&q)return this.playerData.videoDetails},
watchPageActiveChanged_:function(F){_.u1().dispatch(_.PKn(this.active));F?this.activate_():this.deactivate_()},
attached:function(){var F=this;this.watchController=new _.yk(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.E("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var q=_.sO(this);_.E("kevlar_disable_prepare_player")||
q.preparePlayer();_.E("kevlar_watch_flexy_playlist_manager")||_.sV().resolve(_.J8).setPlayer(q);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();q={"--ytd-watch-flexy-scrollbar-width":_.gE()+"px"};this.is==="ytd-watch-grid"&&(q["--ytd-watch-flexy-sidebar-width"]=_.xyK+"px",q["--ytd-watch-grid-horizontal-page-margins"]=_.hw+"px",q["--ytd-watch-grid-columns-top-margins"]=_.Wt$+"px",q["--ytd-watch-grid-min-player-height-medium"]="360px");!_.YE("kv_pl_mx_sz_ks")&&
_.YE("kevlar_watch_max_player_width")&&(q["--ytd-watch-flexy-max-player-width-wide-screen"]=_.AQQ+"px");_.YE("kevlar_watch_flexy_metadata_height")&&(q["--ytd-watch-flexy-space-below-player"]=_.vnZ+"px");this.safeUpdateStyles(q);_.E("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.hPy(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return F.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.ep(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var F=_.gE(),q=_.KX+F,t=q;this.fixedPanels&&(q+=_.xyK);var u=657+F;F=1327+F;_.ep(this.hostElement).querySelector("#two-column-query").query="(min-width: "+q+"px)";_.ep(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(u+"px), (min-height: 630px) and (min-width: ")+(q+"px) and (max-width: ")+(F+"px)");_.ep(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(F+"px)");
_.ep(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+t+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var F=_.ep(this.hostElement).querySelector("#miniplayer-bar").firstChild,q=this.squeezeback&&!_.E("web_watch_squeezeback_player_size_killswitch");return F&&F.active||this.theater||_.E("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||q||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.Ma(NaN,NaN):_.eEy(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.eEy(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.sP(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var F=this;this.onWindowResized_(_.Oy());_.E("browse_skeleton_removal_on_watch_killswitch")||_.yG("IS_SHELL_LOAD")&&_.I77();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var q=_.sO(this);q.addEventListener("yt-player-updated",_.kM(this,this.onPlayerUpdated_));q.getPlayerPromise().then(function(t){F.playerApiReady_(t)});
_.E("kevlar_watch_flexy_playlist_manager")||(q=_.sV().resolve(_.J8),_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&q.addEventListener("yt-navigate",_.kM(this,this.onYtNavigate_)),q.setPlaylistComponent(_.ep(this.hostElement).querySelector("#playlist")),q.addEventListener("yt-playlist-data-updated",_.kM(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.mI.addLowPriorityJob(function(){_.Q0(F.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.sO(this).removeEventListener("yt-player-updated",_.kM(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.E("kevlar_watch_flexy_playlist_manager")){var F=_.sV().resolve(_.J8);_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&F.removeEventListener("yt-navigate",_.kM(this,this.onYtNavigate_));
F.cancelVideoSkip();F.removeEventListener("yt-playlist-data-updated",_.kM(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Q0(this.hostElement,"yt-autonav-pause-player",!1);F=_.gY();_.E("kevlar_exit_fullscreen_leaving_watch")&&F&&_.lN(F)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(F){this.player&&this.player.updateVideoData({rvs:F.rvs})},
getPageContents:function(F){return F&&F.contents&&F.contents.twoColumnWatchNextResults&&F.contents.twoColumnWatchNextResults.results&&F.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(F){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",F)},
onRetrieveLocation_:function(F,q){q.hasComments?q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):q.locationRetrieved("/related_ajax",void 0);F.stopPropagation()},
onSubscriptionChanged_:function(F,q){this.player&&(q?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.BV("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ep(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ep(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(F){this.player=F;this.setPlayerState(F.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.E("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.E("kevlar_unified_player")||_.E("kevlar_player_new_bootstrap_adoption"))&&_.Sx()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(F,q){q=q===void 0?!0:q;_.gY()&&_.E("external_fullscreen")&&_.lN(document.documentElement);this.theaterRequested_=F;q&&_.nE("wide",F?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.ec(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Q0(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(F){_.yw(F,typeof this.player),this.player&&_.yw(F,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var F;((F=this.player)==null?0:F.isFullscreen())?this.player.toggleFullscreen():_.ec(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(F,q){return this.loading?q:!!Object.keys(F).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(F){if(F){F=_.X(F);for(var q=F.next();!q.done;q=F.next())q=q.value,q.youThereRenderer&&_.TBe(this.youThereManager_,q.youThereRenderer)}},
setPlaylistData_:function(F){return F||{}},
userEngagementConfigDataChanged_:function(F){if(F)if(F.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var q=this.youThereManager_;_.X1()<F.lowEngagementThresholdMs||_.Oty(q,!0)}else F.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ec(this.hostElement,"yt-autonav-pause-user-engagement",[F])},
isPlayerUnavailable_:function(F,q,t){return!!F&&!this.isVideoPlayable_(F,t)&&!q},
getPlayerOverlays_:function(F){return(F==null?void 0:F.playerOverlays)||null},
isVideoPlayable_:function(F,q){if(!F)return!1;var t=F.status==="OK"||F.status==="LIVE_STREAM_OFFLINE",u=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",F)||this.get("errorScreen.ypcTrailerRenderer",F);F=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",F);var J;q=q==null?void 0:(J=q.playerOverlayRenderer)==null?void 0:J.gatedActionsOverlayRenderer;return!!t||!!u||!!F||!!q},
hasWatchNextResponseErrorRenderer:function(F){var q=this.getPageContents(F),t,u,J,g,Y;return!(F==null?0:(t=F.contents)==null?0:(u=t.twoColumnWatchNextResults)==null?0:u.secondaryResults)&&!!((J=q[0])==null?0:(g=J.itemSectionRenderer)==null?0:(Y=g.contents[0])==null?0:Y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(F){return F?F.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(F,q,t){var u=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",q),J=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];J=_.E("web_no_skip_video_on_verification_checks")?(F==null?void 0:F.status)&&J.includes(F.status):F&&F.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",F);g==void 0&&(g=!0);!t||this.isVideoPlayable_(F,this.getPlayerOverlays_(q))||
u||J||!g||_.sV().resolve(_.J8).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.REQ()},
onPlayerFeedbackStartRequest_:function(F){_.ec(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:F}])},
onPlayerFeedbackArticleRequest_:function(F){_.ec(this.hostElement,"yt-help-dialog-requested",[F])},
onPlayerYpcContentRequest_:function(){var F,q,t,u,J,g,Y,Q,e=((F=this.data)==null?NaN:(q=F.contents)==null?NaN:(t=q.twoColumnWatchNextResults)==null?NaN:(u=t.secondaryResults)==null?NaN:(J=u.secondaryResults)==null?NaN:(g=J.offerModule)==null?NaN:(Y=g.tvfilmOfferModuleRenderer)==null?NaN:(Q=Y.actionButtons)==null?NaN:Q.length)-1;F=[".offerButton.buttonRenderer.",".actionButtons."+(e>=0?e:0)+".buttonRenderer."];q=_.X(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(t=q.next();!t.done;t=q.next())for(t=t.value,u=_.X(F),J=u.next();!J.done;J=u.next())if(J="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+t+J.value,J=this.get(J+"navigationEndpoint",this.data)||this.get(J+"serviceEndpoint",this.data)||this.get(J+"command",this.data)){_.n9(J,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(F){_.Q0(this.hostElement,"yt-autonav-pause-player",F)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(F){F()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(F){switch(F){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(F){switch(F){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Q0(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(F)},
setPlayerState:function(F){_.u1().dispatch(_.jML(F))},
onPlayerSubscribe_:function(F){_.ec(this.hostElement,"yt-player-subscribe",[F])},
onPlayerUnsubscribe_:function(F){_.ec(this.hostElement,"yt-player-unsubscribe",[F])},
onPlayerAdYtShowToast_:function(F){_.ec(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:F.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(F){if(F)return F},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(F){return!_.E("web_watch_move_summary_to_sd")&&!!F},
computeWatchMetadataRefresh:function(){return _.E("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.E("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var F,q,t,u;this.watchNextSecondaryResults=(F=this.data)==null?void 0:(q=F.contents)==null?void 0:(t=q.twoColumnWatchNextResults)==null?void 0:(u=t.secondaryResults)==null?void 0:u.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.E("swatcheroo_pbs_load_grid")&&!_.E("swatcheroo_provide_all_data_on_scheduled_job")){_.mI.cancelJob(this.setRichGridJobId_);var F,q,t,u,J,g,Y;this.setRichGridRendererData((F=this.data)==null?void 0:(q=F.contents)==null?void 0:(t=q.twoColumnWatchNextResults)==null?void 0:(u=t.secondaryResults)==null?void 0:(J=u.secondaryResults)==null?void 0:(g=J.results)==null?void 0:(Y=g[0])==null?
void 0:Y.richGridRenderer)}},
setRichGridRendererData:function(F){this.richGridRendererData=F},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var F,q=(F=this.data)==null?void 0:F.engagementPanels;if(q==null?0:q.length){F=null;q=_.X(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u=void 0;if(((u=t.engagementPanelSectionListRenderer)==null?void 0:u.targetId)==="engagement-panel-structured-description"){F=t;break}}var J,g,Y;F=(J=F)==null?void 0:(g=J.engagementPanelSectionListRenderer)==null?void 0:(Y=g.content)==null?void 0:Y.structuredDescriptionContentRenderer;if(F==null?0:F.items){J=
[];g=_.X(F.items);for(Y=g.next();!Y.done;Y=g.next()){Y=Y.value;if(!_.E("sd_horizontal_list_show_nav_killswitch")){var Q=u=t=q=F=void 0,e=void 0,r=(F=Y.horizontalCardListRenderer)==null?void 0:(q=F.header)==null?void 0:(t=q.richListHeaderRenderer)==null?void 0:(u=t.navigationButton)==null?void 0:(Q=u.buttonRenderer)==null?void 0:(e=Q.command)==null?void 0:e.commandExecutorCommand;r&&r.commands&&(r.commands=r.commands.filter(function(N){return!_.n(N,_.BJl)}))}(!Y.expandableVideoDescriptionBodyRenderer&&
!Y.videoDescriptionHeaderRenderer||_.E("web_delhi_colorful_sd"))&&J.push(Y)}return{items:J}}}},
constructWarning_:function(F){return{text:_.FK(F),type:"WARNING"}},
isPlaShelfEnabled_:function(F){if((this.get("adPlacements",F)||[]).length)return!0;F=this.get("playerAds",F)||[];return!(!F.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",F[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var F=this;_.Q0(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var q=this.getScrollTop()>0;this.gestures_&&(q?this.gestures_.detach():this.gestures_.attach());q!==this.showFullerscreenEdu_&&_.E("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=q,_.sO(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonVisibility(F.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Q0(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var F=this;this.commentsReady=!1;_.mI.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.W2(_.mI,function(){F.setComments_()},1E3)},
setComments_:function(){if(!_.E("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.y0("cmi");_.mI.cancelJob(this.setCommentsJobId_);var F=this.getPageContents(this.data);if(F&&F.length){F=_.X(F);for(var q=F.next();!q.done;q=F.next())if(q=q.value,this.get("itemSectionRenderer.sectionIdentifier",q)==="comment-item-section"){this.comments=q.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Q0(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.E("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.y0("cmc")},
doRemoveComments_:function(){this.comments={};_.E("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.mI.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.mI.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(F,q){var t=_.n(q.endpoint,_.Fw);t&&(!(q=this.get("data.currentVideoEndpoint.watchEndpoint"))||t.videoId!==q.videoId||t.playlistId&&t.playlistId!==q.playlistId||t.index!==void 0&&t.index!==q.index||typeof t.startTimeSeconds!=="number"||(F.stopPropagation(),this.setScrollTop(0),_.sO(this).getPlayerPromise().then(function(u){var J=t.startTimeSeconds;u.seekTo(J);u.wakeUpControls();J<u.getDuration()&&u.playVideo()})))},
updatePlayerStartTime_:function(){var F=_.jmI();"t"in F&&(F=_.ZtS(F.t),this.player.seekTo(F,!0))},
updateTitleFromWatchNext:function(F){F=this.getPageContents(F);var q,t;(F=_.q1(F==null?void 0:(q=F[0])==null?void 0:(t=q.videoPrimaryInfoRenderer)==null?void 0:t.title))&&_.Q0(this.hostElement,"yt-update-title",F)},
updateTitle_:function(F){F=this.get("videoDetails.title",F)||"";_.Q0(this.hostElement,"yt-update-title",F)},
syncWithRemoteVideo_:function(F,q,t){if(this.active&&this.player){var u=this.player.getVideoData();if(u.video_id===t&&(t=u.list,_.E("polymer_enable_mdx_queue")&&t&&t.startsWith("RQ")&&(t=void 0),u.video_id!==F||t!=q)){var J;_.E("kevlar_player_watch_endpoint_navigation")?J=_.lKf(_.XtO(F,q)):J=this.buildWatchEndpoint_(F,q);_.Q0(this.hostElement,"yt-navigate",{endpoint:J,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(F,q,t){return _.gj(F,q,t)},
initDclkstatus_:function(){_.Qey()},
attachWatchPageSkeleton_:function(){var F=document.querySelector("#watch-page-skeleton");if(F){var q=F.querySelector("#primary-info"),t=F.querySelector("#secondary-info"),u=F.querySelector("#related");q&&_.ep(this.hostElement).querySelector("#info-skeleton").appendChild(q);t&&_.ep(this.hostElement).querySelector("#meta-skeleton").appendChild(t);u&&(_.ep(this.hostElement).querySelector("#related-skeleton").appendChild(u),this.watchNextSkeletonEl_=u);_.Mq(F)}},
handlePlayerUpdated_:function(){_.sO(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(F,q){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof q!=="undefined"){var t=this.watchNextSkeletonEl_.children,u=F&&F.indexSplices.length?F.indexSplices[0].index:0;F=Math.min(this.watchNextShownItems.length,t.length);q||(u=0,F=t.length);for(q=u;q<F;q++)t[q].classList.add("hidden")}},
onPlayerFullscreenChange_:function(F){_.E("external_fullscreen")||_.ec(this.hostElement,"yt-player-fullscreen",[F.fullscreen])},
onFullscreenChange_:function(F){this.fullscreen=F;this.gestures_&&this.gestures_.update(this.fullscreen);var q=_.sO(this);q.getPlayerPromise().then(function(t){t.setFauxFullscreen(!!_.gY())});
this.updateFullBleedElementLocations();F&&(q.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(F,q){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!q},
computeIsDonationShelfCollapsed_:function(F){return F},
computeShouldShowMerchShelf:function(F,q){return q&&!!F},
computeResponseHasComments:function(F){var q,t,u,J,g;return!!(F==null?0:(q=F.contents)==null?0:(t=q.twoColumnWatchNextResults)==null?0:(u=t.results)==null?0:(J=u.results)==null?0:(g=J.contents)==null?0:g.some(function(Y){var Q;return(Y==null?void 0:(Q=Y.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(F,q,t,u){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&u?!1:!!F&&!!Object.keys(F).length&&!q},
identity:_.I_,onWindowResized_:function(F){this.windowSize_=F;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(F){var q=this;F&&F.type!=="dataloaded"&&F.type!=="dataupdated"||_.sO(this).getPlayerPromise().then(function(t){var u=t.getPlayerState();u!==5&&u!==0&&(t=1/t.getVideoAspectRatio(),q.videoHeightToWidthRatio_!==t&&(q.videoHeightToWidthRatio_=t))})},
schedulePlayerSizeUpdate_:function(F){var q=this,t=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip"),u=function(){if(q.watchMetadata){var J,g;(g=(J=q.watchMetadata).resize)==null||g.call(J)}_.sO(q).getPlayerPromise().then(function(Y){if(_.E("kevlar_set_internal_player_size")){if(!t||!q.isMiniplayerActive()){var Q=q.calculateCurrentPlayerSize_();Y.setInternalSize(Q.width,Q.height)}}else Y.setSize(NaN,NaN);_.E("kevlar_watch_while")&&q.updateWatchWhileScrollThreshold_()})};
F?u():_.Ze(_.mI,u)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(F){this.set("data.survey",F.detail)},
onYtShowSurveyCommand_:function(F){this.set("data.survey",_.n(F,_.zE9).survey)},
onDownloadedVideoDeleted:function(F){var q=this,t,u;return _.p(function(J){if(J.nextAddress==1){if(!q.active||(t=q.playerData)==null||!t.offlineState||q.videoId!==F)return J.return();(u=q.player)==null||u.stopVideo();_.$A().navigatingAwayFromWatchDeletedVideo=!0;_.n9(_.t0$,q.hostElement);return J.yield(_.$A().navigationFinishPromise,2)}_.$A().navigatingAwayFromWatchDeletedVideo=!1;_.WA(J)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var F;this.theater?F=_.AX(.5625*this.windowSize_.width,480,this.windowSize_.height-185):F=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==F&&(this.watchWhileScrollThreshold_=F,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var F=_.ep(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&F){var q=this.windowSize_.height>=624,t=this.active?this.getScrollTop():0;!F.active&&q&&t>=this.watchWhileScrollThreshold_?(F.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):F.active&&(!q||t<this.watchWhileScrollThreshold_&&!_.gY())&&(F.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var F=_.ep(this.hostElement).querySelector("#secondary-inner");if(F){var q=_.ep(this.hostElement).querySelector("#below"),t=_.ep(this.hostElement).querySelector("#secondary"),u=_.ep(this.hostElement).querySelector("#comments");u&&t&&q&&(this.defaultTwoColumnLayout?(F.appendChild(u),t.appendChild(F)):(q.appendChild(u),_.Uj(q,F)))}}},
isTwoColumnsChanged_:function(F,q){if(F!==!0||q!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(F=_.ep(this.hostElement).querySelector("#secondary-inner"))){q=_.ep(this.hostElement).querySelector("#below");var t=_.ep(this.hostElement).querySelector("#secondary"),u=_.ep(this.hostElement).querySelector("#comments");u&&t&&q&&(this.isTwoColumns_?(F.appendChild(u),t.appendChild(F)):(q.appendChild(u),_.Uj(q,F)))}}else{F=!_.E("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);q=_.ep(this.hostElement).querySelector("#panels");var J=_.ep(this.hostElement).querySelector("#alerts");t=_.ep(this.hostElement).querySelector("#playlist");u=_.ep(this.hostElement).querySelector("#related");var g=_.ep(this.hostElement).querySelector("#donation-shelf"),Y=_.ep(this.hostElement).querySelector("#comments");this.isTwoColumns_?(J=_.ep(this.hostElement).querySelector("#secondary-inner"),F&&(J.appendChild(q),J.appendChild(t)),J.appendChild(g),
J.appendChild(u)):(F&&(_.y2(q,J),_.y2(t,J)),_.y2(g,J),Y&&_.y2(u,Y));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.E("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.E("web_watch_enable_fs_squeezeback_panels")&&_.E("web_watch_theater_chat")){var F=_.ep(this.hostElement).querySelector("#chat-container"),q=this.theater&&!this.fullscreen||_.E("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&q?(q=_.ep(this.hostElement).querySelector("#columns"),(F==null?void 0:F.parentElement)!==q&&q.append(F),this.fixedPanels=!0):(this.fixedPanels=
!1,q=_.ep(this.hostElement).querySelector("#playlist"),F&&q?_.CR(F,q):_.bz(new _.D0("Missing element when updating chat location",{"chatContainer defined":!!F,"playlist defined":!!q})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(F,q){return _.E("sw_metadata_vis_toggle_ks")?!0:!!F||!!q},
computeForceDarkPanelTheme:function(F){return _.E("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&F:!1},
safeUpdateStyles:function(F){try{_.ws(this.hostElement,F)}catch(q){_.bz(q)}},
videoHeightToWidthRatioChanged_:function(F,q){q&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(F){this.videoHeightToWidthRatio_=1/F},
computeIsVerticalVideo_:function(F){return F>=1},
computeIsFourThreeToSixteenNineVideo_:function(F){return F<=.7501&&F>=.5624},
computeIsExtraWideVideo_:function(F){return F<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.sO(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.sO(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.PoI(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(F){var q=_.vG(F)||0;_.A8(F,q+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var F=_.vG("yt-fullerscreen-edu-button-click-count")||0,q=_.vG("yt-fullerscreen-edu-button-shown-count")||0,t=_.YE("external_fullscreen_button_shown_threshold"),u=F>=_.YE("external_fullscreen_button_click_threshold")||q>=t;_.sO(this).getPlayerPromise().then(function(J){J.updateFullerscreenEduButtonSubtleModeState(u)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(F,q){return q},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.sV().resolve(_.J8).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var F=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.mI.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.mI.addLowPriorityJob(function(){F.fullHeightPanelPositionUpdateJobId=0;var q=_.ep(F.hostElement).querySelector("#secondary"),t=_.ep(F.hostElement).querySelector("#fixed-secondary");q=q.getBoundingClientRect();var u=q.width;F.swatcherooSqueezeback&&
(u+=_.hw);if(F.swatcherooSqueezeback){var J=_.ep(F.hostElement).querySelector("#squeezeback-constraining-container");J.style.width=u+"px";J.style.flex="0 0 "+u+"px"}t.style.width=u+"px";t.style.left=q.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var F=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.mI.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.mI.addLowPriorityJob(function(){F.panelMaxHeightUpdateJob_=0;var q;!F.isTwoColumns_||F.theater||F.fullscreen?q=460:q=F.calculateNormalPlayerSize_().height;var t=q+"px";_.E("live_chat_taller_height")&&!F.theater&&(t="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.E("live_chat_medium_height")&&!F.theater&&(t="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.E("live_chat_scaled_height")&&!F.theater&&(t="calc(100vh - var(--ytd-toolbar-height) - 238px)");F.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":q+"px","--ytd-watch-flexy-chat-max-height":t,"--ytd-watch-flexy-structured-description-max-height":q+"px","--ytd-watch-flexy-comments-panel-max-height":q+"px","--ytd-comments-engagement-panel-content-height":q+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(F){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",F)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.rY(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(F){var q=_.ep(this.hostElement).querySelector("#engagement-panel-scrim");F?q.addEventListener("tap",_.kM(this,this.onEngagementPanelScrimClick_)):q.removeEventListener("tap",_.kM(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(F){if(this.hostElement.contains(F)&&!this.scrollToAnimation_.isAnimating()){var q=F.offsetTop-24;F=F.offsetTop+F.offsetHeight+24;var t=this.getPageScrollingElement(),u=this.getScrollTop(),J=u+t.clientHeight-56;if(q<u+56)q-=56;else if(F>J)q=F-t.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,q),500)}},
onYtSignalActionScrollToComments:function(){var F=this.hostElement.querySelector("#comments");if(F&&!this.scrollToAnimation_.isAnimating()){F=F.offsetTop-56-24;if(_.E("kevlar_comment_teaser_scroll_to_midpoint")&&(F-=_.G0().height/3,F<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,F),500)}},
onYtEngagementPanelVisibleChanged:function(F,q,t){if(this.active&&this.trackEngagementPanelVisibility&&!_.kA$.includes(t)){if(q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Zl(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var u=_.sV().resolve(_.f_);this.visiblePanelIdentifiers_.forEach(function(J){J!==t&&u.hidePanel(J)})}this.visiblePanelIdentifiers_.add(t)}q!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&q!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(t);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(F){return F?"":"watch-active-metadata"},
computeNewMetadataClass:function(F){return F?"watch-active-metadata":""},
computeIsSingleColumn:function(F,q){return q&&!F},
computeFullBleedPlayer:function(F,q,t){return _.E("web_watch_error_screen_fix")?_.E("external_fullscreen")&&F||q||t:F||q||t},
computeDefaultLayout:function(F){return!F},
computeDefaultTwoColumnLayout:function(F,q){return!F&&q},
updatePanelsLocation:function(){if(_.E("web_watch_enable_fs_squeezeback_panels")){var F=_.ep(this.hostElement).querySelector("#below"),q=_.ep(this.hostElement).querySelector("#panels"),t=_.ep(this.hostElement).querySelector("#playlist"),u=_.ep(this.hostElement).querySelector("#chat-container"),J=_.ep(this.hostElement).querySelector("#panels-full-bleed-container"),g=_.ep(this.hostElement).querySelector("#secondary-inner");if(F&&q&&t&&u&&J&&g){var Y=this.fullscreen||this.theater&&this.iMaxTheaterMode,
Q=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;Y?(J.appendChild(q),J.appendChild(u),J.appendChild(t)):this.isTwoColumns_?(Q?(F=_.ep(this.hostElement).querySelector("#columns"),(u==null?void 0:u.parentElement)!==F&&F.append(u),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.Uj(g,u),_.Uj(g,q),_.Uj(g,t)):(F.appendChild(q),F.appendChild(u),F.appendChild(t))}}},
swatcherooUpdatePanelsLocation:function(F,q,t,u,J,g){if(this.is==="ytd-watch-grid"){q=F&&!q;this.swatcherooSplitScroll&&(q?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));t=_.ep(this.hostElement).querySelector("#panels");var Y=_.ep(this.hostElement).querySelector("#playlist"),Q=_.ep(this.hostElement).querySelector("#fixed-secondary"),e=_.ep(this.hostElement).querySelector("#fixed-below"),
r=_.ep(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),N=_.ep(this.hostElement).querySelector("#chat-container");g&&(F?Q.appendChild(t):e.appendChild(t));J?F?Q.appendChild(N):e.appendChild(N):_.CR(N,r);u?F?Q.appendChild(Y):e.appendChild(Y):_.CR(Y,r);this.swatcherooSplitScroll&&(F=_.ep(this.hostElement).querySelector("#secondary"),u=_.ep(this.hostElement).querySelector("#columns"),J=_.ep(this.hostElement).querySelector("#fixed-columns-secondary"),q?
J.appendChild(F):u.appendChild(F))}},
computeMetadataSkinnyMode:function(F,q,t){return this.is!=="ytd-watch-grid"?!1:F?t:q},
computeWatchWhilePanelsActive:function(F,q){return F||q},
computeNoBorderOnChat:function(F){return _.E("web_watch_theater_chat_no_border")&&F},
computeLiveChatPresentAndExpanded:function(F,q){return F&&!q},
computePanelExpanded:function(F,q,t){return F||q||t},
computeSqueezeback:function(F,q,t,u){if(_.E("web_watch_enable_fs_squeezeback_panels")){var J=this.iMaxTheaterMode&&this.theater;return(F||q||t)&&(u||J)}},
computeSwatcherooSqueezeback:function(F,q,t){return this.is!=="ytd-watch-grid"||_.E("ww_squeezeback_killswitch")?!1:F&&q&&t},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(F){_.sO(this).getPlayerPromise().then(function(q){var t;(t=q.changeMarkerVisibility)==null||t.call(q,_.n(F,_.UU).isVisible||!1,_.n(F,_.UU).entityKeys||[],_.n(F,_.UU).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(F){this.liveChatCollapsed=F.detail;_.u1().dispatch(_.ite(F.detail));if(!this.liveChatCollapsed&&this.squeezeback){var q=_.sV().resolve(_.f_);this.visiblePanelIdentifiers_.forEach(function(t){q.hidePanel(t)})}},
onSetPlaylistCollapsed:function(F){_.E("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!F)},
provideRenderingData:function(F,q){switch(F){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=q;break;case "PRIMARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=q);this.videoPrimaryInfoRendererValue=q==null?void 0:q.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=q);this.videoSecondaryInfoRendererValue=q==null?void 0:q.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
q;break;case "CLARIFICATION":this.clarifyBoxValue=q;break;case "LIVE_CHAT":this.conversationBar=q;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=q;break;case "PLAYLIST":this.externalPlaylistData_=q!=null?q:{};break;case "MERCH_SHELF":this.merchShelfValue=q==null?void 0:q.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=q;break;case "TICKET_SHELF":this.ticket=q;break;case "OFFER_MODULE":this.offerModule=q;break;case "LIMITED_STATE":this.limitedStateValue=
q;break;case "DONATION_SHELF":this.donation=q;break;case "ALERTS":this.alertsValue=q;break;case "COMMENTS":this.comments=q;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=q;break;case "ENGAGEMENT_PANELS":this.engagementPanels=q;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=q;break;case "RICH_GRID_RENDERER":this.richGridRendererData=q;break;case "EXPANDABLE_METADATA":this.expandableMetadata=q;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
q;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=q}},
toggleCinematicsActive:function(F){this.cinematicsActive=F},
isMiniplayerActive:function(){return _.sV().resolve(_.m4).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var oz9;_.z_h=function(F){if(!(0,_.f7u)(F))throw Error("K``"+String(F));};
_.nzv=function(F){return F.findIndex(function(q){return oz9.indexOf(q.tagName)>-1})>-1};
_.MdT=function(){var F=_.sV().resolve(_.C8);_.Sk3(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(F.isFullscreenEnabled()?_.lN(document.documentElement):_.GsW(document.documentElement))};
oz9=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.O1=new Map;_.O1.set(32,59972);_.O1.set(27,50765);_.O1.set(70,60102);_.O1.set(76,60221);_.O1.set(77,60222);_.O1.set(74,60223);_.O1.set(84,60224);_.O1.set(38,61941);_.O1.set(40,61942);_.O1.set(73,62521);_.O1.set(67,62522);_.O1.set(80,63390);_.O1.set(78,63397);_.O1.set(75,59972);_.O1.set(188,63385);_.O1.set(190,63384);_.O1.set(36,63387);
_.O1.set(35,63386);_.O1.set(37,63388);_.O1.set(39,63389);_.O1.set(79,63423);_.O1.set(87,63424);_.O1.set(107,63426);_.O1.set(109,63425);_.O1.set(65,63428);_.O1.set(83,63430);_.O1.set(68,63429);_.O1.set(221,63431);_.O1.set(219,63432);_.O1.set(97,63439);_.O1.set(98,63440);_.O1.set(99,63441);_.O1.set(100,63442);_.O1.set(101,63443);_.O1.set(102,63444);_.O1.set(103,63445);_.O1.set(104,63446);_.O1.set(105,63447);_.Pv=new Map;_.Pv.set(80,63390);_.Pv.set(78,63397);_.Pv.set(188,63400);_.Pv.set(190,63401);
_.Pv.set(191,60765);_.Pv.set(13,247917);_.xy=new Map;_.AI=new Map;
}catch(e){_._DumpException(e)}
try{
var YKT,e$w,ZIs,R$y;_.s55=function(F){return F.ui.guideIsVisibleButNotPersistent};
_.gI7=function(F){return F.ui.tabGesturesIsActive};
_.lAh=function(){var F=_.pE("service_worker_scope");try{return navigator.serviceWorker.getRegistration(F)}catch(q){return Promise.reject(q)}};
_.X_v=function(F){return!(!F||!F.pushManager)};
YKT=function(){return _.lAh().then(_.X_v).catch(function(){return!1})};
_.p_J=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?YKT():Promise.resolve(!1)};
_.Q5J=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
e$w=function(){var F,q,t;return _.p(function(u){switch(u.nextAddress){case 1:return u.yield(_.KC.getInstance(),2);case 2:F=u.yieldResult;if(!F){q=void 0;u.jumpTo(3);break}return u.yield(F.get("lmqf"),4);case 4:q=u.yieldResult;case 3:switch((t=q)||(t="SD"),t){case "HD":return u.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return u.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return u.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return u.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return u.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
ZIs=function(F){var q,t,u;return _.p(function(J){if(J.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.E("disable_av1_setting")){var g=window.localStorage["yt-player-av1-pref"];g=g==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":g==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else g="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(q=F===g)return J.jumpTo(2);u=t=F;return J.yield(e$w(),3)}J.nextAddress!=2&&(q=u===J.yieldResult);return J.return(q)})};var rNw;var N2v=_.my.IronButtonState,w_9=(0,_.Iz)(HTMLElement);
_.Hh({_template:function(){if(rNw!==void 0)return rNw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;R$y===void 0&&(R$y=document.createElement("template"));var u=R$y;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return rNw=F},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[N2v,_.I$,_.$x,_.Ci],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(F){var q=(0,_.nW)(this);q.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:F});q.shadowRoot.appendChild(F);return w_9.prototype._attachDom.call(this,F)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var F=this.contentElement;F&&F.selectedItem&&this._setSelectedItem(F.selectedItem)},
get contentElement(){for(var F=_.xz(this.$.content).getDistributedNodes(),q=0,t=F.length;q<t;q++)if(F[q].nodeType===Node.ELEMENT_NODE)return F[q]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(F){this._setSelectedItem(F.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(F){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F)===this&&this.open()},
_selectedItemChanged:function(F){var q="";F?q=F.label||F.getAttribute("label")||F.textContent.trim():q="";this.value=q;this._setSelectedItemLabel(q)},
_computeMenuVerticalOffset:function(F,q){return q?q:F?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var F=this.opened?"true":"false",q=this.contentElement;q&&q.setAttribute("aria-expanded",F)}});_.kK=new _.Xk("navigateAction");var iIh=new _.Xk("formRenderer");var Ep=function(){var F=_.Ga.apply(this,arguments)||this;F.showInput=!1;return F};
_.M(Ep,_.Ga);_.l=Ep.prototype;_.l.detached=function(){this.showInput&&window.removeEventListener("click",_.kM(this,this.closeOnOutsideClick_))};
_.l.stopPropagation_=function(F){this.showInput&&F.stopPropagation()};
_.l.closeOnOutsideClick_=function(F){this.closeOnOutsideClickCondition(F)&&(this.showInput=!1,window.removeEventListener("click",_.kM(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.l.closeOnOutsideClickCondition=function(){return!0};
_.l.closeOnOutsideClickHandler=function(){};
_.l.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.kM(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.l.openOnClickHandler=function(){};
_.l.showInputChanged=function(){};
_.l.setShowInput=function(F){this.showInput=F};
Ep.prototype.setShowInput=Ep.prototype.setShowInput;Ep.prototype.showInputChanged=Ep.prototype.showInputChanged;Ep.prototype.openOnClickHandler=Ep.prototype.openOnClickHandler;Ep.prototype.openOnClick_=Ep.prototype.openOnClick_;Ep.prototype.closeOnOutsideClickHandler=Ep.prototype.closeOnOutsideClickHandler;Ep.prototype.closeOnOutsideClickCondition=Ep.prototype.closeOnOutsideClickCondition;Ep.prototype.closeOnOutsideClick_=Ep.prototype.closeOnOutsideClick_;Ep.prototype.stopPropagation_=Ep.prototype.stopPropagation_;
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ep.prototype,"showInput",void 0);_.C([_.EB("click"),_.EB("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Ep.prototype,"stopPropagation_",null);_.C([_.za("showInput"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean]),_.V("design:returntype")],Ep.prototype,"showInputChanged",null);_.C([_.Dj()],Ep);_.knJ=[Ep.prototype];var EIC;var z$v;var zH=function(){return _.x.apply(this,arguments)||this};
_.M(zH,_.x);_.l=zH.prototype;_.l.computePreselectedOption=function(F,q){return q===this.itemSelected_?F:void 0};
_.l.dataChanged_=function(){var F=this;this.preselectedSubreason=this.itemSelected_=-1;var q;(q=this.data)!=null&&q.key&&_.tJ(this,function(){var t,u=Number((t=F.data)==null?void 0:t.key);!Number.isNaN(u)&&(F.itemSelected_=u,t=(t=(F.data.items||[])[u])&&t.optionSelectableItemRenderer&&t.optionSelectableItemRenderer.preselectedIndex)&&(F.preselectedSubreason=t)})};
_.l.isSubReasonHidden_=function(F,q){return F!=q};
_.l.onTopItemSelected_=function(F,q){for(var t=_.ep(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),u=0,J=t.length;u<J;u++)t[u].select(0);_.ec(this.hostElement,"yt-report-form-update",[q.item.value]);F.stopPropagation()};
_.l.onItemSelected_=function(F,q){_.ec(this.hostElement,"yt-report-form-update",[q.item.value]);F.stopPropagation()};
_.l.getItem_=function(F){return F.serviceItem?F.serviceItem:F.navigationItem?F.navigationItem:F.optionSelectableItemRenderer?F.optionSelectableItemRenderer:null};
_.l.computeText_=function(F){return(F=this.getItem_(F))?this.ytRendererBehavior.getSimpleString(F.text):null};
_.l.validate=function(){return this.itemSelected_!==-1};
_.l.computeAriaLabel_=function(F){var q=_.q1(F.text);(F=F.accessibility&&F.accessibility.accessibilityData&&F.accessibility.accessibilityData.label)&&(q+=". "+F);return q};
_.l.computeItemSelected_=function(F){return F};
_.l.preventSelection_=function(F){F.stopPropagation();this.tooltipTapped=!0};
_.l.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.l.updateItemSelectedFromBinding=function(F){this.itemSelected_=F.detail.value};
_.l.save=function(){var F;this.validate()&&(F=this.data)!=null&&F.items&&(F=this.data.items[this.itemSelected_],F!=null&&F.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(F.optionSelectableItemRenderer.submitEndpoint)||_.RD(this.hostElement,[F.optionSelectableItemRenderer.submitEndpoint])))};
zH.prototype.onPaperRippleTransitionEnd_=zH.prototype.onPaperRippleTransitionEnd_;zH.prototype.dataChanged_=zH.prototype.dataChanged_;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],zH.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zH.prototype,"data",void 0);_.C([_.O({value:-1}),_.V("design:type",Number)],zH.prototype,"itemSelected_",void 0);
_.C([_.O({computed:"computeItemSelected_(itemSelected_)"}),_.V("design:type",Number)],zH.prototype,"value",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],zH.prototype,"restoreFocusOnClose",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],zH.prototype,"tooltipTapped",void 0);_.C([_.O({value:-1}),_.V("design:type",Number)],zH.prototype,"preselectedSubreason",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zH.prototype,"dataChanged_",null);_.C([_.EB("transitionend"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zH.prototype,"onPaperRippleTransitionEnd_",null);_.C([_.Vu({is:"yt-options-renderer",disableElementRegistration:!0})],zH);
_.b(zH,"yt-options-renderer",function(){if(z$v===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;EIC===void 0&&(EIC=document.createElement("template"));var u=EIC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);z$v=F}F=z$v;return F},{mode:2});var oIw;var nI5;var M65;var T2J;var GnC;var DMJ;var o6=function(){return _.x.apply(this,arguments)||this};
_.M(o6,_.x);o6.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
o6.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
o6.prototype.onTap=function(F){if(this.hostElement.classList.contains("selected")||_.ec(this.hostElement,"yt-share-panel-can-select-contact-action")[0])F&&F.detail&&(F.detail.x||F.detail.y)&&_.ep(this.hostElement).querySelector("#target").blur(),(F=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),F={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:F?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.ec(this.hostElement,"yt-share-panel-select-contact-action",[F])};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.C([_.O({observer:"onDataChanged"}),_.V("design:type",Object)],o6.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.V("design:type",String)],o6.prototype,"componentTitle",void 0);_.C([_.Ms("#thumbnail"),_.V("design:type",Object)],o6.prototype,"thumbnail",void 0);_.C([_.Vu({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],o6);
_.b(o6,"yt-enrolled-contact-renderer",function(){if(DMJ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;GnC===void 0&&(GnC=document.createElement("template"));var u=GnC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);DMJ=F}F=DMJ;return F},{mode:2});var W8J;var OIT;var nL=function(){return _.x.apply(this,arguments)||this};
_.M(nL,_.x);nL.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
nL.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
nL.prototype.onTap=function(F){if(this.hostElement.classList.contains("selected")||_.ec(this.hostElement,"yt-share-panel-can-select-contact-action")[0])F&&F.detail&&(F.detail.x||F.detail.y)&&_.ep(this.hostElement).querySelector("#target").blur(),(F=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),F={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:F?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.ec(this.hostElement,"yt-share-panel-select-contact-action",[F])};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.C([_.O({observer:"onDataChanged"}),_.V("design:type",Object)],nL.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.V("design:type",String)],nL.prototype,"componentTitle",void 0);_.C([_.Ms("#thumbnail"),_.V("design:type",Object)],nL.prototype,"thumbnail",void 0);_.C([_.Vu({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],nL);
_.b(nL,"yt-suggested-contact-renderer",function(){if(OIT===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;W8J===void 0&&(W8J=document.createElement("template"));var u=W8J;t.call(q,u.content.cloneNode(!0),F.content.firstChild);OIT=F}F=OIT;return F},{mode:2});var M6=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-share-panel-reset-action":"onReset"};return F};
_.M(M6,_.x);M6.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"}}}}}};
M6.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.ec(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
M6.prototype.onReset=function(){for(var F=_.ep(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),q=F.length-1;q>=0;q--)F[q].classList.toggle("selected")};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],M6.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O({observer:"onDataChanged"}),_.V("design:type",Object)],M6.prototype,"data",void 0);
_.C([_.Vu({is:"yt-contact-section-renderer",disableElementRegistration:!0})],M6);
_.b(M6,"yt-contact-section-renderer",function(){if(T2J===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;M65===void 0&&(M65=document.createElement("template"));var u=M65;t.call(q,u.content.cloneNode(!0),F.content.firstChild);T2J=F}F=T2J;return F},{mode:2});var TH=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return F};
_.M(TH,_.x);_.l=TH.prototype;_.l.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"}}}};
_.l.onYtRefreshFormCommand=function(F){var q;(F=_.n((q=_.n(F,_.uzJ))==null?void 0:q.formRenderer,iIh))&&this.set("data",F)};
_.l.reset=function(){var F=_.ep(this.hostElement).querySelector("#fields").children;F=_.X(F);for(var q=F.next();!q.done;q=F.next())q=q.value,q.reset&&q.reset()};
_.l.getForm=function(){var F={},q=_.ep(this.hostElement).querySelector("#fields").children;q=_.X(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;if(!t.validate())return null;F[t.data.key]=t.value}return F};
_.l.submitFormFields=function(){if(this.fields)for(var F=_.X(this.fields),q=F.next();!q.done;q=F.next())q=q.value,q.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?q.save():q.nodeName==="YT-OPTIONS-RENDERER"&&q.save()};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],TH.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],TH.prototype,"data",void 0);_.C([_.Ta("#fields > *"),_.V("design:type",Array)],TH.prototype,"fields",void 0);
_.C([_.Vu({is:"yt-form-renderer",disableElementRegistration:!0})],TH);
_.b(TH,"yt-form-renderer",function(){if(nI5===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;oIw===void 0&&(oIw=document.createElement("template"));var u=oIw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);nI5=F}F=nI5;return F},{mode:2});var PnQ;var GH=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return F};
_.M(GH,_.x);GH.prototype.onCheckboxChange=function(F){this.data&&(F=(this.checked=_.uL(F).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}})};
GH.prototype.handleUpdateCheckboxCommand=function(F){(F=_.n(F,_.EdE))&&this.data&&this.data.id===F.id&&(this.set("data.disabled",F.disabled),this.set("data.title",F.title))};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],GH.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],GH.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],GH.prototype,"checked",void 0);_.C([_.m({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],GH);
_.b(GH,"ytd-settings-checkbox-renderer",function(){if(PnQ!==void 0)return PnQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return PnQ=F},{mode:1});var xM5;var D3=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return F};
_.M(D3,_.x);D3.prototype.dataChanged=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return F.radio.removeAttribute("checked"),!F.data||!F.data.id||F.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.Q5J()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(q=F.data&&F.data.id)?t.yield(ZIs(F.data.id),4):t.jumpTo(3):(F.set("data.hidden",!0),t.jumpTo(0));t.nextAddress!=3&&(q=t.yieldResult);q&&_.ec(F.hostElement,"yt-select-settings-radio-option",[F.data.id]);_.WA(t)})};
D3.prototype.onButtonChanged=function(F){_.uL(F).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.sV().resolve(_.gN).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.ec(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
D3.prototype.onSelectOption=function(F){this.data&&this.data.id&&(this.data.id===F?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
D3.prototype.dataChanged=D3.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],D3.prototype,"ytActionHandlerBehavior",void 0);_.C([_.Ms("#radio"),_.V("design:type",Object)],D3.prototype,"radio",void 0);_.C([_.O(),_.V("design:type",Object)],D3.prototype,"data",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],D3.prototype,"dataChanged",null);_.C([_.m({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],D3);
_.b(D3,"ytd-settings-radio-option-renderer",function(){if(xM5!==void 0)return xM5;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return xM5=F},{mode:1});var ANy;var Wl=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return F};
_.M(Wl,_.x);
Wl.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"}}}};
Wl.prototype.handleUpdateTextCommand=function(F){(F=_.n(F,_.zYE))&&this.data&&this.data.id===F.id&&this.set("data",F)};
Wl.prototype.handleUpdateConnectedAppRendererCommand=function(F){if(_.n(F,_.Mjf)&&this.data){var q,t;if(F=(q=_.n(F,_.Mjf))==null?void 0:(t=q.newConnectedAppRenderer)==null?void 0:t.connectedAppRenderer)this.data=F}};
Wl.prototype.computeConnectedAppStyle=function(F){return F.style?F.style.toLowerCase().replace(/_/g,"-"):""};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Wl.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Wl.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.V("design:type",String)],Wl.prototype,"connectedAppStyle",void 0);_.C([_.m({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],Wl);
_.b(Wl,"ytd-connected-app-renderer",function(){if(ANy!==void 0)return ANy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ANy=F},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.mg("iuT5Oc");

_.$W();
}catch(e){_._DumpException(e)}
try{
_.mg("L3n37");
var BBl=function(F){return F.watch.isLearningJourneyActive},LIK=_.r0(115994),fkS=_.r0(115993),ak$=function(F,q,t){var u=this;
var J=t.dragDownAction;this.layer=0;this.JSC$23112_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return u.dragDownAction()}}}};
this.JSC$23112_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return u.dragDownAction()}}}};
this.fullscreen=!1;var g=_.DP();_.xA(g,LIK,this.layer);_.xA(g,fkS,this.layer);this.dragDownAction=function(){J();_.BT(g,{visualElement:u.fullscreen?LIK:fkS})};
this.gesture=new _.GE(F,q,this.JSC$23112_watchConfig,"pandown");this.attach()};
ak$.prototype.attach=function(){this.gesture.attach()};
ak$.prototype.detach=function(){this.gesture.detach()};
ak$.prototype.update=function(F){this.fullscreen=F;this.gesture.config=F?this.JSC$23112_watchFullScreenConfig:this.JSC$23112_watchConfig};var jee=function(F){_.Wv.call(this);var q=this;this.rootElement=F;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return q.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(t){q.initOrDisposeActiveModules(t)}));
this.onAttached()};
_.M(jee,_.Wv);_.l=jee.prototype;_.l.getRoot=function(){return this.rootElement};
_.l.getElement=function(F){return this.rootElement.getElement(F)};
_.l.setPlayerResponse=function(F){this.playerResponse=F;this.publish("PLAYER_RESPONSE_UPDATED",F)};
_.l.getPlayerResponse=function(){return this.playerResponse};
_.l.setWatchNextResponse=function(F){this.watchNextResponse===F?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=F,this.publish("WATCH_NEXT_RESPONSE_UPDATED",F))};
_.l.getWatchNextResponse=function(){return this.watchNextResponse};
_.l.registerActionHandler=function(F,q){var t=this;if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var u={};_.aJ(_.B2.getInstance(),(u[F]=q,u),this.getRoot())}else this.actionHandlers.has(F)||(this.actionHandlers.set(F,[]),u={},_.aJ(_.B2.getInstance(),(u[F]=function(){var J=_.US.apply(0,arguments);return(t.actionHandlers.get(F)||[]).map(function(g){return g.apply(null,_.mZ(J))})},u),this.getRoot())),this.actionHandlers.get(F).push(q)};
_.l.unregisterActionHandler=function(F){if(_.E("web_watch_controller_reg_multiple_handlers_killswitch")){var q={};_.jJ(_.B2.getInstance(),(q[F]=!0,q),this.getRoot())}else(q=this.actionHandlers.get(F))?(q.pop(),q.length===0&&(q={},_.jJ(_.B2.getInstance(),(q[F]=!0,q),this.getRoot()),this.actionHandlers.delete(F))):_.bz(new _.D0("Attempted to unregister an action handler which is not registered.",F))};
_.l.addPageDisposeJob=function(F){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.oPC(this.rootElement.pageDisposeJobs,F)};
_.l.removePageDisposeJob=function(F){this.rootElement.pageDisposeJobs&&_.yC(this.rootElement.pageDisposeJobs,F)};
_.l.dispatchEvent=function(F,q){_.Q0(this.rootElement,F,q)};
_.l.provideRenderingData=function(F,q){this.rootElement.provideRenderingData(F,q)};
_.l.scrollWatchTo=function(F,q){var t;(t=this.watchScrollManager)==null||t.scrollWatchTo(F,q)};
_.l.focusOnPlayer=function(){var F=this.getElement("PLAYER");_.tJ(F,function(){if(F&&F.firstElementChild){var q=F.querySelector(".html5-video-player");q&&(_.M$(_.sV().resolve(_.PT)),q.focus())}else _.bz(Error("Mo"))})};
_.l.updateCinematicFullscreenConfig=function(){var F=!!this.rootElement.theater,q=!!this.rootElement.fullscreen,t;(t=this.watchCinematicManager)==null||_.H7(t,q,F)};
_.l.subscribeToActiveChanged=function(F,q){q=q===void 0?!0:q;var t=_.yL(_.u1(),BBl,function(u){F(u)});
q&&F(BBl(_.u1().getState()));return t};
_.l.isActive=function(){return BBl(_.u1().getState())};
_.l.onAttached=function(){var F=_.E("external_fullscreen");_.E("use_unified_flag_accessor")&&(F=_.sV().resolve(_.pAh).retriever.getFlag(_.svO));(F||_.yG("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.l.initPersistentModules=function(){if(_.E("kevlar_watch_flexy_theater_manager")){var F=new _.F8O(this);_.kW(this,F)}F=new _.Cny(this);_.kW(this,F);F=new _.Al(this);_.kW(this,F);F=new _.mMQ(this);_.kW(this,F);F=new _.NNS(this);_.kW(this,F);F=new _.v7(this);_.kW(this,F);_.E("kevlar_watch_flexy_playlist_manager")&&(F=new _.kQS(this),_.kW(this,F))};
_.l.initOrDisposeActiveModules=function(F){F?(this.watchScrollManager=new _.bf(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.tvQ(this)),this.activeModules.push(new _.ttS(this)),this.activeModules.push(new _.TNK(this)),this.activeModules.push(new _.L8n(this)),_.E("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.lVS(this)),this.activeModules.push(new _.XcZ(this)),_.E("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Dhe(this)),
_.E("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.N2t(this)),_.E("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.z$t(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.E("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.eTI(this)),_.E("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.bIO(this)),F=_.E("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.E("kevlar_watch_flexy_comments_manager")&&!F&&this.activeModules.push(new _.xMO(this)),_.E("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.kyO(this)),this.activeModules.push(new _.X_t(this)),this.activeModules.push(new _.JUZ(this)),_.E("web_enable_timely_actions")&&this.activeModules.push(new _.e$e(this)),_.E("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.IVS(this)),_.E("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.TPO(this)),
_.E("web_fullscreen_components")&&this.activeModules.push(new _.QvQ(this)),_.E("web_player_rtr_ctrls")&&this.activeModules.push(new _.m3S(this))):(_.go(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.l.disposeInternal=function(){_.Wv.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.JJ.Object.defineProperties(jee.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var cDS={},FHS=["learning-journey-engagement-panel","PAlearning_chat"];
cDS.YtdLearningJourneyWatchBehavior=[_.B.YtRendererBehavior,_.w8.YtPlayerListenerBehavior,_.TD.YtRendererstamperBehavior,_.$9.YtActionHandlerBehavior,_.L0.YtPageBehavior,_.mu.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 _.yG("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.E("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.yG("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},jsPanelHeight_:{type:Boolean,value:function(){return _.E("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.E("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.YE("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.YE("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.E("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.E("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_rounded_player_large")||_.E("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.E("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.E("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.E("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.YK(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.YK(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var F=this;this.watchController=void 0;this.pageDisposeJobs=[function(){F.showMetadataPlaceholder_()},
function(){_.E("web_watch_dont_clear_comments")||F.clearComments_()},
function(){F.clearPlayerAds_()},
function(){F.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.E("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.E("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.owy(function(){return _.sO(F)},this.hostElement);
this.pageDisposeJobs.push(function(){F.youThereManager_.reset()});
_.E("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){F.resetFullerscreenEduButtonForNewPlayback_()}));
_.E("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.ze;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",
this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.E("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.E("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.E("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.kM(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(F){F&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:F}),F.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(F){_.E("kevlar_watch_flexy_theater_manager")&&(this.theater=F,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.E("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(F){!_.E("kevlar_watch_while_v2")&&!_.E("web_watch_pip")||F||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(F){this.active!==void 0&&(this.fullscreen=F,_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(F){this.active!==void 0&&(_.Q0(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.E("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(F>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(F){this.initCsi_();this.updatePageData_(F)},
updatePageData_:function(F){var q=this;if(F)if(this.data===F){this.onPageLoadWithSameData_();var t;(t=this.watchController)==null||t.setWatchNextResponse(this.data)}else this.data=F;this.playlist&&_.mj({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.y0("nw");this.loading=!1;_.W2(_.mI,function(){q.initDclkstatus_();var u,J=((u=q.player)==null?void 0:u.getVideoData().cpn)||"";_.lkn(function(g,Y){_.iBv(g,Y,J)})})},
onPageLoadWithSameData_:function(){_.E("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var F=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!F);this.set("loadingData.playlistLoading",F&&F!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),F=this.watchNextSkeletonEl_.firstElementChild;F;)F.classList.remove("hidden"),F=F.nextElementSibling;var q,t,u;F=(q=this.loadingData)==null?void 0:(t=q.endpoint)==null?void 0:(u=t.watchEndpoint)==null?void 0:u.videoId;var J;F&&(J="https://i.ytimg.com/vi/"+F+"/frame0.jpg");_.ep(this.hostElement).querySelector("#player").style.backgroundImage=J?"url("+J+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var F=_.ep(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&F&&(F.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var q,t;(t=(q=this.watchMetadata).updateSentimentBarWidth)==
null||t.call(q);var u,J;(J=(u=this.watchMetadata).resize)==null||J.call(u)}_.ep(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(F){var q=_.ep(this.hostElement).querySelector(F);q?_.Xw(q,!1):_.bz(new _.D0("Overscroll monitor not found for component: ",F))},
removeSplitScrollMouseTrap:function(F){var q=_.ep(this.hostElement).querySelector(F);q?_.Yo(q):_.bz(new _.D0("Disposal component for  overscroll monitoring not found: ",F))},
onLoadingChanged_:function(F){F?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(F){var q=this;F?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.mI.addLowPriorityJob(function(){q.onWindowResized_(_.Oy(!0))})},
updateTheaterModeState_:function(F){if(!_.E("kevlar_watch_flexy_theater_manager")){F=F||this.fullWindowMode_;if(this.theater!==void 0||F)this.theater=F;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();F&&_.UnI()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var F=this.theater;_.E("external_fullscreen")&&this.fullscreen&&(F=!0);F=F?_.ep(this.hostElement).querySelector("#player-full-bleed-container"):_.ep(this.hostElement).querySelector("#player-container-inner");var q=this.getPlayerContainer(),t=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip");q.parentElement!==F&&(t&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.sO(this).appendTo(F,q),F.appendChild(_.ep(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var F=this;return _.p(function(q){if(q.nextAddress==1)return q.yield(_.sV().resolve(_.m4).deactivate(),2);F.updatePlayerLocation();_.WA(q)})},
updateCinematicsLocation:function(){var F=this.getElement("CINEMATICS");if(F){var q=this.getCinematicsLocationContainer();F.parentElement!==q&&q.appendChild(F);var t;(t=this.watchController)==null||t.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.ep(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ep(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(F,q){var t=document.documentElement.hasAttribute("dark"),u=t&&_.E("web_cinematic_theater_mode"),J=t&&_.E("web_cinematic_fullscreen");t=!t&&this.cinematicLightTheme;return F&&u||q&&J||(q||F)&&t},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var F;(F=this.watchController)==null||F.setWatchNextResponse(this.data);_.E("kevlar_watch_flexy_comments_manager")||this.initComments_();_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.sV().resolve(_.J8).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.E("web_watch_start_chat_in_theater_mode")){var q,
t,u;if((q=this.data)==null?0:(t=q.contents)==null?0:(u=t.twoColumnWatchNextResults)==null?0:u.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var J,g;((J=this.data)==null?0:(g=J.contents)==null?0:g.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(F){var q;(q=this.watchController)==null||q.setPlayerResponse(this.playerData);F&&F.playabilityStatus&&(q=this.isVideoPlayable_(F.playabilityStatus,this.getPlayerOverlays_(this.data)),F=this.isLiveStreamOffline_(F.playabilityStatus),q&&!F||_.tJ(this,function(){_.y0("pbu")}));
this.setPlayerAds_();_.Zl(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(F){_.u1().dispatch(_.pj({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));F?this.activate_():this.deactivate_()},
attached:function(){var F=this;this.watchController=new jee(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.E("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var q=_.sO(this);_.E("kevlar_disable_prepare_player")||q.preparePlayer();_.E("kevlar_watch_flexy_playlist_manager")||_.sV().resolve(_.J8).setPlayer(q);this.updatePageMediaQueries();q={"--ytd-watch-flexy-scrollbar-width":_.gE()+
"px"};!_.YE("kv_pl_mx_sz_ks")&&_.YE("kevlar_watch_max_player_width")&&(q["--ytd-watch-flexy-max-player-width-wide-screen"]=_.AQQ+"px");_.YE("kevlar_watch_flexy_metadata_height")&&(q["--ytd-watch-flexy-space-below-player"]=_.vnZ+"px");this.safeUpdateStyles(q);_.E("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new ak$(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return F.onPlayerTouchPanDown_()}}));
_.E("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.ep(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var F=_.gE(),q=_.KX+F,t=q;this.fixedPanels&&(q+=_.xyK);var u=657+F;F=1327+F;_.ep(this.hostElement).querySelector("#two-column-query").query="(min-width: "+q+"px)";_.ep(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(u+"px), (min-height: 630px) and (min-width: ")+(q+"px) and (max-width: ")+(F+"px)");_.ep(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(F+"px)");
_.ep(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+t+"px)"},
calculateCurrentPlayerSize_:function(){var F=_.ep(this.hostElement).querySelector("#miniplayer-bar").firstChild;return F&&F.active||this.theater||_.E("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Ma(NaN,NaN):_.eEy(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.eEy(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.sP(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var F=this;this.onWindowResized_(_.Oy());_.E("browse_skeleton_removal_on_watch_killswitch")||_.yG("IS_SHELL_LOAD")&&_.I77();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var q=_.sO(this);q.addEventListener("yt-player-updated",_.kM(this,this.onPlayerUpdated_));q.getPlayerPromise().then(function(t){F.playerApiReady_(t)});
_.E("kevlar_watch_flexy_playlist_manager")||(q=_.sV().resolve(_.J8),_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&q.addEventListener("yt-navigate",_.kM(this,this.onYtNavigate_)),q.setPlaylistComponent(_.ep(this.hostElement).querySelector("#playlist")),q.addEventListener("yt-playlist-data-updated",_.kM(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.mI.addLowPriorityJob(function(){_.Q0(F.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.sO(this).removeEventListener("yt-player-updated",_.kM(this,this.onPlayerUpdated_));if(!_.E("kevlar_watch_flexy_playlist_manager")){var F=_.sV().resolve(_.J8);_.E("kevlar_watch_observe_playlist_navigations_killswitch")&&F.removeEventListener("yt-navigate",_.kM(this,this.onYtNavigate_));F.cancelVideoSkip();F.removeEventListener("yt-playlist-data-updated",_.kM(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.E("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Q0(this.hostElement,"yt-autonav-pause-player",!1);F=_.gY();_.E("kevlar_exit_fullscreen_leaving_watch")&&F&&_.lN(F)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(F){this.player&&this.player.updateVideoData({rvs:F.rvs})},
getPageContents:function(F){return F&&F.contents&&F.contents.twoColumnWatchNextResults&&F.contents.twoColumnWatchNextResults.results&&F.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(F){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",F)},
onRetrieveLocation_:function(F,q){q.hasComments?q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):q.locationRetrieved("/related_ajax",void 0);F.stopPropagation()},
onSubscriptionChanged_:function(F,q){this.player&&(q?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.BV("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ep(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ep(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(F){this.player=F;this.setPlayerState(F.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.E("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.E("kevlar_unified_player")||_.E("kevlar_player_new_bootstrap_adoption"))&&_.Sx()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(F,q){q=q===void 0?!0:q;_.gY()&&_.E("external_fullscreen")&&_.lN(document.documentElement);this.theaterRequested_=F;q&&_.nE("wide",F?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.E("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.ec(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Q0(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(F){_.yw(F,typeof this.player),this.player&&_.yw(F,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var F;((F=this.player)==null?0:F.isFullscreen())?this.player.toggleFullscreen():_.ec(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(F,q){return this.loading?q:!!Object.keys(F).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(F){if(F){F=_.X(F);for(var q=F.next();!q.done;q=F.next())q=q.value,q.youThereRenderer&&_.TBe(this.youThereManager_,q.youThereRenderer)}},
setPlaylistData_:function(F){return F||{}},
userEngagementConfigDataChanged_:function(F){if(F)if(F.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var q=this.youThereManager_;_.X1()<F.lowEngagementThresholdMs||_.Oty(q,!0)}else F.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ec(this.hostElement,"yt-autonav-pause-user-engagement",[F])},
isPlayerUnavailable_:function(F,q,t){return!!F&&!this.isVideoPlayable_(F,t)&&!q},
getPlayerOverlays_:function(F){return(F==null?void 0:F.playerOverlays)||null},
isVideoPlayable_:function(F,q){if(!F)return!1;var t=F.status==="OK"||F.status==="LIVE_STREAM_OFFLINE",u=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",F)||this.get("errorScreen.ypcTrailerRenderer",F);F=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",F);var J;q=q==null?void 0:(J=q.playerOverlayRenderer)==null?void 0:J.gatedActionsOverlayRenderer;return!!t||!!u||!!F||!!q},
hasWatchNextResponseErrorRenderer:function(F){var q=this.getPageContents(F),t,u,J,g,Y;return!(F==null?0:(t=F.contents)==null?0:(u=t.twoColumnWatchNextResults)==null?0:u.secondaryResults)&&!!((J=q[0])==null?0:(g=J.itemSectionRenderer)==null?0:(Y=g.contents[0])==null?0:Y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(F){return F?F.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(F,q,t){var u=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",q),J=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];J=_.E("web_no_skip_video_on_verification_checks")?(F==null?void 0:F.status)&&J.includes(F.status):F&&F.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",F);g==void 0&&(g=!0);!t||this.isVideoPlayable_(F,this.getPlayerOverlays_(q))||
u||J||!g||_.sV().resolve(_.J8).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.REQ()},
onPlayerFeedbackStartRequest_:function(F){_.ec(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:F}])},
onPlayerFeedbackArticleRequest_:function(F){_.ec(this.hostElement,"yt-help-dialog-requested",[F])},
onPlayerYpcContentRequest_:function(){var F,q,t,u,J,g,Y,Q,e=((F=this.data)==null?NaN:(q=F.contents)==null?NaN:(t=q.twoColumnWatchNextResults)==null?NaN:(u=t.secondaryResults)==null?NaN:(J=u.secondaryResults)==null?NaN:(g=J.offerModule)==null?NaN:(Y=g.tvfilmOfferModuleRenderer)==null?NaN:(Q=Y.actionButtons)==null?NaN:Q.length)-1;F=[".offerButton.buttonRenderer.",".actionButtons."+(e>=0?e:0)+".buttonRenderer."];q=_.X(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(t=q.next();!t.done;t=q.next())for(t=t.value,u=_.X(F),J=u.next();!J.done;J=u.next())if(J="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+t+J.value,J=this.get(J+"navigationEndpoint",this.data)||this.get(J+"serviceEndpoint",this.data)||this.get(J+"command",this.data)){_.n9(J,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(F){_.Q0(this.hostElement,"yt-autonav-pause-player",F)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(F){F()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(F){switch(F){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(F){switch(F){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Q0(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(F)},
setPlayerState:function(F){_.u1().dispatch(_.jML(F))},
onPlayerSubscribe_:function(F){_.ec(this.hostElement,"yt-player-subscribe",[F])},
onPlayerUnsubscribe_:function(F){_.ec(this.hostElement,"yt-player-unsubscribe",[F])},
onPlayerAdYtShowToast_:function(F){_.ec(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:F.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(F){if(F)return F},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(F){return!_.E("web_watch_move_summary_to_sd")&&!!F},
computeWatchMetadataRefresh:function(){return _.E("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var F,q,t,u;this.watchNextSecondaryResults=(F=this.data)==null?void 0:(q=F.contents)==null?void 0:(t=q.twoColumnWatchNextResults)==null?void 0:(u=t.secondaryResults)==null?void 0:u.secondaryResults}},
setRichGridRendererData:function(F){this.richGridRendererData=F},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var F,q=(F=this.data)==null?void 0:F.engagementPanels;if(q==null?0:q.length){F=null;q=_.X(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u=void 0;if(((u=t.engagementPanelSectionListRenderer)==null?void 0:u.targetId)==="engagement-panel-structured-description"){F=t;break}}var J,g,Y;F=(J=F)==null?void 0:(g=J.engagementPanelSectionListRenderer)==null?void 0:(Y=g.content)==null?void 0:Y.structuredDescriptionContentRenderer;if(F==null?0:F.items){J=
[];g=_.X(F.items);for(Y=g.next();!Y.done;Y=g.next()){Y=Y.value;if(!_.E("sd_horizontal_list_show_nav_killswitch")){var Q=u=t=q=F=void 0,e=void 0,r=(F=Y.horizontalCardListRenderer)==null?void 0:(q=F.header)==null?void 0:(t=q.richListHeaderRenderer)==null?void 0:(u=t.navigationButton)==null?void 0:(Q=u.buttonRenderer)==null?void 0:(e=Q.command)==null?void 0:e.commandExecutorCommand;r&&r.commands&&(r.commands=r.commands.filter(function(N){return!_.n(N,_.BJl)}))}Y.expandableVideoDescriptionBodyRenderer||
Y.videoDescriptionHeaderRenderer||J.push(Y)}return{items:J}}}},
constructWarning_:function(F){return{text:_.FK(F),type:"WARNING"}},
isPlaShelfEnabled_:function(F){if((this.get("adPlacements",F)||[]).length)return!0;F=this.get("playerAds",F)||[];return!(!F.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",F[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var F=this;_.Q0(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var q=this.getScrollTop()>0;this.gestures_&&(q?this.gestures_.detach():this.gestures_.attach());q!==this.showFullerscreenEdu_&&_.E("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=q,_.sO(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonVisibility(F.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Q0(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var F=this;this.commentsReady=!1;_.mI.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.W2(_.mI,function(){F.setComments_()},1E3)},
setComments_:function(){if(!_.E("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.y0("cmi");_.mI.cancelJob(this.setCommentsJobId_);var F=this.getPageContents(this.data);if(F&&F.length){F=_.X(F);for(var q=F.next();!q.done;q=F.next())if(q=q.value,this.get("itemSectionRenderer.sectionIdentifier",q)==="comment-item-section"){this.comments=q.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Q0(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.E("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.E("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.y0("cmc")},
doRemoveComments_:function(){this.comments={};_.E("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.mI.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.mI.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(F,q){var t=_.n(q.endpoint,_.Fw);t&&(!(q=this.get("data.currentVideoEndpoint.watchEndpoint"))||t.videoId!==q.videoId||t.playlistId&&t.playlistId!==q.playlistId||t.index!==void 0&&t.index!==q.index||typeof t.startTimeSeconds!=="number"||(F.stopPropagation(),this.setScrollTop(0),_.sO(this).getPlayerPromise().then(function(u){var J=t.startTimeSeconds;u.seekTo(J);u.wakeUpControls();J<u.getDuration()&&u.playVideo()})))},
updatePlayerStartTime_:function(){var F=_.jmI();"t"in F&&(F=_.ZtS(F.t),this.player.seekTo(F,!0))},
updateTitleFromWatchNext:function(F){F=this.getPageContents(F);var q,t;(F=_.q1(F==null?void 0:(q=F[0])==null?void 0:(t=q.videoPrimaryInfoRenderer)==null?void 0:t.title))&&_.Q0(this.hostElement,"yt-update-title",F)},
updateTitle_:function(F){F=this.get("videoDetails.title",F)||"";_.Q0(this.hostElement,"yt-update-title",F)},
syncWithRemoteVideo_:function(F,q,t){if(this.active&&this.player){var u=this.player.getVideoData();if(u.video_id===t&&(t=u.list,_.E("polymer_enable_mdx_queue")&&t&&t.startsWith("RQ")&&(t=void 0),u.video_id!==F||t!=q)){var J;_.E("kevlar_player_watch_endpoint_navigation")?J=_.lKf(_.XtO(F,q)):J=this.buildWatchEndpoint_(F,q);_.Q0(this.hostElement,"yt-navigate",{endpoint:J,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(F,q,t){return _.gj(F,q,t)},
initDclkstatus_:function(){_.Qey()},
attachWatchPageSkeleton_:function(){var F=document.querySelector("#watch-page-skeleton");if(F){var q=F.querySelector("#primary-info"),t=F.querySelector("#secondary-info"),u=F.querySelector("#related");q&&_.ep(this.hostElement).querySelector("#info-skeleton").appendChild(q);t&&_.ep(this.hostElement).querySelector("#meta-skeleton").appendChild(t);u&&(_.ep(this.hostElement).querySelector("#related-skeleton").appendChild(u),this.watchNextSkeletonEl_=u);_.Mq(F)}},
handlePlayerUpdated_:function(){_.sO(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(F,q){if(this.watchNextSkeletonEl_&&typeof q!=="undefined"){var t=this.watchNextSkeletonEl_.children,u=F&&F.indexSplices.length?F.indexSplices[0].index:0;F=Math.min(this.watchNextShownItems.length,t.length);q||(u=0,F=t.length);for(q=u;q<F;q++)t[q].classList.add("hidden")}},
onPlayerFullscreenChange_:function(F){_.E("external_fullscreen")||_.ec(this.hostElement,"yt-player-fullscreen",[F.fullscreen])},
onFullscreenChange_:function(F){this.fullscreen=F;this.gestures_&&this.gestures_.update(this.fullscreen);var q=_.sO(this);q.getPlayerPromise().then(function(t){t.setFauxFullscreen(!!_.gY())});
this.updateFullBleedElementLocations();F&&(q.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(F,q){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!q},
computeIsDonationShelfCollapsed_:function(F){return F},
computeShouldShowMerchShelf:function(F,q){return q&&!!F},
computeResponseHasComments:function(F){var q,t,u,J,g;return!!(F==null?0:(q=F.contents)==null?0:(t=q.twoColumnWatchNextResults)==null?0:(u=t.results)==null?0:(J=u.results)==null?0:(g=J.contents)==null?0:g.some(function(Y){var Q;return(Y==null?void 0:(Q=Y.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(F,q){this.responseHasComments=this.computeResponseHasComments(this.data);return!!F&&!!Object.keys(F).length&&!q},
identity:_.I_,onWindowResized_:function(F){this.windowSize_=F;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.E("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.E("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(F){var q=this;F&&F.type!=="dataloaded"&&F.type!=="dataupdated"||_.sO(this).getPlayerPromise().then(function(t){var u=t.getPlayerState();u!==5&&u!==0&&(t=1/t.getVideoAspectRatio(),q.videoHeightToWidthRatio_!==t&&(q.videoHeightToWidthRatio_=t))})},
schedulePlayerSizeUpdate_:function(F){var q=this,t=_.E("kevlar_watch_while_v2")||_.E("web_watch_pip"),u=function(){if(q.watchMetadata){var J,g;(g=(J=q.watchMetadata).resize)==null||g.call(J)}_.sO(q).getPlayerPromise().then(function(Y){if(_.E("kevlar_set_internal_player_size")){if(!t||!q.isMiniplayerActive()){var Q=q.calculateCurrentPlayerSize_();Y.setInternalSize(Q.width,Q.height)}}else Y.setSize(NaN,NaN);_.E("kevlar_watch_while")&&q.updateWatchWhileScrollThreshold_()})};
F?u():_.Ze(_.mI,u)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(F){this.set("data.survey",F.detail)},
onYtShowSurveyCommand_:function(F){this.set("data.survey",_.n(F,_.zE9).survey)},
onDownloadedVideoDeleted:function(F){var q=this,t,u;return _.p(function(J){if(J.nextAddress==1){if(!q.active||(t=q.playerData)==null||!t.offlineState||q.videoId!==F)return J.return();(u=q.player)==null||u.stopVideo();_.$A().navigatingAwayFromWatchDeletedVideo=!0;_.n9(_.t0$,q.hostElement);return J.yield(_.$A().navigationFinishPromise,2)}_.$A().navigatingAwayFromWatchDeletedVideo=!1;_.WA(J)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var F;this.theater?F=_.AX(.5625*this.windowSize_.width,480,this.windowSize_.height-185):F=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==F&&(this.watchWhileScrollThreshold_=F,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var F=_.ep(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&F){var q=this.windowSize_.height>=624,t=this.active?this.getScrollTop():0;!F.active&&q&&t>=this.watchWhileScrollThreshold_?(F.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):F.active&&(!q||t<this.watchWhileScrollThreshold_&&!_.gY())&&(F.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(F,q){if(F!==!0||q!==void 0){F=!_.E("live_chat_over_engagement_panels");q=_.ep(this.hostElement).querySelector("#chat-container");var t=_.ep(this.hostElement).querySelector("#plj-sidebar"),u=_.ep(this.hostElement).querySelector("#panels"),J=_.ep(this.hostElement).querySelector("#plj-panels"),g=_.ep(this.hostElement).querySelector("#plj-playlist"),Y=_.ep(this.hostElement).querySelector("#alerts"),Q=_.ep(this.hostElement).querySelector("#playlist"),e=_.ep(this.hostElement).querySelector("#related"),
r=_.ep(this.hostElement).querySelector("#donation-shelf"),N=_.ep(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Y=_.ep(this.hostElement).querySelector("#secondary-inner"),Y.appendChild(t),t.appendChild(g),g.appendChild(Q),t.appendChild(J),F&&Y.appendChild(u),_.E("web_watch_theater_chat")||Y.appendChild(q),F||Y.appendChild(u),Y.appendChild(r),Y.appendChild(e)):(F&&_.y2(u,Y),_.y2(Q,Y),_.E("web_watch_theater_chat")||_.y2(q,Y),F||_.y2(u,Y),_.y2(r,Y),N&&(J&&_.y2(J,N),_.y2(e,N)));_.E("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.E("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.E("web_watch_theater_chat")){var F=_.ep(this.hostElement).querySelector("#chat-container"),q=this.theater&&!this.fullscreen||_.E("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&q?_.E("web_watch_theater_chat_beside_player")?(q=_.ep(this.hostElement).querySelector("#panels-full-bleed-container"),(F==null?void 0:F.parentElement)!==q&&q.append(F),this.panelsBesidePlayer=!0):_.E("web_watch_theater_fixed_chat")&&
(q=_.ep(this.hostElement).querySelector("#columns"),(F==null?void 0:F.parentElement)!==q&&q.append(F),this.fixedPanels=!0):(_.E("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.E("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),q=_.ep(this.hostElement).querySelector("#playlist"),F&&q?_.CR(F,q):_.bz(new _.D0("Missing element when updating chat location",{"chatContainer defined":!!F,"playlist defined":!!q})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(F,q){return _.E("sw_metadata_vis_toggle_ks")?!0:!!F||!!q},
computeForceDarkPanelTheme:function(F){return _.E("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&F:!1},
safeUpdateStyles:function(F){try{_.ws(this.hostElement,F)}catch(q){_.bz(q)}},
videoHeightToWidthRatioChanged_:function(F,q){q&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.E("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(F){this.videoHeightToWidthRatio_=1/F},
computeIsVerticalVideo_:function(F){return F>=1},
computeIsFourThreeToSixteenNineVideo_:function(F){return F<=.7501&&F>=.5624},
computeIsExtraWideVideo_:function(F){return F<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.sO(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.sO(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.PoI(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(F){var q=_.vG(F)||0;_.A8(F,q+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var F=_.vG("yt-fullerscreen-edu-button-click-count")||0,q=_.vG("yt-fullerscreen-edu-button-shown-count")||0,t=_.YE("external_fullscreen_button_shown_threshold"),u=F>=_.YE("external_fullscreen_button_click_threshold")||q>=t;_.sO(this).getPlayerPromise().then(function(J){J.updateFullerscreenEduButtonSubtleModeState(u)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(F,q){return q},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.sV().resolve(_.J8).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var F=this;this.panelMaxHeightUpdateJob_&&_.mI.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.mI.addLowPriorityJob(function(){F.panelMaxHeightUpdateJob_=0;var q;!F.isTwoColumns_||F.theater||F.fullscreen?q=460:q=F.calculateNormalPlayerSize_().height;var t=q+"px";_.E("live_chat_taller_height")&&!F.theater&&(t="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.E("live_chat_medium_height")&&
!F.theater&&(t="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.E("live_chat_scaled_height")&&!F.theater&&(t="calc(100vh - var(--ytd-toolbar-height) - 238px)");F.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":q+"px","--ytd-watch-flexy-chat-max-height":t,"--ytd-watch-flexy-structured-description-max-height":q+"px","--ytd-watch-flexy-comments-panel-max-height":q+"px","--ytd-comments-engagement-panel-content-height":q+"px"})})},
onYtShowEngagementPanelScrimAction_:function(F){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",F)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.rY(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(F){var q=_.ep(this.hostElement).querySelector("#engagement-panel-scrim");F?q.addEventListener("tap",_.kM(this,this.onEngagementPanelScrimClick_)):q.removeEventListener("tap",_.kM(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(F){if(this.hostElement.contains(F)&&!this.scrollToAnimation_.isAnimating()){var q=F.offsetTop-24;F=F.offsetTop+F.offsetHeight+24;var t=this.getPageScrollingElement(),u=this.getScrollTop(),J=u+t.clientHeight-56;if(q<u+56)q-=56;else if(F>J)q=F-t.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,q),500)}},
onYtSignalActionScrollToComments:function(){var F=this.hostElement.querySelector("#comments");if(F&&!this.scrollToAnimation_.isAnimating()){F=F.offsetTop-56-24;if(_.E("kevlar_comment_teaser_scroll_to_midpoint")&&(F-=_.G0().height/3,F<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,F),500)}},
onYtEngagementPanelVisibleChanged:function(F,q,t){this.active&&this.trackEngagementPanelVisibility&&!_.kA$.includes(t)&&(q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(t),q!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&q!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(t),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(F){return F?"":"watch-active-metadata"},
computeNewMetadataClass:function(F){return F?"watch-active-metadata":""},
computeFullBleedPlayer:function(F,q){return F||q},
computeDefaultLayout:function(F){return!F},
computeDefaultTwoColumnLayout:function(F,q){return!F&&q},
computeWatchWhilePanelsActive:function(F,q){return F||q},
computeNoBorderOnChat:function(F){return _.E("web_watch_theater_chat_no_border")&&F},
computeLiveChatPresentAndExpanded:function(F,q){return F&&!q},
computePanelExpanded:function(F,q,t){return F||q||t},
onChangeMarkersVisibility:function(F){_.sO(this).getPlayerPromise().then(function(q){var t;(t=q.changeMarkerVisibility)==null||t.call(q,_.n(F,_.UU).isVisible||!1,_.n(F,_.UU).entityKeys||[],_.n(F,_.UU).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(F){this.liveChatCollapsed=F.detail;_.u1().dispatch(_.ite(F.detail))},
provideRenderingData:function(F,q){switch(F){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=q;break;case "PRIMARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=q);this.videoPrimaryInfoRendererValue=q==null?void 0:q.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.E("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=q);this.videoSecondaryInfoRendererValue=q==null?void 0:q.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
q;break;case "CLARIFICATION":this.clarifyBoxValue=q;break;case "LIVE_CHAT":this.conversationBar=q;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=q;break;case "PLAYLIST":this.externalPlaylistData_=q!=null?q:{};break;case "MERCH_SHELF":this.merchShelfValue=q==null?void 0:q.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=q;break;case "OFFER_MODULE":this.offerModule=q;break;case "LIMITED_STATE":this.limitedStateValue=q;break;case "DONATION_SHELF":this.donation=q;break;
case "ALERTS":this.alertsValue=q;break;case "COMMENTS":this.comments=q;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=q;break;case "ENGAGEMENT_PANELS":this.engagementPanels=q;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=q;break;case "RICH_GRID_RENDERER":this.richGridRendererData=q;break;case "EXPANDABLE_METADATA":this.expandableMetadata=q;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=q}},
toggleCinematicsActive:function(F){this.cinematicsActive=F},
isMiniplayerActive:function(){return _.sV().resolve(_.m4).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(F){return FHS.map(function(q){return F.find(function(t){var u;return(t==null?void 0:(u=t.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===q})}).filter(function(q){return q!==void 0})},
getNonLearningJourneyEngagementPanels:function(F){return F.filter(function(q){var t;return!FHS.includes((q==null?void 0:(t=q.engagementPanelSectionListRenderer)==null?void 0:t.targetId)||"")})}}];var qDt;var c7=function(){var F=_.x.apply(this,arguments)||this;F.flexy=!0;F.learningJourney=!0;F.roundedInfoPanel=!0;F.viewTransitionEnabled=_.E("enable_player_resize_transition");F.smallerChatMinHeight=_.E("live_chat_smaller_min_height");F.cinematicTheaterMode=_.E("web_cinematic_theater_mode");F.transparentTheaterMode=_.E("web_transparent_theater_mode");F.cinematicFullscreen=_.E("web_cinematic_fullscreen");F.useLargerMaxPlayerValue=_.E("kevlar_flexy_use_larger_player_value");F.cinematicFullscreenV2=_.E("web_cinematic_fullscreen_v2");
F.isDarkTheme=document.documentElement.hasAttribute("dark");F.theaterLargerPlayer=_.E("web_watch_theater_larger_player");F.defaultCollapsePlaylist=_.E("web_watch_default_collapse_playlist");F.enableCanvasLayout=_.E("web_enable_canvas_on_learning_journey");return F};
_.M(c7,_.x);_.l=c7.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.l.ready=function(){var F=this,q=function(){F.onColumnScroll()};
this.primary.addEventListener("scroll",q);this.secondary.addEventListener("scroll",q)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(F){_.E("web_watch_update_narrow_width_killswitch")||_.u1().dispatch(_.dD9(!F.detail.value));this.ytdWatchBehavior.isTwoColumns_=F.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(F){this.ytdWatchBehavior.flexySmallWindow_=F.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(F){this.ytdWatchBehavior.flexyLargeWindow_=F.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(F){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=F.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(F){this.ytdWatchBehavior.watchNextCanShowMore=F.detail.value};
_.l.updateShownItemsFromBinding=function(F){F.detail.path?this.set(F.detail.path,F.detail.value):this.ytdWatchBehavior.watchNextShownItems=F.detail.value};
_.l.getElement=function(F){switch(F){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23121_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23121_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.JJ.Object.defineProperties(c7.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.pageVisualEffects)return!1;for(var q=0;q<this.data.pageVisualEffects.length;q++)if(F=_.n(this.data.pageVisualEffects[q],_.SQ))return q=void 0,(q=F.config)==null?void 0:q.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.learningJourneyEngagementPanels)==null?void 0:F.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var F,q=(F=this.learningJourneyEngagementPanels)==null?void 0:F.find(function(k){var z;return(k==null?void 0:(z=k.engagementPanelSectionListRenderer)==null?void 0:z.panelIdentifier)==="learning-journey-engagement-panel"});
if(q){var t,u,J,g,Y,Q,e,r,N;if(F=(r=((e=(Y=((g=q==null?void 0:(t=q.engagementPanelSectionListRenderer)==null?void 0:(u=t.content)==null?void 0:(J=u.sectionListRenderer)==null?void 0:J.contents)!=null?g:[])[0])==null?void 0:(Q=Y.itemSectionRenderer)==null?void 0:Q.contents)!=null?e:[])[0])==null?void 0:(N=r.accordionViewModel)==null?void 0:N.onTitleTap){var w=_.Sg(F);if(w)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.oc.instance.resolveCommand(w)}}}}}}});
_.JJ.Object.defineProperties(c7,{template:{configurable:!0,enumerable:!0,get:function(){if(qDt===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);qDt=F}F=qDt;return F}}});
c7.prototype.updateMiniplayerIsActiveValue=c7.prototype.updateMiniplayerIsActiveValue;c7.prototype.updateScrollTopValue=c7.prototype.updateScrollTopValue;c7.prototype.updateFullscreenValue=c7.prototype.updateFullscreenValue;c7.prototype.updateTheaterValue=c7.prototype.updateTheaterValue;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],c7.prototype,"ytComponentBehavior",void 0);
_.C([_.D(cDS.YtdLearningJourneyWatchBehavior),_.V("design:type",Object)],c7.prototype,"ytdWatchBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],c7.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],c7.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],c7.prototype,"playerData",void 0);_.C([_.O(),_.V("design:type",Object)],c7.prototype,"browseData",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"flexy",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"learningJourney",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"roundedInfoPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"viewTransitionEnabled",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"smallerChatMinHeight",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"cinematicTheaterMode",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"transparentTheaterMode",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"cinematicFullscreen",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"useLargerMaxPlayerValue",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"cinematicFullscreenV2",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"isDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],c7.prototype,"theaterLargerPlayer",void 0);_.C([_.O(),_.V("design:type",Object)],c7.prototype,"defaultCollapsePlaylist",void 0);_.C([_.O(),_.V("design:type",Object)],c7.prototype,"enableCanvasLayout",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("playerData","browseData","enableCanvasLayout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],c7.prototype,"showBrowseResponse",null);_.C([_.O({reflectToAttribute:!0}),_.W("playerData","enableCanvasLayout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],c7.prototype,"showWatchResponse",null);_.C([_.O({selector:_.b_}),_.V("design:type",Object)],c7.prototype,"theaterValue",void 0);
_.C([_.O({selector:_.yh}),_.V("design:type",Object)],c7.prototype,"fullscreenValue",void 0);_.C([_.O({selector:_.CX}),_.V("design:type",Object)],c7.prototype,"scrollTopValue",void 0);_.C([_.O({selector:_.yX}),_.V("design:type",Object)],c7.prototype,"miniplayerIsActiveValue",void 0);_.C([_.Ms("#ytd-plj-player"),_.V("design:type",HTMLElement)],c7.prototype,"ytdPlayer",void 0);_.C([_.Ms("#playlist"),_.V("design:type",HTMLElement)],c7.prototype,"JSC$23121_ytdPlaylistPanelRenderer",void 0);
_.C([_.Dc("ytd-comments"),_.V("design:type",HTMLElement)],c7.prototype,"ytdComments",void 0);_.C([_.Ms("#primary"),_.V("design:type",HTMLElement)],c7.prototype,"primary",void 0);_.C([_.Ms("#secondary"),_.V("design:type",HTMLElement)],c7.prototype,"secondary",void 0);_.C([_.Ms("#player-container"),_.V("design:type",HTMLElement)],c7.prototype,"playerContainer",void 0);_.C([_.Ms("#cinematics"),_.V("design:type",HTMLElement)],c7.prototype,"JSC$23121_cinematics",void 0);
_.C([_.za("theaterValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c7.prototype,"updateTheaterValue",null);_.C([_.za("fullscreenValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c7.prototype,"updateFullscreenValue",null);_.C([_.za("scrollTopValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c7.prototype,"updateScrollTopValue",null);
_.C([_.za("miniplayerIsActiveValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c7.prototype,"updateMiniplayerIsActiveValue",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],c7.prototype,"cinematicLightTheme",null);_.C([_.O({reflectToAttribute:!0}),_.W("learningJourneyEngagementPanels"),_.V("design:type",Object),_.V("design:paramtypes",[])],c7.prototype,"hasLearningJourneyPanels",null);
_.C([_.W("learningJourneyEngagementPanels"),_.V("design:type",Object),_.V("design:paramtypes",[])],c7.prototype,"backButtonData",null);_.C([_.m({is:"ytd-watch-learning-journey"})],c7);_.WG.registerService(_.cZ$,c7);
_.$W();
}catch(e){_._DumpException(e)}
try{
_.mg("Tm0L3c");
var V1O;var UES;var SIS=function(){return _.x.apply(this,arguments)||this};
_.M(SIS,_.x);_.C([_.m({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],SIS);
_.b(SIS,"ytd-ghost-comments-renderer",function(){if(UES===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);UES=F}F=UES;return F},{mode:1});var hEt;var KIq=function(){return _.x.apply(this,arguments)||this};
_.M(KIq,_.x);_.C([_.m({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],KIq);
_.b(KIq,"ytd-ghost-watch-metadata-renderer",function(){if(hEt===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);hEt=F}F=hEt;return F},{mode:1});var jm=function(){var F=_.x.apply(this,arguments)||this;F.ghostGridRenderer={rows:6};F.roundedInfoPanel=!0;F.hideOfferModules=!0;F.smallerChatMinHeight=_.E("live_chat_smaller_min_height");F.cinematicTheaterMode=_.E("web_cinematic_theater_mode");F.transparentTheaterMode=_.E("web_transparent_theater_mode");F.darkerPanels=_.E("web_watch_darker_panels");F.cinematicFullscreen=_.E("web_cinematic_fullscreen");F.cinematicFullscreenV2=_.E("web_cinematic_fullscreen_v2");F.isDarkTheme=document.documentElement.hasAttribute("dark");
return F};
_.M(jm,_.x);_.l=jm.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.l.ready=function(){var F=this,q=function(){F.onColumnScroll()};
this.primary.addEventListener("scroll",q);this.secondary.addEventListener("scroll",q)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(F){this.ytdWatchBehavior.isTwoColumns_=F.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(F){this.ytdWatchBehavior.flexySmallWindow_=F.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(F){this.ytdWatchBehavior.flexyLargeWindow_=F.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(F){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=F.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(F){this.ytdWatchBehavior.watchNextCanShowMore=F.detail.value};
_.l.updateShownItemsFromBinding=function(F){_.E("swatcheroo_direct_use_rich_grid")||(F.detail.path?this.set(F.detail.path,F.detail.value):this.ytdWatchBehavior.watchNextShownItems=F.detail.value)};
_.l.getElement=function(F){switch(F){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23109_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23109_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.JJ.Object.defineProperties(jm.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.pageVisualEffects)return!1;for(var q=0;q<this.data.pageVisualEffects.length;q++)if(F=_.n(this.data.pageVisualEffects[q],_.SQ))return q=void 0,(q=F.config)==null?void 0:q.enableInLightTheme;return!1}}});
jm.prototype.updateMiniplayerIsActiveValue=jm.prototype.updateMiniplayerIsActiveValue;jm.prototype.updateScrollTopValue=jm.prototype.updateScrollTopValue;jm.prototype.updateFullscreenValue=jm.prototype.updateFullscreenValue;jm.prototype.updateTheaterValue=jm.prototype.updateTheaterValue;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],jm.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.CoQ.YtdWatchBehavior),_.V("design:type",Object)],jm.prototype,"ytdWatchBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],jm.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],jm.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],jm.prototype,"ghostGridRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],jm.prototype,"playerData",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jm.prototype,"roundedInfoPanel",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jm.prototype,"hideOfferModules",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jm.prototype,"smallerChatMinHeight",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jm.prototype,"cinematicTheaterMode",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jm.prototype,"transparentTheaterMode",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jm.prototype,"darkerPanels",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jm.prototype,"cinematicFullscreen",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jm.prototype,"cinematicFullscreenV2",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jm.prototype,"isDarkTheme",void 0);_.C([_.O({selector:_.b_}),_.V("design:type",Object)],jm.prototype,"theaterValue",void 0);
_.C([_.O({selector:_.yh}),_.V("design:type",Object)],jm.prototype,"fullscreenValue",void 0);_.C([_.O({selector:_.CX}),_.V("design:type",Object)],jm.prototype,"scrollTopValue",void 0);_.C([_.O({selector:_.yX}),_.V("design:type",Object)],jm.prototype,"miniplayerIsActiveValue",void 0);_.C([_.Ms("#ytd-player"),_.V("design:type",HTMLElement)],jm.prototype,"ytdPlayer",void 0);_.C([_.Ms("#playlist"),_.V("design:type",HTMLElement)],jm.prototype,"JSC$23109_ytdPlaylistPanelRenderer",void 0);
_.C([_.Ms("#ytd-comments"),_.V("design:type",HTMLElement)],jm.prototype,"ytdComments",void 0);_.C([_.Ms("#primary"),_.V("design:type",HTMLElement)],jm.prototype,"primary",void 0);_.C([_.Ms("#secondary"),_.V("design:type",HTMLElement)],jm.prototype,"secondary",void 0);_.C([_.Ms("#player-container"),_.V("design:type",HTMLElement)],jm.prototype,"playerContainer",void 0);_.C([_.Ms("#cinematics"),_.V("design:type",HTMLElement)],jm.prototype,"JSC$23109_cinematics",void 0);
_.C([_.za("theaterValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jm.prototype,"updateTheaterValue",null);_.C([_.za("fullscreenValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jm.prototype,"updateFullscreenValue",null);_.C([_.za("scrollTopValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jm.prototype,"updateScrollTopValue",null);
_.C([_.za("miniplayerIsActiveValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jm.prototype,"updateMiniplayerIsActiveValue",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jm.prototype,"cinematicLightTheme",null);
_.b(jm,"ytd-watch-grid",function(){if(V1O===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);V1O=F}F=V1O;return F},{mode:2});_.WG.registerService(_.jZC,jm);
_.$W();
}catch(e){_._DumpException(e)}
try{
_.mg("CF909");
var dEn;var aq=function(){var F=_.x.apply(this,arguments)||this;F.flexy=!0;F.roundedInfoPanel=!0;F.viewTransitionEnabled=_.E("enable_player_resize_transition");F.smallerChatMinHeight=_.E("live_chat_smaller_min_height");F.cinematicTheaterMode=_.E("web_cinematic_theater_mode");F.transparentTheaterMode=_.E("web_transparent_theater_mode");F.cinematicFullscreen=_.E("web_cinematic_fullscreen");F.useLargerMaxPlayerValue=_.E("kevlar_flexy_use_larger_player_value");F.isDarkTheme=document.documentElement.hasAttribute("dark");
F.defaultCollapsePlaylist=_.E("web_watch_default_collapse_playlist");F.retroModeReduxValue=!1;return F};
_.M(aq,_.x);_.l=aq.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateRetroModeReduxValue=function(){_.E("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.l.ready=function(){var F=this,q=function(){F.onColumnScroll()};
this.primary.addEventListener("scroll",q);this.secondary.addEventListener("scroll",q)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(F){_.E("web_watch_update_narrow_width_killswitch")||_.u1().dispatch(_.dD9(!F.detail.value));this.ytdWatchBehavior.isTwoColumns_=F.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(F){this.ytdWatchBehavior.flexySmallWindow_=F.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(F){this.ytdWatchBehavior.flexyLargeWindow_=F.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(F){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=F.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(F){this.ytdWatchBehavior.watchNextCanShowMore=F.detail.value};
_.l.updateShownItemsFromBinding=function(F){F.detail.path?this.set(F.detail.path,F.detail.value):this.ytdWatchBehavior.watchNextShownItems=F.detail.value};
_.l.getElement=function(F){switch(F){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23104_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23104_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.JJ.Object.defineProperties(aq.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.pageVisualEffects)return!1;for(var q=0;q<this.data.pageVisualEffects.length;q++)if(F=_.n(this.data.pageVisualEffects[q],_.SQ))return q=void 0,(q=F.config)==null?void 0:q.enableInLightTheme;return!1}}});
_.JJ.Object.defineProperties(aq,{template:{configurable:!0,enumerable:!0,get:function(){if(dEn===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);dEn=F}F=dEn;return F}}});
aq.prototype.updateRetroModeReduxValue=aq.prototype.updateRetroModeReduxValue;aq.prototype.updateScrollTopValue=aq.prototype.updateScrollTopValue;aq.prototype.updateFullscreenValue=aq.prototype.updateFullscreenValue;aq.prototype.updateTheaterValue=aq.prototype.updateTheaterValue;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],aq.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.CoQ.YtdWatchBehavior),_.V("design:type",Object)],aq.prototype,"ytdWatchBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],aq.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],aq.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],aq.prototype,"playerData",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aq.prototype,"flexy",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aq.prototype,"roundedInfoPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aq.prototype,"viewTransitionEnabled",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aq.prototype,"smallerChatMinHeight",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aq.prototype,"cinematicTheaterMode",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aq.prototype,"transparentTheaterMode",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aq.prototype,"cinematicFullscreen",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aq.prototype,"useLargerMaxPlayerValue",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aq.prototype,"isDarkTheme",void 0);_.C([_.O(),_.V("design:type",Object)],aq.prototype,"defaultCollapsePlaylist",void 0);
_.C([_.O({selector:_.b_}),_.V("design:type",Object)],aq.prototype,"theaterValue",void 0);_.C([_.O({selector:_.yh}),_.V("design:type",Object)],aq.prototype,"fullscreenValue",void 0);_.C([_.O({selector:_.CX}),_.V("design:type",Object)],aq.prototype,"scrollTopValue",void 0);_.C([_.O({selector:_.yX}),_.V("design:type",Object)],aq.prototype,"miniplayerIsActive",void 0);_.C([_.O({selector:function(F){return F.watch.isWatchRetroMode}}),
_.V("design:type",Object)],aq.prototype,"retroModeReduxValue",void 0);_.C([_.Dc("ytd-player"),_.V("design:type",HTMLElement)],aq.prototype,"ytdPlayer",void 0);_.C([_.Ms("#playlist"),_.V("design:type",HTMLElement)],aq.prototype,"JSC$23104_ytdPlaylistPanelRenderer",void 0);_.C([_.Dc("ytd-comments"),_.V("design:type",HTMLElement)],aq.prototype,"ytdComments",void 0);_.C([_.Ms("#primary"),_.V("design:type",HTMLElement)],aq.prototype,"primary",void 0);
_.C([_.Ms("#secondary"),_.V("design:type",HTMLElement)],aq.prototype,"secondary",void 0);_.C([_.Ms("#player-container"),_.V("design:type",HTMLElement)],aq.prototype,"playerContainer",void 0);_.C([_.Ms("#below"),_.V("design:type",HTMLElement)],aq.prototype,"below",void 0);_.C([_.Ms("#cinematics"),_.V("design:type",HTMLElement)],aq.prototype,"JSC$23104_cinematics",void 0);
_.C([_.za("theaterValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aq.prototype,"updateTheaterValue",null);_.C([_.za("fullscreenValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aq.prototype,"updateFullscreenValue",null);_.C([_.za("scrollTopValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aq.prototype,"updateScrollTopValue",null);
_.C([_.za("retroModeReduxValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aq.prototype,"updateRetroModeReduxValue",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],aq.prototype,"cinematicLightTheme",null);_.C([_.m({is:"ytd-watch-flexy"})],aq);_.WG.registerService(_.aru,aq);
_.$W();
}catch(e){_._DumpException(e)}
try{
_.mg("nmfa2d");
var a0S;var dl=function(){var F=_.x.apply(this,arguments)||this;F.hidden=!1;F.errorScreen=null;F.playlistData={};return F};
_.M(dl,_.x);_.l=dl.prototype;_.l.getPlayer=function(){return this.ytdPlayer};
_.l.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:_.YK(["aa","eocs"])}}};
_.l.onActiveChanged=function(){_.u1().dispatch(_.PKn(this.ytPageBehavior.active))};
_.l.playerDataChanged=function(){var F;(F=this.watchController)==null||F.setPlayerResponse(this.playerData)};
_.l.dataChanged=function(){var F;(F=this.watchController)==null||F.setWatchNextResponse(this.data)};
_.l.sizeChanged=function(){var F,q;(q=(F=this.metadata).resize)==null||q.call(F)};
_.l.attached=function(){this.watchController=new _.yk(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.l.detached=function(){_.sP(this.watchController);this.watchController=void 0};
_.l.getPlayerContainer=function(){return this.playerContainer};
_.l.getElement=function(F){switch(F){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.l.provideRenderingData=function(F,q){switch(F){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=q;break;case "ERROR_SCREEN":this.errorScreen=q!=null?q:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=q;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=q;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=q;break;case "RICH_METADATA":this.richMetadataRowContainer=q;break;case "CLARIFICATION":this.clarificationData=q;break;case "PLAYLIST":this.playlistData=
q!=null?q:{};break;case "MERCH_SHELF":this.merchShelf=q;break;case "TICKET_SHELF":this.ticketShelf=q;break;case "LIMITED_STATE":this.limitedState=q;break;case "DONATION_SHELF":this.donationShelf=q;break;case "ALERTS":this.alerts=q}};
_.JJ.Object.defineProperties(dl.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return!this.hidden&&!!((F=this.data)==null?0:(q=F.contents)==null?0:(t=q.twoColumnWatchNextResults)==null?0:t.conversationBar)}}});
dl.prototype.sizeChanged=dl.prototype.sizeChanged;dl.prototype.dataChanged=dl.prototype.dataChanged;dl.prototype.playerDataChanged=dl.prototype.playerDataChanged;dl.prototype.onActiveChanged=dl.prototype.onActiveChanged;_.C([_.D(_.L0.YtPageBehavior),_.V("design:type",Object)],dl.prototype,"ytPageBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],dl.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],dl.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"playerData",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],dl.prototype,"hidden",void 0);_.C([_.Ms("#ytd-player"),_.V("design:type",HTMLElement)],dl.prototype,"ytdPlayer",void 0);_.C([_.Ms("#player-container"),_.V("design:type",HTMLElement)],dl.prototype,"playerContainer",void 0);_.C([_.Ms("#metadata"),_.V("design:type",Object)],dl.prototype,"metadata",void 0);_.C([_.Ms("#playlist"),_.V("design:type",HTMLElement)],dl.prototype,"playlistPanel",void 0);
_.C([_.O({selector:_.dnt,reflectToAttribute:!0}),_.V("design:type",Object)],dl.prototype,"fixie",void 0);_.C([_.O({selector:_.CJQ,reflectToAttribute:!0}),_.V("design:type",Object)],dl.prototype,"singleColumn",void 0);_.C([_.O({selector:function(F){return _.b_(F)&&!_.yh(F)},
reflectToAttribute:!0}),_.V("design:type",Object)],dl.prototype,"theater",void 0);_.C([_.O({selector:_.yh,reflectToAttribute:!0}),_.V("design:type",Object)],dl.prototype,"fullscreen",void 0);_.C([_.O({selector:_.WhS}),_.V("design:type",Object)],dl.prototype,"windowSize",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"singleColumnContents",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"errorScreen",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"playlistData",void 0);
_.C([_.O(),_.V("design:type",Object)],dl.prototype,"videoPrimaryInfoRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"videoSecondaryInfoRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"richMetadataRowContainer",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"clarificationData",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"commentsEntryPointHeaderRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"ticketShelf",void 0);
_.C([_.O(),_.V("design:type",Object)],dl.prototype,"merchShelf",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"donationShelf",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"limitedState",void 0);_.C([_.O(),_.V("design:type",Object)],dl.prototype,"alerts",void 0);_.C([_.W("playlistData"),_.V("design:type",Object),_.V("design:paramtypes",[])],dl.prototype,"hasPlaylistData",null);
_.C([_.W("data","hidden"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dl.prototype,"hasChat",null);_.C([_.za("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dl.prototype,"onActiveChanged",null);_.C([_.za("playerData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dl.prototype,"playerDataChanged",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dl.prototype,"dataChanged",null);_.C([_.za("windowSize","singleColumn"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dl.prototype,"sizeChanged",null);
_.b(dl,"ytd-watch-fixie",function(){if(a0S===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);a0S=F}F=a0S;return F},{mode:1});_.WG.registerService(_.fr_,dl);
_.$W();
}catch(e){_._DumpException(e)}
try{
_.mg("xwEKAe");
var PuK=function(F){return _.F1(F)?F.getAttribute("jsname")==="coFSxe":!1},xAQ=function(F,q){q.id||(q.id="ow"+_.K3(q));
F.setAttribute("jsowner",q.id);F.__owner=q;var t=_.Vp(q,PuK);t&&(_.kmz.has(t)||_.kmz.set(t,[]),_.kmz.get(t).push(F));(t=_.iMJ.get(q))||_.iMJ.set(q,t=[]);t.includes(F)||t.push(F);q.setAttribute("__IS_OWNER",!0)},Aol=function(){var F=_.GA$(1);
F=_.JO(F,_.AD_);if(!(_.TBu(F)||F[_.FjC]&&!F.__hasBeenSet))return F.value},vPy=function(F){var q=_.TV();
if(q.getFlag(202))q=q.getFlag(201);else{var t;q=(F==null?void 0:(t=F.config)==null?void 0:t.settingOnByDefault)!==void 0?F.config.settingOnByDefault:!_.E("web_shorts_cinematics_disabled_by_default")}return q},IvI=function(F){var q=_.TV();
_.GV(0,201,F);_.GV(0,202,!0);q.save()},H3K=function(F){return(F=_.GfW(F))?_.Wbo(F):0},mAt=function(F){return F.shorts.isSmallScreenSqueezeback},$Al=function(F){return F.shorts.isPlaybackStarted},CuS=function(F){var q=_.GA$(2),t=new Set;
_.vj(function(){return void t.forEach(function(u){return void u()})});
return function(u){var J=_.u5(q);try{var g=b3Z(yol(F),u);t.add(g);return function(){g();t.delete(g)}}finally{_.u5(J)}}},dAI=function(F){var q=F.children;
var t=F.root;_.AN(function(){var u=CuS(t)(q);_.vj(u)});
return document.createTextNode("")},b3Z=function(F,q){var t=VWe(F);
(F=Aol())&&xAQ(t,F);q=_.X(_.ni3(q,!0));F=q.next().value;var u=q.next().value;t.append.apply(t,_.mZ(F));return function(){u();t.remove()}},yol=function(F){if(typeof F==="string")return F=document.querySelector(F),_.z_h(F),F;
if(_.YI(F)&&F.nodeType===Node.ELEMENT_NODE)return F;if(!F.__value&&!F.__optional){var q=_.tco.USE_ELEMENT_NOT_ASSIGNED(F.__expectedTagName);F.__hasErrored=!0;throw q;}return F.value},VWe=function(F){var q=document.createElementNS(F.namespaceURI,F.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return F.appendChild(q)},UAI=function(F,q,t,u){F=q-F;
t=u-t;return Math.sqrt(F*F+t*t)},SMt=function(F,q){F&&_.sV().resolve(_.gN).resolveCommand(F,{forceClickLogging:!0,
form:{element:q}})},ho9=function(F,q,t,u){F=q-F;
t=u-t;return Math.sqrt(F*F+t*t)},K$y=function(F,q){F&&_.sV().resolve(_.gN).resolveCommand(F,{forceClickLogging:!0,
form:{element:q}})},Bfn=function(){return _.sV().resolve(_.C8).dismissedIndices},L$n=function(F,q){var t,u,J,g,Y,Q,e,r,N;
return _.p(function(w){if(w.nextAddress==1){t=_.sV().resolve(_.mn3);g=(u=t)==null?void 0:(J=u.reelWatchEndpointMap)==null?void 0:J.reelWatchSequence;Q=(Y=F.innertubeTransportService)!=null?Y:_.sV().resolve(_.da);if(!g)return w.jumpTo(2);e=g();return(r=e.JSC$13096_getRequest(q,{}))?w.yield(_.uW(Q,r.innerTubeRequest,r.input,q.clickTrackingParams,r.config),4):w.jumpTo(2)}return w.nextAddress!=2?(N=w.yieldResult,w.return(N)):w.return(void 0)})},fvQ=function(F){return _.pj({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:F}})},avS=function(F){return _.pj({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:F}})},Ej=function(F){return _.pj({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:F}})};var zi=function(F,q){if(F instanceof zi)this.array_=F.array_;else{var t;if(t=_.VC(F))a:{for(var u=t=0;u<F.length;u++){if(!_.VC(F[u])||t>0&&F[u].length!=t){t=!1;break a}for(var J=0;J<F[u].length;J++)if(typeof F[u][J]!=="number"){t=!1;break a}t==0&&(t=F[u].length)}t=t!=0}if(t)this.array_=_.C3(F);else if(F instanceof _.Ma)this.array_=j_O(F.height,F.width);else if(typeof F==="number"&&typeof q==="number"&&F>0&&q>0)this.array_=j_O(F,q);else throw Error("zo");}this.size_=new _.Ma(this.array_[0].length,
this.array_.length)},coS=function(F,q,t){for(var u=0;u<F.getSize().height;u++)for(var J=0;J<F.getSize().width;J++)q.call(t,F.array_[u][J],u,J,F)},FrZ=function(F,q){var t=new zi(F.getSize());
coS(F,function(u,J,g){t.array_[J][g]=q.call(void 0,u,J,g,F)});
return t},j_O=function(F,q){for(var t=[],u=0;u<F;u++){t[u]=[];
for(var J=0;J<q;J++)t[u][J]=0}return t};
zi.prototype.add=function(F){if(!_.uql(this.size_,F.getSize()))throw Error("Ao");return FrZ(this,function(q,t,u){return q+F.array_[t][u]})};
zi.prototype.equals=function(F,q){if(this.size_.width!=F.size_.width||this.size_.height!=F.size_.height)return!1;q=q||0;for(var t=0;t<this.size_.height;t++)for(var u=0;u<this.size_.width;u++)if(!_.tWS(this.array_[t][u],F.array_[t][u],q))return!1;return!0};
zi.prototype.getSize=function(){return this.size_};
var o1=function(F,q,t){return q>=0&&q<F.size_.height&&t>=0&&t<F.size_.width?F.array_[q][t]:null};
zi.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var nX=function(F,q,t,u){if(!(q>=0&&q<F.size_.height&&t>=0&&t<F.size_.width))throw Error("Bo`"+q+"`"+t+"`"+F.size_.height+"`"+F.size_.width);F.array_[q][t]=u};
zi.prototype.multiply=function(F){if(F instanceof zi){if(this.size_.width!=F.getSize().height)throw Error("Co");return qvK(this,F)}if(typeof F==="number")return tCI(this,F);throw Error("Do");};
var qvK=function(F,q){var t=new zi(F.size_.height,q.getSize().width);coS(t,function(u,J,g){for(var Y=u=0;Y<this.size_.width;Y++)u+=o1(this,J,Y)*o1(q,Y,g);nX(t,J,g,u)},F);
return t},tCI=function(F,q){return FrZ(F,function(t){return t*q})};var uLn=new _.Xk("inlineSurveyRenderer");var JE9=new _.Xk("interstitialViewModel");var sjt=new _.Xk("reelNavigateCommand");var gOK=new _.Xk("reelNonVideoContentDismissalCommand");var lwS=new _.Xk("showReelsCommentsOverlayCommand");var Xft=new _.Xk("shortsSuggestedActionViewModel");var Yvl=new _.Xk("videoInteractionPopUpRenderer");var pfK;var QjS;var edt;var M9=function(){var F=_.x.apply(this,arguments)||this;F.ctaVisualElement=null;F.currentCsn=null;return F};
_.M(M9,_.x);_.l=M9.prototype;_.l.onDataChanged=function(){this.maybeLogShows()};
_.l.computeButtonShape=function(){var F=this;if(this.data)return{buttonText:_.q1(this.data.text),state:"active",onTap:function(){F.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.l.maybeCreateCtaVe=function(){var F;if((F=this.data)!=null&&F.badgeInteractionLogging){var q;if(F=(q=this.data.badgeInteractionLogging)==null?void 0:q.trackingParams)this.ctaVisualElement=_.Av(F)}};
_.l.maybeLogClicks=function(){this.currentCsn=_.yb(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.co(this.currentCsn,this.ctaVisualElement)};
_.l.maybeLogShows=function(){this.currentCsn=_.yb(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.aD(this.currentCsn,[this.ctaVisualElement])};
_.l.onTap=function(){var F;if((F=this.data)!=null&&F.onClickCommand){var q;this.ytComponentBehavior.resolveCommand((q=this.data)==null?void 0:q.onClickCommand);this.maybeLogClicks()}};
M9.prototype.onDataChanged=M9.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],M9.prototype,"ytComponentBehavior",void 0);_.C([_.O({}),_.V("design:type",Object)],M9.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],M9.prototype,"onDataChanged",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],M9);
_.b(M9,"ytd-shopping-overlay-badge-renderer",function(){if(edt!==void 0)return edt;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return edt=F},{mode:1});_.ei(_.Ol9,"reel-sound-metadata-view-model",{props:{data:_.pp,overlayDensity:_.pp}});_.ei(_.Paw,"player-disclosure-view-model",{props:{data:_.NH}});_.ei(_.YGO,"pivot-button-view-model",{props:{data:_.pp,className:_.pp}});_.ei(_.pKx,"reel-action-bar-view-model",{props:{data:_.NH,buttonShapeOverrideables:_.NH}});_.ei(_.ld(function(F){function q(){var rf,Zv,kP,n3,o_=(Zv=_.n((rf=a())==null?void 0:rf.command,_.It))==null?void 0:(kP=Zv.item)==null?void 0:(n3=kP.notificationTextRenderer)==null?void 0:n3.successResponseText;if(o_)_.ec(u.value,"yt-open-popup-action",[_.sy(o_),u.value]);else if(S())SMt(S(),T.value);else{var df;SMt((df=a())==null?void 0:df.command,T.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var t=F.data;var u=_.FG("yt-player-overlay-video-interactions");F=_.X(_.N3("0px",void 0,"O3ow6c"));var J=F.next().value,g=F.next().value;F=_.X(_.N3("0px",void 0,"V0TSYd"));var Y=F.next().value,Q=F.next().value;F=_.X(_.N3(0,void 0,"ipRdDf"));var e=F.next().value,r=F.next().value;F=_.X(_.N3(0,void 0,"ztYEKb"));var N=F.next().value,w=F.next().value,k=function(){var rf;if(((rf=_.w0())==null?void 0:rf.getPlayerState())!==-1){u.value.style.display="inherit";var Zv;(Zv=_.w0())==null||Zv.removeEventListener("onStateChange",
k)}z()},z=function(){var rf=document.querySelector("video");
if(rf){r(rf.getBoundingClientRect().width);w(rf.getBoundingClientRect().height);var Zv;g((rf==null?void 0:(Zv=rf.style)==null?void 0:Zv.left)||"0px");var kP;Q((rf==null?void 0:(kP=rf.style)==null?void 0:kP.top)||"0px")}};
_.AO(function(){var rf,Zv,kP;if(((rf=_.w0())==null?void 0:rf.getPlayerState())===-1&&Math.round(((kP=(Zv=_.w0())==null?void 0:Zv.getVideoAspectRatio())!=null?kP:0)*100)!==Math.round(e()/N()*100)){u.value.style.display="none";var n3,o_;w(e()/((o_=(n3=_.w0())==null?void 0:n3.getVideoAspectRatio())!=null?o_:1))}},"ikzYW");
_.AN(function(){var rf;(rf=_.w0())==null||rf.addEventListener("onStateChange",k);window.addEventListener("resize",z);z();var Zv,kP,n3;if((n3=(Zv=t())==null?void 0:(kP=Zv.regions)==null?void 0:kP[0])==null||!n3.transformationMatrix)throw Error("Ho");var o_;if((o_=t())==null?0:o_.trackingParams){var df;_.DP().graftServerVe((df=t().trackingParams)!=null?df:"")}_.vj(function(){var m$;(m$=_.w0())==null||m$.removeEventListener("onStateChange",k);window.removeEventListener("resize",z)})});
var T=_.FG("svg"),P=_.X(_.N3(!1,void 0,"Thzfnf"));F=P.next().value;var v=P.next().value,H=_.X(_.N3(!1,void 0,"nsniPd"));P=H.next().value;var d=H.next().value,a=function(){var rf;return _.n((rf=t())==null?void 0:rf.popUp,Yvl)},S=function(){var rf;
return(rf=t())==null?void 0:rf.command},K=function(){return _.n(S(),_.Dz)!==void 0};
H=_.zq(function(){q();return!1});
var h={},c={};return _.Z("yt-player-overlay-video-interactions",{el:u},_.Z("svg",{"on:mouseover":_.zq(function(){K()&&v(!0);d(!0);return!1}),
"on:mouseout":_.zq(function(){v(!1);d(!1);return!1}),
"on:keydown":_.zq(function(rf){rf.key==="Enter"&&q();return!1}),
"on:focus":_.zq(function(){K()&&v(!0);return!1}),
"on:blur":_.zq(function(){K()&&v(!1);return!1}),
el:T,tabindex:0,"aria-label":function(){var rf;return(rf=t())==null?void 0:rf.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Ec("ytPlayerOverlayVideoInteractionsInteractionsSvg",(h.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=F,h),(c.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=P,c)),role:"button",style:function(){var rf,Zv,kP,n3=(kP=(rf=t())==null?void 0:(Zv=rf.regions)==null?void 0:Zv[0].transformationMatrix)!=null?kP:[];rf=e();Zv=N();kP=[];for(var o_=0,df=-1;o_<n3.length;o_++)o_%3===0&&(df++,kP[df]=[]),kP[df].push(n3[o_]);n3=new zi(kP);kP=new zi([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);kP=n3.multiply(kP);n3=new zi([[0,0],[0,0],[0,0],[0,0]]);for(o_=0;o_<kP.getSize().width;o_++){df=o1(kP,0,o_);var m$=o1(kP,1,o_);if(df===null||m$===null)throw Error("Go`"+(o_+1).toString());nX(n3,o_,0,df*rf);nX(n3,o_,1,m$*Zv)}rf=o1(n3,0,0);o_=o1(n3,1,0);Zv=o1(n3,0,1);df=o1(n3,1,1);if(rf===null||o_===null||Zv===null||df===null)throw Error("Eo");kP=UAI(rf,o_,Zv,df);m$=o1(n3,3,0);n3=o1(n3,3,1);if(m$===null||n3===null)throw Error("Fo");n3=UAI(rf,m$,Zv,n3);df=(Number((df*-1).toFixed(2))-
Number((Zv*-1).toFixed(2)))/(Number(o_.toFixed(2))-Number(rf.toFixed(2)));m$=Math.atan(df)*180/Math.PI;o_=df===Number.POSITIVE_INFINITY?-90:df===Number.NEGATIVE_INFINITY?90:Object.is(df,-0)?180:df===0?0:df>0?m$*-1:rf<o_?m$*-1:Math.abs(m$)+180;return"left:calc("+rf+"px + "+J()+"); top:calc("+(Zv+"px + "+Y()+"); width:")+(kP+"px; height:")+(n3+"px; transform:rotate(")+(o_+"deg);")},
"on:click":H}))},"nk"),"yt-player-overlay-video-interactions",{props:{data:_.NH}});_.ei(_.HrT,"yt-reel-metapanel-view-model",{props:{data:_.NH,overlayDensity:_.NH}});var ZeS=_.ld(function(F){var q=F.children;var t=F.region;F=_.X(_.N3(void 0,void 0,"MsSyte"));var u=F.next().value,J=F.next().value;F=_.X(_.N3("0px",void 0,"U9Yihd"));var g=F.next().value,Y=F.next().value;F=_.X(_.N3("0px",void 0,"UO1H6d"));var Q=F.next().value,e=F.next().value;F=_.X(_.N3(0,void 0,"sMVTKb"));var r=F.next().value,N=F.next().value;F=_.X(_.N3(0,void 0,"kZZV8b"));var w=F.next().value,k=F.next().value,z=function(){var a=u();if(a){var S;if(((S=_.w0())==null?void 0:S.getPlayerState())!==-1){a.style.display=
"inherit";var K;(K=_.w0())==null||K.removeEventListener("onStateChange",z)}P()}},T=function(){var a=document.querySelectorAll("video");
return Array.from(a).find(function(S){var K;return S==null?void 0:(K=S.style)==null?void 0:K.width})},P=function(){var a=T();
if(a){N(a.getBoundingClientRect().width);k(a.getBoundingClientRect().height);var S;Y((a==null?void 0:(S=a.style)==null?void 0:S.left)||"0px");var K;e((a==null?void 0:(K=a.style)==null?void 0:K.top)||"0px")}};
_.AO(function(){var a=u();if(a){var S,K,h;if(((S=_.w0())==null?void 0:S.getPlayerState())===-1&&Math.round(((h=(K=_.w0())==null?void 0:K.getVideoAspectRatio())!=null?h:0)*100)!==Math.round(r()/w()*100)){a.style.display="none";var c,rf;k(r()/((rf=(c=_.w0())==null?void 0:c.getVideoAspectRatio())!=null?rf:1))}}},"jJLfwe");
var v=function(){P()},H;
_.AN(function(){P();var a;if(!(t==null?0:(a=t())==null?0:a.transformationMatrix))throw Error("Ho");var S;(S=_.w0())==null||S.addEventListener("onStateChange",z);if(window.ResizeObserver){if(a=T())H=new ResizeObserver(v),H.observe(a)}else window.addEventListener("resize",P);_.vj(function(){var K;(K=_.w0())==null||K.removeEventListener("onStateChange",z);H?H.disconnect():window.removeEventListener("resize",P)})});
var d=function(){var a,S,K=(S=t==null?void 0:(a=t())==null?void 0:a.transformationMatrix)!=null?S:[];a=r();S=w();for(var h=[],c=0,rf=-1;c<K.length;c++)c%3===0&&(rf++,h[rf]=[]),h[rf].push(K[c]);K=new zi(h);h=new zi([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);h=K.multiply(h);K=new zi([[0,0],[0,0],[0,0],[0,0]]);for(c=0;c<h.getSize().width;c++){rf=o1(h,0,c);var Zv=o1(h,1,c);if(rf===null||Zv===null)throw Error("Go`"+(c+1).toString());nX(K,c,0,rf*a);nX(K,c,1,Zv*S)}a=o1(K,0,0);c=o1(K,1,0);S=o1(K,0,1);rf=o1(K,1,1);
if(a===null||c===null||S===null||rf===null)throw Error("Eo");h=ho9(a,c,S,rf);Zv=o1(K,3,0);K=o1(K,3,1);if(Zv===null||K===null)throw Error("Fo");K=ho9(a,Zv,S,K);rf=(Number((rf*-1).toFixed(2))-Number((S*-1).toFixed(2)))/(Number(c.toFixed(2))-Number(a.toFixed(2)));Zv=Math.atan(rf)*180/Math.PI;c=rf===Number.POSITIVE_INFINITY?-90:rf===Number.NEGATIVE_INFINITY?90:Object.is(rf,-0)?180:rf===0?0:rf>0?Zv*-1:a<c?Zv*-1:Math.abs(Zv)+180;return"left:calc("+a+"px + "+g()+"); top:calc("+(S+"px + "+Q()+"); width:")+
(h+"px; height:")+(K+"px; transform:rotate(")+(c+"deg);")};
return _.Z(dAI,{root:"#sticker-layer"},function(){return _.Z("yt-overlay-sticker",{el:_.l_(J),style:d,class:"ytOverlayStickerHost"},q)})},"ok");var Rd9=_.ld(function(F){function q(){var z,T,P,v,H=(T=_.n((z=e())==null?void 0:z.command,_.It))==null?void 0:(P=T.item)==null?void 0:(v=P.notificationTextRenderer)==null?void 0:v.successResponseText;if(H)_.ec(u.value,"yt-open-popup-action",[_.sy(H),u.value]);else if(r())K$y(r(),u.value);else{var d;K$y((d=e())==null?void 0:d.command,u.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var t=F.data;var u=_.FG("svg"),J=_.X(_.N3(!1,void 0,"i4BL1"));F=J.next().value;var g=J.next().value,Y=_.X(_.N3(!1,void 0,"FzRJKd"));J=Y.next().value;var Q=Y.next().value,e=function(){var z;return _.n((z=t())==null?void 0:z.popUp,Yvl)},r=function(){var z;
return(z=t())==null?void 0:z.command},N=function(){return _.n(r(),_.Dz)!==void 0};
Y=_.zq(function(){q();return!1});
var w={},k={};return _.Z("svg",{"on:mouseover":_.zq(function(){N()&&g(!0);Q(!0);return!1}),
"on:mouseout":_.zq(function(){g(!1);Q(!1);return!1}),
"on:keydown":_.zq(function(z){z.key==="Enter"&&q();return!1}),
"on:focus":_.zq(function(){N()&&g(!0);return!1}),
"on:blur":_.zq(function(){N()&&g(!1);return!1}),
el:u,tabindex:0,"aria-label":function(){var z;return(z=t())==null?void 0:z.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Ec("ytPlayerOverlayInteractionInteractionsSvg",(w.ytPlayerOverlayInteractionInteractionsSvgHover=F,w),(k.ytPlayerOverlayInteractionInteractionsSvgHideOutline=J,k)),role:"button","on:click":Y})},"qk");_.ei(_.ld(function(F){var q=F.data;_.AN(function(){var t;if((t=q())==null?0:t.trackingParams){var u;_.DP().graftServerVe((u=q().trackingParams)!=null?u:"")}});
return _.Z("yt-player-overlay-interaction",null,_.Z(ZeS,{region:function(){var t,u;return(t=q())==null?void 0:(u=t.regions)==null?void 0:u[0]}},_.Z(Rd9,Object.assign({},F))))},"pk"),"yt-player-overlay-interaction",{props:{data:_.NH}});var Ti=function(){var F=_.x.apply(this,arguments)||this;F.showScrubber=!1;F.isWatchWhileMode=!1;F.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");F.enableNewStickers=_.E("use_shorts_sticker_overlay_web");F.anchoredPanelActive=!1;F.enableLivingroomLayout=_.E("reels_enable_livingroom_layout");F.enablePlayerMetadataContainer=_.E("reels_web_enable_metadata_container");F.enableSqueezebackPanels=_.E("web_shorts_enable_squeezeback_panels");F.useAspectRatio=_.E("web_use_aspect_ratio");F.isSqueezebackActive=
!1;F.smallScreenSqueezeback=!1;F.isPlayerStarted=!1;F.overlayDensity=0;F.isOverlay=!1;F.isImmersive=!1;F.isImmersiveHorizontal=!1;F.isFullscreen=!1;F.onWindowResized=function(){var q;F.set("isImmersive",((q=window.getComputedStyle(F.hostElement))==null?void 0:q.getPropertyValue("--immersive-mode-on"))==="1");F.set("isImmersiveHorizontal",F.isImmersive&&F.enableLivingroomLayout&&!F.isWatchWhileMode)};
return F};
_.M(Ti,_.x);_.l=Ti.prototype;_.l.updateIsOverlay=function(F){this.isOverlay=F.detail.value};
_.l.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.E("web_enable_flexible_overlay")||_.E("web_enable_format_first")||_.E("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.l.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.l.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.l.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.l.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.l.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.l.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.l.ready=function(){(_.E("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.E("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.pE("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.pE("reels_action_justified_content")||"flex-start")};
_.l.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}}};
_.l.setFakeLoadingButtons=function(){_.E("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.oD("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.oD("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.oD("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.oD("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.oD("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()};
_.l.setEmptyOverlayMetadata=function(){_.E("web_shorts_deflate_inactive_slides")&&(this.set("data.multiFormatLink",{reelMultiFormatLinkViewModel:void 0}),this.set("data.multimixAttributionLabel",void 0),this.set("data.suggestedAction",{shoppingOverlayRenderer:void 0,shortsSuggestedActionRenderer:void 0}),this.set("data.soundMetadata",{reelSoundMetadataViewModel:void 0}))};
_.JJ.Object.defineProperties(Ti.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.infoPanel)}}});
Ti.prototype.onIsActiveChanged=Ti.prototype.onIsActiveChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Ti.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ti.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Ti.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Ti.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],Ti.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],Ti.prototype,"isActive",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Ti.prototype,"hidden",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],Ti.prototype,"useShortsIcon",void 0);_.C([_.O({value:"left"}),_.V("design:type",String)],Ti.prototype,"buttonTooltipPosition",void 0);
_.C([_.O({value:_.E("reels_enable_livingroom_layout")?"top":"left"}),_.V("design:type",String)],Ti.prototype,"likeButtonTooltipPosition",void 0);_.C([_.O({value:"none"}),_.V("design:type",String)],Ti.prototype,"textTransform",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"showScrubber",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"isWatchWhileMode",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data.infoPanel"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ti.prototype,"hasInfoPanel",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"enableAnchoredPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"enableNewStickers",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"anchoredPanelActive",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"enableLivingroomLayout",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ti.prototype,"enablePlayerMetadataContainer",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"enableSqueezebackPanels",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"useAspectRatio",void 0);
_.C([_.O({selector:_.sBu,reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"isSqueezebackActive",void 0);_.C([_.O({selector:mAt,reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"smallScreenSqueezeback",void 0);_.C([_.O({selector:$Al}),_.V("design:type",Object)],Ti.prototype,"isPlayerStarted",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"overlayDensity",void 0);_.C([_.O(),_.V("design:type",Object)],Ti.prototype,"isOverlay",void 0);
_.C([_.O({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.V("design:type",Boolean)],Ti.prototype,"isShortsOverlay",void 0);_.C([_.O(),_.V("design:type",Object)],Ti.prototype,"isImmersive",void 0);_.C([_.O(),_.V("design:type",Object)],Ti.prototype,"isImmersiveHorizontal",void 0);_.C([_.O({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.V("design:type",Boolean)],Ti.prototype,"isShortsImmersive",void 0);
_.C([_.O({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.V("design:type",Object)],Ti.prototype,"buttonOverride",void 0);_.C([_.O({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.V("design:type",Object)],Ti.prototype,"actionBarButtonOverride",void 0);_.C([_.O({selector:_.pw,reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"isFullscreen",void 0);
_.C([_.za("isActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ti.prototype,"onIsActiveChanged",null);_.C([_.m({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Ti);
_.b(Ti,"ytd-reel-player-overlay-renderer",function(){if(QjS!==void 0)return QjS;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return QjS=F},{mode:1});var rEt;var Gi=function(){var F=_.x.apply(this,arguments)||this;F.videoDuration=0;F.playedTime=0;F.isActive=!1;F.JSC$22296_playerEvents=new Map;return F};
_.M(Gi,_.x);_.l=Gi.prototype;_.l.created=function(){this.JSC$22296_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22296_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.l.attached=function(){this.getPlayerAndInitializeListeners()};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22296_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.kM(this,this.onPageChanged))};
_.l.getPlayerAndInitializeListeners=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return q=_.g0(),q?t.yield(q.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.kM(F,F.onPageChanged)),t.jumpTo(0));F.player=t.yieldResult;F.initializePlayerListeners();_.WA(t)})};
_.l.onPageChanged=function(F){var q=this;return _.p(function(t){if(t.nextAddress==1)return F.detail.newPageType!=="ytd-shorts"?t.return():t.yield(_.l6().getPlayerPromise(),2);q.player=t.yieldResult;q.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.kM(q,q.onPageChanged));_.WA(t)})};
_.l.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22296_playerEvents)};
_.l.onVideoDataChange=function(F){var q=this;return _.p(function(t){if(!q.player||F.type!=="newdata")return t.return();q.videoDuration=_.E("web_shorts_use_progress_state_for_gapless")?q.player.getProgressState(F.playertype).seekableEnd:q.player.getDuration(F.playertype);q.playedTime=0;_.WA(t)})};
_.l.onVideoProgress=function(F){var q=this,t,u;return _.p(function(J){if(!q.player)return J.return();t=q.player.getPresentingPlayerType();u=q.player.getPlayerState();q.videoDuration=_.E("web_shorts_use_progress_state_for_gapless")?q.player.getProgressState(t).seekableEnd:q.player.getDuration(t);q.playedTime=u===0?q.videoDuration:F;_.WA(J)})};
_.l.getPercentPlayed=function(F,q){return F?_.AX(q/F,0,1):0};
_.JJ.Object.defineProperties(Gi.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var F="";return F=this.videoDuration&&this.playedTime?F+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):F+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Gi.prototype,"componentBehavior",void 0);_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],Gi.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Gi.prototype,"player",void 0);_.C([_.O(),_.V("design:type",Object)],Gi.prototype,"videoDuration",void 0);_.C([_.O(),_.V("design:type",Object)],Gi.prototype,"playedTime",void 0);_.C([_.O(),_.V("design:type",Object)],Gi.prototype,"isActive",void 0);
_.C([_.W("videoDuration","playedTime"),_.V("design:type",Number),_.V("design:paramtypes",[])],Gi.prototype,"percentPlayed",null);_.C([_.W("videoDuration","playedTime"),_.V("design:type",Object),_.V("design:paramtypes",[])],Gi.prototype,"percentPlayedStyle",null);_.C([_.W("videoDuration","isActive"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Gi.prototype,"hideProgressBar",null);
_.b(Gi,"ytd-progress-bar-line",function(){if(rEt===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);rEt=F}F=rEt;return F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var Nxe;_.ei(_.JNw,"ytm-closed-captioning-button",{props:{captionIconType:_.NH,onClick:_.pp,ariaLabel:_.NH,ariaPressed:_.NH,isOverlay:_.pp,isModern:_.pp}});_.ei(_.Orw,"desktop-shorts-volume-controls",{props:{orientation:_.NH}});var D7=function(){var F=_.x.apply(this,arguments)||this;F.playerState=null;F.isMuted=!1;F.shortsModernControlsEnabled=_.E("web_shorts_modern_controls");F.volumeControlsOrientationState=_.E("web_shorts_modern_controls")?"vertical_down":"horizontal_right";F.isOverlay=!0;F.captionIconType=-1;F.ariaLabel="";F.overlayDensity=0;F.JSC$22299_playerEvents=new Map;F.onClosedCaptionsButtonClick=function(){F.player&&_.eF(F.player)&&(F.player.toggleSubtitles(),F.updateCaptionIconType())};
return F};
_.M(D7,_.x);_.l=D7.prototype;_.l.created=function(){this.JSC$22299_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22299_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22299_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.l.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.r0(28662);this.playPauseButtonClientVE=_.r0(36842);this.fullscreenButtonToggleOffClientVE=_.r0(222256);this.fullscreenButtonToggleOnClientVE=_.r0(222257);var F=_.yb(),q=_.b7();F&&q&&(_.E("combine_ve_grafts")?(_.PQ(_.DP(),this.muteButtonClientVE,q),_.PQ(_.DP(),this.playPauseButtonClientVE,q)):_.LJ(F,q,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22299_playerEvents),this.player=null)};
_.l.updateCaptionIconType=function(){var F=-1,q=void 0,t=_.oD("CLOSED_CAPTIONS_DISABLED");this.player&&_.eF(this.player)&&(_.h4T(this.player)?(q=!0,t=_.oD("CLOSED_CAPTIONS_ON"),F=1):(q=!1,t=_.oD("CLOSED_CAPTIONS_OFF"),F=0));this.captionIconType=F;this.ariaPressedState=q;this.ariaLabel=t};
_.l.getPlayerAndInitializeListeners=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return q=_.g0(),q?t.yield(q.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.kM(F,F.onPageChanged)),t.jumpTo(0));F.player=t.yieldResult;F.initializePlayerListeners();_.WA(t)})};
_.l.onPageChanged=function(F){var q=this;return _.p(function(t){if(t.nextAddress==1)return F.detail.newPageType!=="ytd-shorts"?t.return():t.yield(_.l6().getPlayerPromise(),2);q.player=t.yieldResult;q.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.kM(q,q.onPageChanged));_.WA(t)})};
_.l.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22299_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.l.onPlayerStateChange=function(F){this.playerState=F};
_.l.onPlayerVolumeChange=function(F){this.isMuted=F.muted};
_.l.onPlayPauseButtonClick=function(){var F=this,q,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(_.l6().getPlayerPromise(),2);q=u.yieldResult;(t=_.yb())&&F.playPauseButtonClientVE&&_.co(t,F.playPauseButtonClientVE);q.getPlayerState()!==1?q.playVideo():q.pauseVideo();_.WA(u)})};
_.l.computePlayPauseIcon=function(F){return F===2||F===-1||F===5?_.E("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.E("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.E("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.l.computeFullscreenLabel=function(F){return F?_.oD("FULLSCREEN_EXIT_LABEL"):_.oD("FULLSCREEN_ENTER_LABEL")};
_.l.computePlayPauseLabel=function(F){return F===1||F===3?_.oD("PLAYER_LABEL_PAUSE"):_.oD("PLAYER_LABEL_PLAY")};
_.l.onMuteButtonClick=function(){var F=this,q,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(_.l6().getPlayerPromise(),2);q=u.yieldResult;(t=_.yb())&&F.muteButtonClientVE&&_.co(t,F.muteButtonClientVE);q.isMuted()?q.unMute(!0):q.mute(!0);_.WA(u)})};
_.l.computeMuteIcon=function(F){return F?"miniplayer:volume-off":"miniplayer:volume-up"};
_.l.computeMuteLabel=function(F){return F?_.oD("PLAYER_LABEL_UNMUTE"):_.oD("PLAYER_LABEL_MUTE")};
_.l.onFullscreenButtonClick=function(){var F=_.yb();F&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.co(F,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.co(F,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.MdT()};
_.JJ.Object.defineProperties(D7.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var F=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){F.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.E("web_shorts_modern_controls")?"player_full_exit_alt":_.E("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.E("web_shorts_modern_controls")?"player_full_enter_alt":_.E("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],D7.prototype,"componentBehavior",void 0);_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],D7.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],D7.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],D7.prototype,"player",void 0);_.C([_.O(),_.V("design:type",Object)],D7.prototype,"playerState",void 0);_.C([_.O(),_.V("design:type",Object)],D7.prototype,"isMuted",void 0);
_.C([_.O({computed:"computePlayPauseIcon(playerState)"}),_.V("design:type",String)],D7.prototype,"playPauseIcon",void 0);_.C([_.O({computed:"computeMuteIcon(isMuted)"}),_.V("design:type",String)],D7.prototype,"muteIcon",void 0);_.C([_.O({selector:_.pw}),_.V("design:type",Boolean)],D7.prototype,"isFullscreen",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],D7.prototype,"shortsModernControlsEnabled",void 0);
_.C([_.O(),_.V("design:type",Object)],D7.prototype,"volumeControlsOrientationState",void 0);_.C([_.O(),_.V("design:type",Object)],D7.prototype,"isOverlay",void 0);_.C([_.O(),_.V("design:type",Object)],D7.prototype,"captionIconType",void 0);_.C([_.O(),_.V("design:type",Object)],D7.prototype,"ariaLabel",void 0);_.C([_.O(),_.V("design:type",Object)],D7.prototype,"ariaPressedState",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],D7.prototype,"overlayDensity",void 0);
_.C([_.W("playerState"),_.V("design:type",Object),_.V("design:paramtypes",[])],D7.prototype,"playPauseButtonData",null);_.C([_.W("isFullscreen"),_.V("design:type",Object),_.V("design:paramtypes",[])],D7.prototype,"fullscreenButtonData",null);_.C([_.O(),_.V("design:type",Object)],D7.prototype,"onClosedCaptionsButtonClick",void 0);_.C([_.W("isFullscreen"),_.V("design:type",String),_.V("design:paramtypes",[])],D7.prototype,"fullscreenIcon",null);
_.b(D7,"ytd-shorts-player-controls",function(){if(Nxe===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);Nxe=F}F=Nxe;return F},{mode:1});var wfn;_.ei(_.Blw,"yt-interstitial-view-model",{props:{data:_.NH}});var iey=_.ld(function(F){var q=F.data;return _.Z("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.Z("h1",{class:"reelWatchBreakViewModelHostTitle"},_.Z(_.rv,{text:function(){return q().title}})),_.Z("h2",{class:"reelWatchBreakViewModelHostBody"},_.Z(_.rv,{text:function(){return q().body},
isOverlay:!0})),_.Z(_.Tl,{data:function(){return q().buttons}},{buttonViewModel:function(t,u){return _.Z("div",{class:function(){return u()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.Z(_.AB,{data:t.data}))}}))},"rk");
iey.idomCompat=!0;_.ei(iey,"reel-watch-break-view-model",{props:{data:_.NH}});var Wm=function(){return _.x.apply(this,arguments)||this};
_.M(Wm,_.x);Wm.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}}};
_.JJ.Object.defineProperties(Wm.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var F;return!!_.n((F=this.data)==null?void 0:F.renderer,uLn)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var F;return!!_.n((F=this.data)==null?void 0:F.renderer,JE9)}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Wm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Wm.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Wm.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Wm.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data.renderer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Wm.prototype,"isSurvey",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.renderer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Wm.prototype,"isInterstitialViewModel",null);_.C([_.m({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Wm);
_.b(Wm,"ytd-reel-non-video-content-renderer",function(){if(wfn!==void 0)return wfn;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
return wfn=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var k1Q;_.ei(_.Wg7,"desktop-shorts-player-controls",{});var Oj=function(){var F=_.x.apply(this,arguments)||this;F.isPlayerPaused=!1;F.isPlayerStarted=!1;F.showPlayerControls=!1;F.showScrubber=!1;F.autoHideJobId=0;F.modern=_.E("web_button_rework");F.overlayType=_.pE("web_shorts_expanded_overlay_type");F.panelData=void 0;F.isWatchWhileMode=!1;F.hasError=!1;F.panelShowDelayMs=1;F.scrubberComponent={};F.isFullscreen=!1;F.shouldHideOverlay=!1;F.enableAnchoredPanel=_.E("desktop_shorts_v2_anchored_panel");F.enablePersistentAnchoredPanel=_.E("desktop_shorts_v2_persistent_anchored_panel");
F.hideWatchWhilePanel=_.E("web_shorts_hide_watch_while_panel");F.useAspectRatio=_.E("web_use_aspect_ratio");F.isPersistentPanelActive=!1;F.anchoredPanelActive=!1;F.isShortsPipActive=!1;F.smallScreenSqueezeback=!1;F.enableFlexibleOverlay=_.E("web_enable_flexible_overlay");F.overlayDensity=0;F.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};F.onWindowResized=function(){_.aE(F,
"calculateOverlayDensity",function(){F.calculateOverlayDensity()},100)};
return F};
_.M(Oj,_.x);_.l=Oj.prototype;_.l.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.l.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.l.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var F=_.sV().resolve(_.f_);this.isWatchWhileMode&&(_.E("web_enable_shorts_new_carousel")?_.mI.addJob(function(){F.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):F.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.l.handleShowReelsCommentsOverlayCommand=function(F){F=_.n(F,lwS);this.isActive&&(F==null?0:F.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.l.updateEngagementPanelVisibility=function(F,q){F&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:q?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:F}})};
_.l.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.l.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.sV().resolve(_.C8).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.l.handleWatchWhilePanelScrimClick=function(){var F=_.sV().resolve(_.f_);this.activeWatchWhilePanel&&(F.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.l.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.l.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.E("web_enable_shorts_new_carousel")?0:void 0}}};
_.l.handlePlayerClick=function(F){var q=this,t,u;if((u=(t=window).matchMedia)!=null&&u.call(t,"(any-pointer: coarse)").matches||!F)this.showPlayerControls=!0,_.mI.cancelJob(this.autoHideJobId),this.autoHideJobId=_.W2(_.mI,function(){q.showPlayerControls=!1},4E3)};
_.l.isFirstReel=function(){return this.index===0};
_.l.handleMouseenter=function(){_.mI.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.l.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.l.handleScrubberEnter=function(){this.showScrubber=!0};
_.l.handleScrubberLeave=function(){this.showScrubber=!1};
_.l.maybeLogNonDefaultAspectRatio=function(){var F;(F=this.data)!=null&&F.thumbnail&&this.isActive&&.5625!==H3K(this.data.thumbnail)&&_.yIf("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.l.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var F=document.querySelector("#shorts-container");if(F){F=F.offsetWidth/2-this.playerContainer.offsetWidth/2;F=F>=368?1:F>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&F===1&&(F=0);this.isPersistentPanelActive&&(F=0);window.innerWidth<=599&&(F=2);this.overlayDensity=F;var q;(q=this.onOverlayDensityChanged)==null||q.call(this,this.index,this.overlayDensity)}}};
_.l.onOverlayDensityChange=function(){var F;(F=this.onOverlayDensityChanged)==null||F.call(this,this.index,this.overlayDensity);(F=_.ep(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&F.set("overlayDensity",this.overlayDensity);if(F=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))F.overlayDensity=this.overlayDensity};
_.l.isVideoContent=function(F){_.sV().resolve(_.C8);return!!_.n(F,_.Px)};
_.l.isNonVideoContent=function(F){_.sV().resolve(_.C8);return!!_.n(F,_.FZ)};
_.l.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.JJ.Object.defineProperties(Oj.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var F,q;return _.E("web_enable_format_first")||((F=this.data)==null?void 0:F.adsOverlay)&&_.E("web_enable_format_first_ads_only")||((q=this.data)==null?void 0:q.reelPlayerOverlayRenderer)&&_.E("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.E("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var F;return!this.isActive||!this.isPlayerStarted||(F=this.data)!=null&&F.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var F;if(((F=this.data)==null?0:F.command)&&this.isVideoContent(this.data.command)){var q,t;if(((q=this.data)==null?0:q.adsOverlay)&&Object.keys((t=this.data)==null?void 0:t.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var u,J;if(((u=this.data)==null?0:u.reelPlayerOverlayRenderer)&&Object.keys((J=this.data)==null?void 0:J.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Oj.prototype.onOverlayDensityChange=Oj.prototype.onOverlayDensityChange;Oj.prototype.calculateOverlayDensity=Oj.prototype.calculateOverlayDensity;Oj.prototype.maybeLogNonDefaultAspectRatio=Oj.prototype.maybeLogNonDefaultAspectRatio;Oj.prototype.onEngagementPanelsChanged=Oj.prototype.onEngagementPanelsChanged;Oj.prototype.onScrubberDataChange=Oj.prototype.onScrubberDataChange;Oj.prototype.updateShouldHideOverlay=Oj.prototype.updateShouldHideOverlay;
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Oj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Oj.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Oj.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Oj.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Number)],Oj.prototype,"index",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Oj.prototype,"isActive",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Oj.prototype,"isHiddenInDom",void 0);_.C([_.O(),_.V("design:type",Object)],Oj.prototype,"isPlayerPaused",void 0);_.C([_.O({selector:$Al}),_.V("design:type",Object)],Oj.prototype,"isPlayerStarted",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"showPlayerControls",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"showScrubber",void 0);_.C([_.O(),_.V("design:type",Object)],Oj.prototype,"autoHideJobId",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"modern",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"overlayType",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Oj.prototype,"ytdReduxBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Oj.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Oj.prototype,"watchWhileEngagementPanels",void 0);_.C([_.O(),_.V("design:type",Object)],Oj.prototype,"panelData",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"isWatchWhileMode",void 0);_.C([_.O(),_.V("design:type",String)],Oj.prototype,"activeWatchWhilePanel",void 0);
_.C([_.O(),_.V("design:type",Object)],Oj.prototype,"hasError",void 0);_.C([_.O(),_.V("design:type",Object)],Oj.prototype,"panelShowDelayMs",void 0);_.C([_.O(),_.V("design:type",Object)],Oj.prototype,"scrubberComponent",void 0);_.C([_.O({selector:_.pw,reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"isFullscreen",void 0);_.C([_.O(),_.V("design:type",Object)],Oj.prototype,"shouldHideOverlay",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"enableAnchoredPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"enablePersistentAnchoredPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"hideWatchWhilePanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"useAspectRatio",void 0);
_.C([_.O({selector:_.sBu,reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"isPersistentPanelActive",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"anchoredPanelActive",void 0);_.C([_.O({selector:_.Q7,reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"isShortsPipActive",void 0);_.C([_.O({selector:mAt,reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"smallScreenSqueezeback",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],Oj.prototype,"enableFormatFirst",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"enableFlexibleOverlay",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Oj.prototype,"overlayDensity",void 0);_.C([_.O(),_.V("design:type",Function)],Oj.prototype,"onOverlayDensityChanged",void 0);
_.C([_.O(),_.W("isActive","hasError","isPlayerStarted"),_.V("design:type",Object),_.V("design:paramtypes",[])],Oj.prototype,"shouldRenderPlayerElements",null);_.C([_.O(),_.W("isActive","isWatchWhileMode"),_.V("design:type",Object),_.V("design:paramtypes",[])],Oj.prototype,"watchWhileOrPersistentActive",null);_.C([_.za("isActive","hasError","showingExpandedOverlay"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oj.prototype,"updateShouldHideOverlay",null);
_.C([_.O({reflectToAttribute:!0}),_.W("isActive","isPlayerStarted","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Oj.prototype,"shouldRenderScrubber",null);_.C([_.za("shouldRenderScrubber"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oj.prototype,"onScrubberDataChange",null);_.C([_.W("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],Oj.prototype,"overlayComponent",null);
_.C([_.za("watchWhileEngagementPanels"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oj.prototype,"onEngagementPanelsChanged",null);_.C([_.Ms("#player-container"),_.V("design:type",HTMLElement)],Oj.prototype,"playerContainer",void 0);_.C([_.Ms("#cinematic-container"),_.V("design:type",HTMLElement)],Oj.prototype,"cinematicContainer",void 0);
_.C([_.za("isPersistentPanelActive","data.thumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oj.prototype,"maybeLogNonDefaultAspectRatio",null);_.C([_.za("isPersistentPanelActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oj.prototype,"calculateOverlayDensity",null);_.C([_.za("overlayDensity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oj.prototype,"onOverlayDensityChange",null);
_.C([_.m({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Oj);
_.b(Oj,"ytd-reel-video-renderer",function(){if(k1Q!==void 0)return k1Q;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return k1Q=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var Pm=function(){var F=_.x.apply(this,arguments)||this;F.isPreviousPageShorts=!1;F.index=0;F.delayedActiveIndex=0;F.playablePreviousIndex=null;F.isPlayerPaused=!1;F.isPlayerStarted=!1;F.intersectionObserverThreshold=.6;F.fitToVisibleBounds=!1;F.pageSubtype="shorts";F.enablePreviousContinuation=_.E("shorts_in_playlists_web");F.shortsPipEnabled=_.E("web_shorts_pip");F.isDark=document.documentElement.hasAttribute("dark");F.shortsViewTransitions=_.E("web_shorts_view_transitions");F.isFullscreen=!1;F.isShortsPipActive=
!1;F.buttonOverride={iconPosition:"icon-only",size:"XL"};F.anchoredPanelActive=!1;F.isActive=!1;F.smallScreenPersistentPanel=!1;F.isPersistentPanelActive=!1;F.smallScreenSqueezeBack=!1;F.enableScrollIntoViewCenter=_.E("web_scroll_into_view_center");F.formatFirst=_.E("web_enable_format_first")||_.E("web_enable_format_first_ads_only")||_.E("web_enable_format_first_organic_only");F.enableFlexibleOverlay=_.E("web_enable_flexible_overlay");F.useAspectRatio=_.E("web_use_aspect_ratio");F.isShortsInitialized=
!1;F.hidePreviousButtonImmediately=!1;F.showPreviousButtonImmediately=!1;F.endOfNextContinuation=!1;F.currentPlayerIndex=0;F.nextReelVe=_.r0(56921);F.prevReelVe=_.r0(56922);F.loopToggleOffVe=_.r0(198013);F.loopToggleOnVe=_.r0(198014);F.ambientModeToggleVe=_.r0(227860);F.reelPlayerPausedStateRendererVe=_.r0(141313);F.storedPlaybackSpeed=null;F.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand",
"yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};F.onOverlayDensityChanged=function(q,t){var u;(u=F.getActiveReelVideo(q))==null||u.setAttribute("overlay-density",String(t))};
return F};
_.M(Pm,_.x);_.l=Pm.prototype;_.l.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.l.deflateInactivePreviousSlides=function(){var F=_.YE("web_shorts_deflate_inactive_slides_aggressive_distance");if(F>0&&this.shortsProcessedSequence&&this.activeIndex){F=this.activeIndex-F;for(var q=0;q<=F;q++){var t=void 0;((t=this.shortsProcessedSequence[q].reelPlayerOverlayRenderer)==null?0:t.metapanel)&&this.set("shortsProcessedSequence."+q+".reelPlayerOverlayRenderer",{});t=void 0;((t=this.shortsProcessedSequence[q].adsOverlay)==null?0:t.adSlotMetadata)&&this.set("shortsProcessedSequence."+
q+".adsOverlay",{})}}};
_.l.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.l.onResize=function(){var F=_.u1(),q=F.dispatch,t=this.calculateIsSmallWidth();q.call(F,_.pj({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:t}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.l.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.E("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.l.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var F=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,q=F,t=0;F<250&&(q=F+this.shortsInnerContainer.clientWidth,t=24);_.ws(this.hostElement,{"--ytd-shorts-header-width":q+"px","--ytd-shorts-top-spacing":t+"px"})}};
_.l.isFirstShorts=function(F){return F?this.index===-F.length:this.index===0};
_.l.isActiveReel=function(F,q,t){t&&(q=this.calculatePrevIndex(q,t));return F===q};
_.l.onFullscreenChange=function(){if(_.E("web_fullscreen_shorts")){var F;(F=this.getActiveReelVideo(this.activeIndex))==null||F.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.sV().resolve(_.m4).close(!0)}};
_.l.engagementPanelsChanged=function(){var F;this.watchWhileEngagementPanels=(F=this.data)==null?void 0:F.engagementPanels};
_.l.unregisterPanels=function(){var F=_.sV().resolve(_.f_);if(this.watchWhileEngagementPanels)for(var q=_.X(this.watchWhileEngagementPanels),t=q.next();!t.done;t=q.next()){var u=t.value,J=void 0,g=void 0;t=(J=u.engagementPanelSectionListRenderer)==null?void 0:(g=J.identifier)==null?void 0:g.tag;u=this.getPanelContentIdentifier(u.engagementPanelSectionListRenderer);F&&(t&&F.panelMap.delete(t),u&&_.E("web_shorts_panel_caching_bugfix")&&(J=t=void 0,(J=(t=F).unregisterPanelContent)==null||J.call(t,u)))}};
_.l.isVideoContent=function(F){return this.isVideoContentCommand(F==null?void 0:F.command)};
_.l.getActiveReelVideo=function(F){return _.ep(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+F+'"]')};
_.l.calculatePrevIndex=function(F,q){return q?F-((q==null?void 0:q.length)||0):-1};
_.l.onKeydown=function(F){var q=_.tY(F)||[];if(!_.nzv(q))if(F.code==="ArrowUp")F.preventDefault(),this.handlePrevButtonClick();else if(F.code==="ArrowDown")F.preventDefault(),this.handleNextButtonClick();else if(F.code==="KeyM")this.toggleMuteUnmuteVideo();else if(F.code==="KeyK"||F.code==="Space")this.togglePlayPauseVideo();else if((F.code==="KeyA"||F.code==="ArrowLeft")&&_.E("web_shorts_keyboard_enable_seek_shortcuts")){var t;(t=this.player)==null||t.seekBy(-5)}else if((F.code==="KeyD"||F.code===
"ArrowRight")&&_.E("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var u;(u=this.player)==null||u.seekBy(5)}};
_.l.onServiceRequestCompleted=function(F,q){F=q.data;F.continuationEndpoint&&F.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:F.entries,continuationEndpoint:F.continuationEndpoint}}):F.prevContinuationEndpoint&&F.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:F.prevEntries,prevContinuationEndpoint:F.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.l.handleEngagementPanelVisibilityChanged=function(F,q){var t=_.sV().resolve(_.f_);if(F&&t){var u=this.getPanelIdentifier(F);if(q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==u){t.hidePanel(this.activePanel);var J;this.activePanel=((J=F.identifier)==null?void 0:J.tag)||F.panelIdentifier}else this.isPersistentPanelActive=!0,_.u1().dispatch(fvQ(!0)),this.anchoredPanelActive=!0,this.activePanel=u;else q==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
u&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.u1().dispatch(fvQ(!1)))}};
_.l.handlePanelScrimClick=function(){var F=_.sV().resolve(_.f_);this.activePanel&&(F.hidePanel(this.activePanel),_.u1().dispatch(fvQ(!1)))};
_.l.getShortsLoopSetting=function(){var F,q,t,u,J;return _.p(function(g){switch(g.nextAddress){case 1:return _.E("kevlar_shorts_auto_advance")?g.yield(_.KC.getInstance(),2):g.return(!0);case 2:return(F=g.yieldResult)?g.yield(F.get("sfvles"),3):g.return(!0);case 3:return t=(q=g.yieldResult)!=null?q:!1,g.yield(F.get("sfvle"),4);case 4:return J=(u=g.yieldResult)!=null?u:!0,t?g.return(J):g.return(!0)}})};
_.l.handleSignalActionToggleLoopShortsOff=function(){var F=this,q,t,u;return _.p(function(J){switch(J.nextAddress){case 1:if(!F.player)return J.return();F.player.setLoopVideo(!1);q=_.DP();_.Ah(q,F.loopToggleOffVe);return J.yield(_.KC.getInstance(),2);case 2:return(t=J.yieldResult)?J.yield(t.set("sfvle",!1),3):J.return();case 3:return J.yield(t.set("sfvles",!0),4);case 4:u=_.TV(),_.GV(0,203,!1),_.GV(0,204,!0),u.save(),_.WA(J)}})};
_.l.handleSignalActionToggleLoopShortsOn=function(){var F=this,q,t,u;return _.p(function(J){switch(J.nextAddress){case 1:if(!F.player)return J.return();F.player.setLoopVideo(!0);q=_.DP();_.Ah(q,F.loopToggleOnVe);return J.yield(_.KC.getInstance(),2);case 2:return(t=J.yieldResult)?J.yield(t.set("sfvle",!0),3):J.return();case 3:return J.yield(t.set("sfvles",!0),4);case 4:u=_.TV(),_.GV(0,203,!0),_.GV(0,204,!0),u.save(),_.WA(J)}})};
_.l.handleSignalActionToggleCinematicShortsOn=function(){IvI(!0);var F;(F=this.JSC$22323_cinematicController)==null||_.DAq(F,!0);_.Ah(_.DP(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.l.handleSignalActionToggleCinematicShortsOff=function(){IvI(!1);var F;(F=this.JSC$22323_cinematicController)==null||_.DAq(F,!1);_.Ah(_.DP(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.l.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.l.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.l.unhideCurrentOverlay=function(){if(this.overlayContainer){var F=this.overlayContainer.querySelector("#experiment-overlay");F&&_.mI.addLowPriorityJob(function(){F.style.display="unset"},100)}};
_.l.getCurrentShort=function(){if(this.currentEndpoint){var F=this.currentEndpoint;if(this.isNonVideoContentCommand(F)){var q=_.n(F,_.FZ);return{reelNonVideoContentRenderer:_.n(q==null?void 0:q.renderer,_.FLC),command:F}}if(this.data){var t;q=(t=_.n(this.currentEndpoint,_.Px))==null?void 0:t.thumbnail;var u;t=(u=this.data.overlay)==null?void 0:u.reelPlayerOverlayRenderer;_.sV().resolve(_.C8);F=this.data;var J,g;u=(J=F.overlay)==null?void 0:(g=J.shortsAdsRenderer)==null?void 0:g.adSlots;if(u!==void 0)u.length===
0?(_.fH("Shorts ads returned no ad slots."),F=void 0):(u.length>1&&_.fH("Shorts ads has more than one ad slots."),F=_.n(u[0],_.KRj));else{var Y,Q;F=_.n((Y=F.overlay)==null?void 0:(Q=Y.shortsAdsRenderer)==null?void 0:Q.overlay,_.KRj)}Y=F;F=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.n(this.currentEndpoint,_.Px),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:t,thumbnail:q,command:F,adsOverlay:Y}}}};
_.l.created=function(){var F=this;this.scrollToVideoThrottle=new _.LH(function(q){var t;(t=F.getActiveReelVideo(q))==null||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:F.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.LH(function(q){var t;(t=F.getActiveReelVideo(q))==null||t.scrollIntoView({behavior:"auto",block:"nearest",inline:F.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.l.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.l.attached=function(){var F=this;_.sV().resolve(_.C8).registerRootElement(this);this.pageScrollElement=_.ep(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.kM(this,this.processResetAction));_.E("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var q=F.getActiveReelVideo(F.activeIndex);F.maybeCreateIntersectionObserver();q==null||q.scrollIntoView({behavior:"instant",
block:"nearest",inline:F.enableScrollIntoViewCenter?"center":"start"});F.shortsContainer.style.overflowY="scroll"}))};
_.l.updateReelWatchSequenceResponse=function(){var F=this,q;_.E("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((q=_.n(this.currentEndpoint,_.Px))==null?0:q.sequenceParams)&&!this.reelWatchSequenceResponse&&(q=_.sV().resolve(_.C8))&&L$n(q,this.currentEndpoint).then(function(t){t&&(F.reelWatchSequenceResponse=t,_.mI.addLowPriorityJob(function(){F.maybeCreateIntersectionObserver(!0)}))})};
_.l.calculateSqueezebackPanelSize=function(){var F=this,q=window.innerWidth-456-(window.innerHeight-106)*.5625;_.mI.addLowPriorityJob(function(){q<360?_.u1().dispatch(avS(!0)):(F.hostElement.style.setProperty("--anchored-panel-width",Math.min(q,480)+"px"),_.u1().dispatch(avS(!1)))})};
_.l.detached=function(){var F=_.sV().resolve(_.C8);F.rootElement=void 0;var q;(q=F.unsubscribeFromStore)==null||q.call(F);F.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.kM(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.l.onResizeFinished=function(F,q){var t=this,u=new ResizeObserver(function(){t.shortsContainer.style.overflowY="hidden";_.mI.addLowPriorityJob(function(){q()},100)});
u.observe(F);return u};
_.l.resetDocumentScrollTop=function(){var F,q;if((F=document)==null?0:(q=F.scrollingElement)==null?0:q.scrollTop)document.scrollingElement.scrollTop=0};
_.l.loadPage_=function(F){var q=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),F){var t;!_.E("web_enable_delay_shorts_sequence_call")&&((t=_.n(this.currentEndpoint,_.Px))==null?0:t.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=F;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){q.isPlayerStarted&&(q.handleOnPlaybackCommand(),q.afterPlayerStarted=function(){})};
this.registerPanel(F)}};
_.l.afterPlayerStarted=function(){};
_.l.handleOnPlaybackCommand=function(){if(_.E("web_shorts_comment_stickers")&&this.isPlayerStarted){var F,q=(F=_.n(this.currentEndpoint,_.Px))==null?void 0:F.onPlaybackCommand;q&&this.ytComponentBehavior.resolveCommand(q)}};
_.l.maybeCreateIntersectionObserver=function(F){var q=this;F=F===void 0?!1:F;var t=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==t||F){this.intersectionObserverThreshold=t;F={rootMargin:"0px",threshold:t};var u;(u=this.intersectionObserver)==null||u.disconnect();this.intersectionObserver=new IntersectionObserver(function(J){J=_.X(J);for(var g=J.next();!g.done;g=J.next())if(g=g.value,g.intersectionRatio>t){g=Number(g.target.id);if(isNaN(g))break;
if(g===q.index)break;_.Exo();q.loadVideo(g);_.dY("r_vtc")}},F);
this.observeShorts()}};
_.l.observeShorts=function(){var F=[].concat(_.mZ(_.ep(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));F=_.X(F);for(var q=F.next();!q.done;q=F.next()){q=q.value;var t=void 0;(t=this.intersectionObserver)==null||t.observe(q)}};
_.l.initCsi=function(){_.BV("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var F={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},q,t;if((q=this.playerData)==null?0:(t=q.cacheMetadata)==null?0:t.isCacheHit)F.isCacheHit=!0;var u;if(q=(u=_.n(this.currentEndpoint,_.Px))==null?void 0:
u.prefetchTaskId)F.prefetchInfo={taskId:q};_.mj(F)};
_.l.isAd=function(){var F,q;return!!((F=_.n(this.currentEndpoint,_.Px))==null?0:(q=F.adClientParams)==null?0:q.isAd)};
_.l.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.l.getPlayerContainer=function(){var F;return(F=_.ep(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:F.playerContainer};
_.l.onPlayerStateChange=function(F){var q=this;this.isPlayerPaused=F===2;F!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?F===1&&this.index===0&&(this.isPlayerStarted||_.u1().dispatch(Ej(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.u1().dispatch(Ej(!0)));this.player&&!this.player.getLoopVideo()&&_.mI.addLowPriorityJob(function(){q.getShortsLoopSetting().then(function(t){var u;(u=q.player)==null||u.setLoopVideo(t)})});
this.isPlayerPaused&&_.E("web_shorts_paused_state_logging")&&_.aD(_.yb(),[this.reelPlayerPausedStateRendererVe])};
_.l.isInBackground=function(){var F=window.document.visibilityState;return!(!F||F==="visible")};
_.l.isShortPlayable=function(){if(_.E("kevlar_playable_short_killswitch"))return!0;var F;return(F=this.playerData)!=null&&F.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.l.setNormalPlaybackSpeed=function(){var F=this,q,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(F.getPlayer().getPlayerPromise(),2);q=u.yieldResult;t=q.getPlaybackRate();t!==1&&(F.storedPlaybackSpeed=t,q.setPlaybackRate(1));_.WA(u)})};
_.l.restorePlaybackSpeed=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1)return F.storedPlaybackSpeed===null?t.jumpTo(0):t.yield(F.getPlayer().getPlayerPromise(),3);q=t.yieldResult;q.setPlaybackRate(F.storedPlaybackSpeed);F.storedPlaybackSpeed=null;_.WA(t)})};
_.l.playerDataChanged=function(){var F=this,q,t,u,J,g,Y,Q,e,r;return _.p(function(N){if(N.nextAddress==1){q=F.getPlayer();(t=F.intersectionObserver)==null||t.disconnect();if(F.playerData){if(((u=F.playerData.videoDetails)==null?void 0:u.videoId)!==((J=q.getPlayer())==null?void 0:J.getVideoData().video_id)){g={};if(Y=_.n(F.currentEndpoint,_.Px))g.watch_endpoint=Y,Y.endTimeSeconds&&(g.end=Y.endTimeSeconds);q.loadVideoWithPlayerResponse(F.playerData,g)}}else return N.return();return F.player?N.jumpTo(2):
N.yield(q.getPlayerPromise(),3)}N.nextAddress!=2&&(F.player=N.yieldResult,F.JSC$22323_playerStateChangeListener=F.onPlayerStateChange.bind(F),F.player.addEventListener("onStateChange",F.JSC$22323_playerStateChangeListener),_.E("kevlar_client_enable_shorts_player_bootstrap")&&_.Sx(),F.scrollToVideoThrottle.fire(F.index),F.movePlayerToVideo(F.index),_.mI.addLowPriorityJob(function(){F.getShortsLoopSetting().then(function(w){var k;(k=F.player)==null||k.setLoopVideo(w)})}),_.VfE.resolve(F.player),F.player.syncVolume(),
F.getPlayer().focusOnPlayer());
_.mI.addLowPriorityJob(function(){F.observeShorts()},100);
Q=F.player.getPlayerState(F.player.getPresentingPlayerType());Q!==1||F.isPlayerStarted||_.u1().dispatch(Ej(!0));F.updateBackNavContainerWidth();e=_.n(F.currentEndpoint,_.Px);((r=e)==null?0:r.startTimeSeconds)&&F.player.seekTo(e.startTimeSeconds);if(F.JSC$22323_cinematicController||F.cinematicsInitializeJobId)return N.return();F.cinematicsInitializeJobId=_.mI.addLowPriorityJob(function(){F.initCinematicController();F.cinematicsInitializeJobId=void 0});
_.WA(N)})};
_.l.onShortUndoDismiss=function(){var F=this,q=Bfn().pop();q!==void 0&&(_.tJ(this,function(){F.showCardWithIndex(q)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.l.onShortsDismiss=function(F){if(F=F.detail.reelDismissalActionRenderer)(F=_.n(F.onDismissalCompletionRenderer,_.Joq))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:F}}}),this.scrollAndDismissCard()};
_.l.processReelNonVideoContentDismissalCommand=function(F){var q=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);F=_.n(F,gOK);this.activeDimissalTimeout=setTimeout(function(){q.scrollAndDismissCard()},Number(F==null?void 0:F.delayMs))};
_.l.scrollAndDismissCard=function(){var F=this,q=this.index;Bfn().push(q);_.tJ(this,function(){var t=F.getPlayableNextIndex();t!==null&&(t=F.getActiveReelVideo(t),F.hideCardWithIndex(q),t==null||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:F.enableScrollIntoViewCenter?"center":"start"}))})};
_.l.hideCardWithIndex=function(F){if(F=this.getActiveReelVideo(F))F.hidden=!0};
_.l.showCardWithIndex=function(F){if(F=this.getActiveReelVideo(F))F.hidden=!1};
_.l.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.l.activeChanged=function(F){_.u1().dispatch(_.pj({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:F}}));if(F)document.addEventListener("keydown",_.kM(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var q;(q=this.player)==null||q.sendAbandonmentPing()}var t;(t=this.player)==null||t.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.kM(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.l.graftClientVisualElements=function(){if(this.data){var F=_.DP();_.d7J(F,_.NU({response:this.reelWatchSequenceResponse}));_.PQ(F,this.nextReelVe);_.PQ(F,this.prevReelVe);_.E("kevlar_shorts_auto_advance")&&(_.PQ(F,this.loopToggleOffVe),_.PQ(F,this.loopToggleOnVe));_.PQ(F,this.ambientModeToggleVe);_.aD(_.yb(),[this.nextReelVe,this.prevReelVe]);_.E("web_shorts_paused_state_logging")&&_.PQ(F,this.reelPlayerPausedStateRendererVe)}};
_.l.graftNvcRenderer=function(){var F,q,t,u,J=this.index<0?(F=this.shortsProcessedPrevSequence)==null?void 0:(q=F[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:q.command:(t=this.shortsProcessedSequence)==null?void 0:(u=t[this.index])==null?void 0:u.command;if(J&&this.isNonVideoContentCommand(J)){F=_.n(J,_.FZ);var g,Y;(F=(g=_.n(F==null?void 0:F.renderer,_.FLC))==null?void 0:(Y=g.loggingDirectives)==null?void 0:Y.trackingParams)&&_.DP().graftServerVe(F)}};
_.l.setActiveIndex=function(){_.sV().resolve(_.C8).setActiveIndex(this.index)};
_.l.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.l.lazyUpdateMiniplayerData=function(){var F=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.mI.addLowPriorityJob(function(){F.updateMiniplayerData();F.updateMiniplayerDataJobId=void 0}))};
_.l.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.mI.cancelJob(this.updateMiniplayerDataJobId)};
_.l.updateMiniplayerData=function(){var F,q,t,u=_.sV().resolve(_.m4),J={shortsData:this.getCurrentShort(),previousButtonDisabled:!((F=this.prevButtonData)==null||!F.isDisabled),nextButtonDisabled:!((q=this.nextButtonData)==null||!q.isDisabled),playabilityStatus:(t=this.playerData)==null?void 0:t.playabilityStatus};_.JR(u,J)};
_.l.resetPlayerLocation=function(){var F=this.getPlayer();this.initialPlayerContainer&&F.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.l.movePlayerToVideo=function(F,q){var t=this;q=q===void 0?!0:q;var u=this.getActiveReelVideo(F),J=this.getPlayer();if(u){this.overlayContainer?u.appendChild(this.overlayContainer):(this.overlayContainer=_.ep(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,u.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||J.appendTo(this.overlayContainer.playerContainer,void 0,!0));var g;(g=this.player)==null||g.setSize(NaN,NaN);this.isActive||_.W2(_.mI,function(){t.isActive=
!0});
J.style.visibility="visible";_.E("reels_web_disable_rtr_tick")||_.E("reels_web_use_pbs_first_shorts")&&F===0||_.y0("r_tr");this.currentPlayerIndex=F;u.appendChild(this.errorScreenContainer);var Y;(Y=this.JSC$22323_cinematicController)==null||_.O3Z(Y)}else q?_.mI.addLowPriorityJob(function(){t.movePlayerToVideo(t.index,!1)}):Math.random()<=_.YE("web_shorts_error_logging_threshold")&&_.$e(new _.D0("Trying to movePlayerToVideo with undefined container.",{firstAttempt:q,
index:F}))};
_.l.enableFormatFirst=function(F){return _.E("web_enable_format_first")||F.adsOverlay&&_.E("web_enable_format_first_ads_only")||F.reelPlayerOverlayRenderer&&_.E("web_enable_format_first_organic_only")};
_.l.getAspectRatio=function(F){if(F!=null&&F.thumbnail&&this.enableFormatFirst(F))return"--ytd-shorts-player-ratio: "+H3K(F.thumbnail)};
_.l.getBackgroundImage=function(F){if(F!=null&&F.thumbnail)return(F=_.RI(F.thumbnail.thumbnails))?'background-image:url("'+F+'");':"background-color:black;"};
_.l.onPersistentPanelActiveChanged=function(){var F=this.getCurrentShort();if(F&&this.enableFormatFirst(F)&&(F==null?0:F.thumbnail)&&H3K(F.thumbnail)!==.5625){var q;(q=this.player)==null||q.setSize(NaN,NaN)}};
_.l.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.l.moveCinematicsToVideo=function(){var F=_.ep(this.hostElement).querySelector("ytd-reel-video-renderer");(F==null?0:F.cinematicContainer)&&F.cinematicContainer!==this.shortsCinematicContainer.parentElement&&F.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.l.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.l.updatePrevButtonData=function(){var F=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(F){var q;this.prevButtonData=F=Object.assign({},F,{accessibility:{label:_.oD("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:F.isDisabled||this.index===-(((q=this.shortsProcessedPrevSequence)==null?void 0:q.length)||0),tooltip:this.isUpArrowHidden?"":_.oD("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=F=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.l.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.l.updateNextButtonData=function(){var F=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(F){var q;this.nextButtonData=F=Object.assign({},F,{accessibility:{label:_.oD("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:F.isDisabled||this.index===((q=this.shortsProcessedSequence)==null?void 0:q.length),tooltip:_.oD("NEXT_VIDEO_LABEL")||""})}};
_.l.getPlayablePreviousIndex=function(){for(var F,q=this.index-1;q>=-(((F=this.prevShortsSequence)==null?void 0:F.length)||0);q--)if(!Bfn().includes(q))return q;return null};
_.l.getIndexInSequence=function(F,q){return F.findIndex(function(t){var u;return((u=_.n(t.command,_.Px))==null?void 0:u.videoId)===q})};
_.l.handlePrevButtonClick=function(F){var q=this,t,u;return _.p(function(J){t=q.getPlayablePreviousIndex();if(t===null)return J.return();q.gestureType=((u=F)==null?void 0:u.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";t===0&&(q.hidePreviousButtonImmediately=!0);if(q.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){q.transitionToVideoThrottle.fire(t)}),J.return();
q.scrollToVideoThrottle.fire(t);_.WA(J)})};
_.l.getPlayableNextIndex=function(){for(var F,q=this.index+1;q<(((F=this.shortsProcessedSequence)==null?void 0:F.length)||0);q++)if(!Bfn().includes(q))return q;return null};
_.l.handleNextButtonClick=function(F,q){var t=this,u,J;return _.p(function(g){u=t.getPlayableNextIndex();if(u===null)return g.return();u===1&&(t.showPreviousButtonImmediately=!0);t.gestureType=((J=F)==null?void 0:J.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";q&&(t.gestureType=q);if(t.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){t.transitionToVideoThrottle.fire(u)}),g.return();
t.scrollToVideoThrottle.fire(u);_.WA(g)})};
_.l.handleReelNavigateCommand=function(F,q,t){(F=_.n(F,sjt))&&q&&F.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(t)};
_.l.loadVideo=function(F,q){q=q===void 0?!1:q;if(F!==this.currentPlayerIndex){_.u1().dispatch(Ej(!1));if(this.isAd()&&!q){var t;(t=this.player)==null||t.notifyShortsAdSwipeEvent()}if((q=this.JSC$22323_cinematicController)!=null){var u;(u=q.currentCinematicEffect)==null||u.pause()}if((u=this.JSC$22323_cinematicController)!=null){var J;(J=u.currentCinematicEffect)==null||J.clear()}u=F>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(u));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var g,Y,Q,e;J=F<0?(g=this.shortsProcessedPrevSequence)==null?void 0:(Y=g[this.shortsProcessedPrevSequence.length+F])==null?void 0:Y.command:(Q=this.shortsProcessedSequence)==null?void 0:(e=Q[F])==null?void 0:e.command;this.index=F;this.gestureType||(this.gestureType=u?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
J&&this.isVideoContentCommand(J)&&(this.ytComponentBehavior.resolveCommand(J,{form:{createScreenConfig:{clickedVisualElement:u?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(J&&this.isNonVideoContentCommand(J)){this.currentEndpoint=J;this.data=void 0;g=_.DP();Y=_.n(J,_.FZ);var r,N;(Y=(r=_.n(Y==null?void 0:Y.renderer,_.FLC))==null?void 0:(N=r.screenLoggingData)==null?void 0:N.screenVeType)&&_.OX(g,Y);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(r=this.getActiveReelVideo(F))&&r.appendChild(this.overlayContainer)}var w,k;if(((w=this.reelWatchSequenceResponse)==null?0:w.continuationEndpoint)&&((k=this.reelWatchSequenceResponse)==null?0:k.entries)&&F===this.reelWatchSequenceResponse.entries.length-1){var z,T;w={contentPlaybackContext:_.vx({},(T=_.n((z=this.currentEndpoint)==null?void 0:z.commandMetadata,_.EH))==null?void 0:T.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:w})}var P,v,H;((P=this.reelWatchSequenceResponse)==null?0:P.prevContinuationEndpoint)&&F===-(((v=this.reelWatchSequenceResponse)==null?void 0:(H=v.prevEntries)==null?void 0:H.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.l.setMiniplayerPreview=function(F){F=(F===void 0?0:F)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var q,t,u=_.sV().resolve(_.m4),J={shortsData:void 0,shortsPreviewThumbnail:F?(q=this.shortsProcessedSequence)==null?void 0:(t=q[F])==null?void 0:t.thumbnail:void 0};_.JR(u,J)};
_.l.updateTitle=function(F){var q,t;F=(F==null?0:F.adSlots)?"":(t=F==null?void 0:(q=F.videoDetails)==null?void 0:q.title)!=null?t:"";_.Q0(this.hostElement,"yt-update-title",F)};
_.l.registerPanel=function(F){var q=_.sV().resolve(_.f_);if(q){F=_.X(F.engagementPanels||[]);for(var t=F.next();!t.done;t=F.next()){t=t.value;var u=this.getPanelContentIdentifier(t.engagementPanelSectionListRenderer),J=void 0,g=void 0;(g=(J=q).registerPanelContent)==null||g.call(J,u,t)}}};
_.l.getPanelIdentifier=function(F){var q;return(F==null?void 0:(q=F.identifier)==null?void 0:q.tag)||(F==null?void 0:F.panelIdentifier)||(F==null?void 0:F.targetId)};
_.l.getPanelContentIdentifier=function(F){var q;return(F==null?void 0:F.targetId)||(F==null?void 0:F.panelIdentifier)||(F==null?void 0:(q=F.identifier)==null?void 0:q.tag)};
_.l.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;_.u1().dispatch(Ej(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.u1().dispatch(fvQ(!1));var F=_.sV().resolve(_.C8);F.dismissedIndices=[];F.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.sV().resolve(_.m4).close(!0)};
_.l.processAppendReelWatchSequenceContinuationEntriesAction=function(F){var q=this,t;(t=this.intersectionObserver)==null||t.disconnect();F=F.appendReelWatchSequenceContinuationEntriesAction;if(F==null?0:F.entries){var u;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.mZ(((u=this.reelWatchSequenceResponse)==null?void 0:u.entries)||[]),_.mZ(F.entries)),continuationEndpoint:F.continuationEndpoint})}else if(F==null?0:F.prevEntries){var J;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.mZ(((J=this.reelWatchSequenceResponse)==null?void 0:J.prevEntries)||[]),_.mZ(F.prevEntries)),prevContinuationEndpoint:F.prevContinuationEndpoint});_.mI.addLowPriorityJob(function(){q.movePlayerToVideo(q.index);var g;(g=q.getActiveReelVideo(q.index))==null||g.scrollIntoView({block:"nearest",inline:q.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.mI.addLowPriorityJob(function(){q.observeShorts()},100)};
_.l.processWatchSequence=function(F){var q=this;return F.map(function(t){t=t.command;if(q.isVideoContentCommand(t)){var u=_.n(t,_.Px);return{reelPlayerOverlayRenderer:_.n(u==null?void 0:u.overlay,_.qXr),thumbnail:u.thumbnail,command:t}}return q.isNonVideoContentCommand(t)?(u=_.n(t,_.FZ),{reelNonVideoContentRenderer:_.n(u==null?void 0:u.renderer,_.FLC),command:t}):{command:t}})};
_.l.calculateIntersectionObserverThreshold=function(){var F=_.ep(this.hostElement).querySelector("ytd-reel-video-renderer"),q=1;(F==null?0:F.offsetHeight)&&(F==null?0:F.offsetWidth)&&(q=Math.min(F.offsetHeight,this.shortsContainer.offsetHeight)/F.offsetHeight*(Math.min(F.offsetWidth,this.shortsContainer.offsetWidth)/F.offsetWidth));return Math.round(q*.6*10)/10};
_.l.isVideoContentCommand=function(F){_.sV().resolve(_.C8);return!!_.n(F,_.Px)};
_.l.isNonVideoContentCommand=function(F){_.sV().resolve(_.C8);return!!_.n(F,_.FZ)};
_.l.initCinematicController=function(){var F=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22323_cinematicController=new _.k8(this.shortsCinematicContainer,this.player);var q,t=_.n((q=this.data)==null?void 0:q.background,_.SQ);_.W$y(this.JSC$22323_cinematicController,t);_.DAq(this.JSC$22323_cinematicController,vPy(t));_.Gty(this.JSC$22323_cinematicController);_.mI.addLowPriorityJob(function(){F.moveCinematicsToVideo()})}};
_.l.handleMiniplayerNavigateShorts=function(F){F==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():F==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.l.handleSignalActionToggleShortsPictureInPicture=function(){if(_.sV().resolve(_.m4).pictureInPictureSupported()){var F=_.sV().resolve(_.C8);if(_.E("web_shorts_pip")){var q=_.sV().resolve(_.m4);F.isShortsPipActive()?q.deactivate():q.isMiniplayerActive()||(_.$A().shortsPipActivation=!0,_.yGy(q))}}else(F=this.player)==null||F.togglePictureInPicture()};
_.JJ.Object.defineProperties(Pm.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.reelWatchSequenceResponse)!=null&&F.prevEntries)return this.processWatchSequence([].concat(_.mZ(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.E("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.mZ(this.prevShortsSequence));var F=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!F)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var q=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.mZ(this.prevShortsSequence.slice(0,q)),[F],_.mZ(this.prevShortsSequence.slice(q+1)))}q=this.index+this.shortsProcessedPrevSequence.length;F.thumbnail=this.shortsProcessedPrevSequence[q].thumbnail;return[].concat(_.mZ(this.shortsProcessedPrevSequence.slice(0,q)),[F],_.mZ(this.shortsProcessedPrevSequence.slice(q+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.reelWatchSequenceResponse)!=null&&F.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var F=this;if(_.E("web_enable_shorts_sequence_refactor")){if(this.firstShortsData||this.shortsSequence){if(!this.shortsSequence&&this.firstShortsData)return[this.firstShortsData];var q;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((q=this.shortsProcessedSequence)==null?void 0:q.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var t,u=this.getIndexInSequence(this.shortsSequence,_.n((t=
this.firstShortsData)==null?void 0:t.command,_.Px).videoId);if(u!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=u,_.mI.addLowPriorityJob(function(){F.transitionToVideoThrottle.fire(F.index);F.movePlayerToVideo(F.index)}));
return[].concat(_.mZ(this.shortsSequence))}return[this.firstShortsData].concat(_.mZ(this.shortsSequence))}}else if(this.data||this.shortsSequence){t=this.getCurrentShort();if(!t||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[t];if(t==null||!t.reelNonVideoContentRenderer)if(q=this.getIndexInSequence(this.shortsSequence,_.n(this.currentEndpoint,_.Px).videoId),this.index===0&&q!==-1)return this.currentPlayerIndex=this.index=q,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.mZ(this.shortsSequence.slice(0,this.index)),[t],_.mZ(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){t.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var J,g,Y;q=((J=_.n((u=this.shortsProcessedSequence[0])==null?void 0:u.command,_.Px))==null?void 0:J.videoId)===((Y=_.n((g=this.shortsSequence[0])==null?void 0:g.command,_.Px))==null?void 0:Y.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.mZ(this.shortsProcessedSequence.slice(0,
this.index)),[t],_.mZ(this.shortsSequence.slice(q)))}return[t].concat(_.mZ(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var F=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;F&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(F)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var F,q;return this.index===((F=this.reelWatchSequenceResponse)==null?void 0:(q=F.entries)==null?void 0:q.length)}var t;return!((t=this.reelWatchSequenceResponse)==null?0:t.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var F;(F=this.delayedActiveIndexUpdateDebouncer)==null||F.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return this.isShortPlayable()||((q=_.n((F=this.data)==null?void 0:F.watchStatus,_.pQz))==null?void 0:(t=q.style)==null?void 0:t.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var F=this,q=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),t;if((this.data||q)&&(((t=this.data)==null?0:t.engagementPanels)||this.isAd()||q)){q=!1;this.activePanel="shorts-comments-panel";var u;t=_.X(((u=this.data)==null?void 0:u.engagementPanels)||[]);for(u=t.next();!u.done;u=t.next())if(this.getPanelIdentifier(u.value.engagementPanelSectionListRenderer)===this.activePanel){q=!0;break}if(this.isPersistentPanelActive){var J=
_.sV().resolve(_.f_);_.W2(_.mI,function(){J.showPanel(F.activePanel,void 0,void 0,void 0,null)},100)}var g;
u=[].concat(_.mZ(Object.values(((g=this.data)==null?void 0:g.engagementPanels)||{})));if(_.E("enable_preview_panel_for_shorts_search_suggested_action")){var Y,Q,e,r,N;((r=_.n((Y=this.data)==null?void 0:(Q=Y.overlay)==null?void 0:(e=Q.reelPlayerOverlayRenderer)==null?void 0:e.metapanel,_.c1j))==null?void 0:(N=r.metadataItems)==null?void 0:N.find(function(w){var k,z;return((k=_.n(w,Xft))==null?void 0:(z=k.icon)==null?void 0:z.iconType)==="SEARCH"}))!==void 0&&u.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()||!q?(q=u==null?void 0:u.findIndex(function(w){var k,
z;return((k=w.engagementPanelSectionListRenderer)==null?void 0:(z=k.identifier)==null?void 0:z.tag)==="shorts-comments-panel"}),q===-1||q===void 0||u!=null&&u.splice(q,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.oD("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.oD("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:_.oD("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.oD("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(_.mZ(Object.values(u||
{})))):u}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.shortsProcessedSequence)==null?void 0:F[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var F=this,q,t,u;if((q=this.playerData)==null?0:(t=q.playabilityStatus)==null?0:(u=t.errorScreen)==null?0:u.playerInterstitialRenderer)return _.mI.addLowPriorityJob(function(){F.movePlayerToVideo(F.index)}),this.playerData.playabilityStatus.errorScreen;
var J,g;return((J=this.data)==null?void 0:J.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((g=this.data)==null?0:g.watchStatus)&&_.n(this.data.watchStatus,_.IdO)?(_.mI.addLowPriorityJob(function(){F.movePlayerToVideo(F.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.JJ.Object.defineProperties(Pm,{template:{configurable:!0,enumerable:!0,get:function(){if(pfK===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);pfK=F}F=pfK;return F}}});
Pm.prototype.onNextButtonDataChange=Pm.prototype.onNextButtonDataChange;Pm.prototype.onPrevButtonDataChange=Pm.prototype.onPrevButtonDataChange;Pm.prototype.onPersistentPanelActiveChanged=Pm.prototype.onPersistentPanelActiveChanged;Pm.prototype.lazyUpdateMiniplayerData=Pm.prototype.lazyUpdateMiniplayerData;Pm.prototype.onShortsPipActiveChanged=Pm.prototype.onShortsPipActiveChanged;Pm.prototype.setActiveIndex=Pm.prototype.setActiveIndex;Pm.prototype.graftNvcRenderer=Pm.prototype.graftNvcRenderer;
Pm.prototype.graftClientVisualElements=Pm.prototype.graftClientVisualElements;Pm.prototype.onActiveChanged=Pm.prototype.onActiveChanged;Pm.prototype.onShortsDismiss=Pm.prototype.onShortsDismiss;Pm.prototype.onShortUndoDismiss=Pm.prototype.onShortUndoDismiss;Pm.prototype.playerDataChanged=Pm.prototype.playerDataChanged;Pm.prototype.afterPlayerStarted=Pm.prototype.afterPlayerStarted;Pm.prototype.updateReelWatchSequenceResponse=Pm.prototype.updateReelWatchSequenceResponse;
Pm.prototype.unhideCurrentOverlay=Pm.prototype.unhideCurrentOverlay;Pm.prototype.onServiceRequestCompleted=Pm.prototype.onServiceRequestCompleted;Pm.prototype.engagementPanelsChanged=Pm.prototype.engagementPanelsChanged;Pm.prototype.onFullscreenChange=Pm.prototype.onFullscreenChange;Pm.prototype.onResize=Pm.prototype.onResize;Pm.prototype.setFirstShortsData=Pm.prototype.setFirstShortsData;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Pm.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.L0.YtPageBehavior),_.V("design:type",Object)],Pm.prototype,"ytPageBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Pm.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.Vl),_.V("design:type",Object)],Pm.prototype,"ironResizableBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],Pm.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Pm.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Pm.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"playerData",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"reelWatchSequenceResponse",void 0);
_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"cachedReelWatchSequenceResponse",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"cachedSequenceParams",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"cachedSequenceProvider",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"currentEndpoint",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"nextButtonData",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"prevButtonData",void 0);
_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"isPreviousPageShorts",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"index",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"delayedActiveIndex",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"playablePreviousIndex",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"player",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"isPlayerPaused",void 0);
_.C([_.O({selector:$Al}),_.V("design:type",Object)],Pm.prototype,"isPlayerStarted",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"intersectionObserver",void 0);_.C([_.O(),_.V("design:type",Number)],Pm.prototype,"cinematicsInitializeJobId",void 0);_.C([_.O(),_.V("design:type",Number)],Pm.prototype,"updateMiniplayerDataJobId",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"fitToVisibleBounds",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"pageSubtype",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Pm.prototype,"enablePreviousContinuation",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Pm.prototype,"shortsPipEnabled",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Pm.prototype,"isDark",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Pm.prototype,"shortsViewTransitions",void 0);
_.C([_.O({selector:_.pw,reflectToAttribute:!0}),_.V("design:type",Object)],Pm.prototype,"isFullscreen",void 0);_.C([_.O({selector:_.Q7,reflectToAttribute:!0}),_.V("design:type",Object)],Pm.prototype,"isShortsPipActive",void 0);_.C([_.Ms("#shorts-inner-container"),_.V("design:type",HTMLElement)],Pm.prototype,"shortsInnerContainer",void 0);_.C([_.Ms("#back-nav-button ytd-button-renderer"),_.V("design:type",_.oA)],Pm.prototype,"backNavButton",void 0);
_.C([_.Ms("#shorts-container"),_.V("design:type",HTMLElement)],Pm.prototype,"shortsContainer",void 0);_.C([_.Dc("error-screen"),_.V("design:type",HTMLElement)],Pm.prototype,"errorScreenContainer",void 0);_.C([_.Dc("player"),_.V("design:type",Object)],Pm.prototype,"playerElement",void 0);_.C([_.Dc("shorts-cinematic-container"),_.V("design:type",HTMLElement)],Pm.prototype,"shortsCinematicContainer",void 0);
_.C([_.Dc("initial-player-container"),_.V("design:type",HTMLElement)],Pm.prototype,"initialPlayerContainer",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"buttonOverride",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Pm.prototype,"anchoredPanelActive",void 0);_.C([_.O(),_.V("design:type",String)],Pm.prototype,"activePanel",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"isActive",void 0);
_.C([_.O({selector:mAt,reflectToAttribute:!0}),_.V("design:type",Object)],Pm.prototype,"smallScreenPersistentPanel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Pm.prototype,"isPersistentPanelActive",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"smallScreenSqueezeBack",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"enableScrollIntoViewCenter",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Pm.prototype,"formatFirst",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Pm.prototype,"enableFlexibleOverlay",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Pm.prototype,"useAspectRatio",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"panelContainer",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"overlayContainer",void 0);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"isShortsInitialized",void 0);
_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"firstShortsData",void 0);_.C([_.W("reelWatchSequenceResponse"),_.V("design:type",Object),_.V("design:paramtypes",[])],Pm.prototype,"prevShortsSequence",null);_.C([_.W("data","prevShortsSequence"),_.V("design:type",Object),_.V("design:paramtypes",[])],Pm.prototype,"shortsProcessedPrevSequence",null);_.C([_.W("reelWatchSequenceResponse"),_.V("design:type",Object),_.V("design:paramtypes",[])],Pm.prototype,"shortsSequence",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"setFirstShortsData",null);_.C([_.W("data","shortsSequence","firstShortsData"),_.V("design:type",Object),_.V("design:paramtypes",[])],Pm.prototype,"shortsProcessedSequence",null);
_.C([_.O({reflectToAttribute:!0}),_.W("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Pm.prototype,"isUpArrowHidden",null);_.C([_.O({reflectToAttribute:!0}),_.W("reelWatchSequenceResponse","index","endOfNextContinuation"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Pm.prototype,"isDownArrowHidden",null);
_.C([_.O(),_.W("index"),_.V("design:type",Number),_.V("design:paramtypes",[])],Pm.prototype,"activeIndex",null);_.C([_.W("isShortPlayable","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Pm.prototype,"shouldRenderOfflineContent",null);_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"onResize",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Pm.prototype,"anchoredEngagementPanels",null);
_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"watchWhileEngagementPanels",void 0);_.C([_.za("isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"onFullscreenChange",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"engagementPanelsChanged",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],Pm.prototype,"onServiceRequestCompleted",null);_.C([_.W("data","shortsSequence","index"),_.V("design:type",Object),_.V("design:paramtypes",[])],Pm.prototype,"activeReel",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"unhideCurrentOverlay",null);
_.C([_.za("currentEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"updateReelWatchSequenceResponse",null);_.C([_.za("isPlayerStarted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"afterPlayerStarted",null);_.C([_.W("playerData","reelWatchSequenceResponse","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Pm.prototype,"errorScreen",null);
_.C([_.W("errorScreen"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Pm.prototype,"hasError",null);_.C([_.za("playerData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],Pm.prototype,"playerDataChanged",null);_.C([_.EB("yt-dismissible-item-undo-feedback"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"onShortUndoDismiss",null);
_.C([_.EB("yt-disable-lockup-interaction"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],Pm.prototype,"onShortsDismiss",null);_.C([_.Wh("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"onActiveChanged",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"graftClientVisualElements",null);
_.C([_.za("currentPlayerIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"graftNvcRenderer",null);_.C([_.za("index"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"setActiveIndex",null);_.C([_.za("isShortsPipActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"onShortsPipActiveChanged",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"lazyUpdateMiniplayerData",null);_.C([_.O(),_.V("design:type",Object)],Pm.prototype,"onOverlayDensityChanged",void 0);_.C([_.za("isPersistentPanelActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"onPersistentPanelActiveChanged",null);
_.C([_.za("index","data","isUpArrowHidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"onPrevButtonDataChange",null);_.C([_.za("index","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pm.prototype,"onNextButtonDataChange",null);_.C([_.m({is:"ytd-shorts"})],Pm);_.WG.registerService(_.LiW,Pm);
_.$W();
}catch(e){_._DumpException(e)}
try{
_.mg("JzFVk");
var xw7;var Als;var LY=function(){return _.x.apply(this,arguments)||this};
_.M(LY,_.x);LY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
LY.prototype.computeBlueBottomLink=function(F){return F};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],LY.prototype,"data",void 0);_.C([_.O({computed:"computeIcon_(data.bottomIcon)"}),_.V("design:type",String)],LY.prototype,"bottomIcon",void 0);
_.C([_.O({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.V("design:type",Boolean)],LY.prototype,"enableBlueBottomLink",void 0);_.C([_.m({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],LY);
_.b(LY,"ytd-web-answer-renderer",function(){if(Als!==void 0)return Als;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Als=F},{mode:_.Nc("kevlar_poly_si_batch_j035")?1:2});var v6v;var fY=function(){var F=_.x.apply(this,arguments)||this;F.hasChipBar=!1;return F};
_.M(fY,_.x);fY.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}}};
fY.prototype.computeHasChipBar=function(F){return!(F==null||!F.chipBar)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],fY.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.V("design:type",Object)],fY.prototype,"hasChipBar",void 0);_.C([_.m({is:"ytd-search-header-renderer",disableElementRegistration:!0})],fY);
_.b(fY,"ytd-search-header-renderer",function(){if(v6v!==void 0)return v6v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return v6v=F},{mode:1});var IUC;var a9=function(){return _.x.apply(this,arguments)||this};
_.M(a9,_.x);a9.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],a9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],a9.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-page-continuation"})],a9);
_.b(a9,"ytd-page-continuation",function(){if(IUC!==void 0)return IUC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return IUC=F},{mode:1});var Hch;var mwJ;var $wT;var jK=function(){return _.x.apply(this,arguments)||this};
_.M(jK,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],jK.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],jK);
_.b(jK,"ytd-watch-card-one-vs-one-event",function(){if($wT!==void 0)return $wT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return $wT=F},{mode:1});var c1=function(){return _.x.apply(this,arguments)||this};
_.M(c1,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],c1.prototype,"data",void 0);_.C([_.m({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],c1);
_.b(c1,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(mwJ!==void 0)return mwJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return mwJ=F},{mode:1});var bcv;var Fm=function(){return _.x.apply(this,arguments)||this};
_.M(Fm,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Fm.prototype,"data",void 0);_.C([_.m({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Fm);
_.b(Fm,"ytd-banner-and-box-hero-image-renderer",function(){if(bcv!==void 0)return bcv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return bcv=F},{mode:1});var yl9;var q9=function(){var F=_.x.apply(this,arguments)||this;F.modern=_.E("web_modern_buttons");return F};
_.M(q9,_.x);q9.prototype.computeIcon=function(){var F,q,t=(F=this.data)==null?void 0:(q=F.icon)==null?void 0:q.iconType;if(t)return _.Ek(t)};
q9.prototype.computeButtonShape=function(){var F;return{buttonText:_.q1((F=this.data)==null?void 0:F.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.JJ.Object.defineProperties(q9.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"}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],q9.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],q9.prototype,"modern",void 0);_.C([_.O({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.style"),_.V("design:type",Object),_.V("design:paramtypes",[])],q9.prototype,"buttonColor",null);
_.C([_.m({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],q9);
_.b(q9,"ytd-call-to-action-button-renderer",function(){if(yl9!==void 0)return yl9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return yl9=F},{mode:1});var CfQ;var tw=function(){return _.x.apply(this,arguments)||this};
_.M(tw,_.x);tw.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.ep(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.ZR(this.data.leftThumbnail.thumbnails,216)+")")};
tw.prototype.onLeftThumbnailChanged=tw.prototype.onLeftThumbnailChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],tw.prototype,"data",void 0);_.C([_.za("data.leftThumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tw.prototype,"onLeftThumbnailChanged",null);_.C([_.m({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],tw);
_.b(tw,"ytd-collage-hero-image-renderer",function(){if(CfQ!==void 0)return CfQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return CfQ=F},{mode:1});var dwh;var uO=function(){return _.x.apply(this,arguments)||this};
_.M(uO,_.x);uO.prototype.computeStyle=function(F){return F};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],uO.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],uO.prototype,"componentStyle",void 0);_.C([_.m({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],uO);
_.b(uO,"ytd-single-hero-image-renderer",function(){if(dwh!==void 0)return dwh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return dwh=F},{mode:1});var Vmh;var Jw=function(){return _.x.apply(this,arguments)||this};
_.M(Jw,_.x);_.l=Jw.prototype;
_.l.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.E("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.l.computeSubtitle=function(F){if(this.data){var q;if(this.data.upcomingEventData){F=_.q1(F.subtitle);var t=Number(this.data.upcomingEventData.startTime);isNaN(t)||(q=_.FK(_.vD(F,t)))}else q=F.subtitle;return q}};
_.l.onHeroTap=function(F){F.preventDefault();var q=this.data&&this.data.navigationEndpoint;!q||!_.tC(_.tY(F),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.tC(_.tY(F),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.E("kevlar_watchcard_hero_video_renderer_killswitch")?_.Q0(this.hostElement,"yt-navigate",{navigationEndpoint:q}):this.ytComponentBehavior.resolveCommand(q))};
_.l.computeHeroTabIndex=function(F){return F&&F.simpleText?-1:0};
_.l.computeHeroRole=function(F){return F&&F.simpleText?"":"link"};
_.l.computeIsReminderButtonPresent=function(F){return!(!F||!F.reminderButton)};
_.l.computeHideBottomItems=function(F){return!(this.computeIsReminderButtonPresent(F)||F.subtitle)};
_.l.dataChanged=function(){var F=this.get("data.buttons.buttonRenderer.serviceEndpoint"),q;((q=_.n(F==null?void 0:F.commandMetadata,_.Cu))==null?0:q.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(F)};
Jw.prototype.dataChanged=Jw.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Jw.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Jw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Jw.prototype,"data",void 0);
_.C([_.O({computed:"computeSubtitle(data)"}),_.V("design:type",String)],Jw.prototype,"subtitle",void 0);_.C([_.O({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Jw.prototype,"isReminderButtonPresent",void 0);_.C([_.O({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Jw.prototype,"hideBottomItems",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jw.prototype,"dataChanged",null);_.C([_.m({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Jw);
_.b(Jw,"ytd-watch-card-hero-video-renderer",function(){if(Vmh!==void 0)return Vmh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Vmh=F},{mode:1});var Uwv;var sj=function(){return _.x.apply(this,arguments)||this};
_.M(sj,_.x);_.l=sj.prototype;_.l.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"}}}};
_.l.computeTitleBadges=function(F){return F?[F]:[]};
_.l.computeHeaderStyle=function(F){return F?F.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.l.computeAvatarAriaLabel=function(F){if(F){var q,t,u,J;return(J=(q=F.avatar)==null?void 0:(t=q.accessibility)==null?void 0:(u=t.accessibilityData)==null?void 0:u.label)!=null?J:_.q1(F==null?void 0:F.title)}};
_.l.computeAvatarHeight=function(F){return F==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.l.computeBadgeRowClass=function(F){return(F==null?0:F[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],sj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],sj.prototype,"data",void 0);_.C([_.O({computed:"computeTitleBadges(data.titleBadge)"}),_.V("design:type",Array)],sj.prototype,"titleBadges",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.V("design:type",String)],sj.prototype,"headerStyle",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.V("design:type",String)],sj.prototype,"badgeRowClass",void 0);_.C([_.m({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],sj);
_.b(sj,"ytd-watch-card-rich-header-renderer",function(){if(Uwv!==void 0)return Uwv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Uwv=F},{mode:1});var SUy;var h5T;var gV=function(){return _.x.apply(this,arguments)||this};
_.M(gV,_.x);gV.prototype.onMetadataTap=function(F){var q=this.data&&this.data.navigationEndpoint;q&&!_.tC(_.tY(F),this.hostElement,["A".toString()])&&_.Q0(this.hostElement,"yt-navigate",{endpoint:q})};
_.JJ.Object.defineProperties(gV.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F;if(this.data.upcomingEventData){var q=_.q1(this.data.subtitle),t=Number(this.data.upcomingEventData.startTime);isNaN(t)||(F=_.FK(_.vD(q,t)))}else F=this.data.subtitle;return F}}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],gV.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data.style"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],gV.prototype,"isCondensed",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],gV.prototype,"subtitle",null);
_.C([_.m({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],gV);
_.b(gV,"ytd-watch-card-compact-video-renderer",function(){if(h5T!==void 0)return h5T;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return h5T=F},{mode:1});var KAD;var lO=function(){return _.x.apply(this,arguments)||this};
_.M(lO,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],lO.prototype,"data",void 0);_.C([_.m({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],lO);
_.b(lO,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(KAD!==void 0)return KAD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return KAD=F},{mode:1});var Xm=function(){return _.x.apply(this,arguments)||this};
_.M(Xm,_.x);Xm.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}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Xm.prototype,"ytRendererStamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Xm.prototype,"data",void 0);_.C([_.m({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Xm);
_.b(Xm,"ytd-vertical-watch-card-list-renderer",function(){if(SUy!==void 0)return SUy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return SUy=F},{mode:1});var BlQ;var Y8=function(){var F=_.x.apply(this,arguments)||this;F.ariaExpanded="false";return F};
_.M(Y8,_.x);_.l=Y8.prototype;_.l.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.l.dataChanged=function(){var F;this.currentSeasonIndex=((F=this.data)==null?void 0:F.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.l.computeEpisodesInfo=function(F,q,t){if(F!==void 0&&q.length===F.length)return F[t]};
_.l.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.l.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.l.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.l.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.l.getUppercaseSimpleString=function(F){return this.ytRendererBehavior.getSimpleString(F).toUpperCase()};
_.l.updateCurrentSeasonIndexFromBinding=function(F){this.currentSeasonIndex=F.detail.value};
Y8.prototype.onIronOverlayClosed=Y8.prototype.onIronOverlayClosed;Y8.prototype.currentSeasonIndexChanged=Y8.prototype.currentSeasonIndexChanged;Y8.prototype.dataChanged=Y8.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Y8.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",String)],Y8.prototype,"label",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],Y8.prototype,"currentSeasonIndex",void 0);_.C([_.O({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.V("design:type",Object)],Y8.prototype,"episodesInfo",void 0);_.C([_.O({value:"false"}),_.V("design:type",Object)],Y8.prototype,"ariaExpanded",void 0);_.C([_.Ms("#lists"),_.V("design:type",Object)],Y8.prototype,"lists",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Y8.prototype,"dataChanged",null);_.C([_.Wh("currentSeasonIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Y8.prototype,"currentSeasonIndexChanged",null);_.C([_.EB("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Y8.prototype,"onIronOverlayClosed",null);
_.C([_.m({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Y8);
_.b(Y8,"ytd-watch-card-section-dropdown-renderer",function(){if(BlQ!==void 0)return BlQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return BlQ=F},{mode:1});var LAs;var pX=function(){var F=_.x.apply(this,arguments)||this;F.isSearch=!1;return F};
_.M(pX,_.x);pX.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}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],pX.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],pX.prototype,"isSearch",void 0);_.C([_.m({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],pX);
_.b(pX,"ytd-watch-card-section-sequence-renderer",function(){if(LAs!==void 0)return LAs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
return LAs=F},{mode:1});var fUv=_.ld(function(F){return _.Z("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.Z(_.Tl,{data:function(){return F.data().ctaButton}},{buttonViewModel:_.AB}),_.Z(_.rv,{text:function(){return F.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"lk");
fUv.idomCompat=!0;_.ei(fUv,"ytd-button-banner-view-model",{props:{data:_.NH}});var QJ=function(){var F=_.x.apply(this,arguments)||this;F.isSearch=!1;return F};
_.M(QJ,_.x);
QJ.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"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],QJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],QJ.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],QJ.prototype,"rounded",void 0);_.C([_.O(),_.V("design:type",Object)],QJ.prototype,"isSearch",void 0);
_.C([_.m({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],QJ);
_.b(QJ,"ytd-universal-watch-card-renderer",function(){if(Hch!==void 0)return Hch;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Hch=F},{mode:1});var aU9;_.ei(_.ld(function(F){var q=F.data;var t;F=!((t=_.sV().resolve(_.JU(_.qo)))==null||!t());t={};return _.Z("overview-message-view-model",{class:_.Ec("ytwOverviewMessageViewModelHost",(t.ytwOverviewMessageViewModelDarkBackground=F,t.ytwOverviewMessageViewModelLightBackground=!F,t))},_.Z(_.R,{cond:function(){return q().primaryImage},
then:function(u){return _.Z(_.sc,{data:u,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.Z(_.R,{cond:function(){return q().primaryText},
then:function(){return _.Z("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.Z(_.rv,{text:function(){return q().primaryText}}))}}),_.Z(_.R,{cond:function(){return q().secondaryText},
then:function(){return _.Z("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.Z(_.rv,{text:function(){return q().secondaryText}}))}}))},"mk"),"overview-message-view-model",{props:{data:_.NH}});_.ei(_.w1r,"ytd-overview-answer-view-model",{props:{data:_.NH}});var eX=function(){return _.x.apply(this,arguments)||this};
_.M(eX,_.x);eX.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"}}}};
eX.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.Qd),_.V("design:type",Object)],eX.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],eX.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],eX.prototype,"isSearch",void 0);
_.C([_.m({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],eX);
_.b(eX,"ytd-secondary-search-container-renderer",function(){if(aU9!==void 0)return aU9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
return aU9=F},{mode:1});var jqs;var Z7=function(){var F=_.x.apply(this,arguments)||this;F.renderSecondarySearchContainer=!1;F.isSearch=!1;return F};
_.M(Z7,_.x);_.l=Z7.prototype;_.l.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.l.created=function(){var F=this;this.boundStampSecondarySearchContainerIfFits=function(){F.stampSecondarySearchContainerIfFits()};
_.$I("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.l.computeIsSearchFrictionPage=function(F){var q,t,u,J,g;F=F==null?void 0:(q=F.primaryContents)==null?void 0:(t=q.sectionListRenderer)==null?void 0:(u=t.contents)==null?void 0:(J=u[0])==null?void 0:(g=J.itemSectionRenderer)==null?void 0:g.contents;if(!F)return!1;q=_.X(F);for(t=q.next();!t.done;t=q.next())if(u=void 0,(u=t.value)==null?0:u.searchFrictionViewModel)return!0;return!1};
_.l.computeShowSecondaryColumn=function(F,q){return!!(q&&q.secondaryContents&&F)};
_.l.activeChanged=function(){var F=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.kM(this,this.debounceStampSecondarySearchContainerIfFits)),_.f1(function(){F.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.kM(this,this.debounceStampSecondarySearchContainerIfFits))};
_.l.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.l.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.l.debounceStampSecondarySearchContainerIfFits=function(){_.aE(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.l.onRetrieveLocation=function(F,q){q.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);F.stopPropagation()};
_.l.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Z7.prototype.dataChanged=Z7.prototype.dataChanged;Z7.prototype.onRetrieveLocation=Z7.prototype.onRetrieveLocation;Z7.prototype.persistentGuideChanged=Z7.prototype.persistentGuideChanged;Z7.prototype.activeChanged=Z7.prototype.activeChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Z7.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Z7.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.D(_.Vl),_.V("design:type",Object)],Z7.prototype,"ironResizableBehavior",void 0);_.C([_.O(),_.V("design:type",Boolean)],Z7.prototype,"active",void 0);_.C([_.O(),_.V("design:type",Object)],Z7.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.E("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],Z7.prototype,"useBiggerThumbs",void 0);_.C([_.O({reflectToAttribute:!0,value:function(){return _.pE("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],Z7.prototype,"biggerThumbsStyle",void 0);_.C([_.O(),_.V("design:type",Object)],Z7.prototype,"renderSecondarySearchContainer",void 0);_.C([_.O({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.V("design:type",Boolean)],Z7.prototype,"showSecondaryColumn",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.V("design:type",Boolean)],Z7.prototype,"isSearchFrictionPage",void 0);
_.C([_.O(),_.V("design:type",Object)],Z7.prototype,"isSearch",void 0);_.C([_.za("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z7.prototype,"activeChanged",null);_.C([_.za("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z7.prototype,"persistentGuideChanged",null);
_.C([_.EB("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Z7.prototype,"onRetrieveLocation",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z7.prototype,"dataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Z7);
_.b(Z7,"ytd-two-column-search-results-renderer",function(){if(jqs!==void 0)return jqs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return jqs=F},{mode:1});var R1=function(){var F=_.x.apply(this,arguments)||this;F.hasSearchHeader=!1;F.hasSecondaryContent=!1;F.hasBiggerThumbs=_.E("enable_desktop_search_bigger_thumbs");F.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return F};
_.M(R1,_.x);_.l=R1.prototype;_.l.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:_.YK(["aa","eocs"])}}};
_.l.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.loadPage_=function(F){this.initCsi();F&&(this.data=F,_.$I("REFINEMENTS_TUPLE",["FromSearchResponse",F.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.ct(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.l.initCsi=function(){_.BV("results",["ol","cpt"])};
_.l.updateTitle=function(){var F=_.Kr(window.location.href,"q");F||(F=_.Kr(window.location.href,"search_query"));_.Q0(this.hostElement,"yt-update-title",F||"")};
_.l.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.l.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.E("web_srp_data_changed_terminate_imp_killswitch")||_.ec(this.hostElement,"yt-terminate-video-preview-action")};
_.l.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.l.computeHasSearchHeader=function(F){var q;F=F==null?void 0:(q=F.header)==null?void 0:q.searchHeaderRenderer;return!!F&&(!!F.searchFilterButton||!!F.chipBar)};
_.l.computeHasSecondaryContent=function(F){var q,t;return!!(F==null?0:(q=F.contents)==null?0:(t=q.twoColumnSearchResultsRenderer)==null?0:t.secondaryContents)};
_.JJ.Object.defineProperties(R1,{template:{configurable:!0,enumerable:!0,get:function(){if(xw7===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);xw7=F}F=xw7;return F}}});
R1.prototype.onReloadContinuationFinish=R1.prototype.onReloadContinuationFinish;R1.prototype.dataChanged=R1.prototype.dataChanged;_.C([_.D(_.L0.YtPageBehavior),_.V("design:type",Object)],R1.prototype,"ytPageBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],R1.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],R1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.Qd),_.V("design:type",Object)],R1.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],R1.prototype,"data",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],R1.prototype,"monitorScroll",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],R1.prototype,"hasSearchHeader",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],R1.prototype,"hasSecondaryContent",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],R1.prototype,"hasBiggerThumbs",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],R1.prototype,"dataChanged",null);
_.C([_.EB("yt-reload-continuation-finish"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],R1.prototype,"onReloadContinuationFinish",null);_.C([_.m({is:"ytd-search"})],R1);_.WG.registerService(_.Byo,R1);
_.$W();
}catch(e){_._DumpException(e)}
try{
_.mg("h8y2qb");
var Sj5=function(F){if(F=_.GfW(F)){var q;(q=F.sources)!=null&&q[0]?(q=_.Wbo(F),q=q<1?"VERTICAL":q>1?"HORIZONTAL":"SQUARE"):q=void 0;return q}},f0=function(F){_.Ak.call(this,"upload");
this.opts.query=F},KDQ=function(F,q){return _.Z(hq3,{data:F,
onYtNavigate:q})},BV5=function(F,q){return _.iC(F.entities,"pageHeaderEntity",q)},f7w=function(F,q){return F.map(function(t){if(t.tabRenderer)return LDs(t.tabRenderer);
if(t.expandableTabRenderer&&q){var u=t.expandableTabRenderer;return{customTabRenderable:function(){return q(u)}}}return{}})},LDs=function(F){return{identifier:F.tabIdentifier,
aTagConfig:_.K9({innertubeCommand:F.endpoint,forceNewState:!0}),title:F.title,selected:F.selected,disabled:F.unselectable,icon:F.icon}},a7h=function(F){return _.pj({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:F})},j19=function(F){if(!_.Xp(document,"gtm-noscript")){var q=document.createElement("noscript");
q.id="gtm-noscript";q.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+F+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(q)}};_.gd(f0,_.Ak);f0.prototype.JSC$10066_setLabel=function(F){f0.superClass_.JSC$10066_setLabel.call(this,F);return this};
f0.prototype.addUploadMetadata=function(F,q){f0.superClass_.addUploadMetadata.call(this,F,q);return this};var cws=function(F){if(F!=="youtubebanner"&&F!=="youtube-channel-banner")throw Error("vo");f0.call(this,F)};
_.M(cws,f0);cws.prototype.JSC$10066_setLabel=function(F){f0.prototype.JSC$10066_setLabel.call(this,F);return this};
cws.prototype.addUploadMetadata=function(F,q){f0.prototype.addUploadMetadata.call(this,F,q);return this};var FPs=[_.Vl,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(F){_.xz(F).path[0]!==this&&(this.resetLayout(),F.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var F=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Eu(this._layoutDebouncer,_.H9,F);_.zs(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var F=this;requestAnimationFrame(function(){F.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(F){this.resizerShouldNotify(F)&&this._notifyDescendant(F)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var qx3=[_.xZz,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(F,q){var t=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[F];if(!t)throw new ReferenceError(this._getUndefinedMsg(F));F=this._boundEffect(t,q||{});F.setUp();return F},
_effectsChanged:function(F,q,t){this._tearDownEffects();F&&t&&(F.split(" ").forEach(function(u){var J;u!==""&&((J=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[u])?this._effects.push(this._boundEffect(J,q[u])):console.warn(this._getUndefinedMsg(u)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(F,q){q=q||{};var t=parseFloat(q.startsAt||0),u=parseFloat(q.endsAt||1),J=u-t,g=function(){};
u=t===0&&u===1?F.run:function(Y,Q){F.run.call(this,Math.max(0,(Y-t)/J),Q)};
return{setUp:F.setUp?F.setUp.bind(this,q):g,run:F.run?u.bind(this):g,tearDown:F.tearDown?F.tearDown.bind(this):g}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(F){F.setUp()!==!1&&this._effectsRunFn.push(F.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(F){F.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(F,q){this._effectsRunFn&&this._effectsRunFn.forEach(function(t){t(F,q)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var F=this._clampedScrollTop;this._updateScrollState(F);this.threshold>0&&this._setThresholdTriggered(F>=this.threshold)}},
_getDOMRef:function(F){console.warn("_getDOMRef","`"+F+"` is undefined")},
_getUndefinedMsg:function(F){return"Scroll effect `"+F+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+F+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("wo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(F){var q={};F=parseFloat(F.scalar);q.background=this._getDOMRef("background");q.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");q.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");q.deltaBg=q.backgroundFrontLayer.offsetHeight-q.background.offsetHeight;q.deltaBg===0?(isNaN(F)&&(F=.8),q.deltaBg=(this._dHeight||0)*F):(isNaN(F)&&(F=
1),q.deltaBg*=F);this._fxParallaxBackground=q},
run:function(F){var q=this._fxParallaxBackground;this.transform("translate3d(0px, "+q.deltaBg*Math.min(1,F)+"px, 0px)",q.backgroundFrontLayer);q.backgroundRearLayer&&this.transform("translate3d(0px, "+q.deltaBg*Math.min(1,F)+"px, 0px)",q.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var t3y;var uiT;var Jj7=function(){};
_.l=Jj7.prototype;_.l._scrollTargetChanged=function(){};
_.l.scroll=function(){};
_.l._isValidScrollTarget=function(){};
_.l._toggleScrollListener=function(){};
_.l.toggleScrollListener=function(){};
_.l.createEffect=function(){};
_.l._effectsChanged=function(){};
_.l._layoutIfDirty=function(){};
_.l._boundEffect=function(){};
_.l._setUpEffect=function(){};
_.l._tearDownEffects=function(){};
_.l._runEffects=function(){};
_.l._scrollHandler=function(){};
_.l._scrollStateChanged=function(){};
_.l._getUndefinedMsg=function(){};
_.l.notifyResize=function(){};
_.l.assignParentResizable=function(){};
_.l.stopResizeNotificationsFor=function(){};
_.l._subscribeIronResize=function(){};
_.l._unsubscribeIronResize=function(){};
_.l.resizerShouldNotify=function(){};
_.l._onDescendantIronResize=function(){};
_.l._fireResize=function(){};
_.l._onIronRequestResizeNotifications=function(){};
_.l._parentResizableChanged=function(){};
_.l._notifyDescendant=function(){};
_.l._requestResizeNotifications=function(){};
_.l._findParent=function(){};
_.l._appResetLayoutHandler=function(){};
_.l.resetLayout=function(){};
_.l._notifyLayoutChanged=function(){};
_.l._notifyDescendantResize=function(){};
_.l._setThresholdTriggered=function(){};
Jj7=_.Hh({_template:function(){if(uiT!==void 0)return uiT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;t3y===void 0&&(t3y=document.createElement("template"));var u=t3y;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return uiT=F},
is:"tp-yt-app-header",behaviors:[qx3,FPs],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var F=_.xz(this.$.slot).getDistributedNodes(),q=0,t;t=F[q];q++)if(t.nodeType===Node.ELEMENT_NODE)if(t.hasAttribute("sticky")){this._stickyElRef=t;break}else this._stickyElRef||(this._stickyElRef=t);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var F=this._clampedScrollTop,q=this._height===0||F===0,t=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;q||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();q?this._updateScrollState(F,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=t}},
_updateScrollState:function(F,q){if(this._height!==0){var t=0,u=this._top;var J=this._maxHeaderTop;var g=F-this._lastScrollTop,Y=Math.abs(g),Q=F>this._lastScrollTop,e=performance.now();this._mayMove()&&(t=this._clamp(this.reveals?u+g:F,0,J));F>=this._dHeight&&(t=this.condenses&&!this.fixed?Math.max(this._dHeight,t):t,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&Y<100){if(e-this._initTimestamp>300||this._wasScrollingDown!==Q)this._initScrollTop=F,this._initTimestamp=e;F>=J&&
(Math.abs(this._initScrollTop-F)>30||Y>10?(Q&&F>=J?t=J:!Q&&F>=this._dHeight&&(t=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((t-u)/(g/(e-this._lastTimestamp)),0,300)+"ms"):t=this._top)}J=this._dHeight===0?F>0?1:0:t/this._dHeight;q||(this._lastScrollTop=F,this._top=t,this._wasScrollingDown=Q,this._lastTimestamp=e);if(q||J!==this._progress||u!==t||F===0)this._progress=J,this._runEffects(J,t),this._transformHeader(t)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(F){this.translate3d(0,-F+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&F>=this._stickyElTop?Math.min(F,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(F,q,t){return Math.min(t,Math.max(q,F))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.xz(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(F){switch(F){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.xz(this).querySelector("[main-title]");case "condensedTitle":return _.xz(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var sxJ;var g$v;_.Hh({_template:function(){if(g$v!==void 0)return g$v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;sxJ===void 0&&(sxJ=document.createElement("template"));var u=sxJ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return g$v=F},
is:"tp-yt-app-header-layout",behaviors:[FPs],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.xz(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var F=this.header;if(this.isAttached&&F){this.$.wrapper.classList.remove("initializing");F.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)F.style.left=
"",F.style.right="";else{var q=this.getBoundingClientRect(),t=document.documentElement.clientWidth-q.right;F.style.left=q.left+"px";F.style.right=t+"px"}q=this.$.contentContainer.style;t=F.offsetHeight;F.fixed&&!F.condenses&&this.hasScrollingRegion?(q.marginTop=t+"px",q.paddingTop=""):(q.paddingTop=t+"px",q.marginTop="")}}});var lav=new _.Xk("alertCommand");var X0h=new _.Xk("manageLabsStateCommand");var YxJ=new _.Xk("inlineFormRenderer");var aZ=new _.Xk("playlistSidebarPrimaryInfoRenderer");var p0v=new _.Xk("productDetailsThumbnailRenderer"),Qx9=new _.Xk("productDetailsVariantRenderer"),eAs=new _.Xk("productDetailsVariantOptionRenderer"),ZPT=new _.Xk("productDetailsOffersContainerRenderer"),RAv=new _.Xk("productDetailsOfferRenderer");var rjT=new _.Xk("shoppingFlaggingRenderer");var N6C=new _.Xk("playlistBylineRenderer");var w0v=new _.Xk("insertChannelTabCommand");var jQ=function(){return _.Ga.apply(this,arguments)||this};
_.M(jQ,_.Ga);_.l=jQ.prototype;_.l.activeChanged=function(){if(this.active){var F=_.ep(this.hostElement).querySelector("#header");F&&_.Q0(F,"iron-resize");window.addEventListener("scroll",_.kM(this,this.onScroll))}else window.removeEventListener("scroll",_.kM(this,this.onScroll)),_.Q0(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.l.guideVisibleChanged=function(){var F=_.ep(this.hostElement).querySelector("#header");F&&_.Q0(F,"iron-resize")};
_.l.onScroll=function(){var F=this;_.aE(this,"onScroll",function(){var q=_.ep(F.hostElement).querySelector("#header");q&&q.polymerController&&(q=q.polymerController.getScrollState().progress===1?"standard":"seamed",_.Q0(F.hostElement,"yt-request-panel-mode-change",{mode:q}))},10)};
_.l.tabsChanged=function(){if(this.tabs){for(var F=null,q=0,t=this.tabs.length;q<t;++q){var u=this.tabs[q].tabRenderer;if(u&&u.selected){F=q;break}}this.selected=F}};
_.l.onTabsActivate=function(F){_.Q0(this.hostElement,"yt-navigate",{endpoint:this.tabs[F.detail.selected].tabRenderer.endpoint})};
jQ.prototype.tabsChanged=jQ.prototype.tabsChanged;jQ.prototype.guideVisibleChanged=jQ.prototype.guideVisibleChanged;jQ.prototype.activeChanged=jQ.prototype.activeChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],jQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.O(),_.V("design:type",Array)],jQ.prototype,"tabs",void 0);
_.C([_.O(),_.V("design:type",Object)],jQ.prototype,"selected",void 0);_.C([_.O(),_.V("design:type",Boolean)],jQ.prototype,"active",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],jQ.prototype,"disableHeaderFluidWidth",void 0);_.C([_.za("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jQ.prototype,"activeChanged",null);
_.C([_.za("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jQ.prototype,"guideVisibleChanged",null);_.C([_.za("tabs"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jQ.prototype,"tabsChanged",null);_.C([_.Dj()],jQ);var iPv=[_.B.YtRendererBehavior,_.ee.YtdGuideStateAwareBehavior,jQ.prototype];var kz9=2/3,E$9=_.r0(130749),zA7=function(F,q){var t=this;this.element=F;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){t.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:kz9,moveAction:function(u){t.moveAction(u)},
triggerAction:function(){t.element.isReloading=!0;_.BT(_.DP(),{visualElement:E$9});_.oc.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:t.element}})}}}};
_.xA(_.DP(),E$9,this.layer);this.gesture=new _.GE(F,q,this.refreshConfig,"pan-down");this.attach()};
_.l=zA7.prototype;_.l.attach=function(){this.gesture.attach()};
_.l.detach=function(){this.gesture.detach()};
_.l.reset=function(){this.element.close()};
_.l.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.l.moveAction=function(F){this.element.rotation=F*360};var o$5=_.r0(130750),cV=function(F,q,t,u,J){var g=this;this.element=F;this.parent=t;this.channelHeader=u;this.ytdReduxDispatch=J;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){g.tabsStartAtInPx=g.channelHeader.clientHeight-48;var Y;(Y=g.selectedTab)!=null&&Y.title&&(Y=_.sV().resolve(_.JU(_.JC)))&&(Y=Y.getCurrentPage(),g.lastVisitedTabScrollPosition=Y.getScrollTop(),g.previousTab&&
((g.lastVisitedTabScrollPosition===void 0?0:g.lastVisitedTabScrollPosition<g.channelHeader.clientHeight-48)?g.scrollPositionForTabs.has(g.selectedTab.title)&&g.scrollPositionForTabs.delete(g.selectedTab.title):g.scrollPositionForTabs.set(g.selectedTab.title,Y.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:n$9(),triggerAction:function(){g.navigate(g.previousTab)},
moveAction:function(Y,Q){g.moveAction(Y,Q)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-n$9(),triggerAction:function(){g.navigate(g.nextTab)},
moveAction:function(Y,Q){g.moveAction(Y,Q)}}}};
_.xA(_.DP(),o$5,this.layer);this.gesture=new _.GE(F,q,this.tabConfig);this.attach()};
cV.prototype.attach=function(){this.gesture.attach()};
cV.prototype.detach=function(){this.gesture.detach()};
cV.prototype.tabsChanged=function(F){if(F){var q=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;F=_.X(F);for(var t=F.next();!t.done;t=F.next()){t=t.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=t);var u=void 0;if((u=t)==null?0:u.selected)this.previousTab=q,this.selectedTab=t;q=t}q=this.gesture;F=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
q.config=F;this.scrollPositionNeedsUpdate=!0}};
cV.prototype.moveAction=function(F,q){if(!this.tabsElement){var t;this.tabsElement=(t=this.parent.header)==null?void 0:t.tabsElement;q==="right"&&this.previousTab?_.bbf(_.VY.instance,this.previousTab.endpoint,{},""):q==="left"&&this.nextTab&&_.bbf(_.VY.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}t=this.tabsElement._pos;q==="right"&&(F*=-1);this.tabsElement._positionBar(t.width,t.left*1+t.width*F)};
var n$9=function(){var F,q;return(q=(F=_.sV().resolve(_.JC).getCurrentPage())==null?void 0:F.clientWidth)!=null?q:0};
cV.prototype.navigate=function(F){this.element.data=void 0;if(F=F==null?void 0:F.endpoint)this.ytdReduxDispatch(a7h(!0)),_.BT(_.DP(),{visualElement:o$5}),_.oc.instance.resolveCommand({navigateAction:{endpoint:F}},{form:{element:this.element}})};var M3w;var T6Q;var FA=function(){return _.x.apply(this,arguments)||this};
_.M(FA,_.x);FA.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],FA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],FA.prototype,"data",void 0);_.C([_.m({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],FA);
_.b(FA,"ytd-labs-edit-renderer",function(){if(T6Q!==void 0)return T6Q;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return T6Q=F},{mode:1});var Gz3;var qj=function(){var F=_.x.apply(this,arguments)||this;F.dark=!1;F.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";F.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(qj,_.x);qj.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qj.prototype.ready=function(){var F=document.documentElement.hasAttribute("dark");this.setBackgroundImage(F);this.dark=F};
qj.prototype.onDarkModeToggledAction=function(F){this.setBackgroundImage(F);this.dark=F};
qj.prototype.setBackgroundImage=function(F){_.ws(this.hostElement,{"--yt-labs-header-background":"url("+(F?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],qj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],qj.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],qj.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],qj.prototype,"dark",void 0);
_.C([_.m({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],qj);
_.b(qj,"ytd-labs-header-renderer",function(){if(Gz3!==void 0)return Gz3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Gz3=F},{mode:1});var DIQ;var tb=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return F};
_.M(tb,_.x);tb.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"}}}}}};
tb.prototype.onYtToggleButton=function(F){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",F.detail.toggled)};
tb.prototype.onManageLabsState=function(F){if(F=_.n(F,X0h))F.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?F.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&F.labsItemId===this.data.labsItemId&&(F.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.ec(this.hostElement,"yt-check-labs-opted-in-state").some(function(q){return q})&&this.data.confirmationDialogCommand?_.rY(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.sV().resolve(_.gN).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&F.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.sV().resolve(_.gN).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
tb.prototype.onCheckLabsOptedInState=function(){var F=this.get("data.primaryButton.toggleButtonRenderer");return F?F.isToggled:!1};
_.JJ.Object.defineProperties(tb.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
tb.prototype.onYtToggleButton=tb.prototype.onYtToggleButton;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],tb.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],tb.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],tb.prototype,"itemStyle",null);_.C([_.EB("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],tb.prototype,"onYtToggleButton",null);_.C([_.m({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],tb);
_.b(tb,"ytd-labs-item-renderer",function(){if(DIQ!==void 0)return DIQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return DIQ=F},{mode:1});var WPy;var OP7;var uk=function(){return _.x.apply(this,arguments)||this};
_.M(uk,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],uk.prototype,"data",void 0);_.C([_.m({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],uk);
_.b(uk,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(OP7!==void 0)return OP7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return OP7=F},{mode:1});var P2h;var Jb=function(){return _.x.apply(this,arguments)||this};
_.M(Jb,_.x);Jb.prototype.observeSuperchatChip=function(){if(this.data){var F={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.ws(this.hostElement,F)}};
Jb.prototype.colorFromDecimal=function(F){return _.KG(Number(F||0))};
Jb.prototype.observeSuperchatChip=Jb.prototype.observeSuperchatChip;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Jb.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jb.prototype,"observeSuperchatChip",null);_.C([_.m({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Jb);
_.b(Jb,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(P2h!==void 0)return P2h;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return P2h=F},{mode:1});var s4=function(){return _.x.apply(this,arguments)||this};
_.M(s4,_.x);s4.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"}}}};
_.JJ.Object.defineProperties(s4.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],s4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.lr),_.V("design:type",Object)],s4.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],s4.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],s4.prototype,"hideMessageBlock",null);
_.C([_.m({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],s4);
_.b(s4,"ytd-live-chat-history-entry-renderer",function(){if(WPy!==void 0)return WPy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return WPy=F},{mode:1});var xIs;var gM=function(){return _.x.apply(this,arguments)||this};
_.M(gM,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],gM.prototype,"data",void 0);_.C([_.m({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],gM);
_.b(gM,"ytd-channel-options-renderer",function(){if(xIs!==void 0)return xIs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return xIs=F},{mode:1});var Aj9;var lk=function(){return _.x.apply(this,arguments)||this};
_.M(lk,_.x);lk.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],lk.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],lk.prototype,"data",void 0);_.C([_.m({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],lk);
_.b(lk,"ytd-settings-email-item-renderer",function(){if(Aj9!==void 0)return Aj9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Aj9=F},{mode:1});var v$3;var XA=function(){return _.x.apply(this,arguments)||this};
_.M(XA,_.x);XA.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"}}}};
XA.prototype.getExpansionIcon=function(F){return F?"COLLAPSE":"EXPAND"};
XA.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.JJ.Object.defineProperties(XA.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],XA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],XA.prototype,"data",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],XA.prototype,"expanded",void 0);_.C([_.W("expanded"),_.V("design:type",String),_.V("design:paramtypes",[])],XA.prototype,"emailListExpanded",null);
_.C([_.Ms("#options"),_.V("design:type",Object)],XA.prototype,"options",void 0);_.C([_.m({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],XA);
_.b(XA,"ytd-settings-email-list-renderer",function(){if(v$3!==void 0)return v$3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return v$3=F},{mode:1});var Ia7;var Ys=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return F};
_.M(Ys,_.x);Ys.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"}}}};
Ys.prototype.handleSignalActionSubmitForm=function(){var F,q=(F=this.formRenderer)==null?void 0:F.getForm();q&&this.data.serviceEndpoint&&_.sV().resolve(_.gN).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},q,{element:this.hostElement})})};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Ys.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ys.prototype,"data",void 0);_.C([_.Ms("yt-form-renderer"),_.V("design:type",Object)],Ys.prototype,"formRenderer",void 0);
_.C([_.m({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Ys);
_.b(Ys,"ytd-settings-gaia-link-renderer",function(){if(Ia7!==void 0)return Ia7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Ia7=F},{mode:1});var HPv;var pY=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return F};
_.M(pY,_.x);pY.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.Q5J()&&this.set("data.hidden",!1)};
pY.prototype.onSwitchReady=function(){var F=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.E("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.p_J().then(function(q){q&&(Notification.permission==="default"?F.set("data.hidden",!1):Notification.permission==="granted"&&_.Op("NotificationsDisabled").then(function(t){t||_.ec(F.hostElement,"yt-toggle-settings-switch",[F.data.id,!t]);F.set("data.hidden",!1)}).catch(function(){}))})})};
pY.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}}}}};
pY.prototype.handleUpdateOptionsCommand=function(F){(F=_.n(F,_.odf))&&this.data&&this.data.id===F.id&&(this.set("data.hidden",F.hidden),F.text!==void 0&&this.set("data.text",F.text),F.clearOptions&&this.set("data.options",[]))};
pY.prototype.onSwitchReady=pY.prototype.onSwitchReady;pY.prototype.dataChanged=pY.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],pY.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],pY.prototype,"data",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pY.prototype,"dataChanged",null);_.C([_.EB("yt-settings-switch-ready"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pY.prototype,"onSwitchReady",null);_.C([_.m({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],pY);
_.b(pY,"ytd-settings-options-renderer",function(){if(HPv!==void 0)return HPv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return HPv=F},{mode:1});var mIv;var QH=function(){return _.x.apply(this,arguments)||this};
_.M(QH,_.x);QH.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
QH.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
QH.prototype.onYtExpanderMoreTapped=QH.prototype.onYtExpanderMoreTapped;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],QH.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],QH.prototype,"data",void 0);
_.C([_.EB("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],QH.prototype,"onYtExpanderMoreTapped",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],QH);
_.b(QH,"ytd-product-details-description-renderer",function(){if(mIv!==void 0)return mIv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return mIv=F},{mode:1});var $I9;var eK=function(){var F=_.x.apply(this,arguments)||this;F.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";F.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";F.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";F.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return F};
_.M(eK,_.x);eK.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.JJ.Object.defineProperties(eK.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:(q=F.offerData)==null?void 0:q.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?void 0:F.purchaseButtonRenderers)!==void 0&&((q=this.data)==null?void 0:q.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var F,q;return!((F=this.data)==null||!F.formattedFromMerchantText)&&(!((q=this.data)==null||!q.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],eK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],eK.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],eK.prototype,"data",void 0);
_.C([_.O({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],eK.prototype,"shippingIcon",void 0);_.C([_.O({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],eK.prototype,"shippingAddressIcon",void 0);_.C([_.O({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],eK.prototype,"googleGuaranteeIcon",void 0);
_.C([_.O({type:_.E("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],eK.prototype,"returnPolicyIcon",void 0);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eK.prototype,"showAdditionalFees",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eK.prototype,"showMultiPurchaseButtons",null);
_.C([_.W("data","showMultiPurchaseButtons"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eK.prototype,"showPurchaseData",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],eK);
_.b(eK,"ytd-product-details-hero-offer-renderer",function(){if($I9!==void 0)return $I9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return $I9=F},{mode:1});var bPv;var yjT;var Zp=function(){return _.x.apply(this,arguments)||this};
_.M(Zp,_.x);_.l=Zp.prototype;_.l.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.l.onKeyDown=function(F){F=F.keyCode;F!==13&&F!==32||this.handleSelection()};
_.l.onMouseEnterImage=function(){var F;((F=this.data)==null?void 0:F.thumbnailDetails)!==void 0&&_.Zl(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.l.onMouseLeaveImage=function(){_.Zl(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.l.handleSelection=function(){this.data&&_.Q0(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.JJ.Object.defineProperties(Zp.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.isSelected)}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Zp.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zp.prototype,"isSelected",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Zp);
_.b(Zp,"ytd-product-details-thumbnail-renderer",function(){if(yjT!==void 0)return yjT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return yjT=F},{mode:1});var R9=function(){var F=_.x.apply(this,arguments)||this;var q={};F.actionMap=(q["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",q["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",q);F.selectedThumbnailIndex=0;F.selectItem=function(t){t.target.onKeyDown(t)};
return F};
_.M(R9,_.x);_.l=R9.prototype;_.l.handlePreviewImageSelect=function(F){this.hoverThumbnail=F};
_.l.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.l.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.l.onThumbnailSelected=function(F,q){this.selectedThumbnailIndex=q};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.l.updateOffset=function(){var F=_.ep(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-F));this.ytdHorizontalListBehavior.reposition_()};
_.JJ.Object.defineProperties(R9.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null?0:F.imageRenderer){var q,t;return((q=this.data)==null?void 0:(t=q.imageRenderer)==null?void 0:t.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var F;if((F=this.data)==null?0:F.imageRenderer){var q;return(q=_.n(this.data.imageRenderer[this.selectedThumbnailIndex],p0v))==null?void 0:q.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var F=this,q,t,u,J=(u=(q=this.data)==null?void 0:(t=q.imageRenderer)==null?void 0:t.map(function(g,Y){return{productDetailsThumbnailRenderer:Object.assign({},_.n(g,p0v),{index:Y,isSelected:Y===F.selectedThumbnailIndex})}}))!=null?u:[];
return Object.assign({},this.data,{imageRenderer:J})}}});
R9.prototype.updateOffset=R9.prototype.updateOffset;R9.prototype.dataChanged=R9.prototype.dataChanged;R9.prototype.onThumbnailSelected=R9.prototype.onThumbnailSelected;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.We.YtdHorizontalListBehavior),_.V("design:type",Object)],R9.prototype,"ytdHorizontalListBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],R9.prototype,"componentBehavior",void 0);_.C([_.D([_.$9.YtActionHandlerBehavior]),_.V("design:type",Object)],R9.prototype,"actionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],R9.prototype,"data",void 0);_.C([_.O({value:"$.items.children"}),_.V("design:type",String)],R9.prototype,"itemsPath",void 0);_.C([_.O({value:3}),_.V("design:type",Number)],R9.prototype,"initialCount",void 0);
_.C([_.Ms("#items"),_.V("design:type",Object)],R9.prototype,"items",void 0);_.C([_.O(),_.V("design:type",Object)],R9.prototype,"selectedThumbnailIndex",void 0);_.C([_.O(),_.V("design:type",Object)],R9.prototype,"hoverThumbnail",void 0);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],R9.prototype,"showThumbnails",null);
_.C([_.EB("ytd-product-details-thumbnail-renderer-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Number]),_.V("design:returntype")],R9.prototype,"onThumbnailSelected",null);_.C([_.W("data","selectedThumbnailIndex","hoverThumbnail"),_.V("design:type",Object),_.V("design:paramtypes",[])],R9.prototype,"thumbnailDetails",null);_.C([_.W("data","selectedThumbnailIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],R9.prototype,"populatedData",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],R9.prototype,"dataChanged",null);_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],R9.prototype,"updateOffset",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],R9);
_.b(R9,"ytd-product-details-image-carousel-renderer",function(){if(bPv!==void 0)return bPv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return bPv=F},{mode:_.Nc("kevlar_poly_si_batch_j079")?1:2});var C2Q;var rM=function(){return _.x.apply(this,arguments)||this};
_.M(rM,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],rM.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],rM.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],rM);
_.b(rM,"ytd-product-details-offer-renderer",function(){if(C2Q!==void 0)return C2Q;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return C2Q=F},{mode:1});var dIw;var Nj=function(){var F=_.x.apply(this,arguments)||this;F.isOffersHidden=!0;return F};
_.M(Nj,_.x);Nj.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var F,q=_.n((F=this.data)==null?void 0:F.viewOffersButton,_.th);q&&this.ytRendererBehavior.logExplicitClick(q)};
Nj.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.JJ.Object.defineProperties(Nj.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u;return(t=_.n((F=this.data)==null?void 0:(q=F.offers)==null?void 0:q[0],RAv))==null?void 0:(u=t.offerData)==null?void 0:u.vendorLogoUrl}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Nj.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Nj.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Nj.prototype,"isOffersHidden",void 0);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nj.prototype,"firstOfferVendorLogoUrl",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Nj);
_.b(Nj,"ytd-product-details-offers-container-renderer",function(){if(dIw!==void 0)return dIw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return dIw=F},{mode:1});var V3T;var UIs;var wM=function(){return _.x.apply(this,arguments)||this};
_.M(wM,_.x);wM.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
wM.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Zl(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
wM.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Zl(this,"ytd-product-details-variant-image-unselect")};
_.JJ.Object.defineProperties(wM.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((F=this.data)==null?void 0:F.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((q=this.data)==null?void 0:q.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((t=this.data)==null?void 0:t.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var F;if(((F=this.data)==null?void 0:F.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var F,q;return this.isUnavailable?(F=this.data)==null?void 0:F.variantOptionUnavailableAccessibilityLabel:(q=this.data)==null?void 0:q.variantOptionAccessibilityLabel}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],wM.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],wM.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],wM.prototype,"displayType",void 0);
_.C([_.W("displayType","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wM.prototype,"isImageButton",null);_.C([_.W("displayType","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wM.prototype,"isPillButton",null);_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wM.prototype,"isActive",null);
_.C([_.W("data"),_.O({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wM.prototype,"isUnavailable",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],wM.prototype,"thumbnailDetails",null);_.C([_.W("isUnavailable","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],wM.prototype,"accessibilityLabel",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],wM);
_.b(wM,"ytd-product-details-variant-option-renderer",function(){if(UIs!==void 0)return UIs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return UIs=F},{mode:1});var SxD;var ik=function(){var F=_.x.apply(this,arguments)||this;F.variantsExpanded=!1;F.hideShowMoreLessVariantButton=!0;F.initialized=!1;F.computeVariantsDebouncer=null;F.computeVariants=function(q){q=q===void 0?!1:q;F.variantsExpanded||F.showOptions()||!q||(F.variantsExpanded=!0);if(F.variantsExpanded){q=_.X(F.items.children);for(var t=q.next();!t.done;t=q.next())t.value.hidden=!1}F.initialized=!0};
return F};
_.M(ik,_.x);_.l=ik.prototype;_.l.ready=function(){var F=this;setTimeout(function(){F.computeVariants(!0)})};
_.l.showOptions=function(){for(var F=_.X(this.items.children),q=F.next();!q.done;q=F.next())q.value.hidden=!0;var t=this.container.getBoundingClientRect().width,u=0,J=F=0;q=!1;for(var g=_.X(this.items.children),Y=g.next();!Y.done;Y=g.next()){Y=Y.value;Y.hidden=!1;var Q=Y.getBoundingClientRect().width;if(u+Q<t)u+=Q;else if(++J<2)u=Q;else break;F+=1;Y.hasAttribute("is-active")&&(q=!0)}for(t=F;t<this.items.children.length;t++)this.items.children[t].hidden=!0;this.hideShowMoreLessVariantButton=F===this.items.children.length;
return q};
_.l.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Eu(this.computeVariantsDebouncer,_.XH.after(100),this.computeVariants)};
_.l.onShowMoreLessVariantsButtonClick=function(){var F;(F=this.data)!=null&&F.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.l.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.JJ.Object.defineProperties(ik.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(F=this.data)==null?void 0:(q=F.variantOptionRenderers)==null?void 0:q.find(function(g){return _.n(g,eAs).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),u,J;
return(J=(u=_.n(t,eAs))==null?void 0:u.name)!=null?J:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
ik.prototype.debouncedComputeVariants=ik.prototype.debouncedComputeVariants;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ik.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],ik.prototype,"componentBehavior",void 0);_.C([_.D(_.Vl),_.V("design:type",Object)],ik.prototype,"ironResizableBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],ik.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],ik.prototype,"variantsExpanded",void 0);_.C([_.O(),_.V("design:type",Object)],ik.prototype,"hideShowMoreLessVariantButton",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],ik.prototype,"initialized",void 0);_.C([_.Ms("#items"),_.V("design:type",HTMLDivElement)],ik.prototype,"items",void 0);_.C([_.Ms("#container"),_.V("design:type",HTMLDivElement)],ik.prototype,"container",void 0);
_.C([_.Ms("#more-variants-button"),_.V("design:type",HTMLElement)],ik.prototype,"moreVariantsButton",void 0);_.C([_.W("data"),_.V("design:type",String),_.V("design:paramtypes",[])],ik.prototype,"selectedOptionName",null);_.C([_.za("data","variantsExpanded"),_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ik.prototype,"debouncedComputeVariants",null);
_.C([_.W("data"),_.V("design:type",String),_.V("design:paramtypes",[])],ik.prototype,"displayType",null);_.C([_.W("displayType"),_.V("design:type",Object),_.V("design:paramtypes",[])],ik.prototype,"variantItemsClassname",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],ik);
_.b(ik,"ytd-product-details-variant-renderer",function(){if(SxD!==void 0)return SxD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return SxD=F},{mode:1});var ks=function(){return _.x.apply(this,arguments)||this};
_.M(ks,_.x);
ks.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"}}}};
_.JJ.Object.defineProperties(ks.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(q=_.n((F=this.data)==null?void 0:F.offersContainerRenderer,ZPT))==null?void 0:q.offers;return t!==void 0&&(t==null?void 0:t.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((t=(F=this.data)==null?void 0:(q=F.variants)==null?void 0:q.map(function(u){var J,g;u=(g=(J=_.n(u,Qx9))==null?void 0:J.variantOptionRenderers)==null?void 0:g.find(function(Q){var e;return((e=_.n(Q,eAs))==null?void 0:e.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var Y;return(Y=_.n(u,eAs))==null?void 0:Y.name}).filter(function(u){return typeof u==="string"}))!=null?t:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var F,q,t,u=(q=_.n((F=this.data)==null?void 0:F.shoppingFlaggingRenderer,rjT))==null?void 0:(t=q.reportButton)==null?void 0:t.buttonRenderer;if(u)return{text:u.text,command:u.command,icon:{iconType:"FLAG"},accessibilityData:u.accessibilityData,trackingParams:u.trackingParams,loggingDirectives:u.loggingDirectives}}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ks.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],ks.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ks.prototype,"data",void 0);_.C([_.Ms("#image-carousel-renderer"),_.V("design:type",Object)],ks.prototype,"imageCarouselRenderer",void 0);
_.C([_.Ms("#hero-offer-renderer"),_.V("design:type",Object)],ks.prototype,"productDetailsHeroOfferRenderer",void 0);_.C([_.Ms("#variants"),_.V("design:type",Object)],ks.prototype,"productDetailsVariantRenderer",void 0);_.C([_.Ms("#offers"),_.V("design:type",Object)],ks.prototype,"productDetailsOffersContainerRenderer",void 0);_.C([_.Ms("#description-renderer"),_.V("design:type",Object)],ks.prototype,"productDetailsDescriptionRenderer",void 0);
_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ks.prototype,"showPurchaseData",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ks.prototype,"showHeroOfferRenderer",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ks.prototype,"showBrandText",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ks.prototype,"showOffers",null);
_.C([_.W("showOffers","showPurchaseData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ks.prototype,"showBuySeparator",null);_.C([_.W("showOffers","showPurchaseData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ks.prototype,"showBuyCard",null);_.C([_.W("data"),_.V("design:type",String),_.V("design:paramtypes",[])],ks.prototype,"selectedVariantsText",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],ks.prototype,"shoppingReportingButtonData",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],ks);
_.b(ks,"ytd-product-details-renderer",function(){if(V3T!==void 0)return V3T;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return V3T=F},{mode:1});var hAD;var KPC;var B63;var E4=function(){return _.x.apply(this,arguments)||this};
_.M(E4,_.x);E4.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.JJ.Object.defineProperties(E4.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],E4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],E4.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],E4.prototype,"formattedAmount",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],E4.prototype,"ariaLabel",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data.style"),_.V("design:type",String),_.V("design:paramtypes",[])],E4.prototype,"vcBalanceWidgetStyle",null);_.C([_.Vu({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],E4);
_.b(E4,"yt-vc-balance-renderer",function(){if(B63===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;KPC===void 0&&(KPC=document.createElement("template"));var u=KPC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);B63=F}F=B63;return F},{mode:2});_.mo("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var zp=function(){return _.x.apply(this,arguments)||this};
_.M(zp,_.x);_.JJ.Object.defineProperties(zp.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:""}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],zp.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zp.prototype,"data",void 0);_.C([_.O({selectorArgs:["data.vcBalanceEntityKey"],selector:function(F,q){return _.iC(F.entities,"vcBalanceEntity",q)}}),
_.V("design:type",Object)],zp.prototype,"vcBalanceEntity",void 0);_.C([_.W("vcBalanceEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],zp.prototype,"formattedAmount",null);_.C([_.W("vcBalanceEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],zp.prototype,"vcBalanceAriaLabel",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],zp);
_.b(zp,"ytd-vc-balance-renderer",function(){if(hAD!==void 0)return hAD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return hAD=F},{mode:1});var LPs;var o9=function(){var F=_.x.apply(this,arguments)||this;F.rotation=0;F.isReloading=!1;return F};
_.M(o9,_.x);o9.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
o9.prototype.reset=function(){this.hostElement.style.opacity=""};
o9.prototype.close=function(){var F=this;return _.p(function(q){if(q.nextAddress==1)return q.yield(F.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);F.hostElement.style.opacity="0";_.WA(q)})};
o9.prototype.rotationChanged=o9.prototype.rotationChanged;_.C([_.O(),_.V("design:type",Object)],o9.prototype,"rotation",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],o9.prototype,"isReloading",void 0);_.C([_.Ms("#icon"),_.V("design:type",HTMLElement)],o9.prototype,"icon",void 0);_.C([_.za("rotation"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],o9.prototype,"rotationChanged",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-refresh"})],o9);
_.b(o9,"ytd-refresh",function(){if(LPs!==void 0)return LPs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return LPs=F},{mode:1});var fa9;var nY=function(){return _.x.apply(this,arguments)||this};
_.M(nY,_.x);nY.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"}}}};
nY.prototype.dataChanged=function(){if(this.data){var F=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var q=_.ZR(this.data.banner.thumbnails,this.hostElement.clientWidth);q&&(q.indexOf("//")===0&&(q="https:"+q),this.hasBannerArt=!0,_.ws(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+q+")"}))}this.hasBannerArt!==F&&_.ep(this.hostElement).querySelector("#header").fire("iron-resize")}};
nY.prototype.updateSelectedFromBinding=function(F){this.selected=F.detail.value};
nY.prototype.dataChanged=nY.prototype.dataChanged;_.C([_.D(iPv),_.V("design:type",Object)],nY.prototype,"ytdTabbedHeaderBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.p_),_.V("design:type",Object)],nY.prototype,"ytdGridStateAwareBehavior",void 0);_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],nY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],nY.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],nY.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Number)],nY.prototype,"selected",void 0);_.C([_.O(),_.V("design:type",Boolean)],nY.prototype,"active",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],nY.prototype,"hasBannerArt",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nY.prototype,"dataChanged",null);_.C([_.m({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],nY);
_.b(nY,"ytd-interactive-tabbed-header-renderer",function(){if(fa9!==void 0)return fa9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return fa9=F},{mode:1});var aaw;var Mj=function(){return _.x.apply(this,arguments)||this};
_.M(Mj,_.x);Mj.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Mj.prototype.computeActionsAlignment=function(F){return(F==null?void 0:F.actionsAlignment)||""};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Mj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Mj.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.V("design:type",String)],Mj.prototype,"actionsAlignment",void 0);_.C([_.m({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Mj);
_.b(Mj,"ytd-page-footer-renderer",function(){if(aaw!==void 0)return aaw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return aaw=F},{mode:1});var jxv;var cjw;var Tp=function(){var F=_.x.apply(this,arguments)||this;F.isEditing=!1;F.useSlot=!1;F.isMultiline=!1;return F};
_.M(Tp,_.x);_.l=Tp.prototype;_.l.onKeydown=function(F){if(F.keyCode===13&&!this.isMultiline)this.onSave();else if(F.keyCode===27)this.onCancel()};
_.l.computeComponentStyle=function(F){return(F==null?0:F.style)?F.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.l.computeisMultiline=function(F){if(this.multilineOverride!==void 0)return this.multilineOverride;var q,t;return!!(F==null?0:(q=F.formField)==null?0:(t=q.textInputFormFieldRenderer)==null?0:t.isMultiline)};
_.l.computeTextDisplayed=function(F,q){if(F)return F;if(q)return q};
_.l.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.l.onSave=function(){if(this.textForm.validate()){this.textForm.save();var F=this.textForm.value;if(F)this.set("data.textDisplayed",_.FK(F));else{var q;((q=this.data)==null?0:q.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.RA("inline-form-changed",this.data));this.isEditing=!1}};
_.l.onCancel=function(){var F=_.q1(this.data.textDisplayed);F===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(F);this.isEditing=!1};
Tp.prototype.onKeydown=Tp.prototype.onKeydown;_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],Tp.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Tp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Tp.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Tp.prototype,"isEditing",void 0);_.C([_.O(),_.V("design:type",Object)],Tp.prototype,"useSlot",void 0);_.C([_.O(),_.V("design:type",Boolean)],Tp.prototype,"multilineOverride",void 0);_.C([_.O(),_.V("design:type",Boolean)],Tp.prototype,"enableOverlayTheme",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.V("design:type",String)],Tp.prototype,"componentStyle",void 0);
_.C([_.O({computed:"computeisMultiline(data)"}),_.V("design:type",Object)],Tp.prototype,"isMultiline",void 0);_.C([_.Ms("#text-form"),_.V("design:type",Object)],Tp.prototype,"textForm",void 0);_.C([_.EB("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],Tp.prototype,"onKeydown",null);_.C([_.m({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Tp);
_.b(Tp,"ytd-inline-form-renderer",function(){if(cjw!==void 0)return cjw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return cjw=F},{mode:1});var FAC;var Gp=function(){var F=_.x.apply(this,arguments)||this;F.previousSelectValue=void 0;F.selectedItemMessage=void 0;return F};
_.M(Gp,_.x);Gp.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Gp.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var F,q,t,u,J=(F=this.data)==null?void 0:(q=F.dropdown)==null?void 0:(t=q.dropdownRenderer)==null?void 0:(u=t.entries)==null?void 0:u.map(function(Q){return Q.privacyDropdownItemRenderer});
F=_.X(J!=null?J:[]);for(q=F.next();!q.done;q=F.next())if((q=q.value)&&q.int32Value===this.selectedValue){this.selectedItemMessage=q.itemMessage;break}}else this.selectedItemMessage=void 0;var g;(g=this.onValueChanged)==null||g.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var Y;(Y=this.data)!=null&&Y.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Gp.prototype.onValueChangedForSelectedValue=function(F){this.selectedValue=F.detail.value};
Gp.prototype.selectedValueChanged=Gp.prototype.selectedValueChanged;_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],Gp.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Gp.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Gp.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],Gp.prototype,"theme",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Number)],Gp.prototype,"selectedValue",void 0);_.C([_.O(),_.V("design:type",Function)],Gp.prototype,"onValueChanged",void 0);
_.C([_.Wh("selectedValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Gp.prototype,"selectedValueChanged",null);_.C([_.m({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Gp);
_.b(Gp,"ytd-dropdown-form-field-renderer",function(){if(FAC!==void 0)return FAC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return FAC=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var qUw;var Dp=function(){return _.x.apply(this,arguments)||this};
_.M(Dp,_.x);_.JJ.Object.defineProperties(Dp.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var F=[],q=_.X(this.data||[]),t=q.next();!t.done;t=q.next())(t=_.n(t.value,N6C))&&F.push(t);return F}}});
_.C([_.O(),_.V("design:type",Array)],Dp.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Dp.prototype,"byline",null);_.C([_.m({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Dp);
_.b(Dp,"ytd-playlist-byline-renderer",function(){if(qUw!==void 0)return qUw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return qUw=F},{mode:1});var tm9;var W1=function(){var F=_.x.apply(this,arguments)||this;F.rtlBullet=_.E("web_playlist_stats_rtl_bullet_icon_killswitch");F.modern=_.E("web_modern_buttons");F.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return F};
_.M(W1,_.x);_.l=W1.prototype;_.l.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"}}}}};
_.l.attached=function(){};
_.l.computeIsCustomThumbnail=function(F){return F?!!F.playlistCustomThumbnailRenderer:!1};
_.l.onYtNavigate=function(F,q){if(q&&q.actions&&q.actions.indexOf("shuffle")>-1){F=_.sV().resolve(_.J8);var t=q.tempData||{};t.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);q.tempData=t;F.isShuffleNextPlaylist=!0}};
_.l.onUpdatePlaylistAction=function(F){var q;F=(q=_.n(F,_.jRf))==null?void 0:q.updatedRenderer;if(q=_.n(F,aZ))this.data=q};
_.l.computeStyleType=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.l.computeThumbnailWidth=function(F){return F==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.l.computeHideThumbnailAria=function(F){if(F==null?0:F.thumbnailOverlays)for(var q=0;q<F.thumbnailOverlays.length;q++){var t=void 0;if((t=F.thumbnailOverlays[q])==null?0:t.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
W1.prototype.onYtNavigate=W1.prototype.onYtNavigate;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],W1.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],W1.prototype,"ytComponentBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],W1.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"rtlBullet",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.V("design:type",String)],W1.prototype,"styleType",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.V("design:type",Number)],W1.prototype,"thumbnailWidth",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"modern",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.V("design:type",Boolean)],W1.prototype,"isCustomThumbnail",void 0);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Object]),_.V("design:returntype")],W1.prototype,"onYtNavigate",null);_.C([_.m({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],W1);
_.b(W1,"ytd-playlist-sidebar-primary-info-renderer",function(){if(tm9!==void 0)return tm9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return tm9=F},{mode:1});var uF7;var O4=function(){return _.x.apply(this,arguments)||this};
_.M(O4,_.x);O4.prototype.computeOwnerVisibility=function(F){return!(!F.videoOwner&&!F.button)};
O4.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],O4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],O4.prototype,"data",void 0);_.C([_.m({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],O4);
_.b(O4,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(uF7!==void 0)return uF7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return uF7=F},{mode:1});var Jly;var P1=function(){var F=_.x.apply(this,arguments)||this;F.expanded=!1;F.isCompact=!1;return F};
_.M(P1,_.x);_.l=P1.prototype;_.l.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.l.dataChanged=function(){this.data&&_.JK(_.ep(this.text),_.Oen(_.AEn,_.q1(this.data.text||null)))};
_.l.computeAutoScrollEnabled=function(F,q){return F&&!q};
_.l.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.l.toggleOnTap=function(){this.expanded=!this.expanded};
P1.prototype.expandedChanged=P1.prototype.expandedChanged;P1.prototype.dataChanged=P1.prototype.dataChanged;_.C([_.D(_.FDv),_.V("design:type",Object)],P1.prototype,"ytdAutoScrollBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],P1.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],P1.prototype,"expanded",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],P1.prototype,"isCompact",void 0);_.C([_.O({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.V("design:type",Boolean)],P1.prototype,"autoScrollEnabled",void 0);_.C([_.Ms("#text"),_.V("design:type",Object)],P1.prototype,"text",void 0);_.C([_.Ms("#expander-icon"),_.V("design:type",Object)],P1.prototype,"expanderIcon",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],P1.prototype,"dataChanged",null);_.C([_.za("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],P1.prototype,"expandedChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],P1);
_.b(P1,"ytd-channel-legal-info-renderer",function(){if(Jly!==void 0)return Jly;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Jly=F},{mode:1});var sq5;var g65=_.oD("DOWNLOAD",{},"Download"),lUJ=_.oD("DOWNLOADING",{},"Downloading"),X7v=_.oD("DOWNLOADED",{},"Downloaded"),xs=function(){var F=_.x.apply(this,arguments)||this;F.downloadProgress=0;F.isDownloadComplete=!1;F.transferState="TRANSFER_STATE_UNKNOWN";return F};
_.M(xs,_.x);_.l=xs.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.dataChanged=function(){var F;(F=this.data)!=null&&F.tooltip||(F=_.Uf(_.u1().getState(),this.playlistId),this.updateButtonState(F))};
_.l.computePlaylistId=function(F){return F};
_.l.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.l.updateButtonState=function(F){if(this.data&&(this.data.tooltip!==lUJ||!_.Dx(F))){this.isDownloadComplete=!1;switch(F){case "TRANSFER_STATE_UNKNOWN":F=g65;var q="OFFLINE_DOWNLOAD";var t="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":F=X7v;q="OFFLINE_PIN";t="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":F=lUJ;q="OFFLINE_DOWNLOADING_ZERO";t="ACTION_REMOVE_WITH_PROMPT";
break;default:F=g65,q="OFFLINE_DOWNLOAD",t="ACTION_ADD"}var u=Object.assign({},this.data);u.tooltip=F;u.accessibilityData={accessibilityData:{label:F}};u.icon={iconType:q};u.size="SIZE_DEFAULT";_.n(u.command,_.zl)&&(_.n(u.command,_.zl).action=t);this.set("data",u)}};
_.l.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var F="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?F="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?F="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?F="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?F="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?F="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(F="OFFLINE_PIN",this.isDownloadComplete=!0);var q;F!==((q=this.data.icon)==null?void 0:q.iconType)&&(q=Object.assign({},this.data),q.tooltip=lUJ,q.accessibilityData={accessibilityData:{label:lUJ}},q.icon={iconType:F},_.n(q.command,_.zl)&&(_.n(q.command,_.zl).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",q))}};
xs.prototype.updateProgress=xs.prototype.updateProgress;xs.prototype.onTransferStateChanged=xs.prototype.onTransferStateChanged;xs.prototype.dataChanged=xs.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],xs.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],xs.prototype,"ytdReduxBehavior",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],xs.prototype,"forceIconButton",void 0);
_.C([_.O({value:!0}),_.V("design:type",Boolean)],xs.prototype,"forceIconOnly",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],xs.prototype,"overrides",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],xs.prototype,"buttonTooltipPosition",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],xs.prototype,"styleActionButton",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],xs.prototype,"disableTextTransform",void 0);
_.C([_.O({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.V("design:type",String)],xs.prototype,"playlistId",void 0);_.C([_.O(),_.V("design:type",Object)],xs.prototype,"data",void 0);_.C([_.O({selector:_.ezM,selectorArgs:["playlistId"]}),_.V("design:type",Object)],xs.prototype,"downloadProgress",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],xs.prototype,"isDownloadComplete",void 0);
_.C([_.O({selector:_.Uf,selectorArgs:["playlistId"]}),_.V("design:type",String)],xs.prototype,"transferState",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],xs.prototype,"showTooltips",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],xs.prototype,"sendCommandWhenDisabled",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],xs.prototype,"disabled",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xs.prototype,"dataChanged",null);_.C([_.Wh("transferState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xs.prototype,"onTransferStateChanged",null);_.C([_.Wh("downloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xs.prototype,"updateProgress",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],xs);
_.b(xs,"ytd-download-playlist-button-renderer",function(){if(sq5!==void 0)return sq5;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return sq5=F},{mode:1});var YUT;_.ei(_.mQr,"thumbnail-overlay-button-view-model",{props:{data:_.NH,lockupExperiments:_.NH}});var Ab=function(){var F=_.x.apply(this,arguments)||this;F.isSquare=!1;F.isVertical=!1;return F};
_.M(Ab,_.x);Ab.prototype.computeIsSquare=function(F){return F!=null&&F.thumbnail?Sj5(F.thumbnail)==="SQUARE":!1};
Ab.prototype.computeIsVertical=function(F){return F!=null&&F.thumbnail?Sj5(F.thumbnail)==="VERTICAL":!1};
Ab.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.V("design:type",Object)],Ab.prototype,"isSquare",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.V("design:type",Object)],Ab.prototype,"isVertical",void 0);
_.C([_.O(),_.V("design:type",Object)],Ab.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Ab);
_.b(Ab,"ytd-hero-playlist-thumbnail-renderer",function(){if(YUT!==void 0)return YUT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return YUT=F},{mode:1});var v1=function(){var F=_.x.apply(this,arguments)||this;F.isDarkTheme=!1;F.isUltraWide=!1;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return F};
_.M(v1,_.x);_.l=v1.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.sV();var F;(F=_.sV().resolve(_.JU(_.Go)))!=null&&(F.headerElement=this.hostElement)};
_.l.detached=function(){var F;(F=_.sV().resolve(_.JU(_.Go)))!=null&&(F.headerElement=void 0)};
_.l.onUpdateHeader=function(F){(F=F.detail)&&this.set("data",F)};
_.l.computeTextDisplayed=function(F){if(F)return F.textDisplayed?F.textDisplayed:F.placeholder};
_.l.gradientColorToLinearGradientStop=function(F){var q=this.isDarkTheme?F.darkThemeColor:F.lightThemeColor;return q?_.KG(q)+" "+((F==null?void 0:F.startLocation)||0)*100+"%":"transparent"};
_.l.onWindowResize=function(){var F;((F=this.data)==null?0:F.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.l.onIronResize=function(F){this.isUltraWide=!F.detail.value};
_.l.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.l.onUpdatePlaylistName=function(F){var q=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},F.detail.value));_.tJ(this,function(){var t;(t=q.editableTitle)==null||t.resize()})};
_.l.onUpdatePlaylistDescription=function(F){var q=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},F.detail.value));_.tJ(this,function(){var t;(t=q.editableDescriptionInlineExpander)==null||t.resize()})};
_.l.getCinematicData=function(F){return _.n(F==null?void 0:F.cinematicContainer,_.SQ)};
_.JJ.Object.defineProperties(v1.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var F,q=(F=this.getCinematicData(this.data))==null?void 0:F.config;return(F=this.isDarkTheme?q==null?void 0:q.darkThemeBackgroundColor:q==null?void 0:q.lightThemeBackgroundColor)?"background-color:"+_.hn(F)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var F;return _.n((F=this.data)==null?void 0:F.descriptionForm,YxJ)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var F=this,q,t,u;return"background:linear-gradient(to bottom, "+(((u=(q=this.getCinematicData(this.data))==null?void 0:(t=q.gradientColorConfig)==null?void 0:t.map(function(J){return F.gradientColorToLinearGradientStop(J)}))==null?void 0:u.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var F;return _.q1((F=this.data)==null?void 0:F.descriptionTapText)}}});
v1.prototype.onUpdateHeader=v1.prototype.onUpdateHeader;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],v1.prototype,"actionHandlerBehavior",void 0);_.C([_.Ms("#description-inline-expander"),_.V("design:type",Object)],v1.prototype,"descriptionInlineExpander",void 0);
_.C([_.Ms("#editable-description-inline-expander"),_.V("design:type",Object)],v1.prototype,"editableDescriptionInlineExpander",void 0);_.C([_.O(),_.V("design:type",Object)],v1.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],v1.prototype,"isUltraWide",void 0);_.C([_.Ms("#editable-title-display"),_.V("design:type",Object)],v1.prototype,"editableTitle",void 0);_.C([_.W("isUltraWide"),_.V("design:type",Object),_.V("design:paramtypes",[])],v1.prototype,"maxDescriptionLines",null);
_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],v1.prototype,"noCinematicData",null);_.C([_.EB("yt-new-playlist-header"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],v1.prototype,"onUpdateHeader",null);_.C([_.W("data","isDarkTheme"),_.V("design:type",Object),_.V("design:paramtypes",[])],v1.prototype,"backgroundStyle",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],v1.prototype,"descriptionFormData",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],v1.prototype,"getDropdownTheme",null);_.C([_.W("data","isDarkTheme"),_.V("design:type",String),_.V("design:paramtypes",[])],v1.prototype,"gradientStyle",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],v1.prototype,"descriptionTapText",null);
_.C([_.m({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],v1);
_.b(v1,"ytd-playlist-header-renderer",function(){if(jxv!==void 0)return jxv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return jxv=F},{mode:_.Nc("kevlar_poly_si_batch_j078")?1:2});var p77;var Qq9;var I9=function(){return _.x.apply(this,arguments)||this};
_.M(I9,_.x);I9.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],I9.prototype,"data",void 0);_.C([_.m({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],I9);
_.b(I9,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Qq9!==void 0)return Qq9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Qq9=F},{mode:1});var H1=function(){return _.x.apply(this,arguments)||this};
_.M(H1,_.x);
H1.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}}}}};
H1.prototype.computeUsePremiumShowStyle=function(F){if(!F||!F.items)return!1;for(var q=0;q<F.items.length;q++)if(_.n(F.items[q],aZ)){var t=void 0;return((t=_.n(F.items[q],aZ))==null?void 0:t.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],H1.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.V("design:type",Boolean)],H1.prototype,"usePremiumShowStyle",void 0);
_.C([_.m({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],H1);
_.b(H1,"ytd-playlist-sidebar-renderer",function(){if(p77!==void 0)return p77;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return p77=F},{mode:1});var e5y;var ZcJ;var R5T=function(F,q,t,u,J,g,Y,Q){this.minWidth=F;this.minHeight=q;this.recommendedWidth=t;this.recommendedHeight=u;this.JSC$22105_maxFileSize=J;this.title=g;this.bannerGalleryTitle=Y;this.channelId=Q;this.picker_=null;F=_.d$$("yt-banner");q=F.addView;t=(new cws("youtubebanner")).addUploadMetadata("silo_id","19");t.opts.ytMaxFileSize=this.JSC$22105_maxFileSize;u=this.recommendedHeight;t.opts.ytRecWidth=this.recommendedWidth;t.opts.ytRecHeight=u;q.call(F,t);F.addView(new _.HL);q=F.addView;t=new _.HL;
t.opts.type="ytbanner";q.call(F,t.JSC$10066_setLabel(this.bannerGalleryTitle));q=F.setTitle(this.title).setSize(1E3);q.urlParamMap_.set("thumbs","orig");t=this.minWidth;u=this.minHeight;if(isNaN(t)||isNaN(u))throw Error("gb`"+t+"`"+u);q.urlParamMap_.set("minSize",t+"x"+u);q.urlParamMap_.set("cropMode","ytcb");this.builder_=F};
R5T.prototype.open=function(){var F=this;return new _.iz(function(q,t){_.wcj(F.builder_,function(u){u.action=="picked"?q(u):u.action=="cancel"&&t(Error("xo"))});
F.picker_&&F.picker_.dispose();F.picker_=F.builder_.build();F.picker_.setVisible(!0)})};
R5T.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var rl7=function(F){this.channelId=F};
rl7.prototype.upload=function(F){var q="";F.viewToken&&(q=F.viewToken[2].type);var t=F.docs[0];F=t.crop;q={channel_id:this.channelId,fife_url:t.thumbnails[0].url,photo_id:t.id,is_gallery_image:q=="ytbanner"};F&&(q.crop_top=F.top,q.crop_right=F.right,q.crop_bottom=F.bottom,q.crop_left=F.left);return _.Rco("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:q})};var mf=function(){var F=_.x.apply(this,arguments)||this;F.ariaLabel=null;return F};
_.M(mf,_.x);_.l=mf.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.detached=function(){this.picker&&this.picker.dispose()};
_.l.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.l.computeAriaLabel=function(F){return F};
_.l.onTap=function(){var F=this,q;if((q=this.data)==null||!q.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new R5T(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 t;(t=this.picker)==null||t.open().then(function(u){F.handleBannerPicked(u)},function(){})}};
_.l.handleBannerPicked=function(F){var q=this;this.uploader||(this.uploader=new rl7(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(F).then(function(t){q.handleBannerUploadSucceeded(t)},function(t){q.handleBannerUploadFailed(t)})};
_.l.handleBannerUploadSucceeded=function(F){F&&F.errors?this.handleBannerUploadFailed(F):(_.Q0(this.hostElement,"yt-banner-updated",F),this.message=null)};
_.l.handleBannerUploadFailed=function(F){this.message=F&&F.errors&&F.errors.length?F.errors[0]:null};
mf.prototype.dataChanged=mf.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],mf.prototype,"componentBehavior",void 0);_.C([_.D(_.Sq),_.V("design:type",Object)],mf.prototype,"ironButtonState",void 0);_.C([_.O(),_.V("design:type",Object)],mf.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.V("design:type",Object)],mf.prototype,"ariaLabel",void 0);
_.C([_.O(),_.V("design:type",Object)],mf.prototype,"message",void 0);_.C([_.O(),_.V("design:type",Object)],mf.prototype,"picker",void 0);_.C([_.O(),_.V("design:type",Object)],mf.prototype,"uploader",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mf.prototype,"dataChanged",null);_.C([_.m({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],mf);
_.b(mf,"ytd-channel-banner-editor-renderer",function(){if(ZcJ!==void 0)return ZcJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return ZcJ=F},{mode:1});var Nl3;var w7J=_.LZ(["#"]),$s=function(){return _.x.apply(this,arguments)||this};
_.M($s,_.x);$s.prototype.computeHrefWithDefault=function(F){return this.ytComponentBehavior.computeHref_(F,!0)||_.qsW(w7J)};
$s.prototype.dataChanged=function(){var F=this.data;F&&F.targetId&&_.qEJ(_.h8(),F.targetId,this.moreIcon)};
$s.prototype.dataChanged=$s.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],$s.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$s.prototype,"data",void 0);_.C([_.Ms("#more-icon"),_.V("design:type",Object)],$s.prototype,"moreIcon",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$s.prototype,"dataChanged",null);
_.C([_.m({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],$s);
_.b($s,"ytd-channel-tagline-renderer",function(){if(Nl3!==void 0)return Nl3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Nl3=F},{mode:1});var icJ;var bk=function(){return _.x.apply(this,arguments)||this};
_.M(bk,_.x);_.l=bk.prototype;_.l.ready=function(){var F=this;_.ep(this.hostElement).querySelector("#form").addEventListener("submit",function(q){F.onSubmit(q)})};
_.l.onDataChanged=function(){var F;((F=this.data)==null?0:F.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.l.onIconButtonKeydown=function(F){F.keyCode===13&&this.iconButton.click()};
_.l.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.l.openOnClickHandler=function(){this.input.focus()};
_.l.onSubmit=function(F){F.preventDefault();return!1};
_.l.submitOnEnterKeyUp=function(F){var q;if(F.keyCode===13&&((q=this.data)==null?0:q.expandedText)){F=this.data.endpoint;q=_.m7.unsafeClone(F);var t;((t=_.n(q==null?void 0:q.commandMetadata,_.EH))==null?0:t.url)?(_.n(q.commandMetadata,_.EH).url=_.dO(_.n(q.commandMetadata,_.EH).url,"query",this.data.expandedText),_.n(q,_.Gr)&&(_.n(q,_.Gr).query=this.data.expandedText),_.Q0(this.hostElement,"yt-navigate",{endpoint:q,tempData:{disableCache:!0}})):(t=new _.D0("Error: Trying to navigate to an endpoint without url",
F),_.mH(t))}};
_.l.updateDataExpandedTextFromBinding=function(F){this.set("data.expandedText",F.detail.value)};
_.JJ.Object.defineProperties(bk.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
bk.prototype.onDataChanged=bk.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.knJ),_.V("design:type",Object)],bk.prototype,"ytdExpandableInputBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],bk.prototype,"data",void 0);_.C([_.Ms("#input"),_.V("design:type",Object)],bk.prototype,"input",void 0);_.C([_.Ms("#icon-button"),_.V("design:type",HTMLElement)],bk.prototype,"iconButton",void 0);
_.C([_.O(),_.V("design:type",String),_.V("design:paramtypes",[])],bk.prototype,"searchIcon",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"onDataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],bk);
var hq3=_.rc()(bk,"ytd-expandable-tab-renderer",function(){if(icJ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);icJ=F}F=icJ;return F},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var kM9;var yH=function(){var F=_.x.apply(this,arguments)||this;F.avatarSize=80;F.ariaLabel=_.oD("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return F};
_.M(yH,_.x);yH.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
yH.prototype.computeHref=function(F){var q;return((q=_.n(F,_.KM))==null?0:q.url)?this.componentBehavior.computeHref_(F):null};
yH.prototype.onTap=function(){var F,q;(F=this.data)==null||!F.editAvatarServiceEndpoint||((q=_.n(this.data.editAvatarServiceEndpoint,_.KM))==null?0:q.url)||_.sV().resolve(_.gN).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.C([_.D(_.Sq),_.V("design:type",Object)],yH.prototype,"ironButtonState",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],yH.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],yH.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],yH.prototype,"avatarSize",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],yH.prototype,"ariaLabel",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],yH);
_.b(yH,"ytd-channel-avatar-editor",function(){if(kM9!==void 0)return kM9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return kM9=F},{mode:1});var E69=_.ld(function(F){var q=F.data;var t=F.noPadding;var u=F.enableBanner;var J=F.cinematicContainerTopbarOffset;var g=F.allowCinematicContainerOverflow;var Y=F.displayAsSidebar;F=F.className;_.AO(function(){q().tagManagerId&&(_.f8(q().tagManagerId,_.bn("GL")),j19(q().tagManagerId))},"vUc8md");
var Q=_.nH(BV5,function(){return q().pageHeaderEntityKey});
return _.Z("yt-page-header-renderer",{class:_.Ec("pageHeaderRendererHost",F)},_.Z(_.Tl,{data:function(){var e;return((e=Q())==null?0:e.header)?Q().header:(Y==null?0:Y())&&q().sidebarContent?q().sidebarContent:q().content}},{pageHeaderViewModel:function(e){return _.Z(_.Q91,{data:e.data,
noPadding:t,enableBanner:u,cinematicContainerTopbarOffset:J,allowCinematicContainerOverflow:g,displayAsSidebar:function(){return(Y==null?void 0:Y())&&q().enableSidebarView}})}}))},"jk");
E69.idomCompat=!0;_.ei(E69,"yt-page-header-renderer",{props:{data:_.NH,noPadding:_.NH,enableBanner:_.NH,cinematicContainerTopbarOffset:_.NH,allowCinematicContainerOverflow:_.NH,displayAsSidebar:_.NH,className:_.NH}});_.ei(_.lE,"yt-image-banner-view-model",{props:{data:_.NH,isPositionRelative:_.NH}});_.ei(_.Wfr,"yt-tab-group-shape",{props:{shape:_.NH}});var CY=function(){var F=_.x.apply(this,arguments)||this;F.expandableCustomTabRenderable=function(q){return KDQ(q,function(){return void F.onSearchNavigate()})};
F.isRichGrid=!1;F.isConstrainedList=!1;F.richGridMiniMode=!1;F.richGridStyle="RICH_GRID_STYLE_UNKNOWN";F.isRichGridShorts=!1;F.responsiveSizing="COMPACT";F.disableGridStateAware=!1;F.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return F};
_.M(CY,_.x);_.l=CY.prototype;_.l.computeHeaderDisabled=function(F,q){return q||!F||this.tabsHidden};
_.l.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.l.computeIsRichGridShorts=function(F){return F==="RICH_GRID_STYLE_SHORTS_GRID"||F==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.l.computeImageBannerViewModel=function(){var F,q;return _.n((q=_.n((F=this.data)==null?void 0:F.content,_.o9z))==null?void 0:q.banner,_.rBx)};
_.l.computeHasCinematicContainer=function(){var F,q;return!((q=_.n((F=this.data)==null?void 0:F.content,_.o9z))==null||!q.background)};
_.l.handleHeaderResize=function(){var F=_.ep(this.hostElement).querySelector("#header");F&&_.Q0(F,"iron-resize")};
_.l.handleInsertTabCommand=function(F){var q=_.n(F,w0v);q&&(q.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(t){return t.tabRenderer&&t.tabRenderer.tabIdentifier===q.tabIdentifier})||this.splice("tabs",q.tabIndex||-1,0,q.tab))};
_.l.handleRefreshChannelTabAction=function(F){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===F&&_.Q0(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.l.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.ws(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.l.observerRichGridSlimItemsPerRow=function(){_.ws(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.l.updateCssVars=function(){this.richGridItemsPerRow&&_.ws(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.YE("rich_grid_max_item_width",500))+16)-16+"px"})};
_.l.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.ws(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.l.onDataChanged=function(){this.handleHeaderResize()};
_.l.onWindowResize=function(){this.handleHeaderResize()};
_.l.onFocusedChanged=function(F){(F=_.uL(F))&&F.is==="tp-yt-paper-tab"&&F.hasRipple()&&(F.getRipple().holdDown=!F.pointerDown&&F.focused)};
_.l.updateSelectedFromBinding=function(F){this.ytdTabbedHeaderBehavior.selected=F.detail.value};
_.l.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.JJ.Object.defineProperties(CY.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:f7w(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.imageBannerViewModel)==null?void 0:F.style)==="IMAGE_BANNER_STYLE_INSET"}}});
CY.prototype.onDataChanged=CY.prototype.onDataChanged;CY.prototype.updateCssVarsForResponsiveGrid=CY.prototype.updateCssVarsForResponsiveGrid;CY.prototype.updateCssVars=CY.prototype.updateCssVars;CY.prototype.observerRichGridSlimItemsPerRow=CY.prototype.observerRichGridSlimItemsPerRow;CY.prototype.observerRichGridItemsPerRow=CY.prototype.observerRichGridItemsPerRow;_.C([_.D(_.p_),_.V("design:type",Object)],CY.prototype,"ytdGridStateAwareBehavior",void 0);
_.C([_.D(iPv),_.V("design:type",Object)],CY.prototype,"ytdTabbedHeaderBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],CY.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],CY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.D(_.s9),_.V("design:type",Object)],CY.prototype,"ytdReduxBehavior",void 0);_.C([_.Ms("#tabs"),_.V("design:type",Object)],CY.prototype,"tabsElement",void 0);_.C([_.O(),_.V("design:type",Array)],CY.prototype,"tabs",void 0);_.C([_.O(),_.V("design:type",Object)],CY.prototype,"expandableCustomTabRenderable",void 0);_.C([_.W("tabs.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],CY.prototype,"tabGroupShape",null);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],CY.prototype,"isRichGrid",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],CY.prototype,"isConstrainedList",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Object)],CY.prototype,"richGridMiniMode",void 0);_.C([_.O({selector:function(F){return F.ui.richGridStyle}}),
_.V("design:type",Object)],CY.prototype,"richGridStyle",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.V("design:type",Object)],CY.prototype,"isRichGridShorts",void 0);_.C([_.O({selector:_.bC}),_.V("design:type",Number)],CY.prototype,"richGridItemsPerRow",void 0);_.C([_.O({selector:function(F){return F.ui.richGridContainerWidth}}),
_.V("design:type",Number)],CY.prototype,"richGridContainerWidth",void 0);_.C([_.O({selector:_.jl3}),_.V("design:type",Number)],CY.prototype,"richGridSlimItemsPerRow",void 0);_.C([_.O(),_.V("design:type",Object)],CY.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],CY.prototype,"responsiveSizing",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],CY.prototype,"disableGridStateAware",void 0);
_.C([_.O({computed:"computeImageBannerViewModel(data)"}),_.V("design:type",Object)],CY.prototype,"imageBannerViewModel",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.V("design:type",Boolean)],CY.prototype,"hasCinematicContainer",void 0);_.C([_.O({selector:_.s55,reflectToAttribute:!0}),_.V("design:type",Boolean)],CY.prototype,"guideIsVisibleButNotPersistent",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("imageBannerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],CY.prototype,"hasBanner",null);_.C([_.O({reflectToAttribute:!0}),_.W("imageBannerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],CY.prototype,"hasInsetBanner",null);_.C([_.O({computed:"computeTabsHidden(tabs)",value:!0}),_.V("design:type",Boolean)],CY.prototype,"tabsHidden",void 0);
_.C([_.za("richGridItemsPerRow","isRichGrid"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CY.prototype,"observerRichGridItemsPerRow",null);_.C([_.za("richGridSlimItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CY.prototype,"observerRichGridSlimItemsPerRow",null);
_.C([_.za("richGridItemsPerRow","richGridMiniMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CY.prototype,"updateCssVars",null);_.C([_.za("richGridContainerWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CY.prototype,"updateCssVarsForResponsiveGrid",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CY.prototype,"onDataChanged",null);
_.C([_.m({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],CY);
_.b(CY,"ytd-tabbed-page-header",function(){if(e5y!==void 0)return e5y;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return e5y=F},{mode:1});var z57;var dM=function(){return _.x.apply(this,arguments)||this};
_.M(dM,_.x);dM.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.ws(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.JJ.Object.defineProperties(dM.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var F,q;return this.componentBehavior.computeIcon_(((q=_.n((F=this.data)==null?void 0:F.badge,_.vd1))==null?void 0:q.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var F,q;return(q=_.n((F=this.data)==null?void 0:F.badge,_.vd1))==null?void 0:q.label}}});
dM.prototype.observerRichGridItemsPerRow=dM.prototype.observerRichGridItemsPerRow;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],dM.prototype,"componentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],dM.prototype,"ytdReduxBehavior",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.$v}),_.V("design:type",Boolean)],dM.prototype,"richGridMiniMode",void 0);
_.C([_.O({selector:_.bC}),_.V("design:type",Number)],dM.prototype,"richGridItemsPerRow",void 0);_.C([_.O(),_.V("design:type",Object)],dM.prototype,"data",void 0);_.C([_.za("richGridItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dM.prototype,"observerRichGridItemsPerRow",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],dM.prototype,"badgeIconName",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],dM.prototype,"badgeLabel",null);_.C([_.m({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],dM);
_.b(dM,"ytd-member-hub-profile-renderer",function(){if(z57!==void 0)return z57;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return z57=F},{mode:1});var o6C;var VH=function(){return _.x.apply(this,arguments)||this};
_.M(VH,_.x);VH.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],VH.prototype,"data",void 0);_.C([_.m({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],VH);
_.b(VH,"ytd-settings-sidebar-renderer",function(){if(o6C!==void 0)return o6C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return o6C=F},{mode:1});var n63;var U4=function(){var F=_.x.apply(this,arguments)||this;F.expandableCustomTabRenderable=function(q){return KDQ(q,function(){return void F.onSearchNavigate()})};
return F};
_.M(U4,_.x);U4.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
U4.prototype.onSearchNavigate=function(){this.selected=void 0};
U4.prototype.onTabsChange=function(){var F,q=(F=this.tabs)==null?void 0:F.findIndex(function(t){var u;return t==null?void 0:(u=t.tabRenderer)==null?void 0:u.selected});
q!==void 0&&(this.selected=q)};
U4.prototype.onTabsActive=function(F){if(this.tabs!==void 0){var q,t;(F=(q=this.tabs[F.detail.selected])==null?void 0:(t=q.tabRenderer)==null?void 0:t.endpoint)&&_.Q0(this.hostElement,"yt-navigate",{endpoint:F})}};
_.JJ.Object.defineProperties(U4.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:f7w(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
U4.prototype.onTabsChange=U4.prototype.onTabsChange;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.p_),_.V("design:type",Object)],U4.prototype,"ytdGridStateAwareBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],U4.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],U4.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Array)],U4.prototype,"tabs",void 0);_.C([_.O(),_.V("design:type",Number)],U4.prototype,"selected",void 0);_.C([_.W("tabs.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],U4.prototype,"tabGroupShape",null);_.C([_.O(),_.V("design:type",Object)],U4.prototype,"expandableCustomTabRenderable",void 0);
_.C([_.W("tabs"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],U4.prototype,"tabsEnabled",null);_.C([_.Wh("tabs"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],U4.prototype,"onTabsChange",null);_.C([_.m({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],U4);
_.b(U4,"ytd-topic-channel-details-renderer",function(){if(n63!==void 0)return n63;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return n63=F},{mode:1});var Mmy;var SK=function(){var F=_.x.apply(this,arguments)||this;F.disableGridStateAware=!1;return F};
_.M(SK,_.x);SK.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]]"}}}}}};
SK.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
SK.prototype.updateCssVars=function(){_.ws(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.YE("rich_grid_max_item_width",500))+16)-16+"px"})};
SK.prototype.updateCssVars=SK.prototype.updateCssVars;SK.prototype.activeChanged=SK.prototype.activeChanged;_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],SK.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],SK.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],SK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],SK.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Array)],SK.prototype,"tabs",void 0);_.C([_.O(),_.V("design:type",Boolean)],SK.prototype,"active",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],SK.prototype,"disableGridStateAware",void 0);
_.C([_.O({selector:_.bC}),_.V("design:type",Number)],SK.prototype,"richGridItemsPerRow",void 0);_.C([_.O({selector:_.$v}),_.V("design:type",Boolean)],SK.prototype,"richGridMiniMode",void 0);_.C([_.Ms("ytd-carousel-item-renderer"),_.V("design:type",Object)],SK.prototype,"carousel",void 0);_.C([_.za("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SK.prototype,"activeChanged",null);
_.C([_.za("richGridItemsPerRow","richGridMiniMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SK.prototype,"updateCssVars",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],SK);
_.b(SK,"ytd-carousel-header-renderer",function(){if(Mmy!==void 0)return Mmy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Mmy=F},{mode:1});var Tl9;var GMh=_.LZ(["https://www.google-analytics.com/analytics.js"]),hb=function(){var F=_.x.apply(this,arguments)||this;F.scriptAnalyticsAdded=!1;return F};
_.M(hb,_.x);hb.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var F,q=(F=this.data)==null?void 0:F.tagManagerId;q&&(_.f8(q,_.bn("GL")),j19(q))};
hb.prototype.sendGoogleAnalyticsPageview=function(F){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var t=_.US.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(t)};
var q=window.ga;q("set","page",window.location.pathname);q.l=+new Date;q("set","forceSSL",!0);q("create",F,"'auto'");q("send","pageview")};
hb.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var F=_.nr("SCRIPT");F.name="ga-analytics";var q=_.RV(GMh);_.uF(F,q);F.async=!0;_.ep(this.hostElement).appendChild(F)};
hb.prototype.dataChanged=hb.prototype.dataChanged;_.C([_.O(),_.V("design:type",Object)],hb.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hb.prototype,"dataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],hb);
_.b(hb,"ytd-channel-metadata-renderer",function(){if(Tl9!==void 0)return Tl9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Tl9=F},{mode:1});var Dw5;var WAv;var KY=function(){var F=_.x.apply(this,arguments)||this;F.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);F.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return F};
_.M(KY,_.x);_.l=KY.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.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_]]"}}}}}};
_.l.onUpdateElementsPerRowAction=function(F){F&&this.elementsPerRow!==F&&(this.elementsPerRow=F)};
_.l.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.l.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.l.computeAlertStyle_=function(F){return F};
_.l.observerElementsPerRow=function(){this.elementsPerRow&&_.ws(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.l.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.l.requestElementsPerRow=function(){_.Q0(this.hostElement,"yt-request-elements-per-row")};
KY.prototype.onIsVisibleChanged_=KY.prototype.onIsVisibleChanged_;KY.prototype.observerElementsPerRow=KY.prototype.observerElementsPerRow;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],KY.prototype,"actionHandlerBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],KY.prototype,"data",void 0);_.C([_.O({value:6,reflectToAttribute:!0}),_.V("design:type",Number)],KY.prototype,"elementsPerRow",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],KY.prototype,"wrapButtons",void 0);_.C([_.O({value:_.bn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.V("design:type",Boolean)],KY.prototype,"isMusic",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.V("design:type",String)],KY.prototype,"alertStyle",void 0);_.C([_.O({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.V("design:type",Function)],KY.prototype,"dismissBoundButtonTap_",void 0);_.C([_.O({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.V("design:type",Function)],KY.prototype,"acceptBoundButtonTap_",void 0);_.C([_.za("elementsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KY.prototype,"observerElementsPerRow",null);_.C([_.za("data.isVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KY.prototype,"onIsVisibleChanged_",null);_.C([_.Vu({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],KY);
_.b(KY,"yt-alert-with-actions-renderer",function(){if(WAv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Dw5===void 0&&(Dw5=document.createElement("template"));var u=Dw5;t.call(q,u.content.cloneNode(!0),F.content.firstChild);WAv=F}F=WAv;return F},{mode:2});_.ei(_.ld(function(F){function q(k){var z={};return _.Z(_.rv,{text:k,className:_.Ec("ytPersonalGreetingViewModelHeadline",(z.ytPersonalGreetingViewModelHeadlineSmall=function(){return Q()===48},z))})}
function t(k,z){return _.Z("span",{el:k,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},q(z))}
var u=_.l_(_.CH(function(){var k;return(k=F.data())==null?void 0:k.rendererContext},void 0,void 0,void 0,!0)),J=_.FG("span"),g=_.FG("span"),Y=function(){return F.data().canvasPromoData},Q=function(){var k;
return(k=F.data().bannerHeight)!=null?k:56},e=_.KwM(u,{throttleMs:100}),r=_.KwM(J,{throttleMs:100}),N=_.KwM(g,{throttleMs:100}),w=function(){return r.width()-e.width()>1};
return _.Z("yt-personal-greeting-view-model",{el:u,"aria-hidden":w,class:_.Ec(F.className,"ytPersonalGreetingViewModelHost"),style:_.Mo({height:(0,_.cF)(function(){return w()?0:Q()})})},_.Z(_.R,{cond:function(){return F.data().avatar&&!(N.width()+(F.data().avatar?48:0)-e.width()>1)},
then:function(){return _.Z(_.Tl,{data:function(){return F.data().avatar}},{decoratedAvatarViewModel:function(k){return _.Z(_.qi,{data:k.data,
className:_.Ec("ytPersonalGreetingViewModelAvatar")})}})}}),_.Z("h1",null,q(function(){var k;
return(Y==null?void 0:(k=Y())==null?void 0:k.headline)||(N.width()+(F.data().avatar?48:0)-e.width()>1?F.data().shorterGreeting:F.data().greeting)})),t(g,function(){return F.data().greeting}),t(J,function(){return F.data().shorterGreeting}))},"kk"),"yt-personal-greeting-view-model",{props:{data:_.NH,
className:_.NH}});var B1=function(){var F=_.x.apply(this,arguments)||this;F.hidden=!1;F.isConstrainedList=!1;F.darkerDarkTheme=_.E("web_darker_dark_theme");F.responsiveSizing="COMPACT";F.attachedPlayers=_.E("kevlar_channel_trailer_multi_attach")?[]:void 0;F.player=null;F.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return F};
_.M(B1,_.x);_.l=B1.prototype;
_.l.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.l.created=function(){var F=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){F.disposeMastheadAd()}]};
_.l.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new zA7(this.refresh,this.contents))};
_.l.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.l.activeChanged=function(){var F=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=F)};
_.l.tabsChanged=function(){var F=this,q,t;if(this.pageSubtype==="channels"||_.E("kevlar_tab_gestures_for_tabbed_header_data")&&((q=this.data)==null?0:(t=q.header)==null?0:t.carouselHeaderRenderer))this.tabGestures=new cV(this.contents,this.contents,this.hostElement,this.header,function(Y){F.ytdReduxBehavior.dispatch(Y)});
var u,J,g;q=(u=this.data)==null?void 0:(J=u.contents)==null?void 0:(g=J.twoColumnBrowseResultsRenderer)==null?void 0:g.tabs;this.tabGestures&&this.tabGestures.tabsChanged(q)};
_.l.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.l.engagementPanelsChanged=function(){var F=_.sV().resolve(_.f_);if(F){if(this.engagementPanels)for(var q=_.X(this.engagementPanels),t=q.next();!t.done;t=q.next()){var u=void 0;(t=(u=t.value.identifier)==null?void 0:u.tag)&&F.panelMap.delete(t)}this.engagementPanels=[];var J;q=_.X(((J=this.data)==null?void 0:J.panels)||[]);for(J=q.next();!J.done;J=q.next()){J=_.n(J.value,_.hRT);var g=t=void 0,Y=void 0,Q=void 0;if(u=((t=J)==null?void 0:t.targetId)||((g=J)==null?void 0:g.panelIdentifier)||((Y=J)==
null?void 0:(Q=Y.identifier)==null?void 0:Q.tag))g=t=void 0,(g=(t=F).registerPanelContent)==null||g.call(t,u,{engagementPanelSectionListRenderer:J}),this.engagementPanels.push(J)}}};
_.l.onStampFinished=function(){var F=this;_.tJ(this,function(){if(F.tabGestures){var q=F.tabGestures;if(q.scrollPositionNeedsUpdate){var t=_.sV().resolve(_.JU(_.JC)),u;if((u=q.selectedTab)!=null&&u.title&&t&&(u=t.getCurrentPage())){if(q.scrollPositionForTabs.has(q.selectedTab.title)){var J,g;t=(g=(J=t.getCurrentPage())==null?void 0:J.clientHeight)!=null?g:0;J=q.scrollPositionForTabs.get(q.selectedTab.title);u.setScrollTop(J);t>J+100&&(q.scrollPositionNeedsUpdate=!1)}else u.setScrollTop(Math.min(q.lastVisitedTabScrollPosition!==
void 0?q.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,q.tabsStartAtInPx)),q.scrollPositionNeedsUpdate=!1;q.ytdReduxDispatch(a7h(!1))}}}})};
_.l.loadPage_=function(F){this.initCsi();F&&(this.data=F);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.l.getTitle=function(F){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",F))return this.get("microformat.microformatDataRenderer.title",F);if(this.get("header.feedTabbedHeaderRenderer.title",F))return _.q1(this.get("header.feedTabbedHeaderRenderer.title",F));if(this.get("header.interactiveTabbedHeaderRenderer.title",F))return this.get("header.interactiveTabbedHeaderRenderer.title",F);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
F))return _.q1(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",F));var q,t;return(F==null?0:(q=F.header)==null?0:(t=q.pageHeaderRenderer)==null?0:t.pageTitle)?F.header.pageHeaderRenderer.pageTitle:""};
_.l.updateTitle=function(F){_.Q0(this.hostElement,"yt-update-title",this.getTitle(F))};
_.l.initCsi=function(){_.BV(this.pageSubtype||"browse",["ol","cpt"])};
_.l.getPlayer=function(){if(_.E("kevlar_channel_trailer_multi_attach")){for(var F=_.X(this.attachedPlayers),q=F.next();!q.done;q=F.next())if(q=q.value,q.isConnected||_.hG(this.hostElement,q))return q;return null}return this.player};
_.l.getPlayerContainer=function(){return null};
_.l.onPlayerAttached=function(F,q){_.E("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(q):this.player=q};
_.l.onPlayerDetached=function(F,q){_.E("kevlar_channel_trailer_multi_attach")?(F=this.attachedPlayers.indexOf(q),F<0||this.attachedPlayers.splice(F,1)):this.player=null};
_.l.getServiceTrackingParams=function(){var F,q;return((F=this.data)==null?void 0:(q=F.responseContext)==null?void 0:q.serviceTrackingParams)||[]};
_.l.setMastheadAd=function(F){F&&F.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=F&&F.mastheadAd};
_.l.dataChanged=function(){var F=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.I77();_.tJ(this,function(){_.Zl(F.hostElement,"ytd-update-grid-state-action")})};
_.l.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.l.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var F=this.data.alerts;return F&&F.find(function(q){return!!q.alertWithActionsRenderer})}};
_.l.computeGreetingData=function(){if(this.data&&this.data.alerts){var F=this.data.alerts;return F&&F.find(function(q){return!!q.personalGreetingViewModel})}};
_.l.computeHasMemberHubProfileRenderer=function(F){var q;return!!(F==null?0:(q=F.header)==null?0:q.memberHubProfileRenderer)};
_.l.handleAlertCommand=function(F){this.get("alertCommand.alert.alertWithActionsRenderer",F)&&(F=_.n(F,lav),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",F.alert))};
_.l.handleYtPlaylistDeletionRedirect=function(F){F=this.get("playlistDeletionRedirectCommand.redirectEndpoint",F);_.Q0(this.hostElement,"yt-navigate",{endpoint:F})};
_.l.computeFluidWidth=function(F,q,t){if(q==="mini_app"||t)return!0;var u,J,g;F=F==null?void 0:(u=F.contents)==null?void 0:(J=u.twoColumnBrowseResultsRenderer)==null?void 0:(g=J.tabs)==null?void 0:g.find(function(e){var r;return e==null?void 0:(r=e.tabRenderer)==null?void 0:r.selected});
if(!F)return!1;var Y,Q;return!!((Y=F.tabRenderer)==null?0:(Q=Y.content)==null?0:Q.richGridRenderer)&&!["channel","channels","playables"].includes(q)};
_.l.computeHeaderFluidWidth=function(F){return F==="hashtag-landing-page"};
_.l.computeHasSidebar=function(F){var q;return!!(F.sidebar||((q=F.header)==null?0:q.playlistHeaderRenderer))};
_.l.computeHasPageHeaderSidebar=function(F){var q,t;return!!((q=F.header)==null?0:(t=q.pageHeaderRenderer)==null?0:t.enableSidebarView)};
_.l.computeUseUnifiedShowPageLayout=function(F){if(!F||this.pageSubtype!=="show"||!F.sidebar||!F.sidebar.playlistSidebarRenderer)return!1;F=F.sidebar.playlistSidebarRenderer;if(!F.items)return!1;for(var q=0;q<F.items.length;q++)if(_.n(F.items[q],aZ)){var t=void 0;return((t=_.n(F.items[q],aZ))==null?void 0:t.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.l.computeIsConstrainedList=function(F){return _.E("web_enable_constrained_list_subscriptions_channels")&&F==="subscriptions-channels"};
_.l.computeResponsiveSizing=function(F){return F==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.JJ.Object.defineProperties(B1.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var F,q;return((F=this.data)==null?0:(q=F.header)==null?0:q.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var F,q;if(!((F=this.data)==null?0:(q=F.sidebar)==null?0:q.playlistSidebarRenderer))return!1;var t;return(t=this.data)!=null&&t.header?!1:!0}}});
_.JJ.Object.defineProperties(B1,{template:{configurable:!0,enumerable:!0,get:function(){if(M3w===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);M3w=F}F=M3w;return F}}});
B1.prototype.dataChanged=B1.prototype.dataChanged;B1.prototype.onPlayerDetached=B1.prototype.onPlayerDetached;B1.prototype.onPlayerAttached=B1.prototype.onPlayerAttached;B1.prototype.onStampFinished=B1.prototype.onStampFinished;B1.prototype.engagementPanelsChanged=B1.prototype.engagementPanelsChanged;B1.prototype.scrollAtTopChanged=B1.prototype.scrollAtTopChanged;B1.prototype.tabsChanged=B1.prototype.tabsChanged;B1.prototype.activeChanged=B1.prototype.activeChanged;
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],B1.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],B1.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],B1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],B1.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.L0.YtPageBehavior),_.V("design:type",Object)],B1.prototype,"ytPageBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],B1.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],B1.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],B1.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],B1.prototype,"hidden",void 0);
_.C([_.O(),_.V("design:type",Object)],B1.prototype,"mastheadAdData",void 0);_.C([_.O({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.V("design:type",Object)],B1.prototype,"alertBannerData",void 0);_.C([_.O({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.V("design:type",Object)],B1.prototype,"greetingData",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],B1.prototype,"pageSubtype",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.V("design:type",Boolean)],B1.prototype,"hasMemberHubProfileRenderer",void 0);_.C([_.O({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],B1.prototype,"hasSidebar",void 0);_.C([_.O({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],B1.prototype,"hasPageHeaderSidebar",void 0);
_.C([_.O({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],B1.prototype,"roundedContainer",void 0);_.C([_.O({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],B1.prototype,"useUnifiedShowPageLayout",void 0);_.C([_.O({computed:"computeIsConstrainedList(pageSubtype)"}),_.V("design:type",Object)],B1.prototype,"isConstrainedList",void 0);
_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],B1.prototype,"usePlaylistHeaderRenderer",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],B1.prototype,"useOldPlaylistSidebarRenderer",null);_.C([_.O({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.V("design:type",Boolean)],B1.prototype,"fluidWidth",void 0);_.C([_.O({selector:function(F){return F.ui.scrollAtTop}}),
_.V("design:type",Boolean)],B1.prototype,"scrollAtTop",void 0);_.C([_.O({selector:_.gI7}),_.V("design:type",Boolean)],B1.prototype,"tabGesturesIsActive",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],B1.prototype,"darkerDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.V("design:type",Boolean)],B1.prototype,"disableHeaderFluidWidth",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.V("design:type",String)],B1.prototype,"responsiveSizing",void 0);_.C([_.Ms("ytd-two-column-browse-results-renderer"),_.V("design:type",HTMLElement)],B1.prototype,"contents",void 0);_.C([_.Ms("#header"),_.V("design:type",HTMLElement)],B1.prototype,"header",void 0);_.C([_.Ms("ytd-refresh"),_.V("design:type",Object)],B1.prototype,"refresh",void 0);
_.C([_.za("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B1.prototype,"activeChanged",null);_.C([_.za("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B1.prototype,"tabsChanged",null);_.C([_.za("scrollAtTop"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B1.prototype,"scrollAtTopChanged",null);
_.C([_.O(),_.V("design:type",Object)],B1.prototype,"engagementPanels",void 0);_.C([_.za("data.panels"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B1.prototype,"engagementPanelsChanged",null);_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B1.prototype,"onStampFinished",null);
_.C([_.EB("yt-player-attached"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Element]),_.V("design:returntype")],B1.prototype,"onPlayerAttached",null);_.C([_.EB("yt-player-detached"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Element]),_.V("design:returntype")],B1.prototype,"onPlayerDetached",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B1.prototype,"dataChanged",null);
_.C([_.m({is:"ytd-browse"})],B1);_.WG.registerService(_.KiC,B1);
_.$W();
}catch(e){_._DumpException(e)}
try{
_.mg("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,Vdh,Udy,SeQ,h_w,KOs,BQC,LO5,fts,ath,juv,cJs,qHQ,tc9,JVC,sD9,go3,Xov,YHD,poD,QDv,yN,ZJD,C5,RSy,rVC,NY7,woJ,iJy,EoD,oow,kV3,FjT,noJ,Mcy,TY9,GVD,DU9,Wjs,xUT,AVv,voT,IlT,mUC,$U9,yVh,dUJ,VcQ,UUv,hSQ,BYD,Lj5,flT,alw,jD7,cVJ,FV5,qfv,tzh,uEC,Jxv,sY5,gvC,lxT,X53,Yf9,p5C,QY9,elT,Rl9,rx7,Njh,w5v,ijy,k5s,Evy,zlJ,ovh,nv7,Mz9,Tjy,G53,Dpv,WVJ,Oj9,PC7,xpC,Ax5,vv9,Ix7,Hj9,mpT,$pw,bjJ,f5,yx3,CC9,dpT,Ups,SfT,hl9,KVT,Bj5,LV3,fx3,cx9,Xxh,ebJ,ZGs,iGT,krs,wxs,rnC,nh5,GrQ,AnT,Rbw,WBT,MTw,tu,Iny,$1y,C1s,bGy,ynJ,d17,
hbT,U1D,KB9,BaD,SyJ,VTy,LB5,ge,lI,qB9,tpv,Xc,uey,JYv,sEs,QEC,eih,Yt,pU,Ri5,Z1T,rYJ,Nsv,wh5,Qm,el,ZF,Tsh,Ga5,DsT,re,AYw,W6h,xs3,vMv,O19,H1y,PLJ,b1v,mss,$sy,N8,CLD,yYQ,SB7,L69,E7,zN,K63,aj9,Bsh,fj3,nU,TN,GN,DF,i9w,X95,zU3,obw,nbw,Mg9,GC7,ut7,Jvs,PC,gb5,WC,O7,lPy,Tc9,kCw,scT,Au,WWJ,O9T,Pds,AvT,IP7,H9y,mcJ,$cw,yvv,b97,dch,VgD,Skh,hUD,BcQ,LW7,fP9,aP9,jc9,cv3,Fow,tiv,qc5,u0h,JTw,vC,sI9,gm7,Ir,lRy,XT7,YcQ,pT3,QIv,eC5,Zph,RC5,NCh,HC,wTw,ipJ,zCC,nm3,MiD,Gq9,TCJ,Do7,Wo3,OpD,xov,ATs,vm9,IRQ,Hp9,moy,$oh,bp9,
yT7,C_Q,dov,Viv,Ko5,BCQ,Sch,hCw,UoD,Lov,jIT,fR7,aRv,qOD,cT7,Fp3,tay,up7,JC3,ssy,lzv,XDD,YOw,Qsv,e7v,R75,N0v,iH9,ECw,oC7,MaC,Glh,Wpw,xZT,AC5,vCv,HHv,Izv,$Z9,bH9,yC3,C65,$t,dZQ,Vaw,UZy,FTh,txT,uf9,lM5,XZw,Yoy,pZC,eu7,Q4J,Zwv,Ruh,riv,NIT,wZy,aG,iwv,Vm,klv,kJD,Eis;
bV=function(F){if(!F)return"browse";var q=F.page,t=F.url,u,J,g,Y=(u=F.response)==null?void 0:(J=u.responseContext)==null?void 0:(g=J.webResponseContextExtensionData)==null?void 0:g.pageTheme;if(Y)q=Y.toLowerCase().replace(/_/g,"-");else if(q!=="watch"&&q!=="learning_journey_watch"){var Q,e;if((q==="browse"||q==="settings")&&((Q=F.response)==null?0:(e=Q.sidebar)==null?0:e.settingsSidebarRenderer))q="WEB_PAGE_TYPE_SETTINGS";else{var r,N;q==="browse"&&((r=F.response)==null?0:(N=r.metadata)==null?0:N.channelMetadataRenderer)?
q="channel":t&&(q=_.M1(t)||q)}}return q};
Vdh=function(){var F=_.S6("yt.aba.att");return F?F:_.PR.instance!==void 0?_.PR.instance.vnR.bind(_.PR.instance):null};
Udy=function(F,q){var t;return _.p(function(u){return(t=Vdh())?u.return(t(F,q,6E4)):u.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
SeQ=function(F,q,t,u,J){q=q===void 0?[]:q;J=J?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:J}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.lC(F),dialogMessages:q.map(function(g){return _.lC(g)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lC(t),serviceEndpoint:J}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.lC(u)}}}}}};
h_w=function(F){var q=!!_.YQ().queueProxy;var t,u,J;F=F==null?void 0:(t=F.response)==null?void 0:(u=t.currentVideoEndpoint)==null?void 0:(J=u.watchEndpoint)==null?void 0:J.playlistId;return!(!q&&!F)};
KOs=function(F,q){var t=_.$A();if(h_w(F))return t.playlistWatchPageActivation=!0;switch(bV(q)){case "yts-products":return t.productDetailsPageActivation=!0;case "mini_app":return t.miniAppPageActivation=!0;case "playables":return t.playablesDestPageActivation=!0;default:return!1}};
BQC=function(F,q,t){for(var u=typeof F==="string"?F.split(""):F,J=F.length-1;J>=0;--J)J in u&&q.call(t,u[J],J,F)};
LO5=function(F,q){q=_.EP_(F,q);q>=0&&_.nPW(F,q)};
fts=function(F){return Array.prototype.concat.apply([],arguments)};
ath=function(F){var q=0;q=q===void 0?0:q;if(!_.jC(F))throw _.jW("uint64");var t=typeof F;switch(q){case 512:switch(t){case "string":return _.Dno(F);case "bigint":return String((0,_.Ry)(64,F));default:return _.Tx3(F)}case 1024:switch(t){case "string":return _.Wrq(F);case "bigint":return _.vf((0,_.Ry)(64,F));default:return _.G1$(F)}case 0:switch(t){case "string":return _.Dno(F);case "bigint":return _.vf((0,_.Ry)(64,F));default:return _.MCt(F)}default:return _.Uv(q,"Unknown format requested type for int64")}};
juv=function(F){F!=null&&(F=F.JSC$8812_value_||"",F=typeof F==="string"?F:new Uint8Array(F));return F};
cJs=function(F,q){if(/-[a-z]/.test(q))return null;if(_.BJe&&F.dataset){if(_.Q_v()&&!(q in F.dataset))return null;F=F.dataset[q];return F===void 0?null:F}return F.getAttribute("data-"+_.nB(q))};
qHQ=function(){var F=FjT;_.S6("yt.ads.biscotti.getId_")||_.uo("yt.ads.biscotti.getId_",F)};
tc9=function(F){_.uo("yt.ads.biscotti.lastId_",F)};
JVC=function(){var F={};for(_.AU=new uw9(F.handleError===void 0?_.$e:F.handleError,F.logEvent===void 0?_.IJ:F.logEvent);_.vc.length>0;)switch(F=_.vc.shift(),F.type){case "ERROR":_.AU.logError(F.payload);break;case "EVENT":_.AU.logEvent(F.eventType,F.payload)}};
sD9=function(F,q,t){return _.hlo(function(u){return t?u.userIdentifier!==void 0&&!F.includes(u.userIdentifier)&&t.includes(u.publicName):u.userIdentifier!==void 0&&!F.includes(u.userIdentifier)},q)};
go3=function(F){var q,t;return _.p(function(u){if(u.nextAddress==1)return q=_.TQ("YtIdbMeta hasAnyMeta other"),u.yield(_.hlo(function(J){return J.userIdentifier!==void 0&&J.userIdentifier!==q},F),2);
t=u.yieldResult;return u.return(t.length>0)})};
Xov=function(F,q){llJ||(llJ=_.mI.addLowPriorityJob(function(){var t,u,J,g,Y;return _.p(function(Q){switch(Q.nextAddress){case 1:return Q.yield(_.JD(),2);case 2:t=Q.yieldResult;if(!t)return Q.return();u=!0;_.zg(Q,3);return Q.yield(sD9(F,t,q),5);case 5:J=Q.yieldResult;if(!J.length){u=!1;Q.jumpTo(6);break}g=J[0];return Q.yield(_.fE(g.actualName),7);case 7:return Q.yield(_.cc(g.actualName,t),6);case 6:_.LE(Q,4);break;case 3:Y=_.Gg(Q),_.Im(Y),u=!1;case 4:_.mI.cancelJob(llJ),llJ=0,u&&Xov(F,q),_.WA(Q)}})}))};
YHD=function(){var F;return _.p(function(q){return q.nextAddress==1?q.yield(_.JD(),2):(F=q.yieldResult)?q.return(go3(F)):q.return(!1)})};
poD=function(F){var q=100;q=q===void 0?500:q;var t,u,J,g,Y,Q;return _.p(function(e){return e.nextAddress==1?(t=_.bn("INNERTUBE_CONTEXT_CLIENT_NAME",0),u=[t,(0,_.gB)()-2592E6],J=[t,(0,_.gB)()],g=IDBKeyRange.bound(u,J),e.yield(_.i9u(F),2)):e.nextAddress!=3?(Y=e.yieldResult,Q=[],e.yield(_.jv(Y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(r){Q.length=0;return _.lo(r.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:g,direction:"prev"},function(N){if(N.getValue()&&Q.length<
q)return Q.push(N.getValue()),N.delete().then(function(){return N.continue()})})}),3)):e.return(Q)})};
QDv=function(){var F;return _.p(function(q){if(q.nextAddress==1)return q.yield(_.JD(),2);F=q.yieldResult;if(!F||!_.GQ()&&!_.E("nwl_init_require_datasync_id_killswitch")||!_.$cu())return q.jumpTo(0);_.yv$=!0;_.b9P.isNwlInitialized=_.yv$;return q.yield(_.R_d().awaitInitialization(),0)})};
yN=function(F,q){_.ti$[F]=!0;var t=_.Ye();t&&t.publish.apply(t,arguments);_.ti$[F]=!1};
ZJD=function(){if(_.vM$()&&!eST){var F=function(t){t=t.data;if(t.op==="serializedGelBatch"){var u=_.upP.get(t.key);u&&(_.ss_(t.serializedBatch,u.client,u.resolve,u.networklessOptions,u.isIsolated,u.useVSSEndpoint,u.dangerousLogToVisitorSession,u.requestsOutstanding),_.upP.delete(t.key))}},q=_.AYu();
q&&(q.addEventListener("message",F),q.onerror=function(){_.upP.clear()});
eST=!0}};
C5=function(){this.relativeTimeStart_=_.sa()};
RSy=function(F,q){F!=null&&this.append.apply(this,arguments)};
rVC=function(){return _.Sd("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
NY7=function(F,q,t){t=t===void 0?!1:t;var u,J,g,Y,Q;return _.p(function(e){switch(e.nextAddress){case 1:_.nE("SOCS",F,34128E3,"youtube.com",!0);if(_.RC)return J=fetch(q,{method:"POST",mode:_.au(q),credentials:_.fB(q),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),g=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.au("/upgrade_visitor_cookie?eom=1"),credentials:_.fB("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),e.yield(Promise.all([J,g]).then(function(r){return r[1]}),5);
fetch(q,{method:"POST",mode:_.au(q),credentials:_.fB(q),cache:"no-store",headers:{"Content-Type":"text/plain"}});return e.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.au("/upgrade_visitor_cookie?eom=1"),credentials:_.fB("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:u=e.yieldResult;e.jumpTo(3);break;case 5:u=Y=e.yieldResult;case 3:if(!u.ok)throw Error("nf");return e.yield(u.text(),7);case 7:Q=e.yieldResult,
!Q.includes('"state_switch":true')&&!t||Q.includes("skip_reload_for_test")||window.location.reload(),_.WA(e)}})};
woJ=function(F){return _.p(function(q){return q.nextAddress==1?q.yield(NY7(F.socsCookie,F.savePreferenceUrl,!0),2):q.return()})};
iJy=function(F){return _.p(function(q){return q.nextAddress==1?q.yield(NY7(F.socsCookie,F.savePreferenceUrl),2):q.return()})};
EoD=function(F){F=F.xhr.responseText;if(!_.gf(F,")]}'"))throw new dG;F=JSON.parse(F.substr(4));if((F.type||1)>1)throw new dG;F=F.id;tc9(F);VN=_.Z2(F);kV3(18E5,2);return F};
oow=function(F,q){q=new zS7(q);tc9("");VN=_.vpz(q);F>0&&kV3(12E4,F-1);throw q;};
kV3=function(F,q){_.Rm(function(){_.ZBT().then(EoD,function(t){return oow(q,t)}).thenCatch(_.DH)},F)};
FjT=function(){var F=_.NQ9();if(F!==void 0)return _.mW(F);VN||(VN=_.ZBT().then(EoD).thenCatch(function(q){return oow(2,q)}));
return VN};
noJ=function(){var F=document;return _.vy(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(q){return"on"+q.toLowerCase()in F})};
Mcy=function(F){F.addEventListener("click",function(q){var t=q.target;t&&t.getAttribute("href")&&(t=t.getAttribute("href"),_.jO(window,t,"_blank"),q.preventDefault(),q.stopImmediatePropagation())})};
TY9=function(F){var q,t,u,J=(u=(t=((q=F.mainDownloadsListEntity)!=null?q:{})[_.UC3])==null?void 0:t.refresh)!=null?u:"",g;F=(g=F.refresh)==null?void 0:g[J];J=F!=null?F:{};return(J==null?0:J.refreshTime)?Number(J==null?void 0:J.refreshTime):0};
GVD=function(F,q){var t=_.Ax(F);return q.every(function(u){var J;u=u==null?void 0:(J=u.playbackDataEntity)==null?void 0:J.key;if(!u)return!1;J=_.wj(_.ez(u).entityId,"mainVideoEntity");return!!t[J]})};
DU9=function(F){F=_.Of(F.entities);return _.Jhf(F).length};
Wjs=function(F,q){if(q){var t;F=(t=_.iC(F.entities,"downloadQualityPickerEntity",q))!=null?t:void 0}else F=void 0;return F};
xUT=function(){OJ7||(_.c5=_.V$C,OJ7=new PN5);return OJ7};
AVv=function(F){var q=document.getElementsByTagName("ytd-enforcement-message-view-model");q.length===0||getComputedStyle(q[0]).display==="none"?F(0,"p.h_"):F(1,"p.h_")};
voT=function(){U1=0;var F=[_.Oy(!0)];SY&&_.Zl(SY,"yt-window-resized",F)};
IlT=function(){U1||(U1=_.mI.addLowPriorityJob(voT,200))};
mUC=function(){hI=0;HJs=_.Lrw(document);var F=[HJs];SY&&_.Zl(SY,"yt-window-scrolled",F)};
$U9=function(){hI||(hI=_.mI.addLowPriorityJob(mUC,200))};
yVh=function(F){F=F===void 0?null:F;bJT.push(_.Jf(window,"resize",IlT));bJT.push(_.Jf(window,"scroll",$U9));F&&(SY=F)};
dUJ=function(){var F={isWide:_.om.get("wide","0")==="1"},q=_.TV();if(q=q.getFlag(165)||q.getFlag(174))F.theme=_.Hx(!0);if(_.H_W()){var t=_.Ib()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";F.systemTheme=t}!q&&_.E("parent_tools_enable_app_settings")&&_.fI(window.location.href).theme!==void 0&&(F.theme=_.Hx());if((q=K5)?!_.m7.equals(q,F):F)q={currentValue:F},CNw&&(q.timeSinceLastSnapshotSecs=Math.round(((0,_.gB)()-CNw)/1E3)),K5&&(q.previousValue=K5),_.IJ("appSettingsCaptured",q),K5=F,CNw=
(0,_.gB)()};
VcQ=function(F){_.p(function(q){if(q.nextAddress==1)return q.yield(F.delete("yt-appshell-assets"),2);_.WA(q)})};
UUv=function(F){return _.am((0,_.pgj)(),F)};
hSQ=function(){var F;_.p(function(q){return q.nextAddress==1?q.yield(Bv.getInstance(),2):(F=q.yieldResult)?q.yield(SHD(F),0):q.jumpTo(0)})};
BYD=function(){var F;_.p(function(q){return q.nextAddress==1?q.yield(L5.getInstance(),2):(F=q.yieldResult)?q.yield(KjD(F),0):q.jumpTo(0)})};
Lj5=function(F){VcQ(F);hSQ();BYD()};
flT=function(F){var q,t;return _.p(function(u){if(u.nextAddress==1)return u.yield(_.JpW(F),2);if(q=u.yieldResult){var J;a:{if(q.headers&&(J=q.headers.get("date"))&&(J=Date.parse(J),!isNaN(J))){J=Math.round((0,_.gB)()-J);break a}J=-1}t=J;if(t>-1)return u.return(t)}return u.return(-1)})};
alw=function(){var F=_.uu.caches,q=_.yG("IS_SHELL_LOAD"),t,u;_.p(function(J){if(J.nextAddress==1)return t=-1,q?J.yield(flT(F),3):(u=_.xo(),t=Math.round((0,_.gB)()-u),J.jumpTo(2));J.nextAddress!=2&&(t=J.yieldResult);t>=0&&t<2147483648&&_.mj({appInstallDataAgeMs:t});_.WA(J)})};
jD7=function(F){var q=_.Lr(_.uu.location.href),t={};"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(u){var J=q.JSC$10024_queryData_.getValues(u);if(J==null?0:J.length)t[u]=J});
return _.Na(F,new Map(Object.entries(t)))};
cVJ=function(F){F=F.match(/(.*)::.*::.*/);if(F!==null)return F[1]};
FV5=function(F){if(_.oGM()){var q=Object.keys(window.localStorage);q=_.X(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u=cVJ(t);u===void 0||F.includes(u)||self.localStorage.removeItem(t)}}};
qfv=function(){if(!_.oGM())return!1;var F=_.TQ(),q=Object.keys(window.localStorage);q=_.X(q);for(var t=q.next();!t.done;t=q.next())if(t=cVJ(t.value),t!==void 0&&t!==F)return!0;return!1};
tzh=function(F){return _.TZ("NotificationsDisabled",F)};
uEC=function(){return Notification.permission!="granted"?Promise.resolve():_.lAh().then(function(F){return F?F.pushManager.getSubscription().then(function(q){if(q)return Promise.resolve();q={userVisibleOnly:!0,applicationServerKey:_.f3("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return F.pushManager.subscribe(q).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
Jxv=function(F){return _.lAh().then(function(q){if(!q||!q.active)return Promise.reject(new _.D0("serviceworker.postMessage",F,q));try{return q.active.postMessage(F),Promise.resolve()}catch(t){return Promise.reject(t)}})};
sY5=function(){Jxv({type:"notifications_register",data:_.bn("ID_TOKEN")})};
gvC=function(){if(!_.yG("LOGGED_IN"))return Promise.resolve(!1);var F=_.pE("service_worker_push_force_notification_prompt_tag");return F?_.Op("PromptTags").then(function(q){if(!q)return!0;var t=[];try{t=JSON.parse(q)}catch(u){return!1}return t&&t.indexOf(F)==-1}):Promise.resolve(!1)};
lxT=function(){var F=_.YE("service_worker_push_prompt_delay_microseconds");return F?_.Op("PromptTime").then(function(q){return Promise.resolve(Date.now()-F>(q||0))}):Promise.resolve(!0)};
X53=function(){var F=_.YE("service_worker_push_logged_out_prompt_watches");return F==-1?Promise.resolve(!1):_.Op("WatchCount").then(function(q){return q>=F})};
Yf9=function(){var F=_.Xp(document,"yt-push-prompt-modal-bg");F&&_.Mq(F)};
p5C=function(){return _.YE("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Op("PromptCount").then(function(F){F||(F=0);return Promise.resolve(F<_.YE("service_worker_push_prompt_cap"))})};
QY9=function(F){return _.yG("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.yG("LOGGED_IN")&&(F===void 0?0:F)?gvC().then(function(q){if(q)return!0;q=[p5C(),lxT()];_.yG("LOGGED_IN")||q.push(X53());return Promise.all(q).then(function(t){return t.every(function(u){return u})})}):Promise.resolve(!1)};
elT=function(){_.Op("PromptCount").then(function(F){return _.TZ("PromptCount",F+1)}).then(function(){return _.TZ("PromptTime",Date.now())}).then(function(){var F=_.pE("service_worker_push_force_notification_prompt_tag");
if(F)return _.Op("PromptTags").then(function(q){var t=[];if(q)try{t=JSON.parse(q)}catch(u){return!1}t||(t=[]);t.push(F);return _.TZ("PromptTags",JSON.stringify(t))})})};
Rl9=function(){Zj3||Yf9()};
rx7=function(F){F.style.zIndex=2147483648;F.style.pointerEvents="auto";F.style.backgroundColor="rgba(0, 0, 0, 0.6)";F.style.width="100%";F.style.height="100vh";F.style.position="absolute";F.style.top="0";F.style.left="0";F.style.border="none"};
Njh=function(){var F=_.Xp(document,"yt-push-prompt-modal-bg");Zj3=_.E("service_worker_push_prompt_modal_ignore_click");F?rx7(F):(F=_.Hk("div",{id:"yt-push-prompt-modal-bg"}),rx7(F),document.body.appendChild(F),_.jco(document,"click",Rl9))};
w5v=function(){var F=arguments;_.E("service_worker_push_prompt_modal_enable")&&Njh();return Notification.requestPermission().then(function(q){Yf9();var t=document.getElementById("ticker");t&&(t.className=t.classList.remove("show"));if(q=="granted")return uEC().then(function(){tzh(!1);sY5();return Promise.resolve(!0)});
q=="denied"&&sY5();return Promise.resolve(!1)}).catch(function(){Yf9();
return Promise.reject.apply(Promise,_.mZ(F))})};
ijy=function(F){F=F===void 0?!1:F;var q=_.Crt().client;if(q&&q.browserVersion){var t=q.browserVersion,u=q.browserName=="CHROME"&&_.R_(t,"50.0.0")<0;q=q.browserName=="OPERA"&&_.R_(t,"42.0.0")<0;if(u||q)return Promise.resolve()}return _.p_J().then(function(J){if(!J)return Promise.resolve();J=uEC().then(function(){return Jxv({type:"notifications_check_registration",data:_.bn("ID_TOKEN")})});
return Notification.permission!="default"?J.catch(function(){}):J.then(function(){return QY9(F)}).then(function(g){if(g)return elT(),w5v().then(function(){})}).catch(function(){})})};
k5s=function(F){return _.X_v(F)?ijy():Promise.resolve()};
Evy=function(F){var q=F.installing||F.waiting;return F.active||!q?Promise.resolve(F):new Promise(function(t){var u=function(J){J=J.target;if(J.state==="activated"||J.state==="redundant")q.removeEventListener("statechange",u),t(F)};
q.addEventListener("statechange",u)})};
zlJ=function(){var F=new _.jOo("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.pZ(F,{mainAppWeb:_.jT()});var q=_.DPw;_.E("service_worker_forward_exp_params")&&(q=jD7(q));try{var t=_.V2u(q).catch(function(){_.QI(F,"FAILURE");return new Promise(function(){})});
_.E("service_worker_push_enabled")&&t.then(function(u){_.QI(F,"SUCCESS");return u}).then(Evy).then(k5s)}catch(u){if(_.QI(F,"FAILURE"),u.name!=="SecurityError")throw u;
}};
ovh=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&zlJ()};
nv7=function(F,q){var t={};q&&(t.serializedYpcFamilyCreateLoggingParams=q);_.IJ(F,t);_.H2()};
Mz9=function(F,q){var t={};t.serializedYpcRefundFlowLoggingParams=q;F&&(t.eventType=F);_.IJ("ypcRefundFlowEvent",t);_.H2()};
Tjy=function(F){F&&_.Slo("transactionFlowSucceeded",F)};
G53=function(F){F&&_.X2("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",F,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
Dpv=function(F){var q,t,u,J,g,Y,Q;_.p(function(e){if(e.nextAddress==1)return e.yield(_.Goo(),2);if(e.nextAddress!=3){if(!e.yieldResult)return e.return(!1);q=[];return e.yield(_.i_.keys(),3)}t=e.yieldResult;u=_.X(t);for(J=u.next();!J.done;J=u.next())g=J.value,Y=_.M73(g),Q=Y.datasyncId,!Q||F.includes(Q)||q.push(_.i_.delete(g));return e.return(Promise.all(q).then(function(r){return r.some(function(N){return N})}))})};
WVJ=function(){var F,q,t,u,J,g,Y;return _.p(function(Q){if(Q.nextAddress==1)return Q.yield(_.Goo(),2);if(Q.nextAddress!=3){if(!Q.yieldResult)return Q.return(!1);F=_.TQ("cache contains other");return Q.yield(_.i_.keys(),3)}q=Q.yieldResult;t=_.X(q);for(u=t.next();!u.done;u=t.next())if(J=u.value,g=_.M73(J),(Y=g.datasyncId)&&Y!==F)return Q.return(!0);return Q.return(!1)})};
Oj9=function(){var F=_.sV().resolve(_.JU(_.MIJ));return F?F.getCurrentTime():0};
PC7=function(){var F,q,t,u,J,g,Y,Q,e,r,N,w,k,z;return _.p(function(T){switch(T.nextAddress){case 1:F={},q=_.TkM(),t=_.X(Object.entries(q)),u=t.next();case 4:if(u.done){T.jumpTo(3);break}J=u.value;g=_.X(J);Y=g.next().value;Q=g.next().value;e=Y;r=Q;if(!r){T.jumpTo(5);break}return T.yield(r(),8);case 8:F[e]=T.yieldResult;case 5:u=t.next();T.jumpTo(4);break;case 2:N=_.X(void 0),w=N.next();case 9:if(w.done){T.jumpTo(3);break}k=w.value;z=q[k];if(!z){T.jumpTo(10);break}return T.yield(z(),13);case 13:F[k]=
T.yieldResult;case 10:w=N.next();T.jumpTo(9);break;case 3:return T.return(F)}})};
xpC=function(){var F;_.p(function(q){if(q.nextAddress==1)return q.yield(PC7(),2);F=q.yieldResult;return q.yield(navigator.clipboard.writeText(JSON.stringify(F,null,2)),0)})};
Ax5=function(F,q){return _.iC(F.entities,"superThanksSelectedTierEntity",q)};
vv9=function(F,q){return{popup:{searchSuggestionReportDialog:{searchQuery:F,title:_.oD("SBOX_INAPPROPRIATE_TITLE"),suggestions:q,categoryLabel:_.oD("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.oD("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.oD("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.oD("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.oD("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.oD("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.oD("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.oD("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.oD("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.oD("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
Ix7=function(F){var q,t,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a;return _.p(function(S){switch(S.nextAddress){case 1:return S.yield(_.z5(),2);case 2:return(q=S.yieldResult)?S.yield(_.X4y(q),3):S.return();case 3:t=S.yieldResult;if(!t)return S.return();J=((u=t.offlineVideos)==null?void 0:u.length)||0;Y=((g=t.offlinePlaylists)==null?void 0:g.length)||0;if(J===0&&Y===0)return S.return();Q=0;if(t.offlineVideos)for(e=_.X(t.offlineVideos),r=e.next();!r.done;r=e.next())N=r.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
N.videoState&&(Q+=1);F.offline_videos_count=J.toString();_.E("kevlar_log_offline_current_network_type_ks")||(F.offline_current_network_type=(w=_.Ev_())!=null?w:"CONN_INVALID");_.E("kevlar_log_updated_time_for_smart_downloads")&&(k=_.u1().getState().entities,z=_.mV(k),T=TY9(k),F.offline_smart_downloads_last_sync_time_ms=z.toString(),F.offline_smart_downloads_next_sync_time_ms=T.toString());F.offline_videos_playable=Q.toString();F.offline_playlists_count=Y.toString();t.offlineVideos&&(P=t.offlineVideos.reduce(function(K,
h){h.downloadedBytes&&(K+=Number(h.downloadedBytes));return K},0).toString())&&(F.offline_used_disk_space_bytes=P);
if(!((v=navigator)==null?0:(H=v.storage)==null?0:H.estimate)){S.jumpTo(4);break}return S.yield(navigator.storage.estimate(),5);case 5:d=S.yieldResult,F.offline_free_disk_space_bytes=(((a=d)==null?void 0:a.quota)||0).toString();case 4:F.offline_client_state=JSON.stringify(t),_.WA(S)}})};
Hj9=function(F){F=_.X(F);for(var q=F.next(),t={};!q.done;t={setter$jscomp$5:void 0},q=F.next()){var u=q.value;q=u.params;u=u.service;q&&u&&(t.setter$jscomp$5=_.RP9[u],t.setter$jscomp$5&&q.forEach(function(J){return function(g){var Y=g.key;g=g.value;Y&&g&&(0,J.setter$jscomp$5)(Y,g)}}(t)))}};
mpT=function(F){F=F.match(/(.*)::.*::.*/);if(F!==null)return F[1]};
$pw=function(F){if(_.iTu()){var q=Object.keys(window.sessionStorage);q=_.X(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u=mpT(t);u===void 0||F.includes(u)||self.sessionStorage.removeItem(t)}}};
bjJ=function(){if(!_.iTu())return!1;var F=_.TQ(),q=Object.keys(window.sessionStorage);q=_.X(q);for(var t=q.next();!t.done;t=q.next())if(t=mpT(t.value),t!==void 0&&t!==F)return!0;return!1};
f5=function(F,q,t){(_.E("desktop_keyboard_shortcut_usage_log")||t&&_.E("web_shorts_keyboard_shortcut_usage_log"))&&(q?_.Pv.get(F):_.O1.get(F))&&(F=q?_.AI.get(F):_.xy.get(F))&&_.co(_.yb(),F)};
yx3=function(F,q){return F.findIndex(function(t){return t.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(q.keyCode):!1};
CC9=function(){var F,q;return typeof CSS!=="undefined"&&((q=(F=CSS).supports)==null?void 0:q.call(F,"selector(:has(*))"))};
dpT=function(F){return F.visibility!=="hidden"&&F.display!=="none"};
Ups=function(F){if(CC9()||F.tagName!=="DETAILS"?!F.matches(Vzv):F.querySelector("summary")!==null)return-1;F=F.getAttribute("tabindex")||"0";return Number(F)};
SfT=function(F){return F.some(function(q){return Ups(q)>0})};
hl9=function(F){if(F.textContent)return!0;if(F instanceof HTMLInputElement){if(!F.labels)return!1;F=_.X(F.labels);for(var q=F.next();!q.done;q=F.next())if(q.value.textContent)return!0}return!1};
KVT=function(F){return F.sort(function(q,t){return Ups(t)-Ups(q)})};
Bj5=function(F){F=Array.from(F.querySelectorAll(Vzv)).filter(function(q){return(dpT(q.style)?dpT(window.getComputedStyle(q)):!1)&&hl9(q)});
return SfT(F)?KVT(F):F};
LV3=function(F){F=Bj5(F);F.length>0&&F[0].focus()};
fx3=function(F,q){q.stack&&(F.stack+="\n"+q.stack);return F};
cx9=function(F){var q=aG(F,"Content-Type");if(!q)return null;q=q.toLowerCase();if(q.startsWith("application/json"))return q.startsWith("application/json+protobuf")?new axT:new _.iS;if(q.startsWith("application/x-protobuf")){F=aG(F,"Content-Transfer-Encoding");if(!F)return new jY;if(F.toLowerCase()=="base64")return new jYQ}return null};
Xxh=function(F,q,t,u){var J=new FB5(function(Q,e){return qyT.has(e)?Q.sentinel==="gal"&&Q.event!==void 0:!1},function(Q){Q.event?(Q=tTC(Q.event),Q=!Q||uK9(u,Q)?!0:_.z3(F.lastEvent,cv,2,Fc)?!_.z3(Q,q8,1,Fc)&&!_.z3(Q,cv,2,Fc):!_.z3(Q,q8,1,Fc)&&!_.z3(Q,cv,3,Fc)):Q=!0;
return Q});
t=_.Na(F.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Jnv(t)]]));if(F.nestedOrigins!==void 0)for(var g=_.X(F.nestedOrigins),Y=g.next();!Y.done;Y=g.next())t=_.Na(t,new Map([["origin",Y.value]]));return sbJ(J,t,q).then(function(Q){Q=ghs(Q.event);if(_.z3(Q,q8,1,Fc)){var e,r=(e=_.Hi(Q,q8,1,Fc))==null?void 0:_.Aa(e,2);r&&u.JSC$19350_logErrorEvent(lnh(r));e=_.Hi(Q,q8,1,Fc);_.Aa(e,2)===4?(Q=_.Hi(Q,q8,1,Fc),Q={statusCode:11,statusMessage:_.xB(Q,
3)}):(Q=_.Hi(Q,q8,1,Fc),Q={statusCode:12,statusMessage:_.xB(Q,3)});return Q}_.z3(Q,cv,3,Fc)?(Q=_.Hi(Q,cv,3,Fc),Q={statusCode:1,consentLanguageKeys:_.xB(Q,2)}):Q={statusCode:1};return Q}).catch(function(Q){return Q.errorCode!==void 0?{statusCode:Q.errorCode,
statusMessage:Q.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
ebJ=function(F){var q={};if(F===void 0||F===null)return q;F.getToken()!==void 0&&YyD(F.getToken())&&YyD(F.getToken()).length>0&&(q.scopes=new Set(YyD(F.getToken())));F.getToken()!==void 0&&pxD(F.getToken())&&pxD(F.getToken()).length>0&&(q.capabilities=new Set(pxD(F.getToken())));_.xB(F,3)!==void 0&&(q.consistencyKey=_.xB(F,3));F.getName()!==void 0&&F.getName()!==""&&(q.linkName=F.getName());_.Ea(F,QbC,4)&&(F=_.Yw(F,QbC,4),F=Object.assign({},_.xB(F,1)&&{userId:_.xB(F,1)},_.xB(F,2)&&{displayName:_.xB(F,
2)},_.xB(F,3)&&{email:_.xB(F,3)},_.xB(F,5)&&{username:_.xB(F,5)},_.xB(F,4)&&{profilePicture:_.xB(F,4)}),q.profile=F);return q};
ZGs=function(F,q){var t=F.flowParams,u;return{serviceId:t.serviceId,sessionId:t.sessionId,currentFlow:F.currentFlow,googleScopesString:q,linkingSessionSerialized:F.session.serialize(),consentLanguageKeys:t.consentLanguageKeys,callerState:F.callerState,dynamicUrlParameters:t.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(u=t.partnerConfigMinReadTimestamp)==null?void 0:u.serialize()}};
iGT=function(F){var q=F.googleScopes!==void 0?Array.from(F.googleScopes).join(","):"";Rbw(ZGs(F,q));q=rnC(F);return q===null?Promise.resolve(Nav):q.start().then(function(t){var u,J=(u=t.link)==null?void 0:u.consistencyKey;return t.statusCode===1&&F.googleScopes!==void 0&&F.googleScopes.size>0&&J!==void 0?(u=F.flowParams,wxs(u.serviceId,u.sessionId,F.googleScopes,J,u.galService,F.config,t)):t})};
krs=function(F){var q=rnC(F);return q===null?Promise.resolve(tu({statusCode:7,statusMessage:"Failed to create flow object"},F.callerState)):q.complete().then(function(t){var u,J=(u=t.link)==null?void 0:u.consistencyKey;return t.statusCode===1&&F.googleScopes!==void 0&&F.googleScopes.size>0&&J!==void 0?(u=F.flowParams,wxs(u.serviceId,u.sessionId,F.googleScopes,J,u.galService,F.config,t)):tu(t,F.callerState)},function(t){return tu({statusCode:12,
statusMessage:"Failed to complete the flow: "+t.message},F.callerState)})};
wxs=function(F,q,t,u,J,g,Y){return Eh9(J,{serviceId:F,sessionId:q,googleScopes:t,consistencyKey:u}).then(function(){return Y},function(Q){return J.deleteLink({serviceId:F,
sessionId:q,accountLinkingEntryPoint:g.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+Q.message}},function(e){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+e.message}})})};
rnC=function(F){switch(F.currentFlow){case 1:var q=F.flowParams;F=_.Yw(F.session,zbJ,1);return uI.createOAuthFlow(q,F);case 2:case 3:return q=F.flowParams,F=_.Yw(F.session,ohv,6),Ju.createStreamlinedFlow(q,F);default:return null}};
nh5=function(F,q){F===2&&(F=3);var t=0;s7.indexOf(F)!==-1&&(t=s7.indexOf(F)+1);for(F=t;F<s7.length;F++)if(q.has(s7[F]))return s7[F]};
GrQ=function(F){var q=F.serviceId;var t=F.sessionId;var u=F.config;var J=F.galService;var g=F.capabilities;var Y=F.scopes;var Q=F.loginHint;var e=F.callerState;var r=F.consentLanguageKeys;var N=F.linkName;var w=F.dynamicUrlParameters;var k=F.partnerConfigMinReadTimestamp;F=u.dataUsageNoticeConfig?u.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return J.startLinkingSession({serviceId:q,sessionId:t,capabilities:g,scopes:Y,loginHint:Q,callerState:e,supportedFlows:MTw(u.supportedFlows),completionUrl:u.completionUrl,
accountLinkingEntryPoint:u.accountLinkingEntryPoint,consentLanguageKeys:r,dataUsageNoticeConfig:F,linkName:N,dynamicUrlParameters:w,partnerConfigMinReadTimestamp:k}).then(function(z){return new Taw(q,t,u,J,z,void 0,e,r,w,k)})};
AnT=function(F,q,t){var u=(new D1h).getSession(F);if(u===null)return Promise.resolve({statusCode:2});WBT(F);var J=OGw(u.linkingSessionSerialized),g=u.googleScopesString!==""&&u.googleScopesString!==void 0?new Set(u.googleScopesString.split(",")):void 0,Y=u.partnerConfigMinReadTimestampSerialized?P1w(u.partnerConfigMinReadTimestampSerialized):void 0;return x15(new Taw(F,u.sessionId,q,t,J,g,u.callerState,u.consentLanguageKeys,u.dynamicUrlParameters,Y),u.currentFlow,u.consentLanguageKeys)};
Rbw=function(F){var q=new D1h;q.storage!==null&&q.storage.set("SAVED_SESSION",F)};
WBT=function(F){var q=new D1h;if(q.storage!==null){var t=q.storage.get("SAVED_SESSION");t!==void 0&&t.serviceId===F&&q.storage.remove("SAVED_SESSION")}};
MTw=function(F){var q=new Set;F=_.X(F);for(var t=F.next();!t.done;t=F.next())t=t.value,t!==1&&vhv.has(t)&&q.add(vhv.get(t));return q};
tu=function(F,q){q!==void 0&&(F.callerState=q);return F};
Iny=function(F){switch(F){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
$1y=function(F){return new HGh(F,new m15(F))};
C1s=function(F,q){q=q===void 0?!1:q;var t=document.createElement("div");F&&(t.style.transform="scaleX(-1)");t.style.backgroundColor=q?"rgba(138,180,248,.24)":"#e8f0fe";t.style.height="4px";t.style.overflow="hidden";t.style.position="absolute";t.style.top="0";t.style.width="100%";t.style.zIndex="1500";t.setAttribute("aria-label","Loading");t.setAttribute("aria-live","polite");F=document.createElement("style");F.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
t.appendChild(F);F=bGy();F.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";F.style.left="-145.166611%";var u=ynJ(q);u.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";F.appendChild(u);t.appendChild(F);F=bGy();F.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";F.style.left="-54.888891%";q=ynJ(q);q.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
F.appendChild(q);t.appendChild(F);return t};
bGy=function(){var F=document.createElement("div");F.style.height="100%";F.style.position="absolute";F.style.transformOrigin="top left";F.style.width="100%";return F};
ynJ=function(F){var q=document.createElement("span");q.style.borderTop=F?"4px solid #669df6":"4px solid #4285f4";q.style.display="inline-block";q.style.position="absolute";q.style.width="100%";return q};
d17=function(F){return F==null?void 0:_.tOf(F).valueOf()};
hbT=function(F){var q=document.body,t=!1,u=function(){t||(t=!0,VTy(J,g),setTimeout(function(){q.removeChild(g);q.removeChild(J)},150))},J=U1D(F,getComputedStyle(q).direction==="rtl",u),g=SyJ(u);
VTy(J,g);q.appendChild(g);q.appendChild(J);window.requestAnimationFrame(function(){g.style.opacity="1";J.style.opacity="1";J.style.transform="translate(-50%, -50%) scale(1)";J.children[0].focus()})};
U1D=function(F,q,t){var u=document.createElement("div");u.style.position="fixed";u.style.alignItems="center";u.style.backgroundColor=F?"rgb(32, 33, 36)":"white";u.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";u.style.display="flex";u.style.flexDirection="column";u.style.justifyContent="center";u.style.left="50%";u.style.top="50%";u.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";u.style.zIndex="2002";document.body.clientWidth>=
660?(u.style.borderRadius="8px",u.style.minHeight="220px",u.style.maxHeight="90%",u.style.maxWidth="90%",u.style.minWidth="540px"):(u.style.height="100%",u.style.width="100%");u.setAttribute("aria-label","Error");u.setAttribute("aria-modal","true");u.setAttribute("role","alertdialog");u.addEventListener("keydown",function(g){g.key==="Escape"&&t()});
q=KB9(F,q,t);u.appendChild(BaD(q));u.appendChild(q);var J=document.createElement("img");J.src=F?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";J.style.height="72px";J.style.width="72px";J.style.color="#9aa0a6";J.setAttribute("alt","");u.appendChild(J);J=document.createElement("h1");J.textContent="Something went wrong.  Try again.";
J.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";J.style.lineHeight="24px";J.style.fontSize="16px";J.style.textAlign="center";J.style.letterSpacing="0.1px";J.style.color=F?"rgb(232,234,237)":"#3c4043";u.appendChild(J);u.appendChild(BaD(q));return u};
KB9=function(F,q,t){var u=document.createElement("button");u.style.backgroundColor="transparent";u.style.border="none";u.style.borderRadius="50%";u.style.cursor="pointer";u.style.outline="none";u.style.padding="12px";u.setAttribute("aria-label","Close dialog");u.style.position="absolute";u.style.top="0";q?u.style.right="0":u.style.left="0";u.addEventListener("focus",function(){u.style.backgroundColor=F?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
u.addEventListener("blur",function(){u.style.backgroundColor="transparent"});
u.addEventListener("mouseenter",function(){u.style.backgroundColor=F?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
u.addEventListener("mouseleave",function(){u.style.backgroundColor="transparent"});
u.addEventListener("click",t);u.addEventListener("keydown",function(J){J.key!=="Enter"&&J.key!=="Space"||t()});
q=document.createElement("img");q.src=F?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";q.style.display="block";q.style.height="24px";q.style.width="24px";q.setAttribute("alt","");u.appendChild(q);return u};
BaD=function(F){var q=document.createElement("div");q.setAttribute("tabindex","0");q.setAttribute("aria-hidden","true");q.addEventListener("focus",function(){return void F.focus()});
return q};
SyJ=function(F){var q=document.createElement("div");q.style.backgroundColor="rgba(32,33,36,0.6)";q.style.bottom="0";q.style.left="0";q.style.position="fixed";q.style.right="0";q.style.top="0";q.style.transition=" opacity 150 ms linear";q.style.zIndex="2001";q.addEventListener("click",F);return q};
VTy=function(F,q){q.style.opacity="0";F.style.opacity="0";F.style.transform="translate(-50%, -50%) scale(0.8)"};
LB5=function(F,q){F.sandbox&&F.sandbox.add&&(F.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),F.sandbox.add("allow-downloads"));F.src=q};
ge=function(F){fnT.call(this,F)};
lI=function(F,q){q=q===void 0?!1:q;this.parsedImageUrl_=null;F instanceof anD||(jb7==void 0&&(jb7=new cn7),F=jb7.parse(F.toString(),q));F=this.parsedImageUrl_=F;F.JSC$19562_parsedOptions_==void 0&&((q=F.getOptions())||(q=""),F.JSC$19562_parsedOptions_=(new F63).parse(q));fnT.call(this,F.JSC$19562_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;F=this.parsedImageUrl_;q=F.uri_.JSC$10024_port_;this.JSC$19564_domain_=F.uri_.JSC$10024_domain_+(q?":"+q:"");this.JSC$19564_query_=
this.parsedImageUrl_.uri_.JSC$10024_queryData_.toString()};
qB9=function(F){this.mode=4;this.data=F;this.parsedData=[];F=0;for(var q=this.data.length;F<q;F++){var t=[],u=this.data.charCodeAt(F);u>65536?(t[0]=240|(u&1835008)>>>18,t[1]=128|(u&258048)>>>12,t[2]=128|(u&4032)>>>6,t[3]=128|u&63):u>2048?(t[0]=224|(u&61440)>>>12,t[1]=128|(u&4032)>>>6,t[2]=128|u&63):u>128?(t[0]=192|(u&1984)>>>6,t[1]=128|u&63):t[0]=u;this.parsedData.push(t)}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))};
tpv=function(F){this.typeNumber=0;this.errorCorrectLevel=F===void 0?2:F;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
Xc=function(F,q){if(F.length==void 0)throw Error("Dk`"+F.length+"`"+q);for(var t=0;t<F.length&&F[t]==0;)t++;this.num=Array(F.length-t+q);for(q=0;q<F.length-t;q++)this.num[q]=F[q+t]};
uey=function(F,q){this.totalCount=F;this.dataCount=q};
JYv=function(){this.buffer=[];this.length=0};
sEs=function(){var F=!1;if(_.rof()){F=_.NA();var q="";_.i3y()?(q=/Windows (?:NT|Phone) ([0-9.]+)/,q=(F=q.exec(F))?F[1]:"0.0"):_.Py()?(q=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,q=(F=q.exec(F))&&F[1].replace(/_/g,".")):_.wyq()?(q=/Mac OS X ([0-9_.]+)/,q=(F=q.exec(F))?F[1].replace(/_/g,"."):"10"):_.QC(_.NA(),"KaiOS")?(q=/(?:KaiOS)\/(\S+)/i,q=(F=q.exec(F))&&F[1]):_.rof()?(q=/Android\s+([^\);]+)(\)|;)/,q=(F=q.exec(F))&&F[1]):_.ktW()&&(q=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,q=(F=q.exec(F))&&F[1]);F=
q||""}return F};
QEC=function(F,q){this.JSC$19587__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(q)for(var t in q)this.JSC$19587__htOption[t]=q[t];this.JSC$19587__htOption.useSVG&&(gMw=lj3);this.JSC$19587__android=sEs();this.JSC$19587__el=F;this._oQRCode=null;this._oDrawing=new gMw(this.JSC$19587__el,this.JSC$19587__htOption);this.JSC$19587__htOption.text&&(F=this.JSC$19587__htOption.text,this._oQRCode=new tpv(this.JSC$19587__htOption.correctLevel),Xhv(this._oQRCode,
F),q=this._oQRCode,YBD(q,!1,phh(q)),this.JSC$19587__el.title=F,this._oDrawing.draw(this._oQRCode),this.makeImage())};
eih=function(F,q,t,u,J){F.save();var g=new Path2D;g.roundRect(q,t,u*7,u*7,u*2);g.roundRect(q+u,t+u,u*5,u*5,u*1.3);g.roundRect(q+2*u,t+2*u,u*3,u*3,u);F.clip(g,"evenodd");F.fillStyle=J;F.fillRect(0,0,F.canvas.width,F.canvas.height);F.restore()};
Yt=function(F,q){if(typeof F!=="function")throw Error("Gk");return _.uu.setTimeout(function(){F()},q)};
pU=function(){};
Ri5=function(F,q,t,u,J){(new pU).debug("TestLoadImageWithRetries: "+J);if(u==0)t(!1);else{var g=J||0;u--;Z1T(F,q,function(Y){Y?t(!0):_.uu.setTimeout(function(){Ri5(F,q,t,u,g)},g)})}};
Z1T=function(F,q,t){var u=new pU;u.debug("TestLoadImage: loading "+F);var J=new Image;J.onload=function(){try{u.debug("TestLoadImage: loaded"),rYJ(J),t(!0)}catch(g){}};
J.onerror=function(){try{u.debug("TestLoadImage: error"),rYJ(J),t(!1)}catch(g){}};
J.onabort=function(){try{u.debug("TestLoadImage: abort"),rYJ(J),t(!1)}catch(g){}};
J.ontimeout=function(){try{u.debug("TestLoadImage: timeout"),rYJ(J),t(!1)}catch(g){}};
_.uu.setTimeout(function(){if(J.ontimeout)J.ontimeout()},q);
J.src=F};
rYJ=function(F){F.onload=null;F.onerror=null;F.onabort=null;F.ontimeout=null};
Nsv=function(){this.front_=[];this.back_=[]};
wh5=function(F,q){_.OP.call(this);this.delay_=new _.xW(this.JSC$19713_onTick_,0,this);_.kW(this,this.delay_);this.JSC$19711_interval_=5E3;this.nextTickTime_=0;if(typeof F==="function")q&&(F=(0,_.Pd)(F,q));else if(F&&typeof F.handleEvent==="function")F=(0,_.Pd)(F.handleEvent,F);else throw Error("ya");this.JSC$19713_listener_=F};
Qm=function(F,q,t,u,J,g,Y,Q,e,r,N,w,k,z){t=t===void 0?!1:t;u=u===void 0?function(){return""}:u;
J=J===void 0?!1:J;g=g===void 0?!1:g;Y=Y===void 0?!1:Y;Q=Q===void 0?function(){return _.NU({})}:Q;
e=e===void 0?!1:e;N=N===void 0?!1:N;w=w===void 0?!1:w;k=k===void 0?!1:k;z=z===void 0?!1:z;this.JSC$19714_pathPrefix_=F;this.defaultQueryParams_=q;this.pubsub_=new _.EV;this.reconnectTimer_=new wh5(this.safeReconnect_,this);this.JSC$19714_channel_=null;this.JSC$19714_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19714_pendingMessages_=[];this.enableAsyncTest_=t;this.JSC$19714_getXsrfToken_=u;this.useAsyncBrowserChannelHandler_=g;this.getAuthorizationHeader_=
Q;this.getAuthorizationHeaderSync_=r;this.enableCachedUpdateAuthorizationHeader_=Y;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.NU();this.enableLoungeTokenRefresh_=J;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=e;this.disableMdxAuthForNonPlaybackMessages_=N;this.disableMdxAuthForAdMessages_=w;this.enableMdxAuthForConnectionOnly_=k;this.disableMdxAuthForShortsMessages_=z;this.JSC$19714_channelOpenedCounter=new i19;this.JSC$19714_channelClosedCounter=new ka9;this.channelMessageSentCounter=
new EM9;this.JSC$19714_channelMessageReceivedCounter=new ziy;this.JSC$19714_channelErrorCounter=new oM3;this.pendingMapsOnClosedCounter=new nMC;this.undeliveredMapsOnClosedCounter=new Mpy};
el=function(F){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;F=F||document.location.href;var q=Number(_.c_(F)[4]||null)||"";q&&(this.port=":"+q);this.domain=_.FR(F)||"";F=_.NA();F.search("MSIE")>=0&&_.R_(F.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
ZF=function(F){F=F||{};this.name=F.name||"";this.id=F.id||F.screenId||"";this.token=F.token||F.loungeToken||"";this.uuid=F.uuid||F.dialId||"";this.idType=F.screenIdType||"normal"};
Tsh=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(F){var q=Math.random()*16|0;return(F=="x"?q:q&3|8).toString(16)})};
Ga5=function(F){return _.$q(F,function(q){return{key:q.id,name:q.name}})};
DsT=function(F,q){return _.vy(F,function(t){return t||q?!t!=!q?!1:t.id==q.id:!0})};
re=function(F,q){return _.vy(F,function(t){return Rr(t,q)})};
AYw=function(){var F=W6h(),q=O19();if(PLJ()){var t=F,u=_.W$C(t,q);u<0&&_.Tf_(t,-(u+1),0,q)}F=xs3(F);if(F.length==0)try{_.Nj3("remote_sid")}catch(J){}else try{_.nE("remote_sid",F.join(","),-1)}catch(J){}};
W6h=function(){var F=_.vG("yt-remote-connected-devices")||[];F.sort(_.DAv);return F};
xs3=function(F){if(F.length==0)return[];var q=F[0].indexOf("#"),t=q==-1?F[0]:F[0].substring(0,q);return _.$q(F,function(u,J){return J==0?u:u.substring(t.length)})};
vMv=function(F){_.A8("yt-remote-connected-devices",F,86400)};
O19=function(){if(Ij9)return Ij9;var F=_.vG("yt-remote-device-id");F||(F=Tsh(),_.A8("yt-remote-device-id",F,31536E3));for(var q=W6h(),t=1,u=F;_.bu(q,u);)t++,u=F+"#"+t;return Ij9=u};
H1y=function(){return _.vG("yt-remote-session-browser-channel")};
PLJ=function(){return _.vG("yt-remote-session-screen-id")};
b1v=function(F){F.length>5&&(F=F.slice(F.length-5));var q=_.$q(mss(),function(u){return u.loungeToken}),t=_.$q(F,function(u){return u.loungeToken});
_.kuu(t,function(u){return!_.bu(q,u)})&&$sy();
_.A8("yt-remote-local-screens",F,31536E3)};
mss=function(){return _.vG("yt-remote-local-screens")||[]};
$sy=function(){_.A8("yt-remote-lounge-token-expiration",!0,86400)};
N8=function(F){F||(_.Ig("yt-remote-session-screen-id"),_.Ig("yt-remote-session-video-id"));AYw();F=W6h();_.yC(F,O19());vMv(F)};
CLD=function(){yYQ();return we?!!we.get("yt-remote-use-staging-server"):!1};
yYQ=function(){if(!we){var F=_.Tj_();F&&(we=new _.Wc(F))}};
SB7=function(F,q,t,u,J){t=t===void 0?function(){return""}:t;
var g=function(){return new Qm(iI(F,"/bc"),q,!1,t,u)};
return _.E("enable_mdx_web_channel_desktop")?new dsT(function(){return new Vpy(iI(F,"/wc"),q,t)}):new Usv(g,J)};
L69=function(){var F=hiJ;K63();kt.push(F);Bsh()};
E7=function(F,q){K63();var t=fj3(F,String(q));kt.length==0?aj9(t):(Bsh(),_.B_(kt,function(u){u(t)}))};
zN=function(F){E7("CP",F)};
K63=function(){kt||(kt=_.S6("yt.mdx.remote.debug.handlers_")||[],_.uo("yt.mdx.remote.debug.handlers_",kt))};
aj9=function(F){var q=(or+1)%50;or=q;jEh[q]=F;cYD||(cYD=q==49)};
Bsh=function(){var F=kt;if(jEh[0]){var q=cYD?or:-1,t={};do t={record$jscomp$15:void 0},q=(q+1)%50,t.record$jscomp$15=jEh[q],_.B_(F,function(u){return function(J){J(u.record$jscomp$15)}}(t));
while(q!=or);jEh=Array(50);or=-1;cYD=!1}};
fj3=function(F,q){var t=(Date.now()-FWs)/1E3;t.toFixed&&(t=t.toFixed(3));var u=[];u.push("[",t+"s","] ");u.push("[","yt.mdx.remote","] ");u.push(F+": "+q,"\n");return u.join("")};
nU=function(F){_.Wv.call(this);this.JSC$19738_logName_=F;this.screens=[]};
TN=function(F){nU.call(this,"LocalScreenService");this.JSC$19745_http_=F;this.loungeTokenRefreshTimer_=NaN;M8(this);this.info("Initializing with "+qkJ(this.screens))};
GN=function(F,q){q=q===void 0?!1:q;nU.call(this,"ScreenService");this.JSC$19751_http_=F;this.disableAutomaticScreenCache_=q;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};tg3(this)};
DF=function(F,q,t){_.Wv.call(this);this.JSC$19755_logName_=t;this.JSC$19755_screenService_=F;this.receiver_=q;this.screen_=null};
i9w=function(F,q,t){t.disableCastApi?WC("Cannot initialize because disabled by Mdx config."):ut7()?Jvs(F,t)&&(scT(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?gb5(q):(window.__onGCastApiAvailable=function(u,J){u?gb5(q):(O7("Failed to load cast API: "+J),lPy(!1),scT(!1),_.Ig("yt-remote-cast-available"),_.Ig("yt-remote-cast-receiver"),X95(),q(!1))},t.loadCastApiSetupScript?_.KB(Ykv):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
p9w()>=60&&Qcv():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?eU5():p9w()>=89?Z9v():(RU9(),rv3(Nc9.map(w9T))))):WC("Cannot initialize because not running Chrome")};
X95=function(){WC("dispose");var F=PC();F&&F.dispose();_.uo("yt.mdx.remote.cloudview.instance_",null);kCw(!1);_.u03(Eb7);Eb7.length=0};
zU3=function(){return!!_.vG("yt-remote-cast-installed")};
obw=function(){var F=_.vG("yt-remote-cast-receiver");return F?F.friendlyName:null};
nbw=function(){WC("clearCurrentReceiver");_.Ig("yt-remote-cast-receiver")};
Mg9=function(){return zU3()?PC()?PC().getCastSession():(O7("getCastSelector: Cast is not initialized."),null):(O7("getCastSelector: Cast API is not installed!"),null)};
GC7=function(F,q){Tc9()?PC().setConnectedScreenStatus(F,q):O7("setConnectedScreenStatus called before ready.")};
ut7=function(){var F=_.NA().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.rd||F};
Jvs=function(F,q){var t=!1;PC()||(F=new xt(F,q),F.subscribe("yt-remote-cast2-availability-change",function(u){_.A8("yt-remote-cast-available",u);yN("yt-remote-cast2-availability-change",u)}),F.subscribe("yt-remote-cast2-receiver-selected",function(u){WC("onReceiverSelected: "+u.friendlyName);
_.A8("yt-remote-cast-receiver",u);yN("yt-remote-cast2-receiver-selected",u)}),F.subscribe("yt-remote-cast2-receiver-resumed",function(u){WC("onReceiverResumed: "+u.friendlyName);
_.A8("yt-remote-cast-receiver",u);yN("yt-remote-cast2-receiver-resumed",u)}),F.subscribe("yt-remote-cast2-session-change",function(u){WC("onSessionChange: "+DcQ(u));
u||_.Ig("yt-remote-cast-receiver");yN("yt-remote-cast2-session-change",u)}),_.uo("yt.mdx.remote.cloudview.instance_",F),t=!0);
WC("cloudview.createSingleton_: "+t);return t};
PC=function(){return _.S6("yt.mdx.remote.cloudview.instance_")};
gb5=function(F){lPy(!0);scT(!1);PC().init(!1,function(q){q?(kCw(!0),_.JTu("yt-remote-cast2-api-ready")):(O7("Failed to initialize cast API."),lPy(!1),_.Ig("yt-remote-cast-available"),_.Ig("yt-remote-cast-receiver"),X95());F(q)})};
WC=function(F){E7("cloudview",F)};
O7=function(F){E7("cloudview",F)};
lPy=function(F){WC("setCastInstalled_ "+F);_.A8("yt-remote-cast-installed",F)};
Tc9=function(){return!!_.S6("yt.mdx.remote.cloudview.apiReady_")};
kCw=function(F){WC("setApiReady_ "+F);_.uo("yt.mdx.remote.cloudview.apiReady_",F)};
scT=function(F){_.uo("yt.mdx.remote.cloudview.initializing_",F)};
Au=function(F){this.index=-1;this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(F)};
WWJ=function(){var F,q;return _.p(function(t){if(t.nextAddress==1)return(_.CdC()||_.E("use_new_nwl"))&&_.mcf().isNetworkAvailable()?t.yield(_.JD(),2):t.return();if(t.nextAddress!=3)return(F=t.yieldResult)?t.yield(poD(F),3):t.return();q=t.yieldResult;if(!q.length)return t.return();q.forEach(function(u){var J={timestamp:u.timestamp};u=u.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:u.appShellAssetLoadReport,options:J}:u.clientError?{payloadName:"clientError",payload:u.clientError,
options:J}:void 0;u&&_.IJ(u.payloadName,u.payload,u.options)});
q.length===100&&_.mI.addLowPriorityJob(WWJ);_.WA(t)})};
O9T=function(F){if(F.playerResponse){if(F=F.playerResponse,F.messages&&F.messages.length>0&&(F=F.messages.find(function(q){return!(!q||!q.mealbarPromoRenderer)}))&&F.mealbarPromoRenderer)return F.mealbarPromoRenderer}else if(F.response&&(F=F.response)&&F.overlay&&F.overlay.mealbarPromoRenderer)return F.overlay.mealbarPromoRenderer};
Pds=function(F){if(F.response){var q=F.response;if(q&&q.overlay&&q.overlay.tooltipRenderer)return q.overlay.tooltipRenderer}if(F.playerResponse&&(F=F.playerResponse,F.messages&&F.messages.length>0&&(F=F.messages.find(function(t){return!(!t||!t.tooltipRenderer)}))&&F.tooltipRenderer))return F.tooltipRenderer};
AvT=function(F){if(!xcv&&(F=F||_.bn("ZWIEBACK_PING_URLS"))&&F.length){xcv=!0;for(var q=0;q<F.length;q++)_.Kt(F[q])}};
IP7=function(F){if(_.m7.get(_.bn("PLAYER_VARS",{}),"privembed",!1)!="1"){F&&qHQ();try{vb9().then(function(){},function(){}),_.Rm(IP7,18E5)}catch(q){_.CI(q)}}};
H9y=function(){var F=_.TV(),q=F.getFlag(119),t=window.devicePixelRatio>1;document.body&&_.ju(document.body,"exp-invert-logo")&&(t&&!_.ju(document.body,"inverted-hdpi")?_.gC(document.body,"inverted-hdpi"):!t&&_.ju(document.body,"inverted-hdpi")&&_.JT(document.body,"inverted-hdpi"));q!=t&&(_.GV(0,119,t),F.save())};
mcJ=function(F){return F.filter(function(q){return"ypcGetCartEndpoint"in q||"ypcFixInstrumentEndpoint"in q})};
$cw=function(F){return F.filter(function(q){return!_.n(q,_.i7j)})};
yvv=function(F,q){var t,u,J,g,Y,Q,e;_.p(function(r){switch(r.nextAddress){case 1:t=_.b1.getInstance();u=_.oc.instance;J=_.Lp.instance;if(!J)return b97(F,u,q),r.return();_.zg(r,2);F.onLoadingCommand&&u.resolveCommand(F.onLoadingCommand);return r.yield(t.getCurrentPositionFromGeolocation(),4);case 4:g=r.yieldResult;if(!F.resolveLocationCommand){r.jumpTo(5);break}Y=t.createLocationInfo(g);return r.yield(_.aI(J,F.resolveLocationCommand,{locationInfo:Y}),6);case 6:Q=r.yieldResult;if(!Q||"error"in Q&&Q.error||
Q.errorMetadata)return b97(F,u,q),r.return();var N;if(Q==null?0:(N=Q.onResponseReceivedActions)==null?0:N.length){N=_.X(Q.onResponseReceivedActions);for(var w=N.next();!w.done;w=N.next())u.resolveCommand(w.value)}(_.n(F.onSuccessCommand,_.Fw)||_.n(F.onSuccessCommand,_.Gr))&&_.Q0(q.hostElement,"yt-navigate",{endpoint:F.onSuccessCommand,reload:!0});case 5:_.LE(r,0);break;case 2:e=_.Gg(r);if(e instanceof GeolocationPositionError&&e.code===GeolocationPositionError.PERMISSION_DENIED)return F.onDeniedCommand&&
u.resolveCommand(F.onDeniedCommand),r.return();b97(F,u,q);_.WA(r)}})};
b97=function(F,q,t){F.onFailureCommand&&(q.resolveCommand(F.onFailureCommand),_.ec(t.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
dch=function(F,q){var t=_.n(F,_.ccf);if(t&&q){F=t.videoIds||[t.videoId];var u;q=(u=_.Q0(q,"yt-lockup-requested",{videoIds:F}).detail)==null?void 0:u.returnValue;var J;t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?J=q?q:F.map(function(g){return{videoId:g,navigationEndpoint:t.videoCommand}}):q&&(J=q);
J&&(u=J.map(function(g){var Y=Object,Q=Y.assign;var e=g.navigationEndpoint;if(!_.n(e,_.Px)){var r=_.n(e,_.Fw);if(r){if(delete r.index,delete r.playlistId,r=_.n(e==null?void 0:e.commandMetadata,_.EH),r==null?0:r.url){var N=r.url;N=_.sH(N,"list");N=_.sH(N,"index");r.url=N}}else e=void 0}return Q.call(Y,{},g,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:e})}),CdT(u,t))}};
VgD=function(F){var q=_.YQ();if(F=_.n(F,_.F_C))F.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&q.clearQueue(),F.closeMiniplayer&&_.sV().resolve(_.m4).close(!0)};
Skh=function(F){Uc9(_.YQ(),F)};
hUD=function(F){var q;(F=(q=_.n(F,_.a6v))==null?void 0:q.setVideoIds)&&F.forEach(function(t){_.P9C(_.YQ(),t)})};
BcQ=function(F){KW5(_.YQ(),F)};
LW7=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(F){return!1}};
fP9=function(F){var q=["h","m","s"],t=_.C3(q);t.reverse();var u={};F=(F.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(Y){var Q=(Y.match(/[hms]/)||[""])[0];return Q?(u[Q]=parseInt(Y.match(/\d+/)[0],10),!1):!0});
for(F.reverse();F.length&&t.length;){var J=t.shift();J in u||(u[J]=parseInt(F.shift(),10))}if(F.length||u.s>59||u.m>59||u.h>9)return null;var g="";q.forEach(function(Y){u[Y]&&(g+=""+u[Y]+Y)});
return g||null};
aP9=function(F,q){var t=_.oVO(q,{},F,!0);return new Promise(function(u,J){t.listenOnce("n",function(){J(Error("rl`"+t.JSC$29426_getErrorDescription()))});
t.listenOnce("l",function(){var g=t.getResponseCode();if(g!==200)J(Error("sl`"+q+"`"+F.type+"`"+F.size+"`"+g));else try{u(JSON.parse(t.getResponseText()).encryptedBlobId)}catch(Y){J(Y)}});
t.run()})};
jc9=function(F){return F.substring(F.indexOf(":")+1,F.indexOf(";"))};
cv3=function(F){return new Promise(function(q,t){var u=new FileReader;u.onloadend=function(){try{var J=new Uint8Array(u.result);J.length<8&&t(void 0);var g=J.subarray(0,8);J="";for(var Y=0;Y<g.length;Y++)J+=("0"+g[Y].toString(16)).substr(-2);J.startsWith("ffd8ff")?q("image/jpeg"):J.startsWith("47494638")?q("image/gif"):J.startsWith("89504e470d0a1a0a")?q("image/png"):J.startsWith("424d")?q("image/bmp"):q(void 0)}catch(Q){t(Q)}};
u.onerror=t;u.readAsArrayBuffer(F)})};
Fow=function(F){return new Promise(function(q,t){var u=new Image;u.crossOrigin="anonymous";u.onload=function(){var J=document.createElement("canvas");J.width=u.naturalWidth;J.height=u.naturalHeight;var g=J.getContext("2d");if(!g)throw Error("tl");g.drawImage(u,0,0);g=jc9(F);J.toBlob(function(Y){Y?q(Y):t()},g)};
u.src=F})};
tiv=function(F,q){var t;if(((t=_.n(F,_.Px))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var u;_.Q0((u=q.hostElement)!=null?u:q,"yt-shorts-reset");_.IYE(_.sV().resolve(_.C8),F).then(function(g){qc5(g,q,F)})}else{var J;
_.RD((J=q.hostElement)!=null?J:q,[F]).then(function(g){g&&qc5(g.data,q,F)})}};
qc5=function(F,q,t){if(F){var u=_.n(F.replacementEndpoint,_.Px);if(u){F.sequenceContinuation&&(u.sequenceParams=F.sequenceContinuation);var J;_.Q0((J=q.hostElement)!=null?J:q,"yt-navigate",{endpoint:F.replacementEndpoint})}else if((F==null?void 0:F.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(F==null?0:F.watchStatus)&&_.n(F.watchStatus,_.IdO)){var g;_.Q0((g=q.hostElement)!=null?g:q,"yt-navigate",{endpoint:t})}}};
u0h=function(F){var q=_.sV().resolve(_.sb),t=_.BD.currentPageTypeSelector(q.getState())||"";q=_.BD.currentPageSubTypeSelector(q.getState())||"";t=t==="ytd-browse"&&q==="home";return _.E("web_guide_entry_enable_cache_for_non_home_pages")?(F=(F==null?void 0:F.navigationEndpoint)&&_.Tr(F.navigationEndpoint)==="home",{disableCache:t&&F}):{disableCache:t}};
JTw=function(F){if(!F)return!1;try{if(F.host&&F.host.tagName==="YT-FORMATTED-STRING"&&F.host.id==="contenteditable-textarea"||F.nodeType===Node.ELEMENT_NODE&&F.tagName==="YTD-COMMENT-INPUT")return!0}catch(q){return!1}return JTw(F.parentNode)};
vC=function(F){return F?F.tagName==="A"&&F.href&&F.classList.contains("yt-simple-endpoint"):!1};
sI9=function(F){return F?F.tagName==="IMG"&&F.classList.contains("emoji"):!1};
gm7=function(F,q,t){if(!F)return null;var u=vC(F);if(u&&t)return q=F.pathname.substring(F.pathname.indexOf("/channel/")+9),document.createTextNode("@"+q);if(u&&!t)return document.createTextNode("");if(sI9(F))return t=F.alt,F=F.dataset.emojiId,!F&&q&&(q=_.ZM(q,t))&&q.isCustomEmoji&&(F=q.emojiId),F?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+F+">"):document.createTextNode(t);u=F.cloneNode(!1);for(var J=0;J<F.childNodes.length;++J){var g=gm7(F.childNodes[J],q,t);g&&u.appendChild(g)}return u};
Ir=function(F){return F?vC(F)?F:Ir(F.lastChild):null};
lRy=function(F){return F?vC(F)?F:lRy(F.firstChild):null};
XT7=function(F){if(!F)return null;for(var q=F.previousSibling;q;)if(q.nodeType===Node.ELEMENT_NODE&&q.nodeName==="BR")q=q.previousSibling;else if(q.nodeType===Node.TEXT_NODE&&/\s+/.test(q.textContent))q=q.previousSibling;else break;(q=Ir(q))?F=q:F=(F=F.parentNode)?Ir(F.previousElementSibling):null;return F};
YcQ=function(F){if(!F)return null;for(var q=F.nextSibling;q;)if(q.nodeType===Node.ELEMENT_NODE&&q.nodeName==="BR")q=q.nextSibling;else if(q.nodeType===Node.TEXT_NODE&&/\s+/.test(q.textContent))q=q.nextSibling;else break;return(q=lRy(q))?q:YcQ(F.parentNode)};
pT3=function(F){var q=_.rI(),t=q.JSC$11331_getStartNode();if(!JTw(t.parentNode))return null;q=q.JSC$11331_getStartOffset();if(t.nodeType===Node.TEXT_NODE){var u=_.Vp(t,vC);if(u){if(F&&q===0||!F&&q===t.length)return u}else{if(F&&q===t.length)return!t||t.nodeName==="BR"||t.nextElementSibling&&_.NR(t.nextElementSibling,"display")==="block"?null:lRy(t.nextElementSibling);if(!F&&q===0)return t?Ir(t.previousElementSibling):null}}if(t.nodeType===Node.ELEMENT_NODE)if(F){if(0<=q&&q<t.childNodes.length)return lRy(t.childNodes[q])}else if(0<
q&&q<=t.childNodes.length)return Ir(t.childNodes[q-1]);return null};
QIv=function(F,q,t){if(!F)return null;if(F.nodeType===Node.TEXT_NODE)if(t){var u=XT7(F);if(u&&!/^\s+\S/.test(F.wholeText.substr(0,q)))return u}else if((u=YcQ(F))&&!/\S\s+/.test(F.wholeText.substr(q,F.wholeText.length)))return u;return F.nodeType===Node.ELEMENT_NODE?t?XT7(F.childNodes[q]):YcQ(F.childNodes[q]):QIv(F.parentNode,q,t)};
eC5=function(F){if(F.hasChildNodes())switch(F.tagName){case "DIV":case "A":case "SPAN":var q="";for(F=F.firstChild;F;F=F.nextSibling)q+=eC5(F);return q;default:return""}else switch(F.nodeType){case 3:return F.textContent;default:return""}};
Zph=function(F){switch(F){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}};
RC5=function(F){return F.map(function(q){return{settingsRadioOptionRenderer:{title:_.Yv(q.name),asideText:_.Yv(q.approximateSize),id:Zph(q.format)}}})};
NCh=function(F){if(F&&F.length!==0)return F.filter(rTT()).map(function(q){return{settingsRadioOptionRenderer:{title:q.name,asideText:q.approximateSize,id:Zph(q.formatType)}}})};
HC=function(F){if(F)return F.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
wTw=function(F,q){F=new Set(F!=null?F:[]);if(F.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(F.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(F.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(F.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(F.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(q)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
ipJ=function(F){var q=F.indexOf("(");return q!==-1?F.substring(q+1,F.length-1):F};
_.Emw=function(F,q,t,u,J){t||(t=kq9);var g;(g=_.n(t.commandMetadata,_.EH))!=null&&g.url||(t=Error("yl`"+JSON.stringify(t)),_.mH(t),t=kq9);t=_.m7.unsafeClone(t);g=_.dO(_.n(t.commandMetadata,_.EH).url,"search_query",F);_.Kr(location.href,"sv")==="1"&&(_.n(t,_.Dn).params="EgOAAgE%3D",g=_.dO(g,"sv","1"));_.n(t,_.Dn)&&(_.n(t,_.Dn).query=F);g=g.replace(/%20/g,"+");_.n(t.commandMetadata,_.EH).url=g;J=_.E("desktop_enable_entity_suggest")?{entityMid:J}:{};_.sV().resolve(_.gN).resolveCommand(t,{form:{tempData:Object.assign({},
{gs_l:q,oq:u!=null?u:F},J)}})};
zCC=function(F){switch(F){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
nm3=function(F,q,t,u,J,g){var Y=_.m7.clone(om9);Y.locale=_.bn("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;Y.report={description:J||"<empty>"};J=_.bn("SBOX_SETTINGS",{});q=q.join(",");var Q=Date.now();F={choice_cc:u,choice_id_cc:t,choices_sc:q,gl:J.REQUEST_DOMAIN,hl:J.REQUEST_LANGUAGE,query:F,time:Q};g&&(F.choice_additional_comment_cc=g);_.WRJ(Y,F)};
MiD=function(F){var q=new Map;q.set("authuser",_.bn("SESSION_INDEX","0"));return _.Na(F,q)};
Gq9=function(F){var q;return _.p(function(t){switch(t.nextAddress){case 1:if(!F||!TCJ(F))return t.return(null);q=null;switch(_.bn("INNERTUBE_CLIENT_NAME")){case "WEB":return t.jumpTo(2);case "WEB_REMIX":q=F.getPlayer()}t.jumpTo(3);break;case 2:return t.yield(F.getPlayerPromise(),4);case 4:q=t.yieldResult;t.jumpTo(3);break;case 3:return t.return(q)}})};
TCJ=function(F){return["ytd-player","ytmusic-player"].includes(String(F.tagName||"").toLowerCase())};
Do7=function(F){F=Math.round(F);return F%2?F-1:F};
Wo3=function(F){F=Math.round(F);return F%2===0?F-1:F};
OpD=function(F){var q,t,u;if(F=(q=F.createPlaylistDialogFormSchema)==null?void 0:(t=q.fieldSchemas)==null?void 0:(u=t.title)==null?void 0:u.validationSchema)for(q=[F.syncStep,F.asyncStep].filter(function(J){return J!==void 0}),q=_.X(q),t=q.next();!t.done;t=q.next()){t=t.value.rules;
if(!t)break;t=_.X(t);for(t=t.next();!t.done;t=t.next())return _.n(t.value,_.Mvv)}};
xov=function(F){var q,t,u;if(F=(q=F.createPlaylistDialogFormSchema)==null?void 0:(t=q.fieldSchemas)==null?void 0:(u=t.visibility)==null?void 0:u.validationSchema)for(q=[F.syncStep,F.asyncStep].filter(function(J){return J!==void 0}),q=_.X(q),t=q.next();!t.done;t=q.next()){t=t.value.rules;
if(!t)break;t=_.X(t);for(u=t.next();!u.done;u=t.next())if(u=_.n(u.value,P_9))return q=void 0,(q=u.translations)==null?void 0:q.visibilityNotValidErrorMessage}};
ATs=function(){var F,q;return(q=(F=_.sV().resolve(_.JU(_.qo)))==null?void 0:F())!=null?q:!1};
vm9=function(F){var q=21;if(!F)return q;q+=F.headerTitle?27:0;q+=F.headerTitle&&F.hasHeaderActionHeader?4:0;return q+=F.headerTitle&&F.headerSubtitle?16:0};
IRQ=function(F){var q=0;if(!F)return q;q+=F.hasFooterPrimaryButton||F.hasFooterSecondaryButton?48:0;q+=F.footerTrailingLabel||F.footerLeadingLabel?30:0;return q+=F.hasFooterPrimaryButton||F.hasFooterSecondaryButton||!F.footerTrailingLabel&&!F.footerLeadingLabel?0:12};
Hp9=function(F){var q=new _.EV,t=F;return{subscribe:function(u){q.subscribe("changed",u)},
dispatch:function(u,J){var g=t;u==="Touch Start"?t=Object.assign({},g,{isAnimating:!1,initialY:J.event.touches[0].clientY}):u==="Touch Move"?(u=Math.min(J.fullContentWrapperHeight,J.contentHeightMap[J.contentWrapperId]+vm9(J.header)-IRQ(J.footer)),t=Object.assign({},g,{currentY:Math.max(J.contentScrollable?-1*(g.initialY-24):0,J.event.touches[0].clientY-g.initialY),maxHeightForContentWrapper:Math.min(u,Math.max(0,(g.isFullScreen?u:J.contentWrapperHeight)-g.currentY))})):t=u==="Snap To Full Screen"?
Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:J.maxHeight}):u==="Snap To Neutral Position"?Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:J.maxHeight}):u==="Close Sheet"?Object.assign({},g,{isAnimating:!0,currentY:J.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:J.maxHeight}):g;q.publish("changed",t)}}};
moy=function(F){return _.zq(function(q){F(q);return!1})};
$oh=function(){_.sV().resolve(_.ap).closeSheet()};
bp9=function(F){var q,t,u,J,g,Y,Q,e,r,N,w;return{headerTitle:(q=F.headerTitle)==null?void 0:q.call(F),headerSubtitle:(t=F.headerSubtitle)==null?void 0:t.call(F),headerActionHeader:F.headerActionHeader,footerPrimaryButton:F.footerPrimaryButton,footerSecondaryButton:F.footerSecondaryButton,footerButtonType:(u=F.footerButtonType)==null?void 0:u.call(F),footerLeadingLabel:(J=F.footerLeadingLabel)==null?void 0:J.call(F),footerTrailingLabel:(g=F.footerTrailingLabel)==null?void 0:g.call(F),shouldShowIcons:(Y=
F.shouldShowIcons)==null?void 0:Y.call(F),skipContentClick:(Q=F.skipContentClick)==null?void 0:Q.call(F),additionalClassName:(e=F.additionalClassName)==null?void 0:e.call(F),onClosedCallback:F.onClosedCallback,focusOnClose:(r=F.focusOnClose)==null?void 0:r.call(F),isDisabled:(N=F.isDisabled)==null?void 0:N.call(F),disabledCommand:(w=F.disabledCommand)==null?void 0:w.call(F),headerFn:F.headerFn,contentFn:F.contentFn,footerFn:F.footerFn,hasHeaderFn:F.hasHeaderFn(),hasContentFn:F.hasContentFn(),hasFooterFn:F.hasFooterFn(),
hasFooterPrimaryButton:F.hasFooterPrimaryButton(),hasFooterSecondaryButton:F.hasFooterSecondaryButton(),hasHeaderActionHeader:F.hasHeaderActionHeader()}};
yT7=function(F){switch(F){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}};
C_Q=function(F){switch(F){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}};
dov=function(F){switch(F){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}};
Viv=function(F,q,t){q.forEach(function(u){_.vQ(_.sV().resolve(_.LA),u)});
_.ec(F,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",t])};
Ko5=function(F,q,t,u){var J=_.n(t,_.YA).commandLifeCycleConfig;J&&J.onStartCommand&&_.rY(F,[J.onStartCommand],q);_.V7(q);var g=_.Lp.instance;g&&_.fp(g,t)?_.aI(g,t,u).then(function(Y){if(!Y||(Y==null?0:Y.error))return Y=_.n(t,_.YA).serializedTransactionFlowLoggingParams,_.Uo(q),_.mW(new m9("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Y));_.Uo(q);return{data:Y}}).then(function(Y){_.Uo(q);
UoD(Y.data);var Q=Y.data.command;Q&&_.rY(F,[Q],q);Q=Sch(t,Y.data);if(!Q){var e=Y.data;Y=!1;if(e&&e.command&&_.n(e.command,_.wY)){var r;e=((r=_.n(e.command,_.wY))==null?void 0:r.commands)||[];for(r=0;r<e.length;r++)if(_.n(e[r],_.qnE)){Y=!0;break}}Y||_.ag('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!Q&&J&&J.onSuccessCommand?_.rY(F,[J.onSuccessCommand],q):Q&&J&&J.onFailureCommand&&_.rY(F,[J.onFailureCommand],q)},function(){_.Uo(q);
J&&J.onFailureCommand&&_.rY(F,[J.onFailureCommand],q);hCw(t)}):_.mH(Error("Kl"),"ERROR")};
BCQ=function(F,q,t){var u=[q];t&&u.push(t);return _.RD(F,u).then(function(J){var g=_.n(q,_.YA).serializedTransactionFlowLoggingParams,Y=J.data,Q=Sch(q,Y);Q?J=_.mW(new m9(Q,g)):UoD(Y);return J},function(){var J=_.n(q,_.YA).serializedTransactionFlowLoggingParams;
hCw(q);return _.mW(new m9("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",J))})};
Sch=function(F,q){F=_.n(F,_.YA).serializedTransactionFlowLoggingParams;var t=null;switch(q.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":t="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":t="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":t="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}t?_.Fe(t,F):Tjy(F);return t};
hCw=function(F){_.Fe("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.n(F,_.YA).serializedTransactionFlowLoggingParams)};
UoD=function(F){if(F.trackingParams){var q=_.yb(),t=_.b7();q&&t&&_.Bo(q,t,_.Av(F.trackingParams))}};
Lov=function(F,q,t){var u=_.Lp.instance,J=_.HS_(_.bn("YPC_MB_URL")),g=(new _.vaP).init(),Y=_.Iit(),Q=_.n(t,_.asf).languageCode;Q===void 0?_.mH(Error("Gi"),"ERROR"):_.IR([g,J]).then(function(){var e={ctk:payments.business.integration.ClientTokenFactory.createClientToken(Q,Y)};u&&_.fp(u,t)?_.aI(u,t,e).then(function(r){return{data:r}}).then(function(r){_.Q0(q,"yt-service-request-completed",r);
r.code!=="ERROR"&&(r=r.data.command)&&_.rY(F,[r],q)}):_.mH(Error("Kl"),"ERROR")})};
jIT=function(F,q,t,u){var J=_.Lp.instance;J&&_.fp(J,t)?_.aI(J,t,u).then(function(g){return{data:g}}).then(function(g){fR7(F,q,t,g)},function(){aRv(t)}):(J=_.sV().resolve(_.JU(_.CG)))&&J.requestDataForServiceEndpoint(t,u).then(function(g){fR7(F,q,t,g)},function(){aRv(t)})};
fR7=function(F,q,t,u){_.Q0(q,"yt-service-request-completed",u);if(u.code&&u.code=="ERROR")aRv(t);else{(u=u.data.commands)&&_.rY(F,u,q);var J;(F=(J=_.n(t,_.uX1))==null?void 0:J.serializedYpcPauseFlowLoggingParams)&&F&&_.X2("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",F)}};
aRv=function(F){var q;(F=(q=_.n(F,_.uX1))==null?void 0:q.serializedYpcPauseFlowLoggingParams)&&F&&_.X2("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",F,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
qOD=function(F,q,t){var u=_.Lp.instance;u&&_.fp(u,t)?_.aI(u,t).then(function(J){return{data:J}}).then(function(J){cT7(F,q,t,J)},function(){Fp3(t)}):(u=_.sV().resolve(_.JU(_.CG)))&&u.requestDataForServiceEndpoint(t).then(function(J){cT7(F,q,t,J)},function(){Fp3(t)})};
cT7=function(F,q,t,u){_.Q0(q,"yt-service-request-completed",u);u.code&&u.code=="ERROR"?Fp3(t):((u=u.data.commands)&&_.rY(F,u,q),(F=_.n(t,_.Jtz).serializedYpcResumeFlowLoggingParams)&&F&&_.X2("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",F))};
Fp3=function(F){(F=_.n(F,_.Jtz).serializedYpcResumeFlowLoggingParams)&&F&&_.X2("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",F,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
tay=function(F){F=F===void 0?{}:F;_.sV().resolve(_.Cfw).showFeedbackDialog(F.customProductData,F.feedbackContent,F.onFeedbackSubmitted,F.bucket)};
up7=function(F){F=F===void 0?{}:F;_.sV().resolve(_.Cfw).showHelpDialog(F.helpContext,F.articleId,F.productData)};
JC3=function(){up7()};
ssy=function(){tay()};
lzv=function(F,q,t){var u,J,g,Y,Q,e,r;return _.p(function(N){switch(N.nextAddress){case 1:u=_.n(F,gC9);if((J=u)==null?0:J.productId){e={productId:u.productId,bucket:u.bucket,enableAnonymousFeedback:(Q=u.enableAnonymousFeedback)!=null?Q:!0,allowNonLoggedInFeedback:!0};r={feedbackChoice:t.feedbackChoice};if(!_.E("web_collect_offline_state")){N.jumpTo(8);break}_.zg(N,9);return N.yield(Ix7(r),11)}Y={bucket:(g=u)==null?void 0:g.bucket};if(!_.E("web_collect_offline_state")){N.jumpTo(4);break}Y.customProductData=
{};_.zg(N,5);return N.yield(Ix7(Y.customProductData),7);case 7:_.LE(N,4);break;case 5:_.Gg(N);case 4:tay(Y);N.jumpTo(0);break;case 11:_.LE(N,8);break;case 9:_.Gg(N);case 8:_.zco(r),_.EYv("GFEEDBACK",r),u.productId==="5295751"&&(r.client_attestation=Number(_.bn("CATSTAT",0))),u.productId==="5295751"&&(r.client_time=Date.now()/1E3/3600),u.productId==="5295751"&&(r.original_playback_id=_.dxn||""),_.WRJ(e,r),_.WA(N)}})};
XDD=function(F){if(F=_.n(F,_.$_o)){var q={bucket:F.bucketIdentifier};F.additionalDatas&&(q.customProductData={},F.additionalDatas.forEach(function(t){if(t=t.userFeedbackEndpointProductSpecificValueData)q.customProductData[t.key]=t.value}));
tay(q)}};
YOw=function(F){var q=_.B2.getInstance();var t=_.oD("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var u=_.oD("DELETE",void 0,"Delete"),J=_.oD("CANCEL",void 0,"Cancel");t=SeQ(t,void 0,u,J,{signal:"DELETE_ALL_DOWNLOADS"});_.Kg(q,[{openPopupAction:t}],F)};
Qsv=function(){return _.p(function(F){return F.nextAddress==1?F.yield(_.sV().resolve(_.A5),2):F.yield(pDT(),0)})};
e7v=function(F){var q,t;return _.p(function(u){return u.nextAddress==1?(t=(q=_.n(F,_.UD))==null?void 0:q.targetId)?u.yield(_.sV().resolve(_.A5),3):u.jumpTo(0):u.yield(_.sV().resolve(_.x3).deleteVideo(t),0)})};
R75=function(F){var q,t;return _.p(function(u){return u.nextAddress==1?(t=(q=_.n(F,_.UD))==null?void 0:q.targetId)?u.yield(_.sV().resolve(_.A5),3):u.jumpTo(0):u.yield(ZHv(_.sV().resolve(_.x3),t),0)})};
N0v=function(F){var q,t;return _.p(function(u){return(t=(q=_.n(F,_.UD))==null?void 0:q.targetId)?u.yield(rCv(t),0):u.jumpTo(0)})};
iH9=function(){_.E("kevlar_woffle_refresh_dl_load_killswitch")||wDD()};
ECw=function(){_.E("kevlar_woffle")&&_.$h.instance&&klv()};
oC7=function(F){var q;if((q=_.n(F,_.EO))==null||!q.videoId)return!1;z75(_.sV().resolve(_.x3),_.n(F,_.EO),F.clickTrackingParams);return!0};
MaC=function(F){var q;if((q=_.n(F,_.zl))==null||!q.playlistId)return!1;nCC(_.sV().resolve(_.x3),_.n(F,_.zl),F.clickTrackingParams);return!0};
Glh=function(F){var q=_.n(F,_.dCj);(q==null?void 0:q.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(q==null?void 0:q.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||T05(_.sV().resolve(_.x3),_.n(F,_.dCj))};
Wpw=function(F){F=_.n(F,_.iu1);var q;(F==null?0:(q=F.actions)==null?0:q.length)&&DZy(F)};
xZT=function(F){var q,t;return _.p(function(u){q=_.n(F,OHC);return(t=q)!=null&&t.localWatchHistoryCommandType?u.yield(P6v(q),0):u.return()})};
AC5=function(F){setTimeout(function(){requestAnimationFrame(F)},80)};
vCv=function(F){return Object.entries(F).map(function(q){return q.join(":")}).join(";")};
HHv=function(F){var q,t,u;_.p(function(J){if(J.nextAddress==1)return J.yield(Izv(),2);q=J.yieldResult;t=_.oc.instance;switch(q){case "granted":u=F.getLocationCommand;break;case "denied":u=F.openDeniedDialogAction;break;case "prompt":u=F.openCollectionDialogAction;break;default:u=F.openCollectionDialogAction}u&&t.resolveCommand(u);_.WA(J)})};
Izv=function(){var F,q;return _.p(function(t){if(t.nextAddress==1)return F="prompt",navigator.permissions?t.yield(navigator.permissions.query({name:"geolocation"}),3):t.jumpTo(2);t.nextAddress!=2&&(q=t.yieldResult,F=q.state);return t.return(F)})};
$Z9=function(){_.p(function(F){return F.yield(_.mZv(),0)})};
bH9=function(){var F,q,t;return _.p(function(u){if(u.nextAddress==1)return F=_.sV().resolve(_.da),F?u.yield(_.aI(F,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.bz(Error("Nl")),u.return(void 0));if(q=u.yieldResult){if(q.errorMetadata)return _.bz(Error("Ol`"+q.errorMetadata.status+"`"+q.error)),u.return(void 0);t=q.datasyncIds;_.UA3=t.length;return u.return(t)}_.bz(Error("Pl"));return u.return(void 0)})};
yC3=function(){bH9().then(function(F){F&&(Xov(F),Dpv(F),FV5(F),$pw(F))})};
C65=function(F){_.mI.addLowPriorityJob(function(){var q,t,u,J,g;return _.p(function(Y){switch(Y.nextAddress){case 1:if(_.E("ytidb_clear_optimizations_killswitch")){Y.jumpTo(2);break}q=_.TQ("clear");if(q.startsWith("V")&&q.endsWith("||")){var Q=[q];Xov(Q);Dpv(Q);FV5(Q);$pw(Q);return Y.return()}t=qfv();u=bjJ();return Y.yield(WVJ(),3);case 3:return J=Y.yieldResult,Y.yield(YHD(),4);case 4:if(g=Y.yieldResult,!(t||u||J||g))return Y.return();case 2:F.isNetworkAvailable()?yC3():F.listenOnce("publicytnetworkstatus-online",
yC3),_.WA(Y)}})})};
$t=function(F){F={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.FK(F)}}}};_.oc.instance&&_.oc.instance.resolveCommand(F)};
dZQ=function(F){if(F){var q=_.DP();_.OX(q,3854,void 0,{layer:0,parentLayer:4});switch(F){case 1:var t=238708;break;case 2:t=238715;break;case 3:t=238710;break;case 6:t=238709}t&&(F=_.GC(q,{veType:t}))&&_.Ah(q,F)}};
Vaw=function(F){if(F){var q=_.DP();_.OX(q,3854,void 0,{layer:0,parentLayer:4});switch(F){case 1:var t=238714;break;case 2:t=238711;break;case 8:t=238709;break;case 7:t=238713;break;case 3:case 4:case 5:t=238712}t&&(F=_.GC(q,{veType:t}))&&_.Ah(q,F)}};
UZy=function(F){switch(F.latencyType){case 0:_.bN("consent_primitive_flow");_.y0("cpit",F.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.y0("cpist",F.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.y0("cprtif",F.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.y0("cprtli",F.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.y0("cprt",F.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.y0("cpdt",F.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.y0("cpjct",F.timestampEpochMillis,"consent_primitive_flow")}};
FTh=function(F,q){var t,u,J,g,Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S,K;return _.p(function(h){switch(h.nextAddress){case 1:_.zg(h,2);(u=(t=_.n(F,SO7))==null?void 0:t.serializedConsentRequest)||(u=(J=_.n(F,h77))==null?void 0:J.serializedConsentRequest);u&&(g=Kp9(_.f3(u)));if(g===void 0)return h.return();Y=B0T(g);Y.latencyCallback=UZy;q&&LpT(Y,function(){q.then(function(c){c.pauseVideo();(new fzy).increment()})});
return((Q=_.n(F,SO7))==null?void 0:Q.consentAction)==="CONSENT_ACTION_PREWARM"||((e=_.n(F,h77))==null?void 0:e.consentAction)==="CONSENT_ACTION_PREWARM"?h.yield(azy(Y),5):h.yield(jss(Y),6);case 6:r=h.yieldResult;N=_.MJ(r,bI);if(N===1){if(((w=_.Hi(r,ym,1,bI))==null?void 0:_.Aa(w,1))===1||((k=_.Hi(r,ym,1,bI))==null?void 0:_.Aa(k,1))===2||((z=_.Hi(r,ym,1,bI))==null?void 0:_.Aa(z,1))===3)_.n(F,h77)?$t(_.oD("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
$t(_.oD("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));dZQ((T=_.Hi(r,ym,1,bI))==null?void 0:_.Aa(T,1),_.XN(r,cCv,3,_.YW()))}else N===2?(((P=CU(r))==null?void 0:_.Aa(P,1))===5?_.n(F,h77)?$t(_.oD("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):$t(_.oD("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((v=CU(r))==null?void 0:_.Aa(v,1))===1||((H=CU(r))==null?void 0:_.Aa(H,1))===4?$t(_.oD("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((d=CU(r))==null?void 0:_.Aa(d,1))===7&&((a=g)==null?void 0:(S=_.Yw(a,de,4))==null?void 0:_.Aa(S,4))!==1&&$t(_.oD("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Vaw((K=CU(r))==null?void 0:_.Aa(K,1))):$t(_.oD("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));h.jumpTo(5);break;case 5:_.LE(h,0);break;case 2:_.Gg(h),$t(_.oD("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.WA(h)}})};
txT=function(){if(!qo7.has("Worker")){qo7.set("Worker",!0);var F={api:"BROWSER_API_WEB_WORKER"};F.available="Worker"in window?!0:!1;_.IJ("apiTest",F)}};
uf9=function(F){return typeof F==="undefined"?"-1":String(Math.ceil(F/1048576))};
lM5=function(F,q){Jis(new s4h(_.n(q,gih).addToken,_.n(q,gih).commonToken)).then(function(){_.Q0(F,"yt-invoke-instrument-manager-action-completed")},function(t){_.Q0(F,"yt-invoke-instrument-manager-action-error",t)})};
XZw=function(){var F,q;return(q=(F=window).matchMedia)==null?void 0:q.call(F,"(prefers-reduced-motion: reduce)").matches};
Yoy=function(F){var q=_.sV().resolve(_.JU(_.yf));if(q&&q.isAnyTransitionEnabled){var t={};q.viewTransitionCoordinator.registerElement(F,(t.slide="miniplayer-page-transition",t["lockup-to-watch"]="miniplayer-page-transition",t["learning-journey"]="miniplayer-page-transition",t))}};
pZC=function(F,q,t){return{horizontalAlignment:F.x+t.width/2<q.width/2?"west":"east",verticalAlignment:F.y+t.height/2<q.height/2?"north":"south"}};
eu7=function(F,q,t,u,J){J=J===void 0?new _.bQ(0,0):J;F=Q4J(F,q,t,u);return new _.bQ(F.x+J.x,F.y+J.y)};
Q4J=function(F,q,t,u){return new _.bQ(F==="west"?16:t.width-u.width-16,q==="north"?16:t.height-u.height-16)};
Zwv=function(F,q){var t=0;F&&(t+=76);q&&(t+=285);return t};
Ruh=function(F){return _.C4(F)};
riv=function(F){var q=1;F=F.split(":");for(var t=[];q>0&&F.length;)t.push(F.shift()),q--;F.length&&t.push(F.join(":"));return t};
NIT=function(F){var q=new _.kD;return _.mc(q,11,F)};
wZy=function(F){var q={};F=F.getAllResponseHeaders().split("\r\n");for(var t=0;t<F.length;t++)if(!_.YP(F[t])){var u=riv(F[t]),J=u[0];u=u[1];if(typeof u==="string"){u=u.trim();var g=q[J]||[];q[J]=g;g.push(u)}}return _.m7.map(q,function(Y){return Y.join(", ")})};
aG=function(F,q){return F.JSC$9789_xhr_?F.JSC$9789_xhr_.getResponseHeader(q):null};
iwv=function(F,q){if(F.isDisposed())throw Error("Ea");F.fR.iq("n");var t=_.VO(F.fR,function(){return F.zX1([q.m0,q.eJp,q.kR7,q.yHQ])},"n");
F.fR.fjp(t.length);F.fR.nq();return t};
Vm=function(F,q,t){Array.isArray(t)||(t=[String(t)]);_.F8C(F.JSC$10024_queryData_,q,t);return F};
klv=function(){var F=_.$h.instance;_.p(function(q){return F.deferredInstallPrompt?q.yield(F.deferredInstallPrompt.prompt(),0):q.jumpTo(0)})};
kJD=function(F,q,t){if(_.VC(F))_.B_(F,q,t);else for(F=_.ZWr(F);;){var u=F.next();if(u.done)break;q.call(t,u.value,void 0,F)}};
Eis={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}"]};
Eis={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 zuw=function(F,q){var t=[];kJD(q,function(u){try{var J=_.Zt.prototype.getWrapper.call(this,u,!0)}catch(g){if(g=="Storage: Invalid value was encountered")return;throw g;}J===void 0?t.push(u):_.efE(J)&&t.push(u)},F);
return t},oiw=function(F,q){zuw(F,q).forEach(function(t){_.Zt.prototype.remove.call(this,t)},F)},nih=function(F){var q=_.qX;
q._minimumZ=Math.max(q._minimumZ,F)},Mxv=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],TI3=function(F,q){_.sP(F.vm);F.vm=q},GJD=function(F,q,t,u){F.setState(5);
var J=!!F.hC1&&Mxv.includes(_.FR(F.hC1)||"");try{var g=new _.Ur({program:q,globalName:t,kF9:{disable:!_.E("att_web_record_metrics")||!_.E("att_skip_metrics_for_cookieless_domains_ks")&&J,lu:"aGIf"}});g.fD9.then(function(){F.setState(6);u&&u(q)});
TI3(F,g)}catch(Y){F.setState(7),Y instanceof Error&&_.bz(Y)}},DRs=function(F,q,t,u,J,g){var Y=Y===void 0?"trayride":Y;
t?(F.setState(2),_.KB(_.AG(t),function(){if(window[Y])GJD(F,u,Y,J);else{F.setState(3);var Q=_.eno(t),e=document.getElementById(Q);e&&(_.gmP(Q),e.parentNode.removeChild(e));_.bz(new _.D0("BL:ULB",t))}},g)):q?(g=_.nr("SCRIPT"),q instanceof _.FY?_.tK(g,q):g.textContent=q,g.nonce=_.cS(document),document.head.appendChild(g),document.head.removeChild(g),window[Y]?GJD(F,u,Y,J):(F.setState(4),_.bz(new _.D0("BL:ULBJ")))):_.bz(new _.D0("BL:ULV"))},WT3=function(){this.state=1;
this.vm=null;this.hC1=void 0};
_.l=WT3.prototype;_.l.initialize=function(F,q,t,u){this.hC1=u;if(F.program){var J;u=(J=F.interpreterUrl)!=null?J:null;if(F.interpreterSafeScript)J=_.W63(F.interpreterSafeScript);else{var g;J=(g=F.interpreterScript)!=null?g:null}F.interpreterSafeUrl&&(u=_.$w(F.interpreterSafeUrl).toString());DRs(this,J,u,F.program,q,t)}else _.bz(Error("lf"))};
_.l.isInitialized=function(){return!!this.vm};
_.l.getState=function(){return this.state};
_.l.isLoading=function(){return this.state===2};
_.l.invoke=function(F){F=F===void 0?{}:F;var q;this.vm?q=iwv(this.vm,{m0:F}):q=null;return q};
_.l.dispose=function(){TI3(this,null);this.setState(8)};
_.l.setState=function(F){this.state=F};
var OwJ=function(F,q){return F.vm.snapshot(q)},PBv=function(F,q){var t=_.YE("botguard_async_snapshot_timeout_ms",3E3);
q=q===void 0?{}:q;t=t===void 0?3E3:t;return F.vm?new Promise(function(u,J){var g=!1,Y=_.mI.addJob(function(){g=!0;J(Error("mf"))},1,t);
F.vm?OwJ(F,{m0:q}).then(function(Q){_.mI.cancelJob(Y);g||u(Q)}).catch(function(Q){_.mI.cancelJob(Y);
g||J(Q)}):(_.mI.cancelJob(Y),u(null))}):Promise.resolve(null)},xRv=["att/log"],kq9;
kq9={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var AiJ={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},viJ=function(F,q){return _.Mp(F,{mode:"readwrite",enableRetries:!0},function(t){return _.VGq(t,q,"settingEntity")})},IM7=function(F,q,t){return _.Mp(F,{mode:"readonly",
enableRetries:!0},function(u){return _.T_j(u,q,t)})},Hwv=function(F){if(!F.storage)return!1;
a:{if(F.storage){try{var q=F.storage.get("TLPQtimestamp")}catch(t){}F=Number(q);if(!isNaN(F))break a}F=void 0}return F?Date.now()-F<864E5:!1},mRJ=function(F){if(F.storage){try{var q=F.storage.get("TLPQindex")}catch(t){}F=Number(q);
if(!isNaN(F))return F}},$R9=function(F,q){F.queueProxy&&q.forEach(function(t){if(t.videoId&&t.trackingParams&&F.queueProxy instanceof _.q4){var u=_.yb();
F.queueProxy.attributionData.set(t.videoId,{enqueueingVe:_.Av(t.trackingParams).getAsJson(),enqueueingCsn:u?u:void 0,clientEnqueueingTimeMs:Math.floor((0,_.gB)()).toString()})}})},bwy=function(F){var q=_.guj(F);
q!=F.currentSnapState_&&(F.currentSnapState_=q,F.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},U7=function(F){this.JSC$13148_networkManager_=F;
this.partCallbacks_=[]};
U7.prototype.getCacheKeyForEndpoint=function(F){return _.D$f(F,!1)};
U7.prototype.onPartsCallback_=function(F){this.partCallbacks_.forEach(function(q){F&&q(F)})};
var Sl=function(F,q,t){U7.call(this,F);this.player_=q;this.autoplayData_=t};
_.M(Sl,U7);Sl.prototype.getCacheKeyForEndpoint=function(F){return _.D$f(F,!!this.autoplayData_)};
Sl.prototype.getTempData=function(F,q){q=q.timeBeforeNextVideo;F={itct:F.clickTrackingParams,lact:_.X1(),pbis:q,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(F.autonav=1);return F};
Sl.prototype.getXhrParams=function(F){return Object.assign({pbj:"prefetch"},F)};
Sl.prototype.getParams=function(F){F={frags:F.fragmentsRequested.join(",")};_.E("kevlar_droppable_prefetchable_requests")&&(F.prefetch=1);return F};
var yih=function(F){F.playerEvents_.forEach(function(q){F.player.removeEventListener(q.eventName,q.callback)});
F.playerEvents_.length=0},hu=function(F,q,t){this.player=F;
this.JSC$13158_taskManager=q;this.prefetchDelay=t;this.completionResolver_=null;this.playerEvents_=[]};
hu.prototype.start=function(){var F=this;this.completionResolver_=_.ji();_.Hr(this.completionResolver_.promise,function(){yih(F);F.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var CBv=function(F,q,t){F.player.addEventListener(q,t);F.playerEvents_.push({eventName:q,callback:t})},dRT={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},Vxv={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},URs=function(F,q,t){hu.call(this,F,q,t);this.cueId_="playbackTrigger-"+Math.random()};
_.M(URs,hu);
URs.prototype.prepareTrigger=function(F){var q=this,t=this.player.getDuration(),u=this.player.getVideoData(),J=u.isLive&&u.hasProgressBarBoundaries;if(J&&u.progressBarEndPositionUtcTimeMillis){var g=u.progressBarEndPositionUtcTimeMillis/1E3;isNaN(g)||(t=g)}var Y=0;this.prefetchDelay>=0?J?u.progressBarStartPositionUtcTimeMillis&&(u=u.progressBarStartPositionUtcTimeMillis/1E3,isNaN(u)||(Y=u+this.prefetchDelay)):Y=this.prefetchDelay:Y=t+this.prefetchDelay;J?this.player.addUtcCueRange(this.cueId_,Y,t):
this.player.addCueRange(this.cueId_,Y,t);_.Hr(F.promise,function(){q.player.removeCueRange(q.cueId_)});
CBv(this,"onCueRangeEnter",function(Q){Q==q.cueId_&&F.resolve(t-Y)})};
var Sov=function(F,q){F.fragmentConfiguration_[q].requiredKeys.every(function(t){return!!F.prefetchedData_[t]})&&(F.validatedFragments_.push(q),q=F.missingFragments_.indexOf(q),q!==-1&&F.missingFragments_.splice(q,1))},huC=function(F){F.prefetchedFragments_.forEach(function(q){Sov(F,q)})},KTD=function(F,q,t){this.pageFragments_=F;
this.prefetchedFragments_=q;this.fragmentConfiguration_=Vxv;this.prefetchedData_=t;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;huC(this)},BIT=function(){},LTv=function(F){this.JSC$13172_playlistManager_=F};
_.M(LTv,BIT);LTv.prototype.getPrefetchEndpoint=function(){return this.JSC$13172_playlistManager_.getAutoplayEndpoint()};
var fMQ=function(F){this.autonavEndpoints_=F};
_.M(fMQ,BIT);fMQ.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var aM5=function(F,q,t,u,J){this.autonavEndpoints=F;this.foregroundTrigger=q;this.backgroundTrigger=t;this.pageType=u;this.isInPlaylist=J},j4s=function(F,q){if(F.webPrefetchData&&F.webPrefetchData.navigationEndpoints&&F.webPrefetchData.navigationEndpoints.length){F=F.webPrefetchData.navigationEndpoints;
var t=_.n(F[0],_.Fw);if(t.watchEndpointSupportedPrefetchConfig&&t.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var u=t.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;t=u.playbackRelativeSecondsPrefetchCondition;t=typeof t==="number"&&Math.abs(t)<q.videoDuration?t:void 0;u=u.countdownUiRelativeSecondsPrefetchCondition;u=typeof u!=="number"||_.E("prefetch_job_config_cleanup_ks")&&q.inPlaylist?void 0:u;if(typeof u==="number")return new aM5(F,q.makeUpNextTrigger(u),q.makePlaybackTrigger(u),
"watch",q.inPlaylist);if(typeof t==="number")return new aM5(F,q.makePlaybackTrigger(t),null,"watch",q.inPlaylist)}}},ci5=function(F){return F.prefetchJobConfig_.backgroundTrigger?_.UK(_.YwA)()==0?F.prefetchJobConfig_.backgroundTrigger:F.prefetchJobConfig_.foregroundTrigger:F.prefetchJobConfig_.foregroundTrigger},F4v=function(F){_.Pr(document,"visibilitychange",F.onVisibilityChange_,!1,F)},KU=function(F){U7.call(this,F)};
_.M(KU,U7);KU.prototype.getCacheKeyForEndpoint=function(F){return U7.prototype.getCacheKeyForEndpoint.call(this,F)};
KU.prototype.getTempData=function(){return{}};
KU.prototype.getXhrParams=function(F){return F};
KU.prototype.getParams=function(){return{}};
var qLC=function(F,q,t){var u=F.prefetchDelay*1E3;if(Math.abs(u)>q)t.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var J=u,g=q-u;u<0&&(J=q+u,g=Math.abs(u));var Y=F.JSC$13158_taskManager.addJob(function(){t.resolve(g/1E3)},10,J);
t.promise.thenCatch(function(){F.JSC$13158_taskManager.cancelJob(Y)})}},tNT=function(F,q,t){hu.call(this,F,q,t)};
_.M(tNT,hu);tNT.prototype.prepareTrigger=function(F){var q=this;CBv(this,"onAutonavCoundownStarted",function(t){qLC(q,t,F)})};
var u95=function(F){F.pendingPrefetchJob_&&(F.pendingPrefetchJob_.cancel(),F.pendingPrefetchJob_=null)},JXv=function(F,q,t){if(!F.triggeredTargets.has(q)){var u=_.FJv(F,q);
u.action=t;_.jHE(F,q,u)}},sLv=function(F){_.y_x();
_.oxq("cpt")&&_.bz(Error("lh"));_.uu.requestAnimationFrame(function(){_.uu.setTimeout(function(){_.y0("cpt");var q=_.V0("vpl"),t=_.V0("cpt");q&&t&&_.y0("ol",Math.max(q,t))})});
try{_.y0("fr_s"),F()}catch(q){_.mH(q)}_.uu.requestAnimationFrame(function(){_.y0("bcp")})},gfs=function(F,q){F.serviceEndpointHandlers.push(q)},lev=function(F,q){q=F.pendingPages_.indexOf(q);
q>-1&&F.pendingPages_.splice(q,1)},XOv=function(F,q){var t=_.pqe.indexOf(q);
t>-1&&_.pqe.splice(t,1);F.targetPage_==q?(F.abort(),_.e6n(F)):lev(F,q)},YLT=function(F,q,t,u){q={challenge:q};
t&&(q.webResponse=t);return _.uW(F.innertubeTransportService,q,_.Jn(xRv),u)},pOD=function(F,q,t){if(!q.challenge)throw Error("oi");
if(q.botguardData&&q.botguardData.program){var u=new WT3;u.initialize(q.botguardData,function(){PBv(u,{atr_challenge:q.challenge}).then(function(J){if(!J)throw Error("pi");return YLT(F,q.challenge,J,t)}).catch(function(J){_.bz(J);
return YLT(F,q.challenge,void 0,t)})},void 0)}else YLT(F,q.challenge,void 0,t)},QL9=function(F,q,t){var u={};
q.ids&&(u.ids=[].concat(_.mZ(q.ids)));q.engagementType&&(u.engagementType=q.engagementType);return _.uW(F.innertubeTransportService,u,_.Jn(_.VDd),t).then(function(J){if(!J)throw new _.D0("GetAttestationChallenge returned falsy");pOD(F,J,t)}).thenCatch(function(J){_.mH(J)})},eXs=function(F,q,t){return new _.iz(function(u,J){var g;
return _.p(function(Y){if(Y.nextAddress==1){var Q=Y.yield,e=q.engagementType,r=q.ids,N={};r=_.X(r!=null?r:[]);for(var w=r.next();!w.done;w=r.next())w=w.value,w.encryptedVideoId?N.encryptedVideoId=w.encryptedVideoId:w.externalChannelId?N.externalChannelId=w.externalChannelId:w.commentId?N.commentId=w.commentId:w.externalOwnerId?N.externalOwnerId=w.externalOwnerId:w.artistId?N.artistId=w.artistId:w.playlistId?N.playlistId=w.playlistId:w.externalPostId?N.externalPostId=w.externalPostId:w.shareId&&(N.shareId=
w.shareId);return Q.call(Y,Udy(e,N),2)}g=Y.yieldResult;if(!g.challenge)return _.bz(Error("qi")),QL9(F,q,t).then(u,J),Y.return();Q=g;e={challenge:Q.challenge};e.webResponse=Q.webResponse;e.engagementType=q.engagementType;e.ids=q.ids;_.uW(F.innertubeTransportService,e,_.Jn(xRv),t).then(u,J);_.WA(Y)})})},KW5=function(F,q){var t,u,J,g;
_.p(function(Y){if(Y.nextAddress==1){t=_.n(q,_.tjC);if(!(t&&t.listId&&F.response&&F.response.playingVideoId)||F.listId!==t.listId)return Y.return();F.index===void 0&&(F.index=0);return Y.yield(_.XYL(F.JSC$12900_playlistNetworkManager,t.listId,F.index,F.response.playingVideoId),2)}u=Y.yieldResult;if(!u)return Y.return();J=u.playlistId;g=u.playlistPanelRenderer;F.setPlaylistData(J,g,u.autoplayRenderer);_.WA(Y)})},ZZJ=function(F,q,t){var u=F.getParams(t),J=_.$Zo(q,u),g=F.getTempData(q,t);
g.endpoint=JSON.stringify(q);_.E("enable_unknown_lact_fix_on_html5")&&(_.sV().resolve(_.PT),g.lact=_.X1());var Y={headers:{"X-YouTube-STS":_.bn("STS"),"x-youtube-csoc":1}};_.JV(J,g);return new _.iz(function(Q,e){var r=F.getXhrParams(u),N;_.E("kevlar_cache_on_ttl_player")&&(N=_.VY.instance);N&&_.Psd(N,q)?_.bbf(N,q,g,window.location.href).then(function(w){w?Q(w):e()},e):_.gSv(F.JSC$13148_networkManager_,q,r,F.onPartsCallback_.bind(F),Y).then(function(w){w?Q(w):e()},e)})},RXJ=function(F,q){F.triggerPromise_=
q.start();
F.triggerPromise_.then(function(t){var u=F.prefetchEndpointProvider_.getPrefetchEndpoint();if(u){var J=dRT[F.prefetchJobConfig_.pageType].prefetchedFragments;F.prefetchRequestPromise_=ZZJ(F.JSC$13184_networkPrefetchRequest_,u,{fragmentsRequested:J,timeBeforeNextVideo:t});F.prefetchResponseCacheKey_=F.JSC$13184_networkPrefetchRequest_.getCacheKeyForEndpoint(u);F4v(F);F.prefetchRequestPromise_.then(function(g){F.storePrefetchedDataCallback_(F.prefetchResponseCacheKey_,g);if(_.E("web_prefetch_preload_video")&&
J.length===1&&J[0]==="pl"&&g&&!g.playerAds&&!g.adPlacements){var Y=_.n(u,_.Px),Q=Y!=null,e={raw_player_response:g,watch_endpoint:Y};(g=_.sV().resolve(Q?_.Uiv:_.Qg))&&u&&g.then(function(r){Q&&_.E("web_queue_preload_video")?(e.prefer_gapless=!0,r.queueNextVideo(e)):r.preloadVideoByPlayerVars(e)})}})}})},BC=function(F,q,t,u){this.prefetchEndpointProvider_=F;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=q;this.prefetchJobConfig_=t;this.JSC$13184_networkPrefetchRequest_=u;this.prefetchResponseCacheKey_=null};
BC.prototype.enqueue=function(){this.triggerPromise_||(RXJ(this,ci5(this)),_.Ic(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
BC.prototype.resolve=function(){this.cancel()};
BC.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.");F4v(this)};
BC.prototype.onVisibilityChange_=function(){var F=this;_.UK(_.YwA)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){F.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||RXJ(this,ci5(this))};
var rXy=function(F,q,t,u,J){q&&(q==null?0:q.videoId)&&t&&t.entries&&_.E("kevlar_enable_shorts_prefetch_in_sequence")&&(u95(F),q=t.entries.map(function(g){var Y;return(Y=_.n(g.command,_.Px))==null?void 0:Y.videoId}).indexOf(q.videoId),t=t.entries[q+1],t!=null&&t.command&&!_.n(t==null?void 0:t.command,_.FZ)&&(u=new aM5([t.command],new URs(u,_.mI,1),null,"shorts",!1),F.pendingPrefetchJob_=new BC(new fMQ(u.autonavEndpoints),function(){return!1},u,new KU(J)),F.pendingPrefetchJob_.enqueue()))},Nmh=function(F,
q,t,u,J,g){var Y=_.kA.getInstance();
if(!_.E("block_all_player_prefetch_requests")){u95(F);var Q=!!t.getPlaylistId(),e=t.getVideoData().isLive&&t.getVideoData().hasProgressBarBoundaries;if((Y.getState()==2||Q||e)&&(!t.getVideoData().isLive||e)){Y={inPlaylist:Q,videoDuration:t.getDuration(),makeUpNextTrigger:function(N){return new tNT(t,_.mI,N)},
makePlaybackTrigger:function(N){return new URs(t,_.mI,N)}};
var r=j4s(q,Y);r&&(F.pendingPrefetchJob_=new BC(r.isInPlaylist?new LTv(J):new fMQ(r.autonavEndpoints),function(N,w){w=new KTD(dRT[r.pageType].pageFragments,dRT[r.pageType].prefetchedFragments,w);return _.Vkv(w)?(F.prefetchCache_.set(N,w),!0):!1},r,new Sl(u,t,g,J)),F.pendingPrefetchJob_.enqueue())}}},wOs=function(){var F=_.YQ();
F.signals.parkOrScheduleJob(function(){var q=F.storage;if(q.storage)if(Hwv(q)){var t=q.getPlaylistId();q=mRJ(q);t=!!t&&q!==void 0}else q.clear(),t=!1;else t=!1;if(t){t=F.pageManager.isOnWatch();a:{var u=F.storage;if(u.storage&&Hwv(u)&&(q=u.getPlaylistId(),u=mRJ(u),q&&u!==void 0)){t={recoverPlaylistCommand:{listId:q,index:u,openMiniplayer:!t,openListPanel:t,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}t=void 0}t&&_.Kg(F.JSC$12900_actionRouter,[t],null)}},0,"ma")},iZw=function(F,q,t,u,J,g){var Y=
_.r0(7111);
_.PQ(F.JSC$18298_screenManager,Y,g?_.Av(g):void 0);_.Ah(F.JSC$18298_screenManager,Y,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:u,offlineId:q,offlineabilityFormatType:t,isDefaultFormatType:J==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:J}})},kx3=function(F,q,t,u,J){var g,Y,Q,e,r;
return _.p(function(N){if(N.nextAddress==1)return N.yield(F.JSC$18298_playerApiPromise,2);g=N.yieldResult;iZw(F,q,t,"OFFLINE_OBJECT_TYPE_PLAYLIST",u,J);if(Q=_.APO[F.entityTypeMap.listEntityType])r={},Y=(r[Q]={maximumDownloadQuality:(e=t)!=null?e:void 0},r);return N.yield(g.queueOfflineAction(q,F.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Y),0)})},EfC=function(F,q){var t,u,J,g;
return _.p(function(Y){if(Y.nextAddress==1)return Y.yield(F.JSC$18298_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3){t=Y.yieldResult;if(!t)return _.bz(new _.D0("PES is undefined")),Y.return();u=_.wj(q,"downloadStatusEntity");return Y.yield(IM7(t,u,"downloadStatusEntity"),3)}J=Y.yieldResult;return Y.return((g=J)==null?void 0:g.downloadState)})},zX3=function(F,q,t,u,J){var g,Y,Q,e,r,N;
return _.p(function(w){switch(w.nextAddress){case 1:return w.yield(F.JSC$18298_playerApiPromise,2);case 2:g=w.yieldResult;iZw(F,q,t,"OFFLINE_OBJECT_TYPE_VIDEO",u,J);if(Q=_.APO[F.entityTypeMap.singleEntityType])r={},Y=(r[Q]={maximumDownloadQuality:(e=t)!=null?e:void 0},r);return w.yield(EfC(F,q),3);case 3:N=w.yieldResult;if(N!=="DOWNLOAD_STATE_USER_DELETED"){w.jumpTo(4);break}return w.yield(F.deleteVideo(q),4);case 4:return w.yield(g.queueOfflineAction(q,F.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
Y),0)}})},ofv=function(F,q,t,u,J){return _.p(function(g){return g.nextAddress==1?g.yield(F.deleteVideo(q,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):g.yield(zX3(F,q,t,u,J),0)})},nfw=function(F,q,t){var u,J;
return _.p(function(g){if(g.nextAddress==1)return g.yield(F.JSC$18298_playerApiPromise,2);u=g.yieldResult;J=_.wj(q,"mainVideoDownloadStateEntity");return g.yield(u.updateDownloadState(J,t),0)})},rCv=function(F){var q=_.sV().resolve(_.x3);
return _.p(function(t){if(t.nextAddress==1)return q.previousDownloadStateForVideo[F]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&q.previousDownloadStateForVideo[F]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?t.jumpTo(2):t.yield(q.resumeVideoDownload(F),2);if(t.nextAddress!=4)return t.yield(nfw(q,F,q.previousDownloadStateForVideo[F]),4);delete q.previousDownloadStateForVideo[F];_.WA(t)})},ZHv=function(F,q){var t;
return _.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$18298_playerApiPromise,2);t=u.yieldResult;return u.yield(t.queueOfflineAction(q,F.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},pDT=function(){var F=_.sV().resolve(_.x3),q,t;
return _.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$18298_playerApiPromise,2);if(u.nextAddress!=3)return q=u.yieldResult,t={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},u.yield(q.queueOfflineAction("!*$_ALL_ENTITIES_!*$",F.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",t),3);var J=F.JSC$18298_commandHandler,g=J.resolveCommand,Y=_.oD("DELETING_ALL",void 0,"Downloads are being deleted");g.call(J,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.lC(Y)}},
popupType:"TOAST"}});_.WA(u)})},MND=function(F,q){var t,u,J,g,Y,Q;
return _.p(function(e){if(e.nextAddress==1)return e.yield(F.JSC$18298_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return t=e.yieldResult,t?e.yield(IM7(t,_.v5,"downloadsPageViewConfigurationEntity"),3):(_.bz(new _.D0("PES is undefined")),e.return());J=(u=e.yieldResult)!=null?u:{};Q=(Y=(g=J)==null?void 0:g.downloadsUpsellBannerVisibility)!=null?Y:{};return Q.visibleWithConnection?e.yield(q.refreshAllStaleEntities(0),0):e.jumpTo(0)})},TmJ=function(F){var q,t;
return _.p(function(u){if(u.nextAddress==1)return u.yield(F.JSC$18298_prefStorage,2);q=u.yieldResult;return u.return((t=q)==null?void 0:t.get("sdois"))})},Gxh=function(F){var q,t,u,J,g,Y;
return _.p(function(Q){if(Q.nextAddress==1)return Q.yield(F.JSC$18298_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3){q=Q.yieldResult;if(!q)return _.bz(new _.D0("PES is undefined")),Q.return();t=_.wj("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return Q.yield(IM7(q,t,"settingEntity"),3)}u=Q.yieldResult;return Q.return((Y=(J=u)==null?void 0:(g=J.settingOptionValue)==null?void 0:g.boolValue)!=null?Y:!1)})},DFw=function(F,q){var t,u,J,g;
return _.p(function(Y){switch(Y.nextAddress){case 1:return((t=q)==null?void 0:t.formatType)===void 0?Y.return():Y.yield(F.JSC$18298_prefStorage,2);case 2:u=Y.yieldResult;if(u===void 0)return Y.return();if(((J=q)==null?void 0:J.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return Y.yield(u.set("lmqf",q.formatType),8);if(((g=q)==null?void 0:g.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){Y.jumpTo(0);break}return Y.yield(u.set("lmqf",q.formatType),6);case 6:return Y.yield(u.set("lmqflst",
Math.floor((0,_.gB)())),0);case 8:return Y.yield(u.remove("lmqflst"),0)}})},W45=function(F){var q,t;
return _.p(function(u){switch(u.nextAddress){case 1:return u.yield(F.JSC$18298_prefStorage,2);case 2:q=u.yieldResult;if(!q){u.jumpTo(3);break}return u.yield(q.get("lmqflst"),4);case 4:if(t=u.yieldResult,t!==void 0)return u.return(t);case 3:return u.return(0)}})},OZT=function(F){var q,t;
return _.p(function(u){switch(u.nextAddress){case 1:return u.yield(F.JSC$18298_prefStorage,2);case 2:q=u.yieldResult;if(q===void 0){u.jumpTo(3);break}return u.yield(q.get("lmqf"),4);case 4:if(t=u.yieldResult,t!==void 0)return u.return(t);case 3:return u.return("SD")}})},nCC=function(F,q,t){var u,J,g,Y,Q,e,r,N;
_.p(function(w){switch(w.nextAddress){case 1:return w.yield(DFw(F,(u=q)==null?void 0:u.actionParams),2);case 2:J=q.playlistId;if(!J)return w.return();if(q.action==="ACTION_ADD")return((Y=q.actionParams)==null?0:Y.formatType)?w.yield(kx3(F,J,q.actionParams.formatType,(N=q.actionParams)==null?void 0:N.settingsAction,t),0):w.yield(F.offlineWebClientEligibility,14);if(q.action==="ACTION_REMOVE_WITH_PROMPT"){var k=F.JSC$18298_commandHandler,z=k.resolveCommand,T=_.bn("INNERTUBE_CLIENT_NAME");var P=T===
"WEB_REMIX"?_.oD("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.oD("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var v=T==="WEB_REMIX"?[_.oD("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];T=T==="WEB_REMIX"?_.oD("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.oD("DELETE",void 0,"Delete");var H=_.oD("CANCEL",void 0,"Cancel");P=SeQ(P,v,T,H,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:J});z.call(k,{openPopupAction:P});return w.return()}if(q.action===
"ACTION_REMOVE")return w.yield(ZHv(F,J),0);if(q.action!=="ACTION_SYNC"){w.jumpTo(0);break}return w.yield(F.JSC$18298_playerApiPromise,9);case 9:return g=w.yieldResult,w.yield(g.queueOfflineAction(J,F.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return Q=w.yieldResult,w.yield(OZT(F),15);case 15:return e=w.yieldResult,w.yield(W45(F),16);case 16:r=w.yieldResult,q.onAddCommand&&F.JSC$18298_commandHandler.resolveCommand(q.onAddCommand,{form:{preferredFormatType:e,
offlineWebClientEligibility:Q,lastOfflineQualitySettingsSavedMs:r.toString()}}),w.jumpTo(0)}})},z75=function(F,q,t){var u,J,g,Y,Q,e,r,N,w,k,z,T,P,v;
_.p(function(H){switch(H.nextAddress){case 1:return H.yield(DFw(F,(u=q)==null?void 0:u.actionParams),2);case 2:J=q.videoId;if(!J)return H.return();if(q.action==="ACTION_REMOVE_WITH_PROMPT"){var d=F.JSC$18298_commandHandler,a=d.resolveCommand,S=_.bn("INNERTUBE_CLIENT_NAME");var K=S==="WEB_REMIX"?_.oD("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.oD("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var h=S==="WEB_REMIX"?[_.oD("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];S=S==="WEB_REMIX"?_.oD("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.oD("DELETE",void 0,"Delete");var c=_.oD("CANCEL",void 0,"Cancel");K=SeQ(K,h,S,c,{signal:"DELETE_DOWNLOAD",targetId:J});a.call(d,{openPopupAction:K});return H.return()}if(q.action==="ACTION_ADD")return((k=q.actionParams)==null?0:k.formatType)?H.yield(zX3(F,J,q.actionParams.formatType,(v=q.actionParams)==null?void 0:v.settingsAction,t),0):H.yield(F.offlineWebClientEligibility,23);if(q.action==="ACTION_RETRY")return H.yield(OZT(F),
19);if(q.action==="ACTION_PAUSE")return H.yield(F.pauseVideoDownload(J),0);if(q.action==="ACTION_RESUME")return H.yield(F.resumeVideoDownload(J),0);if(q.action!=="ACTION_REMOVE"){H.jumpTo(0);break}return H.yield(EfC(F,J),13);case 13:return g=H.yieldResult,F.previousDownloadStateForVideo[J]=(Y=g)!=null?Y:"DOWNLOAD_STATE_UNKNOWN",H.yield(nfw(F,J,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(F.previousDownloadStateForVideo[J]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&F.previousDownloadStateForVideo[J]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){H.jumpTo(15);break}return H.yield(F.pauseVideoDownload(J),15);case 15:d=_.oD("DELETED_VIDEO",void 0,"Video deleted from downloads.");a=_.oD("UNDO_ACTION",void 0,"Undo");K=_.oD("CLOSE",void 0,"Close");Q={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.lC(d),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.lC(a),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:J}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:d+" "+a}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:J}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:K}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};F.JSC$18298_commandHandler.resolveCommand(Q);
H.jumpTo(0);break;case 19:e=H.yieldResult;e==="UNKNOWN_FORMAT_TYPE"&&(e="SD");r="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((N=q.actionParams)==null?0:N.formatType)e=q.actionParams.formatType,r=(w=q.actionParams)==null?void 0:w.settingsAction;return H.yield(ofv(F,J,e,r,t),20);case 20:return H.return();case 23:return z=H.yieldResult,H.yield(OZT(F),24);case 24:return T=H.yieldResult,H.yield(W45(F),25);case 25:P=H.yieldResult,q.onAddCommand&&F.JSC$18298_commandHandler.resolveCommand(q.onAddCommand,
{form:{preferredFormatType:T,offlineWebClientEligibility:z,lastOfflineQualitySettingsSavedMs:P.toString()}}),H.jumpTo(0)}})},PZ3=function(F,q){var t,u,J,g,Y,Q,e;
return _.p(function(r){if(r.nextAddress==1)return r.yield(F.JSC$18298_persistentStorePromiseAccessor(),2);t=r.yieldResult;if(!t)return _.bz(new _.D0("PES is undefined")),r.return();if((u=q)==null||!u.settingItemId)return r.return();J=q;g=J.settingItemId;Y=J.boolValue;Q=_.wj(g,"settingEntity");e={key:Q,settingOptionValue:{boolValue:Y}};return r.yield(viJ(t,e),0)})},xFw=function(F,q){var t,u,J,g,Y,Q,e;
return _.p(function(r){switch(r.nextAddress){case 1:return r.yield(F.JSC$18298_prefStorage,2);case 2:return t=r.yieldResult,u=_.TV(),r.yield(F.JSC$18298_persistentStorePromiseAccessor(),3);case 3:return J=r.yieldResult,t?J?r.yield(t.get("sdois"),4):(_.bz(new _.D0("PES is undefined")),r.return()):(_.bz(new _.D0("prefStorage is undefined")),r.return());case 4:g=r.yieldResult;Q=(Y=q)==null?void 0:Y.boolValue;Q===void 0||_.E("kevlar_set_sd_enabled_flag_killswitch")||_.GV(0,197,!0);g===void 0&&Q===void 0&&
(Q=!1);if(Q===void 0){r.jumpTo(0);break}return r.yield(t.set("sdois",Q),6);case 6:return _.E("kevlar_set_sd_enabled_flag_killswitch")||(_.GV(0,196,Q),u.save()),e={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:Q},r.yield(PZ3(F,e),0)}})},AXw=function(F,q,t){var u,J,g,Y,Q;
return _.p(function(e){switch(e.nextAddress){case 1:return e.yield(TmJ(F),2);case 2:return u=e.yieldResult,e.yield(xFw(F,t),3);case 3:return e.yield(TmJ(F),4);case 4:return J=e.yieldResult,g=J!==u,e.yield(Gxh(F),5);case 5:Y=e.yieldResult&&!_.E("kevlar_modern_downloads_page");if((Q=!J&&!Y)||g)return e.yield(q.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);e.jumpTo(0)}})},wDD=function(){var F=_.sV().resolve(_.x3),
q;
_.p(function(t){switch(t.nextAddress){case 1:return t.yield(F.JSC$18298_playerApiPromise,2);case 2:q=t.yieldResult;if(!_.E("kevlar_force_refresh_smart_downloads")){t.jumpTo(3);break}return t.yield(q.refreshAllStaleEntities(0),4);case 4:return t.return();case 3:return t.yield(q.refreshAllStaleEntities(),5);case 5:return t.yield(AXw(F,q),6);case 6:if(_.E("enable_download_pep_for_premium_countries_web"))return t.yield(MND(F,q),0);t.jumpTo(0)}})},T05=function(F,q){var t,u;
_.p(function(J){switch(J.nextAddress){case 1:return J.yield(F.JSC$18298_playerApiPromise,2);case 2:t=J.yieldResult;switch((u=q)==null?void 0:u.settingItemId){case "SMART_DOWNLOADS_ENABLED":return J.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return J.jumpTo(4)}J.jumpTo(0);break;case 3:return J.yield(AXw(F,t,q),6);case 6:J.jumpTo(0);break;case 4:return J.yield(PZ3(F,q),7);case 7:J.jumpTo(0)}})},vfh=function(F,q){var t,u,J;
return _.p(function(g){if(g.nextAddress==1)return g.yield(F.JSC$18298_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3){t=g.yieldResult;if(!t)return _.bz(new _.D0("PES is undefined")),g.return(!1);if(!q)return g.return(!1);u=_.wj(q,"mainVideoEntity");return g.yield(IM7(t,u,"mainVideoEntity"),3)}J=g.yieldResult;return g.return(J!==void 0)})},DZy=function(F){var q=_.sV().resolve(_.x3),t,u,J,g,Y,Q,e,r,N,w,k;
_.p(function(z){switch(z.nextAddress){case 1:return z.yield(q.JSC$18298_playerApiPromise,2);case 2:t=z.yieldResult;J=(u=F)==null?void 0:u.actions;if(!J)return z.return();g=_.X(J);Y=g.next();case 3:if(Y.done){z.jumpTo(0);break}Q=Y.value;r=e=void 0;if(!(((e=Q)==null?0:e.entityKey)&&((r=Q)==null?0:r.actionType))){z.jumpTo(4);break}N=_.ez(Q.entityKey);w=N.entityId;k=N.entityType;return z.yield(t.queueOfflineAction(w,k,Q.actionType),4);case 4:Y=g.next(),z.jumpTo(3)}})},IeC=function(F,q){var t,u,J,g,Y;
return _.p(function(Q){if(Q.nextAddress==1)return Q.yield(F.JSC$18298_prefStorage,2);if(Q.nextAddress!=3)return(t=Q.yieldResult)?Q.yield(t.get("psi"),3):Q.return();u=Q.yieldResult;Y={isPaused:q,lastSyncTimestamp:(g=(J=u)==null?void 0:J.lastSyncTimestamp)!=null?g:"0"};return Q.yield(t.set("psi",Y),0)})},P6v=function(F){var q=_.sV().resolve(_.x3),t,u,J,g,Y,Q,e,r;
return _.p(function(N){switch(N.nextAddress){case 1:return N.yield(q.JSC$18298_playerApiPromise,2);case 2:t=N.yieldResult;J=((u=F)==null?void 0:u.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((Q=F)==null?void 0:Q.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":g="!*$_ALL_ENTITIES_!*$";Y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return N.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return N.jumpTo(4)}N.jumpTo(5);break;case 3:return N.yield(IeC(q,J),6);case 6:N.jumpTo(5);break;case 4:return N.yield(vfh(q,(e=F)==null?void 0:e.videoId),7);case 7:N.yieldResult&&(g=(r=F)==null?void 0:r.videoId,Y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");N.jumpTo(5);break;case 5:if(g&&Y)return N.yield(t.queueOfflineAction(g,"videoPlaybackPositionEntity",Y),0);N.jumpTo(0)}})},HZ3=function(F,q){var t;
q!==1||((t=F.currentPersistentToast)==null?0:t.isOpened())?F.openToast():F.currentPersistentToast=void 0},mFJ=function(F,q){var t;
return(t=F.transitionTasksMap.get(q))!=null?t:[]},$F7=function(F,q){var t=[];
F.elementTasksMap.forEach(function(u){(u=u.get(q))&&t.push(u)});
return t},bZC=function(F,q,t,u,J){J=J===void 0?{}:J;
var g=q.defaultViewTransitionOptions;return Object.assign({},g,J,{beforeTransition:function(){u.forEach(function(r){r.beforeTransition()});
var Y;(Y=g.beforeTransition)==null||Y.call(g);var Q,e;(e=(Q=J).beforeTransition)==null||e.call(Q);t.forEach(function(r){r.beforeTransition()})},
afterTransition:function(){u.forEach(function(r){r.afterTransition()});
var Y;(Y=g.afterTransition)==null||Y.call(g);var Q,e;(e=(Q=J).afterTransition)==null||e.call(Q);t.forEach(function(r){r.afterTransition()})},
ignoredErrors:F.config.ignoredErrors})},yX9=function(F,q,t){F.transitionTasksMap.has(q)?F.transitionTasksMap.get(q).push(t):(F=new _.D0("Transition task registered for unknown transition type",q),_.mH(F))},CZ3=function(F,q,t){if(F.transitionTasksMap.has(q)){var u=F.transitionTasksMap.get(q).filter(function(J){return J!==t});
F.transitionTasksMap.set(q,u)}},dFT=function(F,q){var t=mFJ(F,q);
t=_.X(t);for(var u=t.next();!u.done;u=t.next())u=u.value,u.runOnce&&CZ3(F,q,u);F.elementTasksMap.forEach(function(J,g){J.forEach(function(Y,Q){Y.runOnce&&q===Q&&(J.delete(Q),J.size===0&&F.elementTasksMap.delete(g))})})},VNs=function(F,q,t){var u,J,g,Y,Q,e,r,N,w;
_.p(function(k){if(k.nextAddress==1){if(F.config.disableAllTransitions)return k.return(q());if((u=t)==null||!u.transitionType)return k.return(_.vRC(q,Object.assign({},(J=t)==null?void 0:J.viewTransitionOptions,{ignoredErrors:F.config.ignoredErrors})));g=t;Y=g.transitionType;Q=g.viewTransitionOptions;e=F.config.transitionConfigs.get(Y);if(!e)return k.return(q());r=mFJ(F,Y);N=$F7(F,Y);w=_.vRC(q,bZC(F,e,r,N,Q));return k.yield(w,2)}dFT(F,Y);_.WA(k)})},UF3=function(){var F,q,t,u;
return _.p(function(J){if(J.nextAddress==1)return F=navigator,(q=F.storage)!=null&&q.persisted?J.yield((t=F.storage)==null?void 0:t.persisted(),2):J.return("PERSISTED_STATE_NOT_SUPPORTED");u=J.yieldResult;return J.return(u?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},SLT=function(){var F,q,t,u;
return _.p(function(J){if(J.nextAddress==1)return F=navigator,(q=F.storage)!=null&&q.persist?J.yield((t=F.storage)==null?void 0:t.persist(),2):J.return("PERSISTED_STATE_NOT_SUPPORTED");u=J.yieldResult;return J.return(u?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},hXC=function(){var F,q;
return _.p(function(t){switch(t.nextAddress){case 1:return F="PERSISTED_STATE_NOT_SUPPORTED",_.zg(t,2),t.yield(UF3(),4);case 4:F=t.yieldResult;if(F!=="PERSISTED_STATE_NOT_GRANTED"){t.jumpTo(5);break}return t.yield(SLT(),6);case 6:F=t.yieldResult;case 5:_.LE(t,3);break;case 2:q=_.Gg(t),q instanceof Error&&_.mH(q);case 3:return _.IJ("persistentStorageStateChecked",{persistedState:F}),t.return(F)}})},K49=function(F,q){var t=[],u=!1;
q=_.X(q);for(var J=q.next();!J.done;J=q.next()){J=F.moduleRegistry[J.value];var g=void 0,Y=void 0;((g=J)==null?0:g.isFetching)&&((Y=J)==null?0:Y.resolver)?(t.push(J.resolver.promise),u=!0):(J=new _.i1,J.resolve(void 0),t.push(J.promise))}return u?Promise.all(t):void 0},BmT=function(F,q,t){if(F.isAnyTransitionEnabled){var u={beforeTransition:function(){t(!0);
q.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){q.style.viewTransitionName&&(q.style.viewTransitionName="",t(!1))}};
yX9(F.viewTransitionCoordinator,"slide",u);yX9(F.viewTransitionCoordinator,"lockup-to-watch",u);yX9(F.viewTransitionCoordinator,"watch-next-appears",u);yX9(F.viewTransitionCoordinator,"learning-journey",u)}},L4s=function(F,q){F.isBrowseTransitionEnabled?VNs(F.viewTransitionCoordinator,q,{transitionType:"slide"}):(q(),Promise.resolve())},fev=function(F,q){F.isLockupToWatchTransitionEnabled?VNs(F.viewTransitionCoordinator,q,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){F.registeredLockupThumbnail=void 0;F.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(q(),Promise.resolve())},ae3=function(F,q){F.isLockupToWatchTransitionEnabled?VNs(F.viewTransitionCoordinator,q,{transitionType:"watch-next-appears"}):(q(),Promise.resolve())},jLT=function(F,q){F.isLearningJourneyTransitionEnabled?VNs(F.viewTransitionCoordinator,q,{transitionType:"learning-journey"}):(q(),Promise.resolve())},cXy=function(F,q,t){if(F.isInitialized()){var u=
bV(t),J=u==="watch";
u=u==="shorts";var g=bV(q)==="watch";if(J)g||(F.backgroundPageData=q),F.watchPipMode&&g||F.deactivate(t.endpoint);else if(u){if(bV(q)!=="shorts"){var Y;(Y=F.getPlayerElement())==null||Y.pause()}}else g&&!F.watchPipMode&&(KOs(q,t)?(F.watchWhileMode&&_.SP9(F,!1),_.br9(F,q)):F.isMiniplayerActive()&&F.watchWhileMode&&F.deactivate());g&&_.Kgw(F);F.shortsPipMode&&!u&&(window.focus(),F.deactivate());if(F.pictureInPictureEnabled())if(u&&F.shortsPipEnabled||J&&F.watchPipEnabled)_.NwC(F.handleMediaSessionPipActivation);
else if(!F.isMiniplayerActive()&&(F.shortsPipEnabled||F.watchPipEnabled)&&window.documentPictureInPicture&&_.Wy()&&_.Ro$("Chromium")>=120){F=_.r2u().mediaSession;try{F.setActionHandler("enterpictureinpicture",null)}catch(Q){}}}},Fcv=function(F,q){var t,u;
_.p(function(J){if(J.nextAddress==1){if(!F||!F.navigationEndpoint)return J.return();_.$A().lockupActivation=!0;var g;q?g=_.FK(_.oD("QUEUE",void 0,"Queue")):g=F.longBylineText;u=(t=g)&&F.title?{miniplayerTitle:F.title,miniplayerSubtitle:t,playlistData:null}:void 0;return J.yield(_.c2C(_.sV().resolve(_.m4),F.navigationEndpoint,!0,u),2)}_.$A().userActivation=!0;_.WA(J)})},Uc9=function(F,q){var t,u,J,g,Y,Q;
_.p(function(e){if(e.nextAddress==1){t=_.n(q,_.q5w);if(!t||!t.listId)return e.return();F.index=t.index||F.index||0;u=F.response&&F.response.playingVideoId||void 0;return e.yield(_.XYL(F.JSC$12900_playlistNetworkManager,t.listId,F.index,u),2)}J=e.yieldResult;if(!J)return e.return();g=J.playlistId;Y=J.playlistPanelRenderer;!F.queueProxy&&g&&Y&&g.startsWith("TLPQ")&&(F.queueProxy=new _.q4(F.JSC$12900_playlistNetworkManager,g,F.setPlaylistData.bind(F),F.clearQueue.bind(F),_.kkM(Y),F.storage));if(t.openMiniplayer&&
(Q=_.Epo(Y))&&!F.pageManager.isOnWatch()){var r=Q,N=t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";F.isMiniplayerActive()?F.openToast(r):Fcv(r,N)}F.setPlaylistData(g,Y,J.autoplayRenderer);_.WA(e)})},CdT=function(F,q){var t=_.YQ();
t.index===void 0&&(t.index=0);t.temporaryItems.push.apply(t.temporaryItems,_.mZ(F));if((q.videoId||q.videoIds)&&t.index!==void 0&&q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!t.queueProxy){var u=[];if(t.response){var J=_.sV().resolve(_.m4).isMiniplayerActive();if(t.response.playlistPanelRenderer&&t.response.playlistId&&!t.response.playlistId.startsWith("TLPQ")){if(t.pageManager.isOnWatch()||J)u=_.kkM(t.response.playlistPanelRenderer)}else t.response.playingVideoId&&!q.openMiniplayer?u.push(t.response.playingVideoId):
J&&t.response.playingVideoId&&q.openMiniplayer&&u.push(t.response.playingVideoId)}t.queueProxy=new _.q4(t.JSC$12900_playlistNetworkManager,"",t.setPlaylistData.bind(t),t.clearQueue.bind(t),u,t.storage);t.queueProxy.JSC$12846_setCurrentIndex(t.index)}t.queueProxy.addVideos(q.videoIds||[q.videoId],q)}$R9(t,F);t.response&&_.p8(t,_.QY(t,t.response.autoplayRenderer));t.pageManager.isOnWatch()?t.isMiniplayerActive()&&t.openToast(F[0]):(F=F[0],q=q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",t.isMiniplayerActive()?
t.openToast(F):Fcv(F,q))},qa5=function(F){var q=_.Ke(F);
if(q=="object"||q=="array"){if(typeof F.clone==="function")return F.clone();if(typeof Map!=="undefined"&&F instanceof Map)return new Map(F);if(typeof Set!=="undefined"&&F instanceof Set)return new Set(F);q=q=="array"?[]:{};for(var t in F)q[t]=qa5(F[t]);return q}return F},LU=function(F,q){return _.Qjy(_.kB(F,q,void 0,_.ip))},fU=function(F,q){return _.J9(_.kB(F,q,void 0,_.ip))},ar=function(F,q){return _.AEA(_.kB(F,q,void 0,_.ip))},jl=function(F,q){return _.kB(F,q,void 0,_.ip,_.hE)},ts9=_.pl(function(F,
q,t){if(F.nextWireType_!==0)return!1;
_.Qy(q,t,_.yZ(F.decoder_,_.Yv3));return!0},_.r$,_.Ss),urT=_.pl(function(F,q,t,u){if(F.nextWireType_!==0)return!1;
_.n4(q,t,u,_.yZ(F.decoder_,_.Yv3));return!0},_.r$,_.Ss),Ja9=_.pl(function(F,q,t){if(F.nextWireType_!==1)return!1;
var u=F.decoder_;F=_.dd(u);u=_.dd(u);F=_.bJ(F,u);_.Qy(q,t,F);return!0},_.Peo,_.bP$),sC3=_.pl(function(F,q,t){if(F.nextWireType_!==5)return!1;
_.Qy(q,t,_.dd(F.decoder_));return!0},function(F,q,t){q=_.Rdt(q);
q!=null&&(_.eO(F,t,5),_.Zq(F.encoder_,q))},_.HPt),gBJ=_.pl(function(F,q,t){if(F.nextWireType_!==2)return!1;
F=_.zAP(F);_.Qy(q,t,F===_.T1()?void 0:F);return!0},_.Hl_,_.dIu),lf7=_.nnv(function(F,q,t){if(F.nextWireType_!==0&&F.nextWireType_!==2)return!1;
q=_.FI(q,q[_.sv]|0,t);F.nextWireType_==2?_.o$W(F,Ruh,q):q.push(_.C4(F.decoder_));return!0},function(F,q,t){q=_.onf(_.J9,q,!0);
if(q!=null&&q.length){t=_.OPP(F,t);for(var u=0;u<q.length;u++)_.Dyo(F.encoder_,q[u]);_.P23(F,t)}},_.V3C),Xi9=_.pl(function(F,q,t,u){if(F.nextWireType_!==0)return!1;
_.n4(q,t,u,_.C4(F.decoder_));return!0},_.$y$,_.V3C),Ya5=function(F){return F.previousElementSibling!==void 0?F.previousElementSibling:_.t5n(F.previousSibling,!1)},pis=function(F,q){var t=[];
for(q=q||0;q<F.length;q+=2)_.SCC(F[q],F[q+1],t);return t.join("&")},QCD=function(F,q){var t=arguments.length==2?pis(arguments[1],0):pis(arguments,1);
return _.UDO(F,t)},P1w=_.oK(_.HZ),et7=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(et7,_.le);et7.prototype.getTypeName=function(){return _.xB(this,1).split("/").pop()};
et7.prototype.getValue=function(){var F=_.kB(this,2);if(Array.isArray(F)||F instanceof _.le)throw Error("W");return _.oC(this,2)};
var i19=function(){var F=_.Rb();this.JSC$9910_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.ZW("channel_type"))};
i19.prototype.increment=function(F){this.JSC$9910_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",F)};
var ka9=function(){var F=_.Rb();this.JSC$9913_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.ZW("channel_type"))};
ka9.prototype.increment=function(F){this.JSC$9913_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",F)};
var ziy=function(){var F=_.Rb();this.JSC$9916_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.ZW("channel_type"))};
ziy.prototype.increment=function(F){this.JSC$9916_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",F)};
var EM9=function(){var F=_.Rb();this.JSC$9919_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
EM9.prototype.increment=function(){this.JSC$9919_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var oM3=function(){var F=_.Rb();this.JSC$9922_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.ZW("channel_type"),_.ZW("error_type"))};
oM3.prototype.increment=function(F,q){this.JSC$9922_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",F,q)};
var nMC=function(){var F=_.Rb();this.JSC$9925_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
nMC.prototype.increment=function(){this.JSC$9925_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Mpy=function(){var F=_.Rb();this.JSC$9928_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Mpy.prototype.increment=function(){this.JSC$9928_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var fzy=function(){var F=_.Rb();this.JSC$9934_streamzService=F;F.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
fzy.prototype.increment=function(){this.JSC$9934_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Z4w=function(F){return F.getCount&&typeof F.getCount=="function"?F.getCount():_.VC(F)||typeof F==="string"?F.length:_.m7.getCount(F)},Rt3=function(F,q){if(typeof F.every=="function")return F.every(q,void 0);
if(_.VC(F)||typeof F==="string")return Array.prototype.every.call(F,q,void 0);for(var t=_.Sdx(F),u=_.li(F),J=u.length,g=0;g<J;g++)if(!q.call(void 0,u[g],t&&t[g],F))return!1;return!0},ra5=function(F,q,t,u){var J=new _.qU(null);
F&&_.Xz(J,F);q&&_.Yd(J,q);t&&_.pn(J,t);u&&_.QV(J,u);return J},Ndv=function(){var F=_.dN&&_.R_(_.sew,10)>=0,q;
if(q=_.WD_)q=_.R_(_.JDC,10)>=0;var t=_.rd&&_.R_(_.sew,85)>=0;return _.QZ||F||q||t},wi7=function(F){var q=_.M5n(F);
return q&&Ndv()?-F.scrollLeft:q&&_.Sr(F,"overflowX")!="visible"?F.scrollWidth-F.clientWidth-F.scrollLeft:F.scrollLeft},i45=function(F,q){q=Math.max(q,0);
_.M5n(F)?Ndv()?F.scrollLeft=-q:F.scrollLeft=F.scrollWidth-q-F.clientWidth:F.scrollLeft=q},llJ=0,eST=!1;
C5.prototype.set=function(F){this.relativeTimeStart_=F};
C5.prototype.reset=function(){this.set(_.sa())};
C5.prototype.get=function(){return this.relativeTimeStart_};
var k3J=null,EBy=function(){k3J||(k3J=new C5)},ztw=function(){k3J||(k3J=new C5)};
_.gd(ztw,EBy);_.l=RSy.prototype;_.l.JSC$11340_buffer_="";_.l.set=function(F){this.JSC$11340_buffer_=""+F};
_.l.append=function(F,q,t){this.JSC$11340_buffer_+=String(F);if(q!=null)for(var u=1;u<arguments.length;u++)this.JSC$11340_buffer_+=arguments[u];return this};
_.l.clear=function(){this.JSC$11340_buffer_=""};
_.l.getLength=function(){return this.JSC$11340_buffer_.length};
_.l.toString=function(){return this.JSC$11340_buffer_};
var oBJ=function(){var F={type:"unit",style:"narrow"};this.listType_=F&&F.type?F.type:"conjunction";this.listStyle_=F&&F.style?F.style:"long";this.listSymbols_=Eis;F=0;switch(this.listStyle_){case "short":F=1;break;case "narrow":F=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[F];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[F];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[F];this.listEndPattern_=
this.listSymbols_.AND_END[F];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[F];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[F];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[F];this.listEndPattern_=this.listSymbols_.OR_END[F];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[F],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[F],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[F],this.listEndPattern_=this.listSymbols_.UNIT_END[F]}};
oBJ.prototype.format=function(F){return nBy(this,F)};
var nBy=function(F,q){var t=q.length;switch(t){case 0:return"";case 1:return String(q[0]);case 2:return F.listTwoPattern_.replace("{0}",String(q[0])).replace("{1}",String(q[1]))}for(var u=F.listStartPattern_.replace("{0}",String(q[0])).replace("{1}",String(q[1])),J=2;J<t-1;++J)u=F.listMiddlePattern_.replace("{0}",u).replace("{1}",String(q[J]));return F.listEndPattern_.replace("{0}",u).replace("{1}",String(q[t-1]))},PN5=function(){var F={style:1};
this.style_=(F==null?void 0:F.style)||0;this.durationSymbols_=_.INr||_.L6d},Msy=function(F,q){switch(q){default:case "years":return F.durationSymbols_.YEAR;
case "months":return F.durationSymbols_.MONTH;case "weeks":return F.durationSymbols_.WEEK;case "days":return F.durationSymbols_.DAY;case "hours":return F.durationSymbols_.HOUR;case "minutes":return F.durationSymbols_.MINUTE;case "seconds":return F.durationSymbols_.SECOND}},cC=function(F,q,t){a:{t=Msy(F,t);
switch(F.style_){case 1:if(t.LONG!=void 0){F=t.LONG;break a}case 2:if(t.NARROW!=void 0){F=t.NARROW;break a}default:F=t.SHORT;break a}F=void 0}return F?(new _.w9z("{DURATION_VALUE,plural,"+F+"}")).format({DURATION_VALUE:q}):""};
PN5.prototype.format=function(F){var q=[],t=F.years,u=F.months,J=F.weeks,g=F.days,Y=F.hours,Q=F.minutes;F=F.seconds;t!=null&&q.push(cC(this,t,"years"));u!=null&&q.push(cC(this,u,"months"));J!=null&&q.push(cC(this,J,"weeks"));g!=null&&q.push(cC(this,g,"days"));Y!=null&&q.push(cC(this,Y,"hours"));Q!=null&&q.push(cC(this,Q,"minutes"));F!=null&&q.push(cC(this,F,"seconds"));return(new oBJ).format(q)};
var TdT=!1,zS7=function(F){_.Fq.call(this,F.message||F.description||F.name);this.isMissing=F instanceof dG;this.isTimeout=F instanceof _.MN&&F.errorCode=="net.timeout";this.isCanceled=F instanceof _.dI};
_.M(zS7,_.Fq);zS7.prototype.name="BiscottiError";var dG=function(){_.Fq.call(this,"Biscotti ID is missing from server")};
_.M(dG,_.Fq);dG.prototype.name="BiscottiMissingError";var VN=null,vb9=function(){try{var F=_.S6("yt.ads.biscotti.getId_");return F?F():FjT()}catch(q){return _.mW(q)}},OJ7,G3y=function(F,q){return _.pj({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:F,command:q}})},DJC=function(F){return _.pj({type:"SET_GUIDE_IS_EXPANDED",
payload:F})},WcJ=function(F){return _.pj({type:"SET_ONLINE_STATUS",
payload:F})},O4y=function(F,q){return _.pj({type:"SET_TRANSCRIPTION_STATE",
payload:{high:F,low:q}})},PpQ=function(F){return _.pj({type:"SET_OVERLAY_STATE",
payload:F})},xJv=0,Aa7=function(F,q,t){var u=this;
this.priority=q;this.delay=t;this.jobId=0;this.completionCallback=_.DH;this.wrappedJob=function(){F();u.completionCallback()};
this.id=++xJv};
Aa7.prototype.enqueue=function(F){this.completionCallback=F;this.jobId=_.mI.addJob(this.wrappedJob,this.priority,this.delay)};
var Fs=function(){_.Zd.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.M(Fs,_.Zd);Fs.prototype.addJob=function(F,q,t){F=new Aa7(F,q,t);this.taskIdToTask.set(F.id,F);this.isActive?vB7(this,F):this.suspendedTasks.add(F);return F.id};
var vB7=function(F,q){F.scheduledTasks.add(q);q.enqueue(function(){F.scheduledTasks.delete(q)})};
Fs.prototype.cancelJob=function(F){(F=this.taskIdToTask.get(F))&&(this.scheduledTasks.delete(F)?_.mI.cancelJob(F.jobId):this.suspendedTasks.delete(F))};
Fs.prototype.pause=function(){var F=this;this.isActive=!1;this.scheduledTasks.forEach(function(q){_.mI.cancelJob(q.jobId);F.suspendedTasks.add(q)});
this.scheduledTasks.clear()};
Fs.prototype.start=function(){var F=this;this.isActive=!0;this.suspendedTasks.forEach(function(q){vB7(F,q)});
this.suspendedTasks.clear()};
Fs.prototype.reset=function(){this.scheduledTasks.forEach(function(F){_.mI.cancelJob(F.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var qQ=function(F,q){this.JSC$13032_networkService_=F;this.pageRequestPromise=q};
qQ.prototype.fetchData=function(F){If5(this,this.JSC$13032_networkService_.fetchData(F))};
qQ.prototype.postData=function(F,q){If5(this,this.JSC$13032_networkService_.postData(F,q))};
qQ.prototype.requestDataForServiceEndpoint=function(F,q){If5(this,this.JSC$13032_networkService_.requestDataForServiceEndpoint(F,q))};
var If5=function(F,q){q.then(F.pageRequestPromise.onSuccess,F.pageRequestPromise.onFailure,F.pageRequestPromise)};
qQ.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var ts=function(F){this.buildNetworkRequest_=F;this.pendingRequests_=new Set};
ts.prototype.reset=function(){this.pendingRequests_.forEach(function(F){F.cancel()});
this.pendingRequests_.clear()};
ts.prototype.fetchData=function(F){var q=H4h(this);q.fetchData(F);return q.pageRequestPromise};
ts.prototype.postData=function(F,q){var t=H4h(this);t.postData(F,q);return t.pageRequestPromise};
ts.prototype.requestDataForServiceEndpoint=function(F,q){var t=H4h(this);t.requestDataForServiceEndpoint(F,q);return t.pageRequestPromise};
var H4h=function(F){var q=F.buildNetworkRequest_();F.pendingRequests_.add(q);var t=function(){F.pendingRequests_.delete(q)};
q.pageRequestPromise.then(t,t);return q},mJv=function(F){var q=new Fs;
this.JSC$13039_networkService_=F;this.JSC$13039_taskManager_=q;this.JSC$13039_networkManager_=new ts(this.networkRequestFactory_.bind(this))};
_.l=mJv.prototype;_.l.networkRequestFactory_=function(){return new qQ(this.JSC$13039_networkService_,new _.T_(this.JSC$13039_taskManager_))};
_.l.reset=function(){this.JSC$13039_taskManager_.reset();this.JSC$13039_networkManager_.reset()};
_.l.start=function(){this.JSC$13039_taskManager_.start()};
_.l.pause=function(){this.JSC$13039_taskManager_.pause()};
_.l.getTaskManager=function(){return this.JSC$13039_taskManager_};
_.l.getNetworkManager=function(){return this.JSC$13039_networkManager_};
var HJs=null,bJT=[],U1=0,hI=0,SY=null,$J9=!1,K5=null,CNw=void 0,b4h=function(){var F=(0,_.zeJ)();F&&oiw(F,F.mechanism.__iterator__(!0))},L5=function(F){this.token=F};
L5.getInstance=function(){var F;return _.p(function(q){if(q.nextAddress==1)return q.yield(_.JD(),2);F=q.yieldResult;if(!F)return q.return();L5.instance||(L5.instance=new L5(F));return q.return(L5.instance)})};
var KjD=function(F){var q;return _.p(function(t){if(t.nextAddress==1)return t.yield(UUv(F.token),2);q=t.yieldResult;return t.return(q.clear("resource-manifest-assets"))})},Bv=function(F){this.token=F};
Bv.getInstance=function(){var F;return _.p(function(q){if(q.nextAddress==1)return q.yield(_.JD(),2);F=q.yieldResult;if(!F)return q.return();Bv.instance||(Bv.instance=new Bv(F));return q.return(Bv.instance)})};
var SHD=function(F){var q;return _.p(function(t){if(t.nextAddress==1)return t.yield(UUv(F.token),2);q=t.yieldResult;return t.yield(q.clear("auth"),0)})},Zj3=!1,yaT=function(F){_.Fq.call(this,F)};
_.M(yaT,_.t0r);var Cp9="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");CC9()&&Cp9.push("details:not(:has(summary))");var Vzv=Cp9.join(",");var p9w=function(){var F=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return F?parseInt(F[1],10):0},dJ5=function(F){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+F)!=-1||document.currentScript.src.indexOf("&"+F)!=-1)},Vsy=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},rv3=function(F){F.length?UJD(F.shift(),function(){rv3(F)}):eU5()},w9T=function(F){return"chrome-extension://"+F+"/cast_sender.js"},UJD=function(F,
q,t){var u=document.createElement("script");
u.onerror=q;t&&(u.onload=t);_.uF(u,_.AG(F));(document.head||document.documentElement).appendChild(u)},Sa9=function(){var F=p9w(),q=[];
if(F>1){var t=F-1;q.push("//www.gstatic.com/eureka/clank/"+F+"/cast_sender.js");q.push("//www.gstatic.com/eureka/clank/"+t+"/cast_sender.js")}return q},eU5=function(){var F=Vsy();
F&&F(!1,"No cast extension found")},RU9=function(){if(ht9){var F=2,q=Vsy(),t=function(){F--;
F==0&&q&&q(!0)};
window.__onGCastApiAvailable=t;UJD("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",eU5,t)}},Qcv=function(){RU9();
var F=Sa9();F.push("//www.gstatic.com/eureka/clank/cast_sender.js");rv3(F)},Z9v=function(){RU9();
var F=Sa9();F.push.apply(F,_.mZ(Nc9.map(w9T)));F.push("//www.gstatic.com/eureka/clank/cast_sender.js");rv3(F)},ht9=dJ5("loadCastFramework")||dJ5("loadCastApplicationFramework"),Nc9=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Kc3=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Kc3,_.le);var Bdh=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Bdh,_.le);var Lch=function(){var F=new Bdh;return _.$B(F,1,3)};var uh=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(uh,_.le);var QbC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(QbC,_.le);var ff5=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ff5,_.le);ff5.prototype.getToken=function(){return _.xB(this,1)};
ff5.prototype.setToken=function(F){return _.Kw(this,1,F)};
var YyD=function(F){return _.Lh(F,3,_.EC,_.YW())},pxD=function(F){return _.Lh(F,6,_.EC,_.YW())};var Js=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Js,_.le);Js.prototype.getToken=function(){return _.Yw(this,ff5,2)};
Js.prototype.setToken=function(F){return _.My(this,2,F)};
Js.prototype.getName=function(){return _.xB(this,6)};
var afh=_.oK(Js);var jC3=function(F,q,t){this.requestMessage=F;this.methodDescriptor=q;this.metadata=t};
jC3.prototype.getMetadata=function(){return this.metadata};var cah=function(F,q){q=q===void 0?{}:q;this.responseMessage=F;this.metadata=q;this.status=null};
cah.prototype.getMetadata=function(){return this.metadata};
cah.prototype.getStatus=function(){return this.status};var sJ=function(F,q,t,u,J){this.name=F;this.methodType="unary";this.requestType=q;this.responseType=t;this.requestSerializeFn=u;this.responseDeserializeFn=J},FRD=function(F,q,t){t=t===void 0?{}:t;
return new jC3(q,F,t)};
sJ.prototype.getName=function(){return this.name};var g4=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(g4,_.le);g4.prototype.getHeader=function(){return _.Yw(this,uh,1)};
g4.prototype.setHeader=function(F){return _.My(this,1,F)};
g4.prototype.hasHeader=function(){return _.Ea(this,uh,1)};var qNs=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(qNs,_.le);var tLw=new sJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",g4,qNs,function(F){return F.serialize()},_.oK(qNs));var lh=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(lh,_.le);lh.prototype.getHeader=function(){return _.Yw(this,uh,1)};
lh.prototype.setHeader=function(F){return _.My(this,1,F)};
lh.prototype.hasHeader=function(){return _.Ea(this,uh,1)};var uh3=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(uh3,_.le);var J$5=new sJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",lh,uh3,function(F){return F.serialize()},_.oK(uh3));var Xs=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Xs,_.le);Xs.prototype.getHeader=function(){return _.Yw(this,uh,1)};
Xs.prototype.setHeader=function(F){return _.My(this,1,F)};
Xs.prototype.hasHeader=function(){return _.Ea(this,uh,1)};var s8J=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(s8J,_.le);s8J.prototype.getLink=function(){return _.Yw(this,Js,1)};var gV3=new sJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Xs,s8J,function(F){return F.serialize()},_.oK(s8J));var YU=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(YU,_.le);YU.prototype.getHeader=function(){return _.Yw(this,uh,1)};
YU.prototype.setHeader=function(F){return _.My(this,1,F)};
YU.prototype.hasHeader=function(){return _.Ea(this,uh,1)};var lH3=new sJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",YU,Js,function(F){return F.serialize()},afh);var Xkv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Xkv,_.le);var YNs=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(YNs,_.le);YNs.prototype.getUrl=function(){return _.xB(this,2)};
YNs.prototype.setUrl=function(F){return _.Kw(this,2,F)};var pk3=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(pk3,_.le);var Q8w=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Q8w,_.le);var eK9=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(eK9,_.le);var ohv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ohv,_.le);var zbJ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(zbJ,_.le);var ZRw=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ZRw,_.le);var OGw=_.oK(ZRw);var RKC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(RKC,_.le);var r$w=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(r$w,_.le);_.l=r$w.prototype;_.l.getHeader=function(){return _.Yw(this,uh,1)};
_.l.setHeader=function(F){return _.My(this,1,F)};
_.l.hasHeader=function(){return _.Ea(this,uh,1)};
_.l.getCompletionUrl=function(){return _.xB(this,6)};
_.l.getDeviceId=function(){return _.xB(this,11)};var N1v=new sJ("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",r$w,ZRw,function(F){return F.serialize()},OGw);var wkh=new Set(["SAPISIDHASH","APISIDHASH"]);var iRs=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(iRs,_.le);iRs.prototype.getMessage=function(){return _.xB(this,2)};
var kbh=_.oK(iRs);var pF=function(F,q){this.xhrNodeReadableStream_=F.nodeReadableStream;this.grpcResponseDeserializeFn_=q;this.JSC$19277_xhr_=F.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19277_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&EVv(this)},Gb9=function(F,q){var t=new zKv;
_.Ic(F.JSC$19277_xhr_,"complete",function(){if(F.JSC$19277_xhr_.isSuccess()){var u=F.JSC$19277_xhr_.getResponseText();var J;if(J=q)J=F.JSC$19277_xhr_,J.JSC$9789_xhr_&&J.isComplete()?(J=J.JSC$9789_xhr_.getResponseHeader("Content-Type"),J=J===null?void 0:J):J=void 0,J=J==="text/plain";if(J){if(!atob)throw Error("Xj");u=atob(u)}try{var g=F.grpcResponseDeserializeFn_(u)}catch(Q){Qe(F,fx3(new _.$D(13,"Error when deserializing response data; error: "+Q+(", response: "+u)),t));return}u=_.cNt(F.JSC$19277_xhr_.getStatus());
oV7(F,nVJ(F));u==0?MLv(F,g):Qe(F,fx3(new _.$D(u,"Xhr succeeded but the status code is not 200"),t))}else{u=F.JSC$19277_xhr_.getResponseText();g=nVJ(F);if(u){var Y=T1s(F,u);u=Y.code;J=Y.details;Y=Y.metadata}else u=2,J="Rpc failed due to xhr error. uri: "+String(F.JSC$19277_xhr_.JSC$9789_lastUri_)+", error code: "+F.JSC$19277_xhr_.JSC$9789_lastErrorCode_+", error: "+F.JSC$19277_xhr_.getLastError(),Y=g;oV7(F,g);Qe(F,fx3(new _.$D(u,J,Y),t))}})},EVv=function(F){F.xhrNodeReadableStream_.on("data",function(q){if("1"in
q){var t=q["1"];
try{var u=F.grpcResponseDeserializeFn_(t)}catch(J){Qe(F,new _.$D(13,"Error when deserializing response data; error: "+J+(", response: "+t)))}u&&MLv(F,u)}if("2"in q)for(q=T1s(F,q["2"]),t=0;t<F.onStatusCallbacks_.length;t++)F.onStatusCallbacks_[t](q)});
F.xhrNodeReadableStream_.on("end",function(){oV7(F,nVJ(F));for(var q=0;q<F.onEndCallbacks_.length;q++)F.onEndCallbacks_[q]()});
F.xhrNodeReadableStream_.on("error",function(){if(F.JSC$19277_onErrorCallbacks_.length!=0){var q=F.JSC$19277_xhr_.JSC$9789_lastErrorCode_;q!==0||F.JSC$19277_xhr_.isSuccess()||(q=6);var t=-1;switch(q){case 0:var u=2;break;case 7:u=10;break;case 8:u=4;break;case 6:t=F.JSC$19277_xhr_.getStatus();u=_.cNt(t);break;default:u=14}oV7(F,nVJ(F));q=_.oqw(q)+", error: "+F.JSC$19277_xhr_.getLastError();t!=-1&&(q+=", http status code: "+t);Qe(F,new _.$D(u,q))}})},nVJ=function(F){var q={},t=wZy(F.JSC$19277_xhr_);
Object.keys(t).forEach(function(u){q[u]=t[u]});
return q},T1s=function(F,q){var t=2,u={};
try{var J=kbh(q);t=_.pr(J,1);var g=J.getMessage();_.XN(J,et7,3,_.YW()).length&&(u["grpc-web-status-details-bin"]=q)}catch(Y){F.JSC$19277_xhr_&&F.JSC$19277_xhr_.getStatus()===404?(t=5,g="Not Found: "+String(F.JSC$19277_xhr_.JSC$9789_lastUri_)):(t=14,g="Unable to parse RpcStatus: "+Y)}return{code:t,details:g,metadata:u}};
pF.prototype.on=function(F,q){F=="data"?this.onDataCallbacks_.push(q):F=="metadata"?this.onMetadataCallbacks_.push(q):F=="status"?this.onStatusCallbacks_.push(q):F=="end"?this.onEndCallbacks_.push(q):F=="error"&&this.JSC$19277_onErrorCallbacks_.push(q);return this};
var eB=function(F,q){q=F.indexOf(q);q>-1&&F.splice(q,1)};
pF.prototype.removeListener=function(F,q){F=="data"?eB(this.onDataCallbacks_,q):F=="metadata"?eB(this.onMetadataCallbacks_,q):F=="status"?eB(this.onStatusCallbacks_,q):F=="end"?eB(this.onEndCallbacks_,q):F=="error"&&eB(this.JSC$19277_onErrorCallbacks_,q);return this};
pF.prototype.cancel=function(){this.JSC$19277_xhr_.abort()};
var MLv=function(F,q){for(var t=0;t<F.onDataCallbacks_.length;t++)F.onDataCallbacks_[t](q)},oV7=function(F,q){for(var t=0;t<F.onMetadataCallbacks_.length;t++)F.onMetadataCallbacks_[t](q)},Qe=function(F,q){for(var t=0;t<F.JSC$19277_onErrorCallbacks_.length;t++)F.JSC$19277_onErrorCallbacks_[t](q)};
pF.prototype.cancel=pF.prototype.cancel;pF.prototype.removeListener=pF.prototype.removeListener;pF.prototype.on=pF.prototype.on;var zKv=function(){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.M(zKv,Error);var Zu=function(F){this.JSC$19286_worker_=F.worker||null;this.JSC$19286_streamBinaryChunks_=F.streamBinaryChunks||!1;this.JSC$19286_credentialsMode_=void 0};
_.gd(Zu,_.qVy);Zu.prototype.createInstance=function(){var F=new Ri(this.JSC$19286_worker_,this.JSC$19286_streamBinaryChunks_);this.JSC$19286_credentialsMode_&&F.setCredentialsMode(this.JSC$19286_credentialsMode_);return F};
Zu.prototype.setCredentialsMode=function(F){this.JSC$19286_credentialsMode_=F};
var Ri=function(F,q){_.xD.call(this);this.JSC$19290_worker_=F;this.JSC$19290_streamBinaryChunks_=q;this.JSC$19290_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$19290_responseHeaders_=null;this.JSC$19290_method_="GET";this.JSC$19290_url_="";this.inProgress_=!1;this.JSC$19290_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.gd(Ri,_.xD);Ri.prototype.open=function(F,q){if(this.readyState!=0)throw this.abort(),Error("Yj");this.JSC$19290_method_=F;this.JSC$19290_url_=q;this.readyState=1;r4(this)};
Ri.prototype.send=function(F){if(this.readyState!=1)throw this.abort(),Error("Zj");if(this.abortController_.signal.aborted)throw this.abort(),Error("$j");this.inProgress_=!0;var q={headers:this.requestHeaders_,method:this.JSC$19290_method_,credentials:this.JSC$19290_credentialsMode_,cache:void 0,signal:this.abortController_.signal};F&&(q.body=F);(this.JSC$19290_worker_||_.uu).fetch(new Request(this.JSC$19290_url_,q)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Ri.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,NQ(this));this.readyState=0};
Ri.prototype.handleResponse_=function(F){if(this.inProgress_&&(this.fetchResponse_=F,this.JSC$19290_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19290_responseHeaders_=F.headers,this.readyState=2,r4(this)),this.inProgress_&&(this.readyState=3,r4(this),this.inProgress_)))if(this.responseType==="arraybuffer")F.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.uu.ReadableStream!==
"undefined"&&"body"in F){this.currentReader_=F.body.getReader();if(this.JSC$19290_streamBinaryChunks_){if(this.responseType)throw Error("ak");this.response=[]}else this.response=this.responseText="",this.JSC$19290_textDecoder_=new TextDecoder;Dty(this)}else F.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var Dty=function(F){F.currentReader_.read().then(F.handleDataFromStream_.bind(F)).catch(F.handleSendFailure_.bind(F))};
Ri.prototype.handleDataFromStream_=function(F){if(this.inProgress_){if(this.JSC$19290_streamBinaryChunks_&&F.value)this.response.push(F.value);else if(!this.JSC$19290_streamBinaryChunks_){var q=F.value?F.value:new Uint8Array(0);if(q=this.JSC$19290_textDecoder_.decode(q,{stream:!F.done}))this.response=this.responseText+=q}F.done?NQ(this):r4(this);this.readyState==3&&Dty(this)}};
Ri.prototype.handleResponseText_=function(F){this.inProgress_&&(this.response=this.responseText=F,NQ(this))};
Ri.prototype.handleResponseArrayBuffer_=function(F){this.inProgress_&&(this.response=F,NQ(this))};
Ri.prototype.handleSendFailure_=function(){this.inProgress_&&NQ(this)};
var NQ=function(F){F.readyState=4;F.fetchResponse_=null;F.currentReader_=null;F.JSC$19290_textDecoder_=null;r4(F)};
Ri.prototype.setRequestHeader=function(F,q){this.requestHeaders_.append(F,q)};
Ri.prototype.getResponseHeader=function(F){return this.JSC$19290_responseHeaders_?this.JSC$19290_responseHeaders_.get(F.toLowerCase())||"":""};
Ri.prototype.getAllResponseHeaders=function(){if(!this.JSC$19290_responseHeaders_)return"";for(var F=[],q=this.JSC$19290_responseHeaders_.entries(),t=q.next();!t.done;)t=t.value,F.push(t[0]+": "+t[1]),t=q.next();return F.join("\r\n")};
Ri.prototype.setCredentialsMode=function(F){this.JSC$19290_credentialsMode_=F};
var r4=function(F){F.onreadystatechange&&F.onreadystatechange.call(F)};
Object.defineProperty(Ri.prototype,"withCredentials",{get:function(){return this.JSC$19290_credentialsMode_==="include"},
set:function(F){this.setCredentialsMode(F?"include":"same-origin")}});var WRw=function(F){var q="";_.m7.forEach(F,function(t,u){q+=u;q+=":";q+=t;q+="\r\n"});
return q},OR5=function(F,q,t){if(_.m7.isEmpty(t))return F;
t=WRw(t);if(typeof F==="string")return _.a8(F,_.KI(q),t);_.aX(F,q,t);return F};var PXC=function(){this.isInputValid_=!0;this.JSC$19295_streamPos_=0;this.leftoverInput_=""};
PXC.prototype.isInputValid=function(){return this.isInputValid_};
PXC.prototype.decode=function(F){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("bk`"+this.JSC$19295_streamPos_+"`stream already broken`"+F);this.leftoverInput_+=F;F=Math.floor(this.leftoverInput_.length/4);if(F==0)return null;try{var q=_.mf$(this.leftoverInput_.slice(0,F*4))}catch(t){throw q=this.leftoverInput_,F=t.message,this.isInputValid_=!1,Error("bk`"+this.JSC$19295_streamPos_+"`"+F+"`"+q);}this.JSC$19295_streamPos_+=F*4;this.leftoverInput_=this.leftoverInput_.slice(F*4);return q};var jY=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19298_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
jY.prototype.isInputValid=function(){return this.state_!=3};
var w4=function(F,q,t,u){F.state_=3;F.errorMessage_="The stream is broken @"+F.JSC$19298_streamPos_+"/"+t+". Error: "+u+". With input:\n"+q;throw Error(F.errorMessage_);};
jY.prototype.acceptsBinaryInput=function(){return!0};
jY.prototype.parse=function(F){function q(e){e&128&&w4(g,Y,Q,"invalid tag");(e&7)!=2&&w4(g,Y,Q,"invalid wire type");g.tag_=e>>>3;g.tag_!=1&&g.tag_!=2&&g.tag_!=15&&w4(g,Y,Q,"unexpected tag");g.state_=1;g.length_=0;g.countLengthBytes_=0}
function t(e){g.countLengthBytes_++;g.countLengthBytes_==5&&e&240&&w4(g,Y,Q,"message length too long");g.length_|=(e&127)<<(g.countLengthBytes_-1)*7;e&128||(g.state_=2,g.countMessageBytes_=0,typeof Uint8Array!=="undefined"?g.messageBuffer_=new Uint8Array(g.length_):g.messageBuffer_=Array(g.length_),g.length_==0&&J())}
function u(e){g.messageBuffer_[g.countMessageBytes_++]=e;g.countMessageBytes_==g.length_&&J()}
function J(){if(g.tag_<15){var e={};e[g.tag_]=g.messageBuffer_;g.result_.push(e)}g.state_=0}
for(var g=this,Y=F instanceof Array?F:new Uint8Array(F),Q=0;Q<Y.length;){switch(g.state_){case 3:w4(g,Y,Q,"stream already broken");break;case 0:q(Y[Q]);break;case 1:t(Y[Q]);break;case 2:u(Y[Q]);break;default:throw Error("ck`"+g.state_);}g.JSC$19298_streamPos_++;Q++}F=g.result_;g.result_=[];return F.length>0?F:null};var jYQ=function(){this.errorMessage_=null;this.JSC$19301_streamPos_=0;this.base64Decoder_=new PXC;this.pbParser_=new jY};
jYQ.prototype.isInputValid=function(){return this.errorMessage_===null};
var xt9=function(F,q,t){F.errorMessage_="The stream is broken @"+F.JSC$19301_streamPos_+". Error: "+t+". With input:\n"+q;throw Error(F.errorMessage_);};
jYQ.prototype.acceptsBinaryInput=function(){return!1};
jYQ.prototype.parse=function(F){this.errorMessage_!==null&&xt9(this,F,"stream already broken");var q=null;try{var t=this.base64Decoder_.decode(F);q=t===null?null:this.pbParser_.parse(t)}catch(u){xt9(this,F,u.message)}this.JSC$19301_streamPos_+=F.length;return q};var axT=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19304_streamPos_=0;this.result_=[];this.statusParsed_=!1};
axT.prototype.isInputValid=function(){return this.errorMessage_===null};
axT.prototype.acceptsBinaryInput=function(){return!1};
axT.prototype.parse=function(F){function q(e){g.state_=6;g.errorMessage_="The stream is broken @"+g.JSC$19304_streamPos_+"/"+Y+". Error: "+e+". With input:\n";throw Error(g.errorMessage_);}
function t(){g.jsonStreamParser_=new _.iS({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function u(e){if(e)for(var r=0;r<e.length;r++){var N={};N[1]=e[r];g.result_.push(N)}}
function J(e){if(e){(g.statusParsed_||e.length>1)&&q("extra status: "+e);g.statusParsed_=!0;var r={};r[2]=e[0];g.result_.push(r)}}
for(var g=this,Y=0;Y<F.length;){var Q;if(Q=g.state_!==2){a:{for(;Y<F.length;){if(!_.wz(F[Y])){Q=!0;break a}Y++;g.JSC$19304_streamPos_++}Q=!1}Q=!Q}if(Q)return null;switch(g.state_){case 6:q("stream already broken");break;case 0:F[Y]==="["?(g.state_=1,Y++,g.JSC$19304_streamPos_++):q("unexpected input token");break;case 1:F[Y]==="["?(g.state_=2,t()):F[Y]===","||F.slice(Y,Y+5)=="null,"?g.state_=3:F[Y]==="]"?(g.state_=5,Y++,g.JSC$19304_streamPos_++):q("unexpected input token");break;case 2:Q=g.jsonStreamParser_.parse(F.substring(Y));
u(Q);g.jsonStreamParser_.done()?(g.state_=3,Q=g.jsonStreamParser_.JSC$11467_buffer_,g.JSC$19304_streamPos_+=F.length-Y-Q.length,F=Q,Y=0):(g.JSC$19304_streamPos_+=F.length-Y,Y=F.length);break;case 3:F[Y]===","||F.slice(Y,Y+5)=="null,"?(g.state_=4,t(),g.jsonStreamParser_.parse("["),Y+=F[Y]===","?1:5,g.JSC$19304_streamPos_++):F[Y]==="]"&&(g.state_=5,Y++,g.JSC$19304_streamPos_++);break;case 4:Q=g.jsonStreamParser_.parse(F.substring(Y));J(Q);g.jsonStreamParser_.done()?(g.state_=5,Q=g.jsonStreamParser_.JSC$11467_buffer_,
g.JSC$19304_streamPos_+=F.length-Y-Q.length,F=Q,Y=0):(g.JSC$19304_streamPos_+=F.length-Y,Y=F.length);break;case 5:q("extra input after stream end")}}return g.result_.length>0?(F=g.result_,g.result_=[],F):null};var A$D=function(F){this.JSC$19307_xhr_=F;this.JSC$19307_parser_=null;this.status_=this.JSC$19307_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19307_textDecoder_=null;this.JSC$19307_eventHandler_=new _.Qb(this);this.JSC$19307_eventHandler_.listen(this.JSC$19307_xhr_,"readystatechange",this.JSC$19309_readyStateChangeHandler_)},ih=function(F,q){F.status_!=q&&(F.status_=q,F.statusHandler_&&F.statusHandler_())},kU=function(F){F.JSC$19307_eventHandler_.removeAll();
if(F.JSC$19307_xhr_){var q=F.JSC$19307_xhr_;F.JSC$19307_xhr_=null;q.abort();q.dispose()}};
A$D.prototype.getStatus=function(){return this.status_};
A$D.prototype.JSC$19309_readyStateChangeHandler_=function(F){F=F.target;try{if(F==this.JSC$19307_xhr_)a:{var q=_.CQ(this.JSC$19307_xhr_),t=this.JSC$19307_xhr_.JSC$9789_lastErrorCode_,u=this.JSC$19307_xhr_.getStatus(),J=this.JSC$19307_xhr_.getResponseText();F=[];if(this.JSC$19307_xhr_.getResponse()instanceof Array){var g=this.JSC$19307_xhr_.getResponse();g.length>0&&g[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,F=g)}if(!(q<3||q==3&&!J&&F.length==0))if(u=u==200||u==206,q==4&&(t==8?ih(this,
7):t==7?ih(this,8):u||ih(this,3)),this.JSC$19307_parser_||(this.JSC$19307_parser_=cx9(this.JSC$19307_xhr_),this.JSC$19307_parser_==null&&ih(this,5)),this.status_>2)kU(this);else{if(F.length>this.JSC$19307_pos_){var Y=F.length;t=[];try{if(this.JSC$19307_parser_.acceptsBinaryInput())for(var Q=0;Q<Y;Q++){var e=this.JSC$19307_parser_.parse(Array.from(F[Q]));e&&(t=t.concat(e))}else{e="";if(!this.JSC$19307_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("dk");this.JSC$19307_textDecoder_=new TextDecoder}for(Q=
0;Q<Y;Q++)e+=this.JSC$19307_textDecoder_.decode(F[Q],{stream:q==4&&Q==Y-1});t=this.JSC$19307_parser_.parse(e)}F.splice(0,Y);t&&this.dataHandler_(t)}catch(N){ih(this,5);kU(this);break a}}else if(J.length>this.JSC$19307_pos_){Q=J.slice(this.JSC$19307_pos_);this.JSC$19307_pos_=J.length;try{var r=this.JSC$19307_parser_.parse(Q);r!=null&&this.dataHandler_&&this.dataHandler_(r)}catch(N){ih(this,5);kU(this);break a}}q==4?(J.length!=0||this.hasStreamingResponseData_?ih(this,2):ih(this,4),kU(this)):ih(this,
1)}}}catch(N){ih(this,6),kU(this)}};var vV7=function(F){F=this.xhrReader_=F;var q=(0,_.Pd)(this.onData_,this);F.dataHandler_=q;F=this.xhrReader_;q=(0,_.Pd)(this.onStatusChange_,this);F.statusHandler_=q;this.JSC$19311_callbackMap_={};this.callbackOnceMap_={}};
_.l=vV7.prototype;_.l.on=function(F,q){var t=this.JSC$19311_callbackMap_[F];t||(t=[],this.JSC$19311_callbackMap_[F]=t);t.push(q);return this};
_.l.addListener=function(F,q){this.on(F,q);return this};
_.l.removeListener=function(F,q){var t=this.JSC$19311_callbackMap_[F];t&&_.yC(t,q);(F=this.callbackOnceMap_[F])&&_.yC(F,q);return this};
_.l.once=function(F,q){var t=this.callbackOnceMap_[F];t||(t=[],this.callbackOnceMap_[F]=t);t.push(q);return this};
_.l.onData_=function(F){var q=this.JSC$19311_callbackMap_.data;q&&IH9(F,q);(q=this.callbackOnceMap_.data)&&IH9(F,q);this.callbackOnceMap_.data=[]};
var IH9=function(F,q){for(var t={},u=0;u<F.length;t={message$jscomp$1007:void 0},u++)t.message$jscomp$1007=F[u],q.forEach(function(J){return function(g){try{g(J.message$jscomp$1007)}catch(Y){}}}(t))};
vV7.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:HRJ(this,"readable");break;case 5:case 6:case 4:case 7:case 3:HRJ(this,"error");break;case 8:HRJ(this,"close");break;case 2:HRJ(this,"end")}};
var HRJ=function(F,q){var t=F.JSC$19311_callbackMap_[q];t&&t.forEach(function(u){try{u()}catch(J){}});
(t=F.callbackOnceMap_[q])&&t.forEach(function(u){u()});
F.callbackOnceMap_[q]=[]};var mtw=function(){var F={format:"jspb"};F=F===void 0?{}:F;this.suppressCorsPreflight=F.suppressCorsPreflight||_.S6("suppressCorsPreflight",F)||!1;this.withCredentials=F.withCredentials||_.S6("withCredentials",F)||!1;this.streamInterceptors=F.streamInterceptors||[];this.unaryInterceptors=F.unaryInterceptors||[];this.workerScope=F.workerScope;this.chunkedServerStreaming=F.useFetchDownloadStreams||!1},y$T=function(F,q,t,u,J,g){g=g===void 0?{}:g;
var Y=q.substring(0,q.length-J.name.length),Q,e=(Q=g)==null?void 0:Q.signal;return $t9(function(r){return new Promise(function(N,w){if(e==null?0:e.aborted){var k=new _.$D(1,"Aborted");k.cause=e.reason;w(k)}else{var z={},T=bRC(F,r,Y);T.on("error",function(P){return void w(P)});
T.on("metadata",function(P){z=P});
T.on("data",function(P){var v=z;v=v===void 0?{}:v;N(new cah(P,v))});
e&&e.addEventListener("abort",function(){T.cancel();var P=new _.$D(1,"Aborted");P.cause=e.reason;w(P)})}})},F.unaryInterceptors).call(F,FRD(J,t,u)).then(function(r){return r.responseMessage})},EJ=function(F,q,t,u,J,g){g=g===void 0?{}:g;
return y$T(F,q,t,u,J,g)};
mtw.prototype.serverStreaming=function(F,q,t,u){var J=this,g=F.substring(0,F.length-u.name.length);return CX3(function(Y){var Q=Y.methodDescriptor,e=Y.getMetadata(),r=dtQ(J,!1);e=VL9(J,e,r,g+Q.getName());var N=Ut9(r,Q.responseDeserializeFn,!0);Y=Q.requestSerializeFn(Y.requestMessage);r.send(e,"POST",Y);return N},this.streamInterceptors).call(this,FRD(u,q,t))};
var bRC=function(F,q,t){var u=q.methodDescriptor,J=q.getMetadata(),g=dtQ(F,!0);F=VL9(F,J,g,t+u.getName());t=Ut9(g,u.responseDeserializeFn,!1);Gb9(t,J["X-Goog-Encode-Response-If-Executable"]==="base64");q=u.requestSerializeFn(q.requestMessage);g.send(F,"POST",q);return t},dtQ=function(F,q){q=F.chunkedServerStreaming&&!q;
return F.workerScope||q?new _.yO(new Zu({worker:F.workerScope,streamBinaryChunks:q})):new _.yO},VL9=function(F,q,t,u){q["Content-Type"]="application/json+protobuf";
q["X-User-Agent"]="grpc-web-javascript/0.1";var J=q.Authorization;if(J&&wkh.has(J.split(" ")[0])||F.withCredentials)t.JSC$9789_withCredentials_=!0;if(F.suppressCorsPreflight)u=OR5(u,"$httpHeaders",q);else for(F=_.X(Object.keys(q)),J=F.next();!J.done;J=F.next())J=J.value,t.headers.set(J,q[J]);return u},Ut9=function(F,q,t){if(t){t=new A$D(F);
var u=new vV7(t)}return new pF({xhr:F,nodeReadableStream:u},q)},CX3=function(F,q){return q.reduce(function(t,u){return function(J){return u.intercept(J,t)}},F)},$t9=function(F,q){return q.reduce(function(t,u){return function(J){return u.intercept(J,t)}},F)};var SNw=function(F){this.client_=new mtw;this.hostname_=F==void 0?F:F.replace(/\/+$/,"")};
_.l=SNw.prototype;_.l.JSC$19329_depositGoogleCredential=function(F,q,t){return EJ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",F,q||{},J$5,t)};
_.l.deleteLink=function(F,q,t){return EJ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",F,q||{},tLw,t)};
_.l.JSC$19329_finishOAuth=function(F,q,t){return EJ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",F,q||{},gV3,t)};
_.l.getLink=function(F,q,t){return EJ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",F,q||{},lH3,t)};
_.l.startLinkingSession=function(F,q,t){return EJ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",F,q||{},N1v,t)};var hKJ=[0,_.js,1,lf7,[0,_.t$,[0,_.Fh,-1]],[0,gBJ],[0,_.sN,-1]];var KRy=function(){this.storage=new Map},LR7=function(F,q,t,u,J){if(!F.storage.has(q))return null;
F=_.X(F.storage.get(q));for(q=F.next();!q.done;q=F.next())if(q=q.value,!J||q.linkName===J)if(t&&q.scopes&&B17(q.scopes,t)||u&&q.capabilities&&B17(q.capabilities,u))return q;return null},fHv=function(F,q,t){if(!t)F.storage.delete(q);
else if(F.storage.has(q)){var u=F.storage.get(q).filter(function(J){return J.linkName!==t});
u.length>0?F.storage.set(q,u):F.storage.delete(q)}},B17=function(F,q){q=_.X(q);
for(var t=q.next();!t.done;t=q.next())if(!F.has(t.value))return!1;return!0};var aH5=function(){var F=_.bn("LINK_GAL_DOMAIN");this.alsDomain1p=_.bn("LINK_GAL_DOMAIN");this.alsDomain3p=F;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},j87=function(F,q){F.apiKey=q;
return F};
aH5.prototype.build=function(){var F={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("ek");F.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("fk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("gk");F.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(F.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)F.apiKey=
this.apiKey,F.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("hk");F.oauthToken=this.oauthToken;F.alsDomain=this.alsDomain3p}F.clientXd3=this.clientXd3;F.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(F.authUser=this.authUser);this.bucket!==void 0&&(F.bucket=this.bucket);this.completionUrl!==void 0&&(F.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(F.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(F.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(F.locale=this.locale);F.loggerType=this.loggerType;F.clientEnvironment=this.clientEnvironment;F.colorScheme=this.colorScheme;F.showCloseOption=this.showCloseOption;return F};var cv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(cv,_.le);var c$h=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(c$h,_.le);var FX7=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(FX7,_.le);var q8=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(q8,_.le);var qrC=function(F){return _.Aa(F,1)};var tuQ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(tuQ,_.le);var ghs=_.oK(tuQ),Fc=[1,2,3,4,5];var tTC=function(F){try{return ghs(F)}catch(q){return null}},uos=function(){},uK9=function(F,q){switch(_.MJ(q,Fc)){case 4:return(q=_.Hi(q,FX7,4,Fc))&&F.logStateTransition(_.Aa(q,1)),!0;
case 5:return(q=_.Hi(q,c$h,5,Fc))&&F.logInternalEvent(_.Aa(q,1)),!0}return!1},lnh=function(F){switch(F){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Uv(F)}};var FB5=function(F,q){var t=this;this.validator=F;this.messageListener=q;this.dismissCallback=function(){Jcv(t,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19358_receiveMessage=function(u){u.type==="message"&&(u=u.event_,u!==null&&(new URL(t.iframe.src)).origin===u.origin&&t.validator(u.data,u.origin)&&!t.messageListener(u.data)&&(t.JSC$19358_resolveCb!==void 0&&t.JSC$19358_resolveCb(u.data),sR5(t)))}},sbJ=function(F,q,t){F.uiHandler!==void 0&&Jcv(F,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(u,J){F.JSC$19358_resolveCb=u;F.JSC$19358_rejectCb=J;F.iframe=document.createElement("iframe");_.aK(F.iframe,q);F.uiHandler=t.displayContent(F.iframe,F.dismissCallback);_.Ic(window,"message",F.JSC$19358_receiveMessage,!1,F)})},Jcv=function(F,q){F.JSC$19358_rejectCb!==void 0&&F.JSC$19358_rejectCb(q);
sR5(F)},sR5=function(F){F.uiHandler!==void 0&&F.uiHandler.hideContent();
_.Pr(window,"message",F.JSC$19358_receiveMessage,!1,F);F.JSC$19358_resolveCb=void 0;F.JSC$19358_rejectCb=void 0;F.uiHandler=void 0;F.iframe=void 0};var gDw=function(F){if(F===2){var q;F=((q=window)==null?0:q.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return F},Jnv=function(F){F=gDw(F);
switch(F){case 0:return"light";case 1:return"dark";default:_.Uv(F)}};var qyT=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),l6y=function(F,q){this.JSC$19370_linkingSession=F;this.noticeConfig=q;this.displayInfoMap=new Map;var t=new Map;if(_.Ea(this.JSC$19370_linkingSession,pk3,7))for(F=_.Yw(this.JSC$19370_linkingSession,pk3,7),F=_.XN(F,YNs,1,_.YW()),F=_.X(F),q=F.next();!q.done;q=F.next())q=q.value,t.set(_.Aa(q,1),_.rUu(_.Yw(q,_.dfP,3)));if(t.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){q=this.noticeConfig.enabledDataUsageNoticeUis;F=q.has(0)?t.get(1):void 0;q=q.has(1)?t.get(2):void 0;t=F!==void 0&&q!==void 0?t.get(3):void 0;var u=this.noticeConfig.nestedOrigins;var J=new tuQ;var g=new cv;J=_.T9(J,2,Fc,g);g=new tuQ;var Y=new cv;g=_.T9(g,3,Fc,Y);Y=[];F!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:F,lastEvent:J,nestedOrigins:u}]),Y.push({trustedUrl:F,lastEvent:J,nestedOrigins:u}));q!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:q,lastEvent:g,nestedOrigins:u}]),Y.push({trustedUrl:q,lastEvent:g,nestedOrigins:u}));t!==void 0?this.displayInfoMap.set(3,[{trustedUrl:t,lastEvent:g,nestedOrigins:u}]):this.displayInfoMap.set(3,Y)}};var Xry=function(F){var q=new KRy;this.galService=F;this.galCache=q};
Xry.prototype.getLink=function(F){var q=F.serviceId;var t=F.scopes;var u=F.capabilities;var J=F.linkName;var g=this,Y;return _.p(function(Q){if(u!==void 0&&t!==void 0)throw Error("ik");Y=LR7(g.galCache,q,t,u,J);return Y!==null?Q.return(Y):Q.return(g.galService.getLink({serviceId:q,sessionId:Math.floor(Math.random()*2147483648),scopes:t,capabilities:u,linkName:J}).then(function(e){e=ebJ(e);var r=g.galCache;r.storage.has(q)?r.storage.get(q).push(e):r.storage.set(q,[e]);return e}))})};
Xry.prototype.deleteLink=function(F,q,t){var u=this;return _.p(function(J){fHv(u.galCache,F,t);return J.return(u.galService.deleteLink({serviceId:F,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:q,linkName:t}).then(function(){return!0}))})};var pr5=function(F,q){var t=this;this.validator=F;this.msgHandler=q;this.closedPopupTimeout=this.JSC$19392_rejectCb=this.JSC$19392_resolveCb=this.popup=null;this.JSC$19392_receiveMessage=function(u){if(u!==null&&(u=u.event_,u.source===t.popup)){var J=u.data;if(t.validator(J,u.origin)){var g;(g=t.msgHandler)!=null&&g.call(t,J)||(t.JSC$19392_resolveCb!==null&&t.JSC$19392_resolveCb(J),YrJ(t))}}}};
pr5.prototype.open=function(F,q){var t=this;this.popup!==null&&QR9(this);return new Promise(function(u,J){t.JSC$19392_resolveCb=u;t.JSC$19392_rejectCb=J;t.popup=_.jO(window,F,"",q);_.Ic(window,"message",t.JSC$19392_receiveMessage,!1,t);eNh(t)})};
var QR9=function(F,q){F.JSC$19392_rejectCb!==null&&F.JSC$19392_rejectCb(q);YrJ(F)},YrJ=function(F){F.closedPopupTimeout&&(F.closedPopupTimeout.cancel(),F.closedPopupTimeout=null);
F.popup&&F.popup.close();_.Pr(window,"message",F.JSC$19392_receiveMessage,!1,F);F.popup=null;F.JSC$19392_resolveCb=null;F.JSC$19392_rejectCb=null},eNh=function(F){F.closedPopupTimeout=_.wnO(100).then(function(){F.popup?F.popup.closed?ZQh(F):eNh(F):QR9(F,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},ZQh=function(F){F.closedPopupTimeout=_.wnO(100).then(function(){QR9(F,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var RNv=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),rc7=function(F,q,t,u,J,g,Y,Q,e,r){var N=this;this.serviceId=F;this.sessionId=q;this.galService=t;this.oauthDetails=u;this.galLogger=J;this.interactionMode=g;this.redirectServiceUrl=Y;this.consentLanguageKeys=Q;this.dynamicUrlParameters=e;this.partnerConfigMinReadTimestamp=r;this.started=!1;this.JSC$19398_dataValidator=function(w,
k){var z=RNv.has(k);z||N.redirectServiceUrl===void 0||(z=N.redirectServiceUrl===k);return z?w.sentinel==="gdi":!1}};
rc7.prototype.complete=function(){var F=this,q;return _.p(function(t){if(F.interactionMode!==1)return t.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));q=uI.getRedirectStateFromUri();return q===null?t.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):t.return(NU5(F,q))})};
rc7.prototype.start=function(){var F=this,q;return _.p(function(t){if(F.started)return t.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.xB(F.oauthDetails,1))return t.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(F.interactionMode===1)return uI.setLocation(_.xB(F.oauthDetails,1)),t.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));F.started=!0;F.galLogger.logStateTransition(5);
q=uI.getPostMessagePopup(F.JSC$19398_dataValidator);return t.return(q.open(_.xB(F.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(u){F.started=!1;var J=F.galLogger;if((u==null?void 0:u.error)!==void 0)throw J.logInternalEvent(59),Error("jk");if((u==null?void 0:u.redirect_state)===void 0)throw J.logInternalEvent(131),Error("kk");return NU5(F,u.redirect_state)}).catch(function(u){F.started=
!1;
return u.errorCode!==void 0?{statusCode:u.errorCode,statusMessage:u.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var NU5=function(F,q){return _.p(function(t){return t.return(wrv(F.galService,{serviceId:F.serviceId,sessionId:F.sessionId,dynamicUrlParameters:F.dynamicUrlParameters,redirectState:q,consentLanguageKeys:F.consentLanguageKeys,partnerConfigMinReadTimestamp:F.partnerConfigMinReadTimestamp}).then(function(u){var J={statusCode:1,link:ebJ(u.getLink())};juv(_.oC(u,3))!==void 0&&(J.callerState=juv(_.oC(u,3)));F.galLogger.logInternalEvent(134);return J}))})},uI={getPostMessagePopup:function(F){return new pr5(F)},
getRedirectStateFromUri:function(){var F=_.Lr(uI.getLocation()).fragment_;return(new _.r3(F)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(F){_.Z6C(window.location,_.d$(F))},
createOAuthFlow:function(F,q){return new rc7(F.serviceId,F.sessionId,F.galService,q,F.galLogger,F.interactionMode,F.redirectServiceUrl,F.consentLanguageKeys,F.dynamicUrlParameters,F.partnerConfigMinReadTimestamp)}};var iQ7=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(iQ7,_.le);var kwC=_.oK(iQ7);var EDT=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),zNv=function(F,q,t,u,J,g,Y,Q,e){var r=this;this.serviceId=F;this.sessionId=q;this.galService=t;this.gsiWebFlowDetails=u;this.colorScheme=J;this.showCloseOption=g;this.galLogger=Y;this.interactionMode=Q;this.redirectServiceUrl=e;this.started=!1;this.JSC$19410_dataValidator=function(N,w){var k=EDT.has(w);k||r.redirectServiceUrl===
void 0||(k=r.redirectServiceUrl===w);return k?N.sentinel==="gal":!1};
this.logEventProcessor=function(N){return N.result?(N=tTC(N.result))?uK9(r.galLogger,N):!1:!1}};
zNv.prototype.complete=function(){var F=this,q,t;return _.p(function(u){if(F.interactionMode!==1)return u.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));q=Ju.getRedirectStateFromUri();if(q===void 0)return F.galLogger.JSC$19350_logErrorEvent(131),u.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return t=oDv(F,q),u.return(nDT(F,t))}catch(J){return u.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
zNv.prototype.start=function(){var F=this,q;return _.p(function(t){if(F.started)return t.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.xB(F.gsiWebFlowDetails,1))return t.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(F.interactionMode===1)return Ju.setLocation(Muy(F,_.xB(F.gsiWebFlowDetails,1))),t.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
F.started=!0;q=Ju.getPostMessagePopup(F.JSC$19410_dataValidator,F.logEventProcessor);return t.return(q.open(Muy(F,_.xB(F.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(u){F.started=!1;if((u==null?void 0:u.result)===void 0)throw F.galLogger.JSC$19350_logErrorEvent(131),Error("kk");u=oDv(F,u.result);return nDT(F,u)}).catch(function(u){F.started=!1;
return u.errorCode!==void 0?{statusCode:u.errorCode,statusMessage:u.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Muy=function(F,q){F=["result_channel",F.interactionMode===1?"2":"1","color_scheme",Jnv(F.colorScheme),"show_close_option",F.showCloseOption];return QCD(q,F)},nDT=function(F,q){if(q!==null&&_.Ea(q,q8,2)){var t,u=q==null?void 0:(t=_.Yw(q,q8,2))==null?void 0:_.Aa(t,2);
u&&F.galLogger.JSC$19350_logErrorEvent(lnh(u));return qrC(_.Yw(q,q8,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return F.galService.getLink({serviceId:F.serviceId,sessionId:F.sessionId,consistencyKey:_.xB(q,1)}).then(function(J){J=ebJ(J);F.galLogger.logInternalEvent(134);return{statusCode:1,link:J}})},oDv=function(F,q){q=kwC(q);
if(!_.Ea(q,q8,2)&&_.xB(q,1)==="")throw F.galLogger.JSC$19350_logErrorEvent(5),Error("lk");return q},Ju={getPostMessagePopup:function(F,q){return new pr5(F,q)},
getRedirectStateFromUri:function(){return _.fr(_.Lr(Ju.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(F){_.Z6C(window.location,_.d$(F))},
createStreamlinedFlow:function(F,q){return new zNv(F.serviceId,F.sessionId,F.galService,q,F.colorScheme,F.showCloseOption,F.galLogger,F.interactionMode,F.redirectServiceUrl)}};var D1h=function(){var F=_.G5q("GAL");this.storage=F?new _.Wc(F):null};
D1h.prototype.getSession=function(F){if(this.storage!==null)try{var q=this.storage.get("SAVED_SESSION");if(q===void 0)return null;if(q.serviceId===F)return q}catch(t){}return null};var z8=function(){};
_.M(z8,uos);z8.prototype.logStateTransition=function(){};
z8.prototype.logInternalEvent=function(){};
z8.prototype.JSC$19350_logErrorEvent=function(){};var TU5=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(TU5,_.le);TU5.prototype.getCompletionUrl=function(){return _.xB(this,15)};var oi=function(F,q,t,u,J,g){this.serviceId=F;this.environment=q;this.sessionId=t;this.colorSchemeSelected=u;this.colorThemeDisplayed=J;this.JSC$19423_transport=g;this.currentState=1};
_.M(oi,uos);oi.prototype.logStateTransition=function(F){var q=Gw5(this);q=_.pt(q,3,this.currentState);q=_.pt(q,1,F);this.currentState=F;F=NIT(1);this.dispatch(q,F)};
oi.prototype.logInternalEvent=function(F){F=NIT(F);this.dispatch(Gw5(this),F)};
oi.prototype.JSC$19350_logErrorEvent=function(F){var q=Gw5(this);q=_.pt(q,1,10);F=NIT(F);this.dispatch(q,F)};
var Gw5=function(F){var q=new TU5;q=_.pt(q,1,F.currentState);q=_.OF(q,7,F.serviceId);var t,u;var J=((t=window)==null?0:(u=t.location)==null?0:u.href)?_.Lr(window.location.href).JSC$10024_domain_:"NO_PACKAGE_NAME";t=_.OF(q,8,J);t=_.pt(t,6,F.environment);t=_.OF(t,5,"100");t=_.pt(t,11,F.colorSchemeSelected);return _.pt(t,12,F.colorThemeDisplayed)};
oi.prototype.dispatch=function(F,q){q===void 0&&(q=new _.kD);var t=q;F=F.serialize();t=_.OF(t,8,F);_.Gm(t,12,this.sessionId);this.JSC$19423_transport.dispatch(q)};var DzQ=function(F,q){this.loggerType=F;this.sessionIndex=q!=null?q:0},WX3;
DzQ.prototype.create=function(F,q,t,u,J){switch(this.loggerType){case 0:return new z8;case 1:return WX3||(WX3=(new _.wo(555,this.sessionIndex.toString())).build()),new oi(F,q,t,u,J,WX3);default:_.Uv(this.loggerType,"unknown logger type")}};var s7=[6,2,3,1],vhv=new Map([[4,1],[1,6],[2,2],[3,3]]),Nav={statusCode:7,statusMessage:"Failed to create flow object"},Taw=function(F,q,t,u,J,g,Y,Q,e,r){this.serviceId=F;this.sessionId=q;this.config=t;this.galService=u;this.JSC$19430_linkingSession=J;this.googleScopes=g;this.callerState=Y;this.consentLanguageKeys=Q;this.dynamicUrlParameters=e;this.partnerConfigMinReadTimestamp=r;this.currentFlow=0;u=this.JSC$19430_linkingSession;J=new Set;_.Ea(u,zbJ,1)&&J.add(1);_.Ea(u,eK9,2)&&_.Ea(u,ohv,6)&&J.add(2);
_.Ea(u,Q8w,3)&&_.Ea(u,ohv,6)&&J.add(3);_.Ea(u,Xkv,4)&&J.add(6);this.supportedFlows=J;u=t.loggerType;J=t.clientEnvironment;a:{g=t.colorScheme;switch(g){case 0:g=1;break a;case 1:g=2;break a;case 2:g=3;break a;default:_.Uv(g)}g=void 0}a:{Y=t.colorScheme;Y=gDw(Y);switch(Y){case 0:Y=1;break a;case 1:Y=2;break a;default:_.Uv(Y)}Y=void 0}this.galLogger=(new DzQ(u,t.authUser)).create(F,J,q,g,Y)},Pb5=function(F){return new Promise(function(q){var t,u,J,g,Y,Q,e,r,N,w;
return _.p(function(k){switch(k.nextAddress){case 1:t=nh5(F.currentFlow,F.supportedFlows),u=!1,J=new l6y(F.JSC$19430_linkingSession,F.config.dataUsageNoticeConfig);case 2:if(t===void 0){k.jumpTo(4);break}_.zg(k,5);var z=J,T=t,P=void 0;u?T===1&&(P=z.displayInfoMap.get(2)):T===2||T===3?P=z.displayInfoMap.get(1):T===1&&(P=z.displayInfoMap.get(3));g=P?P:[];Y=F.consentLanguageKeys;Q=_.X(g);e=Q.next();case 7:if(e.done)return F.currentFlow=t,k.yield(iGT(OQy(F,Y)),11);r=e.value;return k.yield(Xxh(r,F.config.dataUsageNoticeConfig.uiAdapter,
F.config.colorScheme,F.galLogger),10);case 10:N=k.yieldResult;if(N.statusCode!==1)return WBT(F.serviceId),F.currentFlow=0,q(tu({statusCode:N.statusCode,statusMessage:N.statusMessage},F.callerState)),k.return();N.consentLanguageKeys!==void 0&&(Y=N.consentLanguageKeys);e=Q.next();k.jumpTo(7);break;case 11:w=k.yieldResult;if(w.statusCode!==10)return w.statusCode!==6&&(WBT(F.serviceId),F.currentFlow=0),w.statusCode!==1&&F.callerState!==void 0&&(w.callerState=F.callerState),q(w),k.return();_.LE(k,6);break;
case 5:_.Gg(k);case 6:t=nh5(F.currentFlow,F.supportedFlows);u=!0;k.jumpTo(2);break;case 4:WBT(F.serviceId),F.currentFlow=0,q(tu({statusCode:12,statusMessage:"Linking failed"},F.callerState)),_.WA(k)}})})},x15=function(F,q,t){F.currentFlow=q;
return krs(OQy(F,t)).then(function(u){return u.statusCode===10&&F.config.interactionMode===1&&nh5(F.currentFlow,F.supportedFlows)!==void 0?Pb5(F):u})},OQy=function(F,q){return{flowParams:{serviceId:F.serviceId,
sessionId:F.sessionId,galService:F.galService,galLogger:F.galLogger,interactionMode:F.config.interactionMode,redirectServiceUrl:F.config.redirectServiceUrl,colorScheme:F.config.colorScheme,consentLanguageKeys:q,dynamicUrlParameters:F.dynamicUrlParameters,showCloseOption:F.config.showCloseOption,partnerConfigMinReadTimestamp:F.partnerConfigMinReadTimestamp},currentFlow:F.currentFlow,config:F.config,session:F.JSC$19430_linkingSession,googleScopes:F.googleScopes,callerState:F.callerState}};var HGh=function(F,q){this.config=F;this.galService=q.getService();this.JSC$19443_galRepository=q.JSC$19461_galRepository};
HGh.prototype.getLink=function(F,q){return xzJ(this,F,q)};
var xzJ=function(F,q,t){return F.JSC$19443_galRepository.getLink({serviceId:q,scopes:void 0,capabilities:void 0,linkName:t}).then(function(u){return{statusCode:1,link:u}}).catch(function(u){return{statusCode:Iny(u.code),
statusMessage:u.message}})};
HGh.prototype.deleteLink=function(F,q){return this.JSC$19443_galRepository.deleteLink(F,this.config.accountLinkingEntryPoint,q).then(function(){return{statusCode:1}}).catch(function(t){return{statusCode:Iny(t.code),
statusMessage:t.message}})};
HGh.prototype.startLinkingSession=function(F){var q=F.serviceId;var t=F.sessionId;return GrQ({serviceId:q,sessionId:t!==void 0?t:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:F.loginHint,callerState:F.callerState,consentLanguageKeys:F.consentLanguageKeys,linkName:F.linkName,dynamicUrlParameters:F.dynamicUrlParameters,partnerConfigMinReadTimestamp:F.partnerConfigMinReadTimestamp})};var nF=function(F,q,t,u,J,g,Y){this.apiKey=q;this.authUser=t;this.oauthToken=u;this.bucket=J;this.locale=g;this.galSdkEventHandler=Y;if(u===void 0){if(q===void 0)throw Error("mk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new SNw(F)};
nF.prototype.deleteLink=function(F){var q=F.serviceId;var t=F.sessionId;var u=F.accountLinkingEntryPoint;var J=F.linkName;var g=this,Y;return _.p(function(Q){var e=(new g4).setHeader(g.getHeader(t));var r=Acs({serviceId:q,linkName:J});e=_.My(e,2,r);Y=_.$B(e,3,u);return Q.return(g.makeRequest(g.galServiceClient.deleteLink,Y,[1,3],[2,4]))})};
var wrv=function(F,q){var t=q.serviceId;var u=q.sessionId;var J=q.dynamicUrlParameters;var g=q.redirectState;var Y=q.consentLanguageKeys;var Q=q.partnerConfigMinReadTimestamp;var e;return _.p(function(r){var N=(new Xs).setHeader(F.getHeader(u,J));N=_.Kw(N,2,t);e=_.Kw(N,4,g);Y!==void 0&&_.Kw(e,5,Y);Q!==void 0&&_.My(e,6,Q);return r.return(F.makeRequest(F.galServiceClient.JSC$19329_finishOAuth,e,[1,3],[2,4]))})};
nF.prototype.getLink=function(F){var q=F.serviceId;var t=F.sessionId;var u=F.scopes;var J=F.capabilities;var g=F.consistencyKey;var Y=F.linkName;var Q=this,e;return _.p(function(r){var N=(new YU).setHeader(Q.getHeader(t)),w=Acs({serviceId:q,scopes:u,capabilities:J,linkName:Y});e=_.My(N,2,w);g!==void 0&&(N=Lch(),N=_.Kw(N,2,g),_.My(e,3,N));return r.return(Q.makeRequest(Q.galServiceClient.getLink,e,[1,3],[2,4]))})};
var Eh9=function(F,q){var t=q.serviceId;var u=q.sessionId;var J=q.googleScopes;var g=q.consistencyKey;var Y;return _.p(function(Q){var e=(new lh).setHeader(F.getHeader(u));e=_.Kw(e,2,t);var r=Array.from(J.values());e=_.j5(e,3,r,_.rJ);r=Lch();r=_.Kw(r,2,g);Y=_.My(e,4,r);return Q.return(F.makeRequest(F.galServiceClient.JSC$19329_depositGoogleCredential,Y,[1,3],[2,4]))})};
nF.prototype.startLinkingSession=function(F){var q=F.serviceId;var t=F.sessionId;var u=F.scopes;var J=F.capabilities;var g=F.loginHint;var Y=F.supportedFlows;var Q=F.completionUrl;var e=F.usePingPong;var r=F.twoWayLinking;var N=F.accountLinkingEntryPoint;var w=F.callerState;var k=F.consentLanguageKeys;var z=F.googleScopes;var T=F.dataUsageNoticeConfig;var P=F.linkName;var v=F.dynamicUrlParameters;var H=F.partnerConfigMinReadTimestamp;var d=this,a,S;return _.p(function(K){if(J!==void 0&&u!==void 0)throw Error("ik");
var h=(new r$w).setHeader(d.getHeader(t,v));a=_.Kw(h,2,q);P!==void 0&&_.Kw(a,14,P);if(J!==void 0){h=a;var c=Array.from(J.values());_.j5(h,5,c,_.rJ)}else u!==void 0&&(h=a,c=Array.from(u.values()),_.j5(h,3,c,_.rJ));Q!==void 0&&_.Kw(a,6,Q);e!==void 0&&_.HW(a,15,e);Y!==void 0&&(h=a,c=Array.from(Y.values()),_.j5(h,4,c,_.cf));if(r!==void 0){if(r&&(!z||z.size===0))throw Error("nk");_.HW(a,8,r)}N!==void 0&&_.$B(a,9,N);g!==void 0&&_.Kw(a,13,g);w!==void 0&&(h=a,c=(new TextEncoder).encode(w),_.cs(h,12,_.G1(c,
!1),_.T1()));k!==void 0&&_.Kw(a,16,k);H!==void 0&&_.My(a,18,H);if(T!==void 0&&T.size>0||z!==void 0&&z.size>0)S=new RKC,z!==void 0&&z.size>0&&(h=S,c=Array.from(z.values()),_.j5(h,1,c,_.rJ)),T!==void 0&&(T.has(0)&&_.mDq(S,2,_.cf,1,_.t9),T.has(1)&&_.mDq(S,2,_.cf,2,_.t9)),_.My(a,17,S);return K.return(d.makeRequest(d.galServiceClient.startLinkingSession,a,[1],[2]))})};
nF.prototype.getMetadata=function(){var F=this,q,t;return _.p(function(u){q={};F.useFpa?(q["X-Goog-Api-Key"]=F.apiKey,q["X-Goog-AuthUser"]=F.authUser!==void 0?F.authUser.toString():"0",(t=_.jE3([]))&&(q.Authorization=t)):q.Authorization="Bearer "+F.oauthToken;F.locale&&(q["accept-language"]=F.locale);return u.return(q)})};
nF.prototype.makeRequest=function(F,q,t,u){var J=this,g;return _.p(function(Y){if(Y.nextAddress==1)return Y.yield(J.getMetadata(),2);g=Y.yieldResult;vDQ(J,t);return Y.return(F.bind(J.galServiceClient)(q,g).finally(function(){vDQ(J,u)}))})};
var vDQ=function(F,q){F.galSdkEventHandler!==void 0&&q.forEach(function(t){F.galSdkEventHandler.onEvent(t)})};
nF.prototype.getHeader=function(F,q){var t=new uh;F=_.cs(t,2,_.uw(F),0);F=_.$B(F,5,3);q=_.j5(F,8,q,_.rJ);this.bucket!==void 0&&_.Kw(q,1,this.bucket);return q};
var Acs=function(F){var q=F.serviceId;var t=F.scopes;var u=F.capabilities;F=F.linkName;if(u!==void 0&&t!==void 0)throw Error("ik");var J=new Kc3;q=_.Kw(J,1,q);u!==void 0?(t=Array.from(u.values()),_.j5(q,5,t,_.rJ)):t!==void 0&&(t=Array.from(t.values()),_.j5(q,3,t,_.rJ));F!==void 0&&_.Kw(q,6,F);return q};var m15=function(F){this.galService=new nF(F.alsDomain,F.apiKey,F.authUser,F.oauthToken,F.bucket,F.locale,F.galSdkEventHandler);this.JSC$19461_galRepository=new Xry(this.galService)};
m15.prototype.getService=function(){return this.galService};var I6s=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(I6s,_.le);var HQC=function(F){var q=new I6s;return _.pt(q,1,F)};
I6s.prototype.setErrorMessage=function(F){return _.OF(this,2,F)};var mzv=[0,_.J$,_.ci,_.J$];var MQ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(MQ,_.le);var $z7=[0,[1,2,3],_.uX,[0,ts9,sC3,-1],_.uX,[0,Ja9,-1],_.qt];var bQD=[0,_.f4,1,_.J$,_.ci,-1,1,_.uFP,_.K4,_.J$,-1,$z7];var yc7=[0,_.J$,[0,_.uFP,_.K4,[0,_.ci]],_.aC,[0,_.J$,-1]];var de=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(de,_.le);var Cbh=[0,_.ci,_.J$,-2,_.f4,_.J$,_.f4,_.J$,-2,1,_.aC];var dz9=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(dz9,_.le);var Vuv=[0,_.f4];var Uzw=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Uzw,_.le);var Srv=[0,_.J$,yc7,Vuv,Cbh,bQD];var Kp9=_.w$(Uzw,Srv);var hNh=[0,hKJ];var cCv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(cCv,_.le);var KXs=[0,[1,3],Xi9,_.J$,Xi9];var ym=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ym,_.le);var BUJ=[0,_.J$];var LXJ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(LXJ,_.le);var CU=function(F){return _.Hi(F,I6s,2,bI)},f63=function(F){var q=new LXJ;
return _.T9(q,2,bI,F)},bI=[1,
2];var a6C=[0,bI,_.uX,BUJ,_.uX,mzv,_.t$,KXs,1,_.J$,hNh];var jRs=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(jRs,_.le);var F_5=function(F){var q=new jRs;return _.T9(q,3,ccs,F)},ccs=[2,
3];var T8=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(T8,_.le);var q5Q=function(F,q){return _.My(F,2,q)},tj5=function(F,q){return _.My(F,8,q)},uzw=function(F,q){return _.My(F,3,q)};var Jky=[0,_.J$,a6C,Srv,_.YD,[0,[5,6,7],[0,_.J$,-2],[0,_.f4,_.J$,_.ci],[0,$z7],[0,_.ci,_.J$,-1,_.Xo,_.J$],_.uX,[0,[0,_.f4],_.J$,-1],_.uX,[0,[3,4],_.J$,-1,_.uX,[0,[0,_.J$,_.aC]],_.uX,[0,[0,[0,[1,2],_.uX,[0],_.uX,[0]]]]],_.uX,[0]],_.YD,-1,[0,ccs,_.J$,_.uX,BUJ,_.uX,mzv,_.t$,KXs,[0,hKJ]]];var sa9=_.w$(T8,Jky),gdh=_.ES(Jky);var lJ7=function(){_.OP.call(this)};
_.M(lJ7,_.OP);lJ7.prototype.init=function(){};
new lJ7;var XLv=_.LZ(["data-"]),Y5s=_.LZ(["aria-"]),pLT=_.LZ(["aria-"]),G8=function(F,q){this.isLatencyMeasurementExperiment=F===void 0?!1:F;this.enableDialogA11yFix=q===void 0?!1:q;this.JSC$19490_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.y9e(_.uu.location.href)},LpT=function(F,q){F.onConsentPrimitiveShownCallback=q},Qaw=function(F,q){return F.overriddenIframeLoadTimeout?F.overriddenIframeLoadTimeout:q!==void 0?q:5E3},azy=function(F){if(F.prewarmPromise!==void 0)return F.prewarmPromise;
F.prewarmPromise=new Promise(function(q,t){Du(F,1);eYD(F,ZnD(F,!0),RYC(F));F.iframe?F.prewarmChannel||rkT(F,F.iframe,q):t(Error("ok"))});
F.prewarmPromise.finally(function(){F.prewarmPromise=void 0});
return F.prewarmPromise};
G8.prototype.showPrimitive=function(){var F=this;if(this.consentPromise!==void 0)return this.consentPromise;var q=Date.now();N3y(this,q);this.consentPromise=new Promise(function(t,u){Du(F,0,q);var J=F.isDarkTheme();F.isLatencyMeasurementExperiment||F.initialLoadingStrategy===1||F.initialLoadingStrategy===2||(F.loadingBar||(F.loadingBar=C1s(getComputedStyle(document.body).direction==="rtl",J),F.loadingBar.style.position="fixed",F.loadingBar.style.zIndex="15000"),document.body.appendChild(F.loadingBar));
eYD(F,ZnD(F),RYC(F));F.iframe?F.channel||wL5(F,F.iframe,t,u):(inC(F),u(Error("ok")))});
this.consentPromise.finally(function(){F.consentPromise=void 0});
return this.consentPromise};
var wL5=function(F,q,t,u){var J,g;_.p(function(Y){switch(Y.nextAddress){case 1:Du(F,3);J=!1;setTimeout(function(){if(!J){inC(F);kST(F);Ed9(F);var Q=HQC(7).setErrorMessage("Timeout connecting to iframe");t(tj5(q5Q(new T8,f63(Q)),F_5(Q)))}},Qaw(F,zY9(F)));
if(!F.prewarmPromise){Y.jumpTo(2);break}_.zg(Y,3);return Y.yield(F.prewarmPromise,5);case 5:_.LE(Y,2);break;case 3:_.Gg(Y),g=HQC(4).setErrorMessage("Error while prewarming."),t(tj5(q5Q(new T8,f63(g)),F_5(g)));case 2:F.prewarmChannel&&F.prewarmChannel.send(gdh(uzw(new T8,F.consentPrimitiveRequest))),F.channel=_.Xh({destination:F.JSC$19490_win,iframe:q,origin:ods(F),channelName:"cpw",onEstablished:function(){J=!0;inC(F);F.isLatencyMeasurementExperiment||(F.JSC$19490_previousBodyOverflow=document.body.style.overflow,
F.JSC$19490_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,F.JSC$19490_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",F.enableDialogA11yFix&&window.addEventListener("blur",F.focusChangeListener));var Q=F.iframe;Q.style.bottom="0";Q.style.position="fixed";Q.style.right="0";Q.style.border="none";Q.style.left="0";Q.style.top=
"0";Q.style.zIndex="5000";Q.style.pointerEvents="";Q.style.visibility="";F.initialLoadingStrategy===2||F.initialLoadingStrategy===3?Du(F,4):Du(F,6);var e;(e=F.onConsentPrimitiveShownCallback)==null||e.call(F)},
onMessage:function(Q){Q=sa9(Q.data);switch(_.Aa(Q,1)){case 1:kST(F);var e=d17(_.Yw(Q,_.HZ,7));e&&(F.initialLoadingStrategy!==2&&F.initialLoadingStrategy!==3||Du(F,6,e),Du(F,5,e));if(e=d17(_.Yw(Q,_.HZ,6)))Du(F,7,e),Du(F,8);var r,N;((r=_.Yw(Q,LXJ,2))==null?void 0:_.MJ(r,bI))!==0&&((N=_.Yw(Q,jRs,8))==null?void 0:_.MJ(N,ccs))!==0||u(Error("pk"));t(Q);break;case 2:Ed9(F)}}}),_.WA(Y)}})},rkT=function(F,q,t){F.prewarmChannel=_.Xh({destination:F.JSC$19490_win,
iframe:q,origin:ods(F),channelName:"pwcp",onEstablished:function(){Du(F,2);t()}})},ods=function(F){var q=_.PS(F.src).toString();
return q&&q.indexOf("://")<0&&q.indexOf("//")!==0?F.origin:_.y9e(q)},ZnD=function(F,q){q=q===void 0?!1:q;
var t,u=new Map([["origin",F.origin],["hl",(t=nd9(F))!=null?t:null]]);q&&u.set("pw","1");q=_.X([["cpr",F.consentPrimitiveRequest.serialize()]]);for(t=q.next();!t.done;t=q.next()){var J=_.X(t.value);t=J.next().value;J=J.next().value;u.set(t,J)}F.isDarkTheme()&&u.set("color_scheme","dark");return _.Na(F.src,u)},inC=function(F){F.isLatencyMeasurementExperiment||F.loadingBar&&document.body.removeChild(F.loadingBar)};
G8.prototype.getSrc=function(){var F=_.FR(this.origin),q;var t=(q=_.Yw(this.consentPrimitiveRequest,dz9,3))==null?void 0:_.pr(q,1);q="consent.google.com";t=t?"/u/"+encodeURIComponent(t.toString()):"";(F==null?0:F.endsWith("youtube.com"))?q="consent.youtube.com":(F=F==null?void 0:F.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(q="consent.google."+((F[1]?"co.":"")+encodeURIComponent(F[2])));return _.OS("https://"+q+"/signedin"+t+"/landing")};
var eYD=function(F,q,t){F.iframe||(F.iframe=document.createElement("iframe"),F.iframe.style.width="100%",F.iframe.style.height="100%",t!==112496729&&(F.iframe.style.colorScheme="auto"),F.isLatencyMeasurementExperiment&&(F.iframe.style.display="none"),_.aK(F.iframe,q),F.iframe.setAttribute("jsname","C5o1O"),Mjs(F.iframe),document.body.appendChild(F.iframe))},Mjs=function(F){F.style.bottom="-200vh";
F.style.position="fixed";F.style.right="-200vw";F.style.border="";F.style.left="";F.style.top="";F.style.zIndex="";F.style.pointerEvents="none";F.style.visibility="hidden"},kST=function(F){F.iframe&&(F.isLatencyMeasurementExperiment||(F.JSC$19490_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=F.JSC$19490_previousHtmlOverscroll),F.JSC$19490_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=F.JSC$19490_previousBodyOverscroll),F.JSC$19490_previousBodyOverflow!==
void 0&&(document.body.style.overflow=F.JSC$19490_previousBodyOverflow),F.enableDialogA11yFix&&T33(F,!1)),Mjs(F.iframe))};
G8.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(T33(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var T33=function(F,q){var t,u,J=(t=F.iframe)==null?void 0:(u=t.parentElement)==null?void 0:u.children;if(J)for(t=0;t<J.length;t++)u=J[t],u!==F.iframe&&(q?(u.hasAttribute("aria-hidden")&&_.ss([_.Qp(XLv)],u,"data-old-aria-hidden",u.getAttribute("aria-hidden")),_.ss([_.Qp(Y5s)],u,"aria-hidden","true")):(u.removeAttribute("aria-hidden"),u.hasAttribute("data-old-aria-hidden")&&(_.ss([_.Qp(pLT)],u,"aria-hidden",u.getAttribute("data-old-aria-hidden")),u.removeAttribute("data-old-aria-hidden"))))},Du=function(F,
q,t){var u;
(u=F.latencyCallback)==null||u.call(F,{latencyType:q,timestampEpochMillis:t!=null?t:Date.now()})};var GSC=function(F,q,t){G8.call(this,q,t===void 0?!1:t);this.consentPrimitiveRequest=F;F=nd9(this);_.z_h(F);this.src=this.getSrc();var u;this.initialLoadingStrategy=(u=_.Yw(this.consentPrimitiveRequest,de,4))==null?void 0:_.Aa(u,4)},DVD;
_.M(GSC,G8);var B0T=function(F){var q=_.E("enable_primitive_dialog_aria_hide_siblings");F={request:F,enableDialogA11yFix:q===void 0?!1:q};DVD||(DVD=new GSC(F.request,F.isLatencyMeasurementExperiment||_.Aa(F.request,1)===2,F.enableDialogA11yFix));return DVD},nd9=function(F){var q;
return(q=_.Yw(F.consentPrimitiveRequest,de,4))==null?void 0:_.xB(q,1)},N3y=function(F,q){if(!_.Ea(F.consentPrimitiveRequest,MQ,5)){var t=F.consentPrimitiveRequest,u=new MQ;
_.My(t,5,u)}var J;if((J=_.Yw(F.consentPrimitiveRequest,MQ,5))==null||_.PJo(_.kB(J,8))==null){var g;(g=_.Yw(F.consentPrimitiveRequest,MQ,5))!=null&&_.Gm(g,8,q)}},RYC=function(F){var q;
return(q=_.Yw(F.consentPrimitiveRequest,MQ,5))==null?void 0:_.pr(q,1)};
GSC.prototype.isDarkTheme=function(){var F;return((F=_.Yw(this.consentPrimitiveRequest,de,4))==null?void 0:_.Aa(F,2))===2};
var zY9=function(F){var q;return((q=_.Yw(F.consentPrimitiveRequest,de,4))==null?void 0:_.pr(q,5))||void 0},Ed9=function(F){F.channel=void 0;
F.prewarmChannel=void 0;F.iframe&&(document.body.contains(F.iframe)&&document.body.removeChild(F.iframe),F.iframe=void 0);DVD=void 0},jss=function(F){return G8.prototype.showPrimitive.call(F).then(function(q){return _.Yw(q,LXJ,2)})};for(var WM={},W_y=(WM[64]="ma",WM[73]="ogb",WM[89]="cr",WM[21]="test",WM[0]="unkn",WM[137]="con",WM[155]="hl",WM[78]="yt",WM[171]="lp",WM[172]="ap",WM[177]="amo",WM[178]="pqe",WM[74]="gg",WM[1]="gm",WM[140]="am",WM[193]="sc",WM),Onh=_.X(Object.keys(W_y)),PiQ=Onh.next();!PiQ.done;PiQ=Onh.next());var xV9=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(xV9,_.le);var Ak9=[0,[2,3,4],_.J$,urT,Xi9,_.qt];var vdv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(vdv,_.le);var IJ5=_.w$(vdv,[0,_.sN,_.ci,_.J$,_.ci,_.J$,Ak9]);var HnJ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(HnJ,_.le);HnJ.prototype.getCommand=function(){return _.Aa(this,1)};
var mVv=function(){var F=new HnJ;return _.$B(F,1,0)};var $V9=_.ES([0,_.sN,_.ci,[0,_.J$,_.ci,-1]]);var bn7=new _.Tw("s"),ykJ=new _.Tw("t"),Civ=new _.Tw("u"),dVv=new _.Tw("v"),Vjh=function(F,q,t){_.Gw.call(this,bn7);this.mediaKey=F;this.photoUrl=q;this.photoSource=t};
_.M(Vjh,_.Gw);var UVy=function(){_.Gw.call(this,ykJ)};
_.M(UVy,_.Gw);var S57=function(F){F=F===void 0?!1:F;_.Gw.call(this,Civ);this.isError=F};
_.M(S57,_.Gw);var hYs=function(){_.Gw.call(this,dVv)};
_.M(hYs,_.Gw);var K_7=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,aJC=function(F){if(typeof F=="string"){if(F.charAt(0)==".")return B3w(F.substr(1));if(F.charAt(0)=="["){var q=K_7.exec(F);F=F.indexOf("=")==-1?void 0:q[3];return L_D(q[1],F)}return fJ5(F)}return F},B3w=function(F){return function(q){return q.getAttribute&&_.ju(q,F)}},L_D=function(F,q){return function(t){return q!==void 0?t.getAttribute&&t.getAttribute(F)==q:t.hasAttribute&&t.hasAttribute(F)}},fJ5=function(F){F=F.toUpperCase();
return function(q){return(q=q.tagName)&&q.toUpperCase()==F}},jaQ=function(){return!0};var OJ=function(F,q){this.JSC$19518_key_=F;this.JSC$19518_value_=q},PM=function(F){throw Error("qk`"+F.JSC$19518_key_);
},ckT=function(F,q){return new TypeError("rk`"+q+"`"+F.JSC$19518_key_+"`"+F.JSC$19518_value_+"`"+typeof F.JSC$19518_value_)};
OJ.prototype.string=function(F){return arguments.length==0?FEs(this):qYv(this,F)};
var qYv=function(F,q){var t;return(t=th9(F))!=null?t:q},FEs=function(F){var q=th9(F);
q===null&&PM(F);return q},th9=function(F){var q=F.JSC$19518_value_;
if(q==null)return null;if(typeof q==="string")return q;throw ckT(F,"string");};
OJ.prototype.bool=function(F){if(arguments.length==0){var q=this.optionalBool();q===null&&PM(this)}else{var t;q=(t=this.optionalBool())!=null?t:F}return q};
OJ.prototype.optionalBool=function(){var F=this.JSC$19518_value_;if(F==null)return null;if(typeof F==="boolean")return F;if(typeof F==="string"){F=F.toLowerCase();if(F==="true"||F==="1")return!0;if(F==="false"||F==="0")return!1}throw ckT(this,"boolean");};
OJ.prototype.number=function(F){if(arguments.length==0){var q=uk3(this);q===null&&PM(this)}else q=Jdv(this,F);return q};
var Jdv=function(F,q){var t;return(t=uk3(F))!=null?t:q},uk3=function(F){var q=F.JSC$19518_value_;
if(q==null)return null;if(typeof q==="number")return q;if(typeof q==="string"){var t=Number(q);if(!isNaN(t)&&(t!==0||q.trim().length!==0))return t}throw ckT(F,"number");};
OJ.prototype.toString=function(){return FEs(this)};
OJ.prototype.enum=function(F,q){var t=!0,u=void 0,J;for(J in F){var g=F[J];t&&(t=!1,u=typeof g==="number"?Jdv(this,q):qYv(this,q));if(g==u)return u}JSON.stringify(F);return u};
OJ.prototype.array=function(F){if(arguments.length==0){var q=sO9(this);q===null&&PM(this);return q}q=sO9(this);return q==null?F:q};
var sO9=function(F){var q=F.JSC$19518_value_;if(q==null)return null;Array.isArray(q)||(typeof q!=="string"?q=[q]:(q=q.trim(),q=q==""?[]:q.split(",").map(function(t){return t.trim()})));
return gch(F,q)},gch=function(F,q){var t=F.JSC$19518_key_+"[";
return Array.from(q,function(u,J){return new OJ(t+J+"]",u)})};
OJ.prototype.object=function(F){var q=this.JSC$19518_value_;if(q==null)return F===void 0&&PM(this),F;if(typeof q==="object"&&q.constructor===Object){F={};var t=this.JSC$19518_key_+".",u;for(u in q)F[u]=new OJ(t+u,q[u]);return F}throw ckT(this,"object");};var xU=function(F){this.list_=ldv(F)},ldv=function(F){if(F instanceof xU)F=F.list_;
else if(F[0]instanceof xU){for(var q=new Set,t=0;t<F.length;t++)for(var u=_.X(F[t].list_),J=u.next();!J.done;J=u.next())q.add(J.value);F=q}return[].concat(_.mZ(F))};
_.l=xU.prototype;_.l.each=function(F,q,t){((t===void 0?0:t)?BQC:_.B_)(this.list_,F,q);return this};
_.l.size=function(){return this.list_.length};
_.l.isEmpty=function(){return this.list_.length===0};
_.l.get=function(F){return this.list_[F]||null};
_.l.el=function(){return this.list_[0]||null};
_.l.map=function(F,q){return _.$q(this.list_,F,q)};
_.l.equals=function(F){return this===F||_.By(this.list_,F.list_)};
_.l.first=function(){return this.list_.length==0?null:new As(this.list_[0])};
_.l.last=function(){return this.list_.length==0?null:new As(this.list_[this.list_.length-1])};
_.l.find=function(F){var q=[];this.each(function(t){t=t.querySelectorAll(String(F));for(var u=0;u<t.length;u++)q.push(t[u])});
return new xU(q)};
_.l.parent=function(){var F=[];this.each(function(q){(q=q.parentElement||null)&&!_.bu(F,q)&&F.push(q)});
return new xU(F)};
_.l.children=function(){var F=[];this.each(function(q){q=_.d1(q);for(var t=0;t<q.length;t++)F.push(q[t])});
return new xU(F)};
_.l.filter=function(F){F=_.Xr(this.list_,aJC(F));return new xU(F)};
_.l.closest=function(F){var q=[],t=aJC(F),u=function(J){return _.F1(J)&&t(J)};
this.each(function(J){(J=_.Vp(J,u,!0))&&!_.bu(q,J)&&q.push(J)});
return new xU(q)};
_.l.next=function(F){return Xb3(this,_.u3J,F)};
_.l.prev=function(F){return Xb3(this,Ya5,F)};
var Xb3=function(F,q,t){var u=[];var J=t?aJC(t):jaQ;F.each(function(g){(g=q(g))&&J(g)&&u.push(g)});
return new xU(u)};
xU.prototype.setClass=function(F){return this.each(function(q){_.aR(q,F)})};
var YYJ=function(F,q){return F.each(function(t){_.gC(t,q)})},pb9=function(F,q){return F.each(function(t){_.JT(t,q)})};
xU.prototype.toggleClass=function(F,q){return q===!0?YYJ(this,F):q===!1?pb9(this,F):this.each(function(t){_.ju(t,F)?_.JT(t,F):_.gC(t,F)})};
xU.prototype.setText=function(F){return this.each(function(q){_.V2(q,F)})};
var QOw=function(F){F.each(function(q){q.removeAttribute("aria-hidden")})};
xU.prototype.getStyle=function(F){if(this.list_.length>0){var q=this.list_[0],t=q.style[_.Md(F)];return typeof t!=="undefined"?t:q.style[_.NJE(q,F)]||""}};
xU.prototype.getData=function(F){if(this.list_.length===0)return new OJ(F,null);var q=cJs(this.list_[0],F);return new OJ(F,q)};
xU.prototype.focus=function(F){try{F?this.el().focus(F):this.el().focus()}catch(q){}return this};
xU.prototype.click=function(){var F=_.Cs(this.el());if(F.createEvent){var q=F.createEvent("MouseEvents");q.initMouseEvent("click",!0,!0,F.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(q)}else F=F.createEventObject(),F.clientX=0,F.clientY=0,F.screenX=0,F.screenY=0,F.altKey=!1,F.ctrlKey=!1,F.shiftKey=!1,F.button=0,this.el().fireEvent("onclick",F)};
var vM=function(F,q,t,u){function J(Q,e,r){var N=e;e&&e.parentNode&&(N=e.cloneNode(!0));Q(N,r)}
u=u===void 0?!1:u;if(F.list_.length==1){var g=F.list_[0],Y=function(Q){return q(Q,g)};
t instanceof xU?t.each(Y,void 0,u):Array.isArray(t)?(u?BQC:_.B_)(t,Y):Y(t);return F}return F.each(function(Q){t instanceof xU?t.each(function(e){J(q,e,Q)}):Array.isArray(t)?_.B_(t,function(e){J(q,e,Q)}):J(q,t,Q)})};
_.l=xU.prototype;_.l.append=function(F){return vM(this,function(q,t){q&&t.appendChild(q)},F)};
_.l.appendTo=function(F){(new xU([F])).append(this);return this};
_.l.remove=function(){return vM(this,function(F,q){_.Mq(q)},null)};
_.l.empty=function(){return vM(this,function(F,q){_.bX(q)},null)};
_.l.after=function(F,q){return vM(this,function(t,u){t&&_.CR(t,u)},F,!(q===void 0||q))};
_.l.before=function(F){return vM(this,function(q,t){q&&_.y2(q,t)},F)};
_.l.replaceWith=function(F){return vM(this,function(q,t){q&&_.FvJ(q,t)},F)};
_.l.toggle=function(F){return this.each(function(q){_.jr(q,F)})};
_.l.show=function(){return this.toggle(!0)};
_.l.hide=function(){return this.toggle(!1)};
_.l.trigger=function(F,q,t,u){return e3J(this,F,q,t,u)};
var e3J=function(F,q,t,u,J){return F.each(function(g){_.nwf(_.Cs(g)).triggerWizEventInternal(g,q,t,u,J)})},As=function(F,q){F instanceof xU&&(q=F.list_,F=null);
this.list_=ldv(F!=null?[F]:q)};
_.gd(As,xU);_.l=As.prototype;_.l.children=function(){return new xU(Array.prototype.slice.call(_.d1(this.list_[0])))};
_.l.each=function(F,q){F.call(q,this.list_[0],0);return this};
_.l.size=function(){return 1};
_.l.el=function(){return this.list_[0]};
_.l.first=function(){return this};var Ii=function(F,q){q=q===void 0?window:q;this.hostId=F;this.JSC$19529_win=q;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$19529_previousHtmlOverscroll=this.JSC$19529_previousBodyOverscroll=this.JSC$19529_previousBodyOverflow="";this.eventTarget=new _.xD;this.JSC$19529_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
rdJ=function(F){var q=Zg9(Zg9(Zg9(new R3v(78),"po"),"hppp"),"hhc");
q.authUser=Number(_.bn("SESSION_INDEX","0"));q.colorScheme=F;return q};
Ii.prototype.getOrigin=function(){return this.origin?this.origin:_.pn(_.Yd(_.Xz(new _.qU,this.JSC$19529_win.location.protocol),this.JSC$19529_win.location.hostname),this.JSC$19529_win.location.port).toString()};
Ii.prototype.getTargetOrigin=function(){return _.pn(_.Yd(_.Xz(new _.qU,this.scheme),this.domain),this.port)};
Ii.prototype.preloadIframe=function(F){var q=this;if(this.iframeLoadPromise===void 0){var t=document.createElement("iframe");this.iframe=t;LB5(t,F);this.iframeLoadPromise=new Promise(function(u,J){var g=!1,Y=function(Q){Q.stopPropagation();t.removeEventListener("error",Y);t.removeEventListener("securitypolicyviolation",Y);J(Error("sk",{cause:Q}))};
t.addEventListener("error",Y);t.addEventListener("securitypolicyviolation",Y);setTimeout(function(){g||J(Error("tk"))},3E4);
NgC(q,t,function(){g=!0;t.removeEventListener("error",Y);t.removeEventListener("securitypolicyviolation",Y);u()})});
wbv(this);F=this.getTargetOrigin().toString();t.setAttribute("allow","camera "+F+"; display-capture "+F);this.parentElement.appendChild(t)}return this.iframeLoadPromise};
var Ec9=function(F,q){var t,u;return _.p(function(J){if(J.nextAddress==1)return t=C1s(getComputedStyle(F.parentElement).direction==="rtl"),F.parentElement.appendChild(t),document.activeElement instanceof HTMLElement&&(F.elementToFocusAfterClose=document.activeElement),_.zg(J,2),J.yield(F.preloadIframe(q),4);if(J.nextAddress!=2){F.parentElement.removeChild(t);F.JSC$19529_previousBodyOverflow=F.parentElement.style.overflow;F.JSC$19529_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
F.JSC$19529_previousBodyOverscroll=F.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";F.parentElement.style.overscrollBehavior="contain";F.parentElement.style.overflow="hidden";var g=F.iframe;g.style.bottom="0";g.style.border="none";g.style.height="100%";g.style.left="0";g.style.position=F.iframePosition;g.style.right="0";g.style.top="0";g.style.width="100%";g.style.zIndex="2202";g.setAttribute("aria-hidden","false");g.setAttribute("aria-modal","true");
F.opened=!0;igh(F);return _.LE(J,0)}u=_.Gg(J);F.parentElement.removeChild(t);hbT(F.isDarkTheme());kU9(F,!1);throw Error("uk",{cause:u});})},kU9=function(F,q){q=q===void 0?!0:q;
F.iframe!==void 0&&(z3h(F),document.documentElement.style.overscrollBehavior=F.JSC$19529_previousHtmlOverscroll,F.parentElement.style.overscrollBehavior=F.JSC$19529_previousBodyOverscroll,F.parentElement.style.overflow=F.JSC$19529_previousBodyOverflow,F.elementToFocusAfterClose!==void 0&&(F.elementToFocusAfterClose.focus(),F.elementToFocusAfterClose=void 0),q?wbv(F):(F.parentElement.removeChild(F.iframe),F.iframe=void 0,F.iframeLoadPromise=void 0,F.mainChannel=void 0),F.opened=!1)},z3h=function(F){F.backgroundElementsAriaHiddenIsNull&&
(QOw(F.backgroundElementsAriaHiddenIsNull),F.backgroundElementsAriaHiddenIsNull=void 0);
F.backgroundElementsAriaHiddenIsFalse&&(F.backgroundElementsAriaHiddenIsFalse.each(function(q){q.setAttribute("aria-hidden","false")}),F.backgroundElementsAriaHiddenIsFalse=void 0);
F.backgroundElementsWithoutInert&&(F.backgroundElementsWithoutInert.each(function(q){q.removeAttribute("inert")}),F.backgroundElementsWithoutInert=void 0)},igh=function(F){F.backgroundElementsAriaHiddenIsNull=(new As(F.iframe.parentElement)).children().filter(function(q){return q.getAttribute("aria-hidden")===null&&q!==F.iframe});
F.backgroundElementsAriaHiddenIsNull.each(function(q){q.setAttribute("aria-hidden","true")});
F.backgroundElementsAriaHiddenIsFalse=(new As(F.iframe.parentElement)).children().filter(function(q){return q.getAttribute("aria-hidden")==="false"&&q!==F.iframe});
F.backgroundElementsAriaHiddenIsFalse.each(function(q){q.setAttribute("aria-hidden","true")});
F.backgroundElementsWithoutInert=(new As(F.iframe.parentElement)).children().filter(function(q){return!q.hasAttribute("inert")&&q!==F.iframe});
F.backgroundElementsWithoutInert.each(function(q){q.setAttribute("inert","true")})},wbv=function(F){F=F.iframe;
F.style.bottom="-1000px";F.style.position="fixed";F.style.right="-1000px";F.style.border="";F.style.height="";F.style.left="";F.style.top="";F.style.width="";F.style.zIndex="";F.setAttribute("aria-hidden","true");F.setAttribute("aria-modal","false")};
Ii.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var R3v=function(F,q){Ii.call(this,W_y[F],q);this.options=[];this.style=""};
_.M(R3v,Ii);var oc5=function(F){F.style="youtube";return F},ncT=function(F,q){F.eventTarget.listen(Civ,q);
return F},Mhy=function(F,q){F.eventTarget.listen(bn7,q);
return F},Zg9=function(F,q){F.options.push(q);
return F},Tg9=function(F){var q=[F.getOrigin()];
F.ancestorOrigins&&q.push.apply(q,_.mZ(F.ancestorOrigins));var t=new _.qU(F.JSC$19529_win.location.href),u=F.startUrl?F.startUrl:F.options.includes("po")?"profile-picture/art":"profile-picture";q=Vm(_.QV(F.getTargetOrigin(),u),"origin",q);F.startUrl&&_.aX(q,"startPath",F.startUrl);F.authUser>0&&_.aX(q,"authuser",F.authUser);F.pageId!==void 0&&_.aX(q,"pageId",F.pageId);_.aX(q,"hostId",F.hostId);F.jsMode!==void 0&&_.aX(q,"jsmode",F.jsMode);F.rectangleRatio!==void 0&&_.aX(q,"rectangleRatio",F.rectangleRatio);
F.options.length>0&&_.aX(q,"opts",F.options.join(","));try{for(var J=_.X(["utm_source","utm_medium","utm_campaign","utm_content"]),g=J.next();!g.done;g=J.next()){var Y=g.value;_.fr(t,Y)&&_.aX(q,Y,_.fr(t,Y))}var Q,e=(Q=F.hl)!=null?Q:_.fr(t,"hl");e!==void 0&&_.aX(q,"hl",e)}catch(r){if(!(r instanceof URIError))throw r;}F.colorScheme&&_.aX(q,"theme",F.colorScheme);F.style&&_.aX(q,"style",F.style);return q},GUQ=function(F,q){F.mainChannel=_.Xh({destination:F.JSC$19529_win,
iframe:q,origin:F.getTargetOrigin().toString(),channelName:"ow",onMessage:function(t){t=IJ5(t.data);if(q===F.iframe)switch(_.Aa(t,1)){case 1:F.eventTarget.dispatchEvent(new S57);kU9(F);break;case 2:F.eventTarget.dispatchEvent(new Vjh(_.xB(t,4),_.xB(t,2),_.Aa(t,5),_.Yw(t,xV9,6)));break;case 0:var u;F.eventTarget.dispatchEvent(new UVy(_.xB(t,2),(u=_.Aa(t,3))!=null?u:0));break;case 3:F.eventTarget.dispatchEvent(new S57(!0));kU9(F,!1);break;case 4:F.eventTarget.dispatchEvent(new hYs)}}})},NgC=function(F,
q,t){_.Xh({destination:F.JSC$19529_win,
iframe:q,origin:_.pn(_.Yd(_.Xz(new _.qU,F.scheme),F.domain),F.port).toString(),channelName:"owi",onMessage:function(u){q===F.iframe&&(t!==void 0&&t(),GUQ(F,q),F.opened&&F.mainChannel.send($V9(mVv())),u.reply(),NgC(F,q))}})};
R3v.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Ii.prototype.preloadIframe.call(this,Tg9(this).toString()):this.iframeLoadPromise};
R3v.prototype.openPicker=function(F){var q=this;return _.p(function(t){if(t.nextAddress==1)return q.startUrl=F?F:q.options.includes("po")?"profile-picture/art":"profile-picture",t.yield(Ec9(q,Tg9(q).toString()),2);if(q.mainChannel){var u=q.mainChannel,J=u.send;var g=mVv();g=_.OF(g,2,q.startUrl);J.call(u,$V9(g))}_.WA(t)})};var Dgy=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(Dgy,_.le);_.l=Dgy.prototype;_.l.getSize=function(){return fU(this,1)};
_.l.setSize=function(F){return _.mc(this,1,F)};
_.l.getWidth=function(){return fU(this,12)};
_.l.getHeight=function(){return fU(this,13)};
_.l.setCenterCrop=function(F){return _.RX(this,20,F)};
_.l.getHtml=function(){return _.Wi(this,4)};
_.l.getToken=function(){return _.oX(this,24)};
_.l.setToken=function(F){return _.OF(this,24,F)};
_.l.getBackgroundColor=function(){return fU(this,87)};
_.l.hasBackgroundColor=function(){return _.J9(_.kB(this,87))!=null};
_.l.getStoryboardLevel=function(){return fU(this,109)};var HM=function(F){this.JSC$19537_value_=void 0;this.childNodes_={};if(F){var q=_.Sdx(F);F=_.li(F);for(var t=0;t<q.length;t++)this.set(q[t],F[t])}};
HM.prototype.set=function(F,q){WED(this,F,q,!1)};
HM.prototype.add=function(F,q){WED(this,F,q,!0)};
var WED=function(F,q,t,u){for(var J=0;J<q.length;J++){var g=q.charAt(J);F.childNodes_[g]||(F.childNodes_[g]=new HM);F=F.childNodes_[g]}if(u&&F.JSC$19537_value_!==void 0)throw Error("vk`"+q);F.JSC$19537_value_=t},Og7=function(F,q){for(var t=0;t<q.length;t++)if(F=F.childNodes_[q.charAt(t)],!F)return;
return F};
HM.prototype.get=function(F){return(F=Og7(this,F))?F.JSC$19537_value_:void 0};
HM.prototype.getValues=function(){var F=[];Plv(this,F);return F};
var Plv=function(F,q){F.JSC$19537_value_!==void 0&&q.push(F.JSC$19537_value_);for(var t in F.childNodes_)Plv(F.childNodes_[t],q)};
HM.prototype.getKeys=function(F){var q=[];if(F){for(var t=this,u=0;u<F.length;u++){var J=F.charAt(u);if(!t.childNodes_[J])return[];t=t.childNodes_[J]}xgs(t,F,q)}else xgs(this,"",q);return q};
var xgs=function(F,q,t){F.JSC$19537_value_!==void 0&&t.push(q);for(var u in F.childNodes_)xgs(F.childNodes_[u],q+u,t)};
_.l=HM.prototype;_.l.containsKey=function(F){return this.get(F)!==void 0};
_.l.containsValue=function(F){if(this.JSC$19537_value_===F)return!0;for(var q in this.childNodes_)if(this.childNodes_[q].containsValue(F))return!0;return!1};
_.l.clear=function(){this.childNodes_={};this.JSC$19537_value_=void 0};
_.l.remove=function(F){for(var q=this,t=[],u=0;u<F.length;u++){var J=F.charAt(u);if(!q.childNodes_[J])throw Error("wk`"+F);t.push([q,J]);q=q.childNodes_[J]}F=q.JSC$19537_value_;for(delete q.JSC$19537_value_;t.length>0;)if(u=t.pop(),q=u[0],u=u[1],q.childNodes_[u].isEmpty())delete q.childNodes_[u];else break;return F};
_.l.clone=function(){return new HM(this)};
_.l.getCount=function(){return Z4w(this.getValues())};
_.l.isEmpty=function(){return this.JSC$19537_value_===void 0&&_.m7.isEmpty(this.childNodes_)};var F63=function(){if(!Ad5){var F=Ad5=new HM,q;for(q in vcv)F.add(q,vcv[q])}},Ad5,ms=function(F,q){this.types=F;
this.setters=q},vcv={a:new ms([3,
0],[function(F,q){_.RX(F,21,q)},
function(F,q){_.mc(F,56,q)}]),
al:new ms([3],[function(F,q){_.RX(F,74,q)}]),
b:new ms([3,0],[function(F,q){_.RX(F,23,q)},
function(F,q){_.mc(F,38,q)}]),
ba:new ms([0],[function(F,q){_.mc(F,85,q)}]),
bc:new ms([0],[function(F,q){_.mc(F,87,q)}]),
br:new ms([0],[function(F,q){_.mc(F,86,q)}]),
c:new ms([3,0],[function(F,q){_.RX(F,2,q)},
function(F,q){_.mc(F,39,q)}]),
cc:new ms([3],[function(F,q){_.RX(F,51,q)}]),
ci:new ms([3],[function(F,q){_.RX(F,32,q)}]),
ckm:new ms([3],[function(F,q){_.RX(F,104,q)}]),
cp:new ms([0],[function(F,q){_.mc(F,92,q)}]),
cr:new ms([3],[function(F,q){_.RX(F,108,q)}]),
cv:new ms([0],[function(F,q){_.mc(F,94,q)}]),
d:new ms([3],[function(F,q){_.RX(F,3,q)}]),
dc:new ms([5],[function(F,q){_.OF(F,99,q)}]),
df:new ms([3],[function(F,q){_.RX(F,80,q)}]),
dv:new ms([3],[function(F,q){_.RX(F,90,q)}]),
e:new ms([0],[function(F,q){_.mc(F,15,q)}]),
em:new ms([0],[function(F,q){_.mc(F,107,q)}]),
f:new ms([4],[function(F,q){_.OF(F,16,q)}]),
fg:new ms([3],[function(F,q){_.RX(F,34,q)}]),
fh:new ms([3],[function(F,q){_.RX(F,30,q)}]),
fm:new ms([3],[function(F,q){_.RX(F,84,q)}]),
fo:new ms([2],[function(F,q){_.Qa(F,79,_.SC(q))}]),
ft:new ms([3],[function(F,q){_.RX(F,50,q)}]),
fv:new ms([3],[function(F,q){_.RX(F,31,q)}]),
g:new ms([3],[function(F,q){_.RX(F,14,q)}]),
gce:new ms([4],[function(F,q){_.OF(F,112,q)}]),
gd:new ms([3],[function(F,q){_.RX(F,83,q)}]),
gm:new ms([3],[function(F,q){_.RX(F,105,q)}]),
h:new ms([3,0],[function(F,q){_.RX(F,4,q)},
function(F,q){_.mc(F,13,q)}]),
i:new ms([3],[function(F,q){_.RX(F,22,q)}]),
ic:new ms([0],[function(F,q){_.mc(F,71,q)}]),
id:new ms([3],[function(F,q){_.RX(F,70,q)}]),
il:new ms([3],[function(F,q){_.RX(F,96,q)}]),
ip:new ms([3],[function(F,q){_.RX(F,54,q)}]),
iv:new ms([0],[function(F,q){_.Gm(F,75,q)}]),
j:new ms([1],[function(F,q){q=q==null?q:ath(q);_.Qa(F,29,q)}]),
k:new ms([3,0],[function(F,q){_.RX(F,17,q)},
function(F,q){_.mc(F,42,q)}]),
l:new ms([0],[function(F,q){_.mc(F,44,q)}]),
lf:new ms([3],[function(F,q){_.RX(F,65,q)}]),
lo:new ms([3],[function(F,q){_.RX(F,97,q)}]),
m:new ms([0],[function(F,q){_.mc(F,63,q)}]),
md:new ms([3],[function(F,q){_.RX(F,91,q)}]),
mm:new ms([4],[function(F,q){_.OF(F,81,q)}]),
mo:new ms([3],[function(F,q){_.RX(F,73,q)}]),
mp:new ms([0],[function(F,q){_.mc(F,115,q)}]),
mv:new ms([3],[function(F,q){_.RX(F,66,q)}]),
n:new ms([3],[function(F,q){F.setCenterCrop(q)}]),
nc:new ms([3],[function(F,q){_.RX(F,55,q)}]),
nd:new ms([3],[function(F,q){_.RX(F,53,q)}]),
ng:new ms([3],[function(F,q){_.RX(F,95,q)}]),
ngm:new ms([3],[function(F,q){_.RX(F,106,q)}]),
no:new ms([3],[function(F,q){_.RX(F,37,q)}]),
ns:new ms([3],[function(F,q){_.RX(F,40,q)}]),
nt0:new ms([4],[function(F,q){_.OF(F,36,q)}]),
ntm:new ms([3],[function(F,q){_.RX(F,114,q)}]),
nu:new ms([3],[function(F,q){_.RX(F,46,q)}]),
nw:new ms([3],[function(F,q){_.RX(F,48,q)}]),
o:new ms([1,3],[function(F,q){q=q==null?q:ath(q);_.Qa(F,7,q)},
function(F,q){_.RX(F,27,q)}]),
p:new ms([3,0],[function(F,q){_.RX(F,19,q)},
function(F,q){_.mc(F,43,q)}]),
pa:new ms([3],[function(F,q){_.RX(F,61,q)}]),
pc:new ms([0],[function(F,q){_.mc(F,88,q)}]),
pd:new ms([3],[function(F,q){_.RX(F,60,q)}]),
pf:new ms([3],[function(F,q){_.RX(F,67,q)}]),
pg:new ms([3],[function(F,q){_.RX(F,72,q)}]),
pi:new ms([2],[function(F,q){_.Qa(F,76,_.SC(q))}]),
pp:new ms([3],[function(F,q){_.RX(F,52,q)}]),
pt:new ms([4],[function(F,q){_.OF(F,111,q)}]),
q:new ms([4],[function(F,q){_.OF(F,28,q)}]),
r:new ms([3,0],[function(F,q){_.RX(F,6,q)},
function(F,q){_.mc(F,26,q)}]),
ra:new ms([3],[function(F,q){_.RX(F,103,q)}]),
rf:new ms([3],[function(F,q){_.RX(F,100,q)}]),
rg:new ms([3],[function(F,q){_.RX(F,59,q)}]),
rh:new ms([3],[function(F,q){_.RX(F,49,q)}]),
rj:new ms([3],[function(F,q){_.RX(F,57,q)}]),
ro:new ms([2],[function(F,q){_.Qa(F,78,_.SC(q))}]),
rp:new ms([3],[function(F,q){_.RX(F,58,q)}]),
rw:new ms([3],[function(F,q){_.RX(F,35,q)}]),
rwa:new ms([3],[function(F,q){_.RX(F,64,q)}]),
rwu:new ms([3],[function(F,q){_.RX(F,41,q)}]),
s:new ms([3,0],[function(F,q){_.RX(F,33,q)},
function(F,q){F.setSize(q)}]),
sb:new ms([0],[function(F,q){_.mc(F,110,q)}]),
sc:new ms([0],[function(F,q){_.mc(F,89,q)}]),
sg:new ms([3],[function(F,q){_.RX(F,82,q)}]),
sl:new ms([0],[function(F,q){_.mc(F,109,q)}]),
sm:new ms([3],[function(F,q){_.RX(F,93,q)}]),
t:new ms([4],[function(F,q){F.setToken(q)}]),
tm:new ms([3],[function(F,q){_.RX(F,113,q)}]),
u:new ms([3],[function(F,q){_.RX(F,18,q)}]),
ut:new ms([3],[function(F,q){_.RX(F,45,q)}]),
v:new ms([0],[function(F,q){_.mc(F,62,q)}]),
vb:new ms([0],[function(F,q){_.Gm(F,68,q)}]),
vf:new ms([4],[function(F,q){_.OF(F,102,q)}]),
vl:new ms([0],[function(F,q){_.Gm(F,69,q)}]),
vm:new ms([3],[function(F,q){_.RX(F,98,q)}]),
w:new ms([0],[function(F,q){_.mc(F,12,q)}]),
x:new ms([0],[function(F,q){_.mc(F,9,q)}]),
y:new ms([0],[function(F,q){_.mc(F,10,q)}]),
ya:new ms([2],[function(F,q){_.Qa(F,77,_.SC(q))}]),
z:new ms([0],[function(F,q){_.mc(F,11,q)}])};
F63.prototype.parse=function(F){var q=new Dgy,t=new Dgy;if(F=="")F=!0;else{F=F.split("-");for(var u=!0,J=0;J<F.length;J++){var g=F[J];if(g.length==0)u=!1;else{var Y=g,Q=!1;var e=Y;var r=Y.charAt(0);r!=r.toLowerCase()&&(Q=!0,e=Y.charAt(0).toLowerCase()+Y.substring(1));var N=Ad5;for(r=1;r<=e.length;++r){var w=N,k=e.substring(0,r);if(k.length==0?w.isEmpty():!Og7(w,k))break}e=r==1?null:(e=N.get(e.substring(0,r-1)))?{option:Y.substring(0,r-1),value:Y.substring(r-1),signed:Q,attributes:e}:null;if(e){Y=
[];Q=[];r=!1;for(N=0;N<e.attributes.types.length;N++){w=e.attributes.types[N];var z=e.value;k=J;if(e.signed&&w==1)for(var T=z.length;T<12&&k<F.length-1;)z+="-"+F[k+1],T=z.length,++k;else if(w==2)for(;k<F.length-1&&F[k+1].match(/^[\d\.]/);)z+="-"+F[k+1],++k;T=e.attributes.setters[N];z=Id7(this,w)(e.option,z,q,t,T);if(z===null){r=!0;J=k;break}else Y.push(w),Q.push(z)}if(!r)for(e=0;e<Q.length;e++)N=Y[e],z=Q[e],Hgs(this,N)(g,z);u=u&&r}else u=!1}}F=u}return new mg3(q,t,F)};
var $U=function(F,q,t,u,J,g){J(t,q);F=F.charAt(0);g=g(F==F.toUpperCase());J(u,g)};
_.l=F63.prototype;_.l.parseAndSetIntOption_=function(F,q,t,u,J){if(q=="")return 0;isFinite(q)&&(q=String(q));q=typeof q==="string"?/^\s*-?0x/i.test(q)?parseInt(q,16):parseInt(q,10):NaN;if(isNaN(q))return 1;$U(F,q,t,u,J,Number);return null};
_.l.logIntParseError_=function(){};
_.l.parseAndSetFloatOption_=function(F,q,t,u,J){if(q=="")return 0;var g=Number(q);q=g==0&&_.YP(q)?NaN:g;if(isNaN(q))return 1;$U(F,q,t,u,J,Number);return null};
_.l.logFloatParseError_=function(){};
_.l.parseAndSetBoolOption_=function(F,q,t,u,J){if(q!="")return 2;$U(F,!0,t,u,J,Boolean);return null};
_.l.logBoolParseError_=function(){};
_.l.parseAndSetStringOption_=function(F,q,t,u,J){if(q=="")return 0;$U(F,q,t,u,J,function(g){return g?"1":""});
return null};
_.l.logStringParseError_=function(){};
_.l.parseAndSetUint64Base64Option_=function(F,q,t,u,J){if(q=="")return 0;$U(F,q,t,u,J,function(g){return g?1:0});
return null};
var Id7=function(F,q){switch(q){case 0:return(0,_.Pd)(F.parseAndSetIntOption_,F);case 2:return(0,_.Pd)(F.parseAndSetFloatOption_,F);case 3:return(0,_.Pd)(F.parseAndSetBoolOption_,F);case 4:return(0,_.Pd)(F.parseAndSetStringOption_,F);case 1:return(0,_.Pd)(F.parseAndSetUint64Base64Option_,F);default:return function(){}}},Hgs=function(F,q){switch(q){case 0:return(0,_.Pd)(F.logIntParseError_,F);
case 2:return(0,_.Pd)(F.logFloatParseError_,F);case 3:return(0,_.Pd)(F.logBoolParseError_,F);case 4:case 1:return(0,_.Pd)(F.logStringParseError_,F);default:return function(){}}},mg3=function(F,q,t){this.valueProto_=F;
this.signatureFlagProto_=q;this.JSC$19549_valid_=t};
mg3.prototype.isValid=function(){return this.JSC$19549_valid_};var fnT=function(F){this.JSC$19550_parser_=null;this.JSC$19550_components_=[];this.JSC$19550_parsedOptions_=null;$gy(this,F)},bgD=function(F){F.JSC$19550_parser_==null&&(F.JSC$19550_parser_=new F63);
return F.JSC$19550_parser_},$gy=function(F,q){F.JSC$19550_parsedOptions_=q?typeof q==="string"?bgD(F).parse(q):q:bgD(F).parse("")},bh=function(F,q){return F==q?!1:!0};
_.l=fnT.prototype;_.l.JSC$19552_setCrop=function(F){F=F||void 0;var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,_.Wi(t,2),_.Wi(q.signatureFlagProto_,2))&&_.RX(t,2,F);return this};
_.l.JSC$19552_setCircleCrop=function(F){F=F||void 0;var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,LU(t,51),LU(q.signatureFlagProto_,51))&&_.RX(t,51,F);return this};
_.l.JSC$19552_setImageCrop=function(F){F=F||void 0;var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,LU(t,32),LU(q.signatureFlagProto_,32))&&_.RX(t,32,F);return this};
_.l.JSC$19552_setHeight=function(F){var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,t.getHeight(),q.signatureFlagProto_.getHeight())&&_.mc(t,13,F);return this};
_.l.setCenterCrop=function(F){F=F||void 0;var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,_.Wi(t,20),_.Wi(q.signatureFlagProto_,20))&&t.setCenterCrop(F);return this};
_.l.JSC$19552_setSmartCrop=function(F){F=F||void 0;var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,_.Wi(t,19),_.Wi(q.signatureFlagProto_,19))&&_.RX(t,19,F);return this};
_.l.JSC$19552_setPad=function(F){F=F||void 0;var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,LU(t,60),LU(q.signatureFlagProto_,60))&&_.RX(t,60,F);return this};
_.l.JSC$19552_setSmartCropUseFace=function(F){F=F||void 0;var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,_.Wi(t,67),_.Wi(q.signatureFlagProto_,67))&&_.RX(t,67,F);return this};
_.l.JSC$19552_setSmartCropNoClip=function(F){F=F||void 0;var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,_.Wi(t,52),_.Wi(q.signatureFlagProto_,52))&&_.RX(t,52,F);return this};
_.l.setSize=function(F){var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,t.getSize(),q.signatureFlagProto_.getSize())&&t.setSize(F);return this};
_.l.setToken=function(F){F=F||void 0;var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,t.getToken(),q.signatureFlagProto_.getToken())&&t.setToken(F);return this};
_.l.JSC$19552_setWidth=function(F){var q=this.JSC$19550_parsedOptions_,t=q.valueProto_;bh(F,t.getWidth(),q.signatureFlagProto_.getWidth())&&_.mc(t,12,F);return this};
_.l.clearOptions=function(){$gy(this,"");return this};
_.l.build=function(){this.JSC$19550_components_.length=0;var F=this.JSC$19550_parsedOptions_,q=F.valueProto_;F=F.signatureFlagProto_;ye(this,"s",q.getSize(),F.getSize());ye(this,"w",q.getWidth(),F.getWidth());CF(this,"c",_.Wi(q,2),_.Wi(F,2));CF(this,"d",_.Wi(q,3),_.Wi(F,3));ye(this,"h",q.getHeight(),F.getHeight());CF(this,"s",LU(q,33),LU(F,33));CF(this,"h",q.getHtml(),F.getHtml());CF(this,"p",_.Wi(q,19),_.Wi(F,19));CF(this,"pp",_.Wi(q,52),_.Wi(F,52));CF(this,"pf",_.Wi(q,67),_.Wi(F,67));CF(this,"n",
_.Wi(q,20),_.Wi(F,20));ye(this,"r",fU(q,26),fU(F,26));CF(this,"r",_.Wi(q,6),_.Wi(F,6));CF(this,"o",LU(q,27),LU(F,27));var t=_.Df(q,7,_.ip);d4(this,"o",t,_.Df(F,7,_.ip));t=_.Df(q,29,_.ip);d4(this,"j",t,_.Df(F,29,_.ip));ye(this,"x",fU(q,9),fU(F,9));ye(this,"y",fU(q,10),fU(F,10));ye(this,"z",fU(q,11),fU(F,11));CF(this,"g",_.Wi(q,14),_.Wi(F,14));ye(this,"e",fU(q,15),fU(F,15));d4(this,"f",_.oX(q,16),_.oX(F,16));CF(this,"k",LU(q,17),LU(F,17));CF(this,"u",LU(q,18),!0);CF(this,"ut",LU(q,45),!0);CF(this,"i",
LU(q,22),!0);CF(this,"a",LU(q,21),LU(F,21));CF(this,"b",_.Wi(q,23),_.Wi(F,23));ye(this,"b",fU(q,38),fU(F,38));ye(this,"c",fU(q,39),fU(F,39),16,8);d4(this,"q",_.oX(q,28),_.oX(F,28));CF(this,"fh",LU(q,30),LU(F,30));CF(this,"fv",LU(q,31),LU(F,31));CF(this,"fg",_.Wi(q,34),_.Wi(F,34));CF(this,"ci",LU(q,32),LU(F,32));d4(this,"t",q.getToken(),F.getToken());d4(this,"nt0",_.oX(q,36),_.oX(F,36));CF(this,"rw",_.Wi(q,35),_.Wi(F,35));CF(this,"rwu",_.Wi(q,41),_.Wi(F,41));CF(this,"rwa",_.Wi(q,64),_.Wi(F,64));CF(this,
"nw",_.Wi(q,48),_.Wi(F,48));CF(this,"rh",_.Wi(q,49),_.Wi(F,49));CF(this,"no",_.Wi(q,37),_.Wi(F,37));CF(this,"ns",LU(q,40),LU(F,40));ye(this,"k",fU(q,42),fU(F,42));ye(this,"p",fU(q,43),fU(F,43));ye(this,"l",fU(q,44),fU(F,44));ye(this,"v",fU(q,62),fU(F,62));CF(this,"nu",LU(q,46),LU(F,46));CF(this,"ft",LU(q,50),LU(F,50));CF(this,"cc",LU(q,51),LU(F,51));CF(this,"nd",LU(q,53),LU(F,53));CF(this,"ip",LU(q,54),LU(F,54));CF(this,"nc",LU(q,55),LU(F,55));ye(this,"a",fU(q,56),fU(F,56));CF(this,"rj",LU(q,57),
LU(F,57));CF(this,"rp",LU(q,58),LU(F,58));CF(this,"rg",LU(q,59),LU(F,59));CF(this,"pd",LU(q,60),LU(F,60));CF(this,"pa",LU(q,61),LU(F,61));ye(this,"m",fU(q,63),fU(F,63));ye(this,"vb",ar(q,68),ar(F,68));ye(this,"vl",ar(q,69),ar(F,69));CF(this,"lf",LU(q,65),LU(F,65));CF(this,"mv",LU(q,66),LU(F,66));CF(this,"id",LU(q,70),LU(F,70));ye(this,"ic",fU(q,71),!0);CF(this,"pg",_.Wi(q,72),_.Wi(F,72));CF(this,"mo",LU(q,73),LU(F,73));CF(this,"al",LU(q,74),LU(F,74));ye(this,"iv",ar(q,75),ar(F,75));ye(this,"pi",jl(q,
76),jl(F,76));ye(this,"ya",jl(q,77),jl(F,77));ye(this,"ro",jl(q,78),jl(F,78));ye(this,"fo",jl(q,79),jl(F,79));CF(this,"df",LU(q,80),LU(F,80));d4(this,"mm",_.oX(q,81),_.oX(F,81));CF(this,"sg",LU(q,82),LU(F,82));CF(this,"gd",LU(q,83),LU(F,83));CF(this,"fm",LU(q,84),LU(F,84));ye(this,"ba",fU(q,85),fU(F,85));ye(this,"br",fU(q,86),fU(F,86));ye(this,"bc",q.getBackgroundColor(),F.getBackgroundColor(),16,8);ye(this,"pc",fU(q,88),fU(F,88),16,8);ye(this,"sc",fU(q,89),fU(F,89),16,8);CF(this,"dv",LU(q,90),LU(F,
90));CF(this,"md",LU(q,91),LU(F,91));ye(this,"cp",fU(q,92),fU(F,92));CF(this,"sm",LU(q,93),LU(F,93));ye(this,"cv",fU(q,94),fU(F,94));CF(this,"ng",LU(q,95),LU(F,95));CF(this,"il",LU(q,96),LU(F,96));CF(this,"lo",LU(q,97),LU(F,97));CF(this,"vm",LU(q,98),LU(F,98));d4(this,"dc",_.oX(q,99),_.oX(F,99));CF(this,"rf",LU(q,100),LU(F,100));d4(this,"vf",_.oX(q,102),_.oX(F,102));CF(this,"ra",_.Wi(q,103),_.Wi(F,103));CF(this,"ckm",LU(q,104),LU(F,104));CF(this,"gm",LU(q,105),LU(F,105));CF(this,"ngm",LU(q,106),LU(F,
106));ye(this,"em",fU(q,107),fU(F,107));CF(this,"cr",LU(q,108),LU(F,108));ye(this,"sl",q.getStoryboardLevel(),F.getStoryboardLevel());ye(this,"sb",fU(q,110),fU(F,110));d4(this,"pt",_.oX(q,111),_.oX(F,111));d4(this,"gce",_.oX(q,112),_.oX(F,112));CF(this,"tm",LU(q,113),LU(F,113));CF(this,"ntm",LU(q,114),LU(F,114));ye(this,"mp",fU(q,115),fU(F,115));return this.JSC$19550_components_.join("-")};
var ye=function(F,q,t,u,J,g){if(t!=null){var Y=J==void 0||J!=10&&J!=16?10:J;t=Number(t).toString(Y);J=new RSy;J.append(Y==16?"0x":"");Y=J.append;g==void 0?g="":(g-=t.length,g=g<=0?"":(0,_.yoe)("0",g));Y.call(J,g);J.append(t);ydv(F,q,J.toString(),!!Number(u))}},CF=function(F,q,t,u){t&&ydv(F,q,"",!!u)},d4=function(F,q,t,u){t&&ydv(F,q,String(t),!!Number(u))},ydv=function(F,q,t,u){u&&(q=q.charAt(0).toUpperCase()+q.substring(1));
F.JSC$19550_components_.push(q+t)};_.gd(ge,fnT);_.l=ge.prototype;_.l.JSC$19552_setCrop=function(F){F&&Ve(this);return ge.superClass_.JSC$19552_setCrop.call(this,F)};
_.l.JSC$19552_setHeight=function(F){F=F==null||F<0?void 0:F;F!=null&&this.setSize();return ge.superClass_.JSC$19552_setHeight.call(this,F)};
_.l.JSC$19552_setImageCrop=function(F){F&&Ve(this);return ge.superClass_.JSC$19552_setImageCrop.call(this,F)};
_.l.JSC$19552_setCircleCrop=function(F){F&&Ve(this);return ge.superClass_.JSC$19552_setCircleCrop.call(this,F)};
_.l.setSize=function(F){_.ho(F)&&(F=Math.max(F.width,F.height));F=F==null||F<0?void 0:F;F!=null&&(this.JSC$19552_setWidth(),this.JSC$19552_setHeight());return ge.superClass_.setSize.call(this,F)};
_.l.JSC$19552_setSmartCrop=function(F){F&&Ve(this);return ge.superClass_.JSC$19552_setSmartCrop.call(this,F)};
_.l.JSC$19552_setSmartCropNoClip=function(F){F&&Ve(this);return ge.superClass_.JSC$19552_setSmartCropNoClip.call(this,F)};
_.l.JSC$19552_setSmartCropUseFace=function(F){F&&Ve(this);return ge.superClass_.JSC$19552_setSmartCropUseFace.call(this,F)};
_.l.setCenterCrop=function(F){F&&Ve(this);return ge.superClass_.setCenterCrop.call(this,F)};
_.l.JSC$19552_setPad=function(F){F&&Ve(this);return ge.superClass_.JSC$19552_setPad.call(this,F)};
_.l.JSC$19552_setWidth=function(F){F=F==null||F<0?void 0:F;F!=null&&this.setSize();return ge.superClass_.JSC$19552_setWidth.call(this,F)};
var ClQ=function(F){F.clearOptions();var q=F.JSC$19550_parsedOptions_,t=q.valueProto_;bh(!0,_.Wi(t,3),_.Wi(q.signatureFlagProto_,3))&&_.RX(t,3,!0);return F},Ve=function(F){F.setCenterCrop();
F.JSC$19552_setCircleCrop();F.JSC$19552_setCrop();F.JSC$19552_setImageCrop();F.JSC$19552_setPad();F.JSC$19552_setSmartCrop();F.JSC$19552_setSmartCropNoClip();F.JSC$19552_setSmartCropUseFace()};
ge.prototype.build=function(){var F=this.JSC$19550_parsedOptions_.valueProto_;LU(F,18)||LU(F,45)?F.getSize()||this.setSize(0):(F=this.JSC$19550_parsedOptions_.valueProto_,F.getSize()||F.getWidth()||F.getHeight()||(this.setSize(),this.JSC$19552_setHeight(),this.JSC$19552_setWidth(),Ve(this)));return ge.superClass_.build.call(this)};var dgC=/^[^\/]*\/\//,UJ=function(F,q){q=q===void 0?!1:q;this.original_=F;this.originalPrefix_="";(F=this.original_.match(dgC))&&F[0]?(this.originalPrefix_=F[0],F=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):F="http://"+this.original_;this.uri_=_.Lr(F,!0);this.isFreeformUrl_=q;this.JSC$19556_valid_=!0;this.obfuscated_=!1},Vh5=function(F,q){F.JSC$19558_pathPrefix_=F.JSC$19558_pathPrefix_?F.JSC$19558_pathPrefix_+("/"+q):q},SB=function(F){if(F.JSC$19558_components_==
void 0){var q=F.uri_.getPath().substring(1);
F.JSC$19558_pathPrefix_=null;if(F.isFreeformUrl_){F.JSC$19558_components_=[];if((q.match(/=/g)||[]).length>1)return F.JSC$19556_valid_=!1,F.JSC$19558_components_;var t=q.indexOf("=");t!=-1?(F.JSC$19558_components_.push(q.substr(0,t)),F.JSC$19558_components_.push(q.substr(t+1))):F.JSC$19558_components_.push(q);return F.JSC$19558_components_}F.JSC$19558_components_=q.split("/");q=F.JSC$19558_components_.length;q>2&&F.JSC$19558_components_[0]=="u"&&(Vh5(F,F.JSC$19558_components_[0]+"/"+F.JSC$19558_components_[1]),
F.JSC$19558_components_.shift(),F.JSC$19558_components_.shift(),q-=2);if(q==0||q==4||q>7)return F.JSC$19556_valid_=!1,F.JSC$19558_components_;if(q==2)Vh5(F,F.JSC$19558_components_[0]);else if(F.JSC$19558_components_[0]=="image")Vh5(F,F.JSC$19558_components_[0]);else if(q==7||q==3)return F.JSC$19556_valid_=!1,F.JSC$19558_components_;if(q<=3){F.obfuscated_=!0;q==3&&(Vh5(F,F.JSC$19558_components_[1]),F.JSC$19558_components_.shift(),--q);--q;t=F.JSC$19558_components_[q];var u=t.indexOf("=");u!=-1&&(F.JSC$19558_components_[q]=
t.substr(0,u),F.JSC$19558_components_.push(t.substr(u+1)))}}return F.JSC$19558_components_};
UJ.prototype.isValid=function(){SB(this);return this.JSC$19556_valid_};
UJ.prototype.isObfuscated=function(){SB(this);return this.obfuscated_};
var Ug7=function(F){SB(F);return F.isFreeformUrl_},hs=function(F){SB(F);
F.JSC$19558_pathPrefix_==void 0&&(F.JSC$19558_pathPrefix_=null);return F.JSC$19558_pathPrefix_},SYC=function(F){switch(SB(F).length){case 7:return!0;
case 6:return hs(F)==null;case 5:return!1;case 3:return!0;case 2:return hs(F)==null;case 1:return!1;default:return!1}},KF=function(F,q){if(Ug7(F))a:{switch(q){case 7:q=0;
break;case 4:if(!SYC(F)){F=null;break a}q=1;break;default:F=null;break a}F=SB(F)[q]}else if(F.isObfuscated())a:{var t=hs(F)!=null?1:0;switch(q){case 6:q=t;break;case 4:if(!SYC(F)){F=null;break a}q=1+t;break;default:F=null;break a}F=SB(F)[q]}else a:{t=hs(F)!=null?1:0;switch(q){case 0:q=t;break;case 1:q=1+t;break;case 2:q=2+t;break;case 3:q=3+t;break;case 4:if(!SYC(F)){F=null;break a}q=4+t;break;case 5:q=SYC(F)?1:0;q=4+t+q;break;default:F=null;break a}F=SB(F)[q]}return F};
UJ.prototype.getOptions=function(){this.options_==void 0&&(this.options_=KF(this,4));return this.options_};var cn7=function(){};
cn7.prototype.parse=function(F,q){return new anD(F,q===void 0?!1:q)};
var anD=function(F,q){UJ.call(this,F,q===void 0?!1:q)};
_.M(anD,UJ);_.gd(lI,ge);var jb7;lI.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
lI.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var F=lI.superClass_.build.call(this),q=[];hs(this.parsedImageUrl_)!=null&&q.push(hs(this.parsedImageUrl_));var t=Ug7(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var u=this.parsedImageUrl_;u.obfuscatedData_==void 0&&(u.obfuscatedData_=KF(u,6));q.push(u.obfuscatedData_+(F?"="+F:""))}else if(t){u=q.push;var J=this.parsedImageUrl_;J.freeformUrlPath_===void 0&&(J.freeformUrlPath_=KF(J,
7));u.call(q,J.freeformUrlPath_);F&&q.push(F)}else u=q.push,J=this.parsedImageUrl_,J.obfuscatedGaiaId_==void 0&&(J.obfuscatedGaiaId_=KF(J,0)),u.call(q,J.obfuscatedGaiaId_),u=q.push,J=this.parsedImageUrl_,J.photoId_==void 0&&(J.photoId_=KF(J,1)),u.call(q,J.photoId_),u=q.push,J=this.parsedImageUrl_,J.imageVersion_==void 0&&(J.imageVersion_=KF(J,2)),u.call(q,J.imageVersion_),u=q.push,J=this.parsedImageUrl_,J.signature_==void 0&&(J.signature_=KF(J,3)),u.call(q,J.signature_),F&&q.push(F),F=q.push,u=this.parsedImageUrl_,
u.filename_==void 0&&(u.filename_=KF(u,5)),F.call(q,u.filename_);q=t?q.join("="):q.join("/");q=_.Lr(this.protocolPrefix_+this.JSC$19564_domain_+"/"+q+(this.JSC$19564_query_?"?"+this.JSC$19564_query_:"")).toString();q.startsWith("%3a//")&&(q=q.replace("%3a//","://"));return q};var h3T=_.LZ(["viewBox"]),KE3=_.LZ(["width"]),BgJ=_.LZ(["height"]),LEJ=_.LZ(["fill"]),fdv=_.LZ(["id"]),adQ=_.LZ(["x"]),jO9=_.LZ(["y"]);qB9.prototype.getLength=function(){return this.parsedData.length};
qB9.prototype.write=function(F){for(var q=0,t=this.parsedData.length;q<t;q++)F.put(this.parsedData[q],8)};
var Xhv=function(F,q){var t=new qB9(q);F.dataList.push(t);t=F.errorCorrectLevel;var u=1,J=encodeURI(q).toString().replace(/%[0-9a-fA-F]{2}/g,"a");q=J.length+(J.length!=q?3:0);J=0;for(var g=BM.length;J<=g;J++){var Y=0;switch(t){case 1:Y=BM[J][0];break;case 0:Y=BM[J][1];break;case 3:Y=BM[J][2];break;case 2:Y=BM[J][3]}if(q<=Y)break;else u++}if(u>BM.length)throw Error("Fk");F.typeNumber=u;F.dataCache=null};
tpv.prototype.isDark=function(F,q){if(F<0||this.moduleCount<=F||q<0||this.moduleCount<=q)throw Error("xk`"+F+"`"+q);return this.modules[F][q]};
for(var YBD=function(F,q,t){F.moduleCount=F.typeNumber*4+17;F.modules=Array(F.moduleCount);for(var u=0;u<F.moduleCount;u++){F.modules[u]=Array(F.moduleCount);for(var J=0;J<F.moduleCount;J++)F.modules[u][J]=null}cdw(F,0,0);cdw(F,F.moduleCount-7,0);cdw(F,0,F.moduleCount-7);u=FYy[F.typeNumber-1];for(J=0;J<u.length;J++)for(var g=0;g<u.length;g++){var Y=u[J],Q=u[g];if(F.modules[Y][Q]==null)for(var e=-2;e<=2;e++)for(var r=-2;r<=2;r++)F.modules[Y+e][Q+r]=e==-2||e==2||r==-2||r==2||e==0&&r==0?!0:!1}for(u=
8;u<F.moduleCount-8;u++)F.modules[u][6]==null&&(F.modules[u][6]=u%2==0);for(u=8;u<F.moduleCount-8;u++)F.modules[6][u]==null&&(F.modules[6][u]=u%2==0);u=F.errorCorrectLevel<<3|t;for(J=u<<10;LF(J)-LF(1335)>=0;)J^=1335<<LF(J)-LF(1335);u=(u<<10|J)^21522;for(J=0;J<15;J++)g=!q&&(u>>J&1)==1,J<6?F.modules[J][8]=g:J<8?F.modules[J+1][8]=g:F.modules[F.moduleCount-15+J][8]=g;for(J=0;J<15;J++)g=!q&&(u>>J&1)==1,J<8?F.modules[8][F.moduleCount-J-1]=g:J<9?F.modules[8][15-J-1+1]=g:F.modules[8][15-J-1]=g;F.modules[F.moduleCount-
8][8]=!q;if(F.typeNumber>=7){u=F.typeNumber;for(J=u<<12;LF(J)-LF(7973)>=0;)J^=7973<<LF(J)-LF(7973);u=u<<12|J;for(J=0;J<18;J++)g=!q&&(u>>J&1)==1,F.modules[Math.floor(J/3)][J%3+F.moduleCount-8-3]=g;for(J=0;J<18;J++)g=!q&&(u>>J&1)==1,F.modules[J%3+F.moduleCount-8-3][Math.floor(J/3)]=g}if(F.dataCache==null){J=F.typeNumber;g=F.dataList;q=F.errorCorrectLevel;u=quT(J,q);if(u==void 0)throw Error("Ek`"+J+"`"+q);Y=u.length/3;q=[];for(Q=0;Q<Y;Q++){e=u[Q*3];r=u[Q*3+1];for(var N=u[Q*3+2],w=0;w<e;w++)q.push(new uey(r,
N))}u=new JYv;for(Y=0;Y<g.length;Y++)Q=g[Y],u.put(Q.mode,4),u.put(Q.getLength(),tZ9(Q.mode,J)),Q.write(u);for(Y=J=0;Y<q.length;Y++)J+=q[Y].dataCount;if(u.length>J*8)throw Error("yk`"+u.length+"`"+J*8);for(u.length+4<=J*8&&u.put(0,4);u.length%8!=0;)uH9(u,!1);for(;!(u.length>=J*8);){u.put(236,8);if(u.length>=J*8)break;u.put(17,8)}g=J=r=0;Y=Array(q.length);Q=Array(q.length);for(e=0;e<q.length;e++){w=q[e].dataCount;var k=q[e].totalCount-w;J=Math.max(J,w);g=Math.max(g,k);Y[e]=Array(w);for(N=0;N<Y[e].length;N++)Y[e][N]=
255&u.buffer[N+r];r+=w;N=k;w=new Xc([1],0);for(k=0;k<N;k++)w=w.multiply(new Xc([1,JM7(k)],0));N=w;w=(new Xc(Y[e],N.getLength()-1)).mod(N);Q[e]=Array(N.getLength()-1);for(N=0;N<Q[e].length;N++)k=N+w.getLength()-Q[e].length,Q[e][N]=k>=0?w.get(k):0}for(N=u=0;N<q.length;N++)u+=q[N].totalCount;u=Array(u);for(N=r=0;N<J;N++)for(e=0;e<q.length;e++)N<Y[e].length&&(u[r++]=Y[e][N]);for(N=0;N<g;N++)for(e=0;e<q.length;e++)N<Q[e].length&&(u[r++]=Q[e][N]);F.dataCache=u}q=F.dataCache;u=-1;J=F.moduleCount-1;g=7;Y=
0;for(Q=F.moduleCount-1;Q>0;Q-=2)for(Q==6&&Q--;;){for(e=0;e<2;e++)F.modules[J][Q-e]==null&&(r=!1,Y<q.length&&(r=(q[Y]>>>g&1)==1),szv(t,J,Q-e)&&(r=!r),F.modules[J][Q-e]=r,g--,g==-1&&(Y++,g=7));J+=u;if(J<0||F.moduleCount<=J){J-=u;u=-u;break}}},cdw=function(F,q,t){for(var u=-1;u<=7;u++)if(!(q+u<=-1||F.moduleCount<=q+u))for(var J=-1;J<=7;J++)t+J<=-1||F.moduleCount<=t+J||(F.modules[q+u][t+J]=0<=u&&u<=6&&(J==0||J==6)||0<=J&&J<=6&&(u==0||u==6)||2<=u&&u<=4&&2<=J&&J<=4?!0:!1)},phh=function(F){for(var q=0,
t=0,u=0;u<8;u++){YBD(F,!0,u);
var J=F;for(var g=J.moduleCount,Y=0,Q=0;Q<g;Q++)for(var e=0;e<g;e++){for(var r=0,N=J.isDark(Q,e),w=-1;w<=1;w++)if(!(Q+w<0||g<=Q+w))for(var k=-1;k<=1;k++)e+k<0||g<=e+k||(w!=0||k!=0)&&N==J.isDark(Q+w,e+k)&&r++;r>5&&(Y+=3+r-5)}for(Q=0;Q<g-1;Q++)for(e=0;e<g-1;e++)if(r=0,J.isDark(Q,e)&&r++,J.isDark(Q+1,e)&&r++,J.isDark(Q,e+1)&&r++,J.isDark(Q+1,e+1)&&r++,r==0||r==4)Y+=3;for(Q=0;Q<g;Q++)for(e=0;e<g-6;e++)J.isDark(Q,e)&&!J.isDark(Q,e+1)&&J.isDark(Q,e+2)&&J.isDark(Q,e+3)&&J.isDark(Q,e+4)&&!J.isDark(Q,e+5)&&
J.isDark(Q,e+6)&&(Y+=40);for(e=0;e<g;e++)for(Q=0;Q<g-6;Q++)J.isDark(Q,e)&&!J.isDark(Q+1,e)&&J.isDark(Q+2,e)&&J.isDark(Q+3,e)&&J.isDark(Q+4,e)&&!J.isDark(Q+5,e)&&J.isDark(Q+6,e)&&(Y+=40);for(e=r=0;e<g;e++)for(Q=0;Q<g;Q++)J.isDark(Q,e)&&r++;J=Y+=Math.abs(100*r/g/g-50)/5*10;if(u==0||q>J)q=J,t=u}return t},FYy=[[],
[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]],LF=function(F){for(var q=0;F!=0;)q++,F>>>=1;return q},szv=function(F,q,t){switch(F){case 0:return(q+t)%2==0;
case 1:return q%2==0;case 2:return t%3==0;case 3:return(q+t)%3==0;case 4:return(Math.floor(q/2)+Math.floor(t/3))%2==0;case 5:return q*t%2+q*t%3==0;case 6:return(q*t%2+q*t%3)%2==0;case 7:return(q*t%3+(q+t)%2)%2==0;default:throw Error("zk`"+F);}},tZ9=function(F,q){if(1<=q&&q<10)switch(F){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ak`"+F);}else if(q<27)switch(F){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ak`"+F);}else if(q<41)switch(F){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ak`"+F);}else throw Error("Bk`"+q);},fF=function(F){if(F<1)throw Error("Ck`"+F);
return gZJ[F]},JM7=function(F){for(;F<0;)F+=255;
for(;F>=256;)F-=255;return ai[F]},ai=Array(256),gZJ=Array(256),lC5=0;lC5<8;lC5++)ai[lC5]=1<<lC5;
for(var jB=8;jB<256;jB++)ai[jB]=ai[jB-4]^ai[jB-5]^ai[jB-6]^ai[jB-8];for(var XN9=0;XN9<255;XN9++)gZJ[ai[XN9]]=XN9;Xc.prototype.get=function(F){return this.num[F]};
Xc.prototype.getLength=function(){return this.num.length};
Xc.prototype.multiply=function(F){for(var q=Array(this.getLength()+F.getLength()-1),t=0;t<this.getLength();t++)for(var u=0;u<F.getLength();u++)q[t+u]^=JM7(fF(this.get(t))+fF(F.get(u)));return new Xc(q,0)};
Xc.prototype.mod=function(F){if(this.getLength()-F.getLength()<0)return this;for(var q=fF(this.get(0))-fF(F.get(0)),t=Array(this.getLength()),u=0;u<this.getLength();u++)t[u]=this.get(u);for(u=0;u<F.getLength();u++)t[u]^=JM7(fF(F.get(u))+q);return(new Xc(t,0)).mod(F)};
var Yu3=[[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]],quT=function(F,q){switch(q){case 1:return Yu3[(F-1)*4];case 0:return Yu3[(F-1)*4+1];case 3:return Yu3[(F-1)*4+2];case 2:return Yu3[(F-1)*4+3]}};
JYv.prototype.get=function(F){return(this.buffer[Math.floor(F/8)]>>>7-F%8&1)==1};
JYv.prototype.put=function(F,q){for(var t=0;t<q;t++)uH9(this,(F>>>q-t-1&1)==1)};
var uH9=function(F,q){var t=Math.floor(F.length/8);F.buffer.length<=t&&F.buffer.push(0);q&&(F.buffer[t]|=128>>>F.length%8);F.length++},BM=[[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]],lj3=function(){var F=function(q,t){this.JSC$19584__el=q;this.JSC$19584__htOption=t};
F.prototype.draw=function(q){function t(N,w){N=document.createElementNS("http://www.w3.org/2000/svg",N);for(var k in w)w.hasOwnProperty(k)&&(k==="href"?_.vIv(N,w[k]):_.ss([_.Qp(h3T),_.Qp(KE3),_.Qp(BgJ),_.Qp(LEJ),_.Qp(fdv),_.Qp(adQ),_.Qp(jO9)],N,k,w[k]));return N}
var u=this.JSC$19584__htOption,J=this.JSC$19584__el,g=q.moduleCount;this.clear();var Y=t("svg",{viewBox:"0 0 "+String(g)+" "+String(g),width:"100%",height:"100%",fill:u.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});J.appendChild(Y);Y.appendChild(t("rect",{fill:u.colorLight,width:"100%",height:"100%"}));Y.appendChild(t("rect",{fill:u.colorDark,width:"1",height:"1",id:"template"}));for(var Q=0;Q<g;Q++)for(var e=0;e<g;e++)if(q.isDark(Q,e)){var r=t("use",{x:String(Q),y:String(e),href:"#template"});
Y.appendChild(r)}};
F.prototype.clear=function(){for(;this.JSC$19584__el.hasChildNodes();)this.JSC$19584__el.removeChild(this.JSC$19584__el.lastChild)};
return F}(),gMw=document.documentElement.tagName.toLowerCase()==="svg"?lj3:typeof CanvasRenderingContext2D!="undefined"?function(){var F=function(q,t){this._bIsPainted=!1;
sEs();this.JSC$19584__htOption=t;this._elCanvas=document.createElement("canvas");this._elCanvas.width=t.width;this._elCanvas.height=t.height;q.appendChild(this._elCanvas);this.JSC$19584__el=q;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$19584__el.appendChild(this._elImage);this._bSupportDataURI=null};
F.prototype._onMakeImage=function(){var q=this._elCanvas.toDataURL("image/png");this._elImage.src=q;this._elImage.style.display="block";this._elCanvas.style.display="none"};
F.prototype._safeSetDataURI=function(q,t){var u=this;u._fFail=t;u._fSuccess=q;u._bSupportDataURI===null?(q=_.nr("IMG"),t=function(){u._bSupportDataURI=!1;u._fFail&&u._fFail.call(u)},q.onabort=t,q.onerror=t,q.onload=function(){u._bSupportDataURI=!0;
u._fSuccess&&u._fSuccess.call(u)},q.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):u._bSupportDataURI===!0&&u._fSuccess?u._fSuccess.call(u):u._bSupportDataURI===!1&&u._fFail&&u._fFail.call(u)};
F.prototype.draw=function(q){var t=this._oContext,u=this.JSC$19584__htOption,J=q.moduleCount,g=u.width/J,Y=u.height/J,Q=Math.round(g),e=Math.round(Y);this._elImage.style.display="none";this.clear();for(var r=0;r<J;r++)for(var N=0;N<J;N++){var w=q.isDark(r,N),k=N*g,z=r*Y;t.strokeStyle=w?u.colorDark:u.colorLight;t.lineWidth=1;t.fillStyle=w?u.colorDark:u.colorLight;t.fillRect(k,z,g,Y);t.strokeRect(Math.floor(k)+.5,Math.floor(z)+.5,Q,e);t.strokeRect(Math.ceil(k)-.5,Math.ceil(z)-.5,Q,e)}this._bIsPainted=
!0};
F.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
F.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
F.prototype.round=function(q){return q?Math.floor(q*1E3)/1E3:q};
return F}():function(){var F=function(q,t){this.JSC$19584__el=q;
this.JSC$19584__htOption=t};
F.prototype.draw=function(q){for(var t=this.JSC$19584__htOption,u=this.JSC$19584__el,J=q.moduleCount,g=Math.floor(t.width/J),Y=Math.floor(t.height/J),Q=['<table style="border:0;border-collapse:collapse;">'],e=0;e<J;e++){Q.push("<tr>");for(var r=0;r<J;r++)Q.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+g+"px;height:"+Y+"px;background-color:"+(q.isDark(e,r)?t.colorDark:t.colorLight)+';"></td>');Q.push("</tr>")}Q.push("</table>");q=Q.join("");q=_.Oen(_.xnz,q);_.JK(u,q);
q=u.childNodes[0];J=(t.width-q.offsetWidth)/2;g=(t.height-q.offsetHeight)/2;J>0&&g>0&&(q.style.margin=g+"px "+J+"px")};
F.prototype.clear=function(){this.JSC$19584__el.textContent=""};
return F}();
QEC.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19587__android||this.JSC$19587__android>=3)&&this._oDrawing.makeImage()};
QEC.prototype.clear=function(){this._oDrawing.clear()};
_.uu.QRCode=QEC;var pNh={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var cM=function(){};
cM.prototype.stringify=function(F){return _.uu.JSON.stringify(F,void 0)};
cM.prototype.parse=function(F){return _.uu.JSON.parse(F,void 0)};var QzQ=function(){_.Gw.call(this,"z")};
_.gd(QzQ,_.Gw);var en9=function(){_.Gw.call(this,"y")};
_.gd(en9,_.Gw);var ZV9=null,Rn9=function(){return ZV9=ZV9||new _.xD},rMQ=function(F){_.Gw.call(this,"serverreachability",F)};
_.gd(rMQ,_.Gw);var Fd=function(F){var q=Rn9();q.dispatchEvent(new rMQ(q,F))},N5y=function(F,q){_.Gw.call(this,"statevent",F);
this.stat=q};
_.gd(N5y,_.Gw);var q0=function(F){var q=Rn9();q.dispatchEvent(new N5y(q,F))},wN7=function(F,q,t,u){_.Gw.call(this,"timingevent",F);
this.size=q;this.rtt=t;this.retries=u};
_.gd(wN7,_.Gw);var iV7=function(F,q,t){var u=Rn9();u.dispatchEvent(new wN7(u,F,q,t))},tH=function(F,q){if(typeof F!=="function")throw Error("Gk");
return _.uu.setTimeout(function(){F()},q)};var ut=function(){this.redactEnabled_=!0};
ut.prototype.disableRedact=function(){this.redactEnabled_=!1};
var ksD=function(F,q,t,u,J,g){F.info(function(){if(F.redactEnabled_)if(g){var Y="";for(var Q=g.split("&"),e=0;e<Q.length;e++){var r=Q[e].split("=");if(r.length>1){var N=r[0];r=r[1];var w=N.split("_");Y=w.length>=2&&w[1]=="type"?Y+(N+"="+r+"&"):Y+(N+"=redacted&")}}}else Y=null;else Y=g;return"XMLHTTP REQ ("+u+") [attempt "+J+"]: "+q+"\n"+t+"\n"+Y})},EZT=function(F,q,t,u,J,g,Y){F.info(function(){return"XMLHTTP RESP ("+u+") [ attempt "+J+"]: "+q+"\n"+t+"\n"+g+" "+Y})},JH=function(F,q,t,u){F.info(function(){return"XMLHTTP TEXT ("+
q+"): "+znh(F,t)+(u?" "+u:"")})},oZ3=function(F,q){F.info(function(){return"TIMEOUT: "+q})};
ut.prototype.debug=function(){};
ut.prototype.info=function(){};
ut.prototype.warning=function(){};
var znh=function(F,q){if(!F.redactEnabled_)return q;if(!q)return null;try{var t=JSON.parse(q);if(t)for(var u=0;u<t.length;u++)if(Array.isArray(t[u])){var J=t[u];if(!(J.length<2)){var g=J[1];if(Array.isArray(g)&&!(g.length<1)){var Y=g[0];if(Y!="noop"&&Y!="stop"&&Y!="close")for(var Q=1;Q<g.length;Q++)g[Q]=""}}}return(0,_.bb)(t)}catch(e){return F.debug("Exception parsing expected JS array - probably was not JS"),q}};var s_=function(F,q,t,u,J){this.JSC$19609_channel_=F;this.JSC$19609_channelDebug_=q;this.sid_=t;this.JSC$19609_rid_=u;this.JSC$19609_retryId_=J||1;this.JSC$19609_eventHandler_=new _.Qb(this);this.timeout_=45E3;this.JSC$19609_extraHeaders_=null;this.JSC$19609_successful_=!1;this.JSC$19609_postData_=this.JSC$19609_requestUri_=this.JSC$19609_baseUri_=this.JSC$19609_type_=this.JSC$19609_requestStartTime_=this.JSC$19609_watchDogTimeoutTime_=this.JSC$19609_watchDogTimerId_=null;this.JSC$19609_pendingMessages_=
[];this.JSC$19609_xmlHttp_=null;this.JSC$19609_xmlHttpChunkStart_=0;this.JSC$19609_lastError_=this.JSC$19609_verb_=null;this.JSC$19609_lastStatusCode_=-1;this.JSC$19609_cancelled_=!1;this.JSC$19609_readyStateChangeThrottleMs_=0;this.JSC$19609_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new nZ3},nZ3=function(){this.JSC$19611_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},MZQ=function(F,q){switch(F){case 0:return"Non-200 return code ("+q+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},T5T={},Gs5={};
s_.prototype.setTimeout=function(F){this.timeout_=F};
var WY3=function(F,q,t){F.JSC$19609_type_=1;F.JSC$19609_baseUri_=_.w3(q.clone());F.JSC$19609_postData_=t;F.decodeChunks_=!0;DKT(F,null)},DKT=function(F,q){F.JSC$19609_requestStartTime_=Date.now();
OVw(F);F.JSC$19609_requestUri_=F.JSC$19609_baseUri_.clone();Vm(F.JSC$19609_requestUri_,"t",F.JSC$19609_retryId_);F.JSC$19609_xmlHttpChunkStart_=0;var t=F.JSC$19609_channel_.JSC$19628_supportsCrossDomainXhrs_;F.fetchResponseState_=new nZ3;F.JSC$19609_xmlHttp_=Pm5(F.JSC$19609_channel_,t?q:null,!F.JSC$19609_postData_);F.JSC$19609_readyStateChangeThrottleMs_>0&&(F.JSC$19609_readyStateChangeThrottle_=new _.LH((0,_.Pd)(F.JSC$19613_xmlHttpHandler_,F,F.JSC$19609_xmlHttp_),F.JSC$19609_readyStateChangeThrottleMs_));
F.JSC$19609_eventHandler_.listen(F.JSC$19609_xmlHttp_,"readystatechange",F.JSC$19613_readyStateChangeHandler_);q=F.JSC$19609_extraHeaders_?_.m7.clone(F.JSC$19609_extraHeaders_):{};F.JSC$19609_postData_?(F.JSC$19609_verb_||(F.JSC$19609_verb_="POST"),q["Content-Type"]="application/x-www-form-urlencoded",F.JSC$19609_xmlHttp_.send(F.JSC$19609_requestUri_,F.JSC$19609_verb_,F.JSC$19609_postData_,q)):(F.JSC$19609_verb_="GET",F.JSC$19609_xmlHttp_.send(F.JSC$19609_requestUri_,F.JSC$19609_verb_,null,q));Fd(1);
ksD(F.JSC$19609_channelDebug_,F.JSC$19609_verb_,F.JSC$19609_requestUri_,F.JSC$19609_rid_,F.JSC$19609_retryId_,F.JSC$19609_postData_)};
s_.prototype.JSC$19613_readyStateChangeHandler_=function(F){F=F.target;var q=this.JSC$19609_readyStateChangeThrottle_;q&&_.CQ(F)==3?(this.JSC$19609_channelDebug_.debug("Throttling readystatechange."),q.fire()):this.JSC$19613_xmlHttpHandler_(F)};
s_.prototype.JSC$19613_xmlHttpHandler_=function(F){try{F==this.JSC$19609_xmlHttp_?xKQ(this):this.JSC$19609_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(q){this.JSC$19609_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),AMw(this)}finally{}};
var xKQ=function(F){var q=_.CQ(F.JSC$19609_xmlHttp_),t=F.JSC$19609_xmlHttp_.JSC$9789_lastErrorCode_,u=F.JSC$19609_xmlHttp_.getStatus();if(!(q<3||q==3&&!AMw(F))){F.JSC$19609_cancelled_||q!=4||t==7||(t==8||u<=0?Fd(3):Fd(2));vZ9(F);var J=F.JSC$19609_xmlHttp_.getStatus();F.JSC$19609_lastStatusCode_=J;t=IC3(F);AMw(F)||F.JSC$19609_channelDebug_.debug(function(){return"No response text for uri "+F.JSC$19609_requestUri_+" status "+J});
F.JSC$19609_successful_=J==200;EZT(F.JSC$19609_channelDebug_,F.JSC$19609_verb_,F.JSC$19609_requestUri_,F.JSC$19609_rid_,F.JSC$19609_retryId_,q,J);if(F.JSC$19609_successful_){if(F.decodeInitialResponse_&&!F.initialResponseDecoded_)if(u=HVw(F))JH(F.JSC$19609_channelDebug_,F.JSC$19609_rid_,u,"Initial handshake response via X-HTTP-Initial-Response"),F.initialResponseDecoded_=!0,mK9(F,u);else{F.JSC$19609_successful_=!1;F.JSC$19609_lastError_=3;q0(12);F.JSC$19609_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
F.JSC$19609_rid_+")");gF(F);lt(F);return}F.decodeChunks_?$K7(F,q,t):(JH(F.JSC$19609_channelDebug_,F.JSC$19609_rid_,t,null),mK9(F,t));q==4&&gF(F);F.JSC$19609_successful_&&!F.JSC$19609_cancelled_&&(q==4?bVD(F.JSC$19609_channel_,F):(F.JSC$19609_successful_=!1,OVw(F)))}else wZy(F.JSC$19609_xmlHttp_),J==400&&t.indexOf("Unknown SID")>0?(F.JSC$19609_lastError_=3,q0(12),F.JSC$19609_channelDebug_.warning("XMLHTTP Unknown SID ("+F.JSC$19609_rid_+")")):(F.JSC$19609_lastError_=0,q0(13),F.JSC$19609_channelDebug_.warning("XMLHTTP Bad status "+
J+" ("+F.JSC$19609_rid_+")")),gF(F),lt(F)}},HVw=function(F){return F.JSC$19609_xmlHttp_&&(F=aG(F.JSC$19609_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.YP(F)?F:null},IC3=function(F){if(!yMv(F))return F.JSC$19609_xmlHttp_.getResponseText();
var q=F.JSC$19609_xmlHttp_.getResponse();if(q==="")return"";var t="",u=q.length,J=_.CQ(F.JSC$19609_xmlHttp_)==4;if(!F.fetchResponseState_.JSC$19611_textDecoder){if(typeof TextDecoder==="undefined")return gF(F),lt(F),"";F.fetchResponseState_.JSC$19611_textDecoder=new _.uu.TextDecoder}for(var g=0;g<u;g++)F.fetchResponseState_.responseArrivedForFetch=!0,t+=F.fetchResponseState_.JSC$19611_textDecoder.decode(q[g],{stream:!(J&&g==u-1)});q.length=0;F.fetchResponseState_.responseBuffer+=t;F.JSC$19609_xmlHttpChunkStart_=
0;return F.fetchResponseState_.responseBuffer},AMw=function(F){return F.JSC$19609_xmlHttp_?F.fetchResponseState_.responseArrivedForFetch?!0:!(!F.JSC$19609_xmlHttp_.getResponseText()&&!F.JSC$19609_xmlHttp_.getResponse()):!1},yMv=function(F){return F.JSC$19609_xmlHttp_?F.JSC$19609_verb_=="GET"&&F.JSC$19609_type_!=2&&F.JSC$19609_channel_.usesFetchStreams_:!1},$K7=function(F,q,t){for(var u=!0,J;!F.JSC$19609_cancelled_&&F.JSC$19609_xmlHttpChunkStart_<t.length;)if(J=CmD(F,t),J==Gs5){q==4&&(F.JSC$19609_lastError_=
4,q0(14),u=!1);
JH(F.JSC$19609_channelDebug_,F.JSC$19609_rid_,null,"[Incomplete Response]");break}else if(J==T5T){F.JSC$19609_lastError_=4;q0(15);JH(F.JSC$19609_channelDebug_,F.JSC$19609_rid_,t,"[Invalid Chunk]");u=!1;break}else JH(F.JSC$19609_channelDebug_,F.JSC$19609_rid_,J,null),mK9(F,J);yMv(F)&&F.JSC$19609_xmlHttpChunkStart_!=0&&(F.fetchResponseState_.responseBuffer=F.fetchResponseState_.responseBuffer.slice(F.JSC$19609_xmlHttpChunkStart_),F.JSC$19609_xmlHttpChunkStart_=0);q!=4||t.length!=0||F.fetchResponseState_.responseArrivedForFetch||
(F.JSC$19609_lastError_=1,q0(16),u=!1);F.JSC$19609_successful_=F.JSC$19609_successful_&&u;u?t.length>0&&!F.firstByteReceived_&&(F.firstByteReceived_=!0,q=F.JSC$19609_channel_,q.JSC$19628_backChannelRequest_==F&&q.detectBufferingProxy_&&!q.bpDetectionDone_&&(q.JSC$19628_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+t.length),dKv(q),q.bpDetectionDone_=!0,q0(11))):(JH(F.JSC$19609_channelDebug_,F.JSC$19609_rid_,t,"[Invalid Chunked Response]"),gF(F),lt(F))},CmD=function(F,q){var t=
F.JSC$19609_xmlHttpChunkStart_,u=q.indexOf("\n",t);
if(u==-1)return Gs5;t=Number(q.substring(t,u));if(isNaN(t))return T5T;u+=1;if(u+t>q.length)return Gs5;q=q.slice(u,u+t);F.JSC$19609_xmlHttpChunkStart_=u+t;return q};
s_.prototype.cancel=function(){this.JSC$19609_cancelled_=!0;gF(this)};
var OVw=function(F){F.JSC$19609_watchDogTimeoutTime_=Date.now()+F.timeout_;VZ9(F,F.timeout_)},VZ9=function(F,q){if(F.JSC$19609_watchDogTimerId_!=null)throw Error("Hk");
F.JSC$19609_watchDogTimerId_=tH((0,_.Pd)(F.JSC$19613_onWatchDogTimeout_,F),q)},vZ9=function(F){F.JSC$19609_watchDogTimerId_&&(_.uu.clearTimeout(F.JSC$19609_watchDogTimerId_),F.JSC$19609_watchDogTimerId_=null)};
s_.prototype.JSC$19613_onWatchDogTimeout_=function(){this.JSC$19609_watchDogTimerId_=null;var F=Date.now();F-this.JSC$19609_watchDogTimeoutTime_>=0?(oZ3(this.JSC$19609_channelDebug_,this.JSC$19609_requestUri_),this.JSC$19609_type_!=2&&(Fd(3),q0(17)),gF(this),this.JSC$19609_lastError_=2,lt(this)):(this.JSC$19609_channelDebug_.warning("WatchDog timer called too early"),VZ9(this,this.JSC$19609_watchDogTimeoutTime_-F))};
var lt=function(F){F.JSC$19609_channel_.state_==0||F.JSC$19609_cancelled_||bVD(F.JSC$19609_channel_,F)},gF=function(F){vZ9(F);
_.sP(F.JSC$19609_readyStateChangeThrottle_);F.JSC$19609_readyStateChangeThrottle_=null;F.JSC$19609_eventHandler_.removeAll();if(F.JSC$19609_xmlHttp_){var q=F.JSC$19609_xmlHttp_;F.JSC$19609_xmlHttp_=null;q.abort();q.dispose()}};
s_.prototype.getLastError=function(){return this.JSC$19609_lastError_};
var mK9=function(F,q){try{var t=F.JSC$19609_channel_;if(t.state_!=0&&(t.JSC$19628_backChannelRequest_==F||UKw(t.forwardChannelRequestPool_,F)))if(!F.initialResponseDecoded_&&UKw(t.forwardChannelRequestPool_,F)&&t.state_==3){try{var u=t.wireCodec_.JSC$19623_parser_.parse(q)}catch(Q){u=null}if(Array.isArray(u)&&u.length==3){q=u;if(q[0]==0)a:if(t.JSC$19628_channelDebug_.debug("Server claims our backchannel is missing."),t.JSC$19628_backChannelTimerId_)t.JSC$19628_channelDebug_.debug("But we are currently starting the request.");
else{if(t.JSC$19628_backChannelRequest_)if(t.JSC$19628_backChannelRequest_.JSC$19609_requestStartTime_+3E3<F.JSC$19609_requestStartTime_)Suw(t),hn5(t);else break a;else t.JSC$19628_channelDebug_.warning("We do not have a BackChannel established");KYw(t);q0(18)}else{t.JSC$19628_lastPostResponseArrayId_=q[1];var J=t.JSC$19628_lastPostResponseArrayId_-t.JSC$19628_lastArrayId_;if(0<J){var g=q[2];t.JSC$19628_channelDebug_.debug(g+" bytes (in "+J+" arrays) are outstanding on the BackChannel");g<37500&&
t.enableStreaming_&&t.JSC$19628_backChannelRetryCount_==0&&!t.JSC$19628_deadBackChannelTimerId_&&(t.JSC$19628_deadBackChannelTimerId_=tH((0,_.Pd)(t.JSC$19630_onBackChannelDead_,t),6E3))}}if(B5v(t.forwardChannelRequestPool_)<=1&&t.forwardChannelFlushedCallback_){try{t.forwardChannelFlushedCallback_()}catch(Q){}t.forwardChannelFlushedCallback_=void 0}}else t.JSC$19628_channelDebug_.debug("Bad POST response data returned"),Xd(t,11)}else if((F.initialResponseDecoded_||t.JSC$19628_backChannelRequest_==
F)&&Suw(t),!_.YP(q)){var Y=t.wireCodec_.JSC$19623_parser_.parse(q);t.onInput_(Y,F)}Fd(4)}catch(Q){}};var LY7=function(F,q){this.JSC$19616_mapId=F;this.map=q;this.context=null};var fCC=function(F){this.maxPoolSizeConfigured_=F||10;_.uu.PerformanceNavigationTiming?(F=_.uu.performance.getEntriesByType("navigation"),F=F.length>0&&(F[0].nextHopProtocol=="hq"||F[0].nextHopProtocol=="h2")):F=!!(_.uu.chrome&&_.uu.chrome.loadTimes&&_.uu.chrome.loadTimes()&&_.uu.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19619_maxSize_=F?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19619_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19619_request_=null;this.JSC$19619_pendingMessages_=
[]},aCT=function(F){return F.JSC$19619_request_?!0:F.requestPool_?F.requestPool_.size>=F.JSC$19619_maxSize_:!1},B5v=function(F){return F.JSC$19619_request_?1:F.requestPool_?F.requestPool_.size:0},UKw=function(F,q){return F.JSC$19619_request_?F.JSC$19619_request_==q:F.requestPool_?F.requestPool_.has(q):!1},jzs=function(F,q){F.requestPool_?F.requestPool_.add(q):F.JSC$19619_request_=q},cMQ=function(F,q){F.JSC$19619_request_&&F.JSC$19619_request_==q?F.JSC$19619_request_=null:F.requestPool_&&F.requestPool_.has(q)&&
F.requestPool_.delete(q)};
fCC.prototype.cancel=function(){this.JSC$19619_pendingMessages_=Fy3(this);if(this.JSC$19619_request_)this.JSC$19619_request_.cancel(),this.JSC$19619_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var F=_.X(this.requestPool_.values()),q=F.next();!q.done;q=F.next())q.value.cancel();this.requestPool_.clear()}};
var Fy3=function(F){if(F.JSC$19619_request_!=null)return F.JSC$19619_pendingMessages_.concat(F.JSC$19619_request_.JSC$19609_pendingMessages_);if(F.requestPool_!=null&&F.requestPool_.size!==0){var q=F.JSC$19619_pendingMessages_;F=_.X(F.requestPool_.values());for(var t=F.next();!t.done;t=F.next())q=q.concat(t.value.JSC$19609_pendingMessages_);return q}return _.C3(F.JSC$19619_pendingMessages_)},qwh=function(F,q){F.JSC$19619_pendingMessages_=F.JSC$19619_pendingMessages_.concat(q)};var tqh=function(F,q){var t=new ut;t.debug("TestLoadImage: loading "+F);if(_.uu.Image){var u=new Image;u.onload=_.MU(Yg,t,"TestLoadImage: loaded",!0,q,u);u.onerror=_.MU(Yg,t,"TestLoadImage: error",!1,q,u);u.onabort=_.MU(Yg,t,"TestLoadImage: abort",!1,q,u);u.ontimeout=_.MU(Yg,t,"TestLoadImage: timeout",!1,q,u);_.uu.setTimeout(function(){if(u.ontimeout)u.ontimeout()},1E4);
u.src=F}else q(!1)},uPJ=function(F,q){var t=new ut,u=new AbortController,J=setTimeout(function(){u.abort();
Yg(t,"TestPingServer: timeout",!1,q)},1E4);
fetch(F,{signal:u.signal}).then(function(g){clearTimeout(J);g.ok?Yg(t,"TestPingServer: ok",!0,q):Yg(t,"TestPingServer: server error",!1,q)}).catch(function(){clearTimeout(J);
Yg(t,"TestPingServer: error",!1,q)})},Yg=function(F,q,t,u,J){try{F.debug(q),J&&(J.onload=null,J.onerror=null,J.onabort=null,J.ontimeout=null),u(t)}catch(g){}};var J39=function(){this.JSC$19623_parser_=new cM};var pk=function(F,q,t){return t&&t.internalChannelParams?t.internalChannelParams[F]||q:q},Q_=function(F){this.serverVersion_=0;
this.JSC$19628_outgoingMaps_=[];this.JSC$19628_channelDebug_=new ut;this.JSC$19628_hostPrefix_=this.JSC$19628_backChannelUri_=this.JSC$19628_forwardChannelUri_=this.JSC$19628_path_=this.JSC$19628_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19628_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19628_extraHeaders_=null;this.JSC$19628_nextMapId_=this.JSC$19628_nextRid_=0;this.JSC$19628_failFast_=pk("failFast",!1,F);this.enableStreaming_=this.JSC$19628_deadBackChannelTimerId_=
this.JSC$19628_backChannelTimerId_=this.JSC$19628_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19628_lastPostResponseArrayId_=this.JSC$19628_lastArrayId_=-1;this.JSC$19628_backChannelAttemptId_=this.JSC$19628_backChannelRetryCount_=this.JSC$19628_forwardChannelRetryCount_=0;this.JSC$19628_baseRetryDelayMs_=pk("baseRetryDelayMs",5E3,F);this.JSC$19628_retryDelaySeedMs_=pk("retryDelaySeedMs",1E4,F);this.JSC$19628_forwardChannelMaxRetries_=
pk("forwardChannelMaxRetries",2,F);this.JSC$19628_forwardChannelRequestTimeoutMs_=pk("forwardChannelRequestTimeoutMs",2E4,F);this.JSC$19628_xmlHttpFactory_=F&&F.xmlHttpFactory||void 0;this.networkTestUrl_=F&&F.networkTestUrl||void 0;this.usesFetchStreams_=F&&F.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19628_supportsCrossDomainXhrs_=F&&F.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new fCC(F&&F.concurrentRequestLimit);this.wireCodec_=new J39;this.fastHandshake_=
F&&F.fastHandshake||!1;this.encodeInitMessageHeaders_=F&&F.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19628_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=F&&F.blockingHandshake||!1;F&&F.disableRedact&&this.JSC$19628_channelDebug_.disableRedact();F&&F.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
F&&F.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;F&&F.longPollingTimeout&&F.longPollingTimeout>0&&(this.longPollingTimeout_=F.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Q_.prototype.JSC$19630_channelVersion_=8;Q_.prototype.state_=1;
Q_.prototype.connect=function(F,q,t,u){this.JSC$19628_channelDebug_.debug("connect()");q0(0);this.JSC$19628_path_=F;this.JSC$19628_extraParams_=q||{};t&&u!==void 0&&(this.JSC$19628_extraParams_.OSID=t,this.JSC$19628_extraParams_.OAID=u);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19628_channelDebug_.debug("connectChannel_()");F=s$7(this,null,this.JSC$19628_path_);this.JSC$19628_channelDebug_.debug("GetForwardChannelUri: "+F);this.JSC$19628_forwardChannelUri_=F;gxh(this)};
Q_.prototype.disconnect=function(){this.JSC$19628_channelDebug_.debug("disconnect()");lXJ(this);if(this.state_==3){var F=this.JSC$19628_nextRid_++,q=this.JSC$19628_forwardChannelUri_.clone();_.aX(q,"SID",this.sid_);_.aX(q,"RID",F);_.aX(q,"TYPE","terminate");eV(this,q);F=new s_(this,this.JSC$19628_channelDebug_,this.sid_,F);F.JSC$19609_type_=2;F.JSC$19609_baseUri_=_.w3(q.clone());q=!1;if(_.uu.navigator&&_.uu.navigator.sendBeacon)try{q=_.uu.navigator.sendBeacon(F.JSC$19609_baseUri_.toString(),"")}catch(t){}!q&&
_.uu.Image&&((new Image).src=F.JSC$19609_baseUri_,q=!0);q||(F.JSC$19609_xmlHttp_=Pm5(F.JSC$19609_channel_,null),F.JSC$19609_xmlHttp_.send(F.JSC$19609_baseUri_));F.JSC$19609_requestStartTime_=Date.now();OVw(F)}X69(this)};
var hn5=function(F){F.JSC$19628_backChannelRequest_&&(dKv(F),F.JSC$19628_backChannelRequest_.cancel(),F.JSC$19628_backChannelRequest_=null)},lXJ=function(F){hn5(F);
F.JSC$19628_backChannelTimerId_&&(_.uu.clearTimeout(F.JSC$19628_backChannelTimerId_),F.JSC$19628_backChannelTimerId_=null);Suw(F);F.forwardChannelRequestPool_.cancel();F.JSC$19628_forwardChannelTimerId_&&(typeof F.JSC$19628_forwardChannelTimerId_==="number"&&_.uu.clearTimeout(F.JSC$19628_forwardChannelTimerId_),F.JSC$19628_forwardChannelTimerId_=null)};
Q_.prototype.getState=function(){return this.state_};
var gxh=function(F){aCT(F.forwardChannelRequestPool_)||F.JSC$19628_forwardChannelTimerId_||(F.JSC$19628_forwardChannelTimerId_=!0,_.vr(F.JSC$19630_onStartForwardChannelTimer_,F),F.JSC$19628_forwardChannelRetryCount_=0)},p69=function(F,q){if(B5v(F.forwardChannelRequestPool_)>=F.forwardChannelRequestPool_.JSC$19619_maxSize_-(F.JSC$19628_forwardChannelTimerId_?1:0))return!1;
if(F.JSC$19628_forwardChannelTimerId_)return F.JSC$19628_channelDebug_.debug("Use the retry request that is already scheduled."),F.JSC$19628_outgoingMaps_=q.JSC$19609_pendingMessages_.concat(F.JSC$19628_outgoingMaps_),!0;if(F.state_==1||F.state_==2||F.JSC$19628_forwardChannelRetryCount_>=(F.JSC$19628_failFast_?0:F.JSC$19628_forwardChannelMaxRetries_))return!1;F.JSC$19628_channelDebug_.debug("Going to retry POST");F.JSC$19628_forwardChannelTimerId_=tH((0,_.Pd)(F.JSC$19630_onStartForwardChannelTimer_,
F,q),YwD(F,F.JSC$19628_forwardChannelRetryCount_));F.JSC$19628_forwardChannelRetryCount_++;return!0};
Q_.prototype.JSC$19630_onStartForwardChannelTimer_=function(F){if(this.JSC$19628_forwardChannelTimerId_)if(this.JSC$19628_forwardChannelTimerId_=null,this.JSC$19628_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!F){this.JSC$19628_channelDebug_.debug("open_()");this.JSC$19628_nextRid_=Math.floor(Math.random()*1E5);F=this.JSC$19628_nextRid_++;var q=new s_(this,this.JSC$19628_channelDebug_,"",F),t=this.JSC$19628_extraHeaders_;this.initHeaders_&&(t?(t=_.m7.clone(t),_.m7.extend(t,this.initHeaders_)):
t=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(q.JSC$19609_extraHeaders_=t,t=null);var u;if(this.fastHandshake_)a:{for(var J=u=0;J<this.JSC$19628_outgoingMaps_.length;J++){b:{var g=this.JSC$19628_outgoingMaps_[J];if("__data__"in g.map&&(g=g.map.__data__,typeof g==="string")){g=g.length;break b}g=void 0}if(g===void 0)break;u+=g;if(u>4096){u=J;break a}if(u===4096||J===this.JSC$19628_outgoingMaps_.length-1){u=J+1;break a}}u=1E3}else u=1E3;u=Q$7(this,q,u);
J=this.JSC$19628_forwardChannelUri_.clone();_.aX(J,"RID",F);_.aX(J,"CVER",22);this.httpSessionIdParam_&&_.aX(J,"X-HTTP-Session-Id",this.httpSessionIdParam_);eV(this,J);t&&(this.encodeInitMessageHeaders_?u="headers="+_.KI(WRw(t))+"&"+u:this.httpHeadersOverwriteParam_&&OR5(J,this.httpHeadersOverwriteParam_,t));jzs(this.forwardChannelRequestPool_,q);this.blockingHandshake_&&_.aX(J,"TYPE","init");this.fastHandshake_?(_.aX(J,"$req",u),_.aX(J,"SID","null"),q.decodeInitialResponse_=!0,WY3(q,J,null)):WY3(q,
J,u);this.state_=2}}else this.state_==3&&(F?eQT(this,F):this.JSC$19628_outgoingMaps_.length==0?this.JSC$19628_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):aCT(this.forwardChannelRequestPool_)||(eQT(this),this.JSC$19628_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var eQT=function(F,q){var t;q?t=q.JSC$19609_rid_:t=F.JSC$19628_nextRid_++;var u=F.JSC$19628_forwardChannelUri_.clone();_.aX(u,"SID",F.sid_);_.aX(u,"RID",t);_.aX(u,"AID",F.JSC$19628_lastArrayId_);eV(F,u);F.httpHeadersOverwriteParam_&&F.JSC$19628_extraHeaders_&&OR5(u,F.httpHeadersOverwriteParam_,F.JSC$19628_extraHeaders_);t=new s_(F,F.JSC$19628_channelDebug_,F.sid_,t,F.JSC$19628_forwardChannelRetryCount_+1);F.httpHeadersOverwriteParam_===null&&(t.JSC$19609_extraHeaders_=F.JSC$19628_extraHeaders_);q&&
(F.JSC$19628_outgoingMaps_=q.JSC$19609_pendingMessages_.concat(F.JSC$19628_outgoingMaps_));q=Q$7(F,t,1E3);t.setTimeout(Math.round(F.JSC$19628_forwardChannelRequestTimeoutMs_*.5)+Math.round(F.JSC$19628_forwardChannelRequestTimeoutMs_*.5*Math.random()));jzs(F.forwardChannelRequestPool_,t);WY3(t,u,q)},eV=function(F,q){F.JSC$19628_extraParams_&&_.m7.forEach(F.JSC$19628_extraParams_,function(t,u){_.aX(q,u,t)});
F.handler_&&_.m7.forEach({},function(t,u){_.aX(q,u,t)})},Q$7=function(F,q,t){t=Math.min(F.JSC$19628_outgoingMaps_.length,t);
var u=F.handler_?(0,_.Pd)(F.handler_.JSC$19634_badMapError,F.handler_,F):null;a:{for(var J=F.JSC$19628_outgoingMaps_,g=-1;;){var Y=["count="+t];g==-1?t>0?(g=J[0].JSC$19616_mapId,Y.push("ofs="+g)):g=0:Y.push("ofs="+g);for(var Q=!0,e=0;e<t;e++){var r=J[e].JSC$19616_mapId,N=J[e].map;r-=g;if(r<0)g=Math.max(0,J[e].JSC$19616_mapId-100),Q=!1;else try{r="req"+r+"_"||"";try{var w=N instanceof Map?N:Object.entries(N);for(var k=_.X(w),z=k.next();!z.done;z=k.next()){var T=_.X(z.value),P=T.next().value,v=T.next().value,
H=v;_.ho(v)&&(H=(0,_.bb)(v));Y.push(r+P+"="+encodeURIComponent(H))}}catch(d){throw Y.push(r+"type="+encodeURIComponent("_badmap")),d;}}catch(d){u&&u(N)}}if(Q){w=Y.join("&");break a}}w=void 0}F=F.JSC$19628_outgoingMaps_.splice(0,t);q.JSC$19609_pendingMessages_=F;return w},Ziw=function(F){F.JSC$19628_backChannelRequest_||F.JSC$19628_backChannelTimerId_||(F.JSC$19628_backChannelAttemptId_=1,_.vr(F.JSC$19630_onStartBackChannelTimer_,F),F.JSC$19628_backChannelRetryCount_=0)},KYw=function(F){if(F.JSC$19628_backChannelRequest_||
F.JSC$19628_backChannelTimerId_||F.JSC$19628_backChannelRetryCount_>=3)return!1;
F.JSC$19628_channelDebug_.debug("Going to retry GET");F.JSC$19628_backChannelAttemptId_++;F.JSC$19628_backChannelTimerId_=tH((0,_.Pd)(F.JSC$19630_onStartBackChannelTimer_,F),YwD(F,F.JSC$19628_backChannelRetryCount_));F.JSC$19628_backChannelRetryCount_++;return!0};
Q_.prototype.JSC$19630_onStartBackChannelTimer_=function(){this.JSC$19628_backChannelTimerId_=null;RQ5(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19628_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19628_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19628_backChannelRequest_+" "+this.handshakeRttMs_);else{var F=4*this.handshakeRttMs_;this.JSC$19628_channelDebug_.info("BP detection timer enabled: "+F);this.bpDetectionTimerId_=tH((0,_.Pd)(this.onBpDetectionTimer_,
this),F)}};
Q_.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19628_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19628_backChannelRequest_.JSC$19609_xmlHttp_!=null){var F=this.JSC$19628_backChannelRequest_.JSC$19609_xmlHttp_.getResponseText();F&&this.JSC$19628_channelDebug_.warning("Timer should have been cancelled : "+F)}this.JSC$19628_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;q0(10);hn5(this);RQ5(this)}else this.JSC$19628_channelDebug_.warning("Invalid operation.")};
var dKv=function(F){F.bpDetectionTimerId_!=null&&(F.JSC$19628_channelDebug_.debug("Cancel the BP detection timer."),_.uu.clearTimeout(F.bpDetectionTimerId_),F.bpDetectionTimerId_=null)},RQ5=function(F){F.JSC$19628_channelDebug_.debug("Creating new HttpRequest");
F.JSC$19628_backChannelRequest_=new s_(F,F.JSC$19628_channelDebug_,F.sid_,"rpc",F.JSC$19628_backChannelAttemptId_);F.httpHeadersOverwriteParam_===null&&(F.JSC$19628_backChannelRequest_.JSC$19609_extraHeaders_=F.JSC$19628_extraHeaders_);F.JSC$19628_backChannelRequest_.JSC$19609_readyStateChangeThrottleMs_=0;var q=F.JSC$19628_backChannelUri_.clone();_.aX(q,"RID","rpc");_.aX(q,"SID",F.sid_);_.aX(q,"AID",F.JSC$19628_lastArrayId_);_.aX(q,"CI",F.enableStreaming_?"0":"1");!F.enableStreaming_&&F.longPollingTimeout_&&
_.aX(q,"TO",F.longPollingTimeout_);_.aX(q,"TYPE","xmlhttp");eV(F,q);F.httpHeadersOverwriteParam_&&F.JSC$19628_extraHeaders_&&OR5(q,F.httpHeadersOverwriteParam_,F.JSC$19628_extraHeaders_);F.backChannelRequestTimeoutMs_&&F.JSC$19628_backChannelRequest_.setTimeout(F.backChannelRequestTimeoutMs_);var t=F.JSC$19628_backChannelRequest_,u=F.JSC$19628_hostPrefix_;t.JSC$19609_type_=1;t.JSC$19609_baseUri_=_.w3(q.clone());t.JSC$19609_postData_=null;t.decodeChunks_=!0;DKT(t,u);F.JSC$19628_channelDebug_.debug("New Request created")};
Q_.prototype.JSC$19630_onBackChannelDead_=function(){this.JSC$19628_deadBackChannelTimerId_!=null&&(this.JSC$19628_deadBackChannelTimerId_=null,hn5(this),KYw(this),q0(19))};
var Suw=function(F){F.JSC$19628_deadBackChannelTimerId_!=null&&(_.uu.clearTimeout(F.JSC$19628_deadBackChannelTimerId_),F.JSC$19628_deadBackChannelTimerId_=null)},bVD=function(F,q){F.JSC$19628_channelDebug_.debug("Request complete");
var t=null;if(F.JSC$19628_backChannelRequest_==q){Suw(F);dKv(F);F.JSC$19628_backChannelRequest_=null;var u=2}else if(UKw(F.forwardChannelRequestPool_,q))t=q.JSC$19609_pendingMessages_,cMQ(F.forwardChannelRequestPool_,q),u=1;else return;if(F.state_!=0)if(q.JSC$19609_successful_)u==1?(iV7(q.JSC$19609_postData_?q.JSC$19609_postData_.length:0,Date.now()-q.JSC$19609_requestStartTime_,F.JSC$19628_forwardChannelRetryCount_),gxh(F)):Ziw(F);else{var J=q.JSC$19609_lastStatusCode_,g=q.getLastError();if(g==3||
g==0&&J>0)F.JSC$19628_channelDebug_.debug("Not retrying due to error type"),J>200&&(F.errorResponseStatusCode_=q.JSC$19609_lastStatusCode_);else{F.JSC$19628_channelDebug_.debug(function(){return"Maybe retrying, last error: "+MZQ(g,F.errorResponseStatusCode_)});
if(u==1&&p69(F,q)||u==2&&KYw(F))return;F.JSC$19628_channelDebug_.debug("Exceeded max number of retries")}t&&t.length>0&&qwh(F.forwardChannelRequestPool_,t);F.JSC$19628_channelDebug_.debug("Error: HTTP request failed");switch(g){case 1:Xd(F,5);break;case 4:Xd(F,10);break;case 3:Xd(F,6);break;default:Xd(F,2)}}},YwD=function(F,q){var t=F.JSC$19628_baseRetryDelayMs_+Math.floor(Math.random()*F.JSC$19628_retryDelaySeedMs_);
F.isActive()||(F.JSC$19628_channelDebug_.debug("Inactive channel"),t*=2);return t*q};
Q_.prototype.onInput_=function(F,q){for(var t=0;t<F.length;t++){var u=F[t];this.JSC$19628_lastArrayId_=u[0];u=u[1];if(this.state_==2)if(u[0]=="c"){this.sid_=u[1];this.JSC$19628_hostPrefix_=u[2];var J=u[3];J!=null&&(this.JSC$19630_channelVersion_=J,this.JSC$19628_channelDebug_.info("VER="+this.JSC$19630_channelVersion_));J=u[4];J!=null&&(this.serverVersion_=J,this.JSC$19628_channelDebug_.info("SVER="+this.serverVersion_));u=u[5];u!=null&&typeof u==="number"&&u>0&&(this.backChannelRequestTimeoutMs_=
u*=1.5,this.JSC$19628_channelDebug_.info("backChannelRequestTimeoutMs_="+u));if(u=q.JSC$19609_xmlHttp_){var g=aG(u,"X-Client-Wire-Protocol");g&&(J=this.forwardChannelRequestPool_,!J.requestPool_&&(_.p3(g,"spdy")||_.p3(g,"quic")||_.p3(g,"h2"))&&(J.JSC$19619_maxSize_=J.maxPoolSizeConfigured_,J.requestPool_=new Set,J.JSC$19619_request_&&(jzs(J,J.JSC$19619_request_),J.JSC$19619_request_=null)));this.httpSessionIdParam_&&((u=aG(u,"X-HTTP-Session-Id"))?(this.httpSessionId_=u,_.aX(this.JSC$19628_forwardChannelUri_,
this.httpSessionIdParam_,u)):this.JSC$19628_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19634_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-q.JSC$19609_requestStartTime_,this.JSC$19628_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));u=q;J=s$7(this,this.JSC$19628_supportsCrossDomainXhrs_?this.JSC$19628_hostPrefix_:null,this.JSC$19628_path_);this.JSC$19628_channelDebug_.debug("GetBackChannelUri: "+
J);this.JSC$19628_backChannelUri_=J;u.initialResponseDecoded_?(this.JSC$19628_channelDebug_.debug("Upgrade the handshake request to a backchannel."),cMQ(this.forwardChannelRequestPool_,u),J=u,(g=this.backChannelRequestTimeoutMs_)&&J.setTimeout(g),J.JSC$19609_watchDogTimerId_&&(vZ9(J),OVw(J)),this.JSC$19628_backChannelRequest_=u):Ziw(this);this.JSC$19628_outgoingMaps_.length>0&&gxh(this)}else u[0]!="stop"&&u[0]!="close"||Xd(this,7);else this.state_==3&&(u[0]=="stop"||u[0]=="close"?u[0]=="stop"?Xd(this,
7):this.disconnect():u[0]!="noop"&&this.handler_&&this.handler_.JSC$19634_channelHandleArray(u),this.JSC$19628_backChannelRetryCount_=0)}};
var Xd=function(F,q){F.JSC$19628_channelDebug_.info("Error code "+q);if(q==2){var t=(0,_.Pd)(F.testNetworkCallback_,F),u=F.networkTestUrl_,J=!u;u=new _.qU(u||"//www.google.com/images/cleardot.gif");_.uu.location&&_.uu.location.protocol=="http"||_.Xz(u,"https");_.w3(u);J?tqh(u.toString(),t):uPJ(u.toString(),t)}else q0(2);F.onError_(q)};
Q_.prototype.testNetworkCallback_=function(F){F?(this.JSC$19628_channelDebug_.info("Successfully pinged google.com"),q0(2)):(this.JSC$19628_channelDebug_.info("Failed to ping google.com"),q0(1))};
Q_.prototype.onError_=function(F){this.JSC$19628_channelDebug_.debug("HttpChannel: error - "+F);this.state_=0;this.handler_&&this.handler_.JSC$19634_channelError(F);X69(this);lXJ(this)};
var X69=function(F){F.state_=0;F.nonAckedMapsAtChannelClose_=[];if(F.handler_){var q=Fy3(F.forwardChannelRequestPool_);if(q.length!=0||F.JSC$19628_outgoingMaps_.length!=0)F.JSC$19628_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+q.length+", outgoing: "+F.JSC$19628_outgoingMaps_.length}),_.UM(F.nonAckedMapsAtChannelClose_,q),_.UM(F.nonAckedMapsAtChannelClose_,F.JSC$19628_outgoingMaps_),F.forwardChannelRequestPool_.JSC$19619_pendingMessages_.length=0,_.C3(F.JSC$19628_outgoingMaps_),
F.JSC$19628_outgoingMaps_.length=0;
F.handler_.JSC$19634_channelClosed()}},r3s=function(F){if(F.state_==0)return F.nonAckedMapsAtChannelClose_;
var q=[];_.UM(q,Fy3(F.forwardChannelRequestPool_));_.UM(q,F.JSC$19628_outgoingMaps_);return q},s$7=function(F,q,t){var u=_.Lr(t);
u.JSC$10024_domain_!=""?(q&&_.Yd(u,q+"."+u.JSC$10024_domain_),_.pn(u,u.JSC$10024_port_)):(u=_.uu.location,u=ra5(u.protocol,q?q+"."+u.hostname:u.hostname,+u.port,t));q=F.httpSessionIdParam_;t=F.httpSessionId_;q&&t&&_.aX(u,q,t);_.aX(u,"VER",F.JSC$19630_channelVersion_);eV(F,u);return u},Pm5=function(F,q,t){if(q&&!F.JSC$19628_supportsCrossDomainXhrs_)throw Error("Ik");
q=F.usesFetchStreams_&&!F.JSC$19628_xmlHttpFactory_?new _.yO(new Zu({streamBinaryChunks:t})):new _.yO(F.JSC$19628_xmlHttpFactory_);q.JSC$9789_withCredentials_=F.JSC$19628_supportsCrossDomainXhrs_;return q};
Q_.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var NzJ=function(){};
_.l=NzJ.prototype;_.l.JSC$19634_channelOpened=function(){};
_.l.JSC$19634_channelHandleArray=function(){};
_.l.JSC$19634_channelError=function(){};
_.l.JSC$19634_channelClosed=function(){};
_.l.isActive=function(){return!0};
_.l.JSC$19634_badMapError=function(){};var w6h=function(){},RB=function(F,q){_.xD.call(this);
this.JSC$19637_channel_=new Q_(q);this.JSC$19637_url_=F;this.messageUrlParams_=q&&q.messageUrlParams||null;F=q&&q.messageHeaders||null;q&&q.clientProtocolHeaderRequired&&(F?_.m7.set(F,"X-Client-Protocol","webchannel"):F=_.m7.create("X-Client-Protocol","webchannel"));this.JSC$19637_channel_.JSC$19628_extraHeaders_=F;F=q&&q.initMessageHeaders||null;q&&q.messageContentType&&(F?_.m7.set(F,"X-WebChannel-Content-Type",q.messageContentType):F=_.m7.create("X-WebChannel-Content-Type",q.messageContentType));
q&&q.clientProfile&&(F?_.m7.set(F,"X-WebChannel-Client-Profile",q.clientProfile):F=_.m7.create("X-WebChannel-Client-Profile",q.clientProfile));this.JSC$19637_channel_.initHeaders_=F;(F=q&&q.httpHeadersOverwriteParam)&&!_.YP(F)&&(this.JSC$19637_channel_.httpHeadersOverwriteParam_=F);this.supportsCrossDomainXhr_=q&&q.supportsCrossDomainXhr||!1;this.sendRawJson_=q&&q.sendRawJson||!1;(q=q&&q.httpSessionIdParam)&&!_.YP(q)&&(this.JSC$19637_channel_.httpSessionIdParam_=q,_.m7.containsKey(this.messageUrlParams_,
q)&&_.m7.remove(this.messageUrlParams_,q));this.channelHandler_=new ZZ(this)};
_.gd(RB,_.xD);RB.prototype.open=function(){this.JSC$19637_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19637_channel_.JSC$19628_supportsCrossDomainXhrs_=!0);this.JSC$19637_channel_.connect(this.JSC$19637_url_,this.messageUrlParams_||void 0)};
RB.prototype.close=function(){this.JSC$19637_channel_.disconnect()};
RB.prototype.send=function(F){var q=this.JSC$19637_channel_;if(typeof F==="string"){var t={};t.__data__=F;F=t}else this.sendRawJson_&&(t={},t.__data__=(0,_.bb)(F),F=t);q.JSC$19628_outgoingMaps_.push(new LY7(q.JSC$19628_nextMapId_++,F));q.state_==3&&gxh(q)};
RB.prototype.disposeInternal=function(){this.JSC$19637_channel_.handler_=null;delete this.channelHandler_;this.JSC$19637_channel_.disconnect();delete this.JSC$19637_channel_;RB.superClass_.disposeInternal.call(this)};
var iiw=function(F){QzQ.call(this);F.__headers__&&(this.headers=F.__headers__,this.statusCode=F.__status__,delete F.__headers__,delete F.__status__);var q=F.__sm__;q?this.data=(this.metadataKey=_.m7.getAnyKey(q))?_.m7.get(q,this.metadataKey):q:this.data=F};
_.gd(iiw,QzQ);var kew=function(F){en9.call(this);this.status=1;this.errorCode=F};
_.gd(kew,en9);var ZZ=function(F){this.JSC$19644_channel_=F};
_.gd(ZZ,NzJ);ZZ.prototype.JSC$19634_channelOpened=function(){this.JSC$19644_channel_.dispatchEvent("w")};
ZZ.prototype.JSC$19634_channelHandleArray=function(F){this.JSC$19644_channel_.dispatchEvent(new iiw(F))};
ZZ.prototype.JSC$19634_channelError=function(F){this.JSC$19644_channel_.dispatchEvent(new kew(F))};
ZZ.prototype.JSC$19634_channelClosed=function(){this.JSC$19644_channel_.dispatchEvent("x")};
var Ex9=function(F,q){this.transportChannel_=F;this.JSC$19647_channel_=q},zQv=function(F){return r3s(F.JSC$19647_channel_).map(function(q){var t=F.transportChannel_;
q=q.map;"__data__"in q?(q=q.__data__,t=t.sendRawJson_?(0,_.zhE)(q):q):t=q;return t})};
Ex9.prototype.commit=function(F){this.JSC$19647_channel_.forwardChannelFlushedCallback_=F};var rF=function(F){ox3.dispatchEvent(new nxD(ox3,F))},ox3=new _.xD,nxD=function(F,q){_.Gw.call(this,"statevent",F);
this.stat=q};
_.M(nxD,_.Gw);var N0=function(F,q,t,u,J){this.JSC$19652_channel_=F;this.JSC$19652_channelDebug_=q;this.sid_=t;this.JSC$19652_rid_=u;this.JSC$19652_retryId_=J||1;this.timeout_=45E3;this.JSC$19652_eventHandler_=new _.Qb(this);this.pollingTimer_=new _.pB;this.pollingTimer_.setInterval(250)};
_.l=N0.prototype;_.l.JSC$19654_extraHeaders_=null;_.l.JSC$19654_successful_=!1;_.l.JSC$19654_watchDogTimerId_=null;_.l.JSC$19654_watchDogTimeoutTime_=null;_.l.JSC$19654_requestStartTime_=null;_.l.JSC$19654_type_=null;_.l.JSC$19654_baseUri_=null;_.l.JSC$19654_requestUri_=null;_.l.JSC$19654_postData_=null;_.l.JSC$19654_xmlHttp_=null;_.l.JSC$19654_xmlHttpChunkStart_=0;_.l.trident_=null;_.l.JSC$19654_verb_=null;_.l.JSC$19654_lastError_=null;_.l.JSC$19654_lastStatusCode_=-1;_.l.sendClose_=!0;
_.l.JSC$19654_cancelled_=!1;_.l.JSC$19654_readyStateChangeThrottleMs_=0;_.l.JSC$19654_readyStateChangeThrottle_=null;var Mq9=function(F,q){switch(F){case 0:return"Non-200 return code ("+q+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},TzJ={},Ge7={};
N0.prototype.setTimeout=function(F){this.timeout_=F};
var WyT=function(F,q,t){F.JSC$19654_type_=1;F.JSC$19654_baseUri_=_.w3(q.clone());F.JSC$19654_postData_=t;F.decodeChunks_=!0;Dks(F,null)},Oiw=function(F,q,t,u,J){F.JSC$19654_type_=1;
F.JSC$19654_baseUri_=_.w3(q.clone());F.JSC$19654_postData_=null;F.decodeChunks_=t;J&&(F.sendClose_=!1);Dks(F,u)},Dks=function(F,q){F.JSC$19654_requestStartTime_=Date.now();
PS7(F);F.JSC$19654_requestUri_=F.JSC$19654_baseUri_.clone();Vm(F.JSC$19654_requestUri_,"t",F.JSC$19652_retryId_);F.JSC$19654_xmlHttpChunkStart_=0;F.JSC$19654_xmlHttp_=F.JSC$19652_channel_.JSC$19661_createXhrIo(F.JSC$19652_channel_.JSC$19661_shouldUseSecondaryDomains()?q:null);F.JSC$19654_readyStateChangeThrottleMs_>0&&(F.JSC$19654_readyStateChangeThrottle_=new _.LH((0,_.Pd)(F.JSC$19654_xmlHttpHandler_,F,F.JSC$19654_xmlHttp_),F.JSC$19654_readyStateChangeThrottleMs_));F.JSC$19652_eventHandler_.listen(F.JSC$19654_xmlHttp_,
"readystatechange",F.JSC$19654_readyStateChangeHandler_);q=F.JSC$19654_extraHeaders_?_.m7.clone(F.JSC$19654_extraHeaders_):{};F.JSC$19654_postData_?(F.JSC$19654_verb_="POST",q["Content-Type"]="application/x-www-form-urlencoded",F.JSC$19654_xmlHttp_.send(F.JSC$19654_requestUri_,F.JSC$19654_verb_,F.JSC$19654_postData_,q)):(F.JSC$19654_verb_="GET",F.sendClose_&&!_.es&&(q.Connection="close"),F.JSC$19654_xmlHttp_.send(F.JSC$19654_requestUri_,F.JSC$19654_verb_,null,q));F.JSC$19652_channel_.notifyServerReachabilityEvent(1);
q=F.JSC$19652_channelDebug_;var t=F.JSC$19654_postData_;if(t){var u="";t=t.split("&");for(var J=0;J<t.length;J++){var g=t[J].split("=");if(g.length>1){var Y=g[0];g=g[1];var Q=Y.split("_");u=Q.length>=2&&Q[1]=="type"?u+(Y+"="+g+"&"):u+(Y+"=redacted&")}}}else u=null;q.info("XMLHTTP REQ ("+F.JSC$19652_rid_+") [attempt "+F.JSC$19652_retryId_+"]: "+F.JSC$19654_verb_+"\n"+F.JSC$19654_requestUri_+"\n"+u)};
N0.prototype.JSC$19654_readyStateChangeHandler_=function(F){F=F.target;var q=this.JSC$19654_readyStateChangeThrottle_;q&&_.CQ(F)==3?(this.JSC$19652_channelDebug_.debug("Throttling readystatechange."),q.fire()):this.JSC$19654_xmlHttpHandler_(F)};
N0.prototype.JSC$19654_xmlHttpHandler_=function(F){try{if(F==this.JSC$19654_xmlHttp_)a:{var q=_.CQ(this.JSC$19654_xmlHttp_),t=this.JSC$19654_xmlHttp_.JSC$9789_lastErrorCode_,u=this.JSC$19654_xmlHttp_.getStatus();if(_.es&&!_.Zf("420+")){if(q<4)break a}else if(q<3||q==3&&!this.JSC$19654_xmlHttp_.getResponseText())break a;this.JSC$19654_cancelled_||q!=4||t==7||(t==8||u<=0?this.JSC$19652_channel_.notifyServerReachabilityEvent(3):this.JSC$19652_channel_.notifyServerReachabilityEvent(2));xkh(this);var J=
this.JSC$19654_xmlHttp_.getStatus();this.JSC$19654_lastStatusCode_=J;var g=this.JSC$19654_xmlHttp_.getResponseText();g||this.JSC$19652_channelDebug_.debug("No response text for uri "+this.JSC$19654_requestUri_+" status "+J);this.JSC$19654_successful_=J==200;this.JSC$19652_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19652_rid_+") [ attempt "+this.JSC$19652_retryId_+"]: "+this.JSC$19654_verb_+"\n"+this.JSC$19654_requestUri_+"\n"+q+" "+J);if(this.JSC$19654_successful_){q==4&&wF(this);if(this.decodeChunks_){for(F=
!0;!this.JSC$19654_cancelled_&&this.JSC$19654_xmlHttpChunkStart_<g.length;){var Y=A3T(this,g);if(Y==Ge7){q==4&&(this.JSC$19654_lastError_=4,rF(15),F=!1);kg(this.JSC$19652_channelDebug_,this.JSC$19652_rid_,null,"[Incomplete Response]");break}else if(Y==TzJ){this.JSC$19654_lastError_=4;rF(16);kg(this.JSC$19652_channelDebug_,this.JSC$19652_rid_,g,"[Invalid Chunk]");F=!1;break}else kg(this.JSC$19652_channelDebug_,this.JSC$19652_rid_,Y,null),vxw(this,Y)}q==4&&g.length==0&&(this.JSC$19654_lastError_=1,
rF(17),F=!1);this.JSC$19654_successful_=this.JSC$19654_successful_&&F;F||(kg(this.JSC$19652_channelDebug_,this.JSC$19652_rid_,g,"[Invalid Chunked Response]"),wF(this),IXQ(this))}else kg(this.JSC$19652_channelDebug_,this.JSC$19652_rid_,g,null),vxw(this,g);this.JSC$19654_successful_&&!this.JSC$19654_cancelled_&&(q==4?this.JSC$19652_channel_.JSC$19661_onRequestComplete(this):(this.JSC$19654_successful_=!1,PS7(this)))}else J==400&&g.indexOf("Unknown SID")>0?(this.JSC$19654_lastError_=3,rF(13),this.JSC$19652_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19652_rid_+")")):(this.JSC$19654_lastError_=0,rF(14),this.JSC$19652_channelDebug_.warning("XMLHTTP Bad status "+J+" ("+this.JSC$19652_rid_+")")),wF(this),IXQ(this)}else this.JSC$19652_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(Q){this.JSC$19652_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var A3T=function(F,q){var t=F.JSC$19654_xmlHttpChunkStart_,u=q.indexOf("\n",t);if(u==-1)return Ge7;t=Number(q.substring(t,u));if(isNaN(t))return TzJ;u+=1;if(u+t>q.length)return Ge7;q=q.slice(u,u+t);F.JSC$19654_xmlHttpChunkStart_=u+t;return q};
N0.prototype.cancel=function(){this.JSC$19654_cancelled_=!0;wF(this)};
var PS7=function(F){F.JSC$19654_watchDogTimeoutTime_=Date.now()+F.timeout_;HiC(F,F.timeout_)},HiC=function(F,q){if(F.JSC$19654_watchDogTimerId_!=null)throw Error("Hk");
F.JSC$19654_watchDogTimerId_=Yt((0,_.Pd)(F.JSC$19654_onWatchDogTimeout_,F),q)},xkh=function(F){F.JSC$19654_watchDogTimerId_&&(_.uu.clearTimeout(F.JSC$19654_watchDogTimerId_),F.JSC$19654_watchDogTimerId_=null)};
N0.prototype.JSC$19654_onWatchDogTimeout_=function(){this.JSC$19654_watchDogTimerId_=null;var F=Date.now();F-this.JSC$19654_watchDogTimeoutTime_>=0?(this.JSC$19652_channelDebug_.info("TIMEOUT: "+this.JSC$19654_requestUri_),this.JSC$19654_type_!=2&&this.JSC$19652_channel_.notifyServerReachabilityEvent(3),wF(this),this.JSC$19654_lastError_=2,rF(18),IXQ(this)):(this.JSC$19652_channelDebug_.warning("WatchDog timer called too early"),HiC(this,this.JSC$19654_watchDogTimeoutTime_-F))};
var IXQ=function(F){F.JSC$19652_channel_.JSC$19661_isClosed()||F.JSC$19654_cancelled_||F.JSC$19652_channel_.JSC$19661_onRequestComplete(F)},wF=function(F){xkh(F);
_.sP(F.JSC$19654_readyStateChangeThrottle_);F.JSC$19654_readyStateChangeThrottle_=null;F.pollingTimer_.stop();F.JSC$19652_eventHandler_.removeAll();if(F.JSC$19654_xmlHttp_){var q=F.JSC$19654_xmlHttp_;F.JSC$19654_xmlHttp_=null;q.abort();q.dispose()}F.trident_&&(F.trident_=null)};
N0.prototype.getLastError=function(){return this.JSC$19654_lastError_};
var vxw=function(F,q){try{F.JSC$19652_channel_.JSC$19661_onRequestData(F,q),F.JSC$19652_channel_.notifyServerReachabilityEvent(4)}catch(t){}};var kg=function(F,q,t,u){var J=F.info;a:if(t&&t!="y2f%"){try{var g=JSON.parse(t);if(g)for(var Y=0;Y<g.length;Y++)if(Array.isArray(g[Y])){var Q=g[Y];if(!(Q.length<2)){var e=Q[1];if(Array.isArray(e)&&!(e.length<1)){var r=e[0];if(r!="noop"&&r!="stop")for(var N=1;N<e.length;N++)e[N]=""}}}var w=(0,_.bb)(g);break a}catch(k){F.debug("Exception parsing expected JS array - probably was not JS");w=t;break a}w=void 0}else w=t;J.call(F,"XMLHTTP TEXT ("+q+"): "+w+(u?" "+u:""))};
pU.prototype.debug=function(F){this.info(F)};
pU.prototype.info=function(){};
pU.prototype.warning=function(){};var mk3=function(F,q){this.JSC$19659_channel_=F;this.JSC$19659_channelDebug_=q;this.JSC$19659_parser_=new cM};
_.l=mk3.prototype;_.l.JSC$19661_extraHeaders_=null;_.l.JSC$19661_request_=null;_.l.receivedIntermediateResult_=!1;_.l.JSC$19661_path_=null;_.l.state_=null;_.l.JSC$19661_lastStatusCode_=-1;_.l.JSC$19661_hostPrefix_=null;_.l.blockedPrefix_=null;
_.l.connect=function(F){this.JSC$19661_path_=F;F=$kv(this.JSC$19659_channel_,this.JSC$19661_path_);rF(3);Date.now();var q=this.JSC$19659_channel_.firstTestResults_;q!=null?(this.JSC$19661_hostPrefix_=q[0],(this.blockedPrefix_=q[1])?(this.state_=1,bi5(this)):(this.state_=2,y3J(this))):(Vm(F,"MODE","init"),this.JSC$19661_request_=new N0(this,this.JSC$19659_channelDebug_),this.JSC$19661_request_.JSC$19654_extraHeaders_=this.JSC$19661_extraHeaders_,Oiw(this.JSC$19661_request_,F,!1,null,!0),this.state_=
0)};
var bi5=function(F){var q=CST(F.JSC$19659_channel_,F.blockedPrefix_,"/mail/images/cleardot.gif");_.w3(q);Ri5(q.toString(),5E3,(0,_.Pd)(F.checkBlockedCallback_,F),3,2E3);F.notifyServerReachabilityEvent(1)};
mk3.prototype.checkBlockedCallback_=function(F){if(F)this.state_=2,y3J(this);else{rF(4);var q=this.JSC$19659_channel_;q.JSC$19662_channelDebug_.debug("Test Connection Blocked");q.JSC$19666_lastStatusCode_=q.connectionTest_.JSC$19661_lastStatusCode_;E_(q,9)}F&&this.notifyServerReachabilityEvent(2)};
var y3J=function(F){F.JSC$19659_channelDebug_.debug("TestConnection: starting stage 2");var q=F.JSC$19659_channel_.secondTestResults_;q!=null?(F.JSC$19659_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+q?"Buffered":"Unbuffered"),rF(5),q?(rF(11),zd(F.JSC$19659_channel_,F,!1)):(rF(12),zd(F.JSC$19659_channel_,F,!0))):(F.JSC$19661_request_=new N0(F,F.JSC$19659_channelDebug_),F.JSC$19661_request_.JSC$19654_extraHeaders_=F.JSC$19661_extraHeaders_,q=dkh(F.JSC$19659_channel_,
F.JSC$19661_hostPrefix_,F.JSC$19661_path_),rF(5),Vm(q,"TYPE","xmlhttp"),Oiw(F.JSC$19661_request_,q,!1,F.JSC$19661_hostPrefix_,!1))};
_.l=mk3.prototype;_.l.JSC$19661_createXhrIo=function(F){return this.JSC$19659_channel_.JSC$19661_createXhrIo(F)};
_.l.abort=function(){this.JSC$19661_request_&&(this.JSC$19661_request_.cancel(),this.JSC$19661_request_=null);this.JSC$19661_lastStatusCode_=-1};
_.l.JSC$19661_isClosed=function(){return!1};
_.l.JSC$19661_onRequestData=function(F,q){this.JSC$19661_lastStatusCode_=F.JSC$19654_lastStatusCode_;if(this.state_==0)if(this.JSC$19659_channelDebug_.debug("TestConnection: Got data for stage 1"),q){try{var t=this.JSC$19659_parser_.parse(q)}catch(u){Vq9(this.JSC$19659_channel_,this);return}this.JSC$19661_hostPrefix_=t[0];this.blockedPrefix_=t[1]}else this.JSC$19659_channelDebug_.debug("TestConnection: Null responseText"),Vq9(this.JSC$19659_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(rF(7),Date.now()):q=="11111"?(rF(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19661_lastStatusCode_=200,this.JSC$19661_request_.cancel(),this.JSC$19659_channelDebug_.debug("Test connection succeeded; using streaming connection"),rF(12),zd(this.JSC$19659_channel_,this,!0)):(rF(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.l.JSC$19661_onRequestComplete=function(){this.JSC$19661_lastStatusCode_=this.JSC$19661_request_.JSC$19654_lastStatusCode_;this.JSC$19661_request_.JSC$19654_successful_?this.state_==0?(this.JSC$19659_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,bi5(this)):(this.state_=2,y3J(this))):this.state_==2&&(this.JSC$19659_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19659_channelDebug_.debug("Test connection succeeded; using streaming connection"),
rF(12),zd(this.JSC$19659_channel_,this,!0)):(this.JSC$19659_channelDebug_.debug("Test connection failed; not using streaming"),rF(11),zd(this.JSC$19659_channel_,this,!1))):(this.JSC$19659_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?rF(9):this.state_==2&&rF(10),Vq9(this.JSC$19659_channel_,this,this.JSC$19661_request_.getLastError()))};
_.l.JSC$19661_shouldUseSecondaryDomains=function(){return this.JSC$19659_channel_.JSC$19661_shouldUseSecondaryDomains()};
_.l.isActive=function(){return this.JSC$19659_channel_.isActive()};
_.l.notifyServerReachabilityEvent=function(F){this.JSC$19659_channel_.notifyServerReachabilityEvent(F)};var oB=function(F,q,t){this.state_=1;this.JSC$19662_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19662_channelDebug_=new pU;this.JSC$19662_parser_=new cM;this.firstTestResults_=F||null;this.secondTestResults_=q!=null?q:null;this.asyncTest_=t||!1},UkJ=function(F,q){this.JSC$19664_mapId=F;
this.map=q;this.context=null};
_.l=oB.prototype;_.l.JSC$19666_extraHeaders_=null;_.l.JSC$19666_extraParams_=null;_.l.forwardChannelRequest_=null;_.l.JSC$19666_backChannelRequest_=null;_.l.JSC$19666_path_=null;_.l.JSC$19666_forwardChannelUri_=null;_.l.JSC$19666_backChannelUri_=null;_.l.JSC$19666_hostPrefix_=null;_.l.JSC$19666_nextRid_=0;_.l.JSC$19666_nextMapId_=0;_.l.handler_=null;_.l.JSC$19666_forwardChannelTimerId_=null;_.l.JSC$19666_backChannelTimerId_=null;_.l.JSC$19666_deadBackChannelTimerId_=null;_.l.connectionTest_=null;
_.l.useChunked_=null;_.l.JSC$19666_lastArrayId_=-1;_.l.JSC$19666_lastPostResponseArrayId_=-1;_.l.JSC$19666_lastStatusCode_=-1;_.l.JSC$19666_forwardChannelRetryCount_=0;_.l.JSC$19666_backChannelRetryCount_=0;_.l.JSC$19666_channelVersion_=8;var Sw3={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},hQw=function(F,q,t,u){_.Gw.call(this,"timingevent",F);this.size=q;this.rtt=t;this.retries=u};
_.gd(hQw,_.Gw);var KyJ=function(F){_.Gw.call(this,"serverreachability",F)};
_.gd(KyJ,_.Gw);oB.prototype.connect=function(F,q,t,u,J){this.JSC$19662_channelDebug_.debug("connect()");rF(0);this.JSC$19666_path_=q;this.JSC$19666_extraParams_=t||{};u&&J!==void 0&&(this.JSC$19666_extraParams_.OSID=u,this.JSC$19666_extraParams_.OAID=J);this.asyncTest_?(Yt((0,_.Pd)(this.connectTest_,this,F),100),Bz9(this)):this.connectTest_(F)};
oB.prototype.disconnect=function(){this.JSC$19662_channelDebug_.debug("disconnect()");Ly9(this);if(this.state_==3){var F=this.JSC$19666_nextRid_++,q=this.JSC$19666_forwardChannelUri_.clone();_.aX(q,"SID",this.sid_);_.aX(q,"RID",F);_.aX(q,"TYPE","terminate");nk(this,q);F=new N0(this,this.JSC$19662_channelDebug_,this.sid_,F);F.JSC$19654_type_=2;F.JSC$19654_baseUri_=_.w3(q.clone());(new Image).src=F.JSC$19654_baseUri_.toString();F.JSC$19654_requestStartTime_=Date.now();PS7(F)}fX7(this)};
oB.prototype.connectTest_=function(F){this.JSC$19662_channelDebug_.debug("connectTest_()");this.connectionTest_=new mk3(this,this.JSC$19662_channelDebug_);this.connectionTest_.JSC$19661_extraHeaders_=this.JSC$19666_extraHeaders_;this.connectionTest_.JSC$19659_parser_=this.JSC$19662_parser_;this.connectionTest_.connect(F)};
var Bz9=function(F){F.JSC$19662_channelDebug_.debug("connectChannel_()");F.JSC$19666_ensureInState_(1,0);F.JSC$19666_forwardChannelUri_=$kv(F,F.JSC$19666_path_);aXy(F)},Ly9=function(F){F.connectionTest_&&(F.connectionTest_.abort(),F.connectionTest_=null);
F.JSC$19666_backChannelRequest_&&(F.JSC$19666_backChannelRequest_.cancel(),F.JSC$19666_backChannelRequest_=null);F.JSC$19666_backChannelTimerId_&&(_.uu.clearTimeout(F.JSC$19666_backChannelTimerId_),F.JSC$19666_backChannelTimerId_=null);j$w(F);F.forwardChannelRequest_&&(F.forwardChannelRequest_.cancel(),F.forwardChannelRequest_=null);F.JSC$19666_forwardChannelTimerId_&&(_.uu.clearTimeout(F.JSC$19666_forwardChannelTimerId_),F.JSC$19666_forwardChannelTimerId_=null)},c33=function(F,q){if(F.state_==0)throw Error("Kk");
F.JSC$19662_outgoingMaps_.length==1E3&&F.JSC$19662_parser_.stringify(q);F.JSC$19662_outgoingMaps_.push(new UkJ(F.JSC$19666_nextMapId_++,q));F.state_!=2&&F.state_!=3||aXy(F)};
oB.prototype.JSC$19661_isClosed=function(){return this.state_==0};
oB.prototype.getState=function(){return this.state_};
var aXy=function(F){F.forwardChannelRequest_||F.JSC$19666_forwardChannelTimerId_||(F.JSC$19666_forwardChannelTimerId_=Yt((0,_.Pd)(F.JSC$19666_onStartForwardChannelTimer_,F),0),F.JSC$19666_forwardChannelRetryCount_=0)};
oB.prototype.JSC$19666_onStartForwardChannelTimer_=function(F){this.JSC$19666_forwardChannelTimerId_=null;Flw(this,F)};
var Flw=function(F,q){F.JSC$19662_channelDebug_.debug("startForwardChannel_");if(F.state_==1){if(!q){F.JSC$19662_channelDebug_.debug("open_()");F.JSC$19666_nextRid_=Math.floor(Math.random()*1E5);q=F.JSC$19666_nextRid_++;var t=new N0(F,F.JSC$19662_channelDebug_,"",q);t.JSC$19654_extraHeaders_=F.JSC$19666_extraHeaders_;var u=qqs(F),J=F.JSC$19666_forwardChannelUri_.clone();_.aX(J,"RID",q);_.aX(J,"CVER","1");nk(F,J);WyT(t,J,u);F.forwardChannelRequest_=t;F.state_=2}}else F.state_==3&&(q?tGh(F,q):F.JSC$19662_outgoingMaps_.length==
0?F.JSC$19662_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):F.forwardChannelRequest_||(tGh(F),F.JSC$19662_channelDebug_.debug("startForwardChannel_ finished, sent request")))},tGh=function(F,q){if(q)if(F.JSC$19666_channelVersion_>6){F.JSC$19662_outgoingMaps_=F.pendingMaps_.concat(F.JSC$19662_outgoingMaps_);
F.pendingMaps_.length=0;var t=F.JSC$19666_nextRid_-1;q=qqs(F)}else t=q.JSC$19652_rid_,q=q.JSC$19654_postData_;else t=F.JSC$19666_nextRid_++,q=qqs(F);var u=F.JSC$19666_forwardChannelUri_.clone();_.aX(u,"SID",F.sid_);_.aX(u,"RID",t);_.aX(u,"AID",F.JSC$19666_lastArrayId_);nk(F,u);t=new N0(F,F.JSC$19662_channelDebug_,F.sid_,t,F.JSC$19666_forwardChannelRetryCount_+1);t.JSC$19654_extraHeaders_=F.JSC$19666_extraHeaders_;t.setTimeout(1E4+Math.round(1E4*Math.random()));F.forwardChannelRequest_=t;WyT(t,u,q)},
nk=function(F,q){F.handler_&&(F=F.handler_.JSC$19673_getAdditionalParams())&&_.m7.forEach(F,function(t,u){_.aX(q,u,t)})},qqs=function(F){var q=Math.min(F.JSC$19662_outgoingMaps_.length,1E3),t=["count="+q];
if(F.JSC$19666_channelVersion_>6&&q>0){var u=F.JSC$19662_outgoingMaps_[0].JSC$19664_mapId;t.push("ofs="+u)}else u=0;for(var J={},g=0;g<q;J={mapId$jscomp$3:void 0},g++){J.mapId$jscomp$3=F.JSC$19662_outgoingMaps_[g].JSC$19664_mapId;var Y=F.JSC$19662_outgoingMaps_[g].map;J.mapId$jscomp$3=F.JSC$19666_channelVersion_<=6?g:J.mapId$jscomp$3-u;try{_.m7.forEach(Y,function(Q){return function(e,r){t.push("req"+Q.mapId$jscomp$3+"_"+r+"="+encodeURIComponent(e))}}(J))}catch(Q){t.push("req"+J.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}F.pendingMaps_=F.pendingMaps_.concat(F.JSC$19662_outgoingMaps_.splice(0,q));
return t.join("&")},KSQ=function(F){F.JSC$19666_backChannelRequest_||F.JSC$19666_backChannelTimerId_||(F.JSC$19666_backChannelAttemptId_=1,F.JSC$19666_backChannelTimerId_=Yt((0,_.Pd)(F.JSC$19666_onStartBackChannelTimer_,F),0),F.JSC$19666_backChannelRetryCount_=0)},LSQ=function(F){if(F.JSC$19666_backChannelRequest_||F.JSC$19666_backChannelTimerId_||F.JSC$19666_backChannelRetryCount_>=3)return!1;
F.JSC$19662_channelDebug_.debug("Going to retry GET");F.JSC$19666_backChannelAttemptId_++;F.JSC$19666_backChannelTimerId_=Yt((0,_.Pd)(F.JSC$19666_onStartBackChannelTimer_,F),B7v(F,F.JSC$19666_backChannelRetryCount_));F.JSC$19666_backChannelRetryCount_++;return!0};
oB.prototype.JSC$19666_onStartBackChannelTimer_=function(){this.JSC$19666_backChannelTimerId_=null;this.JSC$19662_channelDebug_.debug("Creating new HttpRequest");this.JSC$19666_backChannelRequest_=new N0(this,this.JSC$19662_channelDebug_,this.sid_,"rpc",this.JSC$19666_backChannelAttemptId_);this.JSC$19666_backChannelRequest_.JSC$19654_extraHeaders_=this.JSC$19666_extraHeaders_;this.JSC$19666_backChannelRequest_.JSC$19654_readyStateChangeThrottleMs_=0;var F=this.JSC$19666_backChannelUri_.clone();_.aX(F,
"RID","rpc");_.aX(F,"SID",this.sid_);_.aX(F,"CI",this.useChunked_?"0":"1");_.aX(F,"AID",this.JSC$19666_lastArrayId_);nk(this,F);_.aX(F,"TYPE","xmlhttp");Oiw(this.JSC$19666_backChannelRequest_,F,!0,this.JSC$19666_hostPrefix_,!1);this.JSC$19662_channelDebug_.debug("New Request created")};
var zd=function(F,q,t){F.JSC$19662_channelDebug_.debug("Test Connection Finished");F.useChunked_=F.secondTestResults_==null?t:!F.secondTestResults_;F.JSC$19666_lastStatusCode_=q.JSC$19661_lastStatusCode_;F.asyncTest_||Bz9(F)},Vq9=function(F,q){F.JSC$19662_channelDebug_.debug("Test Connection Failed");
F.JSC$19666_lastStatusCode_=q.JSC$19661_lastStatusCode_;E_(F,2)};
oB.prototype.JSC$19661_onRequestData=function(F,q){if(this.state_!=0&&(this.JSC$19666_backChannelRequest_==F||this.forwardChannelRequest_==F))if(this.JSC$19666_lastStatusCode_=F.JSC$19654_lastStatusCode_,this.forwardChannelRequest_==F&&this.state_==3)if(this.JSC$19666_channelVersion_>7){try{var t=this.JSC$19662_parser_.parse(q)}catch(u){t=null}if(Array.isArray(t)&&t.length==3)if(q=t,q[0]==0)a:if(this.JSC$19662_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19666_backChannelTimerId_)this.JSC$19662_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19666_backChannelRequest_)if(this.JSC$19666_backChannelRequest_.JSC$19654_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19654_requestStartTime_)j$w(this),this.JSC$19666_backChannelRequest_.cancel(),this.JSC$19666_backChannelRequest_=null;else break a;else this.JSC$19662_channelDebug_.warning("We do not have a BackChannel established");LSQ(this);rF(19)}else this.JSC$19666_lastPostResponseArrayId_=q[1],F=this.JSC$19666_lastPostResponseArrayId_-this.JSC$19666_lastArrayId_,0<
F&&(q=q[2],this.JSC$19662_channelDebug_.debug(q+" bytes (in "+F+" arrays) are outstanding on the BackChannel"),q<37500&&this.useChunked_&&this.JSC$19666_backChannelRetryCount_==0&&!this.JSC$19666_deadBackChannelTimerId_&&(this.JSC$19666_deadBackChannelTimerId_=Yt((0,_.Pd)(this.JSC$19666_onBackChannelDead_,this),6E3)));else this.JSC$19662_channelDebug_.debug("Bad POST response data returned"),E_(this,11)}else q!="y2f%"&&(this.JSC$19662_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
E_(this,11));else this.JSC$19666_backChannelRequest_==F&&j$w(this),_.YP(q)||(F=this.JSC$19662_parser_.parse(q),this.onInput_(F))};
oB.prototype.JSC$19666_onBackChannelDead_=function(){this.JSC$19666_deadBackChannelTimerId_!=null&&(this.JSC$19666_deadBackChannelTimerId_=null,this.JSC$19666_backChannelRequest_.cancel(),this.JSC$19666_backChannelRequest_=null,LSQ(this),rF(20))};
var j$w=function(F){F.JSC$19666_deadBackChannelTimerId_!=null&&(_.uu.clearTimeout(F.JSC$19666_deadBackChannelTimerId_),F.JSC$19666_deadBackChannelTimerId_=null)};
oB.prototype.JSC$19661_onRequestComplete=function(F){this.JSC$19662_channelDebug_.debug("Request complete");if(this.JSC$19666_backChannelRequest_==F){j$w(this);this.JSC$19666_backChannelRequest_=null;var q=2}else if(this.forwardChannelRequest_==F)this.forwardChannelRequest_=null,q=1;else return;this.JSC$19666_lastStatusCode_=F.JSC$19654_lastStatusCode_;if(this.state_!=0)if(F.JSC$19654_successful_)if(q==1){q=F.JSC$19654_postData_?F.JSC$19654_postData_.length:0;F=Date.now()-F.JSC$19654_requestStartTime_;
var t=ox3;t.dispatchEvent(new hQw(t,q,F,this.JSC$19666_forwardChannelRetryCount_));aXy(this);this.handler_&&this.handler_.JSC$19673_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else KSQ(this);else{t=F.getLastError();if(t==3||t==7||t==0&&this.JSC$19666_lastStatusCode_>0)this.JSC$19662_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19662_channelDebug_.debug("Maybe retrying, last error: "+Mq9(t,this.JSC$19666_lastStatusCode_));var u;if(u=q==1)this.forwardChannelRequest_||
this.JSC$19666_forwardChannelTimerId_||this.state_==1||this.JSC$19666_forwardChannelRetryCount_>=2?u=!1:(this.JSC$19662_channelDebug_.debug("Going to retry POST"),this.JSC$19666_forwardChannelTimerId_=Yt((0,_.Pd)(this.JSC$19666_onStartForwardChannelTimer_,this,F),B7v(this,this.JSC$19666_forwardChannelRetryCount_)),this.JSC$19666_forwardChannelRetryCount_++,u=!0);if(u||q==2&&LSQ(this))return;this.JSC$19662_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19662_channelDebug_.debug("Error: HTTP request failed");
switch(t){case 1:E_(this,5);break;case 4:E_(this,10);break;case 3:E_(this,6);break;case 7:E_(this,12);break;default:E_(this,2)}}};
var B7v=function(F,q){var t=5E3+Math.floor(Math.random()*1E4);F.isActive()||(F.JSC$19662_channelDebug_.debug("Inactive channel"),t*=2);return t*q};
oB.prototype.onInput_=function(F){for(var q=0;q<F.length;q++){var t=F[q];this.JSC$19666_lastArrayId_=t[0];t=t[1];this.state_==2?t[0]=="c"?(this.sid_=t[1],this.JSC$19666_hostPrefix_=t[2],t=t[3],t!=null?this.JSC$19666_channelVersion_=t:this.JSC$19666_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19673_channelOpened(),this.JSC$19666_backChannelUri_=dkh(this,this.JSC$19666_hostPrefix_,this.JSC$19666_path_),KSQ(this)):t[0]=="stop"&&E_(this,7):this.state_==3&&(t[0]=="stop"?E_(this,7):
t[0]!="noop"&&this.handler_&&this.handler_.JSC$19673_channelHandleArray(t),this.JSC$19666_backChannelRetryCount_=0)}};
oB.prototype.JSC$19666_ensureInState_=function(F){if(!_.bu(arguments,this.state_))throw Error("Lk`"+this.state_);};
var E_=function(F,q){F.JSC$19662_channelDebug_.info("Error code "+q);if(q==2||q==9){var t=null;F.handler_&&(t=null);var u=(0,_.Pd)(F.testGoogleComCallback_,F);t||(t=new _.qU("//www.google.com/images/cleardot.gif"),_.w3(t));Z1T(t.toString(),1E4,u)}else rF(2);F.onError_(q)};
oB.prototype.testGoogleComCallback_=function(F){F?(this.JSC$19662_channelDebug_.info("Successfully pinged google.com"),rF(2)):(this.JSC$19662_channelDebug_.info("Failed to ping google.com"),rF(1),this.onError_(8))};
oB.prototype.onError_=function(F){this.JSC$19662_channelDebug_.debug("HttpChannel: error - "+F);this.state_=0;this.handler_&&this.handler_.JSC$19673_channelError(F);fX7(this);Ly9(this)};
var fX7=function(F){F.state_=0;F.JSC$19666_lastStatusCode_=-1;if(F.handler_)if(F.pendingMaps_.length==0&&F.JSC$19662_outgoingMaps_.length==0)F.handler_.JSC$19673_channelClosed();else{F.JSC$19662_channelDebug_.debug("Number of undelivered maps, pending: "+F.pendingMaps_.length+", outgoing: "+F.JSC$19662_outgoingMaps_.length);var q=_.C3(F.pendingMaps_),t=_.C3(F.JSC$19662_outgoingMaps_);F.pendingMaps_.length=0;F.JSC$19662_outgoingMaps_.length=0;F.handler_.JSC$19673_channelClosed(q,t)}},$kv=function(F,
q){q=CST(F,null,q);
F.JSC$19662_channelDebug_.debug("GetForwardChannelUri: "+q);return q},dkh=function(F,q,t){q=CST(F,F.JSC$19661_shouldUseSecondaryDomains()?q:null,t);
F.JSC$19662_channelDebug_.debug("GetBackChannelUri: "+q);return q},CST=function(F,q,t){var u=_.Lr(t);
if(u.JSC$10024_domain_!="")q&&_.Yd(u,q+"."+u.JSC$10024_domain_),_.pn(u,u.JSC$10024_port_);else{var J=window.location;u=ra5(J.protocol,q?q+"."+J.hostname:J.hostname,+J.port,t)}F.JSC$19666_extraParams_&&_.m7.forEach(F.JSC$19666_extraParams_,function(g,Y){_.aX(u,Y,g)});
_.aX(u,"VER",F.JSC$19666_channelVersion_);nk(F,u);return u};
oB.prototype.JSC$19661_createXhrIo=function(F){if(F)throw Error("Ik");F=new _.yO;F.JSC$9789_withCredentials_=!1;return F};
oB.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
oB.prototype.notifyServerReachabilityEvent=function(F){var q=ox3;q.dispatchEvent(new KyJ(q,F))};
oB.prototype.JSC$19661_shouldUseSecondaryDomains=function(){return!1};
new ztw;var fDC=function(){};
_.l=fDC.prototype;_.l.JSC$19673_channelOpened=function(){};
_.l.JSC$19673_channelHandleArray=function(){};
_.l.JSC$19673_channelSuccess=function(){};
_.l.JSC$19673_channelError=function(){};
_.l.JSC$19673_channelClosed=function(){};
_.l.JSC$19673_getAdditionalParams=function(){return{}};
_.l.isActive=function(){return!0};var aD5=function(F){F.front_.length===0&&(F.front_=F.back_,F.front_.reverse(),F.back_=[])};
_.l=Nsv.prototype;_.l.enqueue=function(F){this.back_.push(F)};
_.l.peek=function(){aD5(this);return _.xP(this.front_)};
_.l.getCount=function(){return this.front_.length+this.back_.length};
_.l.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.l.clear=function(){this.front_=[];this.back_=[]};
_.l.contains=function(F){return _.bu(this.front_,F)||_.bu(this.back_,F)};
_.l.remove=function(F){var q=this.front_;var t=Array.prototype.lastIndexOf.call(q,F,q.length-1);t>=0?(_.nPW(q,t),q=!0):q=!1;return q||_.yC(this.back_,F)};
_.l.getValues=function(){for(var F=[],q=this.front_.length-1;q>=0;--q)F.push(this.front_[q]);q=this.back_.length;for(var t=0;t<q;++t)F.push(this.back_[t]);return F};var M0=function(F){this.JSC$19677_map_=new _.ze;this.size=0;F&&this.addAll(F)},jg3=function(F){var q=typeof F;
return q=="object"&&F||q=="function"?"o"+_.K3(F):q.charAt(0)+F};
_.l=M0.prototype;_.l.getCount=function(){return this.JSC$19677_map_.size};
_.l.add=function(F){this.JSC$19677_map_.set(jg3(F),F);this.size=this.JSC$19677_map_.size};
_.l.addAll=function(F){F=_.li(F);for(var q=F.length,t=0;t<q;t++)this.add(F[t]);this.size=this.JSC$19677_map_.size};
_.l.removeAll=function(F){F=_.li(F);for(var q=F.length,t=0;t<q;t++)this.remove(F[t]);this.size=this.JSC$19677_map_.size};
_.l.delete=function(F){F=this.JSC$19677_map_.remove(jg3(F));this.size=this.JSC$19677_map_.size;return F};
_.l.remove=function(F){return this.delete(F)};
_.l.clear=function(){this.JSC$19677_map_.clear();this.size=0};
_.l.isEmpty=function(){return this.JSC$19677_map_.size===0};
_.l.has=function(F){return this.JSC$19677_map_.containsKey(jg3(F))};
_.l.contains=function(F){return this.JSC$19677_map_.containsKey(jg3(F))};
_.l.getValues=function(){return this.JSC$19677_map_.getValues()};
_.l.values=function(){return this.JSC$19677_map_.values()};
_.l.clone=function(){return new M0(this)};
_.l.equals=function(F){return this.getCount()==Z4w(F)&&c8v(this,F)};
var c8v=function(F,q){var t=Z4w(q);if(F.getCount()>t)return!1;!(q instanceof M0)&&t>5&&(q=new M0(q));return Rt3(F,function(u){var J=q;return J.contains&&typeof J.contains=="function"?J.contains(u):J.containsValue&&typeof J.containsValue=="function"?J.containsValue(u):_.VC(J)||typeof J==="string"?_.bu(J,u):_.m7.containsValue(J,u)})};
M0.prototype.__iterator__=function(){return this.JSC$19677_map_.__iterator__(!1)};
M0.prototype[Symbol.iterator]=function(){return this.values()};var Fu9={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(F){return(this._clampValue(F)-this.min)/(this.max-this.min)},
_clampValue:function(F){return Math.min(this.max,Math.max(this.min,this._calcStep(F)))},
_calcStep:function(F){F=parseFloat(F);if(!this.step)return F;F=Math.round((F-this.min)/this.step);return this.step<1?F/(1/this.step)+this.min:F*this.step+this.min},
_validateValue:function(){var F=this._clampValue(this.value);this.value=this.oldValue=isNaN(F)?this.oldValue:F;return this.value!==F},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var qby;var t93;_.Hh({_template:function(){if(t93!==void 0)return t93;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;qby===void 0&&(qby=document.createElement("template"));var u=qby;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return t93=F},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.tJ(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(F){F.keyCode===27&&(F.preventDefault(),this.close())},
_track:function(F){if(!this.persistent&&!this.disableSwipe)switch(F.preventDefault(),F.detail.state){case "start":this._trackStart(F);break;case "track":this._trackMove(F);break;case "end":this._trackEnd(F)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var F=this.$.contentContainer.getBoundingClientRect();this._savedWidth=F.width;this._translateOffset=this.position==="left"?F.left:F.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(F){this._trackDetails&&(this._translateDrawer(F.detail.dx+this._translateOffset),this._trackDetails.push({dx:F.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(F){if(this._trackDetails){var q=F.detail.dx+this._translateOffset,t=this.getWidth();q=this.position==="left"?q>=0||q<=-t:q<=0||q>=t;if(!q){var u=this._trackDetails;this._trackDetails=null;this._flingDrawer(F,u);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}t/=2;F.detail.dx<-t?this.opened=this.position==="right":F.detail.dx>t&&(this.opened=this.position==="left");q?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(F,q){for(var t=Date.now(),u=t-100,J,g=0,Y=q.length-1;g<=Y;){var Q=g+Y>>1,e=q[Q];e.timeStamp>=u?(J=e,Y=Q-1):g=Q+1}return J?(F.detail.dx-J.dx)/(t-J.timeStamp||1):0},
_flingDrawer:function(F,q){q=this._calculateVelocity(F,q);if(!(Math.abs(q)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;F=F.detail.dx+this._translateOffset;var t=this.getWidth(),u=this.position==="left",J=q>0;J?(q=Math.max(q,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(q=Math.min(q,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");q=this._FLING_INITIAL_SLOPE*(!J&&u?-(F+t):J&&!u?t-F:-F)/q;this._styleTransitionDuration(q);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,q)}},
_styleTransitionDuration:function(F){this.style.transitionDuration=F+"ms";this.$.contentContainer.style.transitionDuration=F+"ms";this.$.scrim.style.transitionDuration=F+"ms"},
_styleTransitionTimingFunction:function(F){this.$.contentContainer.style.transitionTimingFunction=F;this.$.scrim.style.transitionTimingFunction=F},
_translateDrawer:function(F){var q=this.getWidth();this.position==="left"?(F=Math.max(-q,Math.min(F,0)),this.$.scrim.style.opacity=1+F/q):(F=Math.max(0,Math.min(F,q)),this.$.scrim.style.opacity=1-F/q);this.translate3d(F+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var F=this._drawerState;F===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;F!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),F!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var F=_.xz(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');F.length>0?(this._firstTabStop=F[0],this._lastTabStop=F[F.length-1]):
this._lastTabStop=this._firstTabStop=null;(F=this.getAttribute("tabindex"))&&parseInt(F,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(F){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||F.keyCode!==9||(F.shiftKey?this._firstTabStop&&_.xz(F).localTarget===this._firstTabStop&&(F.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.xz(F).localTarget===this._lastTabStop&&(F.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(F,q){this.toggleClass("visible",F&&!q,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 uVJ;var JBh;_.Hh({_template:function(){if(JBh!==void 0)return JBh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;uVJ===void 0&&(uVJ=document.createElement("template"));var u=uVJ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return JBh=F},
is:"tp-yt-paper-progress",behaviors:[Fu9],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(F){this.toggleClass("indeterminate",F,this.$.primaryProgress)},
_transformProgress:function(F,q){F.style.transform=F.style.webkitTransform="scaleX("+q/100+")"},
_mainRatioChanged:function(F){this._transformProgress(this.$.primaryProgress,F)},
_progressChanged:function(F,q,t,u,J){F=this._clampValue(F);q=this._clampValue(q);var g=this._calcRatio(F)*100,Y=this._calcRatio(q)*100;this._setSecondaryRatio(g);this._transformProgress(this.$.secondaryProgress,g);this._transformProgress(this.$.primaryProgress,Y);this.secondaryProgress=F;J?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",q);this.setAttribute("aria-valuemin",t);this.setAttribute("aria-valuemax",u)},
_disabledChanged:function(F){this.setAttribute("aria-disabled",F?"true":"false")},
_hideSecondaryProgress:function(F){return F===0}});var swD;var g99;var lsh=function(){};
_.l=lsh.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._buttonStateChanged=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._calcRatio=function(){};
_.l._clampValue=function(){};
_.l._calcStep=function(){};
_.l._validateValue=function(){};
_.l._update=function(){};
_.l._setImmediateValue=function(){};
_.l._setExpand=function(){};
_.l._setDragging=function(){};
_.l._setTransiting=function(){};
_.l._setMarkers=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
_.l._setRatio=function(){};
lsh=_.Hh({_template:function(){if(g99!==void 0)return g99;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;swD===void 0&&(swD=document.createElement("template"));var u=swD;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return g99=F},
is:"tp-yt-paper-slider",behaviors:[_.v6,_.$x,_.rXj,Fu9],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&&_.CW(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(F,q,t){this.setAttribute("aria-valuemin",q);this.setAttribute("aria-valuemax",t);this.setAttribute("aria-valuenow",F);this._positionKnob(this._calcRatio(F)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(F){this._setImmediateValue(this._calcStep(this._calcKnobPosition(F)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(F){return(this.max-this.min)*F/100+this.min},
_onTrack:function(F){F.stopPropagation();switch(F.detail.state){case "start":this._trackStart(F);break;case "track":this._trackX(F);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(F){this.dragging||this._trackStart(F);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,F.detail.dx*(this._isRTL?-1:1)));F=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(F);F=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(F+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var F=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;F.transform=F.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(F){this._expandKnob();F.preventDefault();this.focus()},
_bartrack:function(F){this._allowBarEvent(F)&&this._onTrack(F)},
_barclick:function(F){this._w=this.$.sliderBar.offsetWidth;var q=this.$.sliderBar.getBoundingClientRect();q=(F.detail.x-q.left)/this._w*100;this._isRTL&&(q=100-q);var t=this.ratio;this._setTransiting(!0);this._positionKnob(q);t===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
F.preventDefault();this.focus()},
_bardown:function(F){this._allowBarEvent(F)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(F))},
_knobTransitionEnd:function(F){F.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(F,q,t,u){u||this._setMarkers([]);q=Math.round((t-q)/this.step);q>F&&(q=F);if(q<0||!isFinite(q))q=0;this._setMarkers(Array(q))},
_mergeClasses:function(F){return Object.keys(F).filter(function(q){return F[q]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(F){return!this.ignoreBarTouch||F.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(F){this._isRTL?this._incrementKey(F):this._decrementKey(F)},
_rightKey:function(F){this._isRTL?this._decrementKey(F):this._incrementKey(F)},
_incrementKey:function(F){this.disabled||(F.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),F.preventDefault())},
_decrementKey:function(F){this.disabled||(F.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),F.preventDefault())},
_changeValue:function(F){this.value=F.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(F){F.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.RXx._createRipple.call(this)},
_focusedChanged:function(F){F&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=F?"":"none",this._ripple.holdDown=F)}});var XP9;var Yb7;var Td=null,pPT=function(){};
_.l=pPT.prototype;_.l.fit=function(){};
_.l._discoverInfo=function(){};
_.l.resetFit=function(){};
_.l.refit=function(){};
_.l.position=function(){};
_.l.constrain=function(){};
_.l._sizeDimension=function(){};
_.l.__sizeDimension=function(){};
_.l.center=function(){};
_.l.__getNormalizedRect=function(){};
_.l.__getOffscreenArea=function(){};
_.l.__getPosition=function(){};
_.l.notifyResize=function(){};
_.l.assignParentResizable=function(){};
_.l.stopResizeNotificationsFor=function(){};
_.l._subscribeIronResize=function(){};
_.l._unsubscribeIronResize=function(){};
_.l.resizerShouldNotify=function(){};
_.l._onDescendantIronResize=function(){};
_.l._fireResize=function(){};
_.l._onIronRequestResizeNotifications=function(){};
_.l._parentResizableChanged=function(){};
_.l._notifyDescendant=function(){};
_.l._requestResizeNotifications=function(){};
_.l._findParent=function(){};
_.l.toggle=function(){};
_.l.open=function(){};
_.l.close=function(){};
_.l.cancel=function(){};
_.l.invalidateTabbables=function(){};
_.l._ensureSetup=function(){};
_.l._canceledChanged=function(){};
_.l._withBackdropChanged=function(){};
_.l._prepareRenderOpened=function(){};
_.l._finishRenderOpened=function(){};
_.l._finishRenderClosed=function(){};
_.l._preparePositioning=function(){};
_.l._finishPositioning=function(){};
_.l._applyFocus=function(){};
_.l._onCaptureClick=function(){};
_.l._onCaptureFocus=function(){};
_.l._onCaptureEsc=function(){};
_.l._onCaptureTab=function(){};
_.l._onIronResize=function(){};
_.l._onNodesChange=function(){};
_.l.__ensureFirstLastFocusables=function(){};
_.l.__openedChanged=function(){};
_.l.__deraf=function(){};
_.l.__updateScrollObservers=function(){};
_.l.__addScrollListeners=function(){};
_.l.__removeScrollListeners=function(){};
_.l.__isValidScrollAction=function(){};
_.l.__onCaptureScroll=function(){};
_.l.__saveScrollPosition=function(){};
_.l.__restoreScrollPosition=function(){};
_.l._setCanceled=function(){};
pPT=_.Hh({_template:function(){if(Yb7!==void 0)return Yb7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;XP9===void 0&&(XP9=document.createElement("template"));var u=XP9;t.call(q,u.content.cloneNode(!0),F.content.firstChild);return Yb7=F},
is:"tp-yt-paper-toast",behaviors:[_.u4],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(){_.HN._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.jq.requestAvailability()},
show:function(F){typeof F=="string"&&(F={text:F});for(var q in F)q.indexOf("_")===0?_.HN._warn('The property "'+q+'" is private and was not set.'):q in this?this[q]=F[q]:_.HN._warn('The property "'+q+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(F){F&&F.target===this&&F.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Td&&Td!==this&&Td.close(),Td=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Td===this&&(Td=null);_.t1._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(F){this.positionTarget=F},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var QwD=new _.Xk("disablePersonalizationAction");var SO7=new _.Xk("showDmaConsentFlowCommand");var h77=new _.Xk("showMmgNoticeCommand");var eps=new _.Xk("saveConsentAction");var ZA3=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mv(F)};
_.M(ZA3,_.le);var Rp5=_.CeW(ZA3);var rBJ=new _.Xk("updateTopbarAvatarAction");var NvQ=new _.Xk("channelHandleValidationResultRenderer");var wPQ=new _.Xk("generateHandleFromNameResultRenderer");var iAC=new _.Xk("channelHandleInputRenderer");var kDD=new _.Xk("copyLinkRenderer");var E9v=new _.Xk("timedCommand");var zp9=new _.Xk("clearCookieAction");var o9T=new _.Xk("getMultiPageMenuAction");var n9C=new _.Xk("addToGuideSectionAction"),M9v=new _.Xk("removeFromGuideSectionAction");var Tvw=new _.Xk("updateNotificationsUnseenCountAction");var GDv=new _.Xk("resetChannelUnreadCountCommand");var DHh=new _.Xk("resetSubscriptionsUnreadDotCommand");var Wus=new _.Xk("selectLanguageCommand");var gC9=new _.Xk("sendFeedbackAction");var OAT=new _.Xk("uploadImageToScottyCommand");var PTw=new _.Xk("registerPromoCommand");var xH9=new _.Xk("setPushNotificationsEnabledCommand");var ABv=new _.Xk("desktopTopbarRenderer");var v97=new _.Xk("surveyFollowUpRenderer");var IsJ=new _.Xk("handlesClaimingRadioOptionRenderer");var HAh=new _.Xk("hotkeyDialogRenderer");var mHQ=new _.Xk("modifyReportFormCommand");var $Hh=new _.Xk("accountLinkCommand");var bAy=new _.Xk("accountUnlinkCommand");var yBT=new _.Xk("logAccountLinkingEventCommand");var CTC=new _.Xk("guideCollapsibleEntryRenderer");var dHT=new _.Xk("guideDownloadsEntryRenderer");var Gd=new _.Xk("guideEntryRenderer");var V99=new _.Xk("getLocationCommand");var UH9=new _.Xk("locationCollectionCommand");var SbQ=new _.Xk("storiesItemViewModel");var hpv=new _.Xk("addToRemoteQueueAction");var KuT=new _.Xk("insertInRemoteQueueAction");var Bvh=new _.Xk("removeFromRemoteQueueAction");var LuQ=new _.Xk("notificationRenderer");var OHC=new _.Xk("localWatchHistoryCommand");var fsC=new _.Xk("pdgBuyFlowHeaderRenderer");var ass=new _.Xk("pdgColorSliderRenderer");var jwT=new _.Xk("pdgCommentOptionRenderer");var cBD=new _.Xk("pdgCommentPreviewRenderer");var Few=new _.Xk("superVodSelectableItemButtonRenderer");var qn9=new _.Xk("switchButtonRenderer");var tD9=new _.Xk("upsellDialogRenderer");var uXv=new _.Xk("feedbackQuestionRenderer"),JtT=new _.Xk("feedbackOptionRenderer");var sAQ=new _.Xk("sponsorshipsTierRenderer"),gpC=new _.Xk("sponsorshipsPromotionChannelRenderer");var lBJ=new _.Xk("simpleSurveyMessageRenderer");var gih=new _.Xk("invokeInstrumentManagerAction");var X87=new _.Xk("logYpcFlowDismissCommand");var Yn9=new _.Xk("logYpcFlowStartCommand");var p8C=new _.Xk("unlimitedCreateFamilyEndpoint");var QA5=new _.Xk("iconBadgeRenderer");var P_9=new _.Xk("collaborativePlaylistVisibilityValidationRule");var esT=function(F){_.Gw.call(this,"channelMessage");this.message=F};
_.M(esT,_.Gw);var Z75=function(F){_.Gw.call(this,"channelError");this.error=F};
_.M(Z75,_.Gw);var Rsw={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",PUNCTUAL_WATCH:"pcw",IP_VALIDATION:"ipv"},rt5={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},Nt9={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},w8y={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},i7y={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var DZ=function(F){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.ze;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;F&&(this.id=F.id||F.name,this.name=F.name,this.clientName=F.clientName?F.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=F.app,this.type=F.type||"REMOTE_CONTROL",this.username=F.user||"",this.avatar=F.userAvatarUri||"",this.obfuscatedGaiaId=F.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=F.ownerObfuscatedGaiaId||"",this.castUserId=F.castUserId||"",this.theme=F.theme||"u",kkC(this,F.capabilities||""),Ep9(this,
F.compatibleSenderThemes||""),zsQ(this,F.experiments||""),this.remoteControllerUrl=F.remoteControllerUrl||"",this.localChannelEncryptionKey=F.localChannelEncryptionKey||"",this.deviceContext=F.deviceContext,this.brand=F.brand||"",this.model=F.model||"",this.year=F.year||0,this.os=F.os||"",this.osVersion=F.osVersion||"",this.chipset=F.chipset||"",this.mdxDialServerType=F.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=F.pairingType||"unknown",F=F.deviceInfo)&&(F=JSON.parse(F),this.brand=
F.brand||"",this.model=F.model||"",this.year=F.year||0,this.os=F.os||"",this.osVersion=F.osVersion||"",this.chipset=F.chipset||"",this.clientName=F.clientName?F.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=F.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
DZ.prototype.copy=function(){var F={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(F.brand=this.brand);
this.model&&(F.model=this.model);this.year&&(F.year=this.year);this.os&&(F.os=this.os);this.osVersion&&(F.osVersion=this.osVersion);this.chipset&&(F.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(F.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(F.mdxDialServerType=this.mdxDialServerType);F=new DZ(F);F.connected=this.connected;F.remoteControllerUrl=this.remoteControllerUrl;F.localChannelEncryptionKey=this.localChannelEncryptionKey;F.deviceContext=
this.deviceContext;F.castUserId=this.castUserId;return F};
DZ.prototype.equals=function(F){return F?this.id==F.id:!1};
var kkC=function(F,q){F.capabilities.clear();_.Xr(q.split(","),_.MU(_.m7.contains,Rsw)).forEach(function(t){F.capabilities.add(t)})},Ep9=function(F,q){F.compatibleSenderThemes.clear();
_.Xr(q.split(","),_.MU(_.m7.contains,rt5)).forEach(function(t){F.compatibleSenderThemes.add(t)})},zsQ=function(F,q){F.experiments.clear();
q.split(",").forEach(function(t){F.experiments.add(t)})};var op5=function(F,q){this.action=F;this.params=q||{}};_.gd(wh5,_.OP);_.l=wh5.prototype;_.l.JSC$19713_onTick_=function(){this.JSC$19711_interval_=Math.min(3E5,this.JSC$19711_interval_*2);this.JSC$19713_listener_();this.nextTickTime_&&this.start()};
_.l.start=function(){var F=this.JSC$19711_interval_+15E3*Math.random(),q=this.delay_;q.isActive()||q.start(F);this.nextTickTime_=Date.now()+F};
_.l.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.l.isActive=function(){return this.delay_.isActive()};
_.l.reset=function(){this.delay_.stop();this.JSC$19711_interval_=5E3};_.gd(Qm,fDC);_.l=Qm.prototype;_.l.subscribe=function(F,q,t){return this.pubsub_.subscribe(F,q,t)};
_.l.unsubscribe=function(F,q,t){return this.pubsub_.unsubscribe(F,q,t)};
_.l.unsubscribeByKey=function(F){return this.pubsub_.unsubscribeByKey(F)};
_.l.publish=function(F,q){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.l.dispose=function(){this.JSC$19714_disposed_||(this.JSC$19714_disposed_=!0,_.sP(this.pubsub_),this.disconnect(),_.sP(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19714_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.NU({})})};
_.l.isDisposed=function(){return this.JSC$19714_disposed_};
_.l.connect=function(F,q,t){var u=this,J,g,Y,Q;return _.p(function(e){if(e.nextAddress==1)return _.Mv(e,2),u.useAsyncBrowserChannelHandler_?e.yield(u.connectPromise_,2):e.jumpTo(2);_.n6(e);if(u.JSC$19714_disposed_||u.JSC$19714_channel_&&u.JSC$19714_channel_.getState()==2)return e.return();u.sCookie_="";u.reconnectTimer_.stop();u.connectionParams_=F||null;u.connectUi_=q||0;J=u.JSC$19714_pathPrefix_+"/test";g=u.JSC$19714_pathPrefix_+"/bind";Y=new oB(t?t.firstTestResults:null,t?t.secondTestResults:null,
u.enableAsyncTest_);if(Q=u.JSC$19714_channel_)Q.handler_=null;Y.handler_=u;u.JSC$19714_channel_=Y;if(u.useAsyncBrowserChannelHandler_)return u.connectPromise_=np7(u).then(function(){return MDT(u,J,g,Q,t)}),e.return(u.connectPromise_.then(function(){u.connectPromise_=_.NU()}));
MDT(u,J,g,Q,t);return _.Tg(e,0)})};
var MDT=function(F,q,t,u,J){Tt9(F);if(F.JSC$19714_channel_){var g=_.bn("ID_TOKEN"),Y=F.JSC$19714_channel_.JSC$19666_extraHeaders_||{};g?Y["x-youtube-identity-token"]=g:delete Y["x-youtube-identity-token"];F.JSC$19714_channel_.JSC$19666_extraHeaders_=Y}GkD(F);u?(u.getState(),F.JSC$19714_channel_.connect(q,t,F.defaultQueryParams_,u.sid_,u.JSC$19666_lastArrayId_)):J?F.JSC$19714_channel_.connect(q,t,F.defaultQueryParams_,J.sessionId,J.arrayId):F.JSC$19714_channel_.connect(q,t,F.defaultQueryParams_)};
Qm.prototype.disconnect=function(F){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.NU())}finally{this.disconnectUi_=F||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Tt9(this),this.JSC$19714_channel_&&(this.JSC$19714_channel_.getState()==3&&Flw(this.JSC$19714_channel_),this.JSC$19714_channel_.disconnect()),this.disconnectUi_=0}};
Qm.prototype.sendMessage=function(F,q){var t=this,u;return _.p(function(J){switch(J.nextAddress){case 1:_.Mv(J,2);if(!t.useAsyncBrowserChannelHandler_){J.jumpTo(2);break}return J.yield(t.connectPromise_,2);case 2:_.n6(J);if(t.JSC$19714_disposed_)return J.return();u={_sc:F};q&&_.m7.extend(u,q);if(t.reconnectTimer_.isActive()||(t.JSC$19714_channel_?t.JSC$19714_channel_.getState():0)==2){t.JSC$19714_pendingMessages_.push(u);J.jumpTo(6);break}if(!t.isChannelOpened()){J.jumpTo(6);break}_.Mv(J,8);if(!t.useAsyncBrowserChannelHandler_||
DT7(t,F)){J.jumpTo(8);break}return J.yield(np7(t),8);case 8:_.n6(J,0,0,1);t.isChannelOpened()&&(DT7(t,F)||GkD(t),Tt9(t),c33(t.JSC$19714_channel_,u));_.Tg(J,6,1);break;case 6:_.Tg(J,0)}})};
var DT7=function(F,q){return F.enableMdxAuthForConnectionOnly_?!0:F.disableMdxAuthForAdMessages_?Object.values(Nt9).includes(q):F.disableMdxAuthForNonPlaybackMessages_?!Object.values(w8y).includes(q):F.disableMdxAuthForShortsMessages_?Object.values(i7y).includes(q):!1};
Qm.prototype.JSC$19673_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19714_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)WeQ(this);else{var F=this.JSC$19714_pendingMessages_;this.JSC$19714_pendingMessages_=[];var q=F.length;GkD(this);O7Q(this,F,q);PY5(this)}else PY5(this)};
var WeQ=function(F){var q,t;_.p(function(u){if(u.nextAddress==1)return _.Mv(u,2),u.yield(np7(F),2);_.n6(u);q=F.JSC$19714_pendingMessages_;F.JSC$19714_pendingMessages_=[];t=q.length;O7Q(F,q,t);PY5(F);return _.Tg(u,0)})},O7Q=function(F,q,t){for(var u=0;u<t;++u)c33(F.JSC$19714_channel_,q[u]);
PY5(F)},PY5=function(F){F.publish("handlerOpened");
F.JSC$19714_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.l=Qm.prototype;_.l.JSC$19673_channelError=function(F){var q=F==2&&this.JSC$19714_channel_.JSC$19666_lastStatusCode_==401;F==4||q||this.reconnectTimer_.start();this.publish("handlerError",F,q);q=Object.keys(Sw3).find(function(t){return Sw3[t]===F});
this.JSC$19714_channelErrorCounter.increment("BROWSER_CHANNEL",q!=null?q:"UNKNOWN")};
_.l.JSC$19673_channelClosed=function(F,q){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(q)for(var t=q.length,u=0;u<t;++u){var J=q[u].map;J&&this.JSC$19714_pendingMessages_.push(J)}this.JSC$19714_channelClosedCounter.increment("BROWSER_CHANNEL");F&&this.pendingMapsOnClosedCounter.JSC$9925_streamzService.JSC$9780_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",F.length);q&&this.undeliveredMapsOnClosedCounter.JSC$9928_streamzService.JSC$9780_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
q.length)};
_.l.JSC$19673_channelSuccess=function(F,q){q!=null&&F!=null&&this.channelMessageSentCounter.increment()};
_.l.JSC$19673_getAdditionalParams=function(){var F={v:2};this.sCookie_&&(F.gsessionid=this.sCookie_);this.connectUi_!=0&&(F.ui=""+this.connectUi_);this.disconnectUi_!=0&&(F.ui=""+this.disconnectUi_);this.connectionParams_&&_.m7.extend(F,this.connectionParams_);return F};
_.l.JSC$19673_channelHandleArray=function(F){F[0]=="S"?this.sCookie_=F[1]:F[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19714_channel_.disconnect()):this.publish("handlerMessage",new op5(F[0],F[1]));this.JSC$19714_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.l.isChannelOpened=function(){return!!this.JSC$19714_channel_&&this.JSC$19714_channel_.getState()==3};
var Tt9=function(F){if(F.JSC$19714_channel_){var q=F.JSC$19714_getXsrfToken_(),t=F.JSC$19714_channel_.JSC$19666_extraHeaders_||{};q?t["x-youtube-lounge-xsrf-token"]=q:delete t["x-youtube-lounge-xsrf-token"];F.JSC$19714_channel_.JSC$19666_extraHeaders_=t}},np7=function(F){if(F.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.NU();
if(!F.enableCachedUpdateAuthorizationHeader_)return xTJ(F);F.updateAuthorizationHeaderPromise_===null&&(F.updateAuthorizationHeaderPromise_=xTJ(F));return F.updateAuthorizationHeaderPromise_},xTJ=function(F){return _.Hr(F.getAuthorizationHeader_().then(function(q){At9(F,q)}).thenCatch(function(){}),function(){F.updateAuthorizationHeaderPromise_=null})},At9=function(F,q){if(F.JSC$19714_channel_){var t=F.JSC$19714_channel_.JSC$19666_extraHeaders_||{};
q&&Object.keys(q).length>0?t=Object.assign({},t,q):delete t.Authorization;F.JSC$19714_channel_.JSC$19666_extraHeaders_=t}},GkD=function(F){F.getAuthorizationHeaderSync_&&!F.useAsyncBrowserChannelHandler_&&At9(F,F.getAuthorizationHeaderSync_())};
_.l=Qm.prototype;_.l.setLoungeToken=function(F){(this.defaultQueryParams_.loungeIdToken=F)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19714_channel_){var q=this.JSC$19714_channel_.JSC$19666_extraHeaders_||{};F?q["X-YouTube-LoungeId-Token"]=F:delete q["X-YouTube-LoungeId-Token"];this.JSC$19714_channel_.JSC$19666_extraHeaders_=q}};
_.l.getDeviceId=function(){return this.defaultQueryParams_.id};
_.l.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.l.reconnect=function(){var F=this.reconnectTimer_;F.delay_.fire();F.start()};
_.l.safeReconnect_=function(){var F=this.JSC$19714_channel_,q=0;F.JSC$19666_backChannelRequest_&&q++;F.forwardChannelRequest_&&q++;q==0&&this.connect(this.connectionParams_,this.connectUi_)};var iI=function(F,q){var t=F.basePath;F.supportCors&&(t=F.scheme+"://"+F.domain+F.port+F.basePath);return _.j6(t+q,{})};
el.prototype.sendRequest=function(F,q,t,u,J,g,Y){F={format:g?"RAW":"JSON",method:F,context:this,timeout:5E3,withCredentials:!!Y,onSuccess:_.MU(this.JSC$19719_onSuccess_,u,!g),onError:_.MU(this.onError_,J),onTimeout:_.MU(this.JSC$19719_onTimeout_,J)};t&&(F.postParams=t,F.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.iK(q,F)};
el.prototype.JSC$19719_onSuccess_=function(F,q,t,u){q?F(u):F({text:t.responseText})};
el.prototype.onError_=function(F,q){F(Error("Mk`"+q.status))};
el.prototype.JSC$19719_onTimeout_=function(F){F(Error("Nk"))};var Rr=function(F,q){return!!q&&(F.id==q||F.uuid==q)},vpT=function(F){return{name:F.name,
screenId:F.id,loungeToken:F.token,dialId:F.uuid,screenIdType:F.idType}},IBD=function(F){return new ZF(F)},H7T=function(F){return Array.isArray(F)?_.$q(F,IBD):[]},DcQ=function(F){if(!F)return"null";
var q=F.token?".."+F.token.slice(-6):"-",t=F.uuid?".."+F.uuid.slice(-6):"-";return'{name:"'+F.name+'",id:'+F.id.substr(0,6)+"..,token:"+(q+",uuid:"+t+",idType:"+F.idType+"}")},qkJ=function(F){return Array.isArray(F)?"["+_.$q(F,DcQ).join(",")+"]":"null"};var Ij9="",we=null;var Usv=function(F,q){_.xD.call(this);var t=this;this.handler=F();this.handler.subscribe("handlerOpened",this.JSC$19726_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(u,J){t.onError(J)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=q};
_.M(Usv,_.xD);_.l=Usv.prototype;_.l.connect=function(F,q,t){this.handler.connect(F,q,t)};
_.l.disconnect=function(F){this.handler.disconnect(F)};
_.l.reconnect=function(){this.handler.reconnect()};
_.l.getDeviceId=function(){return this.handler.getDeviceId()};
_.l.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.l.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.l.JSC$19726_onOpened=function(){this.dispatchEvent("channelOpened");var F=this.handler,q=this.currentScreenId;_.A8("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!F.JSC$19714_channel_.useChunked_,sessionId:F.JSC$19714_channel_.sid_,arrayId:F.JSC$19714_channel_.JSC$19666_lastArrayId_});_.A8("yt-remote-session-screen-id",q);F=W6h();q=O19();_.bu(F,q)||F.push(q);vMv(F);AYw()};
_.l.onClosed=function(){this.dispatchEvent("channelClosed")};
_.l.onMessage=function(F){this.dispatchEvent(new esT(F))};
_.l.onError=function(F){this.dispatchEvent(new Z75(F?1:0))};
_.l.sendMessage=function(F,q){this.handler.sendMessage(F,q)};
_.l.setLoungeToken=function(F){this.handler.setLoungeToken(F)};
_.l.dispose=function(){this.handler.dispose()};var Vpy=function(F,q,t){var u=this;t=t===void 0?function(){return""}:t;
var J=J===void 0?new w6h:J;var g=g===void 0?new _.EV:g;this.pathPrefix=F;this.defaultQueryParams=q;this.getXsrfToken=t;this.JSC$19729_pubsub=g;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new wh5(function(){var Y;((Y=u.channel)==null?void 0:B5v((new Ex9(Y,Y.JSC$19637_channel_)).JSC$19647_channel_.forwardChannelRequestPool_))===0&&u.connect(u.connectionParams,u.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19729_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19729_channelOpenedCounter=new i19;this.JSC$19729_channelClosedCounter=new ka9;this.JSC$19729_channelMessageReceivedCounter=new ziy;this.JSC$19729_channelErrorCounter=new oM3};
Vpy.prototype.connect=function(F,q){F=F===void 0?{}:F;q=q===void 0?0:q;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=F,this.connectUi=q,mTy(this),(F=_.bn("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=F:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new RB(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,$Tv(this))};
var $Tv=function(F){_.Ic(F.channel,"w",function(){F.channelState=3;F.reconnectTimer.reset();F.connectionParams=null;F.connectUi=0;for(var q=_.X(F.nonAckedMessagesOnChannelClosed),t=q.next();!t.done;t=q.next())t=t.value,F.channel&&F.channel.send(t);F.nonAckedMessagesOnChannelClosed=[];F.publish("webChannelOpened");F.JSC$19729_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Ic(F.channel,"x",function(){F.channelState=0;F.reconnectTimer.isActive()||F.publish("webChannelClosed");var q,t=(q=F.channel)==null?void 0:zQv(new Ex9(q,q.JSC$19637_channel_));t&&(F.nonAckedMessagesOnChannelClosed=[].concat(_.mZ(t)));F.JSC$19729_channelClosedCounter.increment("WEB_CHANNEL")});
_.Ic(F.channel,"z",function(q){var t=q.data;t[0]==="gracefulReconnect"?(F.reconnectTimer.start(),F.channel&&F.channel.close()):F.publish("webChannelMessage",new op5(t[0],t[1]));F.lastStatusCode=q.statusCode;F.JSC$19729_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Ic(F.channel,"y",function(){F.lastStatusCode===401||F.reconnectTimer.start();F.publish("webChannelError");F.JSC$19729_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.l=Vpy.prototype;_.l.disconnect=function(F){this.disconnectUi=F===void 0?0:F;this.reconnectTimer.stop();mTy(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.l.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.l.reconnect=function(){var F=this.reconnectTimer;F.delay_.fire();F.start()};
_.l.sendMessage=function(F,q){this.channel&&(mTy(this),F=Object.assign({},{_sc:F},q),this.channel.send(F))};
_.l.setLoungeToken=function(F){F||this.reconnectTimer.stop();F?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=F:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var mTy=function(F){var q=F.getXsrfToken();q?F.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=q:delete F.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.l=Vpy.prototype;_.l.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.l.publish=function(F){return this.JSC$19729_pubsub.publish.apply(this.JSC$19729_pubsub,[F].concat(_.mZ(_.US.apply(1,arguments))))};
_.l.subscribe=function(F,q,t){return this.JSC$19729_pubsub.subscribe(F,q,t)};
_.l.unsubscribe=function(F,q,t){return this.JSC$19729_pubsub.unsubscribe(F,q,t)};
_.l.unsubscribeByKey=function(F){return this.JSC$19729_pubsub.unsubscribeByKey(F)};
_.l.dispose=function(){this.JSC$19729_disposed||(this.JSC$19729_disposed=!0,_.sP(this.JSC$19729_pubsub),this.disconnect(),_.sP(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.l.isDisposed=function(){return this.JSC$19729_disposed};var dsT=function(F){_.xD.call(this);this.webChannelService=F();this.webChannelService.subscribe("webChannelOpened",this.JSC$19737_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.M(dsT,_.xD);_.l=dsT.prototype;_.l.connect=function(F,q){this.webChannelService.connect(F,q)};
_.l.disconnect=function(F){this.webChannelService.disconnect(F)};
_.l.reconnect=function(){this.webChannelService.reconnect()};
_.l.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.l.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.l.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.l.JSC$19737_onOpened=function(){this.dispatchEvent("channelOpened")};
_.l.onClosed=function(){this.dispatchEvent("channelClosed")};
_.l.onMessage=function(F){this.dispatchEvent(new esT(F))};
_.l.onError=function(){this.dispatchEvent(new Z75(this.webChannelService.lastStatusCode===401?1:0))};
_.l.sendMessage=function(F,q){this.webChannelService.sendMessage(F,q)};
_.l.setLoungeToken=function(F){this.webChannelService.setLoungeToken(F)};
_.l.dispose=function(){this.webChannelService.dispose()};var FWs=Date.now(),kt=null,jEh=Array(50),or=-1,cYD=!1;_.gd(nU,_.Wv);nU.prototype.getScreens=function(){return this.screens};
nU.prototype.contains=function(F){return!!DsT(this.screens,F)};
nU.prototype.get=function(F){return F?re(this.screens,F):null};
var b7D=function(F,q){var t=F.get(q.uuid)||F.get(q.id);if(t)return F=t.name,t.id=q.id||t.id,t.name=q.name,t.token=q.token,t.uuid=q.uuid||t.uuid,t.name!=F;F.screens.push(q);return!0},yt3=function(F,q){var t=F.screens.length!=q.length;
F.screens=_.Xr(F.screens,function(g){return!!DsT(q,g)});
for(var u=q.length,J=0;J<u;J++)t=b7D(F,q[J])||t;return t},CY9=function(F,q){var t=F.screens.length;
F.screens=_.Xr(F.screens,function(u){return!(u||q?!u!=!q?0:u.id==q.id:1)});
return F.screens.length<t};
nU.prototype.info=function(F){E7(this.JSC$19738_logName_,F)};var dTw=function(F,q,t,u,J){_.Wv.call(this);this.JSC$19741_http_=F;this.pairingCode_=q;this.deviceId_=t;this.friendlyName_=u;this.enableShortLivedLoungeToken_=J;this.pollIndex_=0;this.JSC$19741_xhr_=null;this.JSC$19741_timer_=NaN};
_.M(dTw,_.Wv);_.l=dTw.prototype;_.l.start=function(){!this.JSC$19741_xhr_&&isNaN(this.JSC$19741_timer_)&&this.poll_()};
_.l.stop=function(){this.JSC$19741_xhr_&&(this.JSC$19741_xhr_.abort(),this.JSC$19741_xhr_=null);isNaN(this.JSC$19741_timer_)||(_.Nh(this.JSC$19741_timer_),this.JSC$19741_timer_=NaN)};
_.l.disposeInternal=function(){this.stop();_.Wv.prototype.disposeInternal.call(this)};
_.l.poll_=function(){this.JSC$19741_timer_=NaN;this.JSC$19741_xhr_=_.iK(iI(this.JSC$19741_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Pd)(this.JSC$19743_onSuccess_,this),onError:(0,_.Pd)(this.onError_,this),onTimeout:(0,_.Pd)(this.JSC$19743_onTimeout_,this)})};
_.l.JSC$19743_onSuccess_=function(F,q){this.JSC$19741_xhr_=null;F=q.screen||{};F.dialId=this.deviceId_;F.name=this.friendlyName_;q=-1;this.enableShortLivedLoungeToken_&&F.shortLivedLoungeToken&&F.shortLivedLoungeToken.value&&F.shortLivedLoungeToken.refreshIntervalMs&&(F.screenIdType="shortLived",F.loungeToken=F.shortLivedLoungeToken.value,q=F.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new ZF(F),q)};
_.l.onError_=function(F){this.JSC$19741_xhr_=null;F.status&&F.status==404?this.pollIndex_>=VD9.length?this.publish("pairingFailed",Error("Ok")):(F=VD9[this.pollIndex_],this.JSC$19741_timer_=_.Rm((0,_.Pd)(this.poll_,this),F),this.pollIndex_++):this.publish("pairingFailed",Error("Pk`"+F.status))};
_.l.JSC$19743_onTimeout_=function(){this.JSC$19741_xhr_=null;this.publish("pairingFailed",Error("Qk"))};
var VD9=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.gd(TN,nU);_.l=TN.prototype;_.l.start=function(){M8(this)&&this.publish("screenChange");!_.vG("yt-remote-lounge-token-expiration")&&UTC(this);_.Nh(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Rm((0,_.Pd)(this.start,this),1E4)};
_.l.add=function(F,q){M8(this);b7D(this,F);SnT(this,!1);this.publish("screenChange");q(F);F.token||UTC(this)};
_.l.remove=function(F,q){var t=M8(this);CY9(this,F)&&(SnT(this,!1),t=!0);q(F);t&&this.publish("screenChange")};
_.l.updateName=function(F,q,t,u){var J=M8(this),g=this.get(F.id);g?(g.name!=q&&(g.name=q,SnT(this,!1),J=!0),t(F)):u(Error("Rk"));J&&this.publish("screenChange")};
_.l.disposeInternal=function(){_.Nh(this.loungeTokenRefreshTimer_);TN.superClass_.disposeInternal.call(this)};
var UTC=function(F){if(F.screens.length){var q=_.$q(F.screens,function(u){return u.id}),t=iI(F.JSC$19745_http_,"/pairing/get_lounge_token_batch");
F.JSC$19745_http_.sendRequest("POST",t,{screen_ids:q.join(",")},(0,_.Pd)(F.handleLoungeTokens_,F),(0,_.Pd)(F.handleLoungeTokenError_,F))}};
TN.prototype.handleLoungeTokens_=function(F){M8(this);var q=this.screens.length;F=F&&F.screens||[];for(var t=F.length,u=0;u<t;++u){var J=F[u],g=this.get(J.screenId);g&&(g.token=J.loungeToken,--q)}SnT(this,!q);q&&E7(this.JSC$19738_logName_,"Missed "+q+" lounge tokens.")};
TN.prototype.handleLoungeTokenError_=function(F){E7(this.JSC$19738_logName_,"Requesting lounge tokens failed: "+F)};
var M8=function(F){if(_.E("deprecate_pair_servlet_enabled"))return yt3(F,[]);var q=H7T(mss());q=_.Xr(q,function(t){return!t.uuid});
return yt3(F,q)},SnT=function(F,q){b1v(_.$q(F.screens,vpT));
q&&$sy()};var W$=function(F,q){_.Wv.call(this);this.getScreensToCheck_=q;q=(q=_.vG("yt-remote-online-screen-ids")||"")?q.split(","):[];for(var t={},u=this.getScreensToCheck_(),J=u.length,g=0;g<J;++g){var Y=u[g].id;t[Y]=_.bu(q,Y)}this.screenIdSet_=t;this.JSC$19748_http_=F;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;hsC("Initialized with "+(0,_.bb)(this.screenIdSet_))};
_.M(W$,_.Wv);W$.prototype.isOnline=function(F){return!!this.screenIdSet_[F]};
W$.prototype.start=function(){var F=parseInt(_.vG("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.sa()-144E5<F?0:F)?Key(this):(this.fastCheckEndTime_=_.sa()+3E5,_.A8("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
W$.prototype.isEmpty=function(){return _.m7.isEmpty(this.screenIdSet_)};
W$.prototype.update=function(){hsC("Updating availability on schedule.");var F=this.getScreensToCheck_(),q=_.m7.filter(this.screenIdSet_,function(t,u){return t&&!!re(F,u)},this);
BtD(this,q)};
var Le5=function(F,q,t){var u=iI(F.JSC$19748_http_,"/pairing/get_screen_availability");F.JSC$19748_http_.sendRequest("POST",u,{lounge_token:q.token},(0,_.Pd)(function(J){J=J.screens||[];for(var g=J.length,Y=0;Y<g;++Y)if(J[Y].loungeToken==q.token){t(J[Y].status=="online");return}t(!1)},F),(0,_.Pd)(function(){t(!1)},F))};
W$.prototype.disposeInternal=function(){_.Nh(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Wv.prototype.disposeInternal.call(this)};
var BtD=function(F,q){a:if(_.m7.getCount(q)!=_.m7.getCount(F.screenIdSet_))var t=!1;else{t=_.m7.getKeys(q);for(var u=t.length,J=0;J<u;++J)if(!F.screenIdSet_[t[J]]){t=!1;break a}t=!0}t||(hsC("Updated online screens: "+(0,_.bb)(F.screenIdSet_)),F.screenIdSet_=q,F.publish("screenChange"));fB5(F)},Key=function(F){isNaN(F.refreshTimer_)||_.Nh(F.refreshTimer_);
F.refreshTimer_=_.Rm((0,_.Pd)(F.requestScreenAvailability_,F),F.fastCheckEndTime_>0&&F.fastCheckEndTime_<_.sa()?2E4:1E4)};
W$.prototype.requestScreenAvailability_=function(){_.Nh(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var F=aBv(this);if(_.m7.getCount(F)){var q=iI(this.JSC$19748_http_,"/pairing/get_screen_availability"),t={lounge_token:_.m7.getKeys(F).join(",")};this.currentRequest_=this.JSC$19748_http_.sendRequest("POST",q,t,(0,_.Pd)(this.onScreenAvailability_,this,F),(0,_.Pd)(this.onScreenAvailabilityError_,this))}else BtD(this,{}),Key(this)};
W$.prototype.onScreenAvailability_=function(F,q){this.currentRequest_=null;var t=_.m7.getKeys(aBv(this));if(_.By(t,_.m7.getKeys(F))){q=q.screens||[];t={};for(var u=q.length,J=0;J<u;++J)t[F[q[J].loungeToken]]=q[J].status=="online";BtD(this,t);Key(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
W$.prototype.onScreenAvailabilityError_=function(F){this.warn_("Screen availability failed: "+F);this.currentRequest_=null;Key(this)};
var hsC=function(F){E7("OnlineScreenService",F)};
W$.prototype.warn_=function(F){E7("OnlineScreenService",F)};
var aBv=function(F){var q={};_.B_(F.getScreensToCheck_(),function(t){t.token?q[t.token]=t.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return q},fB5=function(F){F=_.m7.getKeys(_.m7.filter(F.screenIdSet_,function(q){return q}));
F.sort(_.DAv);F.length?_.A8("yt-remote-online-screen-ids",F.join(","),60):_.Ig("yt-remote-online-screen-ids")};_.gd(GN,nU);_.l=GN.prototype;_.l.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.l.add=function(F,q,t){this.localScreenService_.add(F,q,t)};
_.l.remove=function(F,q,t){this.localScreenService_.remove(F,q,t);this.onlineScreenService_.update()};
_.l.updateName=function(F,q,t,u){this.localScreenService_.contains(F)?this.localScreenService_.updateName(F,q,t,u):(F="Updating name of unknown screen: "+F.name,E7(this.JSC$19738_logName_,F),u(Error(F)))};
_.l.getScreens=function(F){return F?this.screens:fts(this.screens,_.Xr(this.automaticScreens_,function(q){return!this.contains(q)},this))};
_.l.JSC$19753_getOnlineScreens=function(){return _.Xr(this.getScreens(!0),function(F){return this.onlineScreenService_.isOnline(F.id)},this)};
var cts=function(F,q,t,u,J,g){F.info("getAutomaticScreenByIds "+t+" / "+q);t||(t=F.deviceToScreenId_[q]);var Y=F.getScreens(),Q=t?re(Y,t):null;t&&(F.disableAutomaticScreenCache_||Q)||(Q=re(Y,q));if(Q){Q.uuid=q;var e=O_(F,Q);Le5(F.onlineScreenService_,e,function(r){J(r?e:null)})}else t?jAv(F,t,(0,_.Pd)(function(r){var N=O_(this,new ZF({name:u,
screenId:t,loungeToken:r,dialId:q||""}));Le5(this.onlineScreenService_,N,function(w){J(w?N:null)})},F),g):J(null)};
GN.prototype.JSC$19753_getScreenByPollingPairingCode=function(F,q,t,u,J,g){var Y=this;this.info("getDialScreenByPairingCode "+F+" / "+q);var Q=new dTw(this.JSC$19751_http_,F,q,t,u);Q.subscribe("pairingComplete",function(e,r){_.sP(Q);J(O_(Y,e),r)});
Q.subscribe("pairingFailed",function(e){_.sP(Q);g(e)});
Q.start();return(0,_.Pd)(Q.stop,Q)};
var Fns=function(F,q){for(var t=F.screens.length,u=0;u<t;++u)if(F.screens[u].name==q)return F.screens[u];return null};
GN.prototype.JSC$19753_getScreenByPairingCode=function(F,q,t,u){_.iK(iI(this.JSC$19751_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:F},timeout:5E3,onSuccess:(0,_.Pd)(function(J,g){J=new ZF(g.screen||{});if(!J.name||Fns(this,J.name)){a:{g=J.name;for(var Y=2,Q=q(g,Y);Fns(this,Q);){Y++;if(Y>20)break a;Q=q(g,Y)}g=Q}J.name=g}t(O_(this,J))},this),
onError:(0,_.Pd)(function(J){u(Error("Sk`"+J.status))},this),
onTimeout:(0,_.Pd)(function(){u(Error("Tk"))},this)})};
var q9Q=function(F,q,t){Le5(F.onlineScreenService_,q,t)};
GN.prototype.disposeInternal=function(){_.sP(this.localScreenService_);_.sP(this.onlineScreenService_);GN.superClass_.disposeInternal.call(this)};
var jAv=function(F,q,t,u){F.info("requestLoungeToken_ for "+q);var J={postParams:{screen_ids:q},method:"POST",context:F,onSuccess:function(g,Y){g=Y&&Y.screens||[];g[0]&&g[0].screenId==q?t(g[0].loungeToken):u(Error("Uk"))},
onError:function(){u(Error("Vk"))}};
_.iK(iI(F.JSC$19751_http_,"/pairing/get_lounge_token_batch"),J)},tes=function(F){F.screens=F.localScreenService_.getScreens();
for(var q=_.m7.transpose(F.deviceToScreenId_),t=F.screens.length,u=0;u<t;++u){var J=F.screens[u];J.uuid=q[J.id]||""}F.info("Updated manual screens: "+qkJ(F.screens))};
GN.prototype.handleScreenChange_=function(){tes(this);this.publish("screenChange");this.onlineScreenService_.update()};
var tg3=function(F){u7h(F);F.localScreenService_=new TN(F.JSC$19751_http_);F.localScreenService_.subscribe("screenChange",(0,_.Pd)(F.handleScreenChange_,F));tes(F);F.disableAutomaticScreenCache_||(F.automaticScreens_=H7T(_.vG("yt-remote-automatic-screen-cache")||[]));u7h(F);F.info("Initializing automatic screens: "+qkJ(F.automaticScreens_));F.onlineScreenService_=new W$(F.JSC$19751_http_,(0,_.Pd)(F.getScreens,F,!0));F.onlineScreenService_.subscribe("screenChange",(0,_.Pd)(function(){this.publish("onlineScreenChange")},
F))},O_=function(F,q){var t=F.get(q.id);
t?(t.uuid=q.uuid,q=t):((t=re(F.automaticScreens_,q.uuid))?(t.id=q.id,t.token=q.token,q=t):F.automaticScreens_.push(q),F.disableAutomaticScreenCache_||JFs(F));u7h(F);F.deviceToScreenId_[q.uuid]=q.id;_.A8("yt-remote-device-id-map",F.deviceToScreenId_,31536E3);return q},JFs=function(F){F=_.Xr(F.automaticScreens_,function(q){return q.idType!="shortLived"});
_.A8("yt-remote-automatic-screen-cache",_.$q(F,vpT))},u7h=function(F){F.deviceToScreenId_=_.vG("yt-remote-device-id-map")||{}};
GN.prototype.dispose=GN.prototype.dispose;_.gd(DF,_.Wv);var P$=function(F,q){F.screen_=q;F.publish("sessionScreen",F.screen_)},sp5=function(F,q){F.screen_&&(F.screen_.token=q,O_(F.JSC$19755_screenService_,F.screen_));
F.publish("sessionScreen",F.screen_)};
DF.prototype.onSessionStopped=function(F){this.isDisposed()||(F&&(xg(this,""+F),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
DF.prototype.info=function(F){E7(this.JSC$19755_logName_,F)};
var xg=function(F,q){E7(F.JSC$19755_logName_,q)};
DF.prototype.JSC$19757_getCastSession=function(){return null};
DF.prototype.setDisplayStatus=function(F){var q=this.receiver_;F?(q.displayStatus=new chrome.cast.ReceiverDisplayStatus(F,[]),q.displayStatus.showStop=!0):q.displayStatus=null;chrome.cast.setReceiverDisplayStatus(q,(0,_.Pd)(function(){this.info("Updated receiver status for "+q.friendlyName+": "+F)},this),(0,_.Pd)(function(){xg(this,"Failed to update receiver status for: "+q.friendlyName)},this))};
DF.prototype.disposeInternal=function(){this.setDisplayStatus("");DF.superClass_.disposeInternal.call(this)};var AH=function(F,q,t){DF.call(this,F,q,"CastSession");var u=this;this.config_=t;this.JSC$19760_session_=null;this.JSC$19760_boundSessionUpdate_=(0,_.Pd)(this.JSC$19762_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Pd)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Rm(function(){gTy(u,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19760_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19760_isInitLoungeToken_=!1;this.JSC$19760_lastLoungeTokenRefreshError_="unknown"};
_.M(AH,DF);_.l=AH.prototype;
_.l.setCastSession=function(F){if(this.JSC$19760_session_){if(this.JSC$19760_session_==F)return;xg(this,"Overriding cast session with new session object");lO9(this);this.JSC$19760_isInitLoungeToken_=!1;this.JSC$19760_lastLoungeTokenRefreshError_="unknown";this.JSC$19760_session_.removeUpdateListener(this.JSC$19760_boundSessionUpdate_);this.JSC$19760_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19760_session_=F;this.JSC$19760_session_.addUpdateListener(this.JSC$19760_boundSessionUpdate_);this.JSC$19760_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);XeT(this,"getMdxSessionStatus")};
_.l.launchWithParams=function(F){this.info("launchWithParams no-op for Cast: "+(0,_.bb)(F))};
_.l.stop=function(){if(this.JSC$19760_session_)this.JSC$19760_session_.stop((0,_.Pd)(function(){this.onSessionStopped()},this),(0,_.Pd)(function(){this.onSessionStopped(Error("Wk"))},this));
else this.onSessionStopped(Error("Xk"))};
_.l.setDisplayStatus=function(){};
_.l.disposeInternal=function(){this.info("disposeInternal");lO9(this);this.JSC$19760_session_&&(this.JSC$19760_session_.removeUpdateListener(this.JSC$19760_boundSessionUpdate_),this.JSC$19760_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19760_session_=null;DF.prototype.disposeInternal.call(this)};
var pe5=function(F,q){_.Nh(F.getLoungeTokenTimeoutKey_);F.getLoungeTokenTimeoutKey_=0;q==0?Y9v(F):F.getLoungeTokenTimeoutKey_=_.Rm(function(){Y9v(F)},q)},Y9v=function(F){XeT(F,"getLoungeToken");
_.Nh(F.onLoungeTokenTimeoutKey_);F.onLoungeTokenTimeoutKey_=_.Rm(function(){Qp5(F,null)},3E4)},XeT=function(F,q){F.info("sendYoutubeMessage_: "+q+" "+(0,_.bb)(void 0));
var t={};t.type=q;F.JSC$19760_session_?F.JSC$19760_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",t,function(){},(0,_.Pd)(function(){xg(this,"Failed to send message: "+q+".")},F)):xg(F,"Sending yt message without session: "+(0,_.bb)(t))};
AH.prototype.onYoutubeMessage_=function(F,q){if(!this.isDisposed())if(q)if(q=(0,_.Iu)(q),_.ho(q))switch(F=""+q.type,q=q.data||{},this.info("onYoutubeMessage_: "+F+" "+(0,_.bb)(q)),F){case "mdxSessionStatus":gTy(this,q);break;case "loungeToken":Qp5(this,q);break;default:xg(this,"Unknown youtube message: "+F)}else xg(this,"Unable to parse message.");else xg(this,"No data in message.")};
var eDv=function(F,q){if(q)F.info("onConnectedScreenId_: Received screenId: "+q),F.screen_&&F.screen_.id==q||F.getScreen_(q,function(t){P$(F,t)},function(){return F.onSessionStopped()},5);
else F.onSessionStopped(Error("Yk"))},RDT=function(F,q,t){F.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(q));
var u=new ZF(q);Z_y(F,u,function(J){J?(F.JSC$19760_isInitLoungeToken_=!0,O_(F.JSC$19755_screenService_,u),P$(F,u),F.JSC$19760_lastLoungeTokenRefreshError_="unknown",pe5(F,t)):(_.CI(Error("Zk`"+JSON.stringify(q))),F.onSessionStopped())},5)},gTy=function(F,q){_.Nh(F.sessionStatusTimeoutKey_);
F.sessionStatusTimeoutKey_=0;if(q)F.config_.enableCastLoungeToken&&q.loungeToken?q.deviceId?F.screen_&&F.screen_.uuid==q.deviceId||(q.loungeTokenRefreshIntervalMs?RDT(F,{name:F.receiver_.friendlyName,screenId:q.screenId,loungeToken:q.loungeToken,dialId:q.deviceId,screenIdType:"shortLived"},q.loungeTokenRefreshIntervalMs):(_.CI(Error("al`"+JSON.stringify(q))),eDv(F,q.screenId))):(_.CI(Error("$k`"+JSON.stringify(q))),eDv(F,q.screenId)):eDv(F,q.screenId);else F.onSessionStopped(Error("Yk"))},Qp5=function(F,
q){_.Nh(F.onLoungeTokenTimeoutKey_);
F.onLoungeTokenTimeoutKey_=0;var t=null;if(q)if(q.loungeToken){var u;((u=F.screen_)==null?void 0:u.token)==q.loungeToken&&(t="staleLoungeToken")}else t="missingLoungeToken";else t="noLoungeTokenResponse";t?(F.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(q)+", error: "+t)),F.JSC$19760_lastLoungeTokenRefreshError_=t,pe5(F,3E4)):(sp5(F,q.loungeToken),F.JSC$19760_isInitLoungeToken_=!1,F.JSC$19760_lastLoungeTokenRefreshError_="unknown",pe5(F,q.loungeTokenRefreshIntervalMs))};
AH.prototype.getScreen_=function(F,q,t,u){_.Nh(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;cts(this.JSC$19755_screenService_,this.receiver_.label,F,this.receiver_.friendlyName,(0,_.Pd)(function(J){J?q(J):u>=0?(xg(this,"Screen "+F+" appears to be offline. "+u+" retries left."),this.getScreenTimeoutKey_=_.Rm((0,_.Pd)(this.getScreen_,this,F,q,t,u-1),300)):t(Error("bl"))},this),t)};
var Z_y=function(F,q,t,u){_.Nh(F.JSC$19760_checkScreenAvailabilityTimeoutKey_);F.JSC$19760_checkScreenAvailabilityTimeoutKey_=0;q9Q(F.JSC$19755_screenService_,q,function(J){J||u<0?t(J):F.JSC$19760_checkScreenAvailabilityTimeoutKey_=_.Rm(function(){Z_y(F,q,t,u-1)},300)})};
AH.prototype.JSC$19757_getCastSession=function(){return this.JSC$19760_session_};
AH.prototype.JSC$19762_onSessionUpdate_=function(F){this.isDisposed()||F||(xg(this,"Cast session died."),this.onSessionStopped())};
var lO9=function(F){_.Nh(F.getScreenTimeoutKey_);F.getScreenTimeoutKey_=0;_.Nh(F.JSC$19760_checkScreenAvailabilityTimeoutKey_);F.JSC$19760_checkScreenAvailabilityTimeoutKey_=0;_.Nh(F.sessionStatusTimeoutKey_);F.sessionStatusTimeoutKey_=0;_.Nh(F.onLoungeTokenTimeoutKey_);F.onLoungeTokenTimeoutKey_=0;_.Nh(F.getLoungeTokenTimeoutKey_);F.getLoungeTokenTimeoutKey_=0};var v$=function(F,q,t,u){DF.call(this,F,q,"DialSession");this.config_=u;this.JSC$19764_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19764_theme_=t;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19764_deferredLaunchDeadlineTimer_=NaN;this.JSC$19764_boundSessionUpdate_=(0,_.Pd)(this.JSC$19766_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19764_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19764_isInitLoungeToken_=!1;this.JSC$19764_lastLoungeTokenRefreshError_="unknown"};
_.M(v$,DF);v$.prototype.setCastSession=function(F){this.JSC$19764_session_=F;this.JSC$19764_session_.addUpdateListener(this.JSC$19764_boundSessionUpdate_)};
v$.prototype.launchWithParams=function(F){this.connectData_=F;this.deferredLaunch_()};
v$.prototype.stop=function(){rFh(this);if(this.JSC$19764_session_)this.JSC$19764_session_.stop((0,_.Pd)(this.onSessionStopped,this,null),(0,_.Pd)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
v$.prototype.disposeInternal=function(){rFh(this);this.JSC$19764_session_&&this.JSC$19764_session_.removeUpdateListener(this.JSC$19764_boundSessionUpdate_);this.JSC$19764_session_=null;DF.prototype.disposeInternal.call(this)};
var N8s=function(F){var q;return!!(F.config_.enableDialLoungeToken&&((q=F.JSC$19764_session_)==null?0:q.getDialAppInfo))},we5=function(F){F.cancelPolling_=F.JSC$19755_screenService_.JSC$19753_getScreenByPollingPairingCode(F.reversePairingCode_,F.receiver_.label,F.receiver_.friendlyName,N8s(F),function(q,t){F.cancelPolling_=function(){};
F.JSC$19764_isInitLoungeToken_=!0;P$(F,q);q.idType=="shortLived"&&t>0&&IB(F,t)},function(q){F.cancelPolling_=function(){};
F.onSessionStopped(q)})};
v$.prototype.JSC$19766_onSessionUpdate_=function(F){this.isDisposed()||F||(xg(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var i_v=function(F){var q={};q.pairingCode=F.reversePairingCode_;q.theme=F.JSC$19764_theme_;CLD()&&(q.env_useStageMdx=1);return _.kE(q)},kKw=function(F){return new Promise(function(q){F.reversePairingCode_=Tsh();
if(F.connectData_){var t=new chrome.cast.DialLaunchResponse(!0,i_v(F));q(t);we5(F)}else F.deferredLaunch_=function(){_.Nh(F.JSC$19764_deferredLaunchDeadlineTimer_);F.deferredLaunch_=function(){};
F.JSC$19764_deferredLaunchDeadlineTimer_=NaN;var u=new chrome.cast.DialLaunchResponse(!0,i_v(F));q(u);we5(F)},F.JSC$19764_deferredLaunchDeadlineTimer_=_.Rm(function(){F.deferredLaunch_()},100)})},zDs=function(F,q,t){F.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(q));
var u=new ZF(q);return(new Promise(function(J){ETT(F,u,function(g){g?(F.JSC$19764_isInitLoungeToken_=!0,O_(F.JSC$19755_screenService_,u),P$(F,u),IB(F,t)):_.CI(Error("dl`"+JSON.stringify(q)));J(g)},5)})).then(function(J){return J?new chrome.cast.DialLaunchResponse(!1):kKw(F)})},oTT=function(F,q){var t=F.launchData_.receiver.label,u=F.receiver_.friendlyName;
return(new Promise(function(J){cts(F.JSC$19755_screenService_,t,q,u,function(g){g&&g.token&&P$(F,g);J(g)},function(g){xg(F,"Failed to get DIAL screen: "+g);
J(null)})})).then(function(J){return J&&J.token?new chrome.cast.DialLaunchResponse(!1):kKw(F)})},ETT=function(F,q,t,u){_.Nh(F.JSC$19764_checkScreenAvailabilityTimeoutKey_);
F.JSC$19764_checkScreenAvailabilityTimeoutKey_=0;q9Q(F.JSC$19755_screenService_,q,function(J){J||u<0?t(J):F.JSC$19764_checkScreenAvailabilityTimeoutKey_=_.Rm(function(){ETT(F,q,t,u-1)},300)})},IB=function(F,q){F.info("getDialAppInfoWithTimeout_ "+q);
N8s(F)&&(_.Nh(F.getDialAppInfoTimeoutKey_),F.getDialAppInfoTimeoutKey_=0,q==0?nTC(F):F.getDialAppInfoTimeoutKey_=_.Rm(function(){nTC(F)},q))},nTC=function(F){N8s(F)&&F.JSC$19764_session_.getDialAppInfo(function(q){F.info("getDialAppInfo dialLaunchData: "+JSON.stringify(q));
q=q.extraData||{};var t=null;if(q.loungeToken){var u;((u=F.screen_)==null?void 0:u.token)==q.loungeToken&&(t="staleLoungeToken")}else t="missingLoungeToken";t?(F.JSC$19764_lastLoungeTokenRefreshError_=t,IB(F,3E4)):(F.JSC$19764_isInitLoungeToken_=!1,F.JSC$19764_lastLoungeTokenRefreshError_="unknown",sp5(F,q.loungeToken),IB(F,q.loungeTokenRefreshIntervalMs))},function(q){F.info("getDialAppInfo error: "+q);
F.JSC$19764_lastLoungeTokenRefreshError_="noLoungeTokenResponse";IB(F,3E4)})},rFh=function(F){_.Nh(F.JSC$19764_checkScreenAvailabilityTimeoutKey_);
F.JSC$19764_checkScreenAvailabilityTimeoutKey_=0;_.Nh(F.getDialAppInfoTimeoutKey_);F.getDialAppInfoTimeoutKey_=0;F.cancelPolling_();F.cancelPolling_=function(){};
_.Nh(F.JSC$19764_deferredLaunchDeadlineTimer_)};var H$=function(F,q){DF.call(this,F,q,"ManualSession");this.JSC$19768_deferredLaunchDeadlineTimer_=_.Rm((0,_.Pd)(this.launchWithParams,this,null),150)};
_.M(H$,DF);H$.prototype.stop=function(){this.onSessionStopped()};
H$.prototype.setCastSession=function(){};
H$.prototype.launchWithParams=function(){_.Nh(this.JSC$19768_deferredLaunchDeadlineTimer_);this.JSC$19768_deferredLaunchDeadlineTimer_=NaN;var F=re(this.JSC$19755_screenService_.getScreens(),this.receiver_.label);if(F)P$(this,F);else this.onSessionStopped(Error("el"))};
H$.prototype.disposeInternal=function(){_.Nh(this.JSC$19768_deferredLaunchDeadlineTimer_);this.JSC$19768_deferredLaunchDeadlineTimer_=NaN;DF.prototype.disposeInternal.call(this)};var xt=function(F,q){_.Wv.call(this);this.config_=q;this.JSC$19771_screenService_=F;this.JSC$19771_appId_=q.appId||"233637DE";this.JSC$19771_theme_=q.theme||"cl";this.disableDial_=q.disableCastApi||!1;this.forceMirroring_=q.forceMirroring||!1;this.JSC$19771_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Pd)(this.onReceiverAction_,this)};
_.M(xt,_.Wv);
xt.prototype.init=function(F,q){chrome.cast.timeout.requestSession=3E4;var t=new chrome.cast.SessionRequest(this.JSC$19771_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.E("desktop_enable_cast_connect")&&(t.androidReceiverCompatible=!0);this.disableDial_||(t.dialRequest=new chrome.cast.DialRequest("YouTube"));var u=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;F=F||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var J=(0,_.Pd)(this.onReceiverUpdated_,
this);t=new chrome.cast.ApiConfig(t,(0,_.Pd)(this.onSessionEstablished_,this),J,u,F);t.customDialLaunchCallback=(0,_.Pd)(this.onDialLaunchRequested_,this);chrome.cast.initialize(t,(0,_.Pd)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),L69(),this.JSC$19771_screenService_.subscribe("onlineScreenChange",(0,_.Pd)(this.JSC$19773_onScreenChange_,this)),this.customReceivers_=Me5(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Pd)(function(g){this.warn_("Failed to set initial custom receivers: "+(0,_.bb)(g))},this)),this.publish("yt-remote-cast2-availability-change",mq(this)),q(!0))},this),(0,_.Pd)(function(g){this.warn_("Failed to initialize API: "+(0,_.bb)(g));
q(!1)},this))};
xt.prototype.setConnectedScreenStatus=function(F,q){$g("Setting connected screen ID: "+F+" -> "+q);if(this.JSC$19771_session_){var t=this.JSC$19771_session_.screen_;if(!F||t&&t.id!=F)$g("Unsetting old screen status: "+this.JSC$19771_session_.receiver_.friendlyName),bt(this,null)}if(F&&q){if(!this.JSC$19771_session_){F=re(this.JSC$19771_screenService_.getScreens(),F);if(!F){$g("setConnectedScreenStatus: Unknown screen.");return}if(F.idType=="shortLived"){$g("setConnectedScreenStatus: Screen with id type to be short lived.");
return}t=T83(this,F);t||($g("setConnectedScreenStatus: Connected receiver not custom..."),t=new chrome.cast.Receiver(F.uuid?F.uuid:F.id,F.name),t.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(t),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Pd)(function(u){this.warn_("Failed to set initial custom receivers: "+(0,_.bb)(u))},this)));
$g("setConnectedScreenStatus: new active receiver: "+t.friendlyName);bt(this,new H$(this.JSC$19771_screenService_,t),!0)}this.JSC$19771_session_.setDisplayStatus(q)}else $g("setConnectedScreenStatus: no screen.")};
var T83=function(F,q){return q?_.vy(F.customReceivers_,function(t){return Rr(q,t.label)},F):null};
xt.prototype.setLaunchParams=function(F){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19771_session_?this.JSC$19771_session_.launchWithParams(F):this.warn_("Setting connection data without a session")};
xt.prototype.JSC$19773_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19771_session_?(this.JSC$19771_session_.stop(),bt(this,null)):$g("Stopping non-existing session")};
xt.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Pd)(this.onSessionEstablished_,this),(0,_.Pd)(this.onSessionRequestFailed_,this))};
xt.prototype.disposeInternal=function(){this.JSC$19771_screenService_.unsubscribe("onlineScreenChange",(0,_.Pd)(this.JSC$19773_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.yC(_.S6("yt.mdx.remote.debug.handlers_")||[],hiJ);_.sP(this.JSC$19771_session_);_.Wv.prototype.disposeInternal.call(this)};
var $g=function(F){E7("Controller",F)};
xt.prototype.warn_=function(F){E7("Controller",F)};
var hiJ=function(F){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(F)},mq=function(F){return F.hasCastReceiver_||!!F.customReceivers_.length||!!F.JSC$19771_session_},bt=function(F,q,t){q!=F.JSC$19771_session_&&(_.sP(F.JSC$19771_session_),(F.JSC$19771_session_=q)?(t?F.publish("yt-remote-cast2-receiver-resumed",q.receiver_):F.publish("yt-remote-cast2-receiver-selected",q.receiver_),q.subscribe("sessionScreen",(0,_.Pd)(F.onSessionScreen_,F,q)),q.subscribe("sessionFailed",
function(){return GKh(F,q)}),q.screen_?F.publish("yt-remote-cast2-session-change",q.screen_):t&&F.JSC$19771_session_.launchWithParams(null)):F.publish("yt-remote-cast2-session-change",null))},GKh=function(F,q){F.JSC$19771_session_==q&&F.publish("yt-remote-cast2-session-failed")};
_.l=xt.prototype;_.l.onSessionScreen_=function(F,q){this.JSC$19771_session_==F&&(q||bt(this,null),this.publish("yt-remote-cast2-session-change",q))};
_.l.onReceiverAction_=function(F,q){if(!this.isDisposed())if(F)switch(F.friendlyName=chrome.cast.unescape(F.friendlyName),$g("onReceiverAction_ "+F.label+" / "+F.friendlyName+"-- "+q),q){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19771_session_)if(this.JSC$19771_session_.receiver_.label!=F.label)$g("onReceiverAction_: Stopping active receiver: "+this.JSC$19771_session_.receiver_.friendlyName),this.JSC$19771_session_.stop();else{$g("onReceiverAction_: Casting to active receiver.");this.JSC$19771_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19771_session_.screen_);break}switch(F.receiverType){case chrome.cast.ReceiverType.CUSTOM:bt(this,new H$(this.JSC$19771_screenService_,F));break;case chrome.cast.ReceiverType.DIAL:bt(this,new v$(this.JSC$19771_screenService_,F,this.JSC$19771_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:bt(this,new AH(this.JSC$19771_screenService_,F,this.config_));break;default:this.warn_("Unknown receiver type: "+F.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19771_session_&&
this.JSC$19771_session_.receiver_.label==F.label?this.JSC$19771_session_.stop():this.warn_("Stopping receiver w/o session: "+F.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.l.onDialLaunchRequested_=function(F){if(this.isDisposed())return Promise.reject(Error("fl"));var q=F.receiver;q.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+q.friendlyName),q.receiverType=chrome.cast.ReceiverType.DIAL);var t=this.JSC$19771_session_?this.JSC$19771_session_.receiver_:null;if(!t||t.label!=q.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+q.friendlyName),Promise.reject(Error("gl"));if(t&&t.label==q.label&&t.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19771_session_.screen_)return $g("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19771_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+t.receiverType+'" to "dial" for '+q.friendlyName);bt(this,new v$(this.JSC$19771_screenService_,q,this.JSC$19771_theme_,this.config_))}q=this.JSC$19771_session_;q.launchData_=F;q.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(F=q.launchData_.extraData||{},t=F.screenId||null,N8s(q)&&F.loungeToken?F.loungeTokenRefreshIntervalMs?F=zDs(q,{name:q.receiver_.friendlyName,screenId:F.screenId,loungeToken:F.loungeToken,dialId:q.launchData_.receiver.label,screenIdType:"shortLived"},F.loungeTokenRefreshIntervalMs):(_.CI(Error("cl`"+JSON.stringify(F))),F=oTT(q,t)):F=oTT(q,t)):F=kKw(q);return F};
_.l.onSessionEstablished_=function(F){var q=this;if(!this.isDisposed()&&!this.forceMirroring_){$g("New cast session ID: "+F.sessionId);var t=F.receiver;if(t.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19771_session_)if(t.receiverType==chrome.cast.ReceiverType.CAST)$g("Got resumed cast session before resumed mdx connection."),t.friendlyName=chrome.cast.unescape(t.friendlyName),bt(this,new AH(this.JSC$19771_screenService_,t,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var u=this.JSC$19771_session_.receiver_,J=re(this.JSC$19771_screenService_.getScreens(),u.label);J&&Rr(J,t.label)&&u.receiverType!=chrome.cast.ReceiverType.CAST&&t.receiverType==chrome.cast.ReceiverType.CAST&&($g("onSessionEstablished_: manual to cast session change "+t.friendlyName),_.sP(this.JSC$19771_session_),this.JSC$19771_session_=new AH(this.JSC$19771_screenService_,t,this.config_),this.JSC$19771_session_.subscribe("sessionScreen",(0,_.Pd)(this.onSessionScreen_,this,this.JSC$19771_session_)),
this.JSC$19771_session_.subscribe("sessionFailed",function(){return GKh(q,q.JSC$19771_session_)}),this.JSC$19771_session_.launchWithParams(null));
this.JSC$19771_session_.setCastSession(F)}}};
_.l.JSC$19773_getCastSession=function(){return this.JSC$19771_session_?this.JSC$19771_session_.JSC$19757_getCastSession():null};
_.l.onSessionRequestFailed_=function(F){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.bb)(F)),F.code!=chrome.cast.ErrorCode.CANCEL&&bt(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.l.onReceiverUpdated_=function(F){$g("Receiver availability updated: "+F);if(!this.isDisposed()){var q=mq(this);this.hasCastReceiver_=F==chrome.cast.ReceiverAvailability.AVAILABLE;mq(this)!=q&&this.publish("yt-remote-cast2-availability-change",mq(this))}};
var Me5=function(F){var q=F.JSC$19771_screenService_.JSC$19753_getOnlineScreens(),t=F.JSC$19771_session_&&F.JSC$19771_session_.receiver_;F=_.$q(q,function(u){t&&Rr(u,t.label)&&(t=null);var J=u.uuid?u.uuid:u.id,g=T83(this,u);g?(g.label=J,g.friendlyName=u.name):(g=new chrome.cast.Receiver(J,u.name),g.receiverType=chrome.cast.ReceiverType.CUSTOM);return g},F);
t&&(t.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(t=new chrome.cast.Receiver(t.label,t.friendlyName),t.receiverType=chrome.cast.ReceiverType.CUSTOM),F.push(t));return F};
xt.prototype.JSC$19773_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Me5(this),$g("Updating custom receivers: "+(0,_.bb)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Pd)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",mq(this)))};
xt.prototype.setLaunchParams=xt.prototype.setLaunchParams;xt.prototype.setConnectedScreenStatus=xt.prototype.setConnectedScreenStatus;xt.prototype.stopSession=xt.prototype.JSC$19773_stopSession;xt.prototype.getCastSession=xt.prototype.JSC$19773_getCastSession;xt.prototype.requestSession=xt.prototype.requestSession;xt.prototype.init=xt.prototype.init;xt.prototype.dispose=xt.prototype.dispose;var D$J=_.LZ(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),Eb7=[],Ykv=_.RV(D$J);var WnC=function(F){F.audioTrackId=null;F.trackData=null;F.playerState=-1;F.hasPrevious=!1;F.hasNext=!1;F.playerTime_=0;F.playerTimeAt_=_.sa();F.seekableStart_=0;F.seekableEnd_=0;F.duration_=0;F.loadedTime=0;F.liveIngestionTime_=NaN;F.isLive_=!1};
_.l=Au.prototype;
_.l.reset=function(F){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;F&&(this.index=F.index,this.listId=F.listId,this.videoId=F.videoId,this.playerState=F.playerState,this.volume=F.volume,this.muted=F.muted,this.audioTrackId=F.audioTrackId,this.trackData=F.trackData,this.hasPrevious=F.hasPrevious,this.hasNext=F.hasNext,this.playerTime_=F.playerTime,this.playerTimeAt_=F.playerTimeAt,this.seekableStart_=F.seekableStart,this.seekableEnd_=F.seekableEnd,this.duration_=F.duration,this.loadedTime=
F.loadedTime,this.liveIngestionTime_=F.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.l.stopPlayer=function(){this.index=-1;this.videoId="";WnC(this)};
_.l.isPlaying=function(){return this.playerState==1};
_.l.isBuffering=function(){return this.playerState==3};
_.l.isAdPlaying=function(){return this.playerState==1081};
var y_=function(F,q){F.playerTime_=q;F.playerTimeAt_=_.sa()},O_J=function(F){switch(F.playerState){case 1:case 1081:return(_.sa()-F.playerTimeAt_)/1E3+F.playerTime_;
case -1E3:return 0}return F.playerTime_};
Au.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.sa()-this.playerTimeAt_)/1E3:0):this.duration_};
var Pr9=function(F,q,t){var u=F.videoId;F.videoId=q;F.index=t;q!=u&&WnC(F)},x$s=function(F){var q={};
q.index=F.index;q.listId=F.listId;q.videoId=F.videoId;q.playerState=F.playerState;q.volume=F.volume;q.muted=F.muted;q.audioTrackId=F.audioTrackId;q.trackData=_.m7.unsafeClone(F.trackData);q.hasPrevious=F.hasPrevious;q.hasNext=F.hasNext;q.playerTime=F.playerTime_;q.playerTimeAt=F.playerTimeAt_;q.seekableStart=F.seekableStart_;q.seekableEnd=F.seekableEnd_;q.duration=F.duration_;q.loadedTime=F.loadedTime;q.liveIngestionTime=F.liveIngestionTime_;return q};
Au.prototype.clone=function(){return new Au(x$s(this))};var Ck=function(F,q){_.Wv.call(this);var t=this;this.state_=0;this.connection_=F;this.contextSubscriptions_=[];this.actionQueue_=new Nsv;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Pd)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Pd)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Pd)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Pd)(this.onCloudviewAvailabilityChange_,this);var u=0;F?(u=F.getProxyState(),
u!=3&&(F.subscribe("proxyStateChange",this.setState_,this),AFs(this))):u=3;u!=0&&(q?this.setState_(u):_.Rm(function(){t.setState_(u)},0));
(F=Mg9())&&vTs(this,F);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.M(Ck,_.Wv);Ck.prototype.getState=function(){return this.state_};
Ck.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Ck.prototype.reconnect=function(){this.connection_.reconnect()};
var dF=function(F){return new Au(F.connection_.getPlayerContextData())};
_.l=Ck.prototype;_.l.play=function(){V_(this)?(this.castMedia_?this.castMedia_.play(null,_.DH,IOC(this,"play")):U_(this,"play"),H_5(this,1,O_J(dF(this))),this.publish("remotePlayerChange")):SV(this,this.play)};
_.l.pause=function(){V_(this)?(this.castMedia_?this.castMedia_.pause(null,_.DH,IOC(this,"pause")):U_(this,"pause"),H_5(this,2,O_J(dF(this))),this.publish("remotePlayerChange")):SV(this,this.pause)};
_.l.seekTo=function(F){if(V_(this)){if(this.castMedia_){var q=dF(this),t=new chrome.cast.media.SeekRequest;t.currentTime=F;q.isPlaying()||q.isBuffering()?t.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:t.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(t,_.DH,IOC(this,"seekTo",{newTime:F}))}else U_(this,"seekTo",{newTime:F});H_5(this,3,F);this.publish("remotePlayerChange")}else SV(this,_.MU(this.seekTo,F))};
_.l.stop=function(){if(V_(this)){this.castMedia_?this.castMedia_.stop(null,_.DH,IOC(this,"stopVideo")):U_(this,"stopVideo");var F=dF(this);F.stopPlayer();hH(this,F);this.publish("remotePlayerChange")}else SV(this,this.stop)};
_.l.setVolume=function(F,q){if(V_(this)){var t=dF(this);if(this.castSession_){if(t.volume!=F){var u=Math.round(F)/100;this.castSession_.setReceiverVolumeLevel(u,(0,_.Pd)(function(){zN("set receiver volume: "+u)},this),(0,_.Pd)(function(){this.warn_("failed to set receiver volume.")},this))}t.muted!=q&&this.castSession_.setReceiverMuted(q,(0,_.Pd)(function(){zN("set receiver muted: "+q)},this),(0,_.Pd)(function(){this.warn_("failed to set receiver muted.")},this))}else{var J={volume:F,
muted:q};t.volume!=-1&&(J.delta=F-t.volume);U_(this,"setVolume",J)}t.muted=q;t.volume=F;hH(this,t)}else SV(this,_.MU(this.setVolume,F,q))};
_.l.setAudioTrack=function(F,q){V_(this)?(q=q.getLanguageInfo().getId(),U_(this,"setAudioTrack",{videoId:F,audioTrackId:q}),F=dF(this),F.audioTrackId=q,hH(this,F)):SV(this,_.MU(this.setAudioTrack,F,q))};
_.l.addVideo=function(F){V_(this)?U_(this,"addVideo",{videoId:F}):SV(this,_.MU(this.addVideo,F))};
_.l.addPlaylist=function(F){V_(this)?U_(this,"addVideos",{listId:F}):SV(this,_.MU(this.addPlaylist,F))};
_.l.addVideos=function(F){F.length==0?this.warn_("Ignore add videos request due to empty list"):V_(this)?U_(this,"addVideos",{videoIds:F.join(",")}):SV(this,_.MU(this.addVideos,F))};
_.l.JSC$19783_removeVideo=function(F){V_(this)?U_(this,"removeVideo",{videoId:F}):SV(this,_.MU(this.JSC$19783_removeVideo,F))};
_.l.JSC$19783_insertVideo=function(F){V_(this)?U_(this,"insertVideo",{videoId:F}):SV(this,_.MU(this.JSC$19783_insertVideo,F))};
_.l.playVideo=function(F,q,t,u,J,g,Y){u=u===void 0?null:u;J=J===void 0?null:J;g=g===void 0?null:g;Y=Y===void 0?null:Y;var Q=dF(this),e={videoId:F};t!==void 0&&(e.currentIndex=t);Pr9(Q,F,t||0);q!==void 0&&(y_(Q,q),e.currentTime=q);u&&(e.listId=u);J&&(e.playerParams=J);g&&(e.clickTrackingParams=g);Y&&(e.locationInfo=(0,_.bb)(Y));U_(this,"setPlaylist",e);u||hH(this,Q)};
_.l.nextVideo=function(F,q){if(V_(this)){if(F&&q){var t=dF(this);Pr9(t,F,q);hH(this,t)}U_(this,"next")}else SV(this,_.MU(this.nextVideo,F,q))};
_.l.clearPlaylist=function(){if(V_(this)){U_(this,"clearPlaylist");var F=dF(this);F.reset();hH(this,F);this.publish("remotePlayerChange")}else SV(this,this.clearPlaylist)};
_.l.dispose=function(){if(this.state_!=3){var F=this.state_;this.state_=3;this.publish("proxyStateChange",F,this.state_)}_.Wv.prototype.dispose.call(this)};
_.l.disposeInternal=function(){m$v(this);this.connection_=null;this.actionQueue_.clear();vTs(this,null);_.Wv.prototype.disposeInternal.call(this)};
var AFs=function(F){_.B_("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(q){this.contextSubscriptions_.push(this.connection_.subscribe(q,_.MU(this.onProxyEvent_,q),this))},F)},m$v=function(F){_.B_(F.contextSubscriptions_,function(q){this.connection_.unsubscribeByKey(q)},F);
F.contextSubscriptions_.length=0},V_=function(F){return F.getState()==1},SV=function(F,q){F.actionQueue_.getCount()<50&&F.actionQueue_.enqueue(q)},H_5=function(F,q,t){var u=dF(F);
y_(u,t);u.playerState!=-1E3&&(u.playerState=q);hH(F,u)},U_=function(F,q,t){F.connection_.sendMessage(q,t)},hH=function(F,q){m$v(F);
F.connection_.setPlayerContextData(x$s(q));AFs(F)};
Ck.prototype.setState_=function(F){if((F!=this.state_||F==2)&&this.state_!=3&&F!=0){var q=this.state_;this.state_=F;this.publish("proxyStateChange",q,F);if(F==1)for(;!this.actionQueue_.isEmpty();)F=this.actionQueue_,aD5(F),F.front_.pop().apply(this);else F==3&&this.dispose()}};
Ck.prototype.onProxyEvent_=function(F,q){this.publish(F,q)};
var vTs=function(F,q){F.castSession_&&(F.castSession_.removeUpdateListener(F.boundCastStatusListener_),F.castSession_.removeMediaListener(F.boundCastMediaListener_),F.onCastMediaChange_(null));F.castSession_=q;if(F.castSession_&&(zN("Setting cast session: "+F.castSession_.sessionId),F.castSession_.addUpdateListener(F.boundCastStatusListener_),F.castSession_.addMediaListener(F.boundCastMediaListener_),F.castSession_.media.length))F.onCastMediaChange_(F.castSession_.media[0])};
Ck.prototype.onCastStatusUpdate_=function(F){if(!F)this.onCastMediaChange_(null),vTs(this,null);else if(this.castSession_.receiver.volume){F=this.castSession_.receiver.volume;var q=dF(this),t=Math.round(100*F.level||0);if(q.volume!=t||q.muted!=F.muted)zN("Cast volume update: "+F.level+(F.muted?" muted":"")),q.volume=t,q.muted=!!F.muted,hH(this,q)}};
Ck.prototype.onCastMediaChange_=function(F){zN("Cast media: "+!!F);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=F)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),$$7(this),this.publish("remotePlayerChange")};
var $$7=function(F){var q=F.castMedia_.media,t=F.castMedia_.customData;if(q&&t){var u=dF(F);q.contentId!=u.videoId&&zN("Cast changing video to: "+q.contentId);u.videoId=q.contentId;u.playerState=t.playerState;y_(u,F.castMedia_.getEstimatedTime());hH(F,u)}else zN("No cast media video. Ignoring state update.")};
Ck.prototype.onCastMediaUpdate_=function(F){if(F)$$7(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Ck.prototype.onCloudviewAvailabilityChange_=function(){var F=Mg9();F&&vTs(this,F)};
Ck.prototype.warn_=function(F){E7("CP",F)};
var IOC=function(F,q,t){return(0,_.Pd)(function(u){this.warn_("Failed to "+q+" with cast v2 channel. Error code: "+u.code);u.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+q+" using MDx browser channel."),U_(this,q,t))},F)};var B$=function(F,q,t,u){u=u===void 0?!1:u;_.Wv.call(this);var J=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$19788_http_=F;this.enableConnectWithInitialState_=u;this.listeners_.push(_.Jf(window,"beforeunload",function(){J.JSC$19791_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Au;this.currentScreenId_=q.id;this.currentScreenIdType_=q.idType;this.channelService=SB7(this.JSC$19788_http_,t,this.JSC$19791_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){b_y(J)});
this.channelService.listen("channelClosed",function(){Kk("Channel closed");isNaN(J.connectTimerId_)?N8(!0):N8();J.dispose()});
this.channelService.listen("channelError",function(g){N8();isNaN(J.getReconnectTimeout_())?(g==1&&J.currentScreenIdType_=="shortLived"&&J.publish("browserChannelAuthError",g),Kk("Channel error: "+g+" without reconnection"),J.dispose()):(J.reconnecting_=!0,Kk("Channel error: "+g+" with reconnection in "+J.getReconnectTimeout_()+" ms"),yFs(J,2))});
this.channelService.listen("channelMessage",function(g){Crv(J,g)});
this.channelService.setLoungeToken(q.token);this.subscribe("remoteQueueChange",function(){var g=J.playerContext_.videoId;PLJ()&&_.A8("yt-remote-session-video-id",g)})};
_.M(B$,_.Wv);
B$.prototype.connect=function(F,q){if(q){var t=q.listId,u=q.videoId,J=q.videoIds,g=q.playerParams,Y=q.clickTrackingParams,Q=q.index,e={videoId:u},r=q.currentTime,N=q.locationInfo;q=q.loopMode;r!==void 0&&(e.currentTime=r<=5?0:r);g&&(e.playerParams=g);N&&(e.locationInfo=N);Y&&(e.clickTrackingParams=Y);t&&(e.listId=t);J&&J.length>0&&(e.videoIds=J.join(","));Q!==void 0&&(e.currentIndex=Q);this.enableConnectWithInitialState_&&(e.loopMode=q||"LOOP_MODE_OFF");t&&(this.playerContext_.listId=t);this.playerContext_.videoId=
u;this.playerContext_.index=Q||0;this.playerContext_.state=3;y_(this.playerContext_,r);this.autoplayMode_="UNSUPPORTED";t=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Kk("Connecting with "+t+" and params: "+(0,_.bb)(e));this.channelService.connect({method:t,params:(0,_.bb)(e)},F,H1y())}else Kk("Connecting without params"),this.channelService.connect({},F,H1y());d$v(this)};
B$.prototype.setLoungeToken=function(F){this.channelService.setLoungeToken(F)};
B$.prototype.dispose=function(){this.isDisposed()||(_.uo("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),yFs(this,3));_.Wv.prototype.dispose.call(this)};
B$.prototype.disposeInternal=function(){VeC(this);U$5(this);S9v(this);_.Nh(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Nh(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.aPo(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Wv.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var hDQ=function(F){return _.vy(F.connectedDevices_,function(q){return q.type=="LOUNGE_SCREEN"})},Kk=function(F){E7("conn",F)},yFs=function(F,q){F.publish("proxyStateChange",q)},d$v=function(F){F.connectTimerId_=_.Rm(function(){Kk("Connecting timeout");
F.JSC$19791_disconnect_(1)},2E4)},VeC=function(F){_.Nh(F.connectTimerId_);
F.connectTimerId_=NaN},S9v=function(F){_.Nh(F.reconnectedCheckScreenTimeout_);
F.reconnectedCheckScreenTimeout_=NaN},Knh=function(F){U$5(F);
F.playingSyncTimerId_=_.Rm(function(){Lk(F,"getNowPlaying")},2E4)},U$5=function(F){_.Nh(F.playingSyncTimerId_);
F.playingSyncTimerId_=NaN},b_y=function(F){Kk("Channel opened");
F.reconnecting_&&(F.reconnecting_=!1,S9v(F),F.reconnectedCheckScreenTimeout_=_.Rm(function(){Kk("Timing out waiting for a screen.");F.JSC$19791_disconnect_(1)},15E3))},LnD=function(F,q){var t=null;
if(q){var u=hDQ(F);u&&(t={clientName:u.clientName,deviceMake:u.brand,deviceModel:u.model,osVersion:u.osVersion})}_.uo("yt.mdx.remote.remoteClient_",t);q&&(VeC(F),S9v(F));t=F.channelService.isChannelOpened()&&isNaN(F.connectTimerId_);q==t?q&&(yFs(F,1),Lk(F,"getSubtitlesTrack")):q?(F.getOtherConnectedRemoteId_()&&F.playerContext_.reset(),yFs(F,1),Lk(F,"getNowPlaying"),B8D(F)):F.JSC$19791_disconnect_(1)},fO7=function(F,q){var t=q.params.videoId;
delete q.params.videoId;t==F.playerContext_.videoId&&(_.m7.isEmpty(q.params)?F.playerContext_.trackData=null:F.playerContext_.trackData=q.params,F.publish("remotePlayerChange"))},aOQ=function(F,q,t){var u=q.params.videoId||q.params.video_id,J=parseInt(q.params.currentIndex,10);
F.playerContext_.listId=q.params.listId||F.playerContext_.listId;Pr9(F.playerContext_,u,J);F.publish("remoteQueueChange",t)},jp9=function(F,q){q.params=q.params||{};
aOQ(F,q,"NOW_PLAYING_MAY_CHANGE");F.onStateChange_(q);F.publish("autoplayDismissed")};
B$.prototype.onStateChange_=function(F){var q=parseInt(F.params.currentTime||F.params.current_time,10);y_(this.playerContext_,isNaN(q)?0:q);q=parseInt(F.params.state,10);q=isNaN(q)?-1:q;q==-1&&this.playerContext_.playerState==-1E3&&(q=-1E3);this.playerContext_.playerState=q;q=Number(F.params.loadedTime);this.playerContext_.loadedTime=isNaN(q)?0:q;q=Number(F.params.duration);this.playerContext_.duration_=isNaN(q)?0:q;q=this.playerContext_;var t=Number(F.params.liveIngestionTime);q.liveIngestionTime_=
t;q.isLive_=isNaN(t)?!1:!0;q=this.playerContext_;t=Number(F.params.seekableStartTime);F=Number(F.params.seekableEndTime);q.seekableStart_=isNaN(t)?0:t;q.seekableEnd_=isNaN(F)?0:F;this.playerContext_.playerState==1?Knh(this):U$5(this);this.publish("remotePlayerChange")};
B$.prototype.onAdStateChange_=function(F){if(this.playerContext_.playerState!=-1E3){var q=1085;switch(parseInt(F.params.adState,10)){case 1:q=1081;break;case 2:q=1084;break;case 0:q=1083}this.playerContext_.playerState=q;F=parseInt(F.params.currentTime,10);y_(this.playerContext_,isNaN(F)?0:F);this.publish("remotePlayerChange")}};
var cFs=function(F,q){var t=q.params.muted=="true";F.playerContext_.volume=parseInt(q.params.volume,10);F.playerContext_.muted=t;F.publish("remotePlayerChange")},Fmv=function(F,q){F.autoplayVideoId_=q.params.videoId;
F.publish("nowAutoplaying",parseInt(q.params.timeout,10))},ql3=function(F,q){F.autoplayVideoId_=q.params.videoId||null;
F.publish("autoplayUpNext",F.autoplayVideoId_)},t23=function(F,q){F.autoplayMode_=q.params.autoplayMode;
F.publish("autoplayModeChange",F.autoplayMode_);F.autoplayMode_=="DISABLED"&&F.publish("autoplayDismissed")},uO7=function(F,q){var t=q.params.hasNext=="true";
F.playerContext_.hasPrevious=q.params.hasPrevious=="true";F.playerContext_.hasNext=t;F.publish("previousNextChange")};
B$.prototype.isCapabilitySupportedOnConnectedDevices_=function(F){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var q=_.X(this.connectedDevices_),t=q.next();!t.done;t=q.next())if(!t.value.capabilities.has(F))return!1;return!0};
var Crv=function(F,q){q=q.message;q.params?Kk("Received: action="+q.action+", params="+(0,_.bb)(q.params)):Kk("Received: action="+q.action+" {}");switch(q.action){case "loungeStatus":q=(0,_.Iu)(q.params.devices);F.connectedDevices_=_.$q(q,function(u){return new DZ(u)});
q=!!_.vy(F.connectedDevices_,function(u){return u.type=="LOUNGE_SCREEN"});
LnD(F,q);q=F.isCapabilitySupportedOnConnectedDevices_("mlm");F.publish("multiStateLoopEnabled",q);break;case "loungeScreenDisconnected":LO5(F.connectedDevices_,function(u){return u.type=="LOUNGE_SCREEN"});
LnD(F,!1);break;case "remoteConnected":var t=new DZ((0,_.Iu)(q.params.device));_.vy(F.connectedDevices_,function(u){return u.equals(t)})||_.oPC(F.connectedDevices_,t);
break;case "remoteDisconnected":t=new DZ((0,_.Iu)(q.params.device));LO5(F.connectedDevices_,function(u){return u.equals(t)});
break;case "gracefulDisconnect":break;case "playlistModified":aOQ(F,q,"QUEUE_MODIFIED");break;case "nowPlaying":jp9(F,q);break;case "onStateChange":F.onStateChange_(q);break;case "onAdStateChange":F.onAdStateChange_(q);break;case "onVolumeChanged":cFs(F,q);break;case "onSubtitlesTrackChanged":fO7(F,q);break;case "nowAutoplaying":Fmv(F,q);break;case "autoplayDismissed":F.publish("autoplayDismissed");break;case "autoplayUpNext":ql3(F,q);break;case "onAutoplayModeChanged":t23(F,q);break;case "onHasPreviousNextChanged":uO7(F,
q);break;case "requestAssistedSignIn":F.publish("assistedSignInRequested",q.params.authCode);break;case "onLoopModeChanged":F.publish("loopModeChange",q.params.loopMode);break;default:Kk("Unrecognized action: "+q.action)}};
_.l=B$.prototype;_.l.getProxyState_=function(){var F=3;this.isDisposed()||(F=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(F=1):F=2);return F};
_.l.JSC$19791_disconnect_=function(F){Kk("Disconnecting with "+F);_.uo("yt.mdx.remote.remoteClient_",null);VeC(this);this.publish("beforeDisconnect",F);F==1&&N8();this.channelService.disconnect(F);this.dispose()};
_.l.getPlayerContextData_=function(){var F=this.playerContext_;this.clientVideoId_&&(F=this.playerContext_.clone(),Pr9(F,this.clientVideoId_,F.index));return x$s(F)};
_.l.setPlayerContextData_=function(F){var q=this,t=new Au(F);t.videoId&&t.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=t.videoId,_.Nh(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Rm(function(){if(q.clientVideoId_){var J=q.clientVideoId_;q.clientVideoId_=null;q.playerContext_.videoId!=J&&Lk(q,"getNowPlaying")}},5E3));
var u=[];this.playerContext_.listId==t.listId&&this.playerContext_.videoId==t.videoId&&this.playerContext_.index==t.index||u.push("remoteQueueChange");this.playerContext_.playerState==t.playerState&&this.playerContext_.volume==t.volume&&this.playerContext_.muted==t.muted&&O_J(this.playerContext_)==O_J(t)&&(0,_.bb)(this.playerContext_.trackData)==(0,_.bb)(t.trackData)||u.push("remotePlayerChange");this.playerContext_.reset(F);_.B_(u,function(J){this.publish(J)},this)};
_.l.getOtherConnectedRemoteId_=function(){var F=this.channelService.getDeviceId(),q=_.vy(this.connectedDevices_,function(t){return t.type=="REMOTE_CONTROL"&&t.id!=F});
return q?q.id:""};
_.l.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.l.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.l.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.l.JSC$19791_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var B8D=function(F){_.Nh(F.idleDisconnectTimerId_);F.idleDisconnectTimerId_=_.Rm(function(){F.JSC$19791_disconnect_(1)},864E5)},Lk=function(F,q,t){t?Kk("Sending: action="+q+", params="+(0,_.bb)(t)):Kk("Sending: action="+q);
F.channelService.sendMessage(q,t)};
B$.prototype.sendMessageWithUserAction_=function(F,q){Lk(this,F,q);B8D(this)};
B$.prototype.JSC$19791_getXsrfToken_=function(){var F=_.om.get("SAPISID","")||_.om.get("__Secure-1PAPISID",void 0)||"",q=_.om.get("__Secure-3PAPISID","")||"";if(!F&&!q)return"";F=_.A9(_.Wd(F),2);q=_.A9(_.Wd(q),2);return _.A9(_.Wd(","+F+","+q),2)};
B$.prototype.subscribe=B$.prototype.subscribe;B$.prototype.unsubscribeByKey=B$.prototype.unsubscribeByKey;B$.prototype.getProxyState=B$.prototype.getProxyState_;B$.prototype.disconnect=B$.prototype.JSC$19791_disconnect_;B$.prototype.getPlayerContextData=B$.prototype.getPlayerContextData_;B$.prototype.setPlayerContextData=B$.prototype.setPlayerContextData_;B$.prototype.getOtherConnectedRemoteId=B$.prototype.getOtherConnectedRemoteId_;B$.prototype.getReconnectTimeout=B$.prototype.getReconnectTimeout_;
B$.prototype.getAutoplayMode=B$.prototype.getAutoplayMode_;B$.prototype.getAutoplayVideoId=B$.prototype.getAutoplayVideoId_;B$.prototype.reconnect=B$.prototype.JSC$19791_reconnect_;B$.prototype.sendMessage=B$.prototype.sendMessageWithUserAction_;B$.prototype.getXsrfToken=B$.prototype.JSC$19791_getXsrfToken_;B$.prototype.isCapabilitySupportedOnConnectedDevices=B$.prototype.isCapabilitySupportedOnConnectedDevices_;var Jp5=function(F){nU.call(this,"ScreenServiceProxy");this.instance_=F;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Pd)(this.JSC$19794_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Pd)(this.onOnlineScreenChange_,this)))};
_.M(Jp5,nU);_.l=Jp5.prototype;_.l.getScreens=function(F){return this.instance_.$_gs(F)};
_.l.contains=function(F){return!!this.instance_.$_c(F)};
_.l.get=function(F){return this.instance_.$_g(F)};
_.l.start=function(){this.instance_.$_st()};
_.l.add=function(F,q,t){this.instance_.$_a(F,q,t)};
_.l.remove=function(F,q,t){this.instance_.$_r(F,q,t)};
_.l.updateName=function(F,q,t,u){this.instance_.$_un(F,q,t,u)};
_.l.disposeInternal=function(){for(var F=this.subscriptionKeys_.length,q=0;q<F;++q)this.instance_.$_ubk(this.subscriptionKeys_[q]);this.subscriptionKeys_.length=0;this.instance_=null;nU.prototype.disposeInternal.call(this)};
_.l.JSC$19794_onScreenChange_=function(){this.publish("screenChange")};
_.l.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
GN.prototype.$_st=GN.prototype.start;GN.prototype.$_gspc=GN.prototype.JSC$19753_getScreenByPairingCode;GN.prototype.$_gsppc=GN.prototype.JSC$19753_getScreenByPollingPairingCode;GN.prototype.$_c=GN.prototype.contains;GN.prototype.$_g=GN.prototype.get;GN.prototype.$_a=GN.prototype.add;GN.prototype.$_un=GN.prototype.updateName;GN.prototype.$_r=GN.prototype.remove;GN.prototype.$_gs=GN.prototype.getScreens;GN.prototype.$_gos=GN.prototype.JSC$19753_getOnlineScreens;GN.prototype.$_s=GN.prototype.subscribe;
GN.prototype.$_ubk=GN.prototype.unsubscribeByKey;var Qn3=function(F){yYQ();if(!we||!we.get("yt-remote-disable-remote-module-for-dev")){F=_.bn("MDX_CONFIG")||F;b4h();AYw();fk||(fk=new el(F?F.loungeApiHost:void 0),CLD()&&(fk.basePath="/api/loungedev"));aB||(aB=_.S6("yt.mdx.remote.deferredProxies_")||[],_.uo("yt.mdx.remote.deferredProxies_",aB));sny();var q=jV();if(!q){var t=new GN(fk,F?F.disableAutomaticScreenCache||!1:!1);_.uo("yt.mdx.remote.screenService_",t);q=jV();var u={};F&&(u={appId:F.appId,disableDial:F.disableDial,theme:F.theme,loadCastApiSetupScript:F.loadCastApiSetupScript,
disableCastApi:F.disableCastApi,enableDialLoungeToken:F.enableDialLoungeToken,enableCastLoungeToken:F.enableCastLoungeToken,forceMirroring:F.forceMirroring});_.uo("yt.mdx.remote.enableConnectWithInitialState_",F?F.enableConnectWithInitialState||!1:!1);i9w(t,function(g){g?c$()&&GC7(c$(),"YouTube TV"):t.subscribe("onlineScreenChange",function(){yN("yt-remote-receiver-availability-change")})},u)}if(F&&!_.S6("yt.mdx.remote.initialized_")){_.uo("yt.mdx.remote.initialized_",!0);
Fa("Initializing: "+(0,_.bb)(F));q5.push(_.eJ("yt-remote-cast2-api-ready",function(){yN("yt-remote-api-ready")}));
q5.push(_.eJ("yt-remote-cast2-availability-change",function(){yN("yt-remote-receiver-availability-change")}));
q5.push(_.eJ("yt-remote-cast2-receiver-selected",function(){gGJ();yN("yt-remote-auto-connect","cast-selector-receiver")}));
q5.push(_.eJ("yt-remote-cast2-receiver-resumed",function(){yN("yt-remote-receiver-resumed","cast-selector-receiver")}));
q5.push(_.eJ("yt-remote-cast2-session-change",lEv));q5.push(_.eJ("yt-remote-connection-change",function(g){g?GC7(c$(),"YouTube TV"):XBC()||(GC7(null,null),nbw())}));
q5.push(_.eJ("yt-remote-cast2-session-failed",function(){yN("yt-remote-connection-failed")}));
u=YlC();F.isAuto&&(u.id+="#dial");var J=F.capabilities||[];J.length>0&&(u.capabilities=J);u.name=F.device;u.app=F.app;(F=F.theme)&&(u.theme=F);Fa(" -- with channel params: "+(0,_.bb)(u));u?(_.A8("yt-remote-session-app",u.app),_.A8("yt-remote-session-name",u.name)):(_.Ig("yt-remote-session-app"),_.Ig("yt-remote-session-name"));_.uo("yt.mdx.remote.channelParams_",u);q.start();c$()||pBw()}}},ZN5=function(){var F=jV().instance_.$_gos();
var q=erQ();q&&tz()&&(DsT(F,q)||F.push(q));return Ga5(F)},Rr9=function(){var F=ZN5(),q=erQ();
q||(q=XBC());return _.vy(F,function(t){return q&&Rr(q,t.key)?!0:!1})},erQ=function(){var F=c$();
if(!F)return null;var q=jV().getScreens();return re(q,F)},lEv=function(F){Fa("remote.onCastSessionChange_: "+DcQ(F));
if(F){var q=erQ();q&&q.id==F.id?(GC7(q.id,"YouTube TV"),F.idType=="shortLived"&&(F=F.token)&&(q=tz())&&q.setLoungeToken(F)):(q&&rph(),Nuy(F,1))}else tz()&&rph()},rph=function(){Tc9()?PC().stopSession():O7("stopSession called before API ready.");
var F=tz();F&&(F.disconnect(1),wBw(null))},iNw=function(){var F=tz();
return F&&F.getProxyState()!=3?new Ck(tz(),void 0):null},Fa=function(F){E7("remote",F)},jV=function(){if(!kuw){var F=_.S6("yt.mdx.remote.screenService_");
kuw=F?new Jp5(F):null}return kuw},c$=function(){return _.S6("yt.mdx.remote.currentScreenId_")},EGy=function(F){_.uo("yt.mdx.remote.currentScreenId_",F)},gGJ=function(){_.uo("yt.mdx.remote.connectData_",null)},tz=function(){return _.S6("yt.mdx.remote.connection_")},wBw=function(F){var q=tz();
gGJ();F||EGy("");_.uo("yt.mdx.remote.connection_",F);aB&&(_.B_(aB,function(t){t(F)}),aB.length=0);
q&&!F?yN("yt-remote-connection-change",!1):!q&&F&&yN("yt-remote-connection-change",!0)},XBC=function(){var F=PLJ();
if(!F)return null;var q=jV();if(!q)return null;q=q.getScreens();return re(q,F)},Nuy=function(F,q){EGy(F.id);
F=new B$(fk,F,YlC(),_.S6("yt.mdx.remote.enableConnectWithInitialState_")||!1);F.connect(q,_.S6("yt.mdx.remote.connectData_"));F.subscribe("beforeDisconnect",function(t){yN("yt-remote-before-disconnect",t)});
F.subscribe("beforeDispose",function(){tz()&&wBw(null)});
F.subscribe("browserChannelAuthError",function(){var t=erQ();t&&t.idType=="shortLived"&&(Tc9()?PC().handleBrowserChannelAuthError():O7("refreshLoungeToken called before API ready."))});
wBw(F)},pBw=function(){var F=XBC();
F?(Fa("Resume connection to: "+DcQ(F)),Nuy(F,0)):(N8(),nbw(),Fa("Skipping connecting because no session screen found."))},fk=null,aB=null,kuw=null,sny=function(){var F=YlC();
if(_.m7.isEmpty(F)){F=O19();var q=_.vG("yt-remote-session-name")||"",t=_.vG("yt-remote-session-app")||"";F={device:"REMOTE_CONTROL",id:F,name:q,app:t,mdxVersion:3};F.authuser=String(_.bn("SESSION_INDEX","0"));(q=_.bn("DELEGATED_SESSION_ID"))&&(F.pageId=String(q));_.uo("yt.mdx.remote.channelParams_",F)}},YlC=function(){return _.S6("yt.mdx.remote.channelParams_")||{}},q5=[];var zr3=new _.dB("yt-menu"),oGC=function(){},M2v=function(F,q,t){F=q=="right-click"?t.rightClickMenuPopupHint:t.menuPopupHint;
if(!(nGv(q)>10))return q=q||"default",zr3.set(q+"-impression",nGv(q)+1),F},nGv=function(F){return parseInt(zr3.get((F||"default")+"-impression")||0,10)};
_.Ja(oGC);var TuQ=function(){this.contexts_=new WeakMap;this.JSC$19800_networkService_=this.activeContext_=null},Gus=function(F,q,t){var u=F.contexts_.get(q);
u||(u=new mJv(F.JSC$19800_networkService_),F.contexts_.set(q,u));F.activeContext_=u;t&&F.activeContext_.reset();F.activeContext_.start();return F.activeContext_};var uA=function(){};
uA.prototype.enqueue=function(){var F=this,q;return _.p(function(t){if(F.isCounterfactual())return(q=F.getCounterfactualData())&&F.shouldLogCounterfactualImpression()&&F.sendImpressionEndpoints(q),t.return();F.doEnqueue();_.WA(t)})};
uA.prototype.sendImpressionEndpoints=function(F){_.B2.getInstance().triggerOptionalAction("yt-service-request",{},F[0])};var Jz=function(F,q){this.renderer=F;this.page=q};
_.M(Jz,uA);Jz.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Jz.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Jz.prototype.shouldLogCounterfactualImpression=function(){return!0};
Jz.prototype.doEnqueue=function(){var F=_.sO(this.page);F&&F.pause();this.renderer.impressionCommand&&_.B2.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Kg(_.B2.getInstance(),[this.renderer.promoCommand],this.page)};var D7D=function(F,q){this.renderer=F;this.resolver=_.ji();this.JSC$19812_enforcementCounter=new _.Vrr;q?this.JSC$19812_playerManager=_.sO(q):this.JSC$19812_playerManager=null;_.nG(1,!0)};
_.M(D7D,uA);_.l=D7D.prototype;_.l.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var F=[];this.renderer.impressionEndpoints.forEach(function(q){(q=_.Sg(q))&&F.push(q)});
return F}};
_.l.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.l.shouldLogCounterfactualImpression=function(){var F=_.P3v();F?(this.JSC$19812_enforcementCounter.increment("POPUP"),_.nG(3)):_.nG(2);return F};
_.l.cancel=function(){this.resolver.promise.cancel()};
_.l.doEnqueue=function(){var F=this;_.P3v()?(this.JSC$19812_enforcementCounter.increment("POPUP"),_.nG(3),Wmv(this)):this.JSC$19812_playerManager?(this.resolver.promise.then(function(){Wmv(F)}),ON5(this.resolver,this.JSC$19812_playerManager)):_.nG(2)};
var ON5=function(F,q){var t=_.ji();q.getPlayerPromise().then(function(u){t.resolve(u)});
t.promise.then(function(u){u.addEventListener("onAbnormalityDetected",F.resolve);_.Hr(F.promise,function(){u.removeEventListener("onAbnormalityDetected",F.resolve)})});
F.promise.thenCatch(function(){t.promise.cancel()})},Wmv=function(F){_.nG(3);
var q={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:F.renderer}};q=_.B2.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:q},{});Promise.all(q).then(function(){Pj5();F.JSC$19812_playerManager&&F.JSC$19812_playerManager.pause()})},Pj5=function(){AVv(function(F,q){_.iBv(F,q);
F===0?_.nG(7):_.nG(4)})};var x7h=function(F,q){this.renderer=F;this.page=q;this.resolver=_.ji()};
_.M(x7h,uA);_.l=x7h.prototype;_.l.cancel=function(){this.resolver.promise.cancel()};
_.l.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.l.isCounterfactual=function(){return!this.renderer.isVisible};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var F=this;this.resolver.promise.then(function(){var t={popup:{mealbarPromoRenderer:F.renderer},popupType:"MEALBAR"};_.B2.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:t},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var q=_.sO(this.page);q&&ApT(this.resolver,q)}break;default:this.resolver.resolve()}};
var ApT=function(F,q){var t=_.ji();q.getPlayerPromise().then(function(u){t.resolve(u)});
t.promise.then(function(u){u.addEventListener("onAdEnd",F.resolve);_.Hr(F.promise,function(){u.removeEventListener("onAdEnd",F.resolve)})});
F.promise.thenCatch(function(){t.promise.cancel()})};var vG5=function(F,q){this.renderer=F;this.page=q};
_.M(vG5,uA);_.l=vG5.prototype;_.l.cancel=function(){this.JSC$19820_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19820_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19820_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.l.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.l.isCounterfactual=function(){return!this.renderer.isVisible};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var F=this,q,t;((q=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(t=q.playbackUpsellDialogTriggerConditionData)==null?void 0:t.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19820_downloadedVideosCountSelectorUnsubscriber=_.yL(_.u1(),DU9,function(u,J){u>J&&(IE9(F),F.cancel())}):IE9(this)};
var IE9=function(F){var q={popup:{upsellDialogRenderer:F.renderer},popupType:"MODAL"};_.B2.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:q},{});(F=_.sO(F.page))&&F.pause()};var s2={},HNs=(s2.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",s2.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",s2.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",s2.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",s2.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",s2.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",s2.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",s2),m7y=function(F,q){this.renderer=F;this.targetManager=
q};
_.M(m7y,uA);_.l=m7y.prototype;_.l.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19827_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19827_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19827_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.l.getCounterfactualData=function(){if(this.isCounterfactual()){var F;return(F=this.renderer.promoConfig)==null?void 0:F.impressionEndpoints}};
_.l.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var F=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19827_downloadedVideosCountSelectorUnsubscriber=_.yL(_.u1(),DU9,function(q,t){F.renderer.targetId&&q>t&&(JXv(F.targetManager,F.renderer.targetId,$7D(F)),F.cancel())});
break;default:JXv(this.targetManager,this.renderer.targetId,$7D(this))}};
var $7D=function(F){var q;if((q=F.renderer.suggestedPosition)==null?0:q.type)var t=HNs[F.renderer.suggestedPosition.type];t||(t="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:F.renderer},popupType:"HINT",position:t}}};var bN5=function(){this.previousPage=null},ypv;
bN5.prototype.registerPromoCommand=function(F,q){Cj7(this,void 0,void 0,_.n(F.roadblock,tD9),void 0,void 0,q)};
var Cj7=function(F,q,t,u,J,g,Y){F.previousPage!==Y&&F.pendingTooltipPromo&&F.pendingTooltipPromo.cancel();F.previousPage=Y;J?(F.pendingEnforcementPromo&&F.pendingEnforcementPromo.cancel(),F.pendingEnforcementPromo=new D7D(J,Y),F.pendingEnforcementPromo.enqueue()):g?(F.pendingCommandWrapperPromo=new Jz(g,Y),F.pendingCommandWrapperPromo.enqueue()):u?(F.pendingRoadblockPromo&&F.pendingRoadblockPromo.cancel(),F.pendingRoadblockPromo=new vG5(u,Y),F.pendingRoadblockPromo.enqueue()):q?(F.pendingMealbarPromo&&
F.pendingMealbarPromo.cancel(),F.pendingMealbarPromo=new x7h(q,Y),F.pendingMealbarPromo.enqueue()):t&&(F.pendingTooltipPromo&&F.pendingTooltipPromo.cancel(),F.pendingTooltipPromo=new m7y(t,_.h8()),F.pendingTooltipPromo.enqueue())},d7w=function(){ypv||(ypv=new bN5);
return ypv};var xcv=!1;var s4h=function(F,q){var t=_.bn("SESSION_INDEX");this.actionToken_=F;this.commonToken_=q;this.sessionIndex_=t},Jis=function(F){var q=_.ji(),t=_.S6("payments.business.integration.bootstrap"),u=_.S6("payments.business.integration"),J=u.Style.create().withMaterialDesignStyle(),g=u.mashupMode.popup("instrument-manager");
t.asMashupMode(g).usingUserIndex(F.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(J).inStandaloneContext(u.standaloneContextAuthId.forUserId()).instrumentManager(F.actionToken_,F.commonToken_.length>0?F.commonToken_:void 0,function(Y){var Q=Y.instrumentId;Q?q.resolve(Q):(Q=_.S6("payments.business.integration.scenario.InstrumentManager"),q.reject(Y.errorCode&&Y.errorCode===Q.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(Y){_.CI(Y);
q.reject("instrumentManagerLoadError")});
return q.promise};var m9=function(F,q,t){this.payloadName="transactionFlowFailed";this.payload={errorType:F,serializedTransactionFlowLoggingParams:q,isUserDismiss:t===void 0?!1:t}};
_.uo("yt.ypc.shared.YpcTransactionFlowError",m9);var gb=function(){return _.Ga.apply(this,arguments)||this};
_.M(gb,_.Ga);gb.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
gb.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
gb.prototype.onErrorMessageDismiss=gb.prototype.onErrorMessageDismiss;_.C([_.O({readOnly:!0,observer:"errorRendererChanged"}),_.V("design:type",Object)],gb.prototype,"errorRenderer",void 0);_.C([_.EB("yt-live-chat-error-message-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gb.prototype,"onErrorMessageDismiss",null);_.C([_.Dj()],gb);var V2w=[gb.prototype];var U7v;var Sl9;var hr7=new _.dB("yt-live-chat"),KmQ=new Map;KmQ.set("timestamp_toggle","show-timestamps");KmQ.set("reactions_toggle","allow-reactions");var lA=function(){return _.x.apply(this,arguments)||this};
_.M(lA,_.x);_.l=lA.prototype;_.l.menuItemIdentifierChanged=function(){var F;(F=this.data)!=null&&F.menuItemIdentifier&&(F=KmQ.get(this.data.menuItemIdentifier))&&(_.E("enable_lwe_web_mute")?(F=hr7.get(F),this.isToggled=!(F===void 0?!this.data.isToggled:!F)):this.isToggled=hr7.get(F))};
_.l.onFocus=function(){this.toggleButton.focus()};
_.l.onTap=function(){var F=this.data.command;F&&this.componentBehavior.resolveCommand(F)};
_.l.computeText=function(F,q,t){return this.componentBehavior.getSimpleString(F?t:q)};
_.l.computeIcon=function(F,q,t){return(F=F?t:q)&&F.iconType?_.Ek(F.iconType):""};
lA.prototype.onTap=lA.prototype.onTap;lA.prototype.onFocus=lA.prototype.onFocus;lA.prototype.menuItemIdentifierChanged=lA.prototype.menuItemIdentifierChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],lA.prototype,"componentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],lA.prototype,"data",void 0);
_.C([_.O({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.V("design:type",String)],lA.prototype,"icon",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],lA.prototype,"isToggled",void 0);_.C([_.Ms("tp-yt-paper-toggle-button"),_.V("design:type",Object)],lA.prototype,"toggleButton",void 0);_.C([_.za("data.menuItemIdentifier"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lA.prototype,"menuItemIdentifierChanged",null);
_.C([_.EB("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lA.prototype,"onFocus",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lA.prototype,"onTap",null);_.C([_.Vu({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],lA);
_.b(lA,"yt-live-chat-toggle-renderer",function(){if(Sl9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;U7v===void 0&&(U7v=document.createElement("template"));var u=U7v;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Sl9=F}F=Sl9;return F},{mode:_.E("live_chat_enable_sink_wrapper")?2:0});var BuT=new _.pg("NAVIGATION_PROGRESS_TOKEN");var Lm9={},fEv={},aEC=(fEv[UH9.name]=!0,fEv),Xa=function(){var F=_.Ga.apply(this,arguments)||this;F._noAccessors=!0;F.tabGesturesIsActive=!1;F.actionRouterIsRoot=!0;F.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};F.pageTitle="";F.titleSuffix="YouTube";F.unseenNotificationCount=
0;F.hasNavigated=!1;F.hasSetScrollTopForNavigation=!1;F.pagePreparer=null;F.zwiebackInitJobId=0;F.dataUpdatePromise=null;F.loadDepsPromise=_.NU();F.hasPendingNavigation=!1;F.pendingPlayerOnResponseReceivedActions=[];return F};
_.M(Xa,_.Ga);Xa.prototype.attached=function(){jnJ(this);document.addEventListener("yt-navigate-cache",_.kM(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var F=YX();F.init();F.dispatchElement=this.hostElement};
var jnJ=function(F,q){q=q===void 0?0:q;var t=_.sV().resolve(_.JU(_.S$));if(t)cph(F,t);else{if(q>=5)throw Error("hl");setTimeout(function(){jnJ(F,q+1)},0)}},cph=function(F,q){q.addEventListener("yt-navigate-start",_.kM(F,F.onYtNavigateStart));
q.addEventListener("yt-navigate-finish",_.kM(F,F.onYtNavigateFinish));q.addEventListener("yt-navigate-error",_.kM(F,F.onYtNavigateError));q.addEventListener("yt-page-data-fetched",_.kM(F,F.onYtPageDataFetched))};
_.l=Xa.prototype;_.l.detached=function(){var F=_.sV().resolve(_.S$);F.removeEventListener("yt-navigate-start",_.kM(this,this.onYtNavigateStart));F.removeEventListener("yt-navigate-finish",_.kM(this,this.onYtNavigateFinish));F.removeEventListener("yt-navigate-error",_.kM(this,this.onYtNavigateError));F.removeEventListener("yt-page-data-fetched",_.kM(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.kM(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.l.setPageOffset=function(F,q){F?_.ec(this.hostElement,"yt-set-page-offset",[F,q]):_.mH(Error("il"))};
_.l.setPageOffsetForNavigation=function(F,q){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(F,q))};
_.l.onYtNavigateSetPageOffset=function(F,q){this.setPageOffsetForNavigation(q.page,q.offset)};
_.l.getPageOffset=function(){var F=_.ep(this.hostElement).querySelector("#page-manager").getCurrentPage(),q=0;F&&(q=_.ec(this.hostElement,"yt-get-page-offset",[F])[0]);return q};
_.l.onYtHistoryPop=function(F,q){if(_.yG("DISABLE_WARM_LOADS"))F.preventDefault(),window.location.reload();else{var t=_.sV().resolve(_.S$);t.hasPendingNavigation()&&F.preventDefault();t.cancelPendingNavigation();_.Zl(this.hostElement,"yt-pending-navigation-cancelled");q.errorMsg&&(F=q.errorMsg.split(" - "),q=Error(F[0]),F.length==2&&F[1]&&(_.yw(q,F[1]),_.bz(q)),window.location.reload())}};
_.l.onYtHistoryLoad=function(F,q){var t=this;if(_.yG("DISABLE_WARM_LOADS"))window.location.reload();else{(F=q.endpoint)&&Object.keys(F).length||(F=null);var u=q.historyEntry,J=_.sV().resolve(_.S$),g=_.sV().resolve(_.JC),Y=null;u&&u.rootData&&(Y=u.rootData);var Q=Y&&Fa9(Y);!Y||Q||Y.filler?F?(J.navigate(F,!0),qiw(this,F)):(q.legacyBorder||Q||(q.JSC$30134_savedComponentState==null&&Y==null?_.bz(new _.D0("Incomplete history entry",q.forward)):_.$e(new _.D0("Malformed history entry",q.JSC$30134_savedComponentState,
q.forward,Y))),window.location.reload()):(_.Exo({isHot:!0}),_.mj({webInfo:{navigationReason:"h"}}),_.IKP(),_.y0("srt"),_.y0("pdc"),this.cancelPendingTasks(),tfD(this,q.forward,Y),Y.player&&(Y.player.loaded=!1),qiw(this,F),_.f3v(J,F||{},Y,2,{},!1,q).then(function(){t.setPageOffset(g.getCurrentPage(),u.scrollTop||0)}))}};
_.l.initHistoryManager=function(F){if(!this.hasNavigated){this.hasNavigated=!0;var q=_.ep(this.hostElement).querySelector("#page-manager").getCurrentData();F=isNaN(F)?this.getPageOffset():F;var t=_.sV().resolve(_.S$).currentEndpoint;this.replaceState(t,q,F)}};
_.l.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.l.onYtNavigateStart=function(F,q){this.cancelPendingTasks();q.noProgressBar||(F=_.sV().resolve(_.JU(BuT)))&&F.start();F=this.hasPendingNavigation?null:this.data;var t=_.sV().resolve(_.JC),u,J,g;_.E("kevlar_use_vimio_behavior")&&!((u=q.endpoint)==null?0:(J=u.commandMetadata)==null?0:(g=J.webCommandMetadata)==null?0:g.ignoreNavigation)&&(u=t.getCurrentPage())&&u.disconnectVisibilityRoot();t.prepareForNavigation(q.pageType,q.endpoint);_.E("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.nA(1,
"pcl"),_.MH(this.pagePreparer,t.preparePage.bind(t,q.pageType,q.endpoint)));u=this.getPageOffset();this.initHistoryManager(u);q.reload||this.hasPendingNavigation?(_.E("web_enable_delay_shorts_sequence_call")&&q.pageType==="shorts"&&q.reload&&_.Q0(this.hostElement,"yt-shorts-reset"),this.replaceState(q.endpoint,F,u)):(F==null?void 0:F.page)==="watch"&&q.pageType==="watch"&&_.E("kevlar_replace_watch_to_watch_history_state")?this.replaceState(q.endpoint,F,u):(F==null?void 0:F.page)!=="shorts"||q.pageType!==
"shorts"||q.endpoint.reelWatchEndpoint.sequenceParams||_.E("short_to_short_back_nav_killswitch")?q.type!="navigate-back"&&q.type!="navigate-forward"&&(q.pageType==="shorts"&&_.Q0(this.hostElement,"yt-shorts-reset"),this.saveAndPush(q.url,q.endpoint,F,u)):(_.E("web_enable_delay_shorts_sequence_call")&&(q.endpoint.reelWatchEndpoint.sequenceParams=F==null?void 0:F.cachedSequenceParams,q.endpoint.reelWatchEndpoint.sequenceProvider=F==null?void 0:F.cachedSequenceProvider),this.replaceState(q.endpoint,
F,0));this.hasPendingNavigation=!0};
var uJJ=function(F){F.hasPendingNavigation=!1;(F=_.sV().resolve(_.JU(BuT)))&&F.finish()};
Xa.prototype.onYtNavigateError=function(F,q){uJJ(this);F=this.get("endpoint.commandMetadata.webCommandMetadata.url",q);var t=_.fI(window.location.href);F&&!t.pbjreload&&(q=q.navigationErrorReason||"10",_.E("kevlar_parent_on_pbjreload")&&(t={csn:_.yb()},this.get("data.endpoint.clickTrackingParams")&&(t.itct=this.data.endpoint.clickTrackingParams),_.JV(F,t)),_.ab(_.a5(F,{pbjreload:q})))};
Xa.prototype.onYtNavigateCache=function(F,q){var t=this,u=q.url,J=q.endpoint,g=q.data;F=!!q.miniplayer;q=!!q.skipHistory;if(u&&J&&g){var Y=this.getPageOffset(),Q=this.data||null;q||this.saveAndPush(u,J,Q,Y);u=_.f3v(_.sV().resolve(_.S$),J,g,F?4:3,{},F);F&&u.then(function(){t.dataUpdatePromise&&t.dataUpdatePromise.then(function(){var e=_.sV().resolve(_.JC);t.setPageOffset(e.getCurrentPage(),0)})})}};
Xa.prototype.onYtNavigateFinish=function(F,q){var t=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){JP9(t,q.fromHistory)})};
var JP9=function(F,q){uJJ(F);if(F.pendingPlayerOnResponseReceivedActions){for(var t=_.X(F.pendingPlayerOnResponseReceivedActions),u=t.next();!u.done;u=t.next())_.n9(u.value,F.hostElement);F.pendingPlayerOnResponseReceivedActions=[]}t=_.sV().resolve(_.JC);q||!F.hasNavigated||_.E("web_disable_scroll_on_navigate_finish")||((q=t.getCurrentPage())?q.is==="ytd-shorts"||F.tabGesturesIsActive||F.setPageOffsetForNavigation(q,0):_.bz(Error("jl")));_.f1(function(){_.f1(function(){_.y0("pda")})})};
Xa.prototype.onYtNavigate=function(F){if(!F.detail.endpoint){var q=new _.D0("Error: Missing yt-navigate endpoint from target:",F.target,F.target.nodeName);_.mH(q)}if(q=_.E("cold_missing_history"))q=YX(),q.init(!1),q=!(q.browserHistory.boundHistoryReplaceState&&q.browserHistory.boundHistoryPushState);if(q){_.$I("DISABLE_WARM_LOADS",!0);q=new _.D0("Failed to initialize history manager",this.getDebugString());var t=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
t?_.bz(q):_.mH(q)}q=F.detail.endpoint;var u,J;_.E("debug_forward_web_query_parameters")&&((u=q.commandMetadata)==null?0:(J=u.webCommandMetadata)==null?0:J.url)&&(q=JSON.parse(JSON.stringify(q)),q.commandMetadata.webCommandMetadata.url=_.alu(q.commandMetadata.webCommandMetadata.url,window.location.search));F={type:0,command:q,form:{params:F.detail.params,tempData:F.detail.tempData||{},requestType:F.detail.type,createScreenConfig:F.detail.createScreenConfig,reload:F.detail.reload?F.detail.reload:!1,
requestForm:F.detail}};_.E("kevlar_yt_navigate_command_handler")?(u=_.sV().resolve(_.gN),F.form.skipDefaultElement=!0,u.resolveCommand(q,{form:F.form})):this.handleNavigate(F)};
Xa.prototype.handleNavigate=function(F){this.hasSetScrollTopForNavigation=!1;var q=_.sV().resolve(_.S$),t=F.form||{};q.navigate(F.command,t.reload,t.params,t.tempData,t.requestType,t.createScreenConfig,t.ignoreConfirmation,t.requestForm)&&qiw(this,F.command,t.tempData)};
Xa.prototype.onYtPageDataFetched=function(F,q){try{_.y_x().reset();this.data=q.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.sV().resolve(_.JC).updatePageData(this.data);if(!_.E("web_service_params_response_processor")){var t=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);t&&Hj9(t);var u=this.get("response.responseContext.serviceTrackingParams",
this.data);u&&Hj9(u)}var J=this.get("playerResponse.onResponseReceivedActions",this.data);J&&(J=sM7(this,J));J&&_.rY(this.hostElement,J,this.hostElement);var g=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),Y=this.get("response.responseContext.consistencyTokenJar",this.data);if(g||Y){var Q=_.yFy(),e=(0,_.m7.getValues)(Q.tokenJars);g&&Q.replace(e,g);Y&&Q.replace(e,Y)}}catch(r){_.mH(r)}};
var qiw=function(F,q,t){try{F.onYtEndpointChangeHandler(q,t)}catch(u){_.mH(u)}};
_.l=Xa.prototype;_.l.onYtEndpointChangeHandler=function(){};
_.l.setPageTitle=function(F){F=(this.pageTitle=F)?F+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+F};
_.l.onYtUpdateTitle=function(F,q){this.setPageTitle(q)};
_.l.setUnseenNotificationCount=function(F){this.unseenNotificationCount=F;this.setPageTitle(this.pageTitle)};
_.l.handleUpdateNotificationsUnseenCountAction=function(F){_.n(F,Tvw)&&((F=_.n(F,Tvw).unseenCount)?this.setUnseenNotificationCount(F):this.setUnseenNotificationCount(0))};
_.l.handleClearCookieAction=function(F){var q;(F=(q=_.n(F,zp9))==null?void 0:q.cookieName)&&_.Nj3(F)};
_.l.onYtUpdateUnseenNotificationCount=function(F,q){this.setUnseenNotificationCount(q)};
_.l.loadData=function(F){var q=this;this.loadDepsPromise.then(function(){var t=_.sV().resolve(_.JU(_.S$));t||_.mH(Error("kl"));if(F&&F.response){if(!F.endpoint){var u=_.LB(window.document.location.href)||"/",J="";if(u==="/"||u.startsWith("/?"))J="WEB_PAGE_TYPE_BROWSE";F.endpoint={commandMetadata:{webCommandMetadata:{url:u,webPageType:J,rootVe:3854}}}}_.f3v(t,F.endpoint,F,5,{})}else F.endpoint?t.navigate(F.endpoint):t.navigate(_.bv);_.mI.cancelJob(q.zwiebackInitJobId);q.zwiebackInitJobId=_.mI.addLowPriorityJob(AvT)})};
var YX=function(){return _.sV().resolve(_.br)};
Xa.prototype.getDebugString=function(){return YX().getDebugString()};
Xa.prototype.getThirdPartyManipulationSuspected=function(){return YX().getThirdPartyManipulationSuspected()};
Xa.prototype.replaceState=function(F,q,t){YX().saveAndReplace(F,q,t)};
Xa.prototype.saveAndPush=function(F,q,t,u){YX().saveAndPush(F,q,t,u)};
var Fa9=function(F){return _.n(F.endpoint,_.Fw)||_.n(F.endpoint,_.Px)?!0:!F||isNaN(F.expirationTime)?!1:(0,_.gB)()>F.expirationTime},tfD=function(F,q,t){var u=F.get("response.trackingParams",t),J=_.b7(),g=_.yb();
if(u&&J&&g&&(u=F.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",t),!u&&t.rootVe&&(u=t.rootVe),J=q?"forwardButton":"backButton",q=F.get("playerResponse.topbar.desktopTopbarRenderer."+J+".buttonRenderer.command.clickTrackingParams",F.data),F=F.get("response.topbar.desktopTopbarRenderer."+J+".buttonRenderer.command.clickTrackingParams",F.data),q=(F=q||F)?_.Av(F):void 0,F=_.DP(),J=[_.NU(t)],_.OX(F,u,q,{dataPromises:J,csnToClone:t.csn}),t.graftedVes))for(t=
_.X(t.graftedVes),u=t.next();!u.done;u=t.next())_.PQ(F,u.value)};
Xa.prototype.onStoreGraftedVeAction=function(F){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(F)):_.bz(Error("ll"))};
var sM7=function(F,q){return q.filter(function(t){for(var u in t)if(aEC[u])return F.pendingPlayerOnResponseReceivedActions.push(t),!0;return!1})};
_.JJ.Object.defineProperties(Xa.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Xa.prototype.onStoreGraftedVeAction=Xa.prototype.onStoreGraftedVeAction;Xa.prototype.loadData=Xa.prototype.loadData;Xa.prototype.onYtUpdateUnseenNotificationCount=Xa.prototype.onYtUpdateUnseenNotificationCount;Xa.prototype.handleClearCookieAction=Xa.prototype.handleClearCookieAction;Xa.prototype.handleUpdateNotificationsUnseenCountAction=Xa.prototype.handleUpdateNotificationsUnseenCountAction;Xa.prototype.setUnseenNotificationCount=Xa.prototype.setUnseenNotificationCount;
Xa.prototype.onYtUpdateTitle=Xa.prototype.onYtUpdateTitle;Xa.prototype.setPageTitle=Xa.prototype.setPageTitle;Xa.prototype.onYtEndpointChangeHandler=Xa.prototype.onYtEndpointChangeHandler;Xa.prototype.onYtPageDataFetched=Xa.prototype.onYtPageDataFetched;Xa.prototype.handleNavigate=Xa.prototype.handleNavigate;Xa.prototype.onYtNavigate=Xa.prototype.onYtNavigate;Xa.prototype.onYtNavigateFinish=Xa.prototype.onYtNavigateFinish;Xa.prototype.onYtNavigateCache=Xa.prototype.onYtNavigateCache;
Xa.prototype.onYtNavigateError=Xa.prototype.onYtNavigateError;Xa.prototype.onYtNavigateStart=Xa.prototype.onYtNavigateStart;Xa.prototype.cancelPendingTasks=Xa.prototype.cancelPendingTasks;Xa.prototype.initHistoryManager=Xa.prototype.initHistoryManager;Xa.prototype.onYtHistoryLoad=Xa.prototype.onYtHistoryLoad;Xa.prototype.onYtHistoryPop=Xa.prototype.onYtHistoryPop;Xa.prototype.onYtNavigateSetPageOffset=Xa.prototype.onYtNavigateSetPageOffset;Xa.prototype.setPageOffset=Xa.prototype.setPageOffset;
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Xa.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Xa.prototype,"data",void 0);_.C([_.EB("yt-navigate-set-page-offset"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Xa.prototype,"onYtNavigateSetPageOffset",null);
_.C([_.EB("yt-history-pop"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Xa.prototype,"onYtHistoryPop",null);_.C([_.EB("yt-history-load"),_.V("design:type",Function),_.V("design:paramtypes",[Event,_.NEx]),_.V("design:returntype")],Xa.prototype,"onYtHistoryLoad",null);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Xa.prototype,"onYtNavigate",null);
_.C([_.EB("yt-update-title"),_.V("design:type",Function),_.V("design:paramtypes",[Event,String]),_.V("design:returntype")],Xa.prototype,"onYtUpdateTitle",null);_.C([_.EB("yt-update-unseen-notification-count"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Number]),_.V("design:returntype")],Xa.prototype,"onYtUpdateUnseenNotificationCount",null);_.C([_.Dj()],Xa);Lm9.YtdAppBehavior=[_.$9.YtActionHandlerBehavior,Xa.prototype];var pm=function(){var F=_.Ga.apply(this,arguments)||this;F._noAccessors=!0;return F};
_.M(pm,_.Ga);pm.prototype.ready=function(){var F=this;_.ep(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){F.onChange_()})};
pm.prototype.dataChanged_=function(){_.ep(this.hostElement).querySelector("#checkbox").checked=!1};
pm.prototype.onChange_=function(){var F=_.ep(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Q0(this.hostElement,"yt-dismissal-reason-"+F,this.data.feedbackToken)};
pm.prototype.dataChanged_=pm.prototype.dataChanged_;_.C([_.O(),_.V("design:type",Object)],pm.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pm.prototype,"dataChanged_",null);_.C([_.Dj()],pm);var g53=[pm.prototype];var QU=function(){var F=_.Ga.apply(this,arguments)||this;F.timeoutJobId=0;F.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return F};
_.M(QU,_.Ga);QU.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
QU.prototype.startTimeout=function(){var F=this,q=this.data&&this.data.displayDurationSeconds;q&&!this.timeoutJobId&&(this.timeoutJobId=_.W2(_.mI,function(){_.ec(F.hostElement,"yt-close-popup-action",[F.is]);F.timeoutJobId=0},q*1E3))};
QU.prototype.cancelTimeout=function(){_.mI.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
QU.prototype.ytdHatsSurveyBehaviorDataChanged=QU.prototype.ytdHatsSurveyBehaviorDataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],QU.prototype,"ytActionHandlerBehavior",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],QU.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.C([_.Dj()],QU);var lNw=[_.$9.YtActionHandlerBehavior,QU.prototype];var XEv=function(F,q){var t;return((t=F.prefixMapping)==null?0:t[q])?F.prefixMapping[q]:F.SHARED_RENDERERS_.hasOwnProperty(q)?"yt":F.prefix},e0={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}};e0.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.E("kevlar_mealbar_above_player"),modern:_.E("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
e0.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};e0.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};e0.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
e0.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)"}};
e0.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};
e0.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};
e0.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};
e0.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};e0.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"}};
e0.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};e0.TOAST={component:null,properties:{}};var YiT=new function(F,q,t){this.supportedPopups=F;this.navigationEndpointPopupMap=q;this.popupTypeMap=t;this.supportedPopups=F;this.navigationEndpointPopupMap=q;this.popupTypeMap=t}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.E("desktop_add_to_playlist_renderer_dialog_popup")?"DIALOG":"RESPONSIVE_DROPDOWN",backstagePostDialogPopupRenderer:"DIALOG",bubbleHintRenderer:"HINT",checkboxSurveyRenderer:"SURVEY",confirmDialogRenderer:"DIALOG",dismissalFollowUpRenderer:"DIALOG",enforcementMessageViewModel:"LOCKED_MODAL",
fancyDismissibleDialogRenderer:"DIALOG",gamingAccountLinkConfirmDialogRenderer:"DIALOG",gamingAccountLinkSettingRenderer:"DIALOG",hotkeyDialogRenderer:"DIALOG",sponsorshipConfirmCancelRenderer:"DIALOG",menuPopupRenderer:"RESPONSIVE_DROPDOWN",modalWithTitleAndButtonRenderer:"RESPONSIVE_DROPDOWN",notificationActionRenderer:"TOAST",reportFormModalRenderer:"DIALOG",searchSuggestionReportDialog:"DIALOG",sharingEmbedRenderer:"DIALOG",sharingRenderer:"RESPONSIVE_DROPDOWN",singleOptionSurveyRenderer:"SURVEY",
surveyFollowUpRenderer:"SURVEY",unifiedSharePanelRenderer:"DIALOG",unlimitedFamilyMessageInterstitialRenderer:"DIALOG",unlimitedFamilyProfileInterstitialRenderer:"DIALOG",unpluggedPauseMembershipDialogRenderer:"DIALOG",ypcOffersOverlayRenderer:"DIALOG",ypcUpgradeDialogRenderer:"DIALOG",redCancelSurveyRenderer:"DIALOG",conversationSectionController:"MOLE",conversationHighPriorityNotificationContentRenderer:"NOTIFICATION"}),pEy=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19877_popupConfig=e0;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 QM5=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.tF.getInstance()},Zb=function(F,q){var t=F.pageNameToElement.get(q);
if(!t){switch(q){case "watch":var u=_.E("web_watch_force_learning_journey_for_testing")?_.ow("ytd-watch-learning-journey"):_.E("kevlar_watch_fixie")?_.ow("ytd-watch-fixie"):_.E("kevlar_watch_grid")?_.ow("ytd-watch-grid"):_.ow("ytd-watch-flexy");break;case "learning_journey_watch":u=_.ow("ytd-watch-learning-journey");break;case "shorts":u=_.ow("ytd-shorts");break;case "search":u=_.ow("ytd-search");break;case "channel":u=_.ow("ytd-browse");u.pageSubtype="channels";break;case "trending":u=_.ow("ytd-browse");
u.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":u=
_.ow("ytd-browse");u.pageSubtype=q;break;case "browse":u=_.ow("ytd-browse");break;default:_.bz(new _.D0("Error getting page element for type",q))}t=u;F.pageNameToElement.set(q,t)}return t};
QM5.prototype.preparePage=function(F,q,t){t&&(F=_.Tr(t)||F);if(F!=="watch"&&F!=="learning_journey_watch"){var u=this.elementPoolPopulator,J=F;J!=u.targetPage_&&u.pendingPages_.indexOf(J)>-1&&(u.targetPage_&&(u.pendingPages_.unshift(u.targetPage_),u.abort()),lev(u,J),_.Q7O(u,J))}if((u=Zb(this,F))||!_.n(t,_.KM)){u.isAttached||u===q||(u.hidden=!0);if(!u.data&&(F!=="watch"&&F!=="learning_journey_watch"||!_.E("swatcheroo_page_pool_dont_provide_filler_data"))){var g;if(F=(g=_.bn("FILLER_DATA",{})[F])==
null?void 0:g.response)u.data=F}return u}};var ea5=function(F){this.JSC$32028_clientRoot=F;this.playlistHandlerActionMap={"yt-add-to-playlist-command":dch,"yt-end-playlist-command":VgD,"yt-recover-playlist-command":Skh,"yt-refresh-playlist-command":BcQ,"yt-playlist-remove-videos-action":hUD};_.aJ(_.B2.getInstance(),this.playlistHandlerActionMap,this.JSC$32028_clientRoot);wOs()},Z2C;var R3=function(F,q,t){this.apiKey=F;this.endpoint=q;this.confidenceThreshold=t===void 0?.5:t;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=q==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||q==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
q==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||q==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new w6h};
_.l=R3.prototype;
_.l.start=function(F){if(this.state===0)if(this.isOnline()){F.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=F.supportsHttpHeadersOverwriteParam);F.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=F.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.bN("voice_assistant");_.CJ("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=F.languageCode||"en-US";this.supportsCrossDomainXhr=F.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=F.youtubeAssistantRequest||null;this.listeningHandler=F.listeningHandler||this.listeningHandler;this.audioDetectedHandler=F.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=F.stopHandler||this.stopHandler;this.completeHandler=F.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=F.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=F.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
F.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=F.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=F.accessToken;this.additionalHeaders=F.additionalHeaders||{};var q;this.prefetchResponseTimeoutMs=(q=F.prefetchResponseTimeoutMs)!=null?q:this.prefetchResponseTimeoutMs;Rav(this);this.startAudio();rP3(this)}else this.errorHandler("OFFLINE")};
_.l.stop=function(F){var q=F===void 0?{}:F;F=q.logCancel===void 0?!0:q.logCancel;var t=q.logMicClosed===void 0?!0:q.logMicClosed;var u=q.handleError===void 0?!0:q.handleError;q=q.handleStop===void 0?!0:q.handleStop;this.state!==0&&(F&&rb("voz_cx"),N5(this,{logMicClosed:t,handleStop:q}),u&&this.errorHandler("ABORTED"))};
_.l.getState=function(){return this.state};
_.l.isSupported=function(){return!0};
_.l.stopAudio=function(F){(F===void 0||F)&&rb("voz_mf")};
_.l.startAudio=function(){rb("voz_vp");return _.NU(null)};
var N_3=function(F,q){F.channelOpen&&(F.state!==2&&(F.state=2,rb("voz_ss"),F.listeningHandler()),q=new Uint8Array(q),q='{ "audioIn": "'+_.A9(q)+'" }',F.channel.send(q))},N5=function(F,q){var t=q===void 0?{}:q;
q=t.logMicClosed===void 0?!0:t.logMicClosed;t=t.handleStop===void 0?!0:t.handleStop;F.vozEndOfDataTimeout>-1&&(clearTimeout(F.vozEndOfDataTimeout),F.vozEndOfDataTimeout=-1);wE9(F);F.stopAudio(q);F.channel&&(F.channelOpen=!1,F.manuallyClosedChannel=!0,F.channel.close(),F.channel=void 0);F.transcribedSpeechResults=[];F.state=0;t&&F.stopHandler()},Rav=function(F){var q={httpHeadersOverwriteParam:F.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},F.additionalHeaders,F.accessToken&&F.isUsingVoz?{Authorization:"Bearer "+F.accessToken}:{"x-goog-api-key":F.apiKey}),supportsCrossDomainXhr:F.supportsCrossDomainXhr};F.channel=new RB(F.endpoint,q);F.channel.open();_.Ic(F.channel,"w",function(){var t=F.channel,u=t.send,J=F.isUsingVoz?"PLACEHOLDER":"example";J={config:{dialogStateIn:{languageCode:F.languageCode},deviceConfig:{deviceId:J,deviceModelId:J},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!F.isUsingVoz)J.config.requestType=4;else if(F.isUsingVoz&&F.youtubeAssistantRequest){var g=JSON.stringify(F.youtubeAssistantRequest);J.config.internalIn={youtubeAssistantS3InputJson:g}}u.call(t,J);F.channelOpen=!0;F.manuallyClosedChannel=!1});
_.Ic(F.channel,"x",function(){F.manuallyClosedChannel||(F.channelOpen=!1,F.channel=void 0,N5(F))});
_.Ic(F.channel,"z",function(t){if(t.data){wE9(F);for(var u=0;u<t.data.length;u++){var J=F,g=t.data[u],Y=g.speechResults;if(Y)a:{var Q=[];g=[];var e=!1;Y=_.X(Y);for(var r=Y.next();!r.done;r=Y.next()){r=r.value;if(r.noSpeech){N5(J);J.errorHandler("NO_SPEECH");break a}r.transcript!==void 0&&r.stability!==void 0&&(r.stability<J.confidenceThreshold&&(e=!0),e?g.push(r.transcript):Q.push(r.transcript))}if(Q.length!==0||g.length!==0)Q=Q.join(" "),g=g.join(" "),J.receivedEndOfUtterance&&!J.isUsingVoz?J.isUsingVoz||
J.completeHandler([Q,g]):(e=J,Y=Q,r=g,rb("voz_sf"),e.transcriptionUpdateHandler(Y,r),e.transcribedSpeechResults=[Y,r]),J.receivedEndOfUtterance&&(rb("voz_eou"),J.transcriptionCompleteHandler([Q,g]),J.isUsingVoz&&(J.prefetchResponseTimeoutMs===0?N5(J,{logMicClosed:!1,handleStop:!0}):J.prefetchResponseTimeoutMs>0&&i23(J)))}else J.isUsingVoz&&(g==null?0:g.internalOut)?(g=JSON.parse(g.internalOut.youtubeAssistantS3OutputJson),g.userHasOptedInToVaa||g.vaaConsent?J.vaaConsentUpdateHandler(!!g.userHasOptedInToVaa,
!!g.vaaConsent):(kj9(J),g&&(Q=J.transcribedSpeechResults,rb("voz_rqf"),J.completeHandler(Q,g)))):g.eventType==="END_OF_UTTERANCE"?J.receivedEndOfUtterance=!0:(rb("voz_err"),J.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.bz(Error("ml")))}}});
_.Ic(F.channel,"y",function(t){N5(F);switch(t.status){case 1:t="WEBCHANNEL_NETWORK_ERROR";break;case 2:t="WEBCHANNEL_SERVER_ERROR";break;default:t="WEBCHANNEL_UNKNOWN_ERROR"}F.errorHandler(t);F.logError(Error(t))})};
R3.prototype.logError=function(F){_.mH(F)};
R3.prototype.isOnline=function(){return!0};
var i23=function(F){kj9(F);F.prefetchResponseSetTimeoutId=setTimeout(function(){N5(F,{logMicClosed:!1,handleStop:!0})},F.prefetchResponseTimeoutMs)},kj9=function(F){F.prefetchResponseSetTimeoutId>-1&&(clearTimeout(F.prefetchResponseSetTimeoutId),F.prefetchResponseSetTimeoutId=-1)},rP3=function(F){wE9(F);
F.noResponseReceivedTimeout=window.setTimeout(function(){N5(F);F.errorHandler("NO_SPEECH")},11E3)},wE9=function(F){F.noResponseReceivedTimeout>-1&&(window.clearTimeout(F.noResponseReceivedTimeout),F.noResponseReceivedTimeout=-1)},rb=function(F){_.y0(F,void 0,"voice_assistant")};var wb=function(){R3.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.M(wb,R3);wb.prototype.isSupported=function(){return LW7()};
wb.prototype.startAudio=function(){var F=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.mW(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(u){E55(F,u)};
this.processor.connect(this.audioContext.destination);var q=function(u){F.stream=u;if(!F.audioContext)return _.NU(null);u=F.audioContext.createMediaStreamSource(u);F.processor&&u.connect(F.processor);return _.NU(null)},t={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?q(this.stream):(t=navigator.mediaDevices.getUserMedia(t))?t.then(q).catch(function(u){N5(F);u.name&&u.name==="NotAllowedError"?F.errorHandler("NO_MICROPHONE_PERMISSION"):(F.errorHandler("AUDIO_ERROR"),F.logError(u));return _.mW(null)}):(N5(this),this.errorHandler("AUDIO_ERROR"),_.bz(Error("nl")));
return R3.prototype.startAudio.call(this)};
wb.prototype.stopAudio=function(F){F=F===void 0?!0:F;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(q){q.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;R3.prototype.stopAudio.call(this,F)};
wb.prototype.isOnline=function(){return navigator.onLine};
var E55=function(F,q){if(F.audioContext)if(window.OfflineAudioContext){var t=F.audioContext.sampleRate,u=q.inputBuffer.getChannelData(0);q=new window.OfflineAudioContext(1,u.length,16E3);for(var J=q.createBuffer(1,u.length,t),g=J.getChannelData(0),Y=0,Q=0;Q<u.length;Q++)g[Q]=u[Q],Y+=g[Q]*g[Q];!F.audioDetected&&Math.sqrt(Y/u.length)>.01&&(F.audioDetected=!0,F.audioDetectedHandler());u=q.createBufferSource();u.buffer=J;u.connect(q.destination);u.start(0);q.oncomplete=function(e){e=e.renderedBuffer.getChannelData(0);
for(var r=Math.floor(16384E3/t),N=new Int16Array(r),w=0;w<r;++w)N[w]=Math.max(-1,Math.min(1,e[w]))*32767;N_3(F,N.buffer)};
q.startRendering()}else za9(F,q)},za9=function(F,q){var t=F.audioContext.sampleRate,u=q.inputBuffer.getChannelData(0),J=Math.floor((t+8E3)/16E3);
t=u.length/J;q=new Float32Array(t);for(var g=0;g<t;++g)q[g]=u[g*J];u=new Int16Array(t);for(J=0;J<t;++J)u[J]=Math.max(-1,Math.min(1,q[J]))*32767;N_3(F,u.buffer)};var o5C={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var n5T=function(){this.JSC$19942_audioEnabled=!0;this.audioFeedbackHolder={}};
n5T.prototype.isPlaying=function(F){return F.currentTime>0&&!F.paused&&!F.ended&&F.readyState>2};
var MfD=function(F){for(var q=_.X(Object.values(o5C)),t=q.next();!t.done;t=q.next())t=t.value,F.audioFeedbackHolder[t]=new Audio,F.audioFeedbackHolder[t].src="/s/search/audio/"+t+".mp3",F.audioFeedbackHolder[t].load()},iA=function(F,q){if(F.JSC$19942_audioEnabled!==!1&&q in F.audioFeedbackHolder){for(var t=_.X(Object.values(F.audioFeedbackHolder)),u=t.next();!u.done;u=t.next())u=u.value,F.isPlaying(u)&&u.pause();
F.audioFeedbackHolder[q].currentTime=0;F.audioFeedbackHolder[q].play().catch(function(){})}};var T_y=function(F,q){var t=this;this.store=F;this.service=q;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){t.setState("offline");t.stop()};
this.audioPlayer=new n5T;var u;(u=this.audioPlayer)==null||MfD(u)};
_.l=T_y.prototype;_.l.getService=function(){return this.service};
_.l.isEnabled=function(){return!!this.service};
_.l.isSupported=function(){var F;return(F=this.service)==null?void 0:F.isSupported()};
_.l.start=function(){var F=this,q,t,u,J,g,Y,Q,e,r,N,w,k,z;return _.p(function(T){switch(T.nextAddress){case 1:F.store.dispatch(O4y("",""));if(!navigator.onLine)return F.setState("offline"),T.return();window.addEventListener("offline",F.handleOfflineEvent);F.stream=null;if(!F.permissionsSupported){T.jumpTo(2);break}_.zg(T,3);return T.yield(GjQ(F),5);case 5:q=T.yieldResult;if(!q)return(t=F.audioPlayer)==null||iA(t,"failure"),T.return();F.service.stream=F.stream;F.setState("listening");_.LE(T,2);break;
case 3:_.Gg(T),F.permissionsSupported=!1;case 2:u={context:_.oht(_.X4())},u.youtubeAssistantParams={searchParams:{inlineSearchResponse:F.enableInlineSearchResponse}},J=function(P,v){F.store.dispatch(PpQ("transcribing"));F.store.dispatch(O4y(P,v))},g=function(){var P;
(P=F.audioPlayer)==null||iA(P,"open");F.setState("listening")},Y=function(){F.setState("transcribing")},Q=function(P){F.setErrorState(P)},e=function(P,v){var H;
(H=F.audioPlayer)==null||iA(H,"success");v&&(_.E("kevlar_voice_search_inline_search")&&(F.responseProcessor=_.sV().resolve(_.lpP),F.responseProcessor&&(H=v.navigationAction,P=v.prefetchedSearchResponse,H&&P&&(H=(new _.Krv).JSC$13103_getStoreKey(H),_.UL(F.responseProcessor,P,H)))),F.JSC$19960_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",v))},r=function(){window.removeEventListener("offline",F.handleOfflineEvent)},N=_.x1W(!1),w=N.Authorization!=null,k=F.enableFirstPartyAuth||
F.enableFPAForSignedInUsers&&w?N:{"X-Goog-Visitor-Id":N["X-Goog-Visitor-Id"]},z={completeHandler:e,
errorHandler:Q,listeningHandler:g,audioDetectedHandler:Y,stopHandler:r,transcriptionUpdateHandler:J,youtubeAssistantRequest:u,languageCode:Diw(),additionalHeaders:k,supportsCrossDomainXhr:F.enableFirstPartyAuth||F.enableFPAForSignedInUsers&&w,supportsHttpHeadersOverwriteParam:!F.disableHttpHeadersOverwrite},F.service.start(z),_.WA(T)}})};
_.l.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.l.reset=function(){this.store.dispatch(_.pj({type:"RESET_VOICE_SEARCH_STATE"}))};
_.l.setState=function(F){this.store.dispatch(PpQ(F))};
_.l.setErrorState=function(F){switch(F){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var q;(q=this.audioPlayer)==null||iA(q,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)GjQ(this);else{var t;(t=this.audioPlayer)==null||iA(t,"failure");this.setState("permission-denied")}break;case "ABORTED":var u;(u=this.audioPlayer)==null||iA(u,"no_input");break;default:var J;(J=this.audioPlayer)==
null||iA(J,"no_input");this.setState("timeout")}};
var GjQ=function(F){var q,t;return _.p(function(u){switch(u.nextAddress){case 1:return u.yield(navigator.permissions.query({name:"microphone"}),2);case 2:q=u.yieldResult;if(q.state==="granted")return u.return(!0);if(q.state==="denied")return F.setState("permission-denied"),u.return(!1);F.setState("permission");t={audio:{sampleSize:16,channelCount:1},video:!1};_.zg(u,3);return u.yield(navigator.mediaDevices.getUserMedia(t),5);case 5:return F.stream=u.yieldResult,u.return(!0);case 3:return _.Gg(u),
F.setState("permission-denied"),u.return(!1)}})},Diw=function(){var F=_.bn("INNERTUBE_CONTEXT_HL"),q=_.bn("INNERTUBE_CONTEXT_GL");
return F.indexOf("-")>-1?F:F+"-"+q};var WaC=function(F,q,t){T_y.call(this,q,t);this.JSC$19960_actionRouter=F;this.enableInlineSearchResponse=_.E("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.E("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.E("kevlar_voice_search_enable_fpa_signedin_users")},O2h;
_.M(WaC,T_y);
var PPQ=function(){if(!O2h){var F="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.E("kevlar_voice_search_auth_enabled")||_.E("kevlar_voice_search_use_yt_endpoint")?F="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.E("kevlar_voice_search_use_fp_endpoint")&&(F="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");O2h=
new WaC(_.B2.getInstance(),_.u1(),new wb(_.bn("VOZ_API_KEY"),F,.5))}return O2h};var xi9=function(F){this.JSC$19964_clientRoot=F;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$19964_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)]]));F=_.X(this.eventListeners);for(var q=F.next();!q.done;q=F.next()){var t=_.X(q.value);q=t.next().value;t=t.next().value;t=_.X(t);for(var u=t.next();!u.done;u=t.next()){var J=
_.X(u.value);u=J.next().value;J=J.next().value;q.addEventListener(u,J)}}_.aJ(_.B2.getInstance(),this.autonavPauseActionMap,this.JSC$19964_clientRoot)},AP7,v5D=function(F){return _.E("kevlar_autonav_popup_filtering")?(F=_.uL(F))?F.hasAttribute("prevent-autonav"):!0:!0};
_.l=xi9.prototype;_.l.onIronOverlayOpened=function(F){v5D(F)&&(this.autonavPauseReasons.overlayOpen=!0,kX(this))};
_.l.onIronOverlayClosed=function(F){v5D(F)&&(this.autonavPauseReasons.overlayOpen=!1,kX(this))};
_.l.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;kX(this)};
_.l.onYtAutonavPauseBlur=function(){var F=this;_.mI.addJob(function(){F.isInBackground()||(F.autonavPauseReasons.inputBoxFocus=!1,kX(F))},8,0)};
_.l.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;kX(this)};
_.l.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;kX(this)};
_.l.onYtAutonavPauseScroll=function(){var F=_.sV().resolve(_.JC);F.isOnWatch()&&(F=F.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=F.getBoundingClientRect().top<-200,kX(this))};
_.l.onYtAutonavPauseUserEngagement=function(F){var q=this;if(_.E("user_engagement_enable_autoplay_pause_feature")){var t=Number(F.lowEngagementThresholdMs);isNaN(t)||t<=0||F.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.sV().resolve(_.PT),_.X1()<t?_.W2(_.mI,function(){_.GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.Ez9()?(this.userEngagementCsn=_.yb(),_.W2(_.mI,function(){_.GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
q.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,kX(this)):_.GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Izt(Error("ol`"+JSON.stringify(F)))};
_.l.onYtAutonavPausePlayer=function(F){this.autonavPauseReasons.requestedByPlayer=!!F.detail;kX(this)};
_.l.onYtAutonavVisibilityChanged=function(){var F=this,q,t,u;return _.p(function(J){if(J.nextAddress==1)return(q=_.g0())?J.yield(q.getPlayerPromise(),2):J.return();t=J.yieldResult;u=t.isMuted()||t.getVolume()===0;F.autonavPauseReasons.backgroundAndMute=F.isInBackground()&&u;kX(F);_.WA(J)})};
_.l.onYtAutonavPausePlayerEnded=function(){_.sV().resolve(_.PT);var F=144E5;_.E("user_engagement_enable_autoplay_pause_feature")||_.E("is_part_of_any_user_engagement_experiment")||(F=45E5);this.autonavPauseReasons.longIdle=_.X1()>F;INv(this);kX(this)};
_.l.onYtUserActivity=function(){var F=this;this.autonavPauseReasons.userEngagement&&(_.W2(_.mI,function(){_.GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",F.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,kX(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.W2(_.mI,function(){_.GZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",F.userEngagementCsn);_.H2()}),this.autonavPauseReasons.youthereLactExperiment=!1,kX(this));
this.autonavPauseReasons.longIdle&&!_.E("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,kX(this))};
_.l.isInBackground=function(){var F=window.document.visibilityState;return!(!F||F==="visible")};
var kX=function(F){for(var q=!1,t=_.X(Object.values(F.autonavPauseReasons)),u=t.next();!u.done;u=t.next())u=u.value,q=q||u;q?_.kA.getInstance().pause(F.autonavPauseReasons):(F=_.kA.getInstance(),F.autonavState_==3?(F.setState(2,!1,!1),F.autonavPauseReason_=void 0):F.autonavState_==1&&(F.disabledAutonavPauseReason_=void 0))},INv=function(F){var q=!1;
if(_.E("enable_autoplay_pause_by_lact")){_.sV().resolve(_.PT);q=_.YE("autoplay_pause_by_lact_sec")*1E3;var t=_.YE("autoplay_pause_by_lact_sampling_fraction");(q=_.X1()>=q&&Math.random()<t)&&!_.Ez9()&&(_.W2(_.mI,function(){_.GZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),q=!1)}q!==F.autonavPauseReasons.youthereLactExperiment&&(F.autonavPauseReasons.youthereLactExperiment=q)&&(F.userEngagementCsn=_.yb(),_.W2(_.mI,function(){_.GZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",F.userEngagementCsn)}));
F.autonavPauseReasons.userEngagement&&_.W2(_.mI,function(){_.GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",F.userEngagementCsn)})};
xi9.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.GZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.H2(),this.autonavPauseReasons.youthereLactExperiment=!1,kX(this));this.autonavPauseReasons.userEngagement&&(_.GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,kX(this))};
xi9.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var E2=function(){var F=_.x.apply(this,arguments)||this;F.miniGuideVisible=!1;F.guideOpened=_.E("disable_initial_guide_state_fix")?!1:F.canFitPersistentGuide(F.initialBodyClientWidth);F.guideUserStateOpened=F.getInitialGuideUserStateOpened();F.isFullscreenShorts=!1;F.miniGuideWidthThreshold=_.YE("kevlar_mini_guide_width_threshold",791);F.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");F.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");F.persistentGuideBlockedPagePathRegex=new RegExp(F.persistentGuideBlockedPagesPatterns.join("|"));F.animationTransitionDuration=0;F.lateDataResolver=_.ji();F.initialGuideDataFetchFailed=!1;F.initialLoad=!0;F.guideRenderers=new Set;F.isMouseOverGuide=!1;F.sessionUserManuallyExpandedGuideState=!1;F.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return F};
_.M(E2,_.x);_.l=E2.prototype;_.l.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.l.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.l.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.l.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.l.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.l.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.l.ready=function(){_.sV().addProvider({provide:_.QE,useValue:this.hostElement})};
_.l.attached=function(){var F=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.kM(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.kM(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.kM(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.kM(this,this.onYtGuideShow));_.tJ(this,function(){F.animationTransitionDuration=200})};
_.l.detached=function(){document.removeEventListener("yt-navigate-finish",_.kM(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.kM(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.kM(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.kM(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.kM(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.kM(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.kM(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.l.getData=function(){return this.data};
_.l.load=function(){var F=this,q,t,u,J;return _.p(function(g){switch(g.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=F.lateDataResolver.resolve.bind(F),g.return(F.lateDataResolver.promise);if(window.ytInitialGuideData)return q=_.ji(),q.resolve(window.ytInitialGuideData),g.return(q.promise);u=!1;_.zg(g,2);return g.yield(F.fetchGuideData(),4);case 4:t=g.yieldResult;_.LE(g,3);break;case 2:J=_.Gg(g),J.message==="Returned error"&&(u=
!0);case 3:if(t)return g.return(t);F.onYtGuideClose();u||(F.initialGuideDataFetchFailed=!0);return g.return(F.lateDataResolver.promise)}})};
_.l.fetchGuideData=function(){var F=this,q,t,u,J,g,Y,Q;return _.p(function(e){if(e.nextAddress==1)return q=_.sV(),F.guidePromise||(t=q.resolve(_.da),F.guidePromise=_.aI(t,AiJ)),e.yield(F.guidePromise,2);if(e.nextAddress!=3)return u=e.yieldResult,J=q.resolve(_.nx),e.yield(J(),3);(g=e.yieldResult)&&((Y=u)==null?void 0:(Q=Y.responseContext)==null?void 0:Q.maxAgeSeconds)!==0&&g.put("service:guide:fallback",new _.Ip({innertubeResponse:u}));return e.return(u)})};
_.l.initializeGuideDataIfEmpty=function(){var F=this,q,t;return _.p(function(u){if(u.nextAddress==1){if(!F.initialGuideDataFetchFailed||F.data)return u.return();_.zg(u,2);return u.yield(F.fetchGuideData(),4)}if(u.nextAddress!=2)return(q=u.yieldResult)&&F.lateDataResolver.resolve(q),_.LE(u,0);t=_.Gg(u);_.bz(t);_.WA(u)})};
_.l.initializeGuideData=function(){var F=this,q;return _.p(function(t){switch(t.nextAddress){case 1:return _.pZ(rVC(),{mainAppWeb:_.jT()}),_.zg(t,2),t.yield(F.load(),4);case 4:F.data=t.yieldResult;_.LE(t,3);break;case 2:_.Gg(t),_.QI(rVC(),"FAILURE");case 3:q=F.data&&F.data.items&&F.data.items.length>0?"SUCCESS":"FAILURE",_.QI(rVC(),q),_.WA(t)}})};
_.l.setGuideData=function(F){var q=this,t,u;return _.p(function(J){if(J.nextAddress==1)return q.disabled?J.return():q.data?(F.data=q.data,q.guideRenderers.add(F),J.return()):J.yield(q.initializeGuideData(),2);q.graftGuideToPage();t=_.yG("IS_HOMEPAGE_COLD")?"eop":void 0;_.E("disable_element_pool_populator")?q.setGuideDataAfterInit(F):(u=new _.nA(1,t),_.MH(u,q.setGuideDataAfterInit.bind(q,F)));_.WA(J)})};
_.l.setGuideDataAfterInit=function(F){F.data=this.data;F.markDirty();this.guideRenderers.add(F);_.f1(function(){_.y0("gle")});
_.tJ(this,function(){_.y0("gpe")})};
_.l.graftGuideToPage=function(){if(this.data){var F=this.data&&this.data.trackingParams;F&&(F=_.Av(F),_.xA(_.DP(),F))}};
_.l.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.kM(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.l.onDrawerOpenedChanged=function(F,q){!q.value&&this.guideOpened&&(this.guideOpened=!1)};
_.l.onYtGuideToggle=function(F){var q=this.guideOpened;this.guideOpened=!q;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var t=_.TV();_.GV(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;t.save()}this.updateGuideDrawerElementState();if(this.guideElement){var u;this.guideOpened&&((u=F.detail)==null?0:u.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.kM(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.kM(this,this.onAppDrawerTransitioned))}q||this.initializeGuideDataIfEmpty()};
_.l.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.kM(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.ct(this.guideElement)};
_.l.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.kM(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(DJC(this.guideOpened))};
_.l.guidePersistentAndVisibleChanged=function(){_.Zl(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.l.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.pj({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.l.miniGuideVisibleChanged=function(){_.Zl(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.l.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(DJC(this.guideOpened)),this.initialLoad=!1);_.Zl(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.l.activeEndpointChanged=function(){_.Zl(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.l.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.l.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()};
_.l.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var F=this.canFitPersistentGuide(this.cachedClientWidth);F?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=F}this.updateGuideDrawerElementState()};
_.l.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.l.getGuideOpened=function(){return this.guideOpened};
_.l.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.l.getActiveEndpoint=function(){return this.activeEndpoint};
_.l.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.l.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&&_.Q0(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.l.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.E("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.l.handleGuideMouseLeave=function(){var F=this;!this.sessionUserManuallyExpandedGuideState&&_.E("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.aE(this,"handleGuideMouseLeave",function(){F.isMouseOverGuide||!F.guideOpened||F.miniGuideVisible||(F.guideOpened=!1,F.updateGuideDrawerElementState())},100))};
_.l.computeGuidePersistentAndVisible=function(){var F=this;_.aE(this,"computeGuidePersistentAndVisible",function(){F.guidePersistentAndVisible=F.guideOpened&&F.guidePersistent;F.guideIsVisibleButNotPersistent=!(!F.guideOpened||F.guidePersistent)})};
_.l.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.l.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.l.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.l.startLoadingWatch=function(){this.closeGuide()};
_.l.startLoadingShorts=function(){_.E("web_hide_guide_on_shorts")&&this.closeGuide()};
_.l.onYtNavigateFinish=function(F,q){if(!_.p4||q){this.activeEndpoint=q.endpoint;this.pageType=q.pageType;this.pageUrl=q.response.url;var t,u;F=(u=_.n((t=q.endpoint)==null?void 0:t.commandMetadata,_.EH))==null?void 0:u.url;!this.pageUrl&&F&&(this.pageUrl=F);_.E("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.l.getVisibleGuideRenderer=function(){for(var F=_.X(this.guideRenderers),q=F.next();!q.done;q=F.next())if(q=q.value,this.miniGuideVisible&&q.is==="ytd-mini-guide-renderer"||this.guideOpened&&q.is==="ytd-guide-renderer")return q;return null};
_.l.markGuideRendererDirty=function(F){if(F){typeof F.markDirty==="function"&&F.markDirty();F=_.X([].concat(_.mZ(_.ep(F).children)));for(var q=F.next();!q.done;q=F.next())this.markGuideRendererDirty(q.value)}};
_.l.persistentGuideEnabled=function(F,q){if(!q||F==="watch"||F==="settings"||F==="shorts"&&this.isFullscreenShorts||_.E("reels_web_disable_persistent_guide_shorts")&&F==="shorts")return!1;var t=_.wN(q)||"";return _.E("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(u){return t===u}):!this.persistentGuideBlockedPagePathRegex.test(t)};
_.l.canFitPersistentGuide=function(F){var q=_.YE("kevlar_persistent_guide_width_threshold",1312);return q===-1||_.E("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:F>q};
_.l.canFitMiniGuide=function(F){return this.miniGuideWidthThreshold===-1?!1:F>this.miniGuideWidthThreshold};
_.l.onResize=function(){var F=this;_.aE(this,"calculateGuideState",function(){F.onResizeDebounced()})};
_.l.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.l.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.l.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.l.getInitialGuideUserStateOpened=function(){return _.E("web_force_mini_guide_default")?!1:!_.TV().getFlag(109)};
_.JJ.Object.defineProperties(E2.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.bn("initialBodyClientWidth")||window.innerWidth}}});
E2.prototype.onResize=E2.prototype.onResize;E2.prototype.observeForMiniGuideVisible=E2.prototype.observeForMiniGuideVisible;E2.prototype.computeGuidePersistentAndVisible=E2.prototype.computeGuidePersistentAndVisible;E2.prototype.cachedClientWidthChanged=E2.prototype.cachedClientWidthChanged;E2.prototype.resetGuide=E2.prototype.resetGuide;E2.prototype.activeEndpointChanged=E2.prototype.activeEndpointChanged;E2.prototype.guideOpenedChanged=E2.prototype.guideOpenedChanged;
E2.prototype.miniGuideVisibleChanged=E2.prototype.miniGuideVisibleChanged;E2.prototype.guideIsVisibleButNotPersistentChanged=E2.prototype.guideIsVisibleButNotPersistentChanged;E2.prototype.guidePersistentAndVisibleChanged=E2.prototype.guidePersistentAndVisibleChanged;E2.prototype.onGuideElementChanged=E2.prototype.onGuideElementChanged;E2.prototype.onGuidePersistentChanged=E2.prototype.onGuidePersistentChanged;E2.prototype.onRenderGuideChanged=E2.prototype.onRenderGuideChanged;
E2.prototype.onActiveEndpointChanged=E2.prototype.onActiveEndpointChanged;E2.prototype.onMiniGuideVisibleChanged=E2.prototype.onMiniGuideVisibleChanged;E2.prototype.onGuideIsVisibleButNotPersistentChanged=E2.prototype.onGuideIsVisibleButNotPersistentChanged;E2.prototype.onGuidePersistendAndVisibleChanged=E2.prototype.onGuidePersistendAndVisibleChanged;_.C([_.D(_.Vl),_.V("design:type",Object)],E2.prototype,"ironResizableBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],E2.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],E2.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],E2.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],E2.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],E2.prototype,"disabled",void 0);
_.C([_.O(),_.V("design:type",Boolean)],E2.prototype,"guidePersistentAndVisible",void 0);_.C([_.za("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"onGuidePersistendAndVisibleChanged",null);_.C([_.O(),_.V("design:type",Boolean)],E2.prototype,"guideIsVisibleButNotPersistent",void 0);
_.C([_.za("guideIsVisibleButNotPersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.C([_.O(),_.V("design:type",Object)],E2.prototype,"miniGuideVisible",void 0);_.C([_.za("miniGuideVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"onMiniGuideVisibleChanged",null);_.C([_.O(),_.V("design:type",Boolean)],E2.prototype,"forceMiniGuideClose",void 0);
_.C([_.O(),_.V("design:type",Object)],E2.prototype,"activeEndpoint",void 0);_.C([_.za("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"onActiveEndpointChanged",null);_.C([_.O(),_.V("design:type",Boolean)],E2.prototype,"renderGuide",void 0);_.C([_.za("renderGuide"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"onRenderGuideChanged",null);
_.C([_.O(),_.V("design:type",Object)],E2.prototype,"guideOpened",void 0);_.C([_.O(),_.V("design:type",Boolean)],E2.prototype,"guidePersistent",void 0);_.C([_.za("guidePersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"onGuidePersistentChanged",null);_.C([_.O(),_.V("design:type",Object)],E2.prototype,"guideUserStateOpened",void 0);_.C([_.O(),_.V("design:type",String)],E2.prototype,"pageUrl",void 0);
_.C([_.O(),_.V("design:type",String)],E2.prototype,"pageType",void 0);_.C([_.O(),_.V("design:type",Number)],E2.prototype,"cachedClientWidth",void 0);_.C([_.O(),_.V("design:type",Object)],E2.prototype,"guideElement",void 0);_.C([_.O({selector:_.pw}),_.V("design:type",Object)],E2.prototype,"isFullscreenShorts",void 0);_.C([_.za("guideElement"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"onGuideElementChanged",null);
_.C([_.za("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"guidePersistentAndVisibleChanged",null);_.C([_.Wh("guideIsVisibleButNotPersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.C([_.za("miniGuideVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"miniGuideVisibleChanged",null);_.C([_.Wh("guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"guideOpenedChanged",null);_.C([_.za("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"activeEndpointChanged",null);
_.C([_.Wh("pageUrl"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"resetGuide",null);_.C([_.Wh("cachedClientWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"cachedClientWidthChanged",null);_.C([_.za("guideOpened","guidePersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"computeGuidePersistentAndVisible",null);
_.C([_.Wh("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"observeForMiniGuideVisible",null);_.C([_.EB("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E2.prototype,"onResize",null);_.C([_.m({disableElementRegistration:!0,is:"yt-guide-manager"})],E2);var H2J=_.b(E2,"yt-guide-manager",void 0,{mode:_.Nc("kevlar_poly_si_batch_j081")?1:2});var zF=function(){var F=_.x.apply(this,arguments)||this;F.JSC$19974_keyboardInUse=!1;F.boundHandleCapturedKeydownEvent=function(q){F.handleCapturedKeydownEvent(q)};
return F};
_.M(zF,_.x);_.l=zF.prototype;_.l.attached=function(){this.listenToDocument(document)};
_.l.listenToDocument=function(F){F.addEventListener("keydown",_.kM(this,this.onKeyDownEvent));F.addEventListener("keyup",_.kM(this,this.onKeyUpEvent));F.addEventListener("mousedown",_.kM(this,this.onMouseDownEvent));_.E("desktop_keyboard_capture_keydown_killswitch")||F.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);F.addEventListener("yt-page-data-updated",_.kM(this,this.onPageUpdate))};
_.l.detached=function(){this.unlistenFromDocument(document)};
_.l.unlistenFromDocument=function(F){F.removeEventListener("keydown",_.kM(this,this.onKeyDownEvent));F.removeEventListener("keyup",_.kM(this,this.onKeyUpEvent));F.removeEventListener("mousedown",_.kM(this,this.onMouseDownEvent));_.E("desktop_keyboard_capture_keydown_killswitch")||F.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);F.removeEventListener("yt-page-data-updated",_.kM(this,this.onPageUpdate))};
_.l.ready=function(){_.sV().addProvider({provide:_.GD,useValue:this})};
_.l.isKeyBoardInUse=function(){return this.JSC$19974_keyboardInUse};
_.l.handleCapturedKeydownEvent=function(F){if(F.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(F)};
_.l.onMouseDownEvent=function(){this.JSC$19974_keyboardInUse=!1};
_.l.onPageUpdate=function(){if(_.E("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.E("web_shorts_keyboard_shortcut_usage_log")){_.xy.clear();for(var F=_.X(_.O1),q=F.next();!q.done;q=F.next()){var t=_.X(q.value);q=t.next().value;t=t.next().value;t=_.r0(t);_.xy.set(q,t);_.Bo(_.yb(),_.b7(),t)}_.AI.clear();F=_.X(_.Pv);for(q=F.next();!q.done;q=F.next())t=_.X(q.value),q=t.next().value,t=t.next().value,t=_.r0(t),_.AI.set(q,t),_.Bo(_.yb(),_.b7(),t);_.LJ(_.yb(),_.b7(),[].concat(_.mZ(_.AI.values()),
_.mZ(_.xy.values())));_.aD(_.yb(),[].concat(_.mZ(_.AI.values()),_.mZ(_.xy.values())))}};
_.l.onMiniplayerActiveChange=function(){var F;(F=_.sV().resolve(_.m4).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(F.document):this.unlistenFromDocument(F.document))};
_.l.ignoreKeyEvent=function(F){if(F.ctrlKey||F.altKey)if(_.E("kevlar_macro_markers_keyboard_shortcut")){if(F.keyCode!==37&&F.keyCode!==39)return!0}else return!0;var q=_.tY(F)||[];return _.nzv(q)?(_.E("web_button_or_anchor_list_item")&&yx3(q,F)&&(this.JSC$19974_keyboardInUse=!0),!0):F.defaultPrevented?(f5(F.keyCode,F.shiftKey,this.isShortsPage),!0):F.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(F):!1};
_.l.isSpacebarClick=function(F){var q=F||window.event;var t;q.composedPath&&typeof q.composedPath==="function"?t=q.composedPath():t=q.path;t&&t.length?q=t[0]:(q=q||window.event,q=q.target||q.srcElement,q.nodeType==3&&(q=q.parentNode));return q&&F.keyCode===32&&(F=q.tagName==="BUTTON"||q.tagName==="A"||q.tagName==="INPUT",q=(q=q.getAttribute("role"))&&(q==="option"||q==="button"||q.indexOf("menuitem")===0),F||q)?!0:!1};
_.l.onKeyDownEvent=function(F){if(!this.ignoreKeyEvent(F)&&(F.keyCode===191&&(F.shiftKey||F.metaKey?F.repeat!=null&&F.repeat||(this.openHotkeyDialog(),f5(F.keyCode,F.shiftKey,this.isShortsPage)):(this.focusSearchBox(),F.preventDefault())),!F.metaKey)){var q=_.sV().resolve(_.m4);switch(F.keyCode){case 9:this.JSC$19974_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(F);break;case 84:q.pipController.getWindow()&&window.focus();this.toggleTheaterMode(F.keyCode,F.shiftKey);break;case 73:q.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(F.keyCode,F.shiftKey);break;case 70:if(this.isShortsPage&&_.E("web_fullscreen_shorts")){_.MdT();break}this.isMiniplayerActive()?q.pipController.getWindow()&&(q.close(!0),window.focus()):this.passEventToPlayer(F);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(F.keyCode,F.shiftKey):this.closeMiniplayer(F.keyCode,F.shiftKey)||this.passEventToPlayer(F);break;case 13:F.shiftKey&&_.sV().resolve(_.h5).activate(F);break;default:this.passEventToPlayer(F)}}};
_.l.onKeyUpEvent=function(F){if(!this.ignoreKeyEvent(F))if(_.E("web_speedmaster_spacebar_control")&&F.keyCode===32)this.handlePlayerSpaceKey(F,!0);else{var q=this.getPlayerManager();q&&(q=q.getPlayer())&&q.handleGlobalKeyUp(F.keyCode,F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,F.key,F.code)}};
_.l.getPlayerManager=function(){var F=_.g0(),q=_.sV().resolve(_.JU(_.JC));return F&&q&&q.isOnWatch()?F:null};
_.l.passEventToPlayer=function(F,q){var t=this,u,J,g,Y;return _.p(function(Q){if(Q.nextAddress==1){if(!_.E("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&t.isMiniplayerActive())u=_.sV().resolve(_.m4).getPlayerElement();else if(t.inlinePreviewIsActive){if(J=_.Zl(t.hostElement,"yt-get-inline-preview-player-action"),(g=J)==null?0:g[0])u=J[0]}else u=_.g0();return u?Q.yield(u.getPlayerPromise(),3):Q.jumpTo(0)}Y=Q.yieldResult;q?Y.handleGlobalKeyUp(F.keyCode,F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,
F.key,F.code):Y.handleGlobalKeyDown(F.keyCode,F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,F.key,F.code,F.repeat);F.keyCode!==38&&F.keyCode!==40&&f5(F.keyCode,F.shiftKey,t.isShortsPage);_.WA(Q)})};
_.l.focusSearchBox=function(){_.Q0(this.hostElement,"yt-focus-searchbox")};
_.l.openHotkeyDialog=function(){_.Q0(this.hostElement,"yt-open-hotkey-dialog")};
_.l.isMiniplayerActive=function(){return _.sV().resolve(_.m4).isMiniplayerActive()};
_.l.closeMiniplayer=function(F,q){return this.isMiniplayerActive()?(_.sV().resolve(_.m4).close(),f5(F,q,this.isShortsPage),!0):!1};
_.l.toggleTheaterMode=function(F,q){var t=_.b_(_.u1().getState()),u=this.getPlayerManager(),J=_.E("disable_theater_mode_keyboard")||_.yG("START_IN_FULL_WINDOW_MODE");u&&!J&&(t=!t,_.gY()&&_.E("external_fullscreen")&&(t=!0),_.ec(this.hostElement,"yt-toggle-theater-mode",[t]),f5(F,q,this.isShortsPage))};
_.l.toggleMiniplayer=function(F,q){var t=this.getPlayerManager();if(this.isMiniplayerActive()){var u;((u=_.sV().resolve(_.JU(_.JC)))==null?0:u.isOnWatch())?_.sV().resolve(_.m4).close(!0):_.F2(_.sV().resolve(_.m4));f5(F,q,this.isShortsPage)}else t&&(_.ec(this.hostElement,"yt-activate-miniplayer-from-watch-action"),f5(F,q,this.isShortsPage))};
_.l.handlePlayerSpaceKey=function(F,q){var t=!!_.g0()||this.isMiniplayerActive();t=_.E("disable_space_scroll_fix")||t;_.E("global_spacebar_pause")&&!this.isKeyBoardInUse()&&t&&(F.preventDefault(),this.passEventToPlayer(F,q))};
_.l.isPresentingTheaterMode=function(){return _.E("web_watch_enable_tm_esc_key")?_.b_(_.u1().getState())&&!_.gY():!1};
zF.prototype.onMiniplayerActiveChange=zF.prototype.onMiniplayerActiveChange;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],zF.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],zF.prototype,"ytdReduxBehavior",void 0);_.C([_.O({selector:_.uDu}),_.V("design:type",Boolean)],zF.prototype,"inlinePreviewIsActive",void 0);_.C([_.O({selector:_.JHf}),_.V("design:type",Boolean)],zF.prototype,"isShortsPage",void 0);
_.C([_.O({selector:_.yX}),_.V("design:type",Boolean)],zF.prototype,"miniplayerIsActive",void 0);_.C([_.za("miniplayerIsActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zF.prototype,"onMiniplayerActiveChange",null);_.C([_.m({disableElementRegistration:!0,is:"yt-hotkey-manager"})],zF);_.b(zF,"yt-hotkey-manager",void 0,{mode:_.Nc("kevlar_poly_si_batch_j081")?1:2});var o3=function(){var F=_.x.apply(this,arguments)||this;F.loopStateEntityKey_=null;F.playlistLoopStateEntity_=null;F.isShuffleNextPlaylist=!1;F.PLAYER_EVENTS_=new Map;F.playerListenersSetup_=!1;F.videoSkipJob_=0;F.canAutoAdvance_=!1;F.playerManager_=null;F.TEST_ONLY={};return F};
_.M(o3,_.x);_.l=o3.prototype;_.l.ready=function(){_.sV().addProvider({provide:_.J8,useValue:this.hostElement})};
_.l.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_)};
_.l.attached=function(){document.addEventListener("yt-navigate-start",_.kM(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.kM(this,this.onYtNavigateFinish_))};
_.l.detached=function(){document.removeEventListener("yt-navigate-start",_.kM(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.kM(this,this.onYtNavigateFinish_))};
_.l.updatePlaylistEventListeners=function(F,q){q&&!this.playerListenersSetup_?(this.playerManager_=F,this.registerPlaylistEventListeners_(F)):!q&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(F))};
_.l.setPlayer=function(F){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=F};
_.l.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.l.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.l.registerPlaylistEventListeners_=function(F){var q=this;F.getPlayerPromise().then(function(t){q.playerListenersSetup_||(q.ytPlayerListenerBehavior.listenToPlayerEvents(t,q.PLAYER_EVENTS_),q.playerListenersSetup_=!0)})};
_.l.removePlaylistEventListeners_=function(F){var q=this;F.getPlayerPromise().then(function(t){q.playerListenersSetup_&&(q.ytPlayerListenerBehavior.unlistenFromPlayerEvents(t,q.PLAYER_EVENTS_),q.playerListenersSetup_=!1)})};
_.l.setPlaylistComponent=function(F){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.kM(this,this.onPlaylistYtNavigate_)),F&&(F.data&&this.playlistComponent.data&&F.data.playlistId==this.playlistComponent.data.playlistId?(F.loopOn=this.playlistComponent.loopOn,F.shuffleOn=this.playlistComponent.shuffleOn):(F.loopOn=!1,F.shuffleOn=!1),this.isShuffleNextPlaylist&&(F.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=F;this.playlistComponent.addEventListener("yt-navigate",
_.kM(this,this.onPlaylistYtNavigate_))};
_.l.setAutoplayRenderer=function(F){this.autoplayData=F};
_.l.setPlaylistData=function(F){this.currentPlaylistData_=F;_.Q0(this.hostElement,"yt-playlist-data-updated");_.m7.isEmpty(F)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(F)};
_.l.setPlayerPlaybackControlData=function(F){this.playerManager_&&this.playerManager_.updatePlayerComponents(F.playlistPanelRenderer)};
_.l.getPlaylistData=function(){return this.currentPlaylistData_};
_.l.getTempData_=function(F,q){if(this.playlistComponent==null)return null;F={};this.playlistComponent.shuffleOn&&(F.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(F.loop_on=this.playlistComponent.loopOn);q&&(F.autonav="1",_.sV().resolve(_.PT),q=_.X1(),q>0&&(F.lact=q),this.playerManager_&&(q=this.playerManager_.getPlayer())&&q.shouldSendVisibilityState()&&(q=q.getVisibilityState(),q!=0&&(F.vis=q)));_.E("enable_unknown_lact_fix_on_html5")&&(_.sV().resolve(_.PT),F.lact=
_.X1());return F};
_.l.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.l.setLoopStateEntityKey_=function(F){var q;this.loopStateEntityKey_=((q=this.getPlaylistLoopData_(F))==null?void 0:q.playlistLoopStateEntityKey)||null};
_.l.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.l.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.l.skipVideo=function(){var F=this,q=_.E("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||q)q=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.AC(_.mI,function(){F.onPlaylistNext();F.videoSkipJob_=0},q)};
_.l.cancelVideoSkip=function(){this.videoSkipJob_&&(_.mI.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.l.isInBackground_=function(){var F=window.document.visibilityState;return!(!F||F=="visible")};
_.l.onPlaylistIndex_=function(F){this.playlistComponent&&(F=this.playlistComponent.data.contents[F].playlistPanelVideoRenderer.navigationEndpoint,_.Q0(this.hostElement,"yt-navigate",{endpoint:F,tempData:this.getTempData_(F)}))};
_.l.onPlayerStateChange_=function(F){if(F=F==0&&this.playlistComponent&&this.canAutoAdvance_)F=_.kA.getInstance(),F=!(F.autonavState_===3?F.autonavPauseReason_&&F.autonavPauseReason_.inputBoxFocus===!0:F.autonavState_===1&&F.disabledAutonavPauseReason_&&F.disabledAutonavPauseReason_.inputBoxFocus===!0);F&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.l.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.l.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.l.navigateToAutoplayWatchEndpoint_=function(F,q,t){var u=this.playlistComponent.data.currentIndex,J=this.getNumPlayableVideos_();F=="NORMAL"&&q=="autoplayVideo"&&u+1>=J&&t||!(F=this.getVideoEndpoint_(F,q))||(t=this.getTempData_(F,t),_.Q0(this.hostElement,"yt-navigate",{endpoint:F,tempData:t}))};
_.l.getNumPlayableVideos_=function(){for(var F=0,q=_.X(this.playlistComponent.data.contents||[]),t=q.next();!t.done;t=q.next())t.value.playlistPanelVideoRenderer&&(F+=1);return F};
_.l.getVideoEndpoint_=function(F,q){if(this.autoplayData&&this.autoplayData.sets)for(var t=0,u=this.autoplayData.sets.length;t<u;t++){var J=this.autoplayData.sets[t];if(J.mode==F){if(J[q])return J[q];break}}else F=new _.D0("AutoplayData is undefined in playlist manager","Mode: "+F+" endpoint: "+q),_.bz(F)};
_.l.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.l.onPlaylistYtNavigate_=function(F){if(F.detail.endpoint){F.stopPropagation();var q=F.detail;q.tempData=this.getTempData_(F.detail.endpoint);_.Q0(this.hostElement,"yt-navigate",q)}};
_.l.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.l.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.l.playlistLoopStateEntityChanged_=function(F){var q=this,t,u,J;return _.p(function(g){if(g.nextAddress==1){if(!F)return g.return();t=F.state==="PLAYLIST_LOOP_STATE_ONE";return q.playerManager_?g.yield(q.playerManager_.getPlayerPromise(),3):g.jumpTo(2)}g.nextAddress!=2&&(u=g.yieldResult,u.setLoopVideo(t));J=F.state==="PLAYLIST_LOOP_STATE_ALL";q.playlistComponent&&(q.playlistComponent.loopOn=J);_.WA(g)})};
_.l.getPlaylistLoopData_=function(F){var q,t;if(F=F==null?void 0:(q=F.playlistButtons)==null?void 0:(t=q.menuRenderer)==null?void 0:t.topLevelButtons)for(q=_.X(F),t=q.next();!t.done;t=q.next())if(t=t.value,t.playlistLoopButtonRenderer)return t.playlistLoopButtonRenderer};
_.l.getLoopStateCommand_=function(F){var q=this.getPlaylistData(),t;q=((t=this.getPlaylistLoopData_(q))==null?void 0:t.states)||[];var u;F=(u=_.n(q[F?1:2],_.Hnx))==null?void 0:u.button;var J;return(J=_.n(F,_.th))==null?void 0:J.command};
_.l.onPlayerLoopChange_=function(F){this.playlistLoopStateEntity_&&(F?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(F=this.getLoopStateCommand_(F))&&this.ytComponentBehavior.resolveCommand(F)};
_.l.onSleepTimerSettingsChanged_=function(F){this.canAutoAdvance_=F!=="End of video"};
o3.prototype.onPlaylistLoopStateEntityChanged=o3.prototype.onPlaylistLoopStateEntityChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],o3.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.w8.YtPlayerListenerBehavior),_.V("design:type",_.ir)],o3.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],o3.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],o3.prototype,"loopStateEntityKey_",void 0);
_.C([_.O({selectorArgs:["loopStateEntityKey_"],selector:_.c5y}),_.V("design:type",Object)],o3.prototype,"playlistLoopStateEntity_",void 0);_.C([_.za("playlistLoopStateEntity_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],o3.prototype,"onPlaylistLoopStateEntityChanged",null);_.C([_.m({disableElementRegistration:!0,is:"yt-playlist-manager"})],o3);_.b(o3,"yt-playlist-manager",void 0,{mode:_.Nc("kevlar_poly_si_batch_j081")?1:2});var miQ,$iw=function(){if(miQ!==void 0)return miQ;var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return miQ=F};var nm=function(){var F=_.x.apply(this,arguments)||this;F.lastCallback=null;F.getAccountLinkPromises={};F.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);F.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return F};
_.M(nm,_.x);_.l=nm.prototype;_.l.getLocation=function(){return window.location.href};
_.l.getCompletionUrl=function(){return _.uN(this.getLocation())};
_.l.containsRedirectState=function(F){return(F=_.Tx(_.xWA(F)))?(new URLSearchParams(F)).get("redirect_state")!==null:!1};
_.l.createGalConfig=function(F,q){var t=new aH5;F=t=q?this.getPopupOrRedirectSetting(t,_.bn("LINK_API_KEY"),_.bn("LINK_API_KEY_REDIRECT"),F):j87(t,_.bn("LINK_API_KEY"));F.authUser=_.bn("SESSION_INDEX")||0;F.supportedFlows=new Set([4]);return F.build()};
_.l.getPopupOrRedirectSetting=function(F,q,t,u){this.isGalInteractionPopupMode(u)?(F.interactionMode=0,F=j87(F,q)):(F.interactionMode=1,q=this.getCompletionUrl(),F.completionUrl=q,F=j87(F,t));return F};
_.l.isGalInteractionPopupMode=function(F){if(this.redirectModeProviderAllowlist.has(F))switch(F){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.l.getStatusEntityKeyForProviderId=function(F){return _.wj(F+":all","accountLinkStatusEntity")};
_.l.findNestedPropValue=function(F,q){var t=!1,u=null;JSON.stringify(F,function(J,g){t||J!==q||(t=!0,u=g);return t?null:g});
return u};
_.l.findAccountLinkButtonViewModel=function(F,q){var t=null,u=!1;JSON.stringify(F,function(J,g){u||g.accountLinkStatusEntityKey!==q||g.accountLinkStatusSecondaryEntityKey||(u=!0,t=g);return u?null:g});
return t};
_.l.executeLinkingSuccessOrFailureCommands=function(F,q,t){var u=null,J;(q==null?0:(J=q.url)==null?0:J.includes("account_sharing"))?u=q==null?void 0:q.response:u=q==null?void 0:q.response;(q=this.findAccountLinkButtonViewModel(u,F))?(F=t?this.findNestedPropValue(q,"onSuccessCommand"):this.findNestedPropValue(q,"onFailureCommand"))?_.iN([F],this.hostElement):_.hN(Error("pl")):_.hN(Error("ql`"+F))};
_.l.handleInitializeRequest=function(F,q){var t=this,u=$1y(this.createGalConfig(F,!0));this.containsRedirectState(this.getLocation())?AnT(F,u.config,u.galService).then(function(J){var g=t.getStatusEntityKeyForProviderId(F);if(J.statusCode===1)q&&t.executeLinkingSuccessOrFailureCommands(g,q,!0),J=t.getLocation().indexOf("#"),J!==-1&&window.history.pushState(null,"",t.getLocation().substring(0,J));else return q&&t.executeLinkingSuccessOrFailureCommands(g,q,!1),Promise.reject(Error(J.statusMessage))}).catch(function(J){_.bz(J);
_.IJ("gamingAccountLinkStatusChanged",{serviceId:F,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(J)}):this.getAccountLinkPromises[F]=u.startLinkingSession({serviceId:F})};
_.l.handleAccountLinkCommand=function(F){_.n(F,$Hh)&&this.handleLinkRequest(_.n(F,$Hh))};
_.l.handleLinkRequest=function(F){var q=this,t=F.thirdPartyId;if(t)if(this.isGalInteractionPopupMode(t)){var u=function(){q.closeAndFire("ytd-gaming-account-link-setting-renderer",F.onFailureCommand)},J=function(){q.closeAndFire("ytd-gaming-account-link-setting-renderer",F.onSuccessCommand)};
this.lastCallback=J;this.getAccountLinkPromises[t].then(function(g){Pb5(g).then(function(Y){Y.statusCode===1?J():u()})}).catch(function(){u()})}else this.getAccountLinkPromises[t].then(function(g){Pb5(g).then(function(Y){if(Y.statusCode!==1)return Promise.reject(Error(Y.statusMessage))})}).catch(function(g){_.bz(g);
_.IJ("gamingAccountLinkStatusChanged",{serviceId:t,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(g)})};
_.l.closeAndFire=function(F,q){_.ec(this.hostElement,"yt-close-popup-action",[F]);q&&_.iN([q],this.hostElement)};
_.l.handleAccountUnlinkCommand=function(F){_.n(F,bAy)&&this.handleUnlinkRequest(_.n(F,bAy))};
_.l.handleUnlinkRequest=function(F){var q=this,t=F.thirdPartyId;if(t){var u=function(){q.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",F.onFailureCommand)},J=function(){q.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",F.onSuccessCommand)};
this.lastCallback=J;var g=$1y(this.createGalConfig(t,!1));this.unlinkUserGal(g,t).then(function(Y){Y.statusCode===1?J():u()}).catch(function(){u()})}};
_.l.unlinkUserGal=function(F,q){return F.deleteLink(q)};
_.l.handleLogAccountLinkingEventCommand=function(F){_.E("enable_gel_log_commands")&&_.n(F,yBT)&&(F=_.n(F,yBT).event)&&_.IJ("gamingAccountLinkStatusChanged",F)};
_.JJ.Object.defineProperties(nm,{template:{configurable:!0,enumerable:!0,get:function(){return $iw()}}});
_.C([_.D(_.HP.YtOpenPopupBehavior),_.V("design:type",Object)],nm.prototype,"ytOpenPopupBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],nm.prototype,"ytActionHandlerBehavior",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-third-party-manager"})],nm);_.b(nm,"ytd-third-party-manager",function(){return $iw()},{mode:_.Nc("kevlar_poly_si_batch_j081")?1:2});var b29,yPT=function(){if(b29!==void 0)return b29;var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return b29=F};var M5=function(){var F=_.x.apply(this,arguments)||this;F.currentPage=void 0;F.renderLoadingStateJobId=0;F.updatePageDataJobId=0;F.pageDisposeJobsets=new WeakMap;F.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};F.shouldApplyLockupToWatchTransition=_.E("web_thumbnail_to_watch_transition");F.shouldApplySlideTransition=_.pE("web_page_transition_type")==="slide"||_.E("enable_plj_landing_page");F.shouldApplyLearningJourneyTransition=_.E("enable_plj_landing_page");F.TEST_ONLY=void 0;return F};
_.M(M5,_.x);_.l=M5.prototype;_.l.ready=function(){var F=_.sV();F.addProvider({provide:_.JC,useValue:this});F.addProvider({provide:_.tmd,useValue:this})};
_.l.created=function(){this.pagePool=new QM5;this.contextSwitcher=new TuQ};
_.l.attached=function(){_.Q0(this.hostElement,"attached");var F=_.sV().resolve(_.JU(_.CG));F&&(this.contextSwitcher.JSC$19800_networkService_=F);this.viewTransitionManager=_.sV().resolve(_.yf)};
_.l.getPageOffset=function(F){return F.getScrollTop()};
_.l.setPageOffset=function(F,q){try{F.setScrollTop(q)}catch(t){}};
_.l.setPageOffsetForNavigation=function(F,q){_.Q0(this.hostElement,"yt-navigate-set-page-offset",{page:F,offset:q===void 0?0:q})};
_.l.pauseActiveContext=function(){var F=this.contextSwitcher;F.activeContext_&&F.activeContext_.pause()};
_.l.getModuleNameForType=function(F){return F==="watch"?_.E("kevlar_watch_fixie")?"watchFixie":_.E("kevlar_watch_grid")?"watchGrid":"watchFlexy":F==="shorts"||F==="search"?F:"browse"};
_.l.attachPage=function(F){var q,t=!_.E("pc_is_attached_ks")&&(F==null?void 0:(q=F.polymerController)==null?void 0:q.isAttached);if(!F.isAttached&&!t)try{_.ep(this.hostElement).appendChild(F)}catch(J){var u;_.bz(new _.D0("Error attaching page element for component",{origin:(u=this.currentPage)==null?void 0:u.is,component:F.is}))}};
_.l.setActivePage=function(F){var q=this,t=!1,u=function(){var J=q.isOnWatch(),g=q.currentPage;if(F)if(F!==q.currentPage){g&&(g.hidden=!0,g.active=!1,g.removeAttribute("role"));q.currentPage=F;var Y,Q=_.Tr((Y=q.data)==null?void 0:Y.endpoint);g&&_.Q0(q.hostElement,"yt-page-type-changed",{oldPageType:g.is,newPageType:F.is,newPageSubtype:Q});_.tv().dispatch(_.pj({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:F.is}));_.tv().dispatch(_.pj({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:Q||""}));F.hidden=
!1;q.attachPage(F);F.active=!0;F.setAttribute("role","main");g&&q.setPageOffsetForNavigation(F,0);_.E("kevlar_remove_page_dom_on_switch")&&!J&&g&&_.ep(q.hostElement).removeChild(g)}else t=!0;else q.handleMissingDestinationPage(g)};
this.shouldRunBrowseTransition(this.currentPage,F)?L4s(this.viewTransitionManager,u):this.shouldRunLearningJourneyTransition(this.currentPage,F)?jLT(this.viewTransitionManager,u):u();return t};
_.l.handleMissingDestinationPage=function(F){if(this.isColdLoadForUnknownPage(F))_.bz(new _.D0("Cold load for unknown page"));else{var q;F=new _.D0("Unable to set active page",F?F.is:"unknown origin",(q=this.data)==null?void 0:q.endpoint);_.mH(F)}};
_.l.isColdLoadForUnknownPage=function(F){return!F&&bV(this.data)==="unknown"};
_.l.shouldRunBrowseTransition=function(F,q){return this.shouldApplySlideTransition&&(F==null?void 0:F.is)==="ytd-browse"&&(q==null?void 0:q.is)==="ytd-browse"&&F!==q};
_.l.shouldRunLearningJourneyTransition=function(F,q){return this.shouldApplyLearningJourneyTransition&&(F==null?void 0:F.is)==="ytd-browse"&&((q==null?void 0:q.is)==="ytd-watch-learning-journey"||(q==null?void 0:q.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.l.shouldRunWatchNextLoadedTransition=function(F,q){return this.viewTransitionManager&&F.is==="ytd-watch-flexy"&&q};
_.l.updatePageData=function(F){var q=this,t=this.data;this.updatePageDataJobId&&_.mI.cancelJob(this.updatePageDataJobId);this.data=F;return new _.iz(function(u){var J=function(){F.filler?q.performDataUpdate(F,t):sLv(function(){q.performDataUpdate(F,t)});
var e=_.g7();_.lW(e,"cr")||e.processSignal("cr");u()},g=function(){F&&F.page==="watch"?q.updatePageDataJobId=_.AC(_.mI,J):J()};
if(_.E("kevlar_enable_mss_page_modules_client")&&F){var Y=_.sV().resolve(_.dm),Q=q.getModuleNameForType(F.page);(Y=K49(Y,[Q]))?Y.then(g):g()}else g()})};
_.l.isDownloadsPage=function(F){var q,t;return(F==null?void 0:(q=F.endpoint)==null?void 0:(t=q.browseEndpoint)==null?void 0:t.browseId)==="FEdownloads"};
_.l.setPlayerSyncInterval=function(F){var q;return _.p(function(t){if(t.nextAddress==1)return t.yield(_.sV().resolve(_.Qg),2);q=t.yieldResult;q.setUpPositionSyncInterval(F);_.WA(t)})};
_.l.performDataUpdate=function(F,q){_.E("kevlar_early_popup_close")||_.ec(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var t=!F.filler;t&&(_.y0("lps"),_.E("config_age_report_killswitch")||alw());var u=bV(F),J,g=!1;if(_.E("kevlar_remove_page_dom_on_switch")){var Y=q&&bV(q);u===Y&&(J=this.getCurrentPage())}J||(J=Zb(this.pagePool,u));t&&XOv(this.pagePool.elementPoolPopulator,u);t&&!this.renderLoadingStateJobId&&(g=this.setActivePage(J));if(J){Y=u==="watch";var Q=
u==="shorts",e=u==="learning_journey_watch";_.E("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(J);if(Y||Q||e)J.playerData=F.playerResponse;if(Q)if(_.E("web_enable_delay_shorts_sequence_call")){F.reelWatchSequenceResponse&&(F.reelWatchSequenceResponse.entries||F.reelWatchSequenceResponse.prevEntries)&&(J.reelWatchSequenceResponse=F.reelWatchSequenceResponse);J.currentEndpoint=F.endpoint;var r;J.isPreviousPageShorts=!!(q==null?0:(r=q.endpoint)==null?0:r.reelWatchEndpoint);
var N,w;F.cachedSequenceParams=((N=F.endpoint)==null?void 0:(w=N.reelWatchEndpoint)==null?void 0:w.sequenceParams)||F.cachedSequenceParams||(q==null?void 0:q.cachedSequenceParams);var k,z;F.cachedSequenceProvider=((k=F.endpoint)==null?void 0:(z=k.reelWatchEndpoint)==null?void 0:z.sequenceProvider)||F.cachedSequenceProvider||(q==null?void 0:q.cachedSequenceProvider);J.cachedSequenceParams=F.cachedSequenceParams;J.cachedSequenceProvider=F.cachedSequenceProvider}else{F.reelWatchSequenceResponse&&(F.reelWatchSequenceResponse.entries||
F.reelWatchSequenceResponse.prevEntries)?J.reelWatchSequenceResponse=F.reelWatchSequenceResponse:F.cachedReelWatchSequenceResponse?J.reelWatchSequenceResponse=F.cachedReelWatchSequenceResponse:_.E("web_enable_cached_reel_sequence_fix")&&J.cachedReelWatchSequenceResponse&&!J.reelWatchSequenceResponse&&(J.reelWatchSequenceResponse=J.cachedReelWatchSequenceResponse);J.currentEndpoint=F.endpoint;var T;J.isPreviousPageShorts=!!(q==null?0:(T=q.endpoint)==null?0:T.reelWatchEndpoint);F.cachedReelWatchSequenceResponse=
F.reelWatchSequenceResponse||F.cachedReelWatchSequenceResponse||(q==null?void 0:q.cachedReelWatchSequenceResponse);J.cachedReelWatchSequenceResponse=F.cachedReelWatchSequenceResponse}r=this.isDownloadsPage(F);N=this.isDownloadsPage(q);r&&!N?this.setPlayerSyncInterval(6E5):!r&&N&&this.setPlayerSyncInterval();_.E("block_all_player_prefetch_requests")||this.preparePrefetchRequest(F,J,t,Y,Q,e);cXy(_.sV().resolve(_.m4),q,F);_.M$(_.sV().resolve(_.PT));_.E("kevlar_flush_jobs_before_setting_player_response")||
this.flushPageDisposeJobset(J);t?(t=typeof J.loadPage,t==="function"?(J.pageContext=Gus(this.contextSwitcher,J,J.data!==F.response),t=function(){J.loadPage(F.response)},this.shouldApplySlideTransition&&J.is==="ytd-browse"&&g&&(u==="learning"||this.isDifferentBrowseId(F==null?void 0:F.endpoint,q==null?void 0:q.endpoint))?L4s(this.viewTransitionManager,t):this.shouldRunWatchNextLoadedTransition(J,g)?ae3(this.viewTransitionManager,t):t()):_.$e(new _.D0("b/38014653 ",[u,
J.is,J.nodeName,t,J.isAttached,q&&bV(q),this.hostElement.children.length])),_.y0("pdl")):(J.hidden=!0,F.response.filler=!0,J.data=F.response,this.attachPage(J));_.Q0(this.hostElement,"yt-page-data-updated",{pageType:u})}_.W2(_.mI,function(){_.E("logging_avoid_blocking_during_navigation")&&_.lzt().transition("none");var P=d7w(),v=J;if(F){var H=O9T(F),d=Pds(F),a;a:{if(F.playerResponse){var S=F.playerResponse,K;if((a=S.auxiliaryUi)==null?0:(K=a.messageRenderers)==null?0:K.upsellDialogRenderer){a=S.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(F.response&&(a=F.response,(S=a.overlay)==null?0:S.upsellDialogRenderer)){a=a.overlay.upsellDialogRenderer;break a}a=void 0}var h;var c;K=(h=F.playerResponse)==null?void 0:(c=h.auxiliaryUi)==null?void 0:c.messageRenderers;h=(K==null?void 0:K.enforcementMessageViewModel)||(K==null?void 0:K.bkaEnforcementMessageViewModel);h=(h==null?void 0:h.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?h:void 0;var rf;a:{if(F.response&&(c=F.response,(rf=c.overlay)==null?0:rf.commandWrapperPromoRenderer)){rf=
c.overlay.commandWrapperPromoRenderer;break a}rf=void 0}Cj7(P,H,d,a,h,rf,v)}})};
_.l.preparePrefetchRequest=function(F,q,t,u,J,g){var Y,Q,e,r,N,w,k,z,T,P,v,H,d,a,S;return _.p(function(K){if(K.nextAddress==1)return!t||!(u||J||g)||_.E("kevlar_disable_background_prefetch")&&_.UK(_.YwA)()===0?K.return():(Y=_.sO(q))?K.yield(Y.getPlayerPromise(),2):K.return();Q=K.yieldResult;e=_.sV().resolve(_.JU(_.CG));if(!e)return K.return();if(J)return r=_.qF(_.Uh),rXy(r,(N=F.endpoint)==null?void 0:N.reelWatchEndpoint,q.reelWatchSequenceResponse,Q,e),K.return();z=(w=F.response)==null?void 0:(k=w.responseContext)==
null?void 0:k.webResponseContextExtensionData;if(!z)return K.return();d=(T=F.response)==null?void 0:(P=T.contents)==null?void 0:(v=P.twoColumnWatchNextResults)==null?void 0:(H=v.autoplay)==null?void 0:H.autoplay;a=_.sV().resolve(_.J8);S=_.qF(_.Uh);Nmh(S,z,Q,e,a,d);_.WA(K)})};
_.l.movePlayerToWatch=function(F){var q=this,t,u;return _.p(function(J){t=Zb(q.pagePool,"watch");u=t.getPlayerContainer();F.appendTo(u);_.WA(J)})};
_.l.movePlayerToShorts=function(F){var q=this,t,u,J;return _.p(function(g){t=Zb(q.pagePool,"shorts");u=t.getPlayerContainer();(J=F)==null||J.appendTo(u,void 0,!0);_.WA(g)})};
_.l.getPlayerFromWatch=function(){var F=Zb(this.pagePool,"watch");return _.sO(F)};
_.l.getPlayerFromShorts=function(){var F=Zb(this.pagePool,"shorts");return _.sO(F)};
_.l.startLoadingWatch=function(){var F=this,q=Zb(this.pagePool,"watch");this.renderLoadingStateJobId?(_.mI.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.E("web_watch_transition_enable_start_loading_watch_callsite")?fev(this.viewTransitionManager,function(){F.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(q)};
_.l.startLoadingShorts=function(){var F=Zb(this.pagePool,"shorts");this.setActivePage(F)};
_.l.startLoadingLearningJourney=function(){var F=Zb(this.pagePool,"learning_journey_watch");this.setActivePage(F)};
_.l.getCurrentPage=function(){return this.currentPage};
_.l.getDestinationPageType=function(){return this.destinationPageType};
_.l.getCurrentData=function(){return this.data};
_.l.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.l.isOnShorts=function(){var F;return((F=this.currentPage)==null?void 0:F.is)==="ytd-shorts"};
_.l.isWatchPage=function(F){return!!F&&(F.is==="ytd-watch-flexy"||F.is==="ytd-watch-fixie"||F.is==="ytd-watch-grid")};
_.l.preparePage=function(F,q){var t=this,u=function(){var Y=t.pagePool.preparePage(F,t.currentPage,q);Y&&t.attachPage(Y)},J=function(Y){_.yw(Y,q);
_.bz(Y)};
if(_.E("kevlar_enable_mss_page_modules_client")){var g=this.getModuleNameForType(F);if(g=K49(_.sV().resolve(_.dm),[g])){g.then(u.bind(this)).catch(J.bind(this));return}}try{u()}catch(Y){J(Y)}};
_.l.lazyPrepareCriticalPages=function(F,q){F=_.Tr(q)||F;_.E("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(F).then(this.maybePrepareWatchPage.bind(this,F)):this.maybePrepareWatchPage(F)};
_.l.maybePrepareWatchPage=function(F){F==="watch"||F==="learning_journey_watch"&&_.E("web_watch_learning_journey_disable_lazy_pages")||_.W2(_.mI,this.preparePage.bind(this,"watch"))};
_.l.downloadPageModules=function(F){F=this.getModuleNameForType(F);var q=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);q.delete(F);var t=_.sV().resolve(_.dm);t.JSC$18542_loadModules(F);return t.JSC$18542_loadModules.apply(t,_.mZ(q))};
_.l.renderPageLoadingState=function(F,q){this.preparePage(F,q);var t=Zb(this.pagePool,F);t.loadingData&&(t.loadingData.endpoint=q);t.loading=!0;this.setActivePage(t);F!=="watch"&&F!=="learning_journey_watch"||_.Q0(this.hostElement,"yt-guide-close")};
_.l.prepareForNavigation=function(F,q){var t=this;if(this.currentPage&&this.data){var u=_.Tr(q)||F;this.destinationPageType=u;bV(this.data)==u&&_.Q0(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((F==="watch"||F==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.mI.cancelJob(this.renderLoadingStateJobId);_.sV().resolve(_.m4).deactivate(q);_.Ze(_.mI,function(){var g=t.viewTransitionManager,Y=t.currentPage;
if(g.isLockupToWatchTransitionEnabled&&g.isLockupThumbnailRegistrationEnabled&&Y)if(g.registeredLockupThumbnail)g.lockupThumbnailRegisteredFromWatchEndpoint&&_.bz(new _.D0("Lockup thumbnail already registered from watch endpoint."));else{a:{var Q=_.n(q,_.Fw);if(Q==null?0:Q.videoId){var e="yt-lockup-view-model ."+_.YJt(Q.videoId)+" yt-thumbnail-view-model";Y=Y.querySelectorAll(e);if(Y.length===1){Q=Y[0];break a}Y.length>1?_.bz(new _.D0("Multiple LockupViewModel thumbnails found for videoId: "+Q.videoId+
". Selector: "+e)):_.E("web_thumbnail_to_watch_transition_debug")&&_.bz(new _.D0("No LockupViewModel thumbnail found for videoId: "+Q.videoId+". Selector: "+e))}Q=void 0}Q&&(g.registeredLockupThumbnail=Q,g.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.bsh(g,Q))}});
var J=this.data;this.renderLoadingStateJobId=_.Ze(_.mI,function(){fev(t.viewTransitionManager,function(){if(t.data!=J){var g=Zb(t.pagePool,F);t.setActivePage(g)}else t.renderPageLoadingState(F,q);t.renderLoadingStateJobId=0})},150)}};
_.l.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var F=new _.nA(1);this.currentPage.pageDisposeJobs.forEach(function(q){_.MH(F,q)});
this.pageDisposeJobsets.set(this.currentPage,F)}};
_.l.flushPageDisposeJobset=function(F){var q=this.pageDisposeJobsets.get(F);q&&(q.flushJobs(),this.pageDisposeJobsets.delete(F))};
_.l.onYtStopOldPlayer=function(F,q){q=q===void 0?!1:q;var t,u=_.ev("kevlar_new_stop_old_player_logic_pages");if(_.E("kevlar_check_current_page_on_stop_old_player")&&(u.length===0||this.currentPage&&u.includes(this.currentPage.is)))if(this.data&&(t=bV(this.data)),bV(F)===t&&this.currentPage&&bV(this.currentPage.data)!==t)var J=_.sO(this.currentPage);else t=bV(this.data),J=Zb(this.pagePool,t),J=_.sO(J);else this.data&&(t=bV(this.data),J=Zb(this.pagePool,t),J=_.sO(J));if(J)if(F=bV(F),u=Zb(this.pagePool,
F),u=_.sO(u),J==u)q&&!_.E("kevlar_disable_preemptive_player_reset")&&J.resetForNewPlayback();else if(q=t==="watch"&&F!=="watch",!q||F==="shorts"||_.tfn()&&!h_w(this.data)&&F!=="yts-products"&&F!="mini_app"&&F!="playables")t=_.sV().resolve(_.m4),q&&t.isMiniplayerActive()&&t.pipController.getWindow()||J.stop()};
_.l.isDifferentBrowseId=function(F,q){F=_.n(F,_.Gr);q=_.n(q,_.Gr);return(F==null?void 0:F.browseId)!==(q==null?void 0:q.browseId)};
_.JJ.Object.defineProperties(M5,{template:{configurable:!0,enumerable:!0,get:function(){return yPT()}}});
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],M5.prototype,"ytActionHandlerBehavior",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-page-manager"})],M5);_.b(M5,"ytd-page-manager",function(){return yPT()},{mode:_.Nc("kevlar_poly_si_batch_j081")?1:2});var CPC;var TF=function(){var F=_.x.apply(this,arguments)||this;F.useListItemStyles=_.E("web_list_item_style_for_menu_items");F.systemIcons=_.E("kevlar_system_icons");return F};
_.M(TF,_.x);_.l=TF.prototype;_.l.ready=function(){this.hostElement.addEventListener("tap",_.kM(this,this.onEndpointTapExtra))};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){var F;(F=_.ep(this.hostElement).querySelector("tp-yt-paper-item"))==null||F.focus()};
_.l.onEndpointTapExtra=function(F){_.Q0(this.hostElement,"iron-activate");var q=this.data.navigationEndpoint;q&&_.n(q,_.$_o)&&(F.stopPropagation(),_.rY(this.hostElement,[q],this.hostElement))};
_.l.computeIcon=function(F){return F&&F.iconType?_.Ek(F.iconType):""};
_.l.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.forceUpdateStylesOnLegacyBrowsers=function(){_.E("kevlar_legacy_browsers")&&_.ws(this.hostElement)};
TF.prototype.forceUpdateStylesOnLegacyBrowsers=TF.prototype.forceUpdateStylesOnLegacyBrowsers;TF.prototype.onFocus=TF.prototype.onFocus;_.C([_.D(_.En),_.V("design:type",Object)],TF.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.Oc1.YtConditionalRendererBehavior),_.V("design:type",Object)],TF.prototype,"ytConditionalRendererBehavior",void 0);_.C([_.D(_.mu.YtEndpointBehavior),_.V("design:type",Object)],TF.prototype,"ytEndpointBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],TF.prototype,"data",void 0);_.C([_.O({computed:"computeIcon(data.icon)",value:""}),_.V("design:type",String)],TF.prototype,"icon",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],TF.prototype,"useIcons",void 0);_.C([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.V("design:type",Boolean)],TF.prototype,"hasSeparator",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],TF.prototype,"useListItemStyles",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],TF.prototype,"systemIcons",void 0);_.C([_.EB("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TF.prototype,"onFocus",null);_.C([_.za("useIcons","hasSeparator"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TF.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.b(TF,"ytd-menu-navigation-item-renderer",function(){if(CPC===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);CPC=F}F=CPC;return F},{mode:1});var di5;var Vf9=_.FK(_.oD("DOWNLOAD",{},"Download")),UiC=_.FK(_.oD("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),Si3=_.FK(_.oD("RETRY",{},"Retry")),haC=_.FK(_.oD("PAUSE_DOWNLOADING",{},"Pause downloading")),Ka7=_.FK(_.oD("RESUME_DOWNLOAD",{},"Resume download")),GF=function(){var F=_.x.apply(this,arguments)||this;F.primaryText=Vf9;F.primaryIconType="OFFLINE_DOWNLOAD";F.hasSecondaryContent=!1;F.hasSeparator=!1;F.transferState="TRANSFER_STATE_UNKNOWN";F.isVideoDeletedByUser=!1;F.isHidden=!1;F.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return F};
_.M(GF,_.x);_.l=GF.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){this.primaryEntry.focus()};
_.l.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.l.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.l.getRemoveAction=function(){return"ACTION_REMOVE"};
_.l.sendOfflineAction=function(F){var q=this.data.serviceEndpoint;if(q){var t=_.n(q,_.EO);t&&F&&(t.action=F);this.ytComponentBehavior.resolveCommand(q)}};
_.l.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=Vf9,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=Vf9;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=Si3;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=UiC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=Ka7;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=UiC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
haC;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=UiC;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=UiC;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=Vf9,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.l.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.l.isSecondaryEntryHidden=function(F,q){return F?!0:!q};
_.l.computeHasSeparator=function(){var F;return!((F=this.data)==null||!F.hasSeparator)};
GF.prototype.showHideButton=GF.prototype.showHideButton;GF.prototype.onTransferStateChange=GF.prototype.onTransferStateChange;GF.prototype.onFocus=GF.prototype.onFocus;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],GF.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],GF.prototype,"ytComponentBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],GF.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],GF.prototype,"primaryText",void 0);_.C([_.O(),_.V("design:type",String)],GF.prototype,"primaryIconType",void 0);_.C([_.O(),_.V("design:type",String)],GF.prototype,"primaryAction",void 0);_.C([_.O(),_.V("design:type",Object)],GF.prototype,"secondaryText",void 0);_.C([_.O(),_.V("design:type",String)],GF.prototype,"secondaryIconType",void 0);
_.C([_.O(),_.V("design:type",String)],GF.prototype,"secondaryAction",void 0);_.C([_.O(),_.V("design:type",Object)],GF.prototype,"hasSecondaryContent",void 0);_.C([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.V("design:type",Object)],GF.prototype,"hasSeparator",void 0);_.C([_.O({selector:_.VX,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.V("design:type",String)],GF.prototype,"transferState",void 0);
_.C([_.O({selector:_.zzo,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.V("design:type",Object)],GF.prototype,"isVideoDeletedByUser",void 0);_.C([_.O(),_.V("design:type",Object)],GF.prototype,"isHidden",void 0);_.C([_.O({selector:_.RzM,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.V("design:type",Object)],GF.prototype,"offlineabilityState",void 0);_.C([_.Ms("#primary-entry"),_.V("design:type",Object)],GF.prototype,"primaryEntry",void 0);
_.C([_.EB("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"onFocus",null);_.C([_.Wh("transferState","isVideoDeletedByUser"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"onTransferStateChange",null);_.C([_.Wh("offlineabilityState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GF.prototype,"showHideButton",null);
_.b(GF,"ytd-menu-service-item-download-renderer",function(){if(di5===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);di5=F}F=di5;return F},{mode:1});var B_y;var Db=function(){var F=_.x.apply(this,arguments)||this;F.useIcons=!1;F.systemIcons=_.E("kevlar_system_icons");F.useListItemStyles=_.E("web_list_item_style_for_menu_items");return F};
_.M(Db,_.x);_.l=Db.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){var F;(F=_.ep(this.hostElement).querySelector("tp-yt-paper-item"))==null||F.focus()};
_.l.onTap=function(){_.Zl(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var F=this.data.serviceEndpoint,q=this.data.command;if(F){var t,u=(t=this.data)==null?void 0:t.trackingParams;t=!!_.n(F,_.Zue);u&&t&&_.u1().dispatch(_.pj({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:u}}));this.ytComponentBehavior.resolveCommand(F)||_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}})}q&&(this.ytComponentBehavior.resolveCommand(q)||_.rY(this.hostElement,
[q],this.hostElement))};
_.l.computeIcon=function(F){return F&&F.iconType?_.Ek(F.iconType):""};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.computeHasSeparator=function(){var F;return!((F=this.data)==null||!F.hasSeparator)};
_.l.forceUpdateStylesOnLegacyBrowsers=function(){_.E("kevlar_legacy_browsers")&&_.ws(this.hostElement)};
_.l.computeIsSelected=function(){var F;return!((F=this.data)==null||!F.isSelected)};
Db.prototype.forceUpdateStylesOnLegacyBrowsers=Db.prototype.forceUpdateStylesOnLegacyBrowsers;Db.prototype.onTap=Db.prototype.onTap;Db.prototype.onFocus=Db.prototype.onFocus;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],Db.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Db.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.Oc1.YtConditionalRendererBehavior),_.V("design:type",Object)],Db.prototype,"ytConditionalRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Db.prototype,"data",void 0);_.C([_.O({computed:"computeIcon(data.icon)",value:""}),_.V("design:type",String)],Db.prototype,"icon",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Db.prototype,"useIcons",void 0);
_.C([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Db.prototype,"hasSeparator",void 0);_.C([_.O({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Db.prototype,"isSelected",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Db.prototype,"systemIcons",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Db.prototype,"useListItemStyles",void 0);
_.C([_.EB("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Db.prototype,"onFocus",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Db.prototype,"onTap",null);_.C([_.za("useIcons","hasSeparator"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Db.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.b(Db,"ytd-menu-service-item-renderer",function(){if(B_y===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);B_y=F}F=B_y;return F},{mode:2});var Law;var WI=function(){return _.x.apply(this,arguments)||this};
_.M(WI,_.x);_.l=WI.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onDataChanged=function(){var F=this;_.tJ(this,function(){F.postbox.openDialog();F.focus();_.Q0(F.hostElement,"yt-refit")})};
_.l.focus=function(){this.postbox.focus()};
_.l.closePopup=function(){_.ec(this.hostElement,"yt-close-popup-action")};
_.l.onYtCommentboxDismiss=function(){this.closePopup()};
WI.prototype.onYtCommentboxDismiss=WI.prototype.onYtCommentboxDismiss;WI.prototype.onDataChanged=WI.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],WI.prototype,"data",void 0);_.C([_.O({value:function(){return _.oD("SBOX_INAPPROPRIATE_CANCEL")}}),
_.V("design:type",String)],WI.prototype,"closeButtonAriaLabel",void 0);_.C([_.Ms("#postbox"),_.V("design:type",Object)],WI.prototype,"postbox",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WI.prototype,"onDataChanged",null);_.C([_.EB("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WI.prototype,"onYtCommentboxDismiss",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],WI);
_.b(WI,"ytd-backstage-post-dialog-popup-renderer",function(){if(Law!==void 0)return Law;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Law=F},{mode:1});var fN7;var O2=function(){return _.x.apply(this,arguments)||this};
_.M(O2,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],O2.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],O2);
_.b(O2,"ytd-sender-id-section-renderer",function(){if(fN7!==void 0)return fN7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
return fN7=F},{mode:1});var aNs;var jM3;var cPv;var PI=function(){return _.x.apply(this,arguments)||this};
_.M(PI,_.x);PI.prototype.closePopup=function(){_.ec(this.hostElement,"yt-close-popup-action")};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],PI.prototype,"data",void 0);_.C([_.Vu({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],PI);
_.b(PI,"yt-community-post-section-renderer",function(){if(cPv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;jM3===void 0&&(jM3=document.createElement("template"));var u=jM3;t.call(q,u.content.cloneNode(!0),F.content.firstChild);cPv=F}F=cPv;return F},{mode:2});var F2s;var qmT;var tH3;var uuv;var JrC;var sov;var xX=function(){return _.x.apply(this,arguments)||this};
_.M(xX,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],xX.prototype,"data",void 0);_.C([_.Vu({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],xX);
_.b(xX,"yt-share-start-time-with-context-renderer",function(){if(sov===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;JrC===void 0&&(JrC=document.createElement("template"));var u=JrC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);sov=F}F=sov;return F},{mode:2});var Az=function(){return _.x.apply(this,arguments)||this};
_.M(Az,_.x);Az.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Az.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Az.prototype,"data",void 0);_.C([_.Vu({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Az);
_.b(Az,"yt-share-panel-title-v15-renderer",function(){if(uuv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;tH3===void 0&&(tH3=document.createElement("template"));var u=tH3;t.call(q,u.content.cloneNode(!0),F.content.firstChild);uuv=F}F=uuv;return F},{mode:2});var vI=function(){return _.x.apply(this,arguments)||this};
_.M(vI,_.x);vI.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],vI.prototype,"data",void 0);_.C([_.Vu({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],vI);
_.b(vI,"yt-share-panel-header-renderer",function(){if(qmT===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;F2s===void 0&&(F2s=document.createElement("template"));var u=F2s;t.call(q,u.content.cloneNode(!0),F.content.firstChild);qmT=F}F=qmT;return F},{mode:2});var g1Q;var lL3;var I3=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-open-popup-action":"onOpen"};return F};
_.M(I3,_.x);_.l=I3.prototype;_.l.attached=function(){this.onOpen()};
_.l.updateTimeSecs=function(F){this.currentTimeSecs=F};
_.l.computeTimeString=function(F){F=F.toString();var q=Math.floor(Number(F)/3600),t=Math.floor(Number(F)%3600%60);return(q>0?q+":":"")+_.Q2(Math.floor(Number(F)%3600/60),q>0?2:1)+":"+_.Q2(t,2)};
_.l.computeTimeStringA11y=function(F){F=_.nQM({seconds:F});var q=F.hours===void 0?0:F.hours,t=F.minutes===void 0?0:F.minutes,u=F.seconds===void 0?0:F.seconds;F=[];if(q>0){var J=xUT().format({hours:q});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Kj)||q>9999)J=J.replace(q.toString(),_.M$y(q)),_.Kj==="km"&&(J=J.replace(".",","));F.push(J)}t>0&&F.push(xUT().format({minutes:t}));u>0&&F.push(xUT().format({seconds:u}));q="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");t=_.Kj==
"am"?"{0}\u1363 ":_.Kj=="fa"?"{0}\u060c\u200f ":_.Kj=="my"?"{0} - ":_.Kj=="ne"?"{0},":_.Kj=="th"?"{0} ":_.Kj=="ur"?"{0}\u060c ":_.Kj=="ar"||_.Kj=="ar-XB"?"{0} \u0648":_.Kj=="ja"||_.Kj=="zh-CN"||_.Kj=="zh-HK"||_.Kj=="zh-TW"?"{0}\u3001":"{0}, ";u=_.Kj=="am"?"\u1363 ":_.Kj=="fa"?"\u060c\u200f ":_.Kj=="my"?" - ":_.Kj=="th"?" ":_.Kj=="ur"?"\u060c ":_.Kj=="ar"||_.Kj=="ar-XB"?" \u0648":_.Kj=="ja"||_.Kj=="zh-CN"||_.Kj=="zh-HK"||_.Kj=="zh-TW"?"\u3001":", ";J=_.Kj=="am"?" \u12a5\u1293 {0}":_.Kj=="as"?" \u0986\u09f0\u09c1 {0}":
_.Kj=="az"?" v\u0259 {0}":_.Kj=="bn"?" \u098f\u09ac\u0982 {0}":_.Kj=="cs"?" a\u00a0{0}":_.Kj=="de"?" und {0}":_.Kj=="el"?" \u03ba\u03b1\u03b9 {0}":_.Kj=="eu"?" eta {0}":_.Kj=="fa"?"\u060c \u0648 {0}":_.Kj=="fil"?", at {0}":_.Kj=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Kj=="hi"?", \u0914\u0930 {0}":_.Kj=="hu"?" \u00e9s {0}":_.Kj=="hy"?" \u0587 {0}":_.Kj=="id"?", dan {0}":_.Kj=="iw"?" \u05d5-{0}":_.Kj=="ja"?"\u3001{0}":_.Kj=="ka"?" \u10d3\u10d0 {0}":_.Kj=="km"?" \u1793\u17b7\u1784 {0}":_.Kj=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Kj=="ko"?" \ubc0f {0}":_.Kj=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Kj=="lt"?" ir {0}":_.Kj=="lv"?" un {0}":_.Kj=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Kj=="mr"?" \u0906\u0923\u093f {0}":_.Kj=="ms"?" dan {0}":_.Kj=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Kj=="ne"?" \u0930 {0}":_.Kj=="or"?", \u0b13 {0}":_.Kj=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Kj=="ro"?" \u0219i {0}":_.Kj=="si"?", \u0dc3\u0dc4 {0}":_.Kj=="sk"?" a {0}":_.Kj=="sl"?" in {0}":_.Kj=="sq"?" dhe {0}":_.Kj=="sv"?" och {0}":
_.Kj=="sw"?" na {0}":_.Kj=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Kj=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Kj=="th"?" \u0e41\u0e25\u0e30{0}":_.Kj=="tr"?" ve {0}":_.Kj=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Kj=="uz"?" va {0}":_.Kj=="vi"?" v\u00e0 {0}":_.Kj=="zh-HK"?"\u53ca{0}":_.Kj=="zu"?", ne-{0}":_.Kj=="af"||_.Kj=="nl"?" en {0}":_.Kj=="ar"||_.Kj=="ar-XB"?" \u0648{0}":_.Kj=="be"||_.Kj=="uk"?" \u0456 {0}":_.Kj=="en-GB"||_.Kj=="en-IN"?" and {0}":_.Kj=="en"||_.Kj=="en-XA"?
", and {0}":_.Kj=="et"||_.Kj=="fi"?" ja {0}":_.Kj=="fr"||_.Kj=="fr-CA"?" et {0}":_.Kj=="zh-CN"||_.Kj=="zh-TW"?"\u548c{0}":_.Kj=="da"||_.Kj=="is"||_.Kj=="no"?" og {0}":_.Kj=="es"||_.Kj=="es-419"||_.Kj=="es-US"?" y {0}":_.Kj=="kk"||_.Kj=="lo"||_.Kj=="mn"?", {0}":_.Kj=="bg"||_.Kj=="mk"||_.Kj=="ru"||_.Kj=="sr"?" \u0438 {0}":_.Kj=="gl"||_.Kj=="it"||_.Kj=="pt-BR"||_.Kj=="pt-PT"?" e {0}":" i {0}";var g=_.Kj=="am"?"{0} \u12a5\u1293 {1}":_.Kj=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Kj=="az"?"{0} v\u0259 {1}":
_.Kj=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Kj=="de"?"{0} und {1}":_.Kj=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Kj=="eu"?"{0} eta {1}":_.Kj=="fa"?"{0} \u0648 {1}":_.Kj=="fil"?"{0} at {1}":_.Kj=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Kj=="hi"?"{0} \u0914\u0930 {1}":_.Kj=="hu"?"{0} \u00e9s {1}":_.Kj=="hy"?"{0} \u0587 {1}":_.Kj=="iw"?"{0} \u05d5-{1}":_.Kj=="ja"?"{0}\u3001{1}":_.Kj=="ka"?"{0} \u10d3\u10d0 {1}":_.Kj=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Kj=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Kj=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Kj=="ko"?"{0} \ubc0f {1}":_.Kj=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Kj=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Kj=="lt"?"{0} ir {1}":_.Kj=="lv"?"{0} un {1}":_.Kj=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Kj=="mn"?"{0}, {1}":_.Kj=="mr"?"{0} \u0906\u0923\u093f {1}":_.Kj=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Kj=="ne"?"{0} \u0930 {1}":_.Kj=="or"?"{0} \u0b13 {1}":_.Kj=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Kj=="ro"?"{0} \u0219i {1}":_.Kj==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Kj=="sl"?"{0} in {1}":_.Kj=="sq"?"{0} dhe {1}":_.Kj=="sv"?"{0} och {1}":_.Kj=="sw"?"{0} na {1}":_.Kj=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Kj=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Kj=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Kj=="tr"?"{0} ve {1}":_.Kj=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Kj=="uz"?"{0} va {1}":_.Kj=="vi"?"{0} v\u00e0 {1}":_.Kj=="zh-HK"?"{0}\u53ca{1}":_.Kj=="zu"?"{0} ne-{1}":_.Kj=="af"||_.Kj=="nl"?"{0} en {1}":_.Kj=="ar"||_.Kj==
"ar-XB"?"{0} \u0648{1}":_.Kj=="be"||_.Kj=="uk"?"{0} \u0456 {1}":_.Kj=="cs"||_.Kj=="sk"?"{0} a\u00a0{1}":_.Kj=="et"||_.Kj=="fi"?"{0} ja {1}":_.Kj=="fr"||_.Kj=="fr-CA"?"{0} et {1}":_.Kj=="id"||_.Kj=="ms"?"{0} dan {1}":_.Kj=="zh-CN"||_.Kj=="zh-TW"?"{0}\u548c{1}":_.Kj=="da"||_.Kj=="is"||_.Kj=="no"?"{0} og {1}":_.Kj=="es"||_.Kj=="es-419"||_.Kj=="es-US"?"{0} y {1}":_.Kj=="bg"||_.Kj=="mk"||_.Kj=="ru"||_.Kj=="sr"?"{0} \u0438 {1}":_.Kj=="en"||_.Kj=="en-GB"||_.Kj=="en-IN"||_.Kj=="en-XA"?"{0} and {1}":_.Kj==
"gl"||_.Kj=="it"||_.Kj=="pt-BR"||_.Kj=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Kj==="sq"?(J=J.replace("dhe","e"),g=g.replace("dhe","e")):_.Kj==="th"?(u=u.replace("{0}"," {0}"),g=g.replace("{0}","{0} "),g=g.replace("{1}"," {1}")):_.Kj==="ne"?u=",":_.Kj==="zh-CN"?u="":q.includes(_.Kj)&&(u=" ");return F.length<2?F.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(_.Kj)?F.length===2?
g.replace("{0}",F[0]).replace("{1}",F[1]):t.replace("{0}",F[0])+F.slice(1,-1).join(u)+J.replace("{0}",F[F.length-1]):F.join(u)};
_.l.getTimeParam=function(){return fP9(this.timeString)};
_.l.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var F={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},q;_.vQ(_.DP(),(q=this.data)==null?void 0:q.trackingParams,F,7)};
_.l.onChangeStartAtTimestamp=function(){for(var F=this.startAtTimestamp.value.split(":"),q=0,t=1,u=F.length-1;u>=0;u--)q+=Number(F[u])*t,t*=60;this.updateTimeSecs(q);this.setTimestamp()};
_.l.onOpen=function(){var F=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var q=_.g0();q?q.getPlayerPromise().then(function(t){t=t.getCurrentTime();F.updateTimeSecs(t)}):Oj9()&&this.updateTimeSecs(Oj9())};
_.l.setTimestamp=function(){var F=Math.floor(this.currentTimeSecs);_.ec(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!F,timestamp:F||""}])};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],I3.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],I3.prototype,"data",void 0);_.C([_.O({value:!1,notify:!0}),_.V("design:type",Boolean)],I3.prototype,"isStartAtChecked",void 0);_.C([_.O(),_.V("design:type",Number)],I3.prototype,"currentTimeSecs",void 0);
_.C([_.O({computed:"computeTimeString(currentTimeSecs)"}),_.V("design:type",String)],I3.prototype,"timeString",void 0);_.C([_.O({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.V("design:type",String)],I3.prototype,"timeStringA11y",void 0);_.C([_.Ms("#start-at-timestamp"),_.V("design:type",Object)],I3.prototype,"startAtTimestamp",void 0);_.C([_.Vu({is:"yt-start-at-renderer",disableElementRegistration:!0})],I3);
_.b(I3,"yt-start-at-renderer",function(){if(lL3===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;g1Q===void 0&&(g1Q=document.createElement("template"));var u=g1Q;t.call(q,u.content.cloneNode(!0),F.content.firstChild);lL3=F}F=lL3;return F},{mode:2});var XY3;var Ymy;var pYs=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"]]),Qo9=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"]]),e0y=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var Zyv={};Zyv.YtBindingExpressionsBehavior={identity:_.I_,msg:function(F,q){q=q===void 0?{}:q;return _.oD(F,q,F)},
msgPlural:function(F,q){return _.nJ(F,q)},
getMusicIconFromType:function(F){if(_.E("music_web_enable_icon_wil"))F=_.Ek(F);else if(Qo9.has(F))F="yt-sys-icons:"+Qo9.get(F);else{var q=pYs.get(F)||_.Ek(F).split(":")[1];q=_.a8P(q);var t;F=((t=e0y.get(F))!=null?t:"yt-sys-icons:")+q}return F}};var R0D;var rrs;var NpT;var wYs=document.head,iyD=wYs.appendChild,k2C;if(NpT===void 0){var E1T=document.createElement("template");_.G(E1T,'\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>');NpT=E1T}k2C=NpT;iyD.call(wYs,k2C.content);var HI=function(){var F=_.x.apply(this,arguments)||this;F.screenLayer=7;return F};
_.M(HI,_.x);HI.prototype.getScreenLayer=function(){return this.screenLayer};
HI.prototype.onTap=function(F){F&&F.detail&&(F.detail.x||F.detail.y)&&_.ep(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.RD(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(F=this.getScreenLayer(),_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:F}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.JJ.Object.defineProperties(HI.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()}}});
HI.prototype.onTap=HI.prototype.onTap;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],HI.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],HI.prototype,"data",void 0);_.C([_.W("data.title"),_.V("design:type",Object),_.V("design:paramtypes",[])],HI.prototype,"title",null);
_.C([_.W("data.serviceName"),_.V("design:type",String),_.V("design:paramtypes",[])],HI.prototype,"icon",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],HI.prototype,"onTap",null);_.C([_.Vu({is:"yt-share-target-renderer",disableElementRegistration:!0})],HI);
_.b(HI,"yt-share-target-renderer",function(){if(rrs===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;R0D===void 0&&(R0D=document.createElement("template"));var u=R0D;t.call(q,u.content.cloneNode(!0),F.content.firstChild);rrs=F}F=rrs;return F},{mode:2});var z0D;var o1T;var mw=function(){var F=_.x.apply(this,arguments)||this;F.SHARE_TARGET_WIDTH=70;F.SHARE_TARGET_MARGIN_RIGHT=8;F.PAGE_SCROLL_SPEED=9;F.actionMap={"yt-share-panel-reset-action":"onReset_"};return F};
_.M(mw,_.x);_.l=mw.prototype;_.l.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.l.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.ep(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.ep(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.l.onReset_=function(){if(_.ep(this.hostElement).querySelector("#list")){var F=_.ep(this.hostElement).querySelector("#list");var q=_.ep(this.hostElement).querySelector("#list");var t=q.offsetLeft,u=q.offsetParent;u||_.ihj(q)!="fixed"||(u=_.Cs(q).documentElement);if(u){if(_.QZ&&!_.Zf(58)){var J=_.GvC(u);t+=J.left}else Number(_.bX3)>=8&&!(Number(_.bX3)>=9)&&(J=_.GvC(u),t-=J.left);q=_.M5n(u)?u.clientWidth-(t+q.offsetWidth):t}else q=t;i45(F,q);this.updateScrollButtons_()}};
_.l.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.l.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.l.onScrollWheel_=function(F){F.stopPropagation();F.preventDefault();var q=wi7(_.ep(this.hostElement).querySelector("#list"));F=Math.abs(F.deltaX)>Math.abs(F.deltaY)?F.deltaX:F.deltaY;i45(_.ep(this.hostElement).querySelector("#list"),q+F);this.updateScrollButtons_()};
_.l.smoothScrollByOnePage_=function(F){var q=_.ep(this.hostElement).querySelector("#list"),t=(Math.floor(q.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,u=wi7(q),J=t*(F?1:-1),g=this.PAGE_SCROLL_SPEED,Y=this.updateScrollButtons_.bind(this),Q=0,e;(function N(){Q+=g;e=Q/t*2;i45(q,u+J*(e<1?e*e:-e*e+4*e-2));Q<t?window.requestAnimationFrame(N):Y()})()};
_.l.updateScrollButtons_=function(){var F=wi7(_.ep(this.hostElement).querySelector("#list")),q=_.ep(this.hostElement).querySelector("#list").scrollWidth-_.ep(this.hostElement).querySelector("#list").clientWidth;_.ep(this.hostElement).querySelector("#scroll-button-back").hidden=F<=0;_.ep(this.hostElement).querySelector("#scroll-button-forward").hidden=F>=q};
mw.prototype.onScrollWheel_=mw.prototype.onScrollWheel_;mw.prototype.onDataChanged_=mw.prototype.onDataChanged_;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],mw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],mw.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(Zyv.YtBindingExpressionsBehavior),_.V("design:type",Object)],mw.prototype,"ytBindingExpressionsBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],mw.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],mw.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mw.prototype,"onDataChanged_",null);_.C([_.EB("wheel"),_.V("design:type",Function),_.V("design:paramtypes",[WheelEvent]),_.V("design:returntype")],mw.prototype,"onScrollWheel_",null);
_.C([_.Vu({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],mw);
_.b(mw,"yt-third-party-share-target-section-renderer",function(){if(o1T===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;z0D===void 0&&(z0D=document.createElement("template"));var u=z0D;t.call(q,u.content.cloneNode(!0),F.content.firstChild);o1T=F}F=o1T;return F},{mode:2});var $X=function(){return _.x.apply(this,arguments)||this};
_.M($X,_.x);$X.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"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$X.prototype,"data",void 0);_.C([_.Vu({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],$X);
_.b($X,"yt-third-party-network-section-renderer",function(){if(Ymy===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;XY3===void 0&&(XY3=document.createElement("template"));var u=XY3;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Ymy=F}F=Ymy;return F},{mode:2});_.ei(_.ld(function(F){return _.Z("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.Z("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.Z(_.Tl,{data:function(){return F.data().firstPartyItems}},{listItemViewModel:_.uE})))},"gh"),"first-party-network-section-view-model",{props:{data:_.NH}});var n1s=_.LZ(["data:image/svg+xml;charset=UTF-8;base64,",""]),bA=function(){var F=_.x.apply(this,arguments)||this;F.screenLayer=7;F.qrCodeEnabled=_.E("web_enable_sharing_qr_code");F.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return F};
_.M(bA,_.x);_.l=bA.prototype;_.l.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"}}}};
_.l.attached=function(){this.JSC$20039_scroller&&(this.JSC$20039_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20039_scroller.attached&&typeof this.JSC$20039_scroller.attached==="function"&&this.JSC$20039_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.l.onDataChanged=function(){var F=this,q;(q=this.data)!=null&&q.contents&&(this.hostElement.setAttribute("links-only","true"),_.rs(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.tJ(this,function(){_.Q0(F.hostElement,"yt-refit");F.focusSharePanelHeader()}))};
_.l.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.l.handleSetTimestamp=function(F){var q=this.shortUrl();F.isSet&&(q=_.a8(q,"t",F.timestamp));this.maybeRenderQrCode(q)};
_.l.shortUrl=function(){var F,q=(F=this.data)==null?void 0:F.contents;if(q)for(F=0;F<q.length;F++){var t=void 0,u=void 0;if((t=q[F])==null?0:(u=t.thirdPartyNetworkSection)==null?0:u.copyLinkContainer){var J=u=t=void 0;return(J=_.n((t=q[F])==null?void 0:(u=t.thirdPartyNetworkSection)==null?void 0:u.copyLinkContainer,kDD))==null?void 0:J.shortUrl}}};
_.l.maybeRenderQrCode=function(F){var q=this,t,u,J,g,Y,Q,e,r,N;return _.p(function(w){if(w.nextAddress==1){t=_.ep(q.hostElement).querySelector("#qr-code");if(!q.qrCodeEnabled||!F)return t&&(t.style.display="none"),w.return();u=_.sTt(_.sV().resolve(_.zC),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});J=document.createElement("div");return typeof u==="function"?(u(J),w.jumpTo(2)):w.yield(u,3)}w.nextAddress!=2&&(g=w.yieldResult,g(J));e=(Y=J)==null?void 0:(Q=Y.firstChild)==null?void 0:Q.firstChild;
r=document.createElement("img");N=_.qsW(n1s,btoa(e.outerHTML));r.onload=function(){var k={canvas:t,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:r},z=new tpv;Xhv(z,F);YBD(z,!1,phh(z));var T=z.modules,P=Object.assign({},pNh,k);T=structuredClone(T);k=T.length;var v,H=(v=P.canvas)!=null?v:document.createElement("canvas");v=P.cellSize;z=P.logo;var d,a=(d=P.logoSize)!=null?d:Math.floor(k/4);k%2!==a%2&&a++;var S=P.logoPadding,K=P.backgroundColor;d=k*v;var h=
P.width,c=0;h&&(c=P.padding,c=Math.ceil(c*d/(h-c*2)),H.style.width=h+"px",H.style.height=h+"px");H.width!==d+c*2&&(H.width=d+c*2);H.height!==d+c*2&&(H.height=d+c*2);d=H.getContext("2d");P.autoClear&&d.clearRect(0,0,H.width,H.height);d.fillStyle=K;d.beginPath();d.roundRect(0,0,H.width,H.height,P.borderRadius);d.fill();d.save();d.translate(c,c);if(z)for(H=Math.floor(k-a)/2-S,S=Math.floor(k+a)/2+S,K=H;K<S;K++)for(h=H;h<S;h++)T[K][h]=!1;for(H=0;H<k;H++)for(S=0;S<k;S++)(H<7&&S<7||H<7&&S>=k-7||H>=k-7&&
S<7)&&(T[H][S]=!1);var rf;H=(rf=P.markerColor)!=null?rf:P.color;eih(d,0,0,v,H);eih(d,v*(k-7),0,v,H);eih(d,0,v*(k-7),v,H);switch(P.cellStyle){case 0:rf=T;T=rf.length;H=P.cellSize;d.beginPath();for(S=0;S<T;S++)for(K=0;K<T;K++)rf[S][K]&&d.rect(S*H,K*H,H,H);d.fillStyle=P.color;d.fill();break;case 1:rf=T;T=rf.length;H=P.cellSize;S=H*P.relativeCircleSize;d.fillStyle=P.color;d.beginPath();for(P=0;P<T;P++)for(K=0;K<T;K++)rf[P][K]&&(d.beginPath(),d.ellipse((P+.5)*H,(K+.5)*H,S/2,S/2,0,0,2*Math.PI),d.fill());
d.fill();break;case 2:rf=T;T=rf.length;H=P.cellSize;d.fillStyle=P.color;P=[[1,1],[-1,1],[-1,-1],[1,-1]];d.beginPath();for(S=0;S<T;S++)for(K=0;K<T;K++)if(rf[S][K])d.roundRect(S*H,K*H,H,H,H/2),S+1<T&&rf[S+1][K]&&d.rect(S*H+H/2,K*H,H,H),K+1<T&&rf[S][K+1]&&d.rect(S*H,K*H+H/2,H,H);else{h=S*H+H/2;c=K*H+H/2;for(var Zv=0;Zv<4;Zv++){var kP=_.X(P[Zv]),n3=kP.next().value;kP=kP.next().value;S+n3>=0&&S+n3<T&&K+kP>=0&&K+kP<T&&rf[S+n3][K]&&rf[S][K+kP]&&rf[S+n3][K+kP]&&(n3=Zv*Math.PI/2,kP=H/2,d.moveTo(h+kP*Math.cos(n3),
c+kP*Math.sin(n3)),d.arc(h,c,H/2,n3,n3+Math.PI/2,!1),d.lineTo(h+kP*(Math.cos(n3)-Math.sin(n3)),c+kP*(Math.cos(n3)+Math.sin(n3))),d.lineTo(h+kP*Math.cos(n3),c+kP*Math.sin(n3)))}}d.fill()}z&&d.drawImage(z,(k-a)*v/2,(k-a)*v/2,a*v,a*v);d.restore();t.style.removeProperty("display")};
r.src=_.mt(N);_.WA(w)})};
_.l.hasCommunityPostRenderer=function(){var F,q,t,u;return!!((F=this.data)==null?0:(q=F.header)==null?0:(t=q.sharePanelHeaderRenderer)==null?0:(u=t.communityPost)==null?0:u.communityPostSectionRenderer)};
_.l.onTapClose=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.l.getScreenLayer=function(){return this.screenLayer};
_.l.logSharePanelPage=function(){if(!_.E("enable_share_panel_navigation_logging_fix_on_web")){var F;if((F=this.data)!=null&&F.trackingParams){F=this.data.trackingParams;var q=this.parentClickTrackingParams;q=q?_.Av(q):void 0;var t=_.DP();_.OX(t,21760,q,{layer:7,parentLayer:0});t.graftServerVe(F,void 0,7);_.u1().dispatch(_.pj({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
bA.prototype.onDataChanged=bA.prototype.onDataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],bA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],bA.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],bA.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],bA.prototype,"data",void 0);_.C([_.O({value:_.oD("SBOX_INAPPROPRIATE_CANCEL")}),_.V("design:type",String)],bA.prototype,"closeButtonAriaLabel",void 0);_.C([_.Ms("yt-share-panel-header-renderer"),_.V("design:type",HTMLElement)],bA.prototype,"header",void 0);_.C([_.O({selector:function(F){return F.share.parentClickTrackingParams}}),
_.V("design:type",String)],bA.prototype,"parentClickTrackingParams",void 0);_.C([_.O(),_.V("design:type",Object)],bA.prototype,"qrCodeEnabled",void 0);_.C([_.Ms("#scroller"),_.V("design:type",Object)],bA.prototype,"JSC$20039_scroller",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bA.prototype,"onDataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],bA);
_.b(bA,"ytd-unified-share-panel-renderer",function(){if(aNs!==void 0)return aNs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return aNs=F},{mode:1});var MHs;var yU=function(){var F=_.x.apply(this,arguments)||this;F.modernModal=!0;return F};
_.M(yU,_.x);yU.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
yU.prototype.computeShouldHideOldButtons=function(){var F;return!((F=this.data)==null?0:F.button)};
_.JJ.Object.defineProperties(yU.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var F,q;return(F=this.data)==null?void 0:(q=F.button)==null?void 0:q.buttonRenderer}}});
_.C([_.O(),_.V("design:type",Object)],yU.prototype,"data",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],yU.prototype,"ytEventForwardingBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],yU.prototype,"modernModal",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],yU.prototype,"buttonRendererData",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],yU);
_.b(yU,"ytd-modal-with-title-and-button-renderer",function(){if(MHs!==void 0)return MHs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return MHs=F},{mode:1});var Tpv;var Cm=function(){return _.x.apply(this,arguments)||this};
_.M(Cm,_.x);Cm.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("page-changed",this.page))};
Cm.prototype.pageChangedForBinding=Cm.prototype.pageChangedForBinding;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Cm.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],Cm.prototype,"page",void 0);_.C([_.za("page"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cm.prototype,"pageChangedForBinding",null);
_.C([_.m({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Cm);
_.b(Cm,"ytd-account-item-section-header-renderer",function(){if(Tpv!==void 0)return Tpv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Tpv=F},{mode:1});var G2Q;var db=function(){return _.x.apply(this,arguments)||this};
_.M(db,_.x);db.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"}}}};
db.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.Qd),_.V("design:type",Object)],db.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],db.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!1}),_.V("design:type",Function)],db.prototype,"onAccountItemTap",void 0);
_.C([_.m({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],db);
_.b(db,"ytd-account-item-section-renderer",function(){if(G2Q!==void 0)return G2Q;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return G2Q=F},{mode:1});var Dxv;var W2C;var VU=function(){return _.x.apply(this,arguments)||this};
_.M(VU,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],VU.prototype,"data",void 0);_.C([_.m({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],VU);
_.b(VU,"ytd-accounts-dialog-header-renderer",function(){if(W2C!==void 0)return W2C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return W2C=F},{mode:1});var Oys;var U2=function(){return _.x.apply(this,arguments)||this};
_.M(U2,_.x);U2.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],U2.prototype,"data",void 0);_.C([_.m({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],U2);
_.b(U2,"ytd-google-account-header-renderer",function(){if(Oys!==void 0)return Oys;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Oys=F},{mode:1});var S0=function(){return _.x.apply(this,arguments)||this};
_.M(S0,_.x);S0.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"}}}};
S0.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("page-changed",this.page))};
S0.prototype.pageChangedForBinding=S0.prototype.pageChangedForBinding;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],S0.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],S0.prototype,"page",void 0);
_.C([_.za("page"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],S0.prototype,"pageChangedForBinding",null);_.C([_.m({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],S0);
_.rc()(S0,"ytd-account-section-list-renderer",function(){if(Dxv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);Dxv=F}F=Dxv;return F},{allowedProps:["data"],
mode:1});var P95;var hz=function(){var F=_.x.apply(this,arguments)||this;F.enableHandlesAccountMenuSwitcher=_.E("enable_handles_account_menu_switcher");return F};
_.M(hz,_.x);hz.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
hz.prototype.dataChanged=hz.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],hz.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],hz.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.C([_.Ms("#avatar"),_.V("design:type",Object)],hz.prototype,"avatar",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hz.prototype,"dataChanged",null);_.C([_.m({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],hz);
_.rc()(hz,"ytd-active-account-header-renderer",function(){if(P95===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);P95=F}F=P95;return F},{allowedProps:["data"],
mode:1});var xxT;var Arv;var Km=function(){return _.x.apply(this,arguments)||this};
_.M(Km,_.x);Km.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Km.prototype.onBackTap=function(){_.Q0(this.hostElement,"yt-menu-back-tapped")};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Km.prototype,"data",void 0);_.C([_.m({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Km);
_.rc()(Km,"ytd-simple-menu-header-renderer",function(){if(Arv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);Arv=F}F=Arv;return F},{allowedProps:["data"],
mode:2});var v1v;var BI=function(){return _.x.apply(this,arguments)||this};
_.M(BI,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],BI.prototype,"data",void 0);_.C([_.m({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],BI);
_.b(BI,"ytd-comment-video-thumbnail-header-renderer",function(){if(v1v!==void 0)return v1v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return v1v=F},{mode:1});var ILD;var Lm=function(){return _.x.apply(this,arguments)||this};
_.M(Lm,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Lm.prototype,"data",void 0);_.C([_.m({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Lm);
_.b(Lm,"ytd-abuse-type-selector-renderer",function(){if(ILD!==void 0)return ILD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ILD=F},{mode:1});var Hy5;var fm=function(){return _.x.apply(this,arguments)||this};
_.M(fm,_.x);fm.prototype.attached=function(){var F=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){F.additionalContextInput.focusTextInput()})};
fm.prototype.handleAdditionalContextChanged=function(){var F=this;_.aE(this,"ytd-report-channel-additional-context-update",function(){F.ytdReduxBehavior.dispatch(_.pj({type:"ADDITIONAL_CONTEXT_UPDATED",payload:F.additionalContext}))},300)};
fm.prototype.updateAdditionalContextFromBinding=function(F){this.additionalContext=F.detail.value};
fm.prototype.handleAdditionalContextChanged=fm.prototype.handleAdditionalContextChanged;_.C([_.D(_.s9),_.V("design:type",Object)],fm.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",String)],fm.prototype,"additionalContext",void 0);_.C([_.O({selector:function(F){return F.reportChannelAbuse.additionalContext}}),
_.V("design:type",String)],fm.prototype,"additionalContextRedux",void 0);_.C([_.O(),_.V("design:type",Object)],fm.prototype,"data",void 0);_.C([_.Ms("yt-text-input-form-field-renderer"),_.V("design:type",Object)],fm.prototype,"additionalContextInput",void 0);_.C([_.za("additionalContext"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fm.prototype,"handleAdditionalContextChanged",null);
_.C([_.m({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],fm);
_.b(fm,"ytd-report-channel-modal-additional-context-renderer",function(){if(Hy5!==void 0)return Hy5;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Hy5=F},{mode:1});var mxT;var a3=function(){var F=_.x.apply(this,arguments)||this;F.nextButtonDisabled=null;F.submitEndpoint=null;F.navigationEndpoint=null;F.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return F};
_.M(a3,_.x);_.l=a3.prototype;_.l.computeNextButtonData=function(F,q,t){var u={};q&&(u.navigationEndpoint=q);t&&(u.serviceEndpoint=t);F&&F.buttonRenderer&&_.m7.extend(u,F.buttonRenderer);return u};
_.l.handleReportChannelModalDisableNextButtonAction=function(F){this.setNextButtonIsDisabled(F)};
_.l.handleReportFormEndpointUpdateAction=function(F){this.setNextButtonIsDisabled(!!F.disableSubmitButton);this.resetEndpointData();F.submitEndpoint?this.submitEndpoint=F.submitEndpoint:F.submitNavigationEndpoint&&(this.navigationEndpoint=F.submitNavigationEndpoint)};
_.l.handleSignalActionSubmitForm=function(){var F,q=Object.keys(((F=this.reportChannelAbuseForm)==null?void 0:F.selectedVideoIds)||{}),t;F=((t=this.reportChannelAbuseForm)==null?void 0:t.additionalContext)||"";var u;t=((u=this.reportChannelAbuseForm)==null?void 0:u.impersonatedChannelUrl)||"";var J;if((J=this.data)==null?0:J.submitEndpoint){q={impersonated_channel_url:t,text:F,video_ids:q};var g;_.sV().resolve(_.gN).resolveCommand((g=this.data)==null?void 0:g.submitEndpoint,{form:Object.assign({},
q,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.l.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.l.onYtServiceRequestError=function(F){this.setNextButtonIsDisabled(!1);_.as(this.hostElement,F.detail.error.message)};
_.l.setNextButtonIsDisabled=function(F){this.set("data.nextButton.buttonRenderer.isDisabled",F)};
_.l.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
a3.prototype.onYtServiceRequestError=a3.prototype.onYtServiceRequestError;a3.prototype.onYtServiceRequestCompleted=a3.prototype.onYtServiceRequestCompleted;_.C([_.O(),_.V("design:type",Object)],a3.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],a3.prototype,"nextButtonDisabled",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],a3.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],a3.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],a3.prototype,"submitEndpoint",void 0);_.C([_.O(),_.V("design:type",Object)],a3.prototype,"navigationEndpoint",void 0);_.C([_.O({selector:function(F){return F.reportChannelAbuse}}),
_.V("design:type",Object)],a3.prototype,"reportChannelAbuseForm",void 0);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],a3.prototype,"onYtServiceRequestCompleted",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],a3.prototype,"onYtServiceRequestError",null);
_.C([_.m({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],a3);
_.b(a3,"ytd-report-channel-modal-footer-renderer",function(){if(mxT!==void 0)return mxT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return mxT=F},{mode:1});var $x3;var j0=function(){var F=_.x.apply(this,arguments)||this;F.boundOnTapDismissButton=function(){F.closePopup()};
return F};
_.M(j0,_.x);j0.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
j0.prototype.handleDataChanged=function(){_.j1(this.hostElement)};
j0.prototype.closePopup=function(){_.ec(this.hostElement,"yt-close-popup-action")};
j0.prototype.handleDataChanged=j0.prototype.handleDataChanged;_.C([_.O(),_.V("design:type",Object)],j0.prototype,"boundOnTapDismissButton",void 0);_.C([_.O(),_.V("design:type",Object)],j0.prototype,"data",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j0.prototype,"handleDataChanged",null);_.C([_.m({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],j0);
_.b(j0,"ytd-report-channel-modal-header-renderer",function(){if($x3!==void 0)return $x3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return $x3=F},{mode:1});var bys;var cI=function(){var F=_.x.apply(this,arguments)||this;F.autoValidate=!1;F.invalid=!1;F.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return F};
_.M(cI,_.x);_.l=cI.prototype;_.l.attached=function(){var F=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){F.channelUrlInput.focusTextInput()})};
_.l.disableNextButton=function(F){_.ec(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[F])};
_.l.handleImpersonatedChannelUrlChanged=function(){var F=this;this.disableNextButton(!0);this.invalid=!1;_.aE(this,"ytd-report-channel-impersonated-channel-update",function(){var q=F.impersonatedChannelUrl.trim();F.ytdReduxBehavior.dispatch(_.pj({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:q}));var t;((t=F.data)==null?0:t.submitEndpoint)&&q&&_.sV().resolve(_.gN).resolveCommand(F.data.submitEndpoint,{form:{impersonated_channel_url:q,element:F.hostElement}})},500)};
_.l.handleModifyReportFormCommand=function(F){this.invalid=this.get("modifyReportFormCommand.action",F)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.l.updateInvalidFromBinding=function(F){this.invalid=F.detail.value};
_.l.updateImpersonatedChannelUrlFromBinding=function(F){this.impersonatedChannelUrl=F.detail.value};
cI.prototype.handleImpersonatedChannelUrlChanged=cI.prototype.handleImpersonatedChannelUrlChanged;_.C([_.D(_.s9),_.V("design:type",Object)],cI.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],cI.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],cI.prototype,"autoValidate",void 0);_.C([_.O(),_.V("design:type",Object)],cI.prototype,"invalid",void 0);
_.C([_.O(),_.V("design:type",String)],cI.prototype,"impersonatedChannelUrl",void 0);_.C([_.O({selector:function(F){return F.reportChannelAbuse.impersonatedChannelUrl}}),
_.V("design:type",String)],cI.prototype,"impersonatedChannelUrlRedux",void 0);_.C([_.O(),_.V("design:type",Object)],cI.prototype,"data",void 0);_.C([_.Ms("#text-input"),_.V("design:type",Object)],cI.prototype,"channelUrlInput",void 0);_.C([_.za("impersonatedChannelUrl"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cI.prototype,"handleImpersonatedChannelUrlChanged",null);
_.C([_.m({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],cI);
_.b(cI,"ytd-report-channel-modal-impersonation-renderer",function(){if(bys!==void 0)return bys;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return bys=F},{mode:1});var yr3;var C9w;var FC=function(){return _.x.apply(this,arguments)||this};
_.M(FC,_.x);FC.prototype.onCheckboxToggled=function(F){var q,t,u=(t=_.n((q=this.data)==null?void 0:q.video,_.Jh))==null?void 0:t.videoId;u&&this.ytdReduxBehavior.dispatch(F.target.checked?_.pj({type:"VIDEO_SELECTED",payload:u}):_.pj({type:"VIDEO_UNSELECTED",payload:u}))};
FC.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.JJ.Object.defineProperties(FC.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var F,q=(F=this.data)==null?void 0:F.video;if(!q)return{};var t;F=(t=_.n(q,_.Jh))==null?void 0:t.navigationEndpoint;if(!F)return q;_.n(F==null?void 0:F.commandMetadata,_.EH)&&(_.n(F.commandMetadata,_.EH).ignoreNavigation=!0);return q}}});
_.C([_.O({reflectToAttribute:!0,selector:function(F,q){return q in F.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.V("design:type",Boolean)],FC.prototype,"checked",void 0);_.C([_.O(),_.V("design:type",Object)],FC.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],FC.prototype,"video",null);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],FC.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.s9),_.V("design:type",Object)],FC.prototype,"ytdReduxBehavior",void 0);_.C([_.m({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],FC);
_.b(FC,"ytd-selectable-video-renderer",function(){if(C9w!==void 0)return C9w;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return C9w=F},{mode:1});var qG=function(){var F=_.x.apply(this,arguments)||this;F.monitorScroll=!0;return F};
_.M(qG,_.x);qG.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],qG.prototype,"data",void 0);_.C([_.m({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],qG);
_.b(qG,"ytd-selectable-video-list-renderer",function(){if(yr3!==void 0)return yr3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return yr3=F},{mode:1});var dxD;_.mo("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var ty=function(){return _.x.apply(this,arguments)||this};
_.M(ty,_.x);ty.prototype.onChange=function(F){if(F=_.uL(F).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.E("kevlar_command_handler_migration_killswitch"))_.rY(this.hostElement,F,this.hostElement);else{F=_.X(F);for(var q=F.next();!q.done;q=F.next())this.ytComponentBehavior.resolveCommand(q.value)}};
ty.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
ty.prototype.updateDataToggledFromBinding=function(F){this.set("data.toggled",F.detail.value)};
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],ty.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ty.prototype,"data",void 0);_.C([_.O({computed:"isEnabled(data)"}),_.V("design:type",Boolean)],ty.prototype,"enabled",void 0);_.C([_.m({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],ty);
_.b(ty,"ytd-toggle-item-renderer",function(){if(dxD!==void 0)return dxD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return dxD=F},{mode:1});var VHw;var UxT;var Sm9;var ux=function(){var F=_.x.apply(this,arguments)||this;F.setVisible=!1;F.boundOnSubmitButtonClick=function(){F.onSubmitButtonClick()};
F.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return F};
_.M(ux,_.x);ux.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}}}}}};
ux.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
ux.prototype.onSubmitButtonClick=function(){var F;((F=this.data)==null?0:F.submitEndpoint)&&!_.E("enable_ytc_refunds_submit_form_signal_action")&&_.RD(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
ux.prototype.handleSignalActionSubmitForm=function(){var F;((F=this.data)==null?0:F.submitEndpoint)&&_.RD(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.JJ.Object.defineProperties(ux.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.hiddenByDefault)&&!this.setVisible}}});
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],ux.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ux.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ux.prototype,"setVisible",void 0);_.C([_.O(),_.V("design:type",Object)],ux.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],ux.prototype,"surveyFeedbackData",void 0);_.C([_.O(),_.V("design:type",Object)],ux.prototype,"boundOnSubmitButtonClick",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data","setVisible"),_.V("design:type",Object),_.V("design:paramtypes",[])],ux.prototype,"visibilityHidden",null);_.C([_.Vu({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],ux);
_.b(ux,"yt-flow-footer-renderer",function(){if(Sm9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;UxT===void 0&&(UxT=document.createElement("template"));var u=UxT;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Sm9=F}F=Sm9;return F},{mode:2});var Jy=function(){return _.x.apply(this,arguments)||this};
_.M(Jy,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Jy.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Jy.prototype,"data",void 0);_.C([_.O({selector:function(F){return F.ypc.surveyFeedbackData}}),
_.V("design:type",Object)],Jy.prototype,"surveyFeedbackData",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Jy);
_.b(Jy,"ytd-flow-footer-renderer",function(){if(VHw!==void 0)return VHw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return VHw=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var h0s;var K25;var sG=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return F};
_.M(sG,_.x);_.l=sG.prototype;_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.$m("multiPageMenuSectionItems")}}};
_.l.handleHideEnclosingAction_=function(F){if(this.data&&this.data.items)for(var q=0;q<this.data.items.length;q++){var t=this.data.items[q].notificationRenderer;if(t&&t.notificationId==F.hideEnclosingAction.notificationId){this.splice("data.items",q,1);_.ec(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.l.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.rs(this.hostElement,"hidden",!0)};
_.l.updateMenu_=function(F){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&F&&!F.doNotRefreshInbox){F=this.data.continuations;for(var q=0;q<F.length;q++)if(F[q].invalidationContinuationData){var t=void 0;var u=(t=F[q].invalidationContinuationData)==null?void 0:t.continuation;break}F=_.m7.clone(this.data.continuationUpdateEndpoint||null);F.continuation=u;F.click_tracking_params=this.data.trackingParams;_.RD(this.hostElement,[F])}};
_.l.onServiceRequestCompleted_=function(F,q){if(this.data&&(F=q.actions)){q=0;for(var t=F.length;q<t;q++){var u=_.n(F[q],_.hNe);if(!u)break;if((u.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||u.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&u.continuationItems&&this.data.items){var J=this.data.items.length-1;this.data.items[J].continuationItemRenderer&&(u=["data.items",J,1].concat(u.continuationItems),this.splice.apply(this,u))}}}};
sG.prototype.onServiceRequestCompleted_=sG.prototype.onServiceRequestCompleted_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],sG.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],sG.prototype,"data",void 0);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],sG.prototype,"onServiceRequestCompleted_",null);_.C([_.Vu({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],sG);
_.rc()(sG,"yt-multi-page-menu-section-renderer",function(){if(K25===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;h0s===void 0&&(h0s=document.createElement("template"));var u=h0s;t.call(q,u.content.cloneNode(!0),F.content.firstChild);K25=F}F=K25;return F},{allowedProps:["data"],
mode:2});var Bph;var L29;var gi=function(){return _.x.apply(this,arguments)||this};
_.M(gi,_.x);gi.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.JJ.Object.defineProperties(gi.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.progress)==null?0:this.data.progress*100}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],gi.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],gi.prototype,"data",void 0);_.C([_.W("data.progress"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],gi.prototype,"showProgressBar",null);
_.C([_.W("data.progress"),_.V("design:type",Number),_.V("design:paramtypes",[])],gi.prototype,"progress",null);_.C([_.Vu({is:"yt-flow-header-renderer",disableElementRegistration:!0})],gi);
_.b(gi,"yt-flow-header-renderer",function(){if(L29===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Bph===void 0&&(Bph=document.createElement("template"));var u=Bph;t.call(q,u.content.cloneNode(!0),F.content.firstChild);L29=F}F=L29;return F},{mode:2});var fL9;var aLv;var lx=function(){return _.x.apply(this,arguments)||this};
_.M(lx,_.x);lx.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],lx.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],lx.prototype,"data",void 0);_.C([_.Vu({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],lx);
_.b(lx,"yt-post-confirmation-flow-step-renderer",function(){if(aLv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;fL9===void 0&&(fL9=document.createElement("template"));var u=fL9;t.call(q,u.content.cloneNode(!0),F.content.firstChild);aLv=F}F=aLv;return F},{mode:2});var jo9;var cr3;var XC=function(){return _.x.apply(this,arguments)||this};
_.M(XC,_.x);
XC.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"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],XC.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],XC.prototype,"data",void 0);_.C([_.Vu({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],XC);
_.b(XC,"yt-refund-confirmation-flow-step-renderer",function(){if(cr3===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;jo9===void 0&&(jo9=document.createElement("template"));var u=jo9;t.call(q,u.content.cloneNode(!0),F.content.firstChild);cr3=F}F=cr3;return F},{mode:2});var FFD=_.ld(function(F){var q=F.data;return _.Z("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.Z("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.Z(_.sc,{data:function(){return{thumbnails:[{url:q().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.Z("div",{class:"profileBadgeViewModelContent"},_.Z("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return q().badgeDesc}),_.Z(_.R,{cond:function(){return q().badgeSubtitle},
then:function(){return _.Z("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return q().badgeSubtitle})}})))},"hh");
FFD.idomCompat=!0;var q6w=_.ld(function(F){var q=F.data;return _.Z("yt-comment-interaction-view-model",{el:_.l_(_.CH(function(){return q().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.Z("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return q().onTapA11yLabel},
"on:keydown":_.jGy(),tabindex:0},_.Z("div",{class:"ytCommentInteractionViewModelHeader"},_.Z("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return q().headerPrefix},' "',function(){return q().videoTitle}),_.Z("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.Z("div",{class:"ytCommentInteractionViewModelContent"},_.Z("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return q().commentContent}),_.Z("div",{class:"ytCommentInteractionViewModelChevron"},
_.Z(_.sc,{data:function(){return{thumbnails:[{url:q().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"ih");
q6w.idomCompat=!0;var tkQ=_.ld(function(F){var q=F.data;return _.Z("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.Z(_.Tl,{data:function(){return q().avatar}},{avatarViewModel:_.FJ}),_.Z("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return q().channelName}))},"jh");
tkQ.idomCompat=!0;var lY3=_.ld(function(F){var q=F.data;F={};return _.Z("yt-profile-info-view-model",{class:_.Ec("ytProfileInfoViewModelHost",(F.ytProfileInfoViewModelWithVideoShelf=function(){return q().videosHorizontalShelf},F))},_.Z(uWJ,{profileInfo:q}),_.Z(_.Tl,{data:function(){return q().videosHorizontalShelf}},{horizontalShelfViewModel:function(t){return _.Z("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.Z(_.sA,{data:t.data}))}}),_.Z(_.R,{cond:function(){return q().comments},
then:function(){return _.Z(J0y,{profileInfo:q})}}),_.Z(_.R,{cond:function(){return q().sharedSubscriptionsTitle},
then:function(){return _.Z(_.R,{cond:function(){return q().subscriptionsAccessButtonCommand},
then:function(){return _.Z(sH3,{profileInfo:q})},
else:function(){return _.Z(guy,{profileInfo:q})}})}}))},"kh");
lY3.idomCompat=!0;var J0y=_.ld(function(F){var q=F.profileInfo;return _.Z("div",{class:"ytProfileInfoViewModelActivity"},_.Z("div",{class:"ytProfileInfoViewModelHeader"},_.Z("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return q().commentsInteractionTitle})),_.Z(_.Tl,{data:function(){return q().comments}},{commentInteractionViewModel:function(t){return _.Z("div",{class:"ytProfileInfoViewModelActivity"},_.Z(q6w,{data:t.data}))}}))},"lh"),sH3=_.ld(function(F){var q=F.profileInfo;
return _.Z("div",{class:"ytProfileInfoViewModelSubSection"},_.Z("div",{class:"ytProfileInfoViewModelSubHeader"},_.Z(_.Ds,{command:function(){return q().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.Z("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return q().sharedSubscriptionsTitle}),_.Z("div",null,_.Z(_.Tl,{data:function(){return q().subscriptionsAccessButton}},{buttonViewModel:_.AB})))),_.Z(XJ9,{sharedSubscriptions:function(){var t;
return((t=q().sharedSubscriptions)==null?void 0:t.slice(0,5))||[]}}))},"mh"),guy=_.ld(function(F){var q=F.profileInfo;
return _.Z("div",{class:"ytProfileInfoViewModelSubSection"},_.Z("div",{class:"ytProfileInfoViewModelSubHeader"},_.Z("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return q().sharedSubscriptionsTitle})),_.Z(XJ9,{sharedSubscriptions:function(){var t;
return((t=q().sharedSubscriptions)==null?void 0:t.slice(0,5))||[]}}))},"nh"),XJ9=_.ld(function(F){return _.Z("div",{class:"ytProfileInfoViewModelSubs"},_.Z(_.Tl,{data:F.sharedSubscriptions},{sharedSubscriptionViewModel:function(q){return _.Z("div",{class:"ytProfileInfoViewModelSub"},_.Z(tkQ,{data:q.data}))}}))},"oh"),uWJ=_.ld(function(F){var q=F.profileInfo;
return _.Z("div",{class:"ytProfileInfoViewModelActivity"},_.Z(_.Gn,{each:function(){return[q().profileBadgeInfoYtWide,q().profileBadgeInfoChannelWide].filter(function(t){return!!t})},
keyBy:"INDEX"},function(t){return _.Z(_.ln,null,_.Z("div",{class:"ytProfileInfoViewModelHeader"},_.Z("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return t().profileSectionTitle}),_.Z("div",{class:"ytProfileInfoViewModelSectionDesc"},_.Z("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var u;
return(u=t().commentBadge)==null?void 0:u.commentDesc}),_.Z(_.R,{cond:function(){var u;
return(u=t().commentBadge)==null?void 0:u.blackHeartDesc},
then:function(){return _.Z("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.Z("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.Z(_.sc,{data:function(){var u;
return{thumbnails:[{url:(u=t().commentBadge)==null?void 0:u.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.Z("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var u;return(u=t().commentBadge)==null?void 0:u.blackHeartDesc}))),_.Z("div",{class:"ytProfileInfoViewModelBadge"},_.Z(_.Gn,{each:function(){return t().badges||[]}},function(u){return _.Z(FFD,{data:u})})))}))},"ph");var Y67=_.ld(function(F){var q=F.data;var t=function(){return q().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.Z("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.Z(_.Tl,{data:function(){return q().profileIdentityInfo}},{profileIdentityInfoViewModel:function(u){return _.Z(_.qDv,{data:u.data,
hideDivider:t,isChannelInfoCard:t})},
profileInfoViewModel:lY3}),_.Z(_.Tl,{data:function(){return q().profileInfo}},{profileIdentityInfoViewModel:_.qDv,
profileInfoViewModel:lY3}))},"qh");
Y67.idomCompat=!0;_.ei(Y67,"yt-profile-card-view-model",{props:{data:_.NH}});var YN=function(){var F=_.x.apply(this,arguments)||this;F.enableFocusFix=_.E("music_web_enable_focus_on_setting_menu_fix")&&_.yG("IS_MOBILE_WEB",!1);F.covered=!1;F.hideMenu=!1;F.isCommentNotificationOnProfileCard=!1;F.scrolledByTouch=!1;F.disableBackdropFilter=_.E("web_disable_backdrop_filter");F.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return F};
_.M(YN,_.x);_.l=YN.prototype;
_.l.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"}}}};
_.l.ready=function(){var F=this;this.JSC$20141_containerElement.addEventListener("scroll",function(){F.ytRendererBehavior.markDirty()})};
_.l.attributeChanged=function(F,q){F==="menu-style"&&_.ec(this.hostElement,"yt-multi-page-menu-closed-action",[q])};
_.l.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.kM(this,this.focusOnStampFinished))};
_.l.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.kM(this,this.focusOnStampFinished))};
_.l.reset=function(){this.closeJobId&&(_.mI.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.l.focusOnStampFinished=function(F){F.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.kM(this,this.focusOnStampFinished)),this.doFocus())};
_.l.doFocus=function(){var F=_.LT1(this.sectionsElement);F.length&&F[0].focus()};
_.l.computeMenuStyle=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.l.computeIsCommentNotificationOnProfileCard=function(F){return _.E("enable_profile_cards_on_comments")&&F.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.l.computeHideMenu=function(F,q){return F||!(!q||!q.showLoadingSpinner)};
_.l.onPopupClosed=function(){this.isPopUpOpen=!1;_.ec(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.l.onPopupOpened=function(F,q){this.isPopUpOpen=!0;q.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Q0(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.pj({type:"CHANNEL_REPORT_RESET"})))};
_.l.onYtNavigate=function(F,q){this.shouldCloseOnNavigateEvent(q.endpoint)&&_.ec(this.hostElement,"yt-close-all-popups-action")};
_.l.handleEndpoint=function(F){F=_.n(F,_.jG);!this.isCommentNotificationOnProfileCard&&F&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20141_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.l.handleActions=function(F){for(var q=0,t=F.length;q<t;q++){var u=_.n(F[q],o9T);u&&this.handleGetMultiPageMenuAction(u);(u=_.n(F[q],_.hNe))&&this.handleAppendContinuationItemsAction(u)}};
_.l.onServiceRequestSentOrCompleted=function(F,q){F.detail&&F.detail.endpoint&&this.handleEndpoint(F.detail.endpoint);q.actions&&this.handleActions(q.actions)};
_.l.handleGetMultiPageMenuAction=function(F){var q=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.ep(this.submenuElement).appendChild(q);(F=F.menu.multiPageMenuRenderer)&&this.logSubmenu(F);q.data=F;q.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.l.handleAppendContinuationItemsAction=function(F){if(this.data&&F.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&F.continuationItems&&this.data.sections){var q=this.data.sections.length-1;this.data.sections[q].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),q--);if(this.data.sections[q].multiPageMenuNotificationSectionRenderer&&F.continuationItems){F=_.X(F==null?void 0:F.continuationItems);for(var t=F.next();!t.done;t=F.next())if(t=t.value,_.n(t,LuQ)){var u=
void 0,J=void 0,g=void 0,Y=void 0,Q=void 0;((u=this)==null?0:(J=u.data)==null?0:(g=J.sections)==null?0:(Y=g[q])==null?0:(Q=Y.multiPageMenuNotificationSectionRenderer)==null?0:Q.items)&&this.push("data.sections."+q+".multiPageMenuNotificationSectionRenderer.items",t)}else if(_.n(t,_.IJC)||_.n(t,_.F9))this.push("data.sections",t),q++}}};
_.l.logSubmenu=function(F){if(!_.E("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var q=this.ytRendererBehavior.getScreenLayer(),t=_.yb(q),u=_.b7(q);if((F=F.trackingParams)&&t&&u){var J=_.Av(F);_.E("combine_ve_grafts")?_.DP().graftServerVe(F,u,q):_.Bo(t,u,J)}}};
_.l.emptySubmenuContainer=function(){for(var F=_.ep(this.submenuElement);F.firstChild;)F.removeChild(F.firstChild)};
_.l.onMenuBackTap=function(F){_.Q0(this.hostElement,"yt-submenu-closed");F.stopPropagation()};
_.l.onSubmenuClosed=function(F){_.uL(F)!==this.hostElement&&(this.covered=!1,_.Q0(this.hostElement,"yt-refit"),F.stopPropagation())};
_.l.onRetrieveLocation=function(F,q){q.hasComments&&(q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),F.stopPropagation())};
_.l.shouldCloseOnNavigateEvent=function(F){if(!F)return!0;if(_.n(F,_.gHe)||_.n(F,_.l1O)||_.n(F,_.stJ)||_.n(F,_.KM))return!1;var q;return((q=_.n(F==null?void 0:F.commandMetadata,_.EH))==null?0:q.ignoreNavigation)?!1:!0};
_.l.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.l.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.l.refitAfterRender=function(){var F=this;_.tJ(this,function(){_.Q0(F.hostElement,"yt-refit")})};
YN.prototype.refitAfterRender=YN.prototype.refitAfterRender;YN.prototype.onRetrieveLocation=YN.prototype.onRetrieveLocation;YN.prototype.onSubmenuClosed=YN.prototype.onSubmenuClosed;YN.prototype.onMenuBackTap=YN.prototype.onMenuBackTap;YN.prototype.onServiceRequestSentOrCompleted=YN.prototype.onServiceRequestSentOrCompleted;YN.prototype.onYtNavigate=YN.prototype.onYtNavigate;YN.prototype.onPopupOpened=YN.prototype.onPopupOpened;YN.prototype.onPopupClosed=YN.prototype.onPopupClosed;
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],YN.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],YN.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],YN.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],YN.prototype,"enableFocusFix",void 0);_.C([_.O(),_.V("design:type",Object)],YN.prototype,"covered",void 0);_.C([_.O({computed:"computeHideMenu(covered, data)"}),_.V("design:type",Object)],YN.prototype,"hideMenu",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.V("design:type",String)],YN.prototype,"menuStyle",void 0);
_.C([_.O({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.V("design:type",Object)],YN.prototype,"isCommentNotificationOnProfileCard",void 0);_.C([_.O(),_.V("design:type",Boolean)],YN.prototype,"isPopUpOpen",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],YN.prototype,"scrolledByTouch",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],YN.prototype,"disableBackdropFilter",void 0);
_.C([_.Ms("#sections"),_.V("design:type",HTMLElement)],YN.prototype,"sectionsElement",void 0);_.C([_.Ms("#spinner"),_.V("design:type",HTMLElement)],YN.prototype,"spinnerElement",void 0);_.C([_.Ms("#header"),_.V("design:type",HTMLElement)],YN.prototype,"headerElement",void 0);_.C([_.Ms("#container"),_.V("design:type",HTMLElement)],YN.prototype,"JSC$20141_containerElement",void 0);_.C([_.Ms("#submenu"),_.V("design:type",HTMLElement)],YN.prototype,"submenuElement",void 0);
_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YN.prototype,"onPopupClosed",null);_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],YN.prototype,"onPopupOpened",null);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],YN.prototype,"onYtNavigate",null);
_.C([_.EB("yt-service-request-completed"),_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],YN.prototype,"onServiceRequestSentOrCompleted",null);_.C([_.EB("yt-menu-back-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],YN.prototype,"onMenuBackTap",null);
_.C([_.EB("yt-submenu-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],YN.prototype,"onSubmenuClosed",null);_.C([_.EB("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],YN.prototype,"onRetrieveLocation",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YN.prototype,"refitAfterRender",null);
_.C([_.m({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],YN);
_.b(YN,"ytd-multi-page-menu-renderer",function(){if(xxT!==void 0)return xxT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return xxT=F},{mode:1});var pJv;var pD=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return F};
_.M(pD,_.x);_.l=pD.prototype;_.l.created=function(){this.showTooltips=!0};
_.l.computeAccessibility_=function(F){return this.get("accessibility.accessibilityData",F)||null};
_.l.onTap=function(){var F=_.Zl(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(F&&F.length===1&&F[0])_.ec(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var q;if((q=this.data)==null?0:q.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var t;((t=this.data)==null?0:t.menuRequest)&&_.RD(this.hostElement,[this.data.menuRequest])}}};
_.l.handleTopbarMenuClosedAction=function(F){var q,t;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(F)===((q=this.data)==null?void 0:(t=q.icon)==null?void 0:t.iconType)&&this.toggleIconState(!1)};
_.l.toggleIconState=function(F){_.E("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=F)};
_.l.handleUpdateTopbarAvatarAction=function(F){var q;F=(q=_.n(F,rBJ))==null?void 0:q.avatarUrl;var t,u;q=(t=this.data)==null?void 0:(u=t.avatar)==null?void 0:u.thumbnails;F&&q&&(t={thumbnails:[Object.assign({},q[0],{url:F})]},this.set("data.avatar",t))};
_.JJ.Object.defineProperties(pD.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.ep(this.hostElement).querySelector("#button")}}});
pD.prototype.onTap=pD.prototype.onTap;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],pD.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],pD.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.Urv.YtButtonBehavior),_.V("design:type",Object)],pD.prototype,"ytButtonBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],pD.prototype,"data",void 0);
_.C([_.Ms("yt-icon-button#button"),_.V("design:type",Object)],pD.prototype,"iconButton",void 0);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pD.prototype,"onTap",null);_.C([_.m({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],pD);
_.rc()(pD,"ytd-topbar-menu-button-renderer",function(){if(pJv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);pJv=F}F=pJv;return F},{allowedProps:["data"],
mode:1});var QH3;var Qv=function(){return _.x.apply(this,arguments)||this};
_.M(Qv,_.x);Qv.prototype.getSelected=function(){return this.reasons.selected};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Qv.prototype,"data",void 0);_.C([_.Ms("#reasons"),_.V("design:type",Object)],Qv.prototype,"reasons",void 0);_.C([_.m({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Qv);
_.b(Qv,"ytd-ad-feedback-content",function(){if(QH3!==void 0)return QH3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return QH3=F},{mode:1});var eey;var eP=function(){return _.x.apply(this,arguments)||this};
_.M(eP,_.x);_.l=eP.prototype;_.l.onPopupOpened=function(){_.ec(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.l.computeConfirmButton=function(F){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:F.confirmLabel}};
_.l.computeCancelButton=function(F){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:F.cancelLabel}};
_.l.onConfirmTap=function(){var F=this.content.getSelected();F!==void 0&&(F=this.data.reasons[F].endpoint)&&(_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}}),_.ec(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.l.sendFeedbackSubmitToastAction=function(){var F;(F=this.data)!=null&&F.completionMessage&&_.ec(this.hostElement,"yt-open-popup-action",[_.sy(this.data.completionMessage),this])};
_.l.onCancelTap=function(){_.ec(this.hostElement,"yt-close-popup-action")};
eP.prototype.onPopupOpened=eP.prototype.onPopupOpened;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],eP.prototype,"data",void 0);_.C([_.Ms("#content"),_.V("design:type",Object)],eP.prototype,"content",void 0);_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eP.prototype,"onPopupOpened",null);
_.C([_.m({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],eP);
_.b(eP,"ytd-ad-feedback-renderer",function(){if(eey!==void 0)return eey;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return eey=F},{mode:1});var Zb3;var ZI=function(){return _.x.apply(this,arguments)||this};
_.M(ZI,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ZI.prototype,"data",void 0);_.C([_.m({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],ZI);
_.b(ZI,"ytd-ad-info-dialog-content",function(){if(Zb3!==void 0)return Zb3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Zb3=F},{mode:1});var Re3;var Rh=function(){return _.x.apply(this,arguments)||this};
_.M(Rh,_.x);Rh.prototype.computeConfirmButton=function(F){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:F.confirmLabel}};
Rh.prototype.onConfirmTap=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Rh.prototype.computeShouldShowTitle=function(){var F;return!((F=this.data)==null||!F.title)};
Rh.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.sV().resolve(_.gN).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Rh.prototype.onPopupClosed=Rh.prototype.onPopupClosed;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Rh.prototype,"data",void 0);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Rh.prototype,"onPopupClosed",null);_.C([_.m({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Rh);
_.b(Rh,"ytd-ad-info-dialog-renderer",function(){if(Re3!==void 0)return Re3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Re3=F},{mode:1});var r07;var ri=function(){var F=_.x.apply(this,arguments)||this;F.actionButtonClass="action-button";F.dismissButtonId="dismiss-button";F.dialogDismiss=!0;return F};
_.M(ri,_.x);_.l=ri.prototype;_.l.computeInPlayer=function(F){return(F==null?void 0:F.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.l.computedLogo=function(){var F,q;return this.isDarkTheme()?(F=this.data)==null?void 0:F.logoDark:(q=this.data)==null?void 0:q.logo};
_.l.computedHeaderImage=function(){var F,q;return this.isDarkTheme()?(F=this.data)==null?void 0:F.headerImageDark:(q=this.data)==null?void 0:q.headerImage};
_.l.computeLogoIconId=function(){var F,q,t,u=(F=this.computedLogo())==null?void 0:(q=F.sources)==null?void 0:(t=q[0])==null?void 0:t.height;return u&&u%31===0?"logo-icon-with-padding":"logo-icon"};
_.l.computeLogoIconHeight=function(){var F,q,t,u=(F=this.computedLogo())==null?void 0:(q=F.sources)==null?void 0:(t=q[0])==null?void 0:t.height;return u&&u%31===0?"31":"24"};
_.l.onPopupClosed=function(){_.sV().resolve(_.mb).dispose()};
_.l.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.l.onShow=function(){this.inPlayer&&_.nG(6);this.titleElement.focus()};
_.l.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var F=0;F<this.data.impressionEndpoints.length;F++){var q=_.n(this.data.impressionEndpoints[F],_.Uk);q&&this.ytComponentBehavior.resolveCommand(q)}};
_.l.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.ec(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.JJ.Object.defineProperties(ri.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var F,q;return!((F=this.data)==null||!F.headerImageDark)&&!((q=this.data)==null||!q.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.secondaryButton)}}});
ri.prototype.onPopupClosed=ri.prototype.onPopupClosed;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],ri.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.QP.YtVisibilityBehavior),_.V("design:type",Object)],ri.prototype,"ytVisibilityBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ri.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],ri.prototype,"actionButtonClass",void 0);_.C([_.O(),_.V("design:type",Object)],ri.prototype,"dismissButtonId",void 0);_.C([_.O(),_.V("design:type",Object)],ri.prototype,"dialogDismiss",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],ri.prototype,"hasHeaderImage",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],ri.prototype,"hasPremiumButton",null);
_.C([_.O({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.V("design:type",Boolean)],ri.prototype,"inPlayer",void 0);_.C([_.Ms("#dismiss-button"),_.V("design:type",HTMLElement)],ri.prototype,"dismissButton",void 0);_.C([_.Ms("#title"),_.V("design:type",HTMLElement)],ri.prototype,"titleElement",void 0);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ri.prototype,"onPopupClosed",null);
_.C([_.m({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],ri);
_.b(ri,"ytd-enforcement-message-view-model",function(){if(r07!==void 0)return r07;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return r07=F},{mode:1});var NDv;var wJw;var NG=function(){var F=_.x.apply(this,arguments)||this;F.TEST_ONLY={immediateValidation:function(){F.immediateValidation()},
onValidationResponse:function(q){F.onValidationResponse(q)},
onGenerateHandleFromNameResponse:function(q){F.onGenerateHandleFromNameResponse(q)}};
return F};
_.M(NG,_.x);_.l=NG.prototype;_.l.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.l.validate=function(){this.immediateValidation()};
_.l.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.l.setHandleInputValue=function(F){this.handleDir=this.getHandleDir(F);this.handleInput.value=F;this.validationState={status:"PENDING"};this.immediateValidation()};
_.l.getHandleDir=function(F){var q=F===""&&!1;return(q=_.ven.test.call(_.ven,F))?"rtl":"ltr"};
_.l.onDataChanged=function(){var F,q;this.handleDir=this.getHandleDir((q=(F=this.data)==null?void 0:F.handle)!=null?q:"");var t;this.validationState=((t=this.data)==null?0:t.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var u;((u=this.data)==null?0:u.validateOnInit)&&this.immediateValidation()};
_.l.stopPropagation=function(F){F.stopPropagation()};
_.l.onInput=function(){var F;this.handleDir=this.getHandleDir((F=this.handleInput.value)!=null?F:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.l.onFocusout=function(F){this.handleInput.contains(F.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.l.delayedValidation=function(){var F,q;this.debouncedValidation((q=(F=this.data)==null?void 0:F.validationDelayMs)!=null?q:1E3)};
_.l.immediateValidation=function(){this.debouncedValidation(0)};
_.l.debouncedValidation=function(F){var q=this;_.aE(this,"debouncedValidation",function(){var t,u=q.staticValidation((t=q.handleInput.value)!=null?t:"");if(u!==void 0)q.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:u};else{var J;if((J=q.data)!=null&&J.validateChannelHandleCommand){q.validationState={status:"LOADING"};var g;q.ytComponentBehavior.resolveCommand(q.data.validateChannelHandleCommand,{form:{handle:(g=q.handleInput.value)!=null?g:""},commandController:{onSuccess:function(Y,
Q){q.onValidationResponse(Q)},
onServerError:function(Y,Q){q.onValidationServerError(Q)}}})}else q.handleUnexpectedValidationError(new _.D0("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",q.data))}},F)};
_.l.staticValidation=function(F){var q;if(((q=this.data)==null?void 0:q.channelHandleStaticValidationParams)!==void 0){q=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(F)&&q.validValueRegexpErrorMessage!==void 0)return q.validValueRegexpErrorMessage;if(q.minLength!==void 0&&F.length<q.minLength&&q.minLengthErrorMessage!==void 0)return q.minLengthErrorMessage;if(q.maxLength!==void 0&&F.length>q.maxLength&&q.maxLengthErrorMessage!==void 0)return q.maxLengthErrorMessage}};
_.l.onValidationResponse=function(F){var q=_.n(F.result,NvQ);q===void 0?this.handleUnexpectedValidationError(new _.D0("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",F)):this.handleValidationResultRenderer(q)};
_.l.onValidationServerError=function(F){this.handleUnexpectedValidationError(new _.D0("ValidateChannelHandle request failed.",F))};
_.l.handleValidationResultRenderer=function(F){if(F.handle===void 0)this.handleUnexpectedValidationError(new _.D0("ChannelHandleValidationResultRenderer does not contain handle.",F));else if(F.handle===this.handleInput.value)switch(F.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:F.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:F.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.D0("Unrecognized ChannelHandleValidationResult",F));break;default:_.Uv(F.result)}};
_.l.handleUnexpectedValidationError=function(F){var q;this.validationState={status:"UNKNOWN",handle:(q=this.handleInput.value)!=null?q:""};_.bz(F)};
_.l.stopEventPropagation=function(F){F.stopPropagation()};
_.l.updateHandleOnChannelNameInputChange=function(F){if(!this.wasEdited){var q,t;this.debouncedGenerateHandleFromName(F,(t=(q=this.data)==null?void 0:q.validationDelayMs)!=null?t:1E3)}};
_.l.debouncedGenerateHandleFromName=function(F,q){var t=this;_.aE(this,"debouncedGenerateHandleFromName",function(){var u;(u=t.data)!=null&&u.validateChannelHandleCommand?t.ytComponentBehavior.resolveCommand(t.data.validateChannelHandleCommand,{form:{name:F},commandController:{onSuccess:function(J,g){t.onGenerateHandleFromNameResponse(g)},
onServerError:function(J,g){_.bz(new _.D0("Error calling GenerateHandleFromName",g))}}}):_.bz(new _.D0("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",t.data))},q)};
_.l.onGenerateHandleFromNameResponse=function(F){this.wasEdited||((F=_.n(F.result,wPQ))?this.setHandleInputValue(F.handle):_.bz(new _.D0("Invalid results when generate handle from name")))};
_.JJ.Object.defineProperties(NG.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var F;if(F=this.validationState)F=this.validationState,F=F.status==="OK"||F.status==="UNKNOWN";if(F)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var F;if(((F=this.validationState)==null?void 0:F.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var F,q=(F=this.channelHandleEntity)==null?void 0:F.handleEdit;this.handleDir=this.getHandleDir(q!=null?q:"");return q}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var F,q;if(((F=this.data)==null?void 0:(q=F.channelHandleStaticValidationParams)==null?void 0:q.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
NG.prototype.stopEventPropagation=NG.prototype.stopEventPropagation;NG.prototype.onDataChanged=NG.prototype.onDataChanged;NG.prototype.applyHandleEdit=NG.prototype.applyHandleEdit;NG.prototype.onValueChanged=NG.prototype.onValueChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],NG.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],NG.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],NG.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Boolean)],NG.prototype,"wasEdited",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],NG.prototype,"handleDir",void 0);_.C([_.Ms("#handle-input"),_.V("design:type",Object)],NG.prototype,"handleInput",void 0);_.C([_.O(),_.W("validationState"),_.V("design:type",Object),_.V("design:paramtypes",[])],NG.prototype,"value",null);
_.C([_.za("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NG.prototype,"onValueChanged",null);_.C([_.W("validationState"),_.V("design:type",Object),_.V("design:paramtypes",[])],NG.prototype,"errorIndicator",null);_.C([_.O({reflectToAttribute:!0}),_.W("errorIndicator"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],NG.prototype,"borderErrorIndicator",null);
_.C([_.O({selectorArgs:["data.channelHandleEntityKey"],selector:function(F,q){return _.iC(F.entities,"channelHandle",q)}}),
_.V("design:type",Object)],NG.prototype,"channelHandleEntity",void 0);_.C([_.W("channelHandleEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],NG.prototype,"handleEdit",null);_.C([_.za("handleEdit"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NG.prototype,"applyHandleEdit",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NG.prototype,"onDataChanged",null);
_.C([_.W("data.channelHandleStaticValidationParams.validValueRegexp"),_.V("design:type",Object),_.V("design:paramtypes",[])],NG.prototype,"validValueRegexp",null);_.C([_.EB("yt-service-request-sent"),_.EB("yt-service-request-completed"),_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],NG.prototype,"stopEventPropagation",null);_.C([_.m({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],NG);
_.b(NG,"ytd-channel-handle-input-renderer",function(){if(wJw!==void 0)return wJw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return wJw=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var wi=function(){var F=_.x.apply(this,arguments)||this;F.data=null;F.errorMessage=null;F.isLoading=!0;F.hideContainer=!1;F.enableNewChannelCreationOnIdForAll=_.E("enable_new_channel_creation_for_id4all");F.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};F.testOnly={setErrorMessage:function(q){F.resetErrorState();
F.setErrorState(q)}};
return F};
_.M(wi,_.x);_.l=wi.prototype;_.l.created=function(){this.logScreenVe()};
_.l.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")};
_.l.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var F;((F=this.zeroStepErrorMessageEntity)==null?0:F.value)&&this.set("errorMessage",_.FK(this.zeroStepErrorMessageEntity.value))};
_.l.onCreateTap=function(){var F=this;if(this.data&&this.data.channelCreationEndpoint){var q,t;if(!((q=this.data.createChannelButton)==null?0:(t=q.buttonRenderer)==null?0:t.isDisabled)){var u;if((u=this.nameInput)!=null&&u.value){this.setLoadingState();var J,g;q=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(J=this.handleInput)==null?void 0:J.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((g=this.handleInput)==null?void 0:g.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:q,commandController:{onSuccess:function(Y,Q){F.onChannelCreationEndpointSuccess(Q);F.obakeImageSource&&_.IJ("channelCreatedWithObakeImage",{imageSourceType:F.obakeImageSource})},
onServerError:function(){F.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.l.endpointRequiresServiceRequestAction=function(F){return!!_.n(F,_.OL)||!!_.n(F,rBJ)};
_.l.isNavigateAction=function(F){var q;return!!_.n(F,_.kK)||!!_.n((q=_.n(F,E9v))==null?void 0:q.command,_.kK)};
_.l.isPlaylistAction=function(F){return!!_.n(F,_.cX)||!!_.n(F,_.sX)};
_.l.onChannelCreationEndpointSuccess=function(F){if(F.createChannelError){var q;this.setErrorState((q=F.createChannelError)==null?void 0:q.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.E("enable_secondary_channel_creation_form")&&F.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(F.navigationEndpoint);if(F.actions){q=_.X(F.actions);for(var t=q.next();!t.done;t=q.next())if(t=t.value,this.endpointRequiresServiceRequestAction(t)&&this.ytComponentBehavior.resolveCommand(t),
this.isNavigateAction(t)){var u=void 0;t=_.n((u=_.n(t,E9v))==null?void 0:u.command,_.kK);u=void 0;this.isPlaylistAction((u=t)==null?void 0:u.endpoint)&&(_.ec(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),u=void 0,this.ytComponentBehavior.resolveCommand((u=t)==null?void 0:u.endpoint))}}F.actions&&F.actions.some(function(J){var g;return _.n(J,_.kK)||_.n((g=_.n(J,E9v))==null?void 0:g.command,_.kK)})||_.ec(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.l.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.l.onCancelTap=function(){var F,q,t;if(!((F=this.data)==null?0:(q=F.cancelButton)==null?0:(t=q.buttonRenderer)==null?0:t.isDisabled)){var u,J,g;F=(u=this.data)==null?void 0:(J=u.cancelButton)==null?void 0:(g=J.buttonRenderer)==null?void 0:g.command;if(!F||!_.n(F,_.CUP)){var Y;this.nameInput&&((Y=this.data)==null?0:Y.name)&&(this.nameInput.value=this.data.name);var Q;this.handleInput&&((Q=this.data)==null?0:Q.channelHandleInput)&&(this.handleInput.data=_.n(this.data.channelHandleInput,iAC));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.l.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.l.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.l.onClearProfilePhotoTap=function(){var F,q,t;((F=this.data)==null?0:(q=F.clearProfilePhotoButton)==null?0:(t=q.buttonRenderer)==null?0:t.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.l.onEditAvatarTap=function(){var F,q,t;((F=this.data)==null?0:(q=F.editAvatarButton)==null?0:(t=q.buttonRenderer)==null?0:t.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.l.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)};
_.l.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var F;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((F=this.data)==null?0:F.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.l.setErrorState=function(F){this.resetErrorState();if(F)this.set("errorMessage",F);else{var q;if((q=this.zeroStepErrorMessageEntity)==null?0:q.value)this.set("errorMessage",_.FK(this.zeroStepErrorMessageEntity.value));else{var t;((t=this.data)==null?0:t.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.l.fetchImageBlobWithAlr=function(F,q){q=q===void 0?5:q;var t=this,u,J,g,Y,Q;return _.p(function(e){switch(e.nextAddress){case 1:return e.yield(fetch(F,{method:"GET",mode:"cors"}),2);case 2:u=e.yieldResult;if(u.ok){e.jumpTo(3);break}if(q===0)throw Error();J=t.addJitter(Math.pow(2,5-q));return e.yield(new Promise(function(r){setTimeout(r,J*1E3)}),4);
case 4:return e.return(t.fetchImageBlobWithAlr(F,q-1));case 3:if(!u.headers.get("content-type").split(";").some(function(r){return r.trim()==="text/plain"})){e.jumpTo(5);
break}g=t;Y=g.fetchImageBlobWithAlr;return e.yield(u.text(),6);case 6:return e.return(Y.call(g,e.yieldResult,q-1));case 5:return e.yield(u.blob(),7);case 7:return Q=e.yieldResult,e.return(Q)}})};
_.l.addJitter=function(F){var q=F*.3*Math.random();Math.random()>.5&&(q*=-1);return F+q};
_.l.openProfilePicturePicker=function(){var F=this,q,t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1){q=F.data.scottyUploadUrl;if(!q)return Y.return();t=document.documentElement.hasAttribute("dark");u=document.body.style.colorScheme;t&&(document.body.style.colorScheme="dark");J=ncT(Mhy(oc5(rdJ(t?"dark":"light")),function(Q){var e,r,N,w,k;return _.p(function(z){if(z.nextAddress==1)return e=_.a8(ClQ(new lI(Q.photoUrl,!1)).build(),"alr","yes"),F.obakeImageSource=F.pictureChangeSourceToObakeImageSourceType(Q.photoSource),
_.zg(z,2),F.setLoadingState(),z.yield(F.fetchImageBlobWithAlr(e),4);if(z.nextAddress!=2)return r=z.yieldResult,N=new FileReader,N.addEventListener("load",function(){var T,P,v,H,d,a;return _.p(function(S){if(S.nextAddress==1){if(r.size>15728640)return F.setErrorState((T=F.data)==null?void 0:T.imageSizeErrorMessage),_.bz(Error("ul")),S.return();if(!N.result)return F.setErrorState((P=F.data)==null?void 0:P.genericImageLoadErrorMessage),_.bz(Error("vl")),S.return();v=N.result;_.zg(S,2);return S.yield(aP9(r,
q),4)}if(S.nextAddress!=2)return H=S.yieldResult,F.handleImageUpdatedAction(v,H),F.resetErrorState(),_.LE(S,0);d=_.Gg(S);F.setErrorState((a=F.data)==null?void 0:a.uploadErrorMessage);if(d instanceof Error)_.mH(d);else{var K=new _.D0(JSON.stringify(d));_.mH(K)}_.WA(S)})}),N.readAsDataURL(r),_.LE(z,0);
w=_.Gg(z);F.setErrorState((k=F.data)==null?void 0:k.genericImageLoadErrorMessage);w instanceof Error?_.mH(w):_.$e(new _.D0(JSON.stringify(w)));_.WA(z)})}),function(){F.hideContainer=!1;
document.body.style.colorScheme=u});
_.zg(Y,2);return Y.yield(J.openPicker(),4)}if(Y.nextAddress!=2)return _.LE(Y,0);_.Gg(Y);F.setErrorState((g=F.data)==null?void 0:g.selectImageErrorMessage);_.WA(Y)})};
_.l.pictureChangeSourceToObakeImageSourceType=function(F){switch(F){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.l.logScreenVe=function(){_.OX(_.DP(),124448)};
_.l.graftServerVe=function(){var F=_.b7(),q,t,u=(q=this.data)==null?void 0:(t=q.loggingDirectives)==null?void 0:t.trackingParams;u&&F&&(this.channelCreationFormVe=_.DP().graftServerVe(u,F),F={visualElement:this.channelCreationFormVe},_.TC().reportShown(F))};
_.l.isNameChanged=function(F){var q;return((q=this.data)==null?void 0:q.name)!==F};
_.l.isHandleChanged=function(F){var q,t=_.n((q=this.data)==null?void 0:q.channelHandleInput,iAC);return t&&F?t.handle!==F:!1};
_.l.handleImageUpdatedAction=function(F,q){this.hideContainer=!1;this.previewDataUrl=F;this.encryptedBlobId=q};
_.l.handleImageSelectionErrorAction=function(F){this.hideContainer=!1;this.setErrorState(F)};
_.l.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.l.showContainer=function(){this.hideContainer=!1};
_.l.maybeWipeZeroStepErrorMessage=function(){var F,q=(F=this.data)==null?void 0:F.zeroStepErrorMessageEntityKey,t;q&&((t=this.zeroStepErrorMessageEntity)==null?0:t.value)&&this.ytdReduxBehavior.dispatch(_.Gl("stringEntity",q,{key:q,value:""}))};
_.JJ.Object.defineProperties(wi.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var F;return((F=this.photoThumbnail)==null?0:F.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.descriptionInfo}}});
wi.prototype.dataChanged=wi.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],wi.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],wi.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],wi.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],wi.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],wi.prototype,"errorMessage",void 0);
_.C([_.O(),_.V("design:type",Object)],wi.prototype,"isLoading",void 0);_.C([_.O(),_.V("design:type",String)],wi.prototype,"previewDataUrl",void 0);_.C([_.O(),_.V("design:type",Number)],wi.prototype,"obakeImageSource",void 0);_.C([_.O(),_.V("design:type",Object)],wi.prototype,"hideContainer",void 0);_.C([_.Ms("#title-input"),_.V("design:type",Object)],wi.prototype,"nameInput",void 0);_.C([_.Ms("#handle-input"),_.V("design:type",Object)],wi.prototype,"handleInput",void 0);
_.C([_.O(),_.V("design:type",Boolean)],wi.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.C([_.O({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Uc}),_.V("design:type",Object)],wi.prototype,"zeroStepErrorMessageEntity",void 0);_.C([_.W("data","data.isDefaultProfilePhoto","previewDataUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],wi.prototype,"photoThumbnail",null);
_.C([_.W("data","data.isDefaultProfilePhoto","photoThumbnail"),_.V("design:type",Object),_.V("design:paramtypes",[])],wi.prototype,"userSetPhotoThumbnailUrl",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wi.prototype,"hideProfilePhotoButtonLayer",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wi.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.C([_.Wh("data","zeroStepErrorMessageEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wi.prototype,"dataChanged",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.descriptionInfo","zeroStepErrorMessageEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],wi.prototype,"description",null);_.C([_.m({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],wi);
_.b(wi,"ytd-channel-creation-dialog-renderer",function(){if(NDv!==void 0)return NDv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return NDv=F},{mode:1});var ib5;var ix=function(){var F=_.x.apply(this,arguments)||this;F.isLoading=!1;F.isDisabled=!1;return F};
_.M(ix,_.x);ix.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
ix.prototype.updateDisabled=function(){var F;this.isDisabled=this.isLoading||((F=this.handleInput)==null?void 0:F.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
ix.prototype.onSaveClick=function(){var F=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var q;((q=this.data)==null?void 0:q.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 t;if((t=F.data)==null?0:t.nextEndpoint){var u;F.ytComponentBehavior.resolveCommand((u=F.data)==null?void 0:u.nextEndpoint)}else F.isLoading=
!1,F.closeDialog()},
onServerError:function(){F.isLoading=!1;F.handleInput.validate();var t;F.errorMessage=(t=F.data)==null?void 0:t.errorMessage}}}))}};
ix.prototype.closeDialog=function(){_.ec(this.hostElement,"yt-close-popup-action",[this.is])};
ix.prototype.updateDisabled=ix.prototype.updateDisabled;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],ix.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ix.prototype,"data",void 0);_.C([_.Ms("#handle-input"),_.V("design:type",Object)],ix.prototype,"handleInput",void 0);_.C([_.za("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ix.prototype,"updateDisabled",null);
_.C([_.m({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],ix);
_.b(ix,"ytd-channel-handle-edit-dialog-renderer",function(){if(ib5!==void 0)return ib5;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ib5=F},{mode:1});var kOD;var kN=function(){return _.x.apply(this,arguments)||this};
_.M(kN,_.x);kN.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],kN.prototype,"data",void 0);_.C([_.m({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],kN);
_.b(kN,"ytd-channel-switcher-footer-renderer",function(){if(kOD!==void 0)return kOD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return kOD=F},{mode:1});var Euh;var zew;var EG=function(){return _.x.apply(this,arguments)||this};
_.M(EG,_.x);EG.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
EG.prototype.onIronChange=EG.prototype.onIronChange;_.C([_.O(),_.V("design:type",Object)],EG.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!1}),_.V("design:type",Function)],EG.prototype,"onDontAskAgainChanged",void 0);_.C([_.Ms("#checkbox"),_.V("design:type",Object)],EG.prototype,"checkbox",void 0);_.C([_.EB("iron-change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EG.prototype,"onIronChange",null);
_.C([_.m({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],EG);
_.b(EG,"ytd-identity-prompt-footer-renderer",function(){if(zew!==void 0)return zew;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return zew=F},{mode:1});var zL=function(){var F=_.x.apply(this,arguments)||this;F.dontAskAgain=!1;F.showPopup=!1;F.boundDontAskAgainChanged=function(q){F.dontAskAgainChanged(q)};
F.boundOnAccountItemTap=function(q){F.onAccountItemTap(q)};
return F};
_.M(zL,_.x);_.l=zL.prototype;
_.l.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]]"}}}}}};
_.l.ready=function(){var F=this;_.ep(this.hostElement).querySelector("#container").addEventListener("scroll",function(){F.ytRendererBehavior.markDirty()})};
_.l.dontAskAgainChanged=function(F){this.dontAskAgain=F};
_.l.onAccountItemTap=function(F){if(F){var q={};this.dontAskAgain&&(q={dont_ask_again:this.dontAskAgain});_.ab(F,q)}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.l.redirectOnlyAccount=function(F){F.sections&&F.sections.length>0&&(F=_.n(F.sections[0],_.vVO),(F==null?0:F.contents)&&(F==null?void 0:F.contents.length)<=1?(F=_.fI(window.location.href),(F==null?0:F.next)&&_.Wjy(F.next)?_.ab(F.next):_.ab("/")):this.showPopup=!0)};
zL.prototype.dataChanged=zL.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zL.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!1}),_.V("design:type",Object)],zL.prototype,"dontAskAgain",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],zL.prototype,"showPopup",void 0);_.C([_.O({reflectToAttribute:!1}),_.V("design:type",Object)],zL.prototype,"boundDontAskAgainChanged",void 0);_.C([_.O({reflectToAttribute:!1}),_.V("design:type",Object)],zL.prototype,"boundOnAccountItemTap",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zL.prototype,"dataChanged",null);
_.C([_.m({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],zL);
_.b(zL,"ytd-channel-switcher-renderer",function(){if(Euh!==void 0)return Euh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Euh=F},{mode:1});var ou7;var oh=function(){return _.x.apply(this,arguments)||this};
_.M(oh,_.x);_.JJ.Object.defineProperties(oh.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.C([_.O(),_.V("design:type",Object)],oh.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],oh.prototype,"steps",null);_.C([_.m({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],oh);
_.b(oh,"ytd-channel-transfer-stepper-renderer",function(){if(ou7!==void 0)return ou7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ou7=F},{mode:1});var nuQ;var nD=function(){var F=_.x.apply(this,arguments)||this;F.data=null;F.isError=!1;F.isLoading=!1;return F};
_.M(nD,_.x);_.l=nD.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.l.computeProfileName=function(F){return F?F.givenNameValue+" "+F.familyNameValue:""};
_.l.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)};
_.l.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)};
nD.prototype.onYtServiceRequestError=nD.prototype.onYtServiceRequestError;nD.prototype.onYtServiceRequestSent=nD.prototype.onYtServiceRequestSent;nD.prototype.dataChanged=nD.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],nD.prototype,"data",void 0);
_.C([_.O({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.V("design:type",String)],nD.prototype,"profileName",void 0);_.C([_.O(),_.V("design:type",Object)],nD.prototype,"isError",void 0);_.C([_.O(),_.V("design:type",Object)],nD.prototype,"isLoading",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nD.prototype,"dataChanged",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],nD.prototype,"onYtServiceRequestSent",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],nD.prototype,"onYtServiceRequestError",null);_.C([_.m({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],nD);
_.b(nD,"ytd-channel-warm-welcome-cont-renderer",function(){if(nuQ!==void 0)return nuQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return nuQ=F},{mode:1});var Mk9;var DI=function(){var F=_.x.apply(this,arguments)||this;F.data=null;return F};
_.M(DI,_.x);DI.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
DI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],DI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],DI.prototype,"data",void 0);_.C([_.m({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],DI);
_.b(DI,"ytd-channel-warm-welcome-renderer",function(){if(Mk9!==void 0)return Mk9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Mk9=F},{mode:1});var TDQ;var WK=function(){return _.x.apply(this,arguments)||this};
_.M(WK,_.x);_.JJ.Object.defineProperties(WK.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.authorThumbnail)||{}}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],WK.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],WK.prototype,"thumbnailDetails",null);_.C([_.m({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],WK);
_.b(WK,"ytd-comment-preview-renderer",function(){if(TDQ!==void 0)return TDQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return TDQ=F},{mode:1});var GOv;var OG=function(){return _.x.apply(this,arguments)||this};
_.M(OG,_.x);OG.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.JJ.Object.defineProperties(OG.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.submitButton}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],OG.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],OG.prototype,"submitButton",null);_.C([_.m({is:"ytd-notice-renderer",disableElementRegistration:!0})],OG);
_.b(OG,"ytd-notice-renderer",function(){if(GOv!==void 0)return GOv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return GOv=F},{mode:1});var DBD;var PK=function(){return _.x.apply(this,arguments)||this};
_.M(PK,_.x);PK.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],PK.prototype,"data",void 0);_.C([_.m({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],PK);
_.b(PK,"ytd-preview-comment-dialog-content",function(){if(DBD!==void 0)return DBD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return DBD=F},{mode:1});var WFv;var xN=function(){return _.x.apply(this,arguments)||this};
_.M(xN,_.x);xN.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
xN.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],xN.prototype,"data",void 0);_.C([_.m({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],xN);
_.b(xN,"ytd-preview-comment-dialog-renderer",function(){if(WFv!==void 0)return WFv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return WFv=F},{mode:1});var ObQ;var Ps9=_.E("web_button_rework")&&_.yG("BUTTON_REWORK")||_.E("web_button_rework_with_live"),Ay=function(){var F=_.x.apply(this,arguments)||this;F.closeLabel=_.oD("CLOSE");F.selectedAmountIndex=1;F.privacyCheckboxValue=!1;F.useAmsterdamStyle=Ps9;F.amountPlaceholderIndex=-1;return F};
_.M(Ay,_.x);_.l=Ay.prototype;_.l.onAmountClick=function(F){this.selectedAmountIndex=_.ep(this.hostElement).querySelector("#amounts").indexForElement(F.currentTarget)};
_.l.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.ec(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.l.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.ec(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.ec(this.hostElement,"yt-close-popup-action",[this.is]);var F;(F=_.g0())==null||F.getPlayerPromise().then(function(q){q.pauseVideo()})}};
_.l.donationCallback=function(F){F.success?(this.hostElement.hasAttribute("live-chat")&&F.response&&F.response.data&&F.response.data.actions&&_.ec(this.hostElement,"yt-live-chat-open-popup",[F.response.data.actions[0]]),_.ec(this.hostElement,"yt-close-popup-action",[this.is]),_.ec(this.hostElement,"yt-live-chat-close-buy-flow")):F.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(F.errorMessageRenderer)};
_.l.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.ep(this.hostElement).querySelector("#custom-amount-input").focus()};
_.l.updateConfirmationDialogTextWithAmount=function(F){var q=this.getConfirmDialogRuns();q&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(q),"text"],this.getFormattedAmount(F))};
_.l.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.l.getAmountPlaceholderIndex=function(F){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=F.findIndex(function(q){return q.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.l.getFormattedAmount=function(F){var q;return(new _.B5(4,((q=this.data)==null?void 0:q.currencyCode)||"")).format(F)};
_.l.isAmountValid=function(F){if(F==="")return!1;F=Number(F)*1E6;var q=this.get("minAmountMicros",this.data),t=this.get("maxAmountMicros",this.data);return q&&F<q||t&&F>t?!1:!0};
_.l.setInputError=function(){this.shouldShowValidationError?_.ep(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.ep(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.l.setInitialCheckboxValue=function(){var F;this.privacyCheckboxValue=!((F=this.data)==null||!F.privacyCheckboxInitialState)};
_.l.updateCustomAmountInputFromBinding=function(F){this.customAmountInput=F.detail.value};
_.l.updatePrivacyCheckboxValueFromBinding=function(F){this.privacyCheckboxValue=F.detail.value};
_.JJ.Object.defineProperties(Ay.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var F=this,q,t;return((q=this.data)==null?void 0:(t=q.suggestedAmounts)==null?void 0:t.map(function(u,J){return{buttonRenderer:{style:F.selectedAmountIndex===J?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:u.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var F=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(F&&this.amountMicros!==null)return Object.assign({},F,{ypcGetCartEndpoint:Object.assign({},F.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var F=this.get("confirmLargeAmount",this.data);if(F&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),F}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var F=this.get("donateButton.buttonRenderer",this.data);if(F)return Object.assign({},F,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Ay.prototype.setInitialCheckboxValue=Ay.prototype.setInitialCheckboxValue;Ay.prototype.setInputError=Ay.prototype.setInputError;Ay.prototype.setFocusOnCustomAmountInput=Ay.prototype.setFocusOnCustomAmountInput;_.C([_.D(V2w),_.V("design:type",Object)],Ay.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ay.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ay.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Ay.prototype,"closeLabel",void 0);_.C([_.O(),_.V("design:type",Object)],Ay.prototype,"selectedAmountIndex",void 0);_.C([_.O(),_.V("design:type",String)],Ay.prototype,"customAmountInput",void 0);_.C([_.O(),_.V("design:type",Object)],Ay.prototype,"privacyCheckboxValue",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ay.prototype,"useAmsterdamStyle",void 0);_.C([_.za("customAmount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ay.prototype,"setFocusOnCustomAmountInput",null);_.C([_.W("data","selectedAmountIndex"),_.V("design:type",Array),_.V("design:paramtypes",[])],Ay.prototype,"suggestedAmountButtons",null);
_.C([_.W("data","selectedAmountIndex"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ay.prototype,"isCustomAmountSelected",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ay.prototype,"showPrivacyCheckbox",null);_.C([_.W("data","selectedAmountIndex","customAmount"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ay.prototype,"amountMicros",null);
_.C([_.W("isCustomAmountSelected","customAmountInput"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ay.prototype,"customAmount",null);_.C([_.W("customAmount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ay.prototype,"shouldShowValidationError",null);_.C([_.W("customAmount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ay.prototype,"isDonateButtonEnabled",null);
_.C([_.W("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ay.prototype,"donateCommand",null);_.C([_.W("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ay.prototype,"donateCommandWithConfirmation",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ay.prototype,"largeDonationThreshold",null);
_.C([_.W("customAmount","donateCommand","amountMicros"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ay.prototype,"confirmLargeAmountCommand",null);_.C([_.W("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ay.prototype,"donateButtonRenderer",null);_.C([_.za("shouldShowValidationError"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ay.prototype,"setInputError",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ay.prototype,"setInitialCheckboxValue",null);_.C([_.m({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Ay);
_.b(Ay,"ytd-donation-amount-picker-renderer",function(){if(ObQ!==void 0)return ObQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ObQ=F},{mode:1});var xB3;var vK=function(){return _.x.apply(this,arguments)||this};
_.M(vK,_.x);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],vK.prototype,"ytComponentBehavior",void 0);_.C([_.O({}),_.V("design:type",Object)],vK.prototype,"data",void 0);_.C([_.m({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],vK);
_.b(vK,"ytd-donation-post-transaction-content",function(){if(xB3!==void 0)return xB3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return xB3=F},{mode:1});var A0T;var Ih=function(){return _.x.apply(this,arguments)||this};
_.M(Ih,_.x);Ih.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.C([_.O({}),_.V("design:type",Object)],Ih.prototype,"data",void 0);_.C([_.m({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Ih);
_.b(Ih,"ytd-donation-post-transaction-renderer",function(){if(A0T!==void 0)return A0T;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return A0T=F},{mode:1});var vu9;var IY9;var HK=function(){return _.x.apply(this,arguments)||this};
_.M(HK,_.x);HK.prototype.computeIsStreamingProvider=function(F){return!!F.isStreamingShelf};
HK.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],HK.prototype,"data",void 0);_.C([_.O({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],HK.prototype,"isStreamingProvider",void 0);
_.C([_.m({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],HK);
_.b(HK,"ytd-media-provider-renderer",function(){if(IY9!==void 0)return IY9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return IY9=F},{mode:1});var Hbv;var mQ=function(){return _.x.apply(this,arguments)||this};
_.M(mQ,_.x);mQ.prototype.observeLightsourcePalette=function(){var F,q=(F=this.data)==null?void 0:F.vibrantsourceColorPaletteData;q&&_.II(this.hostElement,q)};
mQ.prototype.observeLightsourcePalette=mQ.prototype.observeLightsourcePalette;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],mQ.prototype,"data",void 0);
_.C([_.za("data.vibrantsourceColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mQ.prototype,"observeLightsourcePalette",null);_.C([_.m({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],mQ);
_.b(mQ,"ytd-streaming-pop-up-dialog",function(){if(Hbv!==void 0)return Hbv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Hbv=F},{mode:1});var $N=function(){return _.x.apply(this,arguments)||this};
_.M($N,_.x);$N.prototype.onPopupOpened_=function(){var F;((F=this.data)==null?0:F.serviceEndpoint)&&_.sV().resolve(_.gN).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
$N.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
$N.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"}}}}};
$N.prototype.onPopupOpened_=$N.prototype.onPopupOpened_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.Qd),_.V("design:type",Object)],$N.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$N.prototype,"data",void 0);
_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$N.prototype,"onPopupOpened_",null);_.C([_.m({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],$N);
_.b($N,"ytd-brandconnect-popup-renderer",function(){if(vu9!==void 0)return vu9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return vu9=F},{mode:1});var mBv;var bx=function(){return _.x.apply(this,arguments)||this};
_.M(bx,_.x);_.l=bx.prototype;_.l.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){for(var F=0;F<this.getOptionRenderers().length;F++)this.notifyPath("data.options."+F+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+F+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.l.updateSubmitButton=function(F){this.set("data.submitButton.buttonRenderer.isDisabled",!F)};
_.l.computeAlt=function(F){return _.q1(F)};
_.l.onDismissTap=function(){_.ec(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.sV().resolve(_.gN).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.getOptionRenderers=function(F){return(F=F||this.data)&&F.options?F.options.reduce(function(q,t){t.checkboxSurveyOptionRenderer&&q.push(t.checkboxSurveyOptionRenderer);return q},[]):[]};
_.l.onOptionChange=function(F){var q=this,t=!1;if(F.detail.checked)for(var u=this.getOptionRenderers().find(function(Q){return Q.value===F.detail.value}),J=this.getOptionRenderers(),g=0;g<J.length;g++){var Y=J[g];
this.notifyPath("data.options."+g+".checkboxSurveyOptionRenderer.checked");Y.checked&&((u==null?0:u.isExclusiveOption)?!Y.isExclusiveOption:Y.isExclusiveOption)?this.set("data.options."+g+".checkboxSurveyOptionRenderer.checked",!1):Y.checked&&(t=!0)}else t=this.getOptionRenderers().some(function(Q,e){q.notifyPath("data.options."+e+".checkboxSurveyOptionRenderer.checked");return Q.checked});
this.updateSubmitButton(t)};
_.l.onSubmitTap=function(){var F=this.getOptionRenderers().filter(function(g){return g.checked});
if(F.length!==0){var q=F.map(function(g){return g.responseEndpoint});
F=[];for(var t=1;t<q.length;t++){var u=void 0,J=(u=_.n(q[t],_.PO))==null?void 0:u.feedbackToken;J&&F.push(J)}q=[q[0]];F.length&&q.push({extra_feedback_tokens:F});_.RD(this.hostElement,q);_.ec(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);F=this.data&&this.data.submitActions||[];if(_.E("kevlar_command_handler_migration_killswitch"))_.rY(this.hostElement,F,this.hostElement);else for(F=_.X(F),q=F.next();!q.done;q=F.next())this.ytComponentBehavior.resolveCommand(q.value)}};
bx.prototype.onOptionChange=bx.prototype.onOptionChange;bx.prototype.dataChanged=bx.prototype.dataChanged;_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],bx.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],bx.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.C([_.D(lNw),_.V("design:type",Object)],bx.prototype,"ytdHatsSurveyBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],bx.prototype,"data",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bx.prototype,"dataChanged",null);
_.C([_.EB("ytd-checkbox-survey-option-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bx.prototype,"onOptionChange",null);_.C([_.m({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],bx);
_.b(bx,"ytd-checkbox-survey-renderer",function(){if(mBv!==void 0)return mBv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return mBv=F},{mode:1});var $B9;var bbs;var yv=function(){return _.x.apply(this,arguments)||this};
_.M(yv,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.C([_.D(g53),_.V("design:type",Object)],yv.prototype,"ytdDismissalReasonBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],yv.prototype,"data",void 0);_.C([_.m({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],yv);
_.b(yv,"ytd-dismissal-reason-text-renderer",function(){if(bbs!==void 0)return bbs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return bbs=F},{mode:1});var y03;var CD=function(){return _.x.apply(this,arguments)||this};
_.M(CD,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.C([_.D(g53),_.V("design:type",Object)],CD.prototype,"ytdDismissalReasonBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],CD.prototype,"data",void 0);_.C([_.m({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],CD);
_.b(CD,"ytd-dismissal-reason-video-renderer",function(){if(y03!==void 0)return y03;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return y03=F},{mode:1});var di=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(di,_.x);_.l=di.prototype;_.l.created=function(){this.selectedFeedbackTokens=new M0};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.l.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.l.onDismissalReasonSelected=function(F,q){_.Q0(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(q);this.hasReasonsSelected=!0};
_.l.onDismissalReasonDeselected=function(F,q){_.Q0(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(q);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.l.onCancelTap=function(){_.ec(this.hostElement,"yt-close-popup-action")};
_.l.onSubmitTap=function(){var F=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(F={feedback_tokens:F},_.sV().resolve(_.gN).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},F,{element:this.hostElement})}));_.ec(this.hostElement,"yt-close-popup-action")};
di.prototype.onDismissalReasonDeselected=di.prototype.onDismissalReasonDeselected;di.prototype.onDismissalReasonSelected=di.prototype.onDismissalReasonSelected;di.prototype.dataChanged=di.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],di.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],di.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Boolean)],di.prototype,"hasReasonsSelected",void 0);_.C([_.O(),_.V("design:type",M0)],di.prototype,"selectedFeedbackTokens",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],di.prototype,"darkerDarkTheme",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],di.prototype,"dataChanged",null);
_.C([_.EB("yt-dismissal-reason-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,String]),_.V("design:returntype")],di.prototype,"onDismissalReasonSelected",null);_.C([_.EB("yt-dismissal-reason-deselected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,String]),_.V("design:returntype")],di.prototype,"onDismissalReasonDeselected",null);_.C([_.m({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],di);
_.b(di,"ytd-dismissal-follow-up-renderer",function(){if($B9!==void 0)return $B9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return $B9=F},{mode:1});var Csy;var Vv=function(){return _.x.apply(this,arguments)||this};
_.M(Vv,_.x);_.l=Vv.prototype;_.l.onCheckedChange=function(){this.multiselect||_.Q0(this.hostElement,"yt-feedback-single-select-changed");_.ep(this.hostElement).querySelector("#freeform").focus();_.Q0(this.hostElement,"yt-refit")};
_.l.showTextBox=function(F,q){return F&&q};
_.l.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))};
_.l.updateDataCheckedFromBinding=function(F){this.set("data.checked",F.detail.value)};
_.l.updateDataResultTextFromBinding=function(F){this.set("data.resultText",F.detail.value)};
Vv.prototype.dataChanged=Vv.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Vv.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],Vv.prototype,"multiselect",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vv.prototype,"dataChanged",null);
_.C([_.m({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Vv);
_.b(Vv,"ytd-feedback-option-renderer",function(){if(Csy!==void 0)return Csy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Csy=F},{mode:1});var dB3;var UG=function(){return _.x.apply(this,arguments)||this};
_.M(UG,_.x);UG.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
UG.prototype.onSingleSelectCheckedChanged=function(F){F=_.uL(F);for(var q=0;q<this.data.options.length;q++)if(F.data!==_.n(this.data.options[q],JtT)){var t="data.options."+q+".feedbackOptionRenderer.checked";this.notifyPath(t);this.set(t,!1)}};
UG.prototype.onSingleSelectCheckedChanged=UG.prototype.onSingleSelectCheckedChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],UG.prototype,"data",void 0);
_.C([_.EB("yt-feedback-single-select-changed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],UG.prototype,"onSingleSelectCheckedChanged",null);_.C([_.m({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],UG);
_.b(UG,"ytd-feedback-question-renderer",function(){if(dB3!==void 0)return dB3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return dB3=F},{mode:1});var VkC;var SP=function(){return _.x.apply(this,arguments)||this};
_.M(SP,_.x);SP.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
SP.prototype.getSelectedFeedbackResults=function(){for(var F={},q=0;q<this.data.questions.length;q++)for(var t=_.n(this.data.questions[q],uXv),u=0;u<t.options.length;u++){var J=_.n(t.options[u],JtT);J&&J.checked&&(F[J.optionKey]=J.resultText)}return F};
SP.prototype.onKeyUp=function(){var F=this;_.wC(_.mI,function(){_.Q0(F.hostElement,"yt-refit")});
_.mI.start()};
SP.prototype.submitSurvey=function(){var F=this.getSelectedFeedbackResults();Object.keys(F).length>0&&this.data.submitFeedbackEndpoint&&(F={survey_results:F,is_feedback_token_unencrypted:!0},_.sV().resolve(_.gN).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},F,{element:this.hostElement})}))};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],SP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],SP.prototype,"data",void 0);_.C([_.m({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],SP);
_.b(SP,"ytd-feedback-survey-renderer",function(){if(VkC!==void 0)return VkC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return VkC=F},{mode:1});var UBv;var S65;var hy=function(){return _.x.apply(this,arguments)||this};
_.M(hy,_.x);hy.prototype.computeAlt=function(F){return _.q1(F)};
hy.prototype.submitResponse=function(){var F,q;(F=this.data)!=null&&F.feedbackToken&&((q=this.data)==null?void 0:q.nextStageIndex)!==void 0&&(_.Zl(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Zl(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
hy.prototype.onClick=function(){this.submitResponse()};
hy.prototype.onClick=hy.prototype.onClick;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],hy.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],hy.prototype,"vertical",void 0);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hy.prototype,"onClick",null);
_.C([_.m({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],hy);
_.b(hy,"ytd-single-select-answer-option-renderer",function(){if(S65!==void 0)return S65;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return S65=F},{mode:1});var hey;var KD=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");F.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return F};
_.M(KD,_.x);KD.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
KD.prototype.dataChanged=function(){var F,q;this.vertical=((q=(F=this.data)==null?void 0:F.answerOrientation)!=null?q:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
KD.prototype.submitFeedback=function(F){var q;((q=this.data)==null?0:q.responseEndpoint)&&F&&_.RD(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[F]}])};
KD.prototype.dataChanged=KD.prototype.dataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],KD.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],KD.prototype,"eventForwardingBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],KD.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],KD.prototype,"vertical",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],KD.prototype,"darkerDarkTheme",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KD.prototype,"dataChanged",null);_.C([_.m({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],KD);
_.b(KD,"ytd-single-select-question-renderer",function(){if(hey!==void 0)return hey;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return hey=F},{mode:1});var BK=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return F};
_.M(BK,_.x);_.l=BK.prototype;_.l.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"}}}};
_.l.dataChanged=function(){this.jumpToStage(0)};
_.l.jumpToStage=function(F){var q,t;if((q=this.data)==null?0:(t=q.stages)==null?0:t[F])this.currentStage=this.data.stages[F],this.refitAfterRender()};
_.l.computeAlt=function(F){return _.q1(F)};
_.l.computeSimpleMessage=function(F){var q;return(q=_.n(F,lBJ))==null?void 0:q.messageText};
_.l.computeHideDismiss=function(F){var q;return(q=_.n(F,v97))==null?void 0:q.hideParentDismissButton};
_.l.onDismissTap=function(){_.ec(this.hostElement,"yt-close-popup-action");_.n(this.currentStage,lBJ)||this.data.dismissalEndpoint&&_.sV().resolve(_.gN).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.refitAfterRender=function(){var F=this;_.tJ(this,function(){_.Q0(F.hostElement,"yt-refit")})};
BK.prototype.dataChanged=BK.prototype.dataChanged;_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],BK.prototype,"eventForwardingBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],BK.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.D(lNw),_.V("design:type",Object)],BK.prototype,"ytdHatsSurveyBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],BK.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],BK.prototype,"currentStage",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BK.prototype,"dataChanged",null);_.C([_.m({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],BK);
_.b(BK,"ytd-multi-stage-survey-renderer",function(){if(UBv!==void 0)return UBv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return UBv=F},{mode:1});var KFJ;var LD=function(){return _.x.apply(this,arguments)||this};
_.M(LD,_.x);LD.prototype.computeAlt=function(F){return _.q1(F)};
LD.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.sV().resolve(_.gN).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.ec(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.pW9(!1)))};
LD.prototype.onTap=function(){this.vertical&&this.submitResponse()};
LD.prototype.onTap=LD.prototype.onTap;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],LD.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],LD.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],LD.prototype,"vertical",void 0);
_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LD.prototype,"onTap",null);_.C([_.m({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],LD);
_.b(LD,"ytd-single-option-survey-option-renderer",function(){if(KFJ!==void 0)return KFJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return KFJ=F},{mode:1});var BDT;var fD=function(){return _.x.apply(this,arguments)||this};
_.M(fD,_.x);_.l=fD.prototype;_.l.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){var F,q;this.vertical=(((F=this.data)==null?void 0:(q=F.surveyOrientation)==null?void 0:q.type)||"HORIZONTAL")==="VERTICAL"};
_.l.computeAlt=function(F){return _.q1(F)};
_.l.onDismissTap=function(){_.ec(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.sV().resolve(_.gN).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.pW9(!1))};
fD.prototype.dataChanged=fD.prototype.dataChanged;_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],fD.prototype,"eventForwardingBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],fD.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(lNw),_.V("design:type",Object)],fD.prototype,"ytdHatsSurveyBehavior",void 0);
_.C([_.D(_.s9),_.V("design:type",Object)],fD.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],fD.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],fD.prototype,"vertical",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fD.prototype,"dataChanged",null);_.C([_.m({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],fD);
_.b(fD,"ytd-single-option-survey-renderer",function(){if(BDT!==void 0)return BDT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return BDT=F},{mode:1});var LFD;var ah=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(ah,_.x);ah.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ah.prototype.onDismissTap=function(){_.ec(this.hostElement,"yt-close-popup-action")};
ah.prototype.onNavigate=function(){_.ec(this.hostElement,"yt-close-popup-action")};
ah.prototype.onNavigate=ah.prototype.onNavigate;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],ah.prototype,"ytEventForwardingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ah.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],ah.prototype,"darkerDarkTheme",void 0);
_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ah.prototype,"onNavigate",null);_.C([_.m({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],ah);
_.b(ah,"ytd-survey-follow-up-renderer",function(){if(LFD!==void 0)return LFD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return LFD=F},{mode:1});var fY3;var aYw;var jH9;var jP=function(){var F=_.x.apply(this,arguments)||this;F.polymer2="Element"in Polymer;return F};
_.M(jP,_.x);_.l=jP.prototype;_.l.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.l.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.l.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.l.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("minutes-changed",this.minutes))};
_.l.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("seconds-changed",this.seconds))};
_.l.updateMinutesFromBinding=function(F){this.minutes=F.detail.value};
_.l.updateSecondsFromBinding=function(F){this.seconds=F.detail.value};
jP.prototype.secondsChangedForBinding=jP.prototype.secondsChangedForBinding;jP.prototype.minutesChangedForBinding=jP.prototype.minutesChangedForBinding;jP.prototype.secondsChanged=jP.prototype.secondsChanged;_.C([_.O(),_.V("design:type",String)],jP.prototype,"minutes",void 0);_.C([_.O(),_.V("design:type",String)],jP.prototype,"seconds",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],jP.prototype,"polymer2",void 0);
_.C([_.Ms("#seconds"),_.V("design:type",Object)],jP.prototype,"secondsEl",void 0);_.C([_.za("seconds"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jP.prototype,"secondsChanged",null);_.C([_.za("minutes"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jP.prototype,"minutesChangedForBinding",null);
_.C([_.za("seconds"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jP.prototype,"secondsChangedForBinding",null);_.C([_.Vu({is:"yt-timestamp-input",disableElementRegistration:!0})],jP);
_.b(jP,"yt-timestamp-input",function(){if(jH9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;aYw===void 0&&(aYw=document.createElement("template"));var u=aYw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);jH9=F}F=jH9;return F},{mode:2});var cK=function(){return _.x.apply(this,arguments)||this};
_.M(cK,_.x);_.l=cK.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20313_scroller.dialogElement=this.hostElement.parentNode};
_.l.dataChanged=function(){var F=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.l6().getPlayerPromise().then(function(q){q=q.getCurrentTime();F.minutes=Math.floor(q/60).toString();F.seconds=(Math.floor(q)%60).toString()})};
_.l.onTapSubmit=function(F){F.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(F={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(F.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(F.minutes=this.minutes,F.seconds=this.seconds),_.sV().resolve(_.gN).resolveCommand(this.serviceEndpoint,{form:Object.assign({},F,{element:this.hostElement})}))};
_.l.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.l.onYtServiceRequestCompleted=function(F,q){q=q.actions;if(Array.isArray(q))for(var t=0,u=q.length;t<u;t++)_.n(q[t],_.y5)&&(F.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(q[t]))};
_.l.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.l.toggleSubmitButton=function(F){this.set("submitButton.isDisabled",!F)};
_.l.handleInput=function(){var F=this.issueType,q=this.affiliation,t=this.minutes,u=this.seconds;t=!this.showTimestamp||!!t&&!!u;this.toggleSubmitButton(!!this.descriptionText&&!!F&&!!q&&t)};
_.l.computeServiceEndpoint=function(F){return this.get("submitButton.buttonRenderer.serviceEndpoint",F)};
_.l.computeSubmitButton=function(F){(F=this.get("submitButton.buttonRenderer",F))&&(F=Object.assign({},F,{serviceEndpoint:void 0}));return F};
_.l.computeShowTimestamp=function(F){return!!F};
_.l.onValueChangedForIssueType=function(F){this.issueType=F.detail.value};
_.l.onValueChangedForAffiliation=function(F){this.affiliation=F.detail.value};
_.l.updateDescriptionTextFromBinding=function(F){this.descriptionText=F.detail.value};
_.l.updateFullNameTextFromBinding=function(F){this.fullNameText=F.detail.value};
_.l.updateMinutesFromBinding=function(F){this.minutes=F.detail.value};
_.l.updateSecondsFromBinding=function(F){this.seconds=F.detail.value};
cK.prototype.handleInput=cK.prototype.handleInput;cK.prototype.onYtServiceRequestError=cK.prototype.onYtServiceRequestError;cK.prototype.onYtServiceRequestCompleted=cK.prototype.onYtServiceRequestCompleted;cK.prototype.onYtServiceRequestSent=cK.prototype.onYtServiceRequestSent;cK.prototype.dataChanged=cK.prototype.dataChanged;_.C([_.D(_.HP.YtOpenPopupBehavior),_.V("design:type",Object)],cK.prototype,"ytOpenPopupBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.C([_.Ms("#scroller"),_.V("design:type",Object)],cK.prototype,"JSC$20313_scroller",void 0);_.C([_.Ms("#description"),_.V("design:type",HTMLInputElement)],cK.prototype,"description",void 0);_.C([_.Ms("#full-name"),_.V("design:type",Object)],cK.prototype,"fullName",void 0);_.C([_.O(),_.V("design:type",Object)],cK.prototype,"data",void 0);
_.C([_.O({computed:"computeShowTimestamp(data.timestampLabel)"}),_.V("design:type",Boolean)],cK.prototype,"showTimestamp",void 0);_.C([_.O({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.V("design:type",Object)],cK.prototype,"serviceEndpoint",void 0);_.C([_.O({computed:"computeSubmitButton(data)"}),_.V("design:type",Object)],cK.prototype,"submitButton",void 0);_.C([_.O(),_.V("design:type",String)],cK.prototype,"descriptionText",void 0);
_.C([_.O(),_.V("design:type",Number)],cK.prototype,"issueType",void 0);_.C([_.O(),_.V("design:type",Number)],cK.prototype,"affiliation",void 0);_.C([_.O(),_.V("design:type",String)],cK.prototype,"fullNameText",void 0);_.C([_.O(),_.V("design:type",String)],cK.prototype,"minutes",void 0);_.C([_.O(),_.V("design:type",String)],cK.prototype,"seconds",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cK.prototype,"dataChanged",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],cK.prototype,"onYtServiceRequestSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],cK.prototype,"onYtServiceRequestCompleted",null);
_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],cK.prototype,"onYtServiceRequestError",null);_.C([_.za("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cK.prototype,"handleInput",null);_.C([_.m({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],cK);
_.b(cK,"ytd-legal-report-details-form-renderer",function(){if(fY3!==void 0)return fY3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return fY3=F},{mode:1});var c0v;var Fl=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return F};
_.M(Fl,_.x);Fl.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Fl.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var F=this.formRenderer.getForm();F&&this.data.submitEndpoint&&(_.sV().resolve(_.gN).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},F,{element:this.hostElement})}),_.ec(this.hostElement,"yt-close-popup-action"))}};
Fl.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.ec(this.hostElement,"yt-close-popup-action"))};
Fl.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Fl.prototype.onPopupClosed=Fl.prototype.onPopupClosed;_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],Fl.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Fl.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);
_.C([_.Ms("yt-form-renderer"),_.V("design:type",Object)],Fl.prototype,"formRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],Fl.prototype,"data",void 0);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fl.prototype,"onPopupClosed",null);_.C([_.m({is:"ytd-form-popup-content",disableElementRegistration:!0})],Fl);
_.b(Fl,"ytd-form-popup-content",function(){if(c0v!==void 0)return c0v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return c0v=F},{mode:1});var FJC;var qf=function(){return _.x.apply(this,arguments)||this};
_.M(qf,_.x);qf.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
qf.prototype.onPopupOpened=function(){_.Q0(this.hostElement,"yt-invalidate-popup-tabbables")};
qf.prototype.onYtServiceRequestCompleted=function(F,q){q.data&&q.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Q0(this.hostElement,"yt-invalidate-popup-tabbables"))};
qf.prototype.onYtServiceRequestCompleted=qf.prototype.onYtServiceRequestCompleted;qf.prototype.onPopupOpened=qf.prototype.onPopupOpened;_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],qf.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],qf.prototype,"data",void 0);_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qf.prototype,"onPopupOpened",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],qf.prototype,"onYtServiceRequestCompleted",null);_.C([_.m({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],qf);
_.b(qf,"ytd-form-popup-renderer",function(){if(FJC!==void 0)return FJC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return FJC=F},{mode:1});var qEw;var tA=function(){var F=_.x.apply(this,arguments)||this;F.isLoading=!1;return F};
_.M(tA,_.x);_.l=tA.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Mcy(this.hostElement)};
_.l.onYtServiceRequestSent=function(){this.isLoading=!0};
_.l.onYtServiceRequestCompleted=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.l.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.rY(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.l.closePopupHandler=function(){this.fireOnCloseActions()};
_.l.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var F=this.get("data.headerImage.thumbnails");F&&(F=_.ZR(F,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+F+")")}};
_.l.onYtNavigate=function(F){(F=_.uL(F))&&F.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
tA.prototype.onYtNavigate=tA.prototype.onYtNavigate;tA.prototype.onHeaderImageChanged=tA.prototype.onHeaderImageChanged;tA.prototype.closePopupHandler=tA.prototype.closePopupHandler;tA.prototype.onYtServiceRequestCompleted=tA.prototype.onYtServiceRequestCompleted;tA.prototype.onYtServiceRequestSent=tA.prototype.onYtServiceRequestSent;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],tA.prototype,"ytEventForwardingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],tA.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],tA.prototype,"isLoading",void 0);_.C([_.Ms("#header"),_.V("design:type",HTMLDivElement)],tA.prototype,"header",void 0);_.C([_.Ms("#confirm-button"),_.V("design:type",_.hB)],tA.prototype,"confirmButton",void 0);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],tA.prototype,"onYtServiceRequestSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],tA.prototype,"onYtServiceRequestCompleted",null);
_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],tA.prototype,"closePopupHandler",null);_.C([_.za("data.headerImage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tA.prototype,"onHeaderImageChanged",null);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],tA.prototype,"onYtNavigate",null);
_.C([_.m({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],tA);
_.b(tA,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(qEw!==void 0)return qEw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return qEw=F},{mode:1});var t49;var u3=function(){var F=_.x.apply(this,arguments)||this;F.isLoading=!1;return F};
_.M(u3,_.x);_.l=u3.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Mcy(this.hostElement)};
_.l.onYtServiceRequestCompleted=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.l.onYtServiceRequestError=function(F){_.as(this.hostElement,F.detail.error.message)};
_.l.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.l.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.ec(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.l.onDataChanged=function(){this.isLoading=!1;var F=this.get("data.headerImage.thumbnails");F&&(F=_.ZR(F,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+F+")");F=_.yb();var q=_.b7(),t=this.get("data.trackingParams");t&&q&&F&&_.Bo(F,q,_.Av(t))};
_.JJ.Object.defineProperties(u3.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
u3.prototype.onDataChanged=u3.prototype.onDataChanged;u3.prototype.onDomChange=u3.prototype.onDomChange;u3.prototype.onYtServiceRequestError=u3.prototype.onYtServiceRequestError;u3.prototype.onYtServiceRequestCompleted=u3.prototype.onYtServiceRequestCompleted;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],u3.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],u3.prototype,"isLoading",void 0);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],u3.prototype,"hasDescription",null);_.C([_.Ms("tp-yt-paper-dialog-scrollable"),_.V("design:type",Object)],u3.prototype,"scrollable",void 0);_.C([_.Ms("#header"),_.V("design:type",HTMLElement)],u3.prototype,"header",void 0);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],u3.prototype,"onYtServiceRequestCompleted",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],u3.prototype,"onYtServiceRequestError",null);
_.C([_.EB("dom-change"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],u3.prototype,"onDomChange",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],u3.prototype,"onDataChanged",null);_.C([_.m({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],u3);
_.b(u3,"ytd-gaming-account-link-setting-renderer",function(){if(t49!==void 0)return t49;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return t49=F},{mode:1});var u8v;var J4J;var JA=function(){var F=_.x.apply(this,arguments)||this;F.isHeader=!1;F.getEndpointForm=function(){return u0h(F.data)};
return F};
_.M(JA,_.x);_.l=JA.prototype;_.l.triggerHintActions=function(){var F=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var q=_.Zl(F.hostElement,"yt-get-opened-popups-action");!(q&&q.length===1?q[0]:[]).some(function(t){t=t.openPopupAction.popupType;return t==="SURVEY"||t==="MEALBAR"||t==="HINT"})&&F.data.hintActions&&F.guideOpened&&(_.rY(F.hostElement,F.data.hintActions,F.hostElement),F.data.hintActions=void 0)})};
_.l.getBadgeIconType=function(F){return F&&F.liveBroadcasting?"live":null};
_.l.onDown=function(){this.interaction.triggerDown()};
_.l.onUp=function(){this.interaction.triggerUp()};
_.l.onTap=function(F){if(this.data.serviceEndpoint){var q;_.E("shorts_controller_retrieve_seedless_sequence_v2")&&((q=_.n(this.data.serviceEndpoint,_.Px))==null?void 0:q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):tiv(this.data.serviceEndpoint,this);F.preventDefault()}else this.data.navigationEndpoint&&!_.tC(_.tY(F),this.hostElement,["A".toString()])&&_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.l.computeActive=function(F,q){if(!F)return!1;var t=F.navigationEndpoint;F=F.serviceEndpoint;if(!t&&!F||!q)return!1;if(t){F=(F=_.Tr(q))&&["subscriptions","filteredsubscriptions"].includes(F);if(_.n(t,_.Gr)&&_.n(q,_.Gr)&&!F){var u=_.n(t,_.Gr).browseId;q=_.n(q,_.Gr).browseId;return u!==void 0&&q!==void 0&&(u===q||u==="VLWL"&&q==="FEwatch_later"||u==="FEwatch_later"&&q==="VLWL")}var J;t=(J=_.n(t.commandMetadata,_.EH))==null?void 0:J.url;q=(u=_.n(q.commandMetadata,_.EH))==null?void 0:u.url;return!(!t||
!q||t!==q&&t!==_.wN(q))}return this.isActiveShortsTab(F,q)};
_.l.isActiveShortsTab=function(F,q){q=!!_.n(q,_.Px)||!!_.n(q,_.FZ);return(!!_.n(F,_.Px)||!!_.n(F,_.FZ))&&q};
_.l.computeIsPrimary=function(F){return!!F};
_.JJ.Object.defineProperties(JA.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var F=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&F)return F}}});
JA.prototype.onTap=JA.prototype.onTap;JA.prototype.onUp=JA.prototype.onUp;JA.prototype.onDown=JA.prototype.onDown;JA.prototype.triggerHintActions=JA.prototype.triggerHintActions;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],JA.prototype,"componentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],JA.prototype,"rendererBehavior",void 0);_.C([_.D(_.zD.YtTaskEmitterBehavior),_.V("design:type",Object)],JA.prototype,"taskEmitterBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],JA.prototype,"activeEndpoint",void 0);_.C([_.O(),_.V("design:type",Object)],JA.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],JA.prototype,"guideOpened",void 0);_.C([_.O(),_.V("design:type",String)],JA.prototype,"type",void 0);_.C([_.Ms("yt-interaction"),_.V("design:type",Object)],JA.prototype,"interaction",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],JA.prototype,"isHeader",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data","activeEndpoint"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],JA.prototype,"active",null);_.C([_.O({reflectToAttribute:!0}),_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],JA.prototype,"isPrimary",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.count","data.presentationStyle","data.badges.*"),_.V("design:type",String),_.V("design:paramtypes",[])],JA.prototype,"lineEndStyle",null);
_.C([_.W("lineEndStyle"),_.V("design:type",Object),_.V("design:paramtypes",[])],JA.prototype,"ariaLabel",null);_.C([_.za("data.hintActions","guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],JA.prototype,"triggerHintActions",null);_.C([_.EB("down"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],JA.prototype,"onDown",null);
_.C([_.EB("up"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],JA.prototype,"onUp",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],JA.prototype,"onTap",null);_.C([_.m({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],JA);
_.b(JA,"ytd-guide-entry-renderer",function(){if(J4J!==void 0)return J4J;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return J4J=F},{mode:1});var s$=function(){var F=_.x.apply(this,arguments)||this;F.userToggled=!1;return F};
_.M(s$,_.x);_.l=s$.prototype;_.l.getItemsPath=function(){return"data.expandableItems"};
_.l.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.l.onExpanderItemTapped=function(F){var q=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.E("kevlar_guide_expandable_items_killswitch")&&_.tJ(this,function(){_.ct(q.expandableItems)});
F.preventDefault()};
_.l.onCollapserItemTapped=function(F){var q=this;this._setExpanded(!1);this.userToggled=!0;F.preventDefault();this.expandableItems&&!_.E("kevlar_guide_collapsible_items_killswitch")&&_.tJ(this,function(){_.j1(q.hostElement)})};
_.l.observeActiveEndpoint=function(){for(var F=this.activeEndpoint,q=this.data,t=this.expandableItems.children,u=0,J=t.length;u<J;u++)t[u].activeEndpoint=F;q&&q.autoExpandCommand&&F&&!this.userToggled&&(t=this.data.autoExpandCommand,q=!(!_.n(t,_.Gr)||!_.n(F,_.Gr)||_.n(t,_.Gr).browseId!==_.n(F,_.Gr).browseId),F=this.get("commandMetadata.webCommandMetadata.url",F),t=this.get("commandMetadata.webCommandMetadata.url",t),q=q||!!(F&&t&&F.includes(t)),this._setExpanded(q),q&&this.ytLazyListBehavior.fillRemainingListItems())};
s$.prototype.observeActiveEndpoint=s$.prototype.observeActiveEndpoint;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.DO.YtLazyListBehavior),_.V("design:type",Object)],s$.prototype,"ytLazyListBehavior",void 0);_.C([_.Ms("#expandable-items"),_.V("design:type",HTMLElement)],s$.prototype,"expandableItems",void 0);
_.C([_.O(),_.V("design:type",Object)],s$.prototype,"data",void 0);_.C([_.O({readOnly:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],s$.prototype,"expanded",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],s$.prototype,"initialCount",void 0);_.C([_.O(),_.V("design:type",Object)],s$.prototype,"activeEndpoint",void 0);_.C([_.za("data","activeEndpoint","canShowMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],s$.prototype,"observeActiveEndpoint",null);
_.C([_.m({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],s$);
_.b(s$,"ytd-guide-collapsible-entry-renderer",function(){if(u8v!==void 0)return u8v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return u8v=F},{mode:_.Nc("kevlar_poly_si_batch_j079")?1:2});var sf7;var g4T;var gT=function(){var F=_.x.apply(this,arguments)||this;F.allVideosCount=0;F.renderGuideEntry=!1;return F};
_.M(gT,_.x);gT.prototype.observeRenderEntry=function(){var F;this.renderGuideEntry=!((F=this.data)==null||!F.alwaysShow)||!!this.allVideosCount};
gT.prototype.observeRenderEntry=gT.prototype.observeRenderEntry;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],gT.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],gT.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],gT.prototype,"activeEndpoint",void 0);_.C([_.O({selector:_.YhA}),_.V("design:type",Object)],gT.prototype,"allVideosCount",void 0);
_.C([_.O(),_.V("design:type",Object)],gT.prototype,"renderGuideEntry",void 0);_.C([_.Wh("allVideosCount","data.alwaysShow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gT.prototype,"observeRenderEntry",null);_.C([_.m({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],gT);
_.b(gT,"ytd-guide-downloads-entry-renderer",function(){if(g4T===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);g4T=F}F=g4T;return F},{mode:1});var l3=function(){var F=_.x.apply(this,arguments)||this;F.youtab=_.E("web_enable_youtab");F.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return F};
_.M(l3,_.x);_.l=l3.prototype;_.l.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]]"}}}}}};
_.l.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var F=this.sectionItems.children,q=0,t=F.length;q<t;q++)F[q].activeEndpoint=this.activeEndpoint}};
_.l.handleAddToGuideSectionAction=function(F){var q=_.n(F,n9C);if(q&&this.data&&(F=q.items,q=q.handlerData,F&&q&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(q)>-1)){q=0;for(var t=F.length;q<t;q++)F[q].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,F[q])}};
_.l.handleRemoveFromGuideSectionAction=function(F){var q=_.n(F,M9v);q&&this.data&&(F=q.guideEntryId,q=q.handlerData,F&&q&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(q)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(F,this.data.sectionItems),this.removeFromCollapsedSection(F,this.data.sectionItems)))};
_.l.removeFromExpandedSection=function(F,q){F=this.getEntryIndexMatchingId(F,q);F!==-1&&this.splice("data.sectionItems",F,1)};
_.l.removeFromCollapsedSection=function(F,q){var t=q.findIndex(function(u){return!!_.n(u,CTC)});
t&&t!==-1&&q[t]&&_.n(q[t],CTC)&&(q=_.n(q[t],CTC).expandableItems)&&(F=this.getEntryIndexMatchingId(F,q),F!==-1&&this.splice("data.sectionItems."+t+".guideCollapsibleEntryRenderer.expandableItems",F,1))};
_.l.getEntryIndexMatchingId=function(F,q){var t=this;return q.findIndex(function(u){return t.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",u)===F})};
l3.prototype.activeEndpointChanged=l3.prototype.activeEndpointChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],l3.prototype,"actionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);_.C([_.Ms("#section-items"),_.V("design:type",HTMLDivElement)],l3.prototype,"sectionItems",void 0);
_.C([_.Ms("#header-entry"),_.V("design:type",Object)],l3.prototype,"headerEntry",void 0);_.C([_.O(),_.V("design:type",Object)],l3.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],l3.prototype,"activeEndpoint",void 0);_.C([_.O(),_.V("design:type",Object)],l3.prototype,"youtab",void 0);_.C([_.za("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l3.prototype,"activeEndpointChanged",null);
_.C([_.m({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],l3);
_.b(l3,"ytd-guide-collapsible-section-entry-renderer",function(){if(sf7===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);sf7=F}F=sf7;return F},{mode:1});var lTT;var Xg3;var Xl=function(){var F=_.x.apply(this,arguments)||this;F.modernTypography=_.E("web_modern_typography");F.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return F};
_.M(Xl,_.x);_.l=Xl.prototype;
_.l.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}}}}};
_.l.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var F=_.Zl(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);F&&F.length===1&&F[0]&&_.Zl(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.l.handleResetChannelUnreadCountCommand=function(F){var q;(F=(q=_.n(F,GDv))==null?void 0:q.channelId)&&this.data&&this.data.items&&(q=this.getPathToEntryMatchingId(F))&&(this.set(q+".guideEntryRenderer.count",0),this.set(q+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.l.handleResetSubscriptionsUnreadDotCommand=function(F){var q,t=(q=_.n(F,DHh))==null?void 0:q.targetId,u;t&&(u=this.data)!=null&&u.items&&(F=this.data.items.findIndex(function(J){var g;return((g=J.guideEntryRenderer)==null?void 0:g.targetId)===t}),F<0||this.set("data.items."+F+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.l.getPathToEntryMatchingId=function(F){if(this.data&&this.data.items){var q=this.getEntryIndexMatchingId(F,this.data.items);if(q>-1)return"data.items."+q;for(var t=0;t<this.data.items.length;t++)if(q=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[t]))if(q=this.getEntryIndexMatchingId(F,q),q>-1)return"data.items."+t+".guideCollapsibleEntryRenderer.expandableItems."+q}};
_.l.handleAddToGuideSectionAction=function(F){var q=this;if(_.n(F,n9C)){var t=_.n(F,n9C).items;F=_.n(F,n9C).handlerData;var u,J;if(t&&F&&((u=this.data)==null?void 0:(J=u.handlerDatas)==null?void 0:J.indexOf(F))>-1){t=t.filter(function(Y){return(Y=q.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Y))&&!q.isGuideItemPresent(Y)});
var g;if(F==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((g=this.data)==null?0:g.items)&&(u=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),u>-1)){this.splice.apply(this,["data.items",u+1,0].concat(_.mZ(t)));return}this.unshift.apply(this,["data.items"].concat(_.mZ(t)))}}};
_.l.isGuideItemPresent=function(F){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(F,this.data.items)!==-1)return!0;var q=this.data.items.find(function(t){return!!t.guideCollapsibleEntryRenderer});
if((q==null?0:q.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(F,q.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.l.getEntryIndexMatchingId=function(F,q){var t=this;return q.findIndex(function(u){return t.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",u)===F})};
_.l.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(F,q){var t=this;return q.findIndex(function(u){return t.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",u)===F})};
_.l.handleRemoveFromGuideSectionAction=function(F){if(_.n(F,M9v)){var q=_.n(F,M9v).guideEntryId;F=_.n(F,M9v).handlerData;var t,u;q&&F&&((t=this.data)==null?void 0:(u=t.handlerDatas)==null?void 0:u.indexOf(F))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(q,this.data.items),this.removeFromCollapsedSection(q,this.data.items))}};
_.l.removeFromExpandedSection=function(F,q){F=this.getEntryIndexMatchingId(F,q);F!==-1&&this.splice("data.items",F,1)};
_.l.removeFromCollapsedSection=function(F,q){var t=q.findIndex(function(u){return!!u.guideCollapsibleEntryRenderer});
t!==-1&&(q=q[t].guideCollapsibleEntryRenderer.expandableItems)&&(F=this.getEntryIndexMatchingId(F,q),F!==-1&&this.splice("data.items."+t+".guideCollapsibleEntryRenderer.expandableItems",F,1))};
_.l.activeEndpointChanged=function(){for(var F=_.ep(this.hostElement).querySelector("#items").children,q=0,t=F.length;q<t;q++)F[q].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.l.guideOpenedChanged=function(){for(var F=_.ep(this.hostElement).querySelector("#items").children,q=0,t=F.length;q<t;q++)F[q].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Xl.prototype.guideOpenedChanged=Xl.prototype.guideOpenedChanged;Xl.prototype.activeEndpointChanged=Xl.prototype.activeEndpointChanged;Xl.prototype.persistentGuideChanged=Xl.prototype.persistentGuideChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Xl.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.DO.YtLazyListBehavior),_.V("design:type",Object)],Xl.prototype,"ytLazyListBehavior",void 0);_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Xl.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Xl.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Xl.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Xl.prototype,"modernTypography",void 0);_.C([_.O(),_.V("design:type",String)],Xl.prototype,"type",void 0);_.C([_.O({value:20}),_.V("design:type",Number)],Xl.prototype,"initialCount",void 0);_.C([_.O({value:10}),_.V("design:type",Number)],Xl.prototype,"targetFramerate",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],Xl.prototype,"autoFill",void 0);_.C([_.O({value:50}),_.V("design:type",Number)],Xl.prototype,"renderDelay",void 0);
_.C([_.za("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xl.prototype,"persistentGuideChanged",null);_.C([_.Wh("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xl.prototype,"activeEndpointChanged",null);_.C([_.Wh("guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xl.prototype,"guideOpenedChanged",null);
_.C([_.m({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Xl);
_.b(Xl,"ytd-guide-section-renderer",function(){if(Xg3!==void 0)return Xg3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return Xg3=F},{mode:_.Nc("kevlar_poly_si_batch_j073")?1:2});var YET;var YY=function(){return _.x.apply(this,arguments)||this};
_.M(YY,_.x);_.JJ.Object.defineProperties(YY.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],YY.prototype,"rendererBehaviors",void 0);_.C([_.O(),_.V("design:type",Object)],YY.prototype,"data",void 0);_.C([_.O(),_.W("data.signInButton.buttonRenderer.style"),_.V("design:type",Object),_.V("design:paramtypes",[])],YY.prototype,"alignByText",null);_.C([_.m({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],YY);
_.b(YY,"ytd-guide-signin-promo-renderer",function(){if(YET===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);YET=F}F=YET;return F},{mode:1});var pz=function(){var F=_.x.apply(this,arguments)||this;F.showFooter=!1;return F};
_.M(pz,_.x);pz.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}}}}};
pz.prototype.attached=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1){q=_.sV().resolve(_.JU(_.QE));if(!q)return t.jumpTo(0);q.setGuideData(F.hostElement);return t.yield(0,3)}F.ytLazyListBehavior.initialCount=2;return t.return()})};
pz.prototype.onMouseExit=function(){_.E("web_guide_hover_expansion")&&_.Zl(this.hostElement,"yt-guide-mouseleaved",[])};
pz.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
pz.prototype.dataChanged=pz.prototype.dataChanged;pz.prototype.onMouseExit=pz.prototype.onMouseExit;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],pz.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.DO.YtLazyListBehavior),_.V("design:type",Object)],pz.prototype,"ytLazyListBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],pz.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],pz.prototype,"showFooter",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],pz.prototype,"autoFill",void 0);_.C([_.EB("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pz.prototype,"onMouseExit",null);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pz.prototype,"dataChanged",null);_.C([_.m({is:"ytd-guide-renderer",disableElementRegistration:!0})],pz);
_.b(pz,"ytd-guide-renderer",function(){if(lTT!==void 0)return lTT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return lTT=F},{mode:_.Nc("kevlar_poly_si_batch_j073")?1:2});var pgy;var QW=function(){var F=_.x.apply(this,arguments)||this;F.systemIcons=_.E("kevlar_system_icons");F.frostedGlass=_.E("web_frosted_glass");F.getEndpointForm=function(){return u0h(F.data)};
return F};
_.M(QW,_.x);_.l=QW.prototype;_.l.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.l.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.q1(this.data.formattedTitle))};
_.l.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.l.onDown=function(){this.interaction.triggerDown()};
_.l.onUp=function(){this.interaction.triggerUp()};
_.l.onTap=function(F){if(this.data.serviceEndpoint){var q;_.E("shorts_controller_retrieve_seedless_sequence_v2")&&((q=_.n(this.data.serviceEndpoint,_.Px))==null?void 0:q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):tiv(this.data.serviceEndpoint,this);F.preventDefault()}else{var t;((t=this.data)==null?0:t.navigationEndpoint)&&!_.tC(_.tY(F),this.hostElement,["A".toString()])&&_.Q0(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.l.computeActive=function(F,q){if(!F)return!1;var t=F.navigationEndpoint;F=F.serviceEndpoint;if(!t&&!F||!q)return!1;if(t){F=_.n(t,_.Gr);var u=_.n(q,_.Gr);if(F&&u)return F.browseId===u.browseId&&F.params===u.params;var J;t=(J=_.n(t.commandMetadata,_.EH))==null?void 0:J.url;var g;q=(g=_.n(q.commandMetadata,_.EH))==null?void 0:g.url;return!(!t||!q||t!==q&&t!==_.wN(q))}return this.isActiveShortsTab(F,q)};
_.l.isActiveShortsTab=function(F,q){q=!!_.n(q,_.Px)||!!_.n(q,_.FZ);return(!!_.n(F,_.Px)||!!_.n(F,_.FZ))&&q};
_.l.computeTitle=function(F,q){return q?"":_.q1(F)};
_.JJ.Object.defineProperties(QW.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
QW.prototype.onTap=QW.prototype.onTap;QW.prototype.onUp=QW.prototype.onUp;QW.prototype.onDown=QW.prototype.onDown;QW.prototype.onActiveStateChange=QW.prototype.onActiveStateChange;QW.prototype.dataChanged=QW.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],QW.prototype,"ytComponentBehavior",void 0);
_.C([_.D(_.Sq),_.V("design:type",Object)],QW.prototype,"ironButtonState",void 0);_.C([_.O(),_.V("design:type",Object)],QW.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],QW.prototype,"activeEndpoint",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],QW.prototype,"noLabels",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.V("design:type",Boolean)],QW.prototype,"isActive",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],QW.prototype,"systemIcons",void 0);_.C([_.Ms("yt-interaction"),_.V("design:type",Object)],QW.prototype,"interaction",void 0);_.C([_.W("isActive"),_.V("design:type",Object),_.V("design:paramtypes",[])],QW.prototype,"ariaSelected",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],QW.prototype,"frostedGlass",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],QW.prototype,"dataChanged",null);_.C([_.za("isActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],QW.prototype,"onActiveStateChange",null);_.C([_.EB("down"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],QW.prototype,"onDown",null);
_.C([_.EB("up"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],QW.prototype,"onUp",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],QW.prototype,"onTap",null);_.C([_.m({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],QW);
_.b(QW,"ytd-mini-guide-entry-renderer",function(){if(pgy!==void 0)return pgy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return pgy=F},{mode:_.Nc("kevlar_poly_si_batch_j063")?1:2});var QfQ;var eo=function(){var F=_.x.apply(this,arguments)||this;F.allVideosCount=0;F.noLabels=_.E("kevlar_mini_guide_no_labels");F.frostedGlass=_.E("web_frosted_glass");return F};
_.M(eo,_.x);_.l=eo.prototype;_.l.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.l.onMouseEnter=function(){_.E("web_guide_hover_expansion")&&_.Zl(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.l.visibleChanged=function(){if(this.visible&&!this.data){var F=_.sV().resolve(_.JU(_.QE));F&&F.setGuideData(this.hostElement)}};
_.l.dataChanged=function(){var F=[],q;if((q=this.data)!=null&&q.items){q=_.X(this.data.items);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u=void 0;if((u=t.guideSectionRenderer)==null?0:u.items)for(u=void 0,t=_.X((u=t.guideSectionRenderer)==null?void 0:u.items),u=t.next();!u.done;u=t.next())if(u=u.value,u.guideEntryRenderer)u=u.guideEntryRenderer,u.isPrimary&&F.push({guideEntryRenderer:u});else if(u.guideCollapsibleSectionEntryRenderer){var J=void 0;((J=_.n(u.guideCollapsibleSectionEntryRenderer.headerEntry,
Gd))==null?0:J.isPrimary)&&F.push({guideEntryRenderer:_.n(u.guideCollapsibleSectionEntryRenderer.headerEntry,Gd)});if(u=u.guideCollapsibleSectionEntryRenderer.sectionItems)for(u=_.X(u),J=u.next();!J.done;J=u.next()){var g=J.value;J=_.n(g,dHT);var Y=void 0;((Y=_.n(g,Gd))==null?0:Y.isPrimary)?F.push({guideEntryRenderer:_.n(g,Gd)}):J&&(g=void 0,_.n((g=J)==null?void 0:g.entryRenderer,Gd)&&(J.alwaysShow||this.allVideosCount)&&F.push({guideEntryRenderer:_.n(J.entryRenderer,Gd)}))}}}}this.miniGuideItems=
F};
_.l.activeEndpointChanged=function(){for(var F=this.items.children,q=0;q<F.length;q++)F[q].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.l.registerWithViewTransitionManager=function(){var F=this;_.W2(_.mI,function(){var q=_.sV().resolve(_.JU(_.yf));if(q&&q.isAnyTransitionEnabled){var t={};q.viewTransitionCoordinator.registerElement(F.hostElement,(t.slide="mini-guide-page-transition",t))}})};
eo.prototype.activeEndpointChanged=eo.prototype.activeEndpointChanged;eo.prototype.dataChanged=eo.prototype.dataChanged;eo.prototype.visibleChanged=eo.prototype.visibleChanged;eo.prototype.onMouseEnter=eo.prototype.onMouseEnter;_.C([_.D(_.s9),_.V("design:type",Object)],eo.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],eo.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],eo.prototype,"ytComponentBehavior",void 0);_.C([_.Ms("#items"),_.V("design:type",Object)],eo.prototype,"items",void 0);_.C([_.O(),_.V("design:type",Object)],eo.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Boolean)],eo.prototype,"visible",void 0);_.C([_.O(),_.V("design:type",Object)],eo.prototype,"miniGuideItems",void 0);_.C([_.O({selector:_.YhA}),_.V("design:type",Object)],eo.prototype,"allVideosCount",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],eo.prototype,"noLabels",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],eo.prototype,"frostedGlass",void 0);
_.C([_.EB("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eo.prototype,"onMouseEnter",null);_.C([_.Wh("visible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eo.prototype,"visibleChanged",null);_.C([_.Wh("data","allVideosCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eo.prototype,"dataChanged",null);
_.C([_.Wh("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eo.prototype,"activeEndpointChanged",null);_.C([_.m({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],eo);
_.b(eo,"ytd-mini-guide-renderer",function(){if(QfQ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);QfQ=F}F=QfQ;return F},{mode:1});var evh;var ZOQ=/^[\x00-\x7F]+$/,Zg=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(Zg,_.x);_.JJ.Object.defineProperties(Zg.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var F,q=_.q1((F=this.data)==null?void 0:F.handle);if(q)return _.FK("@"+q)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var F=_.q1(this.displayHandle),q,t=_.q1((q=this.data)==null?void 0:q.handleUrl);if(F&&t)return _.FK(t+F)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var F=_.q1(this.displayHandle);if(F&&!ZOQ.test(F)){var q;return(q=this.data)==null?void 0:q.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var F=_.q1(this.displayHandleUrl),q,t=_.q1((q=this.data)==null?void 0:q.urlInfoText);if(F&&t)return _.FK(t+" "+F)}}});
_.C([_.O(),_.V("design:type",Object)],Zg.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zg.prototype,"displayHandle",null);_.C([_.W("displayHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zg.prototype,"displayHandleUrl",null);_.C([_.W("displayHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zg.prototype,"warningText",null);
_.C([_.W("displayHandleUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zg.prototype,"urlInfoTextWithUrl",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Zg.prototype,"darkerDarkTheme",void 0);_.C([_.m({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Zg);
_.b(Zg,"ytd-handles-claiming-confirm-dialog-content",function(){if(evh!==void 0)return evh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return evh=F},{mode:1});var Rvs;var RP=function(){var F=_.x.apply(this,arguments)||this;F.okButtonOverride={style:"mono",type:"outline",size:"M"};return F};
_.M(RP,_.x);RP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
RP.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],RP.prototype,"okButtonOverride",void 0);_.C([_.O(),_.V("design:type",Object)],RP.prototype,"data",void 0);_.C([_.m({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],RP);
_.b(RP,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Rvs!==void 0)return Rvs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Rvs=F},{mode:1});var r47;var Nr3=/^[\x00-\x7F]+$/,rT=function(){var F=_.x.apply(this,arguments)||this;F.isLoading=!1;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(rT,_.x);rT.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var F;this.selectedHandle=(F=this.handleInput)==null?void 0:F.value;this.onSelectedHandleChanged(this.selectedHandle);_.Zl(this.hostElement,"yt-refit-popups-action")}};
_.JJ.Object.defineProperties(rT.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.FK("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.FK(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Nr3.test(this.selectedHandle)){var F;return(F=this.data)==null?void 0:F.warningText}}}});
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],rT.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],rT.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],rT.prototype,"selectedHandle",void 0);_.C([_.O(),_.V("design:type",Object)],rT.prototype,"isLoading",void 0);_.C([_.O(),_.V("design:type",Function)],rT.prototype,"onSelectedHandleChanged",void 0);_.C([_.Ms("#channel-handle-input"),_.V("design:type",Object)],rT.prototype,"handleInput",void 0);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],rT.prototype,"handleUrlPrefix",null);_.C([_.W("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],rT.prototype,"displayHandle",null);_.C([_.W("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],rT.prototype,"displayHandleUrl",null);_.C([_.W("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],rT.prototype,"warningText",null);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],rT.prototype,"darkerDarkTheme",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.C([_.m({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],rT);
_.b(rT,"ytd-handles-claiming-edit-dialog-content",function(){if(r47!==void 0)return r47;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return r47=F},{mode:1});var wg9;var Nf=function(){var F=_.x.apply(this,arguments)||this;F.actionButtonOverride={style:"mono",type:"filled",size:"M"};F.cancelButtonOverride={style:"mono",type:"text",size:"M"};F.selectButtonDisabled=!1;F.isLoading=!1;F.hasSelectedHandleEventListener=!1;F.selectedHandleChanged=function(q){F.selectedHandle=q};
return F};
_.M(Nf,_.x);_.l=Nf.prototype;_.l.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.l.onDataChanged=function(){var F,q;this.selectedHandle=(q=_.n((F=this.data)==null?void 0:F.inputField,iAC))==null?void 0:q.handle};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onCancel=function(){this.selectedHandle="";_.ec(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onSelectHandle=function(){var F=this;if(this.selectedHandle!==void 0){var q;((q=this.data)==null?void 0:q.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(t,u){if(u.newHandleUpdateStatus!==void 0&&u.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&u.newHandleUpdateStatus.errorMessage)_.as(F.hostElement,_.q1(u.newHandleUpdateStatus.errorMessage)),
F.isLoading=!1;else{var J;if((J=F.data)==null?0:J.onChannelUpdateSuccess){t=F.data.onChannelUpdateSuccess;var g,Y;if(u=(g=_.n(t,_.y5))==null?void 0:(Y=g.popup)==null?void 0:Y.handlesClaimingConfirmDialogRenderer)u.handle=_.FK(F.selectedHandle);F.ytComponentBehavior.resolveCommand(t);_.ec(F.hostElement,"yt-close-popup-action",[F.is])}else F.isLoading=!1}},
onServerError:function(){var t;F.content&&((t=F.content)==null?0:t.handleInput)&&F.content.handleInput.validate();F.isLoading=!1;_.as(F.hostElement,_.oD("TRY_AGAIN_LATER"))}}}))}};
_.l.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Nf.prototype.onDataChanged=Nf.prototype.onDataChanged;Nf.prototype.onSelectedHandleChanged=Nf.prototype.onSelectedHandleChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Nf.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Nf.prototype,"actionButtonOverride",void 0);_.C([_.O(),_.V("design:type",Object)],Nf.prototype,"cancelButtonOverride",void 0);_.C([_.O(),_.V("design:type",Object)],Nf.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",String)],Nf.prototype,"selectedHandle",void 0);_.C([_.O(),_.V("design:type",Object)],Nf.prototype,"selectButtonDisabled",void 0);_.C([_.O(),_.V("design:type",Object)],Nf.prototype,"isLoading",void 0);_.C([_.O(),_.V("design:type",Object)],Nf.prototype,"hasSelectedHandleEventListener",void 0);_.C([_.O(),_.V("design:type",Object)],Nf.prototype,"handleInput",void 0);
_.C([_.za("selectedHandle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nf.prototype,"onSelectedHandleChanged",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nf.prototype,"onDataChanged",null);_.C([_.Ms("ytd-handles-claiming-edit-dialog-content"),_.V("design:type",Object)],Nf.prototype,"content",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.C([_.m({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Nf);
_.b(Nf,"ytd-handles-claiming-edit-dialog-renderer",function(){if(wg9!==void 0)return wg9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return wg9=F},{mode:1});var iOQ;var wT=function(){return _.x.apply(this,arguments)||this};
_.M(wT,_.x);_.JJ.Object.defineProperties(wT.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null?0:F.handle){var q;return _.FK("@"+_.q1((q=this.data)==null?void 0:q.handle))}}}});
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],wT.prototype,"formattedHandle",null);_.C([_.O(),_.V("design:type",Object)],wT.prototype,"data",void 0);_.C([_.m({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],wT);
_.b(wT,"ytd-handles-claiming-radio-option-renderer",function(){if(iOQ!==void 0)return iOQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return iOQ=F},{mode:1});var khv;var E4v=/^[\x00-\x7F]+$/,i3=function(){var F=_.x.apply(this,arguments)||this;F.initialRadioIndex="-1";F.isLoading=!1;F.darkerDarkTheme=_.E("web_darker_dark_theme");F.maybeSubmitFeedback=function(){F.feedbackSurveyRenderer.submitSurvey()};
return F};
_.M(i3,_.x);i3.prototype.updateSelectedHandleIndexFromBinding=function(F){this.selectedRadioIndex=+F.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(F)};
i3.prototype.selectedHandleChanged=function(F){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var q;this.selectedHandle=(q=this.handleInput)==null?void 0:q.value;this.onSelectedHandleChanged(F)}};
_.JJ.Object.defineProperties(i3.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var F;return this.ytRendererBehavior.getSimpleString((F=this.data)==null?void 0:F.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.FK("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.FK(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!E4v.test(this.selectedHandle)){var F;return(F=this.data)==null?void 0:F.warningText}}}});
_.C([_.O(),_.V("design:type",Object)],i3.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],i3.prototype,"initialRadioIndex",void 0);_.C([_.O(),_.V("design:type",Number)],i3.prototype,"selectedRadioIndex",void 0);_.C([_.O(),_.V("design:type",String)],i3.prototype,"selectedHandle",void 0);_.C([_.O(),_.V("design:type",Object)],i3.prototype,"isLoading",void 0);_.C([_.O(),_.V("design:type",Function)],i3.prototype,"onSelectedHandleChanged",void 0);
_.C([_.O(),_.V("design:type",Function)],i3.prototype,"onSelectedRadioIndexChanged",void 0);_.C([_.Ms("#channel-handle-input"),_.V("design:type",Object)],i3.prototype,"handleInput",void 0);_.C([_.Ms("ytd-feedback-survey-renderer"),_.V("design:type",Object)],i3.prototype,"feedbackSurveyRenderer",void 0);_.C([_.W("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],i3.prototype,"radioButtonLength",null);
_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],i3.prototype,"handleUrlPrefix",null);_.C([_.W("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],i3.prototype,"displayHandle",null);_.C([_.W("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],i3.prototype,"displayHandleUrl",null);_.C([_.W("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],i3.prototype,"warningText",null);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],i3.prototype,"darkerDarkTheme",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.C([_.m({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],i3);
_.b(i3,"ytd-handles-claiming-select-dialog-content",function(){if(khv!==void 0)return khv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return khv=F},{mode:1});var zv7;var kY=function(){var F=_.x.apply(this,arguments)||this;F.actionButtonOverride={style:"mono",type:"filled",size:"M"};F.cancelButtonOverride={style:"mono",type:"text",size:"M"};F.initialRadioIndex="-1";F.selectButtonDisabled=!1;F.isLoading=!1;F.selectedRadioIndexChanged=function(q){F.selectedRadioIndex=Number(q.detail.value)};
F.selectedHandleChanged=function(q){F.selectedHandle=q.detail.value};
F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(kY,_.x);_.l=kY.prototype;_.l.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.l.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.l.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Zl(this.hostElement,"yt-refit-popups-action")};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.ec(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onSelectHandle=function(){var F=this;if(this.selectedHandle!==void 0){var q;((q=this.data)==null?void 0:q.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(t,u){if(u.newHandleUpdateStatus!==void 0&&u.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&u.newHandleUpdateStatus.errorMessage)_.as(F.hostElement,_.q1(u.newHandleUpdateStatus.errorMessage)),
F.isLoading=!1;else{var J;if((J=F.data)==null?0:J.onChannelUpdateSuccess){t=F.data.onChannelUpdateSuccess;u=_.n(t,_.y5);var g;if(u==null?0:(g=u.popup)==null?0:g.handlesClaimingConfirmDialogRenderer)u.popup.handlesClaimingConfirmDialogRenderer.handle=_.FK(F.selectedHandle);F.ytComponentBehavior.resolveCommand(t);_.ec(F.hostElement,"yt-close-popup-action",[F.is])}else F.isLoading=!1}},
onServerError:function(){if(F.selectedRadioIndex===F.radioButtonLength){var t;F.content&&((t=F.content)==null?0:t.handleInput)&&F.content.handleInput.validate()}F.isLoading=!1;_.as(F.hostElement,_.oD("TRY_AGAIN_LATER"))}}}))}};
_.l.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var F,q;this.selectedHandle=(F=this.content)==null?void 0:(q=F.handleInput)==null?void 0:q.value}else this.selectedRadioIndex>=0&&((F=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(F==null?void 0:F.handle):this.selectedHandle=void 0)};
_.l.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.l.getRadioItem=function(F){if(this.radioButtonLength>F&&F>=0)return _.n(this.data.radioButton[F],IsJ)};
_.JJ.Object.defineProperties(kY.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.radioButton)||[]).length}}});
kY.prototype.onSelectedHandleChanged=kY.prototype.onSelectedHandleChanged;kY.prototype.onSelectedHandleIndexChanged=kY.prototype.onSelectedHandleIndexChanged;kY.prototype.onDataChanged=kY.prototype.onDataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],kY.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],kY.prototype,"actionButtonOverride",void 0);_.C([_.O(),_.V("design:type",Object)],kY.prototype,"cancelButtonOverride",void 0);
_.C([_.O(),_.V("design:type",Object)],kY.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],kY.prototype,"initialRadioIndex",void 0);_.C([_.O(),_.V("design:type",Number)],kY.prototype,"selectedRadioIndex",void 0);_.C([_.O(),_.V("design:type",String)],kY.prototype,"selectedHandle",void 0);_.C([_.O(),_.V("design:type",Object)],kY.prototype,"selectButtonDisabled",void 0);_.C([_.O(),_.V("design:type",Object)],kY.prototype,"isLoading",void 0);
_.C([_.W("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],kY.prototype,"radioButtonLength",null);_.C([_.Ms("ytd-handles-claiming-select-dialog-content"),_.V("design:type",Object)],kY.prototype,"content",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kY.prototype,"onDataChanged",null);
_.C([_.za("selectedRadioIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kY.prototype,"onSelectedHandleIndexChanged",null);_.C([_.za("selectedHandle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kY.prototype,"onSelectedHandleChanged",null);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],kY.prototype,"darkerDarkTheme",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.m({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],kY);
_.b(kY,"ytd-handles-claiming-select-dialog-renderer",function(){if(zv7!==void 0)return zv7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return zv7=F},{mode:1});var o4v;var n4h;var E$=function(){return _.x.apply(this,arguments)||this};
_.M(E$,_.x);E$.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],E$.prototype,"data",void 0);_.C([_.m({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],E$);
_.b(E$,"ytd-hotkey-dialog-section-option-renderer",function(){if(n4h!==void 0)return n4h;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return n4h=F},{mode:1});var M4v;var zB=function(){return _.x.apply(this,arguments)||this};
_.M(zB,_.x);zB.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],zB.prototype,"data",void 0);_.C([_.m({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],zB);
_.b(zB,"ytd-hotkey-dialog-section-renderer",function(){if(M4v!==void 0)return M4v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return M4v=F},{mode:1});var oP=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(oP,_.x);oP.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],oP.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],oP.prototype,"darkerDarkTheme",void 0);_.C([_.m({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],oP);
_.b(oP,"ytd-hotkey-dialog-content",function(){if(o4v!==void 0)return o4v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return o4v=F},{mode:1});var TrC;var nz=function(){return _.x.apply(this,arguments)||this};
_.M(nz,_.x);nz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var F=document.querySelector("ytd-hotkey-dialog-content #scrollable");F&&(F.dialogElement=this.hostElement.parentElement)};
nz.prototype.onCloseTap=function(){_.ec(this.hostElement,"yt-close-popup-action")};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],nz.prototype,"data",void 0);_.C([_.m({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],nz);
_.b(nz,"ytd-hotkey-dialog-renderer",function(){if(TrC!==void 0)return TrC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return TrC=F},{mode:1});var GhD;var Mf=function(){return _.x.apply(this,arguments)||this};
_.M(Mf,_.x);Mf.prototype.onYtServiceRequestError=function(){if(this.blocked){var F;var q=(F=this.data)==null?void 0:F.defaultServiceEndpoint}else{var t;q=(t=this.data)==null?void 0:t.toggledServiceEndpoint}var u;(q=(u=_.n(q,_.mgL))==null?void 0:u.onFailureAction)&&this.ytComponentBehavior.resolveCommand(q);this.updateBlockState(!this.blocked)};
Mf.prototype.onYtToggleButton=function(F){this.updateBlockState(F.detail.toggled)};
Mf.prototype.updateBlockState=function(F){if(F!==this.blocked){var q=this.blockedEntityKey;q&&this.ytdReduxBehavior.dispatch(_.Gl("blockStateEntity",q,{key:q,blocked:F}));this.set("data.isToggled",F)}};
_.JJ.Object.defineProperties(Mf.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)}}});
Mf.prototype.onYtToggleButton=Mf.prototype.onYtToggleButton;Mf.prototype.onYtServiceRequestError=Mf.prototype.onYtServiceRequestError;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Mf.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Mf.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Mf.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Mf.prototype,"blockedEntityKey",void 0);
_.C([_.O({selectorArgs:["blockedEntityKey"],selector:function(F,q){return _.iC(F.entities,"blockStateEntity",q)}}),
_.V("design:type",Object)],Mf.prototype,"blockStateEntity",void 0);_.C([_.W("data","blockStateEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Mf.prototype,"blocked",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Mf.prototype,"onYtServiceRequestError",null);
_.C([_.EB("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Mf.prototype,"onYtToggleButton",null);_.C([_.m({is:"ytd-block-button",disableElementRegistration:!0})],Mf);
_.b(Mf,"ytd-block-button",function(){if(GhD!==void 0)return GhD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return GhD=F},
{mode:1});var DPQ;var WJv;var TB=function(){return _.x.apply(this,arguments)||this};
_.M(TB,_.x);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],TB.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],TB.prototype,"data",void 0);_.C([_.m({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],TB);
_.b(TB,"ytd-kids-blocklist-picker-item-renderer",function(){if(WJv!==void 0)return WJv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return WJv=F},{mode:1});var GB=function(){return _.x.apply(this,arguments)||this};
_.M(GB,_.x);GB.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],GB.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],GB.prototype,"data",void 0);_.C([_.m({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],GB);
_.b(GB,"ytd-kids-blocklist-picker-content",function(){if(DPQ!==void 0)return DPQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return DPQ=
F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var OOh;var Dg=function(){var F=_.x.apply(this,arguments)||this;F.hasAnyRequestSucceeded=!1;F.hasAnyRequestFailed=!1;F.numPendingRequests=0;return F};
_.M(Dg,_.x);_.l=Dg.prototype;_.l.attached=function(){this.hostElement.setAttribute("dialog","")};
_.l.onDoneButtonTap=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.l.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.l.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.l.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.l.onPopupClosed=function(F){var q,t;if(((q=F.detail)==null?void 0:(t=q.popup)==null?void 0:t.is)==="tp-yt-paper-dialog"){var u;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((u=this.data)==null?0:u.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.sy(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Dg.prototype.onPopupClosed=Dg.prototype.onPopupClosed;Dg.prototype.onYtServiceRequestError=Dg.prototype.onYtServiceRequestError;Dg.prototype.onYtServiceRequestCompleted=Dg.prototype.onYtServiceRequestCompleted;Dg.prototype.onYtServiceRequestSent=Dg.prototype.onYtServiceRequestSent;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Dg.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],Dg.prototype,"data",void 0);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Dg.prototype,"onYtServiceRequestSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Dg.prototype,"onYtServiceRequestCompleted",null);
_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Dg.prototype,"onYtServiceRequestError",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Dg.prototype,"onPopupClosed",null);_.C([_.m({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Dg);
_.b(Dg,"ytd-kids-blocklist-picker-renderer",function(){if(OOh!==void 0)return OOh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return OOh=F},{mode:1});var P8C;var xP7;var Ww=function(){return _.x.apply(this,arguments)||this};
_.M(Ww,_.x);Ww.prototype.setTip=function(F){var q=this;this.data&&(this.tip=M2v(oGC.getInstance(),F,this.data),_.tJ(this,function(){_.Q0(q.hostElement,"yt-refit")}))};
Ww.prototype.clearTip=function(){this.tip=void 0};
Ww.prototype.computeHidden=function(F){return!F};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ww.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.V("design:type",Boolean)],Ww.prototype,"hidden",void 0);_.C([_.O(),_.V("design:type",Object)],Ww.prototype,"tip",void 0);_.C([_.m({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Ww);
_.b(Ww,"ytd-menu-popup-tip-renderer",function(){if(xP7!==void 0)return xP7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);
return xP7=F},{mode:1});var A4w;var O$=function(){var F=_.x.apply(this,arguments)||this;F.useIcons=!1;F.systemIcons=_.E("kevlar_system_icons");F.useListItemStyles=_.E("web_list_item_style_for_menu_items");return F};
_.M(O$,_.x);_.l=O$.prototype;_.l.onFocus=function(){var F;(F=_.ep(this.hostElement).querySelector("tp-yt-paper-item"))==null||F.focus()};
_.l.onTap=function(){var F=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(F&&_.n(F,_.wY))this.componentBehavior.resolveCommand(F),this.updateToggledStateInEntity();else if(F){this.componentBehavior.resolveCommand(F)||_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}});var q;((q=_.n(F,_.ko))==null?void 0:q.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.l.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.l.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.l.updateToggledStateInEntity=function(){var F=this.data.toggleMenuServiceItemEntityKey,q=!this.data.isToggled;F&&this.ytdReduxBehavior.dispatch(_.Gl("toggleMenuServiceItemEntity",F,{key:F,isToggled:q}))};
_.l.computeIcon=function(F,q,t){return(F=F?t:q)&&F.iconType?_.Ek(F.iconType):""};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.isIconActive=function(F){return!_.E("toggle_menu_active_icon_killswitch")&&F};
_.JJ.Object.defineProperties(O$.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((F=this.data)==null?0:F.isToggled)?(q=this.data)==null?void 0:q.toggledText:(t=this.data)==null?void 0:t.defaultText}}});
O$.prototype.toggledStateEntityChanged=O$.prototype.toggledStateEntityChanged;O$.prototype.onYtServiceRequestCompleted=O$.prototype.onYtServiceRequestCompleted;O$.prototype.onTap=O$.prototype.onTap;O$.prototype.onFocus=O$.prototype.onFocus;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],O$.prototype,"componentBehavior",void 0);
_.C([_.D(_.s9),_.V("design:type",Object)],O$.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],O$.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],O$.prototype,"useIcons",void 0);_.C([_.O({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.V("design:type",String)],O$.prototype,"icon",void 0);
_.C([_.O({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(F,q){return _.iC(F.entities,"toggleMenuServiceItemEntity",q)}}),
_.V("design:type",Object)],O$.prototype,"toggleMenuServiceItemEntity",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],O$.prototype,"systemIcons",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],O$.prototype,"useListItemStyles",void 0);_.C([_.EB("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],O$.prototype,"onFocus",null);
_.C([_.W("data.isToggled"),_.V("design:type",Object),_.V("design:paramtypes",[])],O$.prototype,"toggleButtonText",null);_.C([_.EB("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],O$.prototype,"onTap",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],O$.prototype,"onYtServiceRequestCompleted",null);
_.C([_.za("toggleMenuServiceItemEntity.isToggled","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],O$.prototype,"toggledStateEntityChanged",null);_.C([_.m({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],O$);
_.b(O$,"ytd-toggle-menu-service-item-renderer",function(){if(A4w!==void 0)return A4w;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return A4w=F},{mode:1});var v4w;var Pw=function(){return _.x.apply(this,arguments)||this};
_.M(Pw,_.x);Pw.prototype.onFocus=function(){var F;(F=_.ep(this.hostElement).querySelector("tp-yt-paper-item"))==null||F.focus()};
_.JJ.Object.defineProperties(Pw.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.d$(this.data.iconUrl)}}});
Pw.prototype.onFocus=Pw.prototype.onFocus;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Pw.prototype,"rendererBehavior",void 0);_.C([_.D(_.mu.YtEndpointBehavior),_.V("design:type",Object)],Pw.prototype,"ytEndpointBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Pw.prototype,"data",void 0);_.C([_.EB("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pw.prototype,"onFocus",null);
_.C([_.W("data.iconUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],Pw.prototype,"imageSource",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Pw);
_.b(Pw,"ytd-menu-custom-icon-item-renderer",function(){if(v4w!==void 0)return v4w;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return v4w=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});_.ei(_.uE,"yt-list-item-view-model",{props:{data:_.NH,isMenuItem:_.NH,isCompact:_.NH,onTap:_.pp,trailingAccessory:_.pp,hideSelectionTextChevron:_.NH,disabled:_.NH,inPopup:_.NH,disableHorizontalPadding:_.NH,isOverlay:_.NH,isToggled:_.NH,ariaLabel:_.NH,ariaPressed:_.NH}});var xY=function(){var F=_.x.apply(this,arguments)||this;F.disableBackdropFilter=_.E("web_disable_backdrop_filter");return F};
_.M(xY,_.x);_.l=xY.prototype;
_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.l.computeAriaLabel=function(F){return F};
_.l.onPopupOpened=function(){this.items.selected=0;for(var F=_.X(_.ep(this.items).children),q=F.next();!q.done;q=F.next())q.value.popupPositionTarget=this.positionTarget;if(F=this.popupTip||void 0)F.setTip(this.source||""),this.source=void 0;this.veData&&(F=_.yb())&&_.aD(F,[this.veData])};
_.l.onPopupClosed=function(){var F=this.popupTip||void 0;F&&F.clearTip()};
_.l.onIronActivate=function(F){this.shouldPersist(F)||_.ec(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(F=_.yb())&&_.co(F,this.veData)};
_.l.shouldPersist=function(F){var q,t;if(((q=F.detail)==null?void 0:q.selected)===void 0||(t=this.data)==null||!t.items)return!1;var u,J;return!((J=(u=this.data.items[F.detail.selected])==null?void 0:u.toggleMenuServiceItemRenderer)==null||!J.persistentOnMenuPopup)};
_.l.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(F){return F.menuNavigationItemRenderer?!!F.menuNavigationItemRenderer.icon:F.menuServiceItemRenderer?!!F.menuServiceItemRenderer.icon:F.menuConditionalServiceItemRenderer?!!F.menuConditionalServiceItemRenderer.icon:F.menuConditionalNavigationItemRenderer?!!F.menuConditionalNavigationItemRenderer.icon:F.toggleMenuServiceItemRenderer?!!F.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
xY.prototype.onPopupClosed=xY.prototype.onPopupClosed;xY.prototype.onPopupOpened=xY.prototype.onPopupOpened;_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],xY.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],xY.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],xY.prototype,"veData",void 0);_.C([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.V("design:type",String)],xY.prototype,"ariaLabel",void 0);_.C([_.O({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],xY.prototype,"useIcons",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],xY.prototype,"disableBackdropFilter",void 0);_.C([_.Ms("#items"),_.V("design:type",Object)],xY.prototype,"items",void 0);_.C([_.Ms("ytd-menu-popup-tip-renderer"),_.V("design:type",Object)],xY.prototype,"popupTip",void 0);_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xY.prototype,"onPopupOpened",null);
_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xY.prototype,"onPopupClosed",null);_.C([_.m({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],xY);
_.b(xY,"ytd-menu-popup-renderer",function(){if(P8C!==void 0)return P8C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return P8C=F},{mode:1});var ITh;var HOJ=_.ld(function(F){F=_.sk(F,{icon:void 0});var q=F.data;F=F.icon;var t=function(){return q().iconBadgeText},u={},J=_.Ec("yt-spec-icon-badge-shape",function(){a:switch(q().iconBadgeType){case "notification":var g="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":g="yt-spec-icon-badge-shape--type-cart";break a;default:g=""}return g},function(){a:switch(q().iconBadgeStyle){case "overlay":var g="yt-spec-icon-badge-shape--style-overlay";
break a;default:g=""}return g},(u["yt-spec-icon-badge-shape--text-size-small"]=function(){var g=t();
return!!((g==null?0:g.length)&&g.length>2)},u));
return _.Z("yt-icon-badge-shape",null,_.Z(_.R,{cond:F,then:function(g){return _.Z("div",{class:J},_.Z("div",{class:"yt-spec-icon-badge-shape__icon"},_.Z(_.Tq,{icon:g})),_.Z(_.R,{cond:t,then:function(Y){return _.Z("div",{class:"yt-spec-icon-badge-shape__badge"},Y)}}))}}))},"rh");
HOJ.idomCompat=!0;_.ei(HOJ,"yt-icon-badge-shape",{props:{data:_.NH,icon:_.NH}});var AA=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};F.unseenCount=0;F.isOverlay=!1;return F};
_.M(AA,_.x);_.l=AA.prototype;_.l.attached=function(){var F=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(q){F.onServiceWorkerMessage(q)})};
_.l.onDataChanged=function(){this.isAttached&&!this.JSC$20444_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20444_lastData=this.data};
_.l.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.l.computeIcon=function(){var F,q;return(F=this.data)==null?void 0:(q=F.icon)==null?void 0:q.iconType};
_.l.onServiceWorkerMessage=function(F){F.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.l.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.n(this.data.updateUnseenCountEndpoint,_.ko)&&_.n(this.data.updateUnseenCountEndpoint,_.ko).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.l.handleUpdateNotificationsUnseenCountAction=function(F){var q=this;F=_.n(F,Tvw);F!=null&&F.unseenCount&&F.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(F.unseenCount),_.mI.addLowPriorityJob(function(){q.data.updateUnseenCountEndpoint&&q.ytComponentBehavior.resolveCommand(q.data.updateUnseenCountEndpoint)},F.timeoutMs))};
_.l.onClick=function(){_.Q0(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var F=_.Zl(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),q=this.data.menuRequest;F&&F.length===1&&F[0]?_.ec(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):q&&this.ytComponentBehavior.resolveCommand(q)};
_.l.handleTopbarMenuClosedAction=function(F){F==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.l.toggleIconState=function(F){this.iconButton&&(this.iconButton.pressed=F)};
_.l.sendUnseenCountRequest=function(F){var q=this;_.W2(_.mI,function(){q.ytComponentBehavior.resolveCommand(F)})};
_.l.updateCountUI=function(F){this.set("unseenCount",F<9?F:"9+")};
_.JJ.Object.defineProperties(AA.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
AA.prototype.handleUpdateNotificationsUnseenCountAction=AA.prototype.handleUpdateNotificationsUnseenCountAction;AA.prototype.onDataChanged=AA.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],AA.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.En),_.V("design:type",Object)],AA.prototype,"ytdOpenPopupBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],AA.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],AA.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],AA.prototype,"unseenCount",void 0);_.C([_.O(),_.V("design:type",Object)],AA.prototype,"isOverlay",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],AA.prototype,"showTooltips",void 0);_.C([_.Ms("yt-icon-button"),_.V("design:type",Object)],AA.prototype,"iconButton",void 0);
_.C([_.W("unseenCount"),_.V("design:type",Object),_.V("design:paramtypes",[])],AA.prototype,"showNotificationCount",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AA.prototype,"onDataChanged",null);_.C([_.EB("yt-update-notifications-unseen-count-action"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],AA.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.C([_.m({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],AA);
_.b(AA,"ytd-notification-topbar-button-renderer",function(){if(ITh!==void 0)return ITh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ITh=F},{mode:_.Nc("kevlar_poly_si_batch_j025")?1:2});var mP7;var vw=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return F};
_.M(vw,_.x);vw.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}}}}}};
vw.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
vw.prototype.onDarkModeToggled=function(F){this.dark=F};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],vw.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],vw.prototype,"data",void 0);_.C([_.O({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],vw.prototype,"dark",void 0);
_.C([_.m({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],vw);
_.b(vw,"yt-pdg-buy-flow-header-renderer",function(){if(mP7!==void 0)return mP7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return mP7=F},{mode:1});var $PJ;var bOy;var IP=function(){var F=_.x.apply(this,arguments)||this;F.immediateValue=0;F.isDarkTheme=!1;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(IP,_.x);_.l=IP.prototype;_.l.created=function(){_.jq.requestAvailability()};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.dataChanged=function(){var F=_.ep(this.hostElement).querySelector("#color-slider");F.immediateValue&&this.updateSliderKnobAndGradientStyles(F.immediateValue);this.data.notches[0].knobColorArgb&&_.ws(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.KG(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.bn("HTML_DIR")==="rtl"&&_.ep(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.l.onSliderImmediateChange=function(){var F=_.ep(this.hostElement).querySelector("#color-slider");F.dragging&&(F.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(F.immediateValue),this.updateSliderKnobAndGradientStyles(F.immediateValue)),this.updateSliderAria())};
_.l.onSliderChange=function(){var F=_.ep(this.hostElement).querySelector("#color-slider");F.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(F.immediateValue),this.updateSliderKnobAndGradientStyles(F.immediateValue));this.updateSliderAria()};
_.l.updateSliderAria=function(){var F=_.ep(this.hostElement).querySelector("#color-slider"),q=_.ep(this.hostElement).querySelector("#color-slider");q=_.q1(this.data.notches[q.immediateValue].tierValue);_.py3()&&_.Q0(this.hostElement,"iron-announce",{text:q});F.setAttribute("aria-valuetext",q)};
_.l.updateSuperThanksSelectedTierEntity=function(F){if(F!==this.immediateValue){var q,t,u=this==null?void 0:(q=this.data)==null?void 0:(t=q.superThanksSelectedTierEntity)==null?void 0:t.key;u&&u.length>0&&this.ytdReduxBehavior.dispatch(_.Gl("superThanksSelectedTierEntity",u,{key:u,index:F}))}};
_.l.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.l.updateSliderKnobAndGradientStyles=function(F){this.immediateValue=F;F=this.data.notches[F];if(F==null?0:F.knobColorArgb)var q={"--ytd-pdg-color-slider-knob-color":_.KG(F.knobColorArgb)};(F==null?0:F.linearGradientCssStyle)&&q!==null&&(q=Object.assign({},q,{"--ytd-pdg-color-slider-active-color":F==null?void 0:F.linearGradientCssStyle}));q!==null&&_.ws(this.hostElement,q)};
IP.prototype.onSliderChange=IP.prototype.onSliderChange;IP.prototype.onSliderImmediateChange=IP.prototype.onSliderImmediateChange;IP.prototype.dataChanged=IP.prototype.dataChanged;_.C([_.O(),_.V("design:type",Object)],IP.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],IP.prototype,"immediateValue",void 0);_.C([_.O(),_.V("design:type",Number)],IP.prototype,"maxMarkers",void 0);
_.C([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Ax5}),_.V("design:type",Object)],IP.prototype,"superThanksSelectedTierEntity",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],IP.prototype,"isDarkTheme",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],IP.prototype,"ytdReduxBehavior",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IP.prototype,"dataChanged",null);
_.C([_.EB("immediate-value-change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IP.prototype,"onSliderImmediateChange",null);_.C([_.EB("change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IP.prototype,"onSliderChange",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],IP);
_.b(IP,"ytd-pdg-color-slider-renderer",function(){if(bOy!==void 0)return bOy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return bOy=F},{mode:1});var y47;var C8v;var Hw=null;
_.Hh({is:"ytd-comment-input",_template:function(){if(C8v!==void 0)return C8v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return C8v=F},
behaviors:[_.n1y.YtHostElementBehavior,_.v6,_.XV.YtComponentBehavior,_.TD.YtRendererstamperBehavior,_.o31.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 _.p7}},
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",_.kM(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;_.Ts();this.focus()},
detached:function(){document.removeEventListener("tap",_.kM(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(F){F=F.detail;F=F.isCustomEmoji?F.shortcuts[0]:F.emojiId;var q=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(q,F);this.maybeUpdateTextDirection_();_.Q0(this.hostElement,"input")},
getInputRange_:function(){var F=_.rI();if(F){F=F.getBrowserRangeObject();for(var q=F.commonAncestorContainer;q;){if(q===this.getEditableTextArea_())return F;q=q.parentNode}}F=this.getEditableTextArea_();F=_.LV(F,F.childNodes.length);F.select();return F.getBrowserRangeObject()},
insertTextWithEmojis_:function(F,q,t){(q=this.emojiManager.createDocumentFragment(q,!0,!1,t===void 0?!0:t))&&q.childNodes.length!==0&&(F.collapsed||F.deleteContents(),t=q.lastChild,F.insertNode(q),_.fnz(t).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var F=_.rI();if(F){var q=F.JSC$11331_getStartNode(),t=F.JSC$11331_getEndNode();if(JTw(q)&&JTw(t)){var u=F.JSC$11331_getStartOffset(),J;if(_.RC&&q.nodeType===Node.ELEMENT_NODE&&(J=_.hdw(q)))_.LV(J,0).select();else{J=vC(q)?q:_.Vp(q,vC);var g=vC(t)?t:_.Vp(t,vC);if(J||g)if(F.isCollapsed()){if(q.nodeType===Node.TEXT_NODE){F=!0;u===q.length&&(F=!1);if(Hw==="end"||Hw==="right")F=!1;q=q.parentNode;F=[].concat(_.mZ(q.parentNode.childNodes)).indexOf(q)+(F?0:1);_.LV(q.parentNode,
F).select()}}else J?J.previousSibling&&J.previousSibling.length>0?_.fV(t,F.JSC$11331_getEndOffset(),J.previousSibling,J.previousSibling.length-1).select():(q=document.createTextNode("\u200b"),J.parentNode.insertBefore(q,J),_.fV(t,F.JSC$11331_getEndOffset(),q,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.fV(q,F.JSC$11331_getStartOffset(),g.nextSibling,1).select():(t=document.createTextNode("\u200b"),g.parentNode.insertBefore(t,g.nextSibling),_.fV(q,F.JSC$11331_getStartOffset(),t,t.length).select()));
Hw=null}}else Hw=null}else Hw=null},
leftKeyPressed_:function(){Hw="left"},
rightKeyPressed_:function(){Hw="right"},
endKeyPressed_:function(){Hw="end"},
maybeDeleteChip_:function(){var F=pT3(!0);if(F){var q=_.rI(),t=q.JSC$11331_getStartNode();q=q.JSC$11331_getStartOffset();_.Uu(t,q,F,F.childNodes.length).select()}},
maybeBackspaceChip_:function(){var F=pT3(!1);if(F){var q=_.rI(),t=q.JSC$11331_getStartNode();q=q.JSC$11331_getStartOffset();_.Uu(t,q,F,0).select()}},
maybeBackspaceChipWordMode_:function(F){var q=_.rI();if(q.isCollapsed()){var t=q.JSC$11331_getStartNode();q=q.JSC$11331_getStartOffset();var u=QIv(t,q,!0);u&&(_.Uu(t,q,u,0).select(),document.execCommand("delete"),F.preventDefault(),F.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(F){var q=_.rI();if(q.isCollapsed()){var t=q.JSC$11331_getStartNode();q=q.JSC$11331_getStartOffset();var u=QIv(t,q,!1);u&&(_.Uu(t,q,u,u.childNodes.length).select(),document.execCommand("delete"),F.preventDefault(),F.stopImmediatePropagation())}},
onContentClick:function(F){F.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(F){F.defaultPrevented||F.currentTarget.tagName==="YTD-COMMENT-INPUT"&&vC(F.target)&&F.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.ep(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ep(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(F,q){F=gm7(F,this.emojiManager,q).cloneNode(!0);for(q=F.firstChild;q;)if(q.nodeType!==1)q=q.nextSibling;else switch(q.tagName){case "BR":var t=_.mR();_.FvJ(t,q);q=t.nextSibling;break;case "DIV":(t=q.lastChild)&&q.nextSibling&&_.CR(_.mR(),t);q.previousSibling&&(q.previousSibling.nodeType===1||q.previousSibling.nodeType===3&&!q.previousSibling.textContent.endsWith("\n"))&&_.y2(_.mR(),q);t&&t.nodeName==="BR"&&_.Mq(t);t=q;q.hasChildNodes()?(q=q.firstChild,
_.qCx(t)):(q=q.nextSibling,_.Mq(t));break;default:q=q.nextSibling}return eC5(F)},
setTextAreaValue:function(F){F||(F="");var q=this.getEditableFormattedString_();q.text="";this.getEditableTextArea_().innerText="";typeof F==="string"&&(F={runs:[{text:F}]});q.text=F},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Hw=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var F=this.getEditableTextArea_();F&&(_.LV(F,F.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.bn("HTML_DIR")==="rtl"){var F=this.getEditableTextArea_(),q=this.getTextAreaValue()!==""?"auto":"rtl";F.setAttribute("dir",q)}},
handleInputEvent_:function(){var F=null;if(this.isEmojiButtonDisplayed){var q=this.getInputRange_();q&&(F=this.emojiInput.retrieveTextBeforeRange(q))}this.insertText_(F,!0);this.updateCharCount_();F=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=F.scrollHeight>F.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var F=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:F})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(F){this.isEmojiButtonDisplayed&&(F.preventDefault(),F.stopImmediatePropagation(),F=F.clipboardData.getData("text/plain"),this.insertText_(F,!1,!1),_.Q0(this.hostElement,"input"))},
insertText_:function(F,q,t){q=q===void 0?!1:q;t=t===void 0?!0:t;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&F){var u=this.getInputRange_().cloneRange();this.emojiManager&&u&&(q&&this.emojiInput.offsetStartOfRangeBy(u,F.length),this.insertTextWithEmojis_(u,F,t),sI9(this.getEditableTextArea_().lastChild)||(u=this.getInputRange_().cloneRange()),u&&(this.emojiInput.updateSuggestions(u,F),this.updateSuggestionOffset_(u)))}},
getSimpleString:_.q1,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(F){return F?"focused":"not-focused"},
computePlaceholderText_:function(F){return this.getSimpleString(F)},
computeEditableText_:function(F){return this.getSimpleString(F)},
onPrefilledContentDismissed_:function(F){F.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(F,q){F?this.fire("yt-autonav-pause-focus"):q!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(F){var q=this.getEditableTextArea_();[].concat(_.mZ(F.dataTransfer.items)).forEach(function(t){t.kind==="string"&&t.type.match("^text/plain")&&t.getAsString(function(u){q.appendChild(document.createTextNode(u))})});
F.preventDefault()},
preventDefault_:function(F){F.preventDefault()},
onSuggestionInsert_:function(F){this.insertTextWithEmojis_(F.detail.range,F.detail.text)},
onEmojiSuggestionClick_:function(F){this.emojiInput.insertSuggestion(F.detail)},
updateSuggestionOffset_:function(F){if(this.emojiInput&&_.ep(this.emojiInput).querySelector("#dropdown")){var q=this.getEditableTextArea_().getBoundingClientRect().bottom,t=F.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(q-t)+5;q=this.getEditableTextArea_().getBoundingClientRect().left;F=F.getBoundingClientRect().left-q;_.ep(this.emojiInput).querySelector("#dropdown").style.marginLeft=F+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.dB("yt-post"));return this.localStorage}});var mk=function(){var F=_.x.apply(this,arguments)||this;F.currentCommentOptionIndex=0;F.isEmojiPickerDisplayed=!1;F.emojiManager=_.p7;F.isUgcEmpty=!1;F.userGeneratedCommentChangedHandler=function(){_.Q0(F.hostElement,"ytd-pdg-user-generated-comment-changed");F.isEmojiYtdCommentInputEnabled&&(F.isUgcEmpty=!F.ytdCommentInputEl.getTextAreaValue())};
F.pasteHandler=function(q){q.preventDefault();q.stopImmediatePropagation();var t;if(q=(t=q.clipboardData)==null?void 0:t.getData("text/plain"))t=document.getSelection().getRangeAt(0),t.collapsed||t.deleteContents(),q=document.createTextNode(q),t.insertNode(q),t.selectNodeContents(q),t.collapse(!1),q=window.getSelection(),q.removeAllRanges(),q.addRange(t)};
F.onDocumentClick=function(q){if(F.isEmojiPickerDisplayed){var t,u,J;!(q.target instanceof Node)||(t=q.composedPath())!=null&&t.includes(F.editableTextEl)||(u=q.composedPath())!=null&&u.includes(F.emojiButtonEl)||(J=q.composedPath())!=null&&J.includes(F.emojiPickerEl)||(F.isEmojiPickerDisplayed=!1)}};
return F};
_.M(mk,_.x);_.l=mk.prototype;_.l.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.l.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.l.detached=function(){var F;(F=this.contentEl)==null||F.removeEventListener("input",this.userGeneratedCommentChangedHandler);var q;(q=this.contentEl)==null||q.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.l.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.l.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var F;this.contentEl.textContent=this.rendererBehavior.getSimpleString((F=this.data)==null?void 0:F.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.l.reloadEmojis=function(){this.emojiPickerEl&&_.n(this.emojiPicker,_.N5j)&&this.emojiPickerEl.updateEmojiCategories()};
_.l.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.ws(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.l.handleBackgroundColorStyling=function(){var F;if((F=this.currentCommentOption)==null?0:F.commentBackgroundColorArgb){var q;_.ws(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.KG((q=this.currentCommentOption)==null?void 0:q.commentBackgroundColorArgb)})}else _.ws(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.l.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var F;(F=this.contentEl)==null||F.focus()}};
_.l.onEditButtonClick=function(F){var q=document.getSelection();q&&this.contentEl&&(F.stopPropagation(),F.preventDefault(),q.selectAllChildren(this.contentEl),q.collapseToEnd())};
_.l.onContentDrop=function(F){var q=this;if(F.dataTransfer){F=_.X(F.dataTransfer.items);for(var t=F.next();!t.done;t=F.next())t=t.value,t.kind==="string"&&t.type.match("^text/plain")&&t.getAsString(function(u){var J;(J=q.contentEl)==null||J.appendChild(document.createTextNode(u))})}};
_.l.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.l.getUserGeneratedCommentText=function(){var F,q=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(F=this.contentEl)==null?void 0:F.textContent;return q?q.trim():""};
_.l.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.l.onEmojiSelect=function(F){this.ytdCommentInputEl.onEmojiSelect(F)};
_.JJ.Object.defineProperties(mk.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.currentCommentOption)==null||!F.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var F;if(_.n((F=this.currentCommentOption)==null?void 0:F.chipRenderer,_.Hu1)){var q;return _.n((q=this.currentCommentOption)==null?void 0:q.chipRenderer,_.Hu1)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var F,q;return((F=this.data)==null?0:F.commentOptionRenderers)?_.n((q=this.data)==null?void 0:q.commentOptionRenderers[this.superThanksSelectedTierEntity.index],jwT):void 0}var t,u;return((t=this.data)==null?0:t.commentOptionRenderers)?_.n((u=this.data)==null?void 0:u.commentOptionRenderers[this.currentCommentOptionIndex],jwT):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var F;return this.rendererBehavior.getSimpleString((F=this.data)==null?void 0:F.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var F;return this.rendererBehavior.getSimpleString((F=this.data)==null?void 0:F.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var F,q;return(q=_.n((F=this.data)==null?void 0:F.commentDialog,_.bQn))==null?void 0:q.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var F,q;return(q=_.n((F=this.data)==null?void 0:F.commentDialog,_.bQn))==null?void 0:q.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var F,q;return(q=_.n((F=this.data)==null?void 0:F.commentDialog,_.bQn))==null?void 0:q.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(q=_.n((F=this.data)==null?void 0:F.commentDialog,_.bQn))==null?void 0:q.emojiPicker;if(!_.n(t,_.N5j)||!_.n(t,_.N5j).categories)return!1;F=function(g){return g.emojiPickerCategoryRenderer?g.emojiPickerCategoryRenderer.emojiIds&&g.emojiPickerCategoryRenderer.emojiIds.length>0:g.emojiPickerUpsellCategoryRenderer?g.emojiPickerUpsellCategoryRenderer.emojis&&g.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var u,J;return((u=_.n(t,_.N5j))==null?0:(J=u.categories)==null?0:J.find(F))?!0:!1}}});
mk.prototype.onEmojiSelect=mk.prototype.onEmojiSelect;mk.prototype.dataChanged=mk.prototype.dataChanged;mk.prototype.currentCommentOptionChanged=mk.prototype.currentCommentOptionChanged;_.C([_.D(_.s9),_.V("design:type",Object)],mk.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],mk.prototype,"rendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.Ms("#content-dom-if"),_.V("design:type",_.yu)],mk.prototype,"contentDomIfEl",void 0);_.C([_.Ms("#content-no-emojis"),_.V("design:type",HTMLElement)],mk.prototype,"contentEl",void 0);_.C([_.Ms("#container"),_.V("design:type",HTMLElement)],mk.prototype,"containerEl",void 0);_.C([_.Ms("#comment-chip-container"),_.V("design:type",HTMLElement)],mk.prototype,"paidCommentChipContainerEl",void 0);_.C([_.Ms("#text-input"),_.V("design:type",HTMLElement)],mk.prototype,"editableTextEl",void 0);
_.C([_.Ms("#emoji-button"),_.V("design:type",HTMLElement)],mk.prototype,"emojiButtonEl",void 0);_.C([_.Ms("#emoji-picker > yt-emoji-picker-renderer"),_.V("design:type",Object)],mk.prototype,"emojiPickerEl",void 0);_.C([_.Ms("#text-input > ytd-comment-input"),_.V("design:type",Object)],mk.prototype,"ytdCommentInputEl",void 0);_.C([_.O(),_.V("design:type",Object)],mk.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],mk.prototype,"currentCommentOptionIndex",void 0);
_.C([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Ax5}),_.V("design:type",Object)],mk.prototype,"superThanksSelectedTierEntity",void 0);_.C([_.O(),_.V("design:type",Object)],mk.prototype,"isEmojiPickerDisplayed",void 0);_.C([_.O(),_.V("design:type",Object)],mk.prototype,"emojiManager",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],mk.prototype,"isUgcEmpty",void 0);
_.C([_.za("currentCommentOption"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mk.prototype,"currentCommentOptionChanged",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mk.prototype,"dataChanged",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mk.prototype,"isEmojiYtdCommentInputEnabled",null);
_.C([_.W("data.title"),_.V("design:type",Object),_.V("design:paramtypes",[])],mk.prototype,"title",null);_.C([_.W("data.authorText"),_.V("design:type",Object),_.V("design:paramtypes",[])],mk.prototype,"channelName",null);_.C([_.W("data.commentOptionRenderers","currentCommentOption"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mk.prototype,"shouldShowPaidCommentChipRenderer",null);
_.C([_.W("data.commentOptionRenderers","currentCommentOption"),_.V("design:type",Object),_.V("design:paramtypes",[])],mk.prototype,"paidCommentChipRenderer",null);_.C([_.W("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],mk.prototype,"currentCommentOption",null);
_.C([_.W("data.defaultCommentText","superThanksSelectedTierEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],mk.prototype,"commentText",null);_.C([_.W("data.placeholderText"),_.V("design:type",Object),_.V("design:paramtypes",[])],mk.prototype,"placeholderText",null);_.C([_.W("data.commentDialog.commentDialogRenderer.editableText"),_.V("design:type",Object),_.V("design:paramtypes",[])],mk.prototype,"editableText",null);
_.C([_.W("data.commentDialog.commentDialogRenderer.emojiButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],mk.prototype,"emojiButton",null);_.C([_.W("data.commentDialog.commentDialogRenderer.emojiPicker"),_.V("design:type",Object),_.V("design:paramtypes",[])],mk.prototype,"emojiPicker",null);
_.C([_.W("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],mk.prototype,"isEmojiButtonDisplayed",null);_.C([_.EB("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],mk.prototype,"onEmojiSelect",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],mk);
_.b(mk,"ytd-pdg-comment-preview-renderer",function(){if(y47!==void 0)return y47;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return y47=F},{mode:2});var dPw;var $Y=function(){var F=_.x.apply(this,arguments)||this;F.selected=!1;return F};
_.M($Y,_.x);_.l=$Y.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.l.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.l.dataChanged=function(){this.data&&(_.Zj(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.ws(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.KG(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.KG(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.l.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.l.onClick=function(){this.logClick()};
_.l.onKeyboardSelect=function(){_.Q0(this.hostElement,"tap");this.onClick()};
_.l.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
$Y.prototype.onClick=$Y.prototype.onClick;$Y.prototype.selectedChanged=$Y.prototype.selectedChanged;$Y.prototype.dataChanged=$Y.prototype.dataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],$Y.prototype,"componentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.v6),_.V("design:type",Object)],$Y.prototype,"ironA11yKeysBehavior",void 0);
_.C([_.D(_.ch),_.V("design:type",Object)],$Y.prototype,"ironSelectableBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$Y.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],$Y.prototype,"shownThumbnail",void 0);_.C([_.O(),_.V("design:type",Object)],$Y.prototype,"basePriceText",void 0);_.C([_.O(),_.V("design:type",Object)],$Y.prototype,"purchaseCommand",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],$Y.prototype,"selected",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$Y.prototype,"dataChanged",null);_.C([_.za("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$Y.prototype,"selectedChanged",null);_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$Y.prototype,"onClick",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],$Y);
_.b($Y,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(dPw!==void 0)return dPw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return dPw=F},{mode:1});var b3=function(){var F=_.x.apply(this,arguments)||this;F.selectedItemIndex=0;F.buyButtonDisabled=!1;return F};
_.M(b3,_.x);_.l=b3.prototype;
_.l.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]]"}}}}}};
_.l.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var F;var q=(F=_.n(this.data.colorSlider,ass))==null?void 0:F.notches[this.selectedItemIndex].purchaseCommand}else{var t;q=(t=_.n(this.data.selectableItemButtons[this.selectedItemIndex],Few))==null?void 0:t.purchaseCommand}if(q){F=_.n(q,_.i7j);F.productData||(F.productData={});var u;F.productData={pdgData:{commentMessageText:(u=this.commentPreviewRenderer)==null?void 0:u.getUserGeneratedCommentText()}};
_.Q0(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(q)}}};
_.l.dataChanged=function(){if(this.data){_.p7.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.jWr(_.p7,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.p7.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var F;this.buyButtonDisabled=!((F=_.n(this.data.commentPreview,cBD))==null||!F.placeholderText);this.updatePriceSelectorStatus();var q;if((q=this.data)==null?0:q.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;F=[];this.data.preloadImages&&(F=this.data.preloadImages);
F=F.map(function(t){return _.ZR(t.thumbnails,1920)});
F=_.X(F);for(q=F.next();!q.done;q=F.next())(q=q.value)&&_.jT$(q).thenCatch(function(){_.bz(Error("wl"))})}};
_.l.superThanksSelectedTierEntityChanged=function(){var F;(this==null?void 0:(F=this.superThanksSelectedTierEntity)==null?void 0:F.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.l.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.l.updatePriceSelectorStatus=function(){this.isColorSlider?(_.ep(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.ep(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.ep(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.ep(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.l.closeBuyFlow=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.l.onUserGeneratedContentChanged=function(){var F;this.buyButtonDisabled=!((F=this.commentPreviewRenderer)==null?0:F.getUserGeneratedCommentText())};
_.l.updateSelectedItemIndexFromBinding=function(F){this.selectedItemIndex=F.detail.value};
_.JJ.Object.defineProperties(b3.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.disclaimerText)}}});
b3.prototype.onUserGeneratedContentChanged=b3.prototype.onUserGeneratedContentChanged;b3.prototype.closeBuyFlow=b3.prototype.closeBuyFlow;b3.prototype.selectedItemIndexChanged=b3.prototype.selectedItemIndexChanged;b3.prototype.superThanksSelectedTierEntityChanged=b3.prototype.superThanksSelectedTierEntityChanged;b3.prototype.dataChanged=b3.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],b3.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],b3.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],b3.prototype,"selectedItemIndex",void 0);_.C([_.O(),_.V("design:type",Boolean)],b3.prototype,"isColorSlider",void 0);
_.C([_.O(),_.V("design:type",Object)],b3.prototype,"buyButtonDisabled",void 0);_.C([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Ax5}),_.V("design:type",Object)],b3.prototype,"superThanksSelectedTierEntity",void 0);_.C([_.Ms("ytd-pdg-comment-preview-renderer"),_.V("design:type",Object)],b3.prototype,"commentPreviewRenderer",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],b3.prototype,"ytdReduxBehavior",void 0);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b3.prototype,"dataChanged",null);_.C([_.za("superThanksSelectedTierEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b3.prototype,"superThanksSelectedTierEntityChanged",null);_.C([_.za("selectedItemIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b3.prototype,"selectedItemIndexChanged",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b3.prototype,"closeBuyFlow",null);_.C([_.EB("ytd-pdg-user-generated-comment-changed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b3.prototype,"onUserGeneratedContentChanged",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],b3.prototype,"isDisclaimerTextShown",null);
_.C([_.m({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],b3);
_.b(b3,"yt-super-vod-buy-flow-content-renderer",function(){if($PJ!==void 0)return $PJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return $PJ=F},{mode:1});var V4D;var yW=function(){var F=_.x.apply(this,arguments)||this;F.lottieAnimationRef={};return F};
_.M(yW,_.x);_.l=yW.prototype;_.l.created=function(){_.jq.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.kM(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.l.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Q0(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.l.detached=function(){this.autoCloseJobId&&_.mI.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.kM(this,this.onPopupIronOverlayOpened))};
_.l.dataChanged=function(){var F=this;this.data&&this.data.autoCloseDelay&&(_.ec(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.wC(_.mI,function(){F.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.ws(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.l.onDOMLoadedLottie=function(){var F=this,q,t,u=Number((q=this.data)==null?void 0:(t=q.autoCloseDelay)==null?void 0:t.seconds)||0;this.fadeOutJobId=_.wC(_.mI,function(){F.lottiePlayerEl.classList.add("fadeout")},(u-.25)*1E3);
this.autoCloseJobId=_.wC(_.mI,function(){F.closePopup()},u*1E3)};
_.l.openPopup=function(){this.ironOverlayBehavior.open()};
_.l.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.ec(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.rY(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.sV().resolve(_.gN).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.mI.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.mI.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.l.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var F,q;(F=this.lottieAnimationRef)==null||(q=F.lottieEl)==null||q.destroy();F=this.data.lottie;var t,u;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:F.url+"_"+Math.random(),path:F.url,autoplay:!0,loop:(u=(t=F.settings)==null?void 0:t.loop)!=null?u:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.JJ.Object.defineProperties(yW.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var F,q;return!!((F=this.data)==null?0:(q=F.lottie)==null?0:q.url)}}});
yW.prototype.maybeInitializeLottie=yW.prototype.maybeInitializeLottie;yW.prototype.dataChanged=yW.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yW.prototype,"rendererBehavior",void 0);_.C([_.D(_.u4),_.V("design:type",Object)],yW.prototype,"ironOverlayBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],yW.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],yW.prototype,"lottiePlayerProps",void 0);
_.C([_.O(),_.V("design:type",Object)],yW.prototype,"lottieAnimationRef",void 0);_.C([_.Ms("ytd-lottie-player"),_.V("design:type",HTMLElement)],yW.prototype,"lottiePlayerEl",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yW.prototype,"dataChanged",null);_.C([_.W("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yW.prototype,"hasLottieAnimation",null);
_.C([_.za("data.lottie.url"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yW.prototype,"maybeInitializeLottie",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],yW);
_.b(yW,"ytd-desktop-image-overlay-renderer",function(){if(V4D!==void 0)return V4D;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return V4D=F},{mode:1});var UPs;var Cz=function(){return _.x.apply(this,arguments)||this};
_.M(Cz,_.x);_.l=Cz.prototype;_.l.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"}}}}};
_.l.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",_.kM(this,this.closePopup))};
_.l.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.kM(this,this.closePopup))};
_.l.dataChanged=function(){_.Zl(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.n(this.data.header,fsC)&&(this.hasBackgroundBanner=!!_.n(this.data.header,fsC).backgroundBanner)};
_.l.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.kM(this,this.closePopup))};
_.l.closePopup=function(){this.data&&this.data.onCloseCommand&&_.RD(this.hostElement,[this.data.onCloseCommand])};
Cz.prototype.handleBuyflowSelectionSubmitted=Cz.prototype.handleBuyflowSelectionSubmitted;Cz.prototype.dataChanged=Cz.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Cz.prototype,"data",void 0);
_.C([_.O({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],Cz.prototype,"hasBackgroundBanner",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cz.prototype,"dataChanged",null);_.C([_.EB("yt-pdg-buy-flow-selection-submitted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cz.prototype,"handleBuyflowSelectionSubmitted",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Cz);
_.b(Cz,"ytd-pdg-buy-flow-renderer",function(){if(UPs!==void 0)return UPs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return UPs=F},{mode:1});var SEC;var dT=function(){var F=_.x.apply(this,arguments)||this;F.isOpen=!1;F.isPlaylistCreated=!1;return F};
_.M(dT,_.x);_.l=dT.prototype;_.l.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.l.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Q0(this.hostElement,"yt-refit")};
_.l.onCreateTap=function(){var F=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.RD(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(q,t){if(!_.E("killswitch_ep_in_create_playlist_response")&&(t==null?0:t.actions))for(q=_.X(t.actions),t=q.next();!t.done;t=q.next())t=t.value,_.n(t,_.OL)&&F.ytComponentBehavior.resolveCommand(t)}}]),this.isPlaylistCreated=!0)};
_.l.onKeydown=function(F){if(F.keyCode===13)this.onCreateTap()};
_.l.onServiceRequestCompleted=function(F){F.stopPropagation();_.ec(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.l.computePrivacyBadge=function(F){return F?[{metadataBadgeRenderer:F}]:[]};
dT.prototype.onServiceRequestCompleted=dT.prototype.onServiceRequestCompleted;dT.prototype.onKeydown=dT.prototype.onKeydown;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],dT.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],dT.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],dT.prototype,"isOpen",void 0);
_.C([_.O(),_.V("design:type",Object)],dT.prototype,"isPlaylistCreated",void 0);_.C([_.O({value:{REQUIRED_LABEL:_.oD("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.oD("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.V("design:type",Object)],dT.prototype,"addToStrings",void 0);_.C([_.O({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.V("design:type",Array)],dT.prototype,"privacyBadge",void 0);
_.C([_.Ms("#privacy-input"),_.V("design:type",Object)],dT.prototype,"privacyInput",void 0);_.C([_.Ms("#name-input"),_.V("design:type",Object)],dT.prototype,"nameInput",void 0);_.C([_.EB("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],dT.prototype,"onKeydown",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],dT.prototype,"onServiceRequestCompleted",null);
_.C([_.m({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],dT);
_.b(dT,"ytd-add-to-playlist-create-renderer",function(){if(SEC!==void 0)return SEC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return SEC=F},{mode:1});var hvJ;var KJw;var VW=function(){var F=_.x.apply(this,arguments)||this;F.transferState="TRANSFER_STATE_UNKNOWN";return F};
_.M(VW,_.x);VW.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
VW.prototype.onCheckboxChange=function(F){var q=this;this.data&&_.aE(this,"yt-playlist-checkbox-changed",function(){var t=_.uL(F).checked?q.data.addToPlaylistServiceEndpoint:q.data.removeFromPlaylistServiceEndpoint;t&&_.sV().resolve(_.gN).resolveCommand(t,{form:{element:q.hostElement}});_.E("dl_playlist_killswitch")||q.transferState!=="TRANSFER_STATE_UNKNOWN"&&q.transferState!=="TRANSFER_STATE_FAILED"&&q.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:q.data.playlistId,action:"ACTION_SYNC"}})},
100)};
VW.prototype.computeIconType=function(F){return F?"yt-icons:"+F.toLowerCase():null};
VW.prototype.dataChanged=VW.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],VW.prototype,"data",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],VW.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],VW.prototype,"ytComponentBehavior",void 0);_.C([_.Ms("#checkbox"),_.V("design:type",HTMLInputElement)],VW.prototype,"checkbox",void 0);
_.C([_.O({selector:_.Uf,selectorArgs:["data.playlistId"]}),_.V("design:type",String)],VW.prototype,"transferState",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],VW.prototype,"dataChanged",null);_.C([_.m({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],VW);
_.b(VW,"ytd-playlist-add-to-option-renderer",function(){if(KJw!==void 0)return KJw;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return KJw=F},{mode:1});var Br3=_.ld(function(F){var q=F.data;return _.Z("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.Z("div",null,_.Z(_.rv,{text:function(){return q().title}})),_.Z(_.R,{cond:function(){return q().subtitle},
then:function(t){return _.Z("div",{class:"ytdMenuTitleRendererSubtitle"},_.Z(_.rv,{text:t}))}}))},"sh");
Br3.idomCompat=!0;_.ei(Br3,"ytd-menu-title-renderer",{props:{data:_.NH}});var U$=function(){var F=_.x.apply(this,arguments)||this;F.addToStrings={ADD_TO_DROPDOWN_LABEL:_.oD("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};F.closeButtonAriaLabel=_.oD("SBOX_INAPPROPRIATE_CANCEL");F.dialog=_.E("desktop_add_to_playlist_renderer_dialog_popup");return F};
_.M(U$,_.x);_.l=U$.prototype;_.l.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"}}}};
_.l.onPopupOpened=function(){_.RE(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.l.onPopupClosed=function(){_.RE(this.playlists,"scrollable",!1)};
_.l.computeAriaLabel=function(){var F;if(this==null?0:(F=this.data)==null?0:F.actions){F=_.X(this.data.actions);for(var q=F.next();!q.done;q=F.next())if(q=q.value,q.menuTitleRenderer)return _.q1(q.menuTitleRenderer.title)}};
_.l.onTapClose=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.JJ.Object.defineProperties(U$.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var F;if(this==null?0:(F=this.data)==null?0:F.actions){F=_.X(this.data.actions);for(var q=F.next();!q.done;q=F.next())if(q=q.value,q.menuTitleRenderer)return q.menuTitleRenderer}return!1}}});
U$.prototype.onPopupClosed=U$.prototype.onPopupClosed;U$.prototype.onPopupOpened=U$.prototype.onPopupOpened;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],U$.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],U$.prototype,"ytRendererStamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],U$.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],U$.prototype,"addToStrings",void 0);_.C([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.V("design:type",String)],U$.prototype,"ariaLabel",void 0);_.C([_.O(),_.V("design:type",String)],U$.prototype,"closeButtonAriaLabel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],U$.prototype,"dialog",void 0);
_.C([_.Ms("#playlists"),_.V("design:type",HTMLElement)],U$.prototype,"playlists",void 0);_.C([_.Ms("ytd-add-to-playlist-create-renderer"),_.V("design:type",Object)],U$.prototype,"createRenderer",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],U$.prototype,"menuTitleRenderer",null);_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],U$.prototype,"onPopupOpened",null);
_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],U$.prototype,"onPopupClosed",null);_.C([_.m({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],U$);
_.b(U$,"ytd-add-to-playlist-renderer",function(){if(hvJ!==void 0)return hvJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return hvJ=F},{mode:1});var LJ9;var So=function(){var F=_.x.apply(this,arguments)||this;F.isPlaylistEditComplete=!1;F.isCollabEngagementDisabled=!1;F.closeButtonAriaLabel=_.oD("SBOX_INAPPROPRIATE_CANCEL");F.saveButton={title:_.oD("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};F.onValueChanged=function(){F.updateSaveButtonState();F.computeCollabEngagementDisabled()};
return F};
_.M(So,_.x);_.l=So.prototype;_.l.attached=function(){this.JSC$20498_scroller&&(this.JSC$20498_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20498_scroller.attached&&typeof this.JSC$20498_scroller.attached==="function"&&this.JSC$20498_scroller.attached())};
_.l.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.l.onPopupClosed=function(){this.reset()};
_.l.close=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.l.onClickSave=function(){var F=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var q=[];this.nameInput.value!==null&&q.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&q.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var t=Number(this.privacyInput.value);isNaN(t)||q.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:t})}this.votingInput.value!==null&&(t=this.votingInput.value)&&q.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:t});if(q.length>0){var u;_.n((u=this.data)==null?void 0:u.updateSettingsEndpoint,_.cX).actions=q;var J;if((J=this.data)==null?0:J.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){F.close()}}}),this.isPlaylistEditComplete=!0}}};
_.l.computePrivacyBadge=function(F){return F?[{metadataBadgeRenderer:F}]:[]};
_.l.computeEditorData=function(F){var q,t;return F==null?void 0:(q=F.sections)==null?void 0:(t=q[0])==null?void 0:t.playlistSettingsEditorCasualSectionRenderer};
_.l.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.l.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}}}}}};
_.l.computeAriaLabel=function(){var F,q,t,u=(F=this.data)==null?void 0:(q=F.sections)==null?void 0:(t=q[0])==null?void 0:t.playlistSettingsEditorCasualSectionRenderer;return _.q1(u==null?void 0:u.title)};
_.l.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"}))};
_.l.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.l.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.l.isNameChanged=function(){var F,q,t;return(((F=this.editorData)==null?void 0:(q=F.name)==null?void 0:(t=q.textInputFormFieldRenderer)==null?void 0:t.value)||"")!==(this.nameInput.value||"")};
_.l.isDescriptionChanged=function(){var F,q,t;return(((F=this.editorData)==null?void 0:(q=F.description)==null?void 0:(t=q.textInputFormFieldRenderer)==null?void 0:t.value)||"")!==(this.descriptionInput.value||"")};
_.l.isPrivacyChanged=function(){var F,q,t,u,J,g,Y,Q;return((Y=(F=this.editorData)==null?void 0:(q=F.privacy)==null?void 0:(t=q.dropdownFormFieldRenderer)==null?void 0:(u=t.dropdown)==null?void 0:(J=u.dropdownRenderer)==null?void 0:(g=J.entries)==null?void 0:g.find(function(e){var r;return e==null?void 0:(r=e.privacyDropdownItemRenderer)==null?void 0:r.isSelected}))==null?void 0:(Q=Y.privacyDropdownItemRenderer)==null?void 0:Q.int32Value)!==this.privacyInput.value};
_.l.isVotingChanged=function(){var F,q,t,u,J,g,Y,Q;return((Y=(F=this.editorData)==null?void 0:(q=F.voting)==null?void 0:(t=q.dropdownFormFieldRenderer)==null?void 0:(u=t.dropdown)==null?void 0:(J=u.dropdownRenderer)==null?void 0:(g=J.entries)==null?void 0:g.find(function(e){var r;return e==null?void 0:(r=e.privacyDropdownItemRenderer)==null?void 0:r.isSelected}))==null?void 0:(Q=Y.privacyDropdownItemRenderer)==null?void 0:Q.int32Value)!==this.votingInput.value};
So.prototype.onPopupClosed=So.prototype.onPopupClosed;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],So.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],So.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],So.prototype,"ytRendererStamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],So.prototype,"data",void 0);_.C([_.O({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.V("design:type",Array)],So.prototype,"privacyBadge",void 0);_.C([_.O({computed:"computeEditorData(data)"}),_.V("design:type",Object)],So.prototype,"editorData",void 0);_.C([_.O(),_.V("design:type",Object)],So.prototype,"isPlaylistEditComplete",void 0);_.C([_.O(),_.V("design:type",Object)],So.prototype,"isCollabEngagementDisabled",void 0);
_.C([_.O({value:{REQUIRED_LABEL:_.oD("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.oD("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.V("design:type",Object)],So.prototype,"addToStrings",void 0);_.C([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.V("design:type",String)],So.prototype,"ariaLabel",void 0);_.C([_.O(),_.V("design:type",String)],So.prototype,"closeButtonAriaLabel",void 0);
_.C([_.O(),_.V("design:type",Object)],So.prototype,"saveButton",void 0);_.C([_.Ms("#name-input"),_.V("design:type",Object)],So.prototype,"nameInput",void 0);_.C([_.Ms("#description-input"),_.V("design:type",Object)],So.prototype,"descriptionInput",void 0);_.C([_.Ms("#privacy-input"),_.V("design:type",Object)],So.prototype,"privacyInput",void 0);_.C([_.Ms("#voting-input"),_.V("design:type",Object)],So.prototype,"votingInput",void 0);
_.C([_.Ms("#scroller"),_.V("design:type",Object)],So.prototype,"JSC$20498_scroller",void 0);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],So.prototype,"onPopupClosed",null);_.C([_.O(),_.V("design:type",Object)],So.prototype,"onValueChanged",void 0);_.C([_.m({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],So);
_.b(So,"ytd-playlist-settings-editor-renderer",function(){if(LJ9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);LJ9=F}F=LJ9;return F},{mode:1});var fTh;_.mo("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var hA=function(){return _.x.apply(this,arguments)||this};
_.M(hA,_.x);_.l=hA.prototype;_.l.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}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var F=this.get("data.nextButton.buttonRenderer.navigationEndpoint");F&&(this.nextNavigationEndpoint=F,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.l.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var F={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",F)}}};
_.l.onPopupOpened=function(F){F.detail!==this&&F.detail!==this.hostElement||!_.E("enable_premium_voluntary_pause")||_.ec(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.l.onNextButtonTap=function(){var F=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);F&&this.ytdOpenPopupBehavior.openPopup(F)};
_.l.updateSelectedResponseIndexFromBinding=function(F){this.selectedResponseIndex=F.detail.value};
hA.prototype.onPopupOpened=hA.prototype.onPopupOpened;hA.prototype.onSelectedResponseIndexChange=hA.prototype.onSelectedResponseIndexChange;hA.prototype.dataChanged=hA.prototype.dataChanged;_.C([_.D(_.En),_.V("design:type",Object)],hA.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],hA.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],hA.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Number)],hA.prototype,"selectedResponseIndex",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hA.prototype,"dataChanged",null);_.C([_.za("selectedResponseIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hA.prototype,"onSelectedResponseIndexChange",null);
_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],hA.prototype,"onPopupOpened",null);_.C([_.m({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],hA);
_.b(hA,"ytd-red-cancel-survey-renderer",function(){if(fTh!==void 0)return fTh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return fTh=F},{mode:1});var aT7;var Kz=function(){var F=_.x.apply(this,arguments)||this;F.closeButtonAriaLabel=_.oD("SBOX_INAPPROPRIATE_CANCEL");return F};
_.M(Kz,_.x);Kz.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Kz.prototype.onClickClose=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Kz.prototype,"rendererStamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Kz.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],Kz.prototype,"closeButtonAriaLabel",void 0);_.C([_.m({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Kz);
_.b(Kz,"ytd-search-filter-options-dialog-renderer",function(){if(aT7!==void 0)return aT7;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return aT7=F},{mode:1});var jfC;var rTT=function(){return function(F){F=F.availabilityType;return F===void 0||F==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||F==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Bw=function(){var F=_.x.apply(this,arguments)||this;F.qualityOptions=[];F.upsellOptions=[];F.showUpsellSection=!1;F.darkerDarkTheme=_.E("web_darker_dark_theme");F.rememberSettingsChecked=!1;return F};
_.M(Bw,_.x);_.l=Bw.prototype;_.l.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}}}}};
_.l.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.l.updateQualityOptions=function(){if(this.formats===void 0)_.ec(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var F=[],q=[];this.showUpsellSection=!1;for(var t=_.X(this.formats),u=t.next();!u.done;u=t.next())(u=u.value)&&(u.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?q.push(u):F.push(u));F.length&&(this.qualityOptions=RC5(F));q.length&&(this.showUpsellSection=!0,this.upsellOptions=RC5(q))}};
_.l.updateRememberString=function(){if(this.downloadQualityPickerEntity)var F=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var q;F=(q=this.data)==null?void 0:q.premiumRememberSettingString}else{var t;F=(t=this.data)==null?void 0:t.rememberSettingString}F=F===void 0?_.oD("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):F;this.rememberSettingsCheckboxRenderer={title:_.lC(F),disabled:!1}};
_.l.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.JJ.Object.defineProperties(Bw.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var F;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(F=this.data)==null?void 0:F.qualityFormats}}});
Bw.prototype.updateRememberString=Bw.prototype.updateRememberString;Bw.prototype.updateQualityOptions=Bw.prototype.updateQualityOptions;Bw.prototype.dataChanged=Bw.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Bw.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Bw.prototype,"data",void 0);
_.C([_.D(_.s9),_.V("design:type",Object)],Bw.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Boolean)],Bw.prototype,"selectedUpsellQuality",void 0);_.C([_.O({computed:"computeIcon_(data.premiumIcon)",value:""}),_.V("design:type",String)],Bw.prototype,"premiumIcon",void 0);_.C([_.O({selector:Wjs,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.V("design:type",Object)],Bw.prototype,"downloadQualityPickerEntity",void 0);
_.C([_.O(),_.V("design:type",Array)],Bw.prototype,"qualityOptions",void 0);_.C([_.O(),_.V("design:type",Array)],Bw.prototype,"upsellOptions",void 0);_.C([_.O(),_.V("design:type",Object)],Bw.prototype,"showUpsellSection",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Bw.prototype,"darkerDarkTheme",void 0);_.C([_.O(),_.V("design:type",Object)],Bw.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.C([_.Ms("#remember-settings"),_.V("design:type",HTMLInputElement)],Bw.prototype,"rememberSettingsCheckbox",void 0);_.C([_.O(),_.V("design:type",Object)],Bw.prototype,"rememberSettingsChecked",void 0);_.C([_.O(),_.V("design:type",Function)],Bw.prototype,"onRememberSettingsCheckedChanged",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bw.prototype,"dataChanged",null);
_.C([_.za("downloadQualityPickerEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bw.prototype,"updateQualityOptions",null);_.C([_.za("selectedUpsellQuality"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bw.prototype,"updateRememberString",null);_.C([_.m({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Bw);
_.b(Bw,"ytd-download-quality-selector-content",function(){if(jfC!==void 0)return jfC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return jfC=F},{mode:1});var c45;var Lz=function(){var F=_.x.apply(this,arguments)||this;F.selectedUpsellQuality=!1;F.qualityOptions=[];F.darkerDarkTheme=_.E("web_darker_dark_theme");F.useUpsellDismissAlternate=_.E("use_not_now_dl_upsell_dismiss_cta");F.shouldShowAlternateUpsellDimiss=!1;F.rememberSettings=!1;F.rememberSettingsChecked=!1;F.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};F.rememberSettingsCheckedChanged=function(q){F.rememberSettingsChecked=q};
return F};
_.M(Lz,_.x);_.l=Lz.prototype;
_.l.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lC(_.oD("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lC(_.oD("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.lC(_.oD("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.lC(_.oD("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.l.updateQualityOptions=function(){this.formats===void 0?_.ec(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=RC5(this.formats)};
_.l.onQualityOptionsSelect=function(F){if(this.qualityOptions&&F){F!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var q=_.X(this.qualityOptions.entries()),t=q.next();!t.done;t=
q.next()){t=_.X(t.value);var u=t.next().value;t=t.next().value;var J=void 0,g=void 0;if(((J=t)==null?void 0:(g=J.settingsRadioOptionRenderer)==null?void 0:g.id)===F){this.selectedQualityIndex=u;F=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((F=this.formats[u])==null?void 0:F.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.l.onClickSubmit=function(){var F;if((F=this.downloadButtonRenderer)==null||!F.isDisabled){var q,t;F=(t=(q=this.data)==null?void 0:q.onSubmitEndpoint)!=null?t:{};var u,J;if(this.formats&&(((u=_.n(F,_.EO))==null?0:u.videoId)||((J=_.n(F,_.zl))==null?0:J.playlistId))){var g,Y,Q,e,r,N;q={formatType:(e=(g=this.formats)==null?void 0:(Y=g[(Q=this.selectedQualityIndex)!=null?Q:0])==null?void 0:Y.format)!=null?e:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(r=this.getOfflineEndpoint(F))==null?void 0:(N=r.actionParams)==null?void 0:N.settingsAction)};this.getOfflineEndpoint(F).actionParams=q;this.ytComponentBehavior.resolveCommand(F)}_.ec(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.l.onClickUpsell=function(){var F;if((F=this.upsellButtonRenderer)==null||!F.isDisabled){var q,t;F=(t=(q=this.data)==null?void 0:q.upsellEndpoint)!=null?t:{};this.ytComponentBehavior.resolveCommand(F);_.ec(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);q="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var u,J,g,Y;q=(Y=(u=this.formats)==null?void 0:(J=u[(g=this.selectedQualityIndex)!=null?g:0])==null?void 0:J.format)!=null?Y:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:q}})}};
_.l.onClickClose=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.l.getOfflineSettingsAction=function(F,q){return F?q===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":q:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.l.getOfflineEndpoint=function(F){return _.n(F,_.EO)?_.n(F,_.EO):_.n(F,_.zl)};
_.JJ.Object.defineProperties(Lz.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.lC(_.oD("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var F;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(F=this.data)==null?void 0:F.qualityFormats}}});
Lz.prototype.updateQualityOptions=Lz.prototype.updateQualityOptions;Lz.prototype.dataChanged=Lz.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Lz.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Lz.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Lz.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Number)],Lz.prototype,"selectedQualityIndex",void 0);_.C([_.O(),_.V("design:type",Object)],Lz.prototype,"selectedUpsellQuality",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],Lz.prototype,"ytdReduxBehavior",void 0);
_.C([_.O({selector:Wjs,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.V("design:type",Object)],Lz.prototype,"downloadQualityPickerEntity",void 0);_.C([_.O(),_.V("design:type",Array)],Lz.prototype,"qualityOptions",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Lz.prototype,"darkerDarkTheme",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Lz.prototype,"useUpsellDismissAlternate",void 0);
_.C([_.O(),_.V("design:type",Object)],Lz.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.C([_.O(),_.V("design:type",Object)],Lz.prototype,"downloadButtonRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],Lz.prototype,"upsellButtonRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],Lz.prototype,"cancelButtonRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],Lz.prototype,"upsellCancelButtonRenderer",void 0);_.C([_.O(),_.V("design:type",Object)],Lz.prototype,"rememberSettings",void 0);
_.C([_.O(),_.V("design:type",Object)],Lz.prototype,"rememberSettingsChecked",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lz.prototype,"dataChanged",null);_.C([_.za("downloadQualityPickerEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lz.prototype,"updateQualityOptions",null);_.C([_.m({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Lz);
_.b(Lz,"ytd-download-quality-selector-renderer",function(){if(c45!==void 0)return c45;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return c45=F},{mode:1});var FMC;var fz=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(fz,_.x);fz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
fz.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"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],fz.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],fz.prototype,"darkerDarkTheme",void 0);_.C([_.O({computed:"computeIcon_(data.infoIcon)"}),_.V("design:type",Object)],fz.prototype,"infoIcon",void 0);
_.C([_.O({computed:"computeIcon_(data.warningIcon)"}),_.V("design:type",Object)],fz.prototype,"warningIcon",void 0);_.C([_.m({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],fz);
_.b(fz,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(FMC!==void 0)return FMC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return FMC=F},{mode:1});var qW5;var aP=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(aP,_.x);aP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
aP.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"}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],aP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],aP.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],aP.prototype,"darkerDarkTheme",void 0);_.C([_.m({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],aP);
_.b(aP,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(qW5!==void 0)return qW5;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return qW5=F},{mode:1});var tnJ;var jo=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(jo,_.x);jo.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jo.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"}}}}};
jo.prototype.onServiceRequestSentOrCompleted=function(F,q){q&&q.actions&&q.actions.length>0&&_.ec(this.hostElement,"yt-close-popup-action",[this.is])};
jo.prototype.onServiceRequestSentOrCompleted=jo.prototype.onServiceRequestSentOrCompleted;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],jo.prototype,"darkerDarkTheme",void 0);_.C([_.O(),_.V("design:type",Object)],jo.prototype,"data",void 0);
_.C([_.EB("yt-service-request-completed"),_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],jo.prototype,"onServiceRequestSentOrCompleted",null);_.C([_.m({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],jo);
_.b(jo,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(tnJ!==void 0)return tnJ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return tnJ=F},{mode:1});var uyD;var cw=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");F.submitButtonDisabled=!0;return F};
_.M(cw,_.x);_.l=cw.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.l.onDataChanged=function(){var F,q,t;if(((F=this.data)==null?void 0:(q=F.confirmButton)==null?void 0:(t=q.buttonRenderer)==null?void 0:t.isDisabled)!==void 0){var u,J,g;this.submitButtonDisabled=(u=this.data)==null?void 0:(J=u.confirmButton)==null?void 0:(g=J.buttonRenderer)==null?void 0:g.isDisabled}};
_.l.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.l.updateSubmitButtonDisabledFromBinding=function(F){this.submitButtonDisabled=F.detail.value};
_.l.updateSubmitButtonDisabledFromConfirmCheckbox=function(F){this.submitButtonDisabled=!F.detail.value};
cw.prototype.onDataChanged=cw.prototype.onDataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],cw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],cw.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],cw.prototype,"darkerDarkTheme",void 0);
_.C([_.O(),_.V("design:type",Object)],cw.prototype,"submitButtonDisabled",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cw.prototype,"onDataChanged",null);_.C([_.m({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],cw);
_.b(cw,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(uyD!==void 0)return uyD;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return uyD=F},{mode:1});var JeQ;var Fx=function(){return _.x.apply(this,arguments)||this};
_.M(Fx,_.x);_.JJ.Object.defineProperties(Fx.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var F,q,t;return((F=this.data)==null?void 0:F.title)+" "+((q=this.data)==null?void 0:q.metadataPrimary)+" "+((t=this.data)==null?void 0:t.metadataSecondary)}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Fx.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Fx.prototype,"data",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Fx.prototype,"ariaLabel",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Fx);
_.b(Fx,"ytd-compact-product-list-item-renderer",function(){if(JeQ!==void 0)return JeQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return JeQ=F},{mode:1});var sNs;var qY=function(){return _.x.apply(this,arguments)||this};
_.M(qY,_.x);qY.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]]"}}}}}};
_.JJ.Object.defineProperties(qY.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],qY.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],qY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],qY.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],qY);
_.b(qY,"ytd-compact-product-list-renderer",function(){if(sNs!==void 0)return sNs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return sNs=F},{mode:1});var gk9;var t6=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(t6,_.x);_.l=t6.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.l.getBackgroundUrl=function(){var F=this.get("data.headerImage.thumbnails");return F?"url("+_.ZR(F,this.hostElement.clientWidth)+")":""};
_.l.onDataChanged=function(){var F=this.getBackgroundUrl();F&&(this.header.style.backgroundImage=F);F=_.yb();var q=_.b7(),t=this.get("data.trackingParams");t&&q&&F&&_.Bo(F,q,_.Av(t));F=_.X(this.hostElement.querySelectorAll("yt-img-shadow"));for(q=F.next();!q.done;q=F.next())q.value.onShow()};
_.l.onPopupClosed=function(F){_.uL(F).localName==="ytd-membership-post-cancel-renderer"&&_.ec(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
t6.prototype.onPopupClosed=t6.prototype.onPopupClosed;t6.prototype.onDataChanged=t6.prototype.onDataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],t6.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],t6.prototype,"darkerDarkTheme",void 0);
_.C([_.Ms("#header"),_.V("design:type",HTMLDivElement)],t6.prototype,"header",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t6.prototype,"onDataChanged",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],t6.prototype,"onPopupClosed",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],t6);
_.b(t6,"ytd-membership-post-cancel-renderer",function(){if(gk9!==void 0)return gk9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return gk9=F},{mode:1});var l8h;var uM=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(uM,_.x);uM.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
uM.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],uM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],uM.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],uM.prototype,"darkerDarkTheme",void 0);_.C([_.Ms("ytd-feedback-survey-renderer"),_.V("design:type",Object)],uM.prototype,"feedbackSurveyRenderer",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],uM);
_.b(uM,"ytd-sponsorship-confirm-cancel-content",function(){if(l8h!==void 0)return l8h;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return l8h=F},{mode:1});var XFh;var J6=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");F.maybeSubmitFeedback=function(){F.content&&F.content.maybeSubmitFeedback()};
return F};
_.M(J6,_.x);_.l=J6.prototype;_.l.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.l.onYtPopupOpened=function(F,q){q===this&&this.data&&this.data.onOpenCommands&&_.rY(this.hostElement,this.data.onOpenCommands,this.hostElement);_.ec(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.l.onYtPopupClosed=function(F,q){(q&&q.canceled===!0||q&&q.canceled===!1&&q.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.rY(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestCompleted=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.l.onYtServiceRequestError=function(F){_.as(this.hostElement,F.detail.error.message)};
_.l.onDataChanged=function(){if(this.isAttached){var F=this.backgroundUrl;F&&(_.ep(this.hostElement).querySelector("#header").style.backgroundImage=F)}};
_.JJ.Object.defineProperties(J6.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var F=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return F?"url("+_.ZR(F,this.hostElement.clientWidth)+")":""}}});
J6.prototype.onDataChanged=J6.prototype.onDataChanged;J6.prototype.onYtServiceRequestError=J6.prototype.onYtServiceRequestError;J6.prototype.onYtServiceRequestCompleted=J6.prototype.onYtServiceRequestCompleted;J6.prototype.onYtPopupClosed=J6.prototype.onYtPopupClosed;J6.prototype.onYtPopupOpened=J6.prototype.onYtPopupOpened;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],J6.prototype,"data",void 0);_.C([_.O({value:function(){return _.oD("SBOX_INAPPROPRIATE_CANCEL")}}),
_.V("design:type",String)],J6.prototype,"closeButtonAriaLabel",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],J6.prototype,"darkerDarkTheme",void 0);_.C([_.Ms("#scrollable"),_.V("design:type",Object)],J6.prototype,"scrollable",void 0);_.C([_.Ms("ytd-sponsorship-confirm-cancel-content"),_.V("design:type",Object)],J6.prototype,"content",void 0);
_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],J6.prototype,"onYtPopupOpened",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],J6.prototype,"onYtPopupClosed",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],J6.prototype,"onYtServiceRequestCompleted",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],J6.prototype,"onYtServiceRequestError",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],J6.prototype,"onDataChanged",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],J6);
_.b(J6,"ytd-sponsorship-confirm-cancel-renderer",function(){if(XFh!==void 0)return XFh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return XFh=F},{mode:_.Nc("kevlar_poly_si_batch_j081")?1:2});var YWy;var sg=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(sg,_.x);sg.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],sg.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],sg.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],sg.prototype,"darkerDarkTheme",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],sg);
_.b(sg,"ytd-sponsorships-celebration-content",function(){if(YWy!==void 0)return YWy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return YWy=
F},{mode:1});var pF9;var QNy=_.LZ(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),gH=function(){var F=_.x.apply(this,arguments)||this;F.scriptsAppended=!1;F.useFullWidthPrimaryButton=!1;F.buttonOverrides={type:"tonal",style:"overlay-dark"};return F};
_.M(gH,_.x);_.l=gH.prototype;_.l.dataChanged=function(){var F;this.useFullWidthPrimaryButton=!((F=this.data)==null||!F.useFullWidthPrimaryButton)};
_.l.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.E("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onDataChanged=function(){var F;(F=this.header)==null||F.style.setProperty("background-color",this.backgroundColor);if(F=this.headerImageUrl){var q;(q=this.header)==null||q.style.setProperty("background-image",F)}q=_.yb(4);F=_.b7(4);var t=this.get("data.trackingParams");if(t&&F&&q){var u=_.Av(t);_.Bo(q,F,u);_.E("combine_ve_grafts")?_.DP().graftServerVe(t,F,4):_.Bo(q,F,u)}q=_.X(this.hostElement.querySelectorAll("yt-img-shadow"));for(F=q.next();!F.done;F=q.next())F.value.onShow();if(q=this.get("data.gtmId"))_.f8(q,
_.bn("GL","")),this.setupConversionTracking()};
_.l.setupConversionTracking=function(){if(!this.scriptsAppended){var F=document.createElement("script");var q=_.qv(QNy.join(""));_.tK(F,q);document.head.appendChild(F);F=document.createElement("noscript");F.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(F);this.scriptsAppended=!0}};
_.l.onPopupClosed=function(F){if(_.uL(F).localName==="ytd-sponsorships-celebration-renderer"){_.ec(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var q;this.data&&((q=this.data)==null?0:q.dismissCommand)&&_.oc.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.JJ.Object.defineProperties(gH.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var F=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.KG(F)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var F=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return F?"url("+_.ZR(F,this.hostElement.getBoundingClientRect().width)+")":""}}});
gH.prototype.onPopupClosed=gH.prototype.onPopupClosed;gH.prototype.onDataChanged=gH.prototype.onDataChanged;gH.prototype.dataChanged=gH.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],gH.prototype,"data",void 0);
_.C([_.Ms("#header"),_.V("design:type",HTMLElement)],gH.prototype,"header",void 0);_.C([_.O(),_.V("design:type",Object)],gH.prototype,"scriptsAppended",void 0);_.C([_.O({type:Boolean,reflectToAttribute:!0}),_.V("design:type",Object)],gH.prototype,"useFullWidthPrimaryButton",void 0);_.C([_.O(),_.V("design:type",Object)],gH.prototype,"buttonOverrides",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gH.prototype,"dataChanged",null);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gH.prototype,"onDataChanged",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],gH.prototype,"onPopupClosed",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],gH);
_.b(gH,"ytd-sponsorships-celebration-renderer",function(){if(pF9!==void 0)return pF9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return pF9=F},{mode:1});var emv;var lM=function(){var F=_.x.apply(this,arguments)||this;F.isToggleChecked=!1;return F};
_.M(lM,_.x);lM.prototype.onDataChanged=function(){var F;this.isToggleChecked=((F=this.data)==null?void 0:F.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
lM.prototype.close=function(){var F;((F=this.data)==null?0:F.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
lM.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var F,q=_.n((F=this.data)==null?void 0:F.switchButton,qn9);q&&(this.isToggleChecked&&q.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(q.switchOnInnertubeCommand),!this.isToggleChecked&&q.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(q.switchOffInnertubeCommand))};
lM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lM.prototype.onDataChanged=lM.prototype.onDataChanged;_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],lM.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],lM.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],lM.prototype,"isToggleChecked",void 0);_.C([_.O({value:_.oD("CLOSE")}),_.V("design:type",String)],lM.prototype,"closeButtonAriaLabel",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lM.prototype,"onDataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],lM);
_.b(lM,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(emv!==void 0)return emv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return emv=F},{mode:1});var ZKs;var Xx=function(){return _.x.apply(this,arguments)||this};
_.M(Xx,_.x);_.l=Xx.prototype;_.l.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"}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.detached=function(){this.playerElement.stop()};
_.l.onYtServiceRequestCompleted=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.l.onYtServiceRequestError=function(F){_.as(this.hostElement,F.detail.error.message)};
_.l.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.l.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.l.getTier=function(F,q){return!F||!F.tiers||q<0?null:_.n(F.tiers[q],sAQ)};
_.l.moreThanOne=function(F){return!!(F&&F.length>1)};
_.l.tierOverviewTap=function(F){var q=this;this.selectedTier=F.model.index;_.tJ(this,function(){_.Q0(q.hostElement,"yt-refit")})};
_.l.computeSelectedClass=function(F,q){return this.isSelected(F,q)?"selected":""};
_.l.computeButtonAriaPressed=function(F,q){return this.isSelected(F,q)?"true":"false"};
_.l.isSelected=function(F,q){return F===q};
_.l.onDataChanged=function(){_.ep(this.hostElement).querySelector("#header-overlay").style.visibility="";_.ep(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var F=_.X(this.hostElement.querySelectorAll("yt-img-shadow")),
q=F.next();!q.done;q=F.next())q.value.onShow();var t;this.set("selectedTier",(t=this.get("data.targetTierIndex"))!=null?t:0);var u;(F=(u=this.data)==null?void 0:u.onVisible)&&this.ytComponentBehavior.resolveCommand(F)};
_.l.initializeVe=function(F){var q=_.yb(),t=_.b7(),u=this.get("data.trackingParams");t&&q&&(this.screenLayer=4,q=_.UK(_.A3C)(void 0,69877,{clientScreenNonce:q,visualElement:t},void 0,void 0,void 0),_.dQ(q,69877,4),t=_.b7(4),u&&t&&(u=_.Av(u),_.Bo(q,t,u),F&&(this.offerVideoVe=_.r0(74659),_.Bo(q,u,this.offerVideoVe))))};
_.l.setHeaderBackground=function(){var F=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.ep(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.KG(F);if(F=this.getHeaderImage())F=_.ZR(F,screen.width),_.ep(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+F+")"};
_.l.getHeaderImage=function(){var F=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&F?F:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.l.setupVideoPlayer=function(F){var q=this,t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1)return t=q.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),u=q.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.E("kevlar_player_update_killswitch")?q.playerElement.update({args:{autoplay:t,video_id:F,player_params:u}}):q.playerElement.loadVideoWithPlayerVars({autoplay:t,video_id:F,player_params:u}),
Y.yield(q.playerElement.getPlayerPromise(),2);J=Y.yieldResult;J.addEventListener("onStateChange",function(Q){q.onPlayerStateChange(Q)});
J.setScreenLayer(q.screenLayer);(g=_.yb(4))&&q.offerVideoVe&&_.fJ(g,q.offerVideoVe);t&&(q.pauseOtherPlayers(),q.playerElement.focusOnPlayer(),q.playerElement.getPlayer().hideControls(),_.W2(_.mI,function(){q.fadeOutHeaderOverlay()},4E3));
_.WA(Y)})};
_.l.onPlayerStateChange=function(F){F===1?this.backgroundPlayerElement&&(F=this.backgroundPlayerElement.player_.getPlayerState(),F!==1&&F!==3||this.backgroundPlayerElement.pause()):F===0&&(_.ep(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.ep(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.l.fadeOutHeaderOverlay=function(){_.ep(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.l.onHeaderTap=function(){if(this.offerVideo){_.ep(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var F;((F=this.playerElement.player_)==null?void 0:F.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(F=_.yb(4))&&this.offerVideoVe&&_.co(F,this.offerVideoVe)}};
_.l.getBackgroundImageLayerClass=function(F){return F?"background-image-layer-with-video":""};
_.l.getHeaderClass=function(F){return F?"header-with-video":""};
_.l.getHeaderOverlayClass=function(F){return F?"header-overlay-with-video":""};
_.l.getTitleContainerClass=function(F,q){return F?"title-container-with-video":q?"title-container-without-video-flexible":"title-container-without-video"};
_.l.tierTitleDisplayStatus=function(F){return this.moreThanOne(F)?"hide":"show"};
_.l.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.sV().resolve(_.m4).getPlayerElement():this.backgroundPlayerElement=_.g0();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var F=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=F===1||F===3;this.backgroundPlayerElement.pause()}};
_.l.isMiniplayerActive=function(){return _.sV().resolve(_.m4).isMiniplayerActive()};
_.l.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("selected-tier-changed",this.selectedTier))};
Xx.prototype.selectedTierChangedForBinding=Xx.prototype.selectedTierChangedForBinding;Xx.prototype.onDataChanged=Xx.prototype.onDataChanged;Xx.prototype.onYtPopupClosed=Xx.prototype.onYtPopupClosed;Xx.prototype.onYtPopupOpened=Xx.prototype.onYtPopupOpened;Xx.prototype.onYtServiceRequestError=Xx.prototype.onYtServiceRequestError;Xx.prototype.onYtServiceRequestCompleted=Xx.prototype.onYtServiceRequestCompleted;
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Xx.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Xx.prototype,"data",void 0);_.C([_.O({value:0}),_.V("design:type",Number)],Xx.prototype,"selectedTier",void 0);
_.C([_.O({value:""}),_.V("design:type",String)],Xx.prototype,"offerVideo",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],Xx.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.C([_.O({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.K3(this)}}),
_.V("design:type",String)],Xx.prototype,"playerId",void 0);_.C([_.Ms("tp-yt-paper-dialog-scrollable"),_.V("design:type",Object)],Xx.prototype,"scrollable",void 0);_.C([_.Ms("ytd-sponsorships-tier-renderer"),_.V("design:type",Object)],Xx.prototype,"tierRenderer",void 0);_.C([_.Ms("#player"),_.V("design:type",Object)],Xx.prototype,"playerElement",void 0);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Xx.prototype,"onYtServiceRequestCompleted",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Xx.prototype,"onYtServiceRequestError",null);
_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xx.prototype,"onYtPopupOpened",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xx.prototype,"onYtPopupClosed",null);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xx.prototype,"onDataChanged",null);
_.C([_.za("selectedTier"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xx.prototype,"selectedTierChangedForBinding",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Xx);
_.b(Xx,"ytd-sponsorships-offer-renderer",function(){if(ZKs!==void 0)return ZKs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return ZKs=F},{mode:_.Nc("kevlar_poly_si_batch_j077")?1:2});var RmT;var Ya=function(){var F=_.x.apply(this,arguments)||this;F.buttonOverrides={type:"filled",style:"mono"};return F};
_.M(Ya,_.x);Ya.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}}}}}};
Ya.prototype.backgroundColorChanged=function(){var F,q,t,u=(q=_.n((F=this.data)==null?void 0:F.content,gpC))==null?void 0:(t=q.backgroundColor)==null?void 0:t.backgroundColor;u&&(F=_.hn(u),_.ep(this.hostElement).querySelector("#banner").style.backgroundColor=F,_.ep(this.hostElement).querySelector("#abstract-art").style.backgroundColor=F)};
Ya.prototype.attached=function(){this.JSC$20584_scroller&&(this.JSC$20584_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20584_scroller.attached&&typeof this.JSC$20584_scroller.attached==="function"&&this.JSC$20584_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ya.prototype.backgroundColorChanged=Ya.prototype.backgroundColorChanged;_.C([_.O(),_.V("design:type",Object)],Ya.prototype,"data",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ya.prototype,"ytRendererstamperBehavior",void 0);_.C([_.Ms("#scroller"),_.V("design:type",Object)],Ya.prototype,"JSC$20584_scroller",void 0);_.C([_.O(),_.V("design:type",Object)],Ya.prototype,"buttonOverrides",void 0);
_.C([_.za("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ya.prototype,"backgroundColorChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Ya);
_.b(Ya,"ytd-sponsorships-promotion-celebration-renderer",function(){if(RmT!==void 0)return RmT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return RmT=F},{mode:_.Nc("kevlar_poly_si_batch_j077")?1:2});var rev;var NS9;var pS=function(){return _.x.apply(this,arguments)||this};
_.M(pS,_.x);pS.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
pS.prototype.computeIsInitiallyChecked=function(F){return F===1};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],pS.prototype,"data",void 0);_.C([_.Ms("#checkbox"),_.V("design:type",Object)],pS.prototype,"checkbox",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],pS);
_.b(pS,"ytd-subscription-toggle-option-renderer",function(){if(NS9!==void 0)return NS9;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return NS9=F},{mode:1});var QR=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");F.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return F};
_.M(QR,_.x);QR.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"}}}};
QR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
QR.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var F=_.ep(this.hostElement).querySelector("#options").selected;F=this.data.options[F].subscriptionRadioOptionRenderer.serviceEndpoint;var q=_.ep(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");q&&F&&F.modifyChannelNotificationPreferenceEndpoint&&(q=q.getValue())&&(F.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[q]);_.sV().resolve(_.gN).resolveCommand(F,{form:{element:this.hostElement}});
_.ec(this.hostElement,"yt-close-popup-action")};
_.JJ.Object.defineProperties(QR.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var F=this.data.options,q=0;q<F.length;q++){var t=F[q].subscriptionRadioOptionRenderer;if(t&&t.selected)return q}return null}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],QR.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],QR.prototype,"eventForwardingBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],QR.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],QR.prototype,"darkerDarkTheme",void 0);_.C([_.W("data.options"),_.V("design:type",Object),_.V("design:paramtypes",[])],QR.prototype,"initialIndex",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],QR);
_.b(QR,"ytd-subscription-notification-options-renderer",function(){if(rev!==void 0)return rev;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return rev=F},{mode:1});var wFs;var e_=function(){return _.x.apply(this,arguments)||this};
_.M(e_,_.x);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],e_.prototype,"data",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],e_);
_.b(e_,"ytd-tvfilm-offer-groups-renderer",function(){if(wFs!==void 0)return wFs;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return wFs=F},{mode:1});var iK5;var Zi=function(){var F=_.x.apply(this,arguments)||this;F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(Zi,_.x);_.l=Zi.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.l.computeThumbnailClass=function(F){return F.thumbnailOverlays?F.isShow?"thumbnail-show":"thumbnail-movie":F.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.l.computeCommerceSectionClass=function(F){return F.offers&&F.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.l.computeTitleClass=function(F){return F.offers&&F.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.l.onDataChanged=function(){[].concat(_.mZ(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(F){F.onShow()})};
Zi.prototype.onDataChanged=Zi.prototype.onDataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Zi.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],Zi.prototype,"darkerDarkTheme",void 0);
_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zi.prototype,"onDataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Zi);
_.b(Zi,"ytd-ypc-offers-overlay-renderer",function(){if(iK5!==void 0)return iK5;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return iK5=F},{mode:_.Nc("kevlar_poly_si_batch_j028")?1:2});var k6C;var Ekh=function(){this.usedMethods=new Set};
Ekh.prototype.add=function(F){this.usedMethods.add(F)};
Ekh.prototype.reset=function(){this.usedMethods.clear()};var nkJ=function(F,q){this.query=F;this.previousSearchQuery=q;this.id=zmJ++;if(!ok7){q=_.bn("SBOX_SETTINGS");F="https://"+((q==null?void 0:q.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var t=q==null?void 0:q.REQUEST_LANGUAGE;t&&(F+="&hl="+t);(t=q==null?void 0:q.REQUEST_DOMAIN)&&(F+="&gl="+t);F+="&client=youtube&gs_ri=youtube";(t=q==null?void 0:q.SUGG_EXP_ID)&&(F+="&sugexp="+encodeURIComponent(t));(t=q==null?void 0:q.PSUGGEST_TOKEN)&&(F+="&tok="+t);(q=
q==null?void 0:q.SESSION_INDEX)&&(F+="&authuser="+q);_.E("desktop_enable_visual_suggest")&&(F+="&h=180&w=320&ytvs=1");ok7=F}},Mn3=function(F){var q="q="+encodeURIComponent(F.query);
F.previousSearchQuery&&(q+="&pq="+encodeURIComponent(F.previousSearchQuery));return q},TSC=function(){var F=_.bn("SBOX_SETTINGS"),q={};
if(F==null?0:F.SEND_VISITOR_DATA)q["X-Goog-Visitor-Id"]=F==null?void 0:F.VISITOR_DATA;return q},G67=function(F){var q=ok7;
q+="&gs_id="+F.id.toString(36);q+="&q="+encodeURIComponent(F.query);q+="&cp="+F.query.length;F.previousSearchQuery&&(q+="&pq="+encodeURIComponent(F.previousSearchQuery));(F=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(q+="&video_id="+F);return q},zmJ=0,ok7="";var Du3=_.oG.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,WMs=_.oG.SEARCH_ENTITY_SUGGESTION_MOVIE,OKh=_.oG.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,PGw=_.oG.SEARCH_ENTITY_SUGGESTION_TV_SHOW,xuD=function(F,q){this.text=F;this.bold=q},Aeh=function(F,q,t){this.input=q;
this.index=t;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=F[0];this.type=F[1];this.subtypes=F[2];var u;this.displayText=HC((u=F[3])==null?void 0:u.b);var J;this.ignoredPrefix=HC((J=F[3])==null?void 0:J.a);var g,Y;this.hasNewVideo=((g=F[3])==null?void 0:(Y=g.zam)==null?void 0:Y.toString())==="true"?!0:!1;var Q;this.visualSuggestUrl=(Q=F[3])==null?void 0:Q.zai;var e;this.entityType=HC((e=F[3])==null?void 0:e.zap);var r;this.entityName=HC((r=F[3])==null?void 0:r.zao);var N;q=HC((N=
F[3])==null?void 0:N.zaf);var w;this.entityMid=(w=F[3])==null?void 0:w.zae;N=wTw(this.subtypes,this.entityMid);if(q&&N){if(q){w="";switch(N){case "YOUTUBE_ENTITY_TYPE_SONG":w=OKh;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":w=Du3;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":w=PGw;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":w=WMs}N=N==="YOUTUBE_ENTITY_TYPE_SONG"||N==="YOUTUBE_ENTITY_TYPE_ALBUM"?w+" \u2022  \u2022 "+q:q}else N="";this.entitySubtitle=N}var k;this.externalChannelId=(k=F[3])==null?void 0:k.zav;var z;
this.entityThumbnailAttributionUrl=(z=F[3])==null?void 0:z.zaq},I8T=function(F,q){var t=[],u,J=(u=F.displayText)!=null?u:F.text;
(q==null?0:q.useEntityName)&&vkC(F)&&F.entityName&&(J=F.entityName);if(F.type===33)return t.push(new xuD(J,!1)),t;if(J.length>=F.input.length&&J.substring(0,F.input.length)===F.input)t.push(new xuD(F.input,!1)),t.push(new xuD(J.substring(F.input.length),!0));else{var g=new Set(F.input.split(/\s/)),Y=J.split(/\s/);t=Y.map(function(Q,e){return new xuD(Q.trim()+(e===Y.length-1?"":" "),!g.has(Q))})}return t},vkC=function(F){var q=!!wTw(F.subtypes);
F=!!F.entityMid;return q||F};var HK9=function(F){this.rawResponse=["",[],{}];this.suggestions=[];try{var q=JSON.parse(ipJ(F));if(typeof q==="object"&&q!==null)this.rawResponse=q;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(u){console.log("Suggest: Failed to parse SuggestResponse!");return}var t=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(u,J){return new Aeh(u,t,J)})};var muy=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new Ekh;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20621_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},$u3,bKs=function(){$u3||($u3=new muy);
return $u3};
muy.prototype.updateSuggestions=function(F){var q=this;this.availableSuggestions.forEach(function(t){q.previousSuggestions[t]=!0});
this.availableSuggestions=F.map(function(t){var u=t.type.toString();t.subtypes.length>0&&(u+="i"+t.subtypes.join("i"),u+="k"+t.suggestionSources.COMPLETE_SERVER.toString());return u})};
var ye9=function(F,q){var t=Date.now();F.firstEditTime<0&&(F.firstEditTime=t);q&&(F.lastQueryBuildTime=t);F.lastEditTime=t};
muy.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20621_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var CGv=function(F){var q="";F.availableSuggestions.forEach(function(J){delete F.previousSuggestions[J]});
for(var t=_.X(Object.keys(F.previousSuggestions)),u=t.next();!u.done;u=t.next())u=u.value,F.previousSuggestions[u]&&(q+=(q?"j":"")+u);return q},duw=function(F,q){var t=[];
q&&(t[1]=q.toString());t[0]="youtube";t[7]=Date.now()-F.startTime;t[6]=F.sessionNumber;F.zeroPrefixSuggestionCount>=0&&(t[33]=F.zeroPrefixSuggestionCount);t[13]=F.outOfSyncResponseCount;if(F.availableSuggestions.length>0){for(var u=q="",J=0,g=_.X(F.availableSuggestions),Y=g.next();!Y.done;Y=g.next())Y=Y.value,Y!==u&&(J>1&&(q+="l"+J),q+=(u?"j":"")+Y,J=0,u=Y),J+=1;J>1&&(q+="l"+J);t[3]=q}t[35]=CGv(F);F.selectedSuggestionIndex>=0&&(t[2]=F.selectedSuggestionIndex);var Q;if(q=(Q=_.bn("SBOX_SETTINGS"))==
null?void 0:Q.SUGG_EXP_ID)t[19]=F.normalize(q),Q=0,F.experimentTriggeredBeforeFinal&&(Q|=1),F.experimentTriggeredFinal&&(Q|=2),t[20]=Q;t[26]=Array.from(F.inputMethodsTracker.usedMethods).join("j");if(F.JSC$20621_totalRoundTripTime>0){t[15]=F.JSC$20621_totalRoundTripTime;t[14]=F.maxRoundTripTime;Q=[];for(J=q=0;J<10;J++)u=F.roundTripTimeHistogram[J],u===0?q++:(q>1?Q.push(J+"-"+u):q===1?Q.push("0j"+u):Q.push(u.toString()),q=0);Q=Q.join("j");t[16]=Q}F.zeroPrefixRoundTripTime>0&&(t[36]=F.zeroPrefixRoundTripTime);
F.lastQueryBuildTime>0&&(t[18]=F.lastQueryBuildTime-F.startTime);F.firstEditTime>0&&(t[4]=F.firstEditTime-F.startTime);F.lastEditTime>0&&(t[5]=F.lastEditTime-F.startTime);return t.join(".")};
muy.prototype.normalize=function(F){return F.replaceAll(".","-")};
var VnD=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var RU=function(){var F=_.x.apply(this,arguments)||this;F.microphoneSpinnerActive=!1;F.noAnimations=!1;F.boundExitClick=function(){F.onExitButtonClick()};
F.speechOverlayClassName="";F.isLevelAnimating=!1;F.playCloseDialogAudioFeedback=!0;F.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return F};
_.M(RU,_.x);_.l=RU.prototype;_.l.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.l.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=PPQ()};
_.l.dataChanged=function(){this.logDialog()};
_.l.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var F;(F=this.manager.audioPlayer)!=null&&(F.JSC$19942_audioEnabled=!1)}this.manager.stop();(F=this.manager.audioPlayer)!=null&&(F.JSC$19942_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.l.handleSpeechQueryCompleteAction=function(F){var q=F.navigationAction;q&&(F.trackingParams&&_.DP().graftServerVe(F.trackingParams,this.dialogVe,5),_.Q0(this.hostElement,"yt-navigate",{endpoint:q,tempData:this.getNavigationParams(q),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.l.onExitButtonClick=function(){this.closeDialog()};
_.l.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var F;if((F=this.manager)!=null){var q;(q=F.audioPlayer)==null||iA(q,"failure");F.setState("microphone-off");F.stop()}}else(F=this.manager)==null||F.start()};
_.l.transcriptionChanged=function(){var F,q;(((F=this.transcription)==null?0:F.low)||((q=this.transcription)==null?0:q.high))&&this.setState("transcribing",this.transcription)};
_.l.stateChanged=function(){this.setState(this.state,this.transcription)};
_.l.logDialog=function(){var F;(F=this.data)!=null&&F.trackingParams&&(F=_.DP(),_.OX(F,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=F.graftServerVe(this.data.trackingParams,void 0,5))};
_.l.getNavigationParams=function(F){var q={};if(_.E("web_yt_searchbox")){var t=bKs();t.inputMethodsTracker.add(6);t=duw(t,15);q.gs_l=t;var u;q.oq=((u=_.n(F,_.Dn))==null?void 0:u.query)||""}else if(F=window.ytvoicesearchloggingparams){if(F=F())q.oq=F.oq,q.gs_l=F.gs_l}else _.hN(Error("xl"));return q};
_.l.closeDialog=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.l.setState=function(F,q){if(this.data){var t=this.data,u={};switch(F){case "listening":u={headerText:t.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:t.microphoneButtonAriaLabel};break;case "timeout":u={headerText:t.promptHeader,microphoneState:"try-again",microphoneLabel:t.promptMicrophoneLabel,microphoneAriaLabel:t.promptMicrophoneLabel};break;case "microphone-off":u={headerText:t.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:t.promptMicrophoneLabel,
microphoneAriaLabel:t.promptMicrophoneLabel};break;case "transcribing":(q==null?0:q.low)||(q==null?0:q.high)?u={transcriptionLow:q==null?void 0:q.low,transcriptionHigh:q==null?void 0:q.high,microphoneState:"speaking",microphoneAriaLabel:t.microphoneButtonAriaLabel}:u={headerText:t.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:t.microphoneButtonAriaLabel};break;case "processing":u={headerText:t.loadingHeader,microphoneState:"processing",microphoneAriaLabel:t.microphoneButtonAriaLabel};
break;case "offline":u={headerText:t.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:t.connectionErrorMicrophoneLabel,microphoneAriaLabel:t.connectionErrorMicrophoneLabel};break;case "permission":u={headerText:t.permissionsHeader,bodyLine1:t.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:t.permissionsSubtext};break;case "permission-denied":u={headerText:t.disabledHeader,bodyLine1:t.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:t.disabledSubtext}}u.className=
F;this.speechOverlayState=u;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.l.setMicrophoneState=function(F){var q=this.isLevelAnimating;this.isLevelAnimating=F==="speaking";!q&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=F==="processing"&&!this.noAnimations};
_.l.setClass=function(F){this.speechOverlayClassName&&_.RE(this.hostElement,this.speechOverlayClassName,!1);F&&(this.speechOverlayClassName=F,_.RE(this.hostElement,F,!0))};
_.l.runLevelAnimation=function(){var F=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var q=1+Math.random()*.75,t=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+t/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+q+")");_.mI.addJob(function(){F.runLevelAnimation()},3,t)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
RU.prototype.stateChanged=RU.prototype.stateChanged;RU.prototype.transcriptionChanged=RU.prototype.transcriptionChanged;RU.prototype.onPopupClosed=RU.prototype.onPopupClosed;RU.prototype.dataChanged=RU.prototype.dataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],RU.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],RU.prototype,"rendererStamperBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],RU.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],RU.prototype,"eventForwardingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],RU.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],RU.prototype,"speechOverlayState",void 0);
_.C([_.O(),_.V("design:type",Object)],RU.prototype,"microphoneSpinnerActive",void 0);_.C([_.O({type:_.E("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.V("design:type",Object)],RU.prototype,"noAnimations",void 0);_.C([_.O({selector:function(F){var q;return(q=F.voiceSearch)==null?void 0:q.transcription}}),
_.V("design:type",Object)],RU.prototype,"transcription",void 0);_.C([_.O({selector:function(F){var q;return(q=F.voiceSearch)==null?void 0:q.overlay}}),
_.V("design:type",String)],RU.prototype,"state",void 0);_.C([_.O(),_.V("design:type",Object)],RU.prototype,"boundExitClick",void 0);_.C([_.Ms("#microphone-levels"),_.V("design:type",HTMLElement)],RU.prototype,"level",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RU.prototype,"dataChanged",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RU.prototype,"onPopupClosed",null);
_.C([_.Wh("transcription"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RU.prototype,"transcriptionChanged",null);_.C([_.Wh("state"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RU.prototype,"stateChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],RU);
_.b(RU,"ytd-voice-search-dialog-renderer",function(){if(k6C!==void 0)return k6C;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return k6C=F},{mode:1});var Uu3;var rH=function(){var F=_.x.apply(this,arguments)||this;F.isOverlay=!1;F.hidden=!1;return F};
_.M(rH,_.x);_.l=rH.prototype;_.l.onPopupClosed=function(){this.toggleIconState(!1)};
_.l.computeIcon=function(){var F,q,t;return(q=_.n((F=this.data)==null?void 0:F.icon,QA5))==null?void 0:(t=q.icon)==null?void 0:t.iconType};
_.l.computeIconBadgeShape=function(){var F;return{iconBadgeType:"cart",iconBadgeText:(F=this.iconBadgeEntity)==null?void 0:F.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.l.onClick=function(){var F;(F=this.data)!=null&&F.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.l.computeHidden=function(F){return!F};
_.l.toggleIconState=function(F){this.iconButton&&(this.iconButton.pressed=F)};
rH.prototype.onPopupClosed=rH.prototype.onPopupClosed;_.C([_.D(_.s9),_.V("design:type",Object)],rH.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],rH.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],rH.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],rH.prototype,"isOverlay",void 0);
_.C([_.O({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.V("design:type",Object)],rH.prototype,"hidden",void 0);_.C([_.O({selectorArgs:["data.iconBadgeEntityKey"],selector:function(F,q){return _.iC(F.entities,"iconBadgeEntity",q)}}),
_.V("design:type",Object)],rH.prototype,"iconBadgeEntity",void 0);_.C([_.Ms("yt-icon-button"),_.V("design:type",HTMLButtonElement)],rH.prototype,"iconButton",void 0);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rH.prototype,"onPopupClosed",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],rH);
_.b(rH,"ytd-icon-badge-topbar-button-renderer",function(){if(Uu3!==void 0)return Uu3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return Uu3=F},{mode:1});var SW3;var NY=function(){var F=_.x.apply(this,arguments)||this;F.premiumOptions=[];F.darkerDarkTheme=_.E("web_darker_dark_theme");return F};
_.M(NY,_.x);NY.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.JJ.Object.defineProperties(NY.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],NY.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Array)],NY.prototype,"premiumOptions",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],NY.prototype,"darkerDarkTheme",void 0);_.C([_.W("premiumOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],NY.prototype,"hasPremiumOptions",null);
_.C([_.m({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],NY);
_.b(NY,"ytd-offline-promo-content",function(){if(SW3!==void 0)return SW3;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return SW3=F},{mode:1});var hmv;var wH=function(){var F=_.x.apply(this,arguments)||this;F.premiumOptions=[];return F};
_.M(wH,_.x);wH.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var F;this.premiumOptions=NCh((F=this.data)==null?void 0:F.formats)};
wH.prototype.onClickSubmit=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var F;(F=_.g0())==null||F.pause()};
wH.prototype.attached=function(){this.JSC$20641_scroller&&(this.JSC$20641_scroller.dialogElement=this.hostElement.parentNode)};
_.JJ.Object.defineProperties(wH.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
wH.prototype.dataChanged=wH.prototype.dataChanged;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],wH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],wH.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],wH.prototype,"data",void 0);
_.C([_.O({computed:"computeIcon_(data.headersIcon)",value:""}),_.V("design:type",String)],wH.prototype,"headersIcon",void 0);_.C([_.O(),_.V("design:type",Array)],wH.prototype,"premiumOptions",void 0);_.C([_.Ms("#scroller"),_.V("design:type",Object)],wH.prototype,"JSC$20641_scroller",void 0);_.C([_.W("headersIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],wH.prototype,"showIcon",null);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wH.prototype,"dataChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],wH);
_.b(wH,"ytd-offline-promo-renderer",function(){if(hmv!==void 0)return hmv;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return hmv=F},{mode:1});var KMC;var iM=function(){var F=_.x.apply(this,arguments)||this;F.playbackPauseInterval=NaN;F.isLoading=!1;F.hasError=!1;F.dialogClass="";F.youtubeLabel=_.oD("LOGO_ALT_LABEL",{},"YouTube Home");F.logoName="yt-logos-ext:yt-logo-updated";F.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return F};
_.M(iM,_.x);_.l=iM.prototype;_.l.onDataChange=function(){var F;if(this.showEOMV1Text=!((F=this.data)==null||!F.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.l.attached=function(){this.pausePlayer()};
_.l.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.l.handleLangSelect=function(F){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[F.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.l.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.l.handleSaveConsent=function(F){var q=this;this.showLoadingSpinner();this.showLoadingSpinner();woJ(_.n(F,eps)).catch(function(t){_.bz(new _.D0("Something went wrong when save consent "+(t.message?t.message:t)+"."));q.hideLoadingSpinner();q.showErrorMessage()})};
_.l.handleDisablePersonalization=function(F){var q=this;this.showLoadingSpinner();iJy(_.n(F,QwD)).then(function(){q.dialog.close();q.resumePlayer()}).catch(function(t){_.bz(new _.D0("Something went wrong when disable personalization "+(t.message?t.message:t)+"."));
q.hideLoadingSpinner();q.showErrorMessage()})};
_.l.showLoadingSpinner=function(){var F=this;this.showSpinnerJobId=_.mI.addLowPriorityJob(function(){F.isLoading=!0},500)};
_.l.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.mI.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.l.showErrorMessage=function(){var F=this;this.hasError=!0;_.mI.addLowPriorityJob(function(){F.hasError=!1},2E3)};
_.l.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.rN(function(){try{var F=_.g0();F&&F.pause()}catch(q){}},100))};
_.l.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var F=_.g0();F&&F.play()}catch(q){}};
_.JJ.Object.defineProperties(iM.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.eomV1Text)return[];F=[];for(var q=["SHIELD","WARNING","BAR_CHART"],t=this.data.eomV1Text.essentialCookieMsg.items,u=0;u<q.length&&u<t.length;u++)F.push({icon:q[u],text:t[u]});return F}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.eomV1Text)return[];F=[];for(var q=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],t=this.data.eomV1Text.nonEssentialCookieMsg.items,u=0;u<q.length&&u<t.length;u++)F.push({icon:q[u],text:t[u]});return F}}});
iM.prototype.onDataChange=iM.prototype.onDataChange;_.C([_.O(),_.V("design:type",Object)],iM.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],iM.prototype,"showEOMV1Text",void 0);_.C([_.O(),_.V("design:type",Object)],iM.prototype,"isLoading",void 0);_.C([_.O(),_.V("design:type",Object)],iM.prototype,"hasError",void 0);_.C([_.O(),_.V("design:type",Number)],iM.prototype,"showSpinnerJobId",void 0);_.C([_.O(),_.V("design:type",Object)],iM.prototype,"dialogClass",void 0);
_.C([_.Ms("#dialog"),_.V("design:type",Object)],iM.prototype,"dialog",void 0);_.C([_.Ms("#cb-header"),_.V("design:type",HTMLElement)],iM.prototype,"header",void 0);_.C([_.Ms("#lang-select"),_.V("design:type",HTMLElement)],iM.prototype,"langSelect",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],iM.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],iM.prototype,"ytComponentBehavior",void 0);
_.C([_.O(),_.V("design:type",String)],iM.prototype,"youtubeLabel",void 0);_.C([_.O(),_.V("design:type",Object)],iM.prototype,"logoName",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iM.prototype,"onDataChange",null);_.C([_.W("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],iM.prototype,"eomEssentialCookieMsgItems",null);
_.C([_.W("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],iM.prototype,"eomNonEssentialCookieMsgItems",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],iM);
_.b(iM,"ytd-consent-bump-v2-lightbox",function(){if(KMC!==void 0)return KMC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return KMC=F},{mode:1});var BSQ;var ka=function(){return _.x.apply(this,arguments)||this};
_.M(ka,_.x);ka.prototype.ready=function(){if(!_.Mh()||TdT)var F=!0;else TdT=!0,F=!1;F||(F=document.querySelector("ytd-app"),F||(F=document.body),this.internalLightBox=_.ep(F).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.C([_.O(),_.V("design:type",Object)],ka.prototype,"data",void 0);_.C([_.Ms("#lightbox"),_.V("design:type",Object)],ka.prototype,"lightBox",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],ka);
_.b(ka,"ytd-consent-bump-v2-renderer",function(){if(BSQ!==void 0)return BSQ;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return BSQ=F},{mode:1});var LMC;var f8y;var a87;var Eg=function(){return _.x.apply(this,arguments)||this};
_.M(Eg,_.x);_.l=Eg.prototype;_.l.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&HZ3(this.toastManager,this.toastType)};
_.l.open=function(F){this.toast&&(this.ephemeralAction&&_.sV().resolve(_.h5).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=F!=null?F:0,this.toastManager.enqueue(this.toast,F)):this.toast.open())};
_.l.close=function(F){var q;(q=this.toast)==null||q.close();this.toastManager&&F===1&&HZ3(this.toastManager,F)};
_.l.refit=function(){var F;(F=this.toast)==null||F.refit()};
_.l.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var F;(F=this.toast)==null||F.close()}};
_.l.setVerticalOffset=function(F){this.toast&&(this.toast.verticalOffset=F,this.toast.fit())};
_.l.computeButtonClass_=function(F){return F?"toast-button":""};
_.l.computeText_=function(F){return _.q1(F)};
_.l.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.RA("toast-opened-changed",this.toastOpened))};
_.l.updateToastOpenedFromBinding=function(F){this.toastOpened=F.detail.value};
_.JJ.Object.defineProperties(Eg.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var F,q,t=(F=this.data)==null?void 0:(q=F.actionButton)==null?void 0:q.buttonRenderer;return(t==null?void 0:t.command)||(t==null?void 0:t.serviceEndpoint)||(t==null?void 0:t.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var F=[],q;((q=this.data)==null?0:q.responseText)&&F.push(_.q1(this.data.responseText));var t;((t=this.data)==null?0:t.subText)&&F.push(_.q1(this.data.subText));var u,J;if((u=this.data)==null?0:(J=u.actionButton)==null?0:J.buttonRenderer){var g,Y;F.push(((g=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(Y=g.accessibilityData)==null?void 0:Y.label)||_.q1(this.data.actionButton.buttonRenderer.text))}return F.filter(function(Q){return Q}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var F,q;return(q=(F=this.toast)==null?void 0:F.opened)!=null?q:!1}}});
Eg.prototype.toastOpenedChangedForBinding=Eg.prototype.toastOpenedChangedForBinding;Eg.prototype.toastOpenedChanged=Eg.prototype.toastOpenedChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],Eg.prototype,"ytEventForwardingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Eg.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],Eg.prototype,"duration",void 0);
_.C([_.O(),_.V("design:type",Number)],Eg.prototype,"toastType",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],Eg.prototype,"useCloseButton",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],Eg.prototype,"closeToastOnActionButtonClick",void 0);_.C([_.O({value:function(){return _.oD("SBOX_INAPPROPRIATE_CANCEL")}}),
_.V("design:type",String)],Eg.prototype,"closeButtonAriaLabel",void 0);_.C([_.O(),_.V("design:type",Boolean)],Eg.prototype,"toastOpened",void 0);_.C([_.O(),_.V("design:type",Boolean)],Eg.prototype,"hasOpened",void 0);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eg.prototype,"command",null);_.C([_.W("labelText","command","duration"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eg.prototype,"ephemeralAction",null);
_.C([_.W("ephemeralAction"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Eg.prototype,"hasEphemeralAction",null);_.C([_.Ms("#toast"),_.V("design:type",Object)],Eg.prototype,"toast",void 0);_.C([_.O({value:function(){return{style:"call-to-action-inverse"}}}),
_.V("design:type",Object)],Eg.prototype,"buttonOverrides",void 0);_.C([_.O({value:{style:"mono-inverse"}}),_.V("design:type",Object)],Eg.prototype,"closeButtonOverrides",void 0);_.C([_.O({value:function(){return _.sV().resolve(_.JU(_.Cx))}}),
_.V("design:type",Object)],Eg.prototype,"toastManager",void 0);_.C([_.W("data.responseText","data.subText","data.actionButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eg.prototype,"labelText",null);_.C([_.za("toastOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Eg.prototype,"toastOpenedChanged",null);
_.C([_.za("toastOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Eg.prototype,"toastOpenedChangedForBinding",null);_.C([_.Vu({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Eg);
_.b(Eg,"yt-notification-action-renderer",function(){if(a87===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;f8y===void 0&&(f8y=document.createElement("template"));var u=f8y;t.call(q,u.content.cloneNode(!0),F.content.firstChild);a87=F}F=a87;return F},{mode:2});var z$=function(){var F=_.x.apply(this,arguments)||this;F.duration=4E3;F.downloadingCount=0;F.downloadedCount=0;F.downloadingOnlySmartDownloads=!1;F.sessionTotalDownloads=0;F.sessionDownloaded=0;F.previousSessionsDownloaded=0;F.totalDownloadPercentage=0;F.currentDownloadProgress=0;F.currentDownloadPercentage=0;F.isLeaderTab=!0;F.isFullScreen=!1;F.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};F.boundBeforeUnload=function(q){F.isLeaderTab&&F.downloadingCount>0&&(q.preventDefault(),
q.returnValue=!0)};
return F};
_.M(z$,_.x);_.l=z$.prototype;
_.l.open=function(){this.updateDownloadState();if(this.data){var F=this.sessionDownloaded+1,q=this.sessionTotalDownloads>1?_.oD("VIDEOS_DOWNLOADING_RATIO",{downloaded:F.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+F+"/"+this.sessionTotalDownloads):_.oD("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(q=this.sessionTotalDownloads>1?_.oD("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:F.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
F+"/"+this.sessionTotalDownloads):_.oD("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));F=this.isLeaderTab?_.oD("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.q1(this.data.responseText)!==q||_.q1(this.data.subText)!==F)this.set("data.responseText",_.FK(q)),this.set("data.subText",_.FK(F)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.l.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.l.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.l.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.l.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var F=this.downloadedCount-this.previousSessionsDownloaded;F<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-F);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.l.handleFullscreenChange=function(F){(this.isFullScreen=F)||this.updatePopup()};
z$.prototype.updateCurrentDownloadProgress=z$.prototype.updateCurrentDownloadProgress;z$.prototype.updatePopup=z$.prototype.updatePopup;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],z$.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],z$.prototype,"ytEventForwardingBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],z$.prototype,"actionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],z$.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],z$.prototype,"duration",void 0);_.C([_.O({selector:function(F){return _.XQu(F.entities).length}}),
_.V("design:type",Object)],z$.prototype,"downloadingCount",void 0);_.C([_.O({selector:DU9}),_.V("design:type",Object)],z$.prototype,"downloadedCount",void 0);_.C([_.O({selector:function(F){var q=_.XQu(F.entities);return GVD(F.entities,q)}}),
_.V("design:type",Object)],z$.prototype,"downloadingOnlySmartDownloads",void 0);_.C([_.O(),_.V("design:type",Object)],z$.prototype,"sessionTotalDownloads",void 0);_.C([_.O(),_.V("design:type",Object)],z$.prototype,"sessionDownloaded",void 0);_.C([_.O(),_.V("design:type",Object)],z$.prototype,"previousSessionsDownloaded",void 0);_.C([_.O(),_.V("design:type",Object)],z$.prototype,"totalDownloadPercentage",void 0);
_.C([_.O({selector:function(F){var q;F=(q=_.XQu(F.entities))!=null?q:[];return F.length>0?_.a1W(F.slice(-1)):0}}),
_.V("design:type",Object)],z$.prototype,"currentDownloadProgress",void 0);_.C([_.O(),_.V("design:type",Object)],z$.prototype,"currentDownloadPercentage",void 0);_.C([_.O({selector:_.Z8v}),_.V("design:type",Object)],z$.prototype,"isLeaderTab",void 0);_.C([_.Ms("yt-notification-action-renderer"),_.V("design:type",Object)],z$.prototype,"notificationActionRenderer",void 0);
_.C([_.Wh("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z$.prototype,"updatePopup",null);_.C([_.Wh("currentDownloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z$.prototype,"updateCurrentDownloadProgress",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],z$);
_.b(z$,"ytd-video-download-toast-renderer",function(){if(LMC!==void 0)return LMC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return LMC=F},{mode:1});var jNT;var cev;var oU=function(){return _.x.apply(this,arguments)||this};
_.M(oU,_.x);oU.prototype.computeIsRedLogo=function(F,q){!F&&q&&(F=q);return F==="YOUTUBE_RED_LOGO"||F==="YOUTUBE_PREMIUM_LOGO"};
oU.prototype.computeLogoName=function(F){F=this.componentBehavior.computeIcon_(F);return F===""?"yt-logos-ext:yt-logo-updated":F};
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],oU.prototype,"componentBehavior",void 0);_.C([_.O({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.V("design:type",Boolean)],oU.prototype,"isRedLogo",void 0);_.C([_.O({computed:"computeLogoName(data)"}),_.V("design:type",String)],oU.prototype,"logoName",void 0);_.C([_.O({value:{}}),_.V("design:type",Object)],oU.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],oU.prototype,"logoType",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-logo"})],oU);
_.b(oU,"ytd-logo",function(){if(cev!==void 0)return cev;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return cev=F},{mode:_.Nc("kevlar_poly_si_batch_j074")?1:2});var nS=function(){var F=_.x.apply(this,arguments)||this;F.animationRef={};return F};
_.M(nS,_.x);_.l=nS.prototype;_.l.attached=function(){document.addEventListener("yt-navigate-finish",_.kM(this,this.logYoodle))};
_.l.detached=function(){document.removeEventListener("yt-navigate-finish",_.kM(this,this.logYoodle))};
_.l.logYoodle=function(){var F,q;if((F=this.data)==null?0:(q=F.loggingDirectives)==null?0:q.trackingParams)this.ytRendererBehavior.markDirty(),_.DP().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.l.computeHideImg=function(F,q){return!!F||!!q};
_.l.computeHideYtdLogo=function(F,q){return!F||!!q};
_.l.computeHideLottie=function(F){return!F};
_.l.computeIsRedLogo=function(F){return F==="YOUTUBE_RED_LOGO"||F==="YOUTUBE_PREMIUM_LOGO"};
_.l.renderLogoEntity=function(){var F=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),q=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),t=this.getLogoTitleText(this.data),u=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==F&&(this.url=F);this.animatedUrl!==q&&(this.animatedUrl=q);this.logoTitleText!==t&&(this.logoTitleText=t);this.lottieUrl!==u&&(this.lottieUrl=u,this.lottiePlayerProps=this.computeLottiePlayerProps(u))};
_.l.getSanitizedThumbnail=function(F){return F&&F.thumbnails?_.rLM(F.thumbnails,122)||"":""};
_.l.getThumbnailUrl=function(F,q){if(!q)return"";var t,u;F=F?(t=q.darkThemeLogo)==null?void 0:t.thumbnail:(u=q.lightThemeLogo)==null?void 0:u.thumbnail;return this.getSanitizedThumbnail(F)};
_.l.getAnimatedThumbnailUrl=function(F,q){return q?this.getSanitizedThumbnail(F?q.darkThemeAnimatedLogo:q.lightThemeAnimatedLogo):""};
_.l.getLogoTitleText=function(F){if(F)return _.q1(F.tooltipText)};
_.l.computeLogoIcon=function(F,q){if(q){var t,u;return F?(t=q.darkThemeLogo)==null?void 0:t.icon:(u=q.lightThemeLogo)==null?void 0:u.icon}};
_.l.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.l.getLottieUrl=function(F,q){var t,u,J,g;return F?q==null?void 0:(t=q.darkThemeLogo)==null?void 0:(u=t.lottieAnimation)==null?void 0:u.url:q==null?void 0:(J=q.lightThemeLogo)==null?void 0:(g=J.lottieAnimation)==null?void 0:g.url};
_.l.computeLottiePlayerProps=function(F){if(F){var q;if((q=this.animationRef)==null?0:q.lottieEl){var t;(t=this.animationRef)==null||t.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:F,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.l.onLottieError=function(){this.data&&this.lottieUrl&&_.Q0(this.hostElement,"yoodle-error")};
_.l.onImgError=function(){this.data&&!this.lottieUrl&&_.Q0(this.hostElement,"yoodle-error")};
nS.prototype.playAnimation=nS.prototype.playAnimation;nS.prototype.renderLogoEntity=nS.prototype.renderLogoEntity;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],nS.prototype,"data",void 0);_.C([_.O({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.V("design:type",Boolean)],nS.prototype,"hideImg",void 0);
_.C([_.O({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.V("design:type",Boolean)],nS.prototype,"hideYtdLogo",void 0);_.C([_.O({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.V("design:type",Boolean)],nS.prototype,"hideLottie",void 0);_.C([_.O({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.V("design:type",Boolean)],nS.prototype,"isRedLogo",void 0);
_.C([_.O(),_.V("design:type",Boolean)],nS.prototype,"useDarkThemeYoodle",void 0);_.C([_.O(),_.V("design:type",String)],nS.prototype,"url",void 0);_.C([_.O(),_.V("design:type",String)],nS.prototype,"animatedUrl",void 0);_.C([_.O(),_.V("design:type",String)],nS.prototype,"logoTitleText",void 0);_.C([_.O({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.V("design:type",Object)],nS.prototype,"logoIcon",void 0);_.C([_.O(),_.V("design:type",Object)],nS.prototype,"logoType",void 0);
_.C([_.O(),_.V("design:type",String)],nS.prototype,"lottieUrl",void 0);_.C([_.O(),_.V("design:type",Object)],nS.prototype,"lottiePlayerProps",void 0);_.C([_.O(),_.V("design:type",Object)],nS.prototype,"animationRef",void 0);_.C([_.za("data"),_.za("useDarkThemeYoodle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nS.prototype,"renderLogoEntity",null);
_.C([_.EB("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],nS.prototype,"playAnimation",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],nS);
_.b(nS,"ytd-yoodle-renderer",function(){if(jNT!==void 0)return jNT;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return jNT=F},{mode:_.Nc("kevlar_poly_si_batch_j074")?1:2});var F3v;var qAh;var tU3=_.BD.currentPageTypeSelector,u_h=_.BD.currentPageSubTypeSelector,MY=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return F};
_.M(MY,_.x);_.l=MY.prototype;_.l.onYoodleError=function(){_.E("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.l.computeLogoName=function(F){F=this.componentBehavior.computeIcon_(F);return F===""?"yt-logos-ext:yt-logo-updated":F};
_.l.computeTitle=function(F,q,t){return t&&(q==null?0:q.tooltipText)?_.q1(q.tooltipText):_.q1(F)};
_.l.computeAriaLabel=function(F,q,t){return t&&(q==null?0:q.tooltipText)?_.q1(F):""};
_.l.computeShowYoodle=function(F,q,t){return!F||!q&&!!t&&!_.m7.isEmpty(t)};
_.l.onNavigateHomeAction=function(){if(_.E("kevlar_miniplayer_navigate_home_from_app_killswitch")){var F;(F=_.ep(this.hostElement).querySelector(".yt-simple-endpoint"))==null||F.click()}};
_.l.computeLogoHref=function(F,q,t){var u;(t==null?0:t.onTapCommand)?u=this.componentBehavior.computeHref_(t.onTapCommand):F&&(u=this.componentBehavior.computeHref_(F));return u?u:q};
_.l.computeCommand=function(F,q){return(q==null?void 0:q.onTapCommand)||F};
_.l.getEndpointForm=function(){if(_.E("kevlar_topbar_disable_cache_only_home")){var F=_.sV().resolve(_.sb),q=tU3(F.getState())||"";F=u_h(F.getState())||"";return{disableCache:q==="ytd-browse"&&F==="home"}}return{disableCache:!0}};
MY.prototype.onYoodleError=MY.prototype.onYoodleError;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],MY.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],MY.prototype,"componentBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],MY.prototype,"ytdReduxBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],MY.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],MY.prototype,"countryCode",void 0);_.C([_.O({selectorArgs:["data.overrideEntityKey"],selector:function(F,q){return _.iC(F.entities,"logoEntity",q)}}),
_.V("design:type",Object)],MY.prototype,"logoEntity",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.V("design:type",Boolean)],MY.prototype,"showYoodle",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],MY.prototype,"yoodleError",void 0);_.C([_.O({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.V("design:type",String)],MY.prototype,"titleText",void 0);
_.C([_.O({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.V("design:type",String)],MY.prototype,"ariaLabelText",void 0);_.C([_.O({value:"/"}),_.V("design:type",String)],MY.prototype,"defaultEndpointUrl",void 0);_.C([_.O({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.V("design:type",String)],MY.prototype,"endpointUrl",void 0);
_.C([_.O({computed:"computeCommand(data.endpoint, logoEntity)"}),_.V("design:type",String)],MY.prototype,"command",void 0);_.C([_.O(),_.V("design:type",Object)],MY.prototype,"logoType",void 0);_.C([_.O({}),_.V("design:type",Boolean)],MY.prototype,"useDarkThemeYoodle",void 0);_.C([_.EB("yoodle-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MY.prototype,"onYoodleError",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],MY);
_.b(MY,"ytd-topbar-logo-renderer",function(){if(qAh!==void 0)return qAh;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return qAh=F},{mode:_.Nc("kevlar_poly_si_batch_j027")?1:2});var J_7=0;var sF9=_.oG.SEARCH_APPEND_LABEL,gry=_.oG.SUGGESTION_NEW_VIDEOS_TEXT,lm5=_.oG.SUGGESTION_THUMBNAIL_LABEL,XHC=_.oG.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,YAQ=_.ld(function(F){function q(Wf){var zv,R2;return _.p(function(ND){if(ND.nextAddress==1)return zv=new Request(Wf),_.zg(ND,2),ND.yield(fetch(zv,{credentials:"include"}),4);if(ND.nextAddress!=2)return DQ(!0),_.LE(ND,0);R2=_.Gg(ND);_.bz(R2);_.WA(ND)})}
var t=F.isHighlighted;var u=F.suggestion;var J=F.onClickCallback;var g=F.onHoverUpdateCallback;var Y=F.labels;var Q=F.queryBuilderFunction;var e=F.onRemoveCallback;var r=F.suggestionIndex;var N=F.generateUniqueId;var w=F.highlightedId;var k=F.useScrollMargin;var z=F.isKeyboardMode;var T=null,P=null,v=_.FG("div"),H=_.FG("span");F=_.X(_.N3(!1,void 0,"NIdw2c"));var d=F.next().value,a=F.next().value,S=_.qL("a",function(Wf){Wf&&_.WZ(237477,Wf,P,function(zv){P=zv})}),K=_.qL("button",function(Wf){Wf&&_.WZ(237477,
Wf,P,function(zv){P=zv})}),h=_.zq(function(Wf){if((Wf==null?void 0:Wf.button)===2)return Wf.preventDefault(),!1;
var zv=_.yb();zv&&T&&_.FE(zv,T,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var R2;J(Wf,u().text,u().index,u().entityMid,Wf==null?void 0:(R2=Wf.detail)==null?void 0:R2.wasSelectedByKeyboard);return!1}),c=function(){return u().type===35},rf=function(){return _.E("desktop_enable_single_suggestion_highlight")},Zv=function(){return _.YE("desktop_suggestions_panel_row_height")||0},kP=function(){var Wf;
return _.E("desktop_enable_new_video_metadata")&&((Wf=u())==null?void 0:Wf.hasNewVideo)===!0},n3=function(){return _.E("desktop_enable_visual_suggest")},o_=function(){return _.E("desktop_enable_entity_suggest")&&vkC(u())},df=function(){return u().entitySubtitle},m$=function(){return rf()?(t==null?void 0:t())||FL()&&!(z==null?0:z()):(t==null?void 0:t())||FL()},gx=function(){var Wf=_.bn("SBOX_SETTINGS");
return c()&&!(Wf==null?0:Wf.HIDE_REMOVE_LINK)},Hf=function(){return I8T(u(),{useEntityName:o_()})},Zw,cy=!((Zw=_.sV().resolve(_.JU(_.qo)))==null||!Zw()),wx=function(){return c()?_.E("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Rj=function(){return Y==null?void 0:Y().SUGGESTION_DISMISS_LABEL},xO=function(){return Y==null?void 0:Y().SUGGESTION_DISMISSED_LABEL};
F=_.X(_.N3(!1,void 0,"ze5Bhc"));Zw=F.next().value;var DQ=F.next().value;F=_.X(_.N3(!1,void 0,"Mx5LWc"));var fe=F.next().value,sM=F.next().value,FL=fe,Ev=_.zq(function(){Q(H.value.innerText);return!1}),e5=_.zq(function(Wf){Wf.preventDefault();
return!1}),z1=_.zq(function(Wf){var zv=u().text,R2=_.bn("SBOX_SETTINGS"),ND="https://"+(R2.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
ND+="&delq="+encodeURIComponent(zv);(zv=R2==null?void 0:R2.PSUGGEST_TOKEN)&&(ND+="&tok="+zv);(R2=R2==null?void 0:R2.SESSION_INDEX)&&(ND+="&authuser="+R2);q(ND);Wf.preventDefault();(Wf=_.yb())&&P&&_.FE(Wf,P,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");e(r==null?void 0:r());return!1}),qD=_.zq(function(){if(rf()&&(z==null?0:z()))return!1;
sM(!0);g(!0);return!1}),gL=_.zq(function(){sM(!1);
g(!1);return!1}),F3=_.zq(function(){a(!0);
return!1}),pe=_.zq(function(){a(!1);
return!1}),Bf=_.zq(function(Wf){Wf.preventDefault();
var zv;(Wf=(zv=u().entityThumbnailAttributionUrl)!=null?zv:"")&&_.$7A(Wf);return!1});
F=_.X(_.N3("",void 0,"aYzCJe"));var wJ=F.next().value,Dw=F.next().value;_.AN(function(){gx()&&Dw(N==null?void 0:N(r==null?void 0:r()));v.value&&_.WZ(12453,v.value,T,function(Wf){T=Wf})});
return _.Z(_.R,{cond:Zw,then:function(){var Wf={};return _.Z("div",{class:_.Ec("ytSuggestionComponentRemovedText",(Wf.ytSuggestionComponentLargerRemovedText=function(){return n3()},Wf)),
style:function(){return Zv()>0?"height: "+Zv()+"px;":""},
role:"button"},xO)},
else:function(){var Wf={},zv={};return _.Z("div",{class:_.Ec("ytSuggestionComponentSuggestion",(Wf.ytSuggestionComponentSuggestionHover=function(){return!rf()},Wf.ytSuggestionComponentHighlighted=m$,Wf.ytSuggestionComponentPersonalizedSuggestion=c,Wf.ytSuggestionComponentMweb=!1,Wf.ytSuggestionComponentLargerSuggestion=function(){return kP()||n3()},Wf.ytSuggestionComponentThumbnailSuggestion=function(){return n3()},Wf.ytSuggestionComponentRoundedSuggestion=function(){return _.E("desktop_enable_scrollable_suggestions_panel")&&
_.E("desktop_enable_suggestions_panel_padding")},Wf.ytSuggestionComponentThumbnailPadding=function(){return n3()&&!c()},Wf)),
style:function(){return Zv()>0?"height: "+Zv()+"px;":""},
role:"presentation","on:mousedown":h,"on:mouseover":qD,"on:mouseout":gL,el:v},_.Z("div",{class:_.Ec("ytSuggestionComponentText",(zv.ytSuggestionComponentScrollMargin=k,zv)),"aria-label":function(){return kP()?u().text+" "+gry:u().text},
id:function(){return N==null?void 0:N(r==null?void 0:r())},
"on:mousedown":h,role:"option"},_.Z(_.R,{cond:function(){return u().type!==33},
then:function(){return _.Z(_.Tq,{icon:wx,className:"ytSuggestionComponentIcon"})}}),_.Z("div",{class:"ytSuggestionComponentLeftContainer"},_.Z("span",{el:H,
role:"button",tabindex:0},_.Z(_.Gn,{each:Hf},function(R2){return R2.bold?_.Z("span",{class:"ytSuggestionComponentBold"},R2.text):_.Z("span",null,R2.text)})),_.Z(_.R,{cond:function(){return o_()&&!!u().entitySubtitle||kP()},
then:function(){return _.Z("div",{class:"ytSuggestionComponentMetadataContainer"},_.Z(_.R,{cond:function(){return o_()&&!!u().entitySubtitle},
then:function(){return _.Z("div",{class:"ytSuggestionComponentEntitySubtitle"},df)}}),_.Z(_.R,{cond:function(){return kP()},
then:function(){return _.Z("div",{class:"ytSuggestionComponentNewVideoContainer"},_.Z("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.Z("div",{class:"ytSuggestionComponentNewVideoText"},gry))}}))}}))),_.Z("div",{class:"ytSuggestionComponentRightContainer"},_.Z(_.R,{cond:function(){return n3()&&u().visualSuggestUrl!==void 0},
then:function(){var R2={};return _.Z("div",{class:"ytSuggestionComponentThumbnailContainer"},_.Z("img",{"aria-label":lm5,class:_.Ec("ytSuggestionComponentVisualSuggestThumbnail",(R2.ytSuggestionComponentCircularFrame=function(){return o_()&&u().subtypes.includes(790)},R2.ytSuggestionComponentEntitySuggestThumbnail=function(){return o_()},R2)),
src:function(){return u().visualSuggestUrl}}),_.Z(_.R,{cond:function(){return o_()&&!!u().entityThumbnailAttributionUrl},
then:function(){var ND={};return _.Z("span",{title:XHC,role:"tooltip"},_.Z("div",{"on:mouseover":F3,"on:mouseout":pe,"on:mousedown":Bf,class:_.Ec("ytSuggestionComponentThumbnailOverlay",(ND.ytSuggestionComponentThumbnailOverlayHidden=function(){return!d()},ND))},_.Z(_.Tq,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.Z(_.OK,null,_.Z(_.DA,{when:function(){return n3()&&gx()}},function(){var R2={};
return _.Z("button",{class:_.Ec("ytSuggestionComponentRemoveLinkClearButton",(R2.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return wJ()&&wJ()===(w==null?void 0:w())},R2.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!m$()},R2)),
el:K,"on:mousedown":z1,"aria-label":Rj,id:function(){return wJ()}},_.Z(_.Tq,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.Z(_.DA,{when:function(){return!(n3()&&u().visualSuggestUrl!==void 0)&&gx()}},function(){var R2={};
return _.Z("a",{class:_.Ec("ytSuggestionComponentRemoveLink",(R2.ytSuggestionComponentRemoveLinkDark=cy,R2.ytSuggestionComponentRemoveLinkSelected=function(){return wJ()&&wJ()===(w==null?void 0:w())},R2)),
el:S,"on:mousedown":z1,"aria-label":Rj,tabindex:0,role:"button",id:function(){return wJ()}},Rj)}),_.Z(_.DA,{when:function(){return!1}},function(){return _.Z("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Ev,"on:mousedown":e5,role:"button","aria-label":sF9},_.Z(_.Tq,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"th");var pHJ=_.LZ(["//www.google.com/textinputassistant/","/","_tia.js"]),QFC=_.ld(function(){return _.Z("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.Z("button",{class:"ytdTextInputAssistantButton","on:click":_.zq(function(){bKs().inputMethodsTracker.add(3);var F,q=(F=_.bn("SBOX_SETTINGS"))==null?void 0:F.REQUEST_LANGUAGE;if(q)return _.KB(_.RV(pHJ,14,q)),!1})},_.Z("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"uh");var e8C=function(){this.cache=new Map},Zv3=function(F){for(var q=_.X(F.cache.entries()),t=q.next();!t.done;t=q.next()){var u=_.X(t.value);
t=u.next().value;u=u.next().value;u.suggestions.some(function(J){return J.type===35})&&F.cache.delete(t)}};var R8y=_.oG.SEARCH,r_T=_.oG.SEARCH_CLEAR_LABEL,NKw=new _.pg("FAKE_SUGGEST_RESPONSE");_.ei(_.ld(function(F){function q(){F3||(F3=setTimeout(function(){Bf()},1E3))}
function t(ne,oj,Iy){if(ne.trim()){gL=ne;_.$I("REFINEMENTS_TUPLE",void 0);z1=!0;var ie;oj=duw(fe,oj);var Nn=(ie=F.searchEndpoint)==null?void 0:ie.call(F);_.Emw(ne,oj,Nn,wx.value.value,Iy);Bf();wx.value.value=ne;wx.value.blur();fe.reset()}}
function u(ne){return _.p(function(oj){return oj.return(new Promise(function(Iy){var ie=new XMLHttpRequest;ie.open("GET",G67(ne),!0);ie.withCredentials=!0;var Nn=_.bn("SBOX_SETTINGS");(Nn==null?0:Nn.SEND_VISITOR_DATA)&&ie.setRequestHeader("X-Goog-Visitor-Id",Nn==null?void 0:Nn.VISITOR_DATA);ie.onload=function(){Iy(ie.responseText)};
ie.onerror=function(){_.bz(Error("zl"));Iy(null)};
setTimeout(function(){ie.abort()},1E4);
ie.send(null)}))})}
function J(ne){var oj,Iy,ie,Nn;return _.p(function(T0){switch(T0.nextAddress){case 1:return oj={credentials:"include",headers:TSC()},window.AbortController&&(Iy=new AbortController,setTimeout(function(){Iy.abort("ytsbox-suggest-timeout")},1E4),oj.signal=Iy.signal),_.zg(T0,2),T0.yield(fetch(G67(ne),oj),4);
case 4:ie=T0.yieldResult.text();_.LE(T0,3);break;case 2:return Nn=_.Gg(T0),Nn!=="ytsbox-abort-last"&&Nn!=="ytsbox-suggest-timeout"&&_.bz(Nn),T0.return(null);case 3:return T0.return(ie)}})}
function g(ne){var oj,Iy,ie;return _.p(function(Nn){switch(Nn.nextAddress){case 1:if(oj=_.sV().resolve(_.JU(NKw)))return Nn.return(oj);Iy=Date.now();q();return _.E("yt_searchbox_xhr")?Nn.yield(u(ne),5):Nn.yield(J(ne),4);case 4:ie=Nn.yieldResult;Nn.jumpTo(3);break;case 5:ie=Nn.yieldResult;case 3:if(ie){F3&&(clearTimeout(F3),F3=null);var T0=fe,Cq=Iy,be=ne.query.length===0;Cq=Date.now()-Cq;be?T0.zeroPrefixRoundTripTime=Cq:(T0.JSC$20621_totalRoundTripTime+=Cq,T0.maxRoundTripTime=Math.max(T0.maxRoundTripTime,
Cq),be=Math.floor(Cq/100),be>=VnD.length?++T0.roundTripTimeHistogram[9]:++T0.roundTripTimeHistogram[VnD[be]])}return Nn.return(ie)}})}
function Y(ne){var oj,Iy,ie;return _.p(function(Nn){if(Nn.nextAddress==1)return(oj=DQ.cache.get(Mn3(ne)))?Nn.return(oj):Nn.yield(g(ne),2);Iy=Nn.yieldResult;if(Iy===null)return Nn.return(null);ie=new HK9(Iy);ne.query.length===0&&ie.suggestions.length===0||DQ.cache.set(Mn3(ne),ie);return Nn.return(ie)})}
function Q(ne){var oj,Iy;return _.p(function(ie){if(ie.nextAddress==1){qD=!1;var Nn=gL;Nn=_.vUv()==="search"?(_.Kr(location.href,"search_query")||_.Kr(location.href,"q"))===Nn:!1;oj=new nkJ(ne,Nn?gL:null);return ie.yield(Y(oj),2)}Iy=ie.yieldResult;if(Iy===null)return ie.return();oj.query.length===0&&(fe.zeroPrefixSuggestionCount=Iy.suggestions.length);if(oj.id<=pe)return fe.outOfSyncResponseCount++,ie.return();if(document.activeElement!==wx.value)return ie.return();pe=oj.id;var T0=fe,Cq=Iy.rawResponse[2]||
{};T0.experimentTriggeredBeforeFinal||(T0.experimentTriggeredBeforeFinal=T0.experimentTriggeredFinal);T0.experimentTriggeredFinal=!!Cq.e;fe.updateSuggestions(Iy.suggestions);v(-1);gx([]);Iy.suggestions!==z()&&Wt(Iy.suggestions.length);T(Iy.suggestions);rf(Iy.suggestions.length>0&&Iy.suggestions[0].type===33);xO&&(xO.hidden=Iy.suggestions.length===0,c()?(xO.style.minWidth="",T0=xO.style,Cq=(Nn=z()[0])==null?void 0:Nn.ignoredPrefix,T0.marginLeft=(Cq?Math.min(Cq.length*6,Rj.value.offsetWidth):0).toString()+
"px"):(xO.style.minWidth=Rj.value.offsetWidth+"px",xO.style.marginLeft="0"),Es());_.WA(ie)})}
function e(){if(!z1)return!1;var ne=_.bn("REFINEMENTS_TUPLE");return ne?(ne=ne[1].map(function(oj,Iy){return new Aeh([oj,0,[71]],wx.value.value,Iy)}),z()!==ne&&Wt(ne.length),gx([]),T(ne),fe.updateSuggestions(ne),z1=!1,xO.hidden=ne.length===0,qD=ne.length>0,!0):!1}
function r(){var ne=wx.value.value;(typeof ne==="string"||ne instanceof String)&&ne!==""?S(!0):S(!1)}
function N(){if(_.vUv()==="search"){var ne=window.location.href;try{var oj=_.Kr(ne,"search_query")||_.Kr(ne,"q")||""}catch(Iy){oj=""}oj&&(wx.value.value=oj,S(!0))}}
var w=_.X(_.N3([],void 0,"kGFAjf")),k=w.next().value;w=w.next().value;var z=k,T=w;k=_.X(_.N3(-1,void 0,"mLGL9e"));var P=k.next().value,v=k.next().value;k=_.X(_.N3(-1,void 0,"u2rYdc"));var H=k.next().value,d=k.next().value;k=_.X(_.N3(!1,void 0,"W9DFC"));var a=k.next().value,S=k.next().value;k=_.X(_.N3(!1,void 0,"Ip4dNc"));var K=k.next().value,h=k.next().value;w=_.X(_.N3(!1,void 0,"ZNKSQb"));k=w.next().value;w=w.next().value;var c=k,rf=w;w=_.X(_.N3(!1,void 0,"JBrGLd"));k=w.next().value;var Zv=w.next().value;
w=_.X(_.N3(!1,void 0,"P2pD6e"));var kP=w.next().value,n3=w.next().value;w=_.X(_.N3(1,void 0,"SjP20c"));var o_=w.next().value,df=w.next().value;w=_.X(_.N3([],void 0,"h4dRaf"));var m$=w.next().value,gx=w.next().value;w=_.X(_.N3(!1,void 0,"TUTzaf"));var Hf=w.next().value,Zw=w.next().value;w=_.E("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var cy=_.FG("yt-searchbox"),wx=_.FG("input"),Rj=_.FG("div"),xO,DQ=
new e8C,fe=bKs(),sM=_.sV().resolve(_.JU(_.qo)),FL=function(){var ne;return((ne=F.forceDarkMode)==null?void 0:ne.call(F))||!(sM==null||!sM())},Ev=function(){return _.E("desktop_enable_scrollable_suggestions_panel")},e5="i"+J_7++,z1=!1,qD=!1,gL="",F3=null,pe=-1,Bf=function(){gx([]);
T([]);rf(!1);xO&&(xO.hidden=!0);F3&&(clearTimeout(F3),F3=null);v(-1)},wJ=function(ne,oj){ne.preventDefault();
Zw(!0);xO&&(xO.hidden=!1);var Iy=P();ne=z();var ie=m$();oj=zCC(oj);Iy+=oj;for(Iy>=ne.length?Iy=-1:Iy<-1&&(Iy=ne.length-1);Iy!==-1&&(ie.includes(Iy)||Iy>=ne.length||Iy<0);)Iy+=oj,Iy>=ne.length&&(Iy=-1);v(Iy);P()>=0&&(wx.value.value=z()[P()].text,d(0),r(),ne=P(),ie=H(),(ie=document.getElementById(lQ[ne][ie]))&&Ev()&&(ne===z().length-1?xO.scrollTop=xO.scrollHeight:ie.scrollIntoView({block:"nearest",inline:"start"})))},Dw=_.zq(function(ne){if(!(ne.relatedTarget instanceof Element&&ne.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){h(!0);
var oj;(oj=F.focusCallback)==null||oj.call(F,!0);e()||(qD?xO.hidden=!1:(_.Q0(cy.value,"yt-autonav-pause-focus",{}),Q(ne.target.value)))}}),Wf=_.zq(function(ne){if(!(ne.relatedTarget instanceof Element&&ne.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){h(!1);
var oj;(oj=F.focusCallback)==null||oj.call(F,!1);xO.scrollTop=0;xO.hidden=!0;_.Q0(cy.value,"yt-autonav-pause-blur",{})}}),zv=function(ne){ne=zCC(ne);
var oj;((oj=lQ[P()])==null?0:oj[H()+ne])&&d(H()+ne)},R2=_.zq(function(ne){var oj=ne.target;
switch(ne.keyCode){case 13:ne.preventDefault();var Iy;if((Iy=lQ[P()])==null?0:Iy[H()]){var ie;(ie=document.getElementById(lQ[P()][H()]))==null||ie.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}ne=ne.shiftKey?4:3;Iy=fe;ie=P();Iy.selectedSuggestionIndex=ie;t(oj.value,ne);break;case 27:xO&&(xO.hidden=!0);break;case 40:wJ(ne,40);break;case 38:wJ(ne,38);break;case 39:zv(39);break;case 37:zv(37);break;case 229:fe.inputMethodsTracker.add(4);break;default:fe.inputMethodsTracker.add(1),
ye9(fe)}return!1}),ND=_.zq(function(ne){Q(ne.target.value);
r();Ev()&&xO&&(xO.scrollTop=0);return!1}),Pn=_.zq(function(){fe.inputMethodsTracker.add(2);
ye9(fe);return!1});
_.AN(function(){if(xO){fe.reset();if(window.ResizeObserver){var ne=new ResizeObserver(function(){c()||(xO.style.minWidth=Rj.value.offsetWidth+"px")});
ne.observe(Rj.value);(new ResizeObserver(function(){Es()})).observe(xO);
_.vj(function(){ne.disconnect()})}N();
window.addEventListener("yt-navigate-finish",N);window.addEventListener("yt-focus-searchbox",function(){wx.value.focus()});
var oj;Zv((oj=_.bn("SBOX_SETTINGS"))==null?void 0:oj.HAS_ON_SCREEN_KEYBOARD)}else _.mH(new _.D0("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var OT=_.zq(function(ne){ne.preventDefault();t(wx.value.value,12);return!1}),dx=_.zq(function(ne){ne.preventDefault();
var oj,Iy;(oj=wx)==null||(Iy=oj.value)==null||Iy.focus();var ie,Nn;((ie=wx)==null?void 0:(Nn=ie.value)==null?void 0:Nn.value)!==""&&(wx.value.value="",wx.value.dispatchEvent(new Event("input")));return!1}),$7=_.zq(function(){var ne=vv9(wx.value.value,z().filter(function(oj){return oj.type!==35}).map(function(oj){return{label:oj.text}}));
_.ec(cy.value,"yt-open-popup-action",[{openPopupAction:ne},document.body]);return!1}),h9=_.zq(function(){wx.value.focus();
return!1}),JQ=function(ne,oj,Iy,ie,Nn){fe.selectedSuggestionIndex=Iy;
t(oj,Nn?3:1,ie)},tf=function(ne){wx.value.value=ne;
wx.value.dispatchEvent(new Event("input"));fe.inputMethodsTracker.add(5);ye9(fe,!0)},lQ=[[]],yF=function(ne){var oj="searchbox-suggestion"+_.VV(_.jn);
lQ[ne].push(oj);return oj},Wt=function(ne){if(z()){lQ=[[]];
for(var oj=0;oj<ne;oj++)lQ.push([])}},Es=function(){if(Ev()){var ne=xO,oj=ne.scrollTop;
ne=ne.scrollHeight-ne.clientHeight;n3(oj>=ne);oj=Math.abs(ne-oj);oj<=40?df(1-(40-oj)/40):df(1)}},WD=function(){return"opacity: "+o_()*100+"%"},Dv=_.zq(function(){Es();
return!1}),$P=_.zq(function(){Zw(!1);
return!1}),SW,kO={},ZQ={},AQ={},MD={};
return _.Z("yt-searchbox",{class:_.Ec("ytSearchboxComponentHost",(kO.ytSearchboxComponentMweb=!1,kO.ytSearchboxComponentDesktop=!0,kO["yt-searchbox-filled-query"]=function(){return a()},kO["ytd-masthead"]=function(){return!K()},kO.ytSearchboxComponentHostDark=FL,kO)),
role:"search",el:cy,"client-ve-type":10349},_.Z("div",{el:Rj,"on:click":h9,class:_.Ec("ytSearchboxComponentInputBox",(ZQ.ytSearchboxComponentInputBoxDark=FL,ZQ.ytSearchboxComponentInputBoxHasFocus=K,ZQ))},_.Z("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":OT},_.Z(_.R,{cond:K,then:function(){return _.Z("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.Z(_.Tq,{icon:"SEARCH"}))}}),_.Z("input",{el:wx,
class:_.Ec("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":e5,"aria-expanded":!((SW=xO)==null?0:SW.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":Wf,"on:focus":Dw,"on:input":ND,"on:keydown":R2,"on:paste":Pn,placeholder:F.placeholderText,"aria-activedescendant":function(){var ne;return(ne=lQ[P()])==null?void 0:ne[H()]},
"aria-autocomplete":"list",role:"combobox"})),_.Z(_.R,{cond:k,then:function(){return _.Z("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.Z(QFC,null))}}),_.Z(_.R,{cond:a,
then:function(){return _.Z("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.Z("button",{class:"ytSearchboxComponentClearButton","on:click":dx,"aria-label":F.clearButtonAriaLabel||r_T},_.Z(_.Tq,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.Z(_.WP,{model:{}})))}})),_.Z("button",{class:_.Ec("ytSearchboxComponentSearchButton",(AQ.ytSearchboxComponentSearchButtonDark=FL,AQ)),
"on:click":OT,"aria-label":R8y,title:F.placeholderText},_.Z(_.Tq,{icon:"SEARCH"})),_.Z(_.R,{cond:function(){if(LW7()&&_.E("mweb_voice_search")&&F.voiceSearchButton)return F.voiceSearchButton()},
then:function(ne){var oj={};return _.Z("div",{class:_.Ec("ytSearchboxComponentVoiceSearchWrapper",(oj.ytSearchboxComponentHideVoiceSearchButton=function(){return a()},oj))},_.Z(_.Tl,{data:ne},{buttonRenderer:function(Iy){return _.Z(_.Ni,{data:Iy.data,
onButtonClickCallback:function(){}})}}))}}),_.Z("div",{el:_.l_(function(ne){return void(xO=ne)}),
id:e5,class:_.Ec("ytSearchboxComponentSuggestionsContainer",(MD.ytSearchboxComponentSuggestionsContainerDark=FL,MD["yt-searchbox-suggestions-container"]=!1,MD.ytSearchboxComponentSuggestionsContainerScrollable=Ev(),MD.ytSearchboxComponentSuggestionsContainerAnimated=w,MD)),"on:scroll":Dv,"on:mousemove":$P,role:"listbox",hidden:!0},_.Z(_.Gn,{each:z},function(ne,oj){return _.Z(YAQ,{suggestion:ne,isHighlighted:function(){return oj()===P()},
onClickCallback:JQ,onHoverUpdateCallback:function(Iy){if(_.E("desktop_enable_single_suggestion_highlight")){var ie=oj();Iy&&(d(0),v(ie))}},
onRemoveCallback:function(Iy){Zv3(DQ);Iy===void 0||Iy<0||m$().includes(Iy)||gx([].concat(_.mZ(m$()),[Iy]))},
labels:F.labels,queryBuilderFunction:tf,suggestionIndex:oj,generateUniqueId:yF,highlightedId:function(){var Iy;return(Iy=lQ[P()])==null?void 0:Iy[H()]},
useScrollMargin:Ev(),isKeyboardMode:Hf})}),_.Z(_.R,{cond:function(){return!c()&&z().find(function(ne){return ne.type!==35})&&_.E("searchbox_reporting")},
then:function(){return _.Z("button",{class:"ytSearchboxComponentReportButton","on:mousedown":$7},_.oD("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.Z(_.R,{cond:function(){return!kP()&&Ev()},
then:function(){return _.Z("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.Z("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:WD}))}})))},"vh"),"yt-searchbox",{props:{searchEndpoint:_.NH,
placeholderText:_.NH,labels:_.NH,voiceSearchButton:_.NH,focusCallback:_.pp,clearButtonAriaLabel:_.NH,forceDarkMode:_.NH}});var T$=function(){var F=_.x.apply(this,arguments)||this;F.menuButtonTargetId="topbar-guide-menu";F.narrow=!1;F.menuStrings={BACK_ALT_LABEL:_.oD("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.oD("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.oD("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.oD("SBOX_PLACEHOLDER",void 0,"Search")};F.pageDarkTheme=document.documentElement.hasAttribute("dark");F.watchPageScrollTop=0;F.theater=!1;F.fullscreen=!1;F.disableFrostedGlassDuringViewTransition=
!1;F.desktopUnifiedSearchPanelMode=_.E("desktop_enable_unified_search_panel");F.cinematicTheaterMode=_.E("web_cinematic_theater_mode");F.ytSearchboxFocused=!1;F.searchboxLabels=_.bn("SBOX_LABELS");F.topbarIsAboveChipbar=!1;F.isDarkThemeForced=!1;F.areGhostCardsHidden=!1;F.guideKeyboardToggle=!1;F.voiceSearchManager=PPQ();F.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};F.setYtSearchboxFocused=function(q){F.ytSearchboxFocused=
q};
F.toggleFrostedGlassDuringViewTransition=function(q){F.disableFrostedGlassDuringViewTransition=q};
return F};
_.M(T$,_.x);_.l=T$.prototype;_.l.computeSimpleText=function(F){return _.q1(F)};
_.l.onDarkChanged=function(){for(var F=_.X(this.buttons||[]),q=F.next();!q.done;q=F.next())q.value.isOverlay=!!this.dark;F=_.X(this.buttonRenderers||[]);for(q=F.next();!q.done;q=F.next())q.value.overrides=this.computeButtonOverride()};
_.l.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.l.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]]"}},
buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var F=_.lW(_.g7(),"aa");_.RE(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||F||(this.isDarkThemeForced=this.dark=!0);this.logoType?(F=this.hostElement.querySelector("#masthead-logo"))&&(_.E("polymer_on_demand_shady_dom")?F.setAttribute("slot","masthead-logo-old"):_.Mq(F)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.kM(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.kM(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.l.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.kM(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.kM(this,this.onSetTheaterModeEnabled))};
_.l.dataChanged=function(){var F=this.data;F&&(this.voiceEnabled=F.voiceSearchButton?PPQ().isSupported():!1,_.qEJ(_.h8(),this.menuButtonTargetId,this.guideButton),F.onReceivedActions&&F.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.rY(this.hostElement,F.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&F&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.RE(this.hostElement,"dark",!1),_.RE(this.hostElement,"theater",!1),
(F=this.hostElement.querySelector("#masthead-logo"))&&(_.E("polymer_on_demand_shady_dom")?F.setAttribute("slot","masthead-logo-old"):_.Mq(F))))};
_.l.computeCenterHidden=function(){var F;return this.data&&!((F=this.data.searchbox)==null?0:F.fusionSearchboxRenderer)};
_.l.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.RE(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.l.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.l.onWatchScroll=function(F){this.watchPageScrollTop=F.detail||0;this.updateMastheadBackgroundOpacity()};
_.l.onFullscreenChangeAction=function(F){F||(this.watchPageScrollTop=0);this.fullscreen=F;this.updateMastheadBackgroundOpacity()};
_.l.onSetTheaterModeEnabled=function(F){this.theater=F.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.l.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.l.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.l.setBackgroundOpacity=function(F){F=this.calculateBackgroundOpacity(F);this.background.style.opacity=""+F};
_.l.calculateBackgroundOpacity=function(F){var q=this.theater&&this.cinematicTheaterMode?.6:0,t=this.hostElement.clientHeight/2;return Math.min(Math.max(F,0),t)/t*(1-q)+q};
_.l.shouldShowCinematicMastHead=function(){var F=_.E("kevlar_watch_grid")&&!_.E("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(F||this.pageDarkTheme)};
_.l.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.l.focusGuide=function(){this.guideButton.focus()};
_.l.onGuideToggleTap=function(){_.Q0(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.l.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.l.onGuideToggleHover=function(){_.Q0(this.hostElement,"yt-guide-hover")};
_.l.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.l.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.l.closeOnOutsideClickCondition=function(F){for(F=_.tY(F);F[0];){var q=F.shift();if(q instanceof Element&&q.id==="kbd")return!1}return!0};
_.l.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.l.pausePlayer=function(){var F;(F=_.g0())==null||F.pause();this.pauseMiniplayer()};
_.l.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var F;(F=_.sV().resolve(_.m4).getPlayerElement())==null||F.pause()}};
_.l.isMiniplayerActive=function(){return _.sV().resolve(_.m4).isMiniplayerActive()};
_.l.updateNarrowFromBinding=function(F){this.narrow=F.detail.value};
_.l.onYtSendFeedbackAction=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.registerWithViewTransitionManager=function(){BmT(_.sV().resolve(_.yf),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.JJ.Object.defineProperties(T$.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.E("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var F;return(F=this.data)==null?void 0:F.voiceSearchButton}}}});
T$.prototype.narrowChanged=T$.prototype.narrowChanged;T$.prototype.onWatchPageChange=T$.prototype.onWatchPageChange;T$.prototype.onRendererStamperFinished=T$.prototype.onRendererStamperFinished;T$.prototype.dataChanged=T$.prototype.dataChanged;T$.prototype.onDarkChanged=T$.prototype.onDarkChanged;_.C([_.D(_.Vl),_.V("design:type",Object)],T$.prototype,"ironResizableBehavior",void 0);_.C([_.D(_.knJ),_.V("design:type",Object)],T$.prototype,"ytdExpandableInputBehavior",void 0);
_.C([_.D(_.ee.YtdGuideStateAwareBehavior),_.V("design:type",Object)],T$.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],T$.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],T$.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],T$.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.s9),_.V("design:type",Object)],T$.prototype,"ytdReduxBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],T$.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],T$.prototype,"narrow",void 0);_.C([_.O(),_.V("design:type",Object)],T$.prototype,"logoType",void 0);_.C([_.O(),_.V("design:type",Boolean)],T$.prototype,"voiceEnabled",void 0);
_.C([_.O(),_.V("design:type",Object)],T$.prototype,"menuStrings",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],T$.prototype,"dark",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],T$.prototype,"pageDarkTheme",void 0);_.C([_.O(),_.V("design:type",Object)],T$.prototype,"watchPageScrollTop",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.qh$}),_.V("design:type",Boolean)],T$.prototype,"isWatchPage",void 0);
_.C([_.O({reflectToAttribute:!0,selector:_.t$t}),_.V("design:type",Boolean)],T$.prototype,"isShortsPage",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],T$.prototype,"theater",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],T$.prototype,"fullscreen",void 0);_.C([_.O({reflectToAttribute:!0,selector:_.gQM}),_.V("design:type",String)],T$.prototype,"frostedGlassMode",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],T$.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.C([_.O(),_.V("design:type",Object)],T$.prototype,"ytSearchboxFocused",void 0);_.C([_.Ta("#buttons > *"),_.V("design:type",Array)],T$.prototype,"buttons",void 0);_.C([_.Ta("ytd-button-renderer"),_.V("design:type",Array)],T$.prototype,"buttonRenderers",void 0);_.C([_.Ms("#background"),_.V("design:type",HTMLDivElement)],T$.prototype,"background",void 0);
_.C([_.Ms("#guide-button"),_.V("design:type",Object)],T$.prototype,"guideButton",void 0);_.C([_.Ms("#logo"),_.V("design:type",Object)],T$.prototype,"logo",void 0);_.C([_.O({computed:"computeButtonOverride(dark)"}),_.V("design:type",Object)],T$.prototype,"buttonOverrides",void 0);_.C([_.Wh("dark"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T$.prototype,"onDarkChanged",null);_.C([_.O({value:function(){return this.onVoiceTap.bind(this)}}),
_.V("design:type",Function)],T$.prototype,"boundOnTapVoiceButton",void 0);_.C([_.O(),_.V("design:type",Object)],T$.prototype,"topbarIsAboveChipbar",void 0);_.C([_.O(),_.V("design:type",String),_.V("design:paramtypes",[])],T$.prototype,"guideIcon",null);_.C([_.W("voiceEnabled"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],T$.prototype,"shouldShowVoiceSearchButton",null);_.C([_.W("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],T$.prototype,"voiceSearchButton",null);
_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T$.prototype,"dataChanged",null);_.C([_.EB("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T$.prototype,"onRendererStamperFinished",null);_.C([_.Wh("isWatchPage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T$.prototype,"onWatchPageChange",null);
_.C([_.Wh("narrow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T$.prototype,"narrowChanged",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-masthead"})],T$);
_.b(T$,"ytd-masthead",function(){if(F3v!==void 0)return F3v;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return F3v=F},{mode:_.Nc("kevlar_poly_si_batch_j036")?1:2});var wHy;var ivQ={},kXs={},Er9={},z87={},orJ=(z87.OFFLINE=(ivQ["publicytnetworkstatus-online"]="BACK_ONLINE",ivQ),z87.ONLINE=(kXs["publicytnetworkstatus-offline"]="OFFLINE",kXs),z87.BACK_ONLINE=(Er9["publicytnetworkstatus-offline"]="OFFLINE",Er9.TIMER_TRIGGER="ONLINE",Er9),z87),G$=function(){var F=_.x.apply(this,arguments)||this;F.currentState="ONLINE";F.scheduledJobId=0;F.bannerString="";F.bannerVe=null;F.networkStatusManagerInstance=new _.Lt;return F};
_.M(G$,_.x);_.l=G$.prototype;_.l.attached=function(){var F=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){F.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){F.stateChangeHandler("publicytnetworkstatus-offline")})};
_.l.detached=function(){var F=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){F.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){F.stateChangeHandler("publicytnetworkstatus-offline")})};
_.l.enterState=function(F){var q=this;this.scheduledJobId&&_.mI.cancelJob(this.scheduledJobId);F==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):F==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.oD("NO_INTERNET_CONNECTION",void 0,"No internet connection")):F==="BACK_ONLINE"&&(this.bannerString=_.oD("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.W2(_.mI,function(){q.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=F};
_.l.stateChangeHandler=function(F){(F=orJ[this.currentState][F])&&this.enterState(F)};
_.l.logVisibility=function(F){var q=_.yb();this.createBannerVe(F);q&&this.bannerVe&&(F?_.aD(q,[this.bannerVe]):_.jc(q,[this.bannerVe]))};
_.l.createBannerVe=function(F){!this.bannerVe&&F&&(this.bannerVe=_.r0(37929),_.xA(_.DP(),this.bannerVe))};
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",String)],G$.prototype,"currentState",void 0);_.C([_.O(),_.V("design:type",Object)],G$.prototype,"scheduledJobId",void 0);_.C([_.O(),_.V("design:type",Object)],G$.prototype,"bannerString",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-network-status-banner"})],G$);
_.b(G$,"ytd-network-status-banner",function(){if(wHy!==void 0)return wHy;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return wHy=
F},{mode:1});var nry;var Di=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};F.hidden=!0;F.frostedGlass=_.E("web_frosted_glass");return F};
_.M(Di,_.x);Di.prototype.computeHidden=function(F){return F&&F.status?!1:!0};
Di.prototype.handleUpdatePermissionRoleCommand=function(F){if(F=_.n(F,_.$Xw))if(F=_.n(F.renderer,_.mX1))this.data=F};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],Di.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],Di.prototype,"componentBehavior",void 0);_.C([_.O({value:!0,computed:"computeHidden(data)"}),_.V("design:type",Object)],Di.prototype,"hidden",void 0);_.C([_.O(),_.V("design:type",Object)],Di.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],Di.prototype,"frostedGlass",void 0);
_.C([_.m({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Di);
_.b(Di,"ytd-permission-role-bottom-bar-renderer",function(){if(nry!==void 0)return nry;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return nry=F},{mode:1});var MUD;var TKC;var om9={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Wa=function(){return _.x.apply(this,arguments)||this};
_.M(Wa,_.x);_.l=Wa.prototype;_.l.attached=function(){this.JSC$20724_scroller&&(this.JSC$20724_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20724_scroller.attached&&typeof this.JSC$20724_scroller.attached==="function"&&this.JSC$20724_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(t){t.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var F=_.ep(this.hostElement);F.querySelector("tp-yt-paper-radio-group").selected="";var q=F.querySelector("#reason-text");q&&(q.value="");F.querySelector("#description-text").value=""}};
_.l.canSubmit=function(F,q){_.Q0(this.hostElement,"yt-invalidate-popup-tabbables");return!(F&&q)};
_.l.onCancel=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.l.onSubmit=function(){var F=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(g){return g.active}).map(function(g){return g.innerText.trim()}),q=this.hostElement.querySelector("tp-yt-paper-radio-group"),t=q.selectedItem,u=t.name;
t=t.innerText.trim();var J=q.querySelector("#reason-text");q=void 0;J&&(q=J.value);(J=this.descriptionText.value)&&(J=J.trim());nm3(this.data.searchQuery,F,u,t,J,q);_.ec(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.l.sendFormSubmitToast=function(){var F=_.l1(_.oD("SBOX_INAPPROPRIATE_TOAST"));_.ec(this.hostElement,"yt-open-popup-action",[F,this])};
_.l.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(F){return F.active})};
_.l.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Wa.prototype.onIronSelect=Wa.prototype.onIronSelect;Wa.prototype.onIronChange=Wa.prototype.onIronChange;Wa.prototype.dataChanged=Wa.prototype.dataChanged;_.C([_.O(),_.V("design:type",Object)],Wa.prototype,"data",void 0);_.C([_.O({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.V("design:type",Boolean)],Wa.prototype,"submitDisabled",void 0);_.C([_.O(),_.V("design:type",Boolean)],Wa.prototype,"suggestionSelected",void 0);
_.C([_.O(),_.V("design:type",Boolean)],Wa.prototype,"catagorySelected",void 0);_.C([_.Ms("#scroller"),_.V("design:type",Object)],Wa.prototype,"JSC$20724_scroller",void 0);_.C([_.Ms("#description-text"),_.V("design:type",Object)],Wa.prototype,"descriptionText",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wa.prototype,"dataChanged",null);
_.C([_.EB("iron-change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wa.prototype,"onIronChange",null);_.C([_.EB("iron-select"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wa.prototype,"onIronSelect",null);_.C([_.m({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Wa);
_.b(Wa,"ytd-search-suggestion-report-dialog",function(){if(TKC!==void 0)return TKC;var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);return TKC=F},{mode:1});var Og=function(F){var q=F.openPopupAction;var t=F.target;var u=F.container;var J=F.popupContainerConfig;var g=F.getElement;F=F.removeWhenClosed===void 0?!1:F.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=q;this.target=t;this.container=u;this.popupContainerConfig=J;this.getElement=g;this.JSC$20730_popupConfig=this.popupContainerConfig.JSC$19877_popupConfig[this.openPopupAction.popupType];this.rendererName=(q=this.getName())?_.C6W(q,XEv(this.popupContainerConfig,
q)):"";_.E("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=F);this.createPopup()};
Og.prototype.updatePopup=function(F){this.openPopupAction=F;this.JSC$20730_popupConfig=this.popupContainerConfig.JSC$19877_popupConfig[this.openPopupAction.popupType];GX5(this);_.E("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
Og.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var OvT=function(F,q,t){(q=q&&F.JSC$20730_popupConfig.narrowProperties?F.JSC$20730_popupConfig.narrowProperties:F.JSC$20730_popupConfig.properties)&&t!==void 0&&(q.isAriaModal=t);DOD(F,q);F.isRtl()&&DOD(F,F.JSC$20730_popupConfig.rtlProperties);W3s(F)};
Og.prototype.createPopup=function(){var F=this.JSC$20730_popupConfig.component;if(this.popupContent=PEh(this,this.rendererName)){if(F){this.popup=PEh(this,F);var q=this.popupContent;_.E("web_enable_wrapper_for_cow_component_in_popup")&&(q=document.createElement("div"),q.appendChild(this.popupContent));_.E("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20730_popupConfig.slotName&&q.setAttribute("slot",this.JSC$20730_popupConfig.slotName);F=this.popup;var t=this.container.tagName.toLowerCase(),
u=_.JY(q);_.T__(_.gs(F),_.YM(q,t,u));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.E("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.ep(this.container).appendChild(this.popup)}};
var GX5=function(F){var q,t,u=(q=F.openPopupAction.accessibilityData)==null?void 0:(t=q.accessibilityData)==null?void 0:t.label;u&&(F.popup.ariaLabel=u);var J;((J=F.popupContent.polymerController)!=null?J:F.popupContent).data=(0,_.m7.unsafeClone)(F.openPopupAction.popup[F.getName()]);F.popupContent.duration=xO9(F);F.popupContent.positionType=F.openPopupAction.position;var g=F.openPopupAction.properties;g&&Object.keys(g).forEach(function(Y){F.popupContent[Y]=g[Y]})},DOD=function(F,q){if(q)for(var t=
_.X(Object.keys(q)),u=t.next();!u.done;u=t.next())u=u.value,F.popup[u]=q[u]},W3s=function(F){if(F.openPopupAction.position){var q=F.JSC$20730_popupConfig.positionalProperties&&F.JSC$20730_popupConfig.positionalProperties[F.openPopupAction.position],t=F.JSC$20730_popupConfig.rtlPositionalProperties&&F.JSC$20730_popupConfig.rtlPositionalProperties[F.openPopupAction.position];
q=F.isRtl()&&t?t:q;q.shiftedHorizontalOffset&&(t=F.popup.style.display,F.popup.style.display="block",F.popupContent&&F.popup.positionTarget&&F.popupContent.clientWidth>F.popup.positionTarget.clientWidth&&(q.horizontalOffset=F.popup.positionTarget.clientWidth/2-q.shiftedHorizontalOffset),F.popup.style.display=t);DOD(F,q)}},A_J=function(F,q){if(q)for(var t=_.X(Object.keys(q)),u=t.next();!u.done;u=t.next())u=u.value,F.popup.style[u]=q[u]};
Og.prototype.getName=function(){return _.H_(this.openPopupAction.popup,"renderer")||_.H_(this.openPopupAction.popup,"dialog")||_.H_(this.openPopupAction.popup,"model")||void 0};
var xO9=function(F){F=F.openPopupAction.durationHintMs;return F===0?F:Math.max(4E3,F||4E3)};
Og.prototype.isRtl=function(){return _.bn("HTML_DIR")==="rtl"};
var PEh=function(F,q){F=F.getElement(q,F.target);F==null&&_.bz(new _.D0("popup getElement returned null",q));return F};var vrv={};
vrv.YtPopupContainerBehavior=[_.XV.YtComponentBehavior,_.$9.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Xw(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Yo(this.hostElement)},
closePopup:function(F){var q=this.createCacheKey(void 0,F);this.popups_[q]&&this.handleClosePopupAction_(void 0,F)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.mI.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.mI.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(F){F.opened&&F.keepBelowPlayer&&this.ensurePopupBelowPlayer(F)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var F in this.popups_){var q=this.popups_[F];if(q.popup.scrollAction==="refit"){var t=q.popup.positionTarget.getBoundingClientRect(),u=q.popup;t=t.top;var J=q;if(!J.naturalHeight){J.popup.hidden=!1;J.popup.style.position="fixed";J.popup.style.top="0px";J.popup.style.left="0px";var g=J.popup.getBoundingClientRect();J.naturalHeight=g.bottom-g.top;J.popup.refit()}u.hidden=!(t>=J.naturalHeight+60);q.popupContent.clientHeight===0&&q.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(F){this.popupContainerConfig=F},
handleOpenPopupAction:function(F,q){var t=F.openPopupAction,u=_.sV().resolve(_.JU(_.Cx))&&t.popupType==="TOAST";u&&!t.uniqueId&&(t.uniqueId=_.sp());if(!_.E("popup_container_parent_target_killswitch")){var J;q=(J=this.getParentTarget(q))!=null?J:q}var g=this.ensurePopup_(t,q);return new _.iz(function(Y){g.then(function(Q){if(!Q)return Y();this.maybeCreateNarrowMediaQuery_();var e=this.createCacheKey(Q.rendererName,Q.openPopupAction.uniqueId);if(t.showOncePerUniqueId){if(this.shownPopupKeys_.has(e))return Y();
this.shownPopupKeys_.add(e)}e=this.popups_[e];var r=!(!e||!e.openPopupAction.beReused);r=!!t.reusePopup||r;if(Q.popup.opened&&!r){u&&!Q.openPopupAction.replacePopup||this.handleClosePopupAction_(Q.rendererName,Q.openPopupAction.uniqueId);r=t.popupType==="DIALOG"&&!_.E("popup_container_dialog_reopen_killswitch");if(!u&&!r&&e&&e.target==q&&!Q.openPopupAction.replacePopup)return Y();_.tJ(Q.popup,function(){this.completeOpenPopupAction_(t,q,Q);Y()}.bind(this))}else Q.popup.opened?Q.updatePopup(t):this.completeOpenPopupAction_(t,
q,Q),Y()}.bind(this))}.bind(this))},
getParentTarget:function(F){if(F&&F instanceof HTMLElement)for(var q=_.X(Object.entries(this.popups_)),t=q.next();!t.done;t=q.next())if(t=_.X(t.value),t.next(),t=t.next().value,this.popupClosesOnClick(t)&&t.popup.contains(F))return t.target},
popupClosesOnClick:function(F){return F.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(F.rendererName.toUpperCase())},
completeOpenPopupAction_:function(F,q,t){t.updatePopup(F);F=this.narrowMediaQuery_.queryMatches;var u=this.isAriaModal;t.target=q;var J;q=((J=t.target.polymerController)!=null?J:t.target).popupPositionTarget||t.target;t.JSC$20730_popupConfig.targetContainer&&(q=t.container);t.popup.positionTarget=q;t.popupContent.positionTarget=q;W3s(t);t.JSC$20730_popupConfig.forceFocus&&(t.popupContent.style.outline="none");t.popupContent.tabIndex=-1;t.JSC$20730_popupConfig.narrowProperties&&(t.popup.style.position=
"static");t.JSC$20730_popupConfig.preventAutonav&&t.popup.setAttribute("prevent-autonav",!0);t.JSC$20730_popupConfig.forceCloseOnOutsideClick&&t.popup.setAttribute("force-close-on-outside-click",!0);OvT(t,F,u);A_J(t,t.JSC$20730_popupConfig.styles);t.isRtl()&&A_J(t,t.JSC$20730_popupConfig.rtlStyles);if(!t.openPopupAction.shouldStopParentSignal){var g;J=(g=t.target.polymerController)!=null?g:t.target;(t.popupContent.startForwardingEvents||t.popupContainerConfig.forwardingEnabledPopups.has(t.rendererName))&&
J.parentComponent!==t.popupContent&&t.popupContent!==t.target&&t.target!==document.body&&(t.popupContent.startForwardingEvents?t.popupContent.startForwardingEvents(t.popupContainerConfig.forwardedEvents,t.target):(t.JSC$20730_eventForwarder||(t.JSC$20730_eventForwarder=new _.lZ(t.popupContent)),t.JSC$20730_eventForwarder.start(t.popupContainerConfig.forwardedEvents,t.target)))}t=t.popup;t.addEventListener("iron-overlay-opened",_.kM(this,this.onPopupIronOverlayOpened_));t.addEventListener("iron-overlay-closed",
_.kM(this,this.onPopupIronOverlayClosed_));t.addEventListener("iron-overlay-canceled",_.kM(this,this.onPopupIronOverlayCanceled_));t.addEventListener("yt-refit",_.kM(this,this.refitPopup_));t.addEventListener("yt-invalidate-popup-tabbables",_.kM(this,this.handleInvalidatePopupTabbables_));t.open()},
getPopupDurationMs_:function(F){return F.durationHintMs===0?F.durationHintMs:Math.max(4E3,F.durationHintMs||4E3)},
handleClosePopupAction_:function(F,q){var t=_.E("web_popup_cache_key_killswitch")||!!q;if(F||t){var u=this.createCacheKey(F,q);F=(F=this.popups_[u])&&F.popup}else F=_.j4f(_.qX);if(F&&F.close){if(q=_.sV().resolve(_.JU(_.GD)))F.restoreFocusOnClose=q.isKeyBoardInUse();F.close();this.removePopup_(F,u)}},
handleClosePopupCommand_:function(F){F.closePopupCommand&&F.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,F.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(F){var q={},t;for(t in this.popups_)if(q={key$jscomp$1210:q.key$jscomp$1210},q.key$jscomp$1210=t,!F||!F.some(function(g){return function(Y){return Y==g.key$jscomp$1210}}(q))){var u=this.popups_[q.key$jscomp$1210],J=u.popup;
_.sV().resolve(_.JU(_.Cx))&&u.openPopupAction.popupType==="TOAST"||(J&&J.close&&J.close(),this.removePopup_(J,q.key$jscomp$1210))}},
handleClosePopupsAction_:function(F){F.forEach(function(q){var t=this.popups_[q];t&&((t=t.popup)&&t.close&&t.close(),this.removePopup_(t,q))}.bind(this))},
handleGetPopupOpenedAction_:function(F,q){return(q=this.createCacheKey(F,q))&&this.popups_[q]?this.popups_[F].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var F=[],q;for(q in this.popups_){var t=this.popups_[q];t.popup.opened&&F.push(t)}return F},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(F,q){_.E("ytpopup_disable_default_html_caching")&&F&&F.removeWhenClosed&&(_.ep(this.hostElement).removeChild(F),q&&this.popups_[q]&&delete this.popups_[q])},
shouldReusePopup_:function(F){return!(!F||!F.reusePopup)||!(!F||!F.beReused)},
ensurePopup_:function(F,q){this.maybeCreateNarrowMediaQuery_();var t=_.H_(F.popup,"renderer")||_.H_(F.popup,"dialog")||_.H_(F.popup,"model");if(!t)return _.NU();t=_.C6W(t,XEv(this.popupContainerConfig,t));return _.NU(this.getAndMaybeCreatePopup_(F,t,q))},
getAndMaybeCreatePopup_:function(F,q,t){var u=this.createCacheKey(q,F.uniqueId);if(this.popups_[u])return this.popups_[u];F=new Og({openPopupAction:F,target:t,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(q)});return this.popups_[u]=F},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(F){return _.E("ytpopup_disable_default_html_caching")?F&&F.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.kM(this,this.openPopupQueryMatchesChanged_)),_.ep(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(F){F=F.detail.value;for(var q in this.popups_)OvT(this.popups_[q],F)},
onPopupIronOverlayClosed_:function(F){var q=F.currentTarget,t=_.haM(q);t=t.length>0?t[0]:q;if(t.is!=="ytd-reel-watch-while-dialog-renderer"||F.target.is!=="tp-yt-iron-dropdown"){F.detail.popup=q;F.detail.popupRenderer=t;var u,J={context:{openingElement:((u=this.popups_[(t==null?void 0:t.is)||""])==null?void 0:u.target)||void 0}};Object.assign(J,F.detail);var g;_.Q0((g=t.hostElement)!=null?g:t,"yt-popup-closed",J);q.removeEventListener("yt-refit",_.kM(this,this.refitPopup_));q.removeEventListener("yt-invalidate-popup-tabbables",
_.kM(this,this.handleInvalidatePopupTabbables_));q.removeEventListener("iron-overlay-canceled",_.kM(this,this.onPopupIronOverlayCanceled_));q.removeEventListener("iron-overlay-closed",_.kM(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(q)}},
onPopupIronOverlayCanceled_:function(F,q){var t=F.currentTarget,u=_.haM(t);u=u.length>0?u[0]:t;if(u.is!=="ytd-reel-watch-while-dialog-renderer"||F.target.is!=="tp-yt-iron-dropdown"){var J;_.Q0((J=u.hostElement)!=null?J:u,"yt-popup-canceled",F.detail);J=q?_.tY(q):null;(!q||["click","tap"].includes(q.type))&&!t.hasAttribute("force-close-on-outside-click")&&t.positionTarget&&J&&J.includes(t.positionTarget)&&F.preventDefault();t.restoreFocusOnClose=_.v6.keyboardEventMatchesKeys(q,"esc")}},
onPopupIronOverlayOpened_:function(F){F=F.currentTarget;var q=_.haM(F);q=q.length>0?q[0]:F;var t,u;_.Q0((t=q.hostElement)!=null?t:q,"yt-popup-opened",(u=q.hostElement)!=null?u:q);F.keepBelowPlayer&&(this.ensurePopupBelowPlayer(F,!0),this.dynamicallyPositionedElements_.add(F));t=_.sV().resolve(_.JU(_.GD));u=!!q.querySelector("#toast");t&&t.isKeyBoardInUse()&&!u&&(typeof q.focusFirstItem==="function"?q.focusFirstItem():(q=_.LT1(F),q.length&&q[0].focus()));F.removeEventListener("iron-overlay-opened",
_.kM(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(F){F=F.currentTarget;F.refit&&F.refit()},
refitPopups_:function(){for(var F in this.popups_)this.popups_[F].refit()},
handleInvalidatePopupTabbables_:function(F){F=F.currentTarget;F.invalidateTabbables&&F.invalidateTabbables()},
createCacheKey:function(F,q){return _.E("web_popup_cache_key_killswitch")?q?F+"#"+q:F:q?"#"+q:F},
openSheet:function(F,q){var t=F==null?void 0:F.openPopupActionCommand;!t&&(F==null?0:F.viewModel)&&(t={openPopupAction:{popup:{sheetViewModel:F.viewModel},popupType:"CONTEXTUAL_SHEET"}});t&&this.handleOpenPopupAction(t,q)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var F=this;return _.p(function(q){return q.return(F.handleGetOpenedPopupsAction_().filter(function(t){var u;return((u=t.openPopupAction)==null?void 0:u.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(F,q,t){if(_.E("web_dialog_utils_killswitch")){var u=F==null?void 0:F.openPopupActionCommand,J=(t==null?0:t.ariaLabel)?{accessibilityData:{accessibilityData:{label:t.ariaLabel}}}:void 0;!u&&(F==null?0:F.viewModel)&&(u={openPopupAction:Object.assign({},{popup:{dialogViewModel:F.viewModel},popupType:(t==null?0:t.isModal)?"MODAL":"DIALOG"},J&&J)});u&&this.handleOpenPopupAction(u,q)}else{if(J=F==null?void 0:F.viewModel){var g=t=t===void 0?{}:t;t=g.ariaLabel;J={popup:{dialogViewModel:J},
popupType:g.isModal?"MODAL":"DIALOG"};g={accessibilityData:{label:t}};t&&(J.accessibilityData=g);J={openPopupAction:J}}else J=void 0;if(J=(u=J)!=null?u:F==null?void 0:F.openPopupActionCommand)this.isAriaModal=_.E("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(J,q)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var F=this;return _.p(function(q){return q.return(F.handleGetOpenedPopupsAction_().filter(function(t){var u;return((u=t.openPopupAction)==null?void 0:u.popupType)==="DIALOG"}).length>0)})}}];var ImD;var HvQ;var mOh=_.LZ(["about:blank"]),Pa=function(){var F=_.x.apply(this,arguments)||this;F.isMuted=!1;F.pageLoadTimeoutId=void 0;return F};
_.M(Pa,_.x);_.l=Pa.prototype;_.l.dataChanged=function(){var F=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var q=this.data.url,t=_.$w(q);_.E("enable_yt_ata_iframe_authuser")?(t=_.$w(q),_.aK(this.iframe,MiD(t))):_.aK(this.iframe,t);this.pageLoadTimeoutId=_.W2(_.Gx(),function(){return void F.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Xh({destination:window,iframe:this.iframe,origin:_.y9e(t.toString()),channelName:"ataiframe",onMessage:_.SU_(ZA3,function(u){Rp5(u.data)?(u=_.Lh(u.data,1,_.t9,_.YW()),u.length!==1?_.bz(Error("Al")):(u=u[0],u===3?(F.isMuted=!0,F.logStateChanged({adMuteRequested:!0})):u===1&&F.close())):_.bz(Error("Bl"))}),
onEstablished:function(){F.cancelPageLoadTimeout();F.logStateChanged({pageLoadSucceeded:!0})}})}};
_.l.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Gx().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.l.logStateChanged=function(F){var q;if((q=this.data)==null?0:q.trackingParams)F={adsClientData:{aboutThisAdData:F}},_.DP().stateChanged(this.data.trackingParams,F)};
_.l.close=function(){_.ec(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.handlesPopupClosed=function(F,q){var t=this,u,J;return _.p(function(g){if(g.nextAddress==1)return _.bn("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.ec(t.hostElement,"on-about-this-ad-popup-closed",[t.isMuted,q]),g.jumpTo(0)):F&&TCJ(F)?g.yield(Gq9(F),4):(t.isMuted&&_.ec(t.hostElement,"yt-mute-ad-action",[t.is,t]),g.jumpTo(0));if(u=g.yieldResult){var Y=J=new _.BE(u),Q=t.isMuted;Y.getOptions().includes("onAboutThisAdPopupClosed")?_.IZ1(Y,"onAboutThisAdPopupClosed",{isMuted:Q,layoutId:q}):_.fH("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.WA(g)})};
_.l.onPopupClosed=function(F){var q=this,t,u;return _.p(function(J){t=_.RV(mOh);_.aK(q.iframe,t);q.cancelPageLoadTimeout();if(!q.data)return J.jumpTo(0);q.ytRendererBehavior.markDirty();u=F.detail.context.openingElement;return J.yield(q.handlesPopupClosed(u,q.data.layoutId),0)})};
_.l.detached=function(){this.cancelPageLoadTimeout()};
_.l.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Pa.prototype.onPopupClosed=Pa.prototype.onPopupClosed;Pa.prototype.dataChanged=Pa.prototype.dataChanged;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.C([_.Ms("#iframe"),_.V("design:type",HTMLIFrameElement)],Pa.prototype,"iframe",void 0);_.C([_.O(),_.V("design:type",Object)],Pa.prototype,"data",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pa.prototype,"dataChanged",null);
_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype",Promise)],Pa.prototype,"onPopupClosed",null);_.C([_.Vu({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Pa);
_.b(Pa,"yt-about-this-ad-renderer",function(){if(HvQ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;ImD===void 0&&(ImD=document.createElement("template"));var u=ImD;t.call(q,u.content.cloneNode(!0),F.content.firstChild);HvQ=F}F=HvQ;return F},{mode:2});var $Os;var bvT;var xa=function(F){var q=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=q.message;"stack"in q&&(this.stack=q.stack);this.maxFileSizeMB=F;Object.setPrototypeOf(this,xa.prototype)};
_.M(xa,Error);var y_J=function(F,q){var t=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=t.message;"stack"in t&&(this.stack=t.stack);this.minWidth=F;this.minHeight=q;Object.setPrototypeOf(this,y_J.prototype)};
_.M(y_J,Error);var CE9=function(F){this.requirements=F;this.JSC$20758_maxFileSize=F.maxFileSizeMB*1024*1024},dOT=function(F,q){if(q.size>F.JSC$20758_maxFileSize)throw new xa(F.requirements.maxFileSizeMB);
};var VUv=function(F,q){this.canvas=F;this.imageEditorBuilder=q};
VUv.prototype.addEventListeners=function(F){var q=function(J){UO9(F,J)};
this.JSC$20764_mouseDownEvent=q;var t=function(J){SAQ(F,J)};
this.JSC$20764_mouseMoveEvent=t;var u=function(){h89(F)};
this.JSC$20764_mouseUpEvent=u;this.canvas.addEventListener("mousedown",q);this.canvas.addEventListener("mousemove",t);document.addEventListener("mouseup",u)};
VUv.prototype.removeEventListeners=function(){this.JSC$20764_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20764_mouseDownEvent);this.JSC$20764_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20764_mouseMoveEvent);this.JSC$20764_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20764_mouseUpEvent)};
var K35=function(F,q){F.removeEventListeners();return new Promise(function(t){var u=new Image;u.crossOrigin="anonymous";u.onload=function(){var J=F.imageEditorBuilder(F.canvas,u);F.addEventListeners(J);t(J)};
u.src=q})},A6=function(F,q,t,u,J,g,Y,Q){this.canvas=F;
this.image=q;this.requiredRatio=t;this.minImageCropDimension=u;this.minOutputImageResolution=J;this.component=g;this.styleFocusedCorner=Q===void 0?!0:Q;this.action=2;this.focusedCorner=this.resizeCorner=0;F=this.canvas.getContext("2d");if(!F)throw Error("Cl");this.ctx=F;this.canvasMargin=Y!=null?Y:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;Y=this.image;F=this.canvasInnerWidth/Y.width;Y.height*F>912&&(F=Y.width/Y.height*912/Y.width);Y=F;this.scaledImageWidth=this.canvas.width%2?
Wo3(this.image.width*Y):Do7(this.image.width*Y);this.scaledImageHeight=Math.round(this.image.height*Y);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20767_overlayMarginBottom=this.JSC$20767_overlayMarginTop=this.canvasMargin;this.JSC$20767_overlayMarginRight=this.JSC$20767_overlayMarginLeft=this.horizontalMargin;this.JSC$20767_overlayWidth=this.scaledImageWidth;this.JSC$20767_overlayHeight=this.scaledImageHeight;
F=this.image.width/this.image.height;F>this.requiredRatio?(this.JSC$20767_overlayWidth=this.canvas.width%2?Wo3(this.scaledImageHeight*this.requiredRatio):Do7(this.scaledImageHeight*this.requiredRatio),this.JSC$20767_overlayMarginRight=this.JSC$20767_overlayMarginLeft=(this.canvas.width-this.JSC$20767_overlayWidth)/2):F<this.requiredRatio&&(this.JSC$20767_overlayHeight=this.canvas.height%2?Wo3(this.scaledImageWidth/this.requiredRatio):Do7(this.scaledImageWidth/this.requiredRatio),this.JSC$20767_overlayMarginBottom=
this.JSC$20767_overlayMarginTop=(this.canvas.height-this.JSC$20767_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*Y,this.scaledImageWidth);BKy(this)};
A6.prototype.getContext=function(){return this.ctx};
var UO9=function(F,q){q={x:Math.round(q.pageX-F.canvas.getBoundingClientRect().left),y:Math.round(q.pageY-F.canvas.getBoundingClientRect().top)};F.dragStart=q;L3w(F,q)!==0?(F.action=1,fmw(F,q),F.resizeCorner=L3w(F,q)):q.x>F.JSC$20767_overlayMarginLeft&&q.x<F.JSC$20767_overlayMarginLeft+F.JSC$20767_overlayWidth&&q.y>F.JSC$20767_overlayMarginTop&&q.y<F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight&&(F.action=0)},amJ=function(F,q){switch(q){case 1:return{x:F.JSC$20767_overlayMarginLeft,
y:F.JSC$20767_overlayMarginTop};case 2:return{x:F.JSC$20767_overlayMarginLeft,y:F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight};case 3:return{x:F.JSC$20767_overlayMarginLeft+F.JSC$20767_overlayWidth,y:F.JSC$20767_overlayMarginTop};case 4:return{x:F.JSC$20767_overlayMarginLeft+F.JSC$20767_overlayWidth,y:F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight};default:throw Error("Dl");}},c_s=function(F,q){if(F.focusedCorner!==0){F.dragStart=amJ(F,F.focusedCorner);
F.action=1;F.resizeCorner=F.focusedCorner;var t=F.dragStart.x,u=F.dragStart.y;switch(q){case 0:F.focusedCorner===1||F.focusedCorner===4?(t-=10,u-=10):(t-=10,u+=10);break;case 1:F.focusedCorner===1||F.focusedCorner===4?(t+=10,u+=10):(t+=10,u-=10);break;case 2:t=F.focusedCorner===1||F.focusedCorner===4?t-10:t+10;u-=10;break;case 3:t=F.focusedCorner===1||F.focusedCorner===4?t+10:t-10;u+=10;break;default:throw Error("El");}jF9(F,{x:t,y:u});BKy(F);F.action=2;F.dragStart=void 0}},SAQ=function(F,q){q={x:Math.round(q.pageX-
F.canvas.getBoundingClientRect().left),
y:Math.round(q.pageY-F.canvas.getBoundingClientRect().top)};fmw(F,q);switch(F.action){case 1:jF9(F,q);break;case 0:F.dragStart&&(F.JSC$20767_overlayMarginLeft=Math.max(F.horizontalMargin,Math.min(F.JSC$20767_overlayMarginLeft-(F.dragStart.x-q.x),F.horizontalMargin+F.scaledImageWidth-F.JSC$20767_overlayWidth)),F.JSC$20767_overlayMarginRight=F.canvas.width-F.JSC$20767_overlayMarginLeft-F.JSC$20767_overlayWidth,F.JSC$20767_overlayMarginTop=Math.max(F.canvasMargin,Math.min(F.JSC$20767_overlayMarginTop-
(F.dragStart.y-q.y),F.scaledImageHeight-F.JSC$20767_overlayHeight+F.canvasMargin)),F.JSC$20767_overlayMarginBottom=F.canvas.height-(F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight));break;default:return}BKy(F);F.dragStart=q},h89=function(F){F.action=2;
F.dragStart=void 0;document.body.style.cursor="auto"},fmw=function(F,q){switch(L3w(F,q)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:F.action!==1&&(document.body.style.cursor="auto")}},L3w=function(F,q){var t=F.JSC$20767_overlayMarginLeft-5,u=F.JSC$20767_overlayMarginTop-5,J=F.JSC$20767_overlayMarginLeft+F.JSC$20767_overlayWidth-5;
F=F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight-5;return Fbv(q,{x:t,y:u})?1:Fbv(q,{x:J,y:u})?3:Fbv(q,{x:t,y:F})?2:Fbv(q,{x:J,y:F})?4:0},Fbv=function(F,q){return F.x>=q.x&&F.x<=q.x+10&&F.y>=q.y&&F.y<=q.y+10},jF9=function(F,q){if(F.dragStart)switch(F.resizeCorner){case 2:Math.abs((F.JSC$20767_overlayMarginLeft+F.JSC$20767_overlayWidth-q.x)/(q.y-F.JSC$20767_overlayMarginTop))>=F.requiredRatio?q0v(F,q.x):tEw(F,q.y);
break;case 1:Math.abs((F.JSC$20767_overlayMarginLeft+F.JSC$20767_overlayWidth-q.x)/(F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight-q.y))>=F.requiredRatio?un5(F,q.x):tEw(F,q.y);break;case 4:Math.abs((q.x-F.JSC$20767_overlayMarginLeft)/(q.y-F.JSC$20767_overlayMarginTop))>=F.requiredRatio?q0v(F,q.x):Jqs(F,q.y);break;case 3:Math.abs((q.x-F.JSC$20767_overlayMarginLeft)/(F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight-q.y))>=F.requiredRatio?un5(F,q.x):Jqs(F,q.y);break;default:throw Error("Fl");
}},q0v=function(F,q){var t=F.JSC$20767_overlayMarginTop;
F.JSC$20767_overlayMarginBottom=sSC(F,q);F.JSC$20767_overlayHeight=F.canvas.height-F.JSC$20767_overlayMarginBottom-t;F.JSC$20767_overlayWidth=Math.round(F.JSC$20767_overlayHeight*F.requiredRatio);gJQ(F)},un5=function(F,q){var t=F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight;
F.JSC$20767_overlayMarginTop=sSC(F,q);F.JSC$20767_overlayHeight=t-F.JSC$20767_overlayMarginTop;F.JSC$20767_overlayWidth=Math.round(F.JSC$20767_overlayHeight*F.requiredRatio);gJQ(F)},gJQ=function(F){switch(F.resizeCorner){case 2:case 1:F.JSC$20767_overlayMarginLeft=F.canvas.width-F.JSC$20767_overlayMarginRight-F.JSC$20767_overlayWidth;
break;case 4:case 3:F.JSC$20767_overlayMarginRight=F.canvas.width-F.JSC$20767_overlayMarginLeft-F.JSC$20767_overlayWidth;break;default:throw Error("Fl");}},tEw=function(F,q){var t=F.JSC$20767_overlayMarginLeft+F.JSC$20767_overlayWidth;
F.JSC$20767_overlayMarginLeft=lGC(F,q);F.JSC$20767_overlayWidth=t-F.JSC$20767_overlayMarginLeft;F.JSC$20767_overlayHeight=Math.round(F.JSC$20767_overlayWidth/F.requiredRatio);XRv(F)},Jqs=function(F,q){var t=F.JSC$20767_overlayMarginLeft;
F.JSC$20767_overlayMarginRight=lGC(F,q);F.JSC$20767_overlayWidth=F.canvas.width-F.JSC$20767_overlayMarginRight-t;F.JSC$20767_overlayHeight=Math.round(F.JSC$20767_overlayWidth/F.requiredRatio);XRv(F)},XRv=function(F){switch(F.resizeCorner){case 2:case 4:F.JSC$20767_overlayMarginBottom=F.canvas.height-F.JSC$20767_overlayMarginTop-F.JSC$20767_overlayHeight;
break;case 1:case 3:F.JSC$20767_overlayMarginTop=F.canvas.height-F.JSC$20767_overlayMarginBottom-F.JSC$20767_overlayHeight;break;default:throw Error("Fl");}},sSC=function(F,q){switch(F.resizeCorner){case 2:q=F.canvas.height-(F.JSC$20767_overlayMarginTop+Y05(F,q));
break;case 4:q=F.canvas.height-(F.JSC$20767_overlayMarginTop+pRh(F,q));break;case 1:q=F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight-Y05(F,q);break;case 3:q=F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight-pRh(F,q);break;default:throw Error("Fl");}return Math.max(q,F.canvasMargin)},Y05=function(F,q){q=F.JSC$20767_overlayMarginLeft+F.JSC$20767_overlayWidth-Math.max(q,F.horizontalMargin);
q=q<0?F.JSC$20767_overlayWidth:Math.max(q,F.minOverlayWidth);return Math.round(q/F.requiredRatio)},pRh=function(F,q){q=F.canvas.width-Math.max(F.canvas.width-q,F.horizontalMargin)-F.JSC$20767_overlayMarginLeft;
q=q<0?F.JSC$20767_overlayWidth:Math.max(q,F.minOverlayWidth);return Math.round(q/F.requiredRatio)},lGC=function(F,q){switch(F.resizeCorner){case 2:q=F.canvas.width-F.JSC$20767_overlayMarginRight-QSw(F,q);
break;case 4:q=F.canvas.width-F.JSC$20767_overlayMarginLeft-QSw(F,q);break;case 1:q=F.canvas.width-F.JSC$20767_overlayMarginRight-eH3(F,q);break;case 3:q=F.canvas.width-F.JSC$20767_overlayMarginLeft-eH3(F,q);break;default:throw Error("Fl");}return Math.max(q,F.horizontalMargin)},QSw=function(F,q){q=F.canvas.height-Math.max(F.canvas.height-q,F.canvasMargin)-F.JSC$20767_overlayMarginTop;
return q<0?F.JSC$20767_overlayWidth:Math.max(Math.round(q*F.requiredRatio),F.minOverlayWidth)},eH3=function(F,q){q=F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight-Math.max(q,F.canvasMargin);
return q<0?F.JSC$20767_overlayWidth:Math.max(Math.round(q*F.requiredRatio),F.minOverlayWidth)},BKy=function(F){F.ctx.clearRect(0,0,F.canvas.width,F.canvas.height);
F.ctx.drawImage(F.image,0,0,F.image.width,F.image.height,F.horizontalMargin,F.canvasMargin,F.canvas.width-2*F.horizontalMargin,F.scaledImageHeight);F.ctx.fillStyle="rgba(0, 0, 0, 0.7)";F.ctx.fillRect(F.horizontalMargin,F.JSC$20767_overlayMarginTop,F.JSC$20767_overlayMarginLeft-F.horizontalMargin,F.JSC$20767_overlayHeight);F.ctx.fillRect(F.JSC$20767_overlayMarginLeft+F.JSC$20767_overlayWidth,F.JSC$20767_overlayMarginTop,F.JSC$20767_overlayMarginRight-F.horizontalMargin,F.JSC$20767_overlayHeight);F.ctx.fillRect(F.horizontalMargin,
F.canvasMargin,F.scaledImageWidth,F.JSC$20767_overlayMarginTop-F.canvasMargin);F.ctx.fillRect(F.horizontalMargin,F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight,F.scaledImageWidth,F.JSC$20767_overlayMarginBottom-F.canvasMargin);F.drawOverlay();F.component&&_.Q0(F.component,"image-updated")};
A6.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20767_overlayMarginLeft,this.JSC$20767_overlayMarginTop,this.JSC$20767_overlayWidth,this.JSC$20767_overlayHeight);Z$9(this)};
var Z$9=function(F){var q=F.JSC$20767_overlayMarginLeft-5,t=F.JSC$20767_overlayMarginTop-5,u=F.JSC$20767_overlayMarginLeft+F.JSC$20767_overlayWidth-5,J=F.JSC$20767_overlayMarginTop+F.JSC$20767_overlayHeight-5;F.ctx.fillStyle="#FFF";F.ctx.fillRect(q,t,10,10);F.ctx.strokeRect(q,t,10,10);F.ctx.fillRect(u,t,10,10);F.ctx.strokeRect(u,t,10,10);F.ctx.fillRect(q,J,10,10);F.ctx.strokeRect(q,J,10,10);F.ctx.fillRect(u,J,10,10);F.ctx.strokeRect(u,J,10,10);if(F.focusedCorner!==0&&F.styleFocusedCorner){F.ctx.lineWidth=
4;F.ctx.strokeStyle="#3EA6FF";switch(F.focusedCorner){case 1:--q;--t;break;case 2:--q;t=J-1;break;case 3:q=u-1;--t;break;case 4:q=u-1;t=J-1;break;default:return}F.ctx.strokeRect(q,t,12,12)}};
A6.prototype.crop=function(F,q){q=q===void 0?!0:q;var t=this.image.width/this.scaledImageWidth,u=document.createElement("canvas"),J=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],g=this.JSC$20767_overlayWidth*t,Y=this.JSC$20767_overlayHeight*t;u.width=Math.max(g,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);u.height=Math.max(Y,J);F&&(u.width=Math.min(u.width,u.height),u.height=Math.min(u.width,u.height));
F=u.getContext("2d");if(!F)throw Error("tl");J=(this.JSC$20767_overlayMarginLeft-this.horizontalMargin)*t;t*=this.JSC$20767_overlayMarginTop-this.canvasMargin;q||(F.fillStyle="white",F.fillRect(0,0,u.width,u.height));F.drawImage(this.image,J,t,g,Y,0,0,u.width,u.height);return u};var RH9=function(F,q,t,u,J){A6.call(this,F,q,t,u,void 0,J,8,!1)};
_.M(RH9,A6);RH9.prototype.drawOverlay=function(){var F=this.getContext(),q=this.JSC$20767_overlayWidth,t=this.JSC$20767_overlayHeight,u=this.JSC$20767_overlayMarginTop,J=this.JSC$20767_overlayMarginLeft;F.lineWidth=2;F.strokeStyle="#3EA6FF";F.beginPath();F.arc(J+q/2,u+t/2,q/2,0,2*Math.PI);F.stroke();F.strokeRect(J,u,q,t);Z$9(this)};
var rqs={maxFileSizeMB:15,minWidth:98,minHeight:98},N9y=["image/png","image/jpeg","image/gif"],va=function(){var F=_.x.apply(this,arguments)||this;F.fileSelectorFocusListener=null;F.errorMessage=null;F.isLoading=!0;F.hideContainer=!0;F.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return F};
_.M(va,_.x);_.l=va.prototype;_.l.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.l.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.l.computePlaylistThumbnail=function(F){return F==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.l.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.ec(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.l.setErrorState=function(F){this.resetErrorState();F&&(this.errorMessage=F)};
_.l.showPopup=function(){var F=this;this.hideContainer=!1;_.W2(_.mI,function(){_.Q0(F.hostElement,"yt-refit")});
this.isLoading=!1};
_.l.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.l.closePopup=function(){this.resetFileSelector();_.ec(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onCancelTap=function(){this.isPlaylistThumbnail||_.ec(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.l.openFileSelector=function(){var F=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.W2(_.mI,function(){setTimeout(function(){if(!F.fileSelector.files||F.fileSelector.files.length===0)F.onCancelTap();F.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(q){q instanceof Error?_.mH(q):_.$e(new _.D0(JSON.stringify(q)))}};
_.l.handleFileSelection=function(){var F=this,q,t,u,J,g,Y;return _.p(function(Q){switch(Q.nextAddress){case 1:_.zg(Q,2);if(!F.fileSelector.files||!F.imageEditorCanvas)return F.onCancelTap(),Q.return();q=F.fileSelector.files[0];dOT(F.imageChecker,q);_.zg(Q,4);return Q.yield(cv3(q),6);case 6:F.mimeType=Q.yieldResult;_.LE(Q,5,2);break;case 4:_.Gg(Q,2),_.ec(F.hostElement,"yt-image-selection-error-action",[(t=F.data)==null?void 0:t.genericImageLoadErrorMessage]),F.onCancelTap();case 5:u=new FileReader;
u.addEventListener("load",function(){var e,r;return _.p(function(N){if(N.nextAddress==1){if(!u.result)return _.bz(Error("vl")),N.return();e=u.result;r=new Image;r.src=e;r.onload=function(){try{var w=F.imageChecker;if(r.width<w.requirements.minWidth||r.height<w.requirements.minHeight)throw new y_J(w.requirements.minWidth,w.requirements.minHeight);}catch(z){if(z instanceof y_J){var k;_.ec(F.hostElement,"yt-image-selection-error-action",[(k=F.data)==null?void 0:k.imageDimensionErrorMessage]);F.logImageDimensionErrorVe()}else z instanceof
Error?_.mH(z):(w=new _.D0(JSON.stringify(z)),_.mH(w));F.onCancelTap()}F.showPopup()};
r.onerror=function(){var w;_.ec(F.hostElement,"yt-image-selection-error-action",[(w=F.data)==null?void 0:w.genericImageLoadErrorMessage]);F.onCancelTap()};
return N.yield(K35(F.imageEditorCanvas,e),2)}F.imageEditor=N.yieldResult;F.updatePositionOfAllCorners();F.addEventListeners(F.imageEditor);_.WA(N)})},!1);
u.readAsDataURL(q);_.LE(Q,0);break;case 2:J=_.Gg(Q),J instanceof xa?_.ec(F.hostElement,"yt-image-selection-error-action",[(g=F.data)==null?void 0:g.imageSizeErrorMessage]):(J instanceof Error?_.mH(J):_.$e(new _.D0(JSON.stringify(J))),_.ec(F.hostElement,"yt-image-selection-error-action",[(Y=F.data)==null?void 0:Y.genericImageLoadErrorMessage])),F.onCancelTap(),_.WA(Q)}})};
_.l.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var F=_.GC(_.DP(),{veType:232707,visualElement:_.r0(232707)});F&&(F={visualElement:F},_.TC().reportShown(F))}};
_.l.handleImageSelectionErrorAction=function(F){this.isPlaylistThumbnail&&_.G8q(this.hostElement,F)};
_.l.convertToImageFormatBundle=function(F){var q=this,t,u,J;return _.p(function(g){switch(g.nextAddress){case 1:return t=F.toDataURL(q.outputMimeType,1),g.yield(Fow(t),2);case 2:u=g.yieldResult;_.zg(g,3);dOT(q.imageChecker,u);_.LE(g,4);break;case 3:J=_.Gg(g);if(!(J instanceof xa))throw J;_.bz(new _.D0("Output size is bigger than input size for image",q.mimeType,q.outputMimeType,u.size));t=F.toDataURL("image/jpeg",.95);return g.yield(Fow(t),6);case 6:u=g.yieldResult;case 4:return g.return({dataUrl:t,
imageFile:u})}})};
_.l.handleUploadImageToScottyCommand=function(F){var q=this,t,u,J,g,Y,Q,e,r,N,w;return _.p(function(k){switch(k.nextAddress){case 1:if(!q.imageEditor||!_.n(F,OAT))return k.return();t=_.n(F,OAT).scottyUploadUrl;if(!t){var z=new _.D0("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.mH(z);return k.return()}_.zg(k,2);q.setLoadingState();u=q.imageEditor.crop(!1,!1);return k.yield(q.convertToImageFormatBundle(u),4);case 4:return J=k.yieldResult,k.yield(aP9(J.imageFile,t),5);
case 5:g=k.yieldResult;((Y=q.data)==null?0:Y.onUploadEndpoint)?(Q=q.buildUploadServiceEndpoint(g),q.ytComponentBehavior.resolveCommand(Q),e=_.n(Q,_.cX),((r=e)==null?0:r.params)?q.closePopup():q.resetFileSelector()):(_.ec(q.hostElement,"yt-image-updated-action",[J.dataUrl,g]),q.closePopup());_.LE(k,0);break;case 2:N=_.Gg(k),q.setErrorState((w=q.data)==null?void 0:w.uploadErrorMessage),N instanceof Error?_.mH(N):(z=new _.D0(JSON.stringify(N)),_.mH(z)),_.WA(k)}})};
_.l.buildUploadServiceEndpoint=function(F){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",F),this.data.onUploadEndpoint):null};
_.l.dataChanged=function(){var F=this,q;return _.p(function(t){if(t.nextAddress==1){if(!F.data||!F.canvasElement)return t.return();F.data.imageRatio&&F.data.minImageCropWidth||_.$e(new _.D0("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));q=function(u,J){return F.data.imageType==="IMAGE_TYPE_AVATAR"?new RH9(u,J,F.data.imageRatio,[F.data.minImageCropWidth,F.data.minImageCropWidth/F.data.imageRatio],F.hostElement):new A6(u,J,F.data.imageRatio,[F.data.minImageCropWidth,
F.data.minImageCropWidth/F.data.imageRatio],void 0,F.hostElement,8,!1)};
F.imageEditorCanvas=new VUv(F.canvasElement,q);return F.data.url?t.yield(K35(F.imageEditorCanvas,F.data.url),3):(F.hideContainer=!0,F.openFileSelector(),t.jumpTo(0))}F.imageEditor=t.yieldResult;F.showPopup();F.addEventListeners(F.imageEditor);_.WA(t)})};
_.l.addEventListeners=function(F){this.removeEventListeners();var q=function(J){UO9(F,J)};
this.JSC$20775_mouseDownEvent=q;var t=function(J){SAQ(F,J)};
this.JSC$20775_mouseMoveEvent=t;var u=function(){h89(F)};
this.JSC$20775_mouseUpEvent=u;this.topLeftCorner.addEventListener("mousedown",q);this.topLeftCorner.addEventListener("mousemove",t);this.topLeftCorner.addEventListener("mouseup",u);this.topRightCorner.addEventListener("mousedown",q);this.topRightCorner.addEventListener("mousemove",t);this.topRightCorner.addEventListener("mouseup",u);this.bottomLeftCorner.addEventListener("mousedown",q);this.bottomLeftCorner.addEventListener("mousemove",t);this.bottomLeftCorner.addEventListener("mouseup",u);this.bottomRightCorner.addEventListener("mousedown",
q);this.bottomRightCorner.addEventListener("mousemove",t);this.bottomRightCorner.addEventListener("mouseup",u)};
_.l.removeEventListeners=function(){this.JSC$20775_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20775_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20775_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20775_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20775_mouseDownEvent));this.JSC$20775_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20775_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20775_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20775_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20775_mouseMoveEvent));this.JSC$20775_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20775_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20775_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20775_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20775_mouseUpEvent))};
_.l.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var F=document.activeElement;F&&F.shadowRoot&&F.shadowRoot.activeElement;)F=F.shadowRoot.activeElement;switch(F){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.l.updatePositionOfCorner=function(F,q){var t=F.y-q.offsetHeight/2+4;q.style.left=F.x-q.offsetWidth/2+16+"px";q.style.top=t+"px"};
_.l.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var F=_.X([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),q=F.next();!q.done;q=F.next()){q=q.value;var t=amJ(this.imageEditor,q.corner);this.updatePositionOfCorner(t,q.div)}};
_.l.onLeft=function(F){this.imageEditor&&this.setFocusInImageEditor()&&(c_s(this.imageEditor,0),this.updatePositionOfAllCorners(),F.preventDefault())};
_.l.onRight=function(F){this.imageEditor&&this.setFocusInImageEditor()&&(c_s(this.imageEditor,1),this.updatePositionOfAllCorners(),F.preventDefault())};
_.l.onUp=function(F){this.imageEditor&&this.setFocusInImageEditor()&&(c_s(this.imageEditor,2),this.updatePositionOfAllCorners(),F.preventDefault())};
_.l.onDown=function(F){this.imageEditor&&this.setFocusInImageEditor()&&(c_s(this.imageEditor,3),this.updatePositionOfAllCorners(),F.preventDefault())};
_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.JJ.Object.defineProperties(va.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&N9y.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var F,q,t;((q=this.data)==null?0:q.imageRatio)&&((t=this.data)==null?0:t.minImageCropWidth)?F={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:F=rqs;return new CE9(F)}}});
va.prototype.updatePositionOfAllCorners=va.prototype.updatePositionOfAllCorners;va.prototype.dataChanged=va.prototype.dataChanged;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],va.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],va.prototype,"ytComponentBehavior",void 0);_.C([_.D(_.v6),_.V("design:type",Object)],va.prototype,"ironA11yKeysBehavior",void 0);
_.C([_.Ms("#canvas"),_.V("design:type",HTMLCanvasElement)],va.prototype,"canvasElement",void 0);_.C([_.Ms("#file-selector"),_.V("design:type",HTMLInputElement)],va.prototype,"fileSelector",void 0);_.C([_.Ms("#top-left-corner"),_.V("design:type",HTMLDivElement)],va.prototype,"topLeftCorner",void 0);_.C([_.Ms("#top-right-corner"),_.V("design:type",HTMLDivElement)],va.prototype,"topRightCorner",void 0);
_.C([_.Ms("#bottom-left-corner"),_.V("design:type",HTMLDivElement)],va.prototype,"bottomLeftCorner",void 0);_.C([_.Ms("#bottom-right-corner"),_.V("design:type",HTMLDivElement)],va.prototype,"bottomRightCorner",void 0);_.C([_.O(),_.V("design:type",Object)],va.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],va.prototype,"errorMessage",void 0);_.C([_.O(),_.V("design:type",Object)],va.prototype,"isLoading",void 0);_.C([_.O(),_.V("design:type",Object)],va.prototype,"hideContainer",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.V("design:type",Boolean)],va.prototype,"isPlaylistThumbnail",void 0);_.C([_.Wh("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],va.prototype,"dataChanged",null);_.C([_.EB("image-updated"),_.EB("yt-refit"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],va.prototype,"updatePositionOfAllCorners",null);
_.C([_.Vu({is:"yt-image-editor-renderer",disableElementRegistration:!0})],va);
_.b(va,"yt-image-editor-renderer",function(){if(bvT===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;$Os===void 0&&($Os=document.createElement("template"));var u=$Os;t.call(q,u.content.cloneNode(!0),F.content.firstChild);bvT=F}F=bvT;return F},{mode:2});var wR9;var i$v;var IU=function(){return _.x.apply(this,arguments)||this};
_.M(IU,_.x);IU.prototype.updateMinutesFromBinding=function(F){this.handleMinutesChanged&&this.handleMinutesChanged(F)};
IU.prototype.updateSecondsFromBinding=function(F){this.handleSecondsChanged&&this.handleSecondsChanged(F)};
IU.prototype.updateDescriptionFromBinding=function(F){this.handleDescriptionChanged&&this.handleDescriptionChanged(F)};
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],IU.prototype,"ytComponentBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],IU.prototype,"data",void 0);_.C([_.O(),_.V("design:type",String)],IU.prototype,"minutes",void 0);_.C([_.O(),_.V("design:type",String)],IU.prototype,"seconds",void 0);_.C([_.O(),_.V("design:type",String)],IU.prototype,"description",void 0);_.C([_.O(),_.V("design:type",Function)],IU.prototype,"handleMinutesChanged",void 0);
_.C([_.O(),_.V("design:type",Function)],IU.prototype,"handleSecondsChanged",void 0);_.C([_.O(),_.V("design:type",Function)],IU.prototype,"handleDescriptionChanged",void 0);_.C([_.O(),_.V("design:type",Number)],IU.prototype,"characterLimit",void 0);_.C([_.O(),_.V("design:type",Number)],IU.prototype,"textNumRows",void 0);_.C([_.Vu({is:"yt-report-details-form-content",disableElementRegistration:!0})],IU);
_.b(IU,"yt-report-details-form-content",function(){if(i$v===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;wR9===void 0&&(wR9=document.createElement("template"));var u=wR9;t.call(q,u.content.cloneNode(!0),F.content.firstChild);i$v=F}F=i$v;return F},{mode:2});var kfC;var EJ9;var Ha=function(){var F=_.x.apply(this,arguments)||this;F.updateMinutesFromBinding=function(q){F.minutes=q.detail.value};
F.updateSecondsFromBinding=function(q){F.seconds=q.detail.value};
F.updateDescriptionFromBinding=function(q){F.description=q.detail.value};
return F};
_.M(Ha,_.x);_.l=Ha.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.l.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"}}}};
_.l.ready=function(){_.ep(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.l.onSubmitYtAction=function(F){var q=F.detail;q.actionName==="yt-service-request"&&(q=q.args[1],q.flagEndpoint&&(F.stopPropagation(),this.refireAction(q)))};
_.l.refireAction=function(F){var q={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(q.vss_id=this.vssId);_.RD(this.hostElement,[F,q]);this.submitDisabled=!0};
_.l.dataChanged=function(){var F=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var q=_.g0();q&&q.getPlayerPromise().then(function(t){var u=t.getOption("cc","track")||t.getOption("captions","track");u&&(F.vssId=u.vss_id);t=t.getCurrentTime();F.minutes=Math.floor(t/60).toString();F.seconds=(Math.floor(t)%60).toString()})};
_.l.updateSubmitButtonState=function(){var F;((F=this.data)==null?0:F.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.l.onYtServiceRequestCompleted=function(){_.ec(this.hostElement,"yt-close-popup-action")};
_.l.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.JJ.Object.defineProperties(Ha.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.textNumRows)||4}}});
Ha.prototype.onYtServiceRequestError=Ha.prototype.onYtServiceRequestError;Ha.prototype.onYtServiceRequestCompleted=Ha.prototype.onYtServiceRequestCompleted;Ha.prototype.updateSubmitButtonState=Ha.prototype.updateSubmitButtonState;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ha.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);
_.C([_.O({observer:"dataChanged"}),_.V("design:type",Object)],Ha.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Boolean)],Ha.prototype,"submitDisabled",void 0);_.C([_.O(),_.V("design:type",String)],Ha.prototype,"minutes",void 0);_.C([_.O(),_.V("design:type",String)],Ha.prototype,"seconds",void 0);_.C([_.O(),_.V("design:type",String)],Ha.prototype,"description",void 0);_.C([_.O(),_.V("design:type",String)],Ha.prototype,"vssId",void 0);
_.C([_.O({value:_.bn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.V("design:type",Boolean)],Ha.prototype,"isMusic",void 0);_.C([_.W("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],Ha.prototype,"characterLimit",null);_.C([_.W("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],Ha.prototype,"textNumRows",null);
_.C([_.Wh("minutes","seconds","description","submitDisabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ha.prototype,"updateSubmitButtonState",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ha.prototype,"onYtServiceRequestCompleted",null);
_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ha.prototype,"onYtServiceRequestError",null);_.C([_.Vu({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Ha);
_.b(Ha,"yt-report-details-form-renderer",function(){if(EJ9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;kfC===void 0&&(kfC=document.createElement("template"));var u=kfC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);EJ9=F}F=EJ9;return F});var zH9;var oJ5;var nJ9;var MEC;var m5=function(){return _.x.apply(this,arguments)||this};
_.M(m5,_.x);
m5.prototype.onCheckedChanged_=function(){if(this.data){var F=_.ep(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.ec(this.hostElement,"yt-additional-detail-checkbox-update",[F]):this.data.identifier==="yt-hide-user-checkbox"?_.ec(this.hostElement,"yt-hide-user-checkbox-update",[F]):F&&this.data.enableCommand?_.ec(this.hostElement,"yt-modify-report-form-command",[_.n(this.data.enableCommand,mHQ)]):!F&&this.data.disableCommand&&_.ec(this.hostElement,
"yt-modify-report-form-command",[_.n(this.data.enableCommand,mHQ)])}};
m5.prototype.onLabelTap_=function(F){F.target.tagName!="A"&&(_.ep(this.hostElement).querySelector("#checkbox").checked=!_.ep(this.hostElement).querySelector("#checkbox").checked)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],m5.prototype,"data",void 0);_.C([_.Vu({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],m5);
_.b(m5,"yt-boolean-form-field-v2-renderer",function(){if(MEC===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;nJ9===void 0&&(nJ9=document.createElement("template"));var u=nJ9;t.call(q,u.content.cloneNode(!0),F.content.firstChild);MEC=F}F=MEC;return F});var $a=function(){var F=_.x.apply(this,arguments)||this;F.canShowAdditionalDetailCheckbox=!1;F.canShowCheckbox=!1;F.keepDropdownFocusedAfterSelection=!0;return F};
_.M($a,_.x);$a.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}}}}};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],$a.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],$a.prototype,"canShowAdditionalDetailCheckbox",void 0);_.C([_.O(),_.V("design:type",Object)],$a.prototype,"canShowCheckbox",void 0);_.C([_.O(),_.V("design:type",Object)],$a.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.C([_.Vu({is:"yt-report-form-modal-content",disableElementRegistration:!0})],$a);
_.b($a,"yt-report-form-modal-content",function(){if(oJ5===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;zH9===void 0&&(zH9=document.createElement("template"));var u=zH9;t.call(q,u.content.cloneNode(!0),F.content.firstChild);oJ5=F}F=oJ5;return F},{mode:2});var T9C;var Gf5;var bM=function(){var F=_.x.apply(this,arguments)||this;F.submitting=!1;F.submitButtonDisabled=!0;F.command=null;F.canShowCheckbox=!1;F.canShowAdditionalDetailCheckbox=!1;F.canShowNextButton=!1;F.additionalDetailCheckboxChecked=!1;F.refitJob=0;F.keepDropdownFocusedAfterSelection=!0;F.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return F};
_.M(bM,_.x);_.l=bM.prototype;_.l.created=function(){this.refitJob=0};
_.l.attached=function(){this.JSC$20798_scroller&&(this.JSC$20798_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20798_scroller.attached&&typeof this.JSC$20798_scroller.attached==="function"&&this.JSC$20798_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(F){F&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,F.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),F.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.l.onYtPopupOpened=function(){var F=_.g0();F&&F.getPlayerPromise().then(function(q){q.pauseVideo()})};
_.l.onYtNavigate=function(F){_.n(F.detail.endpoint,_.ZQe)&&(F.stopPropagation(),this.hideReportForm=!0)};
_.l.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.l.onYtServiceRequestCompleted=function(F,q){var t=q.actions;if(t){if(t.length===1&&_.n(t[0],_.wY)){var u;t=((u=_.n(t[0],_.wY))==null?void 0:u.commands)||[]}u=0;for(var J=t.length;u<J;u++)_.n(t[u],_.y5)&&(F.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(t[u]))}if(q.data&&(F=this.get("feedbackResponses",q.data)))for(q=0;q<F.length;q++)if(F[q].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.l.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.l._onDescendantIronResize=function(F){F.stopPropagation();return!1};
_.l.handleReportFormEndpointUpdateAction=function(F){if(F.submitEndpoint){var q=this.command=F.submitEndpoint;q=_.n(q,_.pbd);if(q==null?0:q.additionalDetailCheckboxChecked)q.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else F.submitNavigationEndpoint?(this.command=F.submitNavigationEndpoint,this.toggleSubmitButton(!1)):F.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:F.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;F.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",F));this.refit()};
_.l.handleConfirmDialogCloseAction=function(F){F.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.l.submitButtonDisabledChanged=function(){var F=this.hostElement.parentElement;F&&F.invalidateTabbables&&F.invalidateTabbables()};
_.l.handleModifyReportFormCommand=function(F){F=this.get("action",F);F==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:F==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:F==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:F==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:F==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:F==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.l.updateDialogStyling=function(){var F,q,t,u,J,g=((J=(F=this.data)==null?void 0:(q=F.optionsSupportedRenderers)==null?void 0:(t=q.optionsRenderer)==null?void 0:(u=t.items)==null?void 0:u.length)!=null?J:0)<=2?0:240;_.ws(this.hostElement,{"--yt-report-form-modal-renderer-min-width":g+"px"})};
_.l.toggleSubmitButton=function(F){this.submitButtonDisabled=!F;this.submitButtonDisabled=F};
_.l.computeSubmitButtonData=function(F,q){var t={};_.n(q,_.ZQe)?t.navigationEndpoint=q:t.command=q||void 0;F&&F.buttonRenderer&&_.m7.extend(t,F.buttonRenderer);return t};
_.l.computeNextButtonData=function(F,q){var t={};if(!F||!F.buttonRenderer)return t;_.m7.extend(t,F.buttonRenderer);if(!q)return t;if(_.n(q,_.ZQe))t.navigationEndpoint=qa5(q);else if(t.command=qa5(q),F=_.n(t.command,_.pbd))F.legalCheckboxChecked=!0;return t};
_.l.computeShowNextButton=function(F,q,t){return!!F&&q&&t};
_.l.refit=function(){var F=this;this.refitJob||(this.refitJob=_.mI.addLowPriorityJob(function(){_.Q0(F.hostElement,"yt-refit");F.refitJob=0}))};
_.l.handleAdditionalDetailCheckboxUpdateAction=function(F){this.additionalDetailCheckboxChecked=F;_.n(this.command,_.pbd).additionalDetailCheckboxChecked=F};
_.JJ.Object.defineProperties(bM,{template:{configurable:!0,enumerable:!0,get:function(){if(Gf5===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;T9C===void 0&&(T9C=document.createElement("template"));var u=T9C;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Gf5=F}F=Gf5;return F}}});
bM.prototype.onYtServiceRequestError=bM.prototype.onYtServiceRequestError;bM.prototype.onYtServiceRequestCompleted=bM.prototype.onYtServiceRequestCompleted;bM.prototype.onYtServiceRequestSent=bM.prototype.onYtServiceRequestSent;bM.prototype.onYtNavigate=bM.prototype.onYtNavigate;bM.prototype.onYtPopupOpened=bM.prototype.onYtPopupOpened;_.C([_.D(_.HP.YtOpenPopupBehavior),_.V("design:type",Object)],bM.prototype,"openPopupBehavior",void 0);
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],bM.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],bM.prototype,"eventForwardingBehavior",void 0);_.C([_.D(_.Vl),_.V("design:type",Object)],bM.prototype,"ironResizableBehavior",void 0);_.C([_.O({observer:"dataChanged"}),_.V("design:type",Object)],bM.prototype,"data",void 0);
_.C([_.O(),_.V("design:type",Object)],bM.prototype,"submitting",void 0);_.C([_.O({observer:"submitButtonDisabledChanged"}),_.V("design:type",Object)],bM.prototype,"submitButtonDisabled",void 0);_.C([_.O(),_.V("design:type",Object)],bM.prototype,"command",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],bM.prototype,"hideReportForm",void 0);_.C([_.O(),_.V("design:type",Object)],bM.prototype,"canShowCheckbox",void 0);
_.C([_.O(),_.V("design:type",Object)],bM.prototype,"canShowAdditionalDetailCheckbox",void 0);_.C([_.O(),_.V("design:type",Object)],bM.prototype,"canShowNextButton",void 0);_.C([_.O(),_.V("design:type",Object)],bM.prototype,"additionalDetailCheckboxChecked",void 0);_.C([_.O(),_.V("design:type",Object)],bM.prototype,"refitJob",void 0);_.C([_.O(),_.V("design:type",Object)],bM.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.C([_.Ms("#scroller"),_.V("design:type",Object)],bM.prototype,"JSC$20798_scroller",void 0);_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bM.prototype,"onYtPopupOpened",null);_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bM.prototype,"onYtNavigate",null);
_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],bM.prototype,"onYtServiceRequestSent",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],bM.prototype,"onYtServiceRequestCompleted",null);
_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bM.prototype,"onYtServiceRequestError",null);_.C([_.Vu({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],bM);var Drs;var Wb9;var yR=function(){return _.x.apply(this,arguments)||this};
_.M(yR,_.x);_.l=yR.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.l.onVisible=function(){var F,q;(q=_.sV().resolve(_.JU(_.h5)))==null||q.enqueue({label:_.q1((F=this.data)==null?void 0:F.messageTitle),elementToFocus:this.hostElement})};
_.l.onThumbnailLoaded=function(){_.Q0(this.hostElement,"yt-refit")};
_.l.onDismissTap=function(){_.ec(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.l.computeAlternateIcon=function(F){return F?F==="BACKSTAGE_ARTWORK"?"backstage:artwork":F:null};
_.l.computeFontFamily=function(F){return F==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.l.computeBackgroundStyle=function(F,q){if(F=this.computeBackgroundImage(F,q))if(F=_.RI(F.thumbnails))return'background-image: url("'+F+'");'};
_.l.computeHasFullHeightImage=function(F){return!(!(F&&F.thumbnails&&F.thumbnails.length>0)||this.modern)};
_.l.isModernStyle=function(F){return F.style==="STYLE_MODERN"};
_.l.computeIcon=function(F,q){if(F&&F.icon)return q?F.iconDark:F.icon};
_.l.computeBackgroundImage=function(F,q){if(F&&F.backgroundImage)return q?F.backgroundImageDark:F.backgroundImage};
_.l.computeLogo=function(F,q){if(F&&F.logo)return q?F.logoDark:F.logo};
_.l.computeShouldShowModernIcon=function(F,q){return F&&!!q};
_.l.getLogoContainerClassName=function(F){return this.logoWithPadding(F)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.l.getLogoImageId=function(F){return this.logoWithPadding(F)?"mealbar-logo-with-padding":"mealbar-logo"};
_.l.logoWithPadding=function(F){var q,t,u;return(F=(q=this.computeLogo(F,this.isDarkTheme))==null?void 0:(t=q.thumbnails)==null?void 0:(u=t[0])==null?void 0:u.height)&&F%31===0?!0:!1};
yR.prototype.onThumbnailLoaded=yR.prototype.onThumbnailLoaded;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.C([_.O({}),_.V("design:type",Object)],yR.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.V("design:type",Boolean)],yR.prototype,"modern",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],yR.prototype,"isDarkTheme",void 0);
_.C([_.O({computed:"computeIcon(data, isDarkTheme)"}),_.V("design:type",Object)],yR.prototype,"icon",void 0);_.C([_.O({computed:"computeLogo(data, isDarkTheme)"}),_.V("design:type",Object)],yR.prototype,"logo",void 0);_.C([_.O({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.V("design:type",Object)],yR.prototype,"backgroundStyle",void 0);_.C([_.O({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.V("design:type",Object)],yR.prototype,"alternateIcon",void 0);
_.C([_.O({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.V("design:type",Boolean)],yR.prototype,"hasFullHeightImage",void 0);_.C([_.O({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.V("design:type",Boolean)],yR.prototype,"useYoutubeSans",void 0);_.C([_.O({computed:"computeShouldShowModernIcon(modern, icon)"}),_.V("design:type",Boolean)],yR.prototype,"shouldShowModernIcon",void 0);
_.C([_.EB("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yR.prototype,"onThumbnailLoaded",null);_.C([_.Vu({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],yR);
_.b(yR,"yt-mealbar-promo-renderer",function(){if(Wb9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;Drs===void 0&&(Drs=document.createElement("template"));var u=Drs;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Wb9=F}F=Wb9;return F},{mode:2});var O$D;var P0h;var CS=function(){return _.x.apply(this,arguments)||this};
_.M(CS,_.x);_.l=CS.prototype;_.l.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]]"}}}}}};
_.l.computeHasButtons_=function(F){return!(!F.dismissButton&&!F.acceptButton)};
_.l.computeStyle_=function(F){return F||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.l.observeImpressionEndpoints_=function(){var F=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(q){q.clickTrackingParams&&delete q.clickTrackingParams;_.RD(F.hostElement,[q])})};
_.l.onTap_=function(){_.ec(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
CS.prototype.observeImpressionEndpoints_=CS.prototype.observeImpressionEndpoints_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],CS.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],CS.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],CS.prototype,"positionType",void 0);_.C([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.V("design:type",Boolean)],CS.prototype,"hasButtons_",void 0);_.C([_.O({value:function(){return this.onTap_.bind(this)}}),
_.V("design:type",Function)],CS.prototype,"boundOnTap_",void 0);_.C([_.O({value:{style:"mono-inverse"}}),_.V("design:type",Object)],CS.prototype,"buttonOverride",void 0);_.C([_.za("data.promoConfig.impressionEndpoints"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CS.prototype,"observeImpressionEndpoints_",null);_.C([_.Vu({is:"yt-tooltip-renderer",disableElementRegistration:!0})],CS);
_.b(CS,"yt-tooltip-renderer",function(){if(P0h===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;O$D===void 0&&(O$D=document.createElement("template"));var u=O$D;t.call(q,u.content.cloneNode(!0),F.content.firstChild);P0h=F}F=P0h;return F},{mode:2});var xrh;var AqQ;var vJy={},IGC=(vJy.WEB_REMIX="music.youtube.com",vJy),dH=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return F};
_.M(dH,_.x);_.l=dH.prototype;_.l.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.created=function(){this.embedHost_=IGC[_.bn("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.l.ready=function(){_.ep(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.l.computeEmbedCode_=function(F,q,t,u,J){if(!F)return"";var g=F.videoId,Y=F.fullListId,Q=[];F.attributionId&&Q.push("si="+F.attributionId);u||Q.push("controls=0");t&&Number(q)>0&&Q.push("start="+q);Y&&(g="videoseries",Q.push("list="+Y));t="https://"+(J?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+g;F.clipId&&(Q.push("clip="+F.clipId),Q.push("clipt="+F.clipTiming));q=Q.length>0?t+"?"+Q.join("&amp;"):t;F.encryptedEmbedConfig&&Q.push("embed_config="+JSON.stringify({enc:F.encryptedEmbedConfig}));
Q=Q.length>0?t+"?"+Q.join("&amp;"):t;_.E("web_sharing_embed_preview_killswitch")?_.ep(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(Q,F.previewWidth||854,F.previewHeight||480):(_.bX(this.videoPreviewContainer),_.ep(this.videoPreviewContainer).appendChild(this.buildIframeElement(Q)));return this.getEmbedCode_(q,F.width||560,F.height||315)};
_.l.buildIframeElement=function(F){var q=document.createElement("iframe"),t,u;q.width=""+((u=(t=this.data)==null?void 0:t.previewWidth)!=null?u:854);var J,g;q.height=""+((g=(J=this.data)==null?void 0:J.previewHeight)!=null?g:480);_.loC(q,2,F);q.title="YouTube video player";q.frameBorder="0";q.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";q.referrerPolicy="strict-origin-when-cross-origin";q.allowFullscreen=!0;return q};
_.l.computeIsSquareAspectRatio_=function(F){return F.previewHeight&&F.previewWidth?F.previewHeight==F.previewWidth:!1};
_.l.computeShowEmbedOptions_=function(F){return!!F.enablePrivacyModeOptionLabel||!!F.showPlayerControlsOptionLabel};
_.l.getEmbedCode_=function(F,q,t){return'<iframe width="'+q+'" height="'+t+'" src="'+F+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.l.handleSignalActionCopyShareEmbedUrl_=function(){_.ep(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.l.handleSetTimestamp_=function(F){this.startAtTimeStamp_=(this.startAtChecked_=F.isSet)?F.timestamp:0};
_.l.closePanel_=function(){_.ec(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.l.onEmbedCode_=function(){_.ep(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.l.onYtPopupClosed_=function(){_.bX(_.ep(this.hostElement).querySelector("#video-preview"))};
_.l.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.n(this.data.actionButtons[0],_.th)&&this.ytRendererBehavior.logExplicitClick(_.n(this.data.actionButtons[0],_.th))};
dH.prototype.onYtPopupClosed_=dH.prototype.onYtPopupClosed_;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],dH.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],dH.prototype,"data",void 0);
_.C([_.O({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.V("design:type",String)],dH.prototype,"embedCode_",void 0);_.C([_.O({value:!0}),_.V("design:type",Boolean)],dH.prototype,"isPlayerControlsOptionChecked_",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],dH.prototype,"isPrivacyModeOptionChecked_",void 0);_.C([_.O({value:!1,notify:!0}),_.V("design:type",Boolean)],dH.prototype,"startAtChecked_",void 0);
_.C([_.O({value:0}),_.V("design:type",Number)],dH.prototype,"startAtTimeStamp_",void 0);_.C([_.O({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],dH.prototype,"isSquareAspectRatio_",void 0);_.C([_.Ms("#video-preview"),_.V("design:type",HTMLElement)],dH.prototype,"videoPreviewContainer",void 0);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dH.prototype,"onYtPopupClosed_",null);
_.C([_.Vu({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],dH);
_.b(dH,"yt-sharing-embed-renderer",function(){if(AqQ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;xrh===void 0&&(xrh=document.createElement("template"));var u=xrh;t.call(q,u.content.cloneNode(!0),F.content.firstChild);AqQ=F}F=AqQ;return F},{mode:2});var H$3={};
H$3.YtUnlimitedFamilyInterstitialBehavior=[_.HP.YtOpenPopupBehavior,_.$9.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(F){F=_.r9r(_.uL(F),"yt-button-renderer");return F?F.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(F){this.dialogHistory_.push(F)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var F=this.popFromHistory();if(F){var q={openPopupAction:{popupType:"DIALOG",popup:{}}};q.openPopupAction.popup[F.renderer]=F.data;this.showingPreviousDialog_=!0;this.openPopup(q)}},
handleOpenPopupAction_:function(F){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var q=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(u){return!!F.openPopupAction.popup[u]}),t=this.getElementName_();
q&&this.data&&(this.pushToHistory({renderer:t,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(F){if(F=_.n(F,p8C))this.loading=!0,_.ec(this.hostElement,"yt-open-create-family-dialog",[F,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var F=this.hostElement.nodeName.split("-").slice(1).map(function(q){return""+q[0].toUpperCase()+q.slice(1).toLowerCase()}).join("");
return F[0].toLowerCase()+F.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var mrT;var $r9;var VR=function(){return _.x.apply(this,arguments)||this};
_.M(VR,_.x);_.l=VR.prototype;_.l.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}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ec(this.hostElement,"yt-register-create-family-dialog");_.ep(this.hostElement).querySelector("#thumbnail").onShow()};
_.l.fireOnCloseCommand_=function(){var F;((F=this.data)==null?0:F.onCloseCommand)&&_.rY(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.l.onYtServiceRequestSent_=function(F,q){q&&q.endpoint&&_.n(q.endpoint,_.ko)||(this.loading=!0)};
_.l.onYtServiceRequestCompleted_=function(){var F=this.hostElement.parentElement;F.close&&F.close();this.loading=!1};
_.l.openPopupHandler_=function(F){if(F.detail==this){var q;((q=this.data)==null?0:q.onOpenCommands)&&_.rY(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.l.closePopupHandler_=function(F,q){this.fireOnCloseCommand_();if(q&&q.canceled===!0||q&&q.canceled===!1&&q.confirmed===!1){var t;((t=this.data)==null?0:t.onDismissCommands)&&_.rY(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.l.dataChanged_=function(){this.loading=!1};
VR.prototype.dataChanged_=VR.prototype.dataChanged_;VR.prototype.closePopupHandler_=VR.prototype.closePopupHandler_;VR.prototype.openPopupHandler_=VR.prototype.openPopupHandler_;VR.prototype.onYtServiceRequestCompleted_=VR.prototype.onYtServiceRequestCompleted_;VR.prototype.onYtServiceRequestSent_=VR.prototype.onYtServiceRequestSent_;_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],VR.prototype,"ytEventForwardingBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(H$3.YtUnlimitedFamilyInterstitialBehavior),_.V("design:type",Object)],VR.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],VR.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],VR.prototype,"loading",void 0);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],VR.prototype,"onYtServiceRequestSent_",null);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],VR.prototype,"onYtServiceRequestCompleted_",null);
_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],VR.prototype,"openPopupHandler_",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],VR.prototype,"closePopupHandler_",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],VR.prototype,"dataChanged_",null);
_.C([_.Vu({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],VR);
_.b(VR,"yt-unlimited-family-message-interstitial-renderer",function(){if($r9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;mrT===void 0&&(mrT=document.createElement("template"));var u=mrT;t.call(q,u.content.cloneNode(!0),F.content.firstChild);$r9=F}F=$r9;return F},{mode:2});var b$y;var yqQ;var Ug=function(){return _.x.apply(this,arguments)||this};
_.M(Ug,_.x);Ug.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"}}}};
Ug.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ep(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(F){F.onShow()});
_.ep(this.hostElement).querySelector("#main-thumbnail").onShow()};
Ug.prototype.onButtonTap_=function(F){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(F)};
Ug.prototype.computeMainThumbnailWidth_=function(F){return F&&F.length!==0?72:96};
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ug.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.C([_.D(H$3.YtUnlimitedFamilyInterstitialBehavior),_.V("design:type",Object)],Ug.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ug.prototype,"data",void 0);
_.C([_.O({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.V("design:type",Number)],Ug.prototype,"mainThumbnailWidth_",void 0);_.C([_.O({value:function(){return this.onButtonTap_.bind(this)}}),
_.V("design:type",Function)],Ug.prototype,"boundButtonTap_",void 0);_.C([_.Vu({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Ug);
_.b(Ug,"yt-unlimited-family-profile-interstitial-renderer",function(){if(yqQ===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;b$y===void 0&&(b$y=document.createElement("template"));var u=b$y;t.call(q,u.content.cloneNode(!0),F.content.firstChild);yqQ=F}F=yqQ;return F},{mode:2});var C0w;var dr9;var S_=function(){var F=_.x.apply(this,arguments)||this;F.sliderAriaValueText_=null;F.selectedIndex_=0;F.messages={PAUSE_SLIDER:_.oD("PAUSE_SLIDER",void 0,"Pause Duration")};return F};
_.M(S_,_.x);_.l=S_.prototype;_.l.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_]]"}}}}}};
_.l.onPopupOpened_=function(F){F.detail==this&&_.E("enable_premium_voluntary_pause")&&(_.ec(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.setDialogData=function(F){this.data=F;this.resetSlider_()};
_.l.dataChanged_=function(){this.data&&this.resetSlider_()};
_.l.onSubmitTap_=function(){if(this.data.confirmCommand){var F=this.data.confirmCommand;_.n(F,_.uX1)&&_.RD(this.hostElement,[F,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.l.onExitButtonTap_=function(){_.ec(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.l.closePopupHandler_=function(F,q){(q&&q.canceled===!0||q.canceled===!1&&q.confirmed===!1)&&this.handleOnDismissCommands_()};
_.l.onSliderChange_=function(){this.selectedIndex_=_.ep(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.l.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.l.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.l.resetSlider_=function(){if(this.data){var F=this.data.defaultEndOptionIndex||0,q=_.ep(this.hostElement).querySelector("#id-pause-slider");if(q.immediateValue<F)for(;q.immediateValue!=F;)q.increment();else if(F<q.immediateValue)for(;q.immediateValue!=F;)q.decrement();this.selectedIndex_=F;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.l.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.rY(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.l.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.rY(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestSent=function(){this.loading=!0};
_.l.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
S_.prototype.onYtServiceRequestCompleted=S_.prototype.onYtServiceRequestCompleted;S_.prototype.onYtServiceRequestSent=S_.prototype.onYtServiceRequestSent;S_.prototype.closePopupHandler_=S_.prototype.closePopupHandler_;S_.prototype.dataChanged_=S_.prototype.dataChanged_;S_.prototype.onPopupOpened_=S_.prototype.onPopupOpened_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],S_.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],S_.prototype,"loading",void 0);_.C([_.O(),_.V("design:type",Number)],S_.prototype,"selectIndexMax_",void 0);_.C([_.O(),_.V("design:type",Object)],S_.prototype,"selectedData_",void 0);
_.C([_.O(),_.V("design:type",Object)],S_.prototype,"sliderAriaValueText_",void 0);_.C([_.O({value:function(){return this.onSubmitTap_.bind(this)}}),
_.V("design:type",Function)],S_.prototype,"onButtonTap_",void 0);_.C([_.O({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.V("design:type",Function)],S_.prototype,"onSecondaryTap_",void 0);_.C([_.O(),_.V("design:type",Object)],S_.prototype,"messages",void 0);_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],S_.prototype,"onPopupOpened_",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],S_.prototype,"dataChanged_",null);
_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],S_.prototype,"closePopupHandler_",null);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],S_.prototype,"onYtServiceRequestSent",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],S_.prototype,"onYtServiceRequestCompleted",null);_.C([_.Vu({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],S_);
_.b(S_,"yt-unplugged-pause-membership-dialog-renderer",function(){if(dr9===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;C0w===void 0&&(C0w=document.createElement("template"));var u=C0w;t.call(q,u.content.cloneNode(!0),F.content.firstChild);dr9=F}F=dr9;return F},{mode:2});var VE7;var UrC;var h6=function(){return _.x.apply(this,arguments)||this};
_.M(h6,_.x);h6.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.$m("vcBalanceRenderer")}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],h6.prototype,"data",void 0);_.C([_.Vu({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],h6);
_.b(h6,"yt-vc-offer-layout-header-renderer",function(){if(UrC===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;VE7===void 0&&(VE7=document.createElement("template"));var u=VE7;t.call(q,u.content.cloneNode(!0),F.content.firstChild);UrC=F}F=UrC;return F},{mode:2});var S0C;var hHv;var KbC;var B9v;var KS=function(){return _.x.apply(this,arguments)||this};
_.M(KS,_.x);KS.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.JJ.Object.defineProperties(KS.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)}}});
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.WDj.YtTappableItemBehavior),_.V("design:type",Object)],KS.prototype,"ytTappableItemBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],KS.prototype,"data",void 0);
_.C([_.O({reflectToAttribute:!0}),_.W("data.accessibilityText"),_.V("design:type",String),_.V("design:paramtypes",[])],KS.prototype,"ariaLabel",null);_.C([_.O({reflectToAttribute:!0}),_.W("data.style"),_.V("design:type",String),_.V("design:paramtypes",[])],KS.prototype,"vcOfferStyle",null);_.C([_.W("data.style","data.titleText"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],KS.prototype,"showTitleText",null);_.C([_.Vu({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],KS);
_.b(KS,"yt-vc-offer-renderer",function(){if(B9v===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;KbC===void 0&&(KbC=document.createElement("template"));var u=KbC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);B9v=F}F=B9v;return F},{mode:2});var Ba=function(){return _.x.apply(this,arguments)||this};
_.M(Ba,_.x);Ba.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}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Ba.prototype,"data",void 0);_.C([_.Vu({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Ba);
_.b(Ba,"yt-vc-offer-layout-renderer",function(){if(hHv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;S0C===void 0&&(S0C=document.createElement("template"));var u=S0C;t.call(q,u.content.cloneNode(!0),F.content.firstChild);hHv=F}F=hHv;return F},{mode:2});var LbC;var fGv;var aGQ;var jSs;var LS=function(){return _.x.apply(this,arguments)||this};
_.M(LS,_.x);LS.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}}}}}};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],LS.prototype,"data",void 0);_.C([_.Vu({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],LS);
_.b(LS,"yt-ypc-offers-modal-top-bar-renderer",function(){if(jSs===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;aGQ===void 0&&(aGQ=document.createElement("template"));var u=aGQ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);jSs=F}F=jSs;return F},{mode:2});var fS=function(){return _.x.apply(this,arguments)||this};
_.M(fS,_.x);fS.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"}}}}};
fS.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
fS.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var F=this.scrollable;F.attached&&typeof F.attached==="function"&&F.attached()};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.Ms("#scrollable"),_.V("design:type",Object)],fS.prototype,"scrollable",void 0);_.C([_.O(),_.V("design:type",Object)],fS.prototype,"data",void 0);_.C([_.Vu({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],fS);
_.b(fS,"yt-ypc-offers-modal-renderer",function(){if(fGv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;LbC===void 0&&(LbC=document.createElement("template"));var u=LbC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);fGv=F}F=fGv;return F},{mode:2});var cqw;var FKy;var aU=function(){return _.x.apply(this,arguments)||this};
_.M(aU,_.x);_.l=aU.prototype;_.l.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}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ep(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.l.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.ec(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.l.onYtPopupOpened_=function(F,q){(q==null?void 0:q.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.rY(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.l.onYtPopupClosed_=function(F,q){this.continueButtonTapped||q&&(q.canceled===!0||q.canceled===!1&&q.confirmed===!1)&&this.data.onDismissCommands&&_.rY(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestError_=function(F){this.set("showSpinner",!1);_.as(this.hostElement,F.detail.error.message)};
_.l.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.E("enable_ypc_spinners")?_.ec(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
aU.prototype.onYtServiceRequestError_=aU.prototype.onYtServiceRequestError_;aU.prototype.onYtPopupClosed_=aU.prototype.onYtPopupClosed_;aU.prototype.onYtPopupOpened_=aU.prototype.onYtPopupOpened_;aU.prototype.onYtServiceRequestCompleted_=aU.prototype.onYtServiceRequestCompleted_;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.O(),_.V("design:type",Object)],aU.prototype,"data",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],aU.prototype,"showSpinner",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],aU.prototype,"continueButtonTapped",void 0);_.C([_.O({value:function(){return this.onContinueTapped_.bind(this)}}),
_.V("design:type",Function)],aU.prototype,"bindOnContinueTapped_",void 0);_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],aU.prototype,"onYtServiceRequestCompleted_",null);_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],aU.prototype,"onYtPopupOpened_",null);
_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],aU.prototype,"onYtPopupClosed_",null);_.C([_.EB("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],aU.prototype,"onYtServiceRequestError_",null);_.C([_.Vu({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],aU);
_.b(aU,"yt-ypc-upgrade-dialog-renderer",function(){if(FKy===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;cqw===void 0&&(cqw=document.createElement("template"));var u=cqw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);FKy=F}F=FKy;return F},{mode:2});var qRJ;var t7v;var j_=function(){return _.x.apply(this,arguments)||this};
_.M(j_,_.x);j_.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
j_.prototype.computeHasButtons_=function(F){return!(!F.dismissButton&&!F.confirmButton)};
j_.prototype.computeStyle_=function(F){return F||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],j_.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],j_.prototype,"data",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],j_.prototype,"positionType",void 0);
_.C([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.V("design:type",Boolean)],j_.prototype,"hasButtons_",void 0);_.C([_.O({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.V("design:type",Boolean)],j_.prototype,"style_",void 0);_.C([_.Vu({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],j_);
_.b(j_,"yt-bubble-hint-renderer",function(){if(t7v===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;qRJ===void 0&&(qRJ=document.createElement("template"));var u=qRJ;t.call(q,u.content.cloneNode(!0),F.content.firstChild);t7v=F}F=t7v;return F},{mode:2});var ujw;var JLC;var ca=function(){var F=_.se.apply(this,arguments)||this;F.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return F};
_.M(ca,_.se);_.l=ca.prototype;_.l.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.l.attached=function(){var F=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){F.$.thumbnail.onShow();F.$["header-image"].onShow()})};
_.l.handleCheckBoxUpdateAction_=function(F){this.canShowCheckboxEnabledConfirmButton=F};
_.l.computeUseOverlayForSpinner_=function(F,q){return!!F&&q};
_.l.computeShowSpinner_=function(F,q){return F||!!q};
_.l.fireOnCloseActions_=function(){var F,q=_.X(((F=this.data)==null?void 0:F.onClosedActions)||[]);for(F=q.next();!F.done;F=q.next())this.ytRendererBehavior.resolveCommand(F.value)};
_.l.fireOnOpenCommands_=function(F){var q,t=(q=this.data)==null?void 0:q.onOpenCommands;if(t)for(F.stopImmediatePropagation(),F=_.X(t),q=F.next();!q.done;q=F.next())this.ytRendererBehavior.resolveCommand(q.value)};
_.l.fireOnDismissCommands_=function(F){var q,t=(q=this.data)==null?void 0:q.onDismissCommands;if(t)for(F.stopImmediatePropagation(),F=_.X(t),q=F.next();!q.done;q=F.next())this.ytRendererBehavior.resolveCommand(q.value)};
_.l.openPopupHandler_=function(F){F.detail==this&&this.fireOnOpenCommands_(F)};
_.l.closePopupHandler_=function(F,q){_.Zl(this,"yt-confirm-dialog-close-action",[q]);this.fireOnCloseActions_();(q&&q.canceled===!0||q&&q.canceled===!1&&q.confirmed===!1)&&this.fireOnDismissCommands_(F)};
_.l.onHeaderImageChanged_=function(){var F;((F=this.data)==null?0:F.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.l.computeHasHeaderImageWidth_=function(F){return F!=void 0};
_.l.computeHasLoadingMessage=function(F){return!!F};
_.l.onHeaderImageWidthChanged_=function(){var F,q=(F=this.data)==null?void 0:F.headerImageWidth;if(q){if(F=1.25*q*2+q,this.$.main.style.width=F+"px",q=this.$.scroller.firstElementChild)q.style.minWidth=F+"px"}else this.$.main.style.width="100%"};
_.l.onThumbnailChanged_=function(){var F;((F=this.data)==null?0:F.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.l.onYtNavigate_=function(F){F=_.uL(F);F instanceof Node&&_.Zj(this.$["confirm-button"]).contains(F)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.l.computePrimaryIsCancel_=function(F){return F};
_.l.computeIsCancelButtonHidden_=function(F){return F.skipCancelButton||!F.cancelButton};
_.l.computeIsCheckboxHidden_=function(F){return!F.checkbox};
_.l.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.l.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.l.onYtServiceRequestCompleted_=function(){var F;((F=this.data)==null?0:F.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.JJ.Object.defineProperties(ca,{template:{configurable:!0,enumerable:!0,get:function(){if(JLC===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;ujw===void 0&&(ujw=document.createElement("template"));var u=ujw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);JLC=F}F=JLC;return F}}});
ca.prototype.onYtServiceRequestCompleted_=ca.prototype.onYtServiceRequestCompleted_;ca.prototype.onYtServiceRequestSent_=ca.prototype.onYtServiceRequestSent_;ca.prototype.onThumbnailLoaded_=ca.prototype.onThumbnailLoaded_;ca.prototype.onYtNavigate_=ca.prototype.onYtNavigate_;ca.prototype.onThumbnailChanged_=ca.prototype.onThumbnailChanged_;ca.prototype.onHeaderImageWidthChanged_=ca.prototype.onHeaderImageWidthChanged_;ca.prototype.onHeaderImageChanged_=ca.prototype.onHeaderImageChanged_;
ca.prototype.closePopupHandler_=ca.prototype.closePopupHandler_;ca.prototype.openPopupHandler_=ca.prototype.openPopupHandler_;_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],ca.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],ca.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);
_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],ca.prototype,"ytEventForwardingBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],ca.prototype,"data",void 0);_.C([_.O({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.V("design:type",Boolean)],ca.prototype,"primaryIsCancel",void 0);_.C([_.O({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.V("design:type",Boolean)],ca.prototype,"isCancelButtonHidden",void 0);
_.C([_.O({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.V("design:type",Boolean)],ca.prototype,"isCheckboxHidden",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],ca.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.C([_.O({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.V("design:type",Boolean)],ca.prototype,"useOverlayForSpinner_",void 0);
_.C([_.O({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.V("design:type",Boolean)],ca.prototype,"showSpinner_",void 0);_.C([_.O({value:!1}),_.V("design:type",Boolean)],ca.prototype,"isActionInProgress_",void 0);_.C([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.V("design:type",Boolean)],ca.prototype,"hasHeaderImageWidth_",void 0);
_.C([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.V("design:type",Boolean)],ca.prototype,"hasLoadingMessage",void 0);_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],ca.prototype,"openPopupHandler_",null);_.C([_.EB("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],ca.prototype,"closePopupHandler_",null);
_.C([_.za("data.headerImage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ca.prototype,"onHeaderImageChanged_",null);_.C([_.za("data.headerImageWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ca.prototype,"onHeaderImageWidthChanged_",null);_.C([_.za("data.thumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ca.prototype,"onThumbnailChanged_",null);
_.C([_.EB("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ca.prototype,"onYtNavigate_",null);_.C([_.EB("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ca.prototype,"onThumbnailLoaded_",null);_.C([_.EB("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Kp]),_.V("design:returntype")],ca.prototype,"onYtServiceRequestSent_",null);
_.C([_.EB("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.qZ]),_.V("design:returntype")],ca.prototype,"onYtServiceRequestCompleted_",null);_.C([_.Vu({is:"yt-confirm-dialog-renderer",noInjection:!0})],ca);var sWv;var gLs;var Fg=function(){return _.x.apply(this,arguments)||this};
_.M(Fg,_.x);Fg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ep(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Fg.prototype.computeConfirmButton_=function(F){var q={text:F.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};F.confirmNavigationEndpoint?q.navigationEndpoint=F.confirmNavigationEndpoint:F.confirmServiceEndpoint&&(q.serviceEndpoint=F.confirmServiceEndpoint);return q};
Fg.prototype.computeShowTitle_=function(F){return!(F==null||!F.title)};
_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],Fg.prototype,"data",void 0);_.C([_.O({computed:"computeShowTitle_(data)"}),_.V("design:type",Boolean)],Fg.prototype,"showTitle",void 0);_.C([_.Vu({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Fg);
_.b(Fg,"yt-fancy-dismissible-dialog-renderer",function(){if(gLs===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;sWv===void 0&&(sWv=document.createElement("template"));var u=sWv;t.call(q,u.content.cloneNode(!0),F.content.firstChild);gLs=F}F=gLs;return F});var l55;var Xp3;var q2=function(){var F=_.x.apply(this,arguments)||this;F.spinnerActive=!1;return F};
_.M(q2,_.x);q2.prototype.created=function(){nih(2201)};
q2.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
q2.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
q2.prototype.onIronOverlayClosed=q2.prototype.onIronOverlayClosed;q2.prototype.onIronOverlayOpened=q2.prototype.onIronOverlayOpened;_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.u4),_.V("design:type",Object)],q2.prototype,"tpYtIronOverlayBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],q2.prototype,"data",void 0);_.C([_.O(),_.V("design:type",Object)],q2.prototype,"spinnerActive",void 0);
_.C([_.EB("iron-overlay-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],q2.prototype,"onIronOverlayOpened",null);_.C([_.EB("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],q2.prototype,"onIronOverlayClosed",null);_.C([_.Vu({is:"yt-loading-renderer",disableElementRegistration:!0})],q2);
_.b(q2,"yt-loading-renderer",function(){if(Xp3===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;l55===void 0&&(l55=document.createElement("template"));var u=l55;t.call(q,u.content.cloneNode(!0),F.content.firstChild);Xp3=F}F=Xp3;return F},{mode:2});var YRC;var ppv;var t2=function(){var F=_.x.apply(this,arguments)||this;F.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);F.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);F.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.M(t2,_.x);_.l=t2.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.l.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.l.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.l.openPopupHandler_=function(F){F.detail===this.hostElement&&this.hostElement.hidden&&_.ec(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.l.onDismissButtonTap_=function(){var F;this.closeOnDismissButton_.has(((F=this.data)==null?void 0:F.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ec(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.l.onAcceptButtonTap_=function(){var F;this.closeOnAcceptButton_.has(((F=this.data)==null?void 0:F.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ec(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.l.computeHasHeader_=function(F){return!!F.headerBackgroundImage};
_.l.computeLayoutStyle_=function(F){return F};
_.l.computePopupSize_=function(F){return F};
_.l.computeIconType_=function(F){return F.dialogIcon&&F.dialogIcon.iconType?F.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":F.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":F.dialogIcon.iconType:""};
_.l.computeIsLogo_=function(F){return!!F.dialogIcon&&!!F.dialogIcon.iconType&&(F.dialogIcon.iconType==="YOUTUBE_LOGO"||F.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||F.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.l.computeHasCustomLogo=function(F){return!(F==null||!F.headerForegroundImage)};
_.l.computeCustomLogo=function(F,q){if(F!=null&&F.headerForegroundImage)return F.headerForegroundImageDark?q?F.headerForegroundImageDark:F.headerForegroundImage:F.headerForegroundImage};
_.l.computeHeaderBackgroundImage=function(F,q){if(F!=null&&F.headerBackgroundImage)return q&&(F==null?0:F.headerBackgroundImageDark)?F.headerBackgroundImageDark:F.headerBackgroundImage};
_.l.shouldShowIconContainer=function(F,q){return F&&!q};
_.l.shouldShowNonYouTubeIcon=function(F,q){return!F&&!q};
_.l.getLogoImageId=function(F){var q,t,u;return(F=(q=this.computeCustomLogo(F,this.isDarkTheme))==null?void 0:(t=q.thumbnails)==null?void 0:(u=t[0])==null?void 0:u.height)&&F%31===0?"custom-logo-with-padding":"custom-logo"};
t2.prototype.openPopupHandler_=t2.prototype.openPopupHandler_;t2.prototype.dataChanged_=t2.prototype.dataChanged_;_.C([_.D(_.TD.YtRendererstamperBehavior),_.V("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.C([_.O(),_.V("design:type",Boolean)],t2.prototype,"isDarkTheme",void 0);
_.C([_.O({computed:"computeCustomLogo(data, isDarkTheme)"}),_.V("design:type",Object)],t2.prototype,"customLogo",void 0);_.C([_.O({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.V("design:type",Object)],t2.prototype,"headerBackgroundImage",void 0);_.C([_.O(),_.V("design:type",Object)],t2.prototype,"data",void 0);_.C([_.O({computed:"computeHasHeader_(data)"}),_.V("design:type",Boolean)],t2.prototype,"hasHeader",void 0);
_.C([_.O({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.V("design:type",Object)],t2.prototype,"layoutStyle",void 0);_.C([_.O({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.V("design:type",Object)],t2.prototype,"popupSize",void 0);_.C([_.O({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],t2.prototype,"hasLogo",void 0);
_.C([_.O({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],t2.prototype,"hasCustomLogo",void 0);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t2.prototype,"dataChanged_",null);_.C([_.EB("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],t2.prototype,"openPopupHandler_",null);
_.C([_.Vu({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],t2);
_.b(t2,"yt-upsell-dialog-renderer",function(){if(ppv===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;YRC===void 0&&(YRC=document.createElement("template"));var u=YRC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);ppv=F}F=ppv;return F},{mode:2});var QW9=_.ld(function(F){return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.Z(_.R,{cond:F.title,then:function(q){return _.Z("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},q)}}))},"wh"),eWC=_.ld(function(F){return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.Z(_.Tl,{data:F.closeButton},{buttonViewModel:function(q){return _.Z("div",null,_.Z(_.AB,{data:q.data}))}}))},"xh"),Zo3=_.ld(function(F){var q=F.data;
return _.Z(_.ln,null,_.Z("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.Z("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.Z(_.R,{cond:function(){return!!q().image&&!!q().title},
then:function(){return _.Z(_.sc,{data:function(){return q().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.Z("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.Z(_.R,{cond:function(){return q().title},
then:function(t){return _.Z("h3",{class:"miniAppGameInfoDialogViewModelTitle"},t)}}),_.Z(_.R,{cond:function(){return q().primaryGenre},
then:function(t){return _.Z("span",{class:"miniAppGameInfoDialogViewModelGenre"},t)}}))),_.Z(_.R,{cond:function(){var t=q().description;
return t&&t.length<=150},
then:function(){return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.Z("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return q().description}))}}))},"yh"),RWJ=_.ld(function(F){F=F.infoRows;
var q=_.sV().resolve(_.eE),t=_.E("enable_displaying_ppn");return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.Z(_.Gn,{each:F},function(u){return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.Z(_.R,{cond:function(){return u.label},
then:function(J){return _.Z("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},J)}}),_.Z(_.R,{cond:function(){return u.attributedLabel},
then:function(J){return _.Z("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.Z(_.rv,{text:J,noPreWrap:!0}))}}),_.Z(_.R,{cond:function(){return u.value},
then:function(J){return _.Z("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},J)}}),_.Z(_.R,{cond:function(){return u.attributedValue},
then:function(J){return _.Z("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.Z(_.rv,{text:J,noPreWrap:!0}))}}))}),_.Z(_.R,{cond:function(){return t&&q.clientData.has("post_play_nonce")},
then:function(){return _.Z("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.Z("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.Z("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},q.getData("post_play_nonce")))}}))},"zh"),rLC=_.ld(function(F){var q=F.data;
return _.Z("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.Z(QW9,{title:function(){return q().dialogTitle}}),_.Z(Zo3,{data:q}),_.Z(_.R,{cond:function(){return q().infoRow},
then:function(t){return _.Z(RWJ,{infoRows:t})}}),_.Z(eWC,{closeButton:function(){return q().closeButton}}))},"Ah");
rLC.idomCompat=!0;_.ei(rLC,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=F.data;return _.Z("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.Z(_.sc,{data:function(){return q().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.Z("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.Z("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.Z(_.R,{cond:function(){var t=q().ytLogo;return t?t.iconType:null},
then:function(t){return _.Z(_.Tq,{icon:t,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.Z("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.Z("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.Z(_.rv,{text:function(){return q().title}})),_.Z("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.Z(_.rv,{text:function(){return q().body}})),_.Z("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.Z(_.rv,{text:function(){return q().verifyStateText}}))),
_.Z("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.Z("div",null,_.Z(_.Tl,{data:function(){return q().dismissButton}},{buttonViewModel:_.AB})),_.Z("div",null,_.Z(_.Tl,{data:function(){return q().linkParentButton}},{buttonViewModel:_.AB})))))},"Bh"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.NH}});var NW3=_.ld(function(F){var q=F.data;F=_.Jv(function(){return q().agreements},[]);
return _.Z("installment-agreements-view-model",{class:_.Ec("ytInstallmentAgreementsViewModelHost")},_.Z(_.Gn,{each:F},function(t){return _.Z("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.Z("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.Z(_.rv,{text:t.label})),_.Z("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.Z(_.Tl,{data:function(){return t.openButton}},{buttonViewModel:_.AB})))}))},"Ch");
NW3.idomCompat=!0;var wpQ=_.ld(function(F){return _.Z("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.Z(_.rv,{text:function(){return F.data().inviteMessage}})),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.Z(_.rv,{text:function(){return F.data().attributedAccountSectionHeaderText}})),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.Z(_.Tl,{data:function(){return F.data().accountAvatar}},{avatarViewModel:_.FJ}),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.Z(_.rv,{text:function(){return F.data().accountName}}),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.Z(_.rv,{text:function(){return F.data().handle}}))),_.Z(_.Tl,{data:function(){return F.data().trailingButton}},{buttonViewModel:_.AB})),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.Z(_.rv,{text:function(){return F.data().termsOfService}})))},"Dh");var io9=_.ld(function(F){var q=_.X(_.np(function(){var h,c;return((h=F.data().createPlaylistDialogFormSchema)==null?0:(c=h.initialValues)==null?0:c.title)?F.data().createPlaylistDialogFormSchema.initialValues.title:""})),t=q.next().value,u=q.next().value;
q=_.X(_.np(function(){F.data();return!1}));
var J=q.next().value,g=q.next().value;q=_.X(_.np(function(){F.data();return!1}));
var Y=q.next().value,Q=q.next().value;q=_.X(_.np(function(){var h,c;return(h=F.data().createPlaylistDialogFormSchema)==null?void 0:(c=h.initialValues)==null?void 0:c.visibility}));
var e=q.next().value,r=q.next().value;q=_.X(_.np(function(){F.data();return!1}));
var N=q.next().value,w=q.next().value;q=_.X(_.np(function(){var h,c;return(h=F.data().createPlaylistDialogFormSchema)==null?void 0:(c=h.initialValues)==null?void 0:c.isCollaborative}));
var k=q.next().value,z=q.next().value,T=_.FG("div");_.AO(function(){var h=T.value.querySelector("textarea");h&&(h.value=t())},"sgS9sc");
_.v_(function(){var h;_.mM9((h=F.data().createPlaylistDialogFormSchema)==null?void 0:h.id,{onSubmit:function(){var c=t();var rf=e(),Zv=k(),kP=F.data();c={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:c,privacyStatus:rf,videoIds:kP.videoIds,sourcePlaylistId:kP.sourcePlaylistId,params:Zv?kP.createPlaylistParamsCollaborationEnabled:kP.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.sV().resolve(_.gN).resolveCommand(c)},
isValid:function(){return J()&&!Y()&&!N()}})});
var P=function(h){if(h!==void 0&&(u(h),!J()&&h.length>0&&g(!0),J())){var c=OpD(F.data());if(c){var rf=c.minLength;c=c.maxLength;rf&&h.length<rf?Q(!0):c&&h.length>c?Q(!0):Q(!1)}}},v=function(){var h=!(!k()||e()!=="PRIVATE");
w(h)},H=function(h){h!==void 0&&(r(h),v())},d=function(){if(N())return xov(F.data())},a=function(){z(!k());
v()},S=function(){return{validate:function(h){if(J()){var c=OpD(F.data());
if(c){var rf=c.minLength;c=c.translations;if(rf&&h.length<rf)return c==null?void 0:c.minLengthErrorMessage}}}}},K=function(){var h=OpD(F.data()),c=h==null?void 0:h.maxLength,rf;
h=h==null?void 0:(rf=h.translations)==null?void 0:rf.maxLengthErrorMessage;if(c&&h)return{maxChars:c,errorMessage:h}};
return _.Z("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.Z("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:T},_.Z(_.Tl,{data:function(){return F.data().playlistTitle}},{textFormFieldViewModel:function(h){return _.Z(_.zf9,{data:h.data,
text:t,onInput:P,validation:S,characterLimit:K})},
textFieldViewModel:function(h){return _.Z(_.EFv,{data:h.data,text:t,onInput:P,validation:S,characterLimit:K})}})),_.Z("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.Z(_.Tl,{data:function(){return F.data().playlistVisibility}},{dropdownViewModel:function(h){return _.Z(_.xLh,{data:h.data,
onSelected:H,error:d})}})),_.Z(_.R,{cond:function(){return!!F.data().playlistCollaborate},
then:function(){return _.Z("div",null,_.Z(_.Tl,{data:function(){return F.data().playlistCollaborate}},{switchListItemViewModel:function(h){return _.Z(_.Tyv,{data:h.data,
onTap:a})}}))}}))},"Eh");var koJ=_.ld(function(F){var q=F.data;return _.Z("upsell-offer-table-cell-content-view-model",null,_.Z("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.Z(_.OK,null,_.Z(_.DA,{when:function(){return q().iconType}},function(){return _.Z("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.Z(_.Tq,{icon:function(){return q().iconType.toString()}}))}),_.Z(_.DA,{when:function(){return q().title}},function(){return _.Z(_.rv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return q().title}})}),_.Z(_.DA,{when:function(){return q().subtitle}},function(){return _.Z(_.rv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return q().subtitle}})}),_.Z(_.DA,{when:function(){return q().infoText}},function(){return _.Z(_.rv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return q().infoText}})}),_.Z(_.DA,{when:function(){return q().featureDescription}},function(){return _.Z(_.rv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return q().featureDescription}})}),_.Z(_.DA,{when:function(){return q().note}},function(){return _.Z(_.rv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return q().note}})}))))},"Fh");
koJ.idomCompat=!0;var EL3=_.ld(function(F){var q=F.data;return _.Z("upsell-offer-table-cell-view-model",null,_.Z("div",{class:_.Ec("ytUpsellOfferTableCellViewModelCellWrapper",function(){return q().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.Z(_.Tl,{data:function(){return q().contents}},{upsellOfferTableCellContentViewModel:koJ})))},"Gh");
EL3.idomCompat=!0;var zWQ=_.ld(function(F){var q=F.data;var t=F.upsellTableIsFirstRow;var u=function(){return(t==null?0:t())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},J=function(){return(t==null?0:t())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.Z("ytm-upsell-offer-table-row-view-model",null,_.Z("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.Z(_.Tl,{data:function(){return q().rowHeaderCell}},{upsellOfferTableCellViewModel:function(g){return _.Z("div",{class:u},_.Z(EL3,{data:g.data}))}}),_.Z(_.Tl,{data:function(){return q().contentCells}},{upsellOfferTableCellViewModel:function(g){return _.Z("div",{class:J},_.Z(EL3,{data:g.data}))}})))},"Hh");
zWQ.idomCompat=!0;var oLy=_.ld(function(F){var q=F.data;return _.Z("ytm-upsell-offer-table-view-model",null,_.Z("div",{class:"ytUpsellOfferTableViewModelHost"},_.Z("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.Z(_.Tl,{data:function(){return q().rows}},{upsellOfferTableRowViewModel:function(t,u){return _.Z(zWQ,{data:t.data,
upsellTableIsFirstRow:function(){return u()===0}})}}))))},"Ih");
oLy.idomCompat=!0;var nL9=_.ld(function(F){var q=_.Jv(F.noPadding,!1),t=function(){var g,Y;return(Y=(g=F.data().logo.accessibilityData)==null?void 0:g.label)!=null?Y:""},u=function(){return F.data().offerTable},J={};
return _.Z("upsell-view-model",{class:_.Ec("ytUpsellViewModelHost",(J.ytUpsellViewModelHostNoPadding=function(){return q()},J.ytUpsellViewModelHostWide=function(){return u()!==void 0},J))},_.Z("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.Z(_.R,{cond:function(){return _.KH(F.data().logo)},
then:function(g){return _.Z(_.sc,{data:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:t})}})),_.Z("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.Z(_.rv,{text:function(){return F.data().title}})),_.Z("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.Z(_.Gn,{each:function(){var g;
return(g=F.data().subtitles)!=null?g:[]},
keyBy:"INDEX"},function(g){var Y={};return _.Z("div",{class:_.Ec("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(Y.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return u()!==void 0},Y))},_.Z(_.rv,{text:g}))})),_.Z("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.Z(_.Gn,{each:function(){var g;
return(g=F.data().benefitInfos)!=null?g:[]},
keyBy:"INDEX"},function(g){return _.Z(_.R,{cond:function(){return g().info},
then:function(Y){return _.Z("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.Z(_.Tq,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.Z(_.rv,{text:Y}))}})})),_.Z(_.R,{cond:function(){return u()!==void 0},
then:function(){return _.Z("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.Z(oLy,{data:u}))}}),_.Z("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.Z(_.Gn,{each:function(){var g;
return(g=F.data().legalInfos)!=null?g:[]},
keyBy:"INDEX"},function(g){var Y={};return _.Z("div",{class:_.Ec("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(Y.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return u()!==void 0},Y))},_.Z(_.rv,{text:g}))})))},"Jh");var M7h=_.ld(function(F){var q=F.data;F={};F=(F.ytMiniAppScoreChallengeViewModelScoreRadial=!0,F.ytMiniAppScoreChallengeViewModelDarkScoreRadial=ATs(),F);return _.Z("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.Z("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return q().title}),_.Z("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return q().subtitle}),_.Z("div",{class:_.HD(F)},_.Z("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return q().score})),_.Z("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return q().prompt}))},"Kh");var TW7=function(){this.store=_.tv();this.formId=""};
TW7.prototype.onInit=function(F){F.formId&&(this.formId=F.formId,this.store.dispatch(_.pj({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var Go9=_.ld(function(F){function q(Q){if(Q&&(Q=_.n(Q,_.xC)))return Object.assign({},Q,{isSelected:g()})}
var t=_.X(_.np(function(){var Q,e;return(e=(Q=_.n(F.data().option,_.xC))==null?void 0:Q.isSelected)!=null?e:!1})),u=t.next().value,J=t.next().value,g=u;
_.v_(function(){var Q;_.mM9((Q=F.data().formSchema)==null?void 0:Q.id,{onSubmit:function(){var e=_.sV().resolve(_.gN),r=!!F.data().selectedCommand,N=!!F.data().unselectedCommand;if(g()){if(r)var w=F.data().selectedCommand}else N&&(w=F.data().unselectedCommand);w=_.Sg(w);q(F.data().option)&&!w?(e="",!r&&N?e="selected ":r&&!N&&(e="unselected "),r=new _.D0("No "+e+"command found for SelectionListItemFormViewModel"),_.mH(r)):w&&e.resolveCommand(w)},
isValid:function(){return!0}})});
var Y=function(){J(!g())};
_.vj(function(){var Q,e,r=(Q=F.data())==null?void 0:(e=Q.formSchema)==null?void 0:e.id;r&&_.m6M()().delete(r)});
return _.Z("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.Z("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.Z(_.rv,{text:function(){return F.data().paragraph}})),_.Z(_.R,{cond:function(){return q(F.data().option)},
then:function(Q){return _.Z(_.uE,{data:Q,isCompact:!0,hideSelectionTextChevron:!0,onTap:Y,disableHorizontalPadding:!0})}}))},"Lh");var Dev=_.ld(function(F){var q=F.data;var t=F.disablePadding;var u=F.className;var J=_.FG("yt-dialog-header-view-model"),g=function(){var Q=q().imageBanner;a:switch(q().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var e="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:e="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:Q,style:e,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},Y=function(){return q().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.v_(function(){var Q=function(){_.ec(J.value,"yt-refit-popups-action")},e;
(e=J.value)==null||e.addEventListener("image-loaded",Q);_.vj(function(){var r;(r=J.value)==null||r.removeEventListener("image-loaded",Q)})});
F={};return _.Z("yt-dialog-header-view-model",{el:J,class:_.Ec(u,(F.ytDialogHeaderViewModelHost=!0,F.ytDialogHeaderViewModelHostDisablePadding=t,F))},_.Z(_.R,{cond:function(){return q().imageBanner},
then:function(){var Q={};return _.Z("div",{class:_.Ec(u,(Q.ytDialogHeaderViewModelBanner=!0,Q.ytDialogHeaderViewModelBannerFullBleed=Y,Q)),style:_.Mo({"max-height":function(){return q().assetContainerMaxHeight!==void 0?q().assetContainerMaxHeight+"px":void 0}})},_.Z(_.Gj,{data:g,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.Z(_.R,{cond:function(){return q().headerBlock},
then:function(){return _.Z("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.Z(_.Tl,{data:function(){return q().headerBlock}},{contentPreviewImageViewModel:function(Q){return _.Z(_.Gj,{data:Q.data,
notifyOnLoaded:!0})}}))}}),_.Z(_.R,{cond:function(){return q().customBanner},
then:function(Q){return _.Z("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.Z(_.Tl,{data:Q},{avatarStackViewModel:_.tP}))}}),_.Z(_.R,{cond:function(){return q().headline},
then:function(Q){return _.Z("h2",null,_.Z(_.rv,{text:Q,className:"ytDialogHeaderViewModelText"}))}}))},"Mh");
Dev.idomCompat=!0;var WKC=_.ld(function(F){var q=_.vKt(function(){return F.data().formId}),t=q.submitForm,u=q.isValid;
return _.Z("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.Z(_.Tl,{data:function(){return F.data().panelFooter}},{panelFooterViewModel:function(J){return _.Z(_.wG,{data:J.data,
disablePadding:!0,disablePrimaryButton:function(){return!u()},
onClickPrimaryButton:function(){t()}})}}))},"Nh");var Ooy=_.ld(function(F){var q=function(){var t,u;return(u=(t=_.n(F.data().rendererContext,_.vX))==null?void 0:t.label)!=null?u:""};
return _.Z("yt-dialog-image-content-view-model",{class:_.Ec("ytDialogImageContentViewModelHost",F.className)},_.Z(_.R,{cond:function(){return _.KH(F.data().image)},
then:function(t){var u={};return _.Z("div",{style:_.Mo((u.width=(0,_.cF)(function(){var J;return(J=F.data().imageMaxWidth)!=null?J:""}),u)),
class:"ytDialogImageContentViewModelImage"},_.Z(_.sc,{data:t,alt:q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.Z(_.rv,{text:function(){return F.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Oh");var ALy=_.ld(function(F){var q=_.sk(F,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),t=q.elRefCallback;F=q.iconWiz;var u=q.assetWiz,J=q.assetType,g=q.titleWiz,Y=q.leadingActionHeaderWiz,Q=q.trailingActionHeaderWiz,e=q.headerPosition,r=q.contentWiz,N=q.buttonLayout,w=q.buttonStyle,k=q.primaryButtonWiz,z=q.secondaryButtonWiz,T=q.contentAlignment,P=q.isFullscreen,v=q.width,H=q.maxHeight,d=q.isHeaderWizDefined,
a=q.headerWiz,S=q.isFooterWizDefined,K=q.footerWiz;q=_.FG("dialog-layout",function(m$){t==null||t(m$)});
var h=u?function(){return u({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,c=k?function(){var m$={};
return k({buttonOverrides:function(){return{style:(w==null?void 0:w())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Ec((m$["yt-spec-dialog-layout__dialog-layout-button"]=!0,m$["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(N==null?void 0:N())===0||(N==null?void 0:N())===2},m$))})}:void 0,rf=z?function(){var m$={};
return z({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Ec((m$["yt-spec-dialog-layout__dialog-layout-button"]=!0,m$["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(N==null?void 0:N())===0||(N==null?void 0:N())===2},m$))})}:void 0,Zv=function(){return(!!g||!!Y||!!Q)&&e()===0},kP={},n3={},o_={},df={};
return _.Z("dialog-layout",{el:q,class:_.Ec((kP["yt-spec-dialog-layout"]=!0,kP["yt-spec-dialog-layout--dialog-layout-fullscreen"]=P,kP["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!P()},kP["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return H()===1},kP["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(J==null?void 0:J())===1},kP)),
style:function(){return(v==null?void 0:v())!==void 0?"width: "+v+"px;":""}},F?_.Z("div",{class:_.Ec((n3["yt-spec-dialog-layout__dialog-layout-icon"]=!0,n3["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!u&&e()===1},n3["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return T()===1},n3))},_.Z(F,null)):null,_.Z(_.R,{cond:d,
then:function(){return a?_.Z("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.Z(a,null)):null},
else:function(){return _.Z(_.ln,null,_.Z(_.R,{cond:Zv,then:function(){return _.Z(Pyy,{contentAlignment:T,LeadingActionHeader:Y,TrailingActionHeader:Q,Title:g,isAboveAsset:!!h})}}),h?_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.Z(h,null)):null)}}),_.Z("div",{class:_.Ec((o_["yt-spec-dialog-layout__dialog-layout-container"]=!0,o_["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(T==null?void 0:T())===1},o_["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!g&&!(a&&d())||!!h&&(e==null?void 0:e())===0},o_))},_.Z(_.R,{cond:function(){return g&&!a&&(e==null?void 0:e())===1},
then:function(){return _.Z(Pyy,{contentAlignment:T,LeadingActionHeader:Y,TrailingActionHeader:Q,Title:g,isAboveAsset:!1})}}),r?_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.Z(r,null))):null,_.Z(_.R,{cond:S,
then:function(){return K?_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.Z(K,null)):null}}),c||rf?_.Z(xeJ,{footerClasses:_.Ec((df["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,df["yt-spec-dialog-layout__dialog-layout-footer"]=!0,df["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(N==null?void 0:N())===2},df["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(N==null?void 0:N())===1},df)),
PrimaryButton:c,SecondaryButton:rf}):null))},"Ph"),Pyy=_.ld(function(F){var q=_.sk(F,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),t=q.contentAlignment,u=q.LeadingActionHeader;F=q.Title;var J=q.TrailingActionHeader,g=q.isAboveAsset,Y=q.enableLeadingActionHeader;q={};return _.Z("div",{class:_.Ec((q["yt-spec-dialog-layout__dialog-header-container"]=!0,q["yt-spec-dialog-layout__dialog-header"]=!0,q["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=g,q["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(t==null?void 0:t())===1&&Y()},q))},_.Z(_.R,{cond:function(){return Y()},
then:function(){return u?_.Z("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.Z(u,null)):null}}),F?_.Z("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.Z(F,null)):null,J?_.Z("div",null,_.Z(J,null)):null)},"Qh"),xeJ=_.ld(function(F){var q=F.footerClasses;
var t=F.PrimaryButton;F=F.SecondaryButton;return _.Z("div",{class:q},F?_.Z(F,null):null,t?_.Z(t,null):null)},"Rh");var vLv=_.ld(function(F){var q=F.data;return _.Z("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.Z("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.Z(_.Tl,{data:function(){return q().avatar}},{avatarViewModel:_.FJ})),_.Z("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.Z(_.rv,{text:function(){return q().title}})),_.Z(_.rv,{text:function(){return q().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Sh");var I57=_.ld(function(F){var q=F.data;return _.Z("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.Z("div",{class:"ytAccessConfirmationViewModelContent"},_.Z(_.Tl,{data:function(){var t;return(t=q().avatar)!=null?t:q().dualAvatar}},{dualAvatarViewModel:function(t){return _.Z(_.Zcx,{data:t.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(t){return _.Z(_.qi,{data:t.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.Z("h2",{class:"ytAccessConfirmationViewModelTitle"},_.Z(_.rv,{text:function(){return q().title}})),_.Z(_.rv,{text:function(){return q().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Th");var Hov=_.ld(function(F){var q=F.data;var t=void 0;F=_.X(_.np(function(){var r;return((r=_.n(q().content,_.dE))==null?void 0:r.defaultSelectedKey)||""}));
var u=F.next().value,J=F.next().value,g,Y=function(){J("");var r;(r=t)!=null&&r.store.dispatch(_.pj({type:"RESET_COMMAND_MAP"}))};
_.v_(function(){t=new TW7;window.addEventListener("yt-popup-closed",Y)});
_.AO(function(){if(t&&g!==q().formId&&(t.onInit(q()),(g=q().formId)&&u())){var r=t,N={key:u()};N.command&&r.store.dispatch(G3y(g,N.command))}},"c2n8Gf");
_.vj(function(){window.removeEventListener("yt-popup-closed",Y)});
var Q=function(r,N,w){N.key&&w&&N.key!==u()&&(J(N.key),t&&N.command&&t.store.dispatch(G3y(w,N.command)))},e=function(){if(_.n(q().content,_.dE))return!(u==null?0:u())};
return _.Z("yt-dialog-view-model",{class:_.Ec("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.Z(ALy,{headerWiz:function(){return _.Z("span",{skip:!0},_.Z(_.Tl,{data:function(){return q().header}},{dialogHeaderViewModel:function(r){return _.Z(Dev,{data:r.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!q().header},
contentWiz:function(){return _.Z("span",{skip:!0},_.Z(_.Tl,{data:function(){return q().customContent?q().customContent:q().content}},{basicContentViewModel:_.nnQ,
createPlaylistDialogFormViewModel:io9,collaborativePlaylistInviteMessageViewModel:wpQ,miniAppScoreChallengeViewModel:M7h,radioButtonGroupViewModel:function(r){var N=r.data;return _.Z(_.NZ9,{data:N,selectedKey:u,onSelected:Q,groupName:function(){return N().formId}})},
selectionListItemFormViewModel:Go9,upsellViewModel:function(r){return _.Z(nL9,{data:r.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:vLv,installmentAgreementsViewModel:NW3,accessConfirmationViewModel:I57,listViewModel:function(r){return _.Z(_.v2j,{data:r.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:Ooy}))},
footerWiz:function(){return _.Z("span",{skip:!0},_.Z(_.Tl,{data:function(){return q().footer}},{panelFooterViewModel:function(r){return _.Z(_.wG,{data:r.data,
disablePadding:!0,disablePrimaryButton:e})},
formPanelFooterViewModel:WKC,formFooterViewModel:function(r){return _.Z(_.Q0v,{data:r.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!q().footer}}))},"Uh");
Hov.idomCompat=!0;_.ei(Hov,"yt-dialog-view-model",{props:{data:_.NH},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var me5=_.ld(function(F){var q=F.data;F={};return _.Z("yt-panel-header-view-model",{class:_.Ec("ytPanelHeaderViewModelHost",(F.ytPanelHeaderViewModelHostHideDivider=function(){return!!q().shouldHideDivider},F.ytPanelHeaderViewModelHostCompact=function(){return!!q().subtitle},F))},_.Z("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.Z(_.R,{cond:function(){return q().title},
then:function(t){return _.Z(_.rv,{text:t,className:"ytPanelHeaderViewModelTitle"})}}),_.Z(_.R,{cond:function(){return q().subtitle},
then:function(t){return _.Z(_.rv,{text:t,className:"ytPanelHeaderViewModelSubtitle"})}})),_.Z("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.Z(_.Tl,{data:function(){return q().trailingButtons}},{buttonViewModel:function(t){return _.Z(_.AB,{data:t.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Vh");
me5.idomCompat=!0;var $e5=_.ld(function(F){var q=_.zq(function(g){var Y;if((Y=F.skipContentClick)==null?0:Y.call(F))return!1;F.onContentWrapperClick(g);return!0}),t,u,J;
return _.Z("div",{class:_.Ec("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return F.isAnimating()?"transform: translateY("+F.currentY()+"px);transition: 0.2s":""}},(t=F.header)==null?void 0:t.call(F),_.Z("div",{id:F.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Mo({"max-height":(0,_.cF)(F.maxHeightForContentWrapper)}),"on:scroll":moy(F.onScroll),"on:touchmove":moy(function(g){return void g.stopPropagation()})},_.Z("div",{el:{onRender:F.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":q},(u=F.body)==null?void 0:u.call(F))),(J=F.footer)==null?void 0:J.call(F))},"Wh");
$e5.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var bo3=_.ld(function(F){var q=_.Jv(F.leadingLabel),t=_.Jv(F.trailingLabel),u=_.Jv(F.footerButtonType),J=function(){return q()||t()||F.hasPrimaryButton()||F.hasSecondaryButton()},g={},Y=_.Ec("yt-spec-bottom-sheet-layout__primary-button",(g["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return u()===0&&F.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return u()===1&&F.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return u()===2&&F.hasPrimaryButton()},g["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return u()===3&&F.hasPrimaryButton()},g));
g={};var Q=_.Ec("yt-spec-bottom-sheet-layout__secondary-button",(g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return u()===1&&F.hasSecondaryButton()},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return u()===2&&F.hasSecondaryButton()},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return u()===3&&F.hasPrimaryButton()},g));
return _.Z(_.R,{cond:F.hasFooterOverride,then:function(){var e;return _.Z(_.ln,null,(e=F.footerOverride)==null?void 0:e.call(F))},
else:function(){return _.Z(_.R,{cond:J,then:function(){return _.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.Z(_.R,{cond:function(){return q()||t()},
then:function(){var e={};return _.Z("div",{class:_.Ec("yt-spec-bottom-sheet-layout__footer-label-wrapper",(e["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!F.hasPrimaryButton()},e))},_.Z(_.R,{cond:q,
then:function(){return _.Z("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},q)}}),_.Z(_.R,{cond:t,
then:function(){return _.Z("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},t)}}))}}),_.Z(_.R,{cond:function(){return F.hasPrimaryButton()||F.hasSecondaryButton()},
then:function(){var e={};return _.Z("div",{class:_.Ec("yt-spec-bottom-sheet-layout__footer-button-wrapper",(e["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.GXC,e))},_.Z(_.R,{cond:function(){return F.hasSecondaryButton()&&u()!==0},
then:function(){var r;return _.Z("div",{class:Q},(r=F.secondaryButton)==null?void 0:r.call(F))}}),_.Z(_.R,{cond:F.hasPrimaryButton,
then:function(){var r;return _.Z("div",{class:Y},(r=F.primaryButton)==null?void 0:r.call(F))}}))}}))}})}})},"Xh");
bo3.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var yLQ=_.ld(function(F){var q=_.Jv(F.title),t=_.Jv(F.subtitle);return _.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:F.headerId,"on:touchstart":_.zq(function(u){var J;(J=F.touchstart)==null||J.call(F,u);return!1}),
"on:touchmove":_.zq(function(u){var J;(J=F.touchmove)==null||J.call(F,u);return!1}),
"on:touchend":_.zq(function(u){var J;(J=F.touchend)==null||J.call(F,u);return!1})},_.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.Z(_.R,{cond:F.hasHeaderOverride,
then:function(){var u;return _.Z(_.ln,null,(u=F.headerOverride)==null?void 0:u.call(F))},
else:function(){var u={};return _.Z("div",{class:_.Ec((u["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,u["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=q,u))},_.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.Z(_.R,{cond:q,then:function(){return _.Z(_.ln,null,_.Z("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},q),_.Z(_.R,{cond:t,then:function(){return _.Z("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
t)}}))}})),_.Z(_.R,{cond:function(){return q()&&F.hasActionHeader()},
then:function(){var J;return _.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(J=F.actionHeader)==null?void 0:J.call(F))}}))}}))},"Yh");
yLQ.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.ld(function(F){function q(h){if(!H&&typeof MutationObserver!=="undefined"){var c={childList:!0};"MutationObserver"in window&&(H=new MutationObserver(t.bind(void 0,h)),H.observe(h,c))}}
function t(h){typeof H!=="undefined"&&(d["content-wrapper"]===void 0&&(d["content-wrapper"]=h.children[0].clientHeight),z(d["content-wrapper"]),k()>T()||P(k()))}
function u(){w(window.innerHeight);k()>T()||P(k());a.isFullScreen[0]()&&k()>T()?S().dispatch("Snap To Full Screen",{maxHeight:v()}):S().dispatch("Snap To Neutral Position",{maxHeight:T()})}
function J(h){document.body.style.overscrollBehavior="none";h.preventDefault();S().dispatch("Touch Start",{event:h})}
function g(h){h.preventDefault();S().dispatch("Touch Move",{event:h,contentScrollable:k()>T(),fullContentWrapperHeight:v(),contentWrapperHeight:T(),contentHeightMap:d,contentWrapperId:"content-wrapper",header:bp9(F),footer:bp9(F)})}
function Y(){document.body.style.overscrollBehavior="";a.isFullScreen[0]()?a.currentY[0]()>=60?S().dispatch("Snap To Neutral Position",{maxHeight:T()}):S().dispatch("Snap To Full Screen",{maxHeight:v()}):a.currentY[0]()>=60?Q():a.currentY[0]()<=-60&&k()>T()?S().dispatch("Snap To Full Screen",{maxHeight:v()}):S().dispatch("Snap To Neutral Position",{maxHeight:T()})}
function Q(){S().dispatch("Close Sheet",{clientHeight:N(),maxHeight:0});setTimeout(function(){$oh()},250)}
var e=_.X(_.N3(window.innerHeight,void 0,"NWeFS")),r=e.next().value;e=e.next().value;var N=r,w=e;e=_.X(_.N3(0,void 0,"oxfm4"));r=e.next().value;e=e.next().value;var k=r,z=e;e=_.X(_.np(function(){var h=bp9(F);return.6*N()-vm9(h)-IRQ(h)}));
r=e.next().value;e=e.next().value;var T=r,P=e,v=function(){var h=bp9(F);return N()-vm9(h)-IRQ(h)-24-24},H=null,d={},a={initialY:_.N3(0,void 0,"cYBE5c"),
currentY:_.N3(0,void 0,"RndqHc"),isAnimating:_.N3(!1,void 0,"vO9DVd"),isFullScreen:_.N3(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.np(T)},S=function(){var h=null;return function(){if(!h){var c={initialY:a.initialY[0](),currentY:a.currentY[0](),isAnimating:a.isAnimating[0](),isFullScreen:a.isFullScreen[0](),maxHeightForContentWrapper:a.maxHeightForContentWrapper[0]()};h=Hp9(c)}return h}}();
_.v_(function(){window.addEventListener("resize",u);S().subscribe(function(h){a.initialY[1](h.initialY);a.currentY[1](h.currentY);a.isAnimating[1](h.isAnimating);a.isFullScreen[1](h.isFullScreen);a.maxHeightForContentWrapper[1](h.maxHeightForContentWrapper)})});
_.vj(function(){window.removeEventListener("resize",u);H&&(H.disconnect(),H=null)});
var K=_.Ec({"bottom-sheet-content-without-icon":function(){var h;return!((h=F.shouldShowIcons)==null?0:h.call(F))}});
return _.Z("bottom-sheet-layout",null,_.Z($e5,{contentWrapperId:"content-wrapper",isAnimating:function(){return a.isAnimating[0]()},
currentY:function(){return a.currentY[0]()},
maxHeightForContentWrapper:function(){return a.maxHeightForContentWrapper[0]()},
shouldShowIcons:F.shouldShowIcons,skipContentClick:F.skipContentClick,onScroll:function(){var h=document.getElementById("header-wrapper"),c=document.getElementById("content-wrapper");if(h&&c){var rf={};rf=(rf["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,rf["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,rf);h.className=c.scrollTop>1?_.HD(rf):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:$oh,contentWrapperEl:function(h){q(h);requestAnimationFrame(function(){t(h)})},
header:function(){return _.Z(yLQ,{touchstart:J,touchmove:g,touchend:Y,title:F.headerTitle,subtitle:F.headerSubtitle,headerId:"header-wrapper",headerOverride:F.headerFn,hasHeaderOverride:F.hasHeaderFn,actionHeader:F.headerActionHeader,hasActionHeader:F.hasHeaderActionHeader})},
footer:function(){return _.Z(bo3,{footerButtonType:F.footerButtonType,leadingLabel:F.footerLeadingLabel,trailingLabel:F.footerTrailingLabel,primaryButton:F.footerPrimaryButton,hasPrimaryButton:F.hasFooterPrimaryButton,secondaryButton:F.footerSecondaryButton,hasSecondaryButton:F.hasFooterSecondaryButton,footerOverride:F.footerFn,hasFooterOverride:F.hasFooterFn})},
body:function(){return _.Z(_.R,{cond:F.hasContentFn,then:function(){var h;return _.Z("div",{class:K},(h=F.contentFn)==null?void 0:h.call(F))}})}}))},"Zh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Cys=_.ld(function(F){var q=_.sV().resolve(_.ap);return _.Z("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.zq(function(){return void q.closeSheet()})},_.Z(_.R,{cond:function(){return!!F.header},
then:function(){return _.Z("div",{class:"ytContextualSheetLayoutHeaderContainer"},F.header())}}),_.Z(_.R,{cond:function(){return!!F.content},
then:function(){return _.Z("div",{class:"ytContextualSheetLayoutContentContainer"},F.content())}}),_.Z(_.R,{cond:function(){return!!F.footer},
then:function(){return _.Z("div",{class:"ytContextualSheetLayoutFooterContainer"},F.footer())}}))},"$h");
Cys.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var dew=_.ld(function(F){F=F.data;var q=_.FG("yt-sheet-view-model",function(u){if(_.E("web_focus_first_element_sheet")||!_.E("sheet_focus_first_killswitch"))return u.addEventListener("focus",function(){LV3(u)}),function(){u.removeEventListener("focus",function(){LV3(u)})}}),t={};
return _.Z("yt-sheet-view-model",{"on:mousedown":_.zq(function(u){_.E("sheet_focus_first_killswitch")||u.currentTarget!==u.target&&u.preventDefault()}),
"on:focus":_.zq(function(){_.E("sheet_focus_first_killswitch")||LV3(q.value)}),
class:_.Ec("ytSheetViewModelHost",(t.ytSheetViewModelContextual=!0,t.ytSheetViewModelDisableBackdropFilter=_.E("web_disable_backdrop_filter"),t)),el:q,tabindex:-1},_.Z(_.R,{cond:F,then:function(u){return _.Z(Cys,{header:function(){return _.Z(_.Tl,{data:function(){return u().header}},{panelHeaderViewModel:me5})},
content:function(){return _.Z(_.Tl,{data:function(){return u().content}},{listViewModel:function(J){return _.Z(_.v2j,{data:J.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:nL9,miniAppScoreChallengeViewModel:M7h})},
footer:function(){return _.Z(_.Tl,{data:function(){return u().footer}},{panelFooterViewModel:_.wG})}})}}))},"ai");
dew.idomCompat=!0;_.ei(dew,"yt-sheet-view-model",{props:{data:_.NH}});var UeT=_.ld(function(F){var q=function(){var t;return(t=F.data().enableDebuggingFeatures)!=null?t:!1};
return _.Z("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.Z(_.Gn,{each:function(){var t;return(t=F.data().stickers)!=null?t:[]}},function(t){return _.Z(V7v,{data:function(){return t},
debugMode:q})}))},"bi"),V7v=_.ld(function(F){var q=_.sk(F,{debugMode:!1}).debugMode,t=_.Jv(function(){var e;
return(e=F.data().region)==null?void 0:e.w},0),u=_.Jv(function(){var e;
return(e=F.data().region)==null?void 0:e.h},0),J=_.Jv(function(){var e;
return(e=F.data().region)==null?void 0:e.x},0),g=_.Jv(function(){var e;
return(e=F.data().region)==null?void 0:e.y},0),Y=_.zq(function(){var e=F.data().onTap;
e&&_.L9(e)}),Q={};
return _.Z("div",{class:_.Ec("ytStoriesStickerLayerViewModelSticker",(Q.ytStoriesStickerLayerViewModelDebugMode=q,Q)),style:_.Mo({width:function(){return 100*t()+"%"},
height:function(){return 100*u()+"%"},
left:function(){return 100*J()+"%"},
top:function(){return 100*g()+"%"},
"flex-direction":function(){return yT7(F.data().flexDirection)},
"justify-content":function(){return C_Q(F.data().justifyContent)},
"align-items":function(){return dov(F.data().alignItems)}}),
"on:click":Y},_.Z(_.Tl,{data:function(){return F.data().button||F.data().toggleButton}},{buttonViewModel:function(e){return _.Z(_.AB,{data:e.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(e){return _.Z(_.j9,{data:e.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ci");var hWv=_.ld(function(F){var q=function(){return F.data()},t={},u=_.Jv(function(){return q().backgroundColor},0),J=_.Jv(function(){return q().actionButtons},[]),g=_.Jv(function(){return q().stickerLayer},{}),Y=function(){var e,r;
return{animationRef:t,animationConfig:{autoplay:!1,loop:!1,path:(r=(e=q().foregroundAnimation)==null?void 0:e.url)!=null?r:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){F.navigateToNextItemOnLottieComplete()}}}},Q=function(){var e,r,N,w,k,z,T,P;
return{animationConfig:{autoplay:(z=(e=q().backgroundAnimation)==null?void 0:(r=e.settings)==null?void 0:r.autoplay)!=null?z:!1,loop:(T=(N=q().backgroundAnimation)==null?void 0:(w=N.settings)==null?void 0:w.loop)!=null?T:!1,path:(P=(k=q().backgroundAnimation)==null?void 0:k.url)!=null?P:"",name:"stories_item_background_animation"}}};
_.AO(function(){if(F.isVisible()){var e;(e=t.lottieEl)==null||e.play();F.animationRef()&&(F.animationRef().lottieEl=t.lottieEl)}else{var r;(r=t.lottieEl)==null||r.stop()}},"AvUgVe");
return _.Z("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Mo({"background-color":function(){return _.KG(u())+";"}})},_.Z("div",{class:"ytStoriesItemViewModelAssetContent"},_.Z(_.R,{cond:function(){return!!q().backgroundAnimation},
then:function(){return _.Z(_.bT,{data:Q,animationName:function(){return Q().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Z(_.R,{cond:function(){return!!q().backgroundImage},
then:function(){return _.Z(_.sc,{data:function(){return q().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.Z(_.R,{cond:function(){return!!q().foregroundAnimation},
then:function(){return _.Z(_.bT,{data:Y,animationName:function(){return Y().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Z(_.R,{cond:function(){return!!q().foregroundImage},
then:function(){return _.Z(_.sc,{data:function(){return q().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.Z("div",{class:"ytStoriesItemViewModelTopShadow"}),_.Z(_.Tl,{data:function(){return g()}},{storiesStickerLayerViewModel:UeT})),_.Z("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Mo({"background-color":function(){return _.KG(u())}})},_.Z("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.Z(_.Gn,{each:J},function(e){return _.Z(SRh,{data:function(){return e},
pauseAutoNavigation:F.pauseAutoNavigation})}))))},"di"),KKh={style:"overlay",
type:"outline"},SRh=_.ld(function(F){var q={};return _.Z("div",{class:_.Ec("ytStoriesItemViewModelActionButton",(q.ytStoriesItemViewModelStretchedActionButton=function(){return F.data().size==="STORIES_BUTTON_SIZE_STRETCH"},q)),
"on:click":_.zq(F.pauseAutoNavigation)},_.Z(_.Tl,{data:function(){return F.data().button}},{buttonViewModel:function(t){return _.Z(_.AB,{data:t.data,
buttonOverrides:KKh})}}))},"ei");_.ei(_.ld(function(F){var q=function(){var Zv;return(Zv=F.data().startIndex)!=null?Zv:0},t=_.X(_.np(q)),u=t.next().value,J=t.next().value;
t=_.X(_.N3(!1,void 0,"klmjc"));var g=t.next().value,Y=t.next().value,Q=function(){var Zv;return(Zv=F.data().storyItems)!=null?Zv:[]},e={},r=_.FG("yt-stories-viewer-view-model"),N=function(){return F.data().dismissButton},w=function(){var Zv;
return _.Sg((Zv=_.n(N(),_.gX))==null?void 0:Zv.onTap)},k=_.FG("div"),z,T,P=!1,v=function(){var Zv;
(Zv=z)==null||Zv.cancel();z=H(u()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});z.onfinish=function(){var kP=_.n(Q()[u()],SbQ),n3,o_;kP!=null&&kP.foregroundAnimation&&((kP==null?0:(n3=kP.foregroundAnimation)==null?0:n3.url)||(kP==null?0:(o_=kP.foregroundAnimation)==null?0:o_.payload))||(u()!==Q().length-1?(J(u()+1),v()):w()&&_.hv(w()))}},H=function(Zv){return k.value.children[Zv].children[0]},d=function(){for(var Zv=0;Zv<u();Zv++)H(Zv).style.transform=
"scaleX(1)"};
t=_.zq(function(){P||(g()?Y(!1):(u()===Q().length-1&&w()&&_.hv(w()),H(u()).style.transform="scaleX(1)",u()!==Q().length-1&&(J(u()+1),v())))});
var a=_.zq(function(){P||(g()?Y(!1):(H(u()).style.transform="scaleX(0)",u()!==0&&J(u()-1),v()))}),S=function(){Y(!0)},K=function(){H(u()).style.transform="scaleX(1)";
u()!==Q().length-1?(J(u()+1),v()):w()&&_.hv(w())},h=_.zq(function(){P=!1;
T=setTimeout(function(){Y(!0);P=!0},300)}),c=_.zq(function(){clearTimeout(T);
P&&g()&&Y(!1)});
_.AO(function(){if(g()){var Zv;(Zv=z)==null||Zv.pause();var kP;(kP=e.lottieEl)==null||kP.pause()}else{var n3;(n3=z)==null||n3.play();var o_;(o_=e.lottieEl)==null||o_.play()}},"DIHTEd");
_.AO(function(){d();u()===q()&&v()},"ze5F8b");
var rf=function(Zv){Zv.target===r.value&&(Zv=w())&&_.hv(Zv)};
_.v_(function(){d();v();window.addEventListener("yt-popup-closed",rf)});
_.vj(function(){clearTimeout(T);window.removeEventListener("yt-popup-closed",rf)});
return _.Z("yt-stories-viewer-view-model",{el:r,class:_.Ec("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.Z("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.Z("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":a,"on:mousedown":h,"on:mouseup":c,"on:mouseleave":c}),_.Z("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":t,"on:mousedown":h,"on:mouseup":c,"on:mouseleave":c})),_.Z("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.Z(_.Tl,{data:Q},{storiesItemViewModel:function(Zv,kP){var n3=Zv.data;return _.Z(_.R,{cond:function(){return Math.abs(kP()-u())<=1},
then:function(){var o_={};return _.Z("div",{class:_.Ec("ytStoriesViewerViewModelStoryItem",(o_.ytStoriesViewerViewModelActiveStoryItem=function(){return kP()===u()},o_))},_.Z(hWv,{data:n3,
pauseAutoNavigation:S,navigateToNextItemOnLottieComplete:K,isVisible:function(){return kP()===u()},
animationRef:e}))}})}})),_.Z("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:k},_.Z(_.Gn,{each:Q},function(){return _.Z("div",{class:"ytStoriesViewerViewModelProgressBar"},_.Z("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.Z("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.Z(_.Tl,{data:N},{buttonViewModel:_.AB})))},"fi"),"yt-stories-viewer-view-model",{props:{data:_.NH}});_.ei(_.ld(function(F){var q=F.data;var t=_.FG("yt-gen-ai-feedback-form-view-model"),u=[];return _.Z("yt-gen-ai-feedback-form-view-model",{el:t,class:"ytGenAiFeedbackFormViewModelHost"},_.Z(_.rv,{text:function(){return q().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.Z("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.Z(_.Tl,{data:function(){return q().feedbackChips}},{toggleButtonViewModel:function(J){var g=J.data;
return _.Z(_.j9,{data:g,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(Y){var Q=g();Q=_.n(Q,_.XZ);Q=_.n(Q==null?void 0:Q.defaultButtonViewModel,_.gX).trackingParams;Y?u.push(Q):(Y=u.indexOf(Q),Y>-1&&u.splice(Y,1))}})}})),_.Z(_.rv,{text:function(){return q().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.Z("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.Z(_.Tl,{data:function(){return q().submitButton}},{buttonViewModel:function(J){return _.Z(_.AB,{data:J.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Viv(t.value,u,q().uniqueId)}})}}),_.Z(_.Tl,{data:function(){return q().moreFeedbackButton}},{buttonViewModel:function(J){return _.Z(_.AB,{data:J.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"gi"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.NH},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var uq=function(){return _.x.apply(this,arguments)||this};
_.M(uq,_.x);uq.prototype.created=function(){nih(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(pEy);var F=_.sV().resolve(_.BJh);F&&(F.container=this.ytPopupContainerBehavior);if(F=_.sV().resolve(_.ap))F.container=this.ytPopupContainerBehavior;if(F=_.sV().resolve(_.je)){var q=this.ytPopupContainerBehavior;F.containerWasInjected?_.bz(Error("fj")):F.container=q}};
uq.prototype.ensurePopupBelowPlayer=function(F,q){var t=_.sV().resolve(_.JU(_.JC));if(!t||!t.isOnWatch()||!_.g0())return!1;t=t.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Oy().height>t+this.getPopupHeight(F,q)?(F.style.top="auto",F.style.bottom="0px"):(F.style.top=t+"px",F.style.bottom="auto");return!0};
uq.prototype.getPopupHeight=function(F,q){q&&(F.cachedPopupHeight=0);if(!F.cachedPopupHeight){q=0;var t=F.clientHeight,u=window.getComputedStyle(F);q+=parseInt(u.marginTop,10);q+=parseInt(u.marginBottom,10);F.cachedPopupHeight=t+q}return F.cachedPopupHeight};
uq.prototype.getElement=function(F){return document.createElement(F)};
_.C([_.D(vrv.YtPopupContainerBehavior),_.V("design:type",Object)],uq.prototype,"ytPopupContainerBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],uq.prototype,"ytComponentBehavior",void 0);_.C([_.m({disableElementRegistration:!0,is:"ytd-popup-container"})],uq);
_.b(uq,"ytd-popup-container",function(){if(MUD!==void 0)return MUD;var F=document.createElement("template");_.G(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);return MUD=F},{mode:1});var BWT;var LK5={};LK5.YtLogYpcFlowCommandsBehavior=[_.$9.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(F){_.n(F,Yn9)&&(F=_.n(F,Yn9))&&(F.serializedTransactionFlowLoggingParams?_.hrP(F.serializedTransactionFlowLoggingParams):F.serializedYpcCancelFlowLoggingParams?(F=F.serializedYpcCancelFlowLoggingParams)&&_.X2("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",F):F.serializedYpcResumeFlowLoggingParams?(F=F.serializedYpcResumeFlowLoggingParams)&&_.X2("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",F):F.serializedYpcPauseFlowLoggingParams?(F=F.serializedYpcPauseFlowLoggingParams)&&
_.X2("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",F):F.serializedYpcRefundFlowLoggingParams?(F=F.serializedYpcRefundFlowLoggingParams)&&Mz9("YPC_EVENT_TYPE_START",F):F.serializedYpcDeactivateFlowLoggingParams?(F=F.serializedYpcDeactivateFlowLoggingParams)&&_.X2("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",F):F.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(F=F.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.X2("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",F))},
handleLogYpcFlowDismiss_:function(F){_.n(F,X87)&&(F=_.n(F,X87),F.serializedTransactionFlowLoggingParams?_.Kmv(F.serializedTransactionFlowLoggingParams):F.serializedYpcCancelFlowLoggingParams?(F=F.serializedYpcCancelFlowLoggingParams)&&_.X2("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",F):F.serializedYpcResumeFlowLoggingParams?(F=F.serializedYpcResumeFlowLoggingParams)&&_.X2("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",F):F.serializedYpcPauseFlowLoggingParams?(F=
F.serializedYpcPauseFlowLoggingParams)&&_.X2("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",F):F.serializedYpcRefundFlowLoggingParams&&(F=F.serializedYpcRefundFlowLoggingParams)&&Mz9("YPC_EVENT_TYPE_CANCEL",F))}}];var f5w={};f5w.YtCancelRecurrenceBehavior=[_.XV.YtComponentBehavior,_.k7x,{attached:function(){var F=this;gfs(this,function(q,t){return F.ypcCancelRecurrenceHandler(q,t)})},
ypcCancelRecurrenceHandler:function(F,q){var t=this;if(!q||!q.ypcCancelRecurrenceEndpoint)return!1;if(!q.ypcCancelRecurrenceEndpoint.params)return _.CI(Error("Gl")),!0;_.V7(this.hostElement);var u=_.Lp.instance,J=_.sV().resolve(_.JU(_.CG));u&&_.fp(u,q)?_.aI(u,q).then(function(g){t.ypcCancelRecurrenceSuccess_(F,q,{data:g})},function(g){t.ypcCancelRecurrenceFailure_(F,q,g)}).thenCatch(function(){_.CI(Error("Hl"))}):J?J.requestDataForServiceEndpoint(q).then(function(g){t.ypcCancelRecurrenceSuccess_(F,
q,g)},function(g){t.ypcCancelRecurrenceFailure_(F,q,g)}).thenCatch(function(){_.CI(Error("Hl"))}):_.CI(Error("Il"));
return!0},
ypcCancelRecurrenceSuccess_:function(F,q,t){_.Uo(this.hostElement);t.data||(t={data:t});t.data&&t.data.actions&&_.rY(this.hostElement,t.data.actions,this.hostElement);t.data.messageRenderer?G53(q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(q=q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.X2("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",q);_.Q0(F,"yt-service-request-completed",t)},
ypcCancelRecurrenceFailure_:function(F,q,t){_.Uo(this.hostElement);G53(q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Q0(F,"yt-service-request-error",{error:t,params:[F,q]})}}];var a5J=function(F,q){_.Fq.call(this,q)};
_.M(a5J,yaT);var jWv={};jWv.YtCompleteTransactionBehavior=[_.XV.YtComponentBehavior,_.k7x,{attached:function(){var F=this;gfs(this,function(q,t){return F.ypcCompleteTransactionHandler(q,t)})},
completeTransaction:function(F,q){var t=this;q={payments_payload:window.btoa(q.integratorData),buybucket_params:F.data.buybucketParams,offer_params:F.data.offerParams};var u=_.sV().resolve(_.CG),J=F.data.completeTransactionEndpoint,g=this.get("ypcCompleteTransactionEndpoint.actions",J);g&&_.rY(this.hostElement,g,this.hostElement);return(g=_.Lp.instance)&&_.fp(g,J)?_.aI(g,J,q).then(function(Y){return!Y||(Y==null?0:Y.error)?(Y=t.get("data.serializedTransactionFlowLoggingParams",F),_.mW(new m9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
Y))):{data:Y}}).then(function(Y){return t.handleCompleteTransactionSuccess_(Y,F)},function(){return t.handleCompleteTransactionFailure_(F)}):u.requestDataForServiceEndpoint(J,q).then(function(Y){return t.handleCompleteTransactionSuccess_(Y,F)},function(){return t.handleCompleteTransactionFailure_(F)})},
handleCompleteTransactionSuccess_:function(F,q){F.data||(F={data:F});if(F.data.messageRenderer)return _.mW(new a5J(F.data.messageRenderer));if(F.data.trackingParams){var t=_.yb(),u=_.b7();t&&u&&_.Bo(t,u,_.Av(F.data.trackingParams))}q=this.get("data.serializedTransactionFlowLoggingParams",q);Tjy(q);return _.NU(F)},
handleCompleteTransactionFailure_:function(F){F=this.get("data.serializedTransactionFlowLoggingParams",F);_.Fe("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",F);return _.mW(new m9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",F))},
ypcCompleteTransactionHandler:function(F,q){var t=this;if(!q.ypcCompleteTransactionEndpoint)return!1;if(!q.ypcCompleteTransactionEndpoint.transactionParams)return _.CI(Error("Jl")),!0;q.ypcCompleteTransactionEndpoint&&q.ypcCompleteTransactionEndpoint.gtmData&&_.ag(q.ypcCompleteTransactionEndpoint.gtmData);var u=_.sV().resolve(_.JU(_.CG));if(u){_.V7(this.hostElement);var J=_.Lp.instance;J&&_.fp(J,q)?_.aI(J,q).then(function(g){return!g||(g==null?0:g.error)?(g=t.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
q),_.mW(new m9("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",g))):{data:g}}).then(function(g){_.Q0(F,"yt-service-request-completed");
t.ypcCompleteTransactionSuccess_(q,g)},function(){return t.ypcCompleteTransactionFailure_(q)}):u.requestDataForServiceEndpoint(q).then(function(g){_.Q0(F,"yt-service-request-completed");
t.ypcCompleteTransactionSuccess_(q,g)},function(){return t.ypcCompleteTransactionFailure_(q)})}return!0},
ypcCompleteTransactionSuccess_:function(F,q){_.Uo(this.hostElement);q.data||(q={data:q});_.ec(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);q.data.messageRenderer||q.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(F):(_.ag('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",F));q.data.actions&&(F=mcJ(q.data.actions),q=$cw(q.data.actions),F.length&&_.RD(this.hostElement,
F),q.length&&_.rY(this.hostElement,q,this.hostElement))},
ypcCompleteTransactionFailure_:function(F){_.Uo(this.hostElement);_.ec(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",F,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(F,q,t){if(q=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",q))q={serializedTransactionFlowLoggingParams:q},t&&(q.errorType=t),_.IJ(F,q),_.H2()}}];var cLD={};cLD.YtEndpointHandlerWithYpcBehavior=[_.k7x,_.$9.YtActionHandlerBehavior,[{openWalletDialog:function(F,q,t,u,J,g,Y){var Q=this,e=_.ji();q=q.replace(/-/g,"+").replace(/_/g,"/");var r=_.TV().get("hl");_.bS$(_.qF(_.qs),q,e.resolve,J,function(N){g&&g();e.reject(N)},r,function(N){return Q.onServerBackendAnalyticEvent_(F,t,N)},this.onDialogClose_.bind(this),u,Y);
return e.promise},
openFixFlowDialog:function(F,q,t,u){F=F.replace(/-/g,"+").replace(/_/g,"/");_.qF(_.qs).openFixFlowDialog(F,q,t,u)},
onDialogClose_:function(){_.ec(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(F,q,t){_.Q0(F,"yt-commerce-action-init-done");q&&_.RD(this.hostElement,[q,{backend_analytics:t}])}}],
_.HP.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(F,q){F=this.get("data.nativeFlowEndpoint",q);q=this.get("data.fallbackEndpoint",q);F?_.RD(this.hostElement,[F]):q&&_.Q0(this.hostElement,"yt-navigate",{endpoint:q})}}],
f5w.YtCancelRecurrenceBehavior,jWv.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var F=this;gfs(this,function(q,t,u){return F.handleYPCEndpoint(q,t,u)});
this.ypcRegisterActionMapJobId_=_.W2(_.mI,function(){F.registerActionMap(F.buyFlowActionMap_)})},
detached:function(){var F=this;_.mI.cancelJob(this.ypcRegisterActionMapJobId_);_.W2(_.mI,function(){F.unregisterActionMap(F.buyFlowActionMap_)})},
handleYPCEndpoint:function(F,q,t){var u=q.ypcGetCartEndpoint;if(u){_.bN("commerce_transaction");var J=u.gtmId;J&&_.f8(J);(u=u.gtmData)&&_.ag(u)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",q)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(F,q),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",q)!=null?(this.handleYPCFixInstrumentEndpoint_(F,q),!0):q.ypcPauseSubscriptionCommand?(jIT(this.hostElement,F,q,t),
!0):q.ypcResumeSubscriptionCommand?(qOD(this.hostElement,F,q),!0):q.getPaymentInstrumentsParamsCommand?(Lov(this.hostElement,F,q),!0):q.ypcHandleTransactionEndpoint?(Ko5(this.hostElement,F,q,t),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(F,q){var t=this;_.y0("ttcr",void 0,"commerce_transaction");q=q.ypcGetCartEndpoint;var u=q.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,J=u.encryptedPurchaseParams,g=u.serializedTransactionFlowLoggingParams,Y=u.serializedPaymentsClientParams,Q=this.createGetCartResponseFromParams_(u,q.offerParams,g);this.changeButtonState(F,!0);_.Hr(this.openWalletDialog(F,J,u.ypcLogWalletAnalyticDataEndpoint,g,function(){t.changeButtonState(F,!1)},function(){t.changeButtonState(F,
!1)},Y).then(function(e){return t.handleBuyFlowCompleteCallback_(F,Q,e)},function(){return t.handleOnLoadError(Q)}).then(function(e){return void t.handlePostPurchaseSuccess_(F,Q,e)},function(e){return void t.handlePostPurchaseError_(e)}),function(){t.changeButtonState(F,!1);
F instanceof Element&&_.Q0(F,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(F,q,t){var u=F.completeTransactionEndpoint,J=F.handleTransactionEndpoint;q={data:{offerParams:window.btoa(q),serializedTransactionFlowLoggingParams:t}};J?q.data.handleTransactionEndpoint=J:q.data.completeTransactionEndpoint=u;F.onCartDismissCommand&&(q.data.onCartDismissCommand=F.onCartDismissCommand);return q},
onGetCartServiceRequestCompleted_:function(F,q){var t=this,u=F.target;if(q&&q.data&&q.data.messageRenderer)_.Uo(this.hostElement),this.handleMessageRenderer_(q.data.messageRenderer),this.changeButtonState(u,!1);else{var J=this.get("data.encryptedPurchaseParams",q),g=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",q),Y=this.get("data.ypcLogWalletAnalyticDataEndpoint",q),Q=this.get("data.serializedPaymentsClientParams",q),e=this.getLoggingParams_(q);if(e||J||g)F.stopPropagation(),_.y0("ttcr",
void 0,"commerce_transaction"),J||_.Uo(this.hostElement),this.changeButtonState(u,!1),g?_.ec(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.bn("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:g}}},this]):J&&(this.changeButtonState(u,!0),F=null,F=this.openWalletDialog(u,J,Y,e,function(){_.Uo(t.hostElement);t.changeButtonState(u,!1)},function(){_.Uo(t.hostElement);
t.changeButtonState(u,!1)},Q),_.Hr(F.then(function(r){return t.handleBuyFlowCompleteCallback_(u,q,r)},function(){return t.handleOnLoadError(q)}).then(function(r){return t.handlePostPurchaseSuccess_(u,q,r)},function(r){return t.handlePostPurchaseError_(r)}),function(){t.changeButtonState(u,!1);
_.Q0(u,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(F,q){q&&q.endpoint&&q.endpoint.ypcGetCartEndpoint&&!q.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",q.endpoint.ypcGetCartEndpoint)&&_.rY(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",q.endpoint.ypcGetCartEndpoint)],F.target),_.V7(this.hostElement),this.changeButtonState(F.target,!0))},
onServiceRequestError_:function(F,q){if(q&&q.params&&q.params.length){q=_.X(q.params);for(var t=q.next();!t.done;t=q.next())if((t=t.value)&&t.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",t.ypcGetCartEndpoint)&&_.rY(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",t.ypcGetCartEndpoint)],F.target);_.Uo(this.hostElement);this.changeButtonState(F.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(F,q,t){var u=t.integratorData;return u==null||u===""||t.error!=null?(u=this.getLoggingParams_(q),String(t.error)==="-1"?(q.data.onCartDismissCommand&&_.rY(this.hostElement,[q.data.onCartDismissCommand],F),_.mW(new m9("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",u,!0))):_.mW(new m9("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",u))):q.data.handleTransactionEndpoint?BCQ(this.hostElement,q.data.handleTransactionEndpoint,{payments_payload:u,funds_guarantee_callback_client_data:t.integratorClientCallbackData}):
this.completeTransaction(q,t)},
handlePostPurchaseSuccess_:function(F,q,t){q=t.data;var u=!1,J,g;if(q&&((J=q.command)==null?0:(g=J.commandExecutorCommand)==null?0:g.commands)){var Y,Q;J=(Y=q.command)==null?void 0:(Q=Y.commandExecutorCommand)==null?void 0:Q.commands;for(Y=0;Y<J.length;Y++)if(_.n(J[Y],_.qnE)){u=!0;break}}u||(q&&q.gtmDatas&&q.gtmDatas.length?_.ag(q.gtmDatas[0]):_.ag('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));t.data&&t.data.actions&&(q=mcJ(t.data.actions),t=$cw(t.data.actions),q.length&&
_.RD(this.hostElement,q),t.length&&_.rY(this.hostElement,t,F))},
handlePostPurchaseError_:function(F){F&&F.payload&&F.payload.isUserDismiss||_.mH(Error("Ll"))},
handleOnLoadError:function(F){F=this.getLoggingParams_(F);return _.mW(new m9("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",F))},
getLoggingParams_:function(F){return this.get("data.serializedTransactionFlowLoggingParams",F)},
handleMessageRenderer_:function(F){var q=_.H_(F,"renderer"),t=_.bn("openPopupConfig");q==="confirmDialogRenderer"&&t&&_.ec(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:t.popupTypeMap[q],popup:F}},this])},
handleYPCFixInstrumentEndpoint_:function(F,q){var t=this,u=q.ypcFixInstrumentEndpoint;q=u.encryptedFixInstrumentParameters;this.logFixFopEvent_(u,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(F,!0);this.openFixFlowDialog(q,function(J,g){t.onFixFlowCompleteCallback_(u,J,g)},function(){return t.changeButtonState(F,!1)},function(){t.changeButtonState(F,!1);
t.logFixFopEvent_(u,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(F,q,t){var u=_.S6("payments.business.integration.scenario.FixInstrument");if(q==u.IntegratorCallbackType.ON_COMPLETE){q="FIX_FOP_EVENT_TYPE_CANCEL";var J=null;t.error!=null?t.error!=u.OnCompleteCallbackError.USER_CANCELLED&&(_.rY(this.hostElement,[F.errorAction],this.hostElement),q="FIX_FOP_EVENT_TYPE_FAILURE",J="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.rY(this.hostElement,[F.successAction],this.hostElement),q="FIX_FOP_EVENT_TYPE_SUCCESS");_.rY(this.hostElement,[F.onFinishAction],
this.hostElement);this.logFixFopEvent_(F,q,J)}},
logFixFopEvent_:function(F,q,t){(F=F.serializedFixFopLoggingParams)?(q={eventType:q,serializedFixFopLoggingParams:F},t!=null&&(q.errorType=t),_.IJ("fixFopFlow",q),_.H2()):_.mH(Error("Ml"))},
changeButtonState:function(F,q){_.E("enable_ypc_spinners")&&F&&(F.is==="yt-button-renderer"||F.is==="ytd-button-renderer")&&(F.disabled=q)}}];var FNw=function(F){this.JSC$32315_clientRoot=F;this.feedbackCollectorActionMap={"yt-help-dialog-requested":up7,"yt-feedback-dialog-requested":tay,"yt-signal-action-help":JC3,"yt-signal-action-send-feedback":ssy,"yt-send-feedback-action":lzv,"yt-user-feedback-endpoint":XDD};_.aJ(_.B2.getInstance(),this.feedbackCollectorActionMap,this.JSC$32315_clientRoot)},q3s;var ty7=function(F){this.JSC$32320_clientRoot=F;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":YOw.bind(null,this.JSC$32320_clientRoot),"yt-signal-action-delete-all-downloads":Qsv,"yt-signal-action-delete-download":e7v,"yt-signal-action-delete-playlist-download":R75,"yt-signal-action-install-pwa":ECw,"yt-signal-action-refresh-downloads":iH9,"yt-offline-video-endpoint":oC7,"yt-offline-playlist-endpoint":MaC,"yt-update-local-app-setting-command":Glh,"yt-offline-orchestration-action-command":Wpw,
"yt-signal-action-undo-delete-download":N0v,"yt-local-watch-history-command":xZT};_.aJ(_.B2.getInstance(),this.downloadManagerActionMap,this.JSC$32320_clientRoot);_.$h.instance=new _.$h},uUD;var J2=function(){var F=_.x.apply(this,arguments)||this;F.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};F.remoteApi_=null;return F};
_.M(J2,_.x);_.l=J2.prototype;
_.l.ready=function(){_.E("polymer_enable_mdx")&&(Qn3({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.E("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.E("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.E("enable_cast_short_lived_lounge_token")}),_.eJ("yt-remote-connection-change",this.handleConnectionChange_,this),_.eJ("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=iNw())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.l.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.l.handleConnectionChange_=function(F){(this.mdxConnected=F)?(F=Rr9(),!F&&zU3()&&obw()&&(F={key:"cast-selector-receiver",name:obw()}),F=F.name):F=null;this.receiverName=F;_.sP(this.remoteApi_);(this.remoteApi_=iNw())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.l.handleReceiverAvailabilityChange_=function(){var F=ZN5();zU3()&&_.vG("yt-remote-cast-available")&&F.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=F.length>0};
_.l.handleRemoteQueueChange_=function(){var F=this.currentVideoId_,q=this.currentListId_,t=dF(this.remoteApi_);this.currentVideoId_=t.videoId;this.currentListId_=t.listId;this.currentVideoId_&&_.ec(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.E("polymer_enable_mdx_queue")?this.currentListId_:null,F,q])};
_.l.handleAddToQueueAction_=function(F){F=_.n(F,hpv);this.remoteApi_&&(F.videoId?this.remoteApi_.addVideo(F.videoId):F.playlistId&&this.remoteApi_.addPlaylist(F.playlistId))};
_.l.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.l.handleInsertInQueueAction_=function(F){F=_.n(F,KuT);this.remoteApi_&&F.videoId&&this.remoteApi_.JSC$19783_insertVideo(F.videoId)};
_.l.handleRemoveFromQueueAction_=function(F){F=_.n(F,Bvh);this.remoteApi_&&F.videoId&&this.remoteApi_.JSC$19783_removeVideo(F.videoId)};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],J2.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O(),_.V("design:type",Object)],J2.prototype,"appId",void 0);_.C([_.O(),_.V("design:type",Boolean)],J2.prototype,"mdxConnected",void 0);_.C([_.O(),_.V("design:type",Boolean)],J2.prototype,"receiverAvailable",void 0);_.C([_.O(),_.V("design:type",Object)],J2.prototype,"receiverName",void 0);_.C([_.O(),_.V("design:type",Object)],J2.prototype,"currentVideoId_",void 0);
_.C([_.O(),_.V("design:type",Object)],J2.prototype,"currentListId_",void 0);_.C([_.Vu({is:"yt-mdx-manager",disableElementRegistration:!0})],J2);_.b(J2,"yt-mdx-manager",void 0,{mode:2});var Jmw;var skC;var sQ=function(){var F=_.x.apply(this,arguments)||this;F.APP_IDS={ytr:3,ytm:5};F.JSC$20990_timeoutId_=0;F.actionMap={"yt-open-create-family-dialog":"open"};return F};
_.M(sQ,_.x);_.l=sQ.prototype;_.l.created=function(){nih(2200)};
_.l.detached=function(){this.observer_&&this.observer_.disconnect()};
_.l.open=function(F,q){var t=this,u=F.serializedYpcFamilyCreateLoggingParams;this.JSC$20990_timeoutId_=setTimeout(this.abort_.bind(this,F.postFlowErrorEndpoint,u),3E4);q&&(this.onReadyCallback_=q);var J=_.ep(this.hostElement).querySelector("#unicorn-iframe");u&&u&&nv7("ypcFamilyCreateFlowStarted",u);_.AMu("family_creation",function(){var g=_.S6("gapi.family_creation.render");_.S6("gapi.config.update")("iframes/family_creation/url",t.getFamilyCreationUrlWithUnicornParams_());var Y=3;F.appId&&F.appId in
t.APP_IDS&&(Y=t.APP_IDS[F.appId]);Y={authUser:_.bn("SESSION_INDEX")||0,clientId:Y,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.bn("HL"),initialflow:[4,5,6,7],m:t.isMobile?1:0,onFlowComplete:t.onUnicornFlowComplete_.bind(t,F.postFlowSuccessEndpoint,u),onError:t.onUnicornFlowError_.bind(t,F.postFlowErrorEndpoint,u),onReady:t.onUnicornFlowReady_.bind(t,F.referencePcidParams)};g(J,Y)})};
_.l.close=function(){_.ep(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.l.onUnicornFlowComplete_=function(F,q){this.close();q&&q&&nv7("ypcFamilyCreateFlowSucceeded",q);_.Q0(this.hostElement,"yt-navigate",{endpoint:F})};
_.l.onUnicornFlowError_=function(F,q){this.close();q&&nv7("ypcFamilyCreateFlowCancelled",q);_.Q0(this.hostElement,"yt-navigate",{endpoint:F})};
_.l.onUnicornFlowReady_=function(F){var q=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();F&&_.S6("gapi.family_creation.setConfig")(0,F);this.observer_=new MutationObserver(function(){_.ep(q.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.ep(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.ep(this.hostElement).querySelector("#dialog").open()};
_.l.getFamilyCreationUrlWithUnicornParams_=function(){return _.bn("YTR_FAMILY_CREATION_URL")};
_.l.getCurrentUrl_=function(){return document.location.href};
_.l.abort_=function(F,q){this.clearTimeout_();this.onUnicornFlowError_(F,q)};
_.l.clearTimeout_=function(){clearTimeout(this.JSC$20990_timeoutId_)};
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],sQ.prototype,"ytActionHandlerBehavior",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],sQ.prototype,"isMobile",void 0);_.C([_.O(),_.V("design:type",Object)],sQ.prototype,"onReadyCallback_",void 0);_.C([_.O(),_.V("design:type",Object)],sQ.prototype,"observer_",void 0);_.C([_.Vu({is:"yt-create-family-dialog",disableElementRegistration:!0})],sQ);
_.b(sQ,"yt-create-family-dialog",function(){if(skC===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);var q=F.content,t=q.insertBefore;Jmw===void 0&&(Jmw=document.createElement("template"));var u=Jmw;t.call(q,u.content.cloneNode(!0),F.content.firstChild);skC=F}F=skC;return F},{mode:2});var gSC;var l$5;var gw=function(){var F=_.x.apply(this,arguments)||this;F.STEP=1;F.BLOCK_ON=80;F.MIN_PROGESS=0;F.MAX_PROGESS=100;return F};
_.M(gw,_.x);_.l=gw.prototype;_.l.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.l.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));_.sV().addProvider({provide:BuT,useValue:this})};
_.l.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.l.finish=function(){var F=this;this.progress=this.MAX_PROGESS;AC5(function(){F.progress==F.MAX_PROGESS&&(F.hostElement.hidden=!0)})};
_.l.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.JJ.Object.defineProperties(gw.prototype,{progress:{configurable:!0,enumerable:!0,set:function(F){this.progress_=F;var q="scaleX("+F/this.MAX_PROGESS+")",t=_.ep(this.hostElement).querySelector("#progress").style;t.transform=q;t.webkitTransform=q;this.hostElement.setAttribute("aria-valuenow",String(F))},
get:function(){return this.progress_}}});
_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],gw.prototype,"ytComponentBehavior",void 0);_.C([_.Vu({is:"yt-page-navigation-progress",disableElementRegistration:!0})],gw);
_.b(gw,"yt-page-navigation-progress",function(){if(l$5===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');F.content.insertBefore(_.U().content.cloneNode(!0),
F.content.firstChild);var q=F.content,t=q.insertBefore;gSC===void 0&&(gSC=document.createElement("template"));var u=gSC;t.call(q,u.content.cloneNode(!0),F.content.firstChild);l$5=F}F=l$5;return F},{mode:2});var X3v={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"},Y3y={"font-size":"12px","font-style":"italic"},p39={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.mZv=function(){return _.p(function(F){_.WA(F)})};var Qkv=_.ld(function(F){var q=function(){return F.data().subtext},t={};
return _.Z("snackbar-view-model",{class:_.Ec("snackbarViewModelHost",F.className)},_.Z("div",{class:_.Ec("snackbarViewModelEngagementBarWrapper",F.className)},_.Z(_.R,{cond:function(){return F.data().image},
then:function(u){return _.Z(_.sc,{data:u,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.Z(_.R,{cond:function(){return F.data().imageContent},
then:function(){return _.Z("div",{class:"snackbarViewModelAvatarContainer"},_.Z(_.Tl,{data:function(){return F.data().imageContent}},{decoratedAvatarViewModel:_.qi}))}}),_.Z("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.Z("div",{class:_.Ec((t.snackbarViewModelTitle=!0,t.snackbarViewModelTitleWithSubtext=q,t))},_.Z(_.rv,{text:function(){return F.data().text}})),_.Z(_.R,{cond:q,
then:function(){return _.Z("div",{class:"snackbarViewModelSubtext"},_.Z(_.rv,{text:function(){return q()}}))}})),_.Z(_.R,{cond:function(){return F.data().buttons},
then:function(){return _.Z("div",{class:"snackbarViewModelButtonClassWrapper"},_.Z(_.Tl,{data:function(){return F.data().buttons}},{buttonViewModel:function(u){return _.Z(_.AB,{data:u.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:F.target})}}))}})))},"hi");_.ei(_.ld(function(){function F(d,a,S){T(d);v(S);k("in");N(!0);q(d,a);Y=setTimeout(function(){t()},a)}
function q(d,a){var S,K=(S=d.text)==null?void 0:S.content;d=_.b6(d.rendererContext);K&&(a={label:K,command:d,durationMs:a},_.sV().resolve(_.h5).enqueue(a))}
function t(d){k("out");d&&clearTimeout(Y)}
function u(){t(!0)}
function J(d){if(d){var a=d.snackbarViewModel,S=d.durationMs,K=d.target;S||(S=3E3);a&&(d=_.sV().resolve(_.JU(_.Cx)))&&d.enqueue({isOpened:r,open:function(){F(a,S,K)},
close:t},0)}}
var g=_.qL("snackbar-container"),Y=void 0,Q=_.X(_.N3(!1,void 0,"mDc5N")),e=Q.next().value;Q=Q.next().value;var r=e,N=Q;e=_.X(_.N3("out",void 0,"FpOs5e"));var w=e.next().value,k=e.next().value;e=_.X(_.N3(void 0,void 0,"jIDRob"));var z=e.next().value,T=e.next().value;e=_.X(_.N3(void 0,void 0,"kOA3Mb"));var P=e.next().value,v=e.next().value,H=_.zq(function(){if(w()==="out"){N(!1);T(void 0);v(void 0);var d=_.sV().resolve(_.JU(_.Cx));d&&HZ3(d,0)}});
_.v_(function(){var d=_.sV().resolve(_.JU(_.Nxw));d&&(d.showSnackbarFn=J,d.closeSnackbarFn=u)});
return _.Z("snackbar-container",{class:"ytSnackbarContainerHost",el:g},_.Z(_.R,{cond:function(){return r()&&!!z()},
then:function(){var d={};return _.Z("div",{class:_.Ec("ytSnackbarContainerSnackbarContainer",(d.ytSnackbarContainerMobile=!1,d.ytSnackbarContainerPivotBar=function(){var a;return!((a=_.sV().resolve(_.JU(_.wf7)))==null||!a())},d.ytSnackbarContainerOpened=function(){return r()&&w()==="in"},d.ytSnackbarContainerClosed=function(){return r()&&w()==="out"},d)),
"on:animationend":H},_.Z(Qkv,{data:function(){return z()},
target:function(){return P()}}))}}))},"ii"),"snackbar-container");_.ei(_.kfv,"yt-tooltip");var egQ=_.IQQ.ephemeralActionSelector;_.ei(_.ld(function(){var F=_.dC(egQ);return _.Z("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var q;return(q=F())==null?void 0:q.announcement})},"ji"),"yt-ephemeral-actions");var qo7=new Map;var uw9=function(F,q){var t=this;this.handleError=F;this.logEventInternal=q;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){t.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
uw9.prototype.logError=function(F){this.handleError(F)};
uw9.prototype.logEvent=function(F,q){switch(F){case "IDB_DATA_CORRUPTED":_.E("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",q);break;case "IS_SUPPORTED_COMPLETED":_.E("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",q);break;case "QUOTA_EXCEEDED":ZaJ(this,q);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":F=Object.assign({},q,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",F)}};
var ZaJ=function(F,q){_.Bq.getInstance().estimate().then(function(t){t=Object.assign({},q,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:uf9(t==null?void 0:t.usage),deviceStorageQuotaMbytes:uf9(t==null?void 0:t.quota)});F.logEventInternal("idbQuotaExceeded",t)})};var Rg5=_.ld(function(F){var q=_.FG("yt-draggable"),t=F.onDrag,u=F.onDragStart,J=F.onDragEnd,g=_.sk(F,{allowClicks:!1,dragThreshold:5}),Y=g.dragThreshold,Q=g.allowClicks;F=g.children;g=g.className;var e=void 0,r=void 0,N=new _.bQ(0,0),w=!1;_.v_(function(){e=new _.Kn(q.value);r=new _.l7(z);k(e,r);if(Q()){_.Ztf(e,Y());var P;(P=q.value)==null||P.addEventListener("click",T,{capture:!0})}_.vj(function(){var v;(v=e)==null||v.dispose();if(Q()){var H;(H=q.value)==null||H.removeEventListener("click",T,{capture:!0})}})});
var k=function(P,v){_.Ic(P,"earlycancel",function(){Q()&&(w=!1)});
_.Ic(P,"start",function(H){u==null||u(H);H.defaultPrevented||Q()&&(w=!0)});
_.Ic(P,"beforedrag",function(H){e&&r&&(H.preventDefault(),N=new _.bQ(H.clientX-e.startX,H.clientY-e.startY),r.start())});
_.Ic(P,"end",function(){v.stop();J==null||J();N=new _.bQ(0,0)})},z=function(){N&&t(N)},T=function(P){w&&(w=!1,P.stopPropagation(),P.preventDefault())};
return _.Z("yt-draggable",{el:q,class:_.Ec("ytDraggableComponentHost",g)},F)},"ki");var rm9=_.ld(function(F){var q=_.X(_.N3(0,void 0,"CvAwBd")),t=q.next().value,u=q.next().value;q=function(J){var g={},Y={};return _.Z(Rg5,{className:_.Ec("ytdMiniplayerComponentResizer",(g.ytdMiniplayerComponentResizerDisabled=function(){return J===F.horizontalAlignment()||J===F.verticalAlignment()},g.ytdMiniplayerComponentResizerNorth=J==="north",g.ytdMiniplayerComponentResizerEast=J==="east",g.ytdMiniplayerComponentResizerSouth=J==="south",g.ytdMiniplayerComponentResizerWest=J==="west",g)),
onDragStart:function(){u(F.currentMiniplayerSize());if(F.onResizeStart)F.onResizeStart()},
onDrag:function(Q){J!=="north"&&J!=="west"||Q.scale(-1);var e;Q=(e=J==="north"||J==="south")?Q.y:Q.x;var r=F.currentAspectRatio();e&&r>=1?Q*=r:!e&&r<1&&(Q/=r);e=Q;F.onResize(t()+e)}},_.Z("div",{class:_.Ec("ytdMiniplayerComponentResizerCorner",(Y.ytdMiniplayerComponentResizerNorthCorner=J==="north",Y.ytdMiniplayerComponentResizerEastCorner=J==="east",Y.ytdMiniplayerComponentResizerSouthCorner=J==="south",Y.ytdMiniplayerComponentResizerWestCorner=J==="west",Y))}))};
return _.Z("div",{class:"ytdMiniplayerComponentResizers"},q("north"),q("east"),q("south"),q("west"))},"li");var Nn9=16/9;_.ei(_.ld(function(){var F=_.FG("ytd-miniplayer"),q=_.X(_.N3(new _.Ma(NaN,NaN),void 0,"GNXZTe")),t=q.next().value,u=q.next().value;q=_.X(_.N3(!1,void 0,"XqI9xc"));var J=q.next().value,g=q.next().value;q=_.X(_.N3(!1,void 0,"k3iLGe"));var Y=q.next().value,Q=q.next().value;q=_.X(_.N3(!1,void 0,"ApjQ9b"));var e=q.next().value,r=q.next().value;q=_.X(_.N3(!1,void 0,"PzlhGe"));var N=q.next().value,w=q.next().value;q=_.X(_.N3(!1,void 0,"pm6fl"));var k=q.next().value,z=q.next().value;q=_.X(_.N3(!1,void 0,
"xQrL1e"));var T=q.next().value,P=q.next().value;q=_.X(_.N3(Nn9,void 0,"NcrWZb"));var v=q.next().value,H=q.next().value,d=_.X(_.N3(!1,void 0,"e5rxBc"));q=d.next().value;var a=d.next().value;d=_.X(_.N3(!1,void 0,"uZtCde"));var S=d.next().value,K=d.next().value;d=_.X(_.N3(void 0,void 0,"wKFvEe"));var h=d.next().value,c=d.next().value;d=_.X(_.N3(_.bn("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var rf=d.next().value,Zv=d.next().value;d=_.X(_.N3("south",void 0,"QXcssb"));var kP=d.next().value,
n3=d.next().value;d=_.X(_.N3(400,void 0,"Fr8gSb"));var o_=d.next().value,df=d.next().value,m$=_.sV().resolve(_.m4).miniplayerPropSignalMap[0],gx=m$.data,Hf=m$.externalPlaylistData;d=m$.toastData;var Zw=m$.playabilityStatus,cy=m$.isReadyToResume,wx=m$.isDisabled,Rj=m$.watchWhile,xO=m$.playerVe,DQ=m$.expandVe,fe=m$.closeVe,sM=m$.readyToResumeVe,FL=m$.readyToResumeCloseVe,Ev=m$.repositionVe,e5=m$.resizeVe;m$=_.X(_.np(cy));var z1=m$.next().value,qD=m$.next().value,gL=!1,F3=!1,pe;_.v_(function(){u(_.Oy());
F.value.addEventListener("animationend",function(dx){dx.target===F.value&&(z(!1),P(!1))});
Yoy(F.value)});
_.c2("yt-window-resized",function(dx){dx&&u(dx)});
var Bf=function(){pe&&H(pe.getVideoAspectRatio())},wJ=function(){if(pe){var dx=pe.getPlayerState()===1;
z1()&&dx&&qD(!1)}},Dw=function(){var dx=DQ();
if(dx){var $7=_.yb(3);$7&&_.co($7,dx)}},Wf=function(){var dx=fe(),$7=FL();
dx&&_.co(_.yb(3),dx);cy()&&$7&&_.co(_.yb(3),$7)};
_.c2("yt-activate-miniplayer",function(dx){var $7;return _.p(function(h9){if(h9.nextAddress==1)return J()?h9.return():h9.yield(($7=_.sV().resolve(_.m4).getPlayerElement())==null?void 0:$7.getPlayerPromise(),2);pe=h9.yieldResult;if(!pe)return h9.return();!S()&&_.E("kevlar_watch_while_v2")&&(n3(dx&&!_.E("kevlar_watch_while_bottom_align")?"north":"south"),Zv(_.bn("HTML_DIR")==="rtl"?"west":"east"));var JQ=pe;JQ.addEventListener("onVideoDataChange",Bf);JQ.addEventListener("onStateChange",wJ);JQ.addEventListener("onExpandMiniplayer",
Dw);JQ.addEventListener("onCloseMiniplayer",Wf);H(pe.getVideoAspectRatio());g(!0);XZw()||z(!0);_.WA(h9)})});
_.c2("yt-deactivate-miniplayer",function(dx){return _.p(function($7){if(!J())return $7.return();g(!1);qD(!1);P(dx);w(!1);Q(!1);if(pe){var h9=pe;h9.removeEventListener("onVideoDataChange",Bf);h9.removeEventListener("onStateChange",wJ);h9.removeEventListener("onExpandMiniplayer",Dw);h9.removeEventListener("onCloseMiniplayer",Wf)}XZw()||z(!0);_.WA($7)})});
var zv=function(){return!(Rj()&&_.E("kevlar_watch_while_modern"))},R2=function(){var dx;
return!((dx=Hf())==null||!dx.contents)},ND=function(){var dx=o_();
var $7=t();$7=Math.min(Math.min($7.width,$7.height)-32,720);var h9=v(),JQ=zv(),tf=R2()&&Y(),lQ=Math.min(dx,$7);dx=new _.Ma(192,JQ?116:192);h9=new _.Ma(tf?Nn9:h9,1);lQ=new _.Ma(lQ,JQ?lQ-76:lQ);lQ=h9.aspectRatio()>lQ.aspectRatio()?lQ.width/h9.width:lQ.height/h9.height;h9=h9.scale(lQ);dx.width<=h9.width&&dx.height<=h9.height||(dx=h9.aspectRatio()<=dx.aspectRatio()?dx.width/h9.width:dx.height/h9.height,h9.scale(dx),h9.width=Math.min(h9.width,$7),h9.height=Math.min(h9.height,$7));return new _.Ma(h9.width,
_.AX(192,h9.height+Zwv(JQ,tf),720))},Pn=function(){var dx=ND(),$7=zv(),h9=R2()&&Y();
return new _.Ma(dx.width,dx.height-Zwv($7,h9))},OT=function(){var dx=function($7){$7.target===F.value&&N()&&(w(!1),F.value.removeEventListener("transitionend",dx))};
XZw()||(F.value.addEventListener("transitionend",dx),w(!0));Q(!Y())};
_.AO(function(){var dx=xO(),$7=_.yb(3),h9=_.b7(3);if($7&&h9&&dx){_.Bo($7,h9,dx);h9=Ev();var JQ=e5(),tf=DQ(),lQ=fe(),yF=FL();tf&&lQ&&yF&&(_.LJ($7,dx,[tf,lQ,yF]),_.aD($7,[tf,lQ]));h9&&JQ&&_.LJ($7,dx,[h9,JQ])}},"Snz6Ld");
_.AO(function(){var dx=sM();if(dx){var $7=_.yb(0),h9=_.b7(0);$7&&h9&&(_.Bo($7,h9,dx),_.aD($7,[dx]))}},"X1FpHd");
m$={};return _.Z("ytd-miniplayer",{el:F,class:_.Ec("ytdMiniplayerComponentHost",(m$.ytdMiniplayerComponentVisible=function(){return J()||k()},m$.ytdMiniplayerComponentAnimatingSnap=e,m$.ytdMiniplayerComponentAnimatingPlaylistExpand=N,m$.ytdMiniplayerComponentAnimatingFade=k,m$),function(){if(k()){var dx=kP();
var $7=J(),h9=T();dx=$7?dx==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":h9?dx==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":dx==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else dx="";return dx}),
style:_.Mo({top:function(){return kP()==="north"?"16px":""},
right:function(){return rf()==="east"?"16px":""},
bottom:function(){return kP()==="south"?"16px":""},
left:function(){return rf()==="west"?"16px":""},
width:function(){return ND().width+"px"},
height:function(){return ND().height+"px"},
transform:function(){var dx=h();return dx?"translate("+dx.x+"px, "+dx.y+"px)":""}})},_.Z("div",{class:"ytdMiniplayerComponentContent"},_.Z(Rg5,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(dx){var $7=eu7(rf(),kP(),t(),ND(),h()),h9=Pn();Math.abs(dx.clientY-($7.y+h9.height))>15?(a(!0),dx=_.yb(3),$7=Ev(),gL||(gL=!0,dx&&$7&&_.aD(dx,[$7])),dx&&$7&&_.co(dx,$7)):dx.preventDefault()},
onDrag:function(dx){c(dx)},
onDragEnd:function(){var dx=pZC(eu7(rf(),kP(),t(),ND(),h()),t(),ND()),$7=Q4J(rf(),kP(),t(),ND()),h9=Q4J(dx.horizontalAlignment,dx.verticalAlignment,t(),ND());h9=new _.bQ(h9.x-$7.x,h9.y-$7.y);var JQ;$7=$7.y+(((JQ=h())==null?void 0:JQ.y)||0)+ND().height/2;var tf=function(){rf()===dx.horizontalAlignment&&kP()===dx.verticalAlignment||K(!0);Zv(dx.horizontalAlignment);n3(dx.verticalAlignment);c(void 0)},lQ=function(yF){yF.target===F.value&&e()&&(r(!1),tf(),F.value.removeEventListener("transitionend",lQ))};
a(!1);kP()==="south"&&$7>t().height?(tf(),_.sV().resolve(_.m4).close()):(F.value.addEventListener("transitionend",lQ),r(!0),c(h9))}},_.Z(_.R,{cond:J,
then:function(){return _.Z(_.VAv,{isDisabled:wx,playabilityStatus:Zw,size:Pn})}}),_.Z(_.R,{cond:zv,
then:function(){return _.Z(_.CQy,{isReadyToResume:z1,data:gx,expanded:Y,onExpandClick:OT,playlistData:Hf})}}),_.Z(_.R,{cond:q,
then:function(){return _.Z("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.Z(_.R,{cond:function(){return R2()&&Y()||N()},
then:function(){return _.Z(_.GMe,{className:"ytdMiniplayerComponentPlaylistPanel",data:Hf,hideHeaderText:!0,withinMiniplayer:!0})}}),_.Z("div",{class:"ytdMiniplayerComponentToast"},_.Z(_.Ua3,{toastData:d}))),_.Z(rm9,{onResize:function(dx){df(_.AX(192,dx,720))},
onResizeStart:function(){var dx=_.yb(3),$7=e5();F3||(F3=!0,dx&&$7&&_.aD(dx,[$7]));dx&&$7&&_.co(dx,$7)},
currentAspectRatio:v,currentMiniplayerSize:o_,horizontalAlignment:rf,verticalAlignment:kP}))},"mi"),"ytd-miniplayer",{});var lq=function(){var F=_.x.apply(this,arguments)||this;F.tabGesturesIsActive=!1;F.deprecateFullerscreenUi=_.E("web_watch_fullerscreen_deprecation_ui");F.hasDelegation=!1;F.darkerDarkTheme=_.E("web_darker_dark_theme");F.isFrostedGlassInitialized=!1;F.frostedGlassExp=_.E("web_frosted_glass");F.mastheadHiddenFocusWithinKillswitch=_.E("web_masthead_hidden_focus_within_killswitch");F.clientOnlyWizTooltipsEnabled=_.E("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");F.scrollAtTop=
!0;F.guideScrollTop=0;F.isTheaterModeSession=_.yG("START_IN_THEATER_MODE");F.iMaxTheaterMode=_.E("web_watch_imax_theater_mode");F.isFullWindowSession=_.yG("START_IN_FULL_WINDOW_MODE");F.hasCreateFamilyDialog=!1;F.mastheadHeight=56;F.networkStatusManager=new _.Lt;F.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction",
"yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};F.dynamicActionMap={"yt-run-attestation-command":function(q){var t=_.eoQ.instance,u=_.n(q,_.ORC);return u?_.E("use_rta_manager_for_async")&&
Vdh()?eXs(t,u,q.clickTrackingParams):QL9(t,u,q.clickTrackingParams):_.mW(Error("ni"))}};
F.isFrostedGlassDisabled=!1;F.isChannelOrPlaylistPage=!1;return F};
_.M(lq,_.x);_.l=lq.prototype;_.l.created=function(){var F=_.sV();_.E("kevlar_clear_duplicate_pref_cookie")&&_.W2(_.mI,function(){var q=_.om.get("PREF");q&&!/f\d=/.test(q)&&(q=_.pE("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=q?"PREF=null;domain="+q+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.E("gzip_gel_with_worker")&&_.$s_();_.E("jspb_serialize_with_worker")&&ZJD();_.E("web_worker_availability_check")&&txT();_.E("nwl_init_killswitch")||QDv().then(function(){_.mI.addLowPriorityJob(WWJ)});
this.pageManagerAttachedPromise=_.ji();this.ytdAppBehavior.loadDepsPromise=_.IR([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.LH(this.onThrottledScroll,200,this);_.E("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);JVC();$J9=!!_.S6("ytappsettings.initialized");K5=_.S6("ytappsettings.previousValue");CNw=_.S6("ytappsettings.previousSnapshotTime");$J9||($J9=!0,dUJ());IP7();H9y();_.$I("DEFERRED_DETACH",
_.E("kevlar_tuner_should_defer_detach"));_.$I("REUSE_COMPONENTS",!0);_.$I("STAMPER_STABLE_LIST",!0);_.$I("SCHEDULED_LAZY_LIST",!0);_.$I("openPopupConfig",YiT);_.$I("useClickHandler",!0);_.E("kevlar_shell_cleanup")&&_.mI.addLowPriorityJob(Lj5.bind(this,_.uu.caches));_.yG("IS_SHELL_LOAD")&&_.mj({shellStartupDurationMs:Math.round((0,_.gB)()-_.xo())});C65(this.networkStatusManager);_.E("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",vCv(X3v)),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!",
vCv(Y3y)),console.log("%cVisit http://go/join-youtube-web to apply today.",vCv(p39)));_.M1v(F.resolve(_.UZ),1E3)};
_.l.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var F=noJ();F&&!_.E("external_fullscreen_killswitch")&&document.addEventListener(F,this.setFullscreen.bind(this));(F=window.matchMedia("(prefers-color-scheme: dark)"))&&F.addEventListener&&F.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.l.attached=function(){var F=this;_.g7().processSignal("ci");_.E("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.bc$?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.QI(_.cdu(),"SUCCESS");this.updateIconSet();_.Xw(this.guideInnerContent,!1);_.h8().initVisibilityObserver();this.guideService.guideElement=this.guide;var q=document.createElement("ytd-miniplayer"),t=_.ep(this.hostElement).querySelector("#content");
_.ep(this.hostElement).insertBefore(q,t);_.g7().processSignal("ma");_.sV().resolve(_.m4).init(q);_.yG("IS_SHELL_LOAD")&&(t=document.createElement("ytd-network-status-banner"),_.ep(this.hostElement).insertBefore(t,q));_.E("kevlar_right_click_on_lockups")&&_.qX._onCaptureClick&&document.addEventListener("contextmenu",_.qX._onCaptureClick.bind(_.qX),!0);var u=function(){var J=_.ow("yt-page-navigation-progress");_.ep(F.hostElement).appendChild(J)};
setTimeout(function(){_.g7().parkOrScheduleJob(u,0,"eocs",16)},0);
_.E("service_worker_push_enabled")&&_.W2(_.mI,ovh);_.aJ(_.B2.getInstance(),this.dynamicActionMap,this.hostElement);_.Q0(this.hostElement,"ytd-app-attached");_.g7().processSignal("aa");yVh(this.hostElement);_.uo("gapi.load",_.AMu);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.W2(_.mI,
function(){var J=document.createElement("ytd-video-preview");_.ep(_.ep(F.hostElement).querySelector("#video-preview")).appendChild(J)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.W2(_.mI,function(){$Z9();F.registerWithViewTransitionManager()});
if(_.mB()&&this.isAppDarkTheme()!==_.Ib())this.onDarkModeToggledAction();else q=_.Hx()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==q&&(_.E("enable_dark_theme_only_on_shorts")?_.ab(_.E("enable_dark_theme_only_on_shorts_control")?window.location.href:_.a5(window.location.href,{theme:"dark"})):_.bz(new _.D0("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(Z2C=new ea5(this.hostElement)),uUD=new ty7(this.hostElement),q3s=new FNw(this.hostElement),AP7=new xi9(this.hostElement)};
_.l.getThemeSettingsToLog=function(){var F=_.Hx()==="USER_INTERFACE_THEME_DARK";F=_.mB()?_.Ib()?"os-dark":"os-light":F?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:F,cookiesEnabled:_.Mh()}};
_.l.detached=function(){_.Yo(this.guideInnerContent);_.mI.cancelJob(U1);U1=0;_.mI.cancelJob(hI);hI=0;_.aPo(bJT);bJT.length=0;HJs=_.T8q=null;_.h8().dispose();_.E("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.jJ(_.B2.getInstance(),Z2C.playlistHandlerActionMap,Z2C.JSC$32028_clientRoot);_.jJ(_.B2.getInstance(),uUD.downloadManagerActionMap,uUD.JSC$32320_clientRoot);_.jJ(_.B2.getInstance(),q3s.feedbackCollectorActionMap,q3s.JSC$32315_clientRoot);
for(var F=_.X(AP7.eventListeners),q=F.next();!q.done;q=F.next()){var t=_.X(q.value);q=t.next().value;t=t.next().value;t=_.X(t);for(var u=t.next();!u.done;u=t.next()){var J=_.X(u.value);u=J.next().value;J=J.next().value;q.removeEventListener(u,J)}}_.jJ(_.B2.getInstance(),AP7.autonavPauseActionMap,AP7.JSC$19964_clientRoot)};
_.l.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.TV().getFlag(186)};
_.l.computeIsInlinePreviewEnabled=function(F,q,t){return!t&&_.Ewv({miniplayerIsActive:F,miniplayerPlaybackState:q})};
_.l.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.pj({type:"SET_FROSTED_GLASS_MODE",payload:!_.E("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.l.computeIsFrostedGlassDisabled=function(F,q,t,u){return F||q||t||u&&_.E("web_frosted_glass_disable_watch")};
_.l.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.E("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.l.computeIsHomePage=function(F,q){if(!F||q==null||!q.endpoint)return!1;var t;return((t=_.n(q.endpoint,_.Gr))==null?void 0:t.browseId)==="FEwhat_to_watch"};
_.l.updateIsChannelOrPlaylistPage=function(){if(_.E("web_frosted_glass")){var F,q,t=(q=(F=_.sV().resolve(_.JU(_.JC)))==null?void 0:F.getCurrentPage())==null?void 0:q.pageSubtype;this.isChannelOrPlaylistPage=t?["channel","channels","playlist"].includes(t):!1}};
_.l.scheduleFrostedGlassInitialization=function(){var F=this;_.E("web_frosted_glass")&&_.g7().parkOrScheduleJob(function(){F.isFrostedGlassInitialized=!0},0,_.YK(["eocs",
"cr"]),300)};
_.l.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.fNO(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.pj({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.pj({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.l.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(WcJ(!0))};
_.l.onYtSignalActionRequestPersistentStorage=function(){if(!_.E("request_persistent_storage_killswitch")){var F=_.sV().resolve(_.rQ5);F.cachedPersistStatePromise||(F.cachedPersistStatePromise=hXC())}};
_.l.handleYtChannelCreationFormEndpoints=function(F){F&&this.ytComponentBehavior.resolveCommand(F)};
_.l.handleShowEngagementPanelEndpoint=function(F){F&&this.ytComponentBehavior.resolveCommand(F)};
_.l.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(WcJ(!1))};
_.l.initIconDefs=function(F,q){var t=document.createElement("iron-iconset-svg");t.name=F;F=document.createElementNS("http://www.w3.org/2000/svg","svg");t.appendChild(F);F.appendChild(q);document.body.appendChild(t);return t};
_.l.onWindowResized=function(){_.ec(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var F=_.lYL.getInstance();F.documentWidth_=document.body.clientWidth;bwy(F)};
_.l.onWindowScrolled=function(){var F=_.sV().resolve(_.JC).getCurrentPage();if(F!=null&&F.getScrollTop){var q=this.ytdReduxBehavior,t=q.dispatch;F=F.getScrollTop()<=0;t.call(q,_.pj({type:"SET_SCROLL_AT_TOP",payload:F}))}};
_.l.guideIsVisibleButNotPersistentSelectorChanged=function(){var F=_.sV().resolve(_.JC).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=F.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
F.setScrollTop(this.guideScrollTop));_.Zl(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.l.getCurrentPageScrollableElementType=function(){var F=_.sV().resolve(_.JC).getCurrentPage();if(F&&F.getPageScrollingElement())return F.getPageScrollingElement().nodeName};
_.l.observeGuideVisibility=function(){var F=_.lYL.getInstance(),q=this.miniGuideVisible;F.guidePersistentAndVisible_=this.guidePersistentAndVisible;F.miniGuideVisible_=q;bwy(F)};
_.l.handleEduDismissAction=function(F){F&&F.eduDismissAction&&(_.ec(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.tkw.getInstance(),_.Eh.set(F.eduDismissAction.key+"-dismissed",!0))};
_.l.handleEduImpressionAction=function(F){if(F&&F.eduImpressionAction){var q=_.tkw.getInstance();F=F.eduImpressionAction.key;q.JSC$13004_eduDisplayedThisLoad_[_.q6J[F].setKey||F]=!0;_.Eh.set(F+"-impression",parseInt(_.Eh.get(F+"-impression")||0,10)+1)}};
_.l.onYtSignalActionConfirmMentionsEdu=function(){_.ec(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.n8.getInstance();_.og.set("edu-dismissed",!0)};
_.l.onYtSignalActionRecordMentionsEduImpression=function(){_.n8.getInstance();var F=_.og.set,q=parseInt(_.og.get("edu-impressions"),10);F.call(_.og,"edu-impressions",(isFinite(q)?q:0)+1)};
_.l.onYtPageManagerAttached=function(F){var q;((q=_.uL(F))==null?void 0:q.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.l.onInvokeInstrumentManagerAction=function(F,q){lM5(q,F)};
_.l.updateIconSet=function(){var F=this.hostElement.querySelector("#masthead");if(F){var q=_.Zj(F),t=q.querySelector("g#yt-logo-updated");t&&(F=document.createElementNS("http://www.w3.org/2000/svg","defs"),F.appendChild(t.cloneNode(!0)),(q=q.querySelector("g#yt-logo-red-updated"))&&F.appendChild(q.cloneNode(!0)),this.initIconDefs("yt-logos-ext",F))}};
_.l.updateMastheadData=function(){var F=this,q,t,u,J,g;return _.p(function(Y){if(Y.nextAddress==1){q=F.data;t=F.hostElement.querySelector("#masthead");if(!t)return Y.return();_.tJ(F,function(){t.data=F.topbarData});
if(!F.get("response.topbar",q)||F.get("response.topbar.responseContext.maxAgeSeconds",q)===0)return Y.jumpTo(0);if(u=_.sV().resolve(_.nx))return Y.yield(u(),6);J=_.sV().resolve(_.ve);return Y.yield(J.put("service:topbar:fallback",new _.Ip({innertubeResponse:F.get("response.topbar",q)})),0)}return(g=Y.yieldResult)?Y.yield(g.put("service:topbar:fallback",new _.Ip({innertubeResponse:F.get("response.topbar",q)})),0):Y.jumpTo(0)})};
_.l.computeTopbarData=function(F){if(!F)return null;var q;return this.isShortsPage&&this.topbarData&&!_.n((q=F.response)==null?void 0:q.topbar,ABv)?this.topbarData:F.response&&"topbar"in F.response?_.n(F.response.topbar,ABv)||null:null};
_.l.onSetTheaterModeEnabled=function(F,q){this.isTheaterModeSession=q.enabled;this.setTheaterModeStyles(q.enabled)};
_.l.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.l.onDarkModeToggledAction=function(){var F=_.wN(window.location.href);if(!_.m$$(F)){(F=!!_.fI(window.location.href).themeRefresh)&&_.bz(new _.D0("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!F){dUJ();F={themeRefresh:1};var q=_.sV().resolve(_.JC);if(q.isOnWatch()){var t,u;q=((t=q.getPlayerFromWatch())==null?void 0:(u=t.getPlayer())==null?void 0:u.getCurrentTime())||0;q>=1&&(F.time_continue=Math.floor(q))}_.Mh()||_.Hx()!=="USER_INTERFACE_THEME_DARK"||(F.theme="dark");_.ab(_.a5(window.location.href,
F))}_.E("web_appshell_refresh_trigger")&&_.uu.caches&&this.refreshAppShellResponse();t=_.LB(window.location.href);_.$T(_.sV().resolve(_.br),_.sH(t,"theme"))}};
_.l.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.l.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.l.onPlayerFullscreen=function(F){_.gY();this.playerFullscreen=F};
_.l.setRestrictedMode=function(F){var q=_.TV();_.GV(0,58,F);q.save();_.sV().resolve(_.S$).reload()};
_.l.onPageChanged=function(F){F.detail.newPageType==="ytd-watch-flexy"||F.detail.newPageType==="ytd-watch-fixie"||F.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.De("WEB_PAGE_TYPE_WATCH")):F.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.De("WEB_PAGE_TYPE_SHORTS")):F.detail.newPageType==="ytd-browse"&&F.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.De("WEB_PAGE_TYPE_MINI_APP")):_.E("web_frosted_glass")&&F.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.De("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.De("WEB_PAGE_TYPE_UNKNOWN"));F.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.l.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.l.onGuideToggleTap=function(){_.Q0(this.hostElement,"yt-guide-toggle")};
_.l.onGuideToggleHover=function(){_.Q0(this.hostElement,"yt-guide-hover")};
_.l.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.l.setMastheadTheme=function(){var F=_.Zj(this.hostElement).querySelector("#masthead");F&&(F.dark=F.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),F.isDarkThemeForced=!1)};
_.l.onRequestPanelModeChange=function(F,q){this.hideHeaderShadow=q.mode!=="seamed"};
_.l.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.l.onDrawerIronSelect=function(F){_.uL(F).id==="guide"&&this.processDrawerIronSelect()};
_.l.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var F="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(F="opened"));_.Q0(this.hostElement,"yt-autonav-pause-guide-"+F)};
_.l.onAddElementToApp=function(F){_.ep(this.hostElement).appendChild(F.detail)};
_.l.onThrottledScroll=function(){var F=_.sV().resolve(_.JC).getCurrentPage();F&&(this.scrollAtTop=F.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.l.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.l.setFullscreen=function(){if(_.E("external_fullscreen")||!this.isWatchPage){var F=_.E("kevlar_fullerscreen_root_only_killswitch")?!!_.gY():!!_.gY()&&_.gY()===document.documentElement;F=(this.isWatchPage||_.E("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(F||this.isFullWindowSession);this.fullscreen!==F&&((this.fullscreen=F)&&_.Zl(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.u1().dispatch(_.yPz(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.ec(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.l.setFullscreenLoggingForShorts=function(F){var q,t,u;return _.p(function(J){if(J.nextAddress==1)return J.yield((q=_.g0())==null?void 0:q.getPlayerPromise(),2);t=J.yieldResult;(u=t)==null||u.setAppFullscreen(F);_.WA(J)})};
_.l.updateMastheadCssHeight=function(){var F=this.mastheadHeight;this.fullscreen&&(F=0);_.ws(this.hostElement,{"--ytd-masthead-height":F+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.l.updateNetworkStatusBannerDisplayStatus=function(){var F="unset";this.fullscreen&&(F="none");_.ws(this.hostElement,{"--ytd-network-status-banner-display":F})};
_.l.updateNetworkStatusBannerCssHeight=function(){var F="unset";this.fullscreen&&(F="0px");_.ws(this.hostElement,{"--ytd-network-status-banner-max-height":F})};
_.l.updateScrollAndMasthead=function(F,q,t,u){this.iMaxTheaterMode||(u=!1);var J=_.sV().resolve(_.JC).getCurrentPage();F||q||u?(document.body.classList.add("no-scroll"),J.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.kM(this,this.onScroll)),J.setScrollTop(0),_.ws(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.gE()+"px"})):t?_.Q0(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Q0(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
J.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.kM(this,this.onScroll)));this.mastheadHidden=F||q||t;this.updateMastheadCssHeight();_.E("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.l.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.l.onYtNavigateAction=function(F){F=this.get("navigateAction.endpoint",F);_.Q0(this.hostElement,"yt-navigate",{endpoint:F})};
_.l.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var F=document.createElement("yt-create-family-dialog");_.ep(this.hostElement).appendChild(F);this.hasCreateFamilyDialog=!0}};
_.l.onSetPushNotificationsEnabledCommand=function(F){var q=this,t=_.n(F,xH9);t&&typeof t.enabled==="boolean"&&(Notification.permission!=="granted"?w5v().then(function(){Notification.permission==="granted"?(tzh(!t.enabled).then(sY5),t.successAction&&_.RD(q.hostElement,[t.successAction])):t.failureAction&&_.RD(q.hostElement,[t.failureAction])}):(tzh(!t.enabled).then(sY5),t.successAction&&_.RD(this.hostElement,[t.successAction])))};
_.l.onYtSignalActionEnableChromeNotifications=function(){ijy(!0)};
_.l.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.n(this.topbarData.hotkeyDialog,HAh)}}})};
_.l.onYtSignalActionShowKeyboardShortcutDialog=function(){_.ec(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.l.onYtEndpointChangeHandler=function(F,q){var t=_.qF(_.Uh);t.pendingPrefetchJob_&&(q=!(!q||q.autonav!="1"),t.pendingPrefetchJob_.resolve(F&&_.GK3(F)?_.D$f(F,q):""),t.pendingPrefetchJob_=null);_.ec(this.hostElement,"yt-pause-active-page-context");_.ec(this.hostElement,"ytd-log-youthere-nav");_.ec(this.hostElement,"yt-prepare-page-dispose")};
_.l.handleCommandWithCommandHandler=function(F,q){_.oc.instance.resolveCommand(F,{form:{element:q}})};
_.l.onYtTimedCommand=function(F){var q=this;F=_.n(F,E9v);var t=F.command;t&&_.Ze(_.mI,function(){var u=_.n(t,_.EAj);u?(_.oc.instance.resolveCommand(t),q.maybeLogGetAnswerRequestTick(u)):_.rY(q.hostElement,[t],q.hostElement)},F.timeoutMs||0)};
_.l.maybeLogGetAnswerRequestTick=function(F){F&&F.isFirstRequest&&(_.bN("search_overview_answer"),_.y0("so_rq",void 0,"search_overview_answer"))};
_.l.onYtSignalActionSkipNavigation=function(){var F=_.sV().resolve(_.JC).getCurrentPage();_.ct(F)};
_.l.onYtSignalActionCopyDebugData=function(){xpC()};
_.l.handleEntityUpdateCommand=function(F){_.nj(_.n(F,_.fJC).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.l.logFlowLoggingEventCommand=function(F){if(F=_.n(F,_.r_C))if(F.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var q=F.flowEventNamespace,t=F.flowEventType,u=F.flowType;u&&q&&t&&_.kKu(_.kh(q,t,F.flowEventMetadata),u)}else{q=_.zr();t=F.flowEventNamespace;u=F.flowEventType;var J=F.flowType;J&&t&&u&&_.Ey(q,_.kh(t,u,F.flowEventMetadata),J,F.flowNonce)}};
_.l.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.l.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.l.onTouchStart=function(){var F=_.K8();_.yb()&&_.BT(F.JSC$13231_screenManager,{visualElement:F.ve})};
_.l.handleSelectLanguageCommand=function(F){if(F=_.n(F,Wus).hl){var q=_.TV();q.set("hl",F);q.save();_.sV().resolve(_.S$).reload()}};
_.l.handleConfirmDialogEndpoint=function(F){(F=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(F))&&this.ytOpenPopupBehavior.openPopup(F)};
_.l.handleOpenPopupNavigationEndpoints=function(F,q){_.E("web_button_rework")&&(F=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(F))&&this.ytOpenPopupBehavior.openPopup(F,q)};
_.l.handleSaveCommandToSessionStorage=function(F){if(F=_.n(F,_.HRx)){var q=F.key;q&&F.command&&window.sessionStorage.setItem(q,JSON.stringify(F.command))}};
_.l.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(F){F&&F.active&&F.active.postMessage({type:"refresh_shell"})}).catch(function(F){F.name!=="SecurityError"&&_.mH(F)})};
_.l.onDeviceThemeChanged=function(){var F=_.Ib();_.GV(_.TV(),185,F);_.TV().save()};
_.l.handleYtRegisterPromoCommand=function(F){if(_.n(F,PTw)){var q=_.sV().resolve(_.JC).getCurrentPage()||this.hostElement;d7w().registerPromoCommand(_.n(F,PTw),q)}};
_.l.onYtNavigateHomeAction=function(){if(!_.E("kevlar_miniplayer_navigate_home_from_app_killswitch")){var F,q,t,u,J=(u=(F=this.topbarData)==null?void 0:(q=F.logo)==null?void 0:(t=q.topbarLogoRenderer)==null?void 0:t.endpoint)!=null?u:_.bv;this.ytComponentBehavior.resolveCommand(J)}};
_.l.onYtLocationCollectionCommand=function(F){HHv(_.n(F,UH9))};
_.l.onYtGetLocationCommand=function(F){yvv(_.n(F,V99),this)};
_.l.updateRenderGuideFromBinding=function(F){this.renderGuide=F.detail.value};
_.l.updateGuidePersistentAndVisibleFromBinding=function(F){this.guidePersistentAndVisible=F.detail.value};
_.l.updateMiniGuideVisibleFromBinding=function(F){this.miniGuideVisible=F.detail.value};
_.l.onThemeSelected=function(F,q){var t=_.TV(),u=F||q?F:_.Ib(),J=(u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!u&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.m$$(_.wN(window.location.href));_.GV(0,165,F);_.GV(0,174,q);t.save();J&&_.ec(this.hostElement,"yt-dark-mode-toggled-action",[u]);_.ec(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.getCurrentTheme=function(){return _.mB()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Hx()};
_.l.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.l.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.l.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.l.handleShowConsentPrimitive=function(F){var q=this,t,u;return _.p(function(J){if(J.nextAddress==1){try{t=(u=_.g0())==null?void 0:u.getPlayerPromise()}catch(g){}return J.yield(FTh(F,t),2)}_.ec(q.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.WA(J)})};
_.l.handleSelectActiveIdentityEndpointInternal=function(F){_.LG();F=_.n(F,_.mCn);if(F!=null&&F.supportedTokens){F=_.X(F.supportedTokens);for(var q=F.next();!q.done;q=F.next())q=q.value,q.accountSigninToken&&_.ab(q.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.l.handleUpdatePermissionRoleCommand=function(F){if(F=_.n(F,_.$Xw)){var q;this.hasDelegation=!((q=_.n(F.renderer,_.mX1))==null||!q.status)}};
_.l.registerWithViewTransitionManager=function(){var F=_.sV().resolve(_.JU(_.yf));if(F){var q,t=(q=this.guide)==null?void 0:q.querySelector("#scrim"),u;q=(u=this.guide)==null?void 0:u.querySelector("#contentContainer");t&&q&&F.isAnyTransitionEnabled&&(u={},F.viewTransitionCoordinator.registerElement(t,(u.slide="app-drawer-scrim-page-transition",u["lockup-to-watch"]="app-drawer-scrim-page-transition",u["learning-journey"]="app-drawer-scrim-page-transition",u)),t={},F.viewTransitionCoordinator.registerElement(q,
(t.slide="app-drawer-container-page-transition",t["lockup-to-watch"]="app-drawer-container-page-transition",t["learning-journey"]="app-drawer-container-page-transition",t)))}};
_.JJ.Object.defineProperties(lq.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.E("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.JJ.Object.defineProperties(lq,{template:{configurable:!0,enumerable:!0,get:function(){if(BWT===void 0){var F=document.createElement("template");_.G(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
F.content.insertBefore(_.U().content.cloneNode(!0),F.content.firstChild);BWT=F}F=BWT;return F}}});
lq.prototype.onOpenHotkeyDialog=lq.prototype.onOpenHotkeyDialog;lq.prototype.setFullscreen=lq.prototype.setFullscreen;lq.prototype.onAddElementToApp=lq.prototype.onAddElementToApp;lq.prototype.onDrawerIronSelect=lq.prototype.onDrawerIronSelect;lq.prototype.onGuideOpenButtonHover=lq.prototype.onGuideOpenButtonHover;lq.prototype.onRequestPanelModeChange=lq.prototype.onRequestPanelModeChange;lq.prototype.onPageDataUpdated=lq.prototype.onPageDataUpdated;lq.prototype.onPageChanged=lq.prototype.onPageChanged;
lq.prototype.onSetTheaterModeEnabled=lq.prototype.onSetTheaterModeEnabled;lq.prototype.updateMastheadData=lq.prototype.updateMastheadData;lq.prototype.onYtPageManagerAttached=lq.prototype.onYtPageManagerAttached;lq.prototype.observeGuideVisibility=lq.prototype.observeGuideVisibility;lq.prototype.guideIsVisibleButNotPersistentSelectorChanged=lq.prototype.guideIsVisibleButNotPersistentSelectorChanged;lq.prototype.isInlinePreviewEnabledChanged=lq.prototype.isInlinePreviewEnabledChanged;
lq.prototype.isWatchPageChanged=lq.prototype.isWatchPageChanged;lq.prototype.dispatchFrostedGlassMode=lq.prototype.dispatchFrostedGlassMode;_.C([_.D(_.s9),_.V("design:type",Object)],lq.prototype,"ytdReduxBehavior",void 0);_.C([_.D(_.S2.YtEventForwardingBehavior),_.V("design:type",Object)],lq.prototype,"ytEventForwardingBehavior",void 0);_.C([_.D(_.HP.YtOpenPopupBehavior),_.V("design:type",Object)],lq.prototype,"ytOpenPopupBehavior",void 0);
_.C([_.D(_.$9.YtActionHandlerBehavior),_.V("design:type",Object)],lq.prototype,"ytActionHandlerBehavior",void 0);_.C([_.D({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.B2.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.E("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var F;((F=this.actionRouterNode.hostElement)!=null?F:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var F;((F=this.actionRouterNode.hostElement)!=null?F:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(F){this.actionRouter_.handleAction(F.detail)}}),
_.V("design:type",Object)],lq.prototype,"ytActionRouterBehavior",void 0);_.C([_.D(Lm9.YtdAppBehavior),_.V("design:type",Object)],lq.prototype,"ytdAppBehavior",void 0);_.C([_.D(_.mu.YtEndpointBehavior),_.V("design:type",Object)],lq.prototype,"ytEndpointBehavior",void 0);_.C([_.D(cLD.YtEndpointHandlerWithYpcBehavior),_.V("design:type",Object)],lq.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.C([_.D(LK5.YtLogYpcFlowCommandsBehavior),_.V("design:type",Object)],lq.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.C([_.D(_.B.YtRendererBehavior),_.V("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.C([_.D(_.XV.YtComponentBehavior),_.V("design:type",Object)],lq.prototype,"ytComponentBehavior",void 0);_.C([_.O({selector:_.gI7}),_.V("design:type",Object)],lq.prototype,"tabGesturesIsActive",void 0);_.C([_.O(),_.V("design:type",Boolean)],lq.prototype,"renderGuide",void 0);
_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lq.prototype,"guidePersistentAndVisible",void 0);_.C([_.O({selector:_.s55}),_.V("design:type",Boolean)],lq.prototype,"guideIsVisibleButNotPersistent",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],lq.prototype,"standalone",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lq.prototype,"miniGuideVisible",void 0);
_.C([_.O({selector:_.sgM}),_.V("design:type",Number)],lq.prototype,"miniplayerPlaybackState",void 0);_.C([_.O({selector:_.yX,reflectToAttribute:!0}),_.V("design:type",Boolean)],lq.prototype,"miniplayerIsActive",void 0);_.C([_.O({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.V("design:type",Boolean)],lq.prototype,"isInlinePreviewEnabled",void 0);_.C([_.O(),_.V("design:type",Boolean)],lq.prototype,"isInlinePreviewDisabled",void 0);
_.C([_.O({reflectToAttribute:!0,value:function(){return _.yG("START_IN_FULL_WINDOW_MODE")}}),
_.V("design:type",Boolean)],lq.prototype,"mastheadHidden",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lq.prototype,"playerFullscreen",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lq.prototype,"deprecateFullerscreenUi",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lq.prototype,"fullscreen",void 0);_.C([_.O({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],lq.prototype,"hideHeaderShadow",void 0);
_.C([_.O({value:{GUIDE_ALT_LABEL:_.oD("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.V("design:type",Object)],lq.prototype,"menuStrings",void 0);_.C([_.O({computed:"computeTopbarData(data)"}),_.V("design:type",Object)],lq.prototype,"topbarData",void 0);_.C([_.O({selector:_.qh$}),_.V("design:type",Boolean)],lq.prototype,"isWatchPage",void 0);_.C([_.O({selector:_.t$t,reflectToAttribute:!0}),_.V("design:type",Boolean)],lq.prototype,"isShortsPage",void 0);_.C([_.O({selector:function(F){return _.Cj(F)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.V("design:type",Boolean)],lq.prototype,"isMiniAppPage",void 0);_.C([_.O({selector:function(F){return _.Cj(F)==="WEB_PAGE_TYPE_BROWSE"}}),
_.V("design:type",Boolean)],lq.prototype,"isBrowsePage",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Boolean)],lq.prototype,"scrolling",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lq.prototype,"hasDelegation",void 0);_.C([_.O({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],lq.prototype,"guideScrolledByTouch",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lq.prototype,"darkerDarkTheme",void 0);
_.C([_.O(),_.V("design:type",Object)],lq.prototype,"isFrostedGlassInitialized",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lq.prototype,"frostedGlassExp",void 0);_.C([_.O({selector:function(F){return F.ui.chipBarIsSticky}}),
_.V("design:type",Boolean)],lq.prototype,"chipBarIsSticky",void 0);_.C([_.O({computed:"computeIsHomePage(isBrowsePage, data)"}),_.V("design:type",Boolean)],lq.prototype,"isHomePage",void 0);_.C([_.O({reflectToAttribute:!0}),_.V("design:type",Object)],lq.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.C([_.O(),_.V("design:type",Object)],lq.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.C([_.Dc("guide"),_.V("design:type",Object)],lq.prototype,"guide",void 0);
_.C([_.Dc("guide-service"),_.V("design:type",H2J)],lq.prototype,"guideService",void 0);_.C([_.Dc("guide-inner-content"),_.V("design:type",HTMLDivElement)],lq.prototype,"guideInnerContent",void 0);_.C([_.O({selector:_.gQM}),_.V("design:type",String)],lq.prototype,"frostedGlassMode",void 0);
_.C([_.za("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lq.prototype,"dispatchFrostedGlassMode",null);_.C([_.O({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.V("design:type",Object)],lq.prototype,"isFrostedGlassDisabled",void 0);
_.C([_.za("isWatchPage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lq.prototype,"isWatchPageChanged",null);_.C([_.W("isHomePage","chipBarIsSticky"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],lq.prototype,"applyFrostedGlassToChipBar",null);_.C([_.O(),_.V("design:type",Object)],lq.prototype,"isChannelOrPlaylistPage",void 0);
_.C([_.Wh("isInlinePreviewEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lq.prototype,"isInlinePreviewEnabledChanged",null);_.C([_.za("guideIsVisibleButNotPersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lq.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.C([_.za("guidePersistentAndVisible","miniGuideVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lq.prototype,"observeGuideVisibility",null);_.C([_.EB("attached"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],lq.prototype,"onYtPageManagerAttached",null);_.C([_.za("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],lq.prototype,"updateMastheadData",null);
_.C([_.EB("yt-set-theater-mode-enabled"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],lq.prototype,"onSetTheaterModeEnabled",null);_.C([_.EB("yt-page-type-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],lq.prototype,"onPageChanged",null);_.C([_.EB("yt-page-data-updated"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lq.prototype,"onPageDataUpdated",null);
_.C([_.EB("yt-request-panel-mode-change"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Object]),_.V("design:returntype")],lq.prototype,"onRequestPanelModeChange",null);_.C([_.EB("yt-guide-hover"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lq.prototype,"onGuideOpenButtonHover",null);_.C([_.EB("app-drawer-transitioned"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],lq.prototype,"onDrawerIronSelect",null);
_.C([_.EB("yt-add-element-to-app"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],lq.prototype,"onAddElementToApp",null);_.C([_.EB("yt-set-fullerscreen-styles"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lq.prototype,"setFullscreen",null);_.C([_.EB("yt-open-hotkey-dialog"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lq.prototype,"onOpenHotkeyDialog",null);
_.C([_.m({is:"ytd-app"})],lq);_.g7().processSignal("eor");
_.$W();
}catch(e){_._DumpException(e)}
try{
_.mg("NSzT5");
var TQ9,Ddv;_.vv=function(F){var q=document.createElement("link");_.lF(q,F,"stylesheet");document.head.appendChild(q)};
_.IG=function(F,q){var t,u;return _.p(function(J){t=document.createElement("div");t.id=F.id;F.className&&(t.className=F.className);u=F.element;if(!u)throw Error("Vj");if(F.location==="prepend")u.prepend(t);else if(F.location==="appendChild")u.appendChild(t);else if(F.location==="after")u.after(t);else throw Error("Wj");return J.return(_.xI(t,q,"ah"))})};
_.Hv=function(F){var q;return _.p(function(t){(q=document.getElementById(F))&&q.remove();_.WA(t)})};
_.mx=function(F,q){var t=document.querySelector(F);t?q(t):setTimeout(function(){_.mx(F,q)},1E3)};
_.GWv=function(F,q,t){var u;_.p(function(J){if(J.nextAddress==1)return(u=document.getElementById(F))?J.jumpTo(2):J.yield(TQ9(F,q,t),2);if(u=document.getElementById(F))u.style.display="block";_.WA(J)})};
TQ9=function(F,q,t){return _.p(function(u){return u.return(new Promise(function(J){_.mx("div #panels",function(g){_.IG({element:g,location:"appendChild",id:F,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+t},q);J()})}))})};
Ddv=function(){var F=document.querySelector("ytd-watch-metadata");F&&F.querySelectorAll("yt-button-view-model").forEach(function(q){q.querySelector('button[aria-label="Ask"]')&&q.remove()})};
_.xd3=function(){_.Hv("creator_chatbots-entry-point");_.Hv("creator_chatbots-panel");_.vv(WO9);_.mx("ytd-watch-metadata #top-level-buttons-computed",function(F){document.getElementById("creator_chatbots-entry-point")||(_.IG({element:F,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.Z(OB9,null)}),_.GWv("creator_chatbots-panel",function(){return _.Z(P7C,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"));
Ddv()})};_.$y=_.ld(function(F){var q=F.text;var t=F.onClick;var u=F.color;var J=F.backgroundColor;var g=F.buttonSize;var Y=F.disabled;var Q=F.iconName;var e=F.iconSize;F=F.className;var r=_.zq(function(w){t(w)}),N={};
return _.Z("button",{class:_.Ec("ytpStandardButtonsHost",(N.ytpStandardButtonsLarge=function(){return(g==null?void 0:g())==="large"},N),F),
"on:click":r,style:_.Mo({color:u,"background-color":J}),disabled:Y}," ",_.Z(_.R,{cond:Q,then:function(){return _.Z(_.Tq,{className:"ytpStandardButtonsIconContainer",icon:Q,size:e})}}),q)},"$g");_.AJ9=_.ld(function(F){var q;return _.Z("div",{class:_.Ec("ytprototypesEngagementPanelComponentHost",F.className),id:F.id},_.Z("div",{class:_.Ec("ytprototypesEngagementPanelComponentEngagementPanelHeader",F.headerClassName)},_.Z("div",null,F.header()),_.Z("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.Z("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(q=F.HeaderButton)==null?void 0:q.call(F)),_.Z(_.$y,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var t=F.id();if(t=document.getElementById(t))t.style.display="none"}}))),_.Z("div",{class:_.Ec("ytprototypesEngagementPanelComponentEngagementPanelContent",F.contentClassName),
style:function(){var t;return"height: "+(((t=F.height)==null?void 0:t.call(F))||"800px")+";"}},F.content()))},"bh");var vzw=_.LZ(["https://portraits.google.com"]),ItD=_.LZ(["https://portraits.google.com/kimscott_vidcontexttests"]),HBC=_.LZ(["https://labs-characters.teams.x20web.corp.google.com"]),mdC=_.RV(vzw),$d7=_.RV(ItD),bBw=_.RV(HBC),P7C=_.ld(function(){var F=_.E("enable_creator_chatbots_extension_dev_server"),q=document.createElement("iframe"),t=F?bBw:$d7;_.loC(q,1,t);q.className="ytprotoCreatorChatbotsAppLabsIframe";q.allow="microphone; clipboard-read; clipboard-write self "+t;var u=function(){var g;return _.p(function(Y){if(Y.nextAddress==
1)return Y.yield(_.sV().resolve(_.Qg),2);(g=Y.yieldResult)&&g.pauseVideo();_.WA(Y)})},J=function(){var g,Y,Q;
return _.p(function(e){return e.nextAddress==1?e.yield(_.sV().resolve(_.Qg),2):(g=e.yieldResult)?e.return({video_id:(Q=(Y=g.getVideoData())==null?void 0:Y.video_id)!=null?Q:"",timestamp_sec:g.getCurrentTime().toString()}):e.return({})})};
window.addEventListener("message",function(g){var Y,Q,e,r,N,w;return _.p(function(k){if(k.nextAddress==1){Y=F?bBw.toString():mdC.toString();if(g.origin!==Y)return console.warn("Received message from untrusted origin:",g.origin),k.return();Q=g.data;if(typeof Q!=="object"||Q===null||!Q.action)return k.return();if(Q.action==="pause")return k.yield(u(),0);if(Q.action!=="getYouTubeContext"||!g.source)return k.jumpTo(0);e=g.source;r=e.postMessage;N=JSON;w=N.stringify;return k.yield(J(),7)}r.call(e,w.call(N,
{youTubeContext:k.yieldResult}),{targetOrigin:g.origin});return k.jumpTo(0)})});
_.Xh({destination:window,iframe:q,origin:t.toString(),channelName:"xdc1",onMessage:function(g){var Y,Q;return _.p(function(e){if(e.nextAddress==1){if(g.data.action==="pause")return e.yield(u(),0);if(g.data.action!=="getYouTubeContext")return e.jumpTo(0);Y=g;Q=Y.reply;return e.yield(J(),5)}Q.call(Y,{youTubeContext:e.yieldResult});return e.jumpTo(0)})}});
return _.Z("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.Z(_.AJ9,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.Z("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.Z("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},
"Talk to the Creator"),_.Z(_.gu,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.Z(_.$y,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.jO(window,_.yy(t.toString()),"_blank")}})},
content:function(){return q}}))},"ch");var yJv=_.LZ(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]),WO9=_.RV(yJv),OB9=_.ld(function(){var F=function(){_.GWv("creator_chatbots-panel",function(){return _.Z(P7C,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.Z("div",{class:"ytd-menu-renderer"},_.Z(_.x9,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:F}},
icon:function(){return _.Z(_.Tq,{icon:"SPARK"})}}))},"dh");
_.$W();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
